]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/jit: enable tracking multiple JITer objfiles
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c8474dc3
TBA
12020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2 Simon Marchi <simon.marchi@polymtl.ca>
3
4 * jit.c (struct jit_program_space_data): Remove.
5 (jit_program_space_key): Remove.
6 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7 stuff.
8 (get_jit_program_space_data): Remove.
9 (jit_breakpoint_deleted): Iterate on all of the program space's
10 objfiles.
11 (jit_inferior_init): Likewise.
12 (jit_breakpoint_re_set_internal): Likewise. Also change return
13 type to void.
14 (jit_breakpoint_re_set): Pass current_program_space to
15 jit_breakpoint_re_set_internal.
16
77208eb7
SM
172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * jit.h (struct jiter_objfile_data) <cached_code_address,
20 jit_breakpoint>: Move to here from ...
21 * jit.c (jit_program_space_data): ... here.
22 (jiter_objfile_data::~jiter_objfile_data): Update.
23 (jit_breakpoint_deleted): Update.
24 (jit_breakpoint_re_set_internal): Update.
25
8c1c720f
SM
262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
29 checks.
30 (jit_read_descriptor): Remove NULL check.
31 (jit_event_handler): Add an assertion.
32
0e74a041
SM
332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * jit.h (struct jit_objfile_data): Split into...
36 (struct jiter_objfile_data): ... this ...
37 (struct jited_objfile_data): ... and this.
38 * objfiles.h (struct objfile) <jit_data>: Remove.
39 <jiter_data, jited_data>: New fields.
40 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
41 (jiter_objfile_data::~jiter_objfile_data): ... this.
42 (get_jit_objfile_data): Rename to ...
43 (get_jiter_objfile_data): ... this.
44 (add_objfile_entry): Update.
45 (jit_read_descriptor): Use get_jiter_objfile_data.
46 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
47 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
48 (jit_inferior_exit_hook): Use objfile's jited_data field.
49
238b5c9f
SM
502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * jit.h: Forward-declare `struct minimal_symbol`.
53 (struct jit_objfile_data): Migrate to here from jit.c; also add a
54 constructor, destructor, and an objfile* field.
55 * jit.c (jit_objfile_data): Remove.
56 (struct jit_objfile_data): Migrate from here to jit.h.
57 (jit_objfile_data::~jit_objfile_data): New destructor
58 implementation with code moved from free_objfile_data.
59 (free_objfile_data): Delete.
60 (get_jit_objfile_data): Update to use the jit_data field of objfile.
61 (jit_find_objf_with_entry_addr): Ditto.
62 (jit_inferior_exit_hook): Ditto.
63 (_initialize_jit): Remove the call to
64 register_objfile_data_with_cleanup.
65 * objfiles.h (struct objfile) <jit_data>: New field.
66
fe053b9e
TBA
672020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * jit.h: Forward-declare `struct objfile`.
70 (jit_event_handler): Add a second parameter, the JITer objfile.
71 * jit.c (jit_read_descriptor): Change the signature to take the
72 JITer objfile as an argument instead of the jit_program_space_data.
73 (jit_inferior_init): Update the call to jit_read_descriptor.
74 (jit_event_handler): Use the new JITer objfile argument when calling
75 jit_read_descriptor.
76 * breakpoint.c (handle_jit_event): Update the call to
77 jit_event_handler to pass the JITer objfile.
78
4cec0c66
JB
792020-07-21 John Baldwin <jhb@FreeBSD.org>
80
81 * gdbarch.c: Regenerate.
82 * gdbarch.h: Regenerate.
83 * gdbarch.sh (handle_segmentation_fault): Remove method.
84 * infrun.c (handle_segmentation_fault): Remove.
85 (print_signal_received_reason): Remove call to
86 handle_segmentation_fault.
87
0e42f66a
JB
882020-07-21 John Baldwin <jhb@FreeBSD.org>
89
90 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
91 Rename to sparc64_linux_report_signal_info and add siggnal
92 argument.
93 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
94 instead of sparc64_linux_handle_segmentation_fault.
95
77bdfeb2
JB
962020-07-21 John Baldwin <jhb@FreeBSD.org>
97
98 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
99 i386_linux_report_signal_info instead of
100 i386_linux_handle_segmentation_fault.
101 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
102 to i386_linux_report_signal_info and add siggnal argument.
103 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
104 of i386_linux_handle_segmentation_fault.
105 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
106 to i386_linux_report_signal_info and add siggnal argument.
107
ad97bfc5
JB
1082020-07-21 John Baldwin <jhb@FreeBSD.org>
109
110 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
111 hook if present.
112
272bb05c
JB
1132020-07-21 John Baldwin <jhb@FreeBSD.org>
114
115 * gdbarch.c: Regenerate.
116 * gdbarch.h: Regenerate.
117 * gdbarch.sh (report_signal_info): New method.
118 * infrun.c (print_signal_received_reason): Invoke gdbarch
119 report_signal_info hook if present.
120
baf8791e
AB
1212020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * python/py-registers.c : Add 'unordered_map' include.
124 (gdbpy_new_reggroup): Renamed to...
125 (gdbpy_get_reggroup): ...this. Update to only create register
126 group descriptors when needed.
127 (gdbpy_reggroup_iter_next): Update.
128
f7306dac
AB
1292020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * python/py-registers.c (gdbpy_register_object_data): New static
132 global.
133 (gdbpy_register_object_data_init): New function.
134 (gdbpy_new_register_descriptor): Renamed to...
135 (gdbpy_get_register_descriptor): ...this, and update to reuse
136 existing register descriptors where possible.
137 (gdbpy_register_descriptor_iter_next): Update.
138 (gdbpy_initialize_registers): Register new gdbarch data.
139
05c309a8
SM
1402020-07-21 Simon Marchi <simon.marchi@efficios.com>
141
142 * linux-nat.c (stopped_pids): Make static.
143
d1fd641e
SM
1442020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
145
146 PR ada/26235
147 * gdbtypes.c (ada_discrete_type_low_bound,
148 ada_discrete_type_high_bound): Handle undefined bounds.
149
1de14d77
KR
1502020-07-21 Kamil Rytarowski <n54@gmx.com>
151
152 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
153 declaration.
154 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
155 function.
156
ed810cc7
JB
1572020-07-20 John Baldwin <jhb@FreeBSD.org>
158
159 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
160 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
161 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
162 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
163 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
164 method.
165
ae5369e7
LC
1662020-07-20 Ludovic Courtès <ludo@gnu.org>
167
168 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
169 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
170 which are deprecated in Guile 3.0.
171 * configure.ac (try_guile_versions): Add "guile-3.0".
172 * configure (try_guile_versions): Regenerate.
173 * NEWS: Update entry.
174
68cf161c
LC
1752020-07-20 Ludovic Courtès <ludo@gnu.org>
176 Doug Evans <dje@google.com>
177
178 PR gdb/21104
179 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
180 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
181 USING_GUILE_BEFORE_2_2.
182 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
183 Change type to 'scm_t_port_type *'.
184 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
185 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
186 parameter and honor it. Update callers.
187 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
188 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
189 functions.
190 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
191 USING_GUILE_BEFORE_2_2.
192 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
193 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
194 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
195 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
196 and 'SCM_PORT_TYPE'.
197 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
198 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
199 (gdbscm_memory_port_read, gdbscm_memory_port_write)
200 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
201 [!USING_GUILE_BEFORE_2_2]: New functions.
202 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
203 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
204 'gdbscm_memory_port_read'.
205 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
206 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
207 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
208 function.
209 (ioscm_init_memory_port): Remove.
210 (ioscm_init_memory_port_stream): New function
211 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
212 function.
213 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
214 Return scm_from_uint (0).
215 (gdbscm_set_memory_port_read_buffer_size_x)
216 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
217 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
218 Return scm_from_uint (0).
219 (gdbscm_set_memory_port_write_buffer_size_x)
220 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
221 * configure.ac (try_guile_versions): Add "guile-2.2".
222 * configure: Regenerate.
223 * NEWS: Add entry.
224
aee91db3
TT
2252020-07-18 Tom Tromey <tom@tromey.com>
226
227 * linux-nat.c (linux_multi_process): Remove.
228 (linux_nat_target::supports_multi_process): Return true.
229
0e267416
AB
2302020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * arch/riscv.c (riscv_tdesc_cache): Change map type.
233 (riscv_lookup_target_description): Return pointer out of
234 unique_ptr.
235 * target-descriptions.c (allocate_target_description): Add
236 comment.
237 (target_desc_deleter::operator()): Likewise.
238 * target-descriptions.h (struct target_desc_deleter): Moved to
239 gdbsupport/tdesc.h.
240 (target_desc_up): Likewise.
241
f80c8ec4
TT
2422020-07-17 Tom Tromey <tromey@adacore.com>
243
244 * linux-nat.c (linux_nat_target::supports_non_stop)
245 (linux_nat_target::always_non_stop_p): Use "true".
246 (linux_nat_target::supports_disable_randomization): Use "true" and
247 "false".
248
d0ce17d8
CT
2492020-07-16 Caroline Tice <cmtice@google.com>
250
251 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
252 (RNGLIST_HEADER_SIZE64): New constant definition.
253 (struct dwop_section_names): Add rnglists_dwo.
254 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
255 (struct loclist_header): Rename to 'loclists_rnglists_header'.
256 (struct dwo_sections): Add rnglists field.
257 (read_attribut_reprocess): Add tag parameter.
258 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
259 (cu_debug_rnglists_section): New function (decl & definition).
260 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
261 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
262 die whose range is being checked; get rnglist section from
263 cu_debug_rnglists_section, to get from either objfile or dwo file as
264 appropriate. Add cases for DW_RLE_base_addressx,
265 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
266 the base address to DW_RLE_offset_pairs (not to all ranges), moving
267 test inside if-condition and updating complaint message.
268 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
269 dwarf2_rnglists_process.
270 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
271 dwarf2_ranges_process.
272 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
273 need_ranges_base and update comment appropriately. Also pass die tag
274 to dwarf2_ranges_read.
275 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
276 need_ranges_base and update comment appropriately. Also pass die tag
277 to dwarf2_ranges_process.
278 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
279 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
280 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
281 need_ranges_base and update comment appropriately. Also pass die tag
282 to read_attribute_reprocess and dwarf2_ranges_read.
283 (read_loclist_header): Rename function to read_loclists_rnglists_header,
284 and update function comment appropriately.
285 (read_loclist_index): Call read_loclists_rnglists_header instead of
286 read_loclist_header.
287 (read_rnglist_index): New function.
288 (read_attribute_reprocess): Add tag parameter. Add code for
289 DW_FORM_rnglistx, passing tag to read_rnglist_index.
290 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
291
3dcc261c
AB
2922020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
295 being resolved.
296
ccb9eba6
AB
2972020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * arch-utils.c (show_architecture): Update formatting of messages.
300
cf88be68
SM
3012020-07-12 Simon Marchi <simon.marchi@efficios.com>
302
303 * gdbtypes.h (struct type) <bounds>: Handle array and string
304 types.
305 * ada-lang.c (assign_aggregate): Use type::bounds on
306 array/string type.
307 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
308 * c-varobj.c (c_number_of_children): Likewise.
309 (c_describe_child): Likewise.
310 * eval.c (evaluate_subexp_for_sizeof): Likewise.
311 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
312 (f_type_print_base): Likewise.
313 * f-valprint.c (f77_array_offset_tbl): Likewise.
314 (f77_get_upperbound): Likewise.
315 (f77_print_array_1): Likewise.
316 * guile/scm-type.c (gdbscm_type_range): Likewise.
317 * m2-typeprint.c (m2_array): Likewise.
318 (m2_is_long_set_of_type): Likewise.
319 * m2-valprint.c (get_long_set_bounds): Likewise.
320 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
321 * python/py-type.c (typy_range): Likewise.
322 * rust-lang.c (rust_internal_print_type): Likewise.
323 * type-stack.c (type_stack::follow_types): Likewise.
324 * valarith.c (value_subscripted_rvalue): Likewise.
325 * valops.c (value_cast): Likewise.
326
509971ae
SM
3272020-07-12 Simon Marchi <simon.marchi@efficios.com>
328
329 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
330 callers to use the equivalent accessor methods.
331
107406b7
SM
3322020-07-12 Simon Marchi <simon.marchi@efficios.com>
333
334 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
335 (struct type) <bit_stride>: New method.
336 (TYPE_BIT_STRIDE): Remove.
337 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
338
bb789949
SM
3392020-07-12 Simon Marchi <simon.marchi@efficios.com>
340
341 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
342 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
343 callers to use the equivalent accessor methods instead.
344
39498edb
SM
3452020-07-12 Simon Marchi <simon.marchi@efficios.com>
346
347 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
348 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
349 callers to use the equivalent accessor methods instead.
350
3b606f38
SM
3512020-07-12 Simon Marchi <simon.marchi@efficios.com>
352
353 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
354 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
355 to use dynamic_prop::kind.
356
064d9cb9
SM
3572020-07-12 Simon Marchi <simon.marchi@efficios.com>
358
359 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
360 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
361 to get the bound property's kind and check against
362 PROP_UNDEFINED.
363
5537ddd0
SM
3642020-07-12 Simon Marchi <simon.marchi@efficios.com>
365
366 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
367 all callers to use type::range_bounds followed by
368 dynamic_prop::{low,high}.
369
8c2e4e06
SM
3702020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
373 const_val, set_const_val, baton, set_locexpr, set_loclist,
374 set_addr_offset, variant_parts, set_variant_parts,
375 original_type, set_original_type>: New methods.
376 <kind>: Rename to...
377 <m_kind>: ... this. Update all users to use the new methods
378 instead.
379 <data>: Rename to...
380 <m_data>: ... this. Update all users to use the new methods
381 instead.
382
7c6f2712
SM
3832020-07-12 Simon Marchi <simon.marchi@efficios.com>
384
385 * gdbtypes.c (get_discrete_bounds): Return failure if
386 the range type's bounds are not both defined and constant
387 values.
388 (get_array_bounds): Update comment. Remove undefined bound check.
389
599088e3
SM
3902020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
393 the type::bounds method directly.
394
c4dfcb36
SM
3952020-07-12 Simon Marchi <simon.marchi@efficios.com>
396
397 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
398 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
399 are used to set the range type's bounds to use set_bounds.
400
0a278aa7
PW
4012020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
402
403 * exec.c (_initialize_exec): Update exec-file-mismatch help.
404
cce20f10
PA
4052020-07-10 Pedro Alves <pedro@palves.net>
406
407 * gdbthread.h (inferior_ref): Define.
408 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
409 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
410 * thread.c
411 (scoped_restore_current_thread::restore):
412 Adjust to gdb::ref_ptr.
413 (scoped_restore_current_thread::~scoped_restore_current_thread):
414 Remove manual decref handling.
415 (scoped_restore_current_thread::scoped_restore_current_thread):
416 Adjust to use
417 inferior_ref::new_reference/thread_info_ref::new_reference.
418 Incref the thread before calling get_frame_id instead of after.
419 Let TARGET_CLOSE_ERROR propagate.
420
6d7aa592
PA
4212020-07-10 Pedro Alves <pedro@palves.net>
422
423 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
424 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
425 NOT_AVAILABLE_ERROR.
426 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
427 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
428
b3e3a4c1
SM
4292020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
430 Pedro Alves <pedro@palves.net>
431
432 PR gdb/26199
433 * infrun.c (threads_are_resumed_pending_p): Delete.
434 (do_target_wait): Remove threads_are_executing and
435 threads_are_resumed_pending_p checks from the inferior_matches
436 lambda. Update comments.
437
d6cc5d98
PA
4382020-07-10 Pedro Alves <pedro@palves.net>
439
440 PR gdb/26199
441 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
442 executing threads.
443
7d3badc6
PA
4442020-07-10 Pedro Alves <pedro@palves.net>
445
446 PR gdb/26199
447 * infrun.c (handle_no_resumed): Handle multiple targets.
448
42bd97a6
PA
4492020-07-10 Pedro Alves <pedro@palves.net>
450
451 PR gdb/26199
452 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
453 target_is_async_p.
454
43667cc6
PA
4552020-07-10 Pedro Alves <pedro@palves.net>
456
457 PR gdb/26199
458 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
459 threads, not all threads.
460
96118d11
PA
4612020-07-10 Pedro Alves <pedro@palves.net>
462
463 PR gdb/26199
464 * remote.c (remote_target::open_1): Pass remote target pointer as
465 data to create_async_event_handler.
466 (remote_async_inferior_event_handler): Mark async event handler
467 before returning if the remote target still has either pending
468 events or unacknowledged notifications.
469
54904d81
JB
4702020-07-10 John Baldwin <jhb@FreeBSD.org>
471
472 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
473 declaration.
474 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
475 function.
476
f37e5866
JB
4772020-07-09 John Baldwin <jhb@FreeBSD.org>
478
479 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
480 inferior_ptid.
481
fc238d4a
JB
4822020-07-09 John Baldwin <jhb@FreeBSD.org>
483
484 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
485 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
486 AT_FREEBSD_PS_STRINGS.
487
6e2469ff
HD
4882020-07-08 Hannes Domani <ssbssa@yahoo.de>
489
490 * auto-load.c (auto_load_objfile_script_1): Convert drive part
491 of debugfile path on Windows.
492
d1076c41
JB
4932020-07-08 John Baldwin <jhb@FreeBSD.org>
494
495 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
496 argument to 'data'.
497
15f3b077
TT
4982020-07-08 Tom Tromey <tromey@adacore.com>
499
500 * ada-lang.c (ada_exception_message_1): Use read_memory.
501
9fc501fd
AB
5022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 PR python/22748
505 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
506 special handling for inline frames.
507 * findvar.c (value_of_register_lazy): Skip inline frames when
508 creating lazy register values.
509 * frame.c (frame_id_computed_p): Delete definition.
510 * frame.h (frame_id_computed_p): Delete declaration.
511
64cb3757
AB
5122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
513
514 * NEWS: Mention additions to Python API.
515 * python/py-arch.c (archpy_register_groups): New function.
516 (arch_object_methods): Add 'register_groups' method.
517 * python/py-registers.c (reggroup_iterator_object): New struct.
518 (reggroup_object): New struct.
519 (gdbpy_new_reggroup): New function.
520 (gdbpy_reggroup_to_string): New function.
521 (gdbpy_reggroup_name): New function.
522 (gdbpy_reggroup_iter): New function.
523 (gdbpy_reggroup_iter_next): New function.
524 (gdbpy_new_reggroup_iterator): New function
525 (gdbpy_initialize_registers): Register new types.
526 (reggroup_iterator_object_type): Define new Python type.
527 (gdbpy_reggroup_getset): New static global.
528 (reggroup_object_type): Define new Python type.
529 * python/python-internal.h
530
0f767f94
AB
5312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
534 * python/py-arch.c (archpy_registers): New function.
535 (arch_object_methods): Add 'registers' method.
536 * python/py-registers.c: New file.
537 * python/python-internal.h
538 (gdbpy_new_register_descriptor_iterator): Declare.
539 (gdbpy_initialize_registers): Declare.
540 * python/python.c (do_start_initialization): Call
541 gdbpy_initialize_registers.
542 * NEWS: Mention additions to the Python API.
543
87dbc774
AB
5442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * NEWS: Mention new Python API method.
547 * python/py-unwind.c (pending_framepy_architecture): New function.
548 (pending_frame_object_methods): Add architecture method.
549
3bc98c0c
AB
5502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * gdbarch.c: Regenerate.
553 * gdbarch.h: Regenerate.
554 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
555 (gdbarch_data): Use internal_error for the case where
556 deprecated_set_gdbarch_data was originally needed.
557 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
558 and use passed in obstack.
559 (libunwind_frame_set_descr): Should no longer get back NULL from
560 gdbarch_data.
561 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
562 type.
563 * user-regs.c (user_regs_init): Update parameters, and use passed
564 in obstack.
565 (user_reg_add): Should no longer get back NULL from gdbarch_data.
566 (_initialize_user_regs): Register as a pre-init gdbarch data type.
567
d8cc8af6
TV
5682020-07-06 Tom de Vries <tdevries@suse.de>
569
570 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
571 End-Of-Sequence in lte_is_less_than.
572 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
573 "gdb: Don't reorder line table entries too much when sorting".
574
947f7597
TV
5752020-07-06 Tom de Vries <tdevries@suse.de>
576
577 PR tui/26205
578 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
579
1e7c1b22
TV
5802020-07-05 Tom de Vries <tdevries@suse.de>
581
582 PR build/26187
583 * inferior.h (struct infcall_suspend_state_deleter): If available, use
584 std::uncaught_exceptions instead of deprecated
585 std::uncaught_exception.
586
a36158ec
SM
5872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * macroexp.h (macro_stringify): Return
590 gdb::unique_xmalloc_ptr<char>.
591 * macroexp.c (macro_stringify): Likewise.
592 * macrotab.c (fixup_definition): Update.
593
14d960c8
SM
5942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
597 (lex_one_token): Update.
598 * macroexp.c (struct macro_buffer) <release>: Return
599 gdb::unique_xmalloc_ptr<char>.
600 (macro_stringify): Update.
601 (macro_expand): Update.
602 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
603 * macroexp.h (macro_expand_next): Likewise.
604
211d5b1c
SM
6052020-07-02 Simon Marchi <simon.marchi@efficios.com>
606
607 * macroexp.h (macro_lookup_ftype): Remove.
608 (macro_expand, macro_expand_once, macro_expand_next): Remove
609 lookup function parameters, add scope parameter.
610 * macroexp.c (scan, substitute_args, expand, maybe_expand,
611 macro_expand, macro_expand_once, macro_expand_next): Likewise.
612 * macroscope.h (standard_macro_lookup): Change parameter type
613 to macro_scope.
614 * macroscope.c (standard_macro_lookup): Likewise.
615 * c-exp.y (lex_one_token): Update.
616 * macrocmd.c (macro_expand_command): Likewise.
617 (macro_expand_once_command): Likewise.
618
b1a35af2
SM
6192020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * inf-loop.c (inferior_event_handler): Remove client_data param.
622 * inf-loop.h (inferior_event_handler): Likewise.
623 * infcmd.c (step_1): Adjust.
624 * infrun.c (proceed): Adjust.
625 (fetch_inferior_event): Remove client_data param.
626 (infrun_async_inferior_event_handler): Adjust.
627 * infrun.h (fetch_inferior_event): Remove `void *` param.
628 * linux-nat.c (handle_target_event): Adjust.
629 * record-btrace.c (record_btrace_handle_async_inferior_event):
630 Adjust.
631 * record-full.c (record_full_async_inferior_event_handler):
632 Adjust.
633 * remote.c (remote_async_inferior_event_handler): Adjust.
634
1cdf9e33
TT
6352020-07-01 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
638 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
639
32c1e210
TT
6402020-07-01 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
643 tui_gen_win_info.
644 (tui_win_info::make_window): Merge with
645 tui_gen_win_info::make_window.
646 (tui_win_info::make_visible): Move from tui_gen_win_info.
647 * tui/tui-win.c (tui_win_info::max_width): Move from
648 tui_gen_win_info.
649 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
650 type.
651 <window_factory>: Likewise.
652 * tui/tui-layout.c (tui_win_info::resize): Move from
653 tui_gen_win_info.
654 (make_standard_window): Change return type.
655 (get_locator_window, tui_get_window_by_name): Likewise.
656 (tui_layout_window::apply): Remove a cast.
657 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
658 (struct tui_win_info): Merge with tui_gen_win_info.
659 (struct tui_gen_win_info): Remove.
660
a30cb6da
TT
6612020-07-01 Tom Tromey <tom@tromey.com>
662
663 * tui/tui-stack.h (struct tui_locator_window): Derive from
664 tui_win_info.
665 <do_scroll_horizontal, do_scroll_vertical>: New methods.
666 <can_box>: New method.
667
1eb2161f
TT
6682020-07-01 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-stack.h (struct tui_locator_window): Remove body.
671
7134f2eb
TT
6722020-07-01 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-regs.c (tui_data_window::display_registers_from)
675 (tui_data_window::display_registers_from)
676 (tui_data_window::first_data_item_displayed)
677 (tui_data_window::delete_data_content_windows): Update.
678 (tui_data_window::refresh_window, tui_data_window::no_refresh):
679 Remove.
680 (tui_data_window::check_register_values): Update.
681 (tui_data_item_window::rerender): Add parameters. Update.
682 (tui_data_item_window::refresh_window): Remove.
683 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
684 virtual.
685 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
686 tui_gen_win_info.
687 <refresh_window, max_height, min_height>: Remove.
688 <rerender>: Add parameters.
689 <x, y, visible>: New members.
690 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
691 <m_item_width>: New member.
692
22b7b041
TT
6932020-07-01 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-regs.c (tui_data_window::show_register_group)
696 (tui_data_window::check_register_values): Update.
697 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
698 from item_no.
699
c9753adb
TT
7002020-07-01 Tom Tromey <tom@tromey.com>
701
702 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
703 useless "if".
704
9ab26b4a
TT
7052020-07-01 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
708 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
709
e555083f
TT
7102020-07-01 Tom Tromey <tom@tromey.com>
711
712 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
713 * tui/tui-winsource.h (enum tui_line_or_address_kind)
714 (struct tui_line_or_address): Move from tui-data.h.
715 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
716 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
717 (tui_cmd_window, tui_source_window_base, tui_source_window)
718 (tui_disasm_window): Don't declare.
719 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
720 to tui-winsource.h.
721 (SINGLE_KEY): Move to tui-stack.c.
722
7a02bab7
TT
7232020-07-01 Tom Tromey <tom@tromey.com>
724
725 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
726 std::string.
727 * tui/tui-regs.c (class tab_expansion_file): New.
728 (tab_expansion_file::write): New method.
729 (tui_register_format): Change return type. Use
730 tab_expansion_file.
731 (tui_get_register, tui_data_window::display_registers_from)
732 (tui_data_item_window::rerender): Update.
733 * tui/tui-io.h (tui_expand_tabs): Don't declare.
734 * tui/tui-io.c (tui_expand_tabs): Remove.
735
ea68593b
TT
7362020-07-01 Tom Tromey <tom@tromey.com>
737
738 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
739
a8caed5d
FS
7402020-07-01 Fangrui Song <maskray@google.com>
741
742 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
743
9cdf9820
AKS
7442020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
745
746 * dwarf2/read.c (set_die_type): Removed conditions to restrict
747 forms for DW_AT_associated and DW_AT_allocated attributes,
748 which is already checked in function attr_to_dynamic_prop.
749
a1520ad8
TT
7502020-06-30 Tom Tromey <tromey@adacore.com>
751
752 * dwarf2/read.c (quirk_rust_enum): Correctly call
753 alloc_rust_variant for default-less enum.
754
5ac58899
TT
7552020-06-30 Tom Tromey <tromey@adacore.com>
756
757 PR build/26183:
758 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
759 gdb::to_string.
760
19b187a9
SM
7612020-06-29 Simon Marchi <simon.marchi@efficios.com>
762
763 * gdbarch.sh (displaced_step_copy_insn): Update doc.
764 * gdbarch.h: Re-generate.
765
cd4c4c07
TT
7662020-06-28 Tom Tromey <tom@tromey.com>
767
768 * command.h (cmd_types): Remove.
769 (cmd_type): Don't declare.
770 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
771 typedef.
772 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
773 * cli/cli-decode.c (cmd_type): Remove.
774
05779d57
PA
7752020-06-27 Pedro Alves <palves@redhat.com>
776
777 * fork-child.c (prefork_hook): Adjust.
778 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
779 Delete.
780 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
781 * inferior.c (inferior::set_tty, inferior::tty): New methods.
782 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
783 Remove declarations.
784 (struct inferior) <set_tty, tty>: New methods.
785 (struct inferior) <terminal>: Rename to ...
786 (struct inferior) <m_terminal>: ... this and make private.
787 * main.c (captured_main_1): Adjust.
788 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
789 (mi_cmd_inferior_tty_show): Adjust.
790 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
791 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
792
1776e3e5
NA
7932020-06-26 Nick Alcock <nick.alcock@oracle.com>
794
795 * configure.ac: Add --enable-libctf: handle --disable-static
796 properly.
797 * acinclude.m4: sinclude ../config/enable.m4.
798 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
799 (LIBCTF): Substitute in.
800 (CTF_DEPS): New, likewise.
801 (CLIBS): libctf needs symbols from libbfd: move earlier.
802 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
803 flags.
804 * ctfread.c: Surround in ENABLE_LIBCTF.
805 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
806 * configure: Regenerate.
807 * config.in: Likewise.
808
58373b80
SM
8092020-06-25 Simon Marchi <simon.marchi@efficios.com>
810
811 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
812
277474ee
SM
8132020-06-25 Simon Marchi <simon.marchi@efficios.com>
814
815 * inferior.h (struct inferior) <terminal>: Change type to
816 gdb::unique_xmalloc_ptr<char>.
817 * inferior.c (inferior::~inferior): Don't free inf->terminal.
818 * infcmd.c (set_inferior_io_terminal): Don't free terminal
819 field, adjust to unique pointer.
820 (get_inferior_io_terminal): Adjust to unique pointer.
821
6d74da72
AB
8222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * riscv-tdep.c (riscv_print_registers_info): Loop over all
825 registers, not just the known core set of registers.
826
2e52d038
AB
8272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
830 fflags, frm, and fcsr registers.
831 (riscv_register_reggroup_p): Remove unknown CSRs from save and
832 restore groups.
833 (riscv_tdesc_unknown_reg): New function.
834 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
835 tdesc_use_registers.
836 * riscv-tdep.h (struct gdbarch_tdep): Add
837 unknown_csrs_first_regnum, unknown_csrs_count,
838 duplicate_fflags_regnum, duplicate_frm_regnum, and
839 duplicate_fcsr_regnum fields.
840
be64fd07
AB
8412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * target-descriptions.c (tdesc_use_registers): Add new parameter a
844 callback, use the callback (when not null) to help number unknown
845 registers.
846 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
847 (tdesc_use_registers): Add extra parameter to declaration.
848
3b9fce96
AB
8492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
850
851 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
852 in the file.
853 (class riscv_pending_register_alias): Likewise.
854 (riscv_register_feature::register_info): Change 'required_p' field
855 to 'required', and change its type. Add 'check' member function.
856 (riscv_register_feature::register_info::check): Define new member
857 function.
858 (riscv_xreg_feature): Change initialisation of 'required' field.
859 (riscv_freg_feature): Likewise.
860 (riscv_virtual_feature): Likewise.
861 (riscv_csr_feature): Likewise.
862 (riscv_check_tdesc_feature): Take extra parameter, the csr
863 tdesc_feature, rewrite the function to use the new
864 riscv_register_feature::register_info::check function.
865 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
866
865bad26
AB
8672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * features/Makefile: Remove all references to the deleted files
870 below.
871 * features/riscv/32bit-csr.c: Deleted.
872 * features/riscv/32bit-csr.xml: Deleted.
873 * features/riscv/64bit-csr.c: Deleted.
874 * features/riscv/64bit-csr.xml: Deleted.
875 * features/riscv/rebuild-csr-xml.sh: Deleted.
876
ed69cbc8
AB
8772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
880 whitespace error for declaration of names member variable.
881 (struct riscv_register_feature): Add new prefer_first_name member
882 variable, and fix whitespace error in declaration of registers.
883 (riscv_xreg_feature): Initialize prefer_first_name field.
884 (riscv_freg_feature): Likewise.
885 (riscv_virtual_feature): Likewise.
886 (riscv_csr_feature): Likewise.
887 (riscv_register_name): Expand on comments. Remove register name
888 modifications for CSR and virtual registers.
889
4445e8f5
AB
8902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
893 errors.
894
767a879e
AB
8952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
898 riscv-opc.h.
899 (class riscv_pending_register_alias): New class.
900 (riscv_check_tdesc_feature): Take vector of pending aliases and
901 populate it as appropriate.
902 (riscv_setup_register_aliases): Delete.
903 (riscv_gdbarch_init): Create vector of pending aliases and pass it
904 to riscv_check_tdesc_feature in all cases. Use the vector to
905 create the register aliases.
906
bb6e55f3
RO
9072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
908
909 * sol2-tdep.c (sol2_static_transform_name): Remove.
910 (sol2_init_abi): Don't register it.
911 * gdbarch.sh (static_transform_name): Remove.
912 * gdbarch.c, gdbarch.h: Regenerate.
913
914 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
915 gdbarch_static_transform_name.
916 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
917 * stabsread.c (define_symbol) <'X'>: Remove.
918 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
919 handling.
920 <'V'>: Likewise.
921 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
922 <'S'>: Remove call to gdbarch_static_transform_name.
923
c6d36836
RO
9242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
925
926 * procfs.c (procfs_pre_trace): New function.
927 (procfs_target::create_inferior): Pass it to fork_inferior.
928
a7e6196b
RO
9292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930
931 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
932 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
933 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
934 sol2-tdep.o, sparc-sol2-tdep.o.
935 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
936 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
937 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
938 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
939
d412e696
RO
9402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941
942 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
943 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
944 Call sol2_init_abi.
945 Remove calls to set_gdbarch_skip_solib_resolver,
946 set_gdbarch_core_pid_to_str.
947 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
948 (i386_sol2_static_transform_name): Remove.
949 (i386_sol2_init_abi): Call sol2_init_abi.
950 Remove calls to set_gdbarch_sofun_address_maybe_missing,
951 set_gdbarch_static_transform_name,
952 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
953 Use sol2_sigtramp_p.
954 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
955 (sol2_sigtramp_p): New function.
956 (sol2_static_transform_name): New function.
957 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
958 (sol2_init_abi): New function.
959 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
960 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
961 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
962 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
963 (sparc_sol2_static_transform_name): Remove.
964 (sparc32_sol2_init_abi): Call sol2_init_abi.
965 Remove calls to set_gdbarch_sofun_address_maybe_missing,
966 set_gdbarch_static_transform_name,
967 set_gdbarch_skip_solib_resolver,
968 set_gdbarch_core_pid_to_str.
969 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
970 (sparc_sol2_static_transform_name): Remove
971 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
972 call sol2_sigtramp_p.
973 (sparc64_sol2_init_abi): Call sol2_init_abi.
974 Remove calls to set_gdbarch_sofun_address_maybe_missing,
975 set_gdbarch_static_transform_name,
976 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
977
a8654e7d
PW
9782020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
979
980 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
981 * exec.c (validate_exec_file): If from_tty, set both
982 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
983 * symfile.c (symbol_file_add_with_addrs): if always_confirm
984 and from_tty, unconditionally ask a confirmation.
985
caa7fd04
AB
9862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * target-descriptions.c (tdesc_architecture_name): Protect against
989 NULL pointer dereference.
990 (maint_print_xml_tdesc_cmd): New function.
991 (_initialize_target_descriptions): Register new 'maint print
992 xml-tdesc' command and give it the filename completer.
993 * NEWS: Mention new 'maint print xml-tdesc' command.
994
fbf42f4e
AB
9952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * target-descriptions.c (class tdesc_compatible_info): New class.
998 (struct target_desc): Change type of compatible vector.
999 (tdesc_compatible_p): Update for change in type of
1000 target_desc::compatible.
1001 (tdesc_compatible_info_list): New function.
1002 (tdesc_compatible_info_arch_name): New function.
1003 (tdesc_add_compatible): Update for change in type of
1004 target_desc::compatible.
1005 (print_c_tdesc::visit_pre): Likewise.
1006
20821f4e
AB
10072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1010 whitespace to underscore.
1011 (maint_print_c_tdesc_cmd): Use fake filename for target
1012 descriptions that came from the target.
1013 (_initialize_target_descriptions): Add filename command completion
1014 for 'maint print c-tdesc'.
1015
1fb5ee62
SM
10162020-06-23 Simon Marchi <simon.marchi@efficios.com>
1017
1018 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1019 lines.
1020
fc3ecb3e
SM
10212020-06-23 Simon Marchi <simon.marchi@efficios.com>
1022
1023 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1024 lines.
1025 (dwarf2_find_location_expression): Likewise.
1026 (call_site_parameter_matches): Likewise.
1027 (dwarf2_compile_expr_to_ax): Likewise.
1028 (disassemble_dwarf_expression): Likewise.
1029 (loclist_describe_location): Likewise.
1030
236ef034
PA
10312020-06-23 Pedro Alves <palves@redhat.com>
1032
1033 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1034 progspace-and-thread.h. Include scoped-mock-context.h instead.
1035 (register_to_value_test): Use scoped_mock_context.
1036 * regcache.c: Include "scoped-mock-context.h".
1037 (cooked_read_test): Don't error out if a target is already pushed.
1038 Use scoped_mock_context. Adjust.
1039 * scoped-mock-context.h: New file.
1040
39e7ecca
AB
10412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1044 initializer.
1045 (ada_language::is_string_type_p): New member function.
1046 * c-lang.c (c_language_data): Delete la_is_string_type_p
1047 initializer.
1048 (cplus_language_data): Likewise.
1049 (asm_language_data): Likewise.
1050 (minimal_language_data): Likewise.
1051 * d-lang.c (d_language_data): Likewise.
1052 * f-lang.c (f_is_string_type_p): Delete function, implementation
1053 moved to f_language::is_string_type_p.
1054 (f_language_data): Delete la_is_string_type_p initializer.
1055 (f_language::is_string_type_p): New member function,
1056 implementation from f_is_string_type_p.
1057 * go-lang.c (go_is_string_type_p): Delete function, implementation
1058 moved to go_language::is_string_type_p.
1059 (go_language_data): Delete la_is_string_type_p initializer.
1060 (go_language::is_string_type_p): New member function,
1061 implementation from go_is_string_type_p.
1062 * language.c (language_defn::is_string_type_p): Define new member
1063 function.
1064 (default_is_string_type_p): Make static, add comment copied from
1065 header file.
1066 (unknown_language_data): Delete la_is_string_type_p initializer.
1067 (unknown_language::is_string_type_p): New member function.
1068 (auto_language_data): Delete la_is_string_type_p initializer.
1069 (auto_language::is_string_type_p): New member function.
1070 * language.h (language_data): Delete la_is_string_type_p field.
1071 (language_defn::is_string_type_p): Declare new function.
1072 (default_is_string_type_p): Delete desclaration, move comment to
1073 definition.
1074 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1075 moved to m2_language::is_string_type_p.
1076 (m2_language_data): Delete la_is_string_type_p initializer.
1077 (m2_language::is_string_type_p): New member function,
1078 implementation from m2_is_string_type_p.
1079 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1080 initializer.
1081 * opencl-lang.c (opencl_language_data): Likewise.
1082 * p-lang.c (pascal_is_string_type_p): Delete function,
1083 implementation moved to pascal_language::is_string_type_p.
1084 (pascal_language_data): Delete la_is_string_type_p initializer.
1085 (pascal_language::is_string_type_p): New member function,
1086 implementation from pascal_is_string_type_p.
1087 * rust-lang.c (rust_is_string_type_p): Delete function,
1088 implementation moved to rust_language::is_string_type_p.
1089 (rust_language_data): Delete la_is_string_type_p initializer.
1090 (rust_language::is_string_type_p): New member function,
1091 implementation from rust_is_string_type_p.
1092 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1093 is_string_type_p.
1094
4ffc13fb
AB
10952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * ada-lang.c (ada_language_data): Delete la_print_typedef
1098 initializer.
1099 (ada_language::print_typedef): New member function.
1100 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1101 (cplus_language_data): Likewise.
1102 (asm_language_data): Likewise.
1103 (minimal_language_data): Likewise.
1104 * d-lang.c (d_language_data): Likewise.
1105 * f-lang.c (f_language_data): Likewise.
1106 (f_language::print_typedef): New member function.
1107 * go-lang.c (go_language_data): Delete la_print_typedef
1108 initializer.
1109 * language.c (language_defn::print_typedef): Define member
1110 function.
1111 (unknown_language_data): Delete la_print_typedef initializer.
1112 (unknown_language::print_typedef): New member function.
1113 (auto_language_data): Delete la_print_typedef initializer.
1114 (auto_language::print_typedef): New member function.
1115 * language.h (language_data): Delete la_print_typedef field.
1116 (language_defn::print_typedef): Declare new member function.
1117 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1118 (default_print_typedef): Delete declaration.
1119 * m2-lang.c (m2_language_data): Delete la_print_typedef
1120 initializer.
1121 (m2_language::print_typedef): New member function.
1122 * objc-lang.c (objc_language_data): Delete la_print_typedef
1123 initializer.
1124 * opencl-lang.c (opencl_language_data): Likewise.
1125 * p-lang.c (pascal_language_data): Likewise.
1126 (pascal_language::print_typedef): New member function.
1127 * rust-lang.c (rust_print_typedef): Delete function,
1128 implementation moved to rust_language::print_typedef.
1129 (rust_language): Delete la_print_typedef initializer.
1130 (rust_language::print_typedef): New member function,
1131 implementation from rust_print_typedef.
1132 * typeprint.c (default_print_typedef): Delete.
1133
d711ee67
AB
11342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1137 (ada_language::printstr): New member function.
1138 * c-lang.c (c_language_data): Delete la_printstr initializer.
1139 (cplus_language_data): Likewise.
1140 (asm_language_data): Likewise.
1141 (minimal_language_data): Likewise.
1142 * d-lang.c (d_language_data): Likewise.
1143 * f-lang.c (f_printstr): Rename to f_language::printstr.
1144 (f_language_data): Delete la_printstr initializer.
1145 (f_language::printstr): New member function, implementation from
1146 f_printstr.
1147 * go-lang.c (go_language_data): Delete la_printstr initializer.
1148 * language.c (language_defn::printstr): Define new member
1149 function.
1150 (unk_lang_printstr): Delete.
1151 (unknown_language_data): Delete la_printstr initializer.
1152 (unknown_language::printstr): New member function.
1153 (auto_language_data): Delete la_printstr initializer.
1154 (auto_language::printstr): New member function.
1155 * language.h (language_data): Delete la_printstr field.
1156 (language_defn::printstr): Declare new member function.
1157 (LA_PRINT_STRING): Update call to printstr.
1158 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1159 (m2_language_data): Delete la_printstr initializer.
1160 (m2_language::printstr): New member function, implementation from
1161 m2_printstr.
1162 * objc-lang.c (objc_language_data): Delete la_printstr
1163 initializer.
1164 * opencl-lang.c (opencl_language_data): Likewise.
1165 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1166 (pascal_language_data): Delete la_printstr initializer.
1167 (pascal_language::printstr): New member function, implementation
1168 from pascal_printstr.
1169 * p-lang.h (pascal_printstr): Delete declaration.
1170 * rust-lang.c (rust_printstr): Update header comment.
1171 (rust_language_data): Delete la_printstr initializer.
1172 (rust_language::printstr): New member function.
1173
52b50f2c
AB
11742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1175
1176 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1177 (ada_language::printchar): New member function.
1178 * c-lang.c (c_language_data): Delete la_printchar initializer.
1179 (cplus_language_data): Likewise.
1180 (asm_language_data): Likewise.
1181 (minimal_language_data): Likewise.
1182 * d-lang.c (d_language_data): Likewise.
1183 * f-lang.c (f_printchar): Rename to f_language::printchar.
1184 (f_language_data): Delete la_printchar initializer.
1185 (f_language::printchar): New member function, implementation from
1186 f_printchar.
1187 * go-lang.c (go_language_data): Delete la_printchar initializer.
1188 * language.c (unk_lang_printchar): Delete.
1189 (language_defn::printchar): Define new member function.
1190 (unknown_language_data): Delete la_printchar initializer.
1191 (unknown_language::printchar): New member function.
1192 (auto_language_data): Delete la_printchar initializer.
1193 (auto_language::printchar): New member function.
1194 * language.h (language_data): Delete la_printchar field.
1195 (language_defn::printchar): Declare new member function.
1196 (LA_PRINT_CHAR): Update call to printchar.
1197 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1198 (m2_language::printchar): New member function.
1199 * objc-lang.c (objc_language_data): Delete la_printchar
1200 initializer.
1201 * opencl-lang.c (opencl_language_data): Likewise.
1202 * p-lang.c (pascal_language_data): Delete la_printchar
1203 initializer.
1204 (pascal_language::printchar): New member function.
1205 * rust-lang.c (rust_printchar): Rename to
1206 rust_language::printchar.
1207 (rust_language_data): Delete la_printchar initializer.
1208 (rust_language::printchar): New member function, implementation
1209 from rust_printchar.
1210
ec8cec5b
AB
12112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1214 (ada_language_data): Delete la_emitchar initializer.
1215 (ada_language::emitchar): New member function, implementation from
1216 emit_char.
1217 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1218 (cplus_language_data): Likewise.
1219 (asm_language_data): Likewise.
1220 (minimal_language_data): Likewise.
1221 * d-lang.c (d_language_data): Likewise.
1222 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1223 (f_language_data): Delete la_emitchar initializer.
1224 (f_language::emitchar): New member function, implementation from
1225 f_emit_char.
1226 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1227 * language.c (unk_lang_emit_char): Delete.
1228 (language_defn::emitchar): New member function definition.
1229 (unknown_language_data): Delete la_emitchar initializer.
1230 (unknown_language::emitchar): New member function.
1231 (auto_language_data): Delete la_emitchar initializer.
1232 (auto_language::emitchar): New member function.
1233 * language.h (language_data): Delete la_emitchar field.
1234 (language_defn::emitchar): New member field declaration.
1235 (LA_EMIT_CHAR): Update call to emitchar.
1236 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1237 (m2_language_data): Delete la_emitchar initializer.
1238 (m2_language::emitchar): New member function, implementation from
1239 m2_emit_char.
1240 * objc-lang.c (objc_language_data): Delete la_emitchar
1241 initializer.
1242 * opencl-lang.c (opencl_language_data): Likewise.
1243 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1244 (pascal_language_data): Delete la_emitchar initializer.
1245 (pascal_language::emitchar): New member function, implementation
1246 from pascal_emit_char.
1247 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1248 (rust_language_data): Delete la_emitchar initializer.
1249 (rust_language::emitchar): New member function, implementation
1250 from rust_emitchar.
1251
1bf9c363
AB
12522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1255 (ada_language_data): Delete la_post_parser initializer.
1256 (ada_language::post_parser): New member function.
1257 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1258 (cplus_language_data): Likewise.
1259 (asm_language_data): Likewise.
1260 (minimal_language_data): Likewise.
1261 * d-lang.c (d_language_data): Likewise.
1262 * f-lang.c (f_language_data): Likewise.
1263 * go-lang.c (go_language_data): Likewise.
1264 * language.c (unknown_language_data): Likewise.
1265 (auto_language_data): Likewise.
1266 * language.h (language_data): Delete la_post_parser field.
1267 (language_defn::post_parser): New member function.
1268 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1269 * objc-lang.c (objc_language_data): Likewise.
1270 * opencl-lang.c (opencl_language_data): Likewise.
1271 * p-lang.c (pascal_language_data): Likewise.
1272 * parse.c (parse_exp_in_context): Update call to post_parser.
1273 (null_post_parser): Delete definition.
1274 * parser-defs.h (null_post_parser): Delete declaration.
1275 * rust-lang.c (rust_language_data): Delete la_post_parser
1276 initializer.
1277
87afa652
AB
12782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * ada-lang.c (parse): Rename to ada_language::parser.
1281 (ada_language_data): Delete la_parser initializer.
1282 (ada_language::parser): New member function, implementation from
1283 parse.
1284 * c-lang.c (c_language_data): Delete la_parser initializer.
1285 (cplus_language_data): Likewise.
1286 (asm_language_data): Likewise.
1287 (minimal_language_data): Likewise.
1288 * d-lang.c (d_language_data): Likewise.
1289 (d_language::parser): New member function.
1290 * f-lang.c (f_language_data): Delete la_parser initializer.
1291 (f_language::parser): New member function.
1292 * go-lang.c (go_language_data): Delete la_parser initializer.
1293 (go_language::parser): New member function.
1294 * language.c (unk_lang_parser): Delete.
1295 (language_defn::parser): Define new member function.
1296 (unknown_language_data): Delete la_parser initializer.
1297 (unknown_language::parser): New member function.
1298 (auto_language_data): Delete la_parser initializer.
1299 (auto_language::parser): New member function.
1300 * language.h (language_data): Delete la_parser field.
1301 (language_defn::parser): Declare new member function.
1302 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1303 (m2_language::parser): New member function.
1304 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1305 * opencl-lang.c (opencl_language_data): Likewise.
1306 * p-lang.c (pascal_language_data): Likewise.
1307 (pascal_language::parser): New member function.
1308 * parse.c (parse_exp_in_context): Update call to parser.
1309 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1310 (rust_language::parser): New member function.
1311
37825800
AB
13122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * top.c (print_gdb_configuration): Print --with-python-libdir
1315 configuration value.
1316
5b860c93
PW
13172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1318
1319 * NEWS: Mention change to the alias command.
1320
cf00cd6f
PW
13212020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1322
1323 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1324 (alias_command_completer)
1325 (make_alias_options_def_group): New functions.
1326 (alias_opts, alias_option_defs): New struct and array.
1327 (alias_usage_error): Update usage.
1328 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1329 Use option framework.
1330 (_initialize_cli_cmds): Update alias command help.
1331 Update aliases command help.
1332 (show_user):
1333 Add NULL for new default_args lookup_cmd argument.
1334 (valid_command_p): Rename to validate_aliased_command.
1335 Add NULL for new default_args lookup_cmd argument. Verify that the
1336 aliased_command has no default args.
1337 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1338 (lookup_cmd_1, lookup_cmd): New argument default_args.
1339 (add_alias_cmd):
1340 Add NULL for new default_args lookup_cmd argument.
1341 (print_help_for_command): Show default args under the layout
1342 alias some_alias = some_aliased_cmd some_alias_default_arg.
1343 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1344 xfree default_args in destructor.
1345 * cli/cli-script.c (process_next_line, do_define_command):
1346 Add NULL for new default_args lookup_cmd argument.
1347 * command.h: Declare new default_args argument in lookup_cmd
1348 and lookup_cmd_1.
1349 * completer.c (complete_line_internal_1):
1350 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1351 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1352 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1353 Likewise.
1354 * infcmd.c (_initialize_infcmd): Likewise.
1355 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1356 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1357 * python/py-param.c (add_setshow_generic): Likewise.
1358 * remote.c (_initialize_remote): Likewise.
1359 * top.c (execute_command): Prepend default_args if command has some.
1360 (set_verbose):
1361 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1362 * tracepoint.c (validate_actionline, encode_actions_1):
1363 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1364
bd920864
TBA
13652020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1366
1367 * jit.c (jit_read_descriptor): Use bool as the return type.
1368 (jit_breakpoint_re_set_internal): Use bool as the return type.
1369 Invert the return value logic; return true if the jit breakpoint
1370 has been successfully initialized.
1371 (jit_inferior_init): Update the call to
1372 jit_breakpoint_re_set_internal.
1373
f8098322
PA
13742020-06-22 Pedro Alves <palves@redhat.com>
1375
1376 PR gdb/25939
1377 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1378 Use the current inferior instead. Don't return
1379 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1380 wait again.
1381 * sol-thread.c (sol_thread_target::wait): Don't reference
1382 inferior_ptid.
1383 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1384 (sol_update_thread_list_callback): Use the current inferior's pid
1385 instead of inferior_ptid.
1386
196535a6
RO
13872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1388
1389 * procfs.c: Cleanup many comments.
1390
1391 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1392 (AFTER_WATCHFLAG): Replace by value.
1393
1394 (MAIN_PROC_NAME_FORMAT): Inline ...
1395 (create_procinfo): ... here.
1396
1397 (procfs_debug_inferior): Remove SYS_exec handling.
1398 (syscall_is_exec): Likewise.
1399 (procfs_set_exec_trap): Likewise.
1400
1401 (syscall_is_lwp_exit): Inline in callers.
1402 (syscall_is_exit): Likewise.
1403 (syscall_is_exec): Likewise.
1404 (syscall_is_lwp_create): Likewise.
1405
1406 (invalidate_cache): Remove #if 0 code.
1407
1408 (make_signal_thread_runnable): Remove.
1409 (procfs_target::resume): Remove #if 0 code.
1410
cf6f3e86
RO
14112020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1412
1413 PR gdb/25939
1414 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1415 call ...
1416 (procfs_target::create_inferior): ... here.
1417
48e9cc84
PW
14182020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1419
1420 * exec.c (validate_exec_file): Ensure the build-id is up to
1421 date by calling reopen_exec_file (that checks file timestamp
1422 to decide to re-read the file).
1423
3922b302
PA
14242020-06-18 Pedro Alves <palves@redhat.com>
1425
1426 PR gdb/25412
1427 * gdbthread.h (delete_thread, delete_thread_silent)
1428 (find_thread_ptid): Update comments.
1429 * thread.c (current_thread_): New global.
1430 (is_current_thread): Move higher, and reimplement.
1431 (inferior_thread): Reimplement.
1432 (set_thread_exited): Use bool. Add assertions.
1433 (add_thread_silent): Simplify thread-reuse handling by always
1434 calling delete_thread.
1435 (delete_thread): Remove intro comment.
1436 (find_thread_ptid): Skip exited threads.
1437 (switch_to_thread_no_regs): Write to current_thread_.
1438 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1439 INFERIOR_PTID. Clear current_thread_.
1440
6dbdab44
PA
14412020-06-18 Pedro Alves <palves@redhat.com>
1442
1443 * aix-thread.c (pd_update): Use switch_to_thread.
1444
2da4b788
PA
14452020-06-18 Pedro Alves <palves@redhat.com>
1446
1447 * ravenscar-thread.c (ravenscar_thread_target): Update.
1448 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1449 (ravenscar_thread_target::add_active_thread): ... this. Don't
1450 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1451 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1452
50838d1b
PA
14532020-06-18 Pedro Alves <palves@redhat.com>
1454
1455 * nat/windows-nat.c (current_windows_thread): Remove.
1456 * nat/windows-nat.h (current_windows_thread): Remove.
1457 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1458 Adjust.
1459 (display_selectors): Adjust to fetch the current
1460 windows_thread_info based on inferior_ptid.
1461 (fake_create_process): No longer write to current_windows_thread.
1462 (windows_nat_target::get_windows_debug_event):
1463 Don't set inferior_ptid or current_windows_thread.
1464 (windows_nat_target::wait): Adjust to not rely on
1465 current_windows_thread.
1466 (do_initial_windows_stuff): Now a method of windows_nat_target.
1467 Switch to the last_ptid thread.
1468 (windows_nat_target::attach): Adjust.
1469 (windows_nat_target::detach): Use switch_to_no_thread instead of
1470 writing to inferior_ptid directly.
1471 (windows_nat_target::create_inferior): Adjust.
1472
31ce04e9
PA
14732020-06-18 Pedro Alves <palves@redhat.com>
1474
1475 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1476
1ee1a363
PA
14772020-06-18 Pedro Alves <palves@redhat.com>
1478
1479 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1480 after creating it, instead of writing to inferior_ptid. Don't
1481 write to inferior_ptid.
1482
6d350754
PA
14832020-06-18 Pedro Alves <palves@redhat.com>
1484
1485 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1486
5d971d48
PA
14872020-06-18 Pedro Alves <palves@redhat.com>
1488
1489 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1490 it, instead of writing to inferior_ptid.
1491
86e57d1b
PA
14922020-06-18 Pedro Alves <palves@redhat.com>
1493
1494 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1495 to inferior_ptid.
1496
f2e1c129
PA
14972020-06-18 Pedro Alves <palves@redhat.com>
1498
1499 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1500 instead of writing to inferior_ptid directly.
1501
60db1b85
PA
15022020-06-18 Pedro Alves <palves@redhat.com>
1503
1504 * corelow.c (core_target::close): Use switch_to_no_thread instead
1505 of writing to inferior_ptid directly.
1506 (add_to_thread_list, core_target_open): Use switch_to_thread
1507 instead of writing to inferior_ptid directly.
1508
fe7d6a8d
PA
15092020-06-18 Pedro Alves <palves@redhat.com>
1510
1511 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1512 inferior_ptid.
1513 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1514 inferior_ptid.
1515 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1516 inferior_ptid directly.
1517 (darwin_nat_target::init_thread_list): Switch to thread, instead
1518 of writing to inferior_ptid.
1519 (darwin_nat_target::attach): Don't write to inferior_ptid.
1520 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1521
975f8708
PA
15222020-06-18 Pedro Alves <palves@redhat.com>
1523
1524 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1525 thread.
1526 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1527 Instead use switch_to_thread.
1528 (gnu_nat_target::detach): Use switch_to_no_thread
1529 instead of writing to inferior_ptid directly. Used passed-in
1530 inferior instead of looking up the inferior by pid.
1531
1a204730
PA
15322020-06-18 Pedro Alves <palves@redhat.com>
1533
1534 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1535 inferior_ptid.
1536
ebe84f23
PA
15372020-06-18 Pedro Alves <palves@redhat.com>
1538
1539 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1540 inferior_ptid.
1541 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1542 thread.
1543 (nto_procfs_target::detach): Avoid referencing
1544 inferior_ptid. Use switch_to_no_thread instead of writing to
1545 inferior_ptid directly.
1546 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1547 instead of writing to inferior_ptid directly.
1548 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1549 to thread.
1550
191f02e5
PA
15512020-06-18 Pedro Alves <palves@redhat.com>
1552
1553 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1554 after creating it, instead of writing to inferior_ptid.
1555 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1556 to inferior_ptid directly.
1557 (gdbsim_target::wait): Don't write to inferior_ptid.
1558
0ac55310
PA
15592020-06-18 Pedro Alves <palves@redhat.com>
1560
1561 * remote.c (remote_target::remote_notice_new_inferior): Use
1562 switch_to_thread instead of writing to inferior_ptid directly.
1563 (remote_target::add_current_inferior_and_thread): Use
1564 switch_to_no_thread instead of writing to inferior_ptid directly.
1565 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1566 and switch_to_thread instead of using set_current_inferior or
1567 writing to inferior_ptid directly.
1568
5233f39b
PA
15692020-06-18 Pedro Alves <palves@redhat.com>
1570
1571 * tracectf.c (ctf_target_open): Switch to added thread instead of
1572 writing to inferior_ptid directly.
1573 (ctf_target::close): Use switch_to_no_thread instead of writing to
1574 inferior_ptid directly.
1575
087e161b
PA
15762020-06-18 Pedro Alves <palves@redhat.com>
1577
1578 * tracefile-tfile.c (tfile_target_open): Don't write to
1579 inferior_ptid directly, instead switch to added thread.
1580 (tfile_target::close): Use switch_to_no_thread instead of writing
1581 to inferior_ptid directly.
1582
7fb43e53
PA
15832020-06-18 Pedro Alves <palves@redhat.com>
1584
1585 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1586 (procfs_target::detach): Use switch_to_no_thread
1587 instead of writing to inferior_ptid directly.
1588 (do_attach): Change return type to void. Switch to the added
1589 thread.
1590 (procfs_target::create_inferior): Switch to the added thread.
1591 (procfs_do_thread_registers): Don't write to inferior_ptid.
1592
18493a00
PA
15932020-06-18 Pedro Alves <palves@redhat.com>
1594
1595 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1596 of writing to inferior_ptid.
1597 (scoped_restore_exited_inferior): Delete.
1598 (handle_vfork_child_exec_or_exit): Simplify using
1599 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1600 instead of writing to inferior_ptid.
1601 (THREAD_STOPPED_BY): Delete.
1602 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1603 (thread_stopped_by_hw_breakpoint): Delete.
1604 (save_waitstatus): Use
1605 scoped_restore_current_thread+switch_to_thread, and call
1606 target_stopped_by_watchpoint instead of
1607 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1608 instead of thread_stopped_by_sw_breakpoint, and
1609 target_stopped_by_hw_breakpoint instead of
1610 thread_stopped_by_hw_breakpoint.
1611 (handle_inferior_event)
1612 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1613 inferior_ptid directly, nor
1614 set_current_inferior/set_current_program_space. Use
1615 switch_to_thread / switch_to_inferior_no_thread instead.
1616
a0776b13
PA
16172020-06-18 Pedro Alves <palves@redhat.com>
1618
1619 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1620 instead of writing to inferior_ptid.
1621
6155c136
PA
16222020-06-18 Pedro Alves <palves@redhat.com>
1623
1624 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1625 added thread.
1626 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1627 to the added thread.
1628 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1629 instead of writing to inferior_ptid.
1630
c5316fc6
PA
16312020-06-18 Pedro Alves <palves@redhat.com>
1632
1633 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1634 (register_to_value_test): Mock a program_space too. Heap-allocate
1635 the address space. Don't write to inferior_ptid. Use
1636 switch_to_thread instead.
1637
8df01799
PA
16382020-06-18 Pedro Alves <palves@redhat.com>
1639
1640 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1641 Delete.
1642 (find_signalled_thread()): New, factored out from
1643 linux_make_corefile_notes and adjusted to handle exited threads.
1644 (linux_make_corefile_notes): Adjust to use the new
1645 find_signalled_thread.
1646
41792d68
PA
16472020-06-18 Pedro Alves <palves@redhat.com>
1648
1649 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1650 of saving/restoring inferior_ptid.
1651
612f258a
TT
16522020-06-17 Tom Tromey <tom@tromey.com>
1653
1654 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1655 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1656 declare.
1657 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1658
efb763a5
SM
16592020-06-15 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1662 of partial symtabs.
1663
2951f6c0
SM
16642020-06-17 Simon Marchi <simon.marchi@efficios.com>
1665
1666 * regformats/reg-arm.dat: Remove.
1667 * regformats/reg-bfin.dat: Remove.
1668 * regformats/reg-cris.dat: Remove.
1669 * regformats/reg-crisv32.dat: Remove.
1670 * regformats/reg-m32r.dat: Remove.
1671 * regformats/reg-tilegx.dat: Remove.
1672 * regformats/reg-tilegx32.dat: Remove.
1673
7d458ea5
SM
16742020-06-17 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * features/Makefile (WHICH): Remove arm files.
1677 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1678 * regformats/arm/arm-with-neon.dat: Remove.
1679 * regformats/arm/arm-with-vfpv2.dat: Remove.
1680 * regformats/arm/arm-with-vfpv3.dat: Remove.
1681
3af96c0d
SM
16822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * features/Makefile (XMLTOC): Remove rx.xml.
1685
b25e22fd
PA
16862020-06-17 Pedro Alves <palves@redhat.com>
1687
1688 * gdbthread.h (thread_control_state) <trap_expected> Update
1689 comments.
1690
a78a19b1
AB
16912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1694 ada_language::lookup_symbol_nonlocal.
1695 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1696 (ada_language::lookup_symbol_nonlocal): New member function,
1697 implementation from ada_lookup_symbol_nonlocal.
1698 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1699 initializer.
1700 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1701 initializer.
1702 (cplus_language::lookup_symbol_nonlocal): New member function.
1703 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1704 (minimal_language_data) Likewise.
1705 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1706 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1707 initializer.
1708 (d_language::lookup_symbol_nonlocal): New member function.
1709 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1710 initializer.
1711 (f_language::lookup_symbol_nonlocal): New member function.
1712 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1713 initializer.
1714 * language.c (unknown_language_data): Likewise.
1715 (auto_language_data): Likewise.
1716 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1717 field.
1718 (language_defn::lookup_symbol_nonlocal): New member function.
1719 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1720 initializer.
1721 * objc-lang.c (objc_language_data): Likewise.
1722 * opencl-lang.c (opencl_language_data): Likewise.
1723 * p-lang.c (pascal_language_data): Likewise.
1724 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1725 rust_language::lookup_symbol_nonlocal.
1726 (rust_language_data): Delete la_lookup_symbol_nonlocal
1727 initializer.
1728 (rust_language::lookup_symbol_nonlocal): New member function,
1729 implementation from rust_lookup_symbol_nonlocal.
1730 * symtab.c (lookup_symbol_aux): Update call to
1731 lookup_symbol_nonlocal.
1732 (basic_lookup_symbol_nonlocal): Rename to...
1733 (language_defn::lookup_symbol_nonlocal): ...this, and update
1734 header comment. Remove language_defn parameter, and replace with
1735 uses of `this'.
1736 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1737
ebe2334e
AB
17382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1741 initializer.
1742 (ada_language::value_print_inner): New member function.
1743 * c-lang.c (c_language_data): Delete la_value_print_inner
1744 initializer.
1745 (cplus_language_data): Likewise.
1746 (asm_language_data): Likewise.
1747 (minimal_language_data): Likewise.
1748 * d-lang.c (d_language_data): Likewise.
1749 (d_language::value_print_inner): New member function.
1750 * f-lang.c (f_language_data): Delete la_value_print_inner
1751 initializer.
1752 (f_language::value_print_inner): New member function.
1753 * f-lang.h (f_value_print_innner): Rename to...
1754 (f_value_print_inner): ...this (note spelling of 'inner').
1755 * f-valprint.c (f_value_print_innner): Rename to...
1756 (f_value_print_inner): ...this (note spelling of 'inner').
1757 * go-lang.c (go_language_data): Delete la_value_print_inner
1758 initializer.
1759 (go_language::value_print_inner): New member function.
1760 * language.c (language_defn::value_print_inner): Define new member
1761 function.
1762 (unk_lang_value_print_inner): Delete.
1763 (unknown_language_data): Delete la_value_print_inner initializer.
1764 (unknown_language::value_print_inner): New member function.
1765 (auto_language_data): Delete la_value_print_inner initializer.
1766 (auto_language::value_print_inner): New member function.
1767 * language.h (language_data): Delete la_value_print_inner field.
1768 (language_defn::value_print_inner): Delcare new member function.
1769 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1770 initializer.
1771 (m2_language::value_print_inner): New member function.
1772 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1773 initializer.
1774 * opencl-lang.c (opencl_language_data): Likewise.
1775 * p-lang.c (pascal_language_data): Likewise.
1776 (pascal_language::value_print_inner): New member function.
1777 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1778 initializer.
1779 (rust_language::value_print_inner): New member function.
1780 * valprint.c (do_val_print): Update call to value_print_inner.
1781
a1d1fa3e
AB
17822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * ada-lang.c (ada_language_data): Delete la_value_print
1785 initializer.
1786 (ada_language::value_print): New member function.
1787 * c-lang.c (c_language_data): Delete la_value_print initializer.
1788 (cplus_language_data): Likewise.
1789 (asm_language_data): Likewise.
1790 (minimal_language_data): Likewise.
1791 * d-lang.c (d_language_data): Likewise.
1792 * f-lang.c (f_language_data): Likewise.
1793 * go-lang.c (go_language_data): Likewise.
1794 * language.c (unk_lang_value_print): Delete.
1795 (language_defn::value_print): Define new member function.
1796 (unknown_language_data): Delete la_value_print initializer.
1797 (unknown_language::value_print): New member function.
1798 (auto_language_data): Delete la_value_print initializer.
1799 (auto_language::value_print): New member function.
1800 * language.h (language_data): Delete la_value_print field.
1801 (language_defn::value_print): Declare new member function.
1802 (LA_VALUE_PRINT): Update call to value_print.
1803 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1804 * objc-lang.c (objc_language_data): Likewise.
1805 * opencl-lang.c (opencl_language_data): Likewise.
1806 * p-lang.c (pascal_language_data): Likewise.
1807 (pascal_language::value_print): New member function.
1808 * rust-lang.c (rust_language_data): Delete la_value_print
1809 initializer.
1810
f16a9f57
AB
18112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * ada-lang.c (ada_watch_location_expression): Rename to
1814 ada_language::watch_location_expression.
1815 (ada_language_data): Delete la_watch_location_expression
1816 initializer.
1817 (ada_language::watch_location_expression): New member function,
1818 implementation from ada_watch_location_expression.
1819 * breakpoint.c (watch_command_1): Update call to
1820 watch_location_expression.
1821 * c-lang.c (c_watch_location_expression): Rename to
1822 language_defn::watch_location_expression.
1823 (c_language_data): Delete la_watch_location_expression
1824 initializer.
1825 (cplus_language_data): Likewise.
1826 (asm_language_data): Likewise.
1827 (minimal_language_data): Likewise.
1828 * c-lang.h (c_watch_location_expression): Delete declaration.
1829 * d-lang.c (d_language_data): Delete la_watch_location_expression
1830 initializer.
1831 * f-lang.c (f_language_data): Likewise.
1832 * go-lang.c (go_language_data): Likewise.
1833 * language.c (language_defn::watch_location_expression): Member
1834 function implementation from c_watch_location_expression.
1835 (unknown_language_data): Delete la_watch_location_expression
1836 initializer.
1837 (auto_language_data): Likewise.
1838 * language.h (language_data): Delete la_watch_location_expression
1839 field.
1840 (language_defn::watch_location_expression): Declare new member
1841 function.
1842 * m2-lang.c (m2_language_data): Delete
1843 la_watch_location_expression initializer.
1844 * objc-lang.c (objc_language_data): Likewise.
1845 * opencl-lang.c (opencl_language_data): Likewise.
1846 * p-lang.c (pascal_language_data): Likewise.
1847 * rust-lang.c (rust_watch_location_expression): Rename to
1848 rust_language::watch_location_expression.
1849 (rust_language_data): Delete la_watch_location_expression
1850 initializer.
1851 (rust_language::watch_location_expression): New member function,
1852 implementation from rust_watch_location_expression.
1853
7e56227d
AB
18542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1857 ada_language::collect_symbol_completion_matches.
1858 (ada_language_data): Delete la_collect_symbol_completion_matches
1859 initializer.
1860 (ada_language::collect_symbol_completion_matches): New member
1861 function, implementation from
1862 ada_collect_symbol_completion_matches.
1863 * c-lang.c (c_language_data): Delete
1864 la_collect_symbol_completion_matches initializer.
1865 (cplus_language_data): Likewise.
1866 (asm_language_data): Likewise.
1867 (minimal_language_data): Likewise.
1868 * d-lang.c (d_language_data): Likewise.
1869 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1870 f_language::collect_symbol_completion_matches.
1871 (f_language_data): Delete la_collect_symbol_completion_matches
1872 initializer.
1873 (f_language::collect_symbol_completion_matches) New member
1874 function, implementation from f_collect_symbol_completion_matches.
1875 * go-lang.c (go_language_data): Delete
1876 la_collect_symbol_completion_matches initializer.
1877 * language.c (unknown_language_data): Likewise.
1878 (auto_language_data): Likewise.
1879 * language.h (language_data): Delete
1880 la_collect_symbol_completion_matches field.
1881 (language_defn::collect_symbol_completion_matches): New member
1882 function.
1883 * m2-lang.c (m2_language_data): Delete
1884 la_collect_symbol_completion_matches initializer.
1885 * objc-lang.c (objc_language_data): Likewise.
1886 * opencl-lang.c (opencl_language_data): Likewise.
1887 * p-lang.c (pascal_language_data): Likewise.
1888 * rust-lang.c (rust_language_data): Likewise.
1889 * symtab.c (default_collect_symbol_completion_matches): Delete.
1890 (collect_symbol_completion_matches): Update call to
1891 collect_symbol_completion_matches.
1892 (collect_symbol_completion_matches_type): Likewise.
1893 * symtab.h (default_collect_symbol_completion_matches): Delete
1894 declaration.
1895
53fc67f8
AB
18962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1899 (ada_language_data): Delete la_word_break_characters initializer.
1900 (ada_language::word_break_characters): New member function.
1901 * c-lang.c (c_language_data): Delete la_word_break_characters
1902 initializer.
1903 (cplus_language_data): Likewise.
1904 (asm_language_data): Likewise.
1905 (minimal_language_data): Likewise.
1906 * completer.c: Update global comment.
1907 (advance_to_expression_complete_word_point): Update call to
1908 word_break_characters.
1909 (complete_files_symbols): Likewise.
1910 (complete_line_internal_1): Likewise.
1911 (default_completer_handle_brkchars): Likewise.
1912 (skip_quoted_chars): Likewise.
1913 * d-lang.c (d_language_data): Delete la_word_break_characters
1914 initializer.
1915 * f-lang.c (f_word_break_characters): Delete.
1916 (f_language_data): Delete la_word_break_characters initializer.
1917 (f_language::word_break_characters): New member function.
1918 * go-lang.c (go_language_data): Delete la_word_break_characters
1919 initializer.
1920 * language.c (unknown_language_data): Likewise.
1921 (auto_language_data): Likewise.
1922 * language.h (default_word_break_characters): Move declaration to
1923 earlier in the file.
1924 (language_data): Delete la_word_break_characters field.
1925 (language_defn::word_break_characters): New member function.
1926 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1927 initializer.
1928 * objc-lang.c (objc_language_data): Likewise.
1929 * opencl-lang.c (opencl_language_data): Likewise.
1930 * p-lang.c (pascal_language_data): Likewise.
1931 * rust-lang.c (rust_language_data): Likewise.
1932
c9debfb9
AB
19332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1936 (ada_language_data): Delete la_get_symbol_name_matcher
1937 initializer.
1938 (language_defn::get_symbol_name_matcher_inner): New member
1939 function.
1940 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1941 initializer.
1942 (cplus_language_data): Likewise.
1943 (cplus_language::get_symbol_name_matcher_inner): New member
1944 function.
1945 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1946 (minimal_language_data): Likewise.
1947 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1948 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1949 initializer.
1950 * dictionary.c (iter_match_first_hashed): Update call to
1951 get_symbol_name_matcher.
1952 (iter_match_next_hashed): Likewise.
1953 (iter_match_next_linear): Likewise.
1954 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1955 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1956 initializer.
1957 (f_language::get_symbol_name_matcher_inner): New member function.
1958 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1959 initializer.
1960 * language.c (default_symbol_name_matcher): Update header comment,
1961 make static.
1962 (language_defn::get_symbol_name_matcher): New definition.
1963 (language_defn::get_symbol_name_matcher_inner): Likewise.
1964 (get_symbol_name_matcher): Delete.
1965 (unknown_language_data): Delete la_get_symbol_name_matcher
1966 initializer.
1967 (auto_language_data): Likewise.
1968 * language.h (language_data): Delete la_get_symbol_name_matcher
1969 field.
1970 (language_defn::get_symbol_name_matcher): New member function.
1971 (language_defn::get_symbol_name_matcher_inner): Likewise.
1972 (default_symbol_name_matcher): Delete declaration.
1973 * linespec.c (find_methods): Update call to
1974 get_symbol_name_matcher.
1975 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1976 initializer.
1977 * minsyms.c (lookup_minimal_symbol): Update call to
1978 get_symbol_name_matcher.
1979 (iterate_over_minimal_symbols): Likewise.
1980 * objc-lang.c (objc_language_data): Delete
1981 la_get_symbol_name_matcher initializer.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_language_data): Likewise.
1984 * psymtab.c (psymbol_name_matches): Update call to
1985 get_symbol_name_matcher.
1986 * rust-lang.c (rust_language_data): Delete
1987 la_get_symbol_name_matcher initializer.
1988 * symtab.c (symbol_matches_search_name): Update call to
1989 get_symbol_name_matcher.
1990 (compare_symbol_name): Likewise.
1991
9a49ad8c
AB
19922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * ada-lang.c (ada_language_data): Delete la_compute_program
1995 initializer.
1996 * c-lang.c (c_language_data): Likewise.
1997 (c_language::compute_program): New member function.
1998 (cplus_language_data): Delete la_compute_program initializer.
1999 (cplus_language::compute_program): New member function.
2000 (asm_language_data): Delete la_compute_program initializer.
2001 (minimal_language_data): Likewise.
2002 * c-lang.h (c_compute_program): Update comment.
2003 (cplus_compute_program): Likewise.
2004 * compile/compile-c-support.c (c_compute_program): Likewise.
2005 (cplus_compute_program): Likewise.
2006 * compile/compile.c (compile_to_object): Update call to
2007 la_compute_program.
2008 * d-lang.c (d_language_data): Delete la_compute_program
2009 initializer.
2010 * f-lang.c (f_language_data): Likewise.
2011 * go-lang.c (go_language_data): Likewise.
2012 * language.c (unknown_language_data): Likewise.
2013 (auto_language_data): Likewise.
2014 * language.h (language_data): Delete la_compute_program field.
2015 (language_defn::compute_program): New member function.
2016 * m2-lang.c (m2_language_data): Delete la_compute_program
2017 initializer.
2018 * objc-lang.c (objc_language_data): Likewise.
2019 * opencl-lang.c (opencl_language_data): Likewise.
2020 * p-lang.c (pascal_language_data): Likewise.
2021 * rust-lang.c (rust_language_data): Likewise.
2022
eff93b4d
AB
20232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * ada-lang.c (ada_language_data) Delete
2026 la_class_name_from_physname initializer.
2027 * c-lang.c (c_language_data): Likewise.
2028 (cplus_language_data): Likewise.
2029 (cplus_language::class_name_from_physname): New member function.
2030 (asm_language_data): Delete la_class_name_from_physname
2031 initializer.
2032 (minimal_language_data): Likewise.
2033 * d-lang.c (d_language_data): Likewise.
2034 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2035 method on language_defn class.
2036 (guess_full_die_structure_name): Likewise.
2037 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2038 initializer.
2039 * go-lang.c (go_language_data): Likewise.
2040 * language.c (language_class_name_from_physname): Delete.
2041 (unk_lang_class_name): Delete.
2042 (unknown_language_data): Delete la_class_name_from_physname
2043 initializer.
2044 (auto_language_data): Likewise.
2045 * language.h (language_data): Delete la_class_name_from_physname
2046 field.
2047 (language_defn::class_name_from_physname): New function.
2048 (language_class_name_from_physname): Delete declaration.
2049 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2050 initializer.
2051 * objc-lang.c (objc_language_data): Likewise.
2052 * opencl-lang.c (opencl_language_data): Likewise.
2053 * p-lang.c (pascal_language_data): Likewise.
2054 * rust-lang.c (rust_language_data): Likewise.
2055
de543742
TT
20562020-06-16 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-data.h (STATUS_NAME): New macro.
2059 * tui/tui-layout.c (tui_remove_some_windows)
2060 (initialize_known_windows, tui_register_window)
2061 (tui_layout_split::remove_windows, initialize_layouts)
2062 (tui_new_layout_command): Don't use hard-coded window names.
2063
a350efd4
TT
20642020-06-16 Tom Tromey <tom@tromey.com>
2065
2066 PR tui/25348:
2067 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2068 tui_initialize_readline. Only run once. Call rl_initialize.
2069 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2070 tui_initialize_readline.
2071 * tui/tui-io.c (tui_setup_io): Call
2072 tui_ensure_readline_initialized.
2073 * tui/tui-interp.c (tui_interp::init): Update.
2074
39ec0490
TT
20752020-06-16 Tom Tromey <tom@tromey.com>
2076
2077 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2078 Also preserve the status window.
2079
d2d1ea20
TT
20802020-06-16 Tom Tromey <tom@tromey.com>
2081
2082 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2083 where m_window==nullptr.
2084
66920317
TT
20852020-06-15 Tom Tromey <tromey@adacore.com>
2086
2087 * windows-nat.c (windows_nat::handle_output_debug_string):
2088 Update.
2089 (windows_nat::handle_ms_vc_exception): Update.
2090 * target.h (target_read_string): Change API.
2091 * target.c (target_read_string): Change API.
2092 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2093 Update.
2094 * solib-frv.c (frv_current_sos): Update.
2095 * solib-dsbt.c (dsbt_current_sos): Update.
2096 * solib-darwin.c (darwin_current_sos): Update.
2097 * linux-thread-db.c (inferior_has_bug): Update.
2098 * expprint.c (print_subexp_standard): Update.
2099 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2100 (ada_exception_message_1): Update.
2101
a5d871dd
TT
21022020-06-15 Tom Tromey <tromey@adacore.com>
2103
2104 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2105
670e35fa
TT
21062020-06-15 Tom Tromey <tromey@adacore.com>
2107
2108 * valprint.c (read_string): Update comment.
2109 * target.c (MIN): Remove.
2110 (target_read_string): Rewrite.
2111
f5272a3b
TT
21122020-06-15 Tom Tromey <tromey@adacore.com>
2113
2114 * corefile.c (read_memory_string): Remove.
2115 * ada-valprint.c (ada_value_print_ptr): Update.
2116 * ada-lang.h (ada_tag_name): Change return type.
2117 * ada-lang.c (type_from_tag): Update.
2118 (ada_tag_name_from_tsd): Change return type. Use
2119 target_read_string.
2120 (ada_tag_name): Likewise.
2121 * gdbcore.h (read_memory_string): Don't declare.
2122
2c074f49
HD
21232020-06-14 Hannes Domani <ssbssa@yahoo.de>
2124
2125 * symtab.c (rbreak_command): Ignore Windows drive colon.
2126
6a17d503
SM
21272020-06-12 Simon Marchi <simon.marchi@efficios.com>
2128
2129 * NEWS: Mention removed GDBserver host support.
2130
453c733f
NC
21312020-06-12 Nelson Chu <nelson.chu@sifive.com>
2132
2133 * features/riscv/rebuild-csr-xml.sh: Updated.
2134
2b4e6a3f
TT
21352020-06-11 Tom Tromey <tom@tromey.com>
2136
2137 PR gdb/18318:
2138 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2139
4412332f
JG
21402020-06-09 Jonny Grant <jg@jguk.org>
21412020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * main.c (captured_main_1): Don't print new line after help.
2144 (print_gdb_help): add mailing list and IRC channel information
2145 to --help. Add new lines between items in the footer. Remove
2146 quotes around bug url.
2147
2f33032a
KS
21482020-06-11 Keith Seitz <keiths@redhat.com>
2149
2150 PR gdb/21356
2151 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2152 Resolve typedefs for type length calculations.
2153
7ab96794
TV
21542020-06-10 Tom de Vries <tdevries@suse.de>
2155
2156 PR ada/24713
2157 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2158 (write_psymbols): Enable .gdb_index for ada.
2159 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2160 ada.
2161
e5f3ece2
TV
21622020-06-10 Tom de Vries <tdevries@suse.de>
2163
2164 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2165 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2166 namei" instead of "const char *name" argument.
2167 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2168 dw2_symtab_iter_init.
2169
940da03e
SM
21702020-06-08 Simon Marchi <simon.marchi@efficios.com>
2171
2172 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2173 to use type::field and field::type instead.
2174
b6cdac4b
SM
21752020-06-08 Simon Marchi <simon.marchi@efficios.com>
2176
2177 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2178 to use field::type instead.
2179
5d14b6e5
SM
21802020-06-08 Simon Marchi <simon.marchi@efficios.com>
2181
2182 * gdbtypes.h (struct field) <type, set_type>: New methods.
2183 Rename `type` field to...
2184 <m_type>: ... this. Change references throughout to use type or
2185 set_type methods.
2186 (FIELD_TYPE): Use field::type. Change call sites that modify
2187 the field's type to use field::set_type instead.
2188
3d967001
SM
21892020-06-08 Simon Marchi <simon.marchi@efficios.com>
2190
2191 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2192 to use type::index_type instead.
2193
262abc0d
SM
21942020-06-08 Simon Marchi <simon.marchi@efficios.com>
2195
2196 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2197 methods.
2198 (TYPE_INDEX_TYPE): Use type::index_type.
2199 * gdbtypes.c (create_array_type_with_stride): Likewise.
2200
82836c92
TT
22012020-06-07 Tom Tromey <tom@tromey.com>
2202
2203 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2204 parameter.
2205 (generic_value_print): Update.
2206
940dace9
AB
22072020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 Revert commit 982a38f60b0.
2210 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2211
982a38f6
AB
22122020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2215 avoid use after free.
2216
82f06518
TV
22172020-06-05 Tom de Vries <tdevries@suse.de>
2218
2219 * NEWS: Fix typos.
2220
f8c41851
SM
22212020-06-04 Simon Marchi <simon.marchi@efficios.com>
2222
2223 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2224 the per_bfd object.
2225 (dwarf2_read_debug_names): Likewise.
2226 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2227 object when re-using a per_bfd object with an index.
2228
f9b5d5ea
TV
22292020-06-03 Tom de Vries <tdevries@suse.de>
2230
2231 PR symtab/26046
2232 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2233 children for C++.
2234 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2235 DW_TAG_subprogram.
2236
f6eee2d0
AB
22372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * ada-lang.c (ada_language_data): Delete skip_trampoline
2240 initializer.
2241 * c-lang.c (c_language_data): Likewise.
2242 (cplus_language_data): Likewise.
2243 (cplus_language::skip_trampoline): New member function.
2244 (asm_language_data): Delete skip_trampoline initializer.
2245 (minimal_language_data): Likewise.
2246 * d-lang.c (d_language_data): Likewise.
2247 * f-lang.c (f_language_data): Likewise.
2248 * go-lang.c (go_language_data): Likewise.
2249 * language.c (unk_lang_trampoline): Delete function.
2250 (skip_language_trampoline): Update.
2251 (unknown_language_data): Delete skip_trampoline initializer.
2252 (auto_language_data): Likewise.
2253 * language.h (language_data): Delete skip_trampoline field.
2254 (language_defn::skip_trampoline): New function.
2255 * m2-lang.c (m2_language_data): Delete skip_trampoline
2256 initializer.
2257 * objc-lang.c (objc_skip_trampoline): Delete function, move
2258 implementation to objc_language::skip_trampoline.
2259 (objc_language_data): Delete skip_trampoline initializer.
2260 (objc_language::skip_trampoline): New member function with
2261 implementation from objc_skip_trampoline.
2262 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2263 initializer.
2264 * p-lang.c (pascal_language_data): Likewise.
2265 * rust-lang.c (rust_language_data): Likewise.
2266
0a50df5d
AB
22672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2270 (ada_language::demangle): New member function.
2271 * c-lang.c (c_language_data): Delete la_demangle initializer.
2272 (cplus_language_data): Delete la_demangle initializer.
2273 (cplus_language::demangle): New member function.
2274 (asm_language_data): Delete la_demangle initializer.
2275 (minimal_language_data): Delete la_demangle initializer.
2276 * d-lang.c (d_language_data): Delete la_demangle initializer.
2277 (d_language::demangle): New member function.
2278 * f-lang.c (f_language_data): Delete la_demangle initializer.
2279 (f_language::demangle): New member function.
2280 * go-lang.c (go_language_data): Delete la_demangle initializer.
2281 (go_language::demangle): New member function.
2282 * language.c (language_demangle): Update.
2283 (unk_lang_demangle): Delete.
2284 (unknown_language_data): Delete la_demangle initializer.
2285 (unknown_language::demangle): New member function.
2286 (auto_language_data): Delete la_demangle initializer.
2287 (auto_language::demangle): New member function.
2288 * language.h (language_data): Delete la_demangle field.
2289 (language_defn::demangle): New function.
2290 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2291 * objc-lang.c (objc_language_data): Delete la_demangle
2292 initializer.
2293 (objc_language::demangle): New member function.
2294 * opencl-lang.c (opencl_language_data): Delete la_demangle
2295 initializer.
2296 * p-lang.c (pascal_language_data): Likewise.
2297 * rust-lang.c (rust_language_data): Likewise.
2298 (rust_language::demangle): New member function.
2299
fbfb0a46
AB
23002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * ada-lang.c (ada_language_data): Delete la_print_type
2303 initializer.
2304 (ada_language::print_type): New member function.
2305 * c-lang.c (c_language_data): Delete la_print_type initializer.
2306 (c_language::print_type): New member function.
2307 (cplus_language_data): Delete la_print_type initializer.
2308 (cplus_language::print_type): New member function.
2309 (asm_language_data): Delete la_print_type initializer.
2310 (asm_language::print_type): New member function.
2311 (minimal_language_data): Delete la_print_type initializer.
2312 (minimal_language::print_type): New member function.
2313 * d-lang.c (d_language_data): Delete la_print_type initializer.
2314 (d_language::print_type): New member function.
2315 * f-lang.c (f_language_data): Delete la_print_type initializer.
2316 (f_language::print_type): New member function.
2317 * go-lang.c (go_language_data): Delete la_print_type initializer.
2318 (go_language::print_type): New member function.
2319 * language.c (unk_lang_print_type): Delete.
2320 (unknown_language_data): Delete la_print_type initializer.
2321 (unknown_language::print_type): New member function.
2322 (auto_language_data): Delete la_print_type initializer.
2323 (auto_language::print_type): New member function.
2324 * language.h (language_data): Delete la_print_type field.
2325 (language_defn::print_type): New function.
2326 (LA_PRINT_TYPE): Update.
2327 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2328 (m2_language::print_type): New member function.
2329 * objc-lang.c (objc_language_data): Delete la_print_type
2330 initializer.
2331 (objc_language::print_type): New member function.
2332 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2333 to opencl_language::print_type.
2334 (opencl_language_data): Delete la_print_type initializer.
2335 (opencl_language::print_type): New member function, implementation
2336 from opencl_print_type.
2337 * p-lang.c (pascal_language_data): Delete la_print_type
2338 initializer.
2339 (pascal_language::print_type): New member function.
2340 * rust-lang.c (rust_print_type): Delete, implementation moved to
2341 rust_language::print_type.
2342 (rust_language_data): Delete la_print_type initializer.
2343 (rust_language::print_type): New member function, implementation
2344 from rust_print_type.
2345
6f827019
AB
23462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2349 implementation moves to...
2350 (ada_language::sniff_from_mangled_name): ...here. Update return
2351 type.
2352 (ada_language_data): Delete la_sniff_from_mangled_name
2353 initializer.
2354 * c-lang.c (c_language_data): Likewise.
2355 (cplus_language_data): Likewise.
2356 (cplus_language::sniff_from_mangled_name): New member function,
2357 implementation taken from gdb_sniff_from_mangled_name.
2358 (asm_language_data): Delete la_sniff_from_mangled_name
2359 initializer.
2360 (minimal_language_data): Likewise.
2361 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2362 implementation moves to cplus_language::sniff_from_mangled_name.
2363 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2364 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2365 moves to...
2366 (d_language::sniff_from_mangled_name): ...here.
2367 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2368 * f-lang.c (f_language_data): Likewise.
2369 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2370 moves to...
2371 (go_language::sniff_from_mangled_name): ...here.
2372 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2373 * language.c (language_sniff_from_mangled_name): Delete.
2374 (unknown_language_data): Delete la_sniff_from_mangled_name
2375 initializer.
2376 (auto_language_data): Likewise.
2377 * language.h (language_data): Delete la_sniff_from_mangled_name
2378 field.
2379 (language_defn::sniff_from_mangled_name): New function.
2380 (language_sniff_from_mangled_name): Delete declaration.
2381 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2382 field.
2383 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2384 implementation moves to...
2385 (objc_language::sniff_from_mangled_name): ...here.
2386 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2387 * opencl-lang.c (opencl_language_data): Likewise.
2388 * p-lang.c (pascal_language_data): Likewise.
2389 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2390 implementation moves to...
2391 (rust_language::sniff_from_mangled_name): ...here.
2392 (rust_language_data): Delete la_sniff_from_mangled_name
2393 initializer.
2394 * symtab.c (symbol_find_demangled_name): Call
2395 sniff_from_mangled_name member function.
2396
fb8006fd
AB
23972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2400 initializer.
2401 * c-lang.c (c_language_data): Likewise.
2402 (cplus_language_data): Likewise.
2403 (cplus_language::search_name_hash): New member function.
2404 (asm_language_data): Delete la_search_name_hash initializer.
2405 (minimal_language_data): Likewise.
2406 * d-lang.c (d_language_data): Likewise.
2407 * dictionary.c (default_search_name_hash): Rename to...
2408 (language_defn::search_name_hash): ...this.
2409 * f-lang.c (f_language_data): Likewise.
2410 (f_language::search_name_hash): New member function.
2411 * go-lang.c (go_language_data): Delete la_search_name_hash
2412 initializer.
2413 * language.c (unknown_language_data): Likewise.
2414 (auto_language_data): Likewise.
2415 * language.h (struct language_data): Delete la_search_name_hash
2416 field.
2417 (language_defn::search_name_hash): Declare new member function.
2418 (default_search_name_hash): Delete declaration.
2419 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2420 initializer.
2421 * objc-lang.c (objc_language_data): Likewise.
2422 * opencl-lang.c (opencl_language_data): Likewise.
2423 * p-lang.c (pascal_language_data): Likewise.
2424 * rust-lang.c (rust_language_data): Likewise.
2425 * symtab.c (search_name_hash): Update call.
2426
8e25bafe
AB
24272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2428
2429 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2430 initializer.
2431 * c-lang.c (class compile_instance): Declare.
2432 (c_language_data): Delete la_get_compile_instance initializer.
2433 (c_language::get_compile_instance): New member function.
2434 (cplus_language_data): Delete la_get_compile_instance initializer.
2435 (cplus_language::get_compile_instance): New member function.
2436 (asm_language_data): Delete la_get_compile_instance initializer.
2437 (minimal_language_data): Likewise.
2438 * c-lang.h (c_get_compile_context): Update comment.
2439 (cplus_get_compile_context): Update comment.
2440 * compile/compile.c (compile_to_object): Update calls, don't rely
2441 on function pointer being NULL.
2442 * d-lang.c (d_language_data): Delete la_get_compile_instance
2443 initializer.
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_get_compile_instance field.
2449 (language_defn::get_compile_instance): New member function.
2450 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2451 initializer.
2452 * objc-lang.c (objc_language_data): Likewise.
2453 * opencl-lang.c (opencl_language_data): Likewise.
2454 * p-lang.c (pascal_language_data): Likewise.
2455 * rust-lang.c (rust_language_data): Likewise.
2456
4009ee92
AB
24572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * ada-lang.c (ada_add_all_symbols): Update comment.
2460 (ada_iterate_over_symbols): Delete, move implementation to...
2461 (ada_language::iterate_over_symbols): ...here, a new member
2462 function, rewrite to use range based for loop.
2463 (ada_language_data): Delete la_iterate_over_symbols initializer.
2464 * c-lang.c (c_language_data): Likewise.
2465 (cplus_language_data): Likewise.
2466 (asm_language_data): Likewise.
2467 (minimal_language_data): Likewise.
2468 * d-lang.c (d_language_data): Likewise.
2469 * f-lang.c (f_language_data): Likewise.
2470 * go-lang.c (go_language_data): Likewise.
2471 * language.c (unknown_language_data): Likewise.
2472 (auto_language_data): Likewise.
2473 * language.h (language_data): Delete la_iterate_over_symbols field.
2474 (language_defn::iterate_over_symbols): New member function.
2475 (LA_ITERATE_OVER_SYMBOLS): Update.
2476 * linespec.c (iterate_over_all_matching_symtabs): Update.
2477 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
54f4ca46
AB
24842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * ada-lang.c (ada_language_data): Delete
2487 la_lookup_transparent_type initializer.
2488 * c-lang.c (c_language_data): Likewise.
2489 (cplus_language_data): Likewise.
2490 (cplus_language::lookup_transparent_type): New member function.
2491 (asm_language_data): Delete la_lookup_transparent_type
2492 initializer.
2493 (minimal_language_data): Likewise.
2494 * d-lang.c (d_language_data): Likewise.
2495 * f-lang.c (f_language_data): Likewise.
2496 * go-lang.c (go_language_data): Likewise.
2497 * language.c (unknown_language_data): Likewise.
2498 (auto_language_data): Likewise.
2499 * language.h (struct language_data): Delete
2500 la_lookup_transparent_type field.
2501 (language_defn::lookup_transparent_type): New member function.
2502 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2503 initializer.
2504 * objc-lang.c (objc_language_data): Likewise.
2505 * opencl-lang.c (opencl_language_data): Likewise.
2506 * p-lang.c (pascal_language_data): Likewise.
2507 * rust-lang.c (rust_language_data): Likewise.
2508 * symtab.c (symbol_matches_domain): Update call.
2509
1fb314aa
AB
25102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 * ada-lang.c (ada_language_arch_info): Delete function, move
2513 implementation to...
2514 (ada_language::language_arch_info): ...here, a new member
2515 function.
2516 (ada_language_data): Delete la_language_arch_info.
2517 * c-lang.c (c_language_data): Likewise.
2518 (c_language::language_arch_info): New member function.
2519 (cplus_language_arch_info): Delete function, move
2520 implementation to...
2521 (cplus_language::language_arch_info): ...here, a new member
2522 function.
2523 (cplus_language_data): Delete la_language_arch_info.
2524 (asm_language_data): Likewise.
2525 (asm_language::language_arch_info): New member function.
2526 (minimal_language_data): Delete la_language_arch_info.
2527 (minimal_language::language_arch_info): New member function.
2528 * d-lang.c (d_language_arch_info): Delete function, move
2529 implementation to...
2530 (d_language::language_arch_info): ...here, a new member
2531 function.
2532 (d_language_data): Delete la_language_arch_info.
2533 * f-lang.c (f_language_arch_info): Delete function, move
2534 implementation to...
2535 (f_language::language_arch_info): ...here, a new member
2536 function.
2537 (f_language_data): Delete la_language_arch_info.
2538 * go-lang.c (go_language_arch_info): Delete function, move
2539 implementation to...
2540 (go_language::language_arch_info): ...here, a new member
2541 function.
2542 (go_language_data): Delete la_language_arch_info.
2543 * language.c (unknown_language_data): Likewise.
2544 (unknown_language::language_arch_info): New member function.
2545 (auto_language_data): Delete la_language_arch_info.
2546 (auto_language::language_arch_info): New member function.
2547 (language_gdbarch_post_init): Update call to
2548 la_language_arch_info.
2549 * language.h (language_data): Delete la_language_arch_info
2550 function pointer.
2551 (language_defn::language_arch_info): New function.
2552 * m2-lang.c (m2_language_arch_info): Delete function, move
2553 implementation to...
2554 (m2_language::language_arch_info): ...here, a new member
2555 function.
2556 (m2_language_data): Delete la_language_arch_info.
2557 * objc-lang.c (objc_language_arch_info): Delete function, move
2558 implementation to...
2559 (objc_language::language_arch_info): ...here, a new member
2560 function.
2561 (objc_language_data): Delete la_language_arch_info.
2562 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2563 implementation to...
2564 (opencl_language::language_arch_info): ...here, a new member
2565 function.
2566 (opencl_language_data): Delete la_language_arch_info.
2567 * p-lang.c (pascal_language_arch_info): Delete function, move
2568 implementation to...
2569 (pascal_language::language_arch_info): ...here, a new member
2570 function.
2571 (pascal_language_data): Delete la_language_arch_info.
2572 * rust-lang.c (rust_language_arch_info): Delete function, move
2573 implementation to...
2574 (rust_language::language_arch_info): ...here, a new member
2575 function.
2576 (rust_language_data): Delete la_language_arch_info.
2577
48448202
AB
25782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2581 initializer.
2582 * c-lang.c (c_language_data): Likewise.
2583 (cplus_language_data): Likewise.
2584 (cplus_language::pass_by_reference_info): New method.
2585 (asm_language_data): Delete la_pass_by_reference initializer.
2586 (minimal_language_data): Likewise.
2587 * cp-abi.c (cp_pass_by_reference): Remove use of
2588 default_pass_by_reference.
2589 * d-lang.c (d_language_data): Likewise.
2590 * f-lang.c (f_language_data): Likewise.
2591 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2592 default_pass_by_reference.
2593 * go-lang.c (go_language_data): Likewise.
2594 * language.c (language_pass_by_reference): Update.
2595 (default_pass_by_reference): Delete.
2596 (unknown_language_data): Delete la_pass_by_reference
2597 initializer.
2598 (auto_language_data): Likewise.
2599 * language.h (struct language_data): Delete la_pass_by_reference
2600 field.
2601 (language_defn::pass_by_reference_info): New member function.
2602 (default_pass_by_reference): Delete declaration.
2603 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2604 initializer.
2605 * objc-lang.c (objc_language_data): Likewise.
2606 * opencl-lang.c (opencl_language_data): Likewise.
2607 * p-lang.c (pascal_language_data): Likewise.
2608 * rust-lang.c (rust_language_data): Likewise.
2609
15e5fd35
AB
26102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * ada-lang.c (ada_read_var_value): Delete function, move
2613 implementation to...
2614 (ada_language::read_var_value): ...here.
2615 (ada_language_data): Delete la_read_var_value initializer.
2616 * c-lang.c (c_language_data): Likewise.
2617 (cplus_language_data): Likewise.
2618 (minimal_language_data): Likewise.
2619 * d-lang.c (d_language_data): Likewise.
2620 * f-lang.c (f_language_data): Likewise.
2621 * findvar.c (default_read_var_value): Rename to...
2622 (language_defn::read_var_value): ...this.
2623 * findvar.c (read_var_value): Update header comment, and change to
2624 call member function instead of function pointer.
2625 * go-lang.c (go_language_data): Likewise.
2626 * language.c (unknown_language_data): Delete la_read_var_value
2627 initializer.
2628 (auto_language_data): Likewise.
2629 * language.h (struct language_data): Delete la_read_var_value
2630 field.
2631 (language_defn::read_var_value): New member function.
2632 (default_read_var_value): Delete declaration.
2633 * m2-lang.c (m2_language_data): Delete la_read_var_value
2634 initializer.
2635 * objc-lang.c (objc_language_data): Likewise.
2636 * opencl-lang.c (opencl_language_data): Likewise.
2637 * p-lang.c (pascal_language_data): Likewise.
2638 * rust-lang.c (rust_language_data): Likewise.
2639 * value.h (default_read_var_value): Delete declaration.
2640
5bd40f2a
AB
26412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * ada-lang.c (ada_print_array_index): Delete function, move
2644 implementation to...
2645 (ada_language::print_array_index): ...here.
2646 (ada_language_data): Delete la_print_array_index initializer.
2647 * c-lang.c (c_language_data): Likewise.
2648 (cplus_language_data): Likewise.
2649 (minimal_language_data): Likewise.
2650 * d-lang.c (d_language_data): Likewise.
2651 * f-lang.c (f_language_data): Likewise.
2652 * go-lang.c (go_language_data): Likewise.
2653 * language.c (default_print_array_index): Delete function, move
2654 implementation to...
2655 (language_defn::print_array_index): ...here.
2656 (unknown_language_data): Delete la_print_array_index initializer.
2657 (auto_language_data): Likewise.
2658 * language.h (struct language_data): Delete la_print_array_index
2659 field.
2660 (language_defn::print_array_index): New member function.
2661 (LA_PRINT_ARRAY_INDEX): Update.
2662 (default_print_array_index): Delete declaration.
2663 * m2-lang.c (m2_language_data): Delete la_print_array_index
2664 initializer.
2665 * objc-lang.c (objc_language_data): Likewise.
2666 * opencl-lang.c (opencl_language_data): Likewise.
2667 * p-lang.c (pascal_language_data): Likewise.
2668 * rust-lang.c (rust_language_data): Likewise.
2669
0874fd07
AB
26702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * gdb/ada-lang.c (ada_language_defn): Convert to...
2673 (ada_language_data): ...this.
2674 (class ada_language): New class.
2675 (ada_language_defn): New static global.
2676 * gdb/c-lang.c (c_language_defn): Convert to...
2677 (c_language_data): ...this.
2678 (class c_language): New class.
2679 (c_language_defn): New static global.
2680 (cplus_language_defn): Convert to...
2681 (cplus_language_data): ...this.
2682 (class cplus_language): New class.
2683 (cplus_language_defn): New static global.
2684 (asm_language_defn): Convert to...
2685 (asm_language_data): ...this.
2686 (class asm_language): New class.
2687 (asm_language_defn): New static global.
2688 (minimal_language_defn): Convert to...
2689 (minimal_language_data): ...this.
2690 (class minimal_language): New class.
2691 (minimal_language_defn): New static global.
2692 * gdb/d-lang.c (d_language_defn): Convert to...
2693 (d_language_data): ...this.
2694 (class d_language): New class.
2695 (d_language_defn): New static global.
2696 * gdb/f-lang.c (f_language_defn): Convert to...
2697 (f_language_data): ...this.
2698 (class f_language): New class.
2699 (f_language_defn): New static global.
2700 * gdb/go-lang.c (go_language_defn): Convert to...
2701 (go_language_data): ...this.
2702 (class go_language): New class.
2703 (go_language_defn): New static global.
2704 * gdb/language.c (unknown_language_defn): Remove declaration.
2705 (current_language): Initialize to nullptr, real initialization is
2706 moved to _initialize_language.
2707 (languages): Delete global.
2708 (language_defn::languages): Define.
2709 (set_language_command): Use language_defn::languages.
2710 (set_language): Likewise.
2711 (range_error): Likewise.
2712 (language_enum): Likewise.
2713 (language_def): Likewise.
2714 (add_set_language_command): Use language_def::languages for the
2715 language list, and language_def to lookup language pointers.
2716 (skip_language_trampoline): Use language_defn::languages.
2717 (unknown_language_defn): Convert to...
2718 (unknown_language_data): ...this.
2719 (class unknown_language): New class.
2720 (unknown_language_defn): New static global.
2721 (auto_language_defn): Convert to...
2722 (auto_language_data): ...this.
2723 (class auto_language): New class.
2724 (auto_language_defn): New static global.
2725 (language_gdbarch_post_init): Use language_defn::languages.
2726 (_initialize_language): Initialize current_language.
2727 * gdb/language.h (struct language_defn): Rename to...
2728 (struct language_data): ...this.
2729 (struct language_defn): New.
2730 (auto_language_defn): Delete.
2731 (unknown_language_defn): Delete.
2732 (minimal_language_defn): Delete.
2733 (ada_language_defn): Delete.
2734 (asm_language_defn): Delete.
2735 (c_language_defn): Delete.
2736 (cplus_language_defn): Delete.
2737 (d_language_defn): Delete.
2738 (f_language_defn): Delete.
2739 (go_language_defn): Delete.
2740 (m2_language_defn): Delete.
2741 (objc_language_defn): Delete.
2742 (opencl_language_defn): Delete.
2743 (pascal_language_defn): Delete.
2744 (rust_language_defn): Delete.
2745 * gdb/m2-lang.c (m2_language_defn): Convert to...
2746 (m2_language_data): ...this.
2747 (class m2_language): New class.
2748 (m2_language_defn): New static global.
2749 * gdb/objc-lang.c (objc_language_defn): Convert to...
2750 (objc_language_data): ...this.
2751 (class objc_language): New class.
2752 (objc_language_defn): New static global.
2753 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2754 (opencl_language_data): ...this.
2755 (class opencl_language): New class.
2756 (opencl_language_defn): New static global.
2757 * gdb/p-lang.c (pascal_language_defn): Convert to...
2758 (pascal_language_data): ...this.
2759 (class pascal_language): New class.
2760 (pascal_language_defn): New static global.
2761 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2762 language pointer, update comment format.
2763 * gdb/rust-lang.c (rust_language_defn): Convert to...
2764 (rust_language_data): ...this.
2765 (class rust_language): New class.
2766 (rust_language_defn): New static global.
2767
1313c56e
AB
27682020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2771 member variable.
2772 <m_stmt_at_address>: New member variable.
2773 (lnp_state_machine::record_line): Don't record some lines, update
2774 tracking of is_stmt at the same address.
2775 (lnp_state_machine::lnp_state_machine): Initialise new member
2776 variables.
2777
b7ed9f3d
ST
27782020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2779
2780 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2781 "-include gnu-nat-mig.h".
2782 * gnu-nat-mig.h: New file.
2783 * gnu-nat.c: Include "gnu-nat-mig.h".
2784 (exc_server, msg_reply_server, notify_server,
2785 process_reply_server): Remove declarations.
2786
14a8ad62
ST
27872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2788
2789 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2790 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2791 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2792 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2793 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2794 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2795 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2796 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2797 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2798 to gnu_nat_target class.
2799 * gnu-nat.c: Likewise.
2800 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2801 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2802 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2803 object.
2804 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2805 instead of `gnu_target'.
2806
0af5e106
ST
28072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2808
2809 * i386-gnu-tdep.c: Include "gdbcore.h"
2810 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2811 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2812 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2813 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2814 i386_gnu_sigcontext_addr): New functions
2815 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2816 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2817 tdep.
2818
078f2fc9
ST
28192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2820
2821 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2822 before fork_inferior call. Avoid calling it if target_is_pushed returns
2823 true.
2824
53dff92c
ST
28252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2826
2827 * gnu-nat.h (gnu_target): New variable declaration.
2828 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2829 gnu_target.
2830 * gnu-nat.c (gnu_target): New variable.
2831 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2832 add_thread_silent, and add_thread calls.
2833 (gnu_nat_target::create_inferior): Pass gnu_target to
2834 add_thread_silent, thread_change_ptid call.
2835 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2836 call.
2837
5a8b8627
ST
28382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2839
2840 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2841 (gnu_nat_target::find_memory_regions): Remove unused
2842 `old_address' variable.
2843
366f550a
ST
28442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2845
2846 * gnu-nat.c: Include "gdbarch.h".
2847
f14871bf
ST
28482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2849
2850 * reply_mig_hack.awk (Error return): Cast function through
2851 void *, to bypass compiler function call check.
2852
c6887cfb
ST
28532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2854
2855 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2856 $(srcdir)/reply_mig_hack.awk.
2857
6930bffe
ST
28582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2859
2860 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2861
112c22ed
JG
28622020-05-30 Jonny Grant <jg@jguk.org>
2863
2864 * configure.ac (ACX_BUGURL): change bug URL to https.
2865
f68f85b5
PA
28662020-05-30 Pedro Alves <palves@redhat.com>
2867
2868 * cp-support.c (replace_typedefs_template): New.
2869 (replace_typedefs_qualified_name): Handle
2870 DEMANGLE_COMPONENT_TEMPLATE.
2871
976ca316
SM
28722020-05-29 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2875 dwarf2/index-cache.h, dwarf2/index-write.c,
2876 dwarf2/index-write.h, dwarf2/line-header.c,
2877 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2878 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2879 variables and fields from `dwarf2_per_objfile` to just
2880 `per_objfile` throughout.
2881
989ade05
SM
28822020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2885 <push_dwarf_reg_entry_value>: Add comment.
2886
c47bae85
KB
28872020-05-28 Kevin Buettner <kevinb@redhat.com>
2888 Keith Seitz <keiths@redhat.com>
2889
2890 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2891 instead of PyEval_ReleaseLock.
2892 (class gdbpy_gil): Move to earlier in file.
2893 (finalize_python): Set gdb_python_initialized.
2894 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2895 when not initialized.
2896
44486dcf
SM
28972020-05-28 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2900 <push_dwarf_reg_entry_value>: Remove assert. Override
2901 per_objfile with caller_per_objfile.
2902
f030440d
TV
29032020-05-28 Tom de Vries <tdevries@suse.de>
2904
2905 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2906 PR gold/15646 workaround to symbol kind "type".
2907
f0fbb768
TT
29082020-05-27 Tom Tromey <tromey@adacore.com>
2909
2910 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2911
af0b2a3e
TT
29122020-05-27 Tom Tromey <tromey@adacore.com>
2913
2914 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2915 Use htab_find_with_hash.
2916 <add_abbrev>: Remove "abbrev_number" parameter.
2917 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2918 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2919 (hash_abbrev): Add comment.
2920 (abbrev_table::lookup_abbrev): Move to header file.
2921 (abbrev_table::read): Update.
2922
7d00ffec
TT
29232020-05-27 Tom Tromey <tromey@adacore.com>
2924
2925 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2926 method.
2927 <canonical_name>: New member.
2928 <raw_name>: Rename from "name".
2929 (partial_die_info): Initialize canonical_name.
2930 (scan_partial_symbols): Check raw_name.
2931 (partial_die_parent_scope, partial_die_full_name)
2932 (add_partial_symbol, add_partial_subprogram)
2933 (add_partial_enumeration, load_partial_dies): Use "name" method.
2934 (partial_die_info::name): New method.
2935 (partial_die_info::read, guess_partial_die_structure_name)
2936 (partial_die_info::fixup): Update.
2937
697bba18
TT
29382020-05-27 Tom Tromey <tromey@adacore.com>
2939
2940 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2941 <get_ref_die_offset>: Inline.
2942 <get_ref_die_offset_complaint>: New method.
2943 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2944 (attribute::get_ref_die_offset_complaint): Rename from
2945 get_ref_die_offset. Just issue complaint.
2946
c17ace43
HD
29472020-05-27 Hannes Domani <ssbssa@yahoo.de>
2948
2949 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2950
96445f0b
HD
29512020-05-27 Hannes Domani <ssbssa@yahoo.de>
2952
2953 * exec.c (exec_file_attach): Use errno value of first openp failure.
2954
ac637ec3
HD
29552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2956
2957 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2958 Don't close thread handle.
2959
17ee85fc
TT
29602020-05-27 Tom Tromey <tom@tromey.com>
2961 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2964 shared_ptr.
2965 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2966 member.
2967 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2968 dwarf2_per_bfd_objfile_data_key>: New globals.
2969 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2970 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2971 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2972 shared.
2973 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2974 short-circuit when sharing.
2975 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2976 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2977
39b16f87
SM
29782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2981 to...
2982 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2983 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2984
fcf23d5b
SM
29852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2988 build_name_components, find_name_components_bounds>:
2989 Add per_objfile parameter.
2990 (struct mapped_index) <symbol_name_at>: Likewise.
2991 (struct mapped_debug_names): Remove constructor.
2992 <dwarf2_per_objfile>: Remove field.
2993 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2994 (mapped_index_base::find_name_components_bounds,
2995 mapped_index_base::build_name_components,
2996 dw2_expand_symtabs_matching_symbol): Likewise.
2997 (class mock_mapped_index) <symbol_name_at>: Likewise.
2998 (check_match): Likewise.
2999 (check_find_bounds_finds): Likewise.
3000 (test_mapped_index_find_name_component_bounds): Update.
3001 (CHECK_MATCH): Update.
3002 (dw2_expand_symtabs_matching): Update.
3003 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3004 per_objfile parameter.
3005 <find_vec_in_debug_names>: Likewise.
3006 <m_per_objfile>: New field.
3007 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3008 parameter.
3009 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3010 (dw2_debug_names_iterator::next): Update.
3011 (dw2_debug_names_lookup_symbol): Update.
3012 (dw2_debug_names_expand_symtabs_for_function): Update.
3013 (dw2_debug_names_map_matching_symbols): Update.
3014 (dw2_debug_names_expand_symtabs_matching): Update.
3015 (dwarf2_read_debug_names): Update.
3016
7188ed02
SM
30172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3020 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3021 move to dwarf2_per_objfile.
3022 <read_in_chain>: Remove.
3023 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3024 remove_all_cus, age_comp_units>: New methods.
3025 <m_dwarf2_cus>: New member.
3026 (struct dwarf2_per_cu_data) <cu>: Remove.
3027 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3028 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3029 moved to methods of dwarf2_per_objfile.
3030 (dwarf2_clear_marks): Remove.
3031 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3032 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3033 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3034 (dwarf2_per_objfile::remove_all_cus): New.
3035 (class free_cached_comp_units) <~free_cached_comp_units>:
3036 Update.
3037 (load_cu): Update.
3038 (dw2_do_instantiate_symtab): Adjust.
3039 (fill_in_sig_entry_from_dwo_entry): Adjust.
3040 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3041 (cutu_reader::cutu_reader): Likewise.
3042 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3043 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3044 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3045 and dwarf2_per_objfile::age_comp_units.
3046 (load_partial_comp_unit): Update.
3047 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3048 (process_queue): Likewise.
3049 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3050 backlink.
3051 (dwarf2_read_addr_index): Likewise.
3052 (follow_die_offset): Likewise.
3053 (dwarf2_fetch_die_loc_sect_off): Likewise.
3054 (dwarf2_fetch_constant_bytes): Likewise.
3055 (dwarf2_fetch_die_type_sect_off): Likewise.
3056 (follow_die_sig_1): Likewise.
3057 (load_full_type_unit): Likewise.
3058 (read_signatured_type): Likewise.
3059 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3060 (dwarf2_cu::~dwarf2_cu): Remove.
3061 (dwarf2_per_objfile::get_cu): New.
3062 (dwarf2_per_objfile::set_cu): New.
3063 (age_cached_comp_units): Rename to...
3064 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3065 to std::unordered_map.
3066 (free_one_cached_comp_unit): Rename to...
3067 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3068 to std::unordered_map.
3069 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3070 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3071 a dwarf2_per_objfile in data.
3072 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3073 (dwarf2_clear_marks): Remove.
3074
2e671100
SM
30752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3078 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3079 (init_tu_and_read_dwo_dies): Likewise.
3080 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3081 (cutu_reader::cutu_reader): Likewise.
3082 (load_partial_comp_unit): Likewise.
3083 (process_psymtab_comp_unit): Update.
3084 (build_type_psymtabs_1): Update.
3085 (process_skeletonless_type_unit): Update.
3086 (load_full_comp_unit): Update.
3087 (find_partial_die): Update.
3088 (dwarf2_read_addr_index): Update.
3089 (read_signatured_type): Update.
3090
2e6a9f79
SM
30912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3092
3093 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3094 m_header_read_in>: New fields.
3095 <get_header>: New method.
3096 * dwarf2/read.c (per_cu_header_read_in): Remove.
3097 (dwarf2_per_cu_data::get_header): New.
3098 (dwarf2_per_cu_data::addr_size): Update.
3099 (dwarf2_per_cu_data::offset_size): Update.
3100 (dwarf2_per_cu_data::ref_addr_size): Update.
3101
1b555f17
SM
31022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3105 (dw2_do_instantiate_symtab): Update.
3106 (queue_and_load_all_dwo_tus): Change parameter from
3107 dwarf2_per_cu_data to dwarf2_cu.
3108 (dwarf2_fetch_die_loc_sect_off): Update.
3109 (dwarf2_fetch_constant_bytes): Update.
3110 (dwarf2_fetch_die_type_sect_off): Update.
3111
8fc0b21d
SM
31122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * dwarf2/read.c (process_full_comp_unit,
3115 process_full_type_unit): Remove per_cu, per_objfile paramters.
3116 Add dwarf2_cu parameter.
3117 (process_queue): Update.
3118
168c9250
SM
31192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * dwarf2/read.c (create_cu_from_index_list): Replace
3122 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3123 (create_cus_from_index_list): Likewise.
3124 (create_cus_from_index): Likewise.
3125 (create_signatured_type_table_from_index): Likewise.
3126 (create_cus_from_debug_names_list): Likewise.
3127 (create_cus_from_debug_names): Likewise.
3128 (dwarf2_read_gdb_index): Update.
3129 (dwarf2_read_debug_names): Update.
3130
e286671b
TT
31312020-05-27 Tom Tromey <tom@tromey.com>
3132 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * dwarf2/read.h (struct dwarf2_per_objfile)
3135 <get_type_for_signatured_type, set_type_for_signatured_type>:
3136 New methods.
3137 <m_type_map>: New member.
3138 (struct signatured_type) <type>: Remove.
3139 * dwarf2/read.c
3140 (dwarf2_per_objfile::get_type_for_signatured_type,
3141 dwarf2_per_objfile::set_type_for_signatured_type): New.
3142 (get_signatured_type): Use new methods.
3143
8adb8487
TT
31442020-05-27 Tom Tromey <tom@tromey.com>
3145 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3148 (struct dwarf2_per_objfile) <type_units>: New member.
3149 <get_type_unit_group_unshareable>: New method.
3150 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3151 num_symtabs, symtabs>: Remove; move to
3152 type_unit_group_unshareable.
3153 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3154 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3155 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3156
127bbf4b
SM
31572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * dwarf2/read.h (struct dwarf2_per_cu_data):
3160 <dwarf2_per_objfile>: Remove.
3161 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3162 dwarf2_per_objfile.
3163 (create_signatured_type_table_from_index): Likewise.
3164 (create_signatured_type_table_from_debug_names): Likewise.
3165 (create_debug_type_hash_table): Likewise.
3166 (fill_in_sig_entry_from_dwo_entry): Likewise.
3167 (create_type_unit_group): Likewise.
3168 (read_comp_units_from_section): Likewise.
3169 (create_cus_hash_table): Likewise.
3170
f6e649dd
SM
31712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3174 dwarf2_per_cu_data::dwarf2_per_objfile.
3175 (compute_compunit_symtab_includes): Likewise.
3176 (dwarf2_cu::start_symtab): Likewise.
3177
aa66c379
SM
31782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3181 parameter.
3182 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3183 (read_namespace_alias): Update.
3184 (lookup_die_type): Update.
3185 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3186 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3187 Update.
3188 (disassemble_dwarf_expression): Update.
3189
120ce1b5
SM
31902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.h (struct dwarf2_queue_item): Add
3193 dwarf2_per_objfile parameter, assign new parameter.
3194 <per_objfile>: New field.
3195 * dwarf2/read.c (free_one_cached_comp_unit): Add
3196 dwarf2_per_objfile parameter.
3197 (queue_comp_unit): Likewise.
3198 (dw2_do_instantiate_symtab): Update.
3199 (process_psymtab_comp_unit): Update.
3200 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3201 (process_imported_unit_die): Update.
3202 (queue_and_load_dwo_tu): Update.
3203 (follow_die_offset): Update.
3204 (follow_die_sig_1): Update.
3205
9f47c707
SM
32062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3209 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3210 (read_call_site_scope): Assign per_objfile.
3211 (dwarf2_per_cu_data::objfile): Remove.
3212 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3213 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3214 dwarf2_per_objfile parameter.
3215 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3216 dwarf2_per_objfile parameter.
3217 (dwarf_expr_reg_to_entry_parameter): Add output
3218 dwarf2_per_objfile parameter.
3219 (locexpr_get_frame_base): Update.
3220 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3221 <push_dwarf_reg_entry_value>: Update.
3222 <call_site_to_target_addr>: Update.
3223 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3224 parameter.
3225 (value_of_dwarf_reg_entry): Update.
3226 (rw_pieced_value): Update.
3227 (indirect_synthetic_pointer): Update.
3228 (dwarf2_evaluate_property): Update.
3229 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3230 parameter.
3231 (locexpr_read_variable): Update.
3232 (locexpr_get_symbol_read_needs): Update.
3233 (loclist_read_variable): Update.
3234
14095eb3
SM
32352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3239 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3240 parameter.
3241 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3242 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3243 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3244 parameter.
3245 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3246 sect_variable_value): Add dwarf2_per_objfile parameter.
3247 (class dwarf_evaluate_loc_desc) <dwarf_call,
3248 dwarf_variable_value>: Update.
3249 (fetch_const_value_from_synthetic_pointer): Add
3250 dwarf2_per_objfile parameter.
3251 (fetch_const_value_from_synthetic_pointer): Update.
3252 (coerced_pieced_ref): Update.
3253 (class symbol_needs_eval_context) <dwarf_call,
3254 dwarf_variable_value>: Update.
3255 (dwarf2_compile_expr_to_ax): Update.
3256
3c3cd3d4
SM
32572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3260 parameter.
3261 (dwarf2_evaluate_loc_desc_full): Update.
3262
82ca3f51
SM
32632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3266 parameter.
3267 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3268 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3269 dwarf2_per_objfile parameter.
3270 (decode_debug_loc_dwo_addresses): Likewise.
3271 (dwarf2_find_location_expression): Update.
3272 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3273 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3274 parameter.
3275 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3276 parameter.
3277 (locexpr_describe_location_1): Likewise.
3278 (locexpr_describe_location): Update.
3279
4b167ea1
SM
32802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3283 Remove.
3284 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3285 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3286 (dwarf2_compile_property_to_c): Update.
3287 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3288 use text offset from objfile.
3289 (locexpr_tracepoint_var_ref): Update.
3290 (locexpr_generate_c_location): Update.
3291 (loclist_describe_location): Update.
3292 (loclist_tracepoint_var_ref): Update.
3293 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3294 dwarf2_per_objfile parameter.
3295 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3296 use text offset from objfile.
3297 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3298
89b07335
SM
32992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * dwarf2/expr.h (struct dwarf_expr_context)
3302 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3303 <offset>: Remove.
3304 <per_objfile>: New member.
3305 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3306 dwarf2_per_objfile parameter. Don't set offset, set
3307 per_objfile.
3308 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3309 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3310 a dwarf2_per_objfile object instead of an offset.
3311 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3312 constructor.
3313 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3314 to dwarf2_expr_executor constructor. Don't set offset.
3315 (dwarf2_fetch_cfa_info): Update.
3316 (struct dwarf2_frame_cache) <text_offset>: Remove.
3317 <per_objfile>: New field.
3318 (dwarf2_frame_cache): Update.
3319 (dwarf2_frame_prev_register): Update.
3320 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3321 <dwarf_evaluate_loc_desc>: Add constructor.
3322 (dwarf2_evaluate_loc_desc_full): Update.
3323 (dwarf2_locexpr_baton_eval): Update.
3324 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3325 Add constructor.
3326 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3327
293e7e51
SM
33282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3329
3330 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3331 addr_sized_int_type>: Move to dwarf2_cu.
3332 <int_type>: Move to dwarf2_per_objfile.
3333 (struct dwarf2_per_objfile) <int_type>: Move here.
3334 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3335 addr_sized_int_type>: Move here.
3336 (read_func_scope): Update.
3337 (read_array_type): Update.
3338 (read_tag_string_type): Update.
3339 (attr_to_dynamic_prop): Update.
3340 (dwarf2_per_cu_data::int_type): Rename to...
3341 (dwarf2_per_objfile::int_type): ... this.
3342 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3343 (dwarf2_cu::addr_sized_int_type): ... this.
3344 (read_subrange_type): Update.
3345 (dwarf2_per_cu_data::addr_type): Rename to...
3346 (dwarf2_cu::addr_type): ... this.
3347 (set_die_type): Update.
3348
64874a40
SM
33492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3350
3351 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3352 data through per_cu->cu.
3353
4ab09049
SM
33542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3357 dwarf2_per_cu_data parameter fo dwarf2_cu.
3358 (lookup_dwo_type_unit): Likewise.
3359 (read_cutu_die_from_dwo): Likewise.
3360 (lookup_dwo_unit): Likewise.
3361 (open_and_init_dwo_file): Likewise.
3362 (lookup_dwo_cutu): Likewise.
3363 (lookup_dwo_comp_unit): Likewise.
3364 (lookup_dwo_type_unit): Likewise.
3365 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3366 (cutu_reader::cutu_reader): Update.
3367
47b14e86
SM
33682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3371 parameter.
3372 (process_full_type_unit): Likewise.
3373 (process_queue): Update.
3374
43182c09
SM
33752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * dwarf2/read.c (recursively_compute_inclusions): Add
3378 dwarf2_per_objfile parameter.
3379 (compute_compunit_symtab_includes): Likewise.
3380 (process_cu_includes): Update.
3381
7aa104c4
SM
33822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3385 parameter.
3386 (create_type_unit_group): Update.
3387 (process_psymtab_comp_unit_reader): Update.
3388 (build_type_psymtabs_reader): Update.
3389
e3beb21d
SM
33902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3393 object through m_this_cu->cu.
3394
d460f660
SM
33952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3396
3397 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3398 the info parameter.
3399 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3400
ab432490
SM
34012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3404 per_objfile parameter.
3405 (load_full_type_unit): Add per_objfile parameter.
3406 (read_signatured_type): Likewise.
3407 (load_full_comp_unit): Likewise.
3408 (load_cu): Likewise.
3409 (dw2_do_instantiate_symtab): Likewise.
3410 (dw2_get_file_names): Likewise.
3411 (dw2_map_symtabs_matching_filename): Update.
3412 (dw_expand_symtabs_matching_file_matcher): Update.
3413 (dw2_map_symbol_filenames): Update.
3414 (process_psymtab_comp_unit): Add per_objfile parameter.
3415 (build_type_psymtabs_1): Update.
3416 (process_skeletonless_type_unit): Update.
3417 (dwarf2_build_psymtabs_hard): Update.
3418 (load_partial_comp_unit): Add per_objfile parameter.
3419 (scan_partial_symbols): Update.
3420 (load_full_comp_unit): Add per_objfile parameter.
3421 (process_imported_unit_die): Update.
3422 (create_cus_hash_table): Update.
3423 (find_partial_die): Update.
3424 (dwarf2_read_addr_index): Update.
3425 (follow_die_offset): Update.
3426 (dwarf2_fetch_die_loc_sect_off): Update.
3427 (dwarf2_fetch_constant_bytes): Update.
3428 (dwarf2_fetch_die_type_sect_off): Update.
3429 (follow_die_sig_1): Update.
3430 (load_full_type_unit): Add per_objfile parameter.
3431 (read_signatured_type): Likewise.
3432
313bad1b
SM
34332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3436 of objfile_name.
3437
c3699833
SM
34382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3441 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3442 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3443 field.
3444 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3445 (create_cus_from_index): Update.
3446 (dwarf2_read_gdb_index): Update.
3447 (create_cus_from_debug_names): Update.
3448 (dwarf2_read_debug_names): Update.
3449 (get_abbrev_section_for_cu): Update.
3450 (create_all_comp_units): Update.
3451 (read_attribute_value): Update.
3452 (get_debug_line_section): Update.
3453 * dwarf2/index-cache.c (index_cache::store): Update.
3454 * dwarf2/index-write.c (save_gdb_index_command): Update.
3455 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3456
1859c670
SM
34572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3460 member.
3461 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3462 dwarf2_per_cu_data::per_bfd.
3463 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3464 (create_type_unit_group): Likewise.
3465 (queue_comp_unit): Remove reference to
3466 per_cu->dwarf2_per_objfile.
3467 (maybe_queue_comp_unit): Likewise.
3468 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3469 (create_cus_hash_table): Assign new field.
3470
5e22e966
SM
34712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * dwarf2/read.c: Replace
3474 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3475 dwarf2_cu->per_objfile throughout.
3476
97a1449a
SM
34772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3480 parameter, don't use per_cu->dwarf2_per_objfile.
3481 (dw2_instantiate_symtab): Likewise.
3482 (dw2_find_last_source_symtab): Update.
3483 (dw2_map_expand_apply): Update.
3484 (dw2_lookup_symbol): Update.
3485 (dw2_expand_symtabs_for_function): Update.
3486 (dw2_expand_all_symtabs): Update.
3487 (dw2_expand_symtabs_with_fullname): Update.
3488 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3489 don't use per_cu->dwarf2_per_objfile.
3490 (dw2_expand_marked_cus): Update.
3491 (dw2_find_pc_sect_compunit_symtab): Update.
3492 (dw2_debug_names_lookup_symbol): Update.
3493 (dw2_debug_names_expand_symtabs_for_function): Update.
3494 (dw2_debug_names_map_matching_symbols): Update.
3495 (dwarf2_psymtab::expand_psymtab): Update.
3496
9e021579
SM
34972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3500 <per_objfile>: New member.
3501 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3502 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3503 call to dwarf2_cu.
3504 (cutu_reader::cutu_reader): Update.
3505 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3506
ae090bdb
SM
35072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3510 struct dwarf2_per_objfile.
3511 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3512 dwarf2_per_bfd.
3513 * dwarf2/read.c (set_die_type): Update.
3514 (get_die_type_at_offset): Update.
3515
af758d11
SM
35162020-05-27 Tom Tromey <tom@tromey.com>
3517 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3520 method.
3521 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3522 get_symtab, set_symtab>: New methods.
3523 <m_symtabs>: New field.
3524 (struct dwarf2_psymtab): Derive from partial_symtab.
3525 <readin_p, get_compunit_symtab>: Declare methods.
3526 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3527 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3528 New methods.
3529 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3530 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3531 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3532 (dw2_symtab_iter_next, dw2_print_stats)
3533 (dw2_expand_symtabs_with_fullname)
3534 (dw2_expand_symtabs_matching_one)
3535 (dw_expand_symtabs_matching_file_matcher)
3536 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3537 (dw2_debug_names_iterator::next)
3538 (dw2_debug_names_map_matching_symbols)
3539 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3540 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3541 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3542 New methods.
3543 (get_compunit_symtab, process_full_comp_unit)
3544 (process_full_type_unit): Update.
3545 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3546
5989a64e
SM
35472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3550 then introduce a new dwarf2_per_objfile type.
3551 <read_line_string>: Move to the new dwarf2_per_objfile type.
3552 <objfile>: Likewise.
3553 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3554 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3555 dwarf2_per_objfile->per_bfd.
3556 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3557 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3558 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3559 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3560 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3561 (dwarf2_per_objfile::locate_sections): Rename to...
3562 (dwarf2_per_bfd::locate_sections): ... this.
3563 (dwarf2_per_objfile::get_cutu): Rename to...
3564 (dwarf2_per_bfd::get_cutu): ... this.
3565 (dwarf2_per_objfile::get_cu): Rename to...
3566 (dwarf2_per_bfd::get_cu): ... this.
3567 (dwarf2_per_objfile::get_tu): Rename to...
3568 (dwarf2_per_bfd::get_tu): ... this.
3569 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3570 (dwarf2_per_bfd::allocate_per_cu): ... this.
3571 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3572 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3573 (get_gdb_index_contents_ftype): Change parameter from
3574 dwarf2_per_objfile to dwarf2_per_bfd.
3575 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3576 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3577
a50264ba
TT
35782020-05-27 Tom Tromey <tom@tromey.com>
3579 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3582 (allocate_piece_closure): Set "per_objfile" member.
3583 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3584 (locexpr_describe_location, loclist_describe_location): Use new
3585 member.
3586 * dwarf2/read.c (read_call_site_scope)
3587 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3588 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3589 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3590 handle_data_member_location): Set per_objfile member.
3591 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3592 member.
3593 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3594
d3473f0c
TT
35952020-05-27 Tom Tromey <tom@tromey.com>
3596
3597 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3598 allocate_signatured_type>: Declare new methods.
3599 <m_num_psymtabs>: New member.
3600 (struct dwarf2_per_cu_data) <index>: New member.
3601 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3602 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3603 (create_cu_from_index_list): Use allocate_per_cu.
3604 (create_signatured_type_table_from_index)
3605 (create_signatured_type_table_from_debug_names)
3606 (create_debug_type_hash_table, add_type_unit)
3607 (read_comp_units_from_section): Use allocate_signatured_type.
3608
5717c425
TT
36092020-05-27 Tom Tromey <tom@tromey.com>
3610
3611 * psymtab.c (partial_map_expand_apply)
3612 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3613 (psym_lookup_global_symbol_language)
3614 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3615 (psym_print_stats, psym_expand_symtabs_for_function)
3616 (psym_map_symbol_filenames, psym_map_matching_symbols)
3617 (psym_expand_symtabs_matching)
3618 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3619 (maintenance_check_psymtabs): Update.
3620 * psympriv.h (struct partial_symtab) <readin_p,
3621 get_compunit_symtab>: Add objfile parameter.
3622 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3623 Likewise.
3624 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3625 get_compunit_symtab>: Likewise.
3626 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3627
45940949
TT
36282020-05-27 Tom Tromey <tom@tromey.com>
3629
3630 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3631 member.
3632 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3633 (create_cu_from_index_list)
3634 (create_signatured_type_table_from_index)
3635 (create_signatured_type_table_from_debug_names)
3636 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3637 (dwarf2_create_include_psymtab)
3638 (create_debug_type_hash_table, add_type_unit)
3639 (create_type_unit_group, read_comp_units_from_section)
3640 (dwarf2_compute_name, create_cus_hash_table)
3641 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3642 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3643 obstack.
3644 (dw2_get_real_path): Likewise. Change argument to
3645 dwarf2_per_objfile.
3646
f8c6d152
LM
36472020-05-27 Luis Machado <luis.machado@linaro.org>
3648
3649 PR tdep/26000
3650 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3651 for ldrd (immediate).
3652
e98d2e6d
PW
36532020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3654
3655 * command.h: Add comment giving the name of class_tui.
3656 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3657 create the fake command for the help for class_tui.
3658
53a47a3e
TT
36592020-05-26 Tom Tromey <tromey@adacore.com>
3660
3661 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3662 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3663 (val_atr): New function.
3664 (value_val_atr): Use it.
3665 * ada-valprint.c (print_optional_low_bound): Change low bound
3666 handling for enums.
3667 (val_print_packed_array_elements): Don't call discrete_position.
3668 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3669 discrete_position for enum types.
3670 * language.c (default_print_array_index): Change type.
3671 * language.h (struct language_defn) <la_print_array_index>: Add
3672 index_type parameter, change type of index_value.
3673 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3674 (default_print_array_index): Update.
3675 * valprint.c (maybe_print_array_index): Don't call
3676 value_from_longest. Update.
3677 (value_print_array_elements): Don't call discrete_position.
3678
0bc2354b
TT
36792020-05-26 Tom Tromey <tromey@adacore.com>
3680
3681 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3682 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3683
1218a4bf
CDA
36842020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3685
3686 PR gdb/13519
3687 * avr-tdep.c (avr_integer_to_address): Return data or code
3688 address accordingly to the second 'type' argument of the
3689 function.
3690
92651b1d
MW
36912020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3692
3693 * infcmd.c, inferior.h: (construct_inferior_arguments):
3694 Moved function from here to gdbsupport/common-inferior.{h,cc}
3695
0a4f5f8c
TT
36962020-05-23 Tom Tromey <tom@tromey.com>
3697
3698 Revert commit eca1f90c:
3699 * NEWS: Remove entry for completion styling.
3700 * completer.c (_rl_completion_prefix_display_length): Move
3701 declaration later.
3702 (gdb_fnprint): Revert.
3703 (gdb_display_match_list_1): Likewise.
3704 * cli/cli-style.c (completion_prefix_style)
3705 (completion_difference_style, completion_suffix_style): Remove.
3706 (_initialize_cli_style): Revert.
3707 * cli/cli-style.h (completion_prefix_style)
3708 (completion_difference_style, completion_suffix_style): Don't
3709 declare.
3710
e08bd6c5
PA
37112020-05-24 Pedro Alves <palves@redhat.com>
3712
3713 * symtab.c (completion_list_add_name): Return boolean indication
3714 of whether the symbol matched.
3715 (completion_list_add_symbol): Don't try to remove C++ aliases if
3716 the symbol didn't match in the first place.
3717 * symtab.h (completion_list_add_name): Return bool.
3718
ceacbf6e
SM
37192020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3720
3721 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3722 type::field.
3723
26f16254
JB
37242020-05-23 Joel Brobecker <brobecker@adacore.com>
3725
3726 GDB 9.2 released.
3727
eca1f90c
TT
37282020-05-23 Tom Tromey <tom@tromey.com>
3729
3730 * NEWS: Add entry for completion styling.
3731 * completer.c (_rl_completion_prefix_display_length): Move
3732 declaration earlier.
3733 (gdb_fnprint): Use completion_style.
3734 (gdb_display_match_list_1): Likewise.
3735 * cli/cli-style.c (completion_prefix_style)
3736 (completion_difference_style, completion_suffix_style): New
3737 globals.
3738 (_initialize_cli_style): Register new globals.
3739 * cli/cli-style.h (completion_prefix_style)
3740 (completion_difference_style, completion_suffix_style): Declare.
3741
51e2cfa2
PA
37422020-05-23 Pedro Alves <palves@redhat.com>
3743
3744 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3745 (parse_escape): Use ISDIGIT instead of isdigit.
3746 (puts_debug): Use gdb_isprint instead of isprint.
3747 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3748 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3749 ISSPACE instead of isspace.
3750 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3751 instead of isspace.
3752 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3753 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3754 instead of isxdigit and ISDIGIT instead of isdigit.
3755
80fc5e77
SM
37562020-05-22 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * gdbtypes.h (struct type) <field>: New method.
3759 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3760 or type::field.
3761
3cabb6b0
SM
37622020-05-22 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3765 (TYPE_FIELDS): Use type::fields. Change all call sites that
3766 modify the propery to use type::set_fields instead.
3767
1f704f76
SM
37682020-05-22 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3771 type::num_fields instead.
3772
5e33d5f4
SM
37732020-05-22 Simon Marchi <simon.marchi@efficios.com>
3774
3775 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3776 methods.
3777 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3778 that modify the number of fields to use type::set_num_fields
3779 instead.
3780
9392ebb3
TT
37812020-05-22 Tom Tromey <tromey@adacore.com>
3782
3783 * compile/compile-object-load.h (munmap_list_free): Don't
3784 declare.
3785
7c13f4e8
AB
37862020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * annotate.c (annotate_source_line): Update return type, add call
3789 to update current symtab and line.
3790 * annotate.h (annotate_source_line): Update return type, and
3791 extend header comment.
3792 * source.c (info_line_command): Check annotation_level before
3793 calling annotate_source_line.
3794 * stack.c (print_frame_info): If calling annotate_source_line
3795 returns true, then don't print any other source line information.
3796
aa370940
SM
37972020-05-21 Simon Marchi <simon.marchi@efficios.com>
3798
3799 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3800
84d53fa9
SM
38012020-05-21 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * coffread.c (patch_type): Remove NULL check before xfree.
3804 * corefile.c (set_gnutarget): Likewise.
3805 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3806 * exec.c (build_section_table): Likewise.
3807 * remote.c (remote_target::pass_signals): Likewise.
3808 * utils.c (n_spaces): Likewise.
3809 * cli/cli-script.c (document_command): Likewise.
3810 * i386-windows-tdep.c (core_process_module_section): Likewise.
3811 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3812
9d428aae
SM
38132020-05-20 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * symfile.c (reread_symbols): Clear objfile's section_offsets
3816 vector and section indices, re-compute them by calling
3817 sym_offsets.
3818
250106a7
TT
38192020-05-20 Tom Tromey <tromey@adacore.com>
3820
3821 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3822 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3823
9a0bacfb
TV
38242020-05-20 Tom de Vries <tdevries@suse.de>
3825
3826 PR symtab/25833
3827 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3828
7b958a48
AM
38292020-05-20 Alan Modra <amodra@gmail.com>
3830
3831 PR 25993
3832 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3833 bfd_set_filename.
3834 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3835 passed to bfd_set_filename.
3836 * symfile-mem.c (add_vsyscall_page): Likewise for string
3837 passed to symbol_file_add_from_memory.
3838 (symbol_file_add_from_memory): Make name param a const char* and
3839 don't strdup.
3840
c7e97679
AM
38412020-05-20 Alan Modra <amodra@gmail.com>
3842
3843 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3844 rather than accessing bfd->filename directly.
3845 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3846 and use bfd_section_name.
3847 * dwarf2/frame.c (decode_frame_entry): Likewise.
3848 * exec.c (exec_set_section_address): Likewise.
3849 * solib-aix.c (solib_aix_bfd_open): Likewise.
3850 * stap-probe.c (get_stap_base_address): Likewise.
3851 * symfile.c (reread_symbols): Likewise.
3852
563c591b
TT
38532020-05-19 Tom Tromey <tromey@adacore.com>
3854
3855 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3856
f408d82c
SM
38572020-05-19 Simon Marchi <simon.marchi@efficios.com>
3858
3859 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3860
98c59b52
PA
38612020-05-19 Pedro Alves <palves@redhat.com>
3862
3863 * NEWS (set exec-file-mismatch): Adjust entry.
3864 * exec.c: Include "build-id.h".
3865 (validate_exec_file): Try to match build IDs instead of filenames.
3866 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3867 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3868 and pass down 'warn_if_slow'.
3869 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3870 gdb_bfd_open_closure to pass it down.
3871 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3872
4111f652
PA
38732020-05-19 Pedro Alves <palves@redhat.com>
3874
3875 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3876 * target.c (target_fileio_open_1): Rename to target_fileio_open
3877 and make extern. Use bool.
3878 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3879 (target_fileio_read_alloc_1): Adjust.
3880 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3881 (target_fileio_open_warn_if_slow): Delete declaration.
3882
ad80db5b
PA
38832020-05-19 Pedro Alves <palves@redhat.com>
3884
3885 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3886 Adjust all callers.
3887
1d6ce4d3
YS
38882020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3889
3890 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3891 whether disp is negative.
3892
9005fbbb
SM
38932020-05-19 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * symfile.h (struct symfile_segment_data)
3896 <~symfile_segment_data>: Remove.
3897 <segment_info>: Change to std::vector.
3898 * symfile.c (default_symfile_segments): Update.
3899 * elfread.c (elf_symfile_segments): Update.
3900
68b888ff
SM
39012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3904 <segments>: New.
3905 <segment_bases, segment_sizes>: Remove.
3906 * symfile.c (default_symfile_segments): Update.
3907 * elfread.c (elf_symfile_segments): Update.
3908 * remote.c (remote_target::get_offsets): Update.
3909 * solib-target.c (solib_target_relocate_section_addresses):
3910 Update.
3911
62982abd
SM
39122020-05-19 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * symfile.h (struct symfile_segment_data): Initialize fields.
3915 <~symfile_segment_data>: Add.
3916 (symfile_segment_data_up): New.
3917 (struct sym_fns) <sym_segments>: Return a
3918 symfile_segment_data_up.
3919 (default_symfile_segments): Return a symfile_segment_data_up.
3920 (free_symfile_segment_data): Remove.
3921 (get_symfile_segment_data): Return a symfile_segment_data_up.
3922 * symfile.c (default_symfile_segments): Likewise.
3923 (get_symfile_segment_data): Likewise.
3924 (free_symfile_segment_data): Remove.
3925 (symfile_find_segment_sections): Update.
3926 * elfread.c (elf_symfile_segments): Return a
3927 symfile_segment_data_up.
3928 * remote.c (remote_target::get_offsets): Update.
3929 * solib-target.c (solib_target_relocate_section_addresses):
3930 Update.
3931 * symfile-debug.c (debug_sym_segments): Return a
3932 symfile_segment_data_up.
3933
7f204339
RO
39342020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3935
e52a0f1b
RO
3936 PR build/25981
3937 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3938 Hardcode register numbers.
3939
7f204339
RO
3940 PR build/25981
3941 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3942 procfs_find_LDT_entry): Remove.
3943 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3944 procfs_find_LDT_entry): Remove.
3945 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3946 Remove.
3947
7f32a4d5
PA
39482020-05-17 Pedro Alves <palves@redhat.com>
3949 Andrew Burgess <andrew.burgess@embecosm.com>
3950 Keno Fischer <keno@juliacomputing.com>
3951
3952 PR gdb/25741
3953 * breakpoint.c (build_target_condition_list): Update comments.
3954 (build_target_command_list): Update comments and skip matching
3955 locations.
3956 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3957 a separate function. Simplify "set breakpoint auto-hw off"
3958 handling.
3959 (insert_breakpoints): Update comment.
3960 (tracepoint_locations_match): New parameter. For breakpoints,
3961 compare location types too, if the caller wants to.
3962 (handle_automatic_hardware_breakpoints): New functions.
3963 (bp_location_is_less_than): Also sort by location type and
3964 hardware breakpoint length.
3965 (update_global_location_list): Handle "set breakpoint auto-hw on"
3966 here.
3967 (update_breakpoint_locations): Ask breakpoint_locations_match to
3968 ignore location types.
3969
7d93a1e0
SM
39702020-05-16 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3973 type::name instead.
3974
d0e39ea2
SM
39752020-05-16 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * gdbtypes.h (struct type) <name, set_name>: New methods.
3978 (TYPE_CODE): Use type::name. Change all call sites used to set
3979 the name to use type::set_name instead.
3980
2dab0c7b
TT
39812020-05-16 Tom Tromey <tom@tromey.com>
3982
3983 * top.c (quit_force): Update.
3984 * infrun.c (handle_no_resumed): Update.
3985 * top.h (all_uis): New function.
3986 (ALL_UIS): Remove.
3987
59f7bd8d
SM
39882020-05-16 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3991
9bf058f0
PA
39922020-05-16 Pedro Alves <palves@redhat.com>
3993
3994 * ia64-linux-nat.c
3995 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3996 Declare method.
3997 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3998
8f86ae1a
SM
39992020-05-15 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4002 (sparc64_adi_info): Likewise.
4003
d6bc0792
TT
40042020-05-15 Tom Tromey <tom@tromey.com>
4005
4006 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4007 block_objfile.
4008 (lookup_objfile_from_block): Remove.
4009 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4010 (lookup_global_symbol): Use block_objfile.
4011 * symtab.h (lookup_objfile_from_block): Don't declare.
4012 * printcmd.c (clear_dangling_display_expressions): Use
4013 block_objfile.
4014 * parse.c (operator_check_standard): Use block_objfile.
4015
8c14c3a3
TT
40162020-05-15 Tom Tromey <tom@tromey.com>
4017
4018 * language.c (language_alloc_type_symbol): Set
4019 SYMBOL_SECTION.
4020 * symtab.c (initialize_objfile_symbol): Remove.
4021 (allocate_symbol): Remove.
4022 (allocate_template_symbol): Remove.
4023 * dwarf2/read.c (fixup_go_packaging): Use "new".
4024 (new_symbol): Use "new".
4025 (read_variable): Don't call initialize_objfile_symbol. Use
4026 "new".
4027 (read_func_scope): Use "new".
4028 * xcoffread.c (process_xcoff_symbol): Don't call
4029 initialize_objfile_symbol.
4030 (SYMBOL_DUP): Remove.
4031 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4032 "new".
4033 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4034 (allocate_template_symbol): Don't declare.
4035 (struct symbol): Add copy constructor. Change defaults.
4036 * jit.c (finalize_symtab): Use "new".
4037 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4038 Use "new".
4039 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4040 (common_block_end): Use "new".
4041 * mdebugread.c (parse_symbol): Use "new".
4042 (new_symbol): Likewise.
4043
5b4a1a8d
PW
40442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4045
4046 * NEWS: Mention changes to help and apropos.
4047
57b4f16e
PW
40482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4049
4050 * command.h (enum command_class): Improve comments, document
4051 that class_alias is for user-defined aliases, give the class
4052 name for each class, remove unused class_xdb.
4053 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4054 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4055 by a precise class.
4056 * infcmd.c (_initialize_infcmd): Likewise.
4057 * reverse.c (_initialize_reverse): Likewise.
4058 * stack.c (_initialize_stack): Likewise.
4059 * symfile.c (_initialize_symfile): Likewise.
4060 * tracepoint.c (_initialize_tracepoint): Likewise.
4061
7c05caf7
PW
40622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4063
4064 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4065 when their aliased command is traversed.
4066 (help_cmd): Add fput_command_names_styled call to
4067 output command name and aliases when command has an alias.
4068
3b3aaacb
PW
40692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4070
4071 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4072 * cli/cli-decode.c (help_cmd_list): Declare as static,
4073 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4074 a command together with the command.
4075 (fput_command_name_styled, fput_command_names_styled): New functions.
4076 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4077 fput_command_name_styled.
4078 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4079 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4080
7aa1b46f
PW
40812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4082
4083 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4084 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4085 * command.h (cmd_show_list): Likewise.
4086 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4087 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4088
89bcba74
PW
40892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4090
4091 * unittests/command-def-selftests.c (traverse_command_structure):
4092 Verify all commands of a list have the same prefix command and
4093 that only the top cmdlist commands have a null prefix.
4094
3f4d92eb
PW
40952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4096
4097 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4098 as prefix, not one of its aliases.
4099 (set_cmd_prefix): Remove.
4100 (do_add_cmd): Centralize the setting of the prefix of a command, when
4101 command is defined after its full chain of prefix commands.
4102 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4103 (add_setshow_cmd_full): Likewise.
4104 (update_prefix_field_of_prefixed_commands): New function.
4105 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4106 update_prefix_field_of_prefixed_commands.
4107 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4108 addresses of remote_set_cmdlist and remote_show_cmdlist given
4109 as argument, not the address of an argument.
4110 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4111 * gdb/remote.c (_initialize_remote): Likewise.
4112
0605465f
PW
41132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4114
4115 * cli/cli-cmds.c (alias_command): Check for an existing alias
4116 using lookup_cmd_composition, as valid_command_p is too strict
4117 and forbids aliases that are the prefix of an existing alias
4118 or command.
4119 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4120 command is properly recognised as a valid command.
4121
58e6ac70
PW
41222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4123
4124 * unittests/help-doc-selftests.c: Rename to
4125 unittests/command-def-selftests.c
4126 * unittests/command-def-selftests.c (help_doc_tests): Update some
4127 comments.
4128 (command_structure_tests, traverse_command_structure): New namespace
4129 and function.
4130 (command_structure_invariants_tests): New function.
4131 (_initialize_command_def_selftests) Renamed from
4132 _initialize_help_doc_selftests, register command_structure_invariants
4133 selftest.
4134
a7b9ceb8
PW
41352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4136
4137 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4138 an alias of 'show'.
4139
b2188a06
JB
41402020-05-15 Joel Brobecker <brobecker@adacore.com>
4141
4142 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4143 ada_is_fixed_point_type. Update all callers.
4144 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4145 all callers.
4146 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4147 Update all callers.
4148 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4149 print_fixed_point_type. Update all callers.
4150 * ada-valprint.c (ada_value_print_num): Replace call to
4151 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4152
a51951c2
KB
41532020-05-14 Kevin Buettner <kevinb@redhat.com>
4154
4155 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4156 processors.
4157 (cpu_supports_bts): Add CV_AMD case.
4158
29d6859f
LM
41592020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4160 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * infrun.c (stop_all_threads): Collect multiple wait events at
4163 each pass.
4164
78134374
SM
41652020-05-14 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4168 type::code instead.
4169
67607e24
SM
41702020-05-14 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * gdbtypes.h (struct type) <code, set_code>: New methods.
4173 (TYPE_CODE): Use type::code. Change all call sites used to set
4174 the code to use type::set_code instead.
4175
a05575d3
TBA
41762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177 Tom de Vries <tdevries@suse.de>
4178 Pedro Alves <palves@redhat.com>
4179
4180 PR threads/25478
4181 * infrun.c (stop_all_threads): Do NOT ignore
4182 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4183 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4184 received.
4185 (handle_no_resumed): Remove code handling a live inferior with no
4186 threads.
4187 * remote.c (has_single_non_exited_thread): New.
4188 (remote_target::update_thread_list): Do not delete a thread if is
4189 the last thread of the process.
4190 * thread.c (thread_select): Call delete_exited_threads instead of
4191 prune_threads.
4192
6ad82919
TBA
41932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4194
4195 * infrun.c (stop_all_threads): Enable/disable thread events of all
4196 targets. Move a debug message denoting the end of the function
4197 into the SCOPED_EXIT block.
4198
d890404b
TBA
41992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4200
4201 * process-stratum-target.h: Include <set>.
4202 (all_non_exited_process_targets, switch_to_target_no_thread): New
4203 function declarations.
4204 * process-stratum-target.c (all_non_exited_process_targets)
4205 (switch_to_target_no_thread): New function implementations.
4206
293b3ebc
TBA
42072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4208
4209 * infrun.c (handle_inferior_event): Extract out a piece of code
4210 into...
4211 (mark_non_executing_threads): ...this new function.
4212
7ca9b62a
TBA
42132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4214
4215 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4216 use.
4217
fc75c28b
TBA
42182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4219
4220 * regcache.c (regcache_read_pc_protected): New function
4221 implementation that returns 0 if the PC cannot read via
4222 'regcache_read_pc'.
4223 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4224 instead of 'regcache_read_pc'.
4225 (keep_going_pass_signal): Ditto.
4226
a89febbd
TT
42272020-05-13 Tom Tromey <tromey@adacore.com>
4228
4229 * ada-lang.c (align_value): Remove.
4230 (ada_template_to_fixed_record_type_1): Use align_up.
4231
f7e23710
TBA
42322020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4233
4234 * async-event.c: Update the copyright year.
4235 * async-event.h: Update the copyright year.
4236
02ff80c2
SM
42372020-05-12 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * objfiles.h (is_addr_in_objfile,
4240 shared_objfile_contains_address_p): Return bool.
4241 * objfile.c (is_addr_in_objfile,
4242 shared_objfile_contains_address_p): Return bool.
4243
4fd6c7e8
TT
42442020-05-11 Tom Tromey <tromey@adacore.com>
4245
4246 * cli/cli-cmds.c (info_command): Restore.
4247 (_initialize_cli_cmds): Use add_prefix_command for "info".
4248 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4249
5eb68a39
TT
42502020-05-11 Tom Tromey <tromey@adacore.com>
4251
4252 * ada-lang.c (ada_value_primitive_field): Now public.
4253 * ada-lang.h (ada_value_primitive_field): Declare.
4254 * ada-valprint.c (print_field_values): Use
4255 ada_value_primitive_field for wrapper fields.
4256
7666722f
TV
42572020-05-11 Tom de Vries <tdevries@suse.de>
4258
4259 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4260 MODULE_DOMAIN.
4261
3ee6bb11
TV
42622020-05-11 Tom de Vries <tdevries@suse.de>
4263
4264 PR symtab/25941
4265 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4266 with length 0, if not gdb-produced.
4267 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4268
43434996
TV
42692020-05-09 Tom de Vries <tdevries@suse.de>
4270
4271 PR gdb/25955
4272 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4273 calculation.
4274
2f78cffc
TT
42752020-05-09 Tom Tromey <tom@tromey.com>
4276
4277 * top.c (server_command): Now bool.
4278 * top.h (server_command): Now bool.
4279
4f7bc5ed
TT
42802020-05-08 Tom Tromey <tromey@adacore.com>
4281
4282 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4283 already being processed.
4284
8be4b118
TT
42852020-05-08 Tom Tromey <tom@tromey.com>
4286
4287 * printcmd.c (struct display) <next>: Remove.
4288 <display>: New constructor.
4289 <exp_string>: Now a std::string.
4290 <enabled_p>: Now a bool.
4291 (display_number): Move definition earlier.
4292 (displays): Rename from display_chain. Now a std::vector.
4293 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4294 (display_command): Update.
4295 (do_one_display, disable_display)
4296 (enable_disable_display_command, do_enable_disable_display):
4297 Update.
4298 (free_display): Remove.
4299 (clear_displays): Rewrite.
4300 (delete_display): Update.
4301 (map_display_numbers): Use function_view. Remove "data"
4302 parameter. Update.
4303 (do_delete_display): Remove.
4304 (undisplay_command): Update.
4305 (do_one_display, do_displays, disable_display)
4306 (info_display_command): Update.
4307 (do_enable_disable_display): Remove.
4308 (enable_disable_display_command)
4309 (clear_dangling_display_expressions): Update.
4310
94c93c35
TT
43112020-05-08 Tom Tromey <tom@tromey.com>
4312
4313 * symtab.c (set_symbol_cache_size)
4314 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4315 (maintenance_print_symbol_cache_statistics): Update.
4316 * symmisc.c (print_symbol_bcache_statistics)
4317 (print_objfile_statistics, maintenance_print_objfiles)
4318 (maintenance_info_symtabs, maintenance_check_symtabs)
4319 (maintenance_expand_symtabs, maintenance_info_line_tables):
4320 Update.
4321 * symfile-debug.c (set_debug_symfile): Update.
4322 * source.c (forget_cached_source_info): Update.
4323 * python/python.c (gdbpy_progspaces): Update.
4324 * psymtab.c (maintenance_info_psymtabs): Update.
4325 * probe.c (parse_probes): Update.
4326 * linespec.c (iterate_over_all_matching_symtabs)
4327 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4328 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4329 * exec.c (exec_target::close): Update.
4330 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4331 * breakpoint.c (print_one_breakpoint_location)
4332 (create_longjmp_master_breakpoint)
4333 (create_std_terminate_master_breakpoint): Update.
4334 * progspace.c (program_spaces): Now a std::vector.
4335 (maybe_new_address_space): Update.
4336 (add_program_space): Remove.
4337 (program_space::program_space): Update.
4338 (remove_program_space): Update.
4339 (number_of_program_spaces): Remove.
4340 (print_program_space, update_address_spaces): Update.
4341 * progspace.h (program_spaces): Change type.
4342 (ALL_PSPACES): Remove.
4343 (number_of_program_spaces): Don't declare.
4344 (struct program_space) <next>: Remove.
4345
a1fd1ac9
TT
43462020-05-08 Tom Tromey <tom@tromey.com>
4347
4348 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4349 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4350 (enable_break): Update.
4351 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4352 (frv_fdpic_find_canonical_descriptor): Update.
4353 (frv_fetch_objfile_link_map): Update.
4354 * progspace.c (program_space::free_all_objfiles): Update.
4355 (program_space::solibs): New method.
4356 * progspace.h (struct program_space) <solibs>: New method.
4357 * solist.h (master_so_list): Don't declare.
4358 (ALL_SO_LIBS): Remove.
4359 * solib.h (so_list_head): Remove.
4360 (update_solib_list): Update comment.
4361 * solib.c (master_so_list): Remove.
4362 (solib_used, update_solib_list, solib_add)
4363 (info_sharedlibrary_command, clear_solib)
4364 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4365
38eae084
TT
43662020-05-08 Tom Tromey <tom@tromey.com>
4367
4368 * extension.c (extension_languages): Now a std::array.
4369 (ALL_EXTENSION_LANGUAGES): Remove.
4370 (get_ext_lang_defn, get_ext_lang_of_file)
4371 (eval_ext_lang_from_control_command): Update.
4372 (finish_ext_lang_initialization)
4373 (auto_load_ext_lang_scripts_for_objfile)
4374 (ext_lang_type_printers::ext_lang_type_printers)
4375 (apply_ext_lang_type_printers)
4376 (ext_lang_type_printers::~ext_lang_type_printers)
4377 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4378 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4379 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4380 (get_matching_xmethod_workers, ext_lang_colorize)
4381 (ext_lang_before_prompt): Update.
4382 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4383
596dc4ad
TT
43842020-05-08 Tom Tromey <tom@tromey.com>
4385
4386 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4387 overload.
4388 <swap_string, m_string>: Remove.
4389 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4390 Update.
4391 * stabsread.c (define_symbol, read_type): Update.
4392 * linespec.c (find_linespec_symbols): Update.
4393 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4394 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4395 * dbxread.c (read_dbx_symtab): Update.
4396 * cp-support.h (cp_canonicalize_string_full)
4397 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4398 Return unique_xmalloc_ptr.
4399 * cp-support.c (inspect_type): Update.
4400 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4401 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4402 Likewise.
4403 * c-typeprint.c (print_name_maybe_canonical): Update.
4404 * break-catch-throw.c (check_status_exception_catchpoint):
4405 Update.
4406
bf4cb9be
TV
44072020-05-08 Tom de Vries <tdevries@suse.de>
4408
4409 * infrun.c (follow_fork): Copy current_line and current_symtab to
4410 child thread.
4411
a1b68f28
SM
44122020-05-07 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * async-event.c (struct async_signal_handler, struct
4415 async_event_handler): Reformat, remove typedef.
4416
98d48915
SM
44172020-05-07 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4420 access thistype->main_type->dyn_prop_list directly.
4421
7aa91313
SM
44222020-05-07 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4425 (remove_dyn_prop): Remove. Update all users to use
4426 type::remove_dyn_prop.
4427 * gdbtypes.c (remove_dyn_prop): Rename to...
4428 (type::remove_dyn_prop): ... this.
4429
5c54719c
SM
44302020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4431
4432 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4433 (add_dyn_prop): Remove. Update all users to use
4434 type::add_dyn_prop.
4435 * gdbtypes.c (add_dyn_prop): Rename to...
4436 (type::add_dyn_prop): ... this.
4437
24e99c6c
SM
44382020-05-07 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4441 (get_dyn_prop): Remove. Update all users to use
4442 type::dyn_prop.
4443 * gdbtypes.c (get_dyn_prop): Rename to...
4444 (type::dyn_prop): ... this.
4445
0d4bf016
SM
44462020-05-06 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4449
ac4a4f1c
SM
44502020-05-06 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4453 instruction, skip it if it's there.
4454
a3bbacc1
SM
44552020-05-05 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4458
c3236f84
SM
44592020-05-04 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4462 * gdbtypes.c (recursive_dump_type): Remove use of
4463 TYPE_INCOMPLETE.
4464
3b6acaee
TT
44652020-05-03 Tom Tromey <tom@tromey.com>
4466
4467 * breakpoint.c (catch_command, tcatch_command): Remove.
4468 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4469 add_show_prefix_cmd.
4470 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4471 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4472 Remove.
4473 (add_internal_problem_command): Use add_basic_prefix_cmd,
4474 add_show_prefix_cmd.
4475 * mips-tdep.c (set_mipsfpu_command): Remove.
4476 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4477 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4478 (_initialize_index_cache): Use add_basic_prefix_cmd.
4479 * memattr.c (dummy_cmd): Remove.
4480 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4481 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4482 (_initialize_tui_win): Use add_basic_prefix_cmd,
4483 add_show_prefix_cmd.
4484 * cli/cli-logging.c (set_logging_command): Remove.
4485 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4486 add_show_prefix_cmd.
4487 (show_logging_command): Remove.
4488 * target.c (target_command): Remove.
4489 (add_target): Use add_basic_prefix_cmd.
4490
a51119cd
HD
44912020-05-02 Hannes Domani <ssbssa@yahoo.de>
4492
4493 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4494
652fc23a 44952020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4496
652fc23a
PW
4497 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4498 info_command.
4499
117539e6
KR
45002020-04-30 Kamil Rytarowski <n54@gmx.com>
4501
4502 * nbsd-nat.c (nbsd_enable_proc_events)
4503 (nbsd_nat_target::post_startup_inferior): Add.
4504 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4505 (nbsd_nat_target::update_thread_list): Rewrite.
4506 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4507 "PTRACE_LWP_CREATE".
4508 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4509
102e38eb 45102020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4511
102e38eb
PW
4512 * stack.c (_initialize_stack): Remove duplicated creation
4513 of "frame" command and "f" alias.
4514
ee9d1e5f
HD
45152020-04-30 Hannes Domani <ssbssa@yahoo.de>
4516
4517 PR gdb/18706
4518 * gdbtypes.c (check_typedef): Calculate size of array of
4519 stubbed type.
4520
627c7fb8
HD
45212020-04-30 Hannes Domani <ssbssa@yahoo.de>
4522
4523 PR gdb/15559
4524 * i386-tdep.c (i386_push_dummy_call): Call
4525 i386_thiscall_push_dummy_call.
4526 (i386_thiscall_push_dummy_call): New function.
4527 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4528 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4529 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4530
ffc2844e
SM
45312020-04-29 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbarch.sh (do_read): Add shellcheck disable directive for
4534 warning SC2162.
4535
1207375d
SM
45362020-04-29 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4539 "referenced but not assigned" warning.
4540
9fdb2916
SM
45412020-04-29 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbarch.sh: Remove code that sets fallbackdefault.
4544
759cea5e
SM
45452020-04-29 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * gdbarch.sh: Use shell operators && and || instead of
4548 -a and -o.
4549
cb02ab24
SM
45502020-04-29 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbarch.sh: Use $(...) instead of `...`.
4553
a6fc5ffc
SM
45542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbarch.sh: Use double quotes around variables.
4557
8d113d13
SM
45582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbarch.sh: Use %s with printf, instead of variables in the
4561 format string.
4562
ed6acedd
TT
45632020-04-29 Tom Tromey <tromey@adacore.com>
4564
4565 PR ada/25875:
4566 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4567 type fields here.
4568 (read_enumeration_type): Call
4569 update_enumeration_type_from_children later. Update comments.
4570 (process_enumeration_scope): Don't create type fields.
4571
b68b1b58
KR
45722020-04-29 Kamil Rytarowski <n54@gmx.com>
4573
4574 * nbsd-tdep.c: Include "xml-syscall.h".
4575 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4576
f94b2e03
KR
45772020-04-29 Kamil Rytarowski <n54@gmx.com>
4578
4579 * nbsd-nat.c: Include "sys/wait.h".
4580 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4581 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4582 (nbsd_nat_target::remove_exec_catchpoint)
4583 (nbsd_nat_target::set_syscall_catchpoint): Add.
4584 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4585 (nbsd_nat_target::insert_exec_catchpoint)
4586 (nbsd_nat_target::remove_exec_catchpoint)
4587 (nbsd_nat_target::set_syscall_catchpoint): Add.
4588 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4589 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4590 `nbsd_get_syscall_number'.
4591
fc49bc72
TT
45922020-04-29 Tom Tromey <tom@tromey.com>
4593
4594 * stack.c (print_block_frame_labels): Remove.
4595
d642b692
HD
45962020-04-29 Hannes Domani <ssbssa@yahoo.de>
4597
4598 PR gdb/17320
4599 * ada-valprint.c (val_print_packed_array_elements): Move array
4600 end bracket to new line.
4601 (ada_val_print_string): Remove extra spaces before first array
4602 element.
4603 * c-valprint.c (c_value_print_array): Likewise.
4604 * m2-valprint.c (m2_print_array_contents): Likewise.
4605 (m2_value_print_inner): Likewise.
4606 * p-valprint.c (pascal_value_print_inner): Likewise.
4607 * valprint.c (generic_val_print_array): Likewise.
4608 (value_print_array_elements): Move first array element and array
4609 end bracket to new line.
4610
ea90f227
TV
46112020-04-29 Tom de Vries <tdevries@suse.de>
4612
4613 PR symtab/25889
4614 * linespec.c (find_method): Fix ix calculation.
4615
4498ef4f
KR
46162020-04-28 Kamil Rytarowski <n54@gmx.com>
4617
4618 * syscalls/update-netbsd.sh: New file.
4619 * syscalls/netbsd.xml: Regenerate.
4620 * data-directory/Makefile.in: Register `netbsd.xml' in
4621 `SYSCALLS_FILES'.
4622
a55e30b5
SM
46232020-04-28 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * syscalls/update-freebsd.sh: Add double quotes.
4626
2b2fbab8
TT
46272020-04-28 Tom Tromey <tom@tromey.com>
4628
4629 * NEWS: Update.
4630 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4631 (cmdpy_init): Allow class_tui.
4632
a65189c9
TV
46332020-04-28 Mark Williams <mark@myosotissp.com>
4634
4635 PR gdb/24480
4636 * dwarf2read.c: Add missing assingments to list_in_scope when
4637 start_symtab was already called.
4638
1b95cdb7
SM
46392020-04-28 Simon Marchi <simon.marchi@efficios.com>
4640
4641 PR gdb/25881
4642 * dwarf2/read.c (offset_map_type): Use
4643 gdb:hash_enum<sect_offset> as hash function.
4644
15cd93d0
TV
46452020-04-28 Tom de Vries <tdevries@suse.de>
4646
4647 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4648 with DW_AT_signature.
4649
1eb39914
SM
46502020-04-27 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * configure.ac: Remove check for fs_base/gs_base in
4653 user_regs_struct.
4654 * configure: Re-generate.
4655 * config.in: Re-generate.
4656 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4657 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4658 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4659
991a3e2e
LM
46602020-04-27 Luis Machado <luis.machado@linaro.org>
4661
4662 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4663 problematic inline frame unwinding situation.
4664 * frame.c (frame_id_computed_p): New function.
4665 * frame.h (frame_id_computed_p): New prototype.
4666
361ba0e8
TT
46672020-04-26 Tom Tromey <tom@tromey.com>
4668
4669 * command.h (enum command_class) <class_pseudo>: Remove.
4670
bc3609fd
PW
46712020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4672
4673 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4674 and whitespace.
4675
b9771db7
KR
46762020-04-25 Kamil Rytarowski <n54@gmx.com>
4677
ec16513e
SM
4678 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4679 `PT_GET_PROCESS_STATE' block.
b9771db7 4680
7151c1af
TT
46812020-04-24 Tom Tromey <tom@tromey.com>
4682
4683 * symtab.h (symbol_get_demangled_name): Don't declare.
4684 * symtab.c (symbol_get_demangled_name): Remove.
4685 (general_symbol_info::natural_name)
4686 (general_symbol_info::demangled_name): Update.
4687
906bb4c5
TT
46882020-04-24 Tom Tromey <tom@tromey.com>
4689
4690 PR rust/25025:
4691 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4692
bcfe6157
TT
46932020-04-24 Tom Tromey <tom@tromey.com>
4694
4695 PR symtab/12707:
4696 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4697 exists.
4698 (new_symbol): Likewise.
4699 * compile/compile-object-load.c (get_out_value_type): Use
4700 symbol_matches_search_name.
4701
f049a313
TT
47022020-04-24 Tom Tromey <tom@tromey.com>
4703
4704 * dwarf2/read.c (add_partial_symbol): Do not call
4705 compute_and_set_names.
4706
76e288d1
TT
47072020-04-24 Tom Tromey <tom@tromey.com>
4708
4709 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4710 overload.
4711
2467f4f6
TT
47122020-04-24 Tom Tromey <tom@tromey.com>
4713
4714 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4715 (add_psymbol_to_list): New overload. Make old overload call new
4716 one.
4717 * psympriv.h (add_psymbol_to_list): New overload.
4718
e61108c9
TT
47192020-04-24 Tom Tromey <tom@tromey.com>
4720
4721 * dwarf2/read.c (partial_die_info::read) <case
4722 DW_AT_linkage_name>: Use value_as_string.
4723 (dwarf2_string_attr): Use value_as_string.
4724 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4725 method.
4726 * dwarf2/attribute.c (attribute::value_as_string): New method.
4727
8c87a452
TT
47282020-04-24 Tom Tromey <tom@tromey.com>
4729
4730 * symtab.c (general_symbol_info::natural_name)
4731 (general_symbol_info::demangled_name): Check for language_rust.
4732
787de330
TT
47332020-04-24 Tom Tromey <tom@tromey.com>
4734
4735 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4736 (dwarf2_physname): ... from here.
4737 (partial_die_info::read): Add Rust "{" hack.
4738
ff985671
TT
47392020-04-24 Tom Tromey <tom@tromey.com>
4740
4741 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4742 method.
4743 (symbol_set_demangled_name): Don't declare.
4744 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4745 symbol_set_demangled_name.
4746 (general_symbol_info::set_language)
4747 (general_symbol_info::compute_and_set_names): Update.
4748 * minsyms.c (minimal_symbol_reader::install): Update.
4749 * dwarf2/read.c (new_symbol): Update.
4750
1acda803
TT
47512020-04-24 Tom Tromey <tromey@adacore.com>
4752
4753 PR python/23662:
4754 * python/py-type.c (convert_field): Handle
4755 FIELD_LOC_KIND_DWARF_BLOCK.
4756 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4757 (typy_get_dynamic): Nw function.
4758 (type_object_getset): Add "dynamic".
4759 * NEWS: Add entry.
4760
d656f129
TT
47612020-04-24 Tom Tromey <tromey@adacore.com>
4762
4763 * ada-typeprint.c (print_choices, print_variant_part)
4764 (print_record_field_types_dynamic): New functions.
4765 (print_record_field_types): Use print_record_field_types_dynamic.
4766
7d79de9a
TT
47672020-04-24 Tom Tromey <tromey@adacore.com>
4768
4769 * dwarf2/read.c (handle_data_member_location): New overload.
4770 (dwarf2_add_field): Use it.
4771 (decode_locdesc): Add "computed" parameter. Update comment.
4772 * gdbtypes.c (is_dynamic_type_internal): Also look for
4773 FIELD_LOC_KIND_DWARF_BLOCK.
4774 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4775 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4776 virtual base classes.
4777 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4778 FIELD_LOC_KIND_DWARF_BLOCK.
4779
f8e89861
TT
47802020-04-24 Tom Tromey <tromey@adacore.com>
4781
4782 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4783 * gdbtypes.c (is_dynamic_type_internal): Check
4784 TYPE_HAS_DYNAMIC_LENGTH.
4785 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4786 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4787 New macros.
4788 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4789 constant.
4790
9c6a1327
TT
47912020-04-24 Tom Tromey <tromey@adacore.com>
4792
4793 * dwarf2/read.c (struct variant_field): Rewrite.
4794 (struct variant_part_builder): New.
4795 (struct nextfield): Remove "variant" field. Add "offset".
4796 (struct field_info): Add "current_variant_part" and
4797 "variant_parts".
4798 (alloc_discriminant_info): Remove.
4799 (alloc_rust_variant): New function.
4800 (quirk_rust_enum): Update.
4801 (dwarf2_add_field): Set "offset" member. Don't handle
4802 DW_TAG_variant_part.
4803 (offset_map_type): New typedef.
4804 (convert_variant_range, create_one_variant)
4805 (create_one_variant_part, create_variant_parts)
4806 (add_variant_property): New functions.
4807 (dwarf2_attach_fields_to_type): Call add_variant_property.
4808 (read_structure_type): Don't handle DW_TAG_variant_part.
4809 (handle_variant_part, handle_variant): New functions.
4810 (handle_struct_member_die): Use them.
4811 (process_structure_scope): Don't handle variant parts.
4812 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4813 (struct discriminant_info): Remove.
4814 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4815 (struct main_type) <flag_discriminated_union>: Remove.
4816 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4817 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4818 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4819 Update.
4820 * valops.c (value_union_variant): Remove.
4821 * value.h (value_union_variant): Don't declare.
4822
b249d2c2
TT
48232020-04-24 Tom Tromey <tromey@adacore.com>
4824
4825 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4826 (ada_value_primitive_packed_val): Update.
4827 * ada-valprint.c (ada_value_print_1): Update.
4828 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4829 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4830 just an address. Use evaluate_for_locexpr_baton.
4831 (dwarf2_evaluate_property): Update.
4832 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4833 array_view.
4834 * findvar.c (default_read_var_value): Update.
4835 * gdbtypes.c (compute_variant_fields_inner)
4836 (resolve_dynamic_type_internal): Update.
4837 (resolve_dynamic_type): Change type of valaddr parameter.
4838 * gdbtypes.h (resolve_dynamic_type): Update.
4839 * valarith.c (value_subscripted_rvalue): Update.
4840 * value.c (value_from_contents_and_address): Update.
4841
61122aa9
TT
48422020-04-24 Tom Tromey <tromey@adacore.com>
4843
4844 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4845 "push_initial_value" parameter.
4846 (dwarf2_evaluate_property): Likewise.
4847 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4848
ef83a141
TT
48492020-04-24 Tom Tromey <tromey@adacore.com>
4850
4851 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4852 (variant::matches, compute_variant_fields_recurse)
4853 (compute_variant_fields_inner, compute_variant_fields): New
4854 functions.
4855 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4856 Use resolved_type after type is made.
4857 (operator==): Add new cases.
4858 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4859 (struct discriminant_range, struct variant, struct variant_part):
4860 New.
4861 (union dynamic_prop_data) <variant_parts, original_type>: New
4862 members.
4863 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4864 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4865 constants.
4866 * value.c (unpack_bits_as_long): Now public.
4867 * value.h (unpack_bits_as_long): Declare.
4868
675127ec
TT
48692020-04-24 Tom Tromey <tromey@adacore.com>
4870
4871 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4872 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4873
9852ceef
HD
48742020-04-24 Hannes Domani <ssbssa@yahoo.de>
4875
4876 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4877
7632c6ce
KR
48782020-04-24 Kamil Rytarowski <n54@gmx.com>
4879
4880 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4881 (remove_fork_catchpoint, post_startup_inferior)
4882 (post_attach): Move...
4883 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4884 (remove_fork_catchpoint, post_startup_inferior)
4885 (post_attach): ...here.
4886 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4887 (remove_fork_catchpoint, post_startup_inferior)
4888 (post_attach): Move...
4889 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4890 (remove_fork_catchpoint, post_startup_inferior)
4891 (post_attach): ...here.
4892
7be2bb4f
TT
48932020-04-24 Tom Tromey <tromey@adacore.com>
4894
4895 * nat/windows-nat.h (struct windows_thread_info)
4896 <pc_adjusted>: New member.
4897 * windows-nat.c (windows_fetch_one_register): Check
4898 pc_adjusted.
4899 (windows_nat_target::get_windows_debug_event)
4900 (windows_nat_target::wait): Set pc_adjusted.
4901
f80cb3b4
TV
49022020-04-24 Tom de Vries <tdevries@suse.de>
4903
4904 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4905 Run gdb-add-index inside temp dir.
4906
29514b87
TT
49072020-04-23 Tom Tromey <tromey@adacore.com>
4908
4909 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4910 in loop.
4911
5939967b
LM
49122020-04-23 Luis Machado <luis.machado@linaro.org>
4913
4914 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4915 get_frame_register instead of gdbarch_unwind_pc.
4916
70bc38f5
TV
49172020-04-23 Tom de Vries <tdevries@suse.de>
4918
4919 * symtab.c (lookup_global_symbol): Prefer def over decl.
4920
de82891c
TV
49212020-04-23 Tom de Vries <tdevries@suse.de>
4922
4923 PR symtab/25807
4924 * block.c (best_symbol, better_symbol): Promote to external.
4925 * block.h (best_symbol, better_symbol): Declare.
4926 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4927 decl.
4928
ecc6c606
TT
49292020-04-23 Tom Tromey <tromey@adacore.com>
4930
4931 PR ada/25837:
4932 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4933 "const char *", not a "const std::string &".
4934 <name_and_matcher::operator==>: Update.
4935 * unittests/lookup_name_info-selftests.c: Change type of
4936 "result".
4937
740480b8
TT
49382020-04-23 Tom Tromey <tom@tromey.com>
4939
4940 * inferior.h (iterate_over_inferiors): Don't declare.
4941 * inferior.c (iterate_over_inferiors): Remove.
4942 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4943 Remove.
4944 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4945 use iterate_over_inferiors.
4946 (darwin_resume_inferior_it)
4947 (struct resume_inferior_threads_param)
4948 (darwin_resume_inferior_threads_it): Remove.
4949 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4950
ae3ab1f0
TV
49512020-04-23 Tom de Vries <tdevries@suse.de>
4952
4953 * blockframe.c (find_pc_partial_function): Use
4954 find_pc_sect_compunit_symtab rather than
4955 objfile->sf->qf->find_pc_sect_compunit_symtab.
4956
317d2668
TV
49572020-04-22 Tom de Vries <tdevries@suse.de>
4958
4959 PR symtab/25764
4960 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4961 in psymtabs.
4962
eea9e357
TV
49632020-04-22 Tom de Vries <tdevries@suse.de>
4964
4965 PR symtab/25801
4966 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4967 symtabs.
4968
3d5afab3
TV
49692020-04-22 Tom de Vries <tdevries@suse.de>
4970
4971 PR symtab/25700
4972 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4973 CU if already created.
4974
d43b7a2d
TBA
49752020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4976
4977 * infrun.c (displaced_step_fixup): Switch to the event_thread
4978 before calling displaced_step_restore, not after.
4979
d89edf9b
MM
49802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4981
4982 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4983 its inferior is not recorded by us.
4984 (record_btrace_target_open): Replace call to
4985 all_non_exited_threads () with call to current_inferior
4986 ()->non_exited_threads ().
4987 (record_btrace_target::stop_recording): Likewise.
4988 (record_btrace_target::close): Likewise.
4989 (record_btrace_target::wait): Likewise.
4990 (record_btrace_target::record_stop_replaying): Likewise.
4991
5897fd49
MM
49922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4993
4994 * btrace.c (btrace_enable): Throw an error on double enables and
4995 when enabling recording fails.
4996 (btrace_disable): Throw an error if the thread is not recorded.
4997
1a476b6d
MM
49982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4999
5000 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5001 request if we do not have a thread_info.
5002
4778a5f8
TV
50032020-04-21 Tom de Vries <tdevries@suse.de>
5004
5005 PR gdb/25471
5006 * thread.c
5007 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5008 exception in get_frame_id.
5009
0fa7617d
TT
50102020-04-20 Tom Tromey <tromey@adacore.com>
5011
5012 * python/python.c (struct gdbpy_event): Mark move constructor as
5013 noexcept.
5014 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5015 constructor as noexcept.
5016 * completer.h (struct completion_result): Mark move constructor as
5017 noexcept.
5018 * completer.c (completion_result::completion_result): Use
5019 initialization style. Don't call reset_match_list.
5020
ad23bda0
MS
50212020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5022
5023 * MAINTAINERS (Write After Approval): Add myself.
5024
45e1f031
TT
50252020-04-18 Tom Tromey <tom@tromey.com>
5026
5027 * windows-tdep.c (init_w32_command_list)
5028 (w32_prefix_command_valid): Restore.
5029 (_initialize_windows_tdep): Call init_w32_command_list.
5030
08feed99
TT
50312020-04-18 Tom Tromey <tom@tromey.com>
5032
5033 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5034 * value.c (value_fn_field): Update.
5035 * valops.c (find_function_in_inferior)
5036 (value_allocate_space_in_inferior): Update.
5037 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5038 Update.
5039 * tui/tui-source.c (tui_source_window::set_contents): Update.
5040 * symtab.c (lookup_global_or_static_symbol)
5041 (find_function_start_sal_1, skip_prologue_sal)
5042 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5043 * symmisc.c (dump_msymbols, dump_symtab_1)
5044 (maintenance_print_one_line_table): Update.
5045 * symfile.c (init_entry_point_info, section_is_mapped)
5046 (list_overlays_command, simple_read_overlay_table)
5047 (simple_overlay_update_1): Update.
5048 * stap-probe.c (handle_stap_probe): Update.
5049 * stabsread.c (dbx_init_float_type, define_symbol)
5050 (read_one_struct_field, read_enum_type, read_range_type): Update.
5051 * source.c (info_line_command): Update.
5052 * python/python.c (gdbpy_source_objfile_script)
5053 (gdbpy_execute_objfile_script): Update.
5054 * python/py-type.c (save_objfile_types): Update.
5055 * python/py-objfile.c (py_free_objfile): Update.
5056 * python/py-inferior.c (python_new_objfile): Update.
5057 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5058 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5059 (maintenance_check_psymtabs): Update.
5060 * printcmd.c (info_address_command): Update.
5061 * objfiles.h (struct objfile) <arch>: New method, from
5062 get_objfile_arch.
5063 (get_objfile_arch): Don't declare.
5064 * objfiles.c (get_objfile_arch): Remove.
5065 (filter_overlapping_sections): Update.
5066 * minsyms.c (msymbol_is_function): Update.
5067 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5068 (output_nondebug_symbol): Update.
5069 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5070 (mdebug_expand_psymtab): Update.
5071 * machoread.c (macho_add_oso_symfile): Update.
5072 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5073 Update.
5074 * linux-fork.c (checkpoint_command): Update.
5075 * linespec.c (convert_linespec_to_sals): Update.
5076 * jit.c (finalize_symtab): Update.
5077 * infrun.c (insert_exception_resume_from_probe): Update.
5078 * ia64-tdep.c (ia64_find_unwind_table): Update.
5079 * hppa-tdep.c (internalize_unwinds): Update.
5080 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5081 Update.
5082 * gcore.c (call_target_sbrk): Update.
5083 * elfread.c (record_minimal_symbol, elf_symtab_read)
5084 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5085 (elf_gnu_ifunc_resolve_by_got): Update.
5086 * dwarf2/read.c (create_addrmap_from_index)
5087 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5088 (read_debug_names_from_section)
5089 (process_psymtab_comp_unit_reader, add_partial_symbol)
5090 (add_partial_subprogram, process_full_comp_unit)
5091 (read_file_scope, read_func_scope, read_lexical_block_scope)
5092 (read_call_site_scope, dwarf2_ranges_read)
5093 (dwarf2_record_block_ranges, dwarf2_add_field)
5094 (mark_common_block_symbol_computed, read_tag_pointer_type)
5095 (read_tag_string_type, dwarf2_init_float_type)
5096 (dwarf2_init_complex_target_type, read_base_type)
5097 (partial_die_info::read, partial_die_info::read)
5098 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5099 (dwarf2_fetch_die_loc_sect_off): Update.
5100 * dwarf2/loc.c (dwarf2_find_location_expression)
5101 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5102 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5103 (dwarf2_loc_desc_get_symbol_read_needs)
5104 (locexpr_describe_location_piece, locexpr_describe_location_1)
5105 (loclist_describe_location): Update.
5106 * dwarf2/index-write.c (write_debug_names): Update.
5107 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5108 * dtrace-probe.c (dtrace_process_dof): Update.
5109 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5110 (process_one_symbol): Update.
5111 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5112 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5113 (coff_read_enum_type): Update.
5114 * cli/cli-cmds.c (edit_command, list_command): Update.
5115 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5116 * breakpoint.c (create_overlay_event_breakpoint)
5117 (create_longjmp_master_breakpoint)
5118 (create_std_terminate_master_breakpoint)
5119 (create_exception_master_breakpoint, get_sal_arch): Update.
5120 * block.c (block_gdbarch): Update.
5121 * annotate.c (annotate_source_line): Update.
5122
0743fc83
TT
51232020-04-17 Tom Tromey <tromey@adacore.com>
5124
5125 * auto-load.c (show_auto_load_cmd): Remove.
5126 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5127 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5128 (maintenance_print_arc_command): Remove.
5129 * tui/tui-win.c (tui_command): Remove.
5130 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5131 * tui/tui-layout.c (tui_layout_command): Remove.
5132 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5133 * python/python.c (user_set_python, user_show_python): Remove.
5134 (_initialize_python): Use add_basic_prefix_cmd,
5135 add_show_prefix_cmd.
5136 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5137 (install_gdb_commands): Use add_basic_prefix_cmd,
5138 add_show_prefix_cmd.
5139 (info_guile_command): Remove.
5140 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5141 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5142 add_show_prefix_cmd.
5143 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5144 Remove do_set and do_show parameters.
5145 * cli/cli-style.c (set_style, show_style): Remove.
5146 (_initialize_cli_style): Use add_basic_prefix_cmd,
5147 add_show_prefix_cmd.
5148 (cli_style_option::add_setshow_commands): Remove do_set and
5149 do_show parameters.
5150 (cli_style_option::add_setshow_commands): Use
5151 add_basic_prefix_cmd, add_show_prefix_cmd.
5152 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5153 (set_style_name): Remove.
5154 * cli/cli-dump.c (dump_command, append_command): Remove.
5155 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5156 (tekhex_dump_command, binary_dump_command)
5157 (binary_append_command): Remove.
5158 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5159 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5160 (init_w32_command_list): Remove; move into ...
5161 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5162 * valprint.c (set_print, show_print, set_print_raw)
5163 (show_print_raw): Remove.
5164 (_initialize_valprint): Use add_basic_prefix_cmd,
5165 add_show_prefix_cmd.
5166 * typeprint.c (set_print_type, show_print_type): Remove.
5167 (_initialize_typeprint): Use add_basic_prefix_cmd,
5168 add_show_prefix_cmd.
5169 * record.c (set_record_command, show_record_command): Remove.
5170 (_initialize_record): Use add_basic_prefix_cmd,
5171 add_show_prefix_cmd.
5172 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5173 add_show_prefix_cmd.
5174 (info_command, show_command, set_debug, show_debug): Remove.
5175 * top.h (set_history, show_history): Don't declare.
5176 * top.c (set_history, show_history): Remove.
5177 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5178 (unset_tdesc_cmd): Remove.
5179 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5180 add_show_prefix_cmd.
5181 * symtab.c (info_module_command): Remove.
5182 (_initialize_symtab): Use add_basic_prefix_cmd.
5183 * symfile.c (overlay_command): Remove.
5184 (_initialize_symfile): Use add_basic_prefix_cmd.
5185 * sparc64-tdep.c (info_adi_command): Remove.
5186 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5187 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5188 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5189 add_show_prefix_cmd.
5190 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5191 (_initialize_serial): Use add_basic_prefix_cmd,
5192 add_show_prefix_cmd.
5193 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5194 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5195 add_show_prefix_cmd.
5196 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5197 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5198 add_show_prefix_cmd.
5199 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5200 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5201 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5202 add_show_prefix_cmd.
5203 * remote.c (remote_command, set_remote_cmd): Remove.
5204 (_initialize_remote): Use add_basic_prefix_cmd.
5205 * record-full.c (set_record_full_command)
5206 (show_record_full_command): Remove.
5207 (_initialize_record_full): Use add_basic_prefix_cmd,
5208 add_show_prefix_cmd.
5209 * record-btrace.c (cmd_set_record_btrace)
5210 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5211 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5212 (cmd_show_record_btrace_pt): Remove.
5213 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5214 add_show_prefix_cmd.
5215 * ravenscar-thread.c (set_ravenscar_command)
5216 (show_ravenscar_command): Remove.
5217 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5218 add_show_prefix_cmd.
5219 * mips-tdep.c (show_mips_command, set_mips_command)
5220 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5221 add_show_prefix_cmd.
5222 * maint.c (maintenance_command, maintenance_info_command)
5223 (maintenance_check_command, maintenance_print_command)
5224 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5225 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5226 add_show_prefix_cmd.
5227 (show_per_command_cmd): Remove.
5228 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5229 Remove.
5230 (maintenance_show_test_settings_cmd): Remove.
5231 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5232 add_show_prefix_cmd.
5233 * maint-test-options.c (maintenance_test_options_command):
5234 Remove.
5235 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5236 * macrocmd.c (macro_command): Remove
5237 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5238 * language.c (set_check, show_check): Remove.
5239 (_initialize_language): Use add_basic_prefix_cmd,
5240 add_show_prefix_cmd.
5241 * infcmd.c (unset_command): Remove.
5242 (_initialize_infcmd): Use add_basic_prefix_cmd.
5243 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5244 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5245 add_show_prefix_cmd.
5246 * go32-nat.c (go32_info_dos_command): Remove.
5247 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5248 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5249 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5250 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5251 (_initialize_frame): Use add_basic_prefix_cmd,
5252 add_show_prefix_cmd.
5253 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5254 (_initialize_dcache): Use add_basic_prefix_cmd,
5255 add_show_prefix_cmd.
5256 * cp-support.c (maint_cplus_command): Remove.
5257 (_initialize_cp_support): Use add_basic_prefix_cmd.
5258 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5259 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5260 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5261 add_basic_prefix_cmd, add_show_prefix_cmd.
5262 * breakpoint.c (save_command): Remove.
5263 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5264 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5265 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5266 add_show_prefix_cmd.
5267 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5268 (set_ada_command, show_ada_command): Remove.
5269 (_initialize_ada_language): Use add_basic_prefix_cmd,
5270 add_show_prefix_cmd.
5271 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5272
3557f442
KR
52732020-04-16 Kamil Rytarowski <n54@gmx.com>
5274
5275 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5276 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5277
16197208
SM
52782020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5281 warning messages.
5282
00ac85d3
SM
52832020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5284
5285 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5286 import table is not at beginning of .idata section.
5287
381ce63f
PA
52882020-04-16 Pedro Alves <palves@redhat.com>
5289
5290 * inferior.c (delete_inferior): Use delete operator directly
5291 instead of delete_program_space.
5292 * progspace.c (add_program_space): New, factored out from
5293 program_space::program_space.
5294 (remove_program_space): New, factored out from
5295 delete_program_space.
5296 (program_space::program_space): Remove intro comment. Rewrite.
5297 (program_space::~program_space): Remove intro comment. Call
5298 remove_program_space.
5299 (delete_program_space): Delete.
5300 * progspace.h (program_space::program_space): Make explicit. Move
5301 intro comment here, adjusted.
5302 (program_space::~program_space): Move intro comment here,
5303 adjusted.
5304 (delete_program_space): Remove.
5305
a010605f
TT
53062020-04-16 Tom Tromey <tromey@adacore.com>
5307
5308 * windows-nat.c (windows_nat::handle_access_violation): New
5309 function.
5310 * nat/windows-nat.h (handle_access_violation): Declare.
5311 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5312 windows-nat.c. Call handle_access_violation.
5313
efba5c23
TV
53142020-04-16 Tom de Vries <tdevries@suse.de>
5315
5316 PR symtab/25791
5317 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5318 CUs without psymtab.
5319
97ed802d
KB
53202020-04-16 Kevin Buettner <kevinb@redhat.com>
5321
5322 * python/python.c (do_start_initialization): Don't call
5323 PyEval_InitThreads for Python 3.9 and beyond.
5324
c7d64809
KR
53252020-04-15 Kamil Rytarowski <n54@gmx.com>
5326
5327 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5328 thread functions.
5329 (obsd_nat_target::wait): Likewise.
5330
ce127a96
TT
53312020-04-15 Tom Tromey <tromey@adacore.com>
5332
5333 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5334 (DEBUG_EXCEPT): Use debug_printf.
5335
99f1bc6a
AB
53362020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * completer.c (class completion_tracker::completion_hash_entry)
5339 <hash_name>: New member function.
5340 (completion_tracker::discard_completions): New callback to hash a
5341 completion_hash_entry, pass this to htab_create_alloc.
5342
a0e9b532
JT
53432016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5344
5345 * windows-nat.c (windows_make_so): Warn rather than stopping with
5346 an error if realpath() fails.
5347
06ca5dd4
KR
53482020-04-14 Kamil Rytarowski <n54@gmx.com>
5349
5350 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5351 (nbsd_nat_target::info_proc): Add do_status.
5352
194d088f
TV
53532020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5354 Tom de Vries <tdevries@suse.de>
5355
5356 PR symtab/25718
5357 * psympriv.h (struct partial_symtab::read_symtab)
5358 (struct partial_symtab::expand_psymtab)
5359 (struct partial_symtab::read_dependencies): Update comments.
5360 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5361 read_symtab for includer.
5362 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5363 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5364 (struct dwarf2_include_psymtab::m_readin): Remove.
5365 (struct dwarf2_include_psymtab::includer): New member function.
5366 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5367
c1a66c06
TV
53682020-04-14 Tom de Vries <tdevries@suse.de>
5369
5370 PR symtab/25720
5371 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5372 with NULL symbol_matcher and lookup_name.
5373 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5374 and lookup_name.
5375 * dwarf2/read.c (dw2_expand_symtabs_matching)
5376 (dw2_debug_names_expand_symtabs_matching): Same.
5377 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5378 Make lookup_name a pointer. Update comment.
5379 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5380 lookup_name being a pointer.
5381 * symfile.c (expand_symtabs_matching): Same.
5382 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5383 * linespec.c (iterate_over_all_matching_symtabs): Same.
5384
400b5eca
TT
53852020-04-13 Tom Tromey <tom@tromey.com>
5386
5387 * run-on-main-thread.c: Update include.
5388 * unittests/main-thread-selftests.c: Update include.
5389 * tui/tui-win.c: Update include.
5390 * tui/tui-io.c: Update include.
5391 * tui/tui-interp.c: Update include.
5392 * tui/tui-hooks.c: Update include.
5393 * top.h: Update include.
5394 * top.c: Update include.
5395 * ser-base.c: Update include.
5396 * remote.c: Update include.
5397 * remote-notif.c: Update include.
5398 * remote-fileio.c: Update include.
5399 * record-full.c: Update include.
5400 * record-btrace.c: Update include.
5401 * python/python.c: Update include.
5402 * posix-hdep.c: Update include.
5403 * mingw-hdep.c: Update include.
5404 * mi/mi-main.c: Update include.
5405 * mi/mi-interp.c: Update include.
5406 * main.c: Update include.
5407 * linux-nat.c: Update include.
5408 * interps.c: Update include.
5409 * infrun.c: Update include.
5410 * inf-loop.c: Update include.
5411 * event-top.c: Update include.
5412 * event-loop.c: Move to ../gdbsupport/.
5413 * event-loop.h: Move to ../gdbsupport/.
5414 * async-event.h: Update include.
5415 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5416
93b54c8e
TT
54172020-04-13 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-win.c: Include async-event.h.
5420 * remote.c: Include async-event.h.
5421 * remote-notif.c: Include async-event.h.
5422 * record-full.c: Include async-event.h.
5423 * record-btrace.c: Include async-event.h.
5424 * infrun.c: Include async-event.h.
5425 * event-top.c: Include async-event.h.
5426 * event-loop.h: Move some declarations to async-event.h.
5427 * event-loop.c: Don't include ser-event.h or top.h. Move some
5428 code to async-event.c.
5429 * async-event.h: New file.
5430 * async-event.c: New file.
5431 * Makefile.in (COMMON_SFILES): Add async-event.c.
5432 (HFILES_NO_SRCDIR): Add async-event.h.
5433
c1cd3163
TT
54342020-04-13 Tom Tromey <tom@tromey.com>
5435
5436 * utils.c (flush_streams): New function.
5437 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5438
29f2bf4f
TT
54392020-04-13 Tom Tromey <tom@tromey.com>
5440
5441 * event-loop.c (handle_file_event): Use warning, not
5442 printf_unfiltered.
5443
98029d02
TT
54442020-04-13 Tom Tromey <tom@tromey.com>
5445
5446 * event-loop.c: Include <chrono>.
5447
06cc9596
TT
54482020-04-13 Tom Tromey <tom@tromey.com>
5449
5450 * gdb_select.h: Move to ../gdbsupport/.
5451 * event-loop.c: Update include path.
5452 * top.c: Update include path.
5453 * ser-base.c: Update include path.
5454 * ui-file.c: Update include path.
5455 * ser-tcp.c: Update include path.
5456 * guile/scm-ports.c: Update include path.
5457 * posix-hdep.c: Update include path.
5458 * ser-unix.c: Update include path.
5459 * gdb_usleep.c: Update include path.
5460 * mingw-hdep.c: Update include path.
5461 * inflow.c: Update include path.
5462 * infrun.c: Update include path.
5463 * event-top.c: Update include path.
5464
8ae8e197
TT
54652020-04-13 Tom Tromey <tom@tromey.com>
5466
5467 * configure: Rebuild.
5468 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5469
58cf28e8
TT
54702020-04-13 Tom Tromey <tom@tromey.com>
5471
5472 * event-loop.h (start_event_loop): Don't declare.
5473 * event-loop.c (start_event_loop): Move...
5474 * main.c (start_event_loop): ...here. Now static.
5475
b7f999ae
SDJ
54762020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5477
5478 * MAINTAINERS: Update my email address.
5479
1085dfd4
KR
54802020-04-12 Kamil Rytarowski <n54@gmx.com>
5481
5482 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5483 IP_ALL.
5484
49d1d1f5
KR
54852020-04-12 Kamil Rytarowski <n54@gmx.com>
5486
5487 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5488 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5489
b4848d2a
KR
54902020-04-12 Kamil Rytarowski <n54@gmx.com>
5491
5492 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5493 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5494
51c133d5
KR
54952020-04-12 Kamil Rytarowski <n54@gmx.com>
5496
5497 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5498
54b8cbd0
KR
54992020-04-11 Kamil Rytarowski <n54@gmx.com>
5500
5501 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5502 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5503 (nbsd_nat_target::info_proc): New functions.
5504 * nbsd-nat.c (kinfo_get_vmmap): New function.
5505 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5506 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5507 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5508 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5509 functions.
5510 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5511 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5512 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5513 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5514 (KINFO_VME_FLAG_GROWS_DOWN): New.
5515
cf83625d
AS
55162020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5517
5518 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5519 bit shift.
5520
0c4311ab
TT
55212020-04-10 Tom Tromey <tromey@adacore.com>
5522
5523 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5524
3e65b3e9
TT
55252020-04-10 Tom Tromey <tromey@adacore.com>
5526
5527 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5528 separate debug files.
5529
13302e95
HD
55302020-04-10 Hannes Domani <ssbssa@yahoo.de>
5531
5532 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5533 Move to...
5534 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5535 ... here.
5536 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5537 Check for STATUS_WX86_BREAKPOINT.
5538 (windows_nat_target::wait): Same.
5539
bdfc1e8a
TV
55402020-04-10 Tom de Vries <tdevries@suse.de>
5541
5542 PR cli/25808
5543 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5544
f4460aec
SM
55452020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5548 (Write After Approval): Remove Tom de Vries.
5549
a25198bb
BE
55502020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5551
5552 revert partially:
5553 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5554
aac66a4c
SM
5555 * buildsym.c (record_line): Fix undefined behavior and preserve
5556 lines at eof.
a25198bb 5557
206c98a6
KR
55582020-04-09 Kamil Rytarowski <n54@gmx.com>
5559
5560 * auxv.h (svr4_auxv_parse): New.
5561 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5562 and generic_auxv_parse.
5563 (svr4_auxv_parse): Add.
5564 * obsd-tdep.c: Include "auxv.h".
5565 (obsd_auxv_parse): Remove.
5566 (obsd_init_abi): Remove comment.
5567 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5568 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5569 * nbsd-tdep.c: Include "auxv.h".
5570 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5571
71fbdbaf
TT
55722020-04-08 Tom Tromey <tromey@adacore.com>
5573
5574 * nat/windows-nat.h (last_wait_event): Don't declare.
5575 (wait_for_debug_event): Update comment.
5576 * nat/windows-nat.c (last_wait_event): Now static.
5577
2c1d95e8
TT
55782020-04-08 Tom Tromey <tromey@adacore.com>
5579
5580 * windows-nat.c (wait_for_debug_event): Move to
5581 nat/windows-nat.c.
5582 * nat/windows-nat.h (wait_for_debug_event): Declare.
5583 * nat/windows-nat.c (wait_for_debug_event): Move from
5584 windows-nat.c. No longer static.
5585
d2977bc4
TT
55862020-04-08 Tom Tromey <tromey@adacore.com>
5587
5588 * windows-nat.c (get_windows_debug_event): Use
5589 fetch_pending_stop.
5590 * nat/windows-nat.h (fetch_pending_stop): Declare.
5591 * nat/windows-nat.c (fetch_pending_stop): New function.
5592
e758e19c
TT
55932020-04-08 Tom Tromey <tromey@adacore.com>
5594
5595 * windows-nat.c (windows_continue): Use matching_pending_stop and
5596 continue_last_debug_event.
5597 * nat/windows-nat.h (matching_pending_stop)
5598 (continue_last_debug_event): Declare.
5599 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5600 (matching_pending_stop, continue_last_debug_event): New
5601 functions.
5602
8d30e395
TT
56032020-04-08 Tom Tromey <tromey@adacore.com>
5604
5605 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5606 (handle_exception_result): Move to nat/windows-nat.h.
5607 (DEBUG_EXCEPTION_SIMPLE): Remove.
5608 (windows_nat::handle_ms_vc_exception): New function.
5609 (handle_exception): Move to nat/windows-nat.c.
5610 (get_windows_debug_event): Update.
5611 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5612 nat/windows-nat.c.
5613 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5614 (handle_exception_result): Move from windows-nat.c.
5615 (handle_exception): Declare.
5616 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5617 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5618 windows-nat.c.
5619
29de418d
TT
56202020-04-08 Tom Tromey <tromey@adacore.com>
5621
5622 * windows-nat.c (exception_count, event_count): Remove.
5623 (handle_exception, get_windows_debug_event)
5624 (do_initial_windows_stuff): Update.
5625
a816ba18
TT
56262020-04-08 Tom Tromey <tromey@adacore.com>
5627
5628 * windows-nat.c (windows_nat::handle_load_dll)
5629 (windows_nat::handle_unload_dll): Rename. No longer static.
5630 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5631 Declare.
5632
a00caa12
TT
56332020-04-08 Tom Tromey <tromey@adacore.com>
5634
5635 * complaints.h (stop_whining): Declare at top-level.
5636 (complaint): Don't declare stop_whining.
5637
d41b524f
TT
56382020-04-08 Tom Tromey <tromey@adacore.com>
5639
5640 * windows-nat.c (windows_nat::handle_output_debug_string):
5641 Rename. No longer static.
5642 * nat/windows-nat.h (handle_output_debug_string): Declare.
5643
3c76026d
TT
56442020-04-08 Tom Tromey <tromey@adacore.com>
5645
5646 * windows-nat.c (current_process_handle, current_process_id)
5647 (main_thread_id, last_sig, current_event, last_wait_event)
5648 (current_windows_thread, desired_stop_thread_id, pending_stops)
5649 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5650 (display_selectors, fake_create_process)
5651 (get_windows_debug_event): Update.
5652 * nat/windows-nat.h (current_process_handle, current_process_id)
5653 (main_thread_id, last_sig, current_event, last_wait_event)
5654 (current_windows_thread, desired_stop_thread_id, pending_stops)
5655 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5656 * nat/windows-nat.c (current_process_handle, current_process_id)
5657 (main_thread_id, last_sig, current_event, last_wait_event)
5658 (current_windows_thread, desired_stop_thread_id, pending_stops)
5659 (siginfo_er): New globals. Move from windows-nat.c.
5660
9d8679cc
TT
56612020-04-08 Tom Tromey <tromey@adacore.com>
5662
5663 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5664 (handle_load_dll): Update.
5665 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5666
28688adf
TT
56672020-04-08 Tom Tromey <tromey@adacore.com>
5668
5669 * windows-nat.c (enum thread_disposition_type): Move to
5670 nat/windows-nat.h.
5671 (windows_nat::thread_rec): Rename from thread_rec. No longer
5672 static.
5673 (windows_add_thread, windows_nat_target::fetch_registers)
5674 (windows_nat_target::store_registers, handle_exception)
5675 (windows_nat_target::resume, get_windows_debug_event)
5676 (windows_nat_target::get_tib_address)
5677 (windows_nat_target::thread_name)
5678 (windows_nat_target::thread_alive): Update.
5679 * nat/windows-nat.h (enum thread_disposition_type): Move from
5680 windows-nat.c.
5681 (thread_rec): Declare.
5682
4834dad0
TT
56832020-04-08 Tom Tromey <tromey@adacore.com>
5684
5685 * windows-nat.c: Add "using namespace".
5686 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5687 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5688
65bafd5b
TT
56892020-04-08 Tom Tromey <tromey@adacore.com>
5690
5691 * nat/windows-nat.h (struct windows_thread_info): Declare
5692 destructor.
5693 * nat/windows-nat.c (~windows_thread_info): New.
5694
0a4afda3
TT
56952020-04-08 Tom Tromey <tromey@adacore.com>
5696
5697 PR gdb/22992
5698 * windows-nat.c (current_event): Update comment.
5699 (last_wait_event, desired_stop_thread_id): New globals.
5700 (struct pending_stop): New.
5701 (pending_stops): New global.
5702 (windows_nat_target) <stopped_by_sw_breakpoint>
5703 <supports_stopped_by_sw_breakpoint>: New methods.
5704 (windows_fetch_one_register): Add assertions. Adjust PC.
5705 (windows_continue): Handle pending stops. Suspend other threads
5706 when stepping. Use last_wait_event
5707 (wait_for_debug_event): New function.
5708 (get_windows_debug_event): Use wait_for_debug_event. Handle
5709 pending stops. Queue spurious stops.
5710 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5711 (windows_nat_target::kill): Use wait_for_debug_event.
5712 * nat/windows-nat.h (struct windows_thread_info)
5713 <stopped_at_software_breakpoint>: New field.
5714 * nat/windows-nat.c (windows_thread_info::resume): Clear
5715 stopped_at_software_breakpoint.
5716
8e61ebec
TT
57172020-04-08 Tom Tromey <tromey@adacore.com>
5718
5719 * windows-nat.c (enum thread_disposition_type): New.
5720 (thread_rec): Replace "get_context" parameter with "disposition";
5721 change type.
5722 (windows_add_thread, windows_nat_target::fetch_registers)
5723 (windows_nat_target::store_registers, handle_exception)
5724 (windows_nat_target::resume, get_windows_debug_event)
5725 (windows_nat_target::get_tib_address)
5726 (windows_nat_target::thread_name)
5727 (windows_nat_target::thread_alive): Update.
5728
98a03287
TT
57292020-04-08 Tom Tromey <tromey@adacore.com>
5730
5731 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5732 (windows_continue): Use windows_continue::resume.
5733 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5734 resume>: Declare new methods.
5735 * nat/windows-nat.c: New file.
5736 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5737
7c7411bc
TT
57382020-04-08 Tom Tromey <tromey@adacore.com>
5739
5740 * windows-nat.c (windows_add_thread, windows_delete_thread)
5741 (windows_nat_target::fetch_registers)
5742 (windows_nat_target::store_registers, fake_create_process)
5743 (windows_nat_target::resume, windows_nat_target::resume)
5744 (get_windows_debug_event, windows_nat_target::wait)
5745 (windows_nat_target::pid_to_str)
5746 (windows_nat_target::get_tib_address)
5747 (windows_nat_target::get_ada_task_ptid)
5748 (windows_nat_target::thread_name)
5749 (windows_nat_target::thread_alive): Use lwp, not tid.
5750
2950fdf7
TT
57512020-04-08 Tom Tromey <tromey@adacore.com>
5752
5753 * windows-nat.c (handle_exception)
5754 (windows_nat_target::thread_name): Update.
5755 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5756 <name>: Now unique_xmalloc_ptr.
5757
62fe396b
TT
57582020-04-08 Tom Tromey <tromey@adacore.com>
5759
5760 * windows-nat.c (thread_rec)
5761 (windows_nat_target::fetch_registers): Update.
5762 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5763 Update comment.
5764 <debug_registers_changed, reload_context>: Now bool.
5765
e9534bd2
TT
57662020-04-08 Tom Tromey <tromey@adacore.com>
5767
5768 * windows-nat.c (windows_add_thread): Use new.
5769 (windows_init_thread_list, windows_delete_thread): Use delete.
5770 (get_windows_debug_event): Update.
5771 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5772 destructor, and initializers.
5773
ae1f8880
TT
57742020-04-08 Tom Tromey <tromey@adacore.com>
5775
5776 * windows-nat.c (struct windows_thread_info): Remove.
5777 * nat/windows-nat.h: New file.
5778
55a1e039
TT
57792020-04-08 Tom Tromey <tromey@adacore.com>
5780
5781 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5782 (thread_rec, windows_add_thread, windows_delete_thread)
5783 (windows_continue): Update.
5784
93366324
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (struct windows_thread_info): Remove typedef.
5788 (thread_head): Remove.
5789 (thread_list): New global.
5790 (thread_rec, windows_add_thread, windows_init_thread_list)
5791 (windows_delete_thread, windows_continue): Update.
5792
0f2265e2
SM
57932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * windows-tdep.h (windows_init_abi): Add comment.
5796 (cygwin_init_abi): New declaration.
5797 * windows-tdep.c: Split signal enumeration in two, one for
5798 Windows and one for Cygwin.
5799 (windows_gdb_signal_to_target): Only deal with signal of the
5800 Windows OS ABI.
5801 (cygwin_gdb_signal_to_target): New function.
5802 (windows_init_abi): Rename to windows_init_abi_common, don't set
5803 gdb_signal_to_target gdbarch method. Add new new function with
5804 this name.
5805 (cygwin_init_abi): New function.
5806 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5807 comment. Don't call windows_init_abi.
5808 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5809 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5810 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5811 i386_windows_init_abi_common, don't call windows_init_abi. Add
5812 a new function of this name.
5813 (i386_cygwin_init_abi): New function.
5814 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5815 OS ABI Cygwin.
5816
3810f182
SM
58172020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5820 parameter.c.
5821 (dwarf2_read_gdb_index): Update.
5822
063f8e80
KR
58232020-04-07 Kamil Rytarowski <n54@gmx.com>
5824
5825 * nbsd-tdep.c: Include "objfiles.h".
5826 (nbsd_skip_solib_resolver): New.
5827 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5828
85a9510c 58292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5830
5831 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5832 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5833 with DW_LLE_base_addressx are being emitted in DWARFv5.
5834 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5835 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5836 unsigned integer.
5837
9fc3eaae 58382020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5839
5840 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5841 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5842 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5843 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5844 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5845 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5846 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5847
5848
41144253 58492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5850
5851 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5852 (read_loclist_index): New function definition.
5853 (lookup_loclist_base): New function definition.
5854 (read_loclist_header): New function definition.
5855 (dwarf2_cu): Add loclist_base and loclist_header field.
5856 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5857 (read_full_die_1): Read the value of DW_AT_loclists_base.
5858 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5859 (read_attribute_value): Handle DW_FORM_loclistx.
5860 (skip_one_die): Handle DW_FORM_loclistx.
5861 (loclist_header): New structure declaration.
5862 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5863
9f4e76a4
SM
58642020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5867 constructor. Remove `addr` parameter from other constructor and
5868 add `per_cu` parameter.
5869 * dwarf2/read.c (create_partial_symtab): Update.
5870
25c11aca
TV
58712020-04-07 Tom de Vries <tdevries@suse.de>
5872
5873 PR symtab/25796
5874 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5875 (partial_die_info::fixup): Inherit has_const_value.
5876
5707e24b
TV
58772020-04-07 Tom de Vries <tdevries@suse.de>
5878
5879 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5880 symbols without address.
5881
05f00e22
KR
58822020-04-06 Kamil Rytarowski <n54@gmx.com>
5883
5884 * nbsd-nat.h (struct thread_info): Add forward declaration.
5885 (nbsd_nat_target::thread_alive): Add.
5886 (nbsd_nat_target::thread_name): Likewise.
5887 (nbsd_nat_target::update_thread_list): Likewise.
5888 (update_thread_list::post_attach): Likewise.
5889 (post_attach::pid_to_str): Likewise.
5890 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5891 (nbsd_thread_lister): Add.
5892 (nbsd_nat_target::thread_alive): Likewise.
5893 (nbsd_nat_target::thread_name): Likewise.
5894 (nbsd_add_threads): Likewise.
5895 (update_thread_list::post_attach): Likewise.
5896 (nbsd_nat_target::update_thread_list): Likewise.
5897 (post_attach::pid_to_str): Likewise.
5898
6ee448cc
TT
58992020-04-06 Tom Tromey <tromey@adacore.com>
5900
5901 * ada-valprint.c (print_variant_part): Extract the variant field.
5902 (print_field_values): Use the field as the outer value when
5903 recursing.
5904
dea34e8c
TT
59052020-04-06 Tom Tromey <tromey@adacore.com>
5906
5907 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5908 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5909 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5910 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5911 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5912
93689ce9
TT
59132020-04-06 Tom Tromey <tromey@adacore.com>
5914
5915 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5916 TYPE_CODE_ERROR.
5917
79743962
KR
59182020-04-06 Kamil Rytarowski <n54@gmx.com>
5919
5920 * nbsd-tdep.c: Include "gdbarch.h".
5921 Define enum with NetBSD signal numbers.
5922 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5923 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5924 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5925 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5926 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5927 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5928 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5929 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5930 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5931 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5932 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5933 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5934
9e7c9a03
HD
59352020-04-03 Hannes Domani <ssbssa@yahoo.de>
5936
5937 PR gdb/25325
5938 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5939
d9e49b61
TT
59402020-04-03 Tom Tromey <tromey@adacore.com>
5941
5942 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5943 Read constant block.
5944
e0fc5c3f
SM
59452020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5946
5947 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5948 (gdb_bfd_get_full_section_contents): New declaration.
5949 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5950 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5951 gdb_bfd_get_full_section_contents.
5952
e2ff18a0
SM
59532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * exec.c (build_section_table): Replace internal_error with
5956 gdb_assert.
5957 (section_table_xfer_memory_partial): Likewise.
5958 * mdebugread.c (parse_partial_symbols): Likewise.
5959 * psymtab.c (lookup_partial_symbol): Likewise.
5960 * utils.c (wrap_here): Likewise.
5961
0830d301
TT
59622020-04-02 Tom Tromey <tromey@adacore.com>
5963
5964 * f-lang.c (build_fortran_types): Use arch_type to initialize
5965 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5966
e7da7f8f
TT
59672020-04-02 Tom Tromey <tromey@adacore.com>
5968
5969 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5970 of attributes.
5971
c90d28ac
AB
59722020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5973 Bernd Edlinger <bernd.edlinger@hotmail.de>
5974 Tom Tromey <tromey@adacore.com>
5975
5976 * buildsym.c (buildsym_compunit::record_line): Remove
5977 deduplication code.
5978
1aa98955
TV
59792020-04-02 Tom de Vries <tdevries@suse.de>
5980
5981 PR ada/24671
5982 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5983
d3214198
TV
59842020-04-02 Tom de Vries <tdevries@suse.de>
5985
5986 * dwarf2/read.c (dwarf2_gdb_index_functions,
5987 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5988 NULL.
5989 * psymtab.c (psym_lookup_global_symbol_language): New function.
5990 (psym_functions): Init psym_lookup_global_symbol_language with
5991 psym_lookup_global_symbol_language.
5992 * symfile-debug.c (debug_sym_quick_functions): Init
5993 lookup_global_symbol_language with NULL.
5994 * symfile.c (set_initial_language): Remove fixme comment.
5995 * symfile.h (struct quick_symbol_functions): Add
5996 lookup_global_symbol_language.
5997 * symtab.c (find_quick_global_symbol_language): New function.
5998 (find_main_name): Use find_quick_global_symbol_language.
5999
2836752f
SM
60002020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6003
64dc2d4b
BE
60042020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6005
6006 * buildsym.c (record_line): Fix undefined behavior and preserve
6007 lines at eof.
6008
bbe3dc41
BE
60092020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6010
6011 * buildsym.c (record_line): Fix the resizing condition.
6012
6b4a335b
TT
60132020-04-01 Tom Tromey <tom@tromey.com>
6014
6015 * value.h (value_literal_complex): Add comment.
6016 * valops.c (value_literal_complex): Refer to value.h.
6017
3638a098
TT
60182020-04-01 Tom Tromey <tom@tromey.com>
6019
6020 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6021 (scalar_type): New rule, from typebase.
6022 (typebase): Use scalar_type. Recognize complex types.
6023 (field_name): Handle FLOAT_KEYWORD.
6024 (ident_tokens): Add _Complex and __complex__.
6025
c34e8714
TT
60262020-04-01 Tom Tromey <tom@tromey.com>
6027
6028 PR exp/25299:
6029 * valarith.c (promotion_type, complex_binop): New functions.
6030 (scalar_binop): Handle complex numbers. Use promotion_type.
6031 (value_pos, value_neg, value_complement): Handle complex numbers.
6032
fa649bb7
TT
60332020-04-01 Tom Tromey <tom@tromey.com>
6034
6035 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6036 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6037 (parse_number): Handle complex numbers.
6038
981c08ce
TT
60392020-04-01 Tom Tromey <tom@tromey.com>
6040
6041 * c-valprint.c (c_decorations): Change complex suffix to "i".
6042
4c99290d
TT
60432020-04-01 Tom Tromey <tom@tromey.com>
6044
6045 * valprint.c (generic_value_print_complex): Use accessors.
6046 * value.h (value_real_part, value_imaginary_part): Declare.
6047 * valops.c (value_real_part, value_imaginary_part): New
6048 functions.
6049 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6050
5b930b45
TT
60512020-04-01 Tom Tromey <tom@tromey.com>
6052
6053 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6054 (read_range_type): Update.
6055 * mdebugread.c (basic_type): Update.
6056 * go-lang.c (build_go_types): Use init_complex_type.
6057 * gdbtypes.h (struct main_type) <complex_type>: New member.
6058 (init_complex_type): Update.
6059 (arch_complex_type): Don't declare.
6060 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6061 Make name if none given. Use alloc_type_copy. Look for cached
6062 complex type.
6063 (arch_complex_type): Remove.
6064 (gdbtypes_post_init): Use init_complex_type.
6065 * f-lang.c (build_fortran_types): Use init_complex_type.
6066 * dwarf2/read.c (read_base_type): Update.
6067 * d-lang.c (build_d_types): Use init_complex_type.
6068 * ctfread.c (read_base_type): Update.
6069
53cccef1
TBA
60702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6071
6072 * infrun.c (stop_all_threads): Update assertion, plus when
6073 stopping threads, take into account that we might be trying
6074 to stop an all-stop target.
6075 (stop_waiting): Call 'stop_all_threads' if there exists a
6076 non-stop target.
6077
a0714d30
TBA
60782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6079
6080 * target.h (exists_non_stop_target): New function declaration.
6081 * target.c (exists_non_stop_target): New function.
6082
60e22c1e
HD
60832020-04-01 Hannes Domani <ssbssa@yahoo.de>
6084
6085 PR gdb/24789
6086 * eval.c (is_integral_or_integral_reference): New function.
6087 (evaluate_subexp_standard): Allow integer references in
6088 pointer arithmetic.
6089
e139a727
TBA
60902020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6091
6092 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6093 check for no ptid in the stop reply when the target is non-stop.
6094
e0802d59
TT
60952020-04-01 Tom Tromey <tromey@adacore.com>
6096
6097 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6098 "name" parameter to rvalue reference. Initialize m_name_holder.
6099 <lookup_name_info>: New overloads.
6100 <name>: Return gdb::string_view.
6101 <c_str>: New method.
6102 <make_ignore_params>: Update.
6103 <search_name_hash>: Update.
6104 <language_lookup_name>: Return const char *.
6105 <m_name>: Change type.
6106 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6107 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6108 (lookup_name_info::match_any): Update.
6109 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6110 Update.
6111 * minsyms.c (linkage_name_str): Update.
6112 * language.c (default_symbol_name_matcher): Update.
6113 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6114 Update.
6115 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6116 (ada_lookup_name_info::ada_lookup_name_info): Update.
6117 (literal_symbol_name_matcher): Update.
6118
8c072cb6
TT
61192020-04-01 Tom Tromey <tromey@adacore.com>
6120
6121 * psymtab.c (psymtab_search_name): Remove function.
6122 (psym_lookup_symbol): Create search name and lookup name here.
6123 (lookup_partial_symbol): Remove "name" parameter; add
6124 lookup_name.
6125 (psym_expand_symtabs_for_function): Update.
6126
6f29a534
TT
61272020-03-31 Joel Jones <joelkevinjones@gmail.com>
6128
6129 PR tui/25597:
6130 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6131
af62665e
TT
61322020-03-31 Tom Tromey <tromey@adacore.com>
6133
6134 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6135 memcpy.
6136
d1a89da5
NC
61372020-03-30 Nelson Chu <nelson.chu@sifive.com>
6138
6139 * features/riscv/32bit-csr.xml: Regenerated.
6140 * features/riscv/64bit-csr.xml: Regenerated.
6141
d8af9068
TT
61422020-03-30 Tom Tromey <tromey@adacore.com>
6143
6144 * ada-valprint.c (print_variant_part): Update.
6145 * ada-lang.h (ada_which_variant_applies): Update.
6146 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6147 outer_valaddr parameters; replace with "outer" value parameter.
6148 (to_fixed_variant_branch_type): Update.
6149
227c0bf4
PFC
61502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6151
6152 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6153 <list>. Remove inclusion of observable.h.
6154 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6155 (struct arch_lwp_info): New struct.
6156 (class ppc_linux_dreg_interface): New class.
6157 (struct ppc_linux_process_info): New struct.
6158 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6159 <low_new_clone, low_forget_process, low_prepare_to_resume>
6160 <copy_thread_dreg_state, mark_thread_stale>
6161 <mark_debug_registers_changed, register_hw_breakpoint>
6162 <clear_hw_breakpoint, register_wp, clear_wp>
6163 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6164 <num_memory_accesses, get_trigger_type>
6165 <create_watchpoint_request, hwdebug_point_cmp>
6166 <init_arch_lwp_info, get_arch_lwp_info>
6167 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6168 methods.
6169 <struct ptid_hash>: New inner struct.
6170 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6171 members.
6172 (saved_dabr_value, hwdebug_info, max_slots_number)
6173 (struct hw_break_tuple, struct thread_points, ppc_threads)
6174 (have_ptrace_hwdebug_interface)
6175 (hwdebug_find_thread_points_by_tid)
6176 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6177 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6178 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6179 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6180 use m_dreg_interface.
6181 (hwdebug_point_cmp): Change to...
6182 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6183 reference arguments instead of pointers.
6184 (ppc_linux_nat_target::ranged_break_num_registers): Use
6185 m_dreg_interface.
6186 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6187 m_dreg_interface. Call register_hw_breakpoint.
6188 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6189 m_dreg_interface. Call clear_hw_breakpoint.
6190 (get_trigger_type): Change to...
6191 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6192 comment.
6193 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6194 use m_dreg_interface. Call register_hw_breakpoint.
6195 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6196 use m_dreg_interface. Call clear_hw_breakpoint.
6197 (can_use_watchpoint_cond_accel): Change to...
6198 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6199 method. Update comment, use m_dreg_interface and
6200 m_process_info.
6201 (calculate_dvc): Change to...
6202 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6203 m_dreg_interface.
6204 (num_memory_accesses): Change to...
6205 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6206 (check_condition): Change to...
6207 (ppc_linux_nat_target::check_condition): ...this method.
6208 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6209 comment, use m_dreg_interface.
6210 (create_watchpoint_request): Change to...
6211 (ppc_linux_nat_target::create_watchpoint_request): ...this
6212 method. Use m_dreg_interface.
6213 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6214 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6215 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6216 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6217 (ppc_linux_nat_target::low_forget_process)
6218 (ppc_linux_nat_target::low_new_fork)
6219 (ppc_linux_nat_target::low_new_clone)
6220 (ppc_linux_nat_target::low_delete_thread)
6221 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6222 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6223 only call mark_thread_stale.
6224 (ppc_linux_thread_exit): Remove.
6225 (ppc_linux_nat_target::stopped_data_address): Change to...
6226 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6227 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6228 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6229 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6230 comment. Call low_stopped_data_address.
6231 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6232 m_dreg_interface.
6233 (ppc_linux_nat_target::masked_watch_num_registers): Use
6234 m_dreg_interface.
6235 (ppc_linux_nat_target::copy_thread_dreg_state)
6236 (ppc_linux_nat_target::mark_thread_stale)
6237 (ppc_linux_nat_target::mark_debug_registers_changed)
6238 (ppc_linux_nat_target::register_hw_breakpoint)
6239 (ppc_linux_nat_target::clear_hw_breakpoint)
6240 (ppc_linux_nat_target::register_wp)
6241 (ppc_linux_nat_target::clear_wp)
6242 (ppc_linux_nat_target::init_arch_lwp_info)
6243 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6244 (_initialize_ppc_linux_nat): Remove observer callback.
6245
4db10d8f
PFC
62462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6247
6248 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6249 (ppc_linux_nat_target::auxv_parse)
6250 (ppc_linux_nat_target::read_description)
6251 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6252 Move up.
6253
1310c1b0
PFC
62542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6255
6256 * linux-nat.h (low_new_clone): New method.
6257 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6258
69b037c3
SM
62592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6262 (dbx_expand_psymtab): ... this.
6263 (start_psymtab): Update.
6264 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6265 (mdebug_expand_psymtab): ... this.
6266 (parse_partial_symbols): Update.
6267 (new_psymtab): Update.
6268 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6269 (xcoff_expand_psymtab): ... this.
6270 (xcoff_start_psymtab): Update.
6271
48993951
SM
62722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6275 <expand_dependencies>: ... this.
6276 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6277 (partial_symtab::expand_dependencies): ... this.
6278 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6279 Update.
6280 (dwarf2_psymtab::expand_psymtab): Update.
6281 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6282 * mdebugread.c (psymtab_to_symtab_1): Update.
6283 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6284
3ad83046
SM
62852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * psympriv.h (discard_psymtab): Remove.
6288 * dbxread.c (dbx_end_psymtab): Update.
6289 * xcoffread.c (xcoff_end_psymtab): Update.
6290
4d1b9ab6
TT
62912020-03-28 Tom Tromey <tom@tromey.com>
6292
6293 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6294 comment.
6295
f1749218
TT
62962020-03-28 Tom Tromey <tom@tromey.com>
6297
6298 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6299
ebea7626
HD
63002020-03-27 Hannes Domani <ssbssa@yahoo.de>
6301
6302 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6303
a879b4d5
JB
63042020-03-26 John Baldwin <jhb@FreeBSD.org>
6305
6306 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6307
0826b30a
TT
63082020-03-26 Tom Tromey <tom@tromey.com>
6309
6310 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6311 (mark_common_block_symbol_computed, read_tag_string_type)
6312 (attr_to_dynamic_prop, read_subrange_type): Update.
6313 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6314 to be methods on struct attribute.
6315 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6316 (read_call_site_scope, partial_die_info::read)
6317 (partial_die_info::read, lookup_die_type, follow_die_ref):
6318 Update.
6319 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6320 from dwarf2_get_ref_die_offset.
6321 (attribute::constant_value): New method, from
6322 dwarf2_get_attr_constant_value.
6323 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6324 Declare method.
6325 <constant_value>: New method.
6326
2b2558bf
TT
63272020-03-26 Tom Tromey <tom@tromey.com>
6328
6329 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6330 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6331 (dwarf_type_encoding_name): Move to stringify.c.
6332 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6333 * dwarf2/stringify.c: New file.
6334 * dwarf2/stringify.h: New file.
6335
eeb64781
TT
63362020-03-26 Tom Tromey <tom@tromey.com>
6337
6338 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6339 Rewrite.
6340
a39fdb41
TT
63412020-03-26 Tom Tromey <tom@tromey.com>
6342
6343 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6344 methods.
6345 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6346 (lookup_ranges_base): Likewise.
6347 (read_cutu_die_from_dwo, read_full_die_1): Update.
6348
436c571c
TT
63492020-03-26 Tom Tromey <tom@tromey.com>
6350
6351 * dwarf2/read.c (read_import_statement, read_file_scope)
6352 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6353 (read_lexical_block_scope, read_call_site_scope)
6354 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6355 (handle_struct_member_die, process_structure_scope)
6356 (update_enumeration_type_from_children)
6357 (process_enumeration_scope, read_array_type, read_common_block)
6358 (read_namespace, read_module, read_subroutine_type): Update.
6359 (sibling_die): Remove.
6360
052c8bb8
TT
63612020-03-26 Tom Tromey <tom@tromey.com>
6362
6363 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6364 (build_type_psymtabs_reader, read_structure_type)
6365 (read_enumeration_type, read_full_die_1): Update.
6366 (dwarf2_attr_no_follow): Move to die.h.
6367 * dwarf2/die.h (struct die_info) <attr>: New method.
6368
2b24b6e4
TT
63692020-03-26 Tom Tromey <tom@tromey.com>
6370
6371 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6372 <base_address>: Now an optional.
6373 (dwarf2_find_base_address, dwarf2_rnglists_process)
6374 (dwarf2_ranges_process, fill_in_loclist_baton)
6375 (dwarf2_symbol_mark_computed): Update.
6376
c2d50fd0
TT
63772020-03-26 Tom Tromey <tom@tromey.com>
6378
6379 * dwarf2/read.c (struct die_info): Move to die.h.
6380 * dwarf2/die.h: New file.
6381
0df7ad3a
TT
63822020-03-26 Tom Tromey <tom@tromey.com>
6383
6384 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6385 * dwarf2/read.c
6386 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6387 Move to line-header.c.
6388 (read_checked_initial_length_and_offset, read_formatted_entries):
6389 Likewise.
6390 (dwarf_decode_line_header): Split into two.
6391 * dwarf2/line-header.c
6392 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6393 Move from read.c.
6394 (read_checked_initial_length_and_offset, read_formatted_entries):
6395 Likewise.
6396 (dwarf_decode_line_header): New function, split from read.c.
6397
86c0bb4c
TT
63982020-03-26 Tom Tromey <tom@tromey.com>
6399
6400 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6401 Declare method.
6402 * dwarf2/read.c (read_attribute_value): Update.
6403 (dwarf2_per_objfile::read_line_string): Rename from
6404 read_indirect_line_string.
6405 (read_formatted_entries): Update.
6406
2ef46c2f
TT
64072020-03-26 Tom Tromey <tom@tromey.com>
6408
6409 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6410 variable.
6411
4f9c1eda
TT
64122020-03-26 Tom Tromey <tom@tromey.com>
6413
6414 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6415 const.
6416 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6417 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6418 parameter const.
6419
5a0e026f
TT
64202020-03-26 Tom Tromey <tom@tromey.com>
6421
6422 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6423 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6424 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6425 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6426
8844c11b
TT
64272020-03-26 Tom Tromey <tom@tromey.com>
6428
6429 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6430 file_names_size, file_full_name, file_file_name>: Use const.
6431 <file_name_at, file_names>: Add const overload.
6432 * dwarf2/line-header.c (line_header::file_file_name)
6433 (line_header::file_full_name): Update.
6434
c90ec28a
TT
64352020-03-26 Tom Tromey <tom@tromey.com>
6436
6437 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6438 (macro_start_file, consume_improper_spaces)
6439 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6440 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6441 (dwarf_decode_macros): Move to macro.c.
6442 * dwarf2/macro.c: New file.
6443 * dwarf2/macro.h: New file.
6444 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6445
4f44ae6c
TT
64462020-03-26 Tom Tromey <tom@tromey.com>
6447
6448 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6449 method.
6450 * dwarf2/section.c: New method. From
6451 read_indirect_string_at_offset_from.
6452 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6453 (read_indirect_string_at_offset_from): Move to section.c.
6454 (read_indirect_string_at_offset): Rewrite.
6455 (read_indirect_line_string_at_offset): Remove.
6456 (read_indirect_string, read_indirect_line_string)
6457 (dwarf_decode_macro_bytes): Update.
6458
a0194fa8
TT
64592020-03-26 Tom Tromey <tom@tromey.com>
6460
6461 * dwarf2/section.h (struct dwarf2_section_info)
6462 <overload_complaint>: Declare.
6463 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6464 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6465 Rename from dwarf2_section_buffer_overflow_complaint.
6466 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6467 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6468
3d27bbdb
TT
64692020-03-26 Tom Tromey <tom@tromey.com>
6470
6471 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6472 Declare.
6473 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6474 Move from read.c.
6475 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6476 to section.c.
6477
9eac9650
TT
64782020-03-26 Tom Tromey <tom@tromey.com>
6479
6480 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6481
bf80d710
TT
64822020-03-26 Tom Tromey <tom@tromey.com>
6483
6484 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6485 "builder".
6486 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6487 parameter.
6488 (dwarf_decode_macros): Update.
6489
0314b390
TT
64902020-03-26 Tom Tromey <tom@tromey.com>
6491
6492 * dwarf2/read.c (read_attribute_value): Update.
6493 (read_indirect_string_from_dwz): Move to dwz.c; change into
6494 method.
6495 (dwarf_decode_macro_bytes): Update.
6496 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6497 * dwarf2/dwz.c: New file.
6498 * Makefile.in (COMMON_SFILES): Add dwz.c.
6499
9fda78b6
TT
65002020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6503 * dwarf2/read.c: Add include.
6504 * dwarf2/index-write.c: Add include.
6505 * dwarf2/index-cache.c: Add include.
6506 * dwarf2/dwz.h: New file.
6507
33aa3c10
TT
65082020-03-25 Tom Tromey <tom@tromey.com>
6509
6510 * compile/compile-object-load.c (get_out_value_type): Mention
6511 correct symbol name in error message.
6512
d503b685
HD
65132020-03-25 Hannes Domani <ssbssa@yahoo.de>
6514
6515 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6516
7b1eff95
TV
65172020-03-25 Tom de Vries <tdevries@suse.de>
6518
6519 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6520 * symmisc.c (dump_symtab_1): Print user and includes fields.
6521 (maintenance_info_symtabs): Same.
6522
dd895392
AB
65232020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 PR gdb/25534
6526 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6527 (riscv_regcache_cooked_write): New function.
6528 (riscv_push_dummy_call): Use new function.
6529 (riscv_return_value): Likewise.
6530
5ab2fbf1
SM
65312020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6534 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6535 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6536 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6537 * infrun.c (follow_fork): Likewise.
6538 (follow_fork_inferior): Likewise.
6539 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6540 * linux-nat.h (class linux_nat_target): Likewise.
6541 * remote.c (class remote_target) <follow_fork>: Likewise.
6542 (remote_target::follow_fork): Likewise.
6543 * target-delegates.c: Re-generate.
6544 * target.c (default_follow_fork): Likewise.
6545 (target_follow_fork): Likewise.
6546 * target.h (struct target_ops) <follow_fork>: Likewise.
6547 (target_follow_fork): Likewise.
6548
a64fafb5
TV
65492020-03-24 Tom de Vries <tdevries@suse.de>
6550
6551 * psymtab.c (maintenance_info_psymtabs): Print user field.
6552
fe26d3a3
TT
65532020-03-20 Tom Tromey <tromey@adacore.com>
6554
6555 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6556 const.
6557 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6558 const.
6559
c884cc46
SM
65602020-03-20 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * ptrace.m4: Don't check for ptrace declaration.
6563 * config.in: Re-generate.
6564 * configure: Re-generate.
6565 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6566 not defined.
6567
1ff700c2
KR
65682020-03-20 Kamil Rytarowski <n54@gmx.com>
6569
6570 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6571 `PTRACE_TYPE_RET'.
6572 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6573 * sparc-nat.c (gdb_ptrace): Likewise.
6574 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6575
f7d4f0b1
TT
65762020-03-20 Tom Tromey <tromey@adacore.com>
6577
6578 * c-exp.y (lex_one_token): Fix assert.
6579
f67210ff
TT
65802020-03-20 Tom Tromey <tromey@adacore.com>
6581
6582 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6583 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6584 strncpy call.
6585
1773be9e
TT
65862020-03-20 Tom Tromey <tromey@adacore.com>
6587
6588 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6589
70304be9
TT
65902020-03-20 Tom Tromey <tromey@adacore.com>
6591
6592 * ada-valprint.c (print_variant_part): Remove parameters; switch
6593 to value-based API.
6594 (print_field_values): Likewise.
6595 (ada_val_print_struct_union): Likewise.
6596 (ada_value_print_1): Update.
6597
9faa006d
KR
65982020-03-20 Kamil Rytarowski <n54@gmx.com>
6599
6600 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6601 nbsd_nat_target instead of inf_ptrace_target.
6602 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6603 nbsd_nat_target.
6604
4a90f062
KR
66052020-03-20 Kamil Rytarowski <n54@gmx.com>
6606
6607 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6608 it to the ptrace call.
6609 * (store_registers): Likewise.
6610
66112020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6612
6613 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6614 it to the ptrace call.
6615 * (store_registers): Likewise.
6616
2d07da27
LM
66172020-03-19 Luis Machado <luis.machado@linaro.org>
6618
6619 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6620 valid, fetch vg value from ptrace.
6621
f09db380
KR
66222020-03-19 Kamil Rytarowski <n54@gmx.com>
6623 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6624 * inf-ptrace.c: Likewise.
6625 * (gdb_ptrace): Add.
6626 * (inf_ptrace_target::resume): Update.
6627 * (inf_ptrace_target::xfer_partial): Likewise.
6628 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6629 * (inf_ptrace_peek_poke): Update.
6630
fcc7376e
KR
66312020-03-19 Kamil Rytarowski <n54@gmx.com>
6632
6633 * x86-bsd-nat.c (gdb_ptrace): New.
6634 * (x86bsd_dr_set): Add new argument `ptid'.
6635 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6636 x86bsd_dr_set_addr): Update.
6637
cada5fc9
AB
66382020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6639
6640 * remote.c (remote_target::process_stop_reply): Handle events for
6641 all threads differently.
6642
19a2740f
AB
66432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6644
6645 * completer.c (completion_tracker::remove_completion): Define new
6646 function.
6647 * completer.h (completion_tracker::remove_completion): Declare new
6648 function.
6649 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6650 when adding a C++ function symbol.
6651
724fd9ba
AB
66522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6653
6654 * completer.c (completion_tracker::completion_hash_entry): Define
6655 new class.
6656 (advance_to_filename_complete_word_point): Call
6657 recompute_lowest_common_denominator.
6658 (completion_tracker::completion_tracker): Call discard_completions
6659 to setup the hash table.
6660 (completion_tracker::discard_completions): Allow for being called
6661 from the constructor, pass new equal function, and element deleter
6662 when constructing the hash table. Initialise new class member
6663 variables.
6664 (completion_tracker::maybe_add_completion): Remove use of
6665 m_entries_vec, and store more information into m_entries_hash.
6666 (completion_tracker::recompute_lcd_visitor): New function, most
6667 content taken from...
6668 (completion_tracker::recompute_lowest_common_denominator):
6669 ...here, this now just visits each item in the hash calling the
6670 above visitor.
6671 (completion_tracker::build_completion_result): Remove use of
6672 m_entries_vec, call recompute_lowest_common_denominator.
6673 * completer.h (completion_tracker::have_completions): Remove use
6674 of m_entries_vec.
6675 (completion_tracker::completion_hash_entry): Declare new class.
6676 (completion_tracker::recompute_lowest_common_denominator): Change
6677 function signature.
6678 (completion_tracker::recompute_lcd_visitor): Declare new function.
6679 (completion_tracker::m_entries_vec): Delete.
6680 (completion_tracker::m_entries_hash): Initialize to NULL.
6681 (completion_tracker::m_lowest_common_denominator_valid): New
6682 member variable.
6683 (completion_tracker::m_lowest_common_denominator_max_length): New
6684 member variable.
6685
5a82b8a1
KR
66862020-03-17 Kamil Rytarowski <n54@gmx.com>
6687
6688 * regformats/regdef.h: Put reg in gdb namespace.
6689
fb516a69
KR
66902020-03-17 Kamil Rytarowski <n54@gmx.com>
6691
6692 * i386-bsd-nat.c (gdb_ptrace): New.
6693 * (i386bsd_fetch_inferior_registers,
6694 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6695 * (i386bsd_fetch_inferior_registers,
6696 i386bsd_store_inferior_registers) Use gdb_ptrace.
6697
1c0aa1fb
KR
66982020-03-17 Kamil Rytarowski <n54@gmx.com>
6699
6700 * amd64-bsd-nat.c (gdb_ptrace): New.
6701 * (amd64bsd_fetch_inferior_registers,
6702 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6703 * (amd64bsd_fetch_inferior_registers,
6704 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6705
5ccd2fb7
KR
67062020-03-17 Kamil Rytarowski <n54@gmx.com>
6707
6708 * user-regs.c (user_reg::read): Rename to...
6709 (user_reg::xread): ...this.
6710 * (append_user_reg): Rename argument `read' to `xread'.
6711 * (user_reg_add_builtin): Likewise.
6712 * (user_reg_add): Likewise.
6713 * (value_of_user_reg): Likewise.
6714
2108a63a
KR
67152020-03-17 Kamil Rytarowski <n54@gmx.com>
6716
6717 * sparc-nat.c (gdb_ptrace): New.
6718 * sparc-nat.c (sparc_fetch_inferior_registers)
6719 (sparc_store_inferior_registers) Remove obsolete comment.
6720 * sparc-nat.c (sparc_fetch_inferior_registers)
6721 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6722 * sparc-nat.c (sparc_fetch_inferior_registers)
6723 (sparc_store_inferior_registers) Use gdb_ptrace.
6724
a225c9a8
KR
67252020-03-17 Kamil Rytarowski <n54@gmx.com>
6726
6727 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6728 it to the ptrace call.
6729 * sh-nbsd-nat.c (store_registers): Likewise.
6730
98097623
KR
67312020-03-17 Kamil Rytarowski <n54@gmx.com>
6732
6733 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6734 nbsd_nat_target instead of inf_ptrace_target.
6735 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6736 nbsd_nat_target.
6737
9e38d619
KR
67382020-03-17 Kamil Rytarowski <n54@gmx.com>
6739
6740 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6741
a2ecbe9f
KR
67422020-03-17 Kamil Rytarowski <n54@gmx.com>
6743
6744 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6745 <sys/sysctl.h>.
6746 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6747
58990295
TV
67482020-03-17 Tom de Vries <tdevries@suse.de>
6749
6750 PR gdb/23710
6751 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6752 fields.
6753 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6754 fields.
6755 (process_imported_unit_die): Skip import of c++ CUs.
6756
771dd3a8
TT
67572020-03-16 Tom Tromey <tom@tromey.com>
6758
6759 * p-valprint.c (pascal_object_print_value): Initialize
6760 base_value.
6761
817a7585
AK
67622020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6763 Shahab Vahedi <shahab@synopsys.com>
6764
6765 * Makefile.in: Add arch/arc.o
6766 * configure.tgt: Likewise.
6767 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6768 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6769 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6770 * arc-tdep.h (arc_read_description): Add proto type.
6771 * arch/arc.c: New file.
6772 * arch/arc.h: Likewise.
6773 * features/Makefile: Replace old target descriptions with new.
6774 * features/arc-arcompact.c: Remove.
6775 * features/arc-arcompact.xml: Likewise.
6776 * features/arc-v2.c: Likewise
6777 * features/arc-v2.xml: Likewise
6778 * features/arc/aux-arcompact.xml: New file.
6779 * features/arc/aux-v2.xml: Likewise.
6780 * features/arc/core-arcompact.xml: Likewise.
6781 * features/arc/core-v2.xml: Likewise.
6782 * features/arc/aux-arcompact.c: Generate.
6783 * features/arc/aux-v2.c: Likewise.
6784 * features/arc/core-arcompact.c: Likewise.
6785 * features/arc/core-v2.c: Likewise.
6786 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6787
67430cd0
TT
67882020-03-16 Tom Tromey <tromey@adacore.com>
6789
6790 PR gdb/25663:
6791 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6792 putting value into bcache.
6793
30efb6c7
SM
67942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6795
6796 PR gdb/21500
6797 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6798 to...
6799 (amd64_windows_init_abi_common): ... this. Don't set size of
6800 long type.
6801 (amd64_windows_init_abi): New function.
6802 (amd64_cygwin_init_abi): New function.
6803 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6804 the Cygwin OS ABI.
6805 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6806 comment.
6807
8db52437
SM
68082020-03-16 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6811 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6812 (pe_import_directory_entry): New struct type.
6813 (is_linked_with_cygwin_dll): New function.
6814 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6815 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6816 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6817
5982a56a
SM
68182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6821 i386_cygwin_core_osabi_sniffer.
6822
7a1998df
SM
68232020-03-16 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * i386-cygwin-tdep.c: Rename to...
6826 * i386-windows-tdep.c: ... this.
6827 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6828 i386-windows-tdep.c.
6829 * configure.tgt: Likewise.
6830
053205cc
SM
68312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6834 * osabi.c (gdb_osabi_names): Add "Windows".
6835 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6836 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6837 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6838 i386_cygwin_osabi_sniffer.
6839 (_initialize_i386_cygwin_tdep): Register OS ABI
6840 GDB_OSABI_WINDOWS for i386.
6841 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6842 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6843 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6844 for x86-64.
6845 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6846 when the target matches '*-*-mingw*'.
6847
fe4b2ee6
SM
68482020-03-16 Simon Marchi <simon.marchi@efficios.com>
6849
6850 * defs.h (enum gdb_osabi): Move to...
6851 * osabi.h (enum gdb_osabi): ... here.
6852 * gdbarch.sh: Include osabi.h in gdbarch.h.
6853 * gdbarch.h: Re-generate.
6854
cb9b645d
SM
68552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6858 function.
6859 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6860
3293bbaf
TT
68612020-03-14 Tom Tromey <tom@tromey.com>
6862
6863 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6864 for C++.
6865 (c_type_print_modifier): Likewise. Add "language" parameter.
6866 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6867 (c_type_print_base_1): Update.
6868 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6869 constants.
6870 * type-stack.c (type_stack::insert): Handle tp_atomic and
6871 tp_restrict.
6872 (type_stack::follow_type_instance_flags): Likewise.
6873 (type_stack::follow_types): Likewise. Merge type-following code.
6874 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6875 (space_identifier, cv_with_space_id)
6876 (const_or_volatile_or_space_identifier_noopt)
6877 (const_or_volatile_or_space_identifier): Remove.
6878 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6879 rules.
6880 (ptr_operator, typebase): Update.
6881 (enum token_flag) <FLAG_C>: New constant.
6882 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6883 "_Atomic".
6884 (lex_one_token): Handle FLAG_C.
6885
154151a6
KR
68862020-03-14 Kamil Rytarowski <n54@gmx.com>
6887
6888 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6889 it to the ptrace call.
6890 * m68k-bsd-nat.c (store_registers): Likewise.
6891
bc107784
KR
68922020-03-14 Kamil Rytarowski <n54@gmx.com>
6893
6894 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6895 gdb_byte *.
6896 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6897 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6898 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6899
01a80117
KR
69002020-03-14 Kamil Rytarowski <n54@gmx.com>
6901
6902 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6903 nbsd_nat_target instead of inf_ptrace_target.
6904 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6905 nbsd_nat_target.
6906
f90280ca
KR
69072020-03-14 Kamil Rytarowski <n54@gmx.com>
6908
6909 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6910 register_t.
6911
6def66f1
KR
69122020-03-14 Kamil Rytarowski <n54@gmx.com>
6913
6914 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6915 it to the ptrace call.
6916 * alpha-bsd-nat.c (store_registers): Likewise.
6917
66eaca97
KR
69182020-03-14 Kamil Rytarowski <n54@gmx.com>
6919
6920 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6921 includes.
6922 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6923 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6924 fill_fpregset): Likewise.
6925
4fed520b
KR
69262020-03-14 Kamil Rytarowski <n54@gmx.com>
6927
6928 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6929 nbsd_nat_target instead of inf_ptrace_target.
6930 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6931 nbsd_nat_target.
6932
2190cf06
KR
69332020-03-14 Kamil Rytarowski <n54@gmx.com>
6934
6935 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6936 register_t.
6937
75c56d3d
KR
69382020-03-14 Kamil Rytarowski <n54@gmx.com>
6939
6940 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6941 it to the ptrace call.
6942 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6943 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6944 * arm-nbsd-nat.c (store_register): Likewise.
6945 * arm-nbsd-nat.c (store_regs): Likewise.
6946 * arm-nbsd-nat.c (store_fp_register): Likewise.
6947 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6948
6018d381
KR
69492020-03-14 Kamil Rytarowski <n54@gmx.com>
6950
6951 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6952 nbsd_nat_target instead of inf_ptrace_target.
6953 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6954 nbsd_nat_target.
6955
013f99f0
KR
69562020-03-14 Kamil Rytarowski <n54@gmx.com>
6957
6958 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6959 it to the ptrace call.
6960 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6961
12753073
KR
69622020-03-14 Kamil Rytarowski <n54@gmx.com>
6963
6227b330
KR
6964 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6965 it to the ptrace call.
6966 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6967
69682020-03-14 Kamil Rytarowski <n54@gmx.com>
6969
6970 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6971 gdb_byte *.
12753073
KR
6972 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6973
d5be5fa4
KR
69742020-03-14 Kamil Rytarowski <n54@gmx.com>
6975
6976 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6977 instead of inf_ptrace_target.
6978 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6979 nbsd_nat_target.
6980
8110f842
KR
69812020-03-14 Kamil Rytarowski <n54@gmx.com>
6982
6983 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6984 register_t.
6985
52feded7
KR
69862020-03-14 Kamil Rytarowski <n54@gmx.com>
6987
6988 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6989 register_t.
6990
25567eee
KR
69912020-03-14 Kamil Rytarowski <n54@gmx.com>
6992
6993 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6994 register_t.
6995
426a9c18
TT
69962020-03-13 Tom Tromey <tom@tromey.com>
6997
6998 * value.h (val_print): Don't declare.
6999 * valprint.h (val_print_array_elements)
7000 (val_print_scalar_formatted, generic_val_print): Don't declare.
7001 * valprint.c (generic_val_print_array): Take a struct value.
7002 (generic_val_print_ptr, generic_val_print_memberptr)
7003 (generic_val_print_bool, generic_val_print_int)
7004 (generic_val_print_char, generic_val_print_complex)
7005 (generic_val_print): Remove.
7006 (generic_value_print): Update.
7007 (do_val_print): Remove unused parameters. Don't call
7008 la_val_print.
7009 (val_print): Remove.
7010 (common_val_print): Update. Don't call value_check_printable.
7011 (val_print_scalar_formatted, val_print_array_elements): Remove.
7012 * rust-lang.c (rust_val_print): Remove.
7013 (rust_language_defn): Update.
7014 * p-valprint.c (pascal_val_print): Remove.
7015 (pascal_value_print_inner): Update.
7016 (pascal_object_print_val_fields, pascal_object_print_val):
7017 Remove.
7018 (pascal_object_print_static_field): Update.
7019 * p-lang.h (pascal_val_print): Don't declare.
7020 * p-lang.c (pascal_language_defn): Update.
7021 * opencl-lang.c (opencl_language_defn): Update.
7022 * objc-lang.c (objc_language_defn): Update.
7023 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7024 * m2-lang.h (m2_val_print): Don't declare.
7025 * m2-lang.c (m2_language_defn): Update.
7026 * language.h (struct language_defn) <la_val_print>: Remove.
7027 * language.c (unk_lang_value_print_inner): Rename. Change
7028 argument types.
7029 (unknown_language_defn, auto_language_defn): Update.
7030 * go-valprint.c (go_val_print): Remove.
7031 * go-lang.h (go_val_print): Don't declare.
7032 * go-lang.c (go_language_defn): Update.
7033 * f-valprint.c (f_val_print): Remove.
7034 * f-lang.h (f_value_print): Don't declare.
7035 * f-lang.c (f_language_defn): Update.
7036 * d-valprint.c (d_val_print): Remove.
7037 * d-lang.h (d_value_print): Don't declare.
7038 * d-lang.c (d_language_defn): Update.
7039 * cp-valprint.c (cp_print_value_fields)
7040 (cp_print_value_fields_rtti, cp_print_value): Remove.
7041 (cp_print_static_field): Update.
7042 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7043 (c_val_print_struct, c_val_print_union, c_val_print_int)
7044 (c_val_print_memberptr, c_val_print): Remove.
7045 * c-lang.h (c_val_print_array, cp_print_value_fields)
7046 (cp_print_value_fields_rtti): Don't declare.
7047 * c-lang.c (c_language_defn, cplus_language_defn)
7048 (asm_language_defn, minimal_language_defn): Update.
7049 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7050 (ada_val_print_enum): Take a struct value.
7051 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7052 (ada_val_print): Remove.
7053 (ada_value_print_1): Update.
7054 (printable_val_type): Remove.
7055 * ada-lang.h (ada_val_print): Don't declare.
7056 * ada-lang.c (ada_language_defn): Update.
7057
42331a1e
TT
70582020-03-13 Tom Tromey <tom@tromey.com>
7059
7060 * valprint.c (do_val_print): Update.
7061 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7062 a struct value.
7063 (value_to_value_object_no_release): Declare.
7064 * python/py-value.c (value_to_value_object_no_release): New
7065 function.
7066 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7067 struct value.
7068 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7069 function.
7070 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7071 a struct value.
7072 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7073 Declare.
7074 (gdbscm_apply_val_pretty_printer): Take a struct value.
7075 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7076 value.
7077 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7078 value.
7079 * extension-priv.h (struct extension_language_ops)
7080 <apply_val_pretty_printer>: Take a struct value.
7081 * cp-valprint.c (cp_print_value): Create a struct value.
7082 (cp_print_value): Update.
7083
3a916a97
TT
70842020-03-13 Tom Tromey <tom@tromey.com>
7085
7086 * ada-valprint.c (print_field_values): Call common_val_print.
7087
b59eac37
TT
70882020-03-13 Tom Tromey <tom@tromey.com>
7089
7090 * ada-valprint.c (val_print_packed_array_elements): Remove
7091 bitoffset and val parameters. Call common_val_print.
7092 (ada_val_print_string): Remove offset, address, and original_value
7093 parameters.
7094 (ada_val_print_array): Update.
7095 (ada_value_print_array): New function.
7096 (ada_value_print_1): Call it.
7097
03371129
TT
70982020-03-13 Tom Tromey <tom@tromey.com>
7099
7100 * ada-valprint.c (ada_value_print): Use common_val_print.
7101
2e088f8b
TT
71022020-03-13 Tom Tromey <tom@tromey.com>
7103
7104 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7105
39ef85a8
TT
71062020-03-13 Tom Tromey <tom@tromey.com>
7107
7108 * ada-valprint.c (ada_value_print_num): New function.
7109 (ada_value_print_1): Use it.
7110
b9fa6e07
TT
71112020-03-13 Tom Tromey <tom@tromey.com>
7112
7113 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7114
416595d6
TT
71152020-03-13 Tom Tromey <tom@tromey.com>
7116
7117 * ada-valprint.c (ada_value_print_ptr): New function.
7118 (ada_value_print_1): Use it.
7119
5b5e15ec
TT
71202020-03-13 Tom Tromey <tom@tromey.com>
7121
7122 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7123 call common_val_print.
7124 (ada_val_print_1): Update.
7125 (ada_value_print_1): New function.
7126 (ada_value_print_inner): Rewrite.
7127
fbf54e75
TT
71282020-03-13 Tom Tromey <tom@tromey.com>
7129
7130 * cp-valprint.c (cp_print_value_fields): Update.
7131 (cp_print_value): New function.
7132
64b653ca
TT
71332020-03-13 Tom Tromey <tom@tromey.com>
7134
7135 * m2-valprint.c (m2_value_print_inner): Use
7136 cp_print_value_fields.
7137 * cp-valprint.c (cp_print_value_fields): New function.
7138 * c-valprint.c (c_value_print_struct): New function.
7139 (c_value_print_inner): Use c_value_print_struct.
7140 * c-lang.h (cp_print_value_fields): Declare.
7141
6999f067
TT
71422020-03-13 Tom Tromey <tom@tromey.com>
7143
7144 * c-valprint.c (c_value_print_array): New function.
7145 (c_value_print_inner): Use it.
7146
ce80b8bd
TT
71472020-03-13 Tom Tromey <tom@tromey.com>
7148
7149 * c-valprint.c (c_value_print_memberptr): New function.
7150 (c_value_print_inner): Use it.
7151
2faac269
TT
71522020-03-13 Tom Tromey <tom@tromey.com>
7153
7154 * c-valprint.c (c_value_print_int): New function.
7155 (c_value_print_inner): Use it.
7156
da3e2c29
TT
71572020-03-13 Tom Tromey <tom@tromey.com>
7158
7159 * c-valprint.c (c_value_print_ptr): New function.
7160 (c_value_print_inner): Use it.
7161
50836231
TT
71622020-03-13 Tom Tromey <tom@tromey.com>
7163
7164 * c-valprint.c (c_value_print_inner): Rewrite.
7165
4f412b6e
TT
71662020-03-13 Tom Tromey <tom@tromey.com>
7167
7168 * valprint.c (generic_value_print_complex): New function.
7169 (generic_value_print): Use it.
7170
f5354008
TT
71712020-03-13 Tom Tromey <tom@tromey.com>
7172
7173 * valprint.c (generic_val_print_float): Don't call
7174 val_print_scalar_formatted.
7175 (generic_val_print, generic_value_print): Update.
7176
3eec3b05
TT
71772020-03-13 Tom Tromey <tom@tromey.com>
7178
7179 * valprint.c (generic_value_print_char): New function
7180 (generic_value_print): Use it.
7181
fdddfccb
TT
71822020-03-13 Tom Tromey <tom@tromey.com>
7183
7184 * valprint.c (generic_value_print_int): New function.
7185 (generic_value_print): Use it.
7186
6dde7521
TT
71872020-03-13 Tom Tromey <tom@tromey.com>
7188
7189 * valprint.c (generic_value_print_bool): New function.
7190 (generic_value_print): Use it.
7191
4112d2e6
TT
71922020-03-13 Tom Tromey <tom@tromey.com>
7193
7194 * valprint.c (generic_val_print_func): Simplify.
7195 (generic_val_print, generic_value_print): Update.
7196
65786af6
TT
71972020-03-13 Tom Tromey <tom@tromey.com>
7198
7199 * valprint.c (generic_val_print_flags): Remove.
7200 (generic_val_print, generic_value_print): Update.
7201 (val_print_type_code_flags): Add original_value parameter.
7202
40f3ce18
TT
72032020-03-13 Tom Tromey <tom@tromey.com>
7204
7205 * valprint.c (generic_val_print): Update.
7206 (generic_value_print): Update.
7207 * valprint.c (generic_val_print_enum): Don't call
7208 val_print_scalar_formatted.
7209
2a5b130b
TT
72102020-03-13 Tom Tromey <tom@tromey.com>
7211
7212 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7213 * valprint.c (generic_value_print_ptr): New function.
7214
abc66ce9
TT
72152020-03-13 Tom Tromey <tom@tromey.com>
7216
7217 * valprint.c (generic_value_print): Rewrite.
7218
07a32858
TT
72192020-03-13 Tom Tromey <tom@tromey.com>
7220
7221 * p-valprint.c (pascal_object_print_value_fields)
7222 (pascal_object_print_value): New functions.
7223
64d64d3a
TT
72242020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * p-valprint.c (pascal_value_print_inner): Rewrite.
7227
6a95a1f5
TT
72282020-03-13 Tom Tromey <tom@tromey.com>
7229
7230 * f-valprint.c (f_value_print_innner): Rewrite.
7231
59fcdac6
TT
72322020-03-13 Tom Tromey <tom@tromey.com>
7233
7234 * m2-valprint.c (m2_print_unbounded_array): New overload.
7235 (m2_print_unbounded_array): Update.
7236 (m2_print_array_contents): Take a struct value.
7237 (m2_value_print_inner): Rewrite.
7238
d133c3e1
TT
72392020-03-13 Tom Tromey <tom@tromey.com>
7240
7241 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7242 (d_value_print_inner): New function.
7243 * d-lang.h (d_value_print_inner): Declare.
7244 * d-lang.c (d_language_defn): Use d_value_print_inner.
7245
23b0f06b
TT
72462020-03-13 Tom Tromey <tom@tromey.com>
7247
7248 * go-valprint.c (go_value_print_inner): New function.
7249 * go-lang.h (go_value_print_inner): Declare.
7250 * go-lang.c (go_language_defn): Use go_value_print_inner.
7251
5f56f7cb
TT
72522020-03-13 Tom Tromey <tom@tromey.com>
7253
7254 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7255 API.
7256 (rust_val_print): Rewrite.
7257 (rust_value_print_inner): New function, from rust_val_print.
7258 (rust_language_defn): Use rust_value_print_inner.
7259
26792ee0
TT
72602020-03-13 Tom Tromey <tom@tromey.com>
7261
7262 * ada-valprint.c (ada_value_print_inner): New function.
7263 * ada-lang.h (ada_value_print_inner): Declare.
7264 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7265
24051bbe
TT
72662020-03-13 Tom Tromey <tom@tromey.com>
7267
7268 * f-valprint.c (f_value_print_innner): New function.
7269 * f-lang.h (f_value_print_innner): Declare.
7270 * f-lang.c (f_language_defn): Use f_value_print_innner.
7271
c0941be6
TT
72722020-03-13 Tom Tromey <tom@tromey.com>
7273
7274 * p-valprint.c (pascal_value_print_inner): New function.
7275 * p-lang.h (pascal_value_print_inner): Declare.
7276 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7277
62c4663d
TT
72782020-03-13 Tom Tromey <tom@tromey.com>
7279
7280 * m2-valprint.c (m2_value_print_inner): New function.
7281 * m2-lang.h (m2_value_print_inner): Declare.
7282 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7283
62182190
TT
72842020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7287 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7288 * c-valprint.c (c_value_print_inner): New function.
7289 * c-lang.h (c_value_print_inner): Declare.
7290 * c-lang.c (c_language_defn, cplus_language_defn)
7291 (asm_language_defn, minimal_language_defn): Use
7292 c_value_print_inner.
7293
1e592a8a
TT
72942020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * p-valprint.c (pascal_object_print_value_fields): Now static.
7297 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7298
7fe471e9
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * c-valprint.c (c_val_print_array): Simplify.
7302
d121c6ce
TT
73032020-03-13 Tom Tromey <tom@tromey.com>
7304
7305 * valprint.c (value_print_array_elements): New function.
7306 * valprint.h (value_print_array_elements): Declare.
7307
4dba70ee
TT
73082020-03-13 Tom Tromey <tom@tromey.com>
7309
7310 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7311 * mips-tdep.c (mips_print_register): Use
7312 value_print_scalar_formatted.
7313
4f9ae810
TT
73142020-03-13 Tom Tromey <tom@tromey.com>
7315
7316 * valprint.h (value_print_scalar_formatted): Declare.
7317 * valprint.c (value_print_scalar_formatted): New function.
7318
156bfec9
TT
73192020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * valprint.h (generic_value_print): Declare.
7322 * valprint.c (generic_value_print): New function.
7323
2b4e573d
TT
73242020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * valprint.c (do_val_print): Call la_value_print_inner, if
7327 available.
7328 * rust-lang.c (rust_language_defn): Update.
7329 * p-lang.c (pascal_language_defn): Update.
7330 * opencl-lang.c (opencl_language_defn): Update.
7331 * objc-lang.c (objc_language_defn): Update.
7332 * m2-lang.c (m2_language_defn): Update.
7333 * language.h (struct language_defn) <la_value_print_inner>: New
7334 member.
7335 * language.c (unknown_language_defn, auto_language_defn): Update.
7336 * go-lang.c (go_language_defn): Update.
7337 * f-lang.c (f_language_defn): Update.
7338 * d-lang.c (d_language_defn): Update.
7339 * c-lang.c (c_language_defn, cplus_language_defn)
7340 (asm_language_defn, minimal_language_defn): Update.
7341 * ada-lang.c (ada_language_defn): Update.
7342
a1f6a07c
TT
73432020-03-13 Tom Tromey <tom@tromey.com>
7344
7345 * c-valprint.c (c_value_print): Use common_val_print.
7346
410cf315
TT
73472020-03-13 Tom Tromey <tom@tromey.com>
7348
7349 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7350
72a45c93
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * f-valprint.c (f77_print_array_1, f_val_print): Use
7354 common_val_print.
7355
040f66bd
TT
73562020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * riscv-tdep.c (riscv_print_one_register_info): Use
7359 common_val_print.
7360
a6e05a6c
TT
73612020-03-13 Tom Tromey <tom@tromey.com>
7362
7363 * mi/mi-main.c (output_register): Use common_val_print.
7364
3444c526
TT
73652020-03-13 Tom Tromey <tom@tromey.com>
7366
7367 * infcmd.c (default_print_one_register_info): Use
7368 common_val_print.
7369
c2a44efe
TT
73702020-03-13 Tom Tromey <tom@tromey.com>
7371
7372 * valprint.h (common_val_print_checked): Declare.
7373 * valprint.c (common_val_print_checked): New function.
7374 * stack.c (print_frame_arg): Use common_val_print_checked.
7375
b0c26e99
TT
73762020-03-13 Tom Tromey <tom@tromey.com>
7377
7378 * valprint.c (do_val_print): New function, from val_print.
7379 (val_print): Use do_val_print.
7380 (common_val_print): Use do_val_print.
7381
ce3acbe9
TT
73822020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * valprint.c (value_print): Use scoped_value_mark.
7385
96c7f873
TV
73862020-03-13 Tom de Vries <tdevries@suse.de>
7387
7388 PR symtab/25646
7389 * psymtab.c (partial_symtab::partial_symtab): Don't set
7390 globals_offset and statics_offset. Push element onto
7391 current_global_psymbols and current_static_psymbols stacks.
7392 (concat): New function.
7393 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7394 element from current_global_psymbols and current_static_psymbols
7395 stacks. Concat popped elements to global_psymbols and
7396 static_symbols.
7397 (add_psymbol_to_list): Use current_global_psymbols and
7398 current_static_psymbols stacks.
7399 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7400 current_static_psymbols fields.
7401
6ba0a321
CB
74022020-03-12 Christian Biesinger <cbiesinger@google.com>
7403
7404 * corelow.c (sniff_core_bfd): Remove.
7405 (class core_target) <m_core_vec>: Remove.
7406 (core_target::core_target): Update.
7407 (core_file_fns): Remove.
7408 (deprecated_add_core_fns): Remove.
7409 (default_core_sniffer): Remove.
7410 (sniff_core_bfd): Remove.
7411 (default_check_format): Remove.
7412 (gdb_check_format): Remove.
7413 (core_target_open): Update.
7414 (core_target::get_core_register_section): Update.
7415 (get_core_registers_cb): Update.
7416 (core_target::fetch_registers): Update.
7417 * gdbcore.h (struct core_fns): Remove.
7418 (deprecated_add_core_fns): Remove.
7419 (default_core_sniffer): Remove.
7420 (default_check_format): Remove.
7421
227031b2
TT
74222020-03-12 Tom Tromey <tom@tromey.com>
7423
7424 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7425 CORE_ADDR.
7426 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7427
53807e9f
TT
74282020-03-12 Tom Tromey <tom@tromey.com>
7429
7430 * remote.c (remote_target::download_tracepoint)
7431 (remote_target::enable_tracepoint)
7432 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7433 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7434 sprintf_vma.
7435
64f25102
TT
74362020-03-12 Tom Tromey <tom@tromey.com>
7437
7438 * symfile-mem.c: Update CORE_ADDR size assert.
7439
272cd5a3
SM
74402020-03-12 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * selftest.m4: Move to gdbsupport/.
7443 * acinclude.m4: Update path to selftest.m4.
7444
74cd3f9d
SM
74452020-03-12 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7448 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7449 gdbarch-selfselftests.c and selftest-arch.c.
7450 (SUBDIR_UNITTESTS_OBS): Rename to...
7451 (SELFTESTS_OBS): ... this.
7452 (COMMON_SFILES): Remove disasm-selftests.c and
7453 gdbarch-selftests.c.
7454 * configure.ac: Don't add selftest-arch.{c,o} to
7455 CONFIG_{SRCS,OBS}.
7456 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7457 preprocessor conditions.
7458
db6878ac
SM
74592020-03-12 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * configure.ac: Don't source bfd/development.sh.
7462 * selftest.m4: Modify comment.
7463 * configure: Re-generate.
7464
4d696a5c
SM
74652020-03-12 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7468 not "true" or "false".
7469 * configure: Re-generate.
7470
8dd8e1c7
CB
74712020-03-12 Christian Biesinger <cbiesinger@google.com>
7472
7473 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7474 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7475 renamed to arm_nbsd_supply_gregset.
7476 (fetch_register): Update to call arm_nbsd_supply_gregset.
7477 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7478 (arm_netbsd_nat_target::fetch_registers): Update.
7479 (fetch_elfcore_registers): Removed.
7480 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7481 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7482 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7483 not require NetBSD system headers.
7484 (arm_nbsd_regset): New struct.
7485 (arm_nbsd_iterate_over_regset_sections): New function.
7486 (arm_netbsd_init_abi_common): Updated to call
7487 set_gdbarch_iterate_over_regset_sections.
7488 * arm-nbsd-tdep.h: New file.
7489
dd69bf7a
KB
74902020-03-11 Kevin Buettner <kevinb@redhat.com>
7491
7492 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7493 recursion.
7494
a0761e34
SM
74952020-03-11 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * configure: Re-generate.
7498
e7a82140
TT
74992020-03-11 Tom Tromey <tromey@adacore.com>
7500
7501 * ada-typeprint.c (print_choices): Fix comment.
7502
dcc050c8
AB
75032020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7504
7505 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7506 previous item in the list, when the list has no items.
7507
1c33af77
TV
75082020-03-11 Tom de Vries <tdevries@suse.de>
7509
7510 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7511 PROP_LOCLIST handling code.
7512
8c95582d
AB
75132020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 * buildsym-legacy.c (record_line): Pass extra parameter to
7516 record_line.
7517 * buildsym.c (buildsym_compunit::record_line): Take an extra
7518 parameter, reduce duplication in the line table, and record the
7519 is_stmt flag in the line table.
7520 * buildsym.h (buildsym_compunit::record_line): Add extra
7521 parameter.
7522 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7523 non-statement lines.
7524 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7525 this to the symtab builder.
7526 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7527 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7528 through to dwarf_record_line_1.
7529 * infrun.c (process_event_stop_test): When stepping, don't stop at
7530 a non-statement instruction, and only refresh the step info when
7531 we land in the middle of a line's range. Also add an extra
7532 comment.
7533 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7534 field.
7535 * record-btrace.c (btrace_find_line_range): Only record lines
7536 marked as is-statement.
7537 * stack.c (frame_show_address): Show the frame address if we are
7538 in a non-statement sal.
7539 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7540 (maintenance_print_one_line_table): Print a header for the is_stmt
7541 column, and include is_stmt information in the output.
7542 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7543 preference to non-statements.
7544 (find_pcs_for_symtab_line): Prefer is-statement entries.
7545 (find_line_common): Likewise.
7546 * symtab.h (struct linetable_entry): Add is_stmt field.
7547 (struct symtab_and_line): Likewise.
7548 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7549 arranging the line table.
7550
e4003a34
TV
75512020-03-07 Tom de Vries <tdevries@suse.de>
7552
7553 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7554 DIE.
7555
e8932576
TT
75562020-03-07 Tom Tromey <tom@tromey.com>
7557
7558 * valops.c (value_literal_complex): Remove obsolete comment.
7559 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7560 comment.
7561
29734269
SM
75622020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * infrun.h: Forward-declare thread_info.
7565 (set_step_info): Add thread_info parameter, add doc.
7566 * infrun.c (set_step_info): Add thread_info parameter, move doc
7567 to header.
7568 * infrun.c (process_event_stop_test): Pass thread to
7569 set_step_info call.
7570 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7571 set_step_info.
7572 (prepare_one_step): Add thread_info parameter, pass it to
7573 set_step_frame and prepare_one_step (recursive) call.
7574 (step_1): Pass thread to prepare_one_step call.
7575 (step_command_fsm::should_stop): Pass thread to
7576 prepare_one_step.
7577 (until_next_fsm): Pass thread to set_step_frame call.
7578 (finish_command): Pass thread to set_step_info call.
7579
b7d64b29
HD
75802020-03-06 Hannes Domani <ssbssa@yahoo.de>
7581
7582 * windows-tdep.c (windows_solib_create_inferior_hook):
7583 Check if inferior is running.
7584
09f2921c
TV
75852020-03-06 Tom de Vries <tdevries@suse.de>
7586
7587 * NEWS: Fix "the the".
7588 * ctfread.c: Same.
7589
fd760e79
TV
75902020-03-06 Tom de Vries <tdevries@suse.de>
7591
7592 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7593
20ea4a60
AB
75942020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * .dir-locals.el: Add a comment referencing the other copies of
7597 this file.
7598
0afbabf0
JB
75992020-03-05 John Baldwin <jhb@FreeBSD.org>
7600
7601 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7602 psargs.
7603
842806cb
TBA
76042020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7605
7606 * .gitattributes: New file.
7607
be1e3d3e
TT
76082020-03-04 Tom Tromey <tom@tromey.com>
7609
7610 * symmisc.c (print_symbol_bcache_statistics)
7611 (print_objfile_statistics): Update.
7612 * symfile.c (allocate_symtab): Use intern.
7613 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7614 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7615 macro_cache>: Remove.
7616 <string_cache>: New member.
7617 (struct objfile) <intern>: New methods.
7618 * elfread.c (elf_symtab_read): Use intern.
7619 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7620 (dwarf2_compute_name, dwarf2_physname)
7621 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7622 names.
7623 (guess_partial_die_structure_name): Update.
7624 (partial_die_info::fixup): Intern name.
7625 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7626 name.
7627 (dwarf2_name): Intern name. Update.
7628 * buildsym.c (buildsym_compunit::get_macro_table): Use
7629 string_cache.
7630
4e7625fd
TT
76312020-03-04 Tom Tromey <tom@tromey.com>
7632
7633 * jit.c (bfd_open_from_target_memory): Make "target" const.
7634 * corefile.c (gnutarget): Now const.
7635 * gdbcore.h (gnutarget): Now const.
7636
46f9f931
HD
76372020-03-04 Hannes Domani <ssbssa@yahoo.de>
7638
7639 * NEWS: Mention support for WOW64 processes.
7640 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7641 (amd64_windows_segment_register_p): Remove static.
7642 (_initialize_amd64_windows_nat): Update.
7643 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7644 * i386-windows-nat.c (context_offset): Update.
7645 (i386_mappings): Rename and remove static.
7646 (i386_windows_segment_register_p): Remove static.
7647 (_initialize_i386_windows_nat): Update.
7648 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7649 (STATUS_WX86_SINGLE_STEP): New macro.
7650 (EnumProcessModulesEx): New macro.
7651 (Wow64SuspendThread): New macro.
7652 (Wow64GetThreadContext): New macro.
7653 (Wow64SetThreadContext): New macro.
7654 (Wow64GetThreadSelectorEntry): New macro.
7655 (windows_set_context_register_offsets): Add static.
7656 (windows_set_segment_register_p): Likewise.
7657 (windows_add_thread): Adapt for WOW64 processes.
7658 (windows_fetch_one_register): Likewise.
7659 (windows_nat_target::fetch_registers): Likewise.
7660 (windows_store_one_register): Likewise.
7661 (display_selector): Likewise.
7662 (display_selectors): Likewise.
7663 (handle_exception): Likewise.
7664 (windows_continue): Likewise.
7665 (windows_nat_target::resume): Likewise.
7666 (windows_add_all_dlls): Likewise.
7667 (do_initial_windows_stuff): Likewise.
7668 (windows_nat_target::attach): Likewise.
7669 (windows_get_exec_module_filename): Likewise.
7670 (windows_nat_target::create_inferior): Likewise.
7671 (windows_xfer_siginfo): Likewise.
7672 (_initialize_loadable): Initialize Wow64SuspendThread,
7673 Wow64GetThreadContext, Wow64SetThreadContext,
7674 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7675 * windows-nat.h (windows_set_context_register_offsets):
7676 Remove declaration.
7677 (windows_set_segment_register_p): Likewise.
7678 (i386_windows_segment_register_p): Add declaration.
7679 (amd64_windows_segment_register_p): Likewise.
7680
440cf44e
LM
76812020-03-04 Luis Machado <luis.machado@linaro.org>
7682
7683 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7684 in "info registers" for AArch64/ARM.
7685
7686 The change caused "info registers" to not print GPR's.
7687
7688 gdb/ChangeLog:
7689
7690 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7691
7692 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7693 when reg->group is empty and reggroup is not.
7694
1009d92f
TT
76952020-03-03 Tom Tromey <tromey@adacore.com>
7696
7697 * dwarf2/frame.c (struct dwarf2_frame_cache)
7698 <checked_tailcall_bottom, entry_cfa_sp_offset,
7699 entry_cfa_sp_offset_p>: Remove members.
7700 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7701 (dwarf2_frame_prev_register): Don't call
7702 dwarf2_tailcall_sniffer_first.
7703 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7704 * frame-unwind.c (add_unwinder): New fuction.
7705 (frame_unwind_init): Use it. Add tailcall unwinder.
7706
5e5d66b6
AB
77072020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7708 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7709
7710 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7711 value should be printed as true.
7712
584cf46d
HD
77132020-03-03 Hannes Domani <ssbssa@yahoo.de>
7714
7715 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7716 (windows_init_abi): Set and use windows_so_ops.
7717
7b973adc
SDJ
77182020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7719
7720 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7721 when verifying if dealing with a convenience variable.
7722
bb7b70ab
LM
77232020-03-03 Luis Machado <luis.machado@linaro.org>
7724
7725 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7726
9822cb57
SM
77272020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7728
7729 * infrun.c (gdbarch_supports_displaced_stepping): New.
7730 (use_displaced_stepping): Break up conditions in smaller pieces.
7731 Use gdbarch_supports_displaced_stepping.
7732 (displaced_step_prepare_throw): Use
7733 gdbarch_supports_displaced_stepping.
7734
63e163f2
AB
77352020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * NEWS: Mention new behaviour of the history filename.
7738 * top.c (write_history_p): Add comment.
7739 (show_write_history_p): Add header comment, give a different
7740 message when history writing is on, but the history filename is
7741 empty.
7742 (history_filename): Add comment.
7743 (history_filename_empty): New function.
7744 (show_history_filename): Add header comment, give a different
7745 message when the filename is empty.
7746 (init_history): Compare history_filename against nullptr, and only
7747 read history if the filename is not empty.
7748 (set_history_filename): Add header comment, and only make
7749 non-empty filenames absolute.
7750 (init_main): Make the filename argument to 'set history filename'
7751 optional.
7752
81b86b97
CB
77532020-03-02 Christian Biesinger <cbiesinger@google.com>
7754
7755 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7756 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7757 (fetch_fp_register): Update.
7758 (fetch_fp_regs): Update.
7759 (store_fp_register): Update.
7760 (store_fp_regs): Update.
7761 (arm_netbsd_nat_target::read_description): New function.
7762 (fetch_elfcore_registers): Update.
7763
24ed6739
AB
77642020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7767 general_thread if the stop reply is missing a thread-id.
7768 (remote_target::process_stop_reply): Use the first non-exited
7769 thread if the target didn't pass a thread-id.
7770 * infrun.c (do_target_wait): Move call to
7771 switch_to_inferior_no_thread to ....
7772 (do_target_wait_1): ... here.
7773
a84bb2a0
JT
77742020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7775
7776 * debuginfod-support.c: Include defs.h first.
7777
658dadf0
TV
77782020-02-28 Tom de Vries <tdevries@suse.de>
7779
7780 * symfile.c (set_initial_language): Use default language for lookup.
7781
4ebe4877
SM
77822020-02-28 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7785 reader variable, pass `this` to read_cutu_die_from_dwo.
7786
e5da1139
AM
77872020-02-27 Aaron Merey <amerey@redhat.com>
7788
7789 * source.c (open_source_file): Check for nullptr when computing
7790 srcpath.
7791
317f7127
TT
77922020-02-27 Tom Tromey <tromey@adacore.com>
7793
7794 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7795 member.
7796 (dwarf2_add_field): Don't update nfields.
7797 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7798
3104d9ee
AB
77992020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7800
7801 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7802 abs.
7803
b83470bf
TT
78042020-02-26 Tom Tromey <tom@tromey.com>
7805
7806 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7807 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7808 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7809 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7810 per_cu_data.
7811
edfe0a0c
TT
78122020-02-26 Tom Tromey <tom@tromey.com>
7813
7814 * dwarf2/index-write.c (psym_index_map): Change type.
7815 (add_address_entry_worker, write_one_signatured_type)
7816 (recursively_count_psymbols, recursively_write_psymbols)
7817 (class debug_names, psyms_seen_size, write_gdbindex)
7818 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7819
0d79cdc4
AM
78202020-02-26 Aaron Merey <amerey@redhat.com>
7821
7822 * Makefile.in: Handle optional debuginfod support.
7823 * NEWS: Update.
7824 * README: Add --with-debuginfod summary.
7825 * config.in: Regenerate.
7826 * configure: Regenerate.
7827 * configure.ac: Handle optional debuginfod support.
7828 * debuginfod-support.c: debuginfod helper functions.
7829 * debuginfod-support.h: Ditto.
7830 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7831 summary.
7832 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7833 when a dwz file cannot be found.
7834 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7835 debuginfo file cannot be found.
7836 * source.c (open_source_file): Query debuginfod servers when a
7837 source file cannot be found.
7838 * top.c (print_gdb_configuration): Include
7839 --{with,without}-debuginfod in the output.
7840
b65ce565
JG
78412020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7842
7843 * thread.c (thr_try_catch_cmd): Print thread name.
7844
d4c9a4f8
SM
78452020-02-26 Simon Marchi <simon.marchi@efficios.com>
7846
7847 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7848 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7849 dwarf2_fetch_die_type_sect_off): Move to...
7850 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7851 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7852 dwarf2_fetch_die_type_sect_off): ... here.
7853 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7854 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7855 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7856
0dce4280
TV
78572020-02-26 Tom de Vries <tdevries@suse.de>
7858
7859 PR gdb/25603
7860 * symfile.c (set_initial_language): Exit-early if
7861 language_mode == language_mode_manual.
7862
450a1bfc
SM
78632020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7864
7865 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7866 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7867 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7868
9e80cfa1
AB
78692020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * gdbtypes.c (create_array_type_with_stride): Handle negative
7872 array strides.
7873 * valarith.c (value_subscripted_rvalue): Likewise.
7874
09624f1f
LM
78752020-02-25 Luis Machado <luis.machado@linaro.org>
7876
7877 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7878
8cb5117c
SM
78792020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7880
7881 * loc.h (dwarf2_get_die_type): Move to...
7882 * read.h (dwarf2_get_die_type): ... here.
7883 * read.c (dwarf2_get_die_type): Move doc to header.
7884
c325c44e
JB
78852020-02-25 Joel Brobecker <brobecker@adacore.com>
7886
7887 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7888 'gnulib/Makefile.in' to the list.
7889
4ac93832
TT
78902020-02-24 Tom Tromey <tom@tromey.com>
7891
7892 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7893 Remove.
7894 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7895 XOBNEWVEC.
7896
197400e8
TT
78972020-02-24 Tom Tromey <tom@tromey.com>
7898
7899 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7900 New method.
7901 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7902 (dw2_do_instantiate_symtab, dw2_get_file_names)
7903 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7904
76935768
TT
79052020-02-24 Tom Tromey <tom@tromey.com>
7906
7907 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7908 make_scoped_restore.
7909 (dwarf2_psymtab::read_symtab): Don't clear
7910 reading_partial_symbols.
7911
a88ef40d
TV
79122020-02-24 Tom de Vries <tdevries@suse.de>
7913
7914 PR gdb/25592
7915 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7916
c9af6521
TV
79172020-02-24 Tom de Vries <tdevries@suse.de>
7918
7919 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7920 commands layout next/prev/regs.
7921
5707a07a
TT
79222020-02-22 Tom Tromey <tom@tromey.com>
7923
7924 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7925 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7926
3b0fb49e
TT
79272020-02-22 Tom Tromey <tom@tromey.com>
7928
7929 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7930
283be8bf
TT
79312020-02-22 Tom Tromey <tom@tromey.com>
7932
7933 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7934 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7935 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7936 * tui/tui.c (_initialize_tui): Add usage text.
7937
ca793b96
TT
79382020-02-22 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-win.c (tui_set_focus_command)
7941 (tui_set_win_height_command): Use error_no_arg.
7942 (_initialize_tui_win): Update help text.
7943 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7944
432b5c40
TT
79452020-02-22 Tom Tromey <tom@tromey.com>
7946
7947 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7948 * tui/tui-disasm.h (struct tui_disasm_window)
7949 <display_start_addr>: Declare.
7950 * tui/tui-source.h (struct tui_source_window)
7951 <display_start_addr>: Declare.
7952 * tui/tui-winsource.h (struct tui_source_window_base)
7953 <show_source_line, display_start_addr>: New methods.
7954 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7955 Rename and move to protected section.
7956 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7957 (tui_source_window_base::do_erase_source_content): Update.
7958 (tui_source_window_base::show_source_line): Now a method.
7959 (tui_source_window_base::show_source_content)
7960 (tui_source_window_base::tui_source_window_base)
7961 (tui_source_window_base::rerender)
7962 (tui_source_window_base::refill)
7963 (tui_source_window_base::do_scroll_horizontal)
7964 (tui_source_window_base::set_is_exec_point_at)
7965 (tui_source_window_base::update_breakpoint_info)
7966 (tui_source_window_base::update_exec_info): Update.
7967 * tui/tui-source.c (tui_source_window::set_contents)
7968 (tui_source_window::showing_source_p)
7969 (tui_source_window::do_scroll_vertical)
7970 (tui_source_window::location_matches_p)
7971 (tui_source_window::line_is_displayed): Update.
7972 (tui_source_window::display_start_addr): New method.
7973 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7974 (tui_disasm_window::do_scroll_vertical)
7975 (tui_disasm_window::location_matches_p): Update.
7976 (tui_disasm_window::display_start_addr): New method.
7977
01b1af32
TT
79782020-02-22 Tom Tromey <tom@tromey.com>
7979
7980 * NEWS: Add entry for gdb.register_window_type.
7981 * tui/tui-layout.h (window_factory): New typedef.
7982 (tui_register_window): Declare.
7983 * tui/tui-layout.c (saved_tui_windows): New global.
7984 (tui_apply_current_layout): Use it.
7985 (tui_register_window): New function.
7986 * python/python.c (do_start_initialization): Call
7987 gdbpy_initialize_tui.
7988 (python_GdbMethods): Add "register_window_type" function.
7989 * python/python-internal.h (gdbpy_register_tui_window)
7990 (gdbpy_initialize_tui): Declare.
7991 * python/py-tui.c: New file.
7992 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7993
fc96d20b
TT
79942020-02-22 Tom Tromey <tom@tromey.com>
7995
7996 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7997
935c78c0
TT
79982020-02-22 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8001 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8002 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8003 (tui_set_win_focus_to): Move from tui-win.c.
8004
0240c8f1
TT
80052020-02-22 Tom Tromey <tom@tromey.com>
8006
8007 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8008 functions.
8009 (known_window_types): New global.
8010 (tui_get_window_by_name): Reimplement.
8011 (initialize_known_windows): New function.
8012 (validate_window_name): Rewrite.
8013 (_initialize_tui_layout): Call initialize_known_windows.
8014
fdb01f0c
TT
80152020-02-22 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8018 Remove constants.
8019 * tui/tui-winsource.h (struct tui_source_window_base)
8020 <tui_source_window_base>: Remove parameter.
8021 * tui/tui-winsource.c
8022 (tui_source_window_base::tui_source_window_base): Remove
8023 parameter.
8024 (tui_source_window_base::refill): Update.
8025 * tui/tui-stack.h (struct tui_locator_window)
8026 <tui_locator_window>: Update.
8027 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8028 Default the constructor.
8029 * tui/tui-regs.h (struct tui_data_item_window)
8030 <tui_data_item_window>: Default the constructor.
8031 (struct tui_data_window) <tui_data_window>: Likewise.
8032 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8033 Default the constructor.
8034 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8035 Default the constructor.
8036 <type>: Remove.
8037 (struct tui_win_info) <tui_win_info>: Default the constructor.
8038 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8039 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8040 Default the constructor.
8041
865a5aec
TT
80422020-02-22 Tom Tromey <tom@tromey.com>
8043
8044 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8045 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8046 * tui/tui-win.c (tui_resize_all): Don't call
8047 tui_delete_invisible_windows.
8048 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8049 done.
8050 (tui_set_layout): Update.
8051 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8052 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8053 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8054
e098d18c
TT
80552020-02-22 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8058 correctly.
8059
eb9c8874
TT
80602020-02-22 Tom Tromey <tom@tromey.com>
8061
8062 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8063
7eed1a8e
TT
80642020-02-22 Tom Tromey <tom@tromey.com>
8065
8066 * tui/tui-winsource.h (struct tui_source_window_iterator)
8067 <inner_iterator>: New etytypedef.
8068 <tui_source_window_iterator>: Take "end" parameter.
8069 <tui_source_window_iterator>: Take iterator.
8070 <operator*, advance>: Update.
8071 <m_iter>: Change type.
8072 <m_end>: New field.
8073 (struct tui_source_windows) <begin, end>: Update.
8074 * tui/tui-layout.c (tui_windows): New global.
8075 (tui_apply_current_layout): Clear tui_windows.
8076 (tui_layout_window::apply): Update tui_windows.
8077 * tui/tui-data.h (tui_windows): Declare.
8078 (all_tui_windows): Now inline function.
8079 (class tui_window_iterator, struct all_tui_windows): Remove.
8080
7c043ba6
TT
80812020-02-22 Tom Tromey <tom@tromey.com>
8082
8083 PR tui/17850:
8084 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8085 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8086 "height" argument.
8087 (class tui_layout_window) <get_sizes>: Likewise.
8088 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8089 argument.
8090 <get_sizes>: Add "height" argument.
8091 <m_vertical>: New field.
8092 * tui/tui-layout.c (tui_layout_split::clone): Update.
8093 (tui_layout_split::get_sizes): Add "height" argument.
8094 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8095 (tui_new_layout_command): Parse "-horizontal".
8096 (_initialize_tui_layout): Update help string.
8097 (tui_layout_split::specification): Add "-horizontal" when needed.
8098 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8099 argument.
8100 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8101 New methods.
8102
6bc56648
TT
81032020-02-22 Tom Tromey <tom@tromey.com>
8104
8105 * tui/tui-layout.h (enum tui_adjust_result): New.
8106 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8107 (class tui_layout_window) <adjust_size>: Return
8108 tui_adjust_result. Rewrite.
8109 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8110 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8111
c22fef7e
TT
81122020-02-22 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8115 parameter and return types.
8116 (class tui_layout_base) <specification>: Add "depth".
8117 (class tui_layout_window) <specification>: Add "depth".
8118 (class tui_layout_split) <specification>: Add "depth".
8119 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8120 and return types.
8121 (tui_new_layout_command): Parse sub-layouts.
8122 (_initialize_tui_layout): Update help string.
8123 (tui_layout_window::specification): Add "depth".
8124 (add_layout_command): Update.
8125
ee325b61
TT
81262020-02-22 Tom Tromey <tom@tromey.com>
8127
8128 * NEWS: Add "tui new-layout" item.
8129 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8130 Add new-layout command to help text.
8131 (validate_window_name): New function.
8132 (tui_new_layout_command): New function.
8133 (_initialize_tui_layout): Register "new-layout".
8134 (tui_layout_window::specification): New method.
8135 (tui_layout_window::specification): New method.
8136 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8137 method.
8138 (class tui_layout_window) <specification>: New method.
8139 (class tui_layout_split) <specification>: New method.
8140
416eb92d
TT
81412020-02-22 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8144 * tui/tui-win.c (window_name_completer): Update comment.
8145 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8146 Declare method.
8147 (class tui_layout_window) <replace_window>: Likewise.
8148 (class tui_layout_split) <replace_window>: Likewise.
8149 (tui_set_layout): Don't declare.
8150 (tui_set_initial_layout): Declare function.
8151 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8152 (asm_regs_layout): New globals.
8153 (tui_current_layout, show_layout): Remove.
8154 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8155 (find_layout, tui_apply_layout): New function.
8156 (layout_completer): Remove.
8157 (tui_next_layout): Reimplement.
8158 (tui_next_layout_command): New function.
8159 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8160 (tui_regs_layout): Reimplement.
8161 (tui_regs_layout_command): New function.
8162 (extract_display_start_addr): Rewrite.
8163 (next_layout, prev_layout): Remove.
8164 (tui_layout_window::replace_window): New method.
8165 (tui_layout_split::replace_window): New method.
8166 (destroy_layout): New function.
8167 (layout_list): New global.
8168 (add_layout_command): New function.
8169 (initialize_layouts): Update.
8170 (tui_layout_command): New function.
8171 (_initialize_tui_layout): Install "layout" commands.
8172 * tui/tui-data.h (enum tui_layout_type): Remove.
8173 (tui_current_layout): Don't declare.
8174
0dbc2fc7
TT
81752020-02-22 Tom Tromey <tom@tromey.com>
8176
8177 * tui/tui-regs.c (tui_reg_layout): Remove.
8178 (tui_reg_command): Use tui_regs_layout.
8179 * tui/tui-layout.h (tui_reg_command): Declare.
8180 * tui/tui-layout.c (tui_reg_command): New function.
8181
5afe342e
TT
81822020-02-22 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui.c (tui_rl_delete_other_windows): Call
8185 tui_remove_some_windows.
8186 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8187 Declare method.
8188 (class tui_layout_window) <remove_windows>: New method.
8189 (class tui_layout_split) <remove_windows>: Declare.
8190 (tui_remove_some_windows): Declare.
8191 * tui/tui-layout.c (tui_remove_some_windows): New function.
8192 (tui_layout_split::remove_windows): New method.
8193
427326a8
TT
81942020-02-22 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8197 * tui/tui-layout.h (tui_next_layout): Declare.
8198 * tui/tui-layout.c (tui_next_layout): New function.
8199
3fe12b6d
TT
82002020-02-22 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8203 correct coordinates.
8204
59b8b5d2
TT
82052020-02-22 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8208 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8209 DATA_WIN case.
8210
2a3d458b
TT
82112020-02-22 Tom Tromey <tom@tromey.com>
8212
8213 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8214 TUI_DISASM_WIN, not tui_win_list.
8215
3f0cbb04
TT
82162020-02-22 Tom Tromey <tom@tromey.com>
8217
8218 * valprint.c (generic_val_print_enum_1)
8219 (val_print_type_code_flags): Style member names.
8220 * rust-lang.c (val_print_struct, rust_print_enum)
8221 (rust_print_struct_def, rust_internal_print_type): Style member
8222 names.
8223 * p-valprint.c (pascal_object_print_value_fields): Style member
8224 names. Only call fprintf_symbol_filtered for static members.
8225 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8226 * f-valprint.c (f_val_print): Style member names.
8227 * f-typeprint.c (f_type_print_base): Style member names.
8228 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8229 call fprintf_symbol_filtered for static members.
8230 (cp_print_class_member): Style member names.
8231 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8232 member names.
8233 * ada-valprint.c (ada_print_scalar): Style enum names.
8234 (ada_val_print_enum): Likewise.
8235 * ada-typeprint.c (print_enum_type): Style enum names.
8236
d4d947ae
TT
82372020-02-21 Tom Tromey <tom@tromey.com>
8238
8239 * psympriv.h (struct partial_symtab): Update comment.
8240
e94e944b
TT
82412020-02-21 Tom Tromey <tromey@adacore.com>
8242
8243 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8244 type is CORE_ADDR.
8245
1eb73179
TV
82462020-02-21 Tom de Vries <tdevries@suse.de>
8247
8248 PR gdb/25534
8249 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8250 if dependencies[i]->user != NULL.
8251
4f180d53
AT
82522020-02-21 Ali Tamur <tamur@google.com>
8253
8254 * dwarf2/read.c (dwarf2_name): Add null check.
8255
22b6cd70
TT
82562020-02-20 Tom Tromey <tom@tromey.com>
8257
8258 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8259 ">=", in binary search.
8260 (dwarf2_find_containing_comp_unit): New overload.
8261 (run_test): New self-test.
8262 (_initialize_dwarf2_read): Register new test.
8263
bd0cf5a6
NC
82642020-02-20 Nelson Chu <nelson.chu@sifive.com>
8265
8266 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8267 * riscv-tdep.h: Likewise.
8268 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8269 rv32-only CSR.
8270 * features/riscv/64bit-csr.xml: Regenerated.
8271
3f702acd
SDJ
82722020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8273 Tom Tromey <tom@tromey.com>
8274
8275 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8276 of 'fputc_unfiltered'.
8277 (putchar_unfiltered): Call 'fputc_unfiltered'.
8278 (fputc_unfiltered): Call 'fputs_unfiltered'.
8279
d13c7322
AB
82802020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8281
8282 * config.in: Regenerate.
8283 * configure: Regenerate.
8284 * configure.ac: Add --with-python-libdir option.
8285 * main.c: Use WITH_PYTHON_LIBDIR.
8286
869d8950
TT
82872020-02-19 Tom Tromey <tom@tromey.com>
8288
8289 * symtab.c (general_symbol_info::compute_and_set_names): Use
8290 obstack_strndup. Simplify call to symbol_set_demangled_name.
8291
298e9637
SM
82922020-02-19 Simon Marchi <simon.marchi@efficios.com>
8293
8294 * dwarf2/read.c (allocate_signatured_type_table,
8295 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8296 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8297 Remove objfile parameter, update all callers.
8298
08410482
DE
82992020-02-19 Doug Evans <dje@google.com>
8300
8301 PR rust/25535
8302 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8303 rust_enum_variant calculation.
8304
dfdeeca1
TT
83052020-02-19 Tom Tromey <tromey@adacore.com>
8306
8307 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8308
2ef5453b
TT
83092020-02-19 Tom Tromey <tromey@adacore.com>
8310
8311 * ada-lang.c (cache_symbol): Use obstack_strdup.
8312
9f1528a1
AB
83132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8314
8315 * configure: Regenerate.
8316
d3c22fa8
TT
83172020-02-19 Tom Tromey <tromey@adacore.com>
8318
8319 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8320 NULL check.
8321
bf84f706
MR
83222020-02-19 Maciej W. Rozycki <macro@wdc.com>
8323
8324 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8325
d1c9b20f
AB
83262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8329 if GDBSERVER is not defined.
8330 (riscv_tdesc_cache): Likewise, also store const target_desc.
8331 (STATIC_IN_GDB): Define.
8332 (riscv_create_target_description): Update declaration with
8333 STATIC_IN_GDB.
8334 (riscv_lookup_target_description): New function, only define if
8335 GDBSERVER is not defined.
8336 * arch/riscv.h (riscv_create_target_description): Declare only
8337 when GDBSERVER is defined.
8338 (riscv_lookup_target_description): New declaration when GDBSERVER
8339 is not defined.
8340 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8341 (riscv_linux_read_features): ...this, and return
8342 riscv_gdbarch_features instead of target_desc.
8343 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8344 (riscv_linux_read_description): Rename to...
8345 (riscv_linux_read_features): ...this.
8346 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8347 Update to use riscv_gdbarch_features and
8348 riscv_lookup_target_description.
8349 * riscv-tdep.c (riscv_find_default_target_description): Use
8350 riscv_lookup_target_description instead of
8351 riscv_create_target_description.
8352
373d7ac0
SM
83532020-02-18 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * valprint.c (generic_val_print_enum_1): When printing a flag
8356 enum with value 0 and there is no enumerator with value 0, print
8357 just "0" instead of "(unknown: 0x0)".
8358
b29a2df0
SM
83592020-02-18 Simon Marchi <simon.marchi@efficios.com>
8360
8361 * valprint.c (generic_val_print_enum_1): Print unknown part of
8362 flag enum in hex.
8363
6740f0cc
SM
83642020-02-18 Simon Marchi <simon.marchi@efficios.com>
8365
8366 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8367 flag enums to contain duplicate enumerators.
8368 * valprint.c (generic_val_print_enum_1): Update comment.
8369
edd45eb0
SM
83702020-02-18 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * dwarf2/read.c: Include "count-one-bits.h".
8373 (update_enumeration_type_from_children): If an enumerator has
8374 multiple bits set, don't treat the enumeration as a "flag enum".
8375 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8376 of flag enums have 0 or 1 bit set.
8377
6d0cf446
BE
83782020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8379
8380 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8381 conversion.
8382 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8383 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8384 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8385 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8386 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8387
7001c1b7
SM
83882020-02-18 Simon Marchi <simon.marchi@efficios.com>
8389
8390 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8391
fdb61c6c
SM
83922020-02-14 Simon Marchi <simon.marchi@efficios.com>
8393
8394 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8395 displaced_step_closure_up.
8396 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8397 (struct displaced_step_closure_up):
8398 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8399 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8400 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8401 Likewise.
8402 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8403 * gdbarch.c, gdbarch.h: Re-generate.
8404 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8405 displaced_step_closure_up.
8406 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8407 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8408 * infrun.h (displaced_step_closure_up): New type alias.
8409 (struct displaced_step_inferior_state) <step_closure>: Change
8410 type to displaced_step_closure_up.
8411 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8412 displaced_step_closure_up.
8413 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8414
a4a38eb4
TT
84152020-02-14 Tom Tromey <tom@tromey.com>
8416
8417 * minidebug.c (gnu_debug_key): New global.
8418 (find_separate_debug_file_in_section): Use it.
8419
e8217e61
SM
84202020-02-14 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8423 std::unique_ptr.
8424 * gdbarch.c: Re-generate.
8425 * gdbarch.h: Re-generate.
8426 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8427 change.
8428 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8429 type to std::unique_ptr.
8430 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8431 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8432 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8433 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8434 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8435 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8436 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8437 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8438 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8439
d8d83535
SM
84402020-02-14 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8443 std::unique_ptr.
8444 (displaced_step_clear): Rename to...
8445 (displaced_step_reset): ... this. Just call displaced->reset ().
8446 (displaced_step_clear_cleanup): Rename to...
8447 (displaced_step_reset_cleanup): ... this.
8448 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8449 (displaced_step_fixup): Likewise.
8450 (resume_1): Likewise.
8451 (handle_inferior_event): Restore child's memory before calling
8452 displaced_step_fixup on the parent.
8453 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8454 to std::unique_ptr.
8455 <step_closure>: Change type to std::unique_ptr.
8456
5f661e03
SM
84572020-02-14 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * arm-tdep.c: Include count-one-bits.h.
8460 (cleanup_block_store_pc): Use count_one_bits.
8461 (cleanup_block_load_pc): Use count_one_bits.
8462 (arm_copy_block_xfer): Use count_one_bits.
8463 (thumb2_copy_block_xfer): Use count_one_bits.
8464 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8465 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8466 (thumb_get_next_pcs_raw): Use count_one_bits.
8467 (arm_get_next_pcs_raw): Use count_one_bits_l.
8468 * arch/arm.c (bitcount): Remove.
8469 * arch/arm.h (bitcount): Remove.
8470
8084e579
TT
84712020-02-14 Tom Tromey <tromey@adacore.com>
8472
8473 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8474 Update.
8475 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8476 * dwarf2/loc.c (call_site_find_chain_1): Return
8477 unique_xmalloc_ptr.
8478 (call_site_find_chain): Likewise.
8479
258bf0ee
RB
84802020-02-14 Richard Biener <rguenther@suse.de>
8481
8482 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8483 on expression with division operators.
8484
f98a8458
AKS
84852020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8486
8487 * MAINTAINERS (Write After Approval): Adding myself.
8488
d1437c0e
TT
84892020-02-12 Tom Tromey <tom@tromey.com>
8490
8491 * event-loop.c (event_data, gdb_event, event_handler_func):
8492 Remove.
8493
3d4560f7
TT
84942020-02-12 Tom Tromey <tom@tromey.com>
8495
8496 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8497 (dwarf2_frame_objfile_data): Add comment.
8498 (find_comp_unit, set_comp_unit): New functions.
8499 (dwarf2_frame_find_fde): Use find_comp_unit.
8500 (dwarf2_build_frame_info): Use set_comp_unit.
8501
21982304
TT
85022020-02-12 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8505 (comp_unit): Don't initialize objfile.
8506 (execute_cfa_program): Add text_offset parameter.
8507 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8508 (dwarf2_frame_cache): Update.
8509 (dwarf2_build_frame_info): Don't set "objfile" member.
8510
4debb237
TT
85112020-02-12 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8514 (decode_frame_entry): Likewise.
8515 (dwarf2_build_frame_info): Update.
8516
0d404d44
TT
85172020-02-12 Tom Tromey <tom@tromey.com>
8518
8519 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8520 (decode_frame_entry_1): Use the comp_unit obstack.
8521
a7a3ae5c
TT
85222020-02-12 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2/frame.c (struct comp_unit): Add initializers and
8525 constructor.
8526 (dwarf2_frame_objfile_data): Store a comp_unit.
8527 (dwarf2_frame_find_fde): Update.
8528 (dwarf2_build_frame_info): Use "new".
8529
a9d65418
TT
85302020-02-12 Tom Tromey <tom@tromey.com>
8531
8532 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8533 (dwarf2_fde_table): Typedef for std::vector.
8534 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8535 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8536 (decode_frame_entry): Update.
8537 (dwarf2_build_frame_info): Use "new".
8538
7559c217
CB
85392020-02-12 Christian Biesinger <cbiesinger@google.com>
8540
8541 * arm-tdep.c (arm_gdbarch_init): Update.
8542 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8543 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8544 have_neon, is_m>: Change to bool.
8545
aeefc73c
CB
85462020-02-12 Christian Biesinger <cbiesinger@google.com>
8547
8548 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8549
d27b8e5f
TT
85502020-02-12 Tom Tromey <tom@tromey.com>
8551
8552 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8553
cd5900f3
HD
85542020-02-12 Hannes Domani <ssbssa@yahoo.de>
8555
8556 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8557 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8558
f056b22b
TT
85592020-02-11 Tom Tromey <tom@tromey.com>
8560
8561 * psymtab.h: Update comment.
8562
f92ff6b5
TT
85632020-02-11 Tom Tromey <tom@tromey.com>
8564
8565 * gdb_obstack.h (struct auto_obstack): Use
8566 DISABLE_COPY_AND_ASSIGN.
8567
3fd6912b
TT
85682020-02-11 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2/frame.h (struct objfile): Don't forward declare.
8571
69ed9b74
CB
85722020-02-11 Christian Biesinger <cbiesinger@google.com>
8573
8574 * cris-tdep.c (cris_supply_gregset): Change signature to match
8575 what struct regset expects.
8576 (cris_regset): New struct.
8577 (fetch_core_registers): Remove.
8578 (cris_iterate_over_regset_sections): New function.
8579 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8580 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8581
bda874f6
CB
85822020-02-11 Christian Biesinger <cbiesinger@google.com>
8583
8584 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8585 registers.
8586
754e1564
CB
85872020-02-11 Christian Biesinger <cbiesinger@google.com>
8588
8589 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8590
8ddd8e0e
SM
85912020-02-11 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * configure: Re-generate.
8594
898e7f60
SM
85952020-02-11 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * configure: Re-generate.
8598
58df732b
SM
85992020-02-11 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * acinclude: Update warning.m4 path.
8602 * warning.m4: Move to gdbsupport.
8603
da5bd37e
TT
86042020-02-11 Tom Tromey <tromey@adacore.com>
8605
8606 * remote.c (remote_console_output): Update.
8607 * printcmd.c (printf_command): Update.
8608 * event-loop.c (gdb_wait_for_event): Update.
8609 * linux-nat.c (sigchld_handler): Update.
8610 * remote-sim.c (gdb_os_write_stdout): Update.
8611 (gdb_os_flush_stdout): Update.
8612 (gdb_os_flush_stderr): Update.
8613 (gdb_os_write_stderr): Update.
8614 * exceptions.c (print_exception): Update.
8615 * remote-fileio.c (remote_fileio_func_read): Update.
8616 (remote_fileio_func_write): Update.
8617 * tui/tui.c (tui_enable): Update.
8618 * tui/tui-interp.c (tui_interp::init): Update.
8619 * utils.c (init_page_info): Update.
8620 (putchar_unfiltered, fputc_unfiltered): Update.
8621 (gdb_flush): Update.
8622 (emit_style_escape): Update.
8623 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8624 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8625 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8626 (stderr_file::write): Update.
8627 (stderr_file::puts): Update.
8628 * ui-file.h (ui_file_isatty, ui_file_write)
8629 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8630 (ui_file_puts): Don't declare.
8631
85f0dd3c
TV
86322020-02-10 Tom de Vries <tdevries@suse.de>
8633
8634 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8635 sentinel to char *.
8636
2e927613
TV
86372020-02-09 Tom de Vries <tdevries@suse.de>
8638
8639 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8640 filename if it matches "<artificial>".
8641
6bafc845
HD
86422020-02-09 Hannes Domani <ssbssa@yahoo.de>
8643
8644 * windows-tdep.c (struct enum_value_name): New struct.
8645 (create_enum): New function.
8646 (windows_get_siginfo_type): Create and use enum types.
8647
7928d571
HD
86482020-02-09 Hannes Domani <ssbssa@yahoo.de>
8649
8650 * NEWS: Mention $_siginfo support for Windows.
8651 * windows-nat.c (handle_exception): Set siginfo_er.
8652 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8653 (windows_xfer_siginfo): New function.
8654 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8655 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8656 (init_windows_gdbarch_data): New function.
8657 (get_windows_gdbarch_data): New function.
8658 (windows_get_siginfo_type): New function.
8659 (windows_init_abi): Register windows_get_siginfo_type.
8660 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8661
6751ebae
TT
86622020-02-08 Tom Tromey <tom@tromey.com>
8663
8664 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8665 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8666 <keep>: Declare method.
8667 <m_keep>: Remove member.
8668 <~cutu_reader>: Remove.
8669 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8670 (cutu_reader::cutu_reader): Update.
8671 (cutu_reader::keep): Rename from ~cutu_reader.
8672 (process_psymtab_comp_unit, build_type_psymtabs_1)
8673 (process_skeletonless_type_unit, load_partial_comp_unit)
8674 (load_full_comp_unit, dwarf2_read_addr_index)
8675 (read_signatured_type): Update.
8676
135f5437
TT
86772020-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8680 "want_partial_unit" parameter.
8681 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8682 Inline check for DW_TAG_partial_unit.
8683 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8684
9f66ff1c
TT
86852020-02-08 Tom Tromey <tom@tromey.com>
8686
8687 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8688 read.c.
8689 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8690 read.c.
8691
c8a7a66f
TT
86922020-02-08 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/read.c (read_address): Move to comp-unit.c.
8695 (dwarf2_rnglists_process, dwarf2_ranges_process)
8696 (read_attribute_value, dwarf_decode_lines_1)
8697 (var_decode_location, decode_locdesc): Update.
8698 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8699 read.c. Remove "cu" parameter.
8700 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8701 method.
8702
8266302d
TT
87032020-02-08 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8706 (read_indirect_line_string): Update.
8707 * dwarf2/comp-unit.c (read_offset): Remove.
8708 (read_comp_unit_head): Update.
8709 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8710 method.
8711 (read_offset): Don't declare.
8712
4057dfde
TT
87132020-02-08 Tom Tromey <tom@tromey.com>
8714
8715 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8716 * dwarf2/read.c (struct comp_unit_head): Move to
8717 dwarf2/comp-unit.h.
8718 (enum class rcuh_kind): Move to comp-unit.h.
8719 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8720 (read_comp_unit_head, error_check_comp_unit_head)
8721 (read_and_check_comp_unit_head): Move to comp-unit.c.
8722 (read_offset, dwarf_unit_type_name): Likewise.
8723 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8724 (cutu_reader::cutu_reader, read_call_site_scope)
8725 (find_partial_die, follow_die_offset): Update.
8726 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8727
24aa364d
TT
87282020-02-08 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/read.c (read_offset_1): Move to leb.c.
8731 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8732 (dwarf_decode_macro_bytes): Update.
8733 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8734 * dwarf2/leb.h (read_offset): Declare.
8735
2c7d5afc
TT
87362020-02-08 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2/read.c (dwarf2_section_size): Remove.
8739 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8740 Update.
8741 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8742
4075cb26
TT
87432020-02-08 Tom Tromey <tom@tromey.com>
8744
8745 * dwarf2/read.c (read_initial_length): Move to leb.c.
8746 * dwarf2/leb.h (read_initial_length): Declare.
8747 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8748 handle_nonstd parameter.
8749 * dwarf2/frame.c (read_initial_length): Remove.
8750 (decode_frame_entry_1): Update.
8751
09ba997f
TT
87522020-02-08 Tom Tromey <tom@tromey.com>
8753
8754 * dwarf2/loc.c (dwarf2_find_location_expression)
8755 (dwarf_evaluate_loc_desc::get_tls_address)
8756 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8757 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8758 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8759 (dwarf2_compile_property_to_c)
8760 (dwarf2_loc_desc_get_symbol_read_needs)
8761 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8762 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8763 (loclist_describe_location, loclist_tracepoint_var_ref)
8764 (loclist_generate_c_location): Update.
8765 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8766 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8767 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8768 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8769 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8770 (dwarf2_per_cu_data::addr_size)
8771 (dwarf2_per_cu_data::ref_addr_size)
8772 (dwarf2_per_cu_data::text_offset)
8773 (dwarf2_per_cu_data::addr_type): Now methods.
8774 (per_cu_header_read_in): Make per_cu "const".
8775 (dwarf2_version): Remove.
8776 (dwarf2_per_cu_data::int_type): Now a method.
8777 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8778 (set_die_type, read_array_type, read_subrange_index_type)
8779 (read_tag_string_type, read_subrange_type): Update.
8780 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8781 offset_size, ref_addr_size, text_offset, addr_type, version,
8782 objfile, int_type, addr_sized_int_type>: Declare methods.
8783
96c738c0
TT
87842020-02-08 Tom Tromey <tom@tromey.com>
8785
8786 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8787 Move earlier.
8788
8fdd972c
TT
87892020-02-08 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2/read.h (dwarf_line_debug): Declare.
8792 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8793 * dwarf2/read.c: Move line_header code to new files.
8794 (dwarf_line_debug): No longer static.
8795 * dwarf2/line-header.c: New file.
8796 * dwarf2/line-header.h: New file.
8797
03075812
TT
87982020-02-08 Tom Tromey <tom@tromey.com>
8799
8800 * dwarf2/read.c (struct line_header) <file_full_name,
8801 file_file_name>: Return unique_xmalloc_ptr.
8802 (line_header::file_file_name): Update.
8803 (line_header::file_full_name): Update.
8804 (dw2_get_file_names_reader): Update.
8805 (macro_start_file): Update.
8806
bb822404
TT
88072020-02-08 Tom Tromey <tom@tromey.com>
8808
8809 * dwarf2/read.c (struct line_header) <file_full_name,
8810 file_file_name>: Declare methods.
8811 (dw2_get_file_names_reader): Update.
8812 (file_file_name): Now a method.
8813 (file_full_name): Likewise.
8814 (macro_start_file): Update.
8815
009b64fc
TT
88162020-02-08 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/read.c (dwarf_always_disassemble)
8819 (show_dwarf_always_disassemble): Move to loc.c.
8820 (_initialize_dwarf2_read): Move "always-disassemble" registration
8821 to loc.c.
8822 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8823 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8824 static.
8825 (show_dwarf_always_disassemble): Move from read.c.
8826 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8827
5895093f
TT
88282020-02-08 Tom Tromey <tom@tromey.com>
8829
8830 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8831 (create_quick_file_names_table): Return htab_up.
8832 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8833 Update.
8834 * dwarf2/read.h (struct dwarf2_per_objfile)
8835 <quick_file_names_table>: Now htab_up.
8836
b3b32279
TT
88372020-02-08 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8840
1d33d811
TT
88412020-02-08 Tom Tromey <tom@tromey.com>
8842
8843 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8844 Rewrite.
8845 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8846 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8847 (abbrev_table::abbrev_table): No longer inline.
8848 (ABBREV_HASH_SIZE): Remove.
8849 (abbrev_table::m_abbrevs): Now an htab_up.
8850
86de1d91
TT
88512020-02-08 Tom Tromey <tom@tromey.com>
8852
8853 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8854 (cutu_reader): Update.
8855 (build_type_psymtabs_1): Update.
8856 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8857 (abbrev_table::alloc_abbrev): Update.
8858 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8859 (abbrev_table::read): New static method, renamed from
8860 abbrev_table_read_table.
8861 (abbrev_table::alloc_abbrev)
8862 (abbrev_table::add_abbrev): Now private.
8863 (abbrev_table::abbrev_table): Now private.
8864 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8865
0335378b
TT
88662020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8869 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8870 htab_up.
8871
48b490f2
TT
88722020-02-08 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8875 htab_up.
8876 (lookup_dwo_unit_in_dwp): Update.
8877 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8878 on obstack.
8879
bc68fb19
TT
88802020-02-08 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8883 obstack.
8884
d15acc42
TT
88852020-02-08 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8888 line_header_hash.
8889 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8890 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8891 Change type to htab_up.
8892
eaa5fa8b
TT
88932020-02-08 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8896 htab_up. Don't allocate on obstack.
8897 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8898 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8899 Change type to htab_up.
8900
b0b6a987
TT
89012020-02-08 Tom Tromey <tom@tromey.com>
8902
8903 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8904 Change type to htab_up.
8905 * dwarf2/read.c (create_signatured_type_table_from_index)
8906 (create_signatured_type_table_from_debug_names)
8907 (create_all_type_units, add_type_unit)
8908 (lookup_dwo_signatured_type, lookup_signatured_type)
8909 (process_skeletonless_type_unit): Update.
8910 (create_debug_type_hash_table, create_debug_types_hash_table):
8911 Change type of types_htab.
8912 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8913 htab_up. Don't allocate on obstack.
8914 (create_cus_hash_table): Change type of cus_htab parameter.
8915 (struct dwo_file) <cus, tus>: Now htab_up.
8916 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8917 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8918 (queue_and_load_all_dwo_tus): Update.
8919 * dwarf2/index-write.c (write_gdbindex): Update.
8920 (write_debug_names): Update.
8921
39856def
TT
89222020-02-08 Tom Tromey <tom@tromey.com>
8923
8924 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8925 dwarf2/read.c. Remove "next" member. Add constructor ntad
8926 destructor.
8927 (struct dwarf2_per_objfile) <queue>: New member.
8928 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8929 dwarf2/read.h.
8930 (dwarf2_queue, dwarf2_queue_tail): Remove.
8931 (class dwarf2_queue_guard): Add parameter to constructor. Use
8932 DISABLE_COPY_AND_ASSIGN.
8933 <m_per_objfile>: New member.
8934 <~dwarf2_queue_guard>: Rewrite.
8935 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8936 Update.
8937 (~dwarf2_queue_item): New.
8938
3e225074
TT
89392020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.c (struct die_info) <has_children>: New member.
8942 (dw2_get_file_names_reader): Remove has_children.
8943 (dw2_get_file_names): Update.
8944 (read_cutu_die_from_dwo): Remove has_children.
8945 (cutu_reader::init_tu_and_read_dwo_dies)
8946 (cutu_reader::cutu_reader): Update.
8947 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8948 Remove has_children.
8949 (build_type_psymtabs_1, process_skeletonless_type_unit)
8950 (load_partial_comp_unit, load_full_comp_unit): Update.
8951 (create_dwo_cu_reader): Remove has_children.
8952 (create_cus_hash_table, read_die_and_children): Update.
8953 (read_full_die_1,read_full_die): Remove has_children.
8954 (read_signatured_type): Update.
8955 (class cutu_reader) <has_children>: Remove.
8956
82ca8957
TT
89572020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/expr.c: Rename from dwarf2expr.c.
8960 * dwarf2/expr.h: Rename from dwarf2expr.h.
8961 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8962 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8963 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8964 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8965 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8966 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8967 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8968 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8969 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8970 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8971 * dwarf2/loc.c: Rename from dwarf2loc.c.
8972 * dwarf2/loc.h: Rename from dwarf2loc.h.
8973 * dwarf2/read.c: Rename from dwarf2read.c.
8974 * dwarf2/read.h: Rename from dwarf2read.h.
8975 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8976 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8977 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8978 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8979 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8980 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8981 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8982 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8983 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8984 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8985 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8986 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8987 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8988 Update.
8989 * Makefile.in (COMMON_SFILES): Update.
8990 (HFILES_NO_SRCDIR): Update.
8991
9e35d499
TT
89922020-02-08 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8995 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8996
1eba2311
TT
89972020-02-08 Tom Tromey <tom@tromey.com>
8998
8999 * dwarf2read.h (struct die_info): Don't declare.
9000
e41c2da2
TT
90012020-02-08 Tom Tromey <tom@tromey.com>
9002
9003 * dwarf2read.h (die_info_ptr): Remove typedef.
9004
4fc6c0d5
TT
90052020-02-08 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2read.c (read_call_site_scope)
9008 (handle_data_member_location, dwarf2_add_member_fn)
9009 (mark_common_block_symbol_computed, read_common_block)
9010 (attr_to_dynamic_prop, partial_die_info::read)
9011 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9012 (dwarf2_symbol_mark_computed, set_die_type): Update.
9013 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9014 method.
9015 (attr_form_is_block): Don't declare.
9016 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9017
cd6c91b4
TT
90182020-02-08 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2read.c (dwarf2_find_base_address, )
9021 (read_call_site_scope, rust_containing_type)
9022 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9023 (handle_data_member_location, dwarf2_add_member_fn)
9024 (get_alignment, read_structure_type, process_structure_scope)
9025 (mark_common_block_symbol_computed, read_common_block)
9026 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9027 (partial_die_info::read, read_attribute_value, new_symbol)
9028 (lookup_die_type, dwarf2_get_ref_die_offset)
9029 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9030 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9031 (dwarf2_symbol_mark_computed): Update.
9032 * dwarf2/attribute.h (struct attribute) <value_as_address,
9033 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9034 methods.
9035 (value_as_address, attr_form_is_section_offset)
9036 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9037 * dwarf2/attribute.c (attribute::value_as_address)
9038 (attribute::form_is_section_offset, attribute::form_is_constant)
9039 (attribute::form_is_ref): Now methods.
9040
162dce55
TT
90412020-02-08 Tom Tromey <tom@tromey.com>
9042
9043 * dwarf2read.c (struct attribute, DW_STRING)
9044 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9045 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9046 (attr_form_is_block, attr_form_is_section_offset)
9047 (attr_form_is_constant, attr_form_is_ref): Move.
9048 * dwarf2/attribute.h: New file.
9049 * dwarf2/attribute.c: New file, from dwarf2read.c.
9050 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9051
3054dd54
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9055 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9056 Move.
9057 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9058 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9059 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9060 abbrev.c.
9061 * dwarf2/abbrev.h: New file.
9062 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9063 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9064
96b79293
TT
90652020-02-08 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9068 (dwarf2_section_size, dwarf2_get_section_info)
9069 (create_signatured_type_table_from_debug_names)
9070 (create_addrmap_from_aranges, read_debug_names_from_section)
9071 (get_gdb_index_contents_from_section, read_comp_unit_head)
9072 (error_check_comp_unit_head, read_abbrev_offset)
9073 (create_debug_type_hash_table, init_cu_die_reader)
9074 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9075 (read_comp_units_from_section, create_cus_hash_table)
9076 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9077 (create_dwp_v2_section, dwarf2_rnglists_process)
9078 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9079 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9080 (read_indirect_string_from_dwz, read_addr_index_1)
9081 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9082 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9083 (fill_in_loclist_baton): Update.
9084 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9085 get_containing_section, get_bfd_owner, get_bfd_section,
9086 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9087 (dwarf2_read_section, get_section_name, get_section_file_name)
9088 (get_containing_section, get_section_bfd_owner)
9089 (get_section_bfd_section, get_section_name, get_section_file_name)
9090 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9091 declare.
9092 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9093 (dwarf2_section_info::get_bfd_owner)
9094 (dwarf2_section_info::get_bfd_section)
9095 (dwarf2_section_info::get_name)
9096 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9097 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9098 (dwarf2_section_info::read): Now methods.
9099 * dwarf-index-write.c (class debug_names): Update.
9100
2c86cff9
TT
91012020-02-08 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9104 Move to dwarf2/section.h.
9105 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9106 (get_section_bfd_section, get_section_name)
9107 (get_section_file_name, get_section_id, get_section_flags)
9108 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9109 dwarf2/section.c.
9110 * dwarf2/section.h: New file.
9111 * dwarf2/section.c: New file, from dwarf2read.c.
9112 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9113
f4382c45
TT
91142020-02-08 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9117 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9118 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9119 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9120 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9121 * dwarf2/leb.h: New file, from dwarf2read.c.
9122 * dwarf2/leb.c: New file, from dwarf2read.c.
9123 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9124 Remove.
9125 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9126 (COMMON_SFILES): Add dwarf2/leb.c.
9127
01840b7a
JB
91282020-02-08 Joel Brobecker <brobecker@adacore.com>
9129
9130 GDB 9.1 released.
9131
dfcb27e4
IB
91322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9133
9134 PR gdb/25190:
aac66a4c
SM
9135 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9136 * gdb/remote.c (remote_console_output): Update.
9137 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9138 (ui_file_puts): ...this.
9139 * gdb/ui-file.h (ui_file_puts): Add declaration.
9140 * gdb/utils.c (emit_style_escape): Update.
9141 (flush_wrap_buffer): Update.
9142 (fputs_maybe_filtered): Update.
9143 (fputs_unfiltered): Add function.
dfcb27e4 9144
faa17681
IB
91452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9146
aac66a4c
SM
9147 * gdb/event-loop.c (gdb_wait_for_event): Update.
9148 * gdb/printcmd.c (printf_command): Update.
9149 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9150 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9151 (gdb_os_flush_stderr): Update.
9152 * gdb/remote.c (remote_console_output): Update.
9153 * gdb/ui-file.c (gdb_flush): Rename to...
9154 (ui_file_flush): ...this.
9155 (stderr_file::write): Update.
9156 (stderr_file::puts): Update.
9157 * gdb/ui-file.h (gdb_flush): Rename to...
9158 (ui_file_flush): ...this.
9159 * gdb/utils.c (gdb_flush): Add function.
9160 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9161
5abbbe1d
TT
91622020-02-07 Tom Tromey <tromey@adacore.com>
9163
9164 PR breakpoints/24915:
9165 * source.c (find_and_open_source): Do not check basenames_may_differ.
9166
919adfe8
TT
91672020-02-07 Tom Tromey <tom@tromey.com>
9168
9169 * README: Update gdbserver documentation.
9170 * gdbserver: Move to top level.
9171 * configure.tgt (build_gdbserver): Remove.
9172 * configure.ac: Remove --enable-gdbserver.
9173 * configure: Rebuild.
9174 * Makefile.in (distclean): Don't mention gdbserver.
9175
1d5d29e7
SV
91762020-02-06 Shahab Vahedi <shahab@synopsys.com>
9177
9178 * source-cache.c (source_cache::ensure): Surround
9179 get_plain_source_lines with a try/catch.
9180 (source_cache::get_line_charpos): Get rid of try/catch
9181 and only check for the return value of "ensure".
9182 * tui/tui-source.c (tui_source_window::set_contents):
9183 Simplify "nlines" calculation.
9184
6eb1129c
SV
91852020-02-06 Shahab Vahedi <shahab@synopsys.com>
9186
9187 * MAINTAINERS (Write After Approval): Add myself.
9188
c6a42d11
CB
91892020-02-05 Christian Biesinger <cbiesinger@google.com>
9190
9191 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9192 function call.
9193
c8ecdda6
CB
91942020-02-05 Christian Biesinger <cbiesinger@google.com>
9195
9196 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9197
f6480e70
MR
91982020-02-05 Maciej W. Rozycki <macro@wdc.com>
9199
9200 * nat/riscv-linux-tdesc.h: New file.
9201 * nat/riscv-linux-tdesc.c: New file, taking code from...
9202 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9203 ... here.
9204 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9205 NATDEPFILES.
9206
dcc9fbc6
AB
92072020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9208
9209 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9210 we don't set the fake simulator ptid to the null_ptid.
9211
719546c4
SM
92122020-02-03 Simon Marchi <simon.marchi@efficios.com>
9213
9214 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9215 * gdbthread.h (class thread_info) <resumed>: Likewise.
9216 * infrun.c (resume_1): Likewise.
9217 (proceed): Likewise.
9218 (infrun_thread_stop_requested): Likewise.
9219 (stop_all_threads): Likewise.
9220 (handle_inferior_event): Likewise.
9221 (restart_threads): Likewise.
9222 (finish_step_over): Likewise.
9223 (keep_going_stepped_thread): Likewise.
9224 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9225 (linux_handle_extended_wait): Likewise.
9226 * record-btrace.c (get_thread_current_frame_id): Likewise.
9227 * record-full.c (record_full_wait_1): Likewise.
9228 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9229 * target.c (target_resume): Likewise.
9230 * thread.c (set_running_thread): Likewise.
9231
e409c542
AKS
92322020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9233
9234 * f-valprint.c (f77_print_array_1): Changed datatype of index
9235 variable to LONGEST from int to enable it to contain bound
9236 values correctly.
9237
ee98c0da
MR
92382020-02-03 Maciej W. Rozycki <macro@wdc.com>
9239
9240 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9241 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9242 offsets according to FLEN determined.
9243 (riscv_linux_nat_target::read_description): Determine FLEN
9244 dynamically.
9245 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9246 according to FLEN determined.
9247 (riscv_linux_nat_target::store_registers): Likewise.
9248
aa66aac4
SV
92492020-02-01 Shahab Vahedi <shahab@synopsys.com>
9250
9251 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9252 when reg->group is empty and reggroup is not.
9253
fd9faca8
TT
92542020-01-31 Tom Tromey <tromey@adacore.com>
9255
9256 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9257 Call beneath target's mourn_inferior after unpushing.
9258
42330a68
AB
92592020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9260
9261 PR tui/9765
9262 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9263 have enough lines to fill the screen, still return the lowest
9264 address we found.
9265
7a27a45b
AB
92662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9267
9268 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9269 '-', '<', and '>' commands.
9270
c47f70e2
PA
92712020-01-29 Pedro Alves <palves@redhat.com>
9272 Sergio Durigan Junior <sergiodj@redhat.com>
9273
9274 * infcmd.c (construct_inferior_arguments): Assert that
9275 'argc' is greater than 0.
9276
5133a315
LM
92772020-01-29 Luis Machado <luis.machado@linaro.org>
9278
9279 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9280 (BRK_INSN_MASK): Define to 0xd4200000.
9281 (aarch64_program_breakpoint_here_p): New function.
9282 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9283 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9284 breakpoint.c.
9285 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9286 breakpoint.h
9287 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9288 call gdbarch_program_breakpoint_here_p.
9289 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9290 default_program_breakpoint_here_p, changed return type to bool and
9291 simplified.
9292 * breakpoint.h (program_breakpoint_here): Moved prototype to
9293 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9294 return type to bool.
9295 * gdbarch.c: Regenerate.
9296 * gdbarch.h: Regenerate.
9297 * gdbarch.sh (program_breakpoint_here_p): New method.
9298 * infrun.c (handle_signal_stop): Call
9299 gdbarch_program_breakpoint_here_p.
9300
168f8c6b
TT
93012020-01-26 Tom Tromey <tom@tromey.com>
9302
9303 * ctfread.c (struct ctf_fp_info): Reindent.
9304 (_initialize_ctfread): Remove.
9305
128a391f
TT
93062020-01-26 Tom Tromey <tom@tromey.com>
9307
9308 * psymtab.c (partial_map_expand_apply)
9309 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9310 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9311 (psym_print_stats, psym_expand_symtabs_for_function)
9312 (psym_map_symbol_filenames, psym_map_matching_symbols)
9313 (psym_expand_symtabs_matching)
9314 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9315 (maintenance_check_psymtabs): Use new methods.
9316 * psympriv.h (struct partial_symtab) <readin_p,
9317 get_compunit_symtab>: New methods.
9318 <readin, compunit_symtab>: Remove members.
9319 (struct standard_psymtab): New.
9320 (struct legacy_psymtab): Derive from standard_psymtab.
9321 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9322 standard_psymtab.
9323 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9324
0494dbec
TT
93252020-01-26 Tom Tromey <tom@tromey.com>
9326
9327 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9328 read_dependencies. Add assert.
9329 * psymtab.c (partial_symtab::read_dependencies): New method.
9330 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9331 method.
9332 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9333 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9334 read_dependencies.
9335 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9336 Add assert.
9337
8566b89b
TT
93382020-01-26 Tom Tromey <tom@tromey.com>
9339
9340 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9341 Call expand_psymtab.
9342 (xcoff_read_symtab): Call expand_psymtab.
9343 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9344 legacy_expand_psymtab.
9345 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9346 method.
9347 (struct legacy_psymtab) <expand_psymtab>: Implement.
9348 <legacy_expand_psymtab>: New member.
9349 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9350 (parse_partial_symbols): Set legacy_expand_psymtab.
9351 (psymtab_to_symtab_1): Change argument order. Call
9352 expand_psymtab.
9353 (new_psymtab): Set legacy_expand_psymtab.
9354 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9355 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9356 expand_psymtab.
9357 (dwarf2_psymtab::expand_psymtab): Rename from
9358 psymtab_to_symtab_1. Call expand_psymtab.
9359 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9360 (dbx_end_psymtab): Likewise.
9361 (dbx_psymtab_to_symtab_1): Change argument order. Call
9362 expand_psymtab.
9363 (dbx_read_symtab): Call expand_psymtab.
9364 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9365 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9366 (ctf_psymtab::read_symtab): Call expand_psymtab.
9367
077cbab2
TT
93682020-01-26 Tom Tromey <tom@tromey.com>
9369
9370 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9371 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9372 messages.
9373 * mdebugread.c (mdebug_read_symtab): Remove prints.
9374 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9375 assert.
9376 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9377
891813be
TT
93782020-01-26 Tom Tromey <tom@tromey.com>
9379
9380 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9381 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9382 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9383 legacy_symtab.
9384 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9385 * psymtab.c (psymtab_to_symtab): Call method.
9386 (dump_psymtab): Update.
9387 * psympriv.h (struct partial_symtab): Add virtual destructor.
9388 <read_symtab>: New method.
9389 (struct legacy_symtab): New.
9390 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9391 (struct pst_map) <pst>: Now a legacy_psymtab.
9392 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9393 (new_psymtab): Use legacy_psymtab.
9394 * dwarf2read.h (struct dwarf2_psymtab): New.
9395 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9396 * dwarf2read.c (dwarf2_create_include_psymtab)
9397 (dwarf2_build_include_psymtabs, create_type_unit_group)
9398 (create_partial_symtab, process_psymtab_comp_unit_reader)
9399 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9400 (set_partial_user): Use dwarf2_psymtab.
9401 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9402 (psymtab_to_symtab_1, process_full_comp_unit)
9403 (process_full_type_unit, dwarf2_ranges_read)
9404 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9405 (dwarf_decode_lines): Use dwarf2_psymtab.
9406 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9407 (add_address_entry_worker, write_one_signatured_type)
9408 (recursively_count_psymbols, recursively_write_psymbols)
9409 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9410 (write_debug_names): Likewise.
9411 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9412 <pst>: Now a legacy_psymtab.
9413 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9414 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9415 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9416 * ctfread.c (struct ctf_psymtab): New.
9417 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9418 ctf_psymtab.
9419 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9420 (create_partial_symtab): Return a ctf_psymtab.
9421 (scan_partial_symbols): Update.
9422
c3693a1d
TT
94232020-01-26 Tom Tromey <tom@tromey.com>
9424
9425 * xcoffread.c (xcoff_start_psymtab): Use new.
9426 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9427 renamed from start_psymtab_common.
9428 * psympriv.h (struct partial_symtab): Add new constructor.
9429 (start_psymtab_common): Don't declare.
9430 * mdebugread.c (parse_partial_symbols): Use new.
9431 * dwarf2read.c (create_partial_symtab): Use new.
9432 * dbxread.c (start_psymtab): Use new.
9433 * ctfread.c (create_partial_symtab): Use new.
9434
32caafd0
TT
94352020-01-26 Tom Tromey <tom@tromey.com>
9436
9437 * xcoffread.c (xcoff_end_psymtab): Use new.
9438 * psymtab.c (start_psymtab_common): Use new.
9439 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9440 Update.
9441 * psympriv.h (struct partial_symtab): Add parameters to
9442 constructor. Don't inline.
9443 (allocate_psymtab): Don't declare.
9444 * mdebugread.c (new_psymtab): Use new.
9445 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9446 * dbxread.c (dbx_end_psymtab): Use new.
9447
abaa2f23
TT
94482020-01-26 Tom Tromey <tom@tromey.com>
9449
9450 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9451 allocate_psymtab. Update documentation.
9452 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9453 allocate_psymtab. Do not use new.
9454 (allocate_psymtab): Use new. Update.
9455
6d94535f
TT
94562020-01-26 Tom Tromey <tom@tromey.com>
9457
9458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9459 * psymtab.c (psym_print_stats): Update.
9460 * psympriv.h (struct partial_symtab) <readin,
9461 psymtabs_addrmap_supported, anonymous>: Now bool.
9462 * mdebugread.c (psymtab_to_symtab_1): Update.
9463 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9464 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9465 (process_full_comp_unit, process_full_type_unit): Update.
9466 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9467 * ctfread.c (psymtab_to_symtab): Update.
9468
6f17252b
TT
94692020-01-26 Tom Tromey <tom@tromey.com>
9470
9471 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9472 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9473 * psymtab.c (psymtab_storage): Delete psymtabs.
9474 (psymtab_storage::allocate_psymtab): Use new.
9475 (psymtab_storage::discard_psymtab): Use delete.
9476 * psympriv.h (struct partial_symtab): Add constructor and
9477 initializers.
9478
f6f1cebc
TT
94792020-01-26 Tom Tromey <tom@tromey.com>
9480
9481 * machoread.c: Do not include psympriv.h.
9482
e47e48f6
PW
94832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9484
9485 * NEWS: Mention the new option and the set/show commands.
9486
a2fedca9
PW
94872020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9488
9489 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9490 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9491 (validate_exec_file): New variables, enums, functions.
9492 (exec_file_locate_attach, print_section_info): Style the filenames.
9493 (_initialize_exec): Install show_exec_file_mismatch_command and
9494 set_exec_file_mismatch_command.
9495 * gdbcore.h (validate_exec_file): Declare.
9496 * infcmd.c (attach_command): Call validate_exec_file.
9497 * remote.c ( remote_target::remote_add_inferior): Likewise.
9498
7ffa82e1
AB
94992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9500
9501 * frame.c (find_frame_sal): Move call to get_next_frame into more
9502 inner scope.
9503 * inline-frame.c (inilne_state) <inline_state>: Update argument
9504 types.
9505 (inilne_state) <skipped_symbol>: Rename to...
9506 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9507 (skip_inline_frames): Build vector of skipped symbols and use this
9508 to reate the inline_state.
9509 (inline_skipped_symbol): Add a comment and some assertions, fetch
9510 skipped symbol from the list.
9511
3d92a3e3
AB
95122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * buildsym.c (lte_is_less_than): Delete.
9515 (buildsym_compunit::end_symtab_with_blockvector): Create local
9516 lambda function to sort line table entries, and use
9517 std::stable_sort instead of std::sort.
9518 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9519 markers when looking for a previous line.
9520
94a72be7
AB
95212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * dwarf2read.c (lnp_state_machine::record_line): Include
9524 end_sequence parameter in debug print out. Record the line if we
9525 are at an end_sequence marker even if it's not the start of a
9526 statement.
9527 * symmisc.c (maintenance_print_one_line_table): Print end of
9528 sequence markers with 'END' not '0'.
9529
53af73bf
PA
95302020-01-24 Pedro Alves <palves@redhat.com>
9531
9532 PR gdb/25410
9533 * thread.c (scoped_restore_current_thread::restore): Use
9534 switch_to_inferior_no_thread.
9535 * exec.c: Include "progspace-and-thread.h".
9536 (add_target_sections, remove_target_sections):
9537 scoped_restore_current_pspace_and_thread instead of
9538 scoped_restore_current_thread.
9539 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9540 and aspace to the inferior before calling clone_program_space.
9541 Remove stale comment.
9542
3050c6f4
CB
95432020-01-24 Christian Biesinger <cbiesinger@google.com>
9544
9545 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9546 (arm_netbsd_nat_target::fetch_registers): ...this.
9547 (arm_nbsd_nat_target::store_registers): Rename to...
9548 (arm_netbsd_nat_target::store_registers): ...this.
9549
73685c7e
CB
95502020-01-24 Christian Biesinger <cbiesinger@google.com>
9551
9552 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9553 register_t.
9554
89203d40
CB
95552020-01-24 Christian Biesinger <cbiesinger@google.com>
9556
9557 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9558 Update comment.
9559 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9560 Likewise.
9561 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9562 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9563 the correct replacement (iterate_over_regset_sections).
9564 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9565 Update comment.
9566
1ba1ac88
AB
95672020-01-24 Graham Markall <graham.markall@embecosm.com>
9568
9569 PR gdb/23718
9570 * gdb/python/python.c (execute_gdb_command): Call
9571 async_enable_stdin in catch block.
9572
f3364a6d
AB
95732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9576 SWITCH_THRU_ALL_UIS.
9577
733d0a67
AB
95782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9579
9580 PR tui/9765
9581 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9582 comment, add extra parameter, and update to store previous symbol
9583 when appropriate.
9584 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9585 add extra parameter.
9586 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9587 remove unneeded parameter, add try/catch around gdb_print_insn,
9588 rewrite to add items to asm_lines vector.
9589 (tui_find_backward_disassembly_start_address): New function.
9590 (tui_find_disassembly_address): Updated throughout.
9591 (tui_disasm_window::set_contents): Update for changes to
9592 tui_disassemble.
9593 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9594 number of lines to scroll.
9595
b3b3bada
SM
95962020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9599 (SECT_OFF_DATA): Likewise.
9600 (SECT_OFF_RODATA): Likewise.
9601 (SECT_OFF_TEXT): Likewise.
9602 (SECT_OFF_BSS): Likewise.
9603 (struct objfile) <text_section_offset, data_section_offset>: New
9604 methods.
9605 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9606 objfile::text_section_offset.
9607 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9608 * coffread.c (coff_symtab_read): Likewise.
9609 (enter_linenos): Likewise.
9610 (process_coff_symbol): Likewise.
9611 * ctfread.c (get_objfile_text_range): Likewise.
9612 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9613 Use objfile::data_section_offset.
9614 * dwarf2-frame.c (execute_cfa_program): Use
9615 objfile::text_section_offset.
9616 (dwarf2_frame_find_fde): Likewise.
9617 * dwarf2read.c (create_addrmap_from_index): Likewise.
9618 (create_addrmap_from_aranges): Likewise.
9619 (dw2_find_pc_sect_compunit_symtab): Likewise.
9620 (process_psymtab_comp_unit_reader): Likewise.
9621 (add_partial_symbol): Likewise.
9622 (add_partial_subprogram): Likewise.
9623 (process_full_comp_unit): Likewise.
9624 (read_file_scope): Likewise.
9625 (read_func_scope): Likewise.
9626 (read_lexical_block_scope): Likewise.
9627 (read_call_site_scope): Likewise.
9628 (dwarf2_rnglists_process): Likewise.
9629 (dwarf2_ranges_process): Likewise.
9630 (dwarf2_ranges_read): Likewise.
9631 (dwarf_decode_lines_1): Likewise.
9632 (new_symbol): Likewise.
9633 (dwarf2_fetch_die_loc_sect_off): Likewise.
9634 (dwarf2_per_cu_text_offset): Likewise.
9635 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9636 * hppa-tdep.c (read_unwind_info): Likewise.
9637 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9638 * psympriv.h (struct partial_symtab): Likewise.
9639 * psymtab.c (find_pc_sect_psymtab): Likewise.
9640 * solib-svr4.c (enable_break): Likewise.
9641 * stap-probe.c (relocate_address): Use
9642 objfile::data_section_offset.
9643 * xcoffread.c (enter_line_range): Use
9644 objfile::text_section_offset.
9645 (read_xcoff_symtab): Likewise.
9646
ab53f382
SM
96472020-01-23 Simon Marchi <simon.marchi@efficios.com>
9648
9649 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9650 declaration to narrower scopes.
9651
e7eee665
SM
96522020-01-23 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * darwin-nat.h (struct darwin_exception_msg, enum
9655 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9656 Move up.
9657 (class darwin_nat_target) <wait_1, check_new_threads,
9658 decode_exception_message, decode_message, stop_inferior,
9659 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9660 * darwin-nat.c (darwin_check_new_threads): Rename to...
9661 (darwin_nat_target::check_new_threads): ... this.
9662 (darwin_suspend_inferior_it): Remove.
9663 (darwin_decode_exception_message): Rename to...
9664 (darwin_nat_target::decode_exception_message): ... this.
9665 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9666 (darwin_decode_message): Rename to...
9667 (darwin_nat_target::decode_message): ... this.
9668 (cancel_breakpoint): Rename to...
9669 (darwin_nat_target::cancel_breakpoint): ... this.
9670 (darwin_wait): Rename to...
9671 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9672 instead of iterate_over_inferiors.
9673 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9674 (darwin_stop_inferior): Rename to...
9675 (darwin_nat_target::stop_inferior): ... this.
9676 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9677 (darwin_init_thread_list): Rename to...
9678 (darwin_nat_target::init_thread_list): ... this.
9679 (darwin_ptrace_him): Rename to...
9680 (darwin_nat_target::ptrace_him): ... this.
9681 (darwin_nat_target::create_inferior): Pass lambda function to
9682 fork_inferior.
9683 (darwin_nat_target::detach): Call stop_inferior instead of
9684 darwin_stop_inferior.
9685 * fork-inferior.h (fork_inferior): Change init_trace_fun
9686 parameter to gdb::function_view.
9687 * fork-inferior.c (fork_inferior): Likewise.
9688
c162ed3e
HD
96892020-01-23 Hannes Domani <ssbssa@yahoo.de>
9690
9691 * i386-cygwin-tdep.c (core_process_module_section): Update.
9692 * windows-nat.c (struct lm_info_windows): Add text_offset.
9693 (windows_xfer_shared_libraries): Update.
9694 * windows-tdep.c (windows_xfer_shared_library):
9695 Add text_offset_cached argument.
9696 * windows-tdep.h (windows_xfer_shared_library): Update.
9697
a1237872
SM
96982020-01-21 Simon Marchi <simon.marchi@efficios.com>
9699
9700 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9701
b3ee6dd9
SM
97022020-01-21 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9705 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9706 replace with range-based for.
9707 (gdbsim_interrupt_inferior): Remove.
9708 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9709 with a range-based for. Inline code from
9710 gdbsim_interrupt_inferior.
9711
f9fac3c8
SM
97122020-01-21 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * infrun.c (proceed): Fix indentation.
9715
f6474de9
TT
97162020-01-21 Tom Tromey <tromey@adacore.com>
9717
9718 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9719 * python/python.c (python_extension_ops): Update.
9720 (gdbpy_colorize): New function.
9721 * python/lib/gdb/__init__.py (colorize): New function.
9722 * extension.h (ext_lang_colorize): Declare.
9723 * extension.c (ext_lang_colorize): New function.
9724 * extension-priv.h (struct extension_language_ops) <colorize>: New
9725 member.
9726 * cli/cli-style.c (_initialize_cli_style): Update help text.
9727
f0c702d4
LM
97282020-01-21 Luis Machado <luis.machado@linaro.org>
9729
9730 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9731 <cond>: Change type to bool.
9732 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9733 (aarch64_displaced_step_cb): Likewise.
9734 (aarch64_displaced_step_tb): Likewise.
9735
1ab139e5
LM
97362020-01-21 Luis Machado <luis.machado@linaro.org>
9737
9738 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9739 output.
9740
0c271889
LM
97412020-01-21 Luis Machado <luis.machado@linaro.org>
9742
9743 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9744 <pc_adjust>: Adjust the documentation.
9745 (aarch64_displaced_step_fixup): Check if PC really moved before
9746 adjusting it.
9747
4d89c1c7
TT
97482020-01-19 Tom Tromey <tom@tromey.com>
9749
9750 * disasm.c (~gdb_disassembler): New destructor.
9751 (gdb_buffered_insn_length): Call disassemble_free_target.
9752 * disasm.h (class gdb_disassembler): Declare destructor. Use
9753 DISABLE_COPY_AND_ASSIGN.
9754
c0ab21c2
TT
97552020-01-19 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9758 (die_reader_func_ftype): Remove.
9759 (cutu_reader): New class.
9760 (dw2_get_file_names_reader): Remove "data" parameter.
9761 (dw2_get_file_names): Use cutu_reader.
9762 (create_debug_type_hash_table): Update.
9763 (read_cutu_die_from_dwo): Update comment.
9764 (lookup_dwo_unit): Add dwo_name parameter.
9765 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9766 die_reader_func_ftype and data parameters.
9767 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9768 Remove die_reader_func_ftype and data parameters.
9769 (~cutu_reader): New; from init_cutu_and_read_dies.
9770 (cutu_reader::cutu_reader): Rename from
9771 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9772 and data parameters.
9773 (init_cutu_and_read_dies_simple): Remove.
9774 (struct process_psymtab_comp_unit_data): Remove.
9775 (process_psymtab_comp_unit_reader): Remove data parameter; add
9776 want_partial_unit and pretend_language parameters.
9777 (process_psymtab_comp_unit): Use cutu_reader.
9778 (build_type_psymtabs_reader): Remove data parameter.
9779 (build_type_psymtabs_1): Use cutu_reader.
9780 (process_skeletonless_type_unit): Likewise.
9781 (load_partial_comp_unit_reader): Remove.
9782 (load_partial_comp_unit): Use cutu_reader.
9783 (load_full_comp_unit_reader): Remove.
9784 (load_full_comp_unit): Use cutu_reader.
9785 (struct create_dwo_cu_data): Remove.
9786 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9787 dwo_unit parameters.
9788 (create_cus_hash_table): Use cutu_reader.
9789 (struct dwarf2_read_addr_index_data): Remove.
9790 (dwarf2_read_addr_index_reader): Remove.
9791 (dwarf2_read_addr_index): Use cutu_reader.
9792 (read_signatured_type_reader): Remove.
9793 (read_signatured_type): Use cutu_reader.
9794
45bbae5c
TT
97952020-01-19 Tom Tromey <tom@tromey.com>
9796
9797 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9798 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9799 (tui_wrefresh): Declare.
9800 * tui/tui-wingeneral.c (suppress_output): New global.
9801 (tui_suppress_output, ~tui_suppress_output): New constructor and
9802 destructor.
9803 (tui_wrefresh): New function.
9804 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9805 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9806 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9807 method.
9808 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9809 tui_wrefresh.
9810 (tui_data_window::no_refresh): New method.
9811 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9812 (tui_reg_command): Use tui_suppress_output
9813 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9814 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9815 method.
9816 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9817
4f13c1c0
TT
98182020-01-19 Tom Tromey <tom@tromey.com>
9819
9820 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9821 Handle case where symtab is null.
9822
fa47e446
SM
98232020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9824
9825 * linux-fork.c (one_fork_p): Simplify.
9826
26f42329
SM
98272020-01-17 Simon Marchi <simon.marchi@efficios.com>
9828
9829 * top.c (struct qt_args): Remove.
9830 (kill_or_detach): Change return type to void, replace `void *`
9831 parameter with a proper one.
9832 (print_inferior_quit_action): Likewise.
9833 (quit_confirm): Use range-based for loop to iterate over inferiors.
9834 (quit_force): Likewise.
9835
a9ac81b1
SM
98362020-01-17 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9839 `void *` parameter with proper parameters.
9840 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9841 (print_one_inferior): Change return type to void, replace `void *`
9842 parameter with proper parameters.
9843 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9844 inferiors.
9845 (get_other_inferior): Remove.
9846 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9847 inferiors.
9848
788eca49
SM
98492020-01-17 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * mi/mi-interp.c (report_initial_inferior): Remove.
9852 (mi_interp::init): Use range-based for to iterate over inferiors.
9853
d9bc85b6
SM
98542020-01-17 Simon Marchi <simon.marchi@efficios.com>
9855
9856 * python/py-inferior.c (build_inferior_list): Remove.
9857 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9858
40c94099
CB
98592020-01-16 Christian Biesinger <cbiesinger@google.com>
9860
9861 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9862 (btrace_stitch_trace): Likewise.
9863 * charset.c (intermediate_encoding): Likewise (vaild).
9864 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9865 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9866 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9867
e0cdfe3c
HD
98682020-01-16 Hannes Domani <ssbssa@yahoo.de>
9869
9870 * windows-tdep.c (windows_get_tlb_type):
9871 Add rtl_user_process_parameters type.
9872
790f1718 98732020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9874 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9875
9876 PR build/24805
9877 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9878 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9879 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9880 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9881 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9882 (ps_plog): Redeclare exported functions with default visibility.
9883
3112ed97
NA
98842020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9885
9886 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9887 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9888
8dc3273e
SM
98892020-01-15 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * infcmd.c (post_create_inferior): Use get_thread_regcache
9892 instead of get_current_regcache.
9893
ff47f4f0
TT
98942020-01-14 Tom Tromey <tom@tromey.com>
9895
9896 PR symtab/12535:
9897 * python/python.c (gdbpy_decode_line): Treat empty string the same
9898 as no argument.
9899
975f45b7
TT
99002020-01-14 Tom Tromey <tom@tromey.com>
9901
9902 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9903
25e57356
TT
99042020-01-14 Tom Tromey <tom@tromey.com>
9905
9906 * nat/linux-btrace.c: Don't include <config.h>.
9907 * nat/linux-ptrace.c: Don't include <config.h>.
9908 * nat/x86-linux-dregs.c: Don't include <config.h>.
9909
05ea2a05
TT
99102020-01-14 Tom Tromey <tom@tromey.com>
9911
9912 * configure: Rebuild.
9913 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9914
01027315
TT
99152020-01-14 Tom Tromey <tom@tromey.com>
9916
9917 * nat/x86-linux-dregs.c: Include configh.h.
9918 * nat/linux-ptrace.c: Include configh.h.
9919 * nat/linux-btrace.c: Include configh.h.
9920 * defs.h: Include config.h, bfd.h.
9921 * configure.ac: Don't source common.host.
9922 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9923 * configure: Rebuild.
9924 * acinclude.m4: Update path.
9925 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9926 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9927 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9928 (CLIBS): Add LIBSUPPORT.
9929 (CDEPS): Likewise.
9930 (COMMON_SFILES): Remove gdbsupport files.
9931 (HFILES_NO_SRCDIR): Likewise.
9932 (stamp-version): Update path to create-version.sh.
9933 (ALLDEPFILES): Remove gdbsupport files.
9934
b2ceabe8
TT
99352020-01-14 Tom Tromey <tom@tromey.com>
9936
9937 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9938 USE_WIN32API when needed.
9939 * configure.ac (USE_WIN32API): Don't define.
9940 (WIN32LIBS): Use WIN32APILIBS.
9941 * configure: Rebuild.
9942
25c51f71
TT
99432020-01-14 Tom Tromey <tom@tromey.com>
9944
9945 * configure: Rebuild.
9946 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9947
717c684d
BE
99482020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9949
9950 * skip.c (skip_function_command): Make skip w/o arguments use the
9951 name of the inlined function if pc is inside any inlined function.
9952
7da6a5b9
LM
99532020-01-14 Luis Machado <luis.machado@linaro.org>
9954
9955 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9956 * infrun.c (resume_1): Likewise.
9957 (handle_inferior_event): Remove stale comment.
9958 * linux-nat.c (linux_nat_target::resume): Update comments.
9959 (save_stop_reason): Likewise.
9960 (linux_nat_filter_event): Likewise.
9961 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9962
44e4c775
AB
99632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 * elfread.c (record_minimal_symbol): Set section index to 0 for
9966 non-allocatable sections.
9967
18a8505e
AT
9968
99692020-01-13 Ali Tamur <tamur@google.com>
9970
9971 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9972 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9973 to gdb::optional. Update comments.
9974 (dwo_file): Update comments.
9975 (read_attribute): Update API to take an additional out parameter,
9976 need_reprocess. This is used to mark attributes that need other
9977 attributes (e.g. str_offsets_base) for correct computation which may not
9978 have been read yet.
9979 (read_attribute_reprocess): New function declaration.
9980 (read_addr_index): Likewise.
9981 (read_dwo_str_index): Likewise.
9982 (read_stub_str_index): Likewise.
9983 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9984 (lookup_addr_base): New function definition.
9985 (lookup_ranges_base): Likewise.
9986 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9987 lookup_ranges_base.
9988 (init_cutu_and_read_dies): Update comments.
9989 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9990 unit. This is used to inherit parent's str_offsets_base and addr_base.
9991 Update comments.
9992 (init_cutu_and_read_dies_simple): Reflect API changes.
9993 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9994 (create_cus_hash_table): Change API to take parent compile unit.
9995 Reflect API changes.
9996 (open_and_init_dwo_file): Reflect API changes.
9997 (dwarf2_get_pc_bounds): Update comments.
9998 (dwarf2_record_block_ranges): Likewise.
9999 (read_full_die_1): Change implementation to reprocess attributes that
10000 need str_offsets_base and addr_base.
10001 (partial_die_info::read): Likewise.
10002 (read_attribute_reprocess): New function definition.
10003 (read_attribute_value): Change API to take an additional out parameter,
10004 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10005 when a non-dwo compile unit has index based attributes.
10006 (read_attribute): Reflect API changes.
10007 (read_addr_index_1): Reflect API changes. Update comments.
10008 (dwarf2_read_addr_index_data): Reflect API changes.
10009 (dwarf2_read_addr_index): Likewise.
10010 (read_str_index): Change API and implementation. This becomes a helper
10011 to be used by the new string index related methods. Update error
10012 message and comments.
10013 (read_dwo_str_index): New function definition.
10014 (read_stub_str_index): Likewise.
10015 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10016 * symfile.h (dwarf2_debug_sections): Likewise.
10017 * xcoffread.c (dwarf2_debug_sections): Likewise.
10018
0cac9354
SM
100192020-01-13 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10022 core_reg_sect type to gdb_byte *.
10023 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10024 * cris-tdep.c (fetch_core_registers): Likewise.
10025 * corelow.c (core_target::get_core_register_section): Change
10026 type of `contents` to gdb::byte_vector.
10027
9a6d629c
AB
100282020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10029
10030 * tui/tui-wingeneral.c (box_win): Position the title in the center
10031 of the border.
10032
d8b2f9e3
SM
100332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * corelow.c (core_target::get_core_register_section): Use
10036 std::vector instead of alloca.
10037
bb564c58
SM
100382020-01-13 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * warning.m4: Add -Wmissing-declarations to build_warnings.
10041 * configure: Re-generate.
10042
6b366111
SM
100432020-01-13 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * python/python.c (init__gdb_module): Add declaration.
10046
6c265988
SM
100472020-01-13 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10050 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10051 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10052 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10053 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10054 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10055 * ada-exp.y (_initialize_ada_exp): Add declaration.
10056 * ada-lang.c (_initialize_ada_language): Add declaration.
10057 * ada-tasks.c (_initialize_tasks): Add declaration.
10058 * agent.c (_initialize_agent): Add declaration.
10059 * aix-thread.c (_initialize_aix_thread): Add declaration.
10060 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10061 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10062 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10063 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10064 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10065 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10066 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10067 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10068 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10069 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10070 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10071 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10072 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10073 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10074 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10075 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10076 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10077 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10078 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10079 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10080 * annotate.c (_initialize_annotate): Add declaration.
10081 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10082 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10083 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10084 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10085 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10086 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10087 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10088 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10089 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10090 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10091 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10092 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10093 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10094 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10095 * auto-load.c (_initialize_auto_load): Add declaration.
10096 * auxv.c (_initialize_auxv): Add declaration.
10097 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10098 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10099 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10100 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10101 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10102 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10103 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10104 * breakpoint.c (_initialize_breakpoint): Add declaration.
10105 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10106 * btrace.c (_initialize_btrace): Add declaration.
10107 * charset.c (_initialize_charset): Add declaration.
10108 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10109 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10110 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10111 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10112 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10113 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10114 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10115 * coffread.c (_initialize_coffread): Add declaration.
10116 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10117 * compile/compile.c (_initialize_compile): Add declaration.
10118 * complaints.c (_initialize_complaints): Add declaration.
10119 * completer.c (_initialize_completer): Add declaration.
10120 * copying.c (_initialize_copying): Add declaration.
10121 * corefile.c (_initialize_core): Add declaration.
10122 * corelow.c (_initialize_corelow): Add declaration.
10123 * cp-abi.c (_initialize_cp_abi): Add declaration.
10124 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10125 * cp-support.c (_initialize_cp_support): Add declaration.
10126 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10127 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10128 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10129 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10130 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10131 * ctfread.c (_initialize_ctfread): Add declaration.
10132 * d-lang.c (_initialize_d_language): Add declaration.
10133 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10134 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10135 * dbxread.c (_initialize_dbxread): Add declaration.
10136 * dcache.c (_initialize_dcache): Add declaration.
10137 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10138 * disasm.c (_initialize_disasm): Add declaration.
10139 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10140 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10141 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10142 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10143 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10144 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10145 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10146 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10147 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10148 * elfread.c (_initialize_elfread): Add declaration.
10149 * exec.c (_initialize_exec): Add declaration.
10150 * extension.c (_initialize_extension): Add declaration.
10151 * f-lang.c (_initialize_f_language): Add declaration.
10152 * f-valprint.c (_initialize_f_valprint): Add declaration.
10153 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10154 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10155 * filesystem.c (_initialize_filesystem): Add declaration.
10156 * findcmd.c (_initialize_mem_search): Add declaration.
10157 * findvar.c (_initialize_findvar): Add declaration.
10158 * fork-child.c (_initialize_fork_child): Add declaration.
10159 * frame-base.c (_initialize_frame_base): Add declaration.
10160 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10161 * frame.c (_initialize_frame): Add declaration.
10162 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10163 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10164 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10165 * gcore.c (_initialize_gcore): Add declaration.
10166 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10167 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10168 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10169 * gdbarch.c (_initialize_gdbarch): Add declaration.
10170 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10171 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10172 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10173 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10174 * go-lang.c (_initialize_go_language): Add declaration.
10175 * go32-nat.c (_initialize_go32_nat): Add declaration.
10176 * guile/guile.c (_initialize_guile): Add declaration.
10177 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10178 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10179 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10180 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10181 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10182 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10183 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10184 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10185 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10186 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10187 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10188 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10189 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10190 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10191 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10192 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10193 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10194 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10195 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10196 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10197 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10198 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10199 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10200 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10201 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10202 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10203 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10204 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10205 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10206 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10207 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10208 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10209 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10210 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10211 * infcall.c (_initialize_infcall): Add declaration.
10212 * infcmd.c (_initialize_infcmd): Add declaration.
10213 * inflow.c (_initialize_inflow): Add declaration.
10214 * infrun.c (_initialize_infrun): Add declaration.
10215 * interps.c (_initialize_interpreter): Add declaration.
10216 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10217 * jit.c (_initialize_jit): Add declaration.
10218 * language.c (_initialize_language): Add declaration.
10219 * linux-fork.c (_initialize_linux_fork): Add declaration.
10220 * linux-nat.c (_initialize_linux_nat): Add declaration.
10221 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10222 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10223 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10224 * m2-lang.c (_initialize_m2_language): Add declaration.
10225 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10226 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10227 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10228 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10229 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10230 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10231 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10232 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10233 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10234 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10235 * machoread.c (_initialize_machoread): Add declaration.
10236 * macrocmd.c (_initialize_macrocmd): Add declaration.
10237 * macroscope.c (_initialize_macroscope): Add declaration.
10238 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10239 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10240 * maint.c (_initialize_maint_cmds): Add declaration.
10241 * mdebugread.c (_initialize_mdebugread): Add declaration.
10242 * memattr.c (_initialize_mem): Add declaration.
10243 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10244 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10245 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10246 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10247 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10248 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10249 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10250 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10251 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10252 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10253 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10254 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10255 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10256 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10257 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10258 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10259 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10260 * mipsread.c (_initialize_mipsread): Add declaration.
10261 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10262 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10263 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10264 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10265 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10266 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10267 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10268 * nto-procfs.c (_initialize_procfs): Add declaration.
10269 * objc-lang.c (_initialize_objc_language): Add declaration.
10270 * observable.c (_initialize_observer): Add declaration.
10271 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10272 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10273 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10274 * osabi.c (_initialize_gdb_osabi): Add declaration.
10275 * osdata.c (_initialize_osdata): Add declaration.
10276 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10277 * parse.c (_initialize_parse): Add declaration.
10278 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10279 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10280 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10281 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10282 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10283 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10284 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10285 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10286 * printcmd.c (_initialize_printcmd): Add declaration.
10287 * probe.c (_initialize_probe): Add declaration.
10288 * proc-api.c (_initialize_proc_api): Add declaration.
10289 * proc-events.c (_initialize_proc_events): Add declaration.
10290 * proc-service.c (_initialize_proc_service): Add declaration.
10291 * procfs.c (_initialize_procfs): Add declaration.
10292 * producer.c (_initialize_producer): Add declaration.
10293 * psymtab.c (_initialize_psymtab): Add declaration.
10294 * python/python.c (_initialize_python): Add declaration.
10295 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10296 * record-btrace.c (_initialize_record_btrace): Add declaration.
10297 * record-full.c (_initialize_record_full): Add declaration.
10298 * record.c (_initialize_record): Add declaration.
10299 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10300 * regcache.c (_initialize_regcache): Add declaration.
10301 * reggroups.c (_initialize_reggroup): Add declaration.
10302 * remote-notif.c (_initialize_notif): Add declaration.
10303 * remote-sim.c (_initialize_remote_sim): Add declaration.
10304 * remote.c (_initialize_remote): Add declaration.
10305 * reverse.c (_initialize_reverse): Add declaration.
10306 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10307 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10308 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10309 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10310 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10311 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10312 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10313 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10314 Add declaration.
10315 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10316 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10317 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10318 * rust-exp.y (_initialize_rust_exp): Add declaration.
10319 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10320 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10321 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10322 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10323 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10324 * score-tdep.c (_initialize_score_tdep): Add declaration.
10325 * ser-go32.c (_initialize_ser_dos): Add declaration.
10326 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10327 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10328 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10329 * ser-uds.c (_initialize_ser_socket): Add declaration.
10330 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10331 * serial.c (_initialize_serial): Add declaration.
10332 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10333 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10334 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10335 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10336 * skip.c (_initialize_step_skip): Add declaration.
10337 * sol-thread.c (_initialize_sol_thread): Add declaration.
10338 * solib-aix.c (_initialize_solib_aix): Add declaration.
10339 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10340 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10341 * solib-frv.c (_initialize_frv_solib): Add declaration.
10342 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10343 * solib-target.c (_initialize_solib_target): Add declaration.
10344 * solib.c (_initialize_solib): Add declaration.
10345 * source-cache.c (_initialize_source_cache): Add declaration.
10346 * source.c (_initialize_source): Add declaration.
10347 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10348 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10349 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10350 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10351 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10352 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10353 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10354 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10355 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10356 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10357 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10358 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10359 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10360 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10361 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10362 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10363 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10364 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10365 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10366 * stabsread.c (_initialize_stabsread): Add declaration.
10367 * stack.c (_initialize_stack): Add declaration.
10368 * stap-probe.c (_initialize_stap_probe): Add declaration.
10369 * std-regs.c (_initialize_frame_reg): Add declaration.
10370 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10371 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10372 * symfile.c (_initialize_symfile): Add declaration.
10373 * symmisc.c (_initialize_symmisc): Add declaration.
10374 * symtab.c (_initialize_symtab): Add declaration.
10375 * target.c (_initialize_target): Add declaration.
10376 * target-connection.c (_initialize_target_connection): Add
10377 declaration.
10378 * target-dcache.c (_initialize_target_dcache): Add declaration.
10379 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10380 * thread.c (_initialize_thread): Add declaration.
10381 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10382 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10383 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10384 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10385 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10386 * tracectf.c (_initialize_ctf): Add declaration.
10387 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10388 * tracefile.c (_initialize_tracefile): Add declaration.
10389 * tracepoint.c (_initialize_tracepoint): Add declaration.
10390 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10391 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10392 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10393 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10394 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10395 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10396 * tui/tui.c (_initialize_tui): Add declaration.
10397 * typeprint.c (_initialize_typeprint): Add declaration.
10398 * ui-style.c (_initialize_ui_style): Add declaration.
10399 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10400 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10401 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10402 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10403 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10404 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10405 * unittests/filtered_iterator-selftests.c
10406 (_initialize_filtered_iterator_selftests): Add declaration.
10407 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10408 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10409 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10410 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10411 * unittests/main-thread-selftests.c
10412 (_initialize_main_thread_selftests): Add declaration.
10413 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10414 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10415 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10416 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10417 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10418 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10419 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10420 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10421 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10422 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10423 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10424 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10425 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10426 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10427 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10428 declaration.
10429 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10430 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10431 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10432 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10433 * user-regs.c (_initialize_user_regs): Add declaration.
10434 * utils.c (_initialize_utils): Add declaration.
10435 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10436 * valops.c (_initialize_valops): Add declaration.
10437 * valprint.c (_initialize_valprint): Add declaration.
10438 * value.c (_initialize_values): Add declaration.
10439 * varobj.c (_initialize_varobj): Add declaration.
10440 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10441 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10442 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10443 * windows-nat.c (_initialize_windows_nat): Add declaration.
10444 (_initialize_check_for_gdb_ini): Add declaration.
10445 (_initialize_loadable): Add declaration.
10446 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10447 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10448 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10449 * xcoffread.c (_initialize_xcoffread): Add declaration.
10450 * xml-support.c (_initialize_xml_support): Add declaration.
10451 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10452 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10453 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10454 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10455
e2de1eec
SM
104562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10457
10458 * regformats/regdat.sh: Generate declaration for init function.
10459
e0037b4c
SM
104602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10461
10462 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10463 up.
10464 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10465 close_one_inferior>: New methods.
10466 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10467 pass down target to find_inferior_pid.
10468 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10469 Pass down target to find_inferior_ptid.
10470 (gdbsim_target::create_inferior): Pass down target to
10471 add_thread_silent.
10472 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10473 target down to find_inferior_ptid and switch_to_thread.
10474 (gdbsim_target::close): Update to call close_one_inferior.
10475 (struct resume_data): Remove.
10476 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10477 directly, rather than through a void pointer.
10478 (gdbsim_target::resume): Update to call resume_one_inferior.
10479
58920b5b
SM
104802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10481
10482 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10483
4ec89149
PA
104842020-01-12 Pedro Alves <palves@redhat.com>
10485
10486 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10487 directly for the current inferior instead of
10488 discard_all_inferiors.
10489 (discard_all_inferiors): Delete.
10490
7c392d1d
TT
104912020-01-11 Tom Tromey <tom@tromey.com>
10492
10493 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10494 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10495 deprecated_safe_get_selected_frame.
10496
d9ebdab7
TBA
104972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10498
10499 * inferior.c (print_inferior): Switch inferior before printing it.
10500
f3c469b9
PA
105012020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10502 Pedro Alves <palves@redhat.com>
10503
10504 * progspace-and-thread.c (switch_to_program_space_and_thread):
10505 Assert there's an inferior for PSPACE. Use
10506 switch_to_inferior_no_thread to switch the inferior too.
10507 * progspace.c (program_space::~program_space): Call
10508 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10509 (program_space::free_all_objfiles): Don't call clear_symtab_users
10510 here.
10511 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10512
65c574f6
PA
105132020-01-10 Pedro Alves <palves@redhat.com>
10514
10515 * NEWS: Mention multi-target debugging, "info connections", and
10516 "add-inferior -no-connection".
10517
2f4fcf00
PA
105182020-01-10 Pedro Alves <palves@redhat.com>
10519
10520 * infrun.c: Include "target-connection.h".
10521 (check_multi_target_resumption): New.
10522 (proceed): Call it.
10523 * target-connection.c (make_target_connection_string): Make
10524 extern.
10525 * target-connection.h (make_target_connection_string): Declare.
10526
121b3efd
PA
105272020-01-10 Pedro Alves <palves@redhat.com>
10528
10529 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10530 * inferior.c (uiout_field_connection): New function.
10531 (print_inferior): Add new "connection-id" column.
10532 (add_inferior_command): Show connection number/string of added
10533 inferior.
10534 * process-stratum-target.h
10535 (process_stratum_target::connection_string): New virtual method.
10536 (process_stratum_target::connection_number): New field.
10537 * remote.c (remote_target::connection_string): New override.
10538 * target-connection.c: New file.
10539 * target-connection.h: New file.
10540 * target.c (decref_target): Remove process_stratum targets from
10541 the connection list.
10542 (target_stack::push): Add process_stratum targets to the
10543 connection list.
10544
4f837581
PA
105452020-01-10 Pedro Alves <palves@redhat.com>
10546
10547 Revert:
10548 2016-04-12 Pedro Alves <palves@redhat.com>
10549 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10550 Remove references to name.
10551 * serial.h (struct serial) <name>: Delete.
10552
f4ec508e
PA
105532020-01-10 Pedro Alves <palves@redhat.com>
10554
10555 * gdbarch-selftests.c (register_to_value_test): Remove "target
10556 already pushed" check.
10557
5b6d1e4f
PA
105582020-01-10 Pedro Alves <palves@redhat.com>
10559 John Baldwin <jhb@FreeBSD.org>
10560
10561 * aarch64-linux-nat.c
10562 (aarch64_linux_nat_target::thread_architecture): Adjust.
10563 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10564 (task_command_1): Likewise.
10565 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10566 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10567 (aix_thread_target::store_registers)
10568 (aix_thread_target::thread_alive): Adjust.
10569 * amd64-fbsd-tdep.c: Include "inferior.h".
10570 (amd64fbsd_get_thread_local_address): Pass down target.
10571 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10572 thread's gdbarch instead of target_gdbarch.
10573 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10574 get_last_target_status.
10575 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10576 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10577 inferiors.
10578 (update_inserted_breakpoint_locations): Skip if inferiors with no
10579 execution.
10580 (update_global_location_list): When handling moribund locations,
10581 find representative inferior for location's pspace, and use thread
10582 count of its process_stratum target.
10583 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10584 * bsd-uthread.c (bsd_uthread_target::wait): Use
10585 as_process_stratum_target and adjust thread_change_ptid and
10586 add_thread calls.
10587 (bsd_uthread_target::update_thread_list): Use
10588 as_process_stratum_target and adjust find_thread_ptid,
10589 thread_change_ptid and add_thread calls.
10590 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10591 find_thread_ptid call.
10592 * corelow.c (add_to_thread_list): Adjust add_thread call.
10593 (core_target_open): Adjust add_thread_silent and thread_count
10594 calls.
10595 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10596 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10597 * event-top.c (async_disconnect): Pop targets from all inferiors.
10598 * exec.c (add_target_sections): Push exec target on all inferiors
10599 sharing the program space.
10600 (remove_target_sections): Remove the exec target from all
10601 inferiors sharing the program space.
10602 (exec_on_vfork): New.
10603 * exec.h (exec_on_vfork): Declare.
10604 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10605 Pass it down.
10606 (fbsd_nat_target::update_thread_list): Adjust.
10607 (fbsd_nat_target::resume): Adjust.
10608 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10609 down.
10610 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10611 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10612 get_thread_arch_regcache call.
10613 * fork-child.c (gdb_startup_inferior): Pass target down to
10614 startup_inferior and set_executing.
10615 * gdbthread.h (struct process_stratum_target): Forward declare.
10616 (add_thread, add_thread_silent, add_thread_with_info)
10617 (in_thread_list): Add process_stratum_target parameter.
10618 (find_thread_ptid(inferior*, ptid_t)): New overload.
10619 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10620 parameter.
10621 (all_threads()): Delete overload.
10622 (all_threads, all_non_exited_threads): Add process_stratum_target
10623 parameter.
10624 (all_threads_safe): Use brace initialization.
10625 (thread_count): Add process_stratum_target parameter.
10626 (set_resumed, set_running, set_stop_requested, set_executing)
10627 (threads_are_executing, finish_thread_state): Add
10628 process_stratum_target parameter.
10629 (switch_to_thread): Use is_current_thread.
10630 * i386-fbsd-tdep.c: Include "inferior.h".
10631 (i386fbsd_get_thread_local_address): Pass down target.
10632 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10633 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10634 have_inferiors check.
10635 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10636 (inf_ptrace_target::attach): Adjust.
10637 * infcall.c (run_inferior_call): Adjust.
10638 * infcmd.c (run_command_1): Pass target to
10639 scoped_finish_thread_state.
10640 (proceed_thread_callback): Skip inferiors with no execution.
10641 (continue_command): Rename 'all_threads' local to avoid hiding
10642 'all_threads' function. Adjust get_last_target_status call.
10643 (prepare_one_step): Adjust set_running call.
10644 (signal_command): Use user_visible_resume_target. Compare thread
10645 pointers instead of inferior_ptid.
10646 (info_program_command): Adjust to pass down target.
10647 (attach_command): Mark target's 'thread_executing' flag.
10648 (stop_current_target_threads_ns): New, factored out from ...
10649 (interrupt_target_1): ... this. Switch inferior before making
10650 target calls.
10651 * inferior-iter.h
10652 (struct all_inferiors_iterator, struct all_inferiors_range)
10653 (struct all_inferiors_safe_range)
10654 (struct all_non_exited_inferiors_range): Filter on
10655 process_stratum_target too. Remove explicit.
10656 * inferior.c (inferior::inferior): Push dummy target on target
10657 stack.
10658 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10659 Add process_stratum_target parameter, and pass it down.
10660 (have_live_inferiors): Adjust.
10661 (switch_to_inferior_and_push_target): New.
10662 (add_inferior_command, clone_inferior_command): Handle
10663 "-no-connection" parameter. Use
10664 switch_to_inferior_and_push_target.
10665 (_initialize_inferior): Mention "-no-connection" option in
10666 the help of "add-inferior" and "clone-inferior" commands.
10667 * inferior.h: Include "process-stratum-target.h".
10668 (interrupt_target_1): Use bool.
10669 (struct inferior) <push_target, unpush_target, target_is_pushed,
10670 find_target_beneath, top_target, process_target, target_at,
10671 m_stack>: New.
10672 (discard_all_inferiors): Delete.
10673 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10674 (all_inferiors, all_non_exited_inferiors): Add
10675 process_stratum_target parameter.
10676 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10677 (target_last_proc_target): New global.
10678 (follow_fork_inferior): Push target on new inferior. Pass target
10679 to add_thread_silent. Call exec_on_vfork. Handle target's
10680 reference count.
10681 (follow_fork): Adjust get_last_target_status call. Also consider
10682 target.
10683 (follow_exec): Push target on new inferior.
10684 (struct execution_control_state) <target>: New field.
10685 (user_visible_resume_target): New.
10686 (do_target_resume): Call target_async.
10687 (resume_1): Set target's threads_executing flag. Consider resume
10688 target.
10689 (commit_resume_all_targets): New.
10690 (proceed): Also consider resume target. Skip threads of inferiors
10691 with no execution. Commit resumtion in all targets.
10692 (start_remote): Pass current inferior to wait_for_inferior.
10693 (infrun_thread_stop_requested): Consider target as well. Pass
10694 thread_info pointer to clear_inline_frame_state instead of ptid.
10695 (infrun_thread_thread_exit): Consider target as well.
10696 (random_pending_event_thread): New inferior parameter. Use it.
10697 (do_target_wait): Rename to ...
10698 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10699 down.
10700 (threads_are_resumed_pending_p, do_target_wait): New.
10701 (prepare_for_detach): Adjust calls.
10702 (wait_for_inferior): New inferior parameter. Handle it. Use
10703 do_target_wait_1 instead of do_target_wait.
10704 (fetch_inferior_event): Adjust. Switch to representative
10705 inferior. Pass target down.
10706 (set_last_target_status): Add process_stratum_target parameter.
10707 Save target in global.
10708 (get_last_target_status): Add process_stratum_target parameter and
10709 handle it.
10710 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10711 (context_switch): Check inferior_ptid == null_ptid before calling
10712 inferior_thread().
10713 (get_inferior_stop_soon): Pass down target.
10714 (wait_one): Rename to ...
10715 (poll_one_curr_target): ... this.
10716 (struct wait_one_event): New.
10717 (wait_one): New.
10718 (stop_all_threads): Adjust.
10719 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10720 event's target.
10721 (switch_back_to_stepped_thread): Also consider target.
10722 (print_stop_event): Update.
10723 (normal_stop): Update. Also consider the resume target.
10724 * infrun.h (wait_for_inferior): Remove declaration.
10725 (user_visible_resume_target): New declaration.
10726 (get_last_target_status, set_last_target_status): New
10727 process_stratum_target parameter.
10728 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10729 process_stratum_target parameter, and use it.
10730 (clear_inline_frame_state (thread_info*)): New.
10731 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10732 process_stratum_target parameter.
10733 (clear_inline_frame_state (thread_info*)): Declare.
10734 * linux-fork.c (delete_checkpoint_command): Pass target down to
10735 find_thread_ptid.
10736 (checkpoint_command): Adjust.
10737 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10738 instead of just tweaking inferior_ptid.
10739 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10740 (exit_lwp): Pass target down to find_thread_ptid.
10741 (attach_proc_task_lwp_callback): Pass target down to
10742 add_thread/set_running/set_executing.
10743 (linux_nat_target::attach): Pass target down to
10744 thread_change_ptid.
10745 (get_detach_signal): Pass target down to find_thread_ptid.
10746 Consider last target status's target.
10747 (linux_resume_one_lwp_throw, resume_lwp)
10748 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10749 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10750 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10751 (linux_nat_target::async_wait_fd): New.
10752 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10753 target down.
10754 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10755 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10756 * linux-thread-db.c (struct thread_db_info::process_target): New
10757 field.
10758 (add_thread_db_info): Save target.
10759 (get_thread_db_info): New process_stratum_target parameter. Also
10760 match target.
10761 (delete_thread_db_info): New process_stratum_target parameter.
10762 Also match target.
10763 (thread_from_lwp): Adjust to pass down target.
10764 (thread_db_notice_clone): Pass down target.
10765 (check_thread_db_callback): Pass down target.
10766 (try_thread_db_load_1): Always push the thread_db target.
10767 (try_thread_db_load, record_thread): Pass target down.
10768 (thread_db_target::detach): Pass target down. Always unpush the
10769 thread_db target.
10770 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10771 target down. Always unpush the thread_db target.
10772 (find_new_threads_callback, thread_db_find_new_threads_2)
10773 (thread_db_target::update_thread_list): Pass target down.
10774 (thread_db_target::pid_to_str): Pass current inferior down.
10775 (thread_db_target::get_thread_local_address): Pass target down.
10776 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10777 target down.
10778 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10779 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10780 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10781 (procfs_init_inferior): Rename to ...
10782 (procfs_target::procfs_init_inferior): ... this and adjust.
10783 (procfs_target::create_inferior, procfs_notice_thread)
10784 (procfs_do_thread_registers): Adjust.
10785 * ppc-fbsd-tdep.c: Include "inferior.h".
10786 (ppcfbsd_get_thread_local_address): Pass down target.
10787 * proc-service.c (ps_xfer_memory): Switch current inferior and
10788 program space as well.
10789 (get_ps_regcache): Pass target down.
10790 * process-stratum-target.c
10791 (process_stratum_target::thread_address_space)
10792 (process_stratum_target::thread_architecture): Pass target down.
10793 * process-stratum-target.h
10794 (process_stratum_target::threads_executing): New field.
10795 (as_process_stratum_target): New.
10796 * ravenscar-thread.c
10797 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10798 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10799 down.
10800 * record-btrace.c (record_btrace_target::info_record): Adjust.
10801 (record_btrace_target::record_method)
10802 (record_btrace_target::record_is_replaying)
10803 (record_btrace_target::fetch_registers)
10804 (get_thread_current_frame_id, record_btrace_target::resume)
10805 (record_btrace_target::wait, record_btrace_target::stop): Pass
10806 target down.
10807 * record-full.c (record_full_wait_1): Switch to event thread.
10808 Pass target down.
10809 * regcache.c (regcache::regcache)
10810 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10811 process_stratum_target parameter and handle it.
10812 (current_thread_target): New global.
10813 (get_thread_regcache): Add process_stratum_target parameter and
10814 handle it. Switch inferior before calling target method.
10815 (get_thread_regcache): Pass target down.
10816 (get_thread_regcache_for_ptid): Pass target down.
10817 (registers_changed_ptid): Add process_stratum_target parameter and
10818 handle it.
10819 (registers_changed_thread, registers_changed): Pass target down.
10820 (test_get_thread_arch_aspace_regcache): New.
10821 (current_regcache_test): Define a couple local test_target_ops
10822 instances and use them for testing.
10823 (readwrite_regcache): Pass process_stratum_target parameter.
10824 (cooked_read_test, cooked_write_test): Pass mock_target down.
10825 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10826 (get_thread_arch_aspace_regcache): Add process_stratum_target
10827 parameter.
10828 (regcache::target): New method.
10829 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10830 (regcache::registers_changed_ptid): Add process_stratum_target
10831 parameter.
10832 (regcache::m_target): New field.
10833 (registers_changed_ptid): Add process_stratum_target parameter.
10834 * remote.c (remote_state::supports_vCont_probed): New field.
10835 (remote_target::async_wait_fd): New method.
10836 (remote_unpush_and_throw): Add remote_target parameter.
10837 (get_current_remote_target): Adjust.
10838 (remote_target::remote_add_inferior): Push target.
10839 (remote_target::remote_add_thread)
10840 (remote_target::remote_notice_new_inferior)
10841 (get_remote_thread_info): Pass target down.
10842 (remote_target::update_thread_list): Skip threads of inferiors
10843 bound to other targets. (remote_target::close): Don't discard
10844 inferiors. (remote_target::add_current_inferior_and_thread)
10845 (remote_target::process_initial_stop_replies)
10846 (remote_target::start_remote)
10847 (remote_target::remote_serial_quit_handler): Pass down target.
10848 (remote_target::remote_unpush_target): New remote_target
10849 parameter. Unpush the target from all inferiors.
10850 (remote_target::remote_unpush_and_throw): New remote_target
10851 parameter. Pass it down.
10852 (remote_target::open_1): Check whether the current inferior has
10853 execution instead of checking whether any inferior is live. Pass
10854 target down.
10855 (remote_target::remote_detach_1): Pass down target. Use
10856 remote_unpush_target.
10857 (extended_remote_target::attach): Pass down target.
10858 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10859 (remote_target::append_resumption): Pass down target.
10860 (remote_target::append_pending_thread_resumptions)
10861 (remote_target::remote_resume_with_hc, remote_target::resume)
10862 (remote_target::commit_resume): Pass down target.
10863 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10864 (remote_target::interrupt_query)
10865 (remote_target::remove_new_fork_children)
10866 (remote_target::check_pending_events_prevent_wildcard_vcont)
10867 (remote_target::remote_parse_stop_reply)
10868 (remote_target::process_stop_reply): Pass down target.
10869 (first_remote_resumed_thread): New remote_target parameter. Pass
10870 it down.
10871 (remote_target::wait_as): Pass down target.
10872 (unpush_and_perror): New remote_target parameter. Pass it down.
10873 (remote_target::readchar, remote_target::remote_serial_write)
10874 (remote_target::getpkt_or_notif_sane_1)
10875 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10876 down target.
10877 (remote_target::mourn_inferior): Pass down target. Use
10878 remote_unpush_target.
10879 (remote_target::core_of_thread)
10880 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10881 (remote_target::pid_to_exec_file)
10882 (remote_target::thread_handle_to_thread_info): Pass down target.
10883 (remote_target::async_wait_fd): New.
10884 * riscv-fbsd-tdep.c: Include "inferior.h".
10885 (riscv_fbsd_get_thread_local_address): Pass down target.
10886 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10887 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10888 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10889 Adjust.
10890 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10891 * solib-svr4.c (enable_break): Pass down target.
10892 * spu-multiarch.c (parse_spufs_run): Pass down target.
10893 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10894 * target-delegates.c: Regenerate.
10895 * target.c (g_target_stack): Delete.
10896 (current_top_target): Return the current inferior's top target.
10897 (target_has_execution_1): Refer to the passed-in inferior's top
10898 target.
10899 (target_supports_terminal_ours): Check whether the initial
10900 inferior was already created.
10901 (decref_target): New.
10902 (target_stack::push): Incref/decref the target.
10903 (push_target, push_target, unpush_target): Adjust.
10904 (target_stack::unpush): Defref target.
10905 (target_is_pushed): Return bool. Adjust to refer to the current
10906 inferior's target stack.
10907 (dispose_inferior): Delete, and inline parts ...
10908 (target_preopen): ... here. Only dispose of the current inferior.
10909 (target_detach): Hold strong target reference while detaching.
10910 Pass target down.
10911 (target_thread_name): Add assertion.
10912 (target_resume): Pass down target.
10913 (target_ops::beneath, find_target_at): Adjust to refer to the
10914 current inferior's target stack.
10915 (get_dummy_target): New.
10916 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10917 has a thread running.
10918 (initialize_targets): Rename to ...
10919 (_initialize_target): ... this.
10920 * target.h: Include "gdbsupport/refcounted-object.h".
10921 (struct target_ops): Inherit refcounted_object.
10922 (target_ops::shortname, target_ops::longname): Make const.
10923 (target_ops::async_wait_fd): New method.
10924 (decref_target): Declare.
10925 (struct target_ops_ref_policy): New.
10926 (target_ops_ref): New typedef.
10927 (get_dummy_target): Declare function.
10928 (target_is_pushed): Return bool.
10929 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10930 (all_matching_threads_iterator::all_matching_threads_iterator):
10931 Handle filter target.
10932 * thread-iter.h (struct all_matching_threads_iterator, struct
10933 all_matching_threads_range, class all_non_exited_threads_range):
10934 Filter by target too. Remove explicit.
10935 * thread.c (threads_executing): Delete.
10936 (inferior_thread): Pass down current inferior.
10937 (clear_thread_inferior_resources): Pass down thread pointer
10938 instead of ptid_t.
10939 (add_thread_silent, add_thread_with_info, add_thread): Add
10940 process_stratum_target parameter. Use it for thread and inferior
10941 searches.
10942 (is_current_thread): New.
10943 (thread_info::deletable): Use it.
10944 (find_thread_ptid, thread_count, in_thread_list)
10945 (thread_change_ptid, set_resumed, set_running): New
10946 process_stratum_target parameter. Pass it down.
10947 (set_executing): New process_stratum_target parameter. Pass it
10948 down. Adjust reference to 'threads_executing'.
10949 (threads_are_executing): New process_stratum_target parameter.
10950 Adjust reference to 'threads_executing'.
10951 (set_stop_requested, finish_thread_state): New
10952 process_stratum_target parameter. Pass it down.
10953 (switch_to_thread): Also match inferior.
10954 (switch_to_thread): New process_stratum_target parameter. Pass it
10955 down.
10956 (update_threads_executing): Reimplement.
10957 * top.c (quit_force): Pop targets from all inferior.
10958 (gdb_init): Don't call initialize_targets.
10959 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10960 Declare.
10961 (windows_add_thread, windows_delete_thread): Adjust.
10962 (get_windows_debug_event): Rename to ...
10963 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10964 * tracefile-tfile.c (tfile_target_open): Pass down target.
10965 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10966 Forward declare.
10967 (switch_to_thread): Add process_stratum_target parameter.
10968 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10969 parameter. Use it.
10970 (mi_on_resume): Pass target down.
10971 * nat/fork-inferior.c (startup_inferior): Add
10972 process_stratum_target parameter. Pass it down.
10973 * nat/fork-inferior.h (startup_inferior): Add
10974 process_stratum_target parameter.
10975 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10976
75c6c844
PA
109772020-01-10 Pedro Alves <palves@redhat.com>
10978
10979 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10980 directly. Instead find the first thread in the thread list and
10981 use switch_to_thread.
10982
78f2c40a
PA
109832020-01-10 Pedro Alves <palves@redhat.com>
10984
10985 * remote.c (remote_target::remote_add_inferior): Don't bind a
10986 process to the current inferior if the current inferior is already
10987 bound to a process.
10988
e7af6c70
TBA
109892020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10990 Pedro Alves <palves@redhat.com>
10991
10992 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10993 If no process is specified, return null_ptid instead of
10994 inferior_ptid.
10995 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10996 TARGET_WAITKIND_SIGNALLED with no pid.
10997
31ba933e
PA
109982020-01-10 Pedro Alves <palves@redhat.com>
10999
11000 * remote.c (first_remote_resumed_thread): New.
11001 (remote_target::wait_as): Use it as default event_ptid instead of
11002 inferior_ptid.
11003
735fc2ca
PA
110042020-01-10 Pedro Alves <palves@redhat.com>
11005
11006 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11007
c17e02e1
PA
110082020-01-10 Pedro Alves <palves@redhat.com>
11009
11010 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11011 not -1.
11012
ab1ddbcf
PA
110132020-01-10 Pedro Alves <palves@redhat.com>
11014
11015 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11016 ptid to get_last_target_status.
11017 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11018 ptid to get_last_target_status.
11019 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11020 get_last_target_status.
11021 (info_program_command): Don't pass a target_waitstatus to
11022 get_last_target_status.
11023 * infrun.c (init_wait_for_inferior): Use
11024 nullify_last_target_wait_ptid.
11025 (get_last_target_status): Handle nullptr arguments.
11026 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11027 (print_stop_event): Don't pass a ptid to get_last_target_status.
11028 (normal_stop): Don't pass a ptid to get_last_target_status.
11029 * infrun.h (get_last_target_status, set_last_target_status): Move
11030 comments here and update.
11031 (nullify_last_target_wait_ptid): Declare.
11032 * linux-fork.c (fork_load_infrun_state): Remove local extern
11033 declaration of nullify_last_target_wait_ptid.
11034 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11035 to get_last_target_status.
11036
f3f8ece4
PA
110372020-01-10 Pedro Alves <palves@redhat.com>
11038
11039 * gdbthread.h (scoped_restore_current_thread)
11040 <dont_restore, restore, m_dont_restore>: Declare.
11041 * thread.c (thread_alive): Add assertion. Return bool.
11042 (switch_to_thread_if_alive): New.
11043 (prune_threads): Switch inferior/thread.
11044 (print_thread_info_1): Switch thread before calling target methods.
11045 (scoped_restore_current_thread::restore): New, factored out from
11046 ...
11047 (scoped_restore_current_thread::~scoped_restore_current_thread):
11048 ... this.
11049 (scoped_restore_current_thread::scoped_restore_current_thread):
11050 Add assertion.
11051 (thread_apply_all_command, thread_select): Use
11052 switch_to_thread_if_alive.
11053 * infrun.c (proceed, restart_threads, handle_signal_stop)
11054 (switch_back_to_stepped_thread): Switch current thread before
11055 calling target methods.
11056
db2d40f7
PA
110572020-01-10 Pedro Alves <palves@redhat.com>
11058
11059 * inferior.c (switch_to_inferior_no_thread): New function,
11060 factored out from ...
11061 (inferior_command): ... here.
11062 * inferior.h (switch_to_inferior_no_thread): Declare.
11063 * mi/mi-main.c (run_one_inferior): Use
11064 switch_to_inferior_no_thread.
11065
bd420a2d
PA
110662020-01-10 Pedro Alves <palves@redhat.com>
11067
11068 * infcmd.c (kill_command): Remove dead code.
11069
ddf5db90
PA
110702020-01-10 Pedro Alves <palves@redhat.com>
11071
11072 * remote.c (remote_target::mourn_inferior): No longer check
11073 whether the target is running.
11074
5018ce90
PA
110752020-01-10 Pedro Alves <palves@redhat.com>
11076
11077 * corelow.c (core_target::has_execution): Change parameter type to
11078 inferior pointer.
11079 * inferior.c (number_of_live_inferiors): Use
11080 inferior::has_execution instead of target_has_execution_1.
11081 * inferior.h (inferior::has_execution): New.
11082 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11083 inferior::has_execution instead of target_has_execution_1.
11084 * process-stratum-target.c
11085 (process_stratum_target::has_execution): Change parameter type to
11086 inferior pointer. Check the inferior's PID instead of
11087 inferior_ptid.
11088 * process-stratum-target.h
11089 (process_stratum_target::has_execution): Change parameter type to
11090 inferior pointer.
11091 * record-full.c (record_full_core_target::has_execution): Change
11092 parameter type to inferior pointer.
11093 * target.c (target_has_execution_1): Change parameter type to
11094 inferior pointer.
11095 (target_has_execution_current): Adjust.
11096 * target.h (target_ops::has_execution): Change parameter type to
11097 inferior pointer.
11098 (target_has_execution_1): Change parameter type to inferior
11099 pointer. Change return type to bool.
11100 * tracefile.h (tracefile_target::has_execution): Change parameter
11101 type to inferior pointer.
11102
74375d18
PA
111032020-01-10 Pedro Alves <palves@redhat.com>
11104
11105 * exceptions.c (print_flush): Remove current_top_target() check.
11106
acdf84a6
PA
111072020-01-10 Pedro Alves <palves@redhat.com>
11108
11109 * remote.c (show_remote_exec_file): Show the current inferior's
11110 exec-file instead of the command variable's value.
11111
ec506636
PA
111122020-01-10 Pedro Alves <palves@redhat.com>
11113
11114 * record-full.c (record_full_resume_ptid): New global.
11115 (record_full_target::resume): Set it.
11116 (record_full_wait_1): Use record_full_resume_ptid instead of
11117 inferior_ptid.
11118
873657b9
PA
111192020-01-10 Pedro Alves <palves@redhat.com>
11120
11121 * gdbthread.h (scoped_restore_current_thread)
11122 <dont_restore, restore, m_dont_restore>: Declare.
11123 * thread.c (thread_alive): Add assertion. Return bool.
11124 (switch_to_thread_if_alive): New.
11125 (prune_threads): Switch inferior/thread.
11126 (print_thread_info_1): Switch thread before calling target methods.
11127 (scoped_restore_current_thread::restore): New, factored out from
11128 ...
11129 (scoped_restore_current_thread::~scoped_restore_current_thread):
11130 ... this.
11131 (scoped_restore_current_thread::scoped_restore_current_thread):
11132 Add assertion.
11133 (thread_apply_all_command, thread_select): Use
11134 switch_to_thread_if_alive.
11135
7f0ae84c
GB
111362020-01-10 George Barrett <bob@bob131.so>
11137
11138 * stap-probe.c (stap_modify_semaphore): Don't check for null
11139 semaphores.
11140 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11141 for null semaphores.
11142
f5a7c406
AB
111432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11144
11145 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11146 all source windows, and maintain horizontal scroll status while
11147 doing so.
11148
9ae6bf64
TT
111492020-01-09 Tom Tromey <tom@tromey.com>
11150
11151 PR tui/18932:
11152 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11153 update_source_window, not print_source_lines.
11154
b2efe70c
AB
111552020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11156
11157 * tui/tui.c (tui_enable): Register tui hooks after calling
11158 tui_display_main.
11159
5f23a082
CB
111602020-01-09 Christian Biesinger <cbiesinger@google.com>
11161
11162 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11163
3061113b
SM
111642020-01-08 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * thread.c (print_thread_info_1): Fix indentation.
11167
57d75002
CB
111682020-01-09 Christian Biesinger <cbiesinger@google.com>
11169
11170 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11171 unique_xmalloc_ptr outside the if to always free the demangled name.
11172
6a053cb1
TT
111732020-01-08 Tom Tromey <tromey@adacore.com>
11174
11175 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11176 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11177 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11178 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11179 Remove.
11180 (section_offsets): New typedef.
11181 * symtab.c (fixup_section, get_msymbol_address): Update.
11182 * symmisc.c (dump_msymbols): Update.
11183 * symfile.h (relative_addr_info_to_section_offsets)
11184 (symfile_map_offsets_to_segments): Update.
11185 * symfile.c (build_section_addr_info_from_objfile)
11186 (init_objfile_sect_indices): Update.
11187 (struct place_section_arg): Change type of "offsets".
11188 (place_section): Update.
11189 (relative_addr_info_to_section_offsets): Change type of
11190 "section_offsets". Remove "num_sections" parameter.
11191 (default_symfile_offsets, syms_from_objfile_1)
11192 (set_objfile_default_section_offset): Update.
11193 (reread_symbols): No need to preserve section offsets by hand.
11194 (symfile_map_offsets_to_segments): Change type of "offsets".
11195 * stap-probe.c (relocate_address): Update.
11196 * stabsread.h (process_one_symbol): Update.
11197 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11198 (solib_target_relocate_section_addresses): Update.
11199 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11200 Update.
11201 * solib-frv.c (frv_relocate_main_executable): Update.
11202 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11203 * solib-aix.c (solib_aix_get_section_offsets): Change return
11204 type.
11205 (solib_aix_solib_create_inferior_hook): Update.
11206 * remote.c (remote_target::get_offsets): Update.
11207 * psymtab.c (find_pc_sect_psymtab): Update.
11208 * psympriv.h (struct partial_symbol) <address, text_low,
11209 text_high>: Update.
11210 * objfiles.h (obj_section_offset): Update.
11211 (struct objfile) <section_offsets>: Change type.
11212 <num_sections>: Remove.
11213 (objfile_relocate): Update.
11214 * objfiles.c (entry_point_address_query): Update
11215 (relocate_one_symbol): Change type of "section_offsets".
11216 (objfile_relocate1, objfile_relocate1): Change type of
11217 "new_offsets".
11218 (objfile_rebase1): Update.
11219 * mipsread.c (mipscoff_symfile_read): Update.
11220 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11221 parameter.
11222 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11223 (parse_external, psymtab_to_symtab_1): Update.
11224 * machoread.c (macho_symfile_offsets): Update.
11225 * ia64-tdep.c (ia64_find_unwind_table): Update.
11226 * hppa-tdep.c (read_unwind_info): Update.
11227 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11228 * dwarf2read.c (create_addrmap_from_index)
11229 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11230 (process_psymtab_comp_unit_reader, add_partial_symbol)
11231 (add_partial_subprogram, process_full_comp_unit)
11232 (read_file_scope, read_func_scope, read_lexical_block_scope)
11233 (read_call_site_scope, dwarf2_rnglists_process)
11234 (dwarf2_ranges_process, dwarf2_ranges_read)
11235 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11236 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11237 Update.
11238 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11239 Update.
11240 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11241 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11242 (process_one_symbol): Change type of "section_offsets".
11243 * ctfread.c (get_objfile_text_range): Update.
11244 * coffread.c (coff_symtab_read, enter_linenos)
11245 (process_coff_symbol): Update.
11246 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11247 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11248
456e800a
TT
112492020-01-08 Tom Tromey <tromey@adacore.com>
11250
11251 * dwarf2read.c (parse_macro_definition): Use std::string.
11252 (parse_macro_definition): Likewise.
11253
6dfa2fc2
TT
112542020-01-08 Tom Tromey <tromey@adacore.com>
11255
11256 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11257 (ATTR_ALLOC_CHUNK): Remove.
11258
421d1616
TT
112592020-01-08 Tom Tromey <tromey@adacore.com>
11260
11261 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11262
43816ebc
TT
112632020-01-08 Tom Tromey <tromey@adacore.com>
11264
11265 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11266 (dwarf2_compute_name, open_dwo_file): Likewise.
11267 (process_enumeration_scope): Use std::vector.
11268 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11269 (partial_die_info::fixup, dwarf2_start_subfile)
11270 (guess_full_die_structure_name, dwarf2_name): Likewise.
11271 (determine_prefix): Update.
11272 (guess_full_die_structure_name): Make return type const.
11273 (partial_die_full_name): Return unique_xmalloc_ptr.
11274 (DW_FIELD_ALLOC_CHUNK): Remove.
11275
4212d509
TT
112762020-01-07 Tom Tromey <tromey@adacore.com>
11277
11278 PR build/24937:
11279 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11280
06a6207a
JT
112812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11282
11283 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11284
153d79c4
AB
112852020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * stack.c (print_frame_info): Move disassemble_next_line code
11288 inside source_print block.
11289
66182876
EZ
112902020-01-06 Eli Zaretskii <eliz@gnu.org>
11291
11292 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11293 gdb/signals.h, as we are now using native signal symbols.
11294
cbfa8581
SV
112952020-01-06 Shahab Vahedi <shahab@synopsys.com>
11296
11297 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11298 overflow by an early check of content vs threshold.
aac66a4c 11299 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11300 Likewise.
11301
3f602821
EZ
113022020-01-06 Eli Zaretskii <eliz@gnu.org>
11303
11304 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11305
a08c904d
JT
113062020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11307
11308 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11309 export table if no section contains it's RVA.
11310
89a65580
EZ
113112020-01-06 Eli Zaretskii <eliz@gnu.org>
11312
11313 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11314
8b7fcda2
HD
113152020-01-06 Hannes Domani <ssbssa@yahoo.de>
11316
11317 * source.c (print_source_lines_base): Set last_line_listed.
11318
a61b4f69
SV
113192020-01-06 Shahab Vahedi <shahab@synopsys.com>
11320
11321 * tui/tui-disasm.c: Remove trailing spaces.
11322
559e7e50
EZ
113232020-01-06 Eli Zaretskii <eliz@gnu.org>
11324 Pedro Alves <palves@redhat.com>
11325
11326 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11327 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11328 (windows_gdb_signal_to_target): New function, uses the above
11329 enumeration to convert GDB internal signal codes to equivalent
11330 Windows codes.
11331 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11332 * windows-nat.c: Include "gdb_wait.h".
11333 (get_windows_debug_event): Extract the fatal exception from the
11334 exit status and convert to the equivalent Posix signal number.
11335 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11336 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11337 * gdbsupport/gdb_wait.c: New file, implements
11338 windows_status_to_termsig.
11339 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11340 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11341
f2302a34
AB
113422020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11343
11344 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11345 show_layout.
11346
6a5206eb
LM
113472020-01-05 Luis Machado <luis.machado@linaro.org>
11348
11349 * aarch64-linux-nat.c
11350 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11351 and bfd_mach_aarch64.
11352
6ec1d75e
PW
113532020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11354
11355 * ui-file.c (stdio_file::can_emit_style_escape)
11356 (tee_file::can_emit_style_escape): Ensure style is used also on
11357 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11358 to gdb_stdout.
11359 * main.c (set_gdb_data_directory): Use file style to output the
11360 warning that the given pathname is not a directory.
11361 * top.c (show_history_filename, gdb_safe_append_history)
11362 (show_gdb_datadir): Use file style.
11363
44f81a76
HD
113642020-01-03 Hannes Domani <ssbssa@yahoo.de>
11365
11366 * solib-target.c (struct lm_info_target):
11367 Change offsets to be a unique_xmalloc_ptr.
11368 (solib_target_relocate_section_addresses): Update.
11369
25057eb0
HD
113702020-01-03 Hannes Domani <ssbssa@yahoo.de>
11371
11372 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11373
6e2118f5
BE
113742020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11375
11376 * MAINTAINERS (Write After Approval): Add myself.
11377
8133c7dc
LM
113782020-01-02 Luis Machado <luis.machado@linaro.org>
11379
11380 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11381 Cell BE architecture.
11382 * target.h (struct target_ops) <thread_architecture>: Likewise.
11383
48189bec
HD
113842020-01-01 Hannes Domani <ssbssa@yahoo.de>
11385
11386 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11387
ead1063b
HD
113882020-01-01 Hannes Domani <ssbssa@yahoo.de>
11389
11390 * MAINTAINERS (Write After Approval): Add myself.
11391
e5d78223
JB
113922020-01-01 Joel Brobecker <brobecker@adacore.com>
11393
11394 * gdbarch.sh: Update copyright year range of generated files.
11395
b811d2c2
JB
113962020-01-01 Joel Brobecker <brobecker@adacore.com>
11397
11398 Update copyright year range in all GDB files.
11399
5f4def5c
JB
114002020-01-01 Joel Brobecker <brobecker@adacore.com>
11401
11402 * copyright.py: Convert to Python 3.
11403
51fd4002
JB
114042020-01-01 Joel Brobecker <brobecker@adacore.com>
11405
11406 * copyright.py: Adapt after move of gnulib directory from gdb
11407 directory to toplevel directory.
11408
5fb651f2
JB
114092020-01-01 Joel Brobecker <brobecker@adacore.com>
11410
11411 * copyright.py (main): Exit if run from the wrong directory.
11412
5dd8bf88
JB
114132020-01-01 Joel Brobecker <brobecker@adacore.com>
11414
11415 * top.c (print_gdb_version): Change copyright year to 2020.
11416
9f71dacb 114172020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11418
9f71dacb 11419 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11420
9f71dacb 11421For older changes see ChangeLog-2019.
c906108c
SS
11422\f
11423Local Variables:
11424mode: change-log
11425left-margin: 8
11426fill-column: 74
11427version-control: never
57da7796 11428coding: utf-8
c906108c 11429End: