]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/jit: link to jit_objfile_data directly from the objfile struct
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
238b5c9f
SM
12020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * jit.h: Forward-declare `struct minimal_symbol`.
4 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5 constructor, destructor, and an objfile* field.
6 * jit.c (jit_objfile_data): Remove.
7 (struct jit_objfile_data): Migrate from here to jit.h.
8 (jit_objfile_data::~jit_objfile_data): New destructor
9 implementation with code moved from free_objfile_data.
10 (free_objfile_data): Delete.
11 (get_jit_objfile_data): Update to use the jit_data field of objfile.
12 (jit_find_objf_with_entry_addr): Ditto.
13 (jit_inferior_exit_hook): Ditto.
14 (_initialize_jit): Remove the call to
15 register_objfile_data_with_cleanup.
16 * objfiles.h (struct objfile) <jit_data>: New field.
17
fe053b9e
TBA
182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
19
20 * jit.h: Forward-declare `struct objfile`.
21 (jit_event_handler): Add a second parameter, the JITer objfile.
22 * jit.c (jit_read_descriptor): Change the signature to take the
23 JITer objfile as an argument instead of the jit_program_space_data.
24 (jit_inferior_init): Update the call to jit_read_descriptor.
25 (jit_event_handler): Use the new JITer objfile argument when calling
26 jit_read_descriptor.
27 * breakpoint.c (handle_jit_event): Update the call to
28 jit_event_handler to pass the JITer objfile.
29
4cec0c66
JB
302020-07-21 John Baldwin <jhb@FreeBSD.org>
31
32 * gdbarch.c: Regenerate.
33 * gdbarch.h: Regenerate.
34 * gdbarch.sh (handle_segmentation_fault): Remove method.
35 * infrun.c (handle_segmentation_fault): Remove.
36 (print_signal_received_reason): Remove call to
37 handle_segmentation_fault.
38
0e42f66a
JB
392020-07-21 John Baldwin <jhb@FreeBSD.org>
40
41 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
42 Rename to sparc64_linux_report_signal_info and add siggnal
43 argument.
44 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
45 instead of sparc64_linux_handle_segmentation_fault.
46
77bdfeb2
JB
472020-07-21 John Baldwin <jhb@FreeBSD.org>
48
49 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
50 i386_linux_report_signal_info instead of
51 i386_linux_handle_segmentation_fault.
52 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
53 to i386_linux_report_signal_info and add siggnal argument.
54 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
55 of i386_linux_handle_segmentation_fault.
56 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
57 to i386_linux_report_signal_info and add siggnal argument.
58
ad97bfc5
JB
592020-07-21 John Baldwin <jhb@FreeBSD.org>
60
61 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
62 hook if present.
63
272bb05c
JB
642020-07-21 John Baldwin <jhb@FreeBSD.org>
65
66 * gdbarch.c: Regenerate.
67 * gdbarch.h: Regenerate.
68 * gdbarch.sh (report_signal_info): New method.
69 * infrun.c (print_signal_received_reason): Invoke gdbarch
70 report_signal_info hook if present.
71
baf8791e
AB
722020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * python/py-registers.c : Add 'unordered_map' include.
75 (gdbpy_new_reggroup): Renamed to...
76 (gdbpy_get_reggroup): ...this. Update to only create register
77 group descriptors when needed.
78 (gdbpy_reggroup_iter_next): Update.
79
f7306dac
AB
802020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * python/py-registers.c (gdbpy_register_object_data): New static
83 global.
84 (gdbpy_register_object_data_init): New function.
85 (gdbpy_new_register_descriptor): Renamed to...
86 (gdbpy_get_register_descriptor): ...this, and update to reuse
87 existing register descriptors where possible.
88 (gdbpy_register_descriptor_iter_next): Update.
89 (gdbpy_initialize_registers): Register new gdbarch data.
90
05c309a8
SM
912020-07-21 Simon Marchi <simon.marchi@efficios.com>
92
93 * linux-nat.c (stopped_pids): Make static.
94
d1fd641e
SM
952020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
96
97 PR ada/26235
98 * gdbtypes.c (ada_discrete_type_low_bound,
99 ada_discrete_type_high_bound): Handle undefined bounds.
100
1de14d77
KR
1012020-07-21 Kamil Rytarowski <n54@gmx.com>
102
103 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
104 declaration.
105 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
106 function.
107
ed810cc7
JB
1082020-07-20 John Baldwin <jhb@FreeBSD.org>
109
110 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
111 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
112 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
113 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
114 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
115 method.
116
ae5369e7
LC
1172020-07-20 Ludovic Courtès <ludo@gnu.org>
118
119 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
120 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
121 which are deprecated in Guile 3.0.
122 * configure.ac (try_guile_versions): Add "guile-3.0".
123 * configure (try_guile_versions): Regenerate.
124 * NEWS: Update entry.
125
68cf161c
LC
1262020-07-20 Ludovic Courtès <ludo@gnu.org>
127 Doug Evans <dje@google.com>
128
129 PR gdb/21104
130 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
131 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
132 USING_GUILE_BEFORE_2_2.
133 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
134 Change type to 'scm_t_port_type *'.
135 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
136 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
137 parameter and honor it. Update callers.
138 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
139 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
140 functions.
141 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
142 USING_GUILE_BEFORE_2_2.
143 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
144 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
145 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
146 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
147 and 'SCM_PORT_TYPE'.
148 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
149 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
150 (gdbscm_memory_port_read, gdbscm_memory_port_write)
151 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
152 [!USING_GUILE_BEFORE_2_2]: New functions.
153 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
154 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
155 'gdbscm_memory_port_read'.
156 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
157 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
158 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
159 function.
160 (ioscm_init_memory_port): Remove.
161 (ioscm_init_memory_port_stream): New function
162 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
163 function.
164 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
165 Return scm_from_uint (0).
166 (gdbscm_set_memory_port_read_buffer_size_x)
167 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
168 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
169 Return scm_from_uint (0).
170 (gdbscm_set_memory_port_write_buffer_size_x)
171 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
172 * configure.ac (try_guile_versions): Add "guile-2.2".
173 * configure: Regenerate.
174 * NEWS: Add entry.
175
aee91db3
TT
1762020-07-18 Tom Tromey <tom@tromey.com>
177
178 * linux-nat.c (linux_multi_process): Remove.
179 (linux_nat_target::supports_multi_process): Return true.
180
0e267416
AB
1812020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * arch/riscv.c (riscv_tdesc_cache): Change map type.
184 (riscv_lookup_target_description): Return pointer out of
185 unique_ptr.
186 * target-descriptions.c (allocate_target_description): Add
187 comment.
188 (target_desc_deleter::operator()): Likewise.
189 * target-descriptions.h (struct target_desc_deleter): Moved to
190 gdbsupport/tdesc.h.
191 (target_desc_up): Likewise.
192
f80c8ec4
TT
1932020-07-17 Tom Tromey <tromey@adacore.com>
194
195 * linux-nat.c (linux_nat_target::supports_non_stop)
196 (linux_nat_target::always_non_stop_p): Use "true".
197 (linux_nat_target::supports_disable_randomization): Use "true" and
198 "false".
199
d0ce17d8
CT
2002020-07-16 Caroline Tice <cmtice@google.com>
201
202 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
203 (RNGLIST_HEADER_SIZE64): New constant definition.
204 (struct dwop_section_names): Add rnglists_dwo.
205 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
206 (struct loclist_header): Rename to 'loclists_rnglists_header'.
207 (struct dwo_sections): Add rnglists field.
208 (read_attribut_reprocess): Add tag parameter.
209 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
210 (cu_debug_rnglists_section): New function (decl & definition).
211 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
212 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
213 die whose range is being checked; get rnglist section from
214 cu_debug_rnglists_section, to get from either objfile or dwo file as
215 appropriate. Add cases for DW_RLE_base_addressx,
216 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
217 the base address to DW_RLE_offset_pairs (not to all ranges), moving
218 test inside if-condition and updating complaint message.
219 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
220 dwarf2_rnglists_process.
221 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
222 dwarf2_ranges_process.
223 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
224 need_ranges_base and update comment appropriately. Also pass die tag
225 to dwarf2_ranges_read.
226 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
227 need_ranges_base and update comment appropriately. Also pass die tag
228 to dwarf2_ranges_process.
229 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
230 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
231 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
232 need_ranges_base and update comment appropriately. Also pass die tag
233 to read_attribute_reprocess and dwarf2_ranges_read.
234 (read_loclist_header): Rename function to read_loclists_rnglists_header,
235 and update function comment appropriately.
236 (read_loclist_index): Call read_loclists_rnglists_header instead of
237 read_loclist_header.
238 (read_rnglist_index): New function.
239 (read_attribute_reprocess): Add tag parameter. Add code for
240 DW_FORM_rnglistx, passing tag to read_rnglist_index.
241 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
242
3dcc261c
AB
2432020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
246 being resolved.
247
ccb9eba6
AB
2482020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * arch-utils.c (show_architecture): Update formatting of messages.
251
cf88be68
SM
2522020-07-12 Simon Marchi <simon.marchi@efficios.com>
253
254 * gdbtypes.h (struct type) <bounds>: Handle array and string
255 types.
256 * ada-lang.c (assign_aggregate): Use type::bounds on
257 array/string type.
258 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
259 * c-varobj.c (c_number_of_children): Likewise.
260 (c_describe_child): Likewise.
261 * eval.c (evaluate_subexp_for_sizeof): Likewise.
262 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
263 (f_type_print_base): Likewise.
264 * f-valprint.c (f77_array_offset_tbl): Likewise.
265 (f77_get_upperbound): Likewise.
266 (f77_print_array_1): Likewise.
267 * guile/scm-type.c (gdbscm_type_range): Likewise.
268 * m2-typeprint.c (m2_array): Likewise.
269 (m2_is_long_set_of_type): Likewise.
270 * m2-valprint.c (get_long_set_bounds): Likewise.
271 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
272 * python/py-type.c (typy_range): Likewise.
273 * rust-lang.c (rust_internal_print_type): Likewise.
274 * type-stack.c (type_stack::follow_types): Likewise.
275 * valarith.c (value_subscripted_rvalue): Likewise.
276 * valops.c (value_cast): Likewise.
277
509971ae
SM
2782020-07-12 Simon Marchi <simon.marchi@efficios.com>
279
280 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
281 callers to use the equivalent accessor methods.
282
107406b7
SM
2832020-07-12 Simon Marchi <simon.marchi@efficios.com>
284
285 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
286 (struct type) <bit_stride>: New method.
287 (TYPE_BIT_STRIDE): Remove.
288 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
289
bb789949
SM
2902020-07-12 Simon Marchi <simon.marchi@efficios.com>
291
292 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
293 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
294 callers to use the equivalent accessor methods instead.
295
39498edb
SM
2962020-07-12 Simon Marchi <simon.marchi@efficios.com>
297
298 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
299 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
300 callers to use the equivalent accessor methods instead.
301
3b606f38
SM
3022020-07-12 Simon Marchi <simon.marchi@efficios.com>
303
304 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
305 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
306 to use dynamic_prop::kind.
307
064d9cb9
SM
3082020-07-12 Simon Marchi <simon.marchi@efficios.com>
309
310 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
311 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
312 to get the bound property's kind and check against
313 PROP_UNDEFINED.
314
5537ddd0
SM
3152020-07-12 Simon Marchi <simon.marchi@efficios.com>
316
317 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
318 all callers to use type::range_bounds followed by
319 dynamic_prop::{low,high}.
320
8c2e4e06
SM
3212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
324 const_val, set_const_val, baton, set_locexpr, set_loclist,
325 set_addr_offset, variant_parts, set_variant_parts,
326 original_type, set_original_type>: New methods.
327 <kind>: Rename to...
328 <m_kind>: ... this. Update all users to use the new methods
329 instead.
330 <data>: Rename to...
331 <m_data>: ... this. Update all users to use the new methods
332 instead.
333
7c6f2712
SM
3342020-07-12 Simon Marchi <simon.marchi@efficios.com>
335
336 * gdbtypes.c (get_discrete_bounds): Return failure if
337 the range type's bounds are not both defined and constant
338 values.
339 (get_array_bounds): Update comment. Remove undefined bound check.
340
599088e3
SM
3412020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
344 the type::bounds method directly.
345
c4dfcb36
SM
3462020-07-12 Simon Marchi <simon.marchi@efficios.com>
347
348 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
349 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
350 are used to set the range type's bounds to use set_bounds.
351
0a278aa7
PW
3522020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
353
354 * exec.c (_initialize_exec): Update exec-file-mismatch help.
355
cce20f10
PA
3562020-07-10 Pedro Alves <pedro@palves.net>
357
358 * gdbthread.h (inferior_ref): Define.
359 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
360 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
361 * thread.c
362 (scoped_restore_current_thread::restore):
363 Adjust to gdb::ref_ptr.
364 (scoped_restore_current_thread::~scoped_restore_current_thread):
365 Remove manual decref handling.
366 (scoped_restore_current_thread::scoped_restore_current_thread):
367 Adjust to use
368 inferior_ref::new_reference/thread_info_ref::new_reference.
369 Incref the thread before calling get_frame_id instead of after.
370 Let TARGET_CLOSE_ERROR propagate.
371
6d7aa592
PA
3722020-07-10 Pedro Alves <pedro@palves.net>
373
374 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
375 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
376 NOT_AVAILABLE_ERROR.
377 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
378 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
379
b3e3a4c1
SM
3802020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
381 Pedro Alves <pedro@palves.net>
382
383 PR gdb/26199
384 * infrun.c (threads_are_resumed_pending_p): Delete.
385 (do_target_wait): Remove threads_are_executing and
386 threads_are_resumed_pending_p checks from the inferior_matches
387 lambda. Update comments.
388
d6cc5d98
PA
3892020-07-10 Pedro Alves <pedro@palves.net>
390
391 PR gdb/26199
392 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
393 executing threads.
394
7d3badc6
PA
3952020-07-10 Pedro Alves <pedro@palves.net>
396
397 PR gdb/26199
398 * infrun.c (handle_no_resumed): Handle multiple targets.
399
42bd97a6
PA
4002020-07-10 Pedro Alves <pedro@palves.net>
401
402 PR gdb/26199
403 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
404 target_is_async_p.
405
43667cc6
PA
4062020-07-10 Pedro Alves <pedro@palves.net>
407
408 PR gdb/26199
409 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
410 threads, not all threads.
411
96118d11
PA
4122020-07-10 Pedro Alves <pedro@palves.net>
413
414 PR gdb/26199
415 * remote.c (remote_target::open_1): Pass remote target pointer as
416 data to create_async_event_handler.
417 (remote_async_inferior_event_handler): Mark async event handler
418 before returning if the remote target still has either pending
419 events or unacknowledged notifications.
420
54904d81
JB
4212020-07-10 John Baldwin <jhb@FreeBSD.org>
422
423 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
424 declaration.
425 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
426 function.
427
f37e5866
JB
4282020-07-09 John Baldwin <jhb@FreeBSD.org>
429
430 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
431 inferior_ptid.
432
fc238d4a
JB
4332020-07-09 John Baldwin <jhb@FreeBSD.org>
434
435 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
436 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
437 AT_FREEBSD_PS_STRINGS.
438
6e2469ff
HD
4392020-07-08 Hannes Domani <ssbssa@yahoo.de>
440
441 * auto-load.c (auto_load_objfile_script_1): Convert drive part
442 of debugfile path on Windows.
443
d1076c41
JB
4442020-07-08 John Baldwin <jhb@FreeBSD.org>
445
446 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
447 argument to 'data'.
448
15f3b077
TT
4492020-07-08 Tom Tromey <tromey@adacore.com>
450
451 * ada-lang.c (ada_exception_message_1): Use read_memory.
452
9fc501fd
AB
4532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 PR python/22748
456 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
457 special handling for inline frames.
458 * findvar.c (value_of_register_lazy): Skip inline frames when
459 creating lazy register values.
460 * frame.c (frame_id_computed_p): Delete definition.
461 * frame.h (frame_id_computed_p): Delete declaration.
462
64cb3757
AB
4632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * NEWS: Mention additions to Python API.
466 * python/py-arch.c (archpy_register_groups): New function.
467 (arch_object_methods): Add 'register_groups' method.
468 * python/py-registers.c (reggroup_iterator_object): New struct.
469 (reggroup_object): New struct.
470 (gdbpy_new_reggroup): New function.
471 (gdbpy_reggroup_to_string): New function.
472 (gdbpy_reggroup_name): New function.
473 (gdbpy_reggroup_iter): New function.
474 (gdbpy_reggroup_iter_next): New function.
475 (gdbpy_new_reggroup_iterator): New function
476 (gdbpy_initialize_registers): Register new types.
477 (reggroup_iterator_object_type): Define new Python type.
478 (gdbpy_reggroup_getset): New static global.
479 (reggroup_object_type): Define new Python type.
480 * python/python-internal.h
481
0f767f94
AB
4822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
483
484 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
485 * python/py-arch.c (archpy_registers): New function.
486 (arch_object_methods): Add 'registers' method.
487 * python/py-registers.c: New file.
488 * python/python-internal.h
489 (gdbpy_new_register_descriptor_iterator): Declare.
490 (gdbpy_initialize_registers): Declare.
491 * python/python.c (do_start_initialization): Call
492 gdbpy_initialize_registers.
493 * NEWS: Mention additions to the Python API.
494
87dbc774
AB
4952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * NEWS: Mention new Python API method.
498 * python/py-unwind.c (pending_framepy_architecture): New function.
499 (pending_frame_object_methods): Add architecture method.
500
3bc98c0c
AB
5012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * gdbarch.c: Regenerate.
504 * gdbarch.h: Regenerate.
505 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
506 (gdbarch_data): Use internal_error for the case where
507 deprecated_set_gdbarch_data was originally needed.
508 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
509 and use passed in obstack.
510 (libunwind_frame_set_descr): Should no longer get back NULL from
511 gdbarch_data.
512 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
513 type.
514 * user-regs.c (user_regs_init): Update parameters, and use passed
515 in obstack.
516 (user_reg_add): Should no longer get back NULL from gdbarch_data.
517 (_initialize_user_regs): Register as a pre-init gdbarch data type.
518
d8cc8af6
TV
5192020-07-06 Tom de Vries <tdevries@suse.de>
520
521 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
522 End-Of-Sequence in lte_is_less_than.
523 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
524 "gdb: Don't reorder line table entries too much when sorting".
525
947f7597
TV
5262020-07-06 Tom de Vries <tdevries@suse.de>
527
528 PR tui/26205
529 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
530
1e7c1b22
TV
5312020-07-05 Tom de Vries <tdevries@suse.de>
532
533 PR build/26187
534 * inferior.h (struct infcall_suspend_state_deleter): If available, use
535 std::uncaught_exceptions instead of deprecated
536 std::uncaught_exception.
537
a36158ec
SM
5382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * macroexp.h (macro_stringify): Return
541 gdb::unique_xmalloc_ptr<char>.
542 * macroexp.c (macro_stringify): Likewise.
543 * macrotab.c (fixup_definition): Update.
544
14d960c8
SM
5452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
546
547 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
548 (lex_one_token): Update.
549 * macroexp.c (struct macro_buffer) <release>: Return
550 gdb::unique_xmalloc_ptr<char>.
551 (macro_stringify): Update.
552 (macro_expand): Update.
553 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
554 * macroexp.h (macro_expand_next): Likewise.
555
211d5b1c
SM
5562020-07-02 Simon Marchi <simon.marchi@efficios.com>
557
558 * macroexp.h (macro_lookup_ftype): Remove.
559 (macro_expand, macro_expand_once, macro_expand_next): Remove
560 lookup function parameters, add scope parameter.
561 * macroexp.c (scan, substitute_args, expand, maybe_expand,
562 macro_expand, macro_expand_once, macro_expand_next): Likewise.
563 * macroscope.h (standard_macro_lookup): Change parameter type
564 to macro_scope.
565 * macroscope.c (standard_macro_lookup): Likewise.
566 * c-exp.y (lex_one_token): Update.
567 * macrocmd.c (macro_expand_command): Likewise.
568 (macro_expand_once_command): Likewise.
569
b1a35af2
SM
5702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * inf-loop.c (inferior_event_handler): Remove client_data param.
573 * inf-loop.h (inferior_event_handler): Likewise.
574 * infcmd.c (step_1): Adjust.
575 * infrun.c (proceed): Adjust.
576 (fetch_inferior_event): Remove client_data param.
577 (infrun_async_inferior_event_handler): Adjust.
578 * infrun.h (fetch_inferior_event): Remove `void *` param.
579 * linux-nat.c (handle_target_event): Adjust.
580 * record-btrace.c (record_btrace_handle_async_inferior_event):
581 Adjust.
582 * record-full.c (record_full_async_inferior_event_handler):
583 Adjust.
584 * remote.c (remote_async_inferior_event_handler): Adjust.
585
1cdf9e33
TT
5862020-07-01 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
589 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
590
32c1e210
TT
5912020-07-01 Tom Tromey <tom@tromey.com>
592
593 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
594 tui_gen_win_info.
595 (tui_win_info::make_window): Merge with
596 tui_gen_win_info::make_window.
597 (tui_win_info::make_visible): Move from tui_gen_win_info.
598 * tui/tui-win.c (tui_win_info::max_width): Move from
599 tui_gen_win_info.
600 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
601 type.
602 <window_factory>: Likewise.
603 * tui/tui-layout.c (tui_win_info::resize): Move from
604 tui_gen_win_info.
605 (make_standard_window): Change return type.
606 (get_locator_window, tui_get_window_by_name): Likewise.
607 (tui_layout_window::apply): Remove a cast.
608 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
609 (struct tui_win_info): Merge with tui_gen_win_info.
610 (struct tui_gen_win_info): Remove.
611
a30cb6da
TT
6122020-07-01 Tom Tromey <tom@tromey.com>
613
614 * tui/tui-stack.h (struct tui_locator_window): Derive from
615 tui_win_info.
616 <do_scroll_horizontal, do_scroll_vertical>: New methods.
617 <can_box>: New method.
618
1eb2161f
TT
6192020-07-01 Tom Tromey <tom@tromey.com>
620
621 * tui/tui-stack.h (struct tui_locator_window): Remove body.
622
7134f2eb
TT
6232020-07-01 Tom Tromey <tom@tromey.com>
624
625 * tui/tui-regs.c (tui_data_window::display_registers_from)
626 (tui_data_window::display_registers_from)
627 (tui_data_window::first_data_item_displayed)
628 (tui_data_window::delete_data_content_windows): Update.
629 (tui_data_window::refresh_window, tui_data_window::no_refresh):
630 Remove.
631 (tui_data_window::check_register_values): Update.
632 (tui_data_item_window::rerender): Add parameters. Update.
633 (tui_data_item_window::refresh_window): Remove.
634 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
635 virtual.
636 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
637 tui_gen_win_info.
638 <refresh_window, max_height, min_height>: Remove.
639 <rerender>: Add parameters.
640 <x, y, visible>: New members.
641 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
642 <m_item_width>: New member.
643
22b7b041
TT
6442020-07-01 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-regs.c (tui_data_window::show_register_group)
647 (tui_data_window::check_register_values): Update.
648 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
649 from item_no.
650
c9753adb
TT
6512020-07-01 Tom Tromey <tom@tromey.com>
652
653 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
654 useless "if".
655
9ab26b4a
TT
6562020-07-01 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
659 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
660
e555083f
TT
6612020-07-01 Tom Tromey <tom@tromey.com>
662
663 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
664 * tui/tui-winsource.h (enum tui_line_or_address_kind)
665 (struct tui_line_or_address): Move from tui-data.h.
666 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
667 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
668 (tui_cmd_window, tui_source_window_base, tui_source_window)
669 (tui_disasm_window): Don't declare.
670 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
671 to tui-winsource.h.
672 (SINGLE_KEY): Move to tui-stack.c.
673
7a02bab7
TT
6742020-07-01 Tom Tromey <tom@tromey.com>
675
676 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
677 std::string.
678 * tui/tui-regs.c (class tab_expansion_file): New.
679 (tab_expansion_file::write): New method.
680 (tui_register_format): Change return type. Use
681 tab_expansion_file.
682 (tui_get_register, tui_data_window::display_registers_from)
683 (tui_data_item_window::rerender): Update.
684 * tui/tui-io.h (tui_expand_tabs): Don't declare.
685 * tui/tui-io.c (tui_expand_tabs): Remove.
686
ea68593b
TT
6872020-07-01 Tom Tromey <tom@tromey.com>
688
689 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
690
a8caed5d
FS
6912020-07-01 Fangrui Song <maskray@google.com>
692
693 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
694
9cdf9820
AKS
6952020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
696
697 * dwarf2/read.c (set_die_type): Removed conditions to restrict
698 forms for DW_AT_associated and DW_AT_allocated attributes,
699 which is already checked in function attr_to_dynamic_prop.
700
a1520ad8
TT
7012020-06-30 Tom Tromey <tromey@adacore.com>
702
703 * dwarf2/read.c (quirk_rust_enum): Correctly call
704 alloc_rust_variant for default-less enum.
705
5ac58899
TT
7062020-06-30 Tom Tromey <tromey@adacore.com>
707
708 PR build/26183:
709 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
710 gdb::to_string.
711
19b187a9
SM
7122020-06-29 Simon Marchi <simon.marchi@efficios.com>
713
714 * gdbarch.sh (displaced_step_copy_insn): Update doc.
715 * gdbarch.h: Re-generate.
716
cd4c4c07
TT
7172020-06-28 Tom Tromey <tom@tromey.com>
718
719 * command.h (cmd_types): Remove.
720 (cmd_type): Don't declare.
721 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
722 typedef.
723 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
724 * cli/cli-decode.c (cmd_type): Remove.
725
05779d57
PA
7262020-06-27 Pedro Alves <palves@redhat.com>
727
728 * fork-child.c (prefork_hook): Adjust.
729 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
730 Delete.
731 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
732 * inferior.c (inferior::set_tty, inferior::tty): New methods.
733 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
734 Remove declarations.
735 (struct inferior) <set_tty, tty>: New methods.
736 (struct inferior) <terminal>: Rename to ...
737 (struct inferior) <m_terminal>: ... this and make private.
738 * main.c (captured_main_1): Adjust.
739 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
740 (mi_cmd_inferior_tty_show): Adjust.
741 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
742 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
743
1776e3e5
NA
7442020-06-26 Nick Alcock <nick.alcock@oracle.com>
745
746 * configure.ac: Add --enable-libctf: handle --disable-static
747 properly.
748 * acinclude.m4: sinclude ../config/enable.m4.
749 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
750 (LIBCTF): Substitute in.
751 (CTF_DEPS): New, likewise.
752 (CLIBS): libctf needs symbols from libbfd: move earlier.
753 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
754 flags.
755 * ctfread.c: Surround in ENABLE_LIBCTF.
756 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
757 * configure: Regenerate.
758 * config.in: Likewise.
759
58373b80
SM
7602020-06-25 Simon Marchi <simon.marchi@efficios.com>
761
762 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
763
277474ee
SM
7642020-06-25 Simon Marchi <simon.marchi@efficios.com>
765
766 * inferior.h (struct inferior) <terminal>: Change type to
767 gdb::unique_xmalloc_ptr<char>.
768 * inferior.c (inferior::~inferior): Don't free inf->terminal.
769 * infcmd.c (set_inferior_io_terminal): Don't free terminal
770 field, adjust to unique pointer.
771 (get_inferior_io_terminal): Adjust to unique pointer.
772
6d74da72
AB
7732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * riscv-tdep.c (riscv_print_registers_info): Loop over all
776 registers, not just the known core set of registers.
777
2e52d038
AB
7782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
781 fflags, frm, and fcsr registers.
782 (riscv_register_reggroup_p): Remove unknown CSRs from save and
783 restore groups.
784 (riscv_tdesc_unknown_reg): New function.
785 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
786 tdesc_use_registers.
787 * riscv-tdep.h (struct gdbarch_tdep): Add
788 unknown_csrs_first_regnum, unknown_csrs_count,
789 duplicate_fflags_regnum, duplicate_frm_regnum, and
790 duplicate_fcsr_regnum fields.
791
be64fd07
AB
7922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * target-descriptions.c (tdesc_use_registers): Add new parameter a
795 callback, use the callback (when not null) to help number unknown
796 registers.
797 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
798 (tdesc_use_registers): Add extra parameter to declaration.
799
3b9fce96
AB
8002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
803 in the file.
804 (class riscv_pending_register_alias): Likewise.
805 (riscv_register_feature::register_info): Change 'required_p' field
806 to 'required', and change its type. Add 'check' member function.
807 (riscv_register_feature::register_info::check): Define new member
808 function.
809 (riscv_xreg_feature): Change initialisation of 'required' field.
810 (riscv_freg_feature): Likewise.
811 (riscv_virtual_feature): Likewise.
812 (riscv_csr_feature): Likewise.
813 (riscv_check_tdesc_feature): Take extra parameter, the csr
814 tdesc_feature, rewrite the function to use the new
815 riscv_register_feature::register_info::check function.
816 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
817
865bad26
AB
8182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
819
820 * features/Makefile: Remove all references to the deleted files
821 below.
822 * features/riscv/32bit-csr.c: Deleted.
823 * features/riscv/32bit-csr.xml: Deleted.
824 * features/riscv/64bit-csr.c: Deleted.
825 * features/riscv/64bit-csr.xml: Deleted.
826 * features/riscv/rebuild-csr-xml.sh: Deleted.
827
ed69cbc8
AB
8282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
831 whitespace error for declaration of names member variable.
832 (struct riscv_register_feature): Add new prefer_first_name member
833 variable, and fix whitespace error in declaration of registers.
834 (riscv_xreg_feature): Initialize prefer_first_name field.
835 (riscv_freg_feature): Likewise.
836 (riscv_virtual_feature): Likewise.
837 (riscv_csr_feature): Likewise.
838 (riscv_register_name): Expand on comments. Remove register name
839 modifications for CSR and virtual registers.
840
4445e8f5
AB
8412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
844 errors.
845
767a879e
AB
8462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
849 riscv-opc.h.
850 (class riscv_pending_register_alias): New class.
851 (riscv_check_tdesc_feature): Take vector of pending aliases and
852 populate it as appropriate.
853 (riscv_setup_register_aliases): Delete.
854 (riscv_gdbarch_init): Create vector of pending aliases and pass it
855 to riscv_check_tdesc_feature in all cases. Use the vector to
856 create the register aliases.
857
bb6e55f3
RO
8582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
859
860 * sol2-tdep.c (sol2_static_transform_name): Remove.
861 (sol2_init_abi): Don't register it.
862 * gdbarch.sh (static_transform_name): Remove.
863 * gdbarch.c, gdbarch.h: Regenerate.
864
865 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
866 gdbarch_static_transform_name.
867 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
868 * stabsread.c (define_symbol) <'X'>: Remove.
869 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
870 handling.
871 <'V'>: Likewise.
872 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
873 <'S'>: Remove call to gdbarch_static_transform_name.
874
c6d36836
RO
8752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876
877 * procfs.c (procfs_pre_trace): New function.
878 (procfs_target::create_inferior): Pass it to fork_inferior.
879
a7e6196b
RO
8802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
881
882 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
883 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
884 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
885 sol2-tdep.o, sparc-sol2-tdep.o.
886 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
887 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
888 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
889 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
890
d412e696
RO
8912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
892
893 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
894 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
895 Call sol2_init_abi.
896 Remove calls to set_gdbarch_skip_solib_resolver,
897 set_gdbarch_core_pid_to_str.
898 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
899 (i386_sol2_static_transform_name): Remove.
900 (i386_sol2_init_abi): Call sol2_init_abi.
901 Remove calls to set_gdbarch_sofun_address_maybe_missing,
902 set_gdbarch_static_transform_name,
903 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
904 Use sol2_sigtramp_p.
905 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
906 (sol2_sigtramp_p): New function.
907 (sol2_static_transform_name): New function.
908 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
909 (sol2_init_abi): New function.
910 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
911 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
912 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
913 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
914 (sparc_sol2_static_transform_name): Remove.
915 (sparc32_sol2_init_abi): Call sol2_init_abi.
916 Remove calls to set_gdbarch_sofun_address_maybe_missing,
917 set_gdbarch_static_transform_name,
918 set_gdbarch_skip_solib_resolver,
919 set_gdbarch_core_pid_to_str.
920 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
921 (sparc_sol2_static_transform_name): Remove
922 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
923 call sol2_sigtramp_p.
924 (sparc64_sol2_init_abi): Call sol2_init_abi.
925 Remove calls to set_gdbarch_sofun_address_maybe_missing,
926 set_gdbarch_static_transform_name,
927 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
928
a8654e7d
PW
9292020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
930
931 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
932 * exec.c (validate_exec_file): If from_tty, set both
933 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
934 * symfile.c (symbol_file_add_with_addrs): if always_confirm
935 and from_tty, unconditionally ask a confirmation.
936
caa7fd04
AB
9372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
938
939 * target-descriptions.c (tdesc_architecture_name): Protect against
940 NULL pointer dereference.
941 (maint_print_xml_tdesc_cmd): New function.
942 (_initialize_target_descriptions): Register new 'maint print
943 xml-tdesc' command and give it the filename completer.
944 * NEWS: Mention new 'maint print xml-tdesc' command.
945
fbf42f4e
AB
9462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * target-descriptions.c (class tdesc_compatible_info): New class.
949 (struct target_desc): Change type of compatible vector.
950 (tdesc_compatible_p): Update for change in type of
951 target_desc::compatible.
952 (tdesc_compatible_info_list): New function.
953 (tdesc_compatible_info_arch_name): New function.
954 (tdesc_add_compatible): Update for change in type of
955 target_desc::compatible.
956 (print_c_tdesc::visit_pre): Likewise.
957
20821f4e
AB
9582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
961 whitespace to underscore.
962 (maint_print_c_tdesc_cmd): Use fake filename for target
963 descriptions that came from the target.
964 (_initialize_target_descriptions): Add filename command completion
965 for 'maint print c-tdesc'.
966
1fb5ee62
SM
9672020-06-23 Simon Marchi <simon.marchi@efficios.com>
968
969 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
970 lines.
971
fc3ecb3e
SM
9722020-06-23 Simon Marchi <simon.marchi@efficios.com>
973
974 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
975 lines.
976 (dwarf2_find_location_expression): Likewise.
977 (call_site_parameter_matches): Likewise.
978 (dwarf2_compile_expr_to_ax): Likewise.
979 (disassemble_dwarf_expression): Likewise.
980 (loclist_describe_location): Likewise.
981
236ef034
PA
9822020-06-23 Pedro Alves <palves@redhat.com>
983
984 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
985 progspace-and-thread.h. Include scoped-mock-context.h instead.
986 (register_to_value_test): Use scoped_mock_context.
987 * regcache.c: Include "scoped-mock-context.h".
988 (cooked_read_test): Don't error out if a target is already pushed.
989 Use scoped_mock_context. Adjust.
990 * scoped-mock-context.h: New file.
991
39e7ecca
AB
9922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
993
994 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
995 initializer.
996 (ada_language::is_string_type_p): New member function.
997 * c-lang.c (c_language_data): Delete la_is_string_type_p
998 initializer.
999 (cplus_language_data): Likewise.
1000 (asm_language_data): Likewise.
1001 (minimal_language_data): Likewise.
1002 * d-lang.c (d_language_data): Likewise.
1003 * f-lang.c (f_is_string_type_p): Delete function, implementation
1004 moved to f_language::is_string_type_p.
1005 (f_language_data): Delete la_is_string_type_p initializer.
1006 (f_language::is_string_type_p): New member function,
1007 implementation from f_is_string_type_p.
1008 * go-lang.c (go_is_string_type_p): Delete function, implementation
1009 moved to go_language::is_string_type_p.
1010 (go_language_data): Delete la_is_string_type_p initializer.
1011 (go_language::is_string_type_p): New member function,
1012 implementation from go_is_string_type_p.
1013 * language.c (language_defn::is_string_type_p): Define new member
1014 function.
1015 (default_is_string_type_p): Make static, add comment copied from
1016 header file.
1017 (unknown_language_data): Delete la_is_string_type_p initializer.
1018 (unknown_language::is_string_type_p): New member function.
1019 (auto_language_data): Delete la_is_string_type_p initializer.
1020 (auto_language::is_string_type_p): New member function.
1021 * language.h (language_data): Delete la_is_string_type_p field.
1022 (language_defn::is_string_type_p): Declare new function.
1023 (default_is_string_type_p): Delete desclaration, move comment to
1024 definition.
1025 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1026 moved to m2_language::is_string_type_p.
1027 (m2_language_data): Delete la_is_string_type_p initializer.
1028 (m2_language::is_string_type_p): New member function,
1029 implementation from m2_is_string_type_p.
1030 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1031 initializer.
1032 * opencl-lang.c (opencl_language_data): Likewise.
1033 * p-lang.c (pascal_is_string_type_p): Delete function,
1034 implementation moved to pascal_language::is_string_type_p.
1035 (pascal_language_data): Delete la_is_string_type_p initializer.
1036 (pascal_language::is_string_type_p): New member function,
1037 implementation from pascal_is_string_type_p.
1038 * rust-lang.c (rust_is_string_type_p): Delete function,
1039 implementation moved to rust_language::is_string_type_p.
1040 (rust_language_data): Delete la_is_string_type_p initializer.
1041 (rust_language::is_string_type_p): New member function,
1042 implementation from rust_is_string_type_p.
1043 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1044 is_string_type_p.
1045
4ffc13fb
AB
10462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * ada-lang.c (ada_language_data): Delete la_print_typedef
1049 initializer.
1050 (ada_language::print_typedef): New member function.
1051 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1052 (cplus_language_data): Likewise.
1053 (asm_language_data): Likewise.
1054 (minimal_language_data): Likewise.
1055 * d-lang.c (d_language_data): Likewise.
1056 * f-lang.c (f_language_data): Likewise.
1057 (f_language::print_typedef): New member function.
1058 * go-lang.c (go_language_data): Delete la_print_typedef
1059 initializer.
1060 * language.c (language_defn::print_typedef): Define member
1061 function.
1062 (unknown_language_data): Delete la_print_typedef initializer.
1063 (unknown_language::print_typedef): New member function.
1064 (auto_language_data): Delete la_print_typedef initializer.
1065 (auto_language::print_typedef): New member function.
1066 * language.h (language_data): Delete la_print_typedef field.
1067 (language_defn::print_typedef): Declare new member function.
1068 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1069 (default_print_typedef): Delete declaration.
1070 * m2-lang.c (m2_language_data): Delete la_print_typedef
1071 initializer.
1072 (m2_language::print_typedef): New member function.
1073 * objc-lang.c (objc_language_data): Delete la_print_typedef
1074 initializer.
1075 * opencl-lang.c (opencl_language_data): Likewise.
1076 * p-lang.c (pascal_language_data): Likewise.
1077 (pascal_language::print_typedef): New member function.
1078 * rust-lang.c (rust_print_typedef): Delete function,
1079 implementation moved to rust_language::print_typedef.
1080 (rust_language): Delete la_print_typedef initializer.
1081 (rust_language::print_typedef): New member function,
1082 implementation from rust_print_typedef.
1083 * typeprint.c (default_print_typedef): Delete.
1084
d711ee67
AB
10852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1088 (ada_language::printstr): New member function.
1089 * c-lang.c (c_language_data): Delete la_printstr initializer.
1090 (cplus_language_data): Likewise.
1091 (asm_language_data): Likewise.
1092 (minimal_language_data): Likewise.
1093 * d-lang.c (d_language_data): Likewise.
1094 * f-lang.c (f_printstr): Rename to f_language::printstr.
1095 (f_language_data): Delete la_printstr initializer.
1096 (f_language::printstr): New member function, implementation from
1097 f_printstr.
1098 * go-lang.c (go_language_data): Delete la_printstr initializer.
1099 * language.c (language_defn::printstr): Define new member
1100 function.
1101 (unk_lang_printstr): Delete.
1102 (unknown_language_data): Delete la_printstr initializer.
1103 (unknown_language::printstr): New member function.
1104 (auto_language_data): Delete la_printstr initializer.
1105 (auto_language::printstr): New member function.
1106 * language.h (language_data): Delete la_printstr field.
1107 (language_defn::printstr): Declare new member function.
1108 (LA_PRINT_STRING): Update call to printstr.
1109 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1110 (m2_language_data): Delete la_printstr initializer.
1111 (m2_language::printstr): New member function, implementation from
1112 m2_printstr.
1113 * objc-lang.c (objc_language_data): Delete la_printstr
1114 initializer.
1115 * opencl-lang.c (opencl_language_data): Likewise.
1116 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1117 (pascal_language_data): Delete la_printstr initializer.
1118 (pascal_language::printstr): New member function, implementation
1119 from pascal_printstr.
1120 * p-lang.h (pascal_printstr): Delete declaration.
1121 * rust-lang.c (rust_printstr): Update header comment.
1122 (rust_language_data): Delete la_printstr initializer.
1123 (rust_language::printstr): New member function.
1124
52b50f2c
AB
11252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1128 (ada_language::printchar): New member function.
1129 * c-lang.c (c_language_data): Delete la_printchar initializer.
1130 (cplus_language_data): Likewise.
1131 (asm_language_data): Likewise.
1132 (minimal_language_data): Likewise.
1133 * d-lang.c (d_language_data): Likewise.
1134 * f-lang.c (f_printchar): Rename to f_language::printchar.
1135 (f_language_data): Delete la_printchar initializer.
1136 (f_language::printchar): New member function, implementation from
1137 f_printchar.
1138 * go-lang.c (go_language_data): Delete la_printchar initializer.
1139 * language.c (unk_lang_printchar): Delete.
1140 (language_defn::printchar): Define new member function.
1141 (unknown_language_data): Delete la_printchar initializer.
1142 (unknown_language::printchar): New member function.
1143 (auto_language_data): Delete la_printchar initializer.
1144 (auto_language::printchar): New member function.
1145 * language.h (language_data): Delete la_printchar field.
1146 (language_defn::printchar): Declare new member function.
1147 (LA_PRINT_CHAR): Update call to printchar.
1148 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1149 (m2_language::printchar): New member function.
1150 * objc-lang.c (objc_language_data): Delete la_printchar
1151 initializer.
1152 * opencl-lang.c (opencl_language_data): Likewise.
1153 * p-lang.c (pascal_language_data): Delete la_printchar
1154 initializer.
1155 (pascal_language::printchar): New member function.
1156 * rust-lang.c (rust_printchar): Rename to
1157 rust_language::printchar.
1158 (rust_language_data): Delete la_printchar initializer.
1159 (rust_language::printchar): New member function, implementation
1160 from rust_printchar.
1161
ec8cec5b
AB
11622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1165 (ada_language_data): Delete la_emitchar initializer.
1166 (ada_language::emitchar): New member function, implementation from
1167 emit_char.
1168 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1169 (cplus_language_data): Likewise.
1170 (asm_language_data): Likewise.
1171 (minimal_language_data): Likewise.
1172 * d-lang.c (d_language_data): Likewise.
1173 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1174 (f_language_data): Delete la_emitchar initializer.
1175 (f_language::emitchar): New member function, implementation from
1176 f_emit_char.
1177 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1178 * language.c (unk_lang_emit_char): Delete.
1179 (language_defn::emitchar): New member function definition.
1180 (unknown_language_data): Delete la_emitchar initializer.
1181 (unknown_language::emitchar): New member function.
1182 (auto_language_data): Delete la_emitchar initializer.
1183 (auto_language::emitchar): New member function.
1184 * language.h (language_data): Delete la_emitchar field.
1185 (language_defn::emitchar): New member field declaration.
1186 (LA_EMIT_CHAR): Update call to emitchar.
1187 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1188 (m2_language_data): Delete la_emitchar initializer.
1189 (m2_language::emitchar): New member function, implementation from
1190 m2_emit_char.
1191 * objc-lang.c (objc_language_data): Delete la_emitchar
1192 initializer.
1193 * opencl-lang.c (opencl_language_data): Likewise.
1194 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1195 (pascal_language_data): Delete la_emitchar initializer.
1196 (pascal_language::emitchar): New member function, implementation
1197 from pascal_emit_char.
1198 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1199 (rust_language_data): Delete la_emitchar initializer.
1200 (rust_language::emitchar): New member function, implementation
1201 from rust_emitchar.
1202
1bf9c363
AB
12032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1206 (ada_language_data): Delete la_post_parser initializer.
1207 (ada_language::post_parser): New member function.
1208 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1209 (cplus_language_data): Likewise.
1210 (asm_language_data): Likewise.
1211 (minimal_language_data): Likewise.
1212 * d-lang.c (d_language_data): Likewise.
1213 * f-lang.c (f_language_data): Likewise.
1214 * go-lang.c (go_language_data): Likewise.
1215 * language.c (unknown_language_data): Likewise.
1216 (auto_language_data): Likewise.
1217 * language.h (language_data): Delete la_post_parser field.
1218 (language_defn::post_parser): New member function.
1219 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1220 * objc-lang.c (objc_language_data): Likewise.
1221 * opencl-lang.c (opencl_language_data): Likewise.
1222 * p-lang.c (pascal_language_data): Likewise.
1223 * parse.c (parse_exp_in_context): Update call to post_parser.
1224 (null_post_parser): Delete definition.
1225 * parser-defs.h (null_post_parser): Delete declaration.
1226 * rust-lang.c (rust_language_data): Delete la_post_parser
1227 initializer.
1228
87afa652
AB
12292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * ada-lang.c (parse): Rename to ada_language::parser.
1232 (ada_language_data): Delete la_parser initializer.
1233 (ada_language::parser): New member function, implementation from
1234 parse.
1235 * c-lang.c (c_language_data): Delete la_parser initializer.
1236 (cplus_language_data): Likewise.
1237 (asm_language_data): Likewise.
1238 (minimal_language_data): Likewise.
1239 * d-lang.c (d_language_data): Likewise.
1240 (d_language::parser): New member function.
1241 * f-lang.c (f_language_data): Delete la_parser initializer.
1242 (f_language::parser): New member function.
1243 * go-lang.c (go_language_data): Delete la_parser initializer.
1244 (go_language::parser): New member function.
1245 * language.c (unk_lang_parser): Delete.
1246 (language_defn::parser): Define new member function.
1247 (unknown_language_data): Delete la_parser initializer.
1248 (unknown_language::parser): New member function.
1249 (auto_language_data): Delete la_parser initializer.
1250 (auto_language::parser): New member function.
1251 * language.h (language_data): Delete la_parser field.
1252 (language_defn::parser): Declare new member function.
1253 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1254 (m2_language::parser): New member function.
1255 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1256 * opencl-lang.c (opencl_language_data): Likewise.
1257 * p-lang.c (pascal_language_data): Likewise.
1258 (pascal_language::parser): New member function.
1259 * parse.c (parse_exp_in_context): Update call to parser.
1260 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1261 (rust_language::parser): New member function.
1262
37825800
AB
12632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * top.c (print_gdb_configuration): Print --with-python-libdir
1266 configuration value.
1267
5b860c93
PW
12682020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1269
1270 * NEWS: Mention change to the alias command.
1271
cf00cd6f
PW
12722020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1273
1274 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1275 (alias_command_completer)
1276 (make_alias_options_def_group): New functions.
1277 (alias_opts, alias_option_defs): New struct and array.
1278 (alias_usage_error): Update usage.
1279 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1280 Use option framework.
1281 (_initialize_cli_cmds): Update alias command help.
1282 Update aliases command help.
1283 (show_user):
1284 Add NULL for new default_args lookup_cmd argument.
1285 (valid_command_p): Rename to validate_aliased_command.
1286 Add NULL for new default_args lookup_cmd argument. Verify that the
1287 aliased_command has no default args.
1288 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1289 (lookup_cmd_1, lookup_cmd): New argument default_args.
1290 (add_alias_cmd):
1291 Add NULL for new default_args lookup_cmd argument.
1292 (print_help_for_command): Show default args under the layout
1293 alias some_alias = some_aliased_cmd some_alias_default_arg.
1294 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1295 xfree default_args in destructor.
1296 * cli/cli-script.c (process_next_line, do_define_command):
1297 Add NULL for new default_args lookup_cmd argument.
1298 * command.h: Declare new default_args argument in lookup_cmd
1299 and lookup_cmd_1.
1300 * completer.c (complete_line_internal_1):
1301 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1302 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1303 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1304 Likewise.
1305 * infcmd.c (_initialize_infcmd): Likewise.
1306 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1307 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1308 * python/py-param.c (add_setshow_generic): Likewise.
1309 * remote.c (_initialize_remote): Likewise.
1310 * top.c (execute_command): Prepend default_args if command has some.
1311 (set_verbose):
1312 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1313 * tracepoint.c (validate_actionline, encode_actions_1):
1314 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1315
bd920864
TBA
13162020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317
1318 * jit.c (jit_read_descriptor): Use bool as the return type.
1319 (jit_breakpoint_re_set_internal): Use bool as the return type.
1320 Invert the return value logic; return true if the jit breakpoint
1321 has been successfully initialized.
1322 (jit_inferior_init): Update the call to
1323 jit_breakpoint_re_set_internal.
1324
f8098322
PA
13252020-06-22 Pedro Alves <palves@redhat.com>
1326
1327 PR gdb/25939
1328 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1329 Use the current inferior instead. Don't return
1330 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1331 wait again.
1332 * sol-thread.c (sol_thread_target::wait): Don't reference
1333 inferior_ptid.
1334 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1335 (sol_update_thread_list_callback): Use the current inferior's pid
1336 instead of inferior_ptid.
1337
196535a6
RO
13382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1339
1340 * procfs.c: Cleanup many comments.
1341
1342 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1343 (AFTER_WATCHFLAG): Replace by value.
1344
1345 (MAIN_PROC_NAME_FORMAT): Inline ...
1346 (create_procinfo): ... here.
1347
1348 (procfs_debug_inferior): Remove SYS_exec handling.
1349 (syscall_is_exec): Likewise.
1350 (procfs_set_exec_trap): Likewise.
1351
1352 (syscall_is_lwp_exit): Inline in callers.
1353 (syscall_is_exit): Likewise.
1354 (syscall_is_exec): Likewise.
1355 (syscall_is_lwp_create): Likewise.
1356
1357 (invalidate_cache): Remove #if 0 code.
1358
1359 (make_signal_thread_runnable): Remove.
1360 (procfs_target::resume): Remove #if 0 code.
1361
cf6f3e86
RO
13622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1363
1364 PR gdb/25939
1365 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1366 call ...
1367 (procfs_target::create_inferior): ... here.
1368
48e9cc84
PW
13692020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1370
1371 * exec.c (validate_exec_file): Ensure the build-id is up to
1372 date by calling reopen_exec_file (that checks file timestamp
1373 to decide to re-read the file).
1374
3922b302
PA
13752020-06-18 Pedro Alves <palves@redhat.com>
1376
1377 PR gdb/25412
1378 * gdbthread.h (delete_thread, delete_thread_silent)
1379 (find_thread_ptid): Update comments.
1380 * thread.c (current_thread_): New global.
1381 (is_current_thread): Move higher, and reimplement.
1382 (inferior_thread): Reimplement.
1383 (set_thread_exited): Use bool. Add assertions.
1384 (add_thread_silent): Simplify thread-reuse handling by always
1385 calling delete_thread.
1386 (delete_thread): Remove intro comment.
1387 (find_thread_ptid): Skip exited threads.
1388 (switch_to_thread_no_regs): Write to current_thread_.
1389 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1390 INFERIOR_PTID. Clear current_thread_.
1391
6dbdab44
PA
13922020-06-18 Pedro Alves <palves@redhat.com>
1393
1394 * aix-thread.c (pd_update): Use switch_to_thread.
1395
2da4b788
PA
13962020-06-18 Pedro Alves <palves@redhat.com>
1397
1398 * ravenscar-thread.c (ravenscar_thread_target): Update.
1399 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1400 (ravenscar_thread_target::add_active_thread): ... this. Don't
1401 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1402 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1403
50838d1b
PA
14042020-06-18 Pedro Alves <palves@redhat.com>
1405
1406 * nat/windows-nat.c (current_windows_thread): Remove.
1407 * nat/windows-nat.h (current_windows_thread): Remove.
1408 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1409 Adjust.
1410 (display_selectors): Adjust to fetch the current
1411 windows_thread_info based on inferior_ptid.
1412 (fake_create_process): No longer write to current_windows_thread.
1413 (windows_nat_target::get_windows_debug_event):
1414 Don't set inferior_ptid or current_windows_thread.
1415 (windows_nat_target::wait): Adjust to not rely on
1416 current_windows_thread.
1417 (do_initial_windows_stuff): Now a method of windows_nat_target.
1418 Switch to the last_ptid thread.
1419 (windows_nat_target::attach): Adjust.
1420 (windows_nat_target::detach): Use switch_to_no_thread instead of
1421 writing to inferior_ptid directly.
1422 (windows_nat_target::create_inferior): Adjust.
1423
31ce04e9
PA
14242020-06-18 Pedro Alves <palves@redhat.com>
1425
1426 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1427
1ee1a363
PA
14282020-06-18 Pedro Alves <palves@redhat.com>
1429
1430 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1431 after creating it, instead of writing to inferior_ptid. Don't
1432 write to inferior_ptid.
1433
6d350754
PA
14342020-06-18 Pedro Alves <palves@redhat.com>
1435
1436 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1437
5d971d48
PA
14382020-06-18 Pedro Alves <palves@redhat.com>
1439
1440 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1441 it, instead of writing to inferior_ptid.
1442
86e57d1b
PA
14432020-06-18 Pedro Alves <palves@redhat.com>
1444
1445 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1446 to inferior_ptid.
1447
f2e1c129
PA
14482020-06-18 Pedro Alves <palves@redhat.com>
1449
1450 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1451 instead of writing to inferior_ptid directly.
1452
60db1b85
PA
14532020-06-18 Pedro Alves <palves@redhat.com>
1454
1455 * corelow.c (core_target::close): Use switch_to_no_thread instead
1456 of writing to inferior_ptid directly.
1457 (add_to_thread_list, core_target_open): Use switch_to_thread
1458 instead of writing to inferior_ptid directly.
1459
fe7d6a8d
PA
14602020-06-18 Pedro Alves <palves@redhat.com>
1461
1462 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1463 inferior_ptid.
1464 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1465 inferior_ptid.
1466 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1467 inferior_ptid directly.
1468 (darwin_nat_target::init_thread_list): Switch to thread, instead
1469 of writing to inferior_ptid.
1470 (darwin_nat_target::attach): Don't write to inferior_ptid.
1471 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1472
975f8708
PA
14732020-06-18 Pedro Alves <palves@redhat.com>
1474
1475 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1476 thread.
1477 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1478 Instead use switch_to_thread.
1479 (gnu_nat_target::detach): Use switch_to_no_thread
1480 instead of writing to inferior_ptid directly. Used passed-in
1481 inferior instead of looking up the inferior by pid.
1482
1a204730
PA
14832020-06-18 Pedro Alves <palves@redhat.com>
1484
1485 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1486 inferior_ptid.
1487
ebe84f23
PA
14882020-06-18 Pedro Alves <palves@redhat.com>
1489
1490 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1491 inferior_ptid.
1492 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1493 thread.
1494 (nto_procfs_target::detach): Avoid referencing
1495 inferior_ptid. Use switch_to_no_thread instead of writing to
1496 inferior_ptid directly.
1497 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1498 instead of writing to inferior_ptid directly.
1499 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1500 to thread.
1501
191f02e5
PA
15022020-06-18 Pedro Alves <palves@redhat.com>
1503
1504 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1505 after creating it, instead of writing to inferior_ptid.
1506 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1507 to inferior_ptid directly.
1508 (gdbsim_target::wait): Don't write to inferior_ptid.
1509
0ac55310
PA
15102020-06-18 Pedro Alves <palves@redhat.com>
1511
1512 * remote.c (remote_target::remote_notice_new_inferior): Use
1513 switch_to_thread instead of writing to inferior_ptid directly.
1514 (remote_target::add_current_inferior_and_thread): Use
1515 switch_to_no_thread instead of writing to inferior_ptid directly.
1516 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1517 and switch_to_thread instead of using set_current_inferior or
1518 writing to inferior_ptid directly.
1519
5233f39b
PA
15202020-06-18 Pedro Alves <palves@redhat.com>
1521
1522 * tracectf.c (ctf_target_open): Switch to added thread instead of
1523 writing to inferior_ptid directly.
1524 (ctf_target::close): Use switch_to_no_thread instead of writing to
1525 inferior_ptid directly.
1526
087e161b
PA
15272020-06-18 Pedro Alves <palves@redhat.com>
1528
1529 * tracefile-tfile.c (tfile_target_open): Don't write to
1530 inferior_ptid directly, instead switch to added thread.
1531 (tfile_target::close): Use switch_to_no_thread instead of writing
1532 to inferior_ptid directly.
1533
7fb43e53
PA
15342020-06-18 Pedro Alves <palves@redhat.com>
1535
1536 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1537 (procfs_target::detach): Use switch_to_no_thread
1538 instead of writing to inferior_ptid directly.
1539 (do_attach): Change return type to void. Switch to the added
1540 thread.
1541 (procfs_target::create_inferior): Switch to the added thread.
1542 (procfs_do_thread_registers): Don't write to inferior_ptid.
1543
18493a00
PA
15442020-06-18 Pedro Alves <palves@redhat.com>
1545
1546 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1547 of writing to inferior_ptid.
1548 (scoped_restore_exited_inferior): Delete.
1549 (handle_vfork_child_exec_or_exit): Simplify using
1550 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1551 instead of writing to inferior_ptid.
1552 (THREAD_STOPPED_BY): Delete.
1553 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1554 (thread_stopped_by_hw_breakpoint): Delete.
1555 (save_waitstatus): Use
1556 scoped_restore_current_thread+switch_to_thread, and call
1557 target_stopped_by_watchpoint instead of
1558 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1559 instead of thread_stopped_by_sw_breakpoint, and
1560 target_stopped_by_hw_breakpoint instead of
1561 thread_stopped_by_hw_breakpoint.
1562 (handle_inferior_event)
1563 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1564 inferior_ptid directly, nor
1565 set_current_inferior/set_current_program_space. Use
1566 switch_to_thread / switch_to_inferior_no_thread instead.
1567
a0776b13
PA
15682020-06-18 Pedro Alves <palves@redhat.com>
1569
1570 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1571 instead of writing to inferior_ptid.
1572
6155c136
PA
15732020-06-18 Pedro Alves <palves@redhat.com>
1574
1575 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1576 added thread.
1577 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1578 to the added thread.
1579 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1580 instead of writing to inferior_ptid.
1581
c5316fc6
PA
15822020-06-18 Pedro Alves <palves@redhat.com>
1583
1584 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1585 (register_to_value_test): Mock a program_space too. Heap-allocate
1586 the address space. Don't write to inferior_ptid. Use
1587 switch_to_thread instead.
1588
8df01799
PA
15892020-06-18 Pedro Alves <palves@redhat.com>
1590
1591 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1592 Delete.
1593 (find_signalled_thread()): New, factored out from
1594 linux_make_corefile_notes and adjusted to handle exited threads.
1595 (linux_make_corefile_notes): Adjust to use the new
1596 find_signalled_thread.
1597
41792d68
PA
15982020-06-18 Pedro Alves <palves@redhat.com>
1599
1600 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1601 of saving/restoring inferior_ptid.
1602
612f258a
TT
16032020-06-17 Tom Tromey <tom@tromey.com>
1604
1605 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1606 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1607 declare.
1608 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1609
efb763a5
SM
16102020-06-15 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1613 of partial symtabs.
1614
2951f6c0
SM
16152020-06-17 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * regformats/reg-arm.dat: Remove.
1618 * regformats/reg-bfin.dat: Remove.
1619 * regformats/reg-cris.dat: Remove.
1620 * regformats/reg-crisv32.dat: Remove.
1621 * regformats/reg-m32r.dat: Remove.
1622 * regformats/reg-tilegx.dat: Remove.
1623 * regformats/reg-tilegx32.dat: Remove.
1624
7d458ea5
SM
16252020-06-17 Simon Marchi <simon.marchi@efficios.com>
1626
1627 * features/Makefile (WHICH): Remove arm files.
1628 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1629 * regformats/arm/arm-with-neon.dat: Remove.
1630 * regformats/arm/arm-with-vfpv2.dat: Remove.
1631 * regformats/arm/arm-with-vfpv3.dat: Remove.
1632
3af96c0d
SM
16332020-06-17 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * features/Makefile (XMLTOC): Remove rx.xml.
1636
b25e22fd
PA
16372020-06-17 Pedro Alves <palves@redhat.com>
1638
1639 * gdbthread.h (thread_control_state) <trap_expected> Update
1640 comments.
1641
a78a19b1
AB
16422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1645 ada_language::lookup_symbol_nonlocal.
1646 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1647 (ada_language::lookup_symbol_nonlocal): New member function,
1648 implementation from ada_lookup_symbol_nonlocal.
1649 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1650 initializer.
1651 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1652 initializer.
1653 (cplus_language::lookup_symbol_nonlocal): New member function.
1654 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1655 (minimal_language_data) Likewise.
1656 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1657 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1658 initializer.
1659 (d_language::lookup_symbol_nonlocal): New member function.
1660 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1661 initializer.
1662 (f_language::lookup_symbol_nonlocal): New member function.
1663 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1664 initializer.
1665 * language.c (unknown_language_data): Likewise.
1666 (auto_language_data): Likewise.
1667 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1668 field.
1669 (language_defn::lookup_symbol_nonlocal): New member function.
1670 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1671 initializer.
1672 * objc-lang.c (objc_language_data): Likewise.
1673 * opencl-lang.c (opencl_language_data): Likewise.
1674 * p-lang.c (pascal_language_data): Likewise.
1675 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1676 rust_language::lookup_symbol_nonlocal.
1677 (rust_language_data): Delete la_lookup_symbol_nonlocal
1678 initializer.
1679 (rust_language::lookup_symbol_nonlocal): New member function,
1680 implementation from rust_lookup_symbol_nonlocal.
1681 * symtab.c (lookup_symbol_aux): Update call to
1682 lookup_symbol_nonlocal.
1683 (basic_lookup_symbol_nonlocal): Rename to...
1684 (language_defn::lookup_symbol_nonlocal): ...this, and update
1685 header comment. Remove language_defn parameter, and replace with
1686 uses of `this'.
1687 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1688
ebe2334e
AB
16892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1692 initializer.
1693 (ada_language::value_print_inner): New member function.
1694 * c-lang.c (c_language_data): Delete la_value_print_inner
1695 initializer.
1696 (cplus_language_data): Likewise.
1697 (asm_language_data): Likewise.
1698 (minimal_language_data): Likewise.
1699 * d-lang.c (d_language_data): Likewise.
1700 (d_language::value_print_inner): New member function.
1701 * f-lang.c (f_language_data): Delete la_value_print_inner
1702 initializer.
1703 (f_language::value_print_inner): New member function.
1704 * f-lang.h (f_value_print_innner): Rename to...
1705 (f_value_print_inner): ...this (note spelling of 'inner').
1706 * f-valprint.c (f_value_print_innner): Rename to...
1707 (f_value_print_inner): ...this (note spelling of 'inner').
1708 * go-lang.c (go_language_data): Delete la_value_print_inner
1709 initializer.
1710 (go_language::value_print_inner): New member function.
1711 * language.c (language_defn::value_print_inner): Define new member
1712 function.
1713 (unk_lang_value_print_inner): Delete.
1714 (unknown_language_data): Delete la_value_print_inner initializer.
1715 (unknown_language::value_print_inner): New member function.
1716 (auto_language_data): Delete la_value_print_inner initializer.
1717 (auto_language::value_print_inner): New member function.
1718 * language.h (language_data): Delete la_value_print_inner field.
1719 (language_defn::value_print_inner): Delcare new member function.
1720 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1721 initializer.
1722 (m2_language::value_print_inner): New member function.
1723 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1724 initializer.
1725 * opencl-lang.c (opencl_language_data): Likewise.
1726 * p-lang.c (pascal_language_data): Likewise.
1727 (pascal_language::value_print_inner): New member function.
1728 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1729 initializer.
1730 (rust_language::value_print_inner): New member function.
1731 * valprint.c (do_val_print): Update call to value_print_inner.
1732
a1d1fa3e
AB
17332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * ada-lang.c (ada_language_data): Delete la_value_print
1736 initializer.
1737 (ada_language::value_print): New member function.
1738 * c-lang.c (c_language_data): Delete la_value_print initializer.
1739 (cplus_language_data): Likewise.
1740 (asm_language_data): Likewise.
1741 (minimal_language_data): Likewise.
1742 * d-lang.c (d_language_data): Likewise.
1743 * f-lang.c (f_language_data): Likewise.
1744 * go-lang.c (go_language_data): Likewise.
1745 * language.c (unk_lang_value_print): Delete.
1746 (language_defn::value_print): Define new member function.
1747 (unknown_language_data): Delete la_value_print initializer.
1748 (unknown_language::value_print): New member function.
1749 (auto_language_data): Delete la_value_print initializer.
1750 (auto_language::value_print): New member function.
1751 * language.h (language_data): Delete la_value_print field.
1752 (language_defn::value_print): Declare new member function.
1753 (LA_VALUE_PRINT): Update call to value_print.
1754 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1755 * objc-lang.c (objc_language_data): Likewise.
1756 * opencl-lang.c (opencl_language_data): Likewise.
1757 * p-lang.c (pascal_language_data): Likewise.
1758 (pascal_language::value_print): New member function.
1759 * rust-lang.c (rust_language_data): Delete la_value_print
1760 initializer.
1761
f16a9f57
AB
17622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * ada-lang.c (ada_watch_location_expression): Rename to
1765 ada_language::watch_location_expression.
1766 (ada_language_data): Delete la_watch_location_expression
1767 initializer.
1768 (ada_language::watch_location_expression): New member function,
1769 implementation from ada_watch_location_expression.
1770 * breakpoint.c (watch_command_1): Update call to
1771 watch_location_expression.
1772 * c-lang.c (c_watch_location_expression): Rename to
1773 language_defn::watch_location_expression.
1774 (c_language_data): Delete la_watch_location_expression
1775 initializer.
1776 (cplus_language_data): Likewise.
1777 (asm_language_data): Likewise.
1778 (minimal_language_data): Likewise.
1779 * c-lang.h (c_watch_location_expression): Delete declaration.
1780 * d-lang.c (d_language_data): Delete la_watch_location_expression
1781 initializer.
1782 * f-lang.c (f_language_data): Likewise.
1783 * go-lang.c (go_language_data): Likewise.
1784 * language.c (language_defn::watch_location_expression): Member
1785 function implementation from c_watch_location_expression.
1786 (unknown_language_data): Delete la_watch_location_expression
1787 initializer.
1788 (auto_language_data): Likewise.
1789 * language.h (language_data): Delete la_watch_location_expression
1790 field.
1791 (language_defn::watch_location_expression): Declare new member
1792 function.
1793 * m2-lang.c (m2_language_data): Delete
1794 la_watch_location_expression initializer.
1795 * objc-lang.c (objc_language_data): Likewise.
1796 * opencl-lang.c (opencl_language_data): Likewise.
1797 * p-lang.c (pascal_language_data): Likewise.
1798 * rust-lang.c (rust_watch_location_expression): Rename to
1799 rust_language::watch_location_expression.
1800 (rust_language_data): Delete la_watch_location_expression
1801 initializer.
1802 (rust_language::watch_location_expression): New member function,
1803 implementation from rust_watch_location_expression.
1804
7e56227d
AB
18052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1808 ada_language::collect_symbol_completion_matches.
1809 (ada_language_data): Delete la_collect_symbol_completion_matches
1810 initializer.
1811 (ada_language::collect_symbol_completion_matches): New member
1812 function, implementation from
1813 ada_collect_symbol_completion_matches.
1814 * c-lang.c (c_language_data): Delete
1815 la_collect_symbol_completion_matches initializer.
1816 (cplus_language_data): Likewise.
1817 (asm_language_data): Likewise.
1818 (minimal_language_data): Likewise.
1819 * d-lang.c (d_language_data): Likewise.
1820 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1821 f_language::collect_symbol_completion_matches.
1822 (f_language_data): Delete la_collect_symbol_completion_matches
1823 initializer.
1824 (f_language::collect_symbol_completion_matches) New member
1825 function, implementation from f_collect_symbol_completion_matches.
1826 * go-lang.c (go_language_data): Delete
1827 la_collect_symbol_completion_matches initializer.
1828 * language.c (unknown_language_data): Likewise.
1829 (auto_language_data): Likewise.
1830 * language.h (language_data): Delete
1831 la_collect_symbol_completion_matches field.
1832 (language_defn::collect_symbol_completion_matches): New member
1833 function.
1834 * m2-lang.c (m2_language_data): Delete
1835 la_collect_symbol_completion_matches initializer.
1836 * objc-lang.c (objc_language_data): Likewise.
1837 * opencl-lang.c (opencl_language_data): Likewise.
1838 * p-lang.c (pascal_language_data): Likewise.
1839 * rust-lang.c (rust_language_data): Likewise.
1840 * symtab.c (default_collect_symbol_completion_matches): Delete.
1841 (collect_symbol_completion_matches): Update call to
1842 collect_symbol_completion_matches.
1843 (collect_symbol_completion_matches_type): Likewise.
1844 * symtab.h (default_collect_symbol_completion_matches): Delete
1845 declaration.
1846
53fc67f8
AB
18472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1850 (ada_language_data): Delete la_word_break_characters initializer.
1851 (ada_language::word_break_characters): New member function.
1852 * c-lang.c (c_language_data): Delete la_word_break_characters
1853 initializer.
1854 (cplus_language_data): Likewise.
1855 (asm_language_data): Likewise.
1856 (minimal_language_data): Likewise.
1857 * completer.c: Update global comment.
1858 (advance_to_expression_complete_word_point): Update call to
1859 word_break_characters.
1860 (complete_files_symbols): Likewise.
1861 (complete_line_internal_1): Likewise.
1862 (default_completer_handle_brkchars): Likewise.
1863 (skip_quoted_chars): Likewise.
1864 * d-lang.c (d_language_data): Delete la_word_break_characters
1865 initializer.
1866 * f-lang.c (f_word_break_characters): Delete.
1867 (f_language_data): Delete la_word_break_characters initializer.
1868 (f_language::word_break_characters): New member function.
1869 * go-lang.c (go_language_data): Delete la_word_break_characters
1870 initializer.
1871 * language.c (unknown_language_data): Likewise.
1872 (auto_language_data): Likewise.
1873 * language.h (default_word_break_characters): Move declaration to
1874 earlier in the file.
1875 (language_data): Delete la_word_break_characters field.
1876 (language_defn::word_break_characters): New member function.
1877 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1878 initializer.
1879 * objc-lang.c (objc_language_data): Likewise.
1880 * opencl-lang.c (opencl_language_data): Likewise.
1881 * p-lang.c (pascal_language_data): Likewise.
1882 * rust-lang.c (rust_language_data): Likewise.
1883
c9debfb9
AB
18842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1887 (ada_language_data): Delete la_get_symbol_name_matcher
1888 initializer.
1889 (language_defn::get_symbol_name_matcher_inner): New member
1890 function.
1891 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1892 initializer.
1893 (cplus_language_data): Likewise.
1894 (cplus_language::get_symbol_name_matcher_inner): New member
1895 function.
1896 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1897 (minimal_language_data): Likewise.
1898 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1899 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1900 initializer.
1901 * dictionary.c (iter_match_first_hashed): Update call to
1902 get_symbol_name_matcher.
1903 (iter_match_next_hashed): Likewise.
1904 (iter_match_next_linear): Likewise.
1905 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1906 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1907 initializer.
1908 (f_language::get_symbol_name_matcher_inner): New member function.
1909 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1910 initializer.
1911 * language.c (default_symbol_name_matcher): Update header comment,
1912 make static.
1913 (language_defn::get_symbol_name_matcher): New definition.
1914 (language_defn::get_symbol_name_matcher_inner): Likewise.
1915 (get_symbol_name_matcher): Delete.
1916 (unknown_language_data): Delete la_get_symbol_name_matcher
1917 initializer.
1918 (auto_language_data): Likewise.
1919 * language.h (language_data): Delete la_get_symbol_name_matcher
1920 field.
1921 (language_defn::get_symbol_name_matcher): New member function.
1922 (language_defn::get_symbol_name_matcher_inner): Likewise.
1923 (default_symbol_name_matcher): Delete declaration.
1924 * linespec.c (find_methods): Update call to
1925 get_symbol_name_matcher.
1926 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1927 initializer.
1928 * minsyms.c (lookup_minimal_symbol): Update call to
1929 get_symbol_name_matcher.
1930 (iterate_over_minimal_symbols): Likewise.
1931 * objc-lang.c (objc_language_data): Delete
1932 la_get_symbol_name_matcher initializer.
1933 * opencl-lang.c (opencl_language_data): Likewise.
1934 * p-lang.c (pascal_language_data): Likewise.
1935 * psymtab.c (psymbol_name_matches): Update call to
1936 get_symbol_name_matcher.
1937 * rust-lang.c (rust_language_data): Delete
1938 la_get_symbol_name_matcher initializer.
1939 * symtab.c (symbol_matches_search_name): Update call to
1940 get_symbol_name_matcher.
1941 (compare_symbol_name): Likewise.
1942
9a49ad8c
AB
19432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_language_data): Delete la_compute_program
1946 initializer.
1947 * c-lang.c (c_language_data): Likewise.
1948 (c_language::compute_program): New member function.
1949 (cplus_language_data): Delete la_compute_program initializer.
1950 (cplus_language::compute_program): New member function.
1951 (asm_language_data): Delete la_compute_program initializer.
1952 (minimal_language_data): Likewise.
1953 * c-lang.h (c_compute_program): Update comment.
1954 (cplus_compute_program): Likewise.
1955 * compile/compile-c-support.c (c_compute_program): Likewise.
1956 (cplus_compute_program): Likewise.
1957 * compile/compile.c (compile_to_object): Update call to
1958 la_compute_program.
1959 * d-lang.c (d_language_data): Delete la_compute_program
1960 initializer.
1961 * f-lang.c (f_language_data): Likewise.
1962 * go-lang.c (go_language_data): Likewise.
1963 * language.c (unknown_language_data): Likewise.
1964 (auto_language_data): Likewise.
1965 * language.h (language_data): Delete la_compute_program field.
1966 (language_defn::compute_program): New member function.
1967 * m2-lang.c (m2_language_data): Delete la_compute_program
1968 initializer.
1969 * objc-lang.c (objc_language_data): Likewise.
1970 * opencl-lang.c (opencl_language_data): Likewise.
1971 * p-lang.c (pascal_language_data): Likewise.
1972 * rust-lang.c (rust_language_data): Likewise.
1973
eff93b4d
AB
19742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data) Delete
1977 la_class_name_from_physname initializer.
1978 * c-lang.c (c_language_data): Likewise.
1979 (cplus_language_data): Likewise.
1980 (cplus_language::class_name_from_physname): New member function.
1981 (asm_language_data): Delete la_class_name_from_physname
1982 initializer.
1983 (minimal_language_data): Likewise.
1984 * d-lang.c (d_language_data): Likewise.
1985 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1986 method on language_defn class.
1987 (guess_full_die_structure_name): Likewise.
1988 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1989 initializer.
1990 * go-lang.c (go_language_data): Likewise.
1991 * language.c (language_class_name_from_physname): Delete.
1992 (unk_lang_class_name): Delete.
1993 (unknown_language_data): Delete la_class_name_from_physname
1994 initializer.
1995 (auto_language_data): Likewise.
1996 * language.h (language_data): Delete la_class_name_from_physname
1997 field.
1998 (language_defn::class_name_from_physname): New function.
1999 (language_class_name_from_physname): Delete declaration.
2000 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2001 initializer.
2002 * objc-lang.c (objc_language_data): Likewise.
2003 * opencl-lang.c (opencl_language_data): Likewise.
2004 * p-lang.c (pascal_language_data): Likewise.
2005 * rust-lang.c (rust_language_data): Likewise.
2006
de543742
TT
20072020-06-16 Tom Tromey <tom@tromey.com>
2008
2009 * tui/tui-data.h (STATUS_NAME): New macro.
2010 * tui/tui-layout.c (tui_remove_some_windows)
2011 (initialize_known_windows, tui_register_window)
2012 (tui_layout_split::remove_windows, initialize_layouts)
2013 (tui_new_layout_command): Don't use hard-coded window names.
2014
a350efd4
TT
20152020-06-16 Tom Tromey <tom@tromey.com>
2016
2017 PR tui/25348:
2018 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2019 tui_initialize_readline. Only run once. Call rl_initialize.
2020 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2021 tui_initialize_readline.
2022 * tui/tui-io.c (tui_setup_io): Call
2023 tui_ensure_readline_initialized.
2024 * tui/tui-interp.c (tui_interp::init): Update.
2025
39ec0490
TT
20262020-06-16 Tom Tromey <tom@tromey.com>
2027
2028 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2029 Also preserve the status window.
2030
d2d1ea20
TT
20312020-06-16 Tom Tromey <tom@tromey.com>
2032
2033 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2034 where m_window==nullptr.
2035
66920317
TT
20362020-06-15 Tom Tromey <tromey@adacore.com>
2037
2038 * windows-nat.c (windows_nat::handle_output_debug_string):
2039 Update.
2040 (windows_nat::handle_ms_vc_exception): Update.
2041 * target.h (target_read_string): Change API.
2042 * target.c (target_read_string): Change API.
2043 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2044 Update.
2045 * solib-frv.c (frv_current_sos): Update.
2046 * solib-dsbt.c (dsbt_current_sos): Update.
2047 * solib-darwin.c (darwin_current_sos): Update.
2048 * linux-thread-db.c (inferior_has_bug): Update.
2049 * expprint.c (print_subexp_standard): Update.
2050 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2051 (ada_exception_message_1): Update.
2052
a5d871dd
TT
20532020-06-15 Tom Tromey <tromey@adacore.com>
2054
2055 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2056
670e35fa
TT
20572020-06-15 Tom Tromey <tromey@adacore.com>
2058
2059 * valprint.c (read_string): Update comment.
2060 * target.c (MIN): Remove.
2061 (target_read_string): Rewrite.
2062
f5272a3b
TT
20632020-06-15 Tom Tromey <tromey@adacore.com>
2064
2065 * corefile.c (read_memory_string): Remove.
2066 * ada-valprint.c (ada_value_print_ptr): Update.
2067 * ada-lang.h (ada_tag_name): Change return type.
2068 * ada-lang.c (type_from_tag): Update.
2069 (ada_tag_name_from_tsd): Change return type. Use
2070 target_read_string.
2071 (ada_tag_name): Likewise.
2072 * gdbcore.h (read_memory_string): Don't declare.
2073
2c074f49
HD
20742020-06-14 Hannes Domani <ssbssa@yahoo.de>
2075
2076 * symtab.c (rbreak_command): Ignore Windows drive colon.
2077
6a17d503
SM
20782020-06-12 Simon Marchi <simon.marchi@efficios.com>
2079
2080 * NEWS: Mention removed GDBserver host support.
2081
453c733f
NC
20822020-06-12 Nelson Chu <nelson.chu@sifive.com>
2083
2084 * features/riscv/rebuild-csr-xml.sh: Updated.
2085
2b4e6a3f
TT
20862020-06-11 Tom Tromey <tom@tromey.com>
2087
2088 PR gdb/18318:
2089 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2090
4412332f
JG
20912020-06-09 Jonny Grant <jg@jguk.org>
20922020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * main.c (captured_main_1): Don't print new line after help.
2095 (print_gdb_help): add mailing list and IRC channel information
2096 to --help. Add new lines between items in the footer. Remove
2097 quotes around bug url.
2098
2f33032a
KS
20992020-06-11 Keith Seitz <keiths@redhat.com>
2100
2101 PR gdb/21356
2102 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2103 Resolve typedefs for type length calculations.
2104
7ab96794
TV
21052020-06-10 Tom de Vries <tdevries@suse.de>
2106
2107 PR ada/24713
2108 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2109 (write_psymbols): Enable .gdb_index for ada.
2110 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2111 ada.
2112
e5f3ece2
TV
21132020-06-10 Tom de Vries <tdevries@suse.de>
2114
2115 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2116 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2117 namei" instead of "const char *name" argument.
2118 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2119 dw2_symtab_iter_init.
2120
940da03e
SM
21212020-06-08 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2124 to use type::field and field::type instead.
2125
b6cdac4b
SM
21262020-06-08 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2129 to use field::type instead.
2130
5d14b6e5
SM
21312020-06-08 Simon Marchi <simon.marchi@efficios.com>
2132
2133 * gdbtypes.h (struct field) <type, set_type>: New methods.
2134 Rename `type` field to...
2135 <m_type>: ... this. Change references throughout to use type or
2136 set_type methods.
2137 (FIELD_TYPE): Use field::type. Change call sites that modify
2138 the field's type to use field::set_type instead.
2139
3d967001
SM
21402020-06-08 Simon Marchi <simon.marchi@efficios.com>
2141
2142 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2143 to use type::index_type instead.
2144
262abc0d
SM
21452020-06-08 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2148 methods.
2149 (TYPE_INDEX_TYPE): Use type::index_type.
2150 * gdbtypes.c (create_array_type_with_stride): Likewise.
2151
82836c92
TT
21522020-06-07 Tom Tromey <tom@tromey.com>
2153
2154 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2155 parameter.
2156 (generic_value_print): Update.
2157
940dace9
AB
21582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 Revert commit 982a38f60b0.
2161 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2162
982a38f6
AB
21632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2166 avoid use after free.
2167
82f06518
TV
21682020-06-05 Tom de Vries <tdevries@suse.de>
2169
2170 * NEWS: Fix typos.
2171
f8c41851
SM
21722020-06-04 Simon Marchi <simon.marchi@efficios.com>
2173
2174 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2175 the per_bfd object.
2176 (dwarf2_read_debug_names): Likewise.
2177 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2178 object when re-using a per_bfd object with an index.
2179
f9b5d5ea
TV
21802020-06-03 Tom de Vries <tdevries@suse.de>
2181
2182 PR symtab/26046
2183 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2184 children for C++.
2185 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2186 DW_TAG_subprogram.
2187
f6eee2d0
AB
21882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (ada_language_data): Delete skip_trampoline
2191 initializer.
2192 * c-lang.c (c_language_data): Likewise.
2193 (cplus_language_data): Likewise.
2194 (cplus_language::skip_trampoline): New member function.
2195 (asm_language_data): Delete skip_trampoline initializer.
2196 (minimal_language_data): Likewise.
2197 * d-lang.c (d_language_data): Likewise.
2198 * f-lang.c (f_language_data): Likewise.
2199 * go-lang.c (go_language_data): Likewise.
2200 * language.c (unk_lang_trampoline): Delete function.
2201 (skip_language_trampoline): Update.
2202 (unknown_language_data): Delete skip_trampoline initializer.
2203 (auto_language_data): Likewise.
2204 * language.h (language_data): Delete skip_trampoline field.
2205 (language_defn::skip_trampoline): New function.
2206 * m2-lang.c (m2_language_data): Delete skip_trampoline
2207 initializer.
2208 * objc-lang.c (objc_skip_trampoline): Delete function, move
2209 implementation to objc_language::skip_trampoline.
2210 (objc_language_data): Delete skip_trampoline initializer.
2211 (objc_language::skip_trampoline): New member function with
2212 implementation from objc_skip_trampoline.
2213 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2214 initializer.
2215 * p-lang.c (pascal_language_data): Likewise.
2216 * rust-lang.c (rust_language_data): Likewise.
2217
0a50df5d
AB
22182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2221 (ada_language::demangle): New member function.
2222 * c-lang.c (c_language_data): Delete la_demangle initializer.
2223 (cplus_language_data): Delete la_demangle initializer.
2224 (cplus_language::demangle): New member function.
2225 (asm_language_data): Delete la_demangle initializer.
2226 (minimal_language_data): Delete la_demangle initializer.
2227 * d-lang.c (d_language_data): Delete la_demangle initializer.
2228 (d_language::demangle): New member function.
2229 * f-lang.c (f_language_data): Delete la_demangle initializer.
2230 (f_language::demangle): New member function.
2231 * go-lang.c (go_language_data): Delete la_demangle initializer.
2232 (go_language::demangle): New member function.
2233 * language.c (language_demangle): Update.
2234 (unk_lang_demangle): Delete.
2235 (unknown_language_data): Delete la_demangle initializer.
2236 (unknown_language::demangle): New member function.
2237 (auto_language_data): Delete la_demangle initializer.
2238 (auto_language::demangle): New member function.
2239 * language.h (language_data): Delete la_demangle field.
2240 (language_defn::demangle): New function.
2241 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2242 * objc-lang.c (objc_language_data): Delete la_demangle
2243 initializer.
2244 (objc_language::demangle): New member function.
2245 * opencl-lang.c (opencl_language_data): Delete la_demangle
2246 initializer.
2247 * p-lang.c (pascal_language_data): Likewise.
2248 * rust-lang.c (rust_language_data): Likewise.
2249 (rust_language::demangle): New member function.
2250
fbfb0a46
AB
22512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 * ada-lang.c (ada_language_data): Delete la_print_type
2254 initializer.
2255 (ada_language::print_type): New member function.
2256 * c-lang.c (c_language_data): Delete la_print_type initializer.
2257 (c_language::print_type): New member function.
2258 (cplus_language_data): Delete la_print_type initializer.
2259 (cplus_language::print_type): New member function.
2260 (asm_language_data): Delete la_print_type initializer.
2261 (asm_language::print_type): New member function.
2262 (minimal_language_data): Delete la_print_type initializer.
2263 (minimal_language::print_type): New member function.
2264 * d-lang.c (d_language_data): Delete la_print_type initializer.
2265 (d_language::print_type): New member function.
2266 * f-lang.c (f_language_data): Delete la_print_type initializer.
2267 (f_language::print_type): New member function.
2268 * go-lang.c (go_language_data): Delete la_print_type initializer.
2269 (go_language::print_type): New member function.
2270 * language.c (unk_lang_print_type): Delete.
2271 (unknown_language_data): Delete la_print_type initializer.
2272 (unknown_language::print_type): New member function.
2273 (auto_language_data): Delete la_print_type initializer.
2274 (auto_language::print_type): New member function.
2275 * language.h (language_data): Delete la_print_type field.
2276 (language_defn::print_type): New function.
2277 (LA_PRINT_TYPE): Update.
2278 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2279 (m2_language::print_type): New member function.
2280 * objc-lang.c (objc_language_data): Delete la_print_type
2281 initializer.
2282 (objc_language::print_type): New member function.
2283 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2284 to opencl_language::print_type.
2285 (opencl_language_data): Delete la_print_type initializer.
2286 (opencl_language::print_type): New member function, implementation
2287 from opencl_print_type.
2288 * p-lang.c (pascal_language_data): Delete la_print_type
2289 initializer.
2290 (pascal_language::print_type): New member function.
2291 * rust-lang.c (rust_print_type): Delete, implementation moved to
2292 rust_language::print_type.
2293 (rust_language_data): Delete la_print_type initializer.
2294 (rust_language::print_type): New member function, implementation
2295 from rust_print_type.
2296
6f827019
AB
22972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2300 implementation moves to...
2301 (ada_language::sniff_from_mangled_name): ...here. Update return
2302 type.
2303 (ada_language_data): Delete la_sniff_from_mangled_name
2304 initializer.
2305 * c-lang.c (c_language_data): Likewise.
2306 (cplus_language_data): Likewise.
2307 (cplus_language::sniff_from_mangled_name): New member function,
2308 implementation taken from gdb_sniff_from_mangled_name.
2309 (asm_language_data): Delete la_sniff_from_mangled_name
2310 initializer.
2311 (minimal_language_data): Likewise.
2312 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2313 implementation moves to cplus_language::sniff_from_mangled_name.
2314 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2315 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2316 moves to...
2317 (d_language::sniff_from_mangled_name): ...here.
2318 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2319 * f-lang.c (f_language_data): Likewise.
2320 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2321 moves to...
2322 (go_language::sniff_from_mangled_name): ...here.
2323 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2324 * language.c (language_sniff_from_mangled_name): Delete.
2325 (unknown_language_data): Delete la_sniff_from_mangled_name
2326 initializer.
2327 (auto_language_data): Likewise.
2328 * language.h (language_data): Delete la_sniff_from_mangled_name
2329 field.
2330 (language_defn::sniff_from_mangled_name): New function.
2331 (language_sniff_from_mangled_name): Delete declaration.
2332 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2333 field.
2334 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2335 implementation moves to...
2336 (objc_language::sniff_from_mangled_name): ...here.
2337 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2338 * opencl-lang.c (opencl_language_data): Likewise.
2339 * p-lang.c (pascal_language_data): Likewise.
2340 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2341 implementation moves to...
2342 (rust_language::sniff_from_mangled_name): ...here.
2343 (rust_language_data): Delete la_sniff_from_mangled_name
2344 initializer.
2345 * symtab.c (symbol_find_demangled_name): Call
2346 sniff_from_mangled_name member function.
2347
fb8006fd
AB
23482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2351 initializer.
2352 * c-lang.c (c_language_data): Likewise.
2353 (cplus_language_data): Likewise.
2354 (cplus_language::search_name_hash): New member function.
2355 (asm_language_data): Delete la_search_name_hash initializer.
2356 (minimal_language_data): Likewise.
2357 * d-lang.c (d_language_data): Likewise.
2358 * dictionary.c (default_search_name_hash): Rename to...
2359 (language_defn::search_name_hash): ...this.
2360 * f-lang.c (f_language_data): Likewise.
2361 (f_language::search_name_hash): New member function.
2362 * go-lang.c (go_language_data): Delete la_search_name_hash
2363 initializer.
2364 * language.c (unknown_language_data): Likewise.
2365 (auto_language_data): Likewise.
2366 * language.h (struct language_data): Delete la_search_name_hash
2367 field.
2368 (language_defn::search_name_hash): Declare new member function.
2369 (default_search_name_hash): Delete declaration.
2370 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2371 initializer.
2372 * objc-lang.c (objc_language_data): Likewise.
2373 * opencl-lang.c (opencl_language_data): Likewise.
2374 * p-lang.c (pascal_language_data): Likewise.
2375 * rust-lang.c (rust_language_data): Likewise.
2376 * symtab.c (search_name_hash): Update call.
2377
8e25bafe
AB
23782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2379
2380 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2381 initializer.
2382 * c-lang.c (class compile_instance): Declare.
2383 (c_language_data): Delete la_get_compile_instance initializer.
2384 (c_language::get_compile_instance): New member function.
2385 (cplus_language_data): Delete la_get_compile_instance initializer.
2386 (cplus_language::get_compile_instance): New member function.
2387 (asm_language_data): Delete la_get_compile_instance initializer.
2388 (minimal_language_data): Likewise.
2389 * c-lang.h (c_get_compile_context): Update comment.
2390 (cplus_get_compile_context): Update comment.
2391 * compile/compile.c (compile_to_object): Update calls, don't rely
2392 on function pointer being NULL.
2393 * d-lang.c (d_language_data): Delete la_get_compile_instance
2394 initializer.
2395 * f-lang.c (f_language_data): Likewise.
2396 * go-lang.c (go_language_data): Likewise.
2397 * language.c (unknown_language_data): Likewise.
2398 (auto_language_data): Likewise.
2399 * language.h (language_data): Delete la_get_compile_instance field.
2400 (language_defn::get_compile_instance): New member function.
2401 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2402 initializer.
2403 * objc-lang.c (objc_language_data): Likewise.
2404 * opencl-lang.c (opencl_language_data): Likewise.
2405 * p-lang.c (pascal_language_data): Likewise.
2406 * rust-lang.c (rust_language_data): Likewise.
2407
4009ee92
AB
24082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * ada-lang.c (ada_add_all_symbols): Update comment.
2411 (ada_iterate_over_symbols): Delete, move implementation to...
2412 (ada_language::iterate_over_symbols): ...here, a new member
2413 function, rewrite to use range based for loop.
2414 (ada_language_data): Delete la_iterate_over_symbols initializer.
2415 * c-lang.c (c_language_data): Likewise.
2416 (cplus_language_data): Likewise.
2417 (asm_language_data): Likewise.
2418 (minimal_language_data): Likewise.
2419 * d-lang.c (d_language_data): Likewise.
2420 * f-lang.c (f_language_data): Likewise.
2421 * go-lang.c (go_language_data): Likewise.
2422 * language.c (unknown_language_data): Likewise.
2423 (auto_language_data): Likewise.
2424 * language.h (language_data): Delete la_iterate_over_symbols field.
2425 (language_defn::iterate_over_symbols): New member function.
2426 (LA_ITERATE_OVER_SYMBOLS): Update.
2427 * linespec.c (iterate_over_all_matching_symtabs): Update.
2428 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2429 initializer.
2430 * objc-lang.c (objc_language_data): Likewise.
2431 * opencl-lang.c (opencl_language_data): Likewise.
2432 * p-lang.c (pascal_language_data): Likewise.
2433 * rust-lang.c (rust_language_data): Likewise.
2434
54f4ca46
AB
24352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * ada-lang.c (ada_language_data): Delete
2438 la_lookup_transparent_type initializer.
2439 * c-lang.c (c_language_data): Likewise.
2440 (cplus_language_data): Likewise.
2441 (cplus_language::lookup_transparent_type): New member function.
2442 (asm_language_data): Delete la_lookup_transparent_type
2443 initializer.
2444 (minimal_language_data): Likewise.
2445 * d-lang.c (d_language_data): Likewise.
2446 * f-lang.c (f_language_data): Likewise.
2447 * go-lang.c (go_language_data): Likewise.
2448 * language.c (unknown_language_data): Likewise.
2449 (auto_language_data): Likewise.
2450 * language.h (struct language_data): Delete
2451 la_lookup_transparent_type field.
2452 (language_defn::lookup_transparent_type): New member function.
2453 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2454 initializer.
2455 * objc-lang.c (objc_language_data): Likewise.
2456 * opencl-lang.c (opencl_language_data): Likewise.
2457 * p-lang.c (pascal_language_data): Likewise.
2458 * rust-lang.c (rust_language_data): Likewise.
2459 * symtab.c (symbol_matches_domain): Update call.
2460
1fb314aa
AB
24612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * ada-lang.c (ada_language_arch_info): Delete function, move
2464 implementation to...
2465 (ada_language::language_arch_info): ...here, a new member
2466 function.
2467 (ada_language_data): Delete la_language_arch_info.
2468 * c-lang.c (c_language_data): Likewise.
2469 (c_language::language_arch_info): New member function.
2470 (cplus_language_arch_info): Delete function, move
2471 implementation to...
2472 (cplus_language::language_arch_info): ...here, a new member
2473 function.
2474 (cplus_language_data): Delete la_language_arch_info.
2475 (asm_language_data): Likewise.
2476 (asm_language::language_arch_info): New member function.
2477 (minimal_language_data): Delete la_language_arch_info.
2478 (minimal_language::language_arch_info): New member function.
2479 * d-lang.c (d_language_arch_info): Delete function, move
2480 implementation to...
2481 (d_language::language_arch_info): ...here, a new member
2482 function.
2483 (d_language_data): Delete la_language_arch_info.
2484 * f-lang.c (f_language_arch_info): Delete function, move
2485 implementation to...
2486 (f_language::language_arch_info): ...here, a new member
2487 function.
2488 (f_language_data): Delete la_language_arch_info.
2489 * go-lang.c (go_language_arch_info): Delete function, move
2490 implementation to...
2491 (go_language::language_arch_info): ...here, a new member
2492 function.
2493 (go_language_data): Delete la_language_arch_info.
2494 * language.c (unknown_language_data): Likewise.
2495 (unknown_language::language_arch_info): New member function.
2496 (auto_language_data): Delete la_language_arch_info.
2497 (auto_language::language_arch_info): New member function.
2498 (language_gdbarch_post_init): Update call to
2499 la_language_arch_info.
2500 * language.h (language_data): Delete la_language_arch_info
2501 function pointer.
2502 (language_defn::language_arch_info): New function.
2503 * m2-lang.c (m2_language_arch_info): Delete function, move
2504 implementation to...
2505 (m2_language::language_arch_info): ...here, a new member
2506 function.
2507 (m2_language_data): Delete la_language_arch_info.
2508 * objc-lang.c (objc_language_arch_info): Delete function, move
2509 implementation to...
2510 (objc_language::language_arch_info): ...here, a new member
2511 function.
2512 (objc_language_data): Delete la_language_arch_info.
2513 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2514 implementation to...
2515 (opencl_language::language_arch_info): ...here, a new member
2516 function.
2517 (opencl_language_data): Delete la_language_arch_info.
2518 * p-lang.c (pascal_language_arch_info): Delete function, move
2519 implementation to...
2520 (pascal_language::language_arch_info): ...here, a new member
2521 function.
2522 (pascal_language_data): Delete la_language_arch_info.
2523 * rust-lang.c (rust_language_arch_info): Delete function, move
2524 implementation to...
2525 (rust_language::language_arch_info): ...here, a new member
2526 function.
2527 (rust_language_data): Delete la_language_arch_info.
2528
48448202
AB
25292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2532 initializer.
2533 * c-lang.c (c_language_data): Likewise.
2534 (cplus_language_data): Likewise.
2535 (cplus_language::pass_by_reference_info): New method.
2536 (asm_language_data): Delete la_pass_by_reference initializer.
2537 (minimal_language_data): Likewise.
2538 * cp-abi.c (cp_pass_by_reference): Remove use of
2539 default_pass_by_reference.
2540 * d-lang.c (d_language_data): Likewise.
2541 * f-lang.c (f_language_data): Likewise.
2542 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2543 default_pass_by_reference.
2544 * go-lang.c (go_language_data): Likewise.
2545 * language.c (language_pass_by_reference): Update.
2546 (default_pass_by_reference): Delete.
2547 (unknown_language_data): Delete la_pass_by_reference
2548 initializer.
2549 (auto_language_data): Likewise.
2550 * language.h (struct language_data): Delete la_pass_by_reference
2551 field.
2552 (language_defn::pass_by_reference_info): New member function.
2553 (default_pass_by_reference): Delete declaration.
2554 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2555 initializer.
2556 * objc-lang.c (objc_language_data): Likewise.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 * rust-lang.c (rust_language_data): Likewise.
2560
15e5fd35
AB
25612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2562
2563 * ada-lang.c (ada_read_var_value): Delete function, move
2564 implementation to...
2565 (ada_language::read_var_value): ...here.
2566 (ada_language_data): Delete la_read_var_value initializer.
2567 * c-lang.c (c_language_data): Likewise.
2568 (cplus_language_data): Likewise.
2569 (minimal_language_data): Likewise.
2570 * d-lang.c (d_language_data): Likewise.
2571 * f-lang.c (f_language_data): Likewise.
2572 * findvar.c (default_read_var_value): Rename to...
2573 (language_defn::read_var_value): ...this.
2574 * findvar.c (read_var_value): Update header comment, and change to
2575 call member function instead of function pointer.
2576 * go-lang.c (go_language_data): Likewise.
2577 * language.c (unknown_language_data): Delete la_read_var_value
2578 initializer.
2579 (auto_language_data): Likewise.
2580 * language.h (struct language_data): Delete la_read_var_value
2581 field.
2582 (language_defn::read_var_value): New member function.
2583 (default_read_var_value): Delete declaration.
2584 * m2-lang.c (m2_language_data): Delete la_read_var_value
2585 initializer.
2586 * objc-lang.c (objc_language_data): Likewise.
2587 * opencl-lang.c (opencl_language_data): Likewise.
2588 * p-lang.c (pascal_language_data): Likewise.
2589 * rust-lang.c (rust_language_data): Likewise.
2590 * value.h (default_read_var_value): Delete declaration.
2591
5bd40f2a
AB
25922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * ada-lang.c (ada_print_array_index): Delete function, move
2595 implementation to...
2596 (ada_language::print_array_index): ...here.
2597 (ada_language_data): Delete la_print_array_index initializer.
2598 * c-lang.c (c_language_data): Likewise.
2599 (cplus_language_data): Likewise.
2600 (minimal_language_data): Likewise.
2601 * d-lang.c (d_language_data): Likewise.
2602 * f-lang.c (f_language_data): Likewise.
2603 * go-lang.c (go_language_data): Likewise.
2604 * language.c (default_print_array_index): Delete function, move
2605 implementation to...
2606 (language_defn::print_array_index): ...here.
2607 (unknown_language_data): Delete la_print_array_index initializer.
2608 (auto_language_data): Likewise.
2609 * language.h (struct language_data): Delete la_print_array_index
2610 field.
2611 (language_defn::print_array_index): New member function.
2612 (LA_PRINT_ARRAY_INDEX): Update.
2613 (default_print_array_index): Delete declaration.
2614 * m2-lang.c (m2_language_data): Delete la_print_array_index
2615 initializer.
2616 * objc-lang.c (objc_language_data): Likewise.
2617 * opencl-lang.c (opencl_language_data): Likewise.
2618 * p-lang.c (pascal_language_data): Likewise.
2619 * rust-lang.c (rust_language_data): Likewise.
2620
0874fd07
AB
26212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * gdb/ada-lang.c (ada_language_defn): Convert to...
2624 (ada_language_data): ...this.
2625 (class ada_language): New class.
2626 (ada_language_defn): New static global.
2627 * gdb/c-lang.c (c_language_defn): Convert to...
2628 (c_language_data): ...this.
2629 (class c_language): New class.
2630 (c_language_defn): New static global.
2631 (cplus_language_defn): Convert to...
2632 (cplus_language_data): ...this.
2633 (class cplus_language): New class.
2634 (cplus_language_defn): New static global.
2635 (asm_language_defn): Convert to...
2636 (asm_language_data): ...this.
2637 (class asm_language): New class.
2638 (asm_language_defn): New static global.
2639 (minimal_language_defn): Convert to...
2640 (minimal_language_data): ...this.
2641 (class minimal_language): New class.
2642 (minimal_language_defn): New static global.
2643 * gdb/d-lang.c (d_language_defn): Convert to...
2644 (d_language_data): ...this.
2645 (class d_language): New class.
2646 (d_language_defn): New static global.
2647 * gdb/f-lang.c (f_language_defn): Convert to...
2648 (f_language_data): ...this.
2649 (class f_language): New class.
2650 (f_language_defn): New static global.
2651 * gdb/go-lang.c (go_language_defn): Convert to...
2652 (go_language_data): ...this.
2653 (class go_language): New class.
2654 (go_language_defn): New static global.
2655 * gdb/language.c (unknown_language_defn): Remove declaration.
2656 (current_language): Initialize to nullptr, real initialization is
2657 moved to _initialize_language.
2658 (languages): Delete global.
2659 (language_defn::languages): Define.
2660 (set_language_command): Use language_defn::languages.
2661 (set_language): Likewise.
2662 (range_error): Likewise.
2663 (language_enum): Likewise.
2664 (language_def): Likewise.
2665 (add_set_language_command): Use language_def::languages for the
2666 language list, and language_def to lookup language pointers.
2667 (skip_language_trampoline): Use language_defn::languages.
2668 (unknown_language_defn): Convert to...
2669 (unknown_language_data): ...this.
2670 (class unknown_language): New class.
2671 (unknown_language_defn): New static global.
2672 (auto_language_defn): Convert to...
2673 (auto_language_data): ...this.
2674 (class auto_language): New class.
2675 (auto_language_defn): New static global.
2676 (language_gdbarch_post_init): Use language_defn::languages.
2677 (_initialize_language): Initialize current_language.
2678 * gdb/language.h (struct language_defn): Rename to...
2679 (struct language_data): ...this.
2680 (struct language_defn): New.
2681 (auto_language_defn): Delete.
2682 (unknown_language_defn): Delete.
2683 (minimal_language_defn): Delete.
2684 (ada_language_defn): Delete.
2685 (asm_language_defn): Delete.
2686 (c_language_defn): Delete.
2687 (cplus_language_defn): Delete.
2688 (d_language_defn): Delete.
2689 (f_language_defn): Delete.
2690 (go_language_defn): Delete.
2691 (m2_language_defn): Delete.
2692 (objc_language_defn): Delete.
2693 (opencl_language_defn): Delete.
2694 (pascal_language_defn): Delete.
2695 (rust_language_defn): Delete.
2696 * gdb/m2-lang.c (m2_language_defn): Convert to...
2697 (m2_language_data): ...this.
2698 (class m2_language): New class.
2699 (m2_language_defn): New static global.
2700 * gdb/objc-lang.c (objc_language_defn): Convert to...
2701 (objc_language_data): ...this.
2702 (class objc_language): New class.
2703 (objc_language_defn): New static global.
2704 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2705 (opencl_language_data): ...this.
2706 (class opencl_language): New class.
2707 (opencl_language_defn): New static global.
2708 * gdb/p-lang.c (pascal_language_defn): Convert to...
2709 (pascal_language_data): ...this.
2710 (class pascal_language): New class.
2711 (pascal_language_defn): New static global.
2712 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2713 language pointer, update comment format.
2714 * gdb/rust-lang.c (rust_language_defn): Convert to...
2715 (rust_language_data): ...this.
2716 (class rust_language): New class.
2717 (rust_language_defn): New static global.
2718
1313c56e
AB
27192020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2722 member variable.
2723 <m_stmt_at_address>: New member variable.
2724 (lnp_state_machine::record_line): Don't record some lines, update
2725 tracking of is_stmt at the same address.
2726 (lnp_state_machine::lnp_state_machine): Initialise new member
2727 variables.
2728
b7ed9f3d
ST
27292020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2730
2731 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2732 "-include gnu-nat-mig.h".
2733 * gnu-nat-mig.h: New file.
2734 * gnu-nat.c: Include "gnu-nat-mig.h".
2735 (exc_server, msg_reply_server, notify_server,
2736 process_reply_server): Remove declarations.
2737
14a8ad62
ST
27382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2739
2740 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2741 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2742 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2743 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2744 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2745 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2746 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2747 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2748 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2749 to gnu_nat_target class.
2750 * gnu-nat.c: Likewise.
2751 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2752 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2753 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2754 object.
2755 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2756 instead of `gnu_target'.
2757
0af5e106
ST
27582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2759
2760 * i386-gnu-tdep.c: Include "gdbcore.h"
2761 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2762 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2763 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2764 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2765 i386_gnu_sigcontext_addr): New functions
2766 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2767 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2768 tdep.
2769
078f2fc9
ST
27702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2771
2772 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2773 before fork_inferior call. Avoid calling it if target_is_pushed returns
2774 true.
2775
53dff92c
ST
27762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2777
2778 * gnu-nat.h (gnu_target): New variable declaration.
2779 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2780 gnu_target.
2781 * gnu-nat.c (gnu_target): New variable.
2782 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2783 add_thread_silent, and add_thread calls.
2784 (gnu_nat_target::create_inferior): Pass gnu_target to
2785 add_thread_silent, thread_change_ptid call.
2786 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2787 call.
2788
5a8b8627
ST
27892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2790
2791 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2792 (gnu_nat_target::find_memory_regions): Remove unused
2793 `old_address' variable.
2794
366f550a
ST
27952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2796
2797 * gnu-nat.c: Include "gdbarch.h".
2798
f14871bf
ST
27992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2800
2801 * reply_mig_hack.awk (Error return): Cast function through
2802 void *, to bypass compiler function call check.
2803
c6887cfb
ST
28042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2805
2806 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2807 $(srcdir)/reply_mig_hack.awk.
2808
6930bffe
ST
28092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2810
2811 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2812
112c22ed
JG
28132020-05-30 Jonny Grant <jg@jguk.org>
2814
2815 * configure.ac (ACX_BUGURL): change bug URL to https.
2816
f68f85b5
PA
28172020-05-30 Pedro Alves <palves@redhat.com>
2818
2819 * cp-support.c (replace_typedefs_template): New.
2820 (replace_typedefs_qualified_name): Handle
2821 DEMANGLE_COMPONENT_TEMPLATE.
2822
976ca316
SM
28232020-05-29 Simon Marchi <simon.marchi@efficios.com>
2824
2825 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2826 dwarf2/index-cache.h, dwarf2/index-write.c,
2827 dwarf2/index-write.h, dwarf2/line-header.c,
2828 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2829 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2830 variables and fields from `dwarf2_per_objfile` to just
2831 `per_objfile` throughout.
2832
989ade05
SM
28332020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2836 <push_dwarf_reg_entry_value>: Add comment.
2837
c47bae85
KB
28382020-05-28 Kevin Buettner <kevinb@redhat.com>
2839 Keith Seitz <keiths@redhat.com>
2840
2841 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2842 instead of PyEval_ReleaseLock.
2843 (class gdbpy_gil): Move to earlier in file.
2844 (finalize_python): Set gdb_python_initialized.
2845 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2846 when not initialized.
2847
44486dcf
SM
28482020-05-28 Simon Marchi <simon.marchi@efficios.com>
2849
2850 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2851 <push_dwarf_reg_entry_value>: Remove assert. Override
2852 per_objfile with caller_per_objfile.
2853
f030440d
TV
28542020-05-28 Tom de Vries <tdevries@suse.de>
2855
2856 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2857 PR gold/15646 workaround to symbol kind "type".
2858
f0fbb768
TT
28592020-05-27 Tom Tromey <tromey@adacore.com>
2860
2861 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2862
af0b2a3e
TT
28632020-05-27 Tom Tromey <tromey@adacore.com>
2864
2865 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2866 Use htab_find_with_hash.
2867 <add_abbrev>: Remove "abbrev_number" parameter.
2868 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2869 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2870 (hash_abbrev): Add comment.
2871 (abbrev_table::lookup_abbrev): Move to header file.
2872 (abbrev_table::read): Update.
2873
7d00ffec
TT
28742020-05-27 Tom Tromey <tromey@adacore.com>
2875
2876 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2877 method.
2878 <canonical_name>: New member.
2879 <raw_name>: Rename from "name".
2880 (partial_die_info): Initialize canonical_name.
2881 (scan_partial_symbols): Check raw_name.
2882 (partial_die_parent_scope, partial_die_full_name)
2883 (add_partial_symbol, add_partial_subprogram)
2884 (add_partial_enumeration, load_partial_dies): Use "name" method.
2885 (partial_die_info::name): New method.
2886 (partial_die_info::read, guess_partial_die_structure_name)
2887 (partial_die_info::fixup): Update.
2888
697bba18
TT
28892020-05-27 Tom Tromey <tromey@adacore.com>
2890
2891 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2892 <get_ref_die_offset>: Inline.
2893 <get_ref_die_offset_complaint>: New method.
2894 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2895 (attribute::get_ref_die_offset_complaint): Rename from
2896 get_ref_die_offset. Just issue complaint.
2897
c17ace43
HD
28982020-05-27 Hannes Domani <ssbssa@yahoo.de>
2899
2900 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2901
96445f0b
HD
29022020-05-27 Hannes Domani <ssbssa@yahoo.de>
2903
2904 * exec.c (exec_file_attach): Use errno value of first openp failure.
2905
ac637ec3
HD
29062020-05-27 Hannes Domani <ssbssa@yahoo.de>
2907
2908 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2909 Don't close thread handle.
2910
17ee85fc
TT
29112020-05-27 Tom Tromey <tom@tromey.com>
2912 Simon Marchi <simon.marchi@efficios.com>
2913
2914 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2915 shared_ptr.
2916 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2917 member.
2918 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2919 dwarf2_per_bfd_objfile_data_key>: New globals.
2920 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2921 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2922 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2923 shared.
2924 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2925 short-circuit when sharing.
2926 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2927 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2928
39b16f87
SM
29292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2932 to...
2933 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2934 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2935
fcf23d5b
SM
29362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2939 build_name_components, find_name_components_bounds>:
2940 Add per_objfile parameter.
2941 (struct mapped_index) <symbol_name_at>: Likewise.
2942 (struct mapped_debug_names): Remove constructor.
2943 <dwarf2_per_objfile>: Remove field.
2944 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2945 (mapped_index_base::find_name_components_bounds,
2946 mapped_index_base::build_name_components,
2947 dw2_expand_symtabs_matching_symbol): Likewise.
2948 (class mock_mapped_index) <symbol_name_at>: Likewise.
2949 (check_match): Likewise.
2950 (check_find_bounds_finds): Likewise.
2951 (test_mapped_index_find_name_component_bounds): Update.
2952 (CHECK_MATCH): Update.
2953 (dw2_expand_symtabs_matching): Update.
2954 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2955 per_objfile parameter.
2956 <find_vec_in_debug_names>: Likewise.
2957 <m_per_objfile>: New field.
2958 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2959 parameter.
2960 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2961 (dw2_debug_names_iterator::next): Update.
2962 (dw2_debug_names_lookup_symbol): Update.
2963 (dw2_debug_names_expand_symtabs_for_function): Update.
2964 (dw2_debug_names_map_matching_symbols): Update.
2965 (dw2_debug_names_expand_symtabs_matching): Update.
2966 (dwarf2_read_debug_names): Update.
2967
7188ed02
SM
29682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2971 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2972 move to dwarf2_per_objfile.
2973 <read_in_chain>: Remove.
2974 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2975 remove_all_cus, age_comp_units>: New methods.
2976 <m_dwarf2_cus>: New member.
2977 (struct dwarf2_per_cu_data) <cu>: Remove.
2978 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2979 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2980 moved to methods of dwarf2_per_objfile.
2981 (dwarf2_clear_marks): Remove.
2982 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2983 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2984 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2985 (dwarf2_per_objfile::remove_all_cus): New.
2986 (class free_cached_comp_units) <~free_cached_comp_units>:
2987 Update.
2988 (load_cu): Update.
2989 (dw2_do_instantiate_symtab): Adjust.
2990 (fill_in_sig_entry_from_dwo_entry): Adjust.
2991 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2992 (cutu_reader::cutu_reader): Likewise.
2993 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2994 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2995 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2996 and dwarf2_per_objfile::age_comp_units.
2997 (load_partial_comp_unit): Update.
2998 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2999 (process_queue): Likewise.
3000 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3001 backlink.
3002 (dwarf2_read_addr_index): Likewise.
3003 (follow_die_offset): Likewise.
3004 (dwarf2_fetch_die_loc_sect_off): Likewise.
3005 (dwarf2_fetch_constant_bytes): Likewise.
3006 (dwarf2_fetch_die_type_sect_off): Likewise.
3007 (follow_die_sig_1): Likewise.
3008 (load_full_type_unit): Likewise.
3009 (read_signatured_type): Likewise.
3010 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3011 (dwarf2_cu::~dwarf2_cu): Remove.
3012 (dwarf2_per_objfile::get_cu): New.
3013 (dwarf2_per_objfile::set_cu): New.
3014 (age_cached_comp_units): Rename to...
3015 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3016 to std::unordered_map.
3017 (free_one_cached_comp_unit): Rename to...
3018 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3019 to std::unordered_map.
3020 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3021 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3022 a dwarf2_per_objfile in data.
3023 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3024 (dwarf2_clear_marks): Remove.
3025
2e671100
SM
30262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3029 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3030 (init_tu_and_read_dwo_dies): Likewise.
3031 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3032 (cutu_reader::cutu_reader): Likewise.
3033 (load_partial_comp_unit): Likewise.
3034 (process_psymtab_comp_unit): Update.
3035 (build_type_psymtabs_1): Update.
3036 (process_skeletonless_type_unit): Update.
3037 (load_full_comp_unit): Update.
3038 (find_partial_die): Update.
3039 (dwarf2_read_addr_index): Update.
3040 (read_signatured_type): Update.
3041
2e6a9f79
SM
30422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3045 m_header_read_in>: New fields.
3046 <get_header>: New method.
3047 * dwarf2/read.c (per_cu_header_read_in): Remove.
3048 (dwarf2_per_cu_data::get_header): New.
3049 (dwarf2_per_cu_data::addr_size): Update.
3050 (dwarf2_per_cu_data::offset_size): Update.
3051 (dwarf2_per_cu_data::ref_addr_size): Update.
3052
1b555f17
SM
30532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3054
3055 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3056 (dw2_do_instantiate_symtab): Update.
3057 (queue_and_load_all_dwo_tus): Change parameter from
3058 dwarf2_per_cu_data to dwarf2_cu.
3059 (dwarf2_fetch_die_loc_sect_off): Update.
3060 (dwarf2_fetch_constant_bytes): Update.
3061 (dwarf2_fetch_die_type_sect_off): Update.
3062
8fc0b21d
SM
30632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * dwarf2/read.c (process_full_comp_unit,
3066 process_full_type_unit): Remove per_cu, per_objfile paramters.
3067 Add dwarf2_cu parameter.
3068 (process_queue): Update.
3069
168c9250
SM
30702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * dwarf2/read.c (create_cu_from_index_list): Replace
3073 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3074 (create_cus_from_index_list): Likewise.
3075 (create_cus_from_index): Likewise.
3076 (create_signatured_type_table_from_index): Likewise.
3077 (create_cus_from_debug_names_list): Likewise.
3078 (create_cus_from_debug_names): Likewise.
3079 (dwarf2_read_gdb_index): Update.
3080 (dwarf2_read_debug_names): Update.
3081
e286671b
TT
30822020-05-27 Tom Tromey <tom@tromey.com>
3083 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * dwarf2/read.h (struct dwarf2_per_objfile)
3086 <get_type_for_signatured_type, set_type_for_signatured_type>:
3087 New methods.
3088 <m_type_map>: New member.
3089 (struct signatured_type) <type>: Remove.
3090 * dwarf2/read.c
3091 (dwarf2_per_objfile::get_type_for_signatured_type,
3092 dwarf2_per_objfile::set_type_for_signatured_type): New.
3093 (get_signatured_type): Use new methods.
3094
8adb8487
TT
30952020-05-27 Tom Tromey <tom@tromey.com>
3096 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3099 (struct dwarf2_per_objfile) <type_units>: New member.
3100 <get_type_unit_group_unshareable>: New method.
3101 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3102 num_symtabs, symtabs>: Remove; move to
3103 type_unit_group_unshareable.
3104 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3105 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3106 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3107
127bbf4b
SM
31082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.h (struct dwarf2_per_cu_data):
3111 <dwarf2_per_objfile>: Remove.
3112 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3113 dwarf2_per_objfile.
3114 (create_signatured_type_table_from_index): Likewise.
3115 (create_signatured_type_table_from_debug_names): Likewise.
3116 (create_debug_type_hash_table): Likewise.
3117 (fill_in_sig_entry_from_dwo_entry): Likewise.
3118 (create_type_unit_group): Likewise.
3119 (read_comp_units_from_section): Likewise.
3120 (create_cus_hash_table): Likewise.
3121
f6e649dd
SM
31222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3125 dwarf2_per_cu_data::dwarf2_per_objfile.
3126 (compute_compunit_symtab_includes): Likewise.
3127 (dwarf2_cu::start_symtab): Likewise.
3128
aa66c379
SM
31292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3132 parameter.
3133 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3134 (read_namespace_alias): Update.
3135 (lookup_die_type): Update.
3136 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3137 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3138 Update.
3139 (disassemble_dwarf_expression): Update.
3140
120ce1b5
SM
31412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * dwarf2/read.h (struct dwarf2_queue_item): Add
3144 dwarf2_per_objfile parameter, assign new parameter.
3145 <per_objfile>: New field.
3146 * dwarf2/read.c (free_one_cached_comp_unit): Add
3147 dwarf2_per_objfile parameter.
3148 (queue_comp_unit): Likewise.
3149 (dw2_do_instantiate_symtab): Update.
3150 (process_psymtab_comp_unit): Update.
3151 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3152 (process_imported_unit_die): Update.
3153 (queue_and_load_dwo_tu): Update.
3154 (follow_die_offset): Update.
3155 (follow_die_sig_1): Update.
3156
9f47c707
SM
31572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3160 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3161 (read_call_site_scope): Assign per_objfile.
3162 (dwarf2_per_cu_data::objfile): Remove.
3163 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3164 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3165 dwarf2_per_objfile parameter.
3166 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3167 dwarf2_per_objfile parameter.
3168 (dwarf_expr_reg_to_entry_parameter): Add output
3169 dwarf2_per_objfile parameter.
3170 (locexpr_get_frame_base): Update.
3171 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3172 <push_dwarf_reg_entry_value>: Update.
3173 <call_site_to_target_addr>: Update.
3174 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3175 parameter.
3176 (value_of_dwarf_reg_entry): Update.
3177 (rw_pieced_value): Update.
3178 (indirect_synthetic_pointer): Update.
3179 (dwarf2_evaluate_property): Update.
3180 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3181 parameter.
3182 (locexpr_read_variable): Update.
3183 (locexpr_get_symbol_read_needs): Update.
3184 (loclist_read_variable): Update.
3185
14095eb3
SM
31862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3187
3188 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3189 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3190 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3191 parameter.
3192 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3193 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3194 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3195 parameter.
3196 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3197 sect_variable_value): Add dwarf2_per_objfile parameter.
3198 (class dwarf_evaluate_loc_desc) <dwarf_call,
3199 dwarf_variable_value>: Update.
3200 (fetch_const_value_from_synthetic_pointer): Add
3201 dwarf2_per_objfile parameter.
3202 (fetch_const_value_from_synthetic_pointer): Update.
3203 (coerced_pieced_ref): Update.
3204 (class symbol_needs_eval_context) <dwarf_call,
3205 dwarf_variable_value>: Update.
3206 (dwarf2_compile_expr_to_ax): Update.
3207
3c3cd3d4
SM
32082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3211 parameter.
3212 (dwarf2_evaluate_loc_desc_full): Update.
3213
82ca3f51
SM
32142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3217 parameter.
3218 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3219 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3220 dwarf2_per_objfile parameter.
3221 (decode_debug_loc_dwo_addresses): Likewise.
3222 (dwarf2_find_location_expression): Update.
3223 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3224 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3225 parameter.
3226 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3227 parameter.
3228 (locexpr_describe_location_1): Likewise.
3229 (locexpr_describe_location): Update.
3230
4b167ea1
SM
32312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3232
3233 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3234 Remove.
3235 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3236 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3237 (dwarf2_compile_property_to_c): Update.
3238 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3239 use text offset from objfile.
3240 (locexpr_tracepoint_var_ref): Update.
3241 (locexpr_generate_c_location): Update.
3242 (loclist_describe_location): Update.
3243 (loclist_tracepoint_var_ref): Update.
3244 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3245 dwarf2_per_objfile parameter.
3246 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3247 use text offset from objfile.
3248 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3249
89b07335
SM
32502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * dwarf2/expr.h (struct dwarf_expr_context)
3253 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3254 <offset>: Remove.
3255 <per_objfile>: New member.
3256 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3257 dwarf2_per_objfile parameter. Don't set offset, set
3258 per_objfile.
3259 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3260 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3261 a dwarf2_per_objfile object instead of an offset.
3262 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3263 constructor.
3264 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3265 to dwarf2_expr_executor constructor. Don't set offset.
3266 (dwarf2_fetch_cfa_info): Update.
3267 (struct dwarf2_frame_cache) <text_offset>: Remove.
3268 <per_objfile>: New field.
3269 (dwarf2_frame_cache): Update.
3270 (dwarf2_frame_prev_register): Update.
3271 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3272 <dwarf_evaluate_loc_desc>: Add constructor.
3273 (dwarf2_evaluate_loc_desc_full): Update.
3274 (dwarf2_locexpr_baton_eval): Update.
3275 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3276 Add constructor.
3277 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3278
293e7e51
SM
32792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3282 addr_sized_int_type>: Move to dwarf2_cu.
3283 <int_type>: Move to dwarf2_per_objfile.
3284 (struct dwarf2_per_objfile) <int_type>: Move here.
3285 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3286 addr_sized_int_type>: Move here.
3287 (read_func_scope): Update.
3288 (read_array_type): Update.
3289 (read_tag_string_type): Update.
3290 (attr_to_dynamic_prop): Update.
3291 (dwarf2_per_cu_data::int_type): Rename to...
3292 (dwarf2_per_objfile::int_type): ... this.
3293 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3294 (dwarf2_cu::addr_sized_int_type): ... this.
3295 (read_subrange_type): Update.
3296 (dwarf2_per_cu_data::addr_type): Rename to...
3297 (dwarf2_cu::addr_type): ... this.
3298 (set_die_type): Update.
3299
64874a40
SM
33002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3303 data through per_cu->cu.
3304
4ab09049
SM
33052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3308 dwarf2_per_cu_data parameter fo dwarf2_cu.
3309 (lookup_dwo_type_unit): Likewise.
3310 (read_cutu_die_from_dwo): Likewise.
3311 (lookup_dwo_unit): Likewise.
3312 (open_and_init_dwo_file): Likewise.
3313 (lookup_dwo_cutu): Likewise.
3314 (lookup_dwo_comp_unit): Likewise.
3315 (lookup_dwo_type_unit): Likewise.
3316 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3317 (cutu_reader::cutu_reader): Update.
3318
47b14e86
SM
33192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3322 parameter.
3323 (process_full_type_unit): Likewise.
3324 (process_queue): Update.
3325
43182c09
SM
33262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * dwarf2/read.c (recursively_compute_inclusions): Add
3329 dwarf2_per_objfile parameter.
3330 (compute_compunit_symtab_includes): Likewise.
3331 (process_cu_includes): Update.
3332
7aa104c4
SM
33332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3334
3335 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3336 parameter.
3337 (create_type_unit_group): Update.
3338 (process_psymtab_comp_unit_reader): Update.
3339 (build_type_psymtabs_reader): Update.
3340
e3beb21d
SM
33412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3342
3343 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3344 object through m_this_cu->cu.
3345
d460f660
SM
33462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3349 the info parameter.
3350 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3351
ab432490
SM
33522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3355 per_objfile parameter.
3356 (load_full_type_unit): Add per_objfile parameter.
3357 (read_signatured_type): Likewise.
3358 (load_full_comp_unit): Likewise.
3359 (load_cu): Likewise.
3360 (dw2_do_instantiate_symtab): Likewise.
3361 (dw2_get_file_names): Likewise.
3362 (dw2_map_symtabs_matching_filename): Update.
3363 (dw_expand_symtabs_matching_file_matcher): Update.
3364 (dw2_map_symbol_filenames): Update.
3365 (process_psymtab_comp_unit): Add per_objfile parameter.
3366 (build_type_psymtabs_1): Update.
3367 (process_skeletonless_type_unit): Update.
3368 (dwarf2_build_psymtabs_hard): Update.
3369 (load_partial_comp_unit): Add per_objfile parameter.
3370 (scan_partial_symbols): Update.
3371 (load_full_comp_unit): Add per_objfile parameter.
3372 (process_imported_unit_die): Update.
3373 (create_cus_hash_table): Update.
3374 (find_partial_die): Update.
3375 (dwarf2_read_addr_index): Update.
3376 (follow_die_offset): Update.
3377 (dwarf2_fetch_die_loc_sect_off): Update.
3378 (dwarf2_fetch_constant_bytes): Update.
3379 (dwarf2_fetch_die_type_sect_off): Update.
3380 (follow_die_sig_1): Update.
3381 (load_full_type_unit): Add per_objfile parameter.
3382 (read_signatured_type): Likewise.
3383
313bad1b
SM
33842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3387 of objfile_name.
3388
c3699833
SM
33892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3390
3391 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3392 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3393 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3394 field.
3395 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3396 (create_cus_from_index): Update.
3397 (dwarf2_read_gdb_index): Update.
3398 (create_cus_from_debug_names): Update.
3399 (dwarf2_read_debug_names): Update.
3400 (get_abbrev_section_for_cu): Update.
3401 (create_all_comp_units): Update.
3402 (read_attribute_value): Update.
3403 (get_debug_line_section): Update.
3404 * dwarf2/index-cache.c (index_cache::store): Update.
3405 * dwarf2/index-write.c (save_gdb_index_command): Update.
3406 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3407
1859c670
SM
34082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3411 member.
3412 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3413 dwarf2_per_cu_data::per_bfd.
3414 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3415 (create_type_unit_group): Likewise.
3416 (queue_comp_unit): Remove reference to
3417 per_cu->dwarf2_per_objfile.
3418 (maybe_queue_comp_unit): Likewise.
3419 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3420 (create_cus_hash_table): Assign new field.
3421
5e22e966
SM
34222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/read.c: Replace
3425 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3426 dwarf2_cu->per_objfile throughout.
3427
97a1449a
SM
34282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3431 parameter, don't use per_cu->dwarf2_per_objfile.
3432 (dw2_instantiate_symtab): Likewise.
3433 (dw2_find_last_source_symtab): Update.
3434 (dw2_map_expand_apply): Update.
3435 (dw2_lookup_symbol): Update.
3436 (dw2_expand_symtabs_for_function): Update.
3437 (dw2_expand_all_symtabs): Update.
3438 (dw2_expand_symtabs_with_fullname): Update.
3439 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3440 don't use per_cu->dwarf2_per_objfile.
3441 (dw2_expand_marked_cus): Update.
3442 (dw2_find_pc_sect_compunit_symtab): Update.
3443 (dw2_debug_names_lookup_symbol): Update.
3444 (dw2_debug_names_expand_symtabs_for_function): Update.
3445 (dw2_debug_names_map_matching_symbols): Update.
3446 (dwarf2_psymtab::expand_psymtab): Update.
3447
9e021579
SM
34482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3451 <per_objfile>: New member.
3452 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3453 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3454 call to dwarf2_cu.
3455 (cutu_reader::cutu_reader): Update.
3456 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3457
ae090bdb
SM
34582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3461 struct dwarf2_per_objfile.
3462 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3463 dwarf2_per_bfd.
3464 * dwarf2/read.c (set_die_type): Update.
3465 (get_die_type_at_offset): Update.
3466
af758d11
SM
34672020-05-27 Tom Tromey <tom@tromey.com>
3468 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3471 method.
3472 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3473 get_symtab, set_symtab>: New methods.
3474 <m_symtabs>: New field.
3475 (struct dwarf2_psymtab): Derive from partial_symtab.
3476 <readin_p, get_compunit_symtab>: Declare methods.
3477 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3478 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3479 New methods.
3480 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3481 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3482 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3483 (dw2_symtab_iter_next, dw2_print_stats)
3484 (dw2_expand_symtabs_with_fullname)
3485 (dw2_expand_symtabs_matching_one)
3486 (dw_expand_symtabs_matching_file_matcher)
3487 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3488 (dw2_debug_names_iterator::next)
3489 (dw2_debug_names_map_matching_symbols)
3490 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3491 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3492 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3493 New methods.
3494 (get_compunit_symtab, process_full_comp_unit)
3495 (process_full_type_unit): Update.
3496 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3497
5989a64e
SM
34982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3501 then introduce a new dwarf2_per_objfile type.
3502 <read_line_string>: Move to the new dwarf2_per_objfile type.
3503 <objfile>: Likewise.
3504 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3505 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3506 dwarf2_per_objfile->per_bfd.
3507 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3508 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3509 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3510 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3511 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3512 (dwarf2_per_objfile::locate_sections): Rename to...
3513 (dwarf2_per_bfd::locate_sections): ... this.
3514 (dwarf2_per_objfile::get_cutu): Rename to...
3515 (dwarf2_per_bfd::get_cutu): ... this.
3516 (dwarf2_per_objfile::get_cu): Rename to...
3517 (dwarf2_per_bfd::get_cu): ... this.
3518 (dwarf2_per_objfile::get_tu): Rename to...
3519 (dwarf2_per_bfd::get_tu): ... this.
3520 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3521 (dwarf2_per_bfd::allocate_per_cu): ... this.
3522 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3523 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3524 (get_gdb_index_contents_ftype): Change parameter from
3525 dwarf2_per_objfile to dwarf2_per_bfd.
3526 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3527 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3528
a50264ba
TT
35292020-05-27 Tom Tromey <tom@tromey.com>
3530 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3533 (allocate_piece_closure): Set "per_objfile" member.
3534 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3535 (locexpr_describe_location, loclist_describe_location): Use new
3536 member.
3537 * dwarf2/read.c (read_call_site_scope)
3538 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3539 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3540 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3541 handle_data_member_location): Set per_objfile member.
3542 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3543 member.
3544 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3545
d3473f0c
TT
35462020-05-27 Tom Tromey <tom@tromey.com>
3547
3548 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3549 allocate_signatured_type>: Declare new methods.
3550 <m_num_psymtabs>: New member.
3551 (struct dwarf2_per_cu_data) <index>: New member.
3552 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3553 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3554 (create_cu_from_index_list): Use allocate_per_cu.
3555 (create_signatured_type_table_from_index)
3556 (create_signatured_type_table_from_debug_names)
3557 (create_debug_type_hash_table, add_type_unit)
3558 (read_comp_units_from_section): Use allocate_signatured_type.
3559
5717c425
TT
35602020-05-27 Tom Tromey <tom@tromey.com>
3561
3562 * psymtab.c (partial_map_expand_apply)
3563 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3564 (psym_lookup_global_symbol_language)
3565 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3566 (psym_print_stats, psym_expand_symtabs_for_function)
3567 (psym_map_symbol_filenames, psym_map_matching_symbols)
3568 (psym_expand_symtabs_matching)
3569 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3570 (maintenance_check_psymtabs): Update.
3571 * psympriv.h (struct partial_symtab) <readin_p,
3572 get_compunit_symtab>: Add objfile parameter.
3573 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3574 Likewise.
3575 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3576 get_compunit_symtab>: Likewise.
3577 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3578
45940949
TT
35792020-05-27 Tom Tromey <tom@tromey.com>
3580
3581 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3582 member.
3583 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3584 (create_cu_from_index_list)
3585 (create_signatured_type_table_from_index)
3586 (create_signatured_type_table_from_debug_names)
3587 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3588 (dwarf2_create_include_psymtab)
3589 (create_debug_type_hash_table, add_type_unit)
3590 (create_type_unit_group, read_comp_units_from_section)
3591 (dwarf2_compute_name, create_cus_hash_table)
3592 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3593 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3594 obstack.
3595 (dw2_get_real_path): Likewise. Change argument to
3596 dwarf2_per_objfile.
3597
f8c6d152
LM
35982020-05-27 Luis Machado <luis.machado@linaro.org>
3599
3600 PR tdep/26000
3601 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3602 for ldrd (immediate).
3603
e98d2e6d
PW
36042020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3605
3606 * command.h: Add comment giving the name of class_tui.
3607 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3608 create the fake command for the help for class_tui.
3609
53a47a3e
TT
36102020-05-26 Tom Tromey <tromey@adacore.com>
3611
3612 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3613 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3614 (val_atr): New function.
3615 (value_val_atr): Use it.
3616 * ada-valprint.c (print_optional_low_bound): Change low bound
3617 handling for enums.
3618 (val_print_packed_array_elements): Don't call discrete_position.
3619 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3620 discrete_position for enum types.
3621 * language.c (default_print_array_index): Change type.
3622 * language.h (struct language_defn) <la_print_array_index>: Add
3623 index_type parameter, change type of index_value.
3624 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3625 (default_print_array_index): Update.
3626 * valprint.c (maybe_print_array_index): Don't call
3627 value_from_longest. Update.
3628 (value_print_array_elements): Don't call discrete_position.
3629
0bc2354b
TT
36302020-05-26 Tom Tromey <tromey@adacore.com>
3631
3632 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3633 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3634
1218a4bf
CDA
36352020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3636
3637 PR gdb/13519
3638 * avr-tdep.c (avr_integer_to_address): Return data or code
3639 address accordingly to the second 'type' argument of the
3640 function.
3641
92651b1d
MW
36422020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3643
3644 * infcmd.c, inferior.h: (construct_inferior_arguments):
3645 Moved function from here to gdbsupport/common-inferior.{h,cc}
3646
0a4f5f8c
TT
36472020-05-23 Tom Tromey <tom@tromey.com>
3648
3649 Revert commit eca1f90c:
3650 * NEWS: Remove entry for completion styling.
3651 * completer.c (_rl_completion_prefix_display_length): Move
3652 declaration later.
3653 (gdb_fnprint): Revert.
3654 (gdb_display_match_list_1): Likewise.
3655 * cli/cli-style.c (completion_prefix_style)
3656 (completion_difference_style, completion_suffix_style): Remove.
3657 (_initialize_cli_style): Revert.
3658 * cli/cli-style.h (completion_prefix_style)
3659 (completion_difference_style, completion_suffix_style): Don't
3660 declare.
3661
e08bd6c5
PA
36622020-05-24 Pedro Alves <palves@redhat.com>
3663
3664 * symtab.c (completion_list_add_name): Return boolean indication
3665 of whether the symbol matched.
3666 (completion_list_add_symbol): Don't try to remove C++ aliases if
3667 the symbol didn't match in the first place.
3668 * symtab.h (completion_list_add_name): Return bool.
3669
ceacbf6e
SM
36702020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3673 type::field.
3674
26f16254
JB
36752020-05-23 Joel Brobecker <brobecker@adacore.com>
3676
3677 GDB 9.2 released.
3678
eca1f90c
TT
36792020-05-23 Tom Tromey <tom@tromey.com>
3680
3681 * NEWS: Add entry for completion styling.
3682 * completer.c (_rl_completion_prefix_display_length): Move
3683 declaration earlier.
3684 (gdb_fnprint): Use completion_style.
3685 (gdb_display_match_list_1): Likewise.
3686 * cli/cli-style.c (completion_prefix_style)
3687 (completion_difference_style, completion_suffix_style): New
3688 globals.
3689 (_initialize_cli_style): Register new globals.
3690 * cli/cli-style.h (completion_prefix_style)
3691 (completion_difference_style, completion_suffix_style): Declare.
3692
51e2cfa2
PA
36932020-05-23 Pedro Alves <palves@redhat.com>
3694
3695 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3696 (parse_escape): Use ISDIGIT instead of isdigit.
3697 (puts_debug): Use gdb_isprint instead of isprint.
3698 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3699 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3700 ISSPACE instead of isspace.
3701 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3702 instead of isspace.
3703 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3704 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3705 instead of isxdigit and ISDIGIT instead of isdigit.
3706
80fc5e77
SM
37072020-05-22 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * gdbtypes.h (struct type) <field>: New method.
3710 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3711 or type::field.
3712
3cabb6b0
SM
37132020-05-22 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3716 (TYPE_FIELDS): Use type::fields. Change all call sites that
3717 modify the propery to use type::set_fields instead.
3718
1f704f76
SM
37192020-05-22 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3722 type::num_fields instead.
3723
5e33d5f4
SM
37242020-05-22 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3727 methods.
3728 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3729 that modify the number of fields to use type::set_num_fields
3730 instead.
3731
9392ebb3
TT
37322020-05-22 Tom Tromey <tromey@adacore.com>
3733
3734 * compile/compile-object-load.h (munmap_list_free): Don't
3735 declare.
3736
7c13f4e8
AB
37372020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * annotate.c (annotate_source_line): Update return type, add call
3740 to update current symtab and line.
3741 * annotate.h (annotate_source_line): Update return type, and
3742 extend header comment.
3743 * source.c (info_line_command): Check annotation_level before
3744 calling annotate_source_line.
3745 * stack.c (print_frame_info): If calling annotate_source_line
3746 returns true, then don't print any other source line information.
3747
aa370940
SM
37482020-05-21 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3751
84d53fa9
SM
37522020-05-21 Simon Marchi <simon.marchi@efficios.com>
3753
3754 * coffread.c (patch_type): Remove NULL check before xfree.
3755 * corefile.c (set_gnutarget): Likewise.
3756 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3757 * exec.c (build_section_table): Likewise.
3758 * remote.c (remote_target::pass_signals): Likewise.
3759 * utils.c (n_spaces): Likewise.
3760 * cli/cli-script.c (document_command): Likewise.
3761 * i386-windows-tdep.c (core_process_module_section): Likewise.
3762 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3763
9d428aae
SM
37642020-05-20 Simon Marchi <simon.marchi@efficios.com>
3765
3766 * symfile.c (reread_symbols): Clear objfile's section_offsets
3767 vector and section indices, re-compute them by calling
3768 sym_offsets.
3769
250106a7
TT
37702020-05-20 Tom Tromey <tromey@adacore.com>
3771
3772 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3773 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3774
9a0bacfb
TV
37752020-05-20 Tom de Vries <tdevries@suse.de>
3776
3777 PR symtab/25833
3778 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3779
7b958a48
AM
37802020-05-20 Alan Modra <amodra@gmail.com>
3781
3782 PR 25993
3783 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3784 bfd_set_filename.
3785 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3786 passed to bfd_set_filename.
3787 * symfile-mem.c (add_vsyscall_page): Likewise for string
3788 passed to symbol_file_add_from_memory.
3789 (symbol_file_add_from_memory): Make name param a const char* and
3790 don't strdup.
3791
c7e97679
AM
37922020-05-20 Alan Modra <amodra@gmail.com>
3793
3794 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3795 rather than accessing bfd->filename directly.
3796 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3797 and use bfd_section_name.
3798 * dwarf2/frame.c (decode_frame_entry): Likewise.
3799 * exec.c (exec_set_section_address): Likewise.
3800 * solib-aix.c (solib_aix_bfd_open): Likewise.
3801 * stap-probe.c (get_stap_base_address): Likewise.
3802 * symfile.c (reread_symbols): Likewise.
3803
563c591b
TT
38042020-05-19 Tom Tromey <tromey@adacore.com>
3805
3806 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3807
f408d82c
SM
38082020-05-19 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3811
98c59b52
PA
38122020-05-19 Pedro Alves <palves@redhat.com>
3813
3814 * NEWS (set exec-file-mismatch): Adjust entry.
3815 * exec.c: Include "build-id.h".
3816 (validate_exec_file): Try to match build IDs instead of filenames.
3817 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3818 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3819 and pass down 'warn_if_slow'.
3820 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3821 gdb_bfd_open_closure to pass it down.
3822 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3823
4111f652
PA
38242020-05-19 Pedro Alves <palves@redhat.com>
3825
3826 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3827 * target.c (target_fileio_open_1): Rename to target_fileio_open
3828 and make extern. Use bool.
3829 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3830 (target_fileio_read_alloc_1): Adjust.
3831 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3832 (target_fileio_open_warn_if_slow): Delete declaration.
3833
ad80db5b
PA
38342020-05-19 Pedro Alves <palves@redhat.com>
3835
3836 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3837 Adjust all callers.
3838
1d6ce4d3
YS
38392020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3840
3841 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3842 whether disp is negative.
3843
9005fbbb
SM
38442020-05-19 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * symfile.h (struct symfile_segment_data)
3847 <~symfile_segment_data>: Remove.
3848 <segment_info>: Change to std::vector.
3849 * symfile.c (default_symfile_segments): Update.
3850 * elfread.c (elf_symfile_segments): Update.
3851
68b888ff
SM
38522020-05-19 Simon Marchi <simon.marchi@efficios.com>
3853
3854 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3855 <segments>: New.
3856 <segment_bases, segment_sizes>: Remove.
3857 * symfile.c (default_symfile_segments): Update.
3858 * elfread.c (elf_symfile_segments): Update.
3859 * remote.c (remote_target::get_offsets): Update.
3860 * solib-target.c (solib_target_relocate_section_addresses):
3861 Update.
3862
62982abd
SM
38632020-05-19 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * symfile.h (struct symfile_segment_data): Initialize fields.
3866 <~symfile_segment_data>: Add.
3867 (symfile_segment_data_up): New.
3868 (struct sym_fns) <sym_segments>: Return a
3869 symfile_segment_data_up.
3870 (default_symfile_segments): Return a symfile_segment_data_up.
3871 (free_symfile_segment_data): Remove.
3872 (get_symfile_segment_data): Return a symfile_segment_data_up.
3873 * symfile.c (default_symfile_segments): Likewise.
3874 (get_symfile_segment_data): Likewise.
3875 (free_symfile_segment_data): Remove.
3876 (symfile_find_segment_sections): Update.
3877 * elfread.c (elf_symfile_segments): Return a
3878 symfile_segment_data_up.
3879 * remote.c (remote_target::get_offsets): Update.
3880 * solib-target.c (solib_target_relocate_section_addresses):
3881 Update.
3882 * symfile-debug.c (debug_sym_segments): Return a
3883 symfile_segment_data_up.
3884
7f204339
RO
38852020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3886
e52a0f1b
RO
3887 PR build/25981
3888 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3889 Hardcode register numbers.
3890
7f204339
RO
3891 PR build/25981
3892 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3893 procfs_find_LDT_entry): Remove.
3894 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3895 procfs_find_LDT_entry): Remove.
3896 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3897 Remove.
3898
7f32a4d5
PA
38992020-05-17 Pedro Alves <palves@redhat.com>
3900 Andrew Burgess <andrew.burgess@embecosm.com>
3901 Keno Fischer <keno@juliacomputing.com>
3902
3903 PR gdb/25741
3904 * breakpoint.c (build_target_condition_list): Update comments.
3905 (build_target_command_list): Update comments and skip matching
3906 locations.
3907 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3908 a separate function. Simplify "set breakpoint auto-hw off"
3909 handling.
3910 (insert_breakpoints): Update comment.
3911 (tracepoint_locations_match): New parameter. For breakpoints,
3912 compare location types too, if the caller wants to.
3913 (handle_automatic_hardware_breakpoints): New functions.
3914 (bp_location_is_less_than): Also sort by location type and
3915 hardware breakpoint length.
3916 (update_global_location_list): Handle "set breakpoint auto-hw on"
3917 here.
3918 (update_breakpoint_locations): Ask breakpoint_locations_match to
3919 ignore location types.
3920
7d93a1e0
SM
39212020-05-16 Simon Marchi <simon.marchi@efficios.com>
3922
3923 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3924 type::name instead.
3925
d0e39ea2
SM
39262020-05-16 Simon Marchi <simon.marchi@efficios.com>
3927
3928 * gdbtypes.h (struct type) <name, set_name>: New methods.
3929 (TYPE_CODE): Use type::name. Change all call sites used to set
3930 the name to use type::set_name instead.
3931
2dab0c7b
TT
39322020-05-16 Tom Tromey <tom@tromey.com>
3933
3934 * top.c (quit_force): Update.
3935 * infrun.c (handle_no_resumed): Update.
3936 * top.h (all_uis): New function.
3937 (ALL_UIS): Remove.
3938
59f7bd8d
SM
39392020-05-16 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3942
9bf058f0
PA
39432020-05-16 Pedro Alves <palves@redhat.com>
3944
3945 * ia64-linux-nat.c
3946 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3947 Declare method.
3948 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3949
8f86ae1a
SM
39502020-05-15 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3953 (sparc64_adi_info): Likewise.
3954
d6bc0792
TT
39552020-05-15 Tom Tromey <tom@tromey.com>
3956
3957 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3958 block_objfile.
3959 (lookup_objfile_from_block): Remove.
3960 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3961 (lookup_global_symbol): Use block_objfile.
3962 * symtab.h (lookup_objfile_from_block): Don't declare.
3963 * printcmd.c (clear_dangling_display_expressions): Use
3964 block_objfile.
3965 * parse.c (operator_check_standard): Use block_objfile.
3966
8c14c3a3
TT
39672020-05-15 Tom Tromey <tom@tromey.com>
3968
3969 * language.c (language_alloc_type_symbol): Set
3970 SYMBOL_SECTION.
3971 * symtab.c (initialize_objfile_symbol): Remove.
3972 (allocate_symbol): Remove.
3973 (allocate_template_symbol): Remove.
3974 * dwarf2/read.c (fixup_go_packaging): Use "new".
3975 (new_symbol): Use "new".
3976 (read_variable): Don't call initialize_objfile_symbol. Use
3977 "new".
3978 (read_func_scope): Use "new".
3979 * xcoffread.c (process_xcoff_symbol): Don't call
3980 initialize_objfile_symbol.
3981 (SYMBOL_DUP): Remove.
3982 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3983 "new".
3984 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3985 (allocate_template_symbol): Don't declare.
3986 (struct symbol): Add copy constructor. Change defaults.
3987 * jit.c (finalize_symtab): Use "new".
3988 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3989 Use "new".
3990 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3991 (common_block_end): Use "new".
3992 * mdebugread.c (parse_symbol): Use "new".
3993 (new_symbol): Likewise.
3994
5b4a1a8d
PW
39952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3996
3997 * NEWS: Mention changes to help and apropos.
3998
57b4f16e
PW
39992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4000
4001 * command.h (enum command_class): Improve comments, document
4002 that class_alias is for user-defined aliases, give the class
4003 name for each class, remove unused class_xdb.
4004 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4005 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4006 by a precise class.
4007 * infcmd.c (_initialize_infcmd): Likewise.
4008 * reverse.c (_initialize_reverse): Likewise.
4009 * stack.c (_initialize_stack): Likewise.
4010 * symfile.c (_initialize_symfile): Likewise.
4011 * tracepoint.c (_initialize_tracepoint): Likewise.
4012
7c05caf7
PW
40132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4014
4015 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4016 when their aliased command is traversed.
4017 (help_cmd): Add fput_command_names_styled call to
4018 output command name and aliases when command has an alias.
4019
3b3aaacb
PW
40202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4021
4022 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4023 * cli/cli-decode.c (help_cmd_list): Declare as static,
4024 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4025 a command together with the command.
4026 (fput_command_name_styled, fput_command_names_styled): New functions.
4027 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4028 fput_command_name_styled.
4029 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4030 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4031
7aa1b46f
PW
40322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4033
4034 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4035 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4036 * command.h (cmd_show_list): Likewise.
4037 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4038 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4039
89bcba74
PW
40402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4041
4042 * unittests/command-def-selftests.c (traverse_command_structure):
4043 Verify all commands of a list have the same prefix command and
4044 that only the top cmdlist commands have a null prefix.
4045
3f4d92eb
PW
40462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4047
4048 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4049 as prefix, not one of its aliases.
4050 (set_cmd_prefix): Remove.
4051 (do_add_cmd): Centralize the setting of the prefix of a command, when
4052 command is defined after its full chain of prefix commands.
4053 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4054 (add_setshow_cmd_full): Likewise.
4055 (update_prefix_field_of_prefixed_commands): New function.
4056 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4057 update_prefix_field_of_prefixed_commands.
4058 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4059 addresses of remote_set_cmdlist and remote_show_cmdlist given
4060 as argument, not the address of an argument.
4061 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4062 * gdb/remote.c (_initialize_remote): Likewise.
4063
0605465f
PW
40642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4065
4066 * cli/cli-cmds.c (alias_command): Check for an existing alias
4067 using lookup_cmd_composition, as valid_command_p is too strict
4068 and forbids aliases that are the prefix of an existing alias
4069 or command.
4070 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4071 command is properly recognised as a valid command.
4072
58e6ac70
PW
40732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4074
4075 * unittests/help-doc-selftests.c: Rename to
4076 unittests/command-def-selftests.c
4077 * unittests/command-def-selftests.c (help_doc_tests): Update some
4078 comments.
4079 (command_structure_tests, traverse_command_structure): New namespace
4080 and function.
4081 (command_structure_invariants_tests): New function.
4082 (_initialize_command_def_selftests) Renamed from
4083 _initialize_help_doc_selftests, register command_structure_invariants
4084 selftest.
4085
a7b9ceb8
PW
40862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4087
4088 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4089 an alias of 'show'.
4090
b2188a06
JB
40912020-05-15 Joel Brobecker <brobecker@adacore.com>
4092
4093 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4094 ada_is_fixed_point_type. Update all callers.
4095 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4096 all callers.
4097 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4098 Update all callers.
4099 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4100 print_fixed_point_type. Update all callers.
4101 * ada-valprint.c (ada_value_print_num): Replace call to
4102 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4103
a51951c2
KB
41042020-05-14 Kevin Buettner <kevinb@redhat.com>
4105
4106 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4107 processors.
4108 (cpu_supports_bts): Add CV_AMD case.
4109
29d6859f
LM
41102020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4111 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * infrun.c (stop_all_threads): Collect multiple wait events at
4114 each pass.
4115
78134374
SM
41162020-05-14 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4119 type::code instead.
4120
67607e24
SM
41212020-05-14 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbtypes.h (struct type) <code, set_code>: New methods.
4124 (TYPE_CODE): Use type::code. Change all call sites used to set
4125 the code to use type::set_code instead.
4126
a05575d3
TBA
41272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4128 Tom de Vries <tdevries@suse.de>
4129 Pedro Alves <palves@redhat.com>
4130
4131 PR threads/25478
4132 * infrun.c (stop_all_threads): Do NOT ignore
4133 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4134 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4135 received.
4136 (handle_no_resumed): Remove code handling a live inferior with no
4137 threads.
4138 * remote.c (has_single_non_exited_thread): New.
4139 (remote_target::update_thread_list): Do not delete a thread if is
4140 the last thread of the process.
4141 * thread.c (thread_select): Call delete_exited_threads instead of
4142 prune_threads.
4143
6ad82919
TBA
41442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4145
4146 * infrun.c (stop_all_threads): Enable/disable thread events of all
4147 targets. Move a debug message denoting the end of the function
4148 into the SCOPED_EXIT block.
4149
d890404b
TBA
41502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4151
4152 * process-stratum-target.h: Include <set>.
4153 (all_non_exited_process_targets, switch_to_target_no_thread): New
4154 function declarations.
4155 * process-stratum-target.c (all_non_exited_process_targets)
4156 (switch_to_target_no_thread): New function implementations.
4157
293b3ebc
TBA
41582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4159
4160 * infrun.c (handle_inferior_event): Extract out a piece of code
4161 into...
4162 (mark_non_executing_threads): ...this new function.
4163
7ca9b62a
TBA
41642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4165
4166 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4167 use.
4168
fc75c28b
TBA
41692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4170
4171 * regcache.c (regcache_read_pc_protected): New function
4172 implementation that returns 0 if the PC cannot read via
4173 'regcache_read_pc'.
4174 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4175 instead of 'regcache_read_pc'.
4176 (keep_going_pass_signal): Ditto.
4177
a89febbd
TT
41782020-05-13 Tom Tromey <tromey@adacore.com>
4179
4180 * ada-lang.c (align_value): Remove.
4181 (ada_template_to_fixed_record_type_1): Use align_up.
4182
f7e23710
TBA
41832020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4184
4185 * async-event.c: Update the copyright year.
4186 * async-event.h: Update the copyright year.
4187
02ff80c2
SM
41882020-05-12 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * objfiles.h (is_addr_in_objfile,
4191 shared_objfile_contains_address_p): Return bool.
4192 * objfile.c (is_addr_in_objfile,
4193 shared_objfile_contains_address_p): Return bool.
4194
4fd6c7e8
TT
41952020-05-11 Tom Tromey <tromey@adacore.com>
4196
4197 * cli/cli-cmds.c (info_command): Restore.
4198 (_initialize_cli_cmds): Use add_prefix_command for "info".
4199 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4200
5eb68a39
TT
42012020-05-11 Tom Tromey <tromey@adacore.com>
4202
4203 * ada-lang.c (ada_value_primitive_field): Now public.
4204 * ada-lang.h (ada_value_primitive_field): Declare.
4205 * ada-valprint.c (print_field_values): Use
4206 ada_value_primitive_field for wrapper fields.
4207
7666722f
TV
42082020-05-11 Tom de Vries <tdevries@suse.de>
4209
4210 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4211 MODULE_DOMAIN.
4212
3ee6bb11
TV
42132020-05-11 Tom de Vries <tdevries@suse.de>
4214
4215 PR symtab/25941
4216 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4217 with length 0, if not gdb-produced.
4218 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4219
43434996
TV
42202020-05-09 Tom de Vries <tdevries@suse.de>
4221
4222 PR gdb/25955
4223 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4224 calculation.
4225
2f78cffc
TT
42262020-05-09 Tom Tromey <tom@tromey.com>
4227
4228 * top.c (server_command): Now bool.
4229 * top.h (server_command): Now bool.
4230
4f7bc5ed
TT
42312020-05-08 Tom Tromey <tromey@adacore.com>
4232
4233 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4234 already being processed.
4235
8be4b118
TT
42362020-05-08 Tom Tromey <tom@tromey.com>
4237
4238 * printcmd.c (struct display) <next>: Remove.
4239 <display>: New constructor.
4240 <exp_string>: Now a std::string.
4241 <enabled_p>: Now a bool.
4242 (display_number): Move definition earlier.
4243 (displays): Rename from display_chain. Now a std::vector.
4244 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4245 (display_command): Update.
4246 (do_one_display, disable_display)
4247 (enable_disable_display_command, do_enable_disable_display):
4248 Update.
4249 (free_display): Remove.
4250 (clear_displays): Rewrite.
4251 (delete_display): Update.
4252 (map_display_numbers): Use function_view. Remove "data"
4253 parameter. Update.
4254 (do_delete_display): Remove.
4255 (undisplay_command): Update.
4256 (do_one_display, do_displays, disable_display)
4257 (info_display_command): Update.
4258 (do_enable_disable_display): Remove.
4259 (enable_disable_display_command)
4260 (clear_dangling_display_expressions): Update.
4261
94c93c35
TT
42622020-05-08 Tom Tromey <tom@tromey.com>
4263
4264 * symtab.c (set_symbol_cache_size)
4265 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4266 (maintenance_print_symbol_cache_statistics): Update.
4267 * symmisc.c (print_symbol_bcache_statistics)
4268 (print_objfile_statistics, maintenance_print_objfiles)
4269 (maintenance_info_symtabs, maintenance_check_symtabs)
4270 (maintenance_expand_symtabs, maintenance_info_line_tables):
4271 Update.
4272 * symfile-debug.c (set_debug_symfile): Update.
4273 * source.c (forget_cached_source_info): Update.
4274 * python/python.c (gdbpy_progspaces): Update.
4275 * psymtab.c (maintenance_info_psymtabs): Update.
4276 * probe.c (parse_probes): Update.
4277 * linespec.c (iterate_over_all_matching_symtabs)
4278 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4279 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4280 * exec.c (exec_target::close): Update.
4281 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4282 * breakpoint.c (print_one_breakpoint_location)
4283 (create_longjmp_master_breakpoint)
4284 (create_std_terminate_master_breakpoint): Update.
4285 * progspace.c (program_spaces): Now a std::vector.
4286 (maybe_new_address_space): Update.
4287 (add_program_space): Remove.
4288 (program_space::program_space): Update.
4289 (remove_program_space): Update.
4290 (number_of_program_spaces): Remove.
4291 (print_program_space, update_address_spaces): Update.
4292 * progspace.h (program_spaces): Change type.
4293 (ALL_PSPACES): Remove.
4294 (number_of_program_spaces): Don't declare.
4295 (struct program_space) <next>: Remove.
4296
a1fd1ac9
TT
42972020-05-08 Tom Tromey <tom@tromey.com>
4298
4299 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4300 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4301 (enable_break): Update.
4302 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4303 (frv_fdpic_find_canonical_descriptor): Update.
4304 (frv_fetch_objfile_link_map): Update.
4305 * progspace.c (program_space::free_all_objfiles): Update.
4306 (program_space::solibs): New method.
4307 * progspace.h (struct program_space) <solibs>: New method.
4308 * solist.h (master_so_list): Don't declare.
4309 (ALL_SO_LIBS): Remove.
4310 * solib.h (so_list_head): Remove.
4311 (update_solib_list): Update comment.
4312 * solib.c (master_so_list): Remove.
4313 (solib_used, update_solib_list, solib_add)
4314 (info_sharedlibrary_command, clear_solib)
4315 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4316
38eae084
TT
43172020-05-08 Tom Tromey <tom@tromey.com>
4318
4319 * extension.c (extension_languages): Now a std::array.
4320 (ALL_EXTENSION_LANGUAGES): Remove.
4321 (get_ext_lang_defn, get_ext_lang_of_file)
4322 (eval_ext_lang_from_control_command): Update.
4323 (finish_ext_lang_initialization)
4324 (auto_load_ext_lang_scripts_for_objfile)
4325 (ext_lang_type_printers::ext_lang_type_printers)
4326 (apply_ext_lang_type_printers)
4327 (ext_lang_type_printers::~ext_lang_type_printers)
4328 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4329 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4330 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4331 (get_matching_xmethod_workers, ext_lang_colorize)
4332 (ext_lang_before_prompt): Update.
4333 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4334
596dc4ad
TT
43352020-05-08 Tom Tromey <tom@tromey.com>
4336
4337 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4338 overload.
4339 <swap_string, m_string>: Remove.
4340 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4341 Update.
4342 * stabsread.c (define_symbol, read_type): Update.
4343 * linespec.c (find_linespec_symbols): Update.
4344 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4345 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4346 * dbxread.c (read_dbx_symtab): Update.
4347 * cp-support.h (cp_canonicalize_string_full)
4348 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4349 Return unique_xmalloc_ptr.
4350 * cp-support.c (inspect_type): Update.
4351 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4352 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4353 Likewise.
4354 * c-typeprint.c (print_name_maybe_canonical): Update.
4355 * break-catch-throw.c (check_status_exception_catchpoint):
4356 Update.
4357
bf4cb9be
TV
43582020-05-08 Tom de Vries <tdevries@suse.de>
4359
4360 * infrun.c (follow_fork): Copy current_line and current_symtab to
4361 child thread.
4362
a1b68f28
SM
43632020-05-07 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * async-event.c (struct async_signal_handler, struct
4366 async_event_handler): Reformat, remove typedef.
4367
98d48915
SM
43682020-05-07 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4371 access thistype->main_type->dyn_prop_list directly.
4372
7aa91313
SM
43732020-05-07 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4376 (remove_dyn_prop): Remove. Update all users to use
4377 type::remove_dyn_prop.
4378 * gdbtypes.c (remove_dyn_prop): Rename to...
4379 (type::remove_dyn_prop): ... this.
4380
5c54719c
SM
43812020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4382
4383 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4384 (add_dyn_prop): Remove. Update all users to use
4385 type::add_dyn_prop.
4386 * gdbtypes.c (add_dyn_prop): Rename to...
4387 (type::add_dyn_prop): ... this.
4388
24e99c6c
SM
43892020-05-07 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4392 (get_dyn_prop): Remove. Update all users to use
4393 type::dyn_prop.
4394 * gdbtypes.c (get_dyn_prop): Rename to...
4395 (type::dyn_prop): ... this.
4396
0d4bf016
SM
43972020-05-06 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4400
ac4a4f1c
SM
44012020-05-06 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4404 instruction, skip it if it's there.
4405
a3bbacc1
SM
44062020-05-05 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4409
c3236f84
SM
44102020-05-04 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4413 * gdbtypes.c (recursive_dump_type): Remove use of
4414 TYPE_INCOMPLETE.
4415
3b6acaee
TT
44162020-05-03 Tom Tromey <tom@tromey.com>
4417
4418 * breakpoint.c (catch_command, tcatch_command): Remove.
4419 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4420 add_show_prefix_cmd.
4421 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4422 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4423 Remove.
4424 (add_internal_problem_command): Use add_basic_prefix_cmd,
4425 add_show_prefix_cmd.
4426 * mips-tdep.c (set_mipsfpu_command): Remove.
4427 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4428 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4429 (_initialize_index_cache): Use add_basic_prefix_cmd.
4430 * memattr.c (dummy_cmd): Remove.
4431 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4432 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4433 (_initialize_tui_win): Use add_basic_prefix_cmd,
4434 add_show_prefix_cmd.
4435 * cli/cli-logging.c (set_logging_command): Remove.
4436 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4437 add_show_prefix_cmd.
4438 (show_logging_command): Remove.
4439 * target.c (target_command): Remove.
4440 (add_target): Use add_basic_prefix_cmd.
4441
a51119cd
HD
44422020-05-02 Hannes Domani <ssbssa@yahoo.de>
4443
4444 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4445
652fc23a 44462020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4447
652fc23a
PW
4448 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4449 info_command.
4450
117539e6
KR
44512020-04-30 Kamil Rytarowski <n54@gmx.com>
4452
4453 * nbsd-nat.c (nbsd_enable_proc_events)
4454 (nbsd_nat_target::post_startup_inferior): Add.
4455 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4456 (nbsd_nat_target::update_thread_list): Rewrite.
4457 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4458 "PTRACE_LWP_CREATE".
4459 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4460
102e38eb 44612020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4462
102e38eb
PW
4463 * stack.c (_initialize_stack): Remove duplicated creation
4464 of "frame" command and "f" alias.
4465
ee9d1e5f
HD
44662020-04-30 Hannes Domani <ssbssa@yahoo.de>
4467
4468 PR gdb/18706
4469 * gdbtypes.c (check_typedef): Calculate size of array of
4470 stubbed type.
4471
627c7fb8
HD
44722020-04-30 Hannes Domani <ssbssa@yahoo.de>
4473
4474 PR gdb/15559
4475 * i386-tdep.c (i386_push_dummy_call): Call
4476 i386_thiscall_push_dummy_call.
4477 (i386_thiscall_push_dummy_call): New function.
4478 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4479 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4480 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4481
ffc2844e
SM
44822020-04-29 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * gdbarch.sh (do_read): Add shellcheck disable directive for
4485 warning SC2162.
4486
1207375d
SM
44872020-04-29 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4490 "referenced but not assigned" warning.
4491
9fdb2916
SM
44922020-04-29 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * gdbarch.sh: Remove code that sets fallbackdefault.
4495
759cea5e
SM
44962020-04-29 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbarch.sh: Use shell operators && and || instead of
4499 -a and -o.
4500
cb02ab24
SM
45012020-04-29 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbarch.sh: Use $(...) instead of `...`.
4504
a6fc5ffc
SM
45052020-04-29 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * gdbarch.sh: Use double quotes around variables.
4508
8d113d13
SM
45092020-04-29 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * gdbarch.sh: Use %s with printf, instead of variables in the
4512 format string.
4513
ed6acedd
TT
45142020-04-29 Tom Tromey <tromey@adacore.com>
4515
4516 PR ada/25875:
4517 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4518 type fields here.
4519 (read_enumeration_type): Call
4520 update_enumeration_type_from_children later. Update comments.
4521 (process_enumeration_scope): Don't create type fields.
4522
b68b1b58
KR
45232020-04-29 Kamil Rytarowski <n54@gmx.com>
4524
4525 * nbsd-tdep.c: Include "xml-syscall.h".
4526 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4527
f94b2e03
KR
45282020-04-29 Kamil Rytarowski <n54@gmx.com>
4529
4530 * nbsd-nat.c: Include "sys/wait.h".
4531 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4532 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4533 (nbsd_nat_target::remove_exec_catchpoint)
4534 (nbsd_nat_target::set_syscall_catchpoint): Add.
4535 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4536 (nbsd_nat_target::insert_exec_catchpoint)
4537 (nbsd_nat_target::remove_exec_catchpoint)
4538 (nbsd_nat_target::set_syscall_catchpoint): Add.
4539 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4540 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4541 `nbsd_get_syscall_number'.
4542
fc49bc72
TT
45432020-04-29 Tom Tromey <tom@tromey.com>
4544
4545 * stack.c (print_block_frame_labels): Remove.
4546
d642b692
HD
45472020-04-29 Hannes Domani <ssbssa@yahoo.de>
4548
4549 PR gdb/17320
4550 * ada-valprint.c (val_print_packed_array_elements): Move array
4551 end bracket to new line.
4552 (ada_val_print_string): Remove extra spaces before first array
4553 element.
4554 * c-valprint.c (c_value_print_array): Likewise.
4555 * m2-valprint.c (m2_print_array_contents): Likewise.
4556 (m2_value_print_inner): Likewise.
4557 * p-valprint.c (pascal_value_print_inner): Likewise.
4558 * valprint.c (generic_val_print_array): Likewise.
4559 (value_print_array_elements): Move first array element and array
4560 end bracket to new line.
4561
ea90f227
TV
45622020-04-29 Tom de Vries <tdevries@suse.de>
4563
4564 PR symtab/25889
4565 * linespec.c (find_method): Fix ix calculation.
4566
4498ef4f
KR
45672020-04-28 Kamil Rytarowski <n54@gmx.com>
4568
4569 * syscalls/update-netbsd.sh: New file.
4570 * syscalls/netbsd.xml: Regenerate.
4571 * data-directory/Makefile.in: Register `netbsd.xml' in
4572 `SYSCALLS_FILES'.
4573
a55e30b5
SM
45742020-04-28 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * syscalls/update-freebsd.sh: Add double quotes.
4577
2b2fbab8
TT
45782020-04-28 Tom Tromey <tom@tromey.com>
4579
4580 * NEWS: Update.
4581 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4582 (cmdpy_init): Allow class_tui.
4583
a65189c9
TV
45842020-04-28 Mark Williams <mark@myosotissp.com>
4585
4586 PR gdb/24480
4587 * dwarf2read.c: Add missing assingments to list_in_scope when
4588 start_symtab was already called.
4589
1b95cdb7
SM
45902020-04-28 Simon Marchi <simon.marchi@efficios.com>
4591
4592 PR gdb/25881
4593 * dwarf2/read.c (offset_map_type): Use
4594 gdb:hash_enum<sect_offset> as hash function.
4595
15cd93d0
TV
45962020-04-28 Tom de Vries <tdevries@suse.de>
4597
4598 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4599 with DW_AT_signature.
4600
1eb39914
SM
46012020-04-27 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * configure.ac: Remove check for fs_base/gs_base in
4604 user_regs_struct.
4605 * configure: Re-generate.
4606 * config.in: Re-generate.
4607 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4608 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4609 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4610
991a3e2e
LM
46112020-04-27 Luis Machado <luis.machado@linaro.org>
4612
4613 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4614 problematic inline frame unwinding situation.
4615 * frame.c (frame_id_computed_p): New function.
4616 * frame.h (frame_id_computed_p): New prototype.
4617
361ba0e8
TT
46182020-04-26 Tom Tromey <tom@tromey.com>
4619
4620 * command.h (enum command_class) <class_pseudo>: Remove.
4621
bc3609fd
PW
46222020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4623
4624 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4625 and whitespace.
4626
b9771db7
KR
46272020-04-25 Kamil Rytarowski <n54@gmx.com>
4628
ec16513e
SM
4629 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4630 `PT_GET_PROCESS_STATE' block.
b9771db7 4631
7151c1af
TT
46322020-04-24 Tom Tromey <tom@tromey.com>
4633
4634 * symtab.h (symbol_get_demangled_name): Don't declare.
4635 * symtab.c (symbol_get_demangled_name): Remove.
4636 (general_symbol_info::natural_name)
4637 (general_symbol_info::demangled_name): Update.
4638
906bb4c5
TT
46392020-04-24 Tom Tromey <tom@tromey.com>
4640
4641 PR rust/25025:
4642 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4643
bcfe6157
TT
46442020-04-24 Tom Tromey <tom@tromey.com>
4645
4646 PR symtab/12707:
4647 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4648 exists.
4649 (new_symbol): Likewise.
4650 * compile/compile-object-load.c (get_out_value_type): Use
4651 symbol_matches_search_name.
4652
f049a313
TT
46532020-04-24 Tom Tromey <tom@tromey.com>
4654
4655 * dwarf2/read.c (add_partial_symbol): Do not call
4656 compute_and_set_names.
4657
76e288d1
TT
46582020-04-24 Tom Tromey <tom@tromey.com>
4659
4660 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4661 overload.
4662
2467f4f6
TT
46632020-04-24 Tom Tromey <tom@tromey.com>
4664
4665 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4666 (add_psymbol_to_list): New overload. Make old overload call new
4667 one.
4668 * psympriv.h (add_psymbol_to_list): New overload.
4669
e61108c9
TT
46702020-04-24 Tom Tromey <tom@tromey.com>
4671
4672 * dwarf2/read.c (partial_die_info::read) <case
4673 DW_AT_linkage_name>: Use value_as_string.
4674 (dwarf2_string_attr): Use value_as_string.
4675 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4676 method.
4677 * dwarf2/attribute.c (attribute::value_as_string): New method.
4678
8c87a452
TT
46792020-04-24 Tom Tromey <tom@tromey.com>
4680
4681 * symtab.c (general_symbol_info::natural_name)
4682 (general_symbol_info::demangled_name): Check for language_rust.
4683
787de330
TT
46842020-04-24 Tom Tromey <tom@tromey.com>
4685
4686 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4687 (dwarf2_physname): ... from here.
4688 (partial_die_info::read): Add Rust "{" hack.
4689
ff985671
TT
46902020-04-24 Tom Tromey <tom@tromey.com>
4691
4692 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4693 method.
4694 (symbol_set_demangled_name): Don't declare.
4695 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4696 symbol_set_demangled_name.
4697 (general_symbol_info::set_language)
4698 (general_symbol_info::compute_and_set_names): Update.
4699 * minsyms.c (minimal_symbol_reader::install): Update.
4700 * dwarf2/read.c (new_symbol): Update.
4701
1acda803
TT
47022020-04-24 Tom Tromey <tromey@adacore.com>
4703
4704 PR python/23662:
4705 * python/py-type.c (convert_field): Handle
4706 FIELD_LOC_KIND_DWARF_BLOCK.
4707 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4708 (typy_get_dynamic): Nw function.
4709 (type_object_getset): Add "dynamic".
4710 * NEWS: Add entry.
4711
d656f129
TT
47122020-04-24 Tom Tromey <tromey@adacore.com>
4713
4714 * ada-typeprint.c (print_choices, print_variant_part)
4715 (print_record_field_types_dynamic): New functions.
4716 (print_record_field_types): Use print_record_field_types_dynamic.
4717
7d79de9a
TT
47182020-04-24 Tom Tromey <tromey@adacore.com>
4719
4720 * dwarf2/read.c (handle_data_member_location): New overload.
4721 (dwarf2_add_field): Use it.
4722 (decode_locdesc): Add "computed" parameter. Update comment.
4723 * gdbtypes.c (is_dynamic_type_internal): Also look for
4724 FIELD_LOC_KIND_DWARF_BLOCK.
4725 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4726 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4727 virtual base classes.
4728 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4729 FIELD_LOC_KIND_DWARF_BLOCK.
4730
f8e89861
TT
47312020-04-24 Tom Tromey <tromey@adacore.com>
4732
4733 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4734 * gdbtypes.c (is_dynamic_type_internal): Check
4735 TYPE_HAS_DYNAMIC_LENGTH.
4736 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4737 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4738 New macros.
4739 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4740 constant.
4741
9c6a1327
TT
47422020-04-24 Tom Tromey <tromey@adacore.com>
4743
4744 * dwarf2/read.c (struct variant_field): Rewrite.
4745 (struct variant_part_builder): New.
4746 (struct nextfield): Remove "variant" field. Add "offset".
4747 (struct field_info): Add "current_variant_part" and
4748 "variant_parts".
4749 (alloc_discriminant_info): Remove.
4750 (alloc_rust_variant): New function.
4751 (quirk_rust_enum): Update.
4752 (dwarf2_add_field): Set "offset" member. Don't handle
4753 DW_TAG_variant_part.
4754 (offset_map_type): New typedef.
4755 (convert_variant_range, create_one_variant)
4756 (create_one_variant_part, create_variant_parts)
4757 (add_variant_property): New functions.
4758 (dwarf2_attach_fields_to_type): Call add_variant_property.
4759 (read_structure_type): Don't handle DW_TAG_variant_part.
4760 (handle_variant_part, handle_variant): New functions.
4761 (handle_struct_member_die): Use them.
4762 (process_structure_scope): Don't handle variant parts.
4763 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4764 (struct discriminant_info): Remove.
4765 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4766 (struct main_type) <flag_discriminated_union>: Remove.
4767 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4768 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4769 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4770 Update.
4771 * valops.c (value_union_variant): Remove.
4772 * value.h (value_union_variant): Don't declare.
4773
b249d2c2
TT
47742020-04-24 Tom Tromey <tromey@adacore.com>
4775
4776 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4777 (ada_value_primitive_packed_val): Update.
4778 * ada-valprint.c (ada_value_print_1): Update.
4779 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4780 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4781 just an address. Use evaluate_for_locexpr_baton.
4782 (dwarf2_evaluate_property): Update.
4783 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4784 array_view.
4785 * findvar.c (default_read_var_value): Update.
4786 * gdbtypes.c (compute_variant_fields_inner)
4787 (resolve_dynamic_type_internal): Update.
4788 (resolve_dynamic_type): Change type of valaddr parameter.
4789 * gdbtypes.h (resolve_dynamic_type): Update.
4790 * valarith.c (value_subscripted_rvalue): Update.
4791 * value.c (value_from_contents_and_address): Update.
4792
61122aa9
TT
47932020-04-24 Tom Tromey <tromey@adacore.com>
4794
4795 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4796 "push_initial_value" parameter.
4797 (dwarf2_evaluate_property): Likewise.
4798 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4799
ef83a141
TT
48002020-04-24 Tom Tromey <tromey@adacore.com>
4801
4802 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4803 (variant::matches, compute_variant_fields_recurse)
4804 (compute_variant_fields_inner, compute_variant_fields): New
4805 functions.
4806 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4807 Use resolved_type after type is made.
4808 (operator==): Add new cases.
4809 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4810 (struct discriminant_range, struct variant, struct variant_part):
4811 New.
4812 (union dynamic_prop_data) <variant_parts, original_type>: New
4813 members.
4814 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4815 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4816 constants.
4817 * value.c (unpack_bits_as_long): Now public.
4818 * value.h (unpack_bits_as_long): Declare.
4819
675127ec
TT
48202020-04-24 Tom Tromey <tromey@adacore.com>
4821
4822 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4823 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4824
9852ceef
HD
48252020-04-24 Hannes Domani <ssbssa@yahoo.de>
4826
4827 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4828
7632c6ce
KR
48292020-04-24 Kamil Rytarowski <n54@gmx.com>
4830
4831 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4832 (remove_fork_catchpoint, post_startup_inferior)
4833 (post_attach): Move...
4834 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4835 (remove_fork_catchpoint, post_startup_inferior)
4836 (post_attach): ...here.
4837 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4838 (remove_fork_catchpoint, post_startup_inferior)
4839 (post_attach): Move...
4840 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4841 (remove_fork_catchpoint, post_startup_inferior)
4842 (post_attach): ...here.
4843
7be2bb4f
TT
48442020-04-24 Tom Tromey <tromey@adacore.com>
4845
4846 * nat/windows-nat.h (struct windows_thread_info)
4847 <pc_adjusted>: New member.
4848 * windows-nat.c (windows_fetch_one_register): Check
4849 pc_adjusted.
4850 (windows_nat_target::get_windows_debug_event)
4851 (windows_nat_target::wait): Set pc_adjusted.
4852
f80cb3b4
TV
48532020-04-24 Tom de Vries <tdevries@suse.de>
4854
4855 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4856 Run gdb-add-index inside temp dir.
4857
29514b87
TT
48582020-04-23 Tom Tromey <tromey@adacore.com>
4859
4860 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4861 in loop.
4862
5939967b
LM
48632020-04-23 Luis Machado <luis.machado@linaro.org>
4864
4865 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4866 get_frame_register instead of gdbarch_unwind_pc.
4867
70bc38f5
TV
48682020-04-23 Tom de Vries <tdevries@suse.de>
4869
4870 * symtab.c (lookup_global_symbol): Prefer def over decl.
4871
de82891c
TV
48722020-04-23 Tom de Vries <tdevries@suse.de>
4873
4874 PR symtab/25807
4875 * block.c (best_symbol, better_symbol): Promote to external.
4876 * block.h (best_symbol, better_symbol): Declare.
4877 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4878 decl.
4879
ecc6c606
TT
48802020-04-23 Tom Tromey <tromey@adacore.com>
4881
4882 PR ada/25837:
4883 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4884 "const char *", not a "const std::string &".
4885 <name_and_matcher::operator==>: Update.
4886 * unittests/lookup_name_info-selftests.c: Change type of
4887 "result".
4888
740480b8
TT
48892020-04-23 Tom Tromey <tom@tromey.com>
4890
4891 * inferior.h (iterate_over_inferiors): Don't declare.
4892 * inferior.c (iterate_over_inferiors): Remove.
4893 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4894 Remove.
4895 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4896 use iterate_over_inferiors.
4897 (darwin_resume_inferior_it)
4898 (struct resume_inferior_threads_param)
4899 (darwin_resume_inferior_threads_it): Remove.
4900 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4901
ae3ab1f0
TV
49022020-04-23 Tom de Vries <tdevries@suse.de>
4903
4904 * blockframe.c (find_pc_partial_function): Use
4905 find_pc_sect_compunit_symtab rather than
4906 objfile->sf->qf->find_pc_sect_compunit_symtab.
4907
317d2668
TV
49082020-04-22 Tom de Vries <tdevries@suse.de>
4909
4910 PR symtab/25764
4911 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4912 in psymtabs.
4913
eea9e357
TV
49142020-04-22 Tom de Vries <tdevries@suse.de>
4915
4916 PR symtab/25801
4917 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4918 symtabs.
4919
3d5afab3
TV
49202020-04-22 Tom de Vries <tdevries@suse.de>
4921
4922 PR symtab/25700
4923 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4924 CU if already created.
4925
d43b7a2d
TBA
49262020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4927
4928 * infrun.c (displaced_step_fixup): Switch to the event_thread
4929 before calling displaced_step_restore, not after.
4930
d89edf9b
MM
49312020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4932
4933 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4934 its inferior is not recorded by us.
4935 (record_btrace_target_open): Replace call to
4936 all_non_exited_threads () with call to current_inferior
4937 ()->non_exited_threads ().
4938 (record_btrace_target::stop_recording): Likewise.
4939 (record_btrace_target::close): Likewise.
4940 (record_btrace_target::wait): Likewise.
4941 (record_btrace_target::record_stop_replaying): Likewise.
4942
5897fd49
MM
49432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4944
4945 * btrace.c (btrace_enable): Throw an error on double enables and
4946 when enabling recording fails.
4947 (btrace_disable): Throw an error if the thread is not recorded.
4948
1a476b6d
MM
49492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4950
4951 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4952 request if we do not have a thread_info.
4953
4778a5f8
TV
49542020-04-21 Tom de Vries <tdevries@suse.de>
4955
4956 PR gdb/25471
4957 * thread.c
4958 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4959 exception in get_frame_id.
4960
0fa7617d
TT
49612020-04-20 Tom Tromey <tromey@adacore.com>
4962
4963 * python/python.c (struct gdbpy_event): Mark move constructor as
4964 noexcept.
4965 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4966 constructor as noexcept.
4967 * completer.h (struct completion_result): Mark move constructor as
4968 noexcept.
4969 * completer.c (completion_result::completion_result): Use
4970 initialization style. Don't call reset_match_list.
4971
ad23bda0
MS
49722020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4973
4974 * MAINTAINERS (Write After Approval): Add myself.
4975
45e1f031
TT
49762020-04-18 Tom Tromey <tom@tromey.com>
4977
4978 * windows-tdep.c (init_w32_command_list)
4979 (w32_prefix_command_valid): Restore.
4980 (_initialize_windows_tdep): Call init_w32_command_list.
4981
08feed99
TT
49822020-04-18 Tom Tromey <tom@tromey.com>
4983
4984 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4985 * value.c (value_fn_field): Update.
4986 * valops.c (find_function_in_inferior)
4987 (value_allocate_space_in_inferior): Update.
4988 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4989 Update.
4990 * tui/tui-source.c (tui_source_window::set_contents): Update.
4991 * symtab.c (lookup_global_or_static_symbol)
4992 (find_function_start_sal_1, skip_prologue_sal)
4993 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4994 * symmisc.c (dump_msymbols, dump_symtab_1)
4995 (maintenance_print_one_line_table): Update.
4996 * symfile.c (init_entry_point_info, section_is_mapped)
4997 (list_overlays_command, simple_read_overlay_table)
4998 (simple_overlay_update_1): Update.
4999 * stap-probe.c (handle_stap_probe): Update.
5000 * stabsread.c (dbx_init_float_type, define_symbol)
5001 (read_one_struct_field, read_enum_type, read_range_type): Update.
5002 * source.c (info_line_command): Update.
5003 * python/python.c (gdbpy_source_objfile_script)
5004 (gdbpy_execute_objfile_script): Update.
5005 * python/py-type.c (save_objfile_types): Update.
5006 * python/py-objfile.c (py_free_objfile): Update.
5007 * python/py-inferior.c (python_new_objfile): Update.
5008 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5009 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5010 (maintenance_check_psymtabs): Update.
5011 * printcmd.c (info_address_command): Update.
5012 * objfiles.h (struct objfile) <arch>: New method, from
5013 get_objfile_arch.
5014 (get_objfile_arch): Don't declare.
5015 * objfiles.c (get_objfile_arch): Remove.
5016 (filter_overlapping_sections): Update.
5017 * minsyms.c (msymbol_is_function): Update.
5018 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5019 (output_nondebug_symbol): Update.
5020 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5021 (mdebug_expand_psymtab): Update.
5022 * machoread.c (macho_add_oso_symfile): Update.
5023 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5024 Update.
5025 * linux-fork.c (checkpoint_command): Update.
5026 * linespec.c (convert_linespec_to_sals): Update.
5027 * jit.c (finalize_symtab): Update.
5028 * infrun.c (insert_exception_resume_from_probe): Update.
5029 * ia64-tdep.c (ia64_find_unwind_table): Update.
5030 * hppa-tdep.c (internalize_unwinds): Update.
5031 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5032 Update.
5033 * gcore.c (call_target_sbrk): Update.
5034 * elfread.c (record_minimal_symbol, elf_symtab_read)
5035 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5036 (elf_gnu_ifunc_resolve_by_got): Update.
5037 * dwarf2/read.c (create_addrmap_from_index)
5038 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5039 (read_debug_names_from_section)
5040 (process_psymtab_comp_unit_reader, add_partial_symbol)
5041 (add_partial_subprogram, process_full_comp_unit)
5042 (read_file_scope, read_func_scope, read_lexical_block_scope)
5043 (read_call_site_scope, dwarf2_ranges_read)
5044 (dwarf2_record_block_ranges, dwarf2_add_field)
5045 (mark_common_block_symbol_computed, read_tag_pointer_type)
5046 (read_tag_string_type, dwarf2_init_float_type)
5047 (dwarf2_init_complex_target_type, read_base_type)
5048 (partial_die_info::read, partial_die_info::read)
5049 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5050 (dwarf2_fetch_die_loc_sect_off): Update.
5051 * dwarf2/loc.c (dwarf2_find_location_expression)
5052 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5053 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5054 (dwarf2_loc_desc_get_symbol_read_needs)
5055 (locexpr_describe_location_piece, locexpr_describe_location_1)
5056 (loclist_describe_location): Update.
5057 * dwarf2/index-write.c (write_debug_names): Update.
5058 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5059 * dtrace-probe.c (dtrace_process_dof): Update.
5060 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5061 (process_one_symbol): Update.
5062 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5063 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5064 (coff_read_enum_type): Update.
5065 * cli/cli-cmds.c (edit_command, list_command): Update.
5066 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5067 * breakpoint.c (create_overlay_event_breakpoint)
5068 (create_longjmp_master_breakpoint)
5069 (create_std_terminate_master_breakpoint)
5070 (create_exception_master_breakpoint, get_sal_arch): Update.
5071 * block.c (block_gdbarch): Update.
5072 * annotate.c (annotate_source_line): Update.
5073
0743fc83
TT
50742020-04-17 Tom Tromey <tromey@adacore.com>
5075
5076 * auto-load.c (show_auto_load_cmd): Remove.
5077 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5078 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5079 (maintenance_print_arc_command): Remove.
5080 * tui/tui-win.c (tui_command): Remove.
5081 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5082 * tui/tui-layout.c (tui_layout_command): Remove.
5083 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5084 * python/python.c (user_set_python, user_show_python): Remove.
5085 (_initialize_python): Use add_basic_prefix_cmd,
5086 add_show_prefix_cmd.
5087 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5088 (install_gdb_commands): Use add_basic_prefix_cmd,
5089 add_show_prefix_cmd.
5090 (info_guile_command): Remove.
5091 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5092 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5093 add_show_prefix_cmd.
5094 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5095 Remove do_set and do_show parameters.
5096 * cli/cli-style.c (set_style, show_style): Remove.
5097 (_initialize_cli_style): Use add_basic_prefix_cmd,
5098 add_show_prefix_cmd.
5099 (cli_style_option::add_setshow_commands): Remove do_set and
5100 do_show parameters.
5101 (cli_style_option::add_setshow_commands): Use
5102 add_basic_prefix_cmd, add_show_prefix_cmd.
5103 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5104 (set_style_name): Remove.
5105 * cli/cli-dump.c (dump_command, append_command): Remove.
5106 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5107 (tekhex_dump_command, binary_dump_command)
5108 (binary_append_command): Remove.
5109 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5110 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5111 (init_w32_command_list): Remove; move into ...
5112 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5113 * valprint.c (set_print, show_print, set_print_raw)
5114 (show_print_raw): Remove.
5115 (_initialize_valprint): Use add_basic_prefix_cmd,
5116 add_show_prefix_cmd.
5117 * typeprint.c (set_print_type, show_print_type): Remove.
5118 (_initialize_typeprint): Use add_basic_prefix_cmd,
5119 add_show_prefix_cmd.
5120 * record.c (set_record_command, show_record_command): Remove.
5121 (_initialize_record): Use add_basic_prefix_cmd,
5122 add_show_prefix_cmd.
5123 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5124 add_show_prefix_cmd.
5125 (info_command, show_command, set_debug, show_debug): Remove.
5126 * top.h (set_history, show_history): Don't declare.
5127 * top.c (set_history, show_history): Remove.
5128 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5129 (unset_tdesc_cmd): Remove.
5130 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5131 add_show_prefix_cmd.
5132 * symtab.c (info_module_command): Remove.
5133 (_initialize_symtab): Use add_basic_prefix_cmd.
5134 * symfile.c (overlay_command): Remove.
5135 (_initialize_symfile): Use add_basic_prefix_cmd.
5136 * sparc64-tdep.c (info_adi_command): Remove.
5137 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5138 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5139 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5140 add_show_prefix_cmd.
5141 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5142 (_initialize_serial): Use add_basic_prefix_cmd,
5143 add_show_prefix_cmd.
5144 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5145 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5146 add_show_prefix_cmd.
5147 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5148 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5149 add_show_prefix_cmd.
5150 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5151 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5152 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5153 add_show_prefix_cmd.
5154 * remote.c (remote_command, set_remote_cmd): Remove.
5155 (_initialize_remote): Use add_basic_prefix_cmd.
5156 * record-full.c (set_record_full_command)
5157 (show_record_full_command): Remove.
5158 (_initialize_record_full): Use add_basic_prefix_cmd,
5159 add_show_prefix_cmd.
5160 * record-btrace.c (cmd_set_record_btrace)
5161 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5162 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5163 (cmd_show_record_btrace_pt): Remove.
5164 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5165 add_show_prefix_cmd.
5166 * ravenscar-thread.c (set_ravenscar_command)
5167 (show_ravenscar_command): Remove.
5168 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5169 add_show_prefix_cmd.
5170 * mips-tdep.c (show_mips_command, set_mips_command)
5171 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5172 add_show_prefix_cmd.
5173 * maint.c (maintenance_command, maintenance_info_command)
5174 (maintenance_check_command, maintenance_print_command)
5175 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5176 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5177 add_show_prefix_cmd.
5178 (show_per_command_cmd): Remove.
5179 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5180 Remove.
5181 (maintenance_show_test_settings_cmd): Remove.
5182 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5183 add_show_prefix_cmd.
5184 * maint-test-options.c (maintenance_test_options_command):
5185 Remove.
5186 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5187 * macrocmd.c (macro_command): Remove
5188 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5189 * language.c (set_check, show_check): Remove.
5190 (_initialize_language): Use add_basic_prefix_cmd,
5191 add_show_prefix_cmd.
5192 * infcmd.c (unset_command): Remove.
5193 (_initialize_infcmd): Use add_basic_prefix_cmd.
5194 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5195 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5196 add_show_prefix_cmd.
5197 * go32-nat.c (go32_info_dos_command): Remove.
5198 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5199 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5200 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5201 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5202 (_initialize_frame): Use add_basic_prefix_cmd,
5203 add_show_prefix_cmd.
5204 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5205 (_initialize_dcache): Use add_basic_prefix_cmd,
5206 add_show_prefix_cmd.
5207 * cp-support.c (maint_cplus_command): Remove.
5208 (_initialize_cp_support): Use add_basic_prefix_cmd.
5209 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5210 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5211 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5212 add_basic_prefix_cmd, add_show_prefix_cmd.
5213 * breakpoint.c (save_command): Remove.
5214 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5215 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5216 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5217 add_show_prefix_cmd.
5218 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5219 (set_ada_command, show_ada_command): Remove.
5220 (_initialize_ada_language): Use add_basic_prefix_cmd,
5221 add_show_prefix_cmd.
5222 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5223
3557f442
KR
52242020-04-16 Kamil Rytarowski <n54@gmx.com>
5225
5226 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5227 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5228
16197208
SM
52292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5230
5231 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5232 warning messages.
5233
00ac85d3
SM
52342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5235
5236 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5237 import table is not at beginning of .idata section.
5238
381ce63f
PA
52392020-04-16 Pedro Alves <palves@redhat.com>
5240
5241 * inferior.c (delete_inferior): Use delete operator directly
5242 instead of delete_program_space.
5243 * progspace.c (add_program_space): New, factored out from
5244 program_space::program_space.
5245 (remove_program_space): New, factored out from
5246 delete_program_space.
5247 (program_space::program_space): Remove intro comment. Rewrite.
5248 (program_space::~program_space): Remove intro comment. Call
5249 remove_program_space.
5250 (delete_program_space): Delete.
5251 * progspace.h (program_space::program_space): Make explicit. Move
5252 intro comment here, adjusted.
5253 (program_space::~program_space): Move intro comment here,
5254 adjusted.
5255 (delete_program_space): Remove.
5256
a010605f
TT
52572020-04-16 Tom Tromey <tromey@adacore.com>
5258
5259 * windows-nat.c (windows_nat::handle_access_violation): New
5260 function.
5261 * nat/windows-nat.h (handle_access_violation): Declare.
5262 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5263 windows-nat.c. Call handle_access_violation.
5264
efba5c23
TV
52652020-04-16 Tom de Vries <tdevries@suse.de>
5266
5267 PR symtab/25791
5268 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5269 CUs without psymtab.
5270
97ed802d
KB
52712020-04-16 Kevin Buettner <kevinb@redhat.com>
5272
5273 * python/python.c (do_start_initialization): Don't call
5274 PyEval_InitThreads for Python 3.9 and beyond.
5275
c7d64809
KR
52762020-04-15 Kamil Rytarowski <n54@gmx.com>
5277
5278 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5279 thread functions.
5280 (obsd_nat_target::wait): Likewise.
5281
ce127a96
TT
52822020-04-15 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5285 (DEBUG_EXCEPT): Use debug_printf.
5286
99f1bc6a
AB
52872020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * completer.c (class completion_tracker::completion_hash_entry)
5290 <hash_name>: New member function.
5291 (completion_tracker::discard_completions): New callback to hash a
5292 completion_hash_entry, pass this to htab_create_alloc.
5293
a0e9b532
JT
52942016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5295
5296 * windows-nat.c (windows_make_so): Warn rather than stopping with
5297 an error if realpath() fails.
5298
06ca5dd4
KR
52992020-04-14 Kamil Rytarowski <n54@gmx.com>
5300
5301 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5302 (nbsd_nat_target::info_proc): Add do_status.
5303
194d088f
TV
53042020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5305 Tom de Vries <tdevries@suse.de>
5306
5307 PR symtab/25718
5308 * psympriv.h (struct partial_symtab::read_symtab)
5309 (struct partial_symtab::expand_psymtab)
5310 (struct partial_symtab::read_dependencies): Update comments.
5311 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5312 read_symtab for includer.
5313 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5314 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5315 (struct dwarf2_include_psymtab::m_readin): Remove.
5316 (struct dwarf2_include_psymtab::includer): New member function.
5317 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5318
c1a66c06
TV
53192020-04-14 Tom de Vries <tdevries@suse.de>
5320
5321 PR symtab/25720
5322 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5323 with NULL symbol_matcher and lookup_name.
5324 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5325 and lookup_name.
5326 * dwarf2/read.c (dw2_expand_symtabs_matching)
5327 (dw2_debug_names_expand_symtabs_matching): Same.
5328 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5329 Make lookup_name a pointer. Update comment.
5330 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5331 lookup_name being a pointer.
5332 * symfile.c (expand_symtabs_matching): Same.
5333 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5334 * linespec.c (iterate_over_all_matching_symtabs): Same.
5335
400b5eca
TT
53362020-04-13 Tom Tromey <tom@tromey.com>
5337
5338 * run-on-main-thread.c: Update include.
5339 * unittests/main-thread-selftests.c: Update include.
5340 * tui/tui-win.c: Update include.
5341 * tui/tui-io.c: Update include.
5342 * tui/tui-interp.c: Update include.
5343 * tui/tui-hooks.c: Update include.
5344 * top.h: Update include.
5345 * top.c: Update include.
5346 * ser-base.c: Update include.
5347 * remote.c: Update include.
5348 * remote-notif.c: Update include.
5349 * remote-fileio.c: Update include.
5350 * record-full.c: Update include.
5351 * record-btrace.c: Update include.
5352 * python/python.c: Update include.
5353 * posix-hdep.c: Update include.
5354 * mingw-hdep.c: Update include.
5355 * mi/mi-main.c: Update include.
5356 * mi/mi-interp.c: Update include.
5357 * main.c: Update include.
5358 * linux-nat.c: Update include.
5359 * interps.c: Update include.
5360 * infrun.c: Update include.
5361 * inf-loop.c: Update include.
5362 * event-top.c: Update include.
5363 * event-loop.c: Move to ../gdbsupport/.
5364 * event-loop.h: Move to ../gdbsupport/.
5365 * async-event.h: Update include.
5366 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5367
93b54c8e
TT
53682020-04-13 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-win.c: Include async-event.h.
5371 * remote.c: Include async-event.h.
5372 * remote-notif.c: Include async-event.h.
5373 * record-full.c: Include async-event.h.
5374 * record-btrace.c: Include async-event.h.
5375 * infrun.c: Include async-event.h.
5376 * event-top.c: Include async-event.h.
5377 * event-loop.h: Move some declarations to async-event.h.
5378 * event-loop.c: Don't include ser-event.h or top.h. Move some
5379 code to async-event.c.
5380 * async-event.h: New file.
5381 * async-event.c: New file.
5382 * Makefile.in (COMMON_SFILES): Add async-event.c.
5383 (HFILES_NO_SRCDIR): Add async-event.h.
5384
c1cd3163
TT
53852020-04-13 Tom Tromey <tom@tromey.com>
5386
5387 * utils.c (flush_streams): New function.
5388 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5389
29f2bf4f
TT
53902020-04-13 Tom Tromey <tom@tromey.com>
5391
5392 * event-loop.c (handle_file_event): Use warning, not
5393 printf_unfiltered.
5394
98029d02
TT
53952020-04-13 Tom Tromey <tom@tromey.com>
5396
5397 * event-loop.c: Include <chrono>.
5398
06cc9596
TT
53992020-04-13 Tom Tromey <tom@tromey.com>
5400
5401 * gdb_select.h: Move to ../gdbsupport/.
5402 * event-loop.c: Update include path.
5403 * top.c: Update include path.
5404 * ser-base.c: Update include path.
5405 * ui-file.c: Update include path.
5406 * ser-tcp.c: Update include path.
5407 * guile/scm-ports.c: Update include path.
5408 * posix-hdep.c: Update include path.
5409 * ser-unix.c: Update include path.
5410 * gdb_usleep.c: Update include path.
5411 * mingw-hdep.c: Update include path.
5412 * inflow.c: Update include path.
5413 * infrun.c: Update include path.
5414 * event-top.c: Update include path.
5415
8ae8e197
TT
54162020-04-13 Tom Tromey <tom@tromey.com>
5417
5418 * configure: Rebuild.
5419 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5420
58cf28e8
TT
54212020-04-13 Tom Tromey <tom@tromey.com>
5422
5423 * event-loop.h (start_event_loop): Don't declare.
5424 * event-loop.c (start_event_loop): Move...
5425 * main.c (start_event_loop): ...here. Now static.
5426
b7f999ae
SDJ
54272020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5428
5429 * MAINTAINERS: Update my email address.
5430
1085dfd4
KR
54312020-04-12 Kamil Rytarowski <n54@gmx.com>
5432
5433 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5434 IP_ALL.
5435
49d1d1f5
KR
54362020-04-12 Kamil Rytarowski <n54@gmx.com>
5437
5438 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5439 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5440
b4848d2a
KR
54412020-04-12 Kamil Rytarowski <n54@gmx.com>
5442
5443 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5444 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5445
51c133d5
KR
54462020-04-12 Kamil Rytarowski <n54@gmx.com>
5447
5448 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5449
54b8cbd0
KR
54502020-04-11 Kamil Rytarowski <n54@gmx.com>
5451
5452 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5453 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5454 (nbsd_nat_target::info_proc): New functions.
5455 * nbsd-nat.c (kinfo_get_vmmap): New function.
5456 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5457 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5458 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5459 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5460 functions.
5461 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5462 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5463 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5464 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5465 (KINFO_VME_FLAG_GROWS_DOWN): New.
5466
cf83625d
AS
54672020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5468
5469 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5470 bit shift.
5471
0c4311ab
TT
54722020-04-10 Tom Tromey <tromey@adacore.com>
5473
5474 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5475
3e65b3e9
TT
54762020-04-10 Tom Tromey <tromey@adacore.com>
5477
5478 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5479 separate debug files.
5480
13302e95
HD
54812020-04-10 Hannes Domani <ssbssa@yahoo.de>
5482
5483 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5484 Move to...
5485 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5486 ... here.
5487 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5488 Check for STATUS_WX86_BREAKPOINT.
5489 (windows_nat_target::wait): Same.
5490
bdfc1e8a
TV
54912020-04-10 Tom de Vries <tdevries@suse.de>
5492
5493 PR cli/25808
5494 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5495
f4460aec
SM
54962020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5497
5498 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5499 (Write After Approval): Remove Tom de Vries.
5500
a25198bb
BE
55012020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5502
5503 revert partially:
5504 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5505
aac66a4c
SM
5506 * buildsym.c (record_line): Fix undefined behavior and preserve
5507 lines at eof.
a25198bb 5508
206c98a6
KR
55092020-04-09 Kamil Rytarowski <n54@gmx.com>
5510
5511 * auxv.h (svr4_auxv_parse): New.
5512 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5513 and generic_auxv_parse.
5514 (svr4_auxv_parse): Add.
5515 * obsd-tdep.c: Include "auxv.h".
5516 (obsd_auxv_parse): Remove.
5517 (obsd_init_abi): Remove comment.
5518 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5519 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5520 * nbsd-tdep.c: Include "auxv.h".
5521 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5522
71fbdbaf
TT
55232020-04-08 Tom Tromey <tromey@adacore.com>
5524
5525 * nat/windows-nat.h (last_wait_event): Don't declare.
5526 (wait_for_debug_event): Update comment.
5527 * nat/windows-nat.c (last_wait_event): Now static.
5528
2c1d95e8
TT
55292020-04-08 Tom Tromey <tromey@adacore.com>
5530
5531 * windows-nat.c (wait_for_debug_event): Move to
5532 nat/windows-nat.c.
5533 * nat/windows-nat.h (wait_for_debug_event): Declare.
5534 * nat/windows-nat.c (wait_for_debug_event): Move from
5535 windows-nat.c. No longer static.
5536
d2977bc4
TT
55372020-04-08 Tom Tromey <tromey@adacore.com>
5538
5539 * windows-nat.c (get_windows_debug_event): Use
5540 fetch_pending_stop.
5541 * nat/windows-nat.h (fetch_pending_stop): Declare.
5542 * nat/windows-nat.c (fetch_pending_stop): New function.
5543
e758e19c
TT
55442020-04-08 Tom Tromey <tromey@adacore.com>
5545
5546 * windows-nat.c (windows_continue): Use matching_pending_stop and
5547 continue_last_debug_event.
5548 * nat/windows-nat.h (matching_pending_stop)
5549 (continue_last_debug_event): Declare.
5550 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5551 (matching_pending_stop, continue_last_debug_event): New
5552 functions.
5553
8d30e395
TT
55542020-04-08 Tom Tromey <tromey@adacore.com>
5555
5556 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5557 (handle_exception_result): Move to nat/windows-nat.h.
5558 (DEBUG_EXCEPTION_SIMPLE): Remove.
5559 (windows_nat::handle_ms_vc_exception): New function.
5560 (handle_exception): Move to nat/windows-nat.c.
5561 (get_windows_debug_event): Update.
5562 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5563 nat/windows-nat.c.
5564 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5565 (handle_exception_result): Move from windows-nat.c.
5566 (handle_exception): Declare.
5567 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5568 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5569 windows-nat.c.
5570
29de418d
TT
55712020-04-08 Tom Tromey <tromey@adacore.com>
5572
5573 * windows-nat.c (exception_count, event_count): Remove.
5574 (handle_exception, get_windows_debug_event)
5575 (do_initial_windows_stuff): Update.
5576
a816ba18
TT
55772020-04-08 Tom Tromey <tromey@adacore.com>
5578
5579 * windows-nat.c (windows_nat::handle_load_dll)
5580 (windows_nat::handle_unload_dll): Rename. No longer static.
5581 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5582 Declare.
5583
a00caa12
TT
55842020-04-08 Tom Tromey <tromey@adacore.com>
5585
5586 * complaints.h (stop_whining): Declare at top-level.
5587 (complaint): Don't declare stop_whining.
5588
d41b524f
TT
55892020-04-08 Tom Tromey <tromey@adacore.com>
5590
5591 * windows-nat.c (windows_nat::handle_output_debug_string):
5592 Rename. No longer static.
5593 * nat/windows-nat.h (handle_output_debug_string): Declare.
5594
3c76026d
TT
55952020-04-08 Tom Tromey <tromey@adacore.com>
5596
5597 * windows-nat.c (current_process_handle, current_process_id)
5598 (main_thread_id, last_sig, current_event, last_wait_event)
5599 (current_windows_thread, desired_stop_thread_id, pending_stops)
5600 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5601 (display_selectors, fake_create_process)
5602 (get_windows_debug_event): Update.
5603 * nat/windows-nat.h (current_process_handle, current_process_id)
5604 (main_thread_id, last_sig, current_event, last_wait_event)
5605 (current_windows_thread, desired_stop_thread_id, pending_stops)
5606 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5607 * nat/windows-nat.c (current_process_handle, current_process_id)
5608 (main_thread_id, last_sig, current_event, last_wait_event)
5609 (current_windows_thread, desired_stop_thread_id, pending_stops)
5610 (siginfo_er): New globals. Move from windows-nat.c.
5611
9d8679cc
TT
56122020-04-08 Tom Tromey <tromey@adacore.com>
5613
5614 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5615 (handle_load_dll): Update.
5616 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5617
28688adf
TT
56182020-04-08 Tom Tromey <tromey@adacore.com>
5619
5620 * windows-nat.c (enum thread_disposition_type): Move to
5621 nat/windows-nat.h.
5622 (windows_nat::thread_rec): Rename from thread_rec. No longer
5623 static.
5624 (windows_add_thread, windows_nat_target::fetch_registers)
5625 (windows_nat_target::store_registers, handle_exception)
5626 (windows_nat_target::resume, get_windows_debug_event)
5627 (windows_nat_target::get_tib_address)
5628 (windows_nat_target::thread_name)
5629 (windows_nat_target::thread_alive): Update.
5630 * nat/windows-nat.h (enum thread_disposition_type): Move from
5631 windows-nat.c.
5632 (thread_rec): Declare.
5633
4834dad0
TT
56342020-04-08 Tom Tromey <tromey@adacore.com>
5635
5636 * windows-nat.c: Add "using namespace".
5637 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5638 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5639
65bafd5b
TT
56402020-04-08 Tom Tromey <tromey@adacore.com>
5641
5642 * nat/windows-nat.h (struct windows_thread_info): Declare
5643 destructor.
5644 * nat/windows-nat.c (~windows_thread_info): New.
5645
0a4afda3
TT
56462020-04-08 Tom Tromey <tromey@adacore.com>
5647
5648 PR gdb/22992
5649 * windows-nat.c (current_event): Update comment.
5650 (last_wait_event, desired_stop_thread_id): New globals.
5651 (struct pending_stop): New.
5652 (pending_stops): New global.
5653 (windows_nat_target) <stopped_by_sw_breakpoint>
5654 <supports_stopped_by_sw_breakpoint>: New methods.
5655 (windows_fetch_one_register): Add assertions. Adjust PC.
5656 (windows_continue): Handle pending stops. Suspend other threads
5657 when stepping. Use last_wait_event
5658 (wait_for_debug_event): New function.
5659 (get_windows_debug_event): Use wait_for_debug_event. Handle
5660 pending stops. Queue spurious stops.
5661 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5662 (windows_nat_target::kill): Use wait_for_debug_event.
5663 * nat/windows-nat.h (struct windows_thread_info)
5664 <stopped_at_software_breakpoint>: New field.
5665 * nat/windows-nat.c (windows_thread_info::resume): Clear
5666 stopped_at_software_breakpoint.
5667
8e61ebec
TT
56682020-04-08 Tom Tromey <tromey@adacore.com>
5669
5670 * windows-nat.c (enum thread_disposition_type): New.
5671 (thread_rec): Replace "get_context" parameter with "disposition";
5672 change type.
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
98a03287
TT
56802020-04-08 Tom Tromey <tromey@adacore.com>
5681
5682 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5683 (windows_continue): Use windows_continue::resume.
5684 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5685 resume>: Declare new methods.
5686 * nat/windows-nat.c: New file.
5687 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5688
7c7411bc
TT
56892020-04-08 Tom Tromey <tromey@adacore.com>
5690
5691 * windows-nat.c (windows_add_thread, windows_delete_thread)
5692 (windows_nat_target::fetch_registers)
5693 (windows_nat_target::store_registers, fake_create_process)
5694 (windows_nat_target::resume, windows_nat_target::resume)
5695 (get_windows_debug_event, windows_nat_target::wait)
5696 (windows_nat_target::pid_to_str)
5697 (windows_nat_target::get_tib_address)
5698 (windows_nat_target::get_ada_task_ptid)
5699 (windows_nat_target::thread_name)
5700 (windows_nat_target::thread_alive): Use lwp, not tid.
5701
2950fdf7
TT
57022020-04-08 Tom Tromey <tromey@adacore.com>
5703
5704 * windows-nat.c (handle_exception)
5705 (windows_nat_target::thread_name): Update.
5706 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5707 <name>: Now unique_xmalloc_ptr.
5708
62fe396b
TT
57092020-04-08 Tom Tromey <tromey@adacore.com>
5710
5711 * windows-nat.c (thread_rec)
5712 (windows_nat_target::fetch_registers): Update.
5713 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5714 Update comment.
5715 <debug_registers_changed, reload_context>: Now bool.
5716
e9534bd2
TT
57172020-04-08 Tom Tromey <tromey@adacore.com>
5718
5719 * windows-nat.c (windows_add_thread): Use new.
5720 (windows_init_thread_list, windows_delete_thread): Use delete.
5721 (get_windows_debug_event): Update.
5722 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5723 destructor, and initializers.
5724
ae1f8880
TT
57252020-04-08 Tom Tromey <tromey@adacore.com>
5726
5727 * windows-nat.c (struct windows_thread_info): Remove.
5728 * nat/windows-nat.h: New file.
5729
55a1e039
TT
57302020-04-08 Tom Tromey <tromey@adacore.com>
5731
5732 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5733 (thread_rec, windows_add_thread, windows_delete_thread)
5734 (windows_continue): Update.
5735
93366324
TT
57362020-04-08 Tom Tromey <tromey@adacore.com>
5737
5738 * windows-nat.c (struct windows_thread_info): Remove typedef.
5739 (thread_head): Remove.
5740 (thread_list): New global.
5741 (thread_rec, windows_add_thread, windows_init_thread_list)
5742 (windows_delete_thread, windows_continue): Update.
5743
0f2265e2
SM
57442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5745
5746 * windows-tdep.h (windows_init_abi): Add comment.
5747 (cygwin_init_abi): New declaration.
5748 * windows-tdep.c: Split signal enumeration in two, one for
5749 Windows and one for Cygwin.
5750 (windows_gdb_signal_to_target): Only deal with signal of the
5751 Windows OS ABI.
5752 (cygwin_gdb_signal_to_target): New function.
5753 (windows_init_abi): Rename to windows_init_abi_common, don't set
5754 gdb_signal_to_target gdbarch method. Add new new function with
5755 this name.
5756 (cygwin_init_abi): New function.
5757 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5758 comment. Don't call windows_init_abi.
5759 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5760 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5761 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5762 i386_windows_init_abi_common, don't call windows_init_abi. Add
5763 a new function of this name.
5764 (i386_cygwin_init_abi): New function.
5765 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5766 OS ABI Cygwin.
5767
3810f182
SM
57682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5771 parameter.c.
5772 (dwarf2_read_gdb_index): Update.
5773
063f8e80
KR
57742020-04-07 Kamil Rytarowski <n54@gmx.com>
5775
5776 * nbsd-tdep.c: Include "objfiles.h".
5777 (nbsd_skip_solib_resolver): New.
5778 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5779
85a9510c 57802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5781
5782 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5783 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5784 with DW_LLE_base_addressx are being emitted in DWARFv5.
5785 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5786 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5787 unsigned integer.
5788
9fc3eaae 57892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5790
5791 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5792 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5793 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5794 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5795 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5796 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5797 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5798
5799
41144253 58002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5801
5802 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5803 (read_loclist_index): New function definition.
5804 (lookup_loclist_base): New function definition.
5805 (read_loclist_header): New function definition.
5806 (dwarf2_cu): Add loclist_base and loclist_header field.
5807 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5808 (read_full_die_1): Read the value of DW_AT_loclists_base.
5809 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5810 (read_attribute_value): Handle DW_FORM_loclistx.
5811 (skip_one_die): Handle DW_FORM_loclistx.
5812 (loclist_header): New structure declaration.
5813 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5814
9f4e76a4
SM
58152020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5816
5817 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5818 constructor. Remove `addr` parameter from other constructor and
5819 add `per_cu` parameter.
5820 * dwarf2/read.c (create_partial_symtab): Update.
5821
25c11aca
TV
58222020-04-07 Tom de Vries <tdevries@suse.de>
5823
5824 PR symtab/25796
5825 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5826 (partial_die_info::fixup): Inherit has_const_value.
5827
5707e24b
TV
58282020-04-07 Tom de Vries <tdevries@suse.de>
5829
5830 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5831 symbols without address.
5832
05f00e22
KR
58332020-04-06 Kamil Rytarowski <n54@gmx.com>
5834
5835 * nbsd-nat.h (struct thread_info): Add forward declaration.
5836 (nbsd_nat_target::thread_alive): Add.
5837 (nbsd_nat_target::thread_name): Likewise.
5838 (nbsd_nat_target::update_thread_list): Likewise.
5839 (update_thread_list::post_attach): Likewise.
5840 (post_attach::pid_to_str): Likewise.
5841 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5842 (nbsd_thread_lister): Add.
5843 (nbsd_nat_target::thread_alive): Likewise.
5844 (nbsd_nat_target::thread_name): Likewise.
5845 (nbsd_add_threads): Likewise.
5846 (update_thread_list::post_attach): Likewise.
5847 (nbsd_nat_target::update_thread_list): Likewise.
5848 (post_attach::pid_to_str): Likewise.
5849
6ee448cc
TT
58502020-04-06 Tom Tromey <tromey@adacore.com>
5851
5852 * ada-valprint.c (print_variant_part): Extract the variant field.
5853 (print_field_values): Use the field as the outer value when
5854 recursing.
5855
dea34e8c
TT
58562020-04-06 Tom Tromey <tromey@adacore.com>
5857
5858 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5859 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5860 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5861 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5862 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5863
93689ce9
TT
58642020-04-06 Tom Tromey <tromey@adacore.com>
5865
5866 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5867 TYPE_CODE_ERROR.
5868
79743962
KR
58692020-04-06 Kamil Rytarowski <n54@gmx.com>
5870
5871 * nbsd-tdep.c: Include "gdbarch.h".
5872 Define enum with NetBSD signal numbers.
5873 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5874 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5875 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5876 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5877 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5878 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5879 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5880 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5881 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5882 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5883 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5884 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5885
9e7c9a03
HD
58862020-04-03 Hannes Domani <ssbssa@yahoo.de>
5887
5888 PR gdb/25325
5889 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5890
d9e49b61
TT
58912020-04-03 Tom Tromey <tromey@adacore.com>
5892
5893 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5894 Read constant block.
5895
e0fc5c3f
SM
58962020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5899 (gdb_bfd_get_full_section_contents): New declaration.
5900 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5901 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5902 gdb_bfd_get_full_section_contents.
5903
e2ff18a0
SM
59042020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5905
5906 * exec.c (build_section_table): Replace internal_error with
5907 gdb_assert.
5908 (section_table_xfer_memory_partial): Likewise.
5909 * mdebugread.c (parse_partial_symbols): Likewise.
5910 * psymtab.c (lookup_partial_symbol): Likewise.
5911 * utils.c (wrap_here): Likewise.
5912
0830d301
TT
59132020-04-02 Tom Tromey <tromey@adacore.com>
5914
5915 * f-lang.c (build_fortran_types): Use arch_type to initialize
5916 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5917
e7da7f8f
TT
59182020-04-02 Tom Tromey <tromey@adacore.com>
5919
5920 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5921 of attributes.
5922
c90d28ac
AB
59232020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5924 Bernd Edlinger <bernd.edlinger@hotmail.de>
5925 Tom Tromey <tromey@adacore.com>
5926
5927 * buildsym.c (buildsym_compunit::record_line): Remove
5928 deduplication code.
5929
1aa98955
TV
59302020-04-02 Tom de Vries <tdevries@suse.de>
5931
5932 PR ada/24671
5933 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5934
d3214198
TV
59352020-04-02 Tom de Vries <tdevries@suse.de>
5936
5937 * dwarf2/read.c (dwarf2_gdb_index_functions,
5938 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5939 NULL.
5940 * psymtab.c (psym_lookup_global_symbol_language): New function.
5941 (psym_functions): Init psym_lookup_global_symbol_language with
5942 psym_lookup_global_symbol_language.
5943 * symfile-debug.c (debug_sym_quick_functions): Init
5944 lookup_global_symbol_language with NULL.
5945 * symfile.c (set_initial_language): Remove fixme comment.
5946 * symfile.h (struct quick_symbol_functions): Add
5947 lookup_global_symbol_language.
5948 * symtab.c (find_quick_global_symbol_language): New function.
5949 (find_main_name): Use find_quick_global_symbol_language.
5950
2836752f
SM
59512020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5954
64dc2d4b
BE
59552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5956
5957 * buildsym.c (record_line): Fix undefined behavior and preserve
5958 lines at eof.
5959
bbe3dc41
BE
59602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5961
5962 * buildsym.c (record_line): Fix the resizing condition.
5963
6b4a335b
TT
59642020-04-01 Tom Tromey <tom@tromey.com>
5965
5966 * value.h (value_literal_complex): Add comment.
5967 * valops.c (value_literal_complex): Refer to value.h.
5968
3638a098
TT
59692020-04-01 Tom Tromey <tom@tromey.com>
5970
5971 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5972 (scalar_type): New rule, from typebase.
5973 (typebase): Use scalar_type. Recognize complex types.
5974 (field_name): Handle FLOAT_KEYWORD.
5975 (ident_tokens): Add _Complex and __complex__.
5976
c34e8714
TT
59772020-04-01 Tom Tromey <tom@tromey.com>
5978
5979 PR exp/25299:
5980 * valarith.c (promotion_type, complex_binop): New functions.
5981 (scalar_binop): Handle complex numbers. Use promotion_type.
5982 (value_pos, value_neg, value_complement): Handle complex numbers.
5983
fa649bb7
TT
59842020-04-01 Tom Tromey <tom@tromey.com>
5985
5986 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5987 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5988 (parse_number): Handle complex numbers.
5989
981c08ce
TT
59902020-04-01 Tom Tromey <tom@tromey.com>
5991
5992 * c-valprint.c (c_decorations): Change complex suffix to "i".
5993
4c99290d
TT
59942020-04-01 Tom Tromey <tom@tromey.com>
5995
5996 * valprint.c (generic_value_print_complex): Use accessors.
5997 * value.h (value_real_part, value_imaginary_part): Declare.
5998 * valops.c (value_real_part, value_imaginary_part): New
5999 functions.
6000 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6001
5b930b45
TT
60022020-04-01 Tom Tromey <tom@tromey.com>
6003
6004 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6005 (read_range_type): Update.
6006 * mdebugread.c (basic_type): Update.
6007 * go-lang.c (build_go_types): Use init_complex_type.
6008 * gdbtypes.h (struct main_type) <complex_type>: New member.
6009 (init_complex_type): Update.
6010 (arch_complex_type): Don't declare.
6011 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6012 Make name if none given. Use alloc_type_copy. Look for cached
6013 complex type.
6014 (arch_complex_type): Remove.
6015 (gdbtypes_post_init): Use init_complex_type.
6016 * f-lang.c (build_fortran_types): Use init_complex_type.
6017 * dwarf2/read.c (read_base_type): Update.
6018 * d-lang.c (build_d_types): Use init_complex_type.
6019 * ctfread.c (read_base_type): Update.
6020
53cccef1
TBA
60212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6022
6023 * infrun.c (stop_all_threads): Update assertion, plus when
6024 stopping threads, take into account that we might be trying
6025 to stop an all-stop target.
6026 (stop_waiting): Call 'stop_all_threads' if there exists a
6027 non-stop target.
6028
a0714d30
TBA
60292020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6030
6031 * target.h (exists_non_stop_target): New function declaration.
6032 * target.c (exists_non_stop_target): New function.
6033
60e22c1e
HD
60342020-04-01 Hannes Domani <ssbssa@yahoo.de>
6035
6036 PR gdb/24789
6037 * eval.c (is_integral_or_integral_reference): New function.
6038 (evaluate_subexp_standard): Allow integer references in
6039 pointer arithmetic.
6040
e139a727
TBA
60412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6042
6043 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6044 check for no ptid in the stop reply when the target is non-stop.
6045
e0802d59
TT
60462020-04-01 Tom Tromey <tromey@adacore.com>
6047
6048 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6049 "name" parameter to rvalue reference. Initialize m_name_holder.
6050 <lookup_name_info>: New overloads.
6051 <name>: Return gdb::string_view.
6052 <c_str>: New method.
6053 <make_ignore_params>: Update.
6054 <search_name_hash>: Update.
6055 <language_lookup_name>: Return const char *.
6056 <m_name>: Change type.
6057 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6058 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6059 (lookup_name_info::match_any): Update.
6060 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6061 Update.
6062 * minsyms.c (linkage_name_str): Update.
6063 * language.c (default_symbol_name_matcher): Update.
6064 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6065 Update.
6066 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6067 (ada_lookup_name_info::ada_lookup_name_info): Update.
6068 (literal_symbol_name_matcher): Update.
6069
8c072cb6
TT
60702020-04-01 Tom Tromey <tromey@adacore.com>
6071
6072 * psymtab.c (psymtab_search_name): Remove function.
6073 (psym_lookup_symbol): Create search name and lookup name here.
6074 (lookup_partial_symbol): Remove "name" parameter; add
6075 lookup_name.
6076 (psym_expand_symtabs_for_function): Update.
6077
6f29a534
TT
60782020-03-31 Joel Jones <joelkevinjones@gmail.com>
6079
6080 PR tui/25597:
6081 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6082
af62665e
TT
60832020-03-31 Tom Tromey <tromey@adacore.com>
6084
6085 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6086 memcpy.
6087
d1a89da5
NC
60882020-03-30 Nelson Chu <nelson.chu@sifive.com>
6089
6090 * features/riscv/32bit-csr.xml: Regenerated.
6091 * features/riscv/64bit-csr.xml: Regenerated.
6092
d8af9068
TT
60932020-03-30 Tom Tromey <tromey@adacore.com>
6094
6095 * ada-valprint.c (print_variant_part): Update.
6096 * ada-lang.h (ada_which_variant_applies): Update.
6097 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6098 outer_valaddr parameters; replace with "outer" value parameter.
6099 (to_fixed_variant_branch_type): Update.
6100
227c0bf4
PFC
61012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6102
6103 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6104 <list>. Remove inclusion of observable.h.
6105 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6106 (struct arch_lwp_info): New struct.
6107 (class ppc_linux_dreg_interface): New class.
6108 (struct ppc_linux_process_info): New struct.
6109 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6110 <low_new_clone, low_forget_process, low_prepare_to_resume>
6111 <copy_thread_dreg_state, mark_thread_stale>
6112 <mark_debug_registers_changed, register_hw_breakpoint>
6113 <clear_hw_breakpoint, register_wp, clear_wp>
6114 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6115 <num_memory_accesses, get_trigger_type>
6116 <create_watchpoint_request, hwdebug_point_cmp>
6117 <init_arch_lwp_info, get_arch_lwp_info>
6118 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6119 methods.
6120 <struct ptid_hash>: New inner struct.
6121 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6122 members.
6123 (saved_dabr_value, hwdebug_info, max_slots_number)
6124 (struct hw_break_tuple, struct thread_points, ppc_threads)
6125 (have_ptrace_hwdebug_interface)
6126 (hwdebug_find_thread_points_by_tid)
6127 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6128 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6129 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6130 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6131 use m_dreg_interface.
6132 (hwdebug_point_cmp): Change to...
6133 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6134 reference arguments instead of pointers.
6135 (ppc_linux_nat_target::ranged_break_num_registers): Use
6136 m_dreg_interface.
6137 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6138 m_dreg_interface. Call register_hw_breakpoint.
6139 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6140 m_dreg_interface. Call clear_hw_breakpoint.
6141 (get_trigger_type): Change to...
6142 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6143 comment.
6144 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6145 use m_dreg_interface. Call register_hw_breakpoint.
6146 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6147 use m_dreg_interface. Call clear_hw_breakpoint.
6148 (can_use_watchpoint_cond_accel): Change to...
6149 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6150 method. Update comment, use m_dreg_interface and
6151 m_process_info.
6152 (calculate_dvc): Change to...
6153 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6154 m_dreg_interface.
6155 (num_memory_accesses): Change to...
6156 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6157 (check_condition): Change to...
6158 (ppc_linux_nat_target::check_condition): ...this method.
6159 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6160 comment, use m_dreg_interface.
6161 (create_watchpoint_request): Change to...
6162 (ppc_linux_nat_target::create_watchpoint_request): ...this
6163 method. Use m_dreg_interface.
6164 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6165 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6166 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6167 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6168 (ppc_linux_nat_target::low_forget_process)
6169 (ppc_linux_nat_target::low_new_fork)
6170 (ppc_linux_nat_target::low_new_clone)
6171 (ppc_linux_nat_target::low_delete_thread)
6172 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6173 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6174 only call mark_thread_stale.
6175 (ppc_linux_thread_exit): Remove.
6176 (ppc_linux_nat_target::stopped_data_address): Change to...
6177 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6178 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6179 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6180 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6181 comment. Call low_stopped_data_address.
6182 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6183 m_dreg_interface.
6184 (ppc_linux_nat_target::masked_watch_num_registers): Use
6185 m_dreg_interface.
6186 (ppc_linux_nat_target::copy_thread_dreg_state)
6187 (ppc_linux_nat_target::mark_thread_stale)
6188 (ppc_linux_nat_target::mark_debug_registers_changed)
6189 (ppc_linux_nat_target::register_hw_breakpoint)
6190 (ppc_linux_nat_target::clear_hw_breakpoint)
6191 (ppc_linux_nat_target::register_wp)
6192 (ppc_linux_nat_target::clear_wp)
6193 (ppc_linux_nat_target::init_arch_lwp_info)
6194 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6195 (_initialize_ppc_linux_nat): Remove observer callback.
6196
4db10d8f
PFC
61972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6198
6199 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6200 (ppc_linux_nat_target::auxv_parse)
6201 (ppc_linux_nat_target::read_description)
6202 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6203 Move up.
6204
1310c1b0
PFC
62052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6206
6207 * linux-nat.h (low_new_clone): New method.
6208 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6209
69b037c3
SM
62102020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6213 (dbx_expand_psymtab): ... this.
6214 (start_psymtab): Update.
6215 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6216 (mdebug_expand_psymtab): ... this.
6217 (parse_partial_symbols): Update.
6218 (new_psymtab): Update.
6219 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6220 (xcoff_expand_psymtab): ... this.
6221 (xcoff_start_psymtab): Update.
6222
48993951
SM
62232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6224
6225 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6226 <expand_dependencies>: ... this.
6227 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6228 (partial_symtab::expand_dependencies): ... this.
6229 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6230 Update.
6231 (dwarf2_psymtab::expand_psymtab): Update.
6232 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6233 * mdebugread.c (psymtab_to_symtab_1): Update.
6234 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6235
3ad83046
SM
62362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * psympriv.h (discard_psymtab): Remove.
6239 * dbxread.c (dbx_end_psymtab): Update.
6240 * xcoffread.c (xcoff_end_psymtab): Update.
6241
4d1b9ab6
TT
62422020-03-28 Tom Tromey <tom@tromey.com>
6243
6244 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6245 comment.
6246
f1749218
TT
62472020-03-28 Tom Tromey <tom@tromey.com>
6248
6249 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6250
ebea7626
HD
62512020-03-27 Hannes Domani <ssbssa@yahoo.de>
6252
6253 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6254
a879b4d5
JB
62552020-03-26 John Baldwin <jhb@FreeBSD.org>
6256
6257 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6258
0826b30a
TT
62592020-03-26 Tom Tromey <tom@tromey.com>
6260
6261 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6262 (mark_common_block_symbol_computed, read_tag_string_type)
6263 (attr_to_dynamic_prop, read_subrange_type): Update.
6264 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6265 to be methods on struct attribute.
6266 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6267 (read_call_site_scope, partial_die_info::read)
6268 (partial_die_info::read, lookup_die_type, follow_die_ref):
6269 Update.
6270 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6271 from dwarf2_get_ref_die_offset.
6272 (attribute::constant_value): New method, from
6273 dwarf2_get_attr_constant_value.
6274 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6275 Declare method.
6276 <constant_value>: New method.
6277
2b2558bf
TT
62782020-03-26 Tom Tromey <tom@tromey.com>
6279
6280 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6281 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6282 (dwarf_type_encoding_name): Move to stringify.c.
6283 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6284 * dwarf2/stringify.c: New file.
6285 * dwarf2/stringify.h: New file.
6286
eeb64781
TT
62872020-03-26 Tom Tromey <tom@tromey.com>
6288
6289 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6290 Rewrite.
6291
a39fdb41
TT
62922020-03-26 Tom Tromey <tom@tromey.com>
6293
6294 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6295 methods.
6296 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6297 (lookup_ranges_base): Likewise.
6298 (read_cutu_die_from_dwo, read_full_die_1): Update.
6299
436c571c
TT
63002020-03-26 Tom Tromey <tom@tromey.com>
6301
6302 * dwarf2/read.c (read_import_statement, read_file_scope)
6303 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6304 (read_lexical_block_scope, read_call_site_scope)
6305 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6306 (handle_struct_member_die, process_structure_scope)
6307 (update_enumeration_type_from_children)
6308 (process_enumeration_scope, read_array_type, read_common_block)
6309 (read_namespace, read_module, read_subroutine_type): Update.
6310 (sibling_die): Remove.
6311
052c8bb8
TT
63122020-03-26 Tom Tromey <tom@tromey.com>
6313
6314 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6315 (build_type_psymtabs_reader, read_structure_type)
6316 (read_enumeration_type, read_full_die_1): Update.
6317 (dwarf2_attr_no_follow): Move to die.h.
6318 * dwarf2/die.h (struct die_info) <attr>: New method.
6319
2b24b6e4
TT
63202020-03-26 Tom Tromey <tom@tromey.com>
6321
6322 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6323 <base_address>: Now an optional.
6324 (dwarf2_find_base_address, dwarf2_rnglists_process)
6325 (dwarf2_ranges_process, fill_in_loclist_baton)
6326 (dwarf2_symbol_mark_computed): Update.
6327
c2d50fd0
TT
63282020-03-26 Tom Tromey <tom@tromey.com>
6329
6330 * dwarf2/read.c (struct die_info): Move to die.h.
6331 * dwarf2/die.h: New file.
6332
0df7ad3a
TT
63332020-03-26 Tom Tromey <tom@tromey.com>
6334
6335 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6336 * dwarf2/read.c
6337 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6338 Move to line-header.c.
6339 (read_checked_initial_length_and_offset, read_formatted_entries):
6340 Likewise.
6341 (dwarf_decode_line_header): Split into two.
6342 * dwarf2/line-header.c
6343 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6344 Move from read.c.
6345 (read_checked_initial_length_and_offset, read_formatted_entries):
6346 Likewise.
6347 (dwarf_decode_line_header): New function, split from read.c.
6348
86c0bb4c
TT
63492020-03-26 Tom Tromey <tom@tromey.com>
6350
6351 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6352 Declare method.
6353 * dwarf2/read.c (read_attribute_value): Update.
6354 (dwarf2_per_objfile::read_line_string): Rename from
6355 read_indirect_line_string.
6356 (read_formatted_entries): Update.
6357
2ef46c2f
TT
63582020-03-26 Tom Tromey <tom@tromey.com>
6359
6360 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6361 variable.
6362
4f9c1eda
TT
63632020-03-26 Tom Tromey <tom@tromey.com>
6364
6365 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6366 const.
6367 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6368 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6369 parameter const.
6370
5a0e026f
TT
63712020-03-26 Tom Tromey <tom@tromey.com>
6372
6373 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6374 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6375 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6376 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6377
8844c11b
TT
63782020-03-26 Tom Tromey <tom@tromey.com>
6379
6380 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6381 file_names_size, file_full_name, file_file_name>: Use const.
6382 <file_name_at, file_names>: Add const overload.
6383 * dwarf2/line-header.c (line_header::file_file_name)
6384 (line_header::file_full_name): Update.
6385
c90ec28a
TT
63862020-03-26 Tom Tromey <tom@tromey.com>
6387
6388 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6389 (macro_start_file, consume_improper_spaces)
6390 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6391 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6392 (dwarf_decode_macros): Move to macro.c.
6393 * dwarf2/macro.c: New file.
6394 * dwarf2/macro.h: New file.
6395 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6396
4f44ae6c
TT
63972020-03-26 Tom Tromey <tom@tromey.com>
6398
6399 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6400 method.
6401 * dwarf2/section.c: New method. From
6402 read_indirect_string_at_offset_from.
6403 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6404 (read_indirect_string_at_offset_from): Move to section.c.
6405 (read_indirect_string_at_offset): Rewrite.
6406 (read_indirect_line_string_at_offset): Remove.
6407 (read_indirect_string, read_indirect_line_string)
6408 (dwarf_decode_macro_bytes): Update.
6409
a0194fa8
TT
64102020-03-26 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/section.h (struct dwarf2_section_info)
6413 <overload_complaint>: Declare.
6414 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6415 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6416 Rename from dwarf2_section_buffer_overflow_complaint.
6417 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6418 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6419
3d27bbdb
TT
64202020-03-26 Tom Tromey <tom@tromey.com>
6421
6422 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6423 Declare.
6424 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6425 Move from read.c.
6426 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6427 to section.c.
6428
9eac9650
TT
64292020-03-26 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6432
bf80d710
TT
64332020-03-26 Tom Tromey <tom@tromey.com>
6434
6435 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6436 "builder".
6437 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6438 parameter.
6439 (dwarf_decode_macros): Update.
6440
0314b390
TT
64412020-03-26 Tom Tromey <tom@tromey.com>
6442
6443 * dwarf2/read.c (read_attribute_value): Update.
6444 (read_indirect_string_from_dwz): Move to dwz.c; change into
6445 method.
6446 (dwarf_decode_macro_bytes): Update.
6447 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6448 * dwarf2/dwz.c: New file.
6449 * Makefile.in (COMMON_SFILES): Add dwz.c.
6450
9fda78b6
TT
64512020-03-26 Tom Tromey <tom@tromey.com>
6452
6453 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6454 * dwarf2/read.c: Add include.
6455 * dwarf2/index-write.c: Add include.
6456 * dwarf2/index-cache.c: Add include.
6457 * dwarf2/dwz.h: New file.
6458
33aa3c10
TT
64592020-03-25 Tom Tromey <tom@tromey.com>
6460
6461 * compile/compile-object-load.c (get_out_value_type): Mention
6462 correct symbol name in error message.
6463
d503b685
HD
64642020-03-25 Hannes Domani <ssbssa@yahoo.de>
6465
6466 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6467
7b1eff95
TV
64682020-03-25 Tom de Vries <tdevries@suse.de>
6469
6470 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6471 * symmisc.c (dump_symtab_1): Print user and includes fields.
6472 (maintenance_info_symtabs): Same.
6473
dd895392
AB
64742020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6475
6476 PR gdb/25534
6477 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6478 (riscv_regcache_cooked_write): New function.
6479 (riscv_push_dummy_call): Use new function.
6480 (riscv_return_value): Likewise.
6481
5ab2fbf1
SM
64822020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6485 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6486 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6487 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6488 * infrun.c (follow_fork): Likewise.
6489 (follow_fork_inferior): Likewise.
6490 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6491 * linux-nat.h (class linux_nat_target): Likewise.
6492 * remote.c (class remote_target) <follow_fork>: Likewise.
6493 (remote_target::follow_fork): Likewise.
6494 * target-delegates.c: Re-generate.
6495 * target.c (default_follow_fork): Likewise.
6496 (target_follow_fork): Likewise.
6497 * target.h (struct target_ops) <follow_fork>: Likewise.
6498 (target_follow_fork): Likewise.
6499
a64fafb5
TV
65002020-03-24 Tom de Vries <tdevries@suse.de>
6501
6502 * psymtab.c (maintenance_info_psymtabs): Print user field.
6503
fe26d3a3
TT
65042020-03-20 Tom Tromey <tromey@adacore.com>
6505
6506 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6507 const.
6508 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6509 const.
6510
c884cc46
SM
65112020-03-20 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * ptrace.m4: Don't check for ptrace declaration.
6514 * config.in: Re-generate.
6515 * configure: Re-generate.
6516 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6517 not defined.
6518
1ff700c2
KR
65192020-03-20 Kamil Rytarowski <n54@gmx.com>
6520
6521 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6522 `PTRACE_TYPE_RET'.
6523 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6524 * sparc-nat.c (gdb_ptrace): Likewise.
6525 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6526
f7d4f0b1
TT
65272020-03-20 Tom Tromey <tromey@adacore.com>
6528
6529 * c-exp.y (lex_one_token): Fix assert.
6530
f67210ff
TT
65312020-03-20 Tom Tromey <tromey@adacore.com>
6532
6533 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6534 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6535 strncpy call.
6536
1773be9e
TT
65372020-03-20 Tom Tromey <tromey@adacore.com>
6538
6539 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6540
70304be9
TT
65412020-03-20 Tom Tromey <tromey@adacore.com>
6542
6543 * ada-valprint.c (print_variant_part): Remove parameters; switch
6544 to value-based API.
6545 (print_field_values): Likewise.
6546 (ada_val_print_struct_union): Likewise.
6547 (ada_value_print_1): Update.
6548
9faa006d
KR
65492020-03-20 Kamil Rytarowski <n54@gmx.com>
6550
6551 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6552 nbsd_nat_target instead of inf_ptrace_target.
6553 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6554 nbsd_nat_target.
6555
4a90f062
KR
65562020-03-20 Kamil Rytarowski <n54@gmx.com>
6557
6558 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6559 it to the ptrace call.
6560 * (store_registers): Likewise.
6561
65622020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6563
6564 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6565 it to the ptrace call.
6566 * (store_registers): Likewise.
6567
2d07da27
LM
65682020-03-19 Luis Machado <luis.machado@linaro.org>
6569
6570 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6571 valid, fetch vg value from ptrace.
6572
f09db380
KR
65732020-03-19 Kamil Rytarowski <n54@gmx.com>
6574 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6575 * inf-ptrace.c: Likewise.
6576 * (gdb_ptrace): Add.
6577 * (inf_ptrace_target::resume): Update.
6578 * (inf_ptrace_target::xfer_partial): Likewise.
6579 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6580 * (inf_ptrace_peek_poke): Update.
6581
fcc7376e
KR
65822020-03-19 Kamil Rytarowski <n54@gmx.com>
6583
6584 * x86-bsd-nat.c (gdb_ptrace): New.
6585 * (x86bsd_dr_set): Add new argument `ptid'.
6586 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6587 x86bsd_dr_set_addr): Update.
6588
cada5fc9
AB
65892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6590
6591 * remote.c (remote_target::process_stop_reply): Handle events for
6592 all threads differently.
6593
19a2740f
AB
65942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * completer.c (completion_tracker::remove_completion): Define new
6597 function.
6598 * completer.h (completion_tracker::remove_completion): Declare new
6599 function.
6600 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6601 when adding a C++ function symbol.
6602
724fd9ba
AB
66032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6604
6605 * completer.c (completion_tracker::completion_hash_entry): Define
6606 new class.
6607 (advance_to_filename_complete_word_point): Call
6608 recompute_lowest_common_denominator.
6609 (completion_tracker::completion_tracker): Call discard_completions
6610 to setup the hash table.
6611 (completion_tracker::discard_completions): Allow for being called
6612 from the constructor, pass new equal function, and element deleter
6613 when constructing the hash table. Initialise new class member
6614 variables.
6615 (completion_tracker::maybe_add_completion): Remove use of
6616 m_entries_vec, and store more information into m_entries_hash.
6617 (completion_tracker::recompute_lcd_visitor): New function, most
6618 content taken from...
6619 (completion_tracker::recompute_lowest_common_denominator):
6620 ...here, this now just visits each item in the hash calling the
6621 above visitor.
6622 (completion_tracker::build_completion_result): Remove use of
6623 m_entries_vec, call recompute_lowest_common_denominator.
6624 * completer.h (completion_tracker::have_completions): Remove use
6625 of m_entries_vec.
6626 (completion_tracker::completion_hash_entry): Declare new class.
6627 (completion_tracker::recompute_lowest_common_denominator): Change
6628 function signature.
6629 (completion_tracker::recompute_lcd_visitor): Declare new function.
6630 (completion_tracker::m_entries_vec): Delete.
6631 (completion_tracker::m_entries_hash): Initialize to NULL.
6632 (completion_tracker::m_lowest_common_denominator_valid): New
6633 member variable.
6634 (completion_tracker::m_lowest_common_denominator_max_length): New
6635 member variable.
6636
5a82b8a1
KR
66372020-03-17 Kamil Rytarowski <n54@gmx.com>
6638
6639 * regformats/regdef.h: Put reg in gdb namespace.
6640
fb516a69
KR
66412020-03-17 Kamil Rytarowski <n54@gmx.com>
6642
6643 * i386-bsd-nat.c (gdb_ptrace): New.
6644 * (i386bsd_fetch_inferior_registers,
6645 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6646 * (i386bsd_fetch_inferior_registers,
6647 i386bsd_store_inferior_registers) Use gdb_ptrace.
6648
1c0aa1fb
KR
66492020-03-17 Kamil Rytarowski <n54@gmx.com>
6650
6651 * amd64-bsd-nat.c (gdb_ptrace): New.
6652 * (amd64bsd_fetch_inferior_registers,
6653 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6654 * (amd64bsd_fetch_inferior_registers,
6655 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6656
5ccd2fb7
KR
66572020-03-17 Kamil Rytarowski <n54@gmx.com>
6658
6659 * user-regs.c (user_reg::read): Rename to...
6660 (user_reg::xread): ...this.
6661 * (append_user_reg): Rename argument `read' to `xread'.
6662 * (user_reg_add_builtin): Likewise.
6663 * (user_reg_add): Likewise.
6664 * (value_of_user_reg): Likewise.
6665
2108a63a
KR
66662020-03-17 Kamil Rytarowski <n54@gmx.com>
6667
6668 * sparc-nat.c (gdb_ptrace): New.
6669 * sparc-nat.c (sparc_fetch_inferior_registers)
6670 (sparc_store_inferior_registers) Remove obsolete comment.
6671 * sparc-nat.c (sparc_fetch_inferior_registers)
6672 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6673 * sparc-nat.c (sparc_fetch_inferior_registers)
6674 (sparc_store_inferior_registers) Use gdb_ptrace.
6675
a225c9a8
KR
66762020-03-17 Kamil Rytarowski <n54@gmx.com>
6677
6678 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6679 it to the ptrace call.
6680 * sh-nbsd-nat.c (store_registers): Likewise.
6681
98097623
KR
66822020-03-17 Kamil Rytarowski <n54@gmx.com>
6683
6684 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6685 nbsd_nat_target instead of inf_ptrace_target.
6686 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6687 nbsd_nat_target.
6688
9e38d619
KR
66892020-03-17 Kamil Rytarowski <n54@gmx.com>
6690
6691 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6692
a2ecbe9f
KR
66932020-03-17 Kamil Rytarowski <n54@gmx.com>
6694
6695 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6696 <sys/sysctl.h>.
6697 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6698
58990295
TV
66992020-03-17 Tom de Vries <tdevries@suse.de>
6700
6701 PR gdb/23710
6702 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6703 fields.
6704 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6705 fields.
6706 (process_imported_unit_die): Skip import of c++ CUs.
6707
771dd3a8
TT
67082020-03-16 Tom Tromey <tom@tromey.com>
6709
6710 * p-valprint.c (pascal_object_print_value): Initialize
6711 base_value.
6712
817a7585
AK
67132020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6714 Shahab Vahedi <shahab@synopsys.com>
6715
6716 * Makefile.in: Add arch/arc.o
6717 * configure.tgt: Likewise.
6718 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6719 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6720 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6721 * arc-tdep.h (arc_read_description): Add proto type.
6722 * arch/arc.c: New file.
6723 * arch/arc.h: Likewise.
6724 * features/Makefile: Replace old target descriptions with new.
6725 * features/arc-arcompact.c: Remove.
6726 * features/arc-arcompact.xml: Likewise.
6727 * features/arc-v2.c: Likewise
6728 * features/arc-v2.xml: Likewise
6729 * features/arc/aux-arcompact.xml: New file.
6730 * features/arc/aux-v2.xml: Likewise.
6731 * features/arc/core-arcompact.xml: Likewise.
6732 * features/arc/core-v2.xml: Likewise.
6733 * features/arc/aux-arcompact.c: Generate.
6734 * features/arc/aux-v2.c: Likewise.
6735 * features/arc/core-arcompact.c: Likewise.
6736 * features/arc/core-v2.c: Likewise.
6737 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6738
67430cd0
TT
67392020-03-16 Tom Tromey <tromey@adacore.com>
6740
6741 PR gdb/25663:
6742 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6743 putting value into bcache.
6744
30efb6c7
SM
67452020-03-16 Simon Marchi <simon.marchi@efficios.com>
6746
6747 PR gdb/21500
6748 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6749 to...
6750 (amd64_windows_init_abi_common): ... this. Don't set size of
6751 long type.
6752 (amd64_windows_init_abi): New function.
6753 (amd64_cygwin_init_abi): New function.
6754 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6755 the Cygwin OS ABI.
6756 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6757 comment.
6758
8db52437
SM
67592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6760
6761 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6762 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6763 (pe_import_directory_entry): New struct type.
6764 (is_linked_with_cygwin_dll): New function.
6765 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6766 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6767 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6768
5982a56a
SM
67692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6770
6771 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6772 i386_cygwin_core_osabi_sniffer.
6773
7a1998df
SM
67742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * i386-cygwin-tdep.c: Rename to...
6777 * i386-windows-tdep.c: ... this.
6778 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6779 i386-windows-tdep.c.
6780 * configure.tgt: Likewise.
6781
053205cc
SM
67822020-03-16 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6785 * osabi.c (gdb_osabi_names): Add "Windows".
6786 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6787 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6788 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6789 i386_cygwin_osabi_sniffer.
6790 (_initialize_i386_cygwin_tdep): Register OS ABI
6791 GDB_OSABI_WINDOWS for i386.
6792 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6793 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6794 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6795 for x86-64.
6796 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6797 when the target matches '*-*-mingw*'.
6798
fe4b2ee6
SM
67992020-03-16 Simon Marchi <simon.marchi@efficios.com>
6800
6801 * defs.h (enum gdb_osabi): Move to...
6802 * osabi.h (enum gdb_osabi): ... here.
6803 * gdbarch.sh: Include osabi.h in gdbarch.h.
6804 * gdbarch.h: Re-generate.
6805
cb9b645d
SM
68062020-03-16 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6809 function.
6810 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6811
3293bbaf
TT
68122020-03-14 Tom Tromey <tom@tromey.com>
6813
6814 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6815 for C++.
6816 (c_type_print_modifier): Likewise. Add "language" parameter.
6817 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6818 (c_type_print_base_1): Update.
6819 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6820 constants.
6821 * type-stack.c (type_stack::insert): Handle tp_atomic and
6822 tp_restrict.
6823 (type_stack::follow_type_instance_flags): Likewise.
6824 (type_stack::follow_types): Likewise. Merge type-following code.
6825 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6826 (space_identifier, cv_with_space_id)
6827 (const_or_volatile_or_space_identifier_noopt)
6828 (const_or_volatile_or_space_identifier): Remove.
6829 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6830 rules.
6831 (ptr_operator, typebase): Update.
6832 (enum token_flag) <FLAG_C>: New constant.
6833 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6834 "_Atomic".
6835 (lex_one_token): Handle FLAG_C.
6836
154151a6
KR
68372020-03-14 Kamil Rytarowski <n54@gmx.com>
6838
6839 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6840 it to the ptrace call.
6841 * m68k-bsd-nat.c (store_registers): Likewise.
6842
bc107784
KR
68432020-03-14 Kamil Rytarowski <n54@gmx.com>
6844
6845 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6846 gdb_byte *.
6847 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6848 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6849 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6850
01a80117
KR
68512020-03-14 Kamil Rytarowski <n54@gmx.com>
6852
6853 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6854 nbsd_nat_target instead of inf_ptrace_target.
6855 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6856 nbsd_nat_target.
6857
f90280ca
KR
68582020-03-14 Kamil Rytarowski <n54@gmx.com>
6859
6860 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6861 register_t.
6862
6def66f1
KR
68632020-03-14 Kamil Rytarowski <n54@gmx.com>
6864
6865 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6866 it to the ptrace call.
6867 * alpha-bsd-nat.c (store_registers): Likewise.
6868
66eaca97
KR
68692020-03-14 Kamil Rytarowski <n54@gmx.com>
6870
6871 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6872 includes.
6873 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6874 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6875 fill_fpregset): Likewise.
6876
4fed520b
KR
68772020-03-14 Kamil Rytarowski <n54@gmx.com>
6878
6879 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6880 nbsd_nat_target instead of inf_ptrace_target.
6881 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6882 nbsd_nat_target.
6883
2190cf06
KR
68842020-03-14 Kamil Rytarowski <n54@gmx.com>
6885
6886 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6887 register_t.
6888
75c56d3d
KR
68892020-03-14 Kamil Rytarowski <n54@gmx.com>
6890
6891 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6892 it to the ptrace call.
6893 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6894 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6895 * arm-nbsd-nat.c (store_register): Likewise.
6896 * arm-nbsd-nat.c (store_regs): Likewise.
6897 * arm-nbsd-nat.c (store_fp_register): Likewise.
6898 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6899
6018d381
KR
69002020-03-14 Kamil Rytarowski <n54@gmx.com>
6901
6902 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6903 nbsd_nat_target instead of inf_ptrace_target.
6904 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6905 nbsd_nat_target.
6906
013f99f0
KR
69072020-03-14 Kamil Rytarowski <n54@gmx.com>
6908
6909 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6910 it to the ptrace call.
6911 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6912
12753073
KR
69132020-03-14 Kamil Rytarowski <n54@gmx.com>
6914
6227b330
KR
6915 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6916 it to the ptrace call.
6917 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6918
69192020-03-14 Kamil Rytarowski <n54@gmx.com>
6920
6921 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6922 gdb_byte *.
12753073
KR
6923 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6924
d5be5fa4
KR
69252020-03-14 Kamil Rytarowski <n54@gmx.com>
6926
6927 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6928 instead of inf_ptrace_target.
6929 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6930 nbsd_nat_target.
6931
8110f842
KR
69322020-03-14 Kamil Rytarowski <n54@gmx.com>
6933
6934 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6935 register_t.
6936
52feded7
KR
69372020-03-14 Kamil Rytarowski <n54@gmx.com>
6938
6939 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6940 register_t.
6941
25567eee
KR
69422020-03-14 Kamil Rytarowski <n54@gmx.com>
6943
6944 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6945 register_t.
6946
426a9c18
TT
69472020-03-13 Tom Tromey <tom@tromey.com>
6948
6949 * value.h (val_print): Don't declare.
6950 * valprint.h (val_print_array_elements)
6951 (val_print_scalar_formatted, generic_val_print): Don't declare.
6952 * valprint.c (generic_val_print_array): Take a struct value.
6953 (generic_val_print_ptr, generic_val_print_memberptr)
6954 (generic_val_print_bool, generic_val_print_int)
6955 (generic_val_print_char, generic_val_print_complex)
6956 (generic_val_print): Remove.
6957 (generic_value_print): Update.
6958 (do_val_print): Remove unused parameters. Don't call
6959 la_val_print.
6960 (val_print): Remove.
6961 (common_val_print): Update. Don't call value_check_printable.
6962 (val_print_scalar_formatted, val_print_array_elements): Remove.
6963 * rust-lang.c (rust_val_print): Remove.
6964 (rust_language_defn): Update.
6965 * p-valprint.c (pascal_val_print): Remove.
6966 (pascal_value_print_inner): Update.
6967 (pascal_object_print_val_fields, pascal_object_print_val):
6968 Remove.
6969 (pascal_object_print_static_field): Update.
6970 * p-lang.h (pascal_val_print): Don't declare.
6971 * p-lang.c (pascal_language_defn): Update.
6972 * opencl-lang.c (opencl_language_defn): Update.
6973 * objc-lang.c (objc_language_defn): Update.
6974 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6975 * m2-lang.h (m2_val_print): Don't declare.
6976 * m2-lang.c (m2_language_defn): Update.
6977 * language.h (struct language_defn) <la_val_print>: Remove.
6978 * language.c (unk_lang_value_print_inner): Rename. Change
6979 argument types.
6980 (unknown_language_defn, auto_language_defn): Update.
6981 * go-valprint.c (go_val_print): Remove.
6982 * go-lang.h (go_val_print): Don't declare.
6983 * go-lang.c (go_language_defn): Update.
6984 * f-valprint.c (f_val_print): Remove.
6985 * f-lang.h (f_value_print): Don't declare.
6986 * f-lang.c (f_language_defn): Update.
6987 * d-valprint.c (d_val_print): Remove.
6988 * d-lang.h (d_value_print): Don't declare.
6989 * d-lang.c (d_language_defn): Update.
6990 * cp-valprint.c (cp_print_value_fields)
6991 (cp_print_value_fields_rtti, cp_print_value): Remove.
6992 (cp_print_static_field): Update.
6993 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6994 (c_val_print_struct, c_val_print_union, c_val_print_int)
6995 (c_val_print_memberptr, c_val_print): Remove.
6996 * c-lang.h (c_val_print_array, cp_print_value_fields)
6997 (cp_print_value_fields_rtti): Don't declare.
6998 * c-lang.c (c_language_defn, cplus_language_defn)
6999 (asm_language_defn, minimal_language_defn): Update.
7000 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7001 (ada_val_print_enum): Take a struct value.
7002 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7003 (ada_val_print): Remove.
7004 (ada_value_print_1): Update.
7005 (printable_val_type): Remove.
7006 * ada-lang.h (ada_val_print): Don't declare.
7007 * ada-lang.c (ada_language_defn): Update.
7008
42331a1e
TT
70092020-03-13 Tom Tromey <tom@tromey.com>
7010
7011 * valprint.c (do_val_print): Update.
7012 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7013 a struct value.
7014 (value_to_value_object_no_release): Declare.
7015 * python/py-value.c (value_to_value_object_no_release): New
7016 function.
7017 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7018 struct value.
7019 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7020 function.
7021 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7022 a struct value.
7023 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7024 Declare.
7025 (gdbscm_apply_val_pretty_printer): Take a struct value.
7026 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7027 value.
7028 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7029 value.
7030 * extension-priv.h (struct extension_language_ops)
7031 <apply_val_pretty_printer>: Take a struct value.
7032 * cp-valprint.c (cp_print_value): Create a struct value.
7033 (cp_print_value): Update.
7034
3a916a97
TT
70352020-03-13 Tom Tromey <tom@tromey.com>
7036
7037 * ada-valprint.c (print_field_values): Call common_val_print.
7038
b59eac37
TT
70392020-03-13 Tom Tromey <tom@tromey.com>
7040
7041 * ada-valprint.c (val_print_packed_array_elements): Remove
7042 bitoffset and val parameters. Call common_val_print.
7043 (ada_val_print_string): Remove offset, address, and original_value
7044 parameters.
7045 (ada_val_print_array): Update.
7046 (ada_value_print_array): New function.
7047 (ada_value_print_1): Call it.
7048
03371129
TT
70492020-03-13 Tom Tromey <tom@tromey.com>
7050
7051 * ada-valprint.c (ada_value_print): Use common_val_print.
7052
2e088f8b
TT
70532020-03-13 Tom Tromey <tom@tromey.com>
7054
7055 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7056
39ef85a8
TT
70572020-03-13 Tom Tromey <tom@tromey.com>
7058
7059 * ada-valprint.c (ada_value_print_num): New function.
7060 (ada_value_print_1): Use it.
7061
b9fa6e07
TT
70622020-03-13 Tom Tromey <tom@tromey.com>
7063
7064 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7065
416595d6
TT
70662020-03-13 Tom Tromey <tom@tromey.com>
7067
7068 * ada-valprint.c (ada_value_print_ptr): New function.
7069 (ada_value_print_1): Use it.
7070
5b5e15ec
TT
70712020-03-13 Tom Tromey <tom@tromey.com>
7072
7073 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7074 call common_val_print.
7075 (ada_val_print_1): Update.
7076 (ada_value_print_1): New function.
7077 (ada_value_print_inner): Rewrite.
7078
fbf54e75
TT
70792020-03-13 Tom Tromey <tom@tromey.com>
7080
7081 * cp-valprint.c (cp_print_value_fields): Update.
7082 (cp_print_value): New function.
7083
64b653ca
TT
70842020-03-13 Tom Tromey <tom@tromey.com>
7085
7086 * m2-valprint.c (m2_value_print_inner): Use
7087 cp_print_value_fields.
7088 * cp-valprint.c (cp_print_value_fields): New function.
7089 * c-valprint.c (c_value_print_struct): New function.
7090 (c_value_print_inner): Use c_value_print_struct.
7091 * c-lang.h (cp_print_value_fields): Declare.
7092
6999f067
TT
70932020-03-13 Tom Tromey <tom@tromey.com>
7094
7095 * c-valprint.c (c_value_print_array): New function.
7096 (c_value_print_inner): Use it.
7097
ce80b8bd
TT
70982020-03-13 Tom Tromey <tom@tromey.com>
7099
7100 * c-valprint.c (c_value_print_memberptr): New function.
7101 (c_value_print_inner): Use it.
7102
2faac269
TT
71032020-03-13 Tom Tromey <tom@tromey.com>
7104
7105 * c-valprint.c (c_value_print_int): New function.
7106 (c_value_print_inner): Use it.
7107
da3e2c29
TT
71082020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * c-valprint.c (c_value_print_ptr): New function.
7111 (c_value_print_inner): Use it.
7112
50836231
TT
71132020-03-13 Tom Tromey <tom@tromey.com>
7114
7115 * c-valprint.c (c_value_print_inner): Rewrite.
7116
4f412b6e
TT
71172020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * valprint.c (generic_value_print_complex): New function.
7120 (generic_value_print): Use it.
7121
f5354008
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * valprint.c (generic_val_print_float): Don't call
7125 val_print_scalar_formatted.
7126 (generic_val_print, generic_value_print): Update.
7127
3eec3b05
TT
71282020-03-13 Tom Tromey <tom@tromey.com>
7129
7130 * valprint.c (generic_value_print_char): New function
7131 (generic_value_print): Use it.
7132
fdddfccb
TT
71332020-03-13 Tom Tromey <tom@tromey.com>
7134
7135 * valprint.c (generic_value_print_int): New function.
7136 (generic_value_print): Use it.
7137
6dde7521
TT
71382020-03-13 Tom Tromey <tom@tromey.com>
7139
7140 * valprint.c (generic_value_print_bool): New function.
7141 (generic_value_print): Use it.
7142
4112d2e6
TT
71432020-03-13 Tom Tromey <tom@tromey.com>
7144
7145 * valprint.c (generic_val_print_func): Simplify.
7146 (generic_val_print, generic_value_print): Update.
7147
65786af6
TT
71482020-03-13 Tom Tromey <tom@tromey.com>
7149
7150 * valprint.c (generic_val_print_flags): Remove.
7151 (generic_val_print, generic_value_print): Update.
7152 (val_print_type_code_flags): Add original_value parameter.
7153
40f3ce18
TT
71542020-03-13 Tom Tromey <tom@tromey.com>
7155
7156 * valprint.c (generic_val_print): Update.
7157 (generic_value_print): Update.
7158 * valprint.c (generic_val_print_enum): Don't call
7159 val_print_scalar_formatted.
7160
2a5b130b
TT
71612020-03-13 Tom Tromey <tom@tromey.com>
7162
7163 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7164 * valprint.c (generic_value_print_ptr): New function.
7165
abc66ce9
TT
71662020-03-13 Tom Tromey <tom@tromey.com>
7167
7168 * valprint.c (generic_value_print): Rewrite.
7169
07a32858
TT
71702020-03-13 Tom Tromey <tom@tromey.com>
7171
7172 * p-valprint.c (pascal_object_print_value_fields)
7173 (pascal_object_print_value): New functions.
7174
64d64d3a
TT
71752020-03-13 Tom Tromey <tom@tromey.com>
7176
7177 * p-valprint.c (pascal_value_print_inner): Rewrite.
7178
6a95a1f5
TT
71792020-03-13 Tom Tromey <tom@tromey.com>
7180
7181 * f-valprint.c (f_value_print_innner): Rewrite.
7182
59fcdac6
TT
71832020-03-13 Tom Tromey <tom@tromey.com>
7184
7185 * m2-valprint.c (m2_print_unbounded_array): New overload.
7186 (m2_print_unbounded_array): Update.
7187 (m2_print_array_contents): Take a struct value.
7188 (m2_value_print_inner): Rewrite.
7189
d133c3e1
TT
71902020-03-13 Tom Tromey <tom@tromey.com>
7191
7192 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7193 (d_value_print_inner): New function.
7194 * d-lang.h (d_value_print_inner): Declare.
7195 * d-lang.c (d_language_defn): Use d_value_print_inner.
7196
23b0f06b
TT
71972020-03-13 Tom Tromey <tom@tromey.com>
7198
7199 * go-valprint.c (go_value_print_inner): New function.
7200 * go-lang.h (go_value_print_inner): Declare.
7201 * go-lang.c (go_language_defn): Use go_value_print_inner.
7202
5f56f7cb
TT
72032020-03-13 Tom Tromey <tom@tromey.com>
7204
7205 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7206 API.
7207 (rust_val_print): Rewrite.
7208 (rust_value_print_inner): New function, from rust_val_print.
7209 (rust_language_defn): Use rust_value_print_inner.
7210
26792ee0
TT
72112020-03-13 Tom Tromey <tom@tromey.com>
7212
7213 * ada-valprint.c (ada_value_print_inner): New function.
7214 * ada-lang.h (ada_value_print_inner): Declare.
7215 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7216
24051bbe
TT
72172020-03-13 Tom Tromey <tom@tromey.com>
7218
7219 * f-valprint.c (f_value_print_innner): New function.
7220 * f-lang.h (f_value_print_innner): Declare.
7221 * f-lang.c (f_language_defn): Use f_value_print_innner.
7222
c0941be6
TT
72232020-03-13 Tom Tromey <tom@tromey.com>
7224
7225 * p-valprint.c (pascal_value_print_inner): New function.
7226 * p-lang.h (pascal_value_print_inner): Declare.
7227 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7228
62c4663d
TT
72292020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * m2-valprint.c (m2_value_print_inner): New function.
7232 * m2-lang.h (m2_value_print_inner): Declare.
7233 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7234
62182190
TT
72352020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7238 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7239 * c-valprint.c (c_value_print_inner): New function.
7240 * c-lang.h (c_value_print_inner): Declare.
7241 * c-lang.c (c_language_defn, cplus_language_defn)
7242 (asm_language_defn, minimal_language_defn): Use
7243 c_value_print_inner.
7244
1e592a8a
TT
72452020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * p-valprint.c (pascal_object_print_value_fields): Now static.
7248 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7249
7fe471e9
TT
72502020-03-13 Tom Tromey <tom@tromey.com>
7251
7252 * c-valprint.c (c_val_print_array): Simplify.
7253
d121c6ce
TT
72542020-03-13 Tom Tromey <tom@tromey.com>
7255
7256 * valprint.c (value_print_array_elements): New function.
7257 * valprint.h (value_print_array_elements): Declare.
7258
4dba70ee
TT
72592020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7262 * mips-tdep.c (mips_print_register): Use
7263 value_print_scalar_formatted.
7264
4f9ae810
TT
72652020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * valprint.h (value_print_scalar_formatted): Declare.
7268 * valprint.c (value_print_scalar_formatted): New function.
7269
156bfec9
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * valprint.h (generic_value_print): Declare.
7273 * valprint.c (generic_value_print): New function.
7274
2b4e573d
TT
72752020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * valprint.c (do_val_print): Call la_value_print_inner, if
7278 available.
7279 * rust-lang.c (rust_language_defn): Update.
7280 * p-lang.c (pascal_language_defn): Update.
7281 * opencl-lang.c (opencl_language_defn): Update.
7282 * objc-lang.c (objc_language_defn): Update.
7283 * m2-lang.c (m2_language_defn): Update.
7284 * language.h (struct language_defn) <la_value_print_inner>: New
7285 member.
7286 * language.c (unknown_language_defn, auto_language_defn): Update.
7287 * go-lang.c (go_language_defn): Update.
7288 * f-lang.c (f_language_defn): Update.
7289 * d-lang.c (d_language_defn): Update.
7290 * c-lang.c (c_language_defn, cplus_language_defn)
7291 (asm_language_defn, minimal_language_defn): Update.
7292 * ada-lang.c (ada_language_defn): Update.
7293
a1f6a07c
TT
72942020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * c-valprint.c (c_value_print): Use common_val_print.
7297
410cf315
TT
72982020-03-13 Tom Tromey <tom@tromey.com>
7299
7300 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7301
72a45c93
TT
73022020-03-13 Tom Tromey <tom@tromey.com>
7303
7304 * f-valprint.c (f77_print_array_1, f_val_print): Use
7305 common_val_print.
7306
040f66bd
TT
73072020-03-13 Tom Tromey <tom@tromey.com>
7308
7309 * riscv-tdep.c (riscv_print_one_register_info): Use
7310 common_val_print.
7311
a6e05a6c
TT
73122020-03-13 Tom Tromey <tom@tromey.com>
7313
7314 * mi/mi-main.c (output_register): Use common_val_print.
7315
3444c526
TT
73162020-03-13 Tom Tromey <tom@tromey.com>
7317
7318 * infcmd.c (default_print_one_register_info): Use
7319 common_val_print.
7320
c2a44efe
TT
73212020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * valprint.h (common_val_print_checked): Declare.
7324 * valprint.c (common_val_print_checked): New function.
7325 * stack.c (print_frame_arg): Use common_val_print_checked.
7326
b0c26e99
TT
73272020-03-13 Tom Tromey <tom@tromey.com>
7328
7329 * valprint.c (do_val_print): New function, from val_print.
7330 (val_print): Use do_val_print.
7331 (common_val_print): Use do_val_print.
7332
ce3acbe9
TT
73332020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * valprint.c (value_print): Use scoped_value_mark.
7336
96c7f873
TV
73372020-03-13 Tom de Vries <tdevries@suse.de>
7338
7339 PR symtab/25646
7340 * psymtab.c (partial_symtab::partial_symtab): Don't set
7341 globals_offset and statics_offset. Push element onto
7342 current_global_psymbols and current_static_psymbols stacks.
7343 (concat): New function.
7344 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7345 element from current_global_psymbols and current_static_psymbols
7346 stacks. Concat popped elements to global_psymbols and
7347 static_symbols.
7348 (add_psymbol_to_list): Use current_global_psymbols and
7349 current_static_psymbols stacks.
7350 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7351 current_static_psymbols fields.
7352
6ba0a321
CB
73532020-03-12 Christian Biesinger <cbiesinger@google.com>
7354
7355 * corelow.c (sniff_core_bfd): Remove.
7356 (class core_target) <m_core_vec>: Remove.
7357 (core_target::core_target): Update.
7358 (core_file_fns): Remove.
7359 (deprecated_add_core_fns): Remove.
7360 (default_core_sniffer): Remove.
7361 (sniff_core_bfd): Remove.
7362 (default_check_format): Remove.
7363 (gdb_check_format): Remove.
7364 (core_target_open): Update.
7365 (core_target::get_core_register_section): Update.
7366 (get_core_registers_cb): Update.
7367 (core_target::fetch_registers): Update.
7368 * gdbcore.h (struct core_fns): Remove.
7369 (deprecated_add_core_fns): Remove.
7370 (default_core_sniffer): Remove.
7371 (default_check_format): Remove.
7372
227031b2
TT
73732020-03-12 Tom Tromey <tom@tromey.com>
7374
7375 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7376 CORE_ADDR.
7377 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7378
53807e9f
TT
73792020-03-12 Tom Tromey <tom@tromey.com>
7380
7381 * remote.c (remote_target::download_tracepoint)
7382 (remote_target::enable_tracepoint)
7383 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7384 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7385 sprintf_vma.
7386
64f25102
TT
73872020-03-12 Tom Tromey <tom@tromey.com>
7388
7389 * symfile-mem.c: Update CORE_ADDR size assert.
7390
272cd5a3
SM
73912020-03-12 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * selftest.m4: Move to gdbsupport/.
7394 * acinclude.m4: Update path to selftest.m4.
7395
74cd3f9d
SM
73962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7399 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7400 gdbarch-selfselftests.c and selftest-arch.c.
7401 (SUBDIR_UNITTESTS_OBS): Rename to...
7402 (SELFTESTS_OBS): ... this.
7403 (COMMON_SFILES): Remove disasm-selftests.c and
7404 gdbarch-selftests.c.
7405 * configure.ac: Don't add selftest-arch.{c,o} to
7406 CONFIG_{SRCS,OBS}.
7407 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7408 preprocessor conditions.
7409
db6878ac
SM
74102020-03-12 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * configure.ac: Don't source bfd/development.sh.
7413 * selftest.m4: Modify comment.
7414 * configure: Re-generate.
7415
4d696a5c
SM
74162020-03-12 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7419 not "true" or "false".
7420 * configure: Re-generate.
7421
8dd8e1c7
CB
74222020-03-12 Christian Biesinger <cbiesinger@google.com>
7423
7424 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7425 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7426 renamed to arm_nbsd_supply_gregset.
7427 (fetch_register): Update to call arm_nbsd_supply_gregset.
7428 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7429 (arm_netbsd_nat_target::fetch_registers): Update.
7430 (fetch_elfcore_registers): Removed.
7431 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7432 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7433 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7434 not require NetBSD system headers.
7435 (arm_nbsd_regset): New struct.
7436 (arm_nbsd_iterate_over_regset_sections): New function.
7437 (arm_netbsd_init_abi_common): Updated to call
7438 set_gdbarch_iterate_over_regset_sections.
7439 * arm-nbsd-tdep.h: New file.
7440
dd69bf7a
KB
74412020-03-11 Kevin Buettner <kevinb@redhat.com>
7442
7443 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7444 recursion.
7445
a0761e34
SM
74462020-03-11 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * configure: Re-generate.
7449
e7a82140
TT
74502020-03-11 Tom Tromey <tromey@adacore.com>
7451
7452 * ada-typeprint.c (print_choices): Fix comment.
7453
dcc050c8
AB
74542020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7455
7456 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7457 previous item in the list, when the list has no items.
7458
1c33af77
TV
74592020-03-11 Tom de Vries <tdevries@suse.de>
7460
7461 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7462 PROP_LOCLIST handling code.
7463
8c95582d
AB
74642020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * buildsym-legacy.c (record_line): Pass extra parameter to
7467 record_line.
7468 * buildsym.c (buildsym_compunit::record_line): Take an extra
7469 parameter, reduce duplication in the line table, and record the
7470 is_stmt flag in the line table.
7471 * buildsym.h (buildsym_compunit::record_line): Add extra
7472 parameter.
7473 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7474 non-statement lines.
7475 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7476 this to the symtab builder.
7477 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7478 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7479 through to dwarf_record_line_1.
7480 * infrun.c (process_event_stop_test): When stepping, don't stop at
7481 a non-statement instruction, and only refresh the step info when
7482 we land in the middle of a line's range. Also add an extra
7483 comment.
7484 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7485 field.
7486 * record-btrace.c (btrace_find_line_range): Only record lines
7487 marked as is-statement.
7488 * stack.c (frame_show_address): Show the frame address if we are
7489 in a non-statement sal.
7490 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7491 (maintenance_print_one_line_table): Print a header for the is_stmt
7492 column, and include is_stmt information in the output.
7493 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7494 preference to non-statements.
7495 (find_pcs_for_symtab_line): Prefer is-statement entries.
7496 (find_line_common): Likewise.
7497 * symtab.h (struct linetable_entry): Add is_stmt field.
7498 (struct symtab_and_line): Likewise.
7499 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7500 arranging the line table.
7501
e4003a34
TV
75022020-03-07 Tom de Vries <tdevries@suse.de>
7503
7504 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7505 DIE.
7506
e8932576
TT
75072020-03-07 Tom Tromey <tom@tromey.com>
7508
7509 * valops.c (value_literal_complex): Remove obsolete comment.
7510 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7511 comment.
7512
29734269
SM
75132020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7514
7515 * infrun.h: Forward-declare thread_info.
7516 (set_step_info): Add thread_info parameter, add doc.
7517 * infrun.c (set_step_info): Add thread_info parameter, move doc
7518 to header.
7519 * infrun.c (process_event_stop_test): Pass thread to
7520 set_step_info call.
7521 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7522 set_step_info.
7523 (prepare_one_step): Add thread_info parameter, pass it to
7524 set_step_frame and prepare_one_step (recursive) call.
7525 (step_1): Pass thread to prepare_one_step call.
7526 (step_command_fsm::should_stop): Pass thread to
7527 prepare_one_step.
7528 (until_next_fsm): Pass thread to set_step_frame call.
7529 (finish_command): Pass thread to set_step_info call.
7530
b7d64b29
HD
75312020-03-06 Hannes Domani <ssbssa@yahoo.de>
7532
7533 * windows-tdep.c (windows_solib_create_inferior_hook):
7534 Check if inferior is running.
7535
09f2921c
TV
75362020-03-06 Tom de Vries <tdevries@suse.de>
7537
7538 * NEWS: Fix "the the".
7539 * ctfread.c: Same.
7540
fd760e79
TV
75412020-03-06 Tom de Vries <tdevries@suse.de>
7542
7543 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7544
20ea4a60
AB
75452020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * .dir-locals.el: Add a comment referencing the other copies of
7548 this file.
7549
0afbabf0
JB
75502020-03-05 John Baldwin <jhb@FreeBSD.org>
7551
7552 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7553 psargs.
7554
842806cb
TBA
75552020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7556
7557 * .gitattributes: New file.
7558
be1e3d3e
TT
75592020-03-04 Tom Tromey <tom@tromey.com>
7560
7561 * symmisc.c (print_symbol_bcache_statistics)
7562 (print_objfile_statistics): Update.
7563 * symfile.c (allocate_symtab): Use intern.
7564 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7565 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7566 macro_cache>: Remove.
7567 <string_cache>: New member.
7568 (struct objfile) <intern>: New methods.
7569 * elfread.c (elf_symtab_read): Use intern.
7570 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7571 (dwarf2_compute_name, dwarf2_physname)
7572 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7573 names.
7574 (guess_partial_die_structure_name): Update.
7575 (partial_die_info::fixup): Intern name.
7576 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7577 name.
7578 (dwarf2_name): Intern name. Update.
7579 * buildsym.c (buildsym_compunit::get_macro_table): Use
7580 string_cache.
7581
4e7625fd
TT
75822020-03-04 Tom Tromey <tom@tromey.com>
7583
7584 * jit.c (bfd_open_from_target_memory): Make "target" const.
7585 * corefile.c (gnutarget): Now const.
7586 * gdbcore.h (gnutarget): Now const.
7587
46f9f931
HD
75882020-03-04 Hannes Domani <ssbssa@yahoo.de>
7589
7590 * NEWS: Mention support for WOW64 processes.
7591 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7592 (amd64_windows_segment_register_p): Remove static.
7593 (_initialize_amd64_windows_nat): Update.
7594 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7595 * i386-windows-nat.c (context_offset): Update.
7596 (i386_mappings): Rename and remove static.
7597 (i386_windows_segment_register_p): Remove static.
7598 (_initialize_i386_windows_nat): Update.
7599 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7600 (STATUS_WX86_SINGLE_STEP): New macro.
7601 (EnumProcessModulesEx): New macro.
7602 (Wow64SuspendThread): New macro.
7603 (Wow64GetThreadContext): New macro.
7604 (Wow64SetThreadContext): New macro.
7605 (Wow64GetThreadSelectorEntry): New macro.
7606 (windows_set_context_register_offsets): Add static.
7607 (windows_set_segment_register_p): Likewise.
7608 (windows_add_thread): Adapt for WOW64 processes.
7609 (windows_fetch_one_register): Likewise.
7610 (windows_nat_target::fetch_registers): Likewise.
7611 (windows_store_one_register): Likewise.
7612 (display_selector): Likewise.
7613 (display_selectors): Likewise.
7614 (handle_exception): Likewise.
7615 (windows_continue): Likewise.
7616 (windows_nat_target::resume): Likewise.
7617 (windows_add_all_dlls): Likewise.
7618 (do_initial_windows_stuff): Likewise.
7619 (windows_nat_target::attach): Likewise.
7620 (windows_get_exec_module_filename): Likewise.
7621 (windows_nat_target::create_inferior): Likewise.
7622 (windows_xfer_siginfo): Likewise.
7623 (_initialize_loadable): Initialize Wow64SuspendThread,
7624 Wow64GetThreadContext, Wow64SetThreadContext,
7625 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7626 * windows-nat.h (windows_set_context_register_offsets):
7627 Remove declaration.
7628 (windows_set_segment_register_p): Likewise.
7629 (i386_windows_segment_register_p): Add declaration.
7630 (amd64_windows_segment_register_p): Likewise.
7631
440cf44e
LM
76322020-03-04 Luis Machado <luis.machado@linaro.org>
7633
7634 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7635 in "info registers" for AArch64/ARM.
7636
7637 The change caused "info registers" to not print GPR's.
7638
7639 gdb/ChangeLog:
7640
7641 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7642
7643 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7644 when reg->group is empty and reggroup is not.
7645
1009d92f
TT
76462020-03-03 Tom Tromey <tromey@adacore.com>
7647
7648 * dwarf2/frame.c (struct dwarf2_frame_cache)
7649 <checked_tailcall_bottom, entry_cfa_sp_offset,
7650 entry_cfa_sp_offset_p>: Remove members.
7651 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7652 (dwarf2_frame_prev_register): Don't call
7653 dwarf2_tailcall_sniffer_first.
7654 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7655 * frame-unwind.c (add_unwinder): New fuction.
7656 (frame_unwind_init): Use it. Add tailcall unwinder.
7657
5e5d66b6
AB
76582020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7659 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7660
7661 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7662 value should be printed as true.
7663
584cf46d
HD
76642020-03-03 Hannes Domani <ssbssa@yahoo.de>
7665
7666 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7667 (windows_init_abi): Set and use windows_so_ops.
7668
7b973adc
SDJ
76692020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7670
7671 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7672 when verifying if dealing with a convenience variable.
7673
bb7b70ab
LM
76742020-03-03 Luis Machado <luis.machado@linaro.org>
7675
7676 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7677
9822cb57
SM
76782020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7679
7680 * infrun.c (gdbarch_supports_displaced_stepping): New.
7681 (use_displaced_stepping): Break up conditions in smaller pieces.
7682 Use gdbarch_supports_displaced_stepping.
7683 (displaced_step_prepare_throw): Use
7684 gdbarch_supports_displaced_stepping.
7685
63e163f2
AB
76862020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7687
7688 * NEWS: Mention new behaviour of the history filename.
7689 * top.c (write_history_p): Add comment.
7690 (show_write_history_p): Add header comment, give a different
7691 message when history writing is on, but the history filename is
7692 empty.
7693 (history_filename): Add comment.
7694 (history_filename_empty): New function.
7695 (show_history_filename): Add header comment, give a different
7696 message when the filename is empty.
7697 (init_history): Compare history_filename against nullptr, and only
7698 read history if the filename is not empty.
7699 (set_history_filename): Add header comment, and only make
7700 non-empty filenames absolute.
7701 (init_main): Make the filename argument to 'set history filename'
7702 optional.
7703
81b86b97
CB
77042020-03-02 Christian Biesinger <cbiesinger@google.com>
7705
7706 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7707 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7708 (fetch_fp_register): Update.
7709 (fetch_fp_regs): Update.
7710 (store_fp_register): Update.
7711 (store_fp_regs): Update.
7712 (arm_netbsd_nat_target::read_description): New function.
7713 (fetch_elfcore_registers): Update.
7714
24ed6739
AB
77152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7716
7717 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7718 general_thread if the stop reply is missing a thread-id.
7719 (remote_target::process_stop_reply): Use the first non-exited
7720 thread if the target didn't pass a thread-id.
7721 * infrun.c (do_target_wait): Move call to
7722 switch_to_inferior_no_thread to ....
7723 (do_target_wait_1): ... here.
7724
a84bb2a0
JT
77252020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7726
7727 * debuginfod-support.c: Include defs.h first.
7728
658dadf0
TV
77292020-02-28 Tom de Vries <tdevries@suse.de>
7730
7731 * symfile.c (set_initial_language): Use default language for lookup.
7732
4ebe4877
SM
77332020-02-28 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7736 reader variable, pass `this` to read_cutu_die_from_dwo.
7737
e5da1139
AM
77382020-02-27 Aaron Merey <amerey@redhat.com>
7739
7740 * source.c (open_source_file): Check for nullptr when computing
7741 srcpath.
7742
317f7127
TT
77432020-02-27 Tom Tromey <tromey@adacore.com>
7744
7745 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7746 member.
7747 (dwarf2_add_field): Don't update nfields.
7748 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7749
3104d9ee
AB
77502020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7753 abs.
7754
b83470bf
TT
77552020-02-26 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7758 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7759 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7760 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7761 per_cu_data.
7762
edfe0a0c
TT
77632020-02-26 Tom Tromey <tom@tromey.com>
7764
7765 * dwarf2/index-write.c (psym_index_map): Change type.
7766 (add_address_entry_worker, write_one_signatured_type)
7767 (recursively_count_psymbols, recursively_write_psymbols)
7768 (class debug_names, psyms_seen_size, write_gdbindex)
7769 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7770
0d79cdc4
AM
77712020-02-26 Aaron Merey <amerey@redhat.com>
7772
7773 * Makefile.in: Handle optional debuginfod support.
7774 * NEWS: Update.
7775 * README: Add --with-debuginfod summary.
7776 * config.in: Regenerate.
7777 * configure: Regenerate.
7778 * configure.ac: Handle optional debuginfod support.
7779 * debuginfod-support.c: debuginfod helper functions.
7780 * debuginfod-support.h: Ditto.
7781 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7782 summary.
7783 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7784 when a dwz file cannot be found.
7785 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7786 debuginfo file cannot be found.
7787 * source.c (open_source_file): Query debuginfod servers when a
7788 source file cannot be found.
7789 * top.c (print_gdb_configuration): Include
7790 --{with,without}-debuginfod in the output.
7791
b65ce565
JG
77922020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7793
7794 * thread.c (thr_try_catch_cmd): Print thread name.
7795
d4c9a4f8
SM
77962020-02-26 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7800 dwarf2_fetch_die_type_sect_off): Move to...
7801 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7802 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7803 dwarf2_fetch_die_type_sect_off): ... here.
7804 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7805 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7806 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7807
0dce4280
TV
78082020-02-26 Tom de Vries <tdevries@suse.de>
7809
7810 PR gdb/25603
7811 * symfile.c (set_initial_language): Exit-early if
7812 language_mode == language_mode_manual.
7813
450a1bfc
SM
78142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7815
7816 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7817 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7818 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7819
9e80cfa1
AB
78202020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * gdbtypes.c (create_array_type_with_stride): Handle negative
7823 array strides.
7824 * valarith.c (value_subscripted_rvalue): Likewise.
7825
09624f1f
LM
78262020-02-25 Luis Machado <luis.machado@linaro.org>
7827
7828 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7829
8cb5117c
SM
78302020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7831
7832 * loc.h (dwarf2_get_die_type): Move to...
7833 * read.h (dwarf2_get_die_type): ... here.
7834 * read.c (dwarf2_get_die_type): Move doc to header.
7835
c325c44e
JB
78362020-02-25 Joel Brobecker <brobecker@adacore.com>
7837
7838 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7839 'gnulib/Makefile.in' to the list.
7840
4ac93832
TT
78412020-02-24 Tom Tromey <tom@tromey.com>
7842
7843 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7844 Remove.
7845 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7846 XOBNEWVEC.
7847
197400e8
TT
78482020-02-24 Tom Tromey <tom@tromey.com>
7849
7850 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7851 New method.
7852 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7853 (dw2_do_instantiate_symtab, dw2_get_file_names)
7854 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7855
76935768
TT
78562020-02-24 Tom Tromey <tom@tromey.com>
7857
7858 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7859 make_scoped_restore.
7860 (dwarf2_psymtab::read_symtab): Don't clear
7861 reading_partial_symbols.
7862
a88ef40d
TV
78632020-02-24 Tom de Vries <tdevries@suse.de>
7864
7865 PR gdb/25592
7866 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7867
c9af6521
TV
78682020-02-24 Tom de Vries <tdevries@suse.de>
7869
7870 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7871 commands layout next/prev/regs.
7872
5707a07a
TT
78732020-02-22 Tom Tromey <tom@tromey.com>
7874
7875 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7876 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7877
3b0fb49e
TT
78782020-02-22 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7881
283be8bf
TT
78822020-02-22 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7885 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7886 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7887 * tui/tui.c (_initialize_tui): Add usage text.
7888
ca793b96
TT
78892020-02-22 Tom Tromey <tom@tromey.com>
7890
7891 * tui/tui-win.c (tui_set_focus_command)
7892 (tui_set_win_height_command): Use error_no_arg.
7893 (_initialize_tui_win): Update help text.
7894 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7895
432b5c40
TT
78962020-02-22 Tom Tromey <tom@tromey.com>
7897
7898 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7899 * tui/tui-disasm.h (struct tui_disasm_window)
7900 <display_start_addr>: Declare.
7901 * tui/tui-source.h (struct tui_source_window)
7902 <display_start_addr>: Declare.
7903 * tui/tui-winsource.h (struct tui_source_window_base)
7904 <show_source_line, display_start_addr>: New methods.
7905 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7906 Rename and move to protected section.
7907 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7908 (tui_source_window_base::do_erase_source_content): Update.
7909 (tui_source_window_base::show_source_line): Now a method.
7910 (tui_source_window_base::show_source_content)
7911 (tui_source_window_base::tui_source_window_base)
7912 (tui_source_window_base::rerender)
7913 (tui_source_window_base::refill)
7914 (tui_source_window_base::do_scroll_horizontal)
7915 (tui_source_window_base::set_is_exec_point_at)
7916 (tui_source_window_base::update_breakpoint_info)
7917 (tui_source_window_base::update_exec_info): Update.
7918 * tui/tui-source.c (tui_source_window::set_contents)
7919 (tui_source_window::showing_source_p)
7920 (tui_source_window::do_scroll_vertical)
7921 (tui_source_window::location_matches_p)
7922 (tui_source_window::line_is_displayed): Update.
7923 (tui_source_window::display_start_addr): New method.
7924 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7925 (tui_disasm_window::do_scroll_vertical)
7926 (tui_disasm_window::location_matches_p): Update.
7927 (tui_disasm_window::display_start_addr): New method.
7928
01b1af32
TT
79292020-02-22 Tom Tromey <tom@tromey.com>
7930
7931 * NEWS: Add entry for gdb.register_window_type.
7932 * tui/tui-layout.h (window_factory): New typedef.
7933 (tui_register_window): Declare.
7934 * tui/tui-layout.c (saved_tui_windows): New global.
7935 (tui_apply_current_layout): Use it.
7936 (tui_register_window): New function.
7937 * python/python.c (do_start_initialization): Call
7938 gdbpy_initialize_tui.
7939 (python_GdbMethods): Add "register_window_type" function.
7940 * python/python-internal.h (gdbpy_register_tui_window)
7941 (gdbpy_initialize_tui): Declare.
7942 * python/py-tui.c: New file.
7943 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7944
fc96d20b
TT
79452020-02-22 Tom Tromey <tom@tromey.com>
7946
7947 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7948
935c78c0
TT
79492020-02-22 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7952 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7953 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7954 (tui_set_win_focus_to): Move from tui-win.c.
7955
0240c8f1
TT
79562020-02-22 Tom Tromey <tom@tromey.com>
7957
7958 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7959 functions.
7960 (known_window_types): New global.
7961 (tui_get_window_by_name): Reimplement.
7962 (initialize_known_windows): New function.
7963 (validate_window_name): Rewrite.
7964 (_initialize_tui_layout): Call initialize_known_windows.
7965
fdb01f0c
TT
79662020-02-22 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7969 Remove constants.
7970 * tui/tui-winsource.h (struct tui_source_window_base)
7971 <tui_source_window_base>: Remove parameter.
7972 * tui/tui-winsource.c
7973 (tui_source_window_base::tui_source_window_base): Remove
7974 parameter.
7975 (tui_source_window_base::refill): Update.
7976 * tui/tui-stack.h (struct tui_locator_window)
7977 <tui_locator_window>: Update.
7978 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7979 Default the constructor.
7980 * tui/tui-regs.h (struct tui_data_item_window)
7981 <tui_data_item_window>: Default the constructor.
7982 (struct tui_data_window) <tui_data_window>: Likewise.
7983 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7984 Default the constructor.
7985 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7986 Default the constructor.
7987 <type>: Remove.
7988 (struct tui_win_info) <tui_win_info>: Default the constructor.
7989 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7990 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7991 Default the constructor.
7992
865a5aec
TT
79932020-02-22 Tom Tromey <tom@tromey.com>
7994
7995 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7996 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7997 * tui/tui-win.c (tui_resize_all): Don't call
7998 tui_delete_invisible_windows.
7999 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8000 done.
8001 (tui_set_layout): Update.
8002 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8003 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8004 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8005
e098d18c
TT
80062020-02-22 Tom Tromey <tom@tromey.com>
8007
8008 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8009 correctly.
8010
eb9c8874
TT
80112020-02-22 Tom Tromey <tom@tromey.com>
8012
8013 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8014
7eed1a8e
TT
80152020-02-22 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui-winsource.h (struct tui_source_window_iterator)
8018 <inner_iterator>: New etytypedef.
8019 <tui_source_window_iterator>: Take "end" parameter.
8020 <tui_source_window_iterator>: Take iterator.
8021 <operator*, advance>: Update.
8022 <m_iter>: Change type.
8023 <m_end>: New field.
8024 (struct tui_source_windows) <begin, end>: Update.
8025 * tui/tui-layout.c (tui_windows): New global.
8026 (tui_apply_current_layout): Clear tui_windows.
8027 (tui_layout_window::apply): Update tui_windows.
8028 * tui/tui-data.h (tui_windows): Declare.
8029 (all_tui_windows): Now inline function.
8030 (class tui_window_iterator, struct all_tui_windows): Remove.
8031
7c043ba6
TT
80322020-02-22 Tom Tromey <tom@tromey.com>
8033
8034 PR tui/17850:
8035 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8036 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8037 "height" argument.
8038 (class tui_layout_window) <get_sizes>: Likewise.
8039 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8040 argument.
8041 <get_sizes>: Add "height" argument.
8042 <m_vertical>: New field.
8043 * tui/tui-layout.c (tui_layout_split::clone): Update.
8044 (tui_layout_split::get_sizes): Add "height" argument.
8045 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8046 (tui_new_layout_command): Parse "-horizontal".
8047 (_initialize_tui_layout): Update help string.
8048 (tui_layout_split::specification): Add "-horizontal" when needed.
8049 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8050 argument.
8051 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8052 New methods.
8053
6bc56648
TT
80542020-02-22 Tom Tromey <tom@tromey.com>
8055
8056 * tui/tui-layout.h (enum tui_adjust_result): New.
8057 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8058 (class tui_layout_window) <adjust_size>: Return
8059 tui_adjust_result. Rewrite.
8060 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8061 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8062
c22fef7e
TT
80632020-02-22 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8066 parameter and return types.
8067 (class tui_layout_base) <specification>: Add "depth".
8068 (class tui_layout_window) <specification>: Add "depth".
8069 (class tui_layout_split) <specification>: Add "depth".
8070 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8071 and return types.
8072 (tui_new_layout_command): Parse sub-layouts.
8073 (_initialize_tui_layout): Update help string.
8074 (tui_layout_window::specification): Add "depth".
8075 (add_layout_command): Update.
8076
ee325b61
TT
80772020-02-22 Tom Tromey <tom@tromey.com>
8078
8079 * NEWS: Add "tui new-layout" item.
8080 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8081 Add new-layout command to help text.
8082 (validate_window_name): New function.
8083 (tui_new_layout_command): New function.
8084 (_initialize_tui_layout): Register "new-layout".
8085 (tui_layout_window::specification): New method.
8086 (tui_layout_window::specification): New method.
8087 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8088 method.
8089 (class tui_layout_window) <specification>: New method.
8090 (class tui_layout_split) <specification>: New method.
8091
416eb92d
TT
80922020-02-22 Tom Tromey <tom@tromey.com>
8093
8094 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8095 * tui/tui-win.c (window_name_completer): Update comment.
8096 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8097 Declare method.
8098 (class tui_layout_window) <replace_window>: Likewise.
8099 (class tui_layout_split) <replace_window>: Likewise.
8100 (tui_set_layout): Don't declare.
8101 (tui_set_initial_layout): Declare function.
8102 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8103 (asm_regs_layout): New globals.
8104 (tui_current_layout, show_layout): Remove.
8105 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8106 (find_layout, tui_apply_layout): New function.
8107 (layout_completer): Remove.
8108 (tui_next_layout): Reimplement.
8109 (tui_next_layout_command): New function.
8110 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8111 (tui_regs_layout): Reimplement.
8112 (tui_regs_layout_command): New function.
8113 (extract_display_start_addr): Rewrite.
8114 (next_layout, prev_layout): Remove.
8115 (tui_layout_window::replace_window): New method.
8116 (tui_layout_split::replace_window): New method.
8117 (destroy_layout): New function.
8118 (layout_list): New global.
8119 (add_layout_command): New function.
8120 (initialize_layouts): Update.
8121 (tui_layout_command): New function.
8122 (_initialize_tui_layout): Install "layout" commands.
8123 * tui/tui-data.h (enum tui_layout_type): Remove.
8124 (tui_current_layout): Don't declare.
8125
0dbc2fc7
TT
81262020-02-22 Tom Tromey <tom@tromey.com>
8127
8128 * tui/tui-regs.c (tui_reg_layout): Remove.
8129 (tui_reg_command): Use tui_regs_layout.
8130 * tui/tui-layout.h (tui_reg_command): Declare.
8131 * tui/tui-layout.c (tui_reg_command): New function.
8132
5afe342e
TT
81332020-02-22 Tom Tromey <tom@tromey.com>
8134
8135 * tui/tui.c (tui_rl_delete_other_windows): Call
8136 tui_remove_some_windows.
8137 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8138 Declare method.
8139 (class tui_layout_window) <remove_windows>: New method.
8140 (class tui_layout_split) <remove_windows>: Declare.
8141 (tui_remove_some_windows): Declare.
8142 * tui/tui-layout.c (tui_remove_some_windows): New function.
8143 (tui_layout_split::remove_windows): New method.
8144
427326a8
TT
81452020-02-22 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8148 * tui/tui-layout.h (tui_next_layout): Declare.
8149 * tui/tui-layout.c (tui_next_layout): New function.
8150
3fe12b6d
TT
81512020-02-22 Tom Tromey <tom@tromey.com>
8152
8153 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8154 correct coordinates.
8155
59b8b5d2
TT
81562020-02-22 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8159 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8160 DATA_WIN case.
8161
2a3d458b
TT
81622020-02-22 Tom Tromey <tom@tromey.com>
8163
8164 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8165 TUI_DISASM_WIN, not tui_win_list.
8166
3f0cbb04
TT
81672020-02-22 Tom Tromey <tom@tromey.com>
8168
8169 * valprint.c (generic_val_print_enum_1)
8170 (val_print_type_code_flags): Style member names.
8171 * rust-lang.c (val_print_struct, rust_print_enum)
8172 (rust_print_struct_def, rust_internal_print_type): Style member
8173 names.
8174 * p-valprint.c (pascal_object_print_value_fields): Style member
8175 names. Only call fprintf_symbol_filtered for static members.
8176 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8177 * f-valprint.c (f_val_print): Style member names.
8178 * f-typeprint.c (f_type_print_base): Style member names.
8179 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8180 call fprintf_symbol_filtered for static members.
8181 (cp_print_class_member): Style member names.
8182 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8183 member names.
8184 * ada-valprint.c (ada_print_scalar): Style enum names.
8185 (ada_val_print_enum): Likewise.
8186 * ada-typeprint.c (print_enum_type): Style enum names.
8187
d4d947ae
TT
81882020-02-21 Tom Tromey <tom@tromey.com>
8189
8190 * psympriv.h (struct partial_symtab): Update comment.
8191
e94e944b
TT
81922020-02-21 Tom Tromey <tromey@adacore.com>
8193
8194 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8195 type is CORE_ADDR.
8196
1eb73179
TV
81972020-02-21 Tom de Vries <tdevries@suse.de>
8198
8199 PR gdb/25534
8200 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8201 if dependencies[i]->user != NULL.
8202
4f180d53
AT
82032020-02-21 Ali Tamur <tamur@google.com>
8204
8205 * dwarf2/read.c (dwarf2_name): Add null check.
8206
22b6cd70
TT
82072020-02-20 Tom Tromey <tom@tromey.com>
8208
8209 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8210 ">=", in binary search.
8211 (dwarf2_find_containing_comp_unit): New overload.
8212 (run_test): New self-test.
8213 (_initialize_dwarf2_read): Register new test.
8214
bd0cf5a6
NC
82152020-02-20 Nelson Chu <nelson.chu@sifive.com>
8216
8217 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8218 * riscv-tdep.h: Likewise.
8219 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8220 rv32-only CSR.
8221 * features/riscv/64bit-csr.xml: Regenerated.
8222
3f702acd
SDJ
82232020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8224 Tom Tromey <tom@tromey.com>
8225
8226 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8227 of 'fputc_unfiltered'.
8228 (putchar_unfiltered): Call 'fputc_unfiltered'.
8229 (fputc_unfiltered): Call 'fputs_unfiltered'.
8230
d13c7322
AB
82312020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8232
8233 * config.in: Regenerate.
8234 * configure: Regenerate.
8235 * configure.ac: Add --with-python-libdir option.
8236 * main.c: Use WITH_PYTHON_LIBDIR.
8237
869d8950
TT
82382020-02-19 Tom Tromey <tom@tromey.com>
8239
8240 * symtab.c (general_symbol_info::compute_and_set_names): Use
8241 obstack_strndup. Simplify call to symbol_set_demangled_name.
8242
298e9637
SM
82432020-02-19 Simon Marchi <simon.marchi@efficios.com>
8244
8245 * dwarf2/read.c (allocate_signatured_type_table,
8246 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8247 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8248 Remove objfile parameter, update all callers.
8249
08410482
DE
82502020-02-19 Doug Evans <dje@google.com>
8251
8252 PR rust/25535
8253 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8254 rust_enum_variant calculation.
8255
dfdeeca1
TT
82562020-02-19 Tom Tromey <tromey@adacore.com>
8257
8258 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8259
2ef5453b
TT
82602020-02-19 Tom Tromey <tromey@adacore.com>
8261
8262 * ada-lang.c (cache_symbol): Use obstack_strdup.
8263
9f1528a1
AB
82642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * configure: Regenerate.
8267
d3c22fa8
TT
82682020-02-19 Tom Tromey <tromey@adacore.com>
8269
8270 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8271 NULL check.
8272
bf84f706
MR
82732020-02-19 Maciej W. Rozycki <macro@wdc.com>
8274
8275 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8276
d1c9b20f
AB
82772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8278
8279 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8280 if GDBSERVER is not defined.
8281 (riscv_tdesc_cache): Likewise, also store const target_desc.
8282 (STATIC_IN_GDB): Define.
8283 (riscv_create_target_description): Update declaration with
8284 STATIC_IN_GDB.
8285 (riscv_lookup_target_description): New function, only define if
8286 GDBSERVER is not defined.
8287 * arch/riscv.h (riscv_create_target_description): Declare only
8288 when GDBSERVER is defined.
8289 (riscv_lookup_target_description): New declaration when GDBSERVER
8290 is not defined.
8291 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8292 (riscv_linux_read_features): ...this, and return
8293 riscv_gdbarch_features instead of target_desc.
8294 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8295 (riscv_linux_read_description): Rename to...
8296 (riscv_linux_read_features): ...this.
8297 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8298 Update to use riscv_gdbarch_features and
8299 riscv_lookup_target_description.
8300 * riscv-tdep.c (riscv_find_default_target_description): Use
8301 riscv_lookup_target_description instead of
8302 riscv_create_target_description.
8303
373d7ac0
SM
83042020-02-18 Simon Marchi <simon.marchi@efficios.com>
8305
8306 * valprint.c (generic_val_print_enum_1): When printing a flag
8307 enum with value 0 and there is no enumerator with value 0, print
8308 just "0" instead of "(unknown: 0x0)".
8309
b29a2df0
SM
83102020-02-18 Simon Marchi <simon.marchi@efficios.com>
8311
8312 * valprint.c (generic_val_print_enum_1): Print unknown part of
8313 flag enum in hex.
8314
6740f0cc
SM
83152020-02-18 Simon Marchi <simon.marchi@efficios.com>
8316
8317 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8318 flag enums to contain duplicate enumerators.
8319 * valprint.c (generic_val_print_enum_1): Update comment.
8320
edd45eb0
SM
83212020-02-18 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * dwarf2/read.c: Include "count-one-bits.h".
8324 (update_enumeration_type_from_children): If an enumerator has
8325 multiple bits set, don't treat the enumeration as a "flag enum".
8326 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8327 of flag enums have 0 or 1 bit set.
8328
6d0cf446
BE
83292020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8330
8331 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8332 conversion.
8333 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8334 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8335 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8336 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8337 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8338
7001c1b7
SM
83392020-02-18 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8342
fdb61c6c
SM
83432020-02-14 Simon Marchi <simon.marchi@efficios.com>
8344
8345 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8346 displaced_step_closure_up.
8347 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8348 (struct displaced_step_closure_up):
8349 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8350 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8351 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8352 Likewise.
8353 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8354 * gdbarch.c, gdbarch.h: Re-generate.
8355 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8356 displaced_step_closure_up.
8357 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8358 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8359 * infrun.h (displaced_step_closure_up): New type alias.
8360 (struct displaced_step_inferior_state) <step_closure>: Change
8361 type to displaced_step_closure_up.
8362 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8363 displaced_step_closure_up.
8364 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8365
a4a38eb4
TT
83662020-02-14 Tom Tromey <tom@tromey.com>
8367
8368 * minidebug.c (gnu_debug_key): New global.
8369 (find_separate_debug_file_in_section): Use it.
8370
e8217e61
SM
83712020-02-14 Simon Marchi <simon.marchi@efficios.com>
8372
8373 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8374 std::unique_ptr.
8375 * gdbarch.c: Re-generate.
8376 * gdbarch.h: Re-generate.
8377 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8378 change.
8379 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8380 type to std::unique_ptr.
8381 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8382 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8383 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8384 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8385 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8386 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8387 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8388 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8389 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8390
d8d83535
SM
83912020-02-14 Simon Marchi <simon.marchi@efficios.com>
8392
8393 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8394 std::unique_ptr.
8395 (displaced_step_clear): Rename to...
8396 (displaced_step_reset): ... this. Just call displaced->reset ().
8397 (displaced_step_clear_cleanup): Rename to...
8398 (displaced_step_reset_cleanup): ... this.
8399 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8400 (displaced_step_fixup): Likewise.
8401 (resume_1): Likewise.
8402 (handle_inferior_event): Restore child's memory before calling
8403 displaced_step_fixup on the parent.
8404 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8405 to std::unique_ptr.
8406 <step_closure>: Change type to std::unique_ptr.
8407
5f661e03
SM
84082020-02-14 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * arm-tdep.c: Include count-one-bits.h.
8411 (cleanup_block_store_pc): Use count_one_bits.
8412 (cleanup_block_load_pc): Use count_one_bits.
8413 (arm_copy_block_xfer): Use count_one_bits.
8414 (thumb2_copy_block_xfer): Use count_one_bits.
8415 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8416 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8417 (thumb_get_next_pcs_raw): Use count_one_bits.
8418 (arm_get_next_pcs_raw): Use count_one_bits_l.
8419 * arch/arm.c (bitcount): Remove.
8420 * arch/arm.h (bitcount): Remove.
8421
8084e579
TT
84222020-02-14 Tom Tromey <tromey@adacore.com>
8423
8424 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8425 Update.
8426 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8427 * dwarf2/loc.c (call_site_find_chain_1): Return
8428 unique_xmalloc_ptr.
8429 (call_site_find_chain): Likewise.
8430
258bf0ee
RB
84312020-02-14 Richard Biener <rguenther@suse.de>
8432
8433 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8434 on expression with division operators.
8435
f98a8458
AKS
84362020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8437
8438 * MAINTAINERS (Write After Approval): Adding myself.
8439
d1437c0e
TT
84402020-02-12 Tom Tromey <tom@tromey.com>
8441
8442 * event-loop.c (event_data, gdb_event, event_handler_func):
8443 Remove.
8444
3d4560f7
TT
84452020-02-12 Tom Tromey <tom@tromey.com>
8446
8447 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8448 (dwarf2_frame_objfile_data): Add comment.
8449 (find_comp_unit, set_comp_unit): New functions.
8450 (dwarf2_frame_find_fde): Use find_comp_unit.
8451 (dwarf2_build_frame_info): Use set_comp_unit.
8452
21982304
TT
84532020-02-12 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8456 (comp_unit): Don't initialize objfile.
8457 (execute_cfa_program): Add text_offset parameter.
8458 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8459 (dwarf2_frame_cache): Update.
8460 (dwarf2_build_frame_info): Don't set "objfile" member.
8461
4debb237
TT
84622020-02-12 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8465 (decode_frame_entry): Likewise.
8466 (dwarf2_build_frame_info): Update.
8467
0d404d44
TT
84682020-02-12 Tom Tromey <tom@tromey.com>
8469
8470 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8471 (decode_frame_entry_1): Use the comp_unit obstack.
8472
a7a3ae5c
TT
84732020-02-12 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2/frame.c (struct comp_unit): Add initializers and
8476 constructor.
8477 (dwarf2_frame_objfile_data): Store a comp_unit.
8478 (dwarf2_frame_find_fde): Update.
8479 (dwarf2_build_frame_info): Use "new".
8480
a9d65418
TT
84812020-02-12 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8484 (dwarf2_fde_table): Typedef for std::vector.
8485 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8486 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8487 (decode_frame_entry): Update.
8488 (dwarf2_build_frame_info): Use "new".
8489
7559c217
CB
84902020-02-12 Christian Biesinger <cbiesinger@google.com>
8491
8492 * arm-tdep.c (arm_gdbarch_init): Update.
8493 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8494 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8495 have_neon, is_m>: Change to bool.
8496
aeefc73c
CB
84972020-02-12 Christian Biesinger <cbiesinger@google.com>
8498
8499 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8500
d27b8e5f
TT
85012020-02-12 Tom Tromey <tom@tromey.com>
8502
8503 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8504
cd5900f3
HD
85052020-02-12 Hannes Domani <ssbssa@yahoo.de>
8506
8507 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8508 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8509
f056b22b
TT
85102020-02-11 Tom Tromey <tom@tromey.com>
8511
8512 * psymtab.h: Update comment.
8513
f92ff6b5
TT
85142020-02-11 Tom Tromey <tom@tromey.com>
8515
8516 * gdb_obstack.h (struct auto_obstack): Use
8517 DISABLE_COPY_AND_ASSIGN.
8518
3fd6912b
TT
85192020-02-11 Tom Tromey <tom@tromey.com>
8520
8521 * dwarf2/frame.h (struct objfile): Don't forward declare.
8522
69ed9b74
CB
85232020-02-11 Christian Biesinger <cbiesinger@google.com>
8524
8525 * cris-tdep.c (cris_supply_gregset): Change signature to match
8526 what struct regset expects.
8527 (cris_regset): New struct.
8528 (fetch_core_registers): Remove.
8529 (cris_iterate_over_regset_sections): New function.
8530 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8531 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8532
bda874f6
CB
85332020-02-11 Christian Biesinger <cbiesinger@google.com>
8534
8535 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8536 registers.
8537
754e1564
CB
85382020-02-11 Christian Biesinger <cbiesinger@google.com>
8539
8540 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8541
8ddd8e0e
SM
85422020-02-11 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * configure: Re-generate.
8545
898e7f60
SM
85462020-02-11 Simon Marchi <simon.marchi@efficios.com>
8547
8548 * configure: Re-generate.
8549
58df732b
SM
85502020-02-11 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * acinclude: Update warning.m4 path.
8553 * warning.m4: Move to gdbsupport.
8554
da5bd37e
TT
85552020-02-11 Tom Tromey <tromey@adacore.com>
8556
8557 * remote.c (remote_console_output): Update.
8558 * printcmd.c (printf_command): Update.
8559 * event-loop.c (gdb_wait_for_event): Update.
8560 * linux-nat.c (sigchld_handler): Update.
8561 * remote-sim.c (gdb_os_write_stdout): Update.
8562 (gdb_os_flush_stdout): Update.
8563 (gdb_os_flush_stderr): Update.
8564 (gdb_os_write_stderr): Update.
8565 * exceptions.c (print_exception): Update.
8566 * remote-fileio.c (remote_fileio_func_read): Update.
8567 (remote_fileio_func_write): Update.
8568 * tui/tui.c (tui_enable): Update.
8569 * tui/tui-interp.c (tui_interp::init): Update.
8570 * utils.c (init_page_info): Update.
8571 (putchar_unfiltered, fputc_unfiltered): Update.
8572 (gdb_flush): Update.
8573 (emit_style_escape): Update.
8574 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8575 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8576 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8577 (stderr_file::write): Update.
8578 (stderr_file::puts): Update.
8579 * ui-file.h (ui_file_isatty, ui_file_write)
8580 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8581 (ui_file_puts): Don't declare.
8582
85f0dd3c
TV
85832020-02-10 Tom de Vries <tdevries@suse.de>
8584
8585 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8586 sentinel to char *.
8587
2e927613
TV
85882020-02-09 Tom de Vries <tdevries@suse.de>
8589
8590 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8591 filename if it matches "<artificial>".
8592
6bafc845
HD
85932020-02-09 Hannes Domani <ssbssa@yahoo.de>
8594
8595 * windows-tdep.c (struct enum_value_name): New struct.
8596 (create_enum): New function.
8597 (windows_get_siginfo_type): Create and use enum types.
8598
7928d571
HD
85992020-02-09 Hannes Domani <ssbssa@yahoo.de>
8600
8601 * NEWS: Mention $_siginfo support for Windows.
8602 * windows-nat.c (handle_exception): Set siginfo_er.
8603 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8604 (windows_xfer_siginfo): New function.
8605 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8606 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8607 (init_windows_gdbarch_data): New function.
8608 (get_windows_gdbarch_data): New function.
8609 (windows_get_siginfo_type): New function.
8610 (windows_init_abi): Register windows_get_siginfo_type.
8611 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8612
6751ebae
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8616 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8617 <keep>: Declare method.
8618 <m_keep>: Remove member.
8619 <~cutu_reader>: Remove.
8620 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8621 (cutu_reader::cutu_reader): Update.
8622 (cutu_reader::keep): Rename from ~cutu_reader.
8623 (process_psymtab_comp_unit, build_type_psymtabs_1)
8624 (process_skeletonless_type_unit, load_partial_comp_unit)
8625 (load_full_comp_unit, dwarf2_read_addr_index)
8626 (read_signatured_type): Update.
8627
135f5437
TT
86282020-02-08 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8631 "want_partial_unit" parameter.
8632 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8633 Inline check for DW_TAG_partial_unit.
8634 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8635
9f66ff1c
TT
86362020-02-08 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8639 read.c.
8640 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8641 read.c.
8642
c8a7a66f
TT
86432020-02-08 Tom Tromey <tom@tromey.com>
8644
8645 * dwarf2/read.c (read_address): Move to comp-unit.c.
8646 (dwarf2_rnglists_process, dwarf2_ranges_process)
8647 (read_attribute_value, dwarf_decode_lines_1)
8648 (var_decode_location, decode_locdesc): Update.
8649 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8650 read.c. Remove "cu" parameter.
8651 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8652 method.
8653
8266302d
TT
86542020-02-08 Tom Tromey <tom@tromey.com>
8655
8656 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8657 (read_indirect_line_string): Update.
8658 * dwarf2/comp-unit.c (read_offset): Remove.
8659 (read_comp_unit_head): Update.
8660 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8661 method.
8662 (read_offset): Don't declare.
8663
4057dfde
TT
86642020-02-08 Tom Tromey <tom@tromey.com>
8665
8666 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8667 * dwarf2/read.c (struct comp_unit_head): Move to
8668 dwarf2/comp-unit.h.
8669 (enum class rcuh_kind): Move to comp-unit.h.
8670 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8671 (read_comp_unit_head, error_check_comp_unit_head)
8672 (read_and_check_comp_unit_head): Move to comp-unit.c.
8673 (read_offset, dwarf_unit_type_name): Likewise.
8674 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8675 (cutu_reader::cutu_reader, read_call_site_scope)
8676 (find_partial_die, follow_die_offset): Update.
8677 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8678
24aa364d
TT
86792020-02-08 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2/read.c (read_offset_1): Move to leb.c.
8682 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8683 (dwarf_decode_macro_bytes): Update.
8684 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8685 * dwarf2/leb.h (read_offset): Declare.
8686
2c7d5afc
TT
86872020-02-08 Tom Tromey <tom@tromey.com>
8688
8689 * dwarf2/read.c (dwarf2_section_size): Remove.
8690 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8691 Update.
8692 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8693
4075cb26
TT
86942020-02-08 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2/read.c (read_initial_length): Move to leb.c.
8697 * dwarf2/leb.h (read_initial_length): Declare.
8698 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8699 handle_nonstd parameter.
8700 * dwarf2/frame.c (read_initial_length): Remove.
8701 (decode_frame_entry_1): Update.
8702
09ba997f
TT
87032020-02-08 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/loc.c (dwarf2_find_location_expression)
8706 (dwarf_evaluate_loc_desc::get_tls_address)
8707 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8708 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8709 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8710 (dwarf2_compile_property_to_c)
8711 (dwarf2_loc_desc_get_symbol_read_needs)
8712 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8713 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8714 (loclist_describe_location, loclist_tracepoint_var_ref)
8715 (loclist_generate_c_location): Update.
8716 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8717 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8718 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8719 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8720 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8721 (dwarf2_per_cu_data::addr_size)
8722 (dwarf2_per_cu_data::ref_addr_size)
8723 (dwarf2_per_cu_data::text_offset)
8724 (dwarf2_per_cu_data::addr_type): Now methods.
8725 (per_cu_header_read_in): Make per_cu "const".
8726 (dwarf2_version): Remove.
8727 (dwarf2_per_cu_data::int_type): Now a method.
8728 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8729 (set_die_type, read_array_type, read_subrange_index_type)
8730 (read_tag_string_type, read_subrange_type): Update.
8731 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8732 offset_size, ref_addr_size, text_offset, addr_type, version,
8733 objfile, int_type, addr_sized_int_type>: Declare methods.
8734
96c738c0
TT
87352020-02-08 Tom Tromey <tom@tromey.com>
8736
8737 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8738 Move earlier.
8739
8fdd972c
TT
87402020-02-08 Tom Tromey <tom@tromey.com>
8741
8742 * dwarf2/read.h (dwarf_line_debug): Declare.
8743 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8744 * dwarf2/read.c: Move line_header code to new files.
8745 (dwarf_line_debug): No longer static.
8746 * dwarf2/line-header.c: New file.
8747 * dwarf2/line-header.h: New file.
8748
03075812
TT
87492020-02-08 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/read.c (struct line_header) <file_full_name,
8752 file_file_name>: Return unique_xmalloc_ptr.
8753 (line_header::file_file_name): Update.
8754 (line_header::file_full_name): Update.
8755 (dw2_get_file_names_reader): Update.
8756 (macro_start_file): Update.
8757
bb822404
TT
87582020-02-08 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2/read.c (struct line_header) <file_full_name,
8761 file_file_name>: Declare methods.
8762 (dw2_get_file_names_reader): Update.
8763 (file_file_name): Now a method.
8764 (file_full_name): Likewise.
8765 (macro_start_file): Update.
8766
009b64fc
TT
87672020-02-08 Tom Tromey <tom@tromey.com>
8768
8769 * dwarf2/read.c (dwarf_always_disassemble)
8770 (show_dwarf_always_disassemble): Move to loc.c.
8771 (_initialize_dwarf2_read): Move "always-disassemble" registration
8772 to loc.c.
8773 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8774 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8775 static.
8776 (show_dwarf_always_disassemble): Move from read.c.
8777 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8778
5895093f
TT
87792020-02-08 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8782 (create_quick_file_names_table): Return htab_up.
8783 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8784 Update.
8785 * dwarf2/read.h (struct dwarf2_per_objfile)
8786 <quick_file_names_table>: Now htab_up.
8787
b3b32279
TT
87882020-02-08 Tom Tromey <tom@tromey.com>
8789
8790 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8791
1d33d811
TT
87922020-02-08 Tom Tromey <tom@tromey.com>
8793
8794 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8795 Rewrite.
8796 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8797 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8798 (abbrev_table::abbrev_table): No longer inline.
8799 (ABBREV_HASH_SIZE): Remove.
8800 (abbrev_table::m_abbrevs): Now an htab_up.
8801
86de1d91
TT
88022020-02-08 Tom Tromey <tom@tromey.com>
8803
8804 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8805 (cutu_reader): Update.
8806 (build_type_psymtabs_1): Update.
8807 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8808 (abbrev_table::alloc_abbrev): Update.
8809 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8810 (abbrev_table::read): New static method, renamed from
8811 abbrev_table_read_table.
8812 (abbrev_table::alloc_abbrev)
8813 (abbrev_table::add_abbrev): Now private.
8814 (abbrev_table::abbrev_table): Now private.
8815 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8816
0335378b
TT
88172020-02-08 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8820 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8821 htab_up.
8822
48b490f2
TT
88232020-02-08 Tom Tromey <tom@tromey.com>
8824
8825 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8826 htab_up.
8827 (lookup_dwo_unit_in_dwp): Update.
8828 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8829 on obstack.
8830
bc68fb19
TT
88312020-02-08 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8834 obstack.
8835
d15acc42
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8839 line_header_hash.
8840 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8841 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8842 Change type to htab_up.
8843
eaa5fa8b
TT
88442020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8847 htab_up. Don't allocate on obstack.
8848 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8849 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8850 Change type to htab_up.
8851
b0b6a987
TT
88522020-02-08 Tom Tromey <tom@tromey.com>
8853
8854 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8855 Change type to htab_up.
8856 * dwarf2/read.c (create_signatured_type_table_from_index)
8857 (create_signatured_type_table_from_debug_names)
8858 (create_all_type_units, add_type_unit)
8859 (lookup_dwo_signatured_type, lookup_signatured_type)
8860 (process_skeletonless_type_unit): Update.
8861 (create_debug_type_hash_table, create_debug_types_hash_table):
8862 Change type of types_htab.
8863 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8864 htab_up. Don't allocate on obstack.
8865 (create_cus_hash_table): Change type of cus_htab parameter.
8866 (struct dwo_file) <cus, tus>: Now htab_up.
8867 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8868 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8869 (queue_and_load_all_dwo_tus): Update.
8870 * dwarf2/index-write.c (write_gdbindex): Update.
8871 (write_debug_names): Update.
8872
39856def
TT
88732020-02-08 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8876 dwarf2/read.c. Remove "next" member. Add constructor ntad
8877 destructor.
8878 (struct dwarf2_per_objfile) <queue>: New member.
8879 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8880 dwarf2/read.h.
8881 (dwarf2_queue, dwarf2_queue_tail): Remove.
8882 (class dwarf2_queue_guard): Add parameter to constructor. Use
8883 DISABLE_COPY_AND_ASSIGN.
8884 <m_per_objfile>: New member.
8885 <~dwarf2_queue_guard>: Rewrite.
8886 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8887 Update.
8888 (~dwarf2_queue_item): New.
8889
3e225074
TT
88902020-02-08 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2/read.c (struct die_info) <has_children>: New member.
8893 (dw2_get_file_names_reader): Remove has_children.
8894 (dw2_get_file_names): Update.
8895 (read_cutu_die_from_dwo): Remove has_children.
8896 (cutu_reader::init_tu_and_read_dwo_dies)
8897 (cutu_reader::cutu_reader): Update.
8898 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8899 Remove has_children.
8900 (build_type_psymtabs_1, process_skeletonless_type_unit)
8901 (load_partial_comp_unit, load_full_comp_unit): Update.
8902 (create_dwo_cu_reader): Remove has_children.
8903 (create_cus_hash_table, read_die_and_children): Update.
8904 (read_full_die_1,read_full_die): Remove has_children.
8905 (read_signatured_type): Update.
8906 (class cutu_reader) <has_children>: Remove.
8907
82ca8957
TT
89082020-02-08 Tom Tromey <tom@tromey.com>
8909
8910 * dwarf2/expr.c: Rename from dwarf2expr.c.
8911 * dwarf2/expr.h: Rename from dwarf2expr.h.
8912 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8913 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8914 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8915 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8916 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8917 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8918 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8919 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8920 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8921 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8922 * dwarf2/loc.c: Rename from dwarf2loc.c.
8923 * dwarf2/loc.h: Rename from dwarf2loc.h.
8924 * dwarf2/read.c: Rename from dwarf2read.c.
8925 * dwarf2/read.h: Rename from dwarf2read.h.
8926 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8927 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8928 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8929 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8930 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8931 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8932 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8933 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8934 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8935 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8936 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8937 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8938 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8939 Update.
8940 * Makefile.in (COMMON_SFILES): Update.
8941 (HFILES_NO_SRCDIR): Update.
8942
9e35d499
TT
89432020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8946 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8947
1eba2311
TT
89482020-02-08 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2read.h (struct die_info): Don't declare.
8951
e41c2da2
TT
89522020-02-08 Tom Tromey <tom@tromey.com>
8953
8954 * dwarf2read.h (die_info_ptr): Remove typedef.
8955
4fc6c0d5
TT
89562020-02-08 Tom Tromey <tom@tromey.com>
8957
8958 * dwarf2read.c (read_call_site_scope)
8959 (handle_data_member_location, dwarf2_add_member_fn)
8960 (mark_common_block_symbol_computed, read_common_block)
8961 (attr_to_dynamic_prop, partial_die_info::read)
8962 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8963 (dwarf2_symbol_mark_computed, set_die_type): Update.
8964 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8965 method.
8966 (attr_form_is_block): Don't declare.
8967 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8968
cd6c91b4
TT
89692020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2read.c (dwarf2_find_base_address, )
8972 (read_call_site_scope, rust_containing_type)
8973 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8974 (handle_data_member_location, dwarf2_add_member_fn)
8975 (get_alignment, read_structure_type, process_structure_scope)
8976 (mark_common_block_symbol_computed, read_common_block)
8977 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8978 (partial_die_info::read, read_attribute_value, new_symbol)
8979 (lookup_die_type, dwarf2_get_ref_die_offset)
8980 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8981 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8982 (dwarf2_symbol_mark_computed): Update.
8983 * dwarf2/attribute.h (struct attribute) <value_as_address,
8984 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8985 methods.
8986 (value_as_address, attr_form_is_section_offset)
8987 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8988 * dwarf2/attribute.c (attribute::value_as_address)
8989 (attribute::form_is_section_offset, attribute::form_is_constant)
8990 (attribute::form_is_ref): Now methods.
8991
162dce55
TT
89922020-02-08 Tom Tromey <tom@tromey.com>
8993
8994 * dwarf2read.c (struct attribute, DW_STRING)
8995 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8996 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8997 (attr_form_is_block, attr_form_is_section_offset)
8998 (attr_form_is_constant, attr_form_is_ref): Move.
8999 * dwarf2/attribute.h: New file.
9000 * dwarf2/attribute.c: New file, from dwarf2read.c.
9001 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9002
3054dd54
TT
90032020-02-08 Tom Tromey <tom@tromey.com>
9004
9005 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9006 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9007 Move.
9008 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9009 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9010 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9011 abbrev.c.
9012 * dwarf2/abbrev.h: New file.
9013 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9014 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9015
96b79293
TT
90162020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9019 (dwarf2_section_size, dwarf2_get_section_info)
9020 (create_signatured_type_table_from_debug_names)
9021 (create_addrmap_from_aranges, read_debug_names_from_section)
9022 (get_gdb_index_contents_from_section, read_comp_unit_head)
9023 (error_check_comp_unit_head, read_abbrev_offset)
9024 (create_debug_type_hash_table, init_cu_die_reader)
9025 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9026 (read_comp_units_from_section, create_cus_hash_table)
9027 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9028 (create_dwp_v2_section, dwarf2_rnglists_process)
9029 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9030 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9031 (read_indirect_string_from_dwz, read_addr_index_1)
9032 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9033 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9034 (fill_in_loclist_baton): Update.
9035 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9036 get_containing_section, get_bfd_owner, get_bfd_section,
9037 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9038 (dwarf2_read_section, get_section_name, get_section_file_name)
9039 (get_containing_section, get_section_bfd_owner)
9040 (get_section_bfd_section, get_section_name, get_section_file_name)
9041 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9042 declare.
9043 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9044 (dwarf2_section_info::get_bfd_owner)
9045 (dwarf2_section_info::get_bfd_section)
9046 (dwarf2_section_info::get_name)
9047 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9048 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9049 (dwarf2_section_info::read): Now methods.
9050 * dwarf-index-write.c (class debug_names): Update.
9051
2c86cff9
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9055 Move to dwarf2/section.h.
9056 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9057 (get_section_bfd_section, get_section_name)
9058 (get_section_file_name, get_section_id, get_section_flags)
9059 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9060 dwarf2/section.c.
9061 * dwarf2/section.h: New file.
9062 * dwarf2/section.c: New file, from dwarf2read.c.
9063 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9064
f4382c45
TT
90652020-02-08 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9068 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9069 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9070 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9071 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9072 * dwarf2/leb.h: New file, from dwarf2read.c.
9073 * dwarf2/leb.c: New file, from dwarf2read.c.
9074 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9075 Remove.
9076 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9077 (COMMON_SFILES): Add dwarf2/leb.c.
9078
01840b7a
JB
90792020-02-08 Joel Brobecker <brobecker@adacore.com>
9080
9081 GDB 9.1 released.
9082
dfcb27e4
IB
90832020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9084
9085 PR gdb/25190:
aac66a4c
SM
9086 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9087 * gdb/remote.c (remote_console_output): Update.
9088 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9089 (ui_file_puts): ...this.
9090 * gdb/ui-file.h (ui_file_puts): Add declaration.
9091 * gdb/utils.c (emit_style_escape): Update.
9092 (flush_wrap_buffer): Update.
9093 (fputs_maybe_filtered): Update.
9094 (fputs_unfiltered): Add function.
dfcb27e4 9095
faa17681
IB
90962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9097
aac66a4c
SM
9098 * gdb/event-loop.c (gdb_wait_for_event): Update.
9099 * gdb/printcmd.c (printf_command): Update.
9100 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9101 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9102 (gdb_os_flush_stderr): Update.
9103 * gdb/remote.c (remote_console_output): Update.
9104 * gdb/ui-file.c (gdb_flush): Rename to...
9105 (ui_file_flush): ...this.
9106 (stderr_file::write): Update.
9107 (stderr_file::puts): Update.
9108 * gdb/ui-file.h (gdb_flush): Rename to...
9109 (ui_file_flush): ...this.
9110 * gdb/utils.c (gdb_flush): Add function.
9111 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9112
5abbbe1d
TT
91132020-02-07 Tom Tromey <tromey@adacore.com>
9114
9115 PR breakpoints/24915:
9116 * source.c (find_and_open_source): Do not check basenames_may_differ.
9117
919adfe8
TT
91182020-02-07 Tom Tromey <tom@tromey.com>
9119
9120 * README: Update gdbserver documentation.
9121 * gdbserver: Move to top level.
9122 * configure.tgt (build_gdbserver): Remove.
9123 * configure.ac: Remove --enable-gdbserver.
9124 * configure: Rebuild.
9125 * Makefile.in (distclean): Don't mention gdbserver.
9126
1d5d29e7
SV
91272020-02-06 Shahab Vahedi <shahab@synopsys.com>
9128
9129 * source-cache.c (source_cache::ensure): Surround
9130 get_plain_source_lines with a try/catch.
9131 (source_cache::get_line_charpos): Get rid of try/catch
9132 and only check for the return value of "ensure".
9133 * tui/tui-source.c (tui_source_window::set_contents):
9134 Simplify "nlines" calculation.
9135
6eb1129c
SV
91362020-02-06 Shahab Vahedi <shahab@synopsys.com>
9137
9138 * MAINTAINERS (Write After Approval): Add myself.
9139
c6a42d11
CB
91402020-02-05 Christian Biesinger <cbiesinger@google.com>
9141
9142 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9143 function call.
9144
c8ecdda6
CB
91452020-02-05 Christian Biesinger <cbiesinger@google.com>
9146
9147 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9148
f6480e70
MR
91492020-02-05 Maciej W. Rozycki <macro@wdc.com>
9150
9151 * nat/riscv-linux-tdesc.h: New file.
9152 * nat/riscv-linux-tdesc.c: New file, taking code from...
9153 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9154 ... here.
9155 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9156 NATDEPFILES.
9157
dcc9fbc6
AB
91582020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9161 we don't set the fake simulator ptid to the null_ptid.
9162
719546c4
SM
91632020-02-03 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9166 * gdbthread.h (class thread_info) <resumed>: Likewise.
9167 * infrun.c (resume_1): Likewise.
9168 (proceed): Likewise.
9169 (infrun_thread_stop_requested): Likewise.
9170 (stop_all_threads): Likewise.
9171 (handle_inferior_event): Likewise.
9172 (restart_threads): Likewise.
9173 (finish_step_over): Likewise.
9174 (keep_going_stepped_thread): Likewise.
9175 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9176 (linux_handle_extended_wait): Likewise.
9177 * record-btrace.c (get_thread_current_frame_id): Likewise.
9178 * record-full.c (record_full_wait_1): Likewise.
9179 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9180 * target.c (target_resume): Likewise.
9181 * thread.c (set_running_thread): Likewise.
9182
e409c542
AKS
91832020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9184
9185 * f-valprint.c (f77_print_array_1): Changed datatype of index
9186 variable to LONGEST from int to enable it to contain bound
9187 values correctly.
9188
ee98c0da
MR
91892020-02-03 Maciej W. Rozycki <macro@wdc.com>
9190
9191 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9192 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9193 offsets according to FLEN determined.
9194 (riscv_linux_nat_target::read_description): Determine FLEN
9195 dynamically.
9196 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9197 according to FLEN determined.
9198 (riscv_linux_nat_target::store_registers): Likewise.
9199
aa66aac4
SV
92002020-02-01 Shahab Vahedi <shahab@synopsys.com>
9201
9202 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9203 when reg->group is empty and reggroup is not.
9204
fd9faca8
TT
92052020-01-31 Tom Tromey <tromey@adacore.com>
9206
9207 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9208 Call beneath target's mourn_inferior after unpushing.
9209
42330a68
AB
92102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9211
9212 PR tui/9765
9213 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9214 have enough lines to fill the screen, still return the lowest
9215 address we found.
9216
7a27a45b
AB
92172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9218
9219 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9220 '-', '<', and '>' commands.
9221
c47f70e2
PA
92222020-01-29 Pedro Alves <palves@redhat.com>
9223 Sergio Durigan Junior <sergiodj@redhat.com>
9224
9225 * infcmd.c (construct_inferior_arguments): Assert that
9226 'argc' is greater than 0.
9227
5133a315
LM
92282020-01-29 Luis Machado <luis.machado@linaro.org>
9229
9230 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9231 (BRK_INSN_MASK): Define to 0xd4200000.
9232 (aarch64_program_breakpoint_here_p): New function.
9233 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9234 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9235 breakpoint.c.
9236 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9237 breakpoint.h
9238 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9239 call gdbarch_program_breakpoint_here_p.
9240 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9241 default_program_breakpoint_here_p, changed return type to bool and
9242 simplified.
9243 * breakpoint.h (program_breakpoint_here): Moved prototype to
9244 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9245 return type to bool.
9246 * gdbarch.c: Regenerate.
9247 * gdbarch.h: Regenerate.
9248 * gdbarch.sh (program_breakpoint_here_p): New method.
9249 * infrun.c (handle_signal_stop): Call
9250 gdbarch_program_breakpoint_here_p.
9251
168f8c6b
TT
92522020-01-26 Tom Tromey <tom@tromey.com>
9253
9254 * ctfread.c (struct ctf_fp_info): Reindent.
9255 (_initialize_ctfread): Remove.
9256
128a391f
TT
92572020-01-26 Tom Tromey <tom@tromey.com>
9258
9259 * psymtab.c (partial_map_expand_apply)
9260 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9261 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9262 (psym_print_stats, psym_expand_symtabs_for_function)
9263 (psym_map_symbol_filenames, psym_map_matching_symbols)
9264 (psym_expand_symtabs_matching)
9265 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9266 (maintenance_check_psymtabs): Use new methods.
9267 * psympriv.h (struct partial_symtab) <readin_p,
9268 get_compunit_symtab>: New methods.
9269 <readin, compunit_symtab>: Remove members.
9270 (struct standard_psymtab): New.
9271 (struct legacy_psymtab): Derive from standard_psymtab.
9272 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9273 standard_psymtab.
9274 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9275
0494dbec
TT
92762020-01-26 Tom Tromey <tom@tromey.com>
9277
9278 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9279 read_dependencies. Add assert.
9280 * psymtab.c (partial_symtab::read_dependencies): New method.
9281 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9282 method.
9283 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9284 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9285 read_dependencies.
9286 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9287 Add assert.
9288
8566b89b
TT
92892020-01-26 Tom Tromey <tom@tromey.com>
9290
9291 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9292 Call expand_psymtab.
9293 (xcoff_read_symtab): Call expand_psymtab.
9294 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9295 legacy_expand_psymtab.
9296 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9297 method.
9298 (struct legacy_psymtab) <expand_psymtab>: Implement.
9299 <legacy_expand_psymtab>: New member.
9300 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9301 (parse_partial_symbols): Set legacy_expand_psymtab.
9302 (psymtab_to_symtab_1): Change argument order. Call
9303 expand_psymtab.
9304 (new_psymtab): Set legacy_expand_psymtab.
9305 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9306 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9307 expand_psymtab.
9308 (dwarf2_psymtab::expand_psymtab): Rename from
9309 psymtab_to_symtab_1. Call expand_psymtab.
9310 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9311 (dbx_end_psymtab): Likewise.
9312 (dbx_psymtab_to_symtab_1): Change argument order. Call
9313 expand_psymtab.
9314 (dbx_read_symtab): Call expand_psymtab.
9315 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9316 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9317 (ctf_psymtab::read_symtab): Call expand_psymtab.
9318
077cbab2
TT
93192020-01-26 Tom Tromey <tom@tromey.com>
9320
9321 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9322 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9323 messages.
9324 * mdebugread.c (mdebug_read_symtab): Remove prints.
9325 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9326 assert.
9327 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9328
891813be
TT
93292020-01-26 Tom Tromey <tom@tromey.com>
9330
9331 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9332 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9333 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9334 legacy_symtab.
9335 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9336 * psymtab.c (psymtab_to_symtab): Call method.
9337 (dump_psymtab): Update.
9338 * psympriv.h (struct partial_symtab): Add virtual destructor.
9339 <read_symtab>: New method.
9340 (struct legacy_symtab): New.
9341 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9342 (struct pst_map) <pst>: Now a legacy_psymtab.
9343 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9344 (new_psymtab): Use legacy_psymtab.
9345 * dwarf2read.h (struct dwarf2_psymtab): New.
9346 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9347 * dwarf2read.c (dwarf2_create_include_psymtab)
9348 (dwarf2_build_include_psymtabs, create_type_unit_group)
9349 (create_partial_symtab, process_psymtab_comp_unit_reader)
9350 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9351 (set_partial_user): Use dwarf2_psymtab.
9352 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9353 (psymtab_to_symtab_1, process_full_comp_unit)
9354 (process_full_type_unit, dwarf2_ranges_read)
9355 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9356 (dwarf_decode_lines): Use dwarf2_psymtab.
9357 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9358 (add_address_entry_worker, write_one_signatured_type)
9359 (recursively_count_psymbols, recursively_write_psymbols)
9360 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9361 (write_debug_names): Likewise.
9362 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9363 <pst>: Now a legacy_psymtab.
9364 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9365 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9366 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9367 * ctfread.c (struct ctf_psymtab): New.
9368 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9369 ctf_psymtab.
9370 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9371 (create_partial_symtab): Return a ctf_psymtab.
9372 (scan_partial_symbols): Update.
9373
c3693a1d
TT
93742020-01-26 Tom Tromey <tom@tromey.com>
9375
9376 * xcoffread.c (xcoff_start_psymtab): Use new.
9377 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9378 renamed from start_psymtab_common.
9379 * psympriv.h (struct partial_symtab): Add new constructor.
9380 (start_psymtab_common): Don't declare.
9381 * mdebugread.c (parse_partial_symbols): Use new.
9382 * dwarf2read.c (create_partial_symtab): Use new.
9383 * dbxread.c (start_psymtab): Use new.
9384 * ctfread.c (create_partial_symtab): Use new.
9385
32caafd0
TT
93862020-01-26 Tom Tromey <tom@tromey.com>
9387
9388 * xcoffread.c (xcoff_end_psymtab): Use new.
9389 * psymtab.c (start_psymtab_common): Use new.
9390 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9391 Update.
9392 * psympriv.h (struct partial_symtab): Add parameters to
9393 constructor. Don't inline.
9394 (allocate_psymtab): Don't declare.
9395 * mdebugread.c (new_psymtab): Use new.
9396 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9397 * dbxread.c (dbx_end_psymtab): Use new.
9398
abaa2f23
TT
93992020-01-26 Tom Tromey <tom@tromey.com>
9400
9401 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9402 allocate_psymtab. Update documentation.
9403 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9404 allocate_psymtab. Do not use new.
9405 (allocate_psymtab): Use new. Update.
9406
6d94535f
TT
94072020-01-26 Tom Tromey <tom@tromey.com>
9408
9409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9410 * psymtab.c (psym_print_stats): Update.
9411 * psympriv.h (struct partial_symtab) <readin,
9412 psymtabs_addrmap_supported, anonymous>: Now bool.
9413 * mdebugread.c (psymtab_to_symtab_1): Update.
9414 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9415 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9416 (process_full_comp_unit, process_full_type_unit): Update.
9417 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9418 * ctfread.c (psymtab_to_symtab): Update.
9419
6f17252b
TT
94202020-01-26 Tom Tromey <tom@tromey.com>
9421
9422 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9423 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9424 * psymtab.c (psymtab_storage): Delete psymtabs.
9425 (psymtab_storage::allocate_psymtab): Use new.
9426 (psymtab_storage::discard_psymtab): Use delete.
9427 * psympriv.h (struct partial_symtab): Add constructor and
9428 initializers.
9429
f6f1cebc
TT
94302020-01-26 Tom Tromey <tom@tromey.com>
9431
9432 * machoread.c: Do not include psympriv.h.
9433
e47e48f6
PW
94342020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9435
9436 * NEWS: Mention the new option and the set/show commands.
9437
a2fedca9
PW
94382020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9439
9440 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9441 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9442 (validate_exec_file): New variables, enums, functions.
9443 (exec_file_locate_attach, print_section_info): Style the filenames.
9444 (_initialize_exec): Install show_exec_file_mismatch_command and
9445 set_exec_file_mismatch_command.
9446 * gdbcore.h (validate_exec_file): Declare.
9447 * infcmd.c (attach_command): Call validate_exec_file.
9448 * remote.c ( remote_target::remote_add_inferior): Likewise.
9449
7ffa82e1
AB
94502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 * frame.c (find_frame_sal): Move call to get_next_frame into more
9453 inner scope.
9454 * inline-frame.c (inilne_state) <inline_state>: Update argument
9455 types.
9456 (inilne_state) <skipped_symbol>: Rename to...
9457 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9458 (skip_inline_frames): Build vector of skipped symbols and use this
9459 to reate the inline_state.
9460 (inline_skipped_symbol): Add a comment and some assertions, fetch
9461 skipped symbol from the list.
9462
3d92a3e3
AB
94632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9464
9465 * buildsym.c (lte_is_less_than): Delete.
9466 (buildsym_compunit::end_symtab_with_blockvector): Create local
9467 lambda function to sort line table entries, and use
9468 std::stable_sort instead of std::sort.
9469 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9470 markers when looking for a previous line.
9471
94a72be7
AB
94722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * dwarf2read.c (lnp_state_machine::record_line): Include
9475 end_sequence parameter in debug print out. Record the line if we
9476 are at an end_sequence marker even if it's not the start of a
9477 statement.
9478 * symmisc.c (maintenance_print_one_line_table): Print end of
9479 sequence markers with 'END' not '0'.
9480
53af73bf
PA
94812020-01-24 Pedro Alves <palves@redhat.com>
9482
9483 PR gdb/25410
9484 * thread.c (scoped_restore_current_thread::restore): Use
9485 switch_to_inferior_no_thread.
9486 * exec.c: Include "progspace-and-thread.h".
9487 (add_target_sections, remove_target_sections):
9488 scoped_restore_current_pspace_and_thread instead of
9489 scoped_restore_current_thread.
9490 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9491 and aspace to the inferior before calling clone_program_space.
9492 Remove stale comment.
9493
3050c6f4
CB
94942020-01-24 Christian Biesinger <cbiesinger@google.com>
9495
9496 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9497 (arm_netbsd_nat_target::fetch_registers): ...this.
9498 (arm_nbsd_nat_target::store_registers): Rename to...
9499 (arm_netbsd_nat_target::store_registers): ...this.
9500
73685c7e
CB
95012020-01-24 Christian Biesinger <cbiesinger@google.com>
9502
9503 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9504 register_t.
9505
89203d40
CB
95062020-01-24 Christian Biesinger <cbiesinger@google.com>
9507
9508 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9509 Update comment.
9510 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9511 Likewise.
9512 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9513 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9514 the correct replacement (iterate_over_regset_sections).
9515 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9516 Update comment.
9517
1ba1ac88
AB
95182020-01-24 Graham Markall <graham.markall@embecosm.com>
9519
9520 PR gdb/23718
9521 * gdb/python/python.c (execute_gdb_command): Call
9522 async_enable_stdin in catch block.
9523
f3364a6d
AB
95242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9525
9526 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9527 SWITCH_THRU_ALL_UIS.
9528
733d0a67
AB
95292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9530
9531 PR tui/9765
9532 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9533 comment, add extra parameter, and update to store previous symbol
9534 when appropriate.
9535 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9536 add extra parameter.
9537 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9538 remove unneeded parameter, add try/catch around gdb_print_insn,
9539 rewrite to add items to asm_lines vector.
9540 (tui_find_backward_disassembly_start_address): New function.
9541 (tui_find_disassembly_address): Updated throughout.
9542 (tui_disasm_window::set_contents): Update for changes to
9543 tui_disassemble.
9544 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9545 number of lines to scroll.
9546
b3b3bada
SM
95472020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9548
9549 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9550 (SECT_OFF_DATA): Likewise.
9551 (SECT_OFF_RODATA): Likewise.
9552 (SECT_OFF_TEXT): Likewise.
9553 (SECT_OFF_BSS): Likewise.
9554 (struct objfile) <text_section_offset, data_section_offset>: New
9555 methods.
9556 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9557 objfile::text_section_offset.
9558 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9559 * coffread.c (coff_symtab_read): Likewise.
9560 (enter_linenos): Likewise.
9561 (process_coff_symbol): Likewise.
9562 * ctfread.c (get_objfile_text_range): Likewise.
9563 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9564 Use objfile::data_section_offset.
9565 * dwarf2-frame.c (execute_cfa_program): Use
9566 objfile::text_section_offset.
9567 (dwarf2_frame_find_fde): Likewise.
9568 * dwarf2read.c (create_addrmap_from_index): Likewise.
9569 (create_addrmap_from_aranges): Likewise.
9570 (dw2_find_pc_sect_compunit_symtab): Likewise.
9571 (process_psymtab_comp_unit_reader): Likewise.
9572 (add_partial_symbol): Likewise.
9573 (add_partial_subprogram): Likewise.
9574 (process_full_comp_unit): Likewise.
9575 (read_file_scope): Likewise.
9576 (read_func_scope): Likewise.
9577 (read_lexical_block_scope): Likewise.
9578 (read_call_site_scope): Likewise.
9579 (dwarf2_rnglists_process): Likewise.
9580 (dwarf2_ranges_process): Likewise.
9581 (dwarf2_ranges_read): Likewise.
9582 (dwarf_decode_lines_1): Likewise.
9583 (new_symbol): Likewise.
9584 (dwarf2_fetch_die_loc_sect_off): Likewise.
9585 (dwarf2_per_cu_text_offset): Likewise.
9586 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9587 * hppa-tdep.c (read_unwind_info): Likewise.
9588 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9589 * psympriv.h (struct partial_symtab): Likewise.
9590 * psymtab.c (find_pc_sect_psymtab): Likewise.
9591 * solib-svr4.c (enable_break): Likewise.
9592 * stap-probe.c (relocate_address): Use
9593 objfile::data_section_offset.
9594 * xcoffread.c (enter_line_range): Use
9595 objfile::text_section_offset.
9596 (read_xcoff_symtab): Likewise.
9597
ab53f382
SM
95982020-01-23 Simon Marchi <simon.marchi@efficios.com>
9599
9600 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9601 declaration to narrower scopes.
9602
e7eee665
SM
96032020-01-23 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * darwin-nat.h (struct darwin_exception_msg, enum
9606 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9607 Move up.
9608 (class darwin_nat_target) <wait_1, check_new_threads,
9609 decode_exception_message, decode_message, stop_inferior,
9610 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9611 * darwin-nat.c (darwin_check_new_threads): Rename to...
9612 (darwin_nat_target::check_new_threads): ... this.
9613 (darwin_suspend_inferior_it): Remove.
9614 (darwin_decode_exception_message): Rename to...
9615 (darwin_nat_target::decode_exception_message): ... this.
9616 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9617 (darwin_decode_message): Rename to...
9618 (darwin_nat_target::decode_message): ... this.
9619 (cancel_breakpoint): Rename to...
9620 (darwin_nat_target::cancel_breakpoint): ... this.
9621 (darwin_wait): Rename to...
9622 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9623 instead of iterate_over_inferiors.
9624 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9625 (darwin_stop_inferior): Rename to...
9626 (darwin_nat_target::stop_inferior): ... this.
9627 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9628 (darwin_init_thread_list): Rename to...
9629 (darwin_nat_target::init_thread_list): ... this.
9630 (darwin_ptrace_him): Rename to...
9631 (darwin_nat_target::ptrace_him): ... this.
9632 (darwin_nat_target::create_inferior): Pass lambda function to
9633 fork_inferior.
9634 (darwin_nat_target::detach): Call stop_inferior instead of
9635 darwin_stop_inferior.
9636 * fork-inferior.h (fork_inferior): Change init_trace_fun
9637 parameter to gdb::function_view.
9638 * fork-inferior.c (fork_inferior): Likewise.
9639
c162ed3e
HD
96402020-01-23 Hannes Domani <ssbssa@yahoo.de>
9641
9642 * i386-cygwin-tdep.c (core_process_module_section): Update.
9643 * windows-nat.c (struct lm_info_windows): Add text_offset.
9644 (windows_xfer_shared_libraries): Update.
9645 * windows-tdep.c (windows_xfer_shared_library):
9646 Add text_offset_cached argument.
9647 * windows-tdep.h (windows_xfer_shared_library): Update.
9648
a1237872
SM
96492020-01-21 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9652
b3ee6dd9
SM
96532020-01-21 Simon Marchi <simon.marchi@efficios.com>
9654
9655 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9656 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9657 replace with range-based for.
9658 (gdbsim_interrupt_inferior): Remove.
9659 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9660 with a range-based for. Inline code from
9661 gdbsim_interrupt_inferior.
9662
f9fac3c8
SM
96632020-01-21 Simon Marchi <simon.marchi@efficios.com>
9664
9665 * infrun.c (proceed): Fix indentation.
9666
f6474de9
TT
96672020-01-21 Tom Tromey <tromey@adacore.com>
9668
9669 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9670 * python/python.c (python_extension_ops): Update.
9671 (gdbpy_colorize): New function.
9672 * python/lib/gdb/__init__.py (colorize): New function.
9673 * extension.h (ext_lang_colorize): Declare.
9674 * extension.c (ext_lang_colorize): New function.
9675 * extension-priv.h (struct extension_language_ops) <colorize>: New
9676 member.
9677 * cli/cli-style.c (_initialize_cli_style): Update help text.
9678
f0c702d4
LM
96792020-01-21 Luis Machado <luis.machado@linaro.org>
9680
9681 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9682 <cond>: Change type to bool.
9683 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9684 (aarch64_displaced_step_cb): Likewise.
9685 (aarch64_displaced_step_tb): Likewise.
9686
1ab139e5
LM
96872020-01-21 Luis Machado <luis.machado@linaro.org>
9688
9689 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9690 output.
9691
0c271889
LM
96922020-01-21 Luis Machado <luis.machado@linaro.org>
9693
9694 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9695 <pc_adjust>: Adjust the documentation.
9696 (aarch64_displaced_step_fixup): Check if PC really moved before
9697 adjusting it.
9698
4d89c1c7
TT
96992020-01-19 Tom Tromey <tom@tromey.com>
9700
9701 * disasm.c (~gdb_disassembler): New destructor.
9702 (gdb_buffered_insn_length): Call disassemble_free_target.
9703 * disasm.h (class gdb_disassembler): Declare destructor. Use
9704 DISABLE_COPY_AND_ASSIGN.
9705
c0ab21c2
TT
97062020-01-19 Tom Tromey <tom@tromey.com>
9707
9708 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9709 (die_reader_func_ftype): Remove.
9710 (cutu_reader): New class.
9711 (dw2_get_file_names_reader): Remove "data" parameter.
9712 (dw2_get_file_names): Use cutu_reader.
9713 (create_debug_type_hash_table): Update.
9714 (read_cutu_die_from_dwo): Update comment.
9715 (lookup_dwo_unit): Add dwo_name parameter.
9716 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9717 die_reader_func_ftype and data parameters.
9718 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9719 Remove die_reader_func_ftype and data parameters.
9720 (~cutu_reader): New; from init_cutu_and_read_dies.
9721 (cutu_reader::cutu_reader): Rename from
9722 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9723 and data parameters.
9724 (init_cutu_and_read_dies_simple): Remove.
9725 (struct process_psymtab_comp_unit_data): Remove.
9726 (process_psymtab_comp_unit_reader): Remove data parameter; add
9727 want_partial_unit and pretend_language parameters.
9728 (process_psymtab_comp_unit): Use cutu_reader.
9729 (build_type_psymtabs_reader): Remove data parameter.
9730 (build_type_psymtabs_1): Use cutu_reader.
9731 (process_skeletonless_type_unit): Likewise.
9732 (load_partial_comp_unit_reader): Remove.
9733 (load_partial_comp_unit): Use cutu_reader.
9734 (load_full_comp_unit_reader): Remove.
9735 (load_full_comp_unit): Use cutu_reader.
9736 (struct create_dwo_cu_data): Remove.
9737 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9738 dwo_unit parameters.
9739 (create_cus_hash_table): Use cutu_reader.
9740 (struct dwarf2_read_addr_index_data): Remove.
9741 (dwarf2_read_addr_index_reader): Remove.
9742 (dwarf2_read_addr_index): Use cutu_reader.
9743 (read_signatured_type_reader): Remove.
9744 (read_signatured_type): Use cutu_reader.
9745
45bbae5c
TT
97462020-01-19 Tom Tromey <tom@tromey.com>
9747
9748 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9749 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9750 (tui_wrefresh): Declare.
9751 * tui/tui-wingeneral.c (suppress_output): New global.
9752 (tui_suppress_output, ~tui_suppress_output): New constructor and
9753 destructor.
9754 (tui_wrefresh): New function.
9755 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9756 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9757 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9758 method.
9759 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9760 tui_wrefresh.
9761 (tui_data_window::no_refresh): New method.
9762 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9763 (tui_reg_command): Use tui_suppress_output
9764 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9765 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9766 method.
9767 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9768
4f13c1c0
TT
97692020-01-19 Tom Tromey <tom@tromey.com>
9770
9771 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9772 Handle case where symtab is null.
9773
fa47e446
SM
97742020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9775
9776 * linux-fork.c (one_fork_p): Simplify.
9777
26f42329
SM
97782020-01-17 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * top.c (struct qt_args): Remove.
9781 (kill_or_detach): Change return type to void, replace `void *`
9782 parameter with a proper one.
9783 (print_inferior_quit_action): Likewise.
9784 (quit_confirm): Use range-based for loop to iterate over inferiors.
9785 (quit_force): Likewise.
9786
a9ac81b1
SM
97872020-01-17 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9790 `void *` parameter with proper parameters.
9791 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9792 (print_one_inferior): Change return type to void, replace `void *`
9793 parameter with proper parameters.
9794 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9795 inferiors.
9796 (get_other_inferior): Remove.
9797 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9798 inferiors.
9799
788eca49
SM
98002020-01-17 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * mi/mi-interp.c (report_initial_inferior): Remove.
9803 (mi_interp::init): Use range-based for to iterate over inferiors.
9804
d9bc85b6
SM
98052020-01-17 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * python/py-inferior.c (build_inferior_list): Remove.
9808 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9809
40c94099
CB
98102020-01-16 Christian Biesinger <cbiesinger@google.com>
9811
9812 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9813 (btrace_stitch_trace): Likewise.
9814 * charset.c (intermediate_encoding): Likewise (vaild).
9815 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9816 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9817 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9818
e0cdfe3c
HD
98192020-01-16 Hannes Domani <ssbssa@yahoo.de>
9820
9821 * windows-tdep.c (windows_get_tlb_type):
9822 Add rtl_user_process_parameters type.
9823
790f1718 98242020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9825 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9826
9827 PR build/24805
9828 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9829 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9830 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9831 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9832 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9833 (ps_plog): Redeclare exported functions with default visibility.
9834
3112ed97
NA
98352020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9836
9837 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9838 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9839
8dc3273e
SM
98402020-01-15 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * infcmd.c (post_create_inferior): Use get_thread_regcache
9843 instead of get_current_regcache.
9844
ff47f4f0
TT
98452020-01-14 Tom Tromey <tom@tromey.com>
9846
9847 PR symtab/12535:
9848 * python/python.c (gdbpy_decode_line): Treat empty string the same
9849 as no argument.
9850
975f45b7
TT
98512020-01-14 Tom Tromey <tom@tromey.com>
9852
9853 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9854
25e57356
TT
98552020-01-14 Tom Tromey <tom@tromey.com>
9856
9857 * nat/linux-btrace.c: Don't include <config.h>.
9858 * nat/linux-ptrace.c: Don't include <config.h>.
9859 * nat/x86-linux-dregs.c: Don't include <config.h>.
9860
05ea2a05
TT
98612020-01-14 Tom Tromey <tom@tromey.com>
9862
9863 * configure: Rebuild.
9864 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9865
01027315
TT
98662020-01-14 Tom Tromey <tom@tromey.com>
9867
9868 * nat/x86-linux-dregs.c: Include configh.h.
9869 * nat/linux-ptrace.c: Include configh.h.
9870 * nat/linux-btrace.c: Include configh.h.
9871 * defs.h: Include config.h, bfd.h.
9872 * configure.ac: Don't source common.host.
9873 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9874 * configure: Rebuild.
9875 * acinclude.m4: Update path.
9876 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9877 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9878 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9879 (CLIBS): Add LIBSUPPORT.
9880 (CDEPS): Likewise.
9881 (COMMON_SFILES): Remove gdbsupport files.
9882 (HFILES_NO_SRCDIR): Likewise.
9883 (stamp-version): Update path to create-version.sh.
9884 (ALLDEPFILES): Remove gdbsupport files.
9885
b2ceabe8
TT
98862020-01-14 Tom Tromey <tom@tromey.com>
9887
9888 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9889 USE_WIN32API when needed.
9890 * configure.ac (USE_WIN32API): Don't define.
9891 (WIN32LIBS): Use WIN32APILIBS.
9892 * configure: Rebuild.
9893
25c51f71
TT
98942020-01-14 Tom Tromey <tom@tromey.com>
9895
9896 * configure: Rebuild.
9897 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9898
717c684d
BE
98992020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9900
9901 * skip.c (skip_function_command): Make skip w/o arguments use the
9902 name of the inlined function if pc is inside any inlined function.
9903
7da6a5b9
LM
99042020-01-14 Luis Machado <luis.machado@linaro.org>
9905
9906 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9907 * infrun.c (resume_1): Likewise.
9908 (handle_inferior_event): Remove stale comment.
9909 * linux-nat.c (linux_nat_target::resume): Update comments.
9910 (save_stop_reason): Likewise.
9911 (linux_nat_filter_event): Likewise.
9912 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9913
44e4c775
AB
99142020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 * elfread.c (record_minimal_symbol): Set section index to 0 for
9917 non-allocatable sections.
9918
18a8505e
AT
9919
99202020-01-13 Ali Tamur <tamur@google.com>
9921
9922 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9923 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9924 to gdb::optional. Update comments.
9925 (dwo_file): Update comments.
9926 (read_attribute): Update API to take an additional out parameter,
9927 need_reprocess. This is used to mark attributes that need other
9928 attributes (e.g. str_offsets_base) for correct computation which may not
9929 have been read yet.
9930 (read_attribute_reprocess): New function declaration.
9931 (read_addr_index): Likewise.
9932 (read_dwo_str_index): Likewise.
9933 (read_stub_str_index): Likewise.
9934 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9935 (lookup_addr_base): New function definition.
9936 (lookup_ranges_base): Likewise.
9937 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9938 lookup_ranges_base.
9939 (init_cutu_and_read_dies): Update comments.
9940 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9941 unit. This is used to inherit parent's str_offsets_base and addr_base.
9942 Update comments.
9943 (init_cutu_and_read_dies_simple): Reflect API changes.
9944 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9945 (create_cus_hash_table): Change API to take parent compile unit.
9946 Reflect API changes.
9947 (open_and_init_dwo_file): Reflect API changes.
9948 (dwarf2_get_pc_bounds): Update comments.
9949 (dwarf2_record_block_ranges): Likewise.
9950 (read_full_die_1): Change implementation to reprocess attributes that
9951 need str_offsets_base and addr_base.
9952 (partial_die_info::read): Likewise.
9953 (read_attribute_reprocess): New function definition.
9954 (read_attribute_value): Change API to take an additional out parameter,
9955 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9956 when a non-dwo compile unit has index based attributes.
9957 (read_attribute): Reflect API changes.
9958 (read_addr_index_1): Reflect API changes. Update comments.
9959 (dwarf2_read_addr_index_data): Reflect API changes.
9960 (dwarf2_read_addr_index): Likewise.
9961 (read_str_index): Change API and implementation. This becomes a helper
9962 to be used by the new string index related methods. Update error
9963 message and comments.
9964 (read_dwo_str_index): New function definition.
9965 (read_stub_str_index): Likewise.
9966 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9967 * symfile.h (dwarf2_debug_sections): Likewise.
9968 * xcoffread.c (dwarf2_debug_sections): Likewise.
9969
0cac9354
SM
99702020-01-13 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9973 core_reg_sect type to gdb_byte *.
9974 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9975 * cris-tdep.c (fetch_core_registers): Likewise.
9976 * corelow.c (core_target::get_core_register_section): Change
9977 type of `contents` to gdb::byte_vector.
9978
9a6d629c
AB
99792020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9980
9981 * tui/tui-wingeneral.c (box_win): Position the title in the center
9982 of the border.
9983
d8b2f9e3
SM
99842020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9985
9986 * corelow.c (core_target::get_core_register_section): Use
9987 std::vector instead of alloca.
9988
bb564c58
SM
99892020-01-13 Simon Marchi <simon.marchi@efficios.com>
9990
9991 * warning.m4: Add -Wmissing-declarations to build_warnings.
9992 * configure: Re-generate.
9993
6b366111
SM
99942020-01-13 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * python/python.c (init__gdb_module): Add declaration.
9997
6c265988
SM
99982020-01-13 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10001 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10002 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10003 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10004 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10005 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10006 * ada-exp.y (_initialize_ada_exp): Add declaration.
10007 * ada-lang.c (_initialize_ada_language): Add declaration.
10008 * ada-tasks.c (_initialize_tasks): Add declaration.
10009 * agent.c (_initialize_agent): Add declaration.
10010 * aix-thread.c (_initialize_aix_thread): Add declaration.
10011 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10012 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10013 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10014 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10015 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10016 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10017 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10018 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10019 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10020 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10021 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10022 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10023 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10024 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10025 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10026 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10027 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10028 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10029 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10030 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10031 * annotate.c (_initialize_annotate): Add declaration.
10032 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10033 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10034 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10035 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10036 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10037 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10038 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10039 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10040 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10041 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10042 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10043 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10044 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10045 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10046 * auto-load.c (_initialize_auto_load): Add declaration.
10047 * auxv.c (_initialize_auxv): Add declaration.
10048 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10049 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10050 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10051 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10052 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10053 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10054 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10055 * breakpoint.c (_initialize_breakpoint): Add declaration.
10056 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10057 * btrace.c (_initialize_btrace): Add declaration.
10058 * charset.c (_initialize_charset): Add declaration.
10059 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10060 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10061 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10062 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10063 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10064 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10065 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10066 * coffread.c (_initialize_coffread): Add declaration.
10067 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10068 * compile/compile.c (_initialize_compile): Add declaration.
10069 * complaints.c (_initialize_complaints): Add declaration.
10070 * completer.c (_initialize_completer): Add declaration.
10071 * copying.c (_initialize_copying): Add declaration.
10072 * corefile.c (_initialize_core): Add declaration.
10073 * corelow.c (_initialize_corelow): Add declaration.
10074 * cp-abi.c (_initialize_cp_abi): Add declaration.
10075 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10076 * cp-support.c (_initialize_cp_support): Add declaration.
10077 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10078 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10079 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10080 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10081 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10082 * ctfread.c (_initialize_ctfread): Add declaration.
10083 * d-lang.c (_initialize_d_language): Add declaration.
10084 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10085 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10086 * dbxread.c (_initialize_dbxread): Add declaration.
10087 * dcache.c (_initialize_dcache): Add declaration.
10088 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10089 * disasm.c (_initialize_disasm): Add declaration.
10090 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10091 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10092 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10093 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10094 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10095 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10096 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10097 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10098 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10099 * elfread.c (_initialize_elfread): Add declaration.
10100 * exec.c (_initialize_exec): Add declaration.
10101 * extension.c (_initialize_extension): Add declaration.
10102 * f-lang.c (_initialize_f_language): Add declaration.
10103 * f-valprint.c (_initialize_f_valprint): Add declaration.
10104 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10105 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10106 * filesystem.c (_initialize_filesystem): Add declaration.
10107 * findcmd.c (_initialize_mem_search): Add declaration.
10108 * findvar.c (_initialize_findvar): Add declaration.
10109 * fork-child.c (_initialize_fork_child): Add declaration.
10110 * frame-base.c (_initialize_frame_base): Add declaration.
10111 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10112 * frame.c (_initialize_frame): Add declaration.
10113 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10114 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10115 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10116 * gcore.c (_initialize_gcore): Add declaration.
10117 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10118 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10119 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10120 * gdbarch.c (_initialize_gdbarch): Add declaration.
10121 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10122 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10123 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10124 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10125 * go-lang.c (_initialize_go_language): Add declaration.
10126 * go32-nat.c (_initialize_go32_nat): Add declaration.
10127 * guile/guile.c (_initialize_guile): Add declaration.
10128 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10129 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10130 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10131 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10132 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10133 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10134 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10135 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10136 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10137 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10138 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10139 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10140 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10141 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10142 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10143 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10144 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10145 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10146 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10147 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10148 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10149 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10150 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10151 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10152 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10153 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10154 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10155 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10156 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10157 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10158 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10159 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10160 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10161 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10162 * infcall.c (_initialize_infcall): Add declaration.
10163 * infcmd.c (_initialize_infcmd): Add declaration.
10164 * inflow.c (_initialize_inflow): Add declaration.
10165 * infrun.c (_initialize_infrun): Add declaration.
10166 * interps.c (_initialize_interpreter): Add declaration.
10167 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10168 * jit.c (_initialize_jit): Add declaration.
10169 * language.c (_initialize_language): Add declaration.
10170 * linux-fork.c (_initialize_linux_fork): Add declaration.
10171 * linux-nat.c (_initialize_linux_nat): Add declaration.
10172 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10173 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10174 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10175 * m2-lang.c (_initialize_m2_language): Add declaration.
10176 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10177 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10178 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10179 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10180 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10181 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10182 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10183 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10184 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10185 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10186 * machoread.c (_initialize_machoread): Add declaration.
10187 * macrocmd.c (_initialize_macrocmd): Add declaration.
10188 * macroscope.c (_initialize_macroscope): Add declaration.
10189 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10190 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10191 * maint.c (_initialize_maint_cmds): Add declaration.
10192 * mdebugread.c (_initialize_mdebugread): Add declaration.
10193 * memattr.c (_initialize_mem): Add declaration.
10194 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10195 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10196 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10197 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10198 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10199 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10200 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10201 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10202 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10203 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10204 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10205 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10206 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10207 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10208 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10209 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10210 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10211 * mipsread.c (_initialize_mipsread): Add declaration.
10212 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10213 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10214 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10215 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10216 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10217 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10218 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10219 * nto-procfs.c (_initialize_procfs): Add declaration.
10220 * objc-lang.c (_initialize_objc_language): Add declaration.
10221 * observable.c (_initialize_observer): Add declaration.
10222 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10223 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10224 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10225 * osabi.c (_initialize_gdb_osabi): Add declaration.
10226 * osdata.c (_initialize_osdata): Add declaration.
10227 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10228 * parse.c (_initialize_parse): Add declaration.
10229 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10230 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10231 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10232 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10233 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10234 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10235 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10236 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10237 * printcmd.c (_initialize_printcmd): Add declaration.
10238 * probe.c (_initialize_probe): Add declaration.
10239 * proc-api.c (_initialize_proc_api): Add declaration.
10240 * proc-events.c (_initialize_proc_events): Add declaration.
10241 * proc-service.c (_initialize_proc_service): Add declaration.
10242 * procfs.c (_initialize_procfs): Add declaration.
10243 * producer.c (_initialize_producer): Add declaration.
10244 * psymtab.c (_initialize_psymtab): Add declaration.
10245 * python/python.c (_initialize_python): Add declaration.
10246 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10247 * record-btrace.c (_initialize_record_btrace): Add declaration.
10248 * record-full.c (_initialize_record_full): Add declaration.
10249 * record.c (_initialize_record): Add declaration.
10250 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10251 * regcache.c (_initialize_regcache): Add declaration.
10252 * reggroups.c (_initialize_reggroup): Add declaration.
10253 * remote-notif.c (_initialize_notif): Add declaration.
10254 * remote-sim.c (_initialize_remote_sim): Add declaration.
10255 * remote.c (_initialize_remote): Add declaration.
10256 * reverse.c (_initialize_reverse): Add declaration.
10257 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10258 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10259 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10260 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10261 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10262 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10263 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10264 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10265 Add declaration.
10266 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10267 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10268 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10269 * rust-exp.y (_initialize_rust_exp): Add declaration.
10270 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10271 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10272 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10273 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10274 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10275 * score-tdep.c (_initialize_score_tdep): Add declaration.
10276 * ser-go32.c (_initialize_ser_dos): Add declaration.
10277 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10278 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10279 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10280 * ser-uds.c (_initialize_ser_socket): Add declaration.
10281 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10282 * serial.c (_initialize_serial): Add declaration.
10283 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10284 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10285 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10286 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10287 * skip.c (_initialize_step_skip): Add declaration.
10288 * sol-thread.c (_initialize_sol_thread): Add declaration.
10289 * solib-aix.c (_initialize_solib_aix): Add declaration.
10290 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10291 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10292 * solib-frv.c (_initialize_frv_solib): Add declaration.
10293 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10294 * solib-target.c (_initialize_solib_target): Add declaration.
10295 * solib.c (_initialize_solib): Add declaration.
10296 * source-cache.c (_initialize_source_cache): Add declaration.
10297 * source.c (_initialize_source): Add declaration.
10298 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10299 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10300 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10301 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10302 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10303 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10304 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10305 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10306 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10307 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10308 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10309 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10310 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10311 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10312 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10313 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10314 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10315 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10316 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10317 * stabsread.c (_initialize_stabsread): Add declaration.
10318 * stack.c (_initialize_stack): Add declaration.
10319 * stap-probe.c (_initialize_stap_probe): Add declaration.
10320 * std-regs.c (_initialize_frame_reg): Add declaration.
10321 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10322 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10323 * symfile.c (_initialize_symfile): Add declaration.
10324 * symmisc.c (_initialize_symmisc): Add declaration.
10325 * symtab.c (_initialize_symtab): Add declaration.
10326 * target.c (_initialize_target): Add declaration.
10327 * target-connection.c (_initialize_target_connection): Add
10328 declaration.
10329 * target-dcache.c (_initialize_target_dcache): Add declaration.
10330 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10331 * thread.c (_initialize_thread): Add declaration.
10332 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10333 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10334 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10335 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10336 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10337 * tracectf.c (_initialize_ctf): Add declaration.
10338 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10339 * tracefile.c (_initialize_tracefile): Add declaration.
10340 * tracepoint.c (_initialize_tracepoint): Add declaration.
10341 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10342 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10343 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10344 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10345 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10346 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10347 * tui/tui.c (_initialize_tui): Add declaration.
10348 * typeprint.c (_initialize_typeprint): Add declaration.
10349 * ui-style.c (_initialize_ui_style): Add declaration.
10350 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10351 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10352 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10353 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10354 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10355 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10356 * unittests/filtered_iterator-selftests.c
10357 (_initialize_filtered_iterator_selftests): Add declaration.
10358 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10359 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10360 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10361 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10362 * unittests/main-thread-selftests.c
10363 (_initialize_main_thread_selftests): Add declaration.
10364 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10365 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10366 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10367 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10368 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10369 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10370 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10371 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10372 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10373 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10374 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10375 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10376 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10377 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10378 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10379 declaration.
10380 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10381 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10382 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10383 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10384 * user-regs.c (_initialize_user_regs): Add declaration.
10385 * utils.c (_initialize_utils): Add declaration.
10386 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10387 * valops.c (_initialize_valops): Add declaration.
10388 * valprint.c (_initialize_valprint): Add declaration.
10389 * value.c (_initialize_values): Add declaration.
10390 * varobj.c (_initialize_varobj): Add declaration.
10391 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10392 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10393 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10394 * windows-nat.c (_initialize_windows_nat): Add declaration.
10395 (_initialize_check_for_gdb_ini): Add declaration.
10396 (_initialize_loadable): Add declaration.
10397 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10398 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10399 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10400 * xcoffread.c (_initialize_xcoffread): Add declaration.
10401 * xml-support.c (_initialize_xml_support): Add declaration.
10402 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10403 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10404 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10405 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10406
e2de1eec
SM
104072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10408
10409 * regformats/regdat.sh: Generate declaration for init function.
10410
e0037b4c
SM
104112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10412
10413 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10414 up.
10415 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10416 close_one_inferior>: New methods.
10417 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10418 pass down target to find_inferior_pid.
10419 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10420 Pass down target to find_inferior_ptid.
10421 (gdbsim_target::create_inferior): Pass down target to
10422 add_thread_silent.
10423 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10424 target down to find_inferior_ptid and switch_to_thread.
10425 (gdbsim_target::close): Update to call close_one_inferior.
10426 (struct resume_data): Remove.
10427 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10428 directly, rather than through a void pointer.
10429 (gdbsim_target::resume): Update to call resume_one_inferior.
10430
58920b5b
SM
104312020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10434
4ec89149
PA
104352020-01-12 Pedro Alves <palves@redhat.com>
10436
10437 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10438 directly for the current inferior instead of
10439 discard_all_inferiors.
10440 (discard_all_inferiors): Delete.
10441
7c392d1d
TT
104422020-01-11 Tom Tromey <tom@tromey.com>
10443
10444 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10445 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10446 deprecated_safe_get_selected_frame.
10447
d9ebdab7
TBA
104482020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10449
10450 * inferior.c (print_inferior): Switch inferior before printing it.
10451
f3c469b9
PA
104522020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10453 Pedro Alves <palves@redhat.com>
10454
10455 * progspace-and-thread.c (switch_to_program_space_and_thread):
10456 Assert there's an inferior for PSPACE. Use
10457 switch_to_inferior_no_thread to switch the inferior too.
10458 * progspace.c (program_space::~program_space): Call
10459 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10460 (program_space::free_all_objfiles): Don't call clear_symtab_users
10461 here.
10462 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10463
65c574f6
PA
104642020-01-10 Pedro Alves <palves@redhat.com>
10465
10466 * NEWS: Mention multi-target debugging, "info connections", and
10467 "add-inferior -no-connection".
10468
2f4fcf00
PA
104692020-01-10 Pedro Alves <palves@redhat.com>
10470
10471 * infrun.c: Include "target-connection.h".
10472 (check_multi_target_resumption): New.
10473 (proceed): Call it.
10474 * target-connection.c (make_target_connection_string): Make
10475 extern.
10476 * target-connection.h (make_target_connection_string): Declare.
10477
121b3efd
PA
104782020-01-10 Pedro Alves <palves@redhat.com>
10479
10480 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10481 * inferior.c (uiout_field_connection): New function.
10482 (print_inferior): Add new "connection-id" column.
10483 (add_inferior_command): Show connection number/string of added
10484 inferior.
10485 * process-stratum-target.h
10486 (process_stratum_target::connection_string): New virtual method.
10487 (process_stratum_target::connection_number): New field.
10488 * remote.c (remote_target::connection_string): New override.
10489 * target-connection.c: New file.
10490 * target-connection.h: New file.
10491 * target.c (decref_target): Remove process_stratum targets from
10492 the connection list.
10493 (target_stack::push): Add process_stratum targets to the
10494 connection list.
10495
4f837581
PA
104962020-01-10 Pedro Alves <palves@redhat.com>
10497
10498 Revert:
10499 2016-04-12 Pedro Alves <palves@redhat.com>
10500 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10501 Remove references to name.
10502 * serial.h (struct serial) <name>: Delete.
10503
f4ec508e
PA
105042020-01-10 Pedro Alves <palves@redhat.com>
10505
10506 * gdbarch-selftests.c (register_to_value_test): Remove "target
10507 already pushed" check.
10508
5b6d1e4f
PA
105092020-01-10 Pedro Alves <palves@redhat.com>
10510 John Baldwin <jhb@FreeBSD.org>
10511
10512 * aarch64-linux-nat.c
10513 (aarch64_linux_nat_target::thread_architecture): Adjust.
10514 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10515 (task_command_1): Likewise.
10516 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10517 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10518 (aix_thread_target::store_registers)
10519 (aix_thread_target::thread_alive): Adjust.
10520 * amd64-fbsd-tdep.c: Include "inferior.h".
10521 (amd64fbsd_get_thread_local_address): Pass down target.
10522 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10523 thread's gdbarch instead of target_gdbarch.
10524 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10525 get_last_target_status.
10526 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10527 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10528 inferiors.
10529 (update_inserted_breakpoint_locations): Skip if inferiors with no
10530 execution.
10531 (update_global_location_list): When handling moribund locations,
10532 find representative inferior for location's pspace, and use thread
10533 count of its process_stratum target.
10534 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10535 * bsd-uthread.c (bsd_uthread_target::wait): Use
10536 as_process_stratum_target and adjust thread_change_ptid and
10537 add_thread calls.
10538 (bsd_uthread_target::update_thread_list): Use
10539 as_process_stratum_target and adjust find_thread_ptid,
10540 thread_change_ptid and add_thread calls.
10541 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10542 find_thread_ptid call.
10543 * corelow.c (add_to_thread_list): Adjust add_thread call.
10544 (core_target_open): Adjust add_thread_silent and thread_count
10545 calls.
10546 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10547 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10548 * event-top.c (async_disconnect): Pop targets from all inferiors.
10549 * exec.c (add_target_sections): Push exec target on all inferiors
10550 sharing the program space.
10551 (remove_target_sections): Remove the exec target from all
10552 inferiors sharing the program space.
10553 (exec_on_vfork): New.
10554 * exec.h (exec_on_vfork): Declare.
10555 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10556 Pass it down.
10557 (fbsd_nat_target::update_thread_list): Adjust.
10558 (fbsd_nat_target::resume): Adjust.
10559 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10560 down.
10561 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10562 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10563 get_thread_arch_regcache call.
10564 * fork-child.c (gdb_startup_inferior): Pass target down to
10565 startup_inferior and set_executing.
10566 * gdbthread.h (struct process_stratum_target): Forward declare.
10567 (add_thread, add_thread_silent, add_thread_with_info)
10568 (in_thread_list): Add process_stratum_target parameter.
10569 (find_thread_ptid(inferior*, ptid_t)): New overload.
10570 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10571 parameter.
10572 (all_threads()): Delete overload.
10573 (all_threads, all_non_exited_threads): Add process_stratum_target
10574 parameter.
10575 (all_threads_safe): Use brace initialization.
10576 (thread_count): Add process_stratum_target parameter.
10577 (set_resumed, set_running, set_stop_requested, set_executing)
10578 (threads_are_executing, finish_thread_state): Add
10579 process_stratum_target parameter.
10580 (switch_to_thread): Use is_current_thread.
10581 * i386-fbsd-tdep.c: Include "inferior.h".
10582 (i386fbsd_get_thread_local_address): Pass down target.
10583 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10584 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10585 have_inferiors check.
10586 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10587 (inf_ptrace_target::attach): Adjust.
10588 * infcall.c (run_inferior_call): Adjust.
10589 * infcmd.c (run_command_1): Pass target to
10590 scoped_finish_thread_state.
10591 (proceed_thread_callback): Skip inferiors with no execution.
10592 (continue_command): Rename 'all_threads' local to avoid hiding
10593 'all_threads' function. Adjust get_last_target_status call.
10594 (prepare_one_step): Adjust set_running call.
10595 (signal_command): Use user_visible_resume_target. Compare thread
10596 pointers instead of inferior_ptid.
10597 (info_program_command): Adjust to pass down target.
10598 (attach_command): Mark target's 'thread_executing' flag.
10599 (stop_current_target_threads_ns): New, factored out from ...
10600 (interrupt_target_1): ... this. Switch inferior before making
10601 target calls.
10602 * inferior-iter.h
10603 (struct all_inferiors_iterator, struct all_inferiors_range)
10604 (struct all_inferiors_safe_range)
10605 (struct all_non_exited_inferiors_range): Filter on
10606 process_stratum_target too. Remove explicit.
10607 * inferior.c (inferior::inferior): Push dummy target on target
10608 stack.
10609 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10610 Add process_stratum_target parameter, and pass it down.
10611 (have_live_inferiors): Adjust.
10612 (switch_to_inferior_and_push_target): New.
10613 (add_inferior_command, clone_inferior_command): Handle
10614 "-no-connection" parameter. Use
10615 switch_to_inferior_and_push_target.
10616 (_initialize_inferior): Mention "-no-connection" option in
10617 the help of "add-inferior" and "clone-inferior" commands.
10618 * inferior.h: Include "process-stratum-target.h".
10619 (interrupt_target_1): Use bool.
10620 (struct inferior) <push_target, unpush_target, target_is_pushed,
10621 find_target_beneath, top_target, process_target, target_at,
10622 m_stack>: New.
10623 (discard_all_inferiors): Delete.
10624 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10625 (all_inferiors, all_non_exited_inferiors): Add
10626 process_stratum_target parameter.
10627 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10628 (target_last_proc_target): New global.
10629 (follow_fork_inferior): Push target on new inferior. Pass target
10630 to add_thread_silent. Call exec_on_vfork. Handle target's
10631 reference count.
10632 (follow_fork): Adjust get_last_target_status call. Also consider
10633 target.
10634 (follow_exec): Push target on new inferior.
10635 (struct execution_control_state) <target>: New field.
10636 (user_visible_resume_target): New.
10637 (do_target_resume): Call target_async.
10638 (resume_1): Set target's threads_executing flag. Consider resume
10639 target.
10640 (commit_resume_all_targets): New.
10641 (proceed): Also consider resume target. Skip threads of inferiors
10642 with no execution. Commit resumtion in all targets.
10643 (start_remote): Pass current inferior to wait_for_inferior.
10644 (infrun_thread_stop_requested): Consider target as well. Pass
10645 thread_info pointer to clear_inline_frame_state instead of ptid.
10646 (infrun_thread_thread_exit): Consider target as well.
10647 (random_pending_event_thread): New inferior parameter. Use it.
10648 (do_target_wait): Rename to ...
10649 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10650 down.
10651 (threads_are_resumed_pending_p, do_target_wait): New.
10652 (prepare_for_detach): Adjust calls.
10653 (wait_for_inferior): New inferior parameter. Handle it. Use
10654 do_target_wait_1 instead of do_target_wait.
10655 (fetch_inferior_event): Adjust. Switch to representative
10656 inferior. Pass target down.
10657 (set_last_target_status): Add process_stratum_target parameter.
10658 Save target in global.
10659 (get_last_target_status): Add process_stratum_target parameter and
10660 handle it.
10661 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10662 (context_switch): Check inferior_ptid == null_ptid before calling
10663 inferior_thread().
10664 (get_inferior_stop_soon): Pass down target.
10665 (wait_one): Rename to ...
10666 (poll_one_curr_target): ... this.
10667 (struct wait_one_event): New.
10668 (wait_one): New.
10669 (stop_all_threads): Adjust.
10670 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10671 event's target.
10672 (switch_back_to_stepped_thread): Also consider target.
10673 (print_stop_event): Update.
10674 (normal_stop): Update. Also consider the resume target.
10675 * infrun.h (wait_for_inferior): Remove declaration.
10676 (user_visible_resume_target): New declaration.
10677 (get_last_target_status, set_last_target_status): New
10678 process_stratum_target parameter.
10679 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10680 process_stratum_target parameter, and use it.
10681 (clear_inline_frame_state (thread_info*)): New.
10682 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10683 process_stratum_target parameter.
10684 (clear_inline_frame_state (thread_info*)): Declare.
10685 * linux-fork.c (delete_checkpoint_command): Pass target down to
10686 find_thread_ptid.
10687 (checkpoint_command): Adjust.
10688 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10689 instead of just tweaking inferior_ptid.
10690 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10691 (exit_lwp): Pass target down to find_thread_ptid.
10692 (attach_proc_task_lwp_callback): Pass target down to
10693 add_thread/set_running/set_executing.
10694 (linux_nat_target::attach): Pass target down to
10695 thread_change_ptid.
10696 (get_detach_signal): Pass target down to find_thread_ptid.
10697 Consider last target status's target.
10698 (linux_resume_one_lwp_throw, resume_lwp)
10699 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10700 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10701 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10702 (linux_nat_target::async_wait_fd): New.
10703 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10704 target down.
10705 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10706 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10707 * linux-thread-db.c (struct thread_db_info::process_target): New
10708 field.
10709 (add_thread_db_info): Save target.
10710 (get_thread_db_info): New process_stratum_target parameter. Also
10711 match target.
10712 (delete_thread_db_info): New process_stratum_target parameter.
10713 Also match target.
10714 (thread_from_lwp): Adjust to pass down target.
10715 (thread_db_notice_clone): Pass down target.
10716 (check_thread_db_callback): Pass down target.
10717 (try_thread_db_load_1): Always push the thread_db target.
10718 (try_thread_db_load, record_thread): Pass target down.
10719 (thread_db_target::detach): Pass target down. Always unpush the
10720 thread_db target.
10721 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10722 target down. Always unpush the thread_db target.
10723 (find_new_threads_callback, thread_db_find_new_threads_2)
10724 (thread_db_target::update_thread_list): Pass target down.
10725 (thread_db_target::pid_to_str): Pass current inferior down.
10726 (thread_db_target::get_thread_local_address): Pass target down.
10727 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10728 target down.
10729 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10730 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10731 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10732 (procfs_init_inferior): Rename to ...
10733 (procfs_target::procfs_init_inferior): ... this and adjust.
10734 (procfs_target::create_inferior, procfs_notice_thread)
10735 (procfs_do_thread_registers): Adjust.
10736 * ppc-fbsd-tdep.c: Include "inferior.h".
10737 (ppcfbsd_get_thread_local_address): Pass down target.
10738 * proc-service.c (ps_xfer_memory): Switch current inferior and
10739 program space as well.
10740 (get_ps_regcache): Pass target down.
10741 * process-stratum-target.c
10742 (process_stratum_target::thread_address_space)
10743 (process_stratum_target::thread_architecture): Pass target down.
10744 * process-stratum-target.h
10745 (process_stratum_target::threads_executing): New field.
10746 (as_process_stratum_target): New.
10747 * ravenscar-thread.c
10748 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10749 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10750 down.
10751 * record-btrace.c (record_btrace_target::info_record): Adjust.
10752 (record_btrace_target::record_method)
10753 (record_btrace_target::record_is_replaying)
10754 (record_btrace_target::fetch_registers)
10755 (get_thread_current_frame_id, record_btrace_target::resume)
10756 (record_btrace_target::wait, record_btrace_target::stop): Pass
10757 target down.
10758 * record-full.c (record_full_wait_1): Switch to event thread.
10759 Pass target down.
10760 * regcache.c (regcache::regcache)
10761 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10762 process_stratum_target parameter and handle it.
10763 (current_thread_target): New global.
10764 (get_thread_regcache): Add process_stratum_target parameter and
10765 handle it. Switch inferior before calling target method.
10766 (get_thread_regcache): Pass target down.
10767 (get_thread_regcache_for_ptid): Pass target down.
10768 (registers_changed_ptid): Add process_stratum_target parameter and
10769 handle it.
10770 (registers_changed_thread, registers_changed): Pass target down.
10771 (test_get_thread_arch_aspace_regcache): New.
10772 (current_regcache_test): Define a couple local test_target_ops
10773 instances and use them for testing.
10774 (readwrite_regcache): Pass process_stratum_target parameter.
10775 (cooked_read_test, cooked_write_test): Pass mock_target down.
10776 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10777 (get_thread_arch_aspace_regcache): Add process_stratum_target
10778 parameter.
10779 (regcache::target): New method.
10780 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10781 (regcache::registers_changed_ptid): Add process_stratum_target
10782 parameter.
10783 (regcache::m_target): New field.
10784 (registers_changed_ptid): Add process_stratum_target parameter.
10785 * remote.c (remote_state::supports_vCont_probed): New field.
10786 (remote_target::async_wait_fd): New method.
10787 (remote_unpush_and_throw): Add remote_target parameter.
10788 (get_current_remote_target): Adjust.
10789 (remote_target::remote_add_inferior): Push target.
10790 (remote_target::remote_add_thread)
10791 (remote_target::remote_notice_new_inferior)
10792 (get_remote_thread_info): Pass target down.
10793 (remote_target::update_thread_list): Skip threads of inferiors
10794 bound to other targets. (remote_target::close): Don't discard
10795 inferiors. (remote_target::add_current_inferior_and_thread)
10796 (remote_target::process_initial_stop_replies)
10797 (remote_target::start_remote)
10798 (remote_target::remote_serial_quit_handler): Pass down target.
10799 (remote_target::remote_unpush_target): New remote_target
10800 parameter. Unpush the target from all inferiors.
10801 (remote_target::remote_unpush_and_throw): New remote_target
10802 parameter. Pass it down.
10803 (remote_target::open_1): Check whether the current inferior has
10804 execution instead of checking whether any inferior is live. Pass
10805 target down.
10806 (remote_target::remote_detach_1): Pass down target. Use
10807 remote_unpush_target.
10808 (extended_remote_target::attach): Pass down target.
10809 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10810 (remote_target::append_resumption): Pass down target.
10811 (remote_target::append_pending_thread_resumptions)
10812 (remote_target::remote_resume_with_hc, remote_target::resume)
10813 (remote_target::commit_resume): Pass down target.
10814 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10815 (remote_target::interrupt_query)
10816 (remote_target::remove_new_fork_children)
10817 (remote_target::check_pending_events_prevent_wildcard_vcont)
10818 (remote_target::remote_parse_stop_reply)
10819 (remote_target::process_stop_reply): Pass down target.
10820 (first_remote_resumed_thread): New remote_target parameter. Pass
10821 it down.
10822 (remote_target::wait_as): Pass down target.
10823 (unpush_and_perror): New remote_target parameter. Pass it down.
10824 (remote_target::readchar, remote_target::remote_serial_write)
10825 (remote_target::getpkt_or_notif_sane_1)
10826 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10827 down target.
10828 (remote_target::mourn_inferior): Pass down target. Use
10829 remote_unpush_target.
10830 (remote_target::core_of_thread)
10831 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10832 (remote_target::pid_to_exec_file)
10833 (remote_target::thread_handle_to_thread_info): Pass down target.
10834 (remote_target::async_wait_fd): New.
10835 * riscv-fbsd-tdep.c: Include "inferior.h".
10836 (riscv_fbsd_get_thread_local_address): Pass down target.
10837 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10838 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10839 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10840 Adjust.
10841 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10842 * solib-svr4.c (enable_break): Pass down target.
10843 * spu-multiarch.c (parse_spufs_run): Pass down target.
10844 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10845 * target-delegates.c: Regenerate.
10846 * target.c (g_target_stack): Delete.
10847 (current_top_target): Return the current inferior's top target.
10848 (target_has_execution_1): Refer to the passed-in inferior's top
10849 target.
10850 (target_supports_terminal_ours): Check whether the initial
10851 inferior was already created.
10852 (decref_target): New.
10853 (target_stack::push): Incref/decref the target.
10854 (push_target, push_target, unpush_target): Adjust.
10855 (target_stack::unpush): Defref target.
10856 (target_is_pushed): Return bool. Adjust to refer to the current
10857 inferior's target stack.
10858 (dispose_inferior): Delete, and inline parts ...
10859 (target_preopen): ... here. Only dispose of the current inferior.
10860 (target_detach): Hold strong target reference while detaching.
10861 Pass target down.
10862 (target_thread_name): Add assertion.
10863 (target_resume): Pass down target.
10864 (target_ops::beneath, find_target_at): Adjust to refer to the
10865 current inferior's target stack.
10866 (get_dummy_target): New.
10867 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10868 has a thread running.
10869 (initialize_targets): Rename to ...
10870 (_initialize_target): ... this.
10871 * target.h: Include "gdbsupport/refcounted-object.h".
10872 (struct target_ops): Inherit refcounted_object.
10873 (target_ops::shortname, target_ops::longname): Make const.
10874 (target_ops::async_wait_fd): New method.
10875 (decref_target): Declare.
10876 (struct target_ops_ref_policy): New.
10877 (target_ops_ref): New typedef.
10878 (get_dummy_target): Declare function.
10879 (target_is_pushed): Return bool.
10880 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10881 (all_matching_threads_iterator::all_matching_threads_iterator):
10882 Handle filter target.
10883 * thread-iter.h (struct all_matching_threads_iterator, struct
10884 all_matching_threads_range, class all_non_exited_threads_range):
10885 Filter by target too. Remove explicit.
10886 * thread.c (threads_executing): Delete.
10887 (inferior_thread): Pass down current inferior.
10888 (clear_thread_inferior_resources): Pass down thread pointer
10889 instead of ptid_t.
10890 (add_thread_silent, add_thread_with_info, add_thread): Add
10891 process_stratum_target parameter. Use it for thread and inferior
10892 searches.
10893 (is_current_thread): New.
10894 (thread_info::deletable): Use it.
10895 (find_thread_ptid, thread_count, in_thread_list)
10896 (thread_change_ptid, set_resumed, set_running): New
10897 process_stratum_target parameter. Pass it down.
10898 (set_executing): New process_stratum_target parameter. Pass it
10899 down. Adjust reference to 'threads_executing'.
10900 (threads_are_executing): New process_stratum_target parameter.
10901 Adjust reference to 'threads_executing'.
10902 (set_stop_requested, finish_thread_state): New
10903 process_stratum_target parameter. Pass it down.
10904 (switch_to_thread): Also match inferior.
10905 (switch_to_thread): New process_stratum_target parameter. Pass it
10906 down.
10907 (update_threads_executing): Reimplement.
10908 * top.c (quit_force): Pop targets from all inferior.
10909 (gdb_init): Don't call initialize_targets.
10910 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10911 Declare.
10912 (windows_add_thread, windows_delete_thread): Adjust.
10913 (get_windows_debug_event): Rename to ...
10914 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10915 * tracefile-tfile.c (tfile_target_open): Pass down target.
10916 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10917 Forward declare.
10918 (switch_to_thread): Add process_stratum_target parameter.
10919 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10920 parameter. Use it.
10921 (mi_on_resume): Pass target down.
10922 * nat/fork-inferior.c (startup_inferior): Add
10923 process_stratum_target parameter. Pass it down.
10924 * nat/fork-inferior.h (startup_inferior): Add
10925 process_stratum_target parameter.
10926 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10927
75c6c844
PA
109282020-01-10 Pedro Alves <palves@redhat.com>
10929
10930 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10931 directly. Instead find the first thread in the thread list and
10932 use switch_to_thread.
10933
78f2c40a
PA
109342020-01-10 Pedro Alves <palves@redhat.com>
10935
10936 * remote.c (remote_target::remote_add_inferior): Don't bind a
10937 process to the current inferior if the current inferior is already
10938 bound to a process.
10939
e7af6c70
TBA
109402020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10941 Pedro Alves <palves@redhat.com>
10942
10943 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10944 If no process is specified, return null_ptid instead of
10945 inferior_ptid.
10946 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10947 TARGET_WAITKIND_SIGNALLED with no pid.
10948
31ba933e
PA
109492020-01-10 Pedro Alves <palves@redhat.com>
10950
10951 * remote.c (first_remote_resumed_thread): New.
10952 (remote_target::wait_as): Use it as default event_ptid instead of
10953 inferior_ptid.
10954
735fc2ca
PA
109552020-01-10 Pedro Alves <palves@redhat.com>
10956
10957 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10958
c17e02e1
PA
109592020-01-10 Pedro Alves <palves@redhat.com>
10960
10961 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10962 not -1.
10963
ab1ddbcf
PA
109642020-01-10 Pedro Alves <palves@redhat.com>
10965
10966 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10967 ptid to get_last_target_status.
10968 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10969 ptid to get_last_target_status.
10970 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10971 get_last_target_status.
10972 (info_program_command): Don't pass a target_waitstatus to
10973 get_last_target_status.
10974 * infrun.c (init_wait_for_inferior): Use
10975 nullify_last_target_wait_ptid.
10976 (get_last_target_status): Handle nullptr arguments.
10977 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10978 (print_stop_event): Don't pass a ptid to get_last_target_status.
10979 (normal_stop): Don't pass a ptid to get_last_target_status.
10980 * infrun.h (get_last_target_status, set_last_target_status): Move
10981 comments here and update.
10982 (nullify_last_target_wait_ptid): Declare.
10983 * linux-fork.c (fork_load_infrun_state): Remove local extern
10984 declaration of nullify_last_target_wait_ptid.
10985 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10986 to get_last_target_status.
10987
f3f8ece4
PA
109882020-01-10 Pedro Alves <palves@redhat.com>
10989
10990 * gdbthread.h (scoped_restore_current_thread)
10991 <dont_restore, restore, m_dont_restore>: Declare.
10992 * thread.c (thread_alive): Add assertion. Return bool.
10993 (switch_to_thread_if_alive): New.
10994 (prune_threads): Switch inferior/thread.
10995 (print_thread_info_1): Switch thread before calling target methods.
10996 (scoped_restore_current_thread::restore): New, factored out from
10997 ...
10998 (scoped_restore_current_thread::~scoped_restore_current_thread):
10999 ... this.
11000 (scoped_restore_current_thread::scoped_restore_current_thread):
11001 Add assertion.
11002 (thread_apply_all_command, thread_select): Use
11003 switch_to_thread_if_alive.
11004 * infrun.c (proceed, restart_threads, handle_signal_stop)
11005 (switch_back_to_stepped_thread): Switch current thread before
11006 calling target methods.
11007
db2d40f7
PA
110082020-01-10 Pedro Alves <palves@redhat.com>
11009
11010 * inferior.c (switch_to_inferior_no_thread): New function,
11011 factored out from ...
11012 (inferior_command): ... here.
11013 * inferior.h (switch_to_inferior_no_thread): Declare.
11014 * mi/mi-main.c (run_one_inferior): Use
11015 switch_to_inferior_no_thread.
11016
bd420a2d
PA
110172020-01-10 Pedro Alves <palves@redhat.com>
11018
11019 * infcmd.c (kill_command): Remove dead code.
11020
ddf5db90
PA
110212020-01-10 Pedro Alves <palves@redhat.com>
11022
11023 * remote.c (remote_target::mourn_inferior): No longer check
11024 whether the target is running.
11025
5018ce90
PA
110262020-01-10 Pedro Alves <palves@redhat.com>
11027
11028 * corelow.c (core_target::has_execution): Change parameter type to
11029 inferior pointer.
11030 * inferior.c (number_of_live_inferiors): Use
11031 inferior::has_execution instead of target_has_execution_1.
11032 * inferior.h (inferior::has_execution): New.
11033 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11034 inferior::has_execution instead of target_has_execution_1.
11035 * process-stratum-target.c
11036 (process_stratum_target::has_execution): Change parameter type to
11037 inferior pointer. Check the inferior's PID instead of
11038 inferior_ptid.
11039 * process-stratum-target.h
11040 (process_stratum_target::has_execution): Change parameter type to
11041 inferior pointer.
11042 * record-full.c (record_full_core_target::has_execution): Change
11043 parameter type to inferior pointer.
11044 * target.c (target_has_execution_1): Change parameter type to
11045 inferior pointer.
11046 (target_has_execution_current): Adjust.
11047 * target.h (target_ops::has_execution): Change parameter type to
11048 inferior pointer.
11049 (target_has_execution_1): Change parameter type to inferior
11050 pointer. Change return type to bool.
11051 * tracefile.h (tracefile_target::has_execution): Change parameter
11052 type to inferior pointer.
11053
74375d18
PA
110542020-01-10 Pedro Alves <palves@redhat.com>
11055
11056 * exceptions.c (print_flush): Remove current_top_target() check.
11057
acdf84a6
PA
110582020-01-10 Pedro Alves <palves@redhat.com>
11059
11060 * remote.c (show_remote_exec_file): Show the current inferior's
11061 exec-file instead of the command variable's value.
11062
ec506636
PA
110632020-01-10 Pedro Alves <palves@redhat.com>
11064
11065 * record-full.c (record_full_resume_ptid): New global.
11066 (record_full_target::resume): Set it.
11067 (record_full_wait_1): Use record_full_resume_ptid instead of
11068 inferior_ptid.
11069
873657b9
PA
110702020-01-10 Pedro Alves <palves@redhat.com>
11071
11072 * gdbthread.h (scoped_restore_current_thread)
11073 <dont_restore, restore, m_dont_restore>: Declare.
11074 * thread.c (thread_alive): Add assertion. Return bool.
11075 (switch_to_thread_if_alive): New.
11076 (prune_threads): Switch inferior/thread.
11077 (print_thread_info_1): Switch thread before calling target methods.
11078 (scoped_restore_current_thread::restore): New, factored out from
11079 ...
11080 (scoped_restore_current_thread::~scoped_restore_current_thread):
11081 ... this.
11082 (scoped_restore_current_thread::scoped_restore_current_thread):
11083 Add assertion.
11084 (thread_apply_all_command, thread_select): Use
11085 switch_to_thread_if_alive.
11086
7f0ae84c
GB
110872020-01-10 George Barrett <bob@bob131.so>
11088
11089 * stap-probe.c (stap_modify_semaphore): Don't check for null
11090 semaphores.
11091 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11092 for null semaphores.
11093
f5a7c406
AB
110942020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11095
11096 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11097 all source windows, and maintain horizontal scroll status while
11098 doing so.
11099
9ae6bf64
TT
111002020-01-09 Tom Tromey <tom@tromey.com>
11101
11102 PR tui/18932:
11103 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11104 update_source_window, not print_source_lines.
11105
b2efe70c
AB
111062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11107
11108 * tui/tui.c (tui_enable): Register tui hooks after calling
11109 tui_display_main.
11110
5f23a082
CB
111112020-01-09 Christian Biesinger <cbiesinger@google.com>
11112
11113 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11114
3061113b
SM
111152020-01-08 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * thread.c (print_thread_info_1): Fix indentation.
11118
57d75002
CB
111192020-01-09 Christian Biesinger <cbiesinger@google.com>
11120
11121 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11122 unique_xmalloc_ptr outside the if to always free the demangled name.
11123
6a053cb1
TT
111242020-01-08 Tom Tromey <tromey@adacore.com>
11125
11126 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11127 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11128 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11129 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11130 Remove.
11131 (section_offsets): New typedef.
11132 * symtab.c (fixup_section, get_msymbol_address): Update.
11133 * symmisc.c (dump_msymbols): Update.
11134 * symfile.h (relative_addr_info_to_section_offsets)
11135 (symfile_map_offsets_to_segments): Update.
11136 * symfile.c (build_section_addr_info_from_objfile)
11137 (init_objfile_sect_indices): Update.
11138 (struct place_section_arg): Change type of "offsets".
11139 (place_section): Update.
11140 (relative_addr_info_to_section_offsets): Change type of
11141 "section_offsets". Remove "num_sections" parameter.
11142 (default_symfile_offsets, syms_from_objfile_1)
11143 (set_objfile_default_section_offset): Update.
11144 (reread_symbols): No need to preserve section offsets by hand.
11145 (symfile_map_offsets_to_segments): Change type of "offsets".
11146 * stap-probe.c (relocate_address): Update.
11147 * stabsread.h (process_one_symbol): Update.
11148 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11149 (solib_target_relocate_section_addresses): Update.
11150 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11151 Update.
11152 * solib-frv.c (frv_relocate_main_executable): Update.
11153 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11154 * solib-aix.c (solib_aix_get_section_offsets): Change return
11155 type.
11156 (solib_aix_solib_create_inferior_hook): Update.
11157 * remote.c (remote_target::get_offsets): Update.
11158 * psymtab.c (find_pc_sect_psymtab): Update.
11159 * psympriv.h (struct partial_symbol) <address, text_low,
11160 text_high>: Update.
11161 * objfiles.h (obj_section_offset): Update.
11162 (struct objfile) <section_offsets>: Change type.
11163 <num_sections>: Remove.
11164 (objfile_relocate): Update.
11165 * objfiles.c (entry_point_address_query): Update
11166 (relocate_one_symbol): Change type of "section_offsets".
11167 (objfile_relocate1, objfile_relocate1): Change type of
11168 "new_offsets".
11169 (objfile_rebase1): Update.
11170 * mipsread.c (mipscoff_symfile_read): Update.
11171 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11172 parameter.
11173 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11174 (parse_external, psymtab_to_symtab_1): Update.
11175 * machoread.c (macho_symfile_offsets): Update.
11176 * ia64-tdep.c (ia64_find_unwind_table): Update.
11177 * hppa-tdep.c (read_unwind_info): Update.
11178 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11179 * dwarf2read.c (create_addrmap_from_index)
11180 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11181 (process_psymtab_comp_unit_reader, add_partial_symbol)
11182 (add_partial_subprogram, process_full_comp_unit)
11183 (read_file_scope, read_func_scope, read_lexical_block_scope)
11184 (read_call_site_scope, dwarf2_rnglists_process)
11185 (dwarf2_ranges_process, dwarf2_ranges_read)
11186 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11187 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11188 Update.
11189 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11190 Update.
11191 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11192 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11193 (process_one_symbol): Change type of "section_offsets".
11194 * ctfread.c (get_objfile_text_range): Update.
11195 * coffread.c (coff_symtab_read, enter_linenos)
11196 (process_coff_symbol): Update.
11197 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11198 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11199
456e800a
TT
112002020-01-08 Tom Tromey <tromey@adacore.com>
11201
11202 * dwarf2read.c (parse_macro_definition): Use std::string.
11203 (parse_macro_definition): Likewise.
11204
6dfa2fc2
TT
112052020-01-08 Tom Tromey <tromey@adacore.com>
11206
11207 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11208 (ATTR_ALLOC_CHUNK): Remove.
11209
421d1616
TT
112102020-01-08 Tom Tromey <tromey@adacore.com>
11211
11212 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11213
43816ebc
TT
112142020-01-08 Tom Tromey <tromey@adacore.com>
11215
11216 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11217 (dwarf2_compute_name, open_dwo_file): Likewise.
11218 (process_enumeration_scope): Use std::vector.
11219 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11220 (partial_die_info::fixup, dwarf2_start_subfile)
11221 (guess_full_die_structure_name, dwarf2_name): Likewise.
11222 (determine_prefix): Update.
11223 (guess_full_die_structure_name): Make return type const.
11224 (partial_die_full_name): Return unique_xmalloc_ptr.
11225 (DW_FIELD_ALLOC_CHUNK): Remove.
11226
4212d509
TT
112272020-01-07 Tom Tromey <tromey@adacore.com>
11228
11229 PR build/24937:
11230 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11231
06a6207a
JT
112322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11233
11234 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11235
153d79c4
AB
112362020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11237
11238 * stack.c (print_frame_info): Move disassemble_next_line code
11239 inside source_print block.
11240
66182876
EZ
112412020-01-06 Eli Zaretskii <eliz@gnu.org>
11242
11243 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11244 gdb/signals.h, as we are now using native signal symbols.
11245
cbfa8581
SV
112462020-01-06 Shahab Vahedi <shahab@synopsys.com>
11247
11248 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11249 overflow by an early check of content vs threshold.
aac66a4c 11250 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11251 Likewise.
11252
3f602821
EZ
112532020-01-06 Eli Zaretskii <eliz@gnu.org>
11254
11255 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11256
a08c904d
JT
112572020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11258
11259 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11260 export table if no section contains it's RVA.
11261
89a65580
EZ
112622020-01-06 Eli Zaretskii <eliz@gnu.org>
11263
11264 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11265
8b7fcda2
HD
112662020-01-06 Hannes Domani <ssbssa@yahoo.de>
11267
11268 * source.c (print_source_lines_base): Set last_line_listed.
11269
a61b4f69
SV
112702020-01-06 Shahab Vahedi <shahab@synopsys.com>
11271
11272 * tui/tui-disasm.c: Remove trailing spaces.
11273
559e7e50
EZ
112742020-01-06 Eli Zaretskii <eliz@gnu.org>
11275 Pedro Alves <palves@redhat.com>
11276
11277 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11278 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11279 (windows_gdb_signal_to_target): New function, uses the above
11280 enumeration to convert GDB internal signal codes to equivalent
11281 Windows codes.
11282 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11283 * windows-nat.c: Include "gdb_wait.h".
11284 (get_windows_debug_event): Extract the fatal exception from the
11285 exit status and convert to the equivalent Posix signal number.
11286 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11287 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11288 * gdbsupport/gdb_wait.c: New file, implements
11289 windows_status_to_termsig.
11290 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11291 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11292
f2302a34
AB
112932020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11294
11295 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11296 show_layout.
11297
6a5206eb
LM
112982020-01-05 Luis Machado <luis.machado@linaro.org>
11299
11300 * aarch64-linux-nat.c
11301 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11302 and bfd_mach_aarch64.
11303
6ec1d75e
PW
113042020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11305
11306 * ui-file.c (stdio_file::can_emit_style_escape)
11307 (tee_file::can_emit_style_escape): Ensure style is used also on
11308 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11309 to gdb_stdout.
11310 * main.c (set_gdb_data_directory): Use file style to output the
11311 warning that the given pathname is not a directory.
11312 * top.c (show_history_filename, gdb_safe_append_history)
11313 (show_gdb_datadir): Use file style.
11314
44f81a76
HD
113152020-01-03 Hannes Domani <ssbssa@yahoo.de>
11316
11317 * solib-target.c (struct lm_info_target):
11318 Change offsets to be a unique_xmalloc_ptr.
11319 (solib_target_relocate_section_addresses): Update.
11320
25057eb0
HD
113212020-01-03 Hannes Domani <ssbssa@yahoo.de>
11322
11323 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11324
6e2118f5
BE
113252020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11326
11327 * MAINTAINERS (Write After Approval): Add myself.
11328
8133c7dc
LM
113292020-01-02 Luis Machado <luis.machado@linaro.org>
11330
11331 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11332 Cell BE architecture.
11333 * target.h (struct target_ops) <thread_architecture>: Likewise.
11334
48189bec
HD
113352020-01-01 Hannes Domani <ssbssa@yahoo.de>
11336
11337 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11338
ead1063b
HD
113392020-01-01 Hannes Domani <ssbssa@yahoo.de>
11340
11341 * MAINTAINERS (Write After Approval): Add myself.
11342
e5d78223
JB
113432020-01-01 Joel Brobecker <brobecker@adacore.com>
11344
11345 * gdbarch.sh: Update copyright year range of generated files.
11346
b811d2c2
JB
113472020-01-01 Joel Brobecker <brobecker@adacore.com>
11348
11349 Update copyright year range in all GDB files.
11350
5f4def5c
JB
113512020-01-01 Joel Brobecker <brobecker@adacore.com>
11352
11353 * copyright.py: Convert to Python 3.
11354
51fd4002
JB
113552020-01-01 Joel Brobecker <brobecker@adacore.com>
11356
11357 * copyright.py: Adapt after move of gnulib directory from gdb
11358 directory to toplevel directory.
11359
5fb651f2
JB
113602020-01-01 Joel Brobecker <brobecker@adacore.com>
11361
11362 * copyright.py (main): Exit if run from the wrong directory.
11363
5dd8bf88
JB
113642020-01-01 Joel Brobecker <brobecker@adacore.com>
11365
11366 * top.c (print_gdb_version): Change copyright year to 2020.
11367
9f71dacb 113682020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11369
9f71dacb 11370 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11371
9f71dacb 11372For older changes see ChangeLog-2019.
c906108c
SS
11373\f
11374Local Variables:
11375mode: change-log
11376left-margin: 8
11377fill-column: 74
11378version-control: never
57da7796 11379coding: utf-8
c906108c 11380End: