]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
section_table_xfer_memory: Replace section name with callback predicate
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e56cb451
KB
12020-07-22 Kevin Buettner <kevinb@redhat.com>
2
3 * exec.h (section_table_xfer_memory): Revise declaration,
4 replacing section name parameter with an optional callback
5 predicate.
6 * exec.c (section_table_xfer_memory): Likewise.
7 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
8 of section_table_xfer_memory.
9
32fa152e
TT
102020-07-22 Tom Tromey <tromey@adacore.com>
11
12 * mi/mi-cmd-stack.c (list_args_or_locals): Use
13 lookup_symbol_search_name.
14
a67a1c41
AB
152020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * python/py-registers.c (gdbpy_register_object_data_init): Remove
18 redundant local variable.
19 (gdbpy_get_register_descriptor): Extract descriptor vector as a
20 reference, not pointer, update code accordingly.
21
a7b4ff4f
SM
222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
26 * jit.c (jit_breakpoint_re_set_internal): Use the
27 `skip_jit_symbol_lookup` field.
28
2340e834
SM
292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
31
32 * jit.c (jit_read_descriptor): Define the descriptor address once,
33 use twice.
34 (jit_breakpoint_deleted): Move the declaration of the loop variable
35 `iter` into the loop header.
36 (jit_breakpoint_re_set_internal): Move the declaration of the local
37 variable `objf_data` to the first point of definition.
38 (jit_event_handler): Move the declaration of local variables
39 `code_entry`, `entry_addr`, and `objf` to their first point of use.
40 Rename `objf` to `jited`.
41
c1072906
SM
422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
45 Remove.
46 * jit.c (get_jiter_objfile_data): Update.
47
c8474dc3
TBA
482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
49 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * jit.c (struct jit_program_space_data): Remove.
52 (jit_program_space_key): Remove.
53 (jiter_objfile_data::~jiter_objfile_data): Remove program space
54 stuff.
55 (get_jit_program_space_data): Remove.
56 (jit_breakpoint_deleted): Iterate on all of the program space's
57 objfiles.
58 (jit_inferior_init): Likewise.
59 (jit_breakpoint_re_set_internal): Likewise. Also change return
60 type to void.
61 (jit_breakpoint_re_set): Pass current_program_space to
62 jit_breakpoint_re_set_internal.
63
77208eb7
SM
642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * jit.h (struct jiter_objfile_data) <cached_code_address,
67 jit_breakpoint>: Move to here from ...
68 * jit.c (jit_program_space_data): ... here.
69 (jiter_objfile_data::~jiter_objfile_data): Update.
70 (jit_breakpoint_deleted): Update.
71 (jit_breakpoint_re_set_internal): Update.
72
8c1c720f
SM
732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
76 checks.
77 (jit_read_descriptor): Remove NULL check.
78 (jit_event_handler): Add an assertion.
79
0e74a041
SM
802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
81
82 * jit.h (struct jit_objfile_data): Split into...
83 (struct jiter_objfile_data): ... this ...
84 (struct jited_objfile_data): ... and this.
85 * objfiles.h (struct objfile) <jit_data>: Remove.
86 <jiter_data, jited_data>: New fields.
87 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
88 (jiter_objfile_data::~jiter_objfile_data): ... this.
89 (get_jit_objfile_data): Rename to ...
90 (get_jiter_objfile_data): ... this.
91 (add_objfile_entry): Update.
92 (jit_read_descriptor): Use get_jiter_objfile_data.
93 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
94 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
95 (jit_inferior_exit_hook): Use objfile's jited_data field.
96
238b5c9f
SM
972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * jit.h: Forward-declare `struct minimal_symbol`.
100 (struct jit_objfile_data): Migrate to here from jit.c; also add a
101 constructor, destructor, and an objfile* field.
102 * jit.c (jit_objfile_data): Remove.
103 (struct jit_objfile_data): Migrate from here to jit.h.
104 (jit_objfile_data::~jit_objfile_data): New destructor
105 implementation with code moved from free_objfile_data.
106 (free_objfile_data): Delete.
107 (get_jit_objfile_data): Update to use the jit_data field of objfile.
108 (jit_find_objf_with_entry_addr): Ditto.
109 (jit_inferior_exit_hook): Ditto.
110 (_initialize_jit): Remove the call to
111 register_objfile_data_with_cleanup.
112 * objfiles.h (struct objfile) <jit_data>: New field.
113
fe053b9e
TBA
1142020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
115
116 * jit.h: Forward-declare `struct objfile`.
117 (jit_event_handler): Add a second parameter, the JITer objfile.
118 * jit.c (jit_read_descriptor): Change the signature to take the
119 JITer objfile as an argument instead of the jit_program_space_data.
120 (jit_inferior_init): Update the call to jit_read_descriptor.
121 (jit_event_handler): Use the new JITer objfile argument when calling
122 jit_read_descriptor.
123 * breakpoint.c (handle_jit_event): Update the call to
124 jit_event_handler to pass the JITer objfile.
125
4cec0c66
JB
1262020-07-21 John Baldwin <jhb@FreeBSD.org>
127
128 * gdbarch.c: Regenerate.
129 * gdbarch.h: Regenerate.
130 * gdbarch.sh (handle_segmentation_fault): Remove method.
131 * infrun.c (handle_segmentation_fault): Remove.
132 (print_signal_received_reason): Remove call to
133 handle_segmentation_fault.
134
0e42f66a
JB
1352020-07-21 John Baldwin <jhb@FreeBSD.org>
136
137 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
138 Rename to sparc64_linux_report_signal_info and add siggnal
139 argument.
140 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
141 instead of sparc64_linux_handle_segmentation_fault.
142
77bdfeb2
JB
1432020-07-21 John Baldwin <jhb@FreeBSD.org>
144
145 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
146 i386_linux_report_signal_info instead of
147 i386_linux_handle_segmentation_fault.
148 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
149 to i386_linux_report_signal_info and add siggnal argument.
150 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
151 of i386_linux_handle_segmentation_fault.
152 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
153 to i386_linux_report_signal_info and add siggnal argument.
154
ad97bfc5
JB
1552020-07-21 John Baldwin <jhb@FreeBSD.org>
156
157 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
158 hook if present.
159
272bb05c
JB
1602020-07-21 John Baldwin <jhb@FreeBSD.org>
161
162 * gdbarch.c: Regenerate.
163 * gdbarch.h: Regenerate.
164 * gdbarch.sh (report_signal_info): New method.
165 * infrun.c (print_signal_received_reason): Invoke gdbarch
166 report_signal_info hook if present.
167
baf8791e
AB
1682020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * python/py-registers.c : Add 'unordered_map' include.
171 (gdbpy_new_reggroup): Renamed to...
172 (gdbpy_get_reggroup): ...this. Update to only create register
173 group descriptors when needed.
174 (gdbpy_reggroup_iter_next): Update.
175
f7306dac
AB
1762020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * python/py-registers.c (gdbpy_register_object_data): New static
179 global.
180 (gdbpy_register_object_data_init): New function.
181 (gdbpy_new_register_descriptor): Renamed to...
182 (gdbpy_get_register_descriptor): ...this, and update to reuse
183 existing register descriptors where possible.
184 (gdbpy_register_descriptor_iter_next): Update.
185 (gdbpy_initialize_registers): Register new gdbarch data.
186
05c309a8
SM
1872020-07-21 Simon Marchi <simon.marchi@efficios.com>
188
189 * linux-nat.c (stopped_pids): Make static.
190
d1fd641e
SM
1912020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
192
193 PR ada/26235
194 * gdbtypes.c (ada_discrete_type_low_bound,
195 ada_discrete_type_high_bound): Handle undefined bounds.
196
1de14d77
KR
1972020-07-21 Kamil Rytarowski <n54@gmx.com>
198
199 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
200 declaration.
201 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
202 function.
203
ed810cc7
JB
2042020-07-20 John Baldwin <jhb@FreeBSD.org>
205
206 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
207 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
208 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
209 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
210 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
211 method.
212
ae5369e7
LC
2132020-07-20 Ludovic Courtès <ludo@gnu.org>
214
215 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
216 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
217 which are deprecated in Guile 3.0.
218 * configure.ac (try_guile_versions): Add "guile-3.0".
219 * configure (try_guile_versions): Regenerate.
220 * NEWS: Update entry.
221
68cf161c
LC
2222020-07-20 Ludovic Courtès <ludo@gnu.org>
223 Doug Evans <dje@google.com>
224
225 PR gdb/21104
226 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
227 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
228 USING_GUILE_BEFORE_2_2.
229 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
230 Change type to 'scm_t_port_type *'.
231 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
232 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
233 parameter and honor it. Update callers.
234 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
235 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
236 functions.
237 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
238 USING_GUILE_BEFORE_2_2.
239 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
240 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
241 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
242 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
243 and 'SCM_PORT_TYPE'.
244 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
245 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
246 (gdbscm_memory_port_read, gdbscm_memory_port_write)
247 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
248 [!USING_GUILE_BEFORE_2_2]: New functions.
249 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
250 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
251 'gdbscm_memory_port_read'.
252 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
253 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
254 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
255 function.
256 (ioscm_init_memory_port): Remove.
257 (ioscm_init_memory_port_stream): New function
258 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
259 function.
260 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
261 Return scm_from_uint (0).
262 (gdbscm_set_memory_port_read_buffer_size_x)
263 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
264 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
265 Return scm_from_uint (0).
266 (gdbscm_set_memory_port_write_buffer_size_x)
267 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
268 * configure.ac (try_guile_versions): Add "guile-2.2".
269 * configure: Regenerate.
270 * NEWS: Add entry.
271
aee91db3
TT
2722020-07-18 Tom Tromey <tom@tromey.com>
273
274 * linux-nat.c (linux_multi_process): Remove.
275 (linux_nat_target::supports_multi_process): Return true.
276
0e267416
AB
2772020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * arch/riscv.c (riscv_tdesc_cache): Change map type.
280 (riscv_lookup_target_description): Return pointer out of
281 unique_ptr.
282 * target-descriptions.c (allocate_target_description): Add
283 comment.
284 (target_desc_deleter::operator()): Likewise.
285 * target-descriptions.h (struct target_desc_deleter): Moved to
286 gdbsupport/tdesc.h.
287 (target_desc_up): Likewise.
288
f80c8ec4
TT
2892020-07-17 Tom Tromey <tromey@adacore.com>
290
291 * linux-nat.c (linux_nat_target::supports_non_stop)
292 (linux_nat_target::always_non_stop_p): Use "true".
293 (linux_nat_target::supports_disable_randomization): Use "true" and
294 "false".
295
d0ce17d8
CT
2962020-07-16 Caroline Tice <cmtice@google.com>
297
298 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
299 (RNGLIST_HEADER_SIZE64): New constant definition.
300 (struct dwop_section_names): Add rnglists_dwo.
301 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
302 (struct loclist_header): Rename to 'loclists_rnglists_header'.
303 (struct dwo_sections): Add rnglists field.
304 (read_attribut_reprocess): Add tag parameter.
305 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
306 (cu_debug_rnglists_section): New function (decl & definition).
307 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
308 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
309 die whose range is being checked; get rnglist section from
310 cu_debug_rnglists_section, to get from either objfile or dwo file as
311 appropriate. Add cases for DW_RLE_base_addressx,
312 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
313 the base address to DW_RLE_offset_pairs (not to all ranges), moving
314 test inside if-condition and updating complaint message.
315 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
316 dwarf2_rnglists_process.
317 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
318 dwarf2_ranges_process.
319 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
320 need_ranges_base and update comment appropriately. Also pass die tag
321 to dwarf2_ranges_read.
322 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
323 need_ranges_base and update comment appropriately. Also pass die tag
324 to dwarf2_ranges_process.
325 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
326 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
327 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
328 need_ranges_base and update comment appropriately. Also pass die tag
329 to read_attribute_reprocess and dwarf2_ranges_read.
330 (read_loclist_header): Rename function to read_loclists_rnglists_header,
331 and update function comment appropriately.
332 (read_loclist_index): Call read_loclists_rnglists_header instead of
333 read_loclist_header.
334 (read_rnglist_index): New function.
335 (read_attribute_reprocess): Add tag parameter. Add code for
336 DW_FORM_rnglistx, passing tag to read_rnglist_index.
337 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
338
3dcc261c
AB
3392020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
342 being resolved.
343
ccb9eba6
AB
3442020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * arch-utils.c (show_architecture): Update formatting of messages.
347
cf88be68
SM
3482020-07-12 Simon Marchi <simon.marchi@efficios.com>
349
350 * gdbtypes.h (struct type) <bounds>: Handle array and string
351 types.
352 * ada-lang.c (assign_aggregate): Use type::bounds on
353 array/string type.
354 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
355 * c-varobj.c (c_number_of_children): Likewise.
356 (c_describe_child): Likewise.
357 * eval.c (evaluate_subexp_for_sizeof): Likewise.
358 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
359 (f_type_print_base): Likewise.
360 * f-valprint.c (f77_array_offset_tbl): Likewise.
361 (f77_get_upperbound): Likewise.
362 (f77_print_array_1): Likewise.
363 * guile/scm-type.c (gdbscm_type_range): Likewise.
364 * m2-typeprint.c (m2_array): Likewise.
365 (m2_is_long_set_of_type): Likewise.
366 * m2-valprint.c (get_long_set_bounds): Likewise.
367 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
368 * python/py-type.c (typy_range): Likewise.
369 * rust-lang.c (rust_internal_print_type): Likewise.
370 * type-stack.c (type_stack::follow_types): Likewise.
371 * valarith.c (value_subscripted_rvalue): Likewise.
372 * valops.c (value_cast): Likewise.
373
509971ae
SM
3742020-07-12 Simon Marchi <simon.marchi@efficios.com>
375
376 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
377 callers to use the equivalent accessor methods.
378
107406b7
SM
3792020-07-12 Simon Marchi <simon.marchi@efficios.com>
380
381 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
382 (struct type) <bit_stride>: New method.
383 (TYPE_BIT_STRIDE): Remove.
384 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
385
bb789949
SM
3862020-07-12 Simon Marchi <simon.marchi@efficios.com>
387
388 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
389 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
390 callers to use the equivalent accessor methods instead.
391
39498edb
SM
3922020-07-12 Simon Marchi <simon.marchi@efficios.com>
393
394 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
395 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
396 callers to use the equivalent accessor methods instead.
397
3b606f38
SM
3982020-07-12 Simon Marchi <simon.marchi@efficios.com>
399
400 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
401 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
402 to use dynamic_prop::kind.
403
064d9cb9
SM
4042020-07-12 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
407 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
408 to get the bound property's kind and check against
409 PROP_UNDEFINED.
410
5537ddd0
SM
4112020-07-12 Simon Marchi <simon.marchi@efficios.com>
412
413 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
414 all callers to use type::range_bounds followed by
415 dynamic_prop::{low,high}.
416
8c2e4e06
SM
4172020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
420 const_val, set_const_val, baton, set_locexpr, set_loclist,
421 set_addr_offset, variant_parts, set_variant_parts,
422 original_type, set_original_type>: New methods.
423 <kind>: Rename to...
424 <m_kind>: ... this. Update all users to use the new methods
425 instead.
426 <data>: Rename to...
427 <m_data>: ... this. Update all users to use the new methods
428 instead.
429
7c6f2712
SM
4302020-07-12 Simon Marchi <simon.marchi@efficios.com>
431
432 * gdbtypes.c (get_discrete_bounds): Return failure if
433 the range type's bounds are not both defined and constant
434 values.
435 (get_array_bounds): Update comment. Remove undefined bound check.
436
599088e3
SM
4372020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
440 the type::bounds method directly.
441
c4dfcb36
SM
4422020-07-12 Simon Marchi <simon.marchi@efficios.com>
443
444 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
445 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
446 are used to set the range type's bounds to use set_bounds.
447
0a278aa7
PW
4482020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
449
450 * exec.c (_initialize_exec): Update exec-file-mismatch help.
451
cce20f10
PA
4522020-07-10 Pedro Alves <pedro@palves.net>
453
454 * gdbthread.h (inferior_ref): Define.
455 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
456 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
457 * thread.c
458 (scoped_restore_current_thread::restore):
459 Adjust to gdb::ref_ptr.
460 (scoped_restore_current_thread::~scoped_restore_current_thread):
461 Remove manual decref handling.
462 (scoped_restore_current_thread::scoped_restore_current_thread):
463 Adjust to use
464 inferior_ref::new_reference/thread_info_ref::new_reference.
465 Incref the thread before calling get_frame_id instead of after.
466 Let TARGET_CLOSE_ERROR propagate.
467
6d7aa592
PA
4682020-07-10 Pedro Alves <pedro@palves.net>
469
470 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
471 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
472 NOT_AVAILABLE_ERROR.
473 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
474 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
475
b3e3a4c1
SM
4762020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
477 Pedro Alves <pedro@palves.net>
478
479 PR gdb/26199
480 * infrun.c (threads_are_resumed_pending_p): Delete.
481 (do_target_wait): Remove threads_are_executing and
482 threads_are_resumed_pending_p checks from the inferior_matches
483 lambda. Update comments.
484
d6cc5d98
PA
4852020-07-10 Pedro Alves <pedro@palves.net>
486
487 PR gdb/26199
488 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
489 executing threads.
490
7d3badc6
PA
4912020-07-10 Pedro Alves <pedro@palves.net>
492
493 PR gdb/26199
494 * infrun.c (handle_no_resumed): Handle multiple targets.
495
42bd97a6
PA
4962020-07-10 Pedro Alves <pedro@palves.net>
497
498 PR gdb/26199
499 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
500 target_is_async_p.
501
43667cc6
PA
5022020-07-10 Pedro Alves <pedro@palves.net>
503
504 PR gdb/26199
505 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
506 threads, not all threads.
507
96118d11
PA
5082020-07-10 Pedro Alves <pedro@palves.net>
509
510 PR gdb/26199
511 * remote.c (remote_target::open_1): Pass remote target pointer as
512 data to create_async_event_handler.
513 (remote_async_inferior_event_handler): Mark async event handler
514 before returning if the remote target still has either pending
515 events or unacknowledged notifications.
516
54904d81
JB
5172020-07-10 John Baldwin <jhb@FreeBSD.org>
518
519 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
520 declaration.
521 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
522 function.
523
f37e5866
JB
5242020-07-09 John Baldwin <jhb@FreeBSD.org>
525
526 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
527 inferior_ptid.
528
fc238d4a
JB
5292020-07-09 John Baldwin <jhb@FreeBSD.org>
530
531 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
532 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
533 AT_FREEBSD_PS_STRINGS.
534
6e2469ff
HD
5352020-07-08 Hannes Domani <ssbssa@yahoo.de>
536
537 * auto-load.c (auto_load_objfile_script_1): Convert drive part
538 of debugfile path on Windows.
539
d1076c41
JB
5402020-07-08 John Baldwin <jhb@FreeBSD.org>
541
542 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
543 argument to 'data'.
544
15f3b077
TT
5452020-07-08 Tom Tromey <tromey@adacore.com>
546
547 * ada-lang.c (ada_exception_message_1): Use read_memory.
548
9fc501fd
AB
5492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 PR python/22748
552 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
553 special handling for inline frames.
554 * findvar.c (value_of_register_lazy): Skip inline frames when
555 creating lazy register values.
556 * frame.c (frame_id_computed_p): Delete definition.
557 * frame.h (frame_id_computed_p): Delete declaration.
558
64cb3757
AB
5592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * NEWS: Mention additions to Python API.
562 * python/py-arch.c (archpy_register_groups): New function.
563 (arch_object_methods): Add 'register_groups' method.
564 * python/py-registers.c (reggroup_iterator_object): New struct.
565 (reggroup_object): New struct.
566 (gdbpy_new_reggroup): New function.
567 (gdbpy_reggroup_to_string): New function.
568 (gdbpy_reggroup_name): New function.
569 (gdbpy_reggroup_iter): New function.
570 (gdbpy_reggroup_iter_next): New function.
571 (gdbpy_new_reggroup_iterator): New function
572 (gdbpy_initialize_registers): Register new types.
573 (reggroup_iterator_object_type): Define new Python type.
574 (gdbpy_reggroup_getset): New static global.
575 (reggroup_object_type): Define new Python type.
576 * python/python-internal.h
577
0f767f94
AB
5782020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
581 * python/py-arch.c (archpy_registers): New function.
582 (arch_object_methods): Add 'registers' method.
583 * python/py-registers.c: New file.
584 * python/python-internal.h
585 (gdbpy_new_register_descriptor_iterator): Declare.
586 (gdbpy_initialize_registers): Declare.
587 * python/python.c (do_start_initialization): Call
588 gdbpy_initialize_registers.
589 * NEWS: Mention additions to the Python API.
590
87dbc774
AB
5912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * NEWS: Mention new Python API method.
594 * python/py-unwind.c (pending_framepy_architecture): New function.
595 (pending_frame_object_methods): Add architecture method.
596
3bc98c0c
AB
5972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * gdbarch.c: Regenerate.
600 * gdbarch.h: Regenerate.
601 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
602 (gdbarch_data): Use internal_error for the case where
603 deprecated_set_gdbarch_data was originally needed.
604 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
605 and use passed in obstack.
606 (libunwind_frame_set_descr): Should no longer get back NULL from
607 gdbarch_data.
608 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
609 type.
610 * user-regs.c (user_regs_init): Update parameters, and use passed
611 in obstack.
612 (user_reg_add): Should no longer get back NULL from gdbarch_data.
613 (_initialize_user_regs): Register as a pre-init gdbarch data type.
614
d8cc8af6
TV
6152020-07-06 Tom de Vries <tdevries@suse.de>
616
617 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
618 End-Of-Sequence in lte_is_less_than.
619 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
620 "gdb: Don't reorder line table entries too much when sorting".
621
947f7597
TV
6222020-07-06 Tom de Vries <tdevries@suse.de>
623
624 PR tui/26205
625 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
626
1e7c1b22
TV
6272020-07-05 Tom de Vries <tdevries@suse.de>
628
629 PR build/26187
630 * inferior.h (struct infcall_suspend_state_deleter): If available, use
631 std::uncaught_exceptions instead of deprecated
632 std::uncaught_exception.
633
a36158ec
SM
6342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * macroexp.h (macro_stringify): Return
637 gdb::unique_xmalloc_ptr<char>.
638 * macroexp.c (macro_stringify): Likewise.
639 * macrotab.c (fixup_definition): Update.
640
14d960c8
SM
6412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
644 (lex_one_token): Update.
645 * macroexp.c (struct macro_buffer) <release>: Return
646 gdb::unique_xmalloc_ptr<char>.
647 (macro_stringify): Update.
648 (macro_expand): Update.
649 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
650 * macroexp.h (macro_expand_next): Likewise.
651
211d5b1c
SM
6522020-07-02 Simon Marchi <simon.marchi@efficios.com>
653
654 * macroexp.h (macro_lookup_ftype): Remove.
655 (macro_expand, macro_expand_once, macro_expand_next): Remove
656 lookup function parameters, add scope parameter.
657 * macroexp.c (scan, substitute_args, expand, maybe_expand,
658 macro_expand, macro_expand_once, macro_expand_next): Likewise.
659 * macroscope.h (standard_macro_lookup): Change parameter type
660 to macro_scope.
661 * macroscope.c (standard_macro_lookup): Likewise.
662 * c-exp.y (lex_one_token): Update.
663 * macrocmd.c (macro_expand_command): Likewise.
664 (macro_expand_once_command): Likewise.
665
b1a35af2
SM
6662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * inf-loop.c (inferior_event_handler): Remove client_data param.
669 * inf-loop.h (inferior_event_handler): Likewise.
670 * infcmd.c (step_1): Adjust.
671 * infrun.c (proceed): Adjust.
672 (fetch_inferior_event): Remove client_data param.
673 (infrun_async_inferior_event_handler): Adjust.
674 * infrun.h (fetch_inferior_event): Remove `void *` param.
675 * linux-nat.c (handle_target_event): Adjust.
676 * record-btrace.c (record_btrace_handle_async_inferior_event):
677 Adjust.
678 * record-full.c (record_full_async_inferior_event_handler):
679 Adjust.
680 * remote.c (remote_async_inferior_event_handler): Adjust.
681
1cdf9e33
TT
6822020-07-01 Tom Tromey <tom@tromey.com>
683
684 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
685 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
686
32c1e210
TT
6872020-07-01 Tom Tromey <tom@tromey.com>
688
689 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
690 tui_gen_win_info.
691 (tui_win_info::make_window): Merge with
692 tui_gen_win_info::make_window.
693 (tui_win_info::make_visible): Move from tui_gen_win_info.
694 * tui/tui-win.c (tui_win_info::max_width): Move from
695 tui_gen_win_info.
696 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
697 type.
698 <window_factory>: Likewise.
699 * tui/tui-layout.c (tui_win_info::resize): Move from
700 tui_gen_win_info.
701 (make_standard_window): Change return type.
702 (get_locator_window, tui_get_window_by_name): Likewise.
703 (tui_layout_window::apply): Remove a cast.
704 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
705 (struct tui_win_info): Merge with tui_gen_win_info.
706 (struct tui_gen_win_info): Remove.
707
a30cb6da
TT
7082020-07-01 Tom Tromey <tom@tromey.com>
709
710 * tui/tui-stack.h (struct tui_locator_window): Derive from
711 tui_win_info.
712 <do_scroll_horizontal, do_scroll_vertical>: New methods.
713 <can_box>: New method.
714
1eb2161f
TT
7152020-07-01 Tom Tromey <tom@tromey.com>
716
717 * tui/tui-stack.h (struct tui_locator_window): Remove body.
718
7134f2eb
TT
7192020-07-01 Tom Tromey <tom@tromey.com>
720
721 * tui/tui-regs.c (tui_data_window::display_registers_from)
722 (tui_data_window::display_registers_from)
723 (tui_data_window::first_data_item_displayed)
724 (tui_data_window::delete_data_content_windows): Update.
725 (tui_data_window::refresh_window, tui_data_window::no_refresh):
726 Remove.
727 (tui_data_window::check_register_values): Update.
728 (tui_data_item_window::rerender): Add parameters. Update.
729 (tui_data_item_window::refresh_window): Remove.
730 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
731 virtual.
732 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
733 tui_gen_win_info.
734 <refresh_window, max_height, min_height>: Remove.
735 <rerender>: Add parameters.
736 <x, y, visible>: New members.
737 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
738 <m_item_width>: New member.
739
22b7b041
TT
7402020-07-01 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-regs.c (tui_data_window::show_register_group)
743 (tui_data_window::check_register_values): Update.
744 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
745 from item_no.
746
c9753adb
TT
7472020-07-01 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
750 useless "if".
751
9ab26b4a
TT
7522020-07-01 Tom Tromey <tom@tromey.com>
753
754 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
755 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
756
e555083f
TT
7572020-07-01 Tom Tromey <tom@tromey.com>
758
759 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
760 * tui/tui-winsource.h (enum tui_line_or_address_kind)
761 (struct tui_line_or_address): Move from tui-data.h.
762 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
763 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
764 (tui_cmd_window, tui_source_window_base, tui_source_window)
765 (tui_disasm_window): Don't declare.
766 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
767 to tui-winsource.h.
768 (SINGLE_KEY): Move to tui-stack.c.
769
7a02bab7
TT
7702020-07-01 Tom Tromey <tom@tromey.com>
771
772 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
773 std::string.
774 * tui/tui-regs.c (class tab_expansion_file): New.
775 (tab_expansion_file::write): New method.
776 (tui_register_format): Change return type. Use
777 tab_expansion_file.
778 (tui_get_register, tui_data_window::display_registers_from)
779 (tui_data_item_window::rerender): Update.
780 * tui/tui-io.h (tui_expand_tabs): Don't declare.
781 * tui/tui-io.c (tui_expand_tabs): Remove.
782
ea68593b
TT
7832020-07-01 Tom Tromey <tom@tromey.com>
784
785 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
786
a8caed5d
FS
7872020-07-01 Fangrui Song <maskray@google.com>
788
789 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
790
9cdf9820
AKS
7912020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
792
793 * dwarf2/read.c (set_die_type): Removed conditions to restrict
794 forms for DW_AT_associated and DW_AT_allocated attributes,
795 which is already checked in function attr_to_dynamic_prop.
796
a1520ad8
TT
7972020-06-30 Tom Tromey <tromey@adacore.com>
798
799 * dwarf2/read.c (quirk_rust_enum): Correctly call
800 alloc_rust_variant for default-less enum.
801
5ac58899
TT
8022020-06-30 Tom Tromey <tromey@adacore.com>
803
804 PR build/26183:
805 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
806 gdb::to_string.
807
19b187a9
SM
8082020-06-29 Simon Marchi <simon.marchi@efficios.com>
809
810 * gdbarch.sh (displaced_step_copy_insn): Update doc.
811 * gdbarch.h: Re-generate.
812
cd4c4c07
TT
8132020-06-28 Tom Tromey <tom@tromey.com>
814
815 * command.h (cmd_types): Remove.
816 (cmd_type): Don't declare.
817 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
818 typedef.
819 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
820 * cli/cli-decode.c (cmd_type): Remove.
821
05779d57
PA
8222020-06-27 Pedro Alves <palves@redhat.com>
823
824 * fork-child.c (prefork_hook): Adjust.
825 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
826 Delete.
827 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
828 * inferior.c (inferior::set_tty, inferior::tty): New methods.
829 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
830 Remove declarations.
831 (struct inferior) <set_tty, tty>: New methods.
832 (struct inferior) <terminal>: Rename to ...
833 (struct inferior) <m_terminal>: ... this and make private.
834 * main.c (captured_main_1): Adjust.
835 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
836 (mi_cmd_inferior_tty_show): Adjust.
837 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
838 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
839
1776e3e5
NA
8402020-06-26 Nick Alcock <nick.alcock@oracle.com>
841
842 * configure.ac: Add --enable-libctf: handle --disable-static
843 properly.
844 * acinclude.m4: sinclude ../config/enable.m4.
845 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
846 (LIBCTF): Substitute in.
847 (CTF_DEPS): New, likewise.
848 (CLIBS): libctf needs symbols from libbfd: move earlier.
849 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
850 flags.
851 * ctfread.c: Surround in ENABLE_LIBCTF.
852 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
853 * configure: Regenerate.
854 * config.in: Likewise.
855
58373b80
SM
8562020-06-25 Simon Marchi <simon.marchi@efficios.com>
857
858 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
859
277474ee
SM
8602020-06-25 Simon Marchi <simon.marchi@efficios.com>
861
862 * inferior.h (struct inferior) <terminal>: Change type to
863 gdb::unique_xmalloc_ptr<char>.
864 * inferior.c (inferior::~inferior): Don't free inf->terminal.
865 * infcmd.c (set_inferior_io_terminal): Don't free terminal
866 field, adjust to unique pointer.
867 (get_inferior_io_terminal): Adjust to unique pointer.
868
6d74da72
AB
8692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
870
871 * riscv-tdep.c (riscv_print_registers_info): Loop over all
872 registers, not just the known core set of registers.
873
2e52d038
AB
8742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
877 fflags, frm, and fcsr registers.
878 (riscv_register_reggroup_p): Remove unknown CSRs from save and
879 restore groups.
880 (riscv_tdesc_unknown_reg): New function.
881 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
882 tdesc_use_registers.
883 * riscv-tdep.h (struct gdbarch_tdep): Add
884 unknown_csrs_first_regnum, unknown_csrs_count,
885 duplicate_fflags_regnum, duplicate_frm_regnum, and
886 duplicate_fcsr_regnum fields.
887
be64fd07
AB
8882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * target-descriptions.c (tdesc_use_registers): Add new parameter a
891 callback, use the callback (when not null) to help number unknown
892 registers.
893 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
894 (tdesc_use_registers): Add extra parameter to declaration.
895
3b9fce96
AB
8962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
899 in the file.
900 (class riscv_pending_register_alias): Likewise.
901 (riscv_register_feature::register_info): Change 'required_p' field
902 to 'required', and change its type. Add 'check' member function.
903 (riscv_register_feature::register_info::check): Define new member
904 function.
905 (riscv_xreg_feature): Change initialisation of 'required' field.
906 (riscv_freg_feature): Likewise.
907 (riscv_virtual_feature): Likewise.
908 (riscv_csr_feature): Likewise.
909 (riscv_check_tdesc_feature): Take extra parameter, the csr
910 tdesc_feature, rewrite the function to use the new
911 riscv_register_feature::register_info::check function.
912 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
913
865bad26
AB
9142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * features/Makefile: Remove all references to the deleted files
917 below.
918 * features/riscv/32bit-csr.c: Deleted.
919 * features/riscv/32bit-csr.xml: Deleted.
920 * features/riscv/64bit-csr.c: Deleted.
921 * features/riscv/64bit-csr.xml: Deleted.
922 * features/riscv/rebuild-csr-xml.sh: Deleted.
923
ed69cbc8
AB
9242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
925
926 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
927 whitespace error for declaration of names member variable.
928 (struct riscv_register_feature): Add new prefer_first_name member
929 variable, and fix whitespace error in declaration of registers.
930 (riscv_xreg_feature): Initialize prefer_first_name field.
931 (riscv_freg_feature): Likewise.
932 (riscv_virtual_feature): Likewise.
933 (riscv_csr_feature): Likewise.
934 (riscv_register_name): Expand on comments. Remove register name
935 modifications for CSR and virtual registers.
936
4445e8f5
AB
9372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
938
939 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
940 errors.
941
767a879e
AB
9422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
943
944 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
945 riscv-opc.h.
946 (class riscv_pending_register_alias): New class.
947 (riscv_check_tdesc_feature): Take vector of pending aliases and
948 populate it as appropriate.
949 (riscv_setup_register_aliases): Delete.
950 (riscv_gdbarch_init): Create vector of pending aliases and pass it
951 to riscv_check_tdesc_feature in all cases. Use the vector to
952 create the register aliases.
953
bb6e55f3
RO
9542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
955
956 * sol2-tdep.c (sol2_static_transform_name): Remove.
957 (sol2_init_abi): Don't register it.
958 * gdbarch.sh (static_transform_name): Remove.
959 * gdbarch.c, gdbarch.h: Regenerate.
960
961 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
962 gdbarch_static_transform_name.
963 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
964 * stabsread.c (define_symbol) <'X'>: Remove.
965 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
966 handling.
967 <'V'>: Likewise.
968 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
969 <'S'>: Remove call to gdbarch_static_transform_name.
970
c6d36836
RO
9712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972
973 * procfs.c (procfs_pre_trace): New function.
974 (procfs_target::create_inferior): Pass it to fork_inferior.
975
a7e6196b
RO
9762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
977
978 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
979 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
980 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
981 sol2-tdep.o, sparc-sol2-tdep.o.
982 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
983 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
984 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
985 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
986
d412e696
RO
9872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
988
989 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
990 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
991 Call sol2_init_abi.
992 Remove calls to set_gdbarch_skip_solib_resolver,
993 set_gdbarch_core_pid_to_str.
994 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
995 (i386_sol2_static_transform_name): Remove.
996 (i386_sol2_init_abi): Call sol2_init_abi.
997 Remove calls to set_gdbarch_sofun_address_maybe_missing,
998 set_gdbarch_static_transform_name,
999 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1000 Use sol2_sigtramp_p.
1001 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1002 (sol2_sigtramp_p): New function.
1003 (sol2_static_transform_name): New function.
1004 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1005 (sol2_init_abi): New function.
1006 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1007 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1008 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1009 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1010 (sparc_sol2_static_transform_name): Remove.
1011 (sparc32_sol2_init_abi): Call sol2_init_abi.
1012 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1013 set_gdbarch_static_transform_name,
1014 set_gdbarch_skip_solib_resolver,
1015 set_gdbarch_core_pid_to_str.
1016 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1017 (sparc_sol2_static_transform_name): Remove
1018 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1019 call sol2_sigtramp_p.
1020 (sparc64_sol2_init_abi): Call sol2_init_abi.
1021 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1022 set_gdbarch_static_transform_name,
1023 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1024
a8654e7d
PW
10252020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1026
1027 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1028 * exec.c (validate_exec_file): If from_tty, set both
1029 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1030 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1031 and from_tty, unconditionally ask a confirmation.
1032
caa7fd04
AB
10332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * target-descriptions.c (tdesc_architecture_name): Protect against
1036 NULL pointer dereference.
1037 (maint_print_xml_tdesc_cmd): New function.
1038 (_initialize_target_descriptions): Register new 'maint print
1039 xml-tdesc' command and give it the filename completer.
1040 * NEWS: Mention new 'maint print xml-tdesc' command.
1041
fbf42f4e
AB
10422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * target-descriptions.c (class tdesc_compatible_info): New class.
1045 (struct target_desc): Change type of compatible vector.
1046 (tdesc_compatible_p): Update for change in type of
1047 target_desc::compatible.
1048 (tdesc_compatible_info_list): New function.
1049 (tdesc_compatible_info_arch_name): New function.
1050 (tdesc_add_compatible): Update for change in type of
1051 target_desc::compatible.
1052 (print_c_tdesc::visit_pre): Likewise.
1053
20821f4e
AB
10542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1057 whitespace to underscore.
1058 (maint_print_c_tdesc_cmd): Use fake filename for target
1059 descriptions that came from the target.
1060 (_initialize_target_descriptions): Add filename command completion
1061 for 'maint print c-tdesc'.
1062
1fb5ee62
SM
10632020-06-23 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1066 lines.
1067
fc3ecb3e
SM
10682020-06-23 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1071 lines.
1072 (dwarf2_find_location_expression): Likewise.
1073 (call_site_parameter_matches): Likewise.
1074 (dwarf2_compile_expr_to_ax): Likewise.
1075 (disassemble_dwarf_expression): Likewise.
1076 (loclist_describe_location): Likewise.
1077
236ef034
PA
10782020-06-23 Pedro Alves <palves@redhat.com>
1079
1080 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1081 progspace-and-thread.h. Include scoped-mock-context.h instead.
1082 (register_to_value_test): Use scoped_mock_context.
1083 * regcache.c: Include "scoped-mock-context.h".
1084 (cooked_read_test): Don't error out if a target is already pushed.
1085 Use scoped_mock_context. Adjust.
1086 * scoped-mock-context.h: New file.
1087
39e7ecca
AB
10882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1091 initializer.
1092 (ada_language::is_string_type_p): New member function.
1093 * c-lang.c (c_language_data): Delete la_is_string_type_p
1094 initializer.
1095 (cplus_language_data): Likewise.
1096 (asm_language_data): Likewise.
1097 (minimal_language_data): Likewise.
1098 * d-lang.c (d_language_data): Likewise.
1099 * f-lang.c (f_is_string_type_p): Delete function, implementation
1100 moved to f_language::is_string_type_p.
1101 (f_language_data): Delete la_is_string_type_p initializer.
1102 (f_language::is_string_type_p): New member function,
1103 implementation from f_is_string_type_p.
1104 * go-lang.c (go_is_string_type_p): Delete function, implementation
1105 moved to go_language::is_string_type_p.
1106 (go_language_data): Delete la_is_string_type_p initializer.
1107 (go_language::is_string_type_p): New member function,
1108 implementation from go_is_string_type_p.
1109 * language.c (language_defn::is_string_type_p): Define new member
1110 function.
1111 (default_is_string_type_p): Make static, add comment copied from
1112 header file.
1113 (unknown_language_data): Delete la_is_string_type_p initializer.
1114 (unknown_language::is_string_type_p): New member function.
1115 (auto_language_data): Delete la_is_string_type_p initializer.
1116 (auto_language::is_string_type_p): New member function.
1117 * language.h (language_data): Delete la_is_string_type_p field.
1118 (language_defn::is_string_type_p): Declare new function.
1119 (default_is_string_type_p): Delete desclaration, move comment to
1120 definition.
1121 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1122 moved to m2_language::is_string_type_p.
1123 (m2_language_data): Delete la_is_string_type_p initializer.
1124 (m2_language::is_string_type_p): New member function,
1125 implementation from m2_is_string_type_p.
1126 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1127 initializer.
1128 * opencl-lang.c (opencl_language_data): Likewise.
1129 * p-lang.c (pascal_is_string_type_p): Delete function,
1130 implementation moved to pascal_language::is_string_type_p.
1131 (pascal_language_data): Delete la_is_string_type_p initializer.
1132 (pascal_language::is_string_type_p): New member function,
1133 implementation from pascal_is_string_type_p.
1134 * rust-lang.c (rust_is_string_type_p): Delete function,
1135 implementation moved to rust_language::is_string_type_p.
1136 (rust_language_data): Delete la_is_string_type_p initializer.
1137 (rust_language::is_string_type_p): New member function,
1138 implementation from rust_is_string_type_p.
1139 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1140 is_string_type_p.
1141
4ffc13fb
AB
11422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * ada-lang.c (ada_language_data): Delete la_print_typedef
1145 initializer.
1146 (ada_language::print_typedef): New member function.
1147 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1148 (cplus_language_data): Likewise.
1149 (asm_language_data): Likewise.
1150 (minimal_language_data): Likewise.
1151 * d-lang.c (d_language_data): Likewise.
1152 * f-lang.c (f_language_data): Likewise.
1153 (f_language::print_typedef): New member function.
1154 * go-lang.c (go_language_data): Delete la_print_typedef
1155 initializer.
1156 * language.c (language_defn::print_typedef): Define member
1157 function.
1158 (unknown_language_data): Delete la_print_typedef initializer.
1159 (unknown_language::print_typedef): New member function.
1160 (auto_language_data): Delete la_print_typedef initializer.
1161 (auto_language::print_typedef): New member function.
1162 * language.h (language_data): Delete la_print_typedef field.
1163 (language_defn::print_typedef): Declare new member function.
1164 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1165 (default_print_typedef): Delete declaration.
1166 * m2-lang.c (m2_language_data): Delete la_print_typedef
1167 initializer.
1168 (m2_language::print_typedef): New member function.
1169 * objc-lang.c (objc_language_data): Delete la_print_typedef
1170 initializer.
1171 * opencl-lang.c (opencl_language_data): Likewise.
1172 * p-lang.c (pascal_language_data): Likewise.
1173 (pascal_language::print_typedef): New member function.
1174 * rust-lang.c (rust_print_typedef): Delete function,
1175 implementation moved to rust_language::print_typedef.
1176 (rust_language): Delete la_print_typedef initializer.
1177 (rust_language::print_typedef): New member function,
1178 implementation from rust_print_typedef.
1179 * typeprint.c (default_print_typedef): Delete.
1180
d711ee67
AB
11812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1184 (ada_language::printstr): New member function.
1185 * c-lang.c (c_language_data): Delete la_printstr initializer.
1186 (cplus_language_data): Likewise.
1187 (asm_language_data): Likewise.
1188 (minimal_language_data): Likewise.
1189 * d-lang.c (d_language_data): Likewise.
1190 * f-lang.c (f_printstr): Rename to f_language::printstr.
1191 (f_language_data): Delete la_printstr initializer.
1192 (f_language::printstr): New member function, implementation from
1193 f_printstr.
1194 * go-lang.c (go_language_data): Delete la_printstr initializer.
1195 * language.c (language_defn::printstr): Define new member
1196 function.
1197 (unk_lang_printstr): Delete.
1198 (unknown_language_data): Delete la_printstr initializer.
1199 (unknown_language::printstr): New member function.
1200 (auto_language_data): Delete la_printstr initializer.
1201 (auto_language::printstr): New member function.
1202 * language.h (language_data): Delete la_printstr field.
1203 (language_defn::printstr): Declare new member function.
1204 (LA_PRINT_STRING): Update call to printstr.
1205 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1206 (m2_language_data): Delete la_printstr initializer.
1207 (m2_language::printstr): New member function, implementation from
1208 m2_printstr.
1209 * objc-lang.c (objc_language_data): Delete la_printstr
1210 initializer.
1211 * opencl-lang.c (opencl_language_data): Likewise.
1212 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1213 (pascal_language_data): Delete la_printstr initializer.
1214 (pascal_language::printstr): New member function, implementation
1215 from pascal_printstr.
1216 * p-lang.h (pascal_printstr): Delete declaration.
1217 * rust-lang.c (rust_printstr): Update header comment.
1218 (rust_language_data): Delete la_printstr initializer.
1219 (rust_language::printstr): New member function.
1220
52b50f2c
AB
12212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1224 (ada_language::printchar): New member function.
1225 * c-lang.c (c_language_data): Delete la_printchar initializer.
1226 (cplus_language_data): Likewise.
1227 (asm_language_data): Likewise.
1228 (minimal_language_data): Likewise.
1229 * d-lang.c (d_language_data): Likewise.
1230 * f-lang.c (f_printchar): Rename to f_language::printchar.
1231 (f_language_data): Delete la_printchar initializer.
1232 (f_language::printchar): New member function, implementation from
1233 f_printchar.
1234 * go-lang.c (go_language_data): Delete la_printchar initializer.
1235 * language.c (unk_lang_printchar): Delete.
1236 (language_defn::printchar): Define new member function.
1237 (unknown_language_data): Delete la_printchar initializer.
1238 (unknown_language::printchar): New member function.
1239 (auto_language_data): Delete la_printchar initializer.
1240 (auto_language::printchar): New member function.
1241 * language.h (language_data): Delete la_printchar field.
1242 (language_defn::printchar): Declare new member function.
1243 (LA_PRINT_CHAR): Update call to printchar.
1244 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1245 (m2_language::printchar): New member function.
1246 * objc-lang.c (objc_language_data): Delete la_printchar
1247 initializer.
1248 * opencl-lang.c (opencl_language_data): Likewise.
1249 * p-lang.c (pascal_language_data): Delete la_printchar
1250 initializer.
1251 (pascal_language::printchar): New member function.
1252 * rust-lang.c (rust_printchar): Rename to
1253 rust_language::printchar.
1254 (rust_language_data): Delete la_printchar initializer.
1255 (rust_language::printchar): New member function, implementation
1256 from rust_printchar.
1257
ec8cec5b
AB
12582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1261 (ada_language_data): Delete la_emitchar initializer.
1262 (ada_language::emitchar): New member function, implementation from
1263 emit_char.
1264 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1265 (cplus_language_data): Likewise.
1266 (asm_language_data): Likewise.
1267 (minimal_language_data): Likewise.
1268 * d-lang.c (d_language_data): Likewise.
1269 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1270 (f_language_data): Delete la_emitchar initializer.
1271 (f_language::emitchar): New member function, implementation from
1272 f_emit_char.
1273 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1274 * language.c (unk_lang_emit_char): Delete.
1275 (language_defn::emitchar): New member function definition.
1276 (unknown_language_data): Delete la_emitchar initializer.
1277 (unknown_language::emitchar): New member function.
1278 (auto_language_data): Delete la_emitchar initializer.
1279 (auto_language::emitchar): New member function.
1280 * language.h (language_data): Delete la_emitchar field.
1281 (language_defn::emitchar): New member field declaration.
1282 (LA_EMIT_CHAR): Update call to emitchar.
1283 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1284 (m2_language_data): Delete la_emitchar initializer.
1285 (m2_language::emitchar): New member function, implementation from
1286 m2_emit_char.
1287 * objc-lang.c (objc_language_data): Delete la_emitchar
1288 initializer.
1289 * opencl-lang.c (opencl_language_data): Likewise.
1290 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1291 (pascal_language_data): Delete la_emitchar initializer.
1292 (pascal_language::emitchar): New member function, implementation
1293 from pascal_emit_char.
1294 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1295 (rust_language_data): Delete la_emitchar initializer.
1296 (rust_language::emitchar): New member function, implementation
1297 from rust_emitchar.
1298
1bf9c363
AB
12992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1302 (ada_language_data): Delete la_post_parser initializer.
1303 (ada_language::post_parser): New member function.
1304 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1305 (cplus_language_data): Likewise.
1306 (asm_language_data): Likewise.
1307 (minimal_language_data): Likewise.
1308 * d-lang.c (d_language_data): Likewise.
1309 * f-lang.c (f_language_data): Likewise.
1310 * go-lang.c (go_language_data): Likewise.
1311 * language.c (unknown_language_data): Likewise.
1312 (auto_language_data): Likewise.
1313 * language.h (language_data): Delete la_post_parser field.
1314 (language_defn::post_parser): New member function.
1315 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1316 * objc-lang.c (objc_language_data): Likewise.
1317 * opencl-lang.c (opencl_language_data): Likewise.
1318 * p-lang.c (pascal_language_data): Likewise.
1319 * parse.c (parse_exp_in_context): Update call to post_parser.
1320 (null_post_parser): Delete definition.
1321 * parser-defs.h (null_post_parser): Delete declaration.
1322 * rust-lang.c (rust_language_data): Delete la_post_parser
1323 initializer.
1324
87afa652
AB
13252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * ada-lang.c (parse): Rename to ada_language::parser.
1328 (ada_language_data): Delete la_parser initializer.
1329 (ada_language::parser): New member function, implementation from
1330 parse.
1331 * c-lang.c (c_language_data): Delete la_parser initializer.
1332 (cplus_language_data): Likewise.
1333 (asm_language_data): Likewise.
1334 (minimal_language_data): Likewise.
1335 * d-lang.c (d_language_data): Likewise.
1336 (d_language::parser): New member function.
1337 * f-lang.c (f_language_data): Delete la_parser initializer.
1338 (f_language::parser): New member function.
1339 * go-lang.c (go_language_data): Delete la_parser initializer.
1340 (go_language::parser): New member function.
1341 * language.c (unk_lang_parser): Delete.
1342 (language_defn::parser): Define new member function.
1343 (unknown_language_data): Delete la_parser initializer.
1344 (unknown_language::parser): New member function.
1345 (auto_language_data): Delete la_parser initializer.
1346 (auto_language::parser): New member function.
1347 * language.h (language_data): Delete la_parser field.
1348 (language_defn::parser): Declare new member function.
1349 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1350 (m2_language::parser): New member function.
1351 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1352 * opencl-lang.c (opencl_language_data): Likewise.
1353 * p-lang.c (pascal_language_data): Likewise.
1354 (pascal_language::parser): New member function.
1355 * parse.c (parse_exp_in_context): Update call to parser.
1356 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1357 (rust_language::parser): New member function.
1358
37825800
AB
13592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * top.c (print_gdb_configuration): Print --with-python-libdir
1362 configuration value.
1363
5b860c93
PW
13642020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1365
1366 * NEWS: Mention change to the alias command.
1367
cf00cd6f
PW
13682020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1369
1370 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1371 (alias_command_completer)
1372 (make_alias_options_def_group): New functions.
1373 (alias_opts, alias_option_defs): New struct and array.
1374 (alias_usage_error): Update usage.
1375 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1376 Use option framework.
1377 (_initialize_cli_cmds): Update alias command help.
1378 Update aliases command help.
1379 (show_user):
1380 Add NULL for new default_args lookup_cmd argument.
1381 (valid_command_p): Rename to validate_aliased_command.
1382 Add NULL for new default_args lookup_cmd argument. Verify that the
1383 aliased_command has no default args.
1384 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1385 (lookup_cmd_1, lookup_cmd): New argument default_args.
1386 (add_alias_cmd):
1387 Add NULL for new default_args lookup_cmd argument.
1388 (print_help_for_command): Show default args under the layout
1389 alias some_alias = some_aliased_cmd some_alias_default_arg.
1390 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1391 xfree default_args in destructor.
1392 * cli/cli-script.c (process_next_line, do_define_command):
1393 Add NULL for new default_args lookup_cmd argument.
1394 * command.h: Declare new default_args argument in lookup_cmd
1395 and lookup_cmd_1.
1396 * completer.c (complete_line_internal_1):
1397 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1398 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1399 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1400 Likewise.
1401 * infcmd.c (_initialize_infcmd): Likewise.
1402 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1403 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1404 * python/py-param.c (add_setshow_generic): Likewise.
1405 * remote.c (_initialize_remote): Likewise.
1406 * top.c (execute_command): Prepend default_args if command has some.
1407 (set_verbose):
1408 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1409 * tracepoint.c (validate_actionline, encode_actions_1):
1410 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1411
bd920864
TBA
14122020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1413
1414 * jit.c (jit_read_descriptor): Use bool as the return type.
1415 (jit_breakpoint_re_set_internal): Use bool as the return type.
1416 Invert the return value logic; return true if the jit breakpoint
1417 has been successfully initialized.
1418 (jit_inferior_init): Update the call to
1419 jit_breakpoint_re_set_internal.
1420
f8098322
PA
14212020-06-22 Pedro Alves <palves@redhat.com>
1422
1423 PR gdb/25939
1424 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1425 Use the current inferior instead. Don't return
1426 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1427 wait again.
1428 * sol-thread.c (sol_thread_target::wait): Don't reference
1429 inferior_ptid.
1430 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1431 (sol_update_thread_list_callback): Use the current inferior's pid
1432 instead of inferior_ptid.
1433
196535a6
RO
14342020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1435
1436 * procfs.c: Cleanup many comments.
1437
1438 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1439 (AFTER_WATCHFLAG): Replace by value.
1440
1441 (MAIN_PROC_NAME_FORMAT): Inline ...
1442 (create_procinfo): ... here.
1443
1444 (procfs_debug_inferior): Remove SYS_exec handling.
1445 (syscall_is_exec): Likewise.
1446 (procfs_set_exec_trap): Likewise.
1447
1448 (syscall_is_lwp_exit): Inline in callers.
1449 (syscall_is_exit): Likewise.
1450 (syscall_is_exec): Likewise.
1451 (syscall_is_lwp_create): Likewise.
1452
1453 (invalidate_cache): Remove #if 0 code.
1454
1455 (make_signal_thread_runnable): Remove.
1456 (procfs_target::resume): Remove #if 0 code.
1457
cf6f3e86
RO
14582020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1459
1460 PR gdb/25939
1461 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1462 call ...
1463 (procfs_target::create_inferior): ... here.
1464
48e9cc84
PW
14652020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1466
1467 * exec.c (validate_exec_file): Ensure the build-id is up to
1468 date by calling reopen_exec_file (that checks file timestamp
1469 to decide to re-read the file).
1470
3922b302
PA
14712020-06-18 Pedro Alves <palves@redhat.com>
1472
1473 PR gdb/25412
1474 * gdbthread.h (delete_thread, delete_thread_silent)
1475 (find_thread_ptid): Update comments.
1476 * thread.c (current_thread_): New global.
1477 (is_current_thread): Move higher, and reimplement.
1478 (inferior_thread): Reimplement.
1479 (set_thread_exited): Use bool. Add assertions.
1480 (add_thread_silent): Simplify thread-reuse handling by always
1481 calling delete_thread.
1482 (delete_thread): Remove intro comment.
1483 (find_thread_ptid): Skip exited threads.
1484 (switch_to_thread_no_regs): Write to current_thread_.
1485 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1486 INFERIOR_PTID. Clear current_thread_.
1487
6dbdab44
PA
14882020-06-18 Pedro Alves <palves@redhat.com>
1489
1490 * aix-thread.c (pd_update): Use switch_to_thread.
1491
2da4b788
PA
14922020-06-18 Pedro Alves <palves@redhat.com>
1493
1494 * ravenscar-thread.c (ravenscar_thread_target): Update.
1495 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1496 (ravenscar_thread_target::add_active_thread): ... this. Don't
1497 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1498 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1499
50838d1b
PA
15002020-06-18 Pedro Alves <palves@redhat.com>
1501
1502 * nat/windows-nat.c (current_windows_thread): Remove.
1503 * nat/windows-nat.h (current_windows_thread): Remove.
1504 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1505 Adjust.
1506 (display_selectors): Adjust to fetch the current
1507 windows_thread_info based on inferior_ptid.
1508 (fake_create_process): No longer write to current_windows_thread.
1509 (windows_nat_target::get_windows_debug_event):
1510 Don't set inferior_ptid or current_windows_thread.
1511 (windows_nat_target::wait): Adjust to not rely on
1512 current_windows_thread.
1513 (do_initial_windows_stuff): Now a method of windows_nat_target.
1514 Switch to the last_ptid thread.
1515 (windows_nat_target::attach): Adjust.
1516 (windows_nat_target::detach): Use switch_to_no_thread instead of
1517 writing to inferior_ptid directly.
1518 (windows_nat_target::create_inferior): Adjust.
1519
31ce04e9
PA
15202020-06-18 Pedro Alves <palves@redhat.com>
1521
1522 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1523
1ee1a363
PA
15242020-06-18 Pedro Alves <palves@redhat.com>
1525
1526 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1527 after creating it, instead of writing to inferior_ptid. Don't
1528 write to inferior_ptid.
1529
6d350754
PA
15302020-06-18 Pedro Alves <palves@redhat.com>
1531
1532 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1533
5d971d48
PA
15342020-06-18 Pedro Alves <palves@redhat.com>
1535
1536 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1537 it, instead of writing to inferior_ptid.
1538
86e57d1b
PA
15392020-06-18 Pedro Alves <palves@redhat.com>
1540
1541 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1542 to inferior_ptid.
1543
f2e1c129
PA
15442020-06-18 Pedro Alves <palves@redhat.com>
1545
1546 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1547 instead of writing to inferior_ptid directly.
1548
60db1b85
PA
15492020-06-18 Pedro Alves <palves@redhat.com>
1550
1551 * corelow.c (core_target::close): Use switch_to_no_thread instead
1552 of writing to inferior_ptid directly.
1553 (add_to_thread_list, core_target_open): Use switch_to_thread
1554 instead of writing to inferior_ptid directly.
1555
fe7d6a8d
PA
15562020-06-18 Pedro Alves <palves@redhat.com>
1557
1558 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1559 inferior_ptid.
1560 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1561 inferior_ptid.
1562 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1563 inferior_ptid directly.
1564 (darwin_nat_target::init_thread_list): Switch to thread, instead
1565 of writing to inferior_ptid.
1566 (darwin_nat_target::attach): Don't write to inferior_ptid.
1567 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1568
975f8708
PA
15692020-06-18 Pedro Alves <palves@redhat.com>
1570
1571 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1572 thread.
1573 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1574 Instead use switch_to_thread.
1575 (gnu_nat_target::detach): Use switch_to_no_thread
1576 instead of writing to inferior_ptid directly. Used passed-in
1577 inferior instead of looking up the inferior by pid.
1578
1a204730
PA
15792020-06-18 Pedro Alves <palves@redhat.com>
1580
1581 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1582 inferior_ptid.
1583
ebe84f23
PA
15842020-06-18 Pedro Alves <palves@redhat.com>
1585
1586 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1587 inferior_ptid.
1588 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1589 thread.
1590 (nto_procfs_target::detach): Avoid referencing
1591 inferior_ptid. Use switch_to_no_thread instead of writing to
1592 inferior_ptid directly.
1593 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1594 instead of writing to inferior_ptid directly.
1595 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1596 to thread.
1597
191f02e5
PA
15982020-06-18 Pedro Alves <palves@redhat.com>
1599
1600 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1601 after creating it, instead of writing to inferior_ptid.
1602 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1603 to inferior_ptid directly.
1604 (gdbsim_target::wait): Don't write to inferior_ptid.
1605
0ac55310
PA
16062020-06-18 Pedro Alves <palves@redhat.com>
1607
1608 * remote.c (remote_target::remote_notice_new_inferior): Use
1609 switch_to_thread instead of writing to inferior_ptid directly.
1610 (remote_target::add_current_inferior_and_thread): Use
1611 switch_to_no_thread instead of writing to inferior_ptid directly.
1612 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1613 and switch_to_thread instead of using set_current_inferior or
1614 writing to inferior_ptid directly.
1615
5233f39b
PA
16162020-06-18 Pedro Alves <palves@redhat.com>
1617
1618 * tracectf.c (ctf_target_open): Switch to added thread instead of
1619 writing to inferior_ptid directly.
1620 (ctf_target::close): Use switch_to_no_thread instead of writing to
1621 inferior_ptid directly.
1622
087e161b
PA
16232020-06-18 Pedro Alves <palves@redhat.com>
1624
1625 * tracefile-tfile.c (tfile_target_open): Don't write to
1626 inferior_ptid directly, instead switch to added thread.
1627 (tfile_target::close): Use switch_to_no_thread instead of writing
1628 to inferior_ptid directly.
1629
7fb43e53
PA
16302020-06-18 Pedro Alves <palves@redhat.com>
1631
1632 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1633 (procfs_target::detach): Use switch_to_no_thread
1634 instead of writing to inferior_ptid directly.
1635 (do_attach): Change return type to void. Switch to the added
1636 thread.
1637 (procfs_target::create_inferior): Switch to the added thread.
1638 (procfs_do_thread_registers): Don't write to inferior_ptid.
1639
18493a00
PA
16402020-06-18 Pedro Alves <palves@redhat.com>
1641
1642 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1643 of writing to inferior_ptid.
1644 (scoped_restore_exited_inferior): Delete.
1645 (handle_vfork_child_exec_or_exit): Simplify using
1646 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1647 instead of writing to inferior_ptid.
1648 (THREAD_STOPPED_BY): Delete.
1649 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1650 (thread_stopped_by_hw_breakpoint): Delete.
1651 (save_waitstatus): Use
1652 scoped_restore_current_thread+switch_to_thread, and call
1653 target_stopped_by_watchpoint instead of
1654 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1655 instead of thread_stopped_by_sw_breakpoint, and
1656 target_stopped_by_hw_breakpoint instead of
1657 thread_stopped_by_hw_breakpoint.
1658 (handle_inferior_event)
1659 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1660 inferior_ptid directly, nor
1661 set_current_inferior/set_current_program_space. Use
1662 switch_to_thread / switch_to_inferior_no_thread instead.
1663
a0776b13
PA
16642020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1667 instead of writing to inferior_ptid.
1668
6155c136
PA
16692020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1672 added thread.
1673 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1674 to the added thread.
1675 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1676 instead of writing to inferior_ptid.
1677
c5316fc6
PA
16782020-06-18 Pedro Alves <palves@redhat.com>
1679
1680 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1681 (register_to_value_test): Mock a program_space too. Heap-allocate
1682 the address space. Don't write to inferior_ptid. Use
1683 switch_to_thread instead.
1684
8df01799
PA
16852020-06-18 Pedro Alves <palves@redhat.com>
1686
1687 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1688 Delete.
1689 (find_signalled_thread()): New, factored out from
1690 linux_make_corefile_notes and adjusted to handle exited threads.
1691 (linux_make_corefile_notes): Adjust to use the new
1692 find_signalled_thread.
1693
41792d68
PA
16942020-06-18 Pedro Alves <palves@redhat.com>
1695
1696 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1697 of saving/restoring inferior_ptid.
1698
612f258a
TT
16992020-06-17 Tom Tromey <tom@tromey.com>
1700
1701 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1702 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1703 declare.
1704 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1705
efb763a5
SM
17062020-06-15 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1709 of partial symtabs.
1710
2951f6c0
SM
17112020-06-17 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * regformats/reg-arm.dat: Remove.
1714 * regformats/reg-bfin.dat: Remove.
1715 * regformats/reg-cris.dat: Remove.
1716 * regformats/reg-crisv32.dat: Remove.
1717 * regformats/reg-m32r.dat: Remove.
1718 * regformats/reg-tilegx.dat: Remove.
1719 * regformats/reg-tilegx32.dat: Remove.
1720
7d458ea5
SM
17212020-06-17 Simon Marchi <simon.marchi@efficios.com>
1722
1723 * features/Makefile (WHICH): Remove arm files.
1724 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1725 * regformats/arm/arm-with-neon.dat: Remove.
1726 * regformats/arm/arm-with-vfpv2.dat: Remove.
1727 * regformats/arm/arm-with-vfpv3.dat: Remove.
1728
3af96c0d
SM
17292020-06-17 Simon Marchi <simon.marchi@efficios.com>
1730
1731 * features/Makefile (XMLTOC): Remove rx.xml.
1732
b25e22fd
PA
17332020-06-17 Pedro Alves <palves@redhat.com>
1734
1735 * gdbthread.h (thread_control_state) <trap_expected> Update
1736 comments.
1737
a78a19b1
AB
17382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1741 ada_language::lookup_symbol_nonlocal.
1742 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1743 (ada_language::lookup_symbol_nonlocal): New member function,
1744 implementation from ada_lookup_symbol_nonlocal.
1745 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1746 initializer.
1747 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1748 initializer.
1749 (cplus_language::lookup_symbol_nonlocal): New member function.
1750 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1751 (minimal_language_data) Likewise.
1752 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1753 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1754 initializer.
1755 (d_language::lookup_symbol_nonlocal): New member function.
1756 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1757 initializer.
1758 (f_language::lookup_symbol_nonlocal): New member function.
1759 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1760 initializer.
1761 * language.c (unknown_language_data): Likewise.
1762 (auto_language_data): Likewise.
1763 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1764 field.
1765 (language_defn::lookup_symbol_nonlocal): New member function.
1766 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1767 initializer.
1768 * objc-lang.c (objc_language_data): Likewise.
1769 * opencl-lang.c (opencl_language_data): Likewise.
1770 * p-lang.c (pascal_language_data): Likewise.
1771 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1772 rust_language::lookup_symbol_nonlocal.
1773 (rust_language_data): Delete la_lookup_symbol_nonlocal
1774 initializer.
1775 (rust_language::lookup_symbol_nonlocal): New member function,
1776 implementation from rust_lookup_symbol_nonlocal.
1777 * symtab.c (lookup_symbol_aux): Update call to
1778 lookup_symbol_nonlocal.
1779 (basic_lookup_symbol_nonlocal): Rename to...
1780 (language_defn::lookup_symbol_nonlocal): ...this, and update
1781 header comment. Remove language_defn parameter, and replace with
1782 uses of `this'.
1783 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1784
ebe2334e
AB
17852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1788 initializer.
1789 (ada_language::value_print_inner): New member function.
1790 * c-lang.c (c_language_data): Delete la_value_print_inner
1791 initializer.
1792 (cplus_language_data): Likewise.
1793 (asm_language_data): Likewise.
1794 (minimal_language_data): Likewise.
1795 * d-lang.c (d_language_data): Likewise.
1796 (d_language::value_print_inner): New member function.
1797 * f-lang.c (f_language_data): Delete la_value_print_inner
1798 initializer.
1799 (f_language::value_print_inner): New member function.
1800 * f-lang.h (f_value_print_innner): Rename to...
1801 (f_value_print_inner): ...this (note spelling of 'inner').
1802 * f-valprint.c (f_value_print_innner): Rename to...
1803 (f_value_print_inner): ...this (note spelling of 'inner').
1804 * go-lang.c (go_language_data): Delete la_value_print_inner
1805 initializer.
1806 (go_language::value_print_inner): New member function.
1807 * language.c (language_defn::value_print_inner): Define new member
1808 function.
1809 (unk_lang_value_print_inner): Delete.
1810 (unknown_language_data): Delete la_value_print_inner initializer.
1811 (unknown_language::value_print_inner): New member function.
1812 (auto_language_data): Delete la_value_print_inner initializer.
1813 (auto_language::value_print_inner): New member function.
1814 * language.h (language_data): Delete la_value_print_inner field.
1815 (language_defn::value_print_inner): Delcare new member function.
1816 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1817 initializer.
1818 (m2_language::value_print_inner): New member function.
1819 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1820 initializer.
1821 * opencl-lang.c (opencl_language_data): Likewise.
1822 * p-lang.c (pascal_language_data): Likewise.
1823 (pascal_language::value_print_inner): New member function.
1824 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1825 initializer.
1826 (rust_language::value_print_inner): New member function.
1827 * valprint.c (do_val_print): Update call to value_print_inner.
1828
a1d1fa3e
AB
18292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * ada-lang.c (ada_language_data): Delete la_value_print
1832 initializer.
1833 (ada_language::value_print): New member function.
1834 * c-lang.c (c_language_data): Delete la_value_print initializer.
1835 (cplus_language_data): Likewise.
1836 (asm_language_data): Likewise.
1837 (minimal_language_data): Likewise.
1838 * d-lang.c (d_language_data): Likewise.
1839 * f-lang.c (f_language_data): Likewise.
1840 * go-lang.c (go_language_data): Likewise.
1841 * language.c (unk_lang_value_print): Delete.
1842 (language_defn::value_print): Define new member function.
1843 (unknown_language_data): Delete la_value_print initializer.
1844 (unknown_language::value_print): New member function.
1845 (auto_language_data): Delete la_value_print initializer.
1846 (auto_language::value_print): New member function.
1847 * language.h (language_data): Delete la_value_print field.
1848 (language_defn::value_print): Declare new member function.
1849 (LA_VALUE_PRINT): Update call to value_print.
1850 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1851 * objc-lang.c (objc_language_data): Likewise.
1852 * opencl-lang.c (opencl_language_data): Likewise.
1853 * p-lang.c (pascal_language_data): Likewise.
1854 (pascal_language::value_print): New member function.
1855 * rust-lang.c (rust_language_data): Delete la_value_print
1856 initializer.
1857
f16a9f57
AB
18582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * ada-lang.c (ada_watch_location_expression): Rename to
1861 ada_language::watch_location_expression.
1862 (ada_language_data): Delete la_watch_location_expression
1863 initializer.
1864 (ada_language::watch_location_expression): New member function,
1865 implementation from ada_watch_location_expression.
1866 * breakpoint.c (watch_command_1): Update call to
1867 watch_location_expression.
1868 * c-lang.c (c_watch_location_expression): Rename to
1869 language_defn::watch_location_expression.
1870 (c_language_data): Delete la_watch_location_expression
1871 initializer.
1872 (cplus_language_data): Likewise.
1873 (asm_language_data): Likewise.
1874 (minimal_language_data): Likewise.
1875 * c-lang.h (c_watch_location_expression): Delete declaration.
1876 * d-lang.c (d_language_data): Delete la_watch_location_expression
1877 initializer.
1878 * f-lang.c (f_language_data): Likewise.
1879 * go-lang.c (go_language_data): Likewise.
1880 * language.c (language_defn::watch_location_expression): Member
1881 function implementation from c_watch_location_expression.
1882 (unknown_language_data): Delete la_watch_location_expression
1883 initializer.
1884 (auto_language_data): Likewise.
1885 * language.h (language_data): Delete la_watch_location_expression
1886 field.
1887 (language_defn::watch_location_expression): Declare new member
1888 function.
1889 * m2-lang.c (m2_language_data): Delete
1890 la_watch_location_expression initializer.
1891 * objc-lang.c (objc_language_data): Likewise.
1892 * opencl-lang.c (opencl_language_data): Likewise.
1893 * p-lang.c (pascal_language_data): Likewise.
1894 * rust-lang.c (rust_watch_location_expression): Rename to
1895 rust_language::watch_location_expression.
1896 (rust_language_data): Delete la_watch_location_expression
1897 initializer.
1898 (rust_language::watch_location_expression): New member function,
1899 implementation from rust_watch_location_expression.
1900
7e56227d
AB
19012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1904 ada_language::collect_symbol_completion_matches.
1905 (ada_language_data): Delete la_collect_symbol_completion_matches
1906 initializer.
1907 (ada_language::collect_symbol_completion_matches): New member
1908 function, implementation from
1909 ada_collect_symbol_completion_matches.
1910 * c-lang.c (c_language_data): Delete
1911 la_collect_symbol_completion_matches initializer.
1912 (cplus_language_data): Likewise.
1913 (asm_language_data): Likewise.
1914 (minimal_language_data): Likewise.
1915 * d-lang.c (d_language_data): Likewise.
1916 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1917 f_language::collect_symbol_completion_matches.
1918 (f_language_data): Delete la_collect_symbol_completion_matches
1919 initializer.
1920 (f_language::collect_symbol_completion_matches) New member
1921 function, implementation from f_collect_symbol_completion_matches.
1922 * go-lang.c (go_language_data): Delete
1923 la_collect_symbol_completion_matches initializer.
1924 * language.c (unknown_language_data): Likewise.
1925 (auto_language_data): Likewise.
1926 * language.h (language_data): Delete
1927 la_collect_symbol_completion_matches field.
1928 (language_defn::collect_symbol_completion_matches): New member
1929 function.
1930 * m2-lang.c (m2_language_data): Delete
1931 la_collect_symbol_completion_matches initializer.
1932 * objc-lang.c (objc_language_data): Likewise.
1933 * opencl-lang.c (opencl_language_data): Likewise.
1934 * p-lang.c (pascal_language_data): Likewise.
1935 * rust-lang.c (rust_language_data): Likewise.
1936 * symtab.c (default_collect_symbol_completion_matches): Delete.
1937 (collect_symbol_completion_matches): Update call to
1938 collect_symbol_completion_matches.
1939 (collect_symbol_completion_matches_type): Likewise.
1940 * symtab.h (default_collect_symbol_completion_matches): Delete
1941 declaration.
1942
53fc67f8
AB
19432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1946 (ada_language_data): Delete la_word_break_characters initializer.
1947 (ada_language::word_break_characters): New member function.
1948 * c-lang.c (c_language_data): Delete la_word_break_characters
1949 initializer.
1950 (cplus_language_data): Likewise.
1951 (asm_language_data): Likewise.
1952 (minimal_language_data): Likewise.
1953 * completer.c: Update global comment.
1954 (advance_to_expression_complete_word_point): Update call to
1955 word_break_characters.
1956 (complete_files_symbols): Likewise.
1957 (complete_line_internal_1): Likewise.
1958 (default_completer_handle_brkchars): Likewise.
1959 (skip_quoted_chars): Likewise.
1960 * d-lang.c (d_language_data): Delete la_word_break_characters
1961 initializer.
1962 * f-lang.c (f_word_break_characters): Delete.
1963 (f_language_data): Delete la_word_break_characters initializer.
1964 (f_language::word_break_characters): New member function.
1965 * go-lang.c (go_language_data): Delete la_word_break_characters
1966 initializer.
1967 * language.c (unknown_language_data): Likewise.
1968 (auto_language_data): Likewise.
1969 * language.h (default_word_break_characters): Move declaration to
1970 earlier in the file.
1971 (language_data): Delete la_word_break_characters field.
1972 (language_defn::word_break_characters): New member function.
1973 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1974 initializer.
1975 * objc-lang.c (objc_language_data): Likewise.
1976 * opencl-lang.c (opencl_language_data): Likewise.
1977 * p-lang.c (pascal_language_data): Likewise.
1978 * rust-lang.c (rust_language_data): Likewise.
1979
c9debfb9
AB
19802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1983 (ada_language_data): Delete la_get_symbol_name_matcher
1984 initializer.
1985 (language_defn::get_symbol_name_matcher_inner): New member
1986 function.
1987 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1988 initializer.
1989 (cplus_language_data): Likewise.
1990 (cplus_language::get_symbol_name_matcher_inner): New member
1991 function.
1992 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1993 (minimal_language_data): Likewise.
1994 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1995 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1996 initializer.
1997 * dictionary.c (iter_match_first_hashed): Update call to
1998 get_symbol_name_matcher.
1999 (iter_match_next_hashed): Likewise.
2000 (iter_match_next_linear): Likewise.
2001 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2002 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2003 initializer.
2004 (f_language::get_symbol_name_matcher_inner): New member function.
2005 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2006 initializer.
2007 * language.c (default_symbol_name_matcher): Update header comment,
2008 make static.
2009 (language_defn::get_symbol_name_matcher): New definition.
2010 (language_defn::get_symbol_name_matcher_inner): Likewise.
2011 (get_symbol_name_matcher): Delete.
2012 (unknown_language_data): Delete la_get_symbol_name_matcher
2013 initializer.
2014 (auto_language_data): Likewise.
2015 * language.h (language_data): Delete la_get_symbol_name_matcher
2016 field.
2017 (language_defn::get_symbol_name_matcher): New member function.
2018 (language_defn::get_symbol_name_matcher_inner): Likewise.
2019 (default_symbol_name_matcher): Delete declaration.
2020 * linespec.c (find_methods): Update call to
2021 get_symbol_name_matcher.
2022 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2023 initializer.
2024 * minsyms.c (lookup_minimal_symbol): Update call to
2025 get_symbol_name_matcher.
2026 (iterate_over_minimal_symbols): Likewise.
2027 * objc-lang.c (objc_language_data): Delete
2028 la_get_symbol_name_matcher initializer.
2029 * opencl-lang.c (opencl_language_data): Likewise.
2030 * p-lang.c (pascal_language_data): Likewise.
2031 * psymtab.c (psymbol_name_matches): Update call to
2032 get_symbol_name_matcher.
2033 * rust-lang.c (rust_language_data): Delete
2034 la_get_symbol_name_matcher initializer.
2035 * symtab.c (symbol_matches_search_name): Update call to
2036 get_symbol_name_matcher.
2037 (compare_symbol_name): Likewise.
2038
9a49ad8c
AB
20392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * ada-lang.c (ada_language_data): Delete la_compute_program
2042 initializer.
2043 * c-lang.c (c_language_data): Likewise.
2044 (c_language::compute_program): New member function.
2045 (cplus_language_data): Delete la_compute_program initializer.
2046 (cplus_language::compute_program): New member function.
2047 (asm_language_data): Delete la_compute_program initializer.
2048 (minimal_language_data): Likewise.
2049 * c-lang.h (c_compute_program): Update comment.
2050 (cplus_compute_program): Likewise.
2051 * compile/compile-c-support.c (c_compute_program): Likewise.
2052 (cplus_compute_program): Likewise.
2053 * compile/compile.c (compile_to_object): Update call to
2054 la_compute_program.
2055 * d-lang.c (d_language_data): Delete la_compute_program
2056 initializer.
2057 * f-lang.c (f_language_data): Likewise.
2058 * go-lang.c (go_language_data): Likewise.
2059 * language.c (unknown_language_data): Likewise.
2060 (auto_language_data): Likewise.
2061 * language.h (language_data): Delete la_compute_program field.
2062 (language_defn::compute_program): New member function.
2063 * m2-lang.c (m2_language_data): Delete la_compute_program
2064 initializer.
2065 * objc-lang.c (objc_language_data): Likewise.
2066 * opencl-lang.c (opencl_language_data): Likewise.
2067 * p-lang.c (pascal_language_data): Likewise.
2068 * rust-lang.c (rust_language_data): Likewise.
2069
eff93b4d
AB
20702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * ada-lang.c (ada_language_data) Delete
2073 la_class_name_from_physname initializer.
2074 * c-lang.c (c_language_data): Likewise.
2075 (cplus_language_data): Likewise.
2076 (cplus_language::class_name_from_physname): New member function.
2077 (asm_language_data): Delete la_class_name_from_physname
2078 initializer.
2079 (minimal_language_data): Likewise.
2080 * d-lang.c (d_language_data): Likewise.
2081 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2082 method on language_defn class.
2083 (guess_full_die_structure_name): Likewise.
2084 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2085 initializer.
2086 * go-lang.c (go_language_data): Likewise.
2087 * language.c (language_class_name_from_physname): Delete.
2088 (unk_lang_class_name): Delete.
2089 (unknown_language_data): Delete la_class_name_from_physname
2090 initializer.
2091 (auto_language_data): Likewise.
2092 * language.h (language_data): Delete la_class_name_from_physname
2093 field.
2094 (language_defn::class_name_from_physname): New function.
2095 (language_class_name_from_physname): Delete declaration.
2096 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2097 initializer.
2098 * objc-lang.c (objc_language_data): Likewise.
2099 * opencl-lang.c (opencl_language_data): Likewise.
2100 * p-lang.c (pascal_language_data): Likewise.
2101 * rust-lang.c (rust_language_data): Likewise.
2102
de543742
TT
21032020-06-16 Tom Tromey <tom@tromey.com>
2104
2105 * tui/tui-data.h (STATUS_NAME): New macro.
2106 * tui/tui-layout.c (tui_remove_some_windows)
2107 (initialize_known_windows, tui_register_window)
2108 (tui_layout_split::remove_windows, initialize_layouts)
2109 (tui_new_layout_command): Don't use hard-coded window names.
2110
a350efd4
TT
21112020-06-16 Tom Tromey <tom@tromey.com>
2112
2113 PR tui/25348:
2114 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2115 tui_initialize_readline. Only run once. Call rl_initialize.
2116 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2117 tui_initialize_readline.
2118 * tui/tui-io.c (tui_setup_io): Call
2119 tui_ensure_readline_initialized.
2120 * tui/tui-interp.c (tui_interp::init): Update.
2121
39ec0490
TT
21222020-06-16 Tom Tromey <tom@tromey.com>
2123
2124 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2125 Also preserve the status window.
2126
d2d1ea20
TT
21272020-06-16 Tom Tromey <tom@tromey.com>
2128
2129 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2130 where m_window==nullptr.
2131
66920317
TT
21322020-06-15 Tom Tromey <tromey@adacore.com>
2133
2134 * windows-nat.c (windows_nat::handle_output_debug_string):
2135 Update.
2136 (windows_nat::handle_ms_vc_exception): Update.
2137 * target.h (target_read_string): Change API.
2138 * target.c (target_read_string): Change API.
2139 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2140 Update.
2141 * solib-frv.c (frv_current_sos): Update.
2142 * solib-dsbt.c (dsbt_current_sos): Update.
2143 * solib-darwin.c (darwin_current_sos): Update.
2144 * linux-thread-db.c (inferior_has_bug): Update.
2145 * expprint.c (print_subexp_standard): Update.
2146 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2147 (ada_exception_message_1): Update.
2148
a5d871dd
TT
21492020-06-15 Tom Tromey <tromey@adacore.com>
2150
2151 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2152
670e35fa
TT
21532020-06-15 Tom Tromey <tromey@adacore.com>
2154
2155 * valprint.c (read_string): Update comment.
2156 * target.c (MIN): Remove.
2157 (target_read_string): Rewrite.
2158
f5272a3b
TT
21592020-06-15 Tom Tromey <tromey@adacore.com>
2160
2161 * corefile.c (read_memory_string): Remove.
2162 * ada-valprint.c (ada_value_print_ptr): Update.
2163 * ada-lang.h (ada_tag_name): Change return type.
2164 * ada-lang.c (type_from_tag): Update.
2165 (ada_tag_name_from_tsd): Change return type. Use
2166 target_read_string.
2167 (ada_tag_name): Likewise.
2168 * gdbcore.h (read_memory_string): Don't declare.
2169
2c074f49
HD
21702020-06-14 Hannes Domani <ssbssa@yahoo.de>
2171
2172 * symtab.c (rbreak_command): Ignore Windows drive colon.
2173
6a17d503
SM
21742020-06-12 Simon Marchi <simon.marchi@efficios.com>
2175
2176 * NEWS: Mention removed GDBserver host support.
2177
453c733f
NC
21782020-06-12 Nelson Chu <nelson.chu@sifive.com>
2179
2180 * features/riscv/rebuild-csr-xml.sh: Updated.
2181
2b4e6a3f
TT
21822020-06-11 Tom Tromey <tom@tromey.com>
2183
2184 PR gdb/18318:
2185 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2186
4412332f
JG
21872020-06-09 Jonny Grant <jg@jguk.org>
21882020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * main.c (captured_main_1): Don't print new line after help.
2191 (print_gdb_help): add mailing list and IRC channel information
2192 to --help. Add new lines between items in the footer. Remove
2193 quotes around bug url.
2194
2f33032a
KS
21952020-06-11 Keith Seitz <keiths@redhat.com>
2196
2197 PR gdb/21356
2198 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2199 Resolve typedefs for type length calculations.
2200
7ab96794
TV
22012020-06-10 Tom de Vries <tdevries@suse.de>
2202
2203 PR ada/24713
2204 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2205 (write_psymbols): Enable .gdb_index for ada.
2206 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2207 ada.
2208
e5f3ece2
TV
22092020-06-10 Tom de Vries <tdevries@suse.de>
2210
2211 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2212 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2213 namei" instead of "const char *name" argument.
2214 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2215 dw2_symtab_iter_init.
2216
940da03e
SM
22172020-06-08 Simon Marchi <simon.marchi@efficios.com>
2218
2219 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2220 to use type::field and field::type instead.
2221
b6cdac4b
SM
22222020-06-08 Simon Marchi <simon.marchi@efficios.com>
2223
2224 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2225 to use field::type instead.
2226
5d14b6e5
SM
22272020-06-08 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * gdbtypes.h (struct field) <type, set_type>: New methods.
2230 Rename `type` field to...
2231 <m_type>: ... this. Change references throughout to use type or
2232 set_type methods.
2233 (FIELD_TYPE): Use field::type. Change call sites that modify
2234 the field's type to use field::set_type instead.
2235
3d967001
SM
22362020-06-08 Simon Marchi <simon.marchi@efficios.com>
2237
2238 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2239 to use type::index_type instead.
2240
262abc0d
SM
22412020-06-08 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2244 methods.
2245 (TYPE_INDEX_TYPE): Use type::index_type.
2246 * gdbtypes.c (create_array_type_with_stride): Likewise.
2247
82836c92
TT
22482020-06-07 Tom Tromey <tom@tromey.com>
2249
2250 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2251 parameter.
2252 (generic_value_print): Update.
2253
940dace9
AB
22542020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 Revert commit 982a38f60b0.
2257 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2258
982a38f6
AB
22592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2262 avoid use after free.
2263
82f06518
TV
22642020-06-05 Tom de Vries <tdevries@suse.de>
2265
2266 * NEWS: Fix typos.
2267
f8c41851
SM
22682020-06-04 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2271 the per_bfd object.
2272 (dwarf2_read_debug_names): Likewise.
2273 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2274 object when re-using a per_bfd object with an index.
2275
f9b5d5ea
TV
22762020-06-03 Tom de Vries <tdevries@suse.de>
2277
2278 PR symtab/26046
2279 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2280 children for C++.
2281 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2282 DW_TAG_subprogram.
2283
f6eee2d0
AB
22842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_language_data): Delete skip_trampoline
2287 initializer.
2288 * c-lang.c (c_language_data): Likewise.
2289 (cplus_language_data): Likewise.
2290 (cplus_language::skip_trampoline): New member function.
2291 (asm_language_data): Delete skip_trampoline initializer.
2292 (minimal_language_data): Likewise.
2293 * d-lang.c (d_language_data): Likewise.
2294 * f-lang.c (f_language_data): Likewise.
2295 * go-lang.c (go_language_data): Likewise.
2296 * language.c (unk_lang_trampoline): Delete function.
2297 (skip_language_trampoline): Update.
2298 (unknown_language_data): Delete skip_trampoline initializer.
2299 (auto_language_data): Likewise.
2300 * language.h (language_data): Delete skip_trampoline field.
2301 (language_defn::skip_trampoline): New function.
2302 * m2-lang.c (m2_language_data): Delete skip_trampoline
2303 initializer.
2304 * objc-lang.c (objc_skip_trampoline): Delete function, move
2305 implementation to objc_language::skip_trampoline.
2306 (objc_language_data): Delete skip_trampoline initializer.
2307 (objc_language::skip_trampoline): New member function with
2308 implementation from objc_skip_trampoline.
2309 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2310 initializer.
2311 * p-lang.c (pascal_language_data): Likewise.
2312 * rust-lang.c (rust_language_data): Likewise.
2313
0a50df5d
AB
23142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2317 (ada_language::demangle): New member function.
2318 * c-lang.c (c_language_data): Delete la_demangle initializer.
2319 (cplus_language_data): Delete la_demangle initializer.
2320 (cplus_language::demangle): New member function.
2321 (asm_language_data): Delete la_demangle initializer.
2322 (minimal_language_data): Delete la_demangle initializer.
2323 * d-lang.c (d_language_data): Delete la_demangle initializer.
2324 (d_language::demangle): New member function.
2325 * f-lang.c (f_language_data): Delete la_demangle initializer.
2326 (f_language::demangle): New member function.
2327 * go-lang.c (go_language_data): Delete la_demangle initializer.
2328 (go_language::demangle): New member function.
2329 * language.c (language_demangle): Update.
2330 (unk_lang_demangle): Delete.
2331 (unknown_language_data): Delete la_demangle initializer.
2332 (unknown_language::demangle): New member function.
2333 (auto_language_data): Delete la_demangle initializer.
2334 (auto_language::demangle): New member function.
2335 * language.h (language_data): Delete la_demangle field.
2336 (language_defn::demangle): New function.
2337 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2338 * objc-lang.c (objc_language_data): Delete la_demangle
2339 initializer.
2340 (objc_language::demangle): New member function.
2341 * opencl-lang.c (opencl_language_data): Delete la_demangle
2342 initializer.
2343 * p-lang.c (pascal_language_data): Likewise.
2344 * rust-lang.c (rust_language_data): Likewise.
2345 (rust_language::demangle): New member function.
2346
fbfb0a46
AB
23472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * ada-lang.c (ada_language_data): Delete la_print_type
2350 initializer.
2351 (ada_language::print_type): New member function.
2352 * c-lang.c (c_language_data): Delete la_print_type initializer.
2353 (c_language::print_type): New member function.
2354 (cplus_language_data): Delete la_print_type initializer.
2355 (cplus_language::print_type): New member function.
2356 (asm_language_data): Delete la_print_type initializer.
2357 (asm_language::print_type): New member function.
2358 (minimal_language_data): Delete la_print_type initializer.
2359 (minimal_language::print_type): New member function.
2360 * d-lang.c (d_language_data): Delete la_print_type initializer.
2361 (d_language::print_type): New member function.
2362 * f-lang.c (f_language_data): Delete la_print_type initializer.
2363 (f_language::print_type): New member function.
2364 * go-lang.c (go_language_data): Delete la_print_type initializer.
2365 (go_language::print_type): New member function.
2366 * language.c (unk_lang_print_type): Delete.
2367 (unknown_language_data): Delete la_print_type initializer.
2368 (unknown_language::print_type): New member function.
2369 (auto_language_data): Delete la_print_type initializer.
2370 (auto_language::print_type): New member function.
2371 * language.h (language_data): Delete la_print_type field.
2372 (language_defn::print_type): New function.
2373 (LA_PRINT_TYPE): Update.
2374 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2375 (m2_language::print_type): New member function.
2376 * objc-lang.c (objc_language_data): Delete la_print_type
2377 initializer.
2378 (objc_language::print_type): New member function.
2379 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2380 to opencl_language::print_type.
2381 (opencl_language_data): Delete la_print_type initializer.
2382 (opencl_language::print_type): New member function, implementation
2383 from opencl_print_type.
2384 * p-lang.c (pascal_language_data): Delete la_print_type
2385 initializer.
2386 (pascal_language::print_type): New member function.
2387 * rust-lang.c (rust_print_type): Delete, implementation moved to
2388 rust_language::print_type.
2389 (rust_language_data): Delete la_print_type initializer.
2390 (rust_language::print_type): New member function, implementation
2391 from rust_print_type.
2392
6f827019
AB
23932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2396 implementation moves to...
2397 (ada_language::sniff_from_mangled_name): ...here. Update return
2398 type.
2399 (ada_language_data): Delete la_sniff_from_mangled_name
2400 initializer.
2401 * c-lang.c (c_language_data): Likewise.
2402 (cplus_language_data): Likewise.
2403 (cplus_language::sniff_from_mangled_name): New member function,
2404 implementation taken from gdb_sniff_from_mangled_name.
2405 (asm_language_data): Delete la_sniff_from_mangled_name
2406 initializer.
2407 (minimal_language_data): Likewise.
2408 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2409 implementation moves to cplus_language::sniff_from_mangled_name.
2410 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2411 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2412 moves to...
2413 (d_language::sniff_from_mangled_name): ...here.
2414 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2415 * f-lang.c (f_language_data): Likewise.
2416 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2417 moves to...
2418 (go_language::sniff_from_mangled_name): ...here.
2419 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2420 * language.c (language_sniff_from_mangled_name): Delete.
2421 (unknown_language_data): Delete la_sniff_from_mangled_name
2422 initializer.
2423 (auto_language_data): Likewise.
2424 * language.h (language_data): Delete la_sniff_from_mangled_name
2425 field.
2426 (language_defn::sniff_from_mangled_name): New function.
2427 (language_sniff_from_mangled_name): Delete declaration.
2428 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2429 field.
2430 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2431 implementation moves to...
2432 (objc_language::sniff_from_mangled_name): ...here.
2433 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2434 * opencl-lang.c (opencl_language_data): Likewise.
2435 * p-lang.c (pascal_language_data): Likewise.
2436 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2437 implementation moves to...
2438 (rust_language::sniff_from_mangled_name): ...here.
2439 (rust_language_data): Delete la_sniff_from_mangled_name
2440 initializer.
2441 * symtab.c (symbol_find_demangled_name): Call
2442 sniff_from_mangled_name member function.
2443
fb8006fd
AB
24442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2447 initializer.
2448 * c-lang.c (c_language_data): Likewise.
2449 (cplus_language_data): Likewise.
2450 (cplus_language::search_name_hash): New member function.
2451 (asm_language_data): Delete la_search_name_hash initializer.
2452 (minimal_language_data): Likewise.
2453 * d-lang.c (d_language_data): Likewise.
2454 * dictionary.c (default_search_name_hash): Rename to...
2455 (language_defn::search_name_hash): ...this.
2456 * f-lang.c (f_language_data): Likewise.
2457 (f_language::search_name_hash): New member function.
2458 * go-lang.c (go_language_data): Delete la_search_name_hash
2459 initializer.
2460 * language.c (unknown_language_data): Likewise.
2461 (auto_language_data): Likewise.
2462 * language.h (struct language_data): Delete la_search_name_hash
2463 field.
2464 (language_defn::search_name_hash): Declare new member function.
2465 (default_search_name_hash): Delete declaration.
2466 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2467 initializer.
2468 * objc-lang.c (objc_language_data): Likewise.
2469 * opencl-lang.c (opencl_language_data): Likewise.
2470 * p-lang.c (pascal_language_data): Likewise.
2471 * rust-lang.c (rust_language_data): Likewise.
2472 * symtab.c (search_name_hash): Update call.
2473
8e25bafe
AB
24742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2477 initializer.
2478 * c-lang.c (class compile_instance): Declare.
2479 (c_language_data): Delete la_get_compile_instance initializer.
2480 (c_language::get_compile_instance): New member function.
2481 (cplus_language_data): Delete la_get_compile_instance initializer.
2482 (cplus_language::get_compile_instance): New member function.
2483 (asm_language_data): Delete la_get_compile_instance initializer.
2484 (minimal_language_data): Likewise.
2485 * c-lang.h (c_get_compile_context): Update comment.
2486 (cplus_get_compile_context): Update comment.
2487 * compile/compile.c (compile_to_object): Update calls, don't rely
2488 on function pointer being NULL.
2489 * d-lang.c (d_language_data): Delete la_get_compile_instance
2490 initializer.
2491 * f-lang.c (f_language_data): Likewise.
2492 * go-lang.c (go_language_data): Likewise.
2493 * language.c (unknown_language_data): Likewise.
2494 (auto_language_data): Likewise.
2495 * language.h (language_data): Delete la_get_compile_instance field.
2496 (language_defn::get_compile_instance): New member function.
2497 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2498 initializer.
2499 * objc-lang.c (objc_language_data): Likewise.
2500 * opencl-lang.c (opencl_language_data): Likewise.
2501 * p-lang.c (pascal_language_data): Likewise.
2502 * rust-lang.c (rust_language_data): Likewise.
2503
4009ee92
AB
25042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * ada-lang.c (ada_add_all_symbols): Update comment.
2507 (ada_iterate_over_symbols): Delete, move implementation to...
2508 (ada_language::iterate_over_symbols): ...here, a new member
2509 function, rewrite to use range based for loop.
2510 (ada_language_data): Delete la_iterate_over_symbols initializer.
2511 * c-lang.c (c_language_data): Likewise.
2512 (cplus_language_data): Likewise.
2513 (asm_language_data): Likewise.
2514 (minimal_language_data): Likewise.
2515 * d-lang.c (d_language_data): Likewise.
2516 * f-lang.c (f_language_data): Likewise.
2517 * go-lang.c (go_language_data): Likewise.
2518 * language.c (unknown_language_data): Likewise.
2519 (auto_language_data): Likewise.
2520 * language.h (language_data): Delete la_iterate_over_symbols field.
2521 (language_defn::iterate_over_symbols): New member function.
2522 (LA_ITERATE_OVER_SYMBOLS): Update.
2523 * linespec.c (iterate_over_all_matching_symtabs): Update.
2524 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2525 initializer.
2526 * objc-lang.c (objc_language_data): Likewise.
2527 * opencl-lang.c (opencl_language_data): Likewise.
2528 * p-lang.c (pascal_language_data): Likewise.
2529 * rust-lang.c (rust_language_data): Likewise.
2530
54f4ca46
AB
25312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * ada-lang.c (ada_language_data): Delete
2534 la_lookup_transparent_type initializer.
2535 * c-lang.c (c_language_data): Likewise.
2536 (cplus_language_data): Likewise.
2537 (cplus_language::lookup_transparent_type): New member function.
2538 (asm_language_data): Delete la_lookup_transparent_type
2539 initializer.
2540 (minimal_language_data): Likewise.
2541 * d-lang.c (d_language_data): Likewise.
2542 * f-lang.c (f_language_data): Likewise.
2543 * go-lang.c (go_language_data): Likewise.
2544 * language.c (unknown_language_data): Likewise.
2545 (auto_language_data): Likewise.
2546 * language.h (struct language_data): Delete
2547 la_lookup_transparent_type field.
2548 (language_defn::lookup_transparent_type): New member function.
2549 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2550 initializer.
2551 * objc-lang.c (objc_language_data): Likewise.
2552 * opencl-lang.c (opencl_language_data): Likewise.
2553 * p-lang.c (pascal_language_data): Likewise.
2554 * rust-lang.c (rust_language_data): Likewise.
2555 * symtab.c (symbol_matches_domain): Update call.
2556
1fb314aa
AB
25572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * ada-lang.c (ada_language_arch_info): Delete function, move
2560 implementation to...
2561 (ada_language::language_arch_info): ...here, a new member
2562 function.
2563 (ada_language_data): Delete la_language_arch_info.
2564 * c-lang.c (c_language_data): Likewise.
2565 (c_language::language_arch_info): New member function.
2566 (cplus_language_arch_info): Delete function, move
2567 implementation to...
2568 (cplus_language::language_arch_info): ...here, a new member
2569 function.
2570 (cplus_language_data): Delete la_language_arch_info.
2571 (asm_language_data): Likewise.
2572 (asm_language::language_arch_info): New member function.
2573 (minimal_language_data): Delete la_language_arch_info.
2574 (minimal_language::language_arch_info): New member function.
2575 * d-lang.c (d_language_arch_info): Delete function, move
2576 implementation to...
2577 (d_language::language_arch_info): ...here, a new member
2578 function.
2579 (d_language_data): Delete la_language_arch_info.
2580 * f-lang.c (f_language_arch_info): Delete function, move
2581 implementation to...
2582 (f_language::language_arch_info): ...here, a new member
2583 function.
2584 (f_language_data): Delete la_language_arch_info.
2585 * go-lang.c (go_language_arch_info): Delete function, move
2586 implementation to...
2587 (go_language::language_arch_info): ...here, a new member
2588 function.
2589 (go_language_data): Delete la_language_arch_info.
2590 * language.c (unknown_language_data): Likewise.
2591 (unknown_language::language_arch_info): New member function.
2592 (auto_language_data): Delete la_language_arch_info.
2593 (auto_language::language_arch_info): New member function.
2594 (language_gdbarch_post_init): Update call to
2595 la_language_arch_info.
2596 * language.h (language_data): Delete la_language_arch_info
2597 function pointer.
2598 (language_defn::language_arch_info): New function.
2599 * m2-lang.c (m2_language_arch_info): Delete function, move
2600 implementation to...
2601 (m2_language::language_arch_info): ...here, a new member
2602 function.
2603 (m2_language_data): Delete la_language_arch_info.
2604 * objc-lang.c (objc_language_arch_info): Delete function, move
2605 implementation to...
2606 (objc_language::language_arch_info): ...here, a new member
2607 function.
2608 (objc_language_data): Delete la_language_arch_info.
2609 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2610 implementation to...
2611 (opencl_language::language_arch_info): ...here, a new member
2612 function.
2613 (opencl_language_data): Delete la_language_arch_info.
2614 * p-lang.c (pascal_language_arch_info): Delete function, move
2615 implementation to...
2616 (pascal_language::language_arch_info): ...here, a new member
2617 function.
2618 (pascal_language_data): Delete la_language_arch_info.
2619 * rust-lang.c (rust_language_arch_info): Delete function, move
2620 implementation to...
2621 (rust_language::language_arch_info): ...here, a new member
2622 function.
2623 (rust_language_data): Delete la_language_arch_info.
2624
48448202
AB
26252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2628 initializer.
2629 * c-lang.c (c_language_data): Likewise.
2630 (cplus_language_data): Likewise.
2631 (cplus_language::pass_by_reference_info): New method.
2632 (asm_language_data): Delete la_pass_by_reference initializer.
2633 (minimal_language_data): Likewise.
2634 * cp-abi.c (cp_pass_by_reference): Remove use of
2635 default_pass_by_reference.
2636 * d-lang.c (d_language_data): Likewise.
2637 * f-lang.c (f_language_data): Likewise.
2638 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2639 default_pass_by_reference.
2640 * go-lang.c (go_language_data): Likewise.
2641 * language.c (language_pass_by_reference): Update.
2642 (default_pass_by_reference): Delete.
2643 (unknown_language_data): Delete la_pass_by_reference
2644 initializer.
2645 (auto_language_data): Likewise.
2646 * language.h (struct language_data): Delete la_pass_by_reference
2647 field.
2648 (language_defn::pass_by_reference_info): New member function.
2649 (default_pass_by_reference): Delete declaration.
2650 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2651 initializer.
2652 * objc-lang.c (objc_language_data): Likewise.
2653 * opencl-lang.c (opencl_language_data): Likewise.
2654 * p-lang.c (pascal_language_data): Likewise.
2655 * rust-lang.c (rust_language_data): Likewise.
2656
15e5fd35
AB
26572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-lang.c (ada_read_var_value): Delete function, move
2660 implementation to...
2661 (ada_language::read_var_value): ...here.
2662 (ada_language_data): Delete la_read_var_value initializer.
2663 * c-lang.c (c_language_data): Likewise.
2664 (cplus_language_data): Likewise.
2665 (minimal_language_data): Likewise.
2666 * d-lang.c (d_language_data): Likewise.
2667 * f-lang.c (f_language_data): Likewise.
2668 * findvar.c (default_read_var_value): Rename to...
2669 (language_defn::read_var_value): ...this.
2670 * findvar.c (read_var_value): Update header comment, and change to
2671 call member function instead of function pointer.
2672 * go-lang.c (go_language_data): Likewise.
2673 * language.c (unknown_language_data): Delete la_read_var_value
2674 initializer.
2675 (auto_language_data): Likewise.
2676 * language.h (struct language_data): Delete la_read_var_value
2677 field.
2678 (language_defn::read_var_value): New member function.
2679 (default_read_var_value): Delete declaration.
2680 * m2-lang.c (m2_language_data): Delete la_read_var_value
2681 initializer.
2682 * objc-lang.c (objc_language_data): Likewise.
2683 * opencl-lang.c (opencl_language_data): Likewise.
2684 * p-lang.c (pascal_language_data): Likewise.
2685 * rust-lang.c (rust_language_data): Likewise.
2686 * value.h (default_read_var_value): Delete declaration.
2687
5bd40f2a
AB
26882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2689
2690 * ada-lang.c (ada_print_array_index): Delete function, move
2691 implementation to...
2692 (ada_language::print_array_index): ...here.
2693 (ada_language_data): Delete la_print_array_index initializer.
2694 * c-lang.c (c_language_data): Likewise.
2695 (cplus_language_data): Likewise.
2696 (minimal_language_data): Likewise.
2697 * d-lang.c (d_language_data): Likewise.
2698 * f-lang.c (f_language_data): Likewise.
2699 * go-lang.c (go_language_data): Likewise.
2700 * language.c (default_print_array_index): Delete function, move
2701 implementation to...
2702 (language_defn::print_array_index): ...here.
2703 (unknown_language_data): Delete la_print_array_index initializer.
2704 (auto_language_data): Likewise.
2705 * language.h (struct language_data): Delete la_print_array_index
2706 field.
2707 (language_defn::print_array_index): New member function.
2708 (LA_PRINT_ARRAY_INDEX): Update.
2709 (default_print_array_index): Delete declaration.
2710 * m2-lang.c (m2_language_data): Delete la_print_array_index
2711 initializer.
2712 * objc-lang.c (objc_language_data): Likewise.
2713 * opencl-lang.c (opencl_language_data): Likewise.
2714 * p-lang.c (pascal_language_data): Likewise.
2715 * rust-lang.c (rust_language_data): Likewise.
2716
0874fd07
AB
27172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * gdb/ada-lang.c (ada_language_defn): Convert to...
2720 (ada_language_data): ...this.
2721 (class ada_language): New class.
2722 (ada_language_defn): New static global.
2723 * gdb/c-lang.c (c_language_defn): Convert to...
2724 (c_language_data): ...this.
2725 (class c_language): New class.
2726 (c_language_defn): New static global.
2727 (cplus_language_defn): Convert to...
2728 (cplus_language_data): ...this.
2729 (class cplus_language): New class.
2730 (cplus_language_defn): New static global.
2731 (asm_language_defn): Convert to...
2732 (asm_language_data): ...this.
2733 (class asm_language): New class.
2734 (asm_language_defn): New static global.
2735 (minimal_language_defn): Convert to...
2736 (minimal_language_data): ...this.
2737 (class minimal_language): New class.
2738 (minimal_language_defn): New static global.
2739 * gdb/d-lang.c (d_language_defn): Convert to...
2740 (d_language_data): ...this.
2741 (class d_language): New class.
2742 (d_language_defn): New static global.
2743 * gdb/f-lang.c (f_language_defn): Convert to...
2744 (f_language_data): ...this.
2745 (class f_language): New class.
2746 (f_language_defn): New static global.
2747 * gdb/go-lang.c (go_language_defn): Convert to...
2748 (go_language_data): ...this.
2749 (class go_language): New class.
2750 (go_language_defn): New static global.
2751 * gdb/language.c (unknown_language_defn): Remove declaration.
2752 (current_language): Initialize to nullptr, real initialization is
2753 moved to _initialize_language.
2754 (languages): Delete global.
2755 (language_defn::languages): Define.
2756 (set_language_command): Use language_defn::languages.
2757 (set_language): Likewise.
2758 (range_error): Likewise.
2759 (language_enum): Likewise.
2760 (language_def): Likewise.
2761 (add_set_language_command): Use language_def::languages for the
2762 language list, and language_def to lookup language pointers.
2763 (skip_language_trampoline): Use language_defn::languages.
2764 (unknown_language_defn): Convert to...
2765 (unknown_language_data): ...this.
2766 (class unknown_language): New class.
2767 (unknown_language_defn): New static global.
2768 (auto_language_defn): Convert to...
2769 (auto_language_data): ...this.
2770 (class auto_language): New class.
2771 (auto_language_defn): New static global.
2772 (language_gdbarch_post_init): Use language_defn::languages.
2773 (_initialize_language): Initialize current_language.
2774 * gdb/language.h (struct language_defn): Rename to...
2775 (struct language_data): ...this.
2776 (struct language_defn): New.
2777 (auto_language_defn): Delete.
2778 (unknown_language_defn): Delete.
2779 (minimal_language_defn): Delete.
2780 (ada_language_defn): Delete.
2781 (asm_language_defn): Delete.
2782 (c_language_defn): Delete.
2783 (cplus_language_defn): Delete.
2784 (d_language_defn): Delete.
2785 (f_language_defn): Delete.
2786 (go_language_defn): Delete.
2787 (m2_language_defn): Delete.
2788 (objc_language_defn): Delete.
2789 (opencl_language_defn): Delete.
2790 (pascal_language_defn): Delete.
2791 (rust_language_defn): Delete.
2792 * gdb/m2-lang.c (m2_language_defn): Convert to...
2793 (m2_language_data): ...this.
2794 (class m2_language): New class.
2795 (m2_language_defn): New static global.
2796 * gdb/objc-lang.c (objc_language_defn): Convert to...
2797 (objc_language_data): ...this.
2798 (class objc_language): New class.
2799 (objc_language_defn): New static global.
2800 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2801 (opencl_language_data): ...this.
2802 (class opencl_language): New class.
2803 (opencl_language_defn): New static global.
2804 * gdb/p-lang.c (pascal_language_defn): Convert to...
2805 (pascal_language_data): ...this.
2806 (class pascal_language): New class.
2807 (pascal_language_defn): New static global.
2808 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2809 language pointer, update comment format.
2810 * gdb/rust-lang.c (rust_language_defn): Convert to...
2811 (rust_language_data): ...this.
2812 (class rust_language): New class.
2813 (rust_language_defn): New static global.
2814
1313c56e
AB
28152020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2818 member variable.
2819 <m_stmt_at_address>: New member variable.
2820 (lnp_state_machine::record_line): Don't record some lines, update
2821 tracking of is_stmt at the same address.
2822 (lnp_state_machine::lnp_state_machine): Initialise new member
2823 variables.
2824
b7ed9f3d
ST
28252020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2826
2827 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2828 "-include gnu-nat-mig.h".
2829 * gnu-nat-mig.h: New file.
2830 * gnu-nat.c: Include "gnu-nat-mig.h".
2831 (exc_server, msg_reply_server, notify_server,
2832 process_reply_server): Remove declarations.
2833
14a8ad62
ST
28342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2835
2836 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2837 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2838 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2839 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2840 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2841 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2842 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2843 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2844 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2845 to gnu_nat_target class.
2846 * gnu-nat.c: Likewise.
2847 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2848 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2849 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2850 object.
2851 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2852 instead of `gnu_target'.
2853
0af5e106
ST
28542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2855
2856 * i386-gnu-tdep.c: Include "gdbcore.h"
2857 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2858 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2859 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2860 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2861 i386_gnu_sigcontext_addr): New functions
2862 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2863 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2864 tdep.
2865
078f2fc9
ST
28662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2867
2868 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2869 before fork_inferior call. Avoid calling it if target_is_pushed returns
2870 true.
2871
53dff92c
ST
28722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2873
2874 * gnu-nat.h (gnu_target): New variable declaration.
2875 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2876 gnu_target.
2877 * gnu-nat.c (gnu_target): New variable.
2878 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2879 add_thread_silent, and add_thread calls.
2880 (gnu_nat_target::create_inferior): Pass gnu_target to
2881 add_thread_silent, thread_change_ptid call.
2882 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2883 call.
2884
5a8b8627
ST
28852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2886
2887 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2888 (gnu_nat_target::find_memory_regions): Remove unused
2889 `old_address' variable.
2890
366f550a
ST
28912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2892
2893 * gnu-nat.c: Include "gdbarch.h".
2894
f14871bf
ST
28952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2896
2897 * reply_mig_hack.awk (Error return): Cast function through
2898 void *, to bypass compiler function call check.
2899
c6887cfb
ST
29002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2901
2902 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2903 $(srcdir)/reply_mig_hack.awk.
2904
6930bffe
ST
29052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2906
2907 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2908
112c22ed
JG
29092020-05-30 Jonny Grant <jg@jguk.org>
2910
2911 * configure.ac (ACX_BUGURL): change bug URL to https.
2912
f68f85b5
PA
29132020-05-30 Pedro Alves <palves@redhat.com>
2914
2915 * cp-support.c (replace_typedefs_template): New.
2916 (replace_typedefs_qualified_name): Handle
2917 DEMANGLE_COMPONENT_TEMPLATE.
2918
976ca316
SM
29192020-05-29 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2922 dwarf2/index-cache.h, dwarf2/index-write.c,
2923 dwarf2/index-write.h, dwarf2/line-header.c,
2924 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2925 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2926 variables and fields from `dwarf2_per_objfile` to just
2927 `per_objfile` throughout.
2928
989ade05
SM
29292020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2932 <push_dwarf_reg_entry_value>: Add comment.
2933
c47bae85
KB
29342020-05-28 Kevin Buettner <kevinb@redhat.com>
2935 Keith Seitz <keiths@redhat.com>
2936
2937 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2938 instead of PyEval_ReleaseLock.
2939 (class gdbpy_gil): Move to earlier in file.
2940 (finalize_python): Set gdb_python_initialized.
2941 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2942 when not initialized.
2943
44486dcf
SM
29442020-05-28 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2947 <push_dwarf_reg_entry_value>: Remove assert. Override
2948 per_objfile with caller_per_objfile.
2949
f030440d
TV
29502020-05-28 Tom de Vries <tdevries@suse.de>
2951
2952 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2953 PR gold/15646 workaround to symbol kind "type".
2954
f0fbb768
TT
29552020-05-27 Tom Tromey <tromey@adacore.com>
2956
2957 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2958
af0b2a3e
TT
29592020-05-27 Tom Tromey <tromey@adacore.com>
2960
2961 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2962 Use htab_find_with_hash.
2963 <add_abbrev>: Remove "abbrev_number" parameter.
2964 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2965 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2966 (hash_abbrev): Add comment.
2967 (abbrev_table::lookup_abbrev): Move to header file.
2968 (abbrev_table::read): Update.
2969
7d00ffec
TT
29702020-05-27 Tom Tromey <tromey@adacore.com>
2971
2972 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2973 method.
2974 <canonical_name>: New member.
2975 <raw_name>: Rename from "name".
2976 (partial_die_info): Initialize canonical_name.
2977 (scan_partial_symbols): Check raw_name.
2978 (partial_die_parent_scope, partial_die_full_name)
2979 (add_partial_symbol, add_partial_subprogram)
2980 (add_partial_enumeration, load_partial_dies): Use "name" method.
2981 (partial_die_info::name): New method.
2982 (partial_die_info::read, guess_partial_die_structure_name)
2983 (partial_die_info::fixup): Update.
2984
697bba18
TT
29852020-05-27 Tom Tromey <tromey@adacore.com>
2986
2987 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2988 <get_ref_die_offset>: Inline.
2989 <get_ref_die_offset_complaint>: New method.
2990 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2991 (attribute::get_ref_die_offset_complaint): Rename from
2992 get_ref_die_offset. Just issue complaint.
2993
c17ace43
HD
29942020-05-27 Hannes Domani <ssbssa@yahoo.de>
2995
2996 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2997
96445f0b
HD
29982020-05-27 Hannes Domani <ssbssa@yahoo.de>
2999
3000 * exec.c (exec_file_attach): Use errno value of first openp failure.
3001
ac637ec3
HD
30022020-05-27 Hannes Domani <ssbssa@yahoo.de>
3003
3004 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3005 Don't close thread handle.
3006
17ee85fc
TT
30072020-05-27 Tom Tromey <tom@tromey.com>
3008 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3011 shared_ptr.
3012 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3013 member.
3014 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3015 dwarf2_per_bfd_objfile_data_key>: New globals.
3016 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3017 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3018 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3019 shared.
3020 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3021 short-circuit when sharing.
3022 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3023 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3024
39b16f87
SM
30252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3028 to...
3029 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3030 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3031
fcf23d5b
SM
30322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3035 build_name_components, find_name_components_bounds>:
3036 Add per_objfile parameter.
3037 (struct mapped_index) <symbol_name_at>: Likewise.
3038 (struct mapped_debug_names): Remove constructor.
3039 <dwarf2_per_objfile>: Remove field.
3040 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3041 (mapped_index_base::find_name_components_bounds,
3042 mapped_index_base::build_name_components,
3043 dw2_expand_symtabs_matching_symbol): Likewise.
3044 (class mock_mapped_index) <symbol_name_at>: Likewise.
3045 (check_match): Likewise.
3046 (check_find_bounds_finds): Likewise.
3047 (test_mapped_index_find_name_component_bounds): Update.
3048 (CHECK_MATCH): Update.
3049 (dw2_expand_symtabs_matching): Update.
3050 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3051 per_objfile parameter.
3052 <find_vec_in_debug_names>: Likewise.
3053 <m_per_objfile>: New field.
3054 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3055 parameter.
3056 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3057 (dw2_debug_names_iterator::next): Update.
3058 (dw2_debug_names_lookup_symbol): Update.
3059 (dw2_debug_names_expand_symtabs_for_function): Update.
3060 (dw2_debug_names_map_matching_symbols): Update.
3061 (dw2_debug_names_expand_symtabs_matching): Update.
3062 (dwarf2_read_debug_names): Update.
3063
7188ed02
SM
30642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3067 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3068 move to dwarf2_per_objfile.
3069 <read_in_chain>: Remove.
3070 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3071 remove_all_cus, age_comp_units>: New methods.
3072 <m_dwarf2_cus>: New member.
3073 (struct dwarf2_per_cu_data) <cu>: Remove.
3074 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3075 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3076 moved to methods of dwarf2_per_objfile.
3077 (dwarf2_clear_marks): Remove.
3078 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3079 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3080 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3081 (dwarf2_per_objfile::remove_all_cus): New.
3082 (class free_cached_comp_units) <~free_cached_comp_units>:
3083 Update.
3084 (load_cu): Update.
3085 (dw2_do_instantiate_symtab): Adjust.
3086 (fill_in_sig_entry_from_dwo_entry): Adjust.
3087 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3088 (cutu_reader::cutu_reader): Likewise.
3089 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3090 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3091 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3092 and dwarf2_per_objfile::age_comp_units.
3093 (load_partial_comp_unit): Update.
3094 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3095 (process_queue): Likewise.
3096 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3097 backlink.
3098 (dwarf2_read_addr_index): Likewise.
3099 (follow_die_offset): Likewise.
3100 (dwarf2_fetch_die_loc_sect_off): Likewise.
3101 (dwarf2_fetch_constant_bytes): Likewise.
3102 (dwarf2_fetch_die_type_sect_off): Likewise.
3103 (follow_die_sig_1): Likewise.
3104 (load_full_type_unit): Likewise.
3105 (read_signatured_type): Likewise.
3106 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3107 (dwarf2_cu::~dwarf2_cu): Remove.
3108 (dwarf2_per_objfile::get_cu): New.
3109 (dwarf2_per_objfile::set_cu): New.
3110 (age_cached_comp_units): Rename to...
3111 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3112 to std::unordered_map.
3113 (free_one_cached_comp_unit): Rename to...
3114 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3115 to std::unordered_map.
3116 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3117 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3118 a dwarf2_per_objfile in data.
3119 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3120 (dwarf2_clear_marks): Remove.
3121
2e671100
SM
31222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3125 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3126 (init_tu_and_read_dwo_dies): Likewise.
3127 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3128 (cutu_reader::cutu_reader): Likewise.
3129 (load_partial_comp_unit): Likewise.
3130 (process_psymtab_comp_unit): Update.
3131 (build_type_psymtabs_1): Update.
3132 (process_skeletonless_type_unit): Update.
3133 (load_full_comp_unit): Update.
3134 (find_partial_die): Update.
3135 (dwarf2_read_addr_index): Update.
3136 (read_signatured_type): Update.
3137
2e6a9f79
SM
31382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3139
3140 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3141 m_header_read_in>: New fields.
3142 <get_header>: New method.
3143 * dwarf2/read.c (per_cu_header_read_in): Remove.
3144 (dwarf2_per_cu_data::get_header): New.
3145 (dwarf2_per_cu_data::addr_size): Update.
3146 (dwarf2_per_cu_data::offset_size): Update.
3147 (dwarf2_per_cu_data::ref_addr_size): Update.
3148
1b555f17
SM
31492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3152 (dw2_do_instantiate_symtab): Update.
3153 (queue_and_load_all_dwo_tus): Change parameter from
3154 dwarf2_per_cu_data to dwarf2_cu.
3155 (dwarf2_fetch_die_loc_sect_off): Update.
3156 (dwarf2_fetch_constant_bytes): Update.
3157 (dwarf2_fetch_die_type_sect_off): Update.
3158
8fc0b21d
SM
31592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3160
3161 * dwarf2/read.c (process_full_comp_unit,
3162 process_full_type_unit): Remove per_cu, per_objfile paramters.
3163 Add dwarf2_cu parameter.
3164 (process_queue): Update.
3165
168c9250
SM
31662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3167
3168 * dwarf2/read.c (create_cu_from_index_list): Replace
3169 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3170 (create_cus_from_index_list): Likewise.
3171 (create_cus_from_index): Likewise.
3172 (create_signatured_type_table_from_index): Likewise.
3173 (create_cus_from_debug_names_list): Likewise.
3174 (create_cus_from_debug_names): Likewise.
3175 (dwarf2_read_gdb_index): Update.
3176 (dwarf2_read_debug_names): Update.
3177
e286671b
TT
31782020-05-27 Tom Tromey <tom@tromey.com>
3179 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * dwarf2/read.h (struct dwarf2_per_objfile)
3182 <get_type_for_signatured_type, set_type_for_signatured_type>:
3183 New methods.
3184 <m_type_map>: New member.
3185 (struct signatured_type) <type>: Remove.
3186 * dwarf2/read.c
3187 (dwarf2_per_objfile::get_type_for_signatured_type,
3188 dwarf2_per_objfile::set_type_for_signatured_type): New.
3189 (get_signatured_type): Use new methods.
3190
8adb8487
TT
31912020-05-27 Tom Tromey <tom@tromey.com>
3192 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3195 (struct dwarf2_per_objfile) <type_units>: New member.
3196 <get_type_unit_group_unshareable>: New method.
3197 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3198 num_symtabs, symtabs>: Remove; move to
3199 type_unit_group_unshareable.
3200 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3201 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3202 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3203
127bbf4b
SM
32042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/read.h (struct dwarf2_per_cu_data):
3207 <dwarf2_per_objfile>: Remove.
3208 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3209 dwarf2_per_objfile.
3210 (create_signatured_type_table_from_index): Likewise.
3211 (create_signatured_type_table_from_debug_names): Likewise.
3212 (create_debug_type_hash_table): Likewise.
3213 (fill_in_sig_entry_from_dwo_entry): Likewise.
3214 (create_type_unit_group): Likewise.
3215 (read_comp_units_from_section): Likewise.
3216 (create_cus_hash_table): Likewise.
3217
f6e649dd
SM
32182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3219
3220 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3221 dwarf2_per_cu_data::dwarf2_per_objfile.
3222 (compute_compunit_symtab_includes): Likewise.
3223 (dwarf2_cu::start_symtab): Likewise.
3224
aa66c379
SM
32252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3228 parameter.
3229 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3230 (read_namespace_alias): Update.
3231 (lookup_die_type): Update.
3232 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3233 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3234 Update.
3235 (disassemble_dwarf_expression): Update.
3236
120ce1b5
SM
32372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3238
3239 * dwarf2/read.h (struct dwarf2_queue_item): Add
3240 dwarf2_per_objfile parameter, assign new parameter.
3241 <per_objfile>: New field.
3242 * dwarf2/read.c (free_one_cached_comp_unit): Add
3243 dwarf2_per_objfile parameter.
3244 (queue_comp_unit): Likewise.
3245 (dw2_do_instantiate_symtab): Update.
3246 (process_psymtab_comp_unit): Update.
3247 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3248 (process_imported_unit_die): Update.
3249 (queue_and_load_dwo_tu): Update.
3250 (follow_die_offset): Update.
3251 (follow_die_sig_1): Update.
3252
9f47c707
SM
32532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3256 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3257 (read_call_site_scope): Assign per_objfile.
3258 (dwarf2_per_cu_data::objfile): Remove.
3259 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3260 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3261 dwarf2_per_objfile parameter.
3262 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3263 dwarf2_per_objfile parameter.
3264 (dwarf_expr_reg_to_entry_parameter): Add output
3265 dwarf2_per_objfile parameter.
3266 (locexpr_get_frame_base): Update.
3267 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3268 <push_dwarf_reg_entry_value>: Update.
3269 <call_site_to_target_addr>: Update.
3270 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3271 parameter.
3272 (value_of_dwarf_reg_entry): Update.
3273 (rw_pieced_value): Update.
3274 (indirect_synthetic_pointer): Update.
3275 (dwarf2_evaluate_property): Update.
3276 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3277 parameter.
3278 (locexpr_read_variable): Update.
3279 (locexpr_get_symbol_read_needs): Update.
3280 (loclist_read_variable): Update.
3281
14095eb3
SM
32822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3285 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3286 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3287 parameter.
3288 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3289 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3290 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3291 parameter.
3292 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3293 sect_variable_value): Add dwarf2_per_objfile parameter.
3294 (class dwarf_evaluate_loc_desc) <dwarf_call,
3295 dwarf_variable_value>: Update.
3296 (fetch_const_value_from_synthetic_pointer): Add
3297 dwarf2_per_objfile parameter.
3298 (fetch_const_value_from_synthetic_pointer): Update.
3299 (coerced_pieced_ref): Update.
3300 (class symbol_needs_eval_context) <dwarf_call,
3301 dwarf_variable_value>: Update.
3302 (dwarf2_compile_expr_to_ax): Update.
3303
3c3cd3d4
SM
33042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3307 parameter.
3308 (dwarf2_evaluate_loc_desc_full): Update.
3309
82ca3f51
SM
33102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3313 parameter.
3314 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3315 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3316 dwarf2_per_objfile parameter.
3317 (decode_debug_loc_dwo_addresses): Likewise.
3318 (dwarf2_find_location_expression): Update.
3319 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3320 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3321 parameter.
3322 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3323 parameter.
3324 (locexpr_describe_location_1): Likewise.
3325 (locexpr_describe_location): Update.
3326
4b167ea1
SM
33272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3328
3329 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3330 Remove.
3331 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3332 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3333 (dwarf2_compile_property_to_c): Update.
3334 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3335 use text offset from objfile.
3336 (locexpr_tracepoint_var_ref): Update.
3337 (locexpr_generate_c_location): Update.
3338 (loclist_describe_location): Update.
3339 (loclist_tracepoint_var_ref): Update.
3340 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3341 dwarf2_per_objfile parameter.
3342 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3343 use text offset from objfile.
3344 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3345
89b07335
SM
33462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * dwarf2/expr.h (struct dwarf_expr_context)
3349 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3350 <offset>: Remove.
3351 <per_objfile>: New member.
3352 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3353 dwarf2_per_objfile parameter. Don't set offset, set
3354 per_objfile.
3355 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3356 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3357 a dwarf2_per_objfile object instead of an offset.
3358 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3359 constructor.
3360 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3361 to dwarf2_expr_executor constructor. Don't set offset.
3362 (dwarf2_fetch_cfa_info): Update.
3363 (struct dwarf2_frame_cache) <text_offset>: Remove.
3364 <per_objfile>: New field.
3365 (dwarf2_frame_cache): Update.
3366 (dwarf2_frame_prev_register): Update.
3367 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3368 <dwarf_evaluate_loc_desc>: Add constructor.
3369 (dwarf2_evaluate_loc_desc_full): Update.
3370 (dwarf2_locexpr_baton_eval): Update.
3371 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3372 Add constructor.
3373 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3374
293e7e51
SM
33752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3378 addr_sized_int_type>: Move to dwarf2_cu.
3379 <int_type>: Move to dwarf2_per_objfile.
3380 (struct dwarf2_per_objfile) <int_type>: Move here.
3381 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3382 addr_sized_int_type>: Move here.
3383 (read_func_scope): Update.
3384 (read_array_type): Update.
3385 (read_tag_string_type): Update.
3386 (attr_to_dynamic_prop): Update.
3387 (dwarf2_per_cu_data::int_type): Rename to...
3388 (dwarf2_per_objfile::int_type): ... this.
3389 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3390 (dwarf2_cu::addr_sized_int_type): ... this.
3391 (read_subrange_type): Update.
3392 (dwarf2_per_cu_data::addr_type): Rename to...
3393 (dwarf2_cu::addr_type): ... this.
3394 (set_die_type): Update.
3395
64874a40
SM
33962020-05-27 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3399 data through per_cu->cu.
3400
4ab09049
SM
34012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3404 dwarf2_per_cu_data parameter fo dwarf2_cu.
3405 (lookup_dwo_type_unit): Likewise.
3406 (read_cutu_die_from_dwo): Likewise.
3407 (lookup_dwo_unit): Likewise.
3408 (open_and_init_dwo_file): Likewise.
3409 (lookup_dwo_cutu): Likewise.
3410 (lookup_dwo_comp_unit): Likewise.
3411 (lookup_dwo_type_unit): Likewise.
3412 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3413 (cutu_reader::cutu_reader): Update.
3414
47b14e86
SM
34152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3418 parameter.
3419 (process_full_type_unit): Likewise.
3420 (process_queue): Update.
3421
43182c09
SM
34222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/read.c (recursively_compute_inclusions): Add
3425 dwarf2_per_objfile parameter.
3426 (compute_compunit_symtab_includes): Likewise.
3427 (process_cu_includes): Update.
3428
7aa104c4
SM
34292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3432 parameter.
3433 (create_type_unit_group): Update.
3434 (process_psymtab_comp_unit_reader): Update.
3435 (build_type_psymtabs_reader): Update.
3436
e3beb21d
SM
34372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3440 object through m_this_cu->cu.
3441
d460f660
SM
34422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3445 the info parameter.
3446 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3447
ab432490
SM
34482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3449
3450 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3451 per_objfile parameter.
3452 (load_full_type_unit): Add per_objfile parameter.
3453 (read_signatured_type): Likewise.
3454 (load_full_comp_unit): Likewise.
3455 (load_cu): Likewise.
3456 (dw2_do_instantiate_symtab): Likewise.
3457 (dw2_get_file_names): Likewise.
3458 (dw2_map_symtabs_matching_filename): Update.
3459 (dw_expand_symtabs_matching_file_matcher): Update.
3460 (dw2_map_symbol_filenames): Update.
3461 (process_psymtab_comp_unit): Add per_objfile parameter.
3462 (build_type_psymtabs_1): Update.
3463 (process_skeletonless_type_unit): Update.
3464 (dwarf2_build_psymtabs_hard): Update.
3465 (load_partial_comp_unit): Add per_objfile parameter.
3466 (scan_partial_symbols): Update.
3467 (load_full_comp_unit): Add per_objfile parameter.
3468 (process_imported_unit_die): Update.
3469 (create_cus_hash_table): Update.
3470 (find_partial_die): Update.
3471 (dwarf2_read_addr_index): Update.
3472 (follow_die_offset): Update.
3473 (dwarf2_fetch_die_loc_sect_off): Update.
3474 (dwarf2_fetch_constant_bytes): Update.
3475 (dwarf2_fetch_die_type_sect_off): Update.
3476 (follow_die_sig_1): Update.
3477 (load_full_type_unit): Add per_objfile parameter.
3478 (read_signatured_type): Likewise.
3479
313bad1b
SM
34802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3483 of objfile_name.
3484
c3699833
SM
34852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3488 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3489 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3490 field.
3491 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3492 (create_cus_from_index): Update.
3493 (dwarf2_read_gdb_index): Update.
3494 (create_cus_from_debug_names): Update.
3495 (dwarf2_read_debug_names): Update.
3496 (get_abbrev_section_for_cu): Update.
3497 (create_all_comp_units): Update.
3498 (read_attribute_value): Update.
3499 (get_debug_line_section): Update.
3500 * dwarf2/index-cache.c (index_cache::store): Update.
3501 * dwarf2/index-write.c (save_gdb_index_command): Update.
3502 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3503
1859c670
SM
35042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3505
3506 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3507 member.
3508 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3509 dwarf2_per_cu_data::per_bfd.
3510 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3511 (create_type_unit_group): Likewise.
3512 (queue_comp_unit): Remove reference to
3513 per_cu->dwarf2_per_objfile.
3514 (maybe_queue_comp_unit): Likewise.
3515 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3516 (create_cus_hash_table): Assign new field.
3517
5e22e966
SM
35182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * dwarf2/read.c: Replace
3521 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3522 dwarf2_cu->per_objfile throughout.
3523
97a1449a
SM
35242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3527 parameter, don't use per_cu->dwarf2_per_objfile.
3528 (dw2_instantiate_symtab): Likewise.
3529 (dw2_find_last_source_symtab): Update.
3530 (dw2_map_expand_apply): Update.
3531 (dw2_lookup_symbol): Update.
3532 (dw2_expand_symtabs_for_function): Update.
3533 (dw2_expand_all_symtabs): Update.
3534 (dw2_expand_symtabs_with_fullname): Update.
3535 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3536 don't use per_cu->dwarf2_per_objfile.
3537 (dw2_expand_marked_cus): Update.
3538 (dw2_find_pc_sect_compunit_symtab): Update.
3539 (dw2_debug_names_lookup_symbol): Update.
3540 (dw2_debug_names_expand_symtabs_for_function): Update.
3541 (dw2_debug_names_map_matching_symbols): Update.
3542 (dwarf2_psymtab::expand_psymtab): Update.
3543
9e021579
SM
35442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3545
3546 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3547 <per_objfile>: New member.
3548 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3549 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3550 call to dwarf2_cu.
3551 (cutu_reader::cutu_reader): Update.
3552 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3553
ae090bdb
SM
35542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3557 struct dwarf2_per_objfile.
3558 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3559 dwarf2_per_bfd.
3560 * dwarf2/read.c (set_die_type): Update.
3561 (get_die_type_at_offset): Update.
3562
af758d11
SM
35632020-05-27 Tom Tromey <tom@tromey.com>
3564 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3567 method.
3568 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3569 get_symtab, set_symtab>: New methods.
3570 <m_symtabs>: New field.
3571 (struct dwarf2_psymtab): Derive from partial_symtab.
3572 <readin_p, get_compunit_symtab>: Declare methods.
3573 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3574 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3575 New methods.
3576 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3577 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3578 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3579 (dw2_symtab_iter_next, dw2_print_stats)
3580 (dw2_expand_symtabs_with_fullname)
3581 (dw2_expand_symtabs_matching_one)
3582 (dw_expand_symtabs_matching_file_matcher)
3583 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3584 (dw2_debug_names_iterator::next)
3585 (dw2_debug_names_map_matching_symbols)
3586 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3587 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3588 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3589 New methods.
3590 (get_compunit_symtab, process_full_comp_unit)
3591 (process_full_type_unit): Update.
3592 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3593
5989a64e
SM
35942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3597 then introduce a new dwarf2_per_objfile type.
3598 <read_line_string>: Move to the new dwarf2_per_objfile type.
3599 <objfile>: Likewise.
3600 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3601 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3602 dwarf2_per_objfile->per_bfd.
3603 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3604 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3605 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3606 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3607 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3608 (dwarf2_per_objfile::locate_sections): Rename to...
3609 (dwarf2_per_bfd::locate_sections): ... this.
3610 (dwarf2_per_objfile::get_cutu): Rename to...
3611 (dwarf2_per_bfd::get_cutu): ... this.
3612 (dwarf2_per_objfile::get_cu): Rename to...
3613 (dwarf2_per_bfd::get_cu): ... this.
3614 (dwarf2_per_objfile::get_tu): Rename to...
3615 (dwarf2_per_bfd::get_tu): ... this.
3616 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3617 (dwarf2_per_bfd::allocate_per_cu): ... this.
3618 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3619 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3620 (get_gdb_index_contents_ftype): Change parameter from
3621 dwarf2_per_objfile to dwarf2_per_bfd.
3622 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3623 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3624
a50264ba
TT
36252020-05-27 Tom Tromey <tom@tromey.com>
3626 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3629 (allocate_piece_closure): Set "per_objfile" member.
3630 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3631 (locexpr_describe_location, loclist_describe_location): Use new
3632 member.
3633 * dwarf2/read.c (read_call_site_scope)
3634 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3635 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3636 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3637 handle_data_member_location): Set per_objfile member.
3638 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3639 member.
3640 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3641
d3473f0c
TT
36422020-05-27 Tom Tromey <tom@tromey.com>
3643
3644 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3645 allocate_signatured_type>: Declare new methods.
3646 <m_num_psymtabs>: New member.
3647 (struct dwarf2_per_cu_data) <index>: New member.
3648 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3649 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3650 (create_cu_from_index_list): Use allocate_per_cu.
3651 (create_signatured_type_table_from_index)
3652 (create_signatured_type_table_from_debug_names)
3653 (create_debug_type_hash_table, add_type_unit)
3654 (read_comp_units_from_section): Use allocate_signatured_type.
3655
5717c425
TT
36562020-05-27 Tom Tromey <tom@tromey.com>
3657
3658 * psymtab.c (partial_map_expand_apply)
3659 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3660 (psym_lookup_global_symbol_language)
3661 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3662 (psym_print_stats, psym_expand_symtabs_for_function)
3663 (psym_map_symbol_filenames, psym_map_matching_symbols)
3664 (psym_expand_symtabs_matching)
3665 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3666 (maintenance_check_psymtabs): Update.
3667 * psympriv.h (struct partial_symtab) <readin_p,
3668 get_compunit_symtab>: Add objfile parameter.
3669 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3670 Likewise.
3671 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3672 get_compunit_symtab>: Likewise.
3673 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3674
45940949
TT
36752020-05-27 Tom Tromey <tom@tromey.com>
3676
3677 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3678 member.
3679 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3680 (create_cu_from_index_list)
3681 (create_signatured_type_table_from_index)
3682 (create_signatured_type_table_from_debug_names)
3683 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3684 (dwarf2_create_include_psymtab)
3685 (create_debug_type_hash_table, add_type_unit)
3686 (create_type_unit_group, read_comp_units_from_section)
3687 (dwarf2_compute_name, create_cus_hash_table)
3688 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3689 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3690 obstack.
3691 (dw2_get_real_path): Likewise. Change argument to
3692 dwarf2_per_objfile.
3693
f8c6d152
LM
36942020-05-27 Luis Machado <luis.machado@linaro.org>
3695
3696 PR tdep/26000
3697 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3698 for ldrd (immediate).
3699
e98d2e6d
PW
37002020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701
3702 * command.h: Add comment giving the name of class_tui.
3703 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3704 create the fake command for the help for class_tui.
3705
53a47a3e
TT
37062020-05-26 Tom Tromey <tromey@adacore.com>
3707
3708 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3709 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3710 (val_atr): New function.
3711 (value_val_atr): Use it.
3712 * ada-valprint.c (print_optional_low_bound): Change low bound
3713 handling for enums.
3714 (val_print_packed_array_elements): Don't call discrete_position.
3715 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3716 discrete_position for enum types.
3717 * language.c (default_print_array_index): Change type.
3718 * language.h (struct language_defn) <la_print_array_index>: Add
3719 index_type parameter, change type of index_value.
3720 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3721 (default_print_array_index): Update.
3722 * valprint.c (maybe_print_array_index): Don't call
3723 value_from_longest. Update.
3724 (value_print_array_elements): Don't call discrete_position.
3725
0bc2354b
TT
37262020-05-26 Tom Tromey <tromey@adacore.com>
3727
3728 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3729 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3730
1218a4bf
CDA
37312020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3732
3733 PR gdb/13519
3734 * avr-tdep.c (avr_integer_to_address): Return data or code
3735 address accordingly to the second 'type' argument of the
3736 function.
3737
92651b1d
MW
37382020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3739
3740 * infcmd.c, inferior.h: (construct_inferior_arguments):
3741 Moved function from here to gdbsupport/common-inferior.{h,cc}
3742
0a4f5f8c
TT
37432020-05-23 Tom Tromey <tom@tromey.com>
3744
3745 Revert commit eca1f90c:
3746 * NEWS: Remove entry for completion styling.
3747 * completer.c (_rl_completion_prefix_display_length): Move
3748 declaration later.
3749 (gdb_fnprint): Revert.
3750 (gdb_display_match_list_1): Likewise.
3751 * cli/cli-style.c (completion_prefix_style)
3752 (completion_difference_style, completion_suffix_style): Remove.
3753 (_initialize_cli_style): Revert.
3754 * cli/cli-style.h (completion_prefix_style)
3755 (completion_difference_style, completion_suffix_style): Don't
3756 declare.
3757
e08bd6c5
PA
37582020-05-24 Pedro Alves <palves@redhat.com>
3759
3760 * symtab.c (completion_list_add_name): Return boolean indication
3761 of whether the symbol matched.
3762 (completion_list_add_symbol): Don't try to remove C++ aliases if
3763 the symbol didn't match in the first place.
3764 * symtab.h (completion_list_add_name): Return bool.
3765
ceacbf6e
SM
37662020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3769 type::field.
3770
26f16254
JB
37712020-05-23 Joel Brobecker <brobecker@adacore.com>
3772
3773 GDB 9.2 released.
3774
eca1f90c
TT
37752020-05-23 Tom Tromey <tom@tromey.com>
3776
3777 * NEWS: Add entry for completion styling.
3778 * completer.c (_rl_completion_prefix_display_length): Move
3779 declaration earlier.
3780 (gdb_fnprint): Use completion_style.
3781 (gdb_display_match_list_1): Likewise.
3782 * cli/cli-style.c (completion_prefix_style)
3783 (completion_difference_style, completion_suffix_style): New
3784 globals.
3785 (_initialize_cli_style): Register new globals.
3786 * cli/cli-style.h (completion_prefix_style)
3787 (completion_difference_style, completion_suffix_style): Declare.
3788
51e2cfa2
PA
37892020-05-23 Pedro Alves <palves@redhat.com>
3790
3791 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3792 (parse_escape): Use ISDIGIT instead of isdigit.
3793 (puts_debug): Use gdb_isprint instead of isprint.
3794 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3795 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3796 ISSPACE instead of isspace.
3797 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3798 instead of isspace.
3799 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3800 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3801 instead of isxdigit and ISDIGIT instead of isdigit.
3802
80fc5e77
SM
38032020-05-22 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * gdbtypes.h (struct type) <field>: New method.
3806 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3807 or type::field.
3808
3cabb6b0
SM
38092020-05-22 Simon Marchi <simon.marchi@efficios.com>
3810
3811 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3812 (TYPE_FIELDS): Use type::fields. Change all call sites that
3813 modify the propery to use type::set_fields instead.
3814
1f704f76
SM
38152020-05-22 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3818 type::num_fields instead.
3819
5e33d5f4
SM
38202020-05-22 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3823 methods.
3824 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3825 that modify the number of fields to use type::set_num_fields
3826 instead.
3827
9392ebb3
TT
38282020-05-22 Tom Tromey <tromey@adacore.com>
3829
3830 * compile/compile-object-load.h (munmap_list_free): Don't
3831 declare.
3832
7c13f4e8
AB
38332020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3834
3835 * annotate.c (annotate_source_line): Update return type, add call
3836 to update current symtab and line.
3837 * annotate.h (annotate_source_line): Update return type, and
3838 extend header comment.
3839 * source.c (info_line_command): Check annotation_level before
3840 calling annotate_source_line.
3841 * stack.c (print_frame_info): If calling annotate_source_line
3842 returns true, then don't print any other source line information.
3843
aa370940
SM
38442020-05-21 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3847
84d53fa9
SM
38482020-05-21 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * coffread.c (patch_type): Remove NULL check before xfree.
3851 * corefile.c (set_gnutarget): Likewise.
3852 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3853 * exec.c (build_section_table): Likewise.
3854 * remote.c (remote_target::pass_signals): Likewise.
3855 * utils.c (n_spaces): Likewise.
3856 * cli/cli-script.c (document_command): Likewise.
3857 * i386-windows-tdep.c (core_process_module_section): Likewise.
3858 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3859
9d428aae
SM
38602020-05-20 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * symfile.c (reread_symbols): Clear objfile's section_offsets
3863 vector and section indices, re-compute them by calling
3864 sym_offsets.
3865
250106a7
TT
38662020-05-20 Tom Tromey <tromey@adacore.com>
3867
3868 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3869 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3870
9a0bacfb
TV
38712020-05-20 Tom de Vries <tdevries@suse.de>
3872
3873 PR symtab/25833
3874 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3875
7b958a48
AM
38762020-05-20 Alan Modra <amodra@gmail.com>
3877
3878 PR 25993
3879 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3880 bfd_set_filename.
3881 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3882 passed to bfd_set_filename.
3883 * symfile-mem.c (add_vsyscall_page): Likewise for string
3884 passed to symbol_file_add_from_memory.
3885 (symbol_file_add_from_memory): Make name param a const char* and
3886 don't strdup.
3887
c7e97679
AM
38882020-05-20 Alan Modra <amodra@gmail.com>
3889
3890 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3891 rather than accessing bfd->filename directly.
3892 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3893 and use bfd_section_name.
3894 * dwarf2/frame.c (decode_frame_entry): Likewise.
3895 * exec.c (exec_set_section_address): Likewise.
3896 * solib-aix.c (solib_aix_bfd_open): Likewise.
3897 * stap-probe.c (get_stap_base_address): Likewise.
3898 * symfile.c (reread_symbols): Likewise.
3899
563c591b
TT
39002020-05-19 Tom Tromey <tromey@adacore.com>
3901
3902 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3903
f408d82c
SM
39042020-05-19 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3907
98c59b52
PA
39082020-05-19 Pedro Alves <palves@redhat.com>
3909
3910 * NEWS (set exec-file-mismatch): Adjust entry.
3911 * exec.c: Include "build-id.h".
3912 (validate_exec_file): Try to match build IDs instead of filenames.
3913 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3914 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3915 and pass down 'warn_if_slow'.
3916 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3917 gdb_bfd_open_closure to pass it down.
3918 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3919
4111f652
PA
39202020-05-19 Pedro Alves <palves@redhat.com>
3921
3922 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3923 * target.c (target_fileio_open_1): Rename to target_fileio_open
3924 and make extern. Use bool.
3925 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3926 (target_fileio_read_alloc_1): Adjust.
3927 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3928 (target_fileio_open_warn_if_slow): Delete declaration.
3929
ad80db5b
PA
39302020-05-19 Pedro Alves <palves@redhat.com>
3931
3932 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3933 Adjust all callers.
3934
1d6ce4d3
YS
39352020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3936
3937 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3938 whether disp is negative.
3939
9005fbbb
SM
39402020-05-19 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * symfile.h (struct symfile_segment_data)
3943 <~symfile_segment_data>: Remove.
3944 <segment_info>: Change to std::vector.
3945 * symfile.c (default_symfile_segments): Update.
3946 * elfread.c (elf_symfile_segments): Update.
3947
68b888ff
SM
39482020-05-19 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3951 <segments>: New.
3952 <segment_bases, segment_sizes>: Remove.
3953 * symfile.c (default_symfile_segments): Update.
3954 * elfread.c (elf_symfile_segments): Update.
3955 * remote.c (remote_target::get_offsets): Update.
3956 * solib-target.c (solib_target_relocate_section_addresses):
3957 Update.
3958
62982abd
SM
39592020-05-19 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * symfile.h (struct symfile_segment_data): Initialize fields.
3962 <~symfile_segment_data>: Add.
3963 (symfile_segment_data_up): New.
3964 (struct sym_fns) <sym_segments>: Return a
3965 symfile_segment_data_up.
3966 (default_symfile_segments): Return a symfile_segment_data_up.
3967 (free_symfile_segment_data): Remove.
3968 (get_symfile_segment_data): Return a symfile_segment_data_up.
3969 * symfile.c (default_symfile_segments): Likewise.
3970 (get_symfile_segment_data): Likewise.
3971 (free_symfile_segment_data): Remove.
3972 (symfile_find_segment_sections): Update.
3973 * elfread.c (elf_symfile_segments): Return a
3974 symfile_segment_data_up.
3975 * remote.c (remote_target::get_offsets): Update.
3976 * solib-target.c (solib_target_relocate_section_addresses):
3977 Update.
3978 * symfile-debug.c (debug_sym_segments): Return a
3979 symfile_segment_data_up.
3980
7f204339
RO
39812020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3982
e52a0f1b
RO
3983 PR build/25981
3984 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3985 Hardcode register numbers.
3986
7f204339
RO
3987 PR build/25981
3988 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3989 procfs_find_LDT_entry): Remove.
3990 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3991 procfs_find_LDT_entry): Remove.
3992 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3993 Remove.
3994
7f32a4d5
PA
39952020-05-17 Pedro Alves <palves@redhat.com>
3996 Andrew Burgess <andrew.burgess@embecosm.com>
3997 Keno Fischer <keno@juliacomputing.com>
3998
3999 PR gdb/25741
4000 * breakpoint.c (build_target_condition_list): Update comments.
4001 (build_target_command_list): Update comments and skip matching
4002 locations.
4003 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4004 a separate function. Simplify "set breakpoint auto-hw off"
4005 handling.
4006 (insert_breakpoints): Update comment.
4007 (tracepoint_locations_match): New parameter. For breakpoints,
4008 compare location types too, if the caller wants to.
4009 (handle_automatic_hardware_breakpoints): New functions.
4010 (bp_location_is_less_than): Also sort by location type and
4011 hardware breakpoint length.
4012 (update_global_location_list): Handle "set breakpoint auto-hw on"
4013 here.
4014 (update_breakpoint_locations): Ask breakpoint_locations_match to
4015 ignore location types.
4016
7d93a1e0
SM
40172020-05-16 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4020 type::name instead.
4021
d0e39ea2
SM
40222020-05-16 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (struct type) <name, set_name>: New methods.
4025 (TYPE_CODE): Use type::name. Change all call sites used to set
4026 the name to use type::set_name instead.
4027
2dab0c7b
TT
40282020-05-16 Tom Tromey <tom@tromey.com>
4029
4030 * top.c (quit_force): Update.
4031 * infrun.c (handle_no_resumed): Update.
4032 * top.h (all_uis): New function.
4033 (ALL_UIS): Remove.
4034
59f7bd8d
SM
40352020-05-16 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4038
9bf058f0
PA
40392020-05-16 Pedro Alves <palves@redhat.com>
4040
4041 * ia64-linux-nat.c
4042 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4043 Declare method.
4044 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4045
8f86ae1a
SM
40462020-05-15 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4049 (sparc64_adi_info): Likewise.
4050
d6bc0792
TT
40512020-05-15 Tom Tromey <tom@tromey.com>
4052
4053 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4054 block_objfile.
4055 (lookup_objfile_from_block): Remove.
4056 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4057 (lookup_global_symbol): Use block_objfile.
4058 * symtab.h (lookup_objfile_from_block): Don't declare.
4059 * printcmd.c (clear_dangling_display_expressions): Use
4060 block_objfile.
4061 * parse.c (operator_check_standard): Use block_objfile.
4062
8c14c3a3
TT
40632020-05-15 Tom Tromey <tom@tromey.com>
4064
4065 * language.c (language_alloc_type_symbol): Set
4066 SYMBOL_SECTION.
4067 * symtab.c (initialize_objfile_symbol): Remove.
4068 (allocate_symbol): Remove.
4069 (allocate_template_symbol): Remove.
4070 * dwarf2/read.c (fixup_go_packaging): Use "new".
4071 (new_symbol): Use "new".
4072 (read_variable): Don't call initialize_objfile_symbol. Use
4073 "new".
4074 (read_func_scope): Use "new".
4075 * xcoffread.c (process_xcoff_symbol): Don't call
4076 initialize_objfile_symbol.
4077 (SYMBOL_DUP): Remove.
4078 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4079 "new".
4080 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4081 (allocate_template_symbol): Don't declare.
4082 (struct symbol): Add copy constructor. Change defaults.
4083 * jit.c (finalize_symtab): Use "new".
4084 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4085 Use "new".
4086 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4087 (common_block_end): Use "new".
4088 * mdebugread.c (parse_symbol): Use "new".
4089 (new_symbol): Likewise.
4090
5b4a1a8d
PW
40912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4092
4093 * NEWS: Mention changes to help and apropos.
4094
57b4f16e
PW
40952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4096
4097 * command.h (enum command_class): Improve comments, document
4098 that class_alias is for user-defined aliases, give the class
4099 name for each class, remove unused class_xdb.
4100 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4101 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4102 by a precise class.
4103 * infcmd.c (_initialize_infcmd): Likewise.
4104 * reverse.c (_initialize_reverse): Likewise.
4105 * stack.c (_initialize_stack): Likewise.
4106 * symfile.c (_initialize_symfile): Likewise.
4107 * tracepoint.c (_initialize_tracepoint): Likewise.
4108
7c05caf7
PW
41092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4110
4111 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4112 when their aliased command is traversed.
4113 (help_cmd): Add fput_command_names_styled call to
4114 output command name and aliases when command has an alias.
4115
3b3aaacb
PW
41162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4117
4118 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4119 * cli/cli-decode.c (help_cmd_list): Declare as static,
4120 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4121 a command together with the command.
4122 (fput_command_name_styled, fput_command_names_styled): New functions.
4123 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4124 fput_command_name_styled.
4125 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4126 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4127
7aa1b46f
PW
41282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4129
4130 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4131 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4132 * command.h (cmd_show_list): Likewise.
4133 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4134 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4135
89bcba74
PW
41362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4137
4138 * unittests/command-def-selftests.c (traverse_command_structure):
4139 Verify all commands of a list have the same prefix command and
4140 that only the top cmdlist commands have a null prefix.
4141
3f4d92eb
PW
41422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4143
4144 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4145 as prefix, not one of its aliases.
4146 (set_cmd_prefix): Remove.
4147 (do_add_cmd): Centralize the setting of the prefix of a command, when
4148 command is defined after its full chain of prefix commands.
4149 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4150 (add_setshow_cmd_full): Likewise.
4151 (update_prefix_field_of_prefixed_commands): New function.
4152 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4153 update_prefix_field_of_prefixed_commands.
4154 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4155 addresses of remote_set_cmdlist and remote_show_cmdlist given
4156 as argument, not the address of an argument.
4157 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4158 * gdb/remote.c (_initialize_remote): Likewise.
4159
0605465f
PW
41602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4161
4162 * cli/cli-cmds.c (alias_command): Check for an existing alias
4163 using lookup_cmd_composition, as valid_command_p is too strict
4164 and forbids aliases that are the prefix of an existing alias
4165 or command.
4166 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4167 command is properly recognised as a valid command.
4168
58e6ac70
PW
41692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4170
4171 * unittests/help-doc-selftests.c: Rename to
4172 unittests/command-def-selftests.c
4173 * unittests/command-def-selftests.c (help_doc_tests): Update some
4174 comments.
4175 (command_structure_tests, traverse_command_structure): New namespace
4176 and function.
4177 (command_structure_invariants_tests): New function.
4178 (_initialize_command_def_selftests) Renamed from
4179 _initialize_help_doc_selftests, register command_structure_invariants
4180 selftest.
4181
a7b9ceb8
PW
41822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4183
4184 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4185 an alias of 'show'.
4186
b2188a06
JB
41872020-05-15 Joel Brobecker <brobecker@adacore.com>
4188
4189 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4190 ada_is_fixed_point_type. Update all callers.
4191 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4192 all callers.
4193 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4194 Update all callers.
4195 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4196 print_fixed_point_type. Update all callers.
4197 * ada-valprint.c (ada_value_print_num): Replace call to
4198 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4199
a51951c2
KB
42002020-05-14 Kevin Buettner <kevinb@redhat.com>
4201
4202 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4203 processors.
4204 (cpu_supports_bts): Add CV_AMD case.
4205
29d6859f
LM
42062020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4207 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * infrun.c (stop_all_threads): Collect multiple wait events at
4210 each pass.
4211
78134374
SM
42122020-05-14 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4215 type::code instead.
4216
67607e24
SM
42172020-05-14 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (struct type) <code, set_code>: New methods.
4220 (TYPE_CODE): Use type::code. Change all call sites used to set
4221 the code to use type::set_code instead.
4222
a05575d3
TBA
42232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4224 Tom de Vries <tdevries@suse.de>
4225 Pedro Alves <palves@redhat.com>
4226
4227 PR threads/25478
4228 * infrun.c (stop_all_threads): Do NOT ignore
4229 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4230 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4231 received.
4232 (handle_no_resumed): Remove code handling a live inferior with no
4233 threads.
4234 * remote.c (has_single_non_exited_thread): New.
4235 (remote_target::update_thread_list): Do not delete a thread if is
4236 the last thread of the process.
4237 * thread.c (thread_select): Call delete_exited_threads instead of
4238 prune_threads.
4239
6ad82919
TBA
42402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4241
4242 * infrun.c (stop_all_threads): Enable/disable thread events of all
4243 targets. Move a debug message denoting the end of the function
4244 into the SCOPED_EXIT block.
4245
d890404b
TBA
42462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4247
4248 * process-stratum-target.h: Include <set>.
4249 (all_non_exited_process_targets, switch_to_target_no_thread): New
4250 function declarations.
4251 * process-stratum-target.c (all_non_exited_process_targets)
4252 (switch_to_target_no_thread): New function implementations.
4253
293b3ebc
TBA
42542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4255
4256 * infrun.c (handle_inferior_event): Extract out a piece of code
4257 into...
4258 (mark_non_executing_threads): ...this new function.
4259
7ca9b62a
TBA
42602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4261
4262 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4263 use.
4264
fc75c28b
TBA
42652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 * regcache.c (regcache_read_pc_protected): New function
4268 implementation that returns 0 if the PC cannot read via
4269 'regcache_read_pc'.
4270 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4271 instead of 'regcache_read_pc'.
4272 (keep_going_pass_signal): Ditto.
4273
a89febbd
TT
42742020-05-13 Tom Tromey <tromey@adacore.com>
4275
4276 * ada-lang.c (align_value): Remove.
4277 (ada_template_to_fixed_record_type_1): Use align_up.
4278
f7e23710
TBA
42792020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4280
4281 * async-event.c: Update the copyright year.
4282 * async-event.h: Update the copyright year.
4283
02ff80c2
SM
42842020-05-12 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * objfiles.h (is_addr_in_objfile,
4287 shared_objfile_contains_address_p): Return bool.
4288 * objfile.c (is_addr_in_objfile,
4289 shared_objfile_contains_address_p): Return bool.
4290
4fd6c7e8
TT
42912020-05-11 Tom Tromey <tromey@adacore.com>
4292
4293 * cli/cli-cmds.c (info_command): Restore.
4294 (_initialize_cli_cmds): Use add_prefix_command for "info".
4295 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4296
5eb68a39
TT
42972020-05-11 Tom Tromey <tromey@adacore.com>
4298
4299 * ada-lang.c (ada_value_primitive_field): Now public.
4300 * ada-lang.h (ada_value_primitive_field): Declare.
4301 * ada-valprint.c (print_field_values): Use
4302 ada_value_primitive_field for wrapper fields.
4303
7666722f
TV
43042020-05-11 Tom de Vries <tdevries@suse.de>
4305
4306 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4307 MODULE_DOMAIN.
4308
3ee6bb11
TV
43092020-05-11 Tom de Vries <tdevries@suse.de>
4310
4311 PR symtab/25941
4312 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4313 with length 0, if not gdb-produced.
4314 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4315
43434996
TV
43162020-05-09 Tom de Vries <tdevries@suse.de>
4317
4318 PR gdb/25955
4319 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4320 calculation.
4321
2f78cffc
TT
43222020-05-09 Tom Tromey <tom@tromey.com>
4323
4324 * top.c (server_command): Now bool.
4325 * top.h (server_command): Now bool.
4326
4f7bc5ed
TT
43272020-05-08 Tom Tromey <tromey@adacore.com>
4328
4329 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4330 already being processed.
4331
8be4b118
TT
43322020-05-08 Tom Tromey <tom@tromey.com>
4333
4334 * printcmd.c (struct display) <next>: Remove.
4335 <display>: New constructor.
4336 <exp_string>: Now a std::string.
4337 <enabled_p>: Now a bool.
4338 (display_number): Move definition earlier.
4339 (displays): Rename from display_chain. Now a std::vector.
4340 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4341 (display_command): Update.
4342 (do_one_display, disable_display)
4343 (enable_disable_display_command, do_enable_disable_display):
4344 Update.
4345 (free_display): Remove.
4346 (clear_displays): Rewrite.
4347 (delete_display): Update.
4348 (map_display_numbers): Use function_view. Remove "data"
4349 parameter. Update.
4350 (do_delete_display): Remove.
4351 (undisplay_command): Update.
4352 (do_one_display, do_displays, disable_display)
4353 (info_display_command): Update.
4354 (do_enable_disable_display): Remove.
4355 (enable_disable_display_command)
4356 (clear_dangling_display_expressions): Update.
4357
94c93c35
TT
43582020-05-08 Tom Tromey <tom@tromey.com>
4359
4360 * symtab.c (set_symbol_cache_size)
4361 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4362 (maintenance_print_symbol_cache_statistics): Update.
4363 * symmisc.c (print_symbol_bcache_statistics)
4364 (print_objfile_statistics, maintenance_print_objfiles)
4365 (maintenance_info_symtabs, maintenance_check_symtabs)
4366 (maintenance_expand_symtabs, maintenance_info_line_tables):
4367 Update.
4368 * symfile-debug.c (set_debug_symfile): Update.
4369 * source.c (forget_cached_source_info): Update.
4370 * python/python.c (gdbpy_progspaces): Update.
4371 * psymtab.c (maintenance_info_psymtabs): Update.
4372 * probe.c (parse_probes): Update.
4373 * linespec.c (iterate_over_all_matching_symtabs)
4374 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4375 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4376 * exec.c (exec_target::close): Update.
4377 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4378 * breakpoint.c (print_one_breakpoint_location)
4379 (create_longjmp_master_breakpoint)
4380 (create_std_terminate_master_breakpoint): Update.
4381 * progspace.c (program_spaces): Now a std::vector.
4382 (maybe_new_address_space): Update.
4383 (add_program_space): Remove.
4384 (program_space::program_space): Update.
4385 (remove_program_space): Update.
4386 (number_of_program_spaces): Remove.
4387 (print_program_space, update_address_spaces): Update.
4388 * progspace.h (program_spaces): Change type.
4389 (ALL_PSPACES): Remove.
4390 (number_of_program_spaces): Don't declare.
4391 (struct program_space) <next>: Remove.
4392
a1fd1ac9
TT
43932020-05-08 Tom Tromey <tom@tromey.com>
4394
4395 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4396 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4397 (enable_break): Update.
4398 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4399 (frv_fdpic_find_canonical_descriptor): Update.
4400 (frv_fetch_objfile_link_map): Update.
4401 * progspace.c (program_space::free_all_objfiles): Update.
4402 (program_space::solibs): New method.
4403 * progspace.h (struct program_space) <solibs>: New method.
4404 * solist.h (master_so_list): Don't declare.
4405 (ALL_SO_LIBS): Remove.
4406 * solib.h (so_list_head): Remove.
4407 (update_solib_list): Update comment.
4408 * solib.c (master_so_list): Remove.
4409 (solib_used, update_solib_list, solib_add)
4410 (info_sharedlibrary_command, clear_solib)
4411 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4412
38eae084
TT
44132020-05-08 Tom Tromey <tom@tromey.com>
4414
4415 * extension.c (extension_languages): Now a std::array.
4416 (ALL_EXTENSION_LANGUAGES): Remove.
4417 (get_ext_lang_defn, get_ext_lang_of_file)
4418 (eval_ext_lang_from_control_command): Update.
4419 (finish_ext_lang_initialization)
4420 (auto_load_ext_lang_scripts_for_objfile)
4421 (ext_lang_type_printers::ext_lang_type_printers)
4422 (apply_ext_lang_type_printers)
4423 (ext_lang_type_printers::~ext_lang_type_printers)
4424 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4425 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4426 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4427 (get_matching_xmethod_workers, ext_lang_colorize)
4428 (ext_lang_before_prompt): Update.
4429 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4430
596dc4ad
TT
44312020-05-08 Tom Tromey <tom@tromey.com>
4432
4433 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4434 overload.
4435 <swap_string, m_string>: Remove.
4436 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4437 Update.
4438 * stabsread.c (define_symbol, read_type): Update.
4439 * linespec.c (find_linespec_symbols): Update.
4440 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4441 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4442 * dbxread.c (read_dbx_symtab): Update.
4443 * cp-support.h (cp_canonicalize_string_full)
4444 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4445 Return unique_xmalloc_ptr.
4446 * cp-support.c (inspect_type): Update.
4447 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4448 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4449 Likewise.
4450 * c-typeprint.c (print_name_maybe_canonical): Update.
4451 * break-catch-throw.c (check_status_exception_catchpoint):
4452 Update.
4453
bf4cb9be
TV
44542020-05-08 Tom de Vries <tdevries@suse.de>
4455
4456 * infrun.c (follow_fork): Copy current_line and current_symtab to
4457 child thread.
4458
a1b68f28
SM
44592020-05-07 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * async-event.c (struct async_signal_handler, struct
4462 async_event_handler): Reformat, remove typedef.
4463
98d48915
SM
44642020-05-07 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4467 access thistype->main_type->dyn_prop_list directly.
4468
7aa91313
SM
44692020-05-07 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4472 (remove_dyn_prop): Remove. Update all users to use
4473 type::remove_dyn_prop.
4474 * gdbtypes.c (remove_dyn_prop): Rename to...
4475 (type::remove_dyn_prop): ... this.
4476
5c54719c
SM
44772020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4478
4479 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4480 (add_dyn_prop): Remove. Update all users to use
4481 type::add_dyn_prop.
4482 * gdbtypes.c (add_dyn_prop): Rename to...
4483 (type::add_dyn_prop): ... this.
4484
24e99c6c
SM
44852020-05-07 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4488 (get_dyn_prop): Remove. Update all users to use
4489 type::dyn_prop.
4490 * gdbtypes.c (get_dyn_prop): Rename to...
4491 (type::dyn_prop): ... this.
4492
0d4bf016
SM
44932020-05-06 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4496
ac4a4f1c
SM
44972020-05-06 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4500 instruction, skip it if it's there.
4501
a3bbacc1
SM
45022020-05-05 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4505
c3236f84
SM
45062020-05-04 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4509 * gdbtypes.c (recursive_dump_type): Remove use of
4510 TYPE_INCOMPLETE.
4511
3b6acaee
TT
45122020-05-03 Tom Tromey <tom@tromey.com>
4513
4514 * breakpoint.c (catch_command, tcatch_command): Remove.
4515 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4516 add_show_prefix_cmd.
4517 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4518 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4519 Remove.
4520 (add_internal_problem_command): Use add_basic_prefix_cmd,
4521 add_show_prefix_cmd.
4522 * mips-tdep.c (set_mipsfpu_command): Remove.
4523 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4524 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4525 (_initialize_index_cache): Use add_basic_prefix_cmd.
4526 * memattr.c (dummy_cmd): Remove.
4527 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4528 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4529 (_initialize_tui_win): Use add_basic_prefix_cmd,
4530 add_show_prefix_cmd.
4531 * cli/cli-logging.c (set_logging_command): Remove.
4532 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4533 add_show_prefix_cmd.
4534 (show_logging_command): Remove.
4535 * target.c (target_command): Remove.
4536 (add_target): Use add_basic_prefix_cmd.
4537
a51119cd
HD
45382020-05-02 Hannes Domani <ssbssa@yahoo.de>
4539
4540 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4541
652fc23a 45422020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4543
652fc23a
PW
4544 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4545 info_command.
4546
117539e6
KR
45472020-04-30 Kamil Rytarowski <n54@gmx.com>
4548
4549 * nbsd-nat.c (nbsd_enable_proc_events)
4550 (nbsd_nat_target::post_startup_inferior): Add.
4551 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4552 (nbsd_nat_target::update_thread_list): Rewrite.
4553 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4554 "PTRACE_LWP_CREATE".
4555 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4556
102e38eb 45572020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4558
102e38eb
PW
4559 * stack.c (_initialize_stack): Remove duplicated creation
4560 of "frame" command and "f" alias.
4561
ee9d1e5f
HD
45622020-04-30 Hannes Domani <ssbssa@yahoo.de>
4563
4564 PR gdb/18706
4565 * gdbtypes.c (check_typedef): Calculate size of array of
4566 stubbed type.
4567
627c7fb8
HD
45682020-04-30 Hannes Domani <ssbssa@yahoo.de>
4569
4570 PR gdb/15559
4571 * i386-tdep.c (i386_push_dummy_call): Call
4572 i386_thiscall_push_dummy_call.
4573 (i386_thiscall_push_dummy_call): New function.
4574 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4575 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4576 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4577
ffc2844e
SM
45782020-04-29 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * gdbarch.sh (do_read): Add shellcheck disable directive for
4581 warning SC2162.
4582
1207375d
SM
45832020-04-29 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4586 "referenced but not assigned" warning.
4587
9fdb2916
SM
45882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdbarch.sh: Remove code that sets fallbackdefault.
4591
759cea5e
SM
45922020-04-29 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbarch.sh: Use shell operators && and || instead of
4595 -a and -o.
4596
cb02ab24
SM
45972020-04-29 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbarch.sh: Use $(...) instead of `...`.
4600
a6fc5ffc
SM
46012020-04-29 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbarch.sh: Use double quotes around variables.
4604
8d113d13
SM
46052020-04-29 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * gdbarch.sh: Use %s with printf, instead of variables in the
4608 format string.
4609
ed6acedd
TT
46102020-04-29 Tom Tromey <tromey@adacore.com>
4611
4612 PR ada/25875:
4613 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4614 type fields here.
4615 (read_enumeration_type): Call
4616 update_enumeration_type_from_children later. Update comments.
4617 (process_enumeration_scope): Don't create type fields.
4618
b68b1b58
KR
46192020-04-29 Kamil Rytarowski <n54@gmx.com>
4620
4621 * nbsd-tdep.c: Include "xml-syscall.h".
4622 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4623
f94b2e03
KR
46242020-04-29 Kamil Rytarowski <n54@gmx.com>
4625
4626 * nbsd-nat.c: Include "sys/wait.h".
4627 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4628 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4629 (nbsd_nat_target::remove_exec_catchpoint)
4630 (nbsd_nat_target::set_syscall_catchpoint): Add.
4631 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4632 (nbsd_nat_target::insert_exec_catchpoint)
4633 (nbsd_nat_target::remove_exec_catchpoint)
4634 (nbsd_nat_target::set_syscall_catchpoint): Add.
4635 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4636 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4637 `nbsd_get_syscall_number'.
4638
fc49bc72
TT
46392020-04-29 Tom Tromey <tom@tromey.com>
4640
4641 * stack.c (print_block_frame_labels): Remove.
4642
d642b692
HD
46432020-04-29 Hannes Domani <ssbssa@yahoo.de>
4644
4645 PR gdb/17320
4646 * ada-valprint.c (val_print_packed_array_elements): Move array
4647 end bracket to new line.
4648 (ada_val_print_string): Remove extra spaces before first array
4649 element.
4650 * c-valprint.c (c_value_print_array): Likewise.
4651 * m2-valprint.c (m2_print_array_contents): Likewise.
4652 (m2_value_print_inner): Likewise.
4653 * p-valprint.c (pascal_value_print_inner): Likewise.
4654 * valprint.c (generic_val_print_array): Likewise.
4655 (value_print_array_elements): Move first array element and array
4656 end bracket to new line.
4657
ea90f227
TV
46582020-04-29 Tom de Vries <tdevries@suse.de>
4659
4660 PR symtab/25889
4661 * linespec.c (find_method): Fix ix calculation.
4662
4498ef4f
KR
46632020-04-28 Kamil Rytarowski <n54@gmx.com>
4664
4665 * syscalls/update-netbsd.sh: New file.
4666 * syscalls/netbsd.xml: Regenerate.
4667 * data-directory/Makefile.in: Register `netbsd.xml' in
4668 `SYSCALLS_FILES'.
4669
a55e30b5
SM
46702020-04-28 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * syscalls/update-freebsd.sh: Add double quotes.
4673
2b2fbab8
TT
46742020-04-28 Tom Tromey <tom@tromey.com>
4675
4676 * NEWS: Update.
4677 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4678 (cmdpy_init): Allow class_tui.
4679
a65189c9
TV
46802020-04-28 Mark Williams <mark@myosotissp.com>
4681
4682 PR gdb/24480
4683 * dwarf2read.c: Add missing assingments to list_in_scope when
4684 start_symtab was already called.
4685
1b95cdb7
SM
46862020-04-28 Simon Marchi <simon.marchi@efficios.com>
4687
4688 PR gdb/25881
4689 * dwarf2/read.c (offset_map_type): Use
4690 gdb:hash_enum<sect_offset> as hash function.
4691
15cd93d0
TV
46922020-04-28 Tom de Vries <tdevries@suse.de>
4693
4694 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4695 with DW_AT_signature.
4696
1eb39914
SM
46972020-04-27 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * configure.ac: Remove check for fs_base/gs_base in
4700 user_regs_struct.
4701 * configure: Re-generate.
4702 * config.in: Re-generate.
4703 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4704 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4705 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4706
991a3e2e
LM
47072020-04-27 Luis Machado <luis.machado@linaro.org>
4708
4709 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4710 problematic inline frame unwinding situation.
4711 * frame.c (frame_id_computed_p): New function.
4712 * frame.h (frame_id_computed_p): New prototype.
4713
361ba0e8
TT
47142020-04-26 Tom Tromey <tom@tromey.com>
4715
4716 * command.h (enum command_class) <class_pseudo>: Remove.
4717
bc3609fd
PW
47182020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4719
4720 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4721 and whitespace.
4722
b9771db7
KR
47232020-04-25 Kamil Rytarowski <n54@gmx.com>
4724
ec16513e
SM
4725 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4726 `PT_GET_PROCESS_STATE' block.
b9771db7 4727
7151c1af
TT
47282020-04-24 Tom Tromey <tom@tromey.com>
4729
4730 * symtab.h (symbol_get_demangled_name): Don't declare.
4731 * symtab.c (symbol_get_demangled_name): Remove.
4732 (general_symbol_info::natural_name)
4733 (general_symbol_info::demangled_name): Update.
4734
906bb4c5
TT
47352020-04-24 Tom Tromey <tom@tromey.com>
4736
4737 PR rust/25025:
4738 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4739
bcfe6157
TT
47402020-04-24 Tom Tromey <tom@tromey.com>
4741
4742 PR symtab/12707:
4743 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4744 exists.
4745 (new_symbol): Likewise.
4746 * compile/compile-object-load.c (get_out_value_type): Use
4747 symbol_matches_search_name.
4748
f049a313
TT
47492020-04-24 Tom Tromey <tom@tromey.com>
4750
4751 * dwarf2/read.c (add_partial_symbol): Do not call
4752 compute_and_set_names.
4753
76e288d1
TT
47542020-04-24 Tom Tromey <tom@tromey.com>
4755
4756 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4757 overload.
4758
2467f4f6
TT
47592020-04-24 Tom Tromey <tom@tromey.com>
4760
4761 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4762 (add_psymbol_to_list): New overload. Make old overload call new
4763 one.
4764 * psympriv.h (add_psymbol_to_list): New overload.
4765
e61108c9
TT
47662020-04-24 Tom Tromey <tom@tromey.com>
4767
4768 * dwarf2/read.c (partial_die_info::read) <case
4769 DW_AT_linkage_name>: Use value_as_string.
4770 (dwarf2_string_attr): Use value_as_string.
4771 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4772 method.
4773 * dwarf2/attribute.c (attribute::value_as_string): New method.
4774
8c87a452
TT
47752020-04-24 Tom Tromey <tom@tromey.com>
4776
4777 * symtab.c (general_symbol_info::natural_name)
4778 (general_symbol_info::demangled_name): Check for language_rust.
4779
787de330
TT
47802020-04-24 Tom Tromey <tom@tromey.com>
4781
4782 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4783 (dwarf2_physname): ... from here.
4784 (partial_die_info::read): Add Rust "{" hack.
4785
ff985671
TT
47862020-04-24 Tom Tromey <tom@tromey.com>
4787
4788 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4789 method.
4790 (symbol_set_demangled_name): Don't declare.
4791 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4792 symbol_set_demangled_name.
4793 (general_symbol_info::set_language)
4794 (general_symbol_info::compute_and_set_names): Update.
4795 * minsyms.c (minimal_symbol_reader::install): Update.
4796 * dwarf2/read.c (new_symbol): Update.
4797
1acda803
TT
47982020-04-24 Tom Tromey <tromey@adacore.com>
4799
4800 PR python/23662:
4801 * python/py-type.c (convert_field): Handle
4802 FIELD_LOC_KIND_DWARF_BLOCK.
4803 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4804 (typy_get_dynamic): Nw function.
4805 (type_object_getset): Add "dynamic".
4806 * NEWS: Add entry.
4807
d656f129
TT
48082020-04-24 Tom Tromey <tromey@adacore.com>
4809
4810 * ada-typeprint.c (print_choices, print_variant_part)
4811 (print_record_field_types_dynamic): New functions.
4812 (print_record_field_types): Use print_record_field_types_dynamic.
4813
7d79de9a
TT
48142020-04-24 Tom Tromey <tromey@adacore.com>
4815
4816 * dwarf2/read.c (handle_data_member_location): New overload.
4817 (dwarf2_add_field): Use it.
4818 (decode_locdesc): Add "computed" parameter. Update comment.
4819 * gdbtypes.c (is_dynamic_type_internal): Also look for
4820 FIELD_LOC_KIND_DWARF_BLOCK.
4821 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4822 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4823 virtual base classes.
4824 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4825 FIELD_LOC_KIND_DWARF_BLOCK.
4826
f8e89861
TT
48272020-04-24 Tom Tromey <tromey@adacore.com>
4828
4829 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4830 * gdbtypes.c (is_dynamic_type_internal): Check
4831 TYPE_HAS_DYNAMIC_LENGTH.
4832 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4833 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4834 New macros.
4835 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4836 constant.
4837
9c6a1327
TT
48382020-04-24 Tom Tromey <tromey@adacore.com>
4839
4840 * dwarf2/read.c (struct variant_field): Rewrite.
4841 (struct variant_part_builder): New.
4842 (struct nextfield): Remove "variant" field. Add "offset".
4843 (struct field_info): Add "current_variant_part" and
4844 "variant_parts".
4845 (alloc_discriminant_info): Remove.
4846 (alloc_rust_variant): New function.
4847 (quirk_rust_enum): Update.
4848 (dwarf2_add_field): Set "offset" member. Don't handle
4849 DW_TAG_variant_part.
4850 (offset_map_type): New typedef.
4851 (convert_variant_range, create_one_variant)
4852 (create_one_variant_part, create_variant_parts)
4853 (add_variant_property): New functions.
4854 (dwarf2_attach_fields_to_type): Call add_variant_property.
4855 (read_structure_type): Don't handle DW_TAG_variant_part.
4856 (handle_variant_part, handle_variant): New functions.
4857 (handle_struct_member_die): Use them.
4858 (process_structure_scope): Don't handle variant parts.
4859 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4860 (struct discriminant_info): Remove.
4861 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4862 (struct main_type) <flag_discriminated_union>: Remove.
4863 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4864 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4865 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4866 Update.
4867 * valops.c (value_union_variant): Remove.
4868 * value.h (value_union_variant): Don't declare.
4869
b249d2c2
TT
48702020-04-24 Tom Tromey <tromey@adacore.com>
4871
4872 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4873 (ada_value_primitive_packed_val): Update.
4874 * ada-valprint.c (ada_value_print_1): Update.
4875 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4876 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4877 just an address. Use evaluate_for_locexpr_baton.
4878 (dwarf2_evaluate_property): Update.
4879 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4880 array_view.
4881 * findvar.c (default_read_var_value): Update.
4882 * gdbtypes.c (compute_variant_fields_inner)
4883 (resolve_dynamic_type_internal): Update.
4884 (resolve_dynamic_type): Change type of valaddr parameter.
4885 * gdbtypes.h (resolve_dynamic_type): Update.
4886 * valarith.c (value_subscripted_rvalue): Update.
4887 * value.c (value_from_contents_and_address): Update.
4888
61122aa9
TT
48892020-04-24 Tom Tromey <tromey@adacore.com>
4890
4891 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4892 "push_initial_value" parameter.
4893 (dwarf2_evaluate_property): Likewise.
4894 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4895
ef83a141
TT
48962020-04-24 Tom Tromey <tromey@adacore.com>
4897
4898 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4899 (variant::matches, compute_variant_fields_recurse)
4900 (compute_variant_fields_inner, compute_variant_fields): New
4901 functions.
4902 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4903 Use resolved_type after type is made.
4904 (operator==): Add new cases.
4905 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4906 (struct discriminant_range, struct variant, struct variant_part):
4907 New.
4908 (union dynamic_prop_data) <variant_parts, original_type>: New
4909 members.
4910 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4911 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4912 constants.
4913 * value.c (unpack_bits_as_long): Now public.
4914 * value.h (unpack_bits_as_long): Declare.
4915
675127ec
TT
49162020-04-24 Tom Tromey <tromey@adacore.com>
4917
4918 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4919 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4920
9852ceef
HD
49212020-04-24 Hannes Domani <ssbssa@yahoo.de>
4922
4923 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4924
7632c6ce
KR
49252020-04-24 Kamil Rytarowski <n54@gmx.com>
4926
4927 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4928 (remove_fork_catchpoint, post_startup_inferior)
4929 (post_attach): Move...
4930 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4931 (remove_fork_catchpoint, post_startup_inferior)
4932 (post_attach): ...here.
4933 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4934 (remove_fork_catchpoint, post_startup_inferior)
4935 (post_attach): Move...
4936 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4937 (remove_fork_catchpoint, post_startup_inferior)
4938 (post_attach): ...here.
4939
7be2bb4f
TT
49402020-04-24 Tom Tromey <tromey@adacore.com>
4941
4942 * nat/windows-nat.h (struct windows_thread_info)
4943 <pc_adjusted>: New member.
4944 * windows-nat.c (windows_fetch_one_register): Check
4945 pc_adjusted.
4946 (windows_nat_target::get_windows_debug_event)
4947 (windows_nat_target::wait): Set pc_adjusted.
4948
f80cb3b4
TV
49492020-04-24 Tom de Vries <tdevries@suse.de>
4950
4951 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4952 Run gdb-add-index inside temp dir.
4953
29514b87
TT
49542020-04-23 Tom Tromey <tromey@adacore.com>
4955
4956 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4957 in loop.
4958
5939967b
LM
49592020-04-23 Luis Machado <luis.machado@linaro.org>
4960
4961 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4962 get_frame_register instead of gdbarch_unwind_pc.
4963
70bc38f5
TV
49642020-04-23 Tom de Vries <tdevries@suse.de>
4965
4966 * symtab.c (lookup_global_symbol): Prefer def over decl.
4967
de82891c
TV
49682020-04-23 Tom de Vries <tdevries@suse.de>
4969
4970 PR symtab/25807
4971 * block.c (best_symbol, better_symbol): Promote to external.
4972 * block.h (best_symbol, better_symbol): Declare.
4973 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4974 decl.
4975
ecc6c606
TT
49762020-04-23 Tom Tromey <tromey@adacore.com>
4977
4978 PR ada/25837:
4979 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4980 "const char *", not a "const std::string &".
4981 <name_and_matcher::operator==>: Update.
4982 * unittests/lookup_name_info-selftests.c: Change type of
4983 "result".
4984
740480b8
TT
49852020-04-23 Tom Tromey <tom@tromey.com>
4986
4987 * inferior.h (iterate_over_inferiors): Don't declare.
4988 * inferior.c (iterate_over_inferiors): Remove.
4989 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4990 Remove.
4991 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4992 use iterate_over_inferiors.
4993 (darwin_resume_inferior_it)
4994 (struct resume_inferior_threads_param)
4995 (darwin_resume_inferior_threads_it): Remove.
4996 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4997
ae3ab1f0
TV
49982020-04-23 Tom de Vries <tdevries@suse.de>
4999
5000 * blockframe.c (find_pc_partial_function): Use
5001 find_pc_sect_compunit_symtab rather than
5002 objfile->sf->qf->find_pc_sect_compunit_symtab.
5003
317d2668
TV
50042020-04-22 Tom de Vries <tdevries@suse.de>
5005
5006 PR symtab/25764
5007 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5008 in psymtabs.
5009
eea9e357
TV
50102020-04-22 Tom de Vries <tdevries@suse.de>
5011
5012 PR symtab/25801
5013 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5014 symtabs.
5015
3d5afab3
TV
50162020-04-22 Tom de Vries <tdevries@suse.de>
5017
5018 PR symtab/25700
5019 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5020 CU if already created.
5021
d43b7a2d
TBA
50222020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5023
5024 * infrun.c (displaced_step_fixup): Switch to the event_thread
5025 before calling displaced_step_restore, not after.
5026
d89edf9b
MM
50272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5028
5029 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5030 its inferior is not recorded by us.
5031 (record_btrace_target_open): Replace call to
5032 all_non_exited_threads () with call to current_inferior
5033 ()->non_exited_threads ().
5034 (record_btrace_target::stop_recording): Likewise.
5035 (record_btrace_target::close): Likewise.
5036 (record_btrace_target::wait): Likewise.
5037 (record_btrace_target::record_stop_replaying): Likewise.
5038
5897fd49
MM
50392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5040
5041 * btrace.c (btrace_enable): Throw an error on double enables and
5042 when enabling recording fails.
5043 (btrace_disable): Throw an error if the thread is not recorded.
5044
1a476b6d
MM
50452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5046
5047 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5048 request if we do not have a thread_info.
5049
4778a5f8
TV
50502020-04-21 Tom de Vries <tdevries@suse.de>
5051
5052 PR gdb/25471
5053 * thread.c
5054 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5055 exception in get_frame_id.
5056
0fa7617d
TT
50572020-04-20 Tom Tromey <tromey@adacore.com>
5058
5059 * python/python.c (struct gdbpy_event): Mark move constructor as
5060 noexcept.
5061 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5062 constructor as noexcept.
5063 * completer.h (struct completion_result): Mark move constructor as
5064 noexcept.
5065 * completer.c (completion_result::completion_result): Use
5066 initialization style. Don't call reset_match_list.
5067
ad23bda0
MS
50682020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5069
5070 * MAINTAINERS (Write After Approval): Add myself.
5071
45e1f031
TT
50722020-04-18 Tom Tromey <tom@tromey.com>
5073
5074 * windows-tdep.c (init_w32_command_list)
5075 (w32_prefix_command_valid): Restore.
5076 (_initialize_windows_tdep): Call init_w32_command_list.
5077
08feed99
TT
50782020-04-18 Tom Tromey <tom@tromey.com>
5079
5080 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5081 * value.c (value_fn_field): Update.
5082 * valops.c (find_function_in_inferior)
5083 (value_allocate_space_in_inferior): Update.
5084 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5085 Update.
5086 * tui/tui-source.c (tui_source_window::set_contents): Update.
5087 * symtab.c (lookup_global_or_static_symbol)
5088 (find_function_start_sal_1, skip_prologue_sal)
5089 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5090 * symmisc.c (dump_msymbols, dump_symtab_1)
5091 (maintenance_print_one_line_table): Update.
5092 * symfile.c (init_entry_point_info, section_is_mapped)
5093 (list_overlays_command, simple_read_overlay_table)
5094 (simple_overlay_update_1): Update.
5095 * stap-probe.c (handle_stap_probe): Update.
5096 * stabsread.c (dbx_init_float_type, define_symbol)
5097 (read_one_struct_field, read_enum_type, read_range_type): Update.
5098 * source.c (info_line_command): Update.
5099 * python/python.c (gdbpy_source_objfile_script)
5100 (gdbpy_execute_objfile_script): Update.
5101 * python/py-type.c (save_objfile_types): Update.
5102 * python/py-objfile.c (py_free_objfile): Update.
5103 * python/py-inferior.c (python_new_objfile): Update.
5104 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5105 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5106 (maintenance_check_psymtabs): Update.
5107 * printcmd.c (info_address_command): Update.
5108 * objfiles.h (struct objfile) <arch>: New method, from
5109 get_objfile_arch.
5110 (get_objfile_arch): Don't declare.
5111 * objfiles.c (get_objfile_arch): Remove.
5112 (filter_overlapping_sections): Update.
5113 * minsyms.c (msymbol_is_function): Update.
5114 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5115 (output_nondebug_symbol): Update.
5116 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5117 (mdebug_expand_psymtab): Update.
5118 * machoread.c (macho_add_oso_symfile): Update.
5119 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5120 Update.
5121 * linux-fork.c (checkpoint_command): Update.
5122 * linespec.c (convert_linespec_to_sals): Update.
5123 * jit.c (finalize_symtab): Update.
5124 * infrun.c (insert_exception_resume_from_probe): Update.
5125 * ia64-tdep.c (ia64_find_unwind_table): Update.
5126 * hppa-tdep.c (internalize_unwinds): Update.
5127 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5128 Update.
5129 * gcore.c (call_target_sbrk): Update.
5130 * elfread.c (record_minimal_symbol, elf_symtab_read)
5131 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5132 (elf_gnu_ifunc_resolve_by_got): Update.
5133 * dwarf2/read.c (create_addrmap_from_index)
5134 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5135 (read_debug_names_from_section)
5136 (process_psymtab_comp_unit_reader, add_partial_symbol)
5137 (add_partial_subprogram, process_full_comp_unit)
5138 (read_file_scope, read_func_scope, read_lexical_block_scope)
5139 (read_call_site_scope, dwarf2_ranges_read)
5140 (dwarf2_record_block_ranges, dwarf2_add_field)
5141 (mark_common_block_symbol_computed, read_tag_pointer_type)
5142 (read_tag_string_type, dwarf2_init_float_type)
5143 (dwarf2_init_complex_target_type, read_base_type)
5144 (partial_die_info::read, partial_die_info::read)
5145 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5146 (dwarf2_fetch_die_loc_sect_off): Update.
5147 * dwarf2/loc.c (dwarf2_find_location_expression)
5148 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5149 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5150 (dwarf2_loc_desc_get_symbol_read_needs)
5151 (locexpr_describe_location_piece, locexpr_describe_location_1)
5152 (loclist_describe_location): Update.
5153 * dwarf2/index-write.c (write_debug_names): Update.
5154 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5155 * dtrace-probe.c (dtrace_process_dof): Update.
5156 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5157 (process_one_symbol): Update.
5158 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5159 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5160 (coff_read_enum_type): Update.
5161 * cli/cli-cmds.c (edit_command, list_command): Update.
5162 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5163 * breakpoint.c (create_overlay_event_breakpoint)
5164 (create_longjmp_master_breakpoint)
5165 (create_std_terminate_master_breakpoint)
5166 (create_exception_master_breakpoint, get_sal_arch): Update.
5167 * block.c (block_gdbarch): Update.
5168 * annotate.c (annotate_source_line): Update.
5169
0743fc83
TT
51702020-04-17 Tom Tromey <tromey@adacore.com>
5171
5172 * auto-load.c (show_auto_load_cmd): Remove.
5173 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5174 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5175 (maintenance_print_arc_command): Remove.
5176 * tui/tui-win.c (tui_command): Remove.
5177 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5178 * tui/tui-layout.c (tui_layout_command): Remove.
5179 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5180 * python/python.c (user_set_python, user_show_python): Remove.
5181 (_initialize_python): Use add_basic_prefix_cmd,
5182 add_show_prefix_cmd.
5183 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5184 (install_gdb_commands): Use add_basic_prefix_cmd,
5185 add_show_prefix_cmd.
5186 (info_guile_command): Remove.
5187 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5188 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5189 add_show_prefix_cmd.
5190 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5191 Remove do_set and do_show parameters.
5192 * cli/cli-style.c (set_style, show_style): Remove.
5193 (_initialize_cli_style): Use add_basic_prefix_cmd,
5194 add_show_prefix_cmd.
5195 (cli_style_option::add_setshow_commands): Remove do_set and
5196 do_show parameters.
5197 (cli_style_option::add_setshow_commands): Use
5198 add_basic_prefix_cmd, add_show_prefix_cmd.
5199 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5200 (set_style_name): Remove.
5201 * cli/cli-dump.c (dump_command, append_command): Remove.
5202 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5203 (tekhex_dump_command, binary_dump_command)
5204 (binary_append_command): Remove.
5205 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5206 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5207 (init_w32_command_list): Remove; move into ...
5208 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5209 * valprint.c (set_print, show_print, set_print_raw)
5210 (show_print_raw): Remove.
5211 (_initialize_valprint): Use add_basic_prefix_cmd,
5212 add_show_prefix_cmd.
5213 * typeprint.c (set_print_type, show_print_type): Remove.
5214 (_initialize_typeprint): Use add_basic_prefix_cmd,
5215 add_show_prefix_cmd.
5216 * record.c (set_record_command, show_record_command): Remove.
5217 (_initialize_record): Use add_basic_prefix_cmd,
5218 add_show_prefix_cmd.
5219 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5220 add_show_prefix_cmd.
5221 (info_command, show_command, set_debug, show_debug): Remove.
5222 * top.h (set_history, show_history): Don't declare.
5223 * top.c (set_history, show_history): Remove.
5224 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5225 (unset_tdesc_cmd): Remove.
5226 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5227 add_show_prefix_cmd.
5228 * symtab.c (info_module_command): Remove.
5229 (_initialize_symtab): Use add_basic_prefix_cmd.
5230 * symfile.c (overlay_command): Remove.
5231 (_initialize_symfile): Use add_basic_prefix_cmd.
5232 * sparc64-tdep.c (info_adi_command): Remove.
5233 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5234 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5235 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5236 add_show_prefix_cmd.
5237 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5238 (_initialize_serial): Use add_basic_prefix_cmd,
5239 add_show_prefix_cmd.
5240 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5241 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5242 add_show_prefix_cmd.
5243 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5244 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5245 add_show_prefix_cmd.
5246 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5247 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5248 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5249 add_show_prefix_cmd.
5250 * remote.c (remote_command, set_remote_cmd): Remove.
5251 (_initialize_remote): Use add_basic_prefix_cmd.
5252 * record-full.c (set_record_full_command)
5253 (show_record_full_command): Remove.
5254 (_initialize_record_full): Use add_basic_prefix_cmd,
5255 add_show_prefix_cmd.
5256 * record-btrace.c (cmd_set_record_btrace)
5257 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5258 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5259 (cmd_show_record_btrace_pt): Remove.
5260 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5261 add_show_prefix_cmd.
5262 * ravenscar-thread.c (set_ravenscar_command)
5263 (show_ravenscar_command): Remove.
5264 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 * mips-tdep.c (show_mips_command, set_mips_command)
5267 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5268 add_show_prefix_cmd.
5269 * maint.c (maintenance_command, maintenance_info_command)
5270 (maintenance_check_command, maintenance_print_command)
5271 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5272 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5273 add_show_prefix_cmd.
5274 (show_per_command_cmd): Remove.
5275 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5276 Remove.
5277 (maintenance_show_test_settings_cmd): Remove.
5278 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5279 add_show_prefix_cmd.
5280 * maint-test-options.c (maintenance_test_options_command):
5281 Remove.
5282 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5283 * macrocmd.c (macro_command): Remove
5284 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5285 * language.c (set_check, show_check): Remove.
5286 (_initialize_language): Use add_basic_prefix_cmd,
5287 add_show_prefix_cmd.
5288 * infcmd.c (unset_command): Remove.
5289 (_initialize_infcmd): Use add_basic_prefix_cmd.
5290 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5291 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5292 add_show_prefix_cmd.
5293 * go32-nat.c (go32_info_dos_command): Remove.
5294 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5295 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5296 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5297 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5298 (_initialize_frame): Use add_basic_prefix_cmd,
5299 add_show_prefix_cmd.
5300 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5301 (_initialize_dcache): Use add_basic_prefix_cmd,
5302 add_show_prefix_cmd.
5303 * cp-support.c (maint_cplus_command): Remove.
5304 (_initialize_cp_support): Use add_basic_prefix_cmd.
5305 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5306 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5307 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5308 add_basic_prefix_cmd, add_show_prefix_cmd.
5309 * breakpoint.c (save_command): Remove.
5310 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5311 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5312 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5313 add_show_prefix_cmd.
5314 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5315 (set_ada_command, show_ada_command): Remove.
5316 (_initialize_ada_language): Use add_basic_prefix_cmd,
5317 add_show_prefix_cmd.
5318 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5319
3557f442
KR
53202020-04-16 Kamil Rytarowski <n54@gmx.com>
5321
5322 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5323 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5324
16197208
SM
53252020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5328 warning messages.
5329
00ac85d3
SM
53302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5333 import table is not at beginning of .idata section.
5334
381ce63f
PA
53352020-04-16 Pedro Alves <palves@redhat.com>
5336
5337 * inferior.c (delete_inferior): Use delete operator directly
5338 instead of delete_program_space.
5339 * progspace.c (add_program_space): New, factored out from
5340 program_space::program_space.
5341 (remove_program_space): New, factored out from
5342 delete_program_space.
5343 (program_space::program_space): Remove intro comment. Rewrite.
5344 (program_space::~program_space): Remove intro comment. Call
5345 remove_program_space.
5346 (delete_program_space): Delete.
5347 * progspace.h (program_space::program_space): Make explicit. Move
5348 intro comment here, adjusted.
5349 (program_space::~program_space): Move intro comment here,
5350 adjusted.
5351 (delete_program_space): Remove.
5352
a010605f
TT
53532020-04-16 Tom Tromey <tromey@adacore.com>
5354
5355 * windows-nat.c (windows_nat::handle_access_violation): New
5356 function.
5357 * nat/windows-nat.h (handle_access_violation): Declare.
5358 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5359 windows-nat.c. Call handle_access_violation.
5360
efba5c23
TV
53612020-04-16 Tom de Vries <tdevries@suse.de>
5362
5363 PR symtab/25791
5364 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5365 CUs without psymtab.
5366
97ed802d
KB
53672020-04-16 Kevin Buettner <kevinb@redhat.com>
5368
5369 * python/python.c (do_start_initialization): Don't call
5370 PyEval_InitThreads for Python 3.9 and beyond.
5371
c7d64809
KR
53722020-04-15 Kamil Rytarowski <n54@gmx.com>
5373
5374 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5375 thread functions.
5376 (obsd_nat_target::wait): Likewise.
5377
ce127a96
TT
53782020-04-15 Tom Tromey <tromey@adacore.com>
5379
5380 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5381 (DEBUG_EXCEPT): Use debug_printf.
5382
99f1bc6a
AB
53832020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * completer.c (class completion_tracker::completion_hash_entry)
5386 <hash_name>: New member function.
5387 (completion_tracker::discard_completions): New callback to hash a
5388 completion_hash_entry, pass this to htab_create_alloc.
5389
a0e9b532
JT
53902016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5391
5392 * windows-nat.c (windows_make_so): Warn rather than stopping with
5393 an error if realpath() fails.
5394
06ca5dd4
KR
53952020-04-14 Kamil Rytarowski <n54@gmx.com>
5396
5397 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5398 (nbsd_nat_target::info_proc): Add do_status.
5399
194d088f
TV
54002020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5401 Tom de Vries <tdevries@suse.de>
5402
5403 PR symtab/25718
5404 * psympriv.h (struct partial_symtab::read_symtab)
5405 (struct partial_symtab::expand_psymtab)
5406 (struct partial_symtab::read_dependencies): Update comments.
5407 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5408 read_symtab for includer.
5409 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5410 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5411 (struct dwarf2_include_psymtab::m_readin): Remove.
5412 (struct dwarf2_include_psymtab::includer): New member function.
5413 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5414
c1a66c06
TV
54152020-04-14 Tom de Vries <tdevries@suse.de>
5416
5417 PR symtab/25720
5418 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5419 with NULL symbol_matcher and lookup_name.
5420 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5421 and lookup_name.
5422 * dwarf2/read.c (dw2_expand_symtabs_matching)
5423 (dw2_debug_names_expand_symtabs_matching): Same.
5424 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5425 Make lookup_name a pointer. Update comment.
5426 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5427 lookup_name being a pointer.
5428 * symfile.c (expand_symtabs_matching): Same.
5429 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5430 * linespec.c (iterate_over_all_matching_symtabs): Same.
5431
400b5eca
TT
54322020-04-13 Tom Tromey <tom@tromey.com>
5433
5434 * run-on-main-thread.c: Update include.
5435 * unittests/main-thread-selftests.c: Update include.
5436 * tui/tui-win.c: Update include.
5437 * tui/tui-io.c: Update include.
5438 * tui/tui-interp.c: Update include.
5439 * tui/tui-hooks.c: Update include.
5440 * top.h: Update include.
5441 * top.c: Update include.
5442 * ser-base.c: Update include.
5443 * remote.c: Update include.
5444 * remote-notif.c: Update include.
5445 * remote-fileio.c: Update include.
5446 * record-full.c: Update include.
5447 * record-btrace.c: Update include.
5448 * python/python.c: Update include.
5449 * posix-hdep.c: Update include.
5450 * mingw-hdep.c: Update include.
5451 * mi/mi-main.c: Update include.
5452 * mi/mi-interp.c: Update include.
5453 * main.c: Update include.
5454 * linux-nat.c: Update include.
5455 * interps.c: Update include.
5456 * infrun.c: Update include.
5457 * inf-loop.c: Update include.
5458 * event-top.c: Update include.
5459 * event-loop.c: Move to ../gdbsupport/.
5460 * event-loop.h: Move to ../gdbsupport/.
5461 * async-event.h: Update include.
5462 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5463
93b54c8e
TT
54642020-04-13 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-win.c: Include async-event.h.
5467 * remote.c: Include async-event.h.
5468 * remote-notif.c: Include async-event.h.
5469 * record-full.c: Include async-event.h.
5470 * record-btrace.c: Include async-event.h.
5471 * infrun.c: Include async-event.h.
5472 * event-top.c: Include async-event.h.
5473 * event-loop.h: Move some declarations to async-event.h.
5474 * event-loop.c: Don't include ser-event.h or top.h. Move some
5475 code to async-event.c.
5476 * async-event.h: New file.
5477 * async-event.c: New file.
5478 * Makefile.in (COMMON_SFILES): Add async-event.c.
5479 (HFILES_NO_SRCDIR): Add async-event.h.
5480
c1cd3163
TT
54812020-04-13 Tom Tromey <tom@tromey.com>
5482
5483 * utils.c (flush_streams): New function.
5484 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5485
29f2bf4f
TT
54862020-04-13 Tom Tromey <tom@tromey.com>
5487
5488 * event-loop.c (handle_file_event): Use warning, not
5489 printf_unfiltered.
5490
98029d02
TT
54912020-04-13 Tom Tromey <tom@tromey.com>
5492
5493 * event-loop.c: Include <chrono>.
5494
06cc9596
TT
54952020-04-13 Tom Tromey <tom@tromey.com>
5496
5497 * gdb_select.h: Move to ../gdbsupport/.
5498 * event-loop.c: Update include path.
5499 * top.c: Update include path.
5500 * ser-base.c: Update include path.
5501 * ui-file.c: Update include path.
5502 * ser-tcp.c: Update include path.
5503 * guile/scm-ports.c: Update include path.
5504 * posix-hdep.c: Update include path.
5505 * ser-unix.c: Update include path.
5506 * gdb_usleep.c: Update include path.
5507 * mingw-hdep.c: Update include path.
5508 * inflow.c: Update include path.
5509 * infrun.c: Update include path.
5510 * event-top.c: Update include path.
5511
8ae8e197
TT
55122020-04-13 Tom Tromey <tom@tromey.com>
5513
5514 * configure: Rebuild.
5515 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5516
58cf28e8
TT
55172020-04-13 Tom Tromey <tom@tromey.com>
5518
5519 * event-loop.h (start_event_loop): Don't declare.
5520 * event-loop.c (start_event_loop): Move...
5521 * main.c (start_event_loop): ...here. Now static.
5522
b7f999ae
SDJ
55232020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5524
5525 * MAINTAINERS: Update my email address.
5526
1085dfd4
KR
55272020-04-12 Kamil Rytarowski <n54@gmx.com>
5528
5529 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5530 IP_ALL.
5531
49d1d1f5
KR
55322020-04-12 Kamil Rytarowski <n54@gmx.com>
5533
5534 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5535 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5536
b4848d2a
KR
55372020-04-12 Kamil Rytarowski <n54@gmx.com>
5538
5539 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5540 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5541
51c133d5
KR
55422020-04-12 Kamil Rytarowski <n54@gmx.com>
5543
5544 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5545
54b8cbd0
KR
55462020-04-11 Kamil Rytarowski <n54@gmx.com>
5547
5548 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5549 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5550 (nbsd_nat_target::info_proc): New functions.
5551 * nbsd-nat.c (kinfo_get_vmmap): New function.
5552 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5553 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5554 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5555 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5556 functions.
5557 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5558 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5559 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5560 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5561 (KINFO_VME_FLAG_GROWS_DOWN): New.
5562
cf83625d
AS
55632020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5564
5565 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5566 bit shift.
5567
0c4311ab
TT
55682020-04-10 Tom Tromey <tromey@adacore.com>
5569
5570 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5571
3e65b3e9
TT
55722020-04-10 Tom Tromey <tromey@adacore.com>
5573
5574 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5575 separate debug files.
5576
13302e95
HD
55772020-04-10 Hannes Domani <ssbssa@yahoo.de>
5578
5579 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5580 Move to...
5581 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5582 ... here.
5583 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5584 Check for STATUS_WX86_BREAKPOINT.
5585 (windows_nat_target::wait): Same.
5586
bdfc1e8a
TV
55872020-04-10 Tom de Vries <tdevries@suse.de>
5588
5589 PR cli/25808
5590 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5591
f4460aec
SM
55922020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5595 (Write After Approval): Remove Tom de Vries.
5596
a25198bb
BE
55972020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5598
5599 revert partially:
5600 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5601
aac66a4c
SM
5602 * buildsym.c (record_line): Fix undefined behavior and preserve
5603 lines at eof.
a25198bb 5604
206c98a6
KR
56052020-04-09 Kamil Rytarowski <n54@gmx.com>
5606
5607 * auxv.h (svr4_auxv_parse): New.
5608 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5609 and generic_auxv_parse.
5610 (svr4_auxv_parse): Add.
5611 * obsd-tdep.c: Include "auxv.h".
5612 (obsd_auxv_parse): Remove.
5613 (obsd_init_abi): Remove comment.
5614 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5615 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5616 * nbsd-tdep.c: Include "auxv.h".
5617 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5618
71fbdbaf
TT
56192020-04-08 Tom Tromey <tromey@adacore.com>
5620
5621 * nat/windows-nat.h (last_wait_event): Don't declare.
5622 (wait_for_debug_event): Update comment.
5623 * nat/windows-nat.c (last_wait_event): Now static.
5624
2c1d95e8
TT
56252020-04-08 Tom Tromey <tromey@adacore.com>
5626
5627 * windows-nat.c (wait_for_debug_event): Move to
5628 nat/windows-nat.c.
5629 * nat/windows-nat.h (wait_for_debug_event): Declare.
5630 * nat/windows-nat.c (wait_for_debug_event): Move from
5631 windows-nat.c. No longer static.
5632
d2977bc4
TT
56332020-04-08 Tom Tromey <tromey@adacore.com>
5634
5635 * windows-nat.c (get_windows_debug_event): Use
5636 fetch_pending_stop.
5637 * nat/windows-nat.h (fetch_pending_stop): Declare.
5638 * nat/windows-nat.c (fetch_pending_stop): New function.
5639
e758e19c
TT
56402020-04-08 Tom Tromey <tromey@adacore.com>
5641
5642 * windows-nat.c (windows_continue): Use matching_pending_stop and
5643 continue_last_debug_event.
5644 * nat/windows-nat.h (matching_pending_stop)
5645 (continue_last_debug_event): Declare.
5646 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5647 (matching_pending_stop, continue_last_debug_event): New
5648 functions.
5649
8d30e395
TT
56502020-04-08 Tom Tromey <tromey@adacore.com>
5651
5652 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5653 (handle_exception_result): Move to nat/windows-nat.h.
5654 (DEBUG_EXCEPTION_SIMPLE): Remove.
5655 (windows_nat::handle_ms_vc_exception): New function.
5656 (handle_exception): Move to nat/windows-nat.c.
5657 (get_windows_debug_event): Update.
5658 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5659 nat/windows-nat.c.
5660 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5661 (handle_exception_result): Move from windows-nat.c.
5662 (handle_exception): Declare.
5663 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5664 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5665 windows-nat.c.
5666
29de418d
TT
56672020-04-08 Tom Tromey <tromey@adacore.com>
5668
5669 * windows-nat.c (exception_count, event_count): Remove.
5670 (handle_exception, get_windows_debug_event)
5671 (do_initial_windows_stuff): Update.
5672
a816ba18
TT
56732020-04-08 Tom Tromey <tromey@adacore.com>
5674
5675 * windows-nat.c (windows_nat::handle_load_dll)
5676 (windows_nat::handle_unload_dll): Rename. No longer static.
5677 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5678 Declare.
5679
a00caa12
TT
56802020-04-08 Tom Tromey <tromey@adacore.com>
5681
5682 * complaints.h (stop_whining): Declare at top-level.
5683 (complaint): Don't declare stop_whining.
5684
d41b524f
TT
56852020-04-08 Tom Tromey <tromey@adacore.com>
5686
5687 * windows-nat.c (windows_nat::handle_output_debug_string):
5688 Rename. No longer static.
5689 * nat/windows-nat.h (handle_output_debug_string): Declare.
5690
3c76026d
TT
56912020-04-08 Tom Tromey <tromey@adacore.com>
5692
5693 * windows-nat.c (current_process_handle, current_process_id)
5694 (main_thread_id, last_sig, current_event, last_wait_event)
5695 (current_windows_thread, desired_stop_thread_id, pending_stops)
5696 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5697 (display_selectors, fake_create_process)
5698 (get_windows_debug_event): Update.
5699 * nat/windows-nat.h (current_process_handle, current_process_id)
5700 (main_thread_id, last_sig, current_event, last_wait_event)
5701 (current_windows_thread, desired_stop_thread_id, pending_stops)
5702 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5703 * nat/windows-nat.c (current_process_handle, current_process_id)
5704 (main_thread_id, last_sig, current_event, last_wait_event)
5705 (current_windows_thread, desired_stop_thread_id, pending_stops)
5706 (siginfo_er): New globals. Move from windows-nat.c.
5707
9d8679cc
TT
57082020-04-08 Tom Tromey <tromey@adacore.com>
5709
5710 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5711 (handle_load_dll): Update.
5712 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5713
28688adf
TT
57142020-04-08 Tom Tromey <tromey@adacore.com>
5715
5716 * windows-nat.c (enum thread_disposition_type): Move to
5717 nat/windows-nat.h.
5718 (windows_nat::thread_rec): Rename from thread_rec. No longer
5719 static.
5720 (windows_add_thread, windows_nat_target::fetch_registers)
5721 (windows_nat_target::store_registers, handle_exception)
5722 (windows_nat_target::resume, get_windows_debug_event)
5723 (windows_nat_target::get_tib_address)
5724 (windows_nat_target::thread_name)
5725 (windows_nat_target::thread_alive): Update.
5726 * nat/windows-nat.h (enum thread_disposition_type): Move from
5727 windows-nat.c.
5728 (thread_rec): Declare.
5729
4834dad0
TT
57302020-04-08 Tom Tromey <tromey@adacore.com>
5731
5732 * windows-nat.c: Add "using namespace".
5733 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5734 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5735
65bafd5b
TT
57362020-04-08 Tom Tromey <tromey@adacore.com>
5737
5738 * nat/windows-nat.h (struct windows_thread_info): Declare
5739 destructor.
5740 * nat/windows-nat.c (~windows_thread_info): New.
5741
0a4afda3
TT
57422020-04-08 Tom Tromey <tromey@adacore.com>
5743
5744 PR gdb/22992
5745 * windows-nat.c (current_event): Update comment.
5746 (last_wait_event, desired_stop_thread_id): New globals.
5747 (struct pending_stop): New.
5748 (pending_stops): New global.
5749 (windows_nat_target) <stopped_by_sw_breakpoint>
5750 <supports_stopped_by_sw_breakpoint>: New methods.
5751 (windows_fetch_one_register): Add assertions. Adjust PC.
5752 (windows_continue): Handle pending stops. Suspend other threads
5753 when stepping. Use last_wait_event
5754 (wait_for_debug_event): New function.
5755 (get_windows_debug_event): Use wait_for_debug_event. Handle
5756 pending stops. Queue spurious stops.
5757 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5758 (windows_nat_target::kill): Use wait_for_debug_event.
5759 * nat/windows-nat.h (struct windows_thread_info)
5760 <stopped_at_software_breakpoint>: New field.
5761 * nat/windows-nat.c (windows_thread_info::resume): Clear
5762 stopped_at_software_breakpoint.
5763
8e61ebec
TT
57642020-04-08 Tom Tromey <tromey@adacore.com>
5765
5766 * windows-nat.c (enum thread_disposition_type): New.
5767 (thread_rec): Replace "get_context" parameter with "disposition";
5768 change type.
5769 (windows_add_thread, windows_nat_target::fetch_registers)
5770 (windows_nat_target::store_registers, handle_exception)
5771 (windows_nat_target::resume, get_windows_debug_event)
5772 (windows_nat_target::get_tib_address)
5773 (windows_nat_target::thread_name)
5774 (windows_nat_target::thread_alive): Update.
5775
98a03287
TT
57762020-04-08 Tom Tromey <tromey@adacore.com>
5777
5778 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5779 (windows_continue): Use windows_continue::resume.
5780 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5781 resume>: Declare new methods.
5782 * nat/windows-nat.c: New file.
5783 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5784
7c7411bc
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (windows_add_thread, windows_delete_thread)
5788 (windows_nat_target::fetch_registers)
5789 (windows_nat_target::store_registers, fake_create_process)
5790 (windows_nat_target::resume, windows_nat_target::resume)
5791 (get_windows_debug_event, windows_nat_target::wait)
5792 (windows_nat_target::pid_to_str)
5793 (windows_nat_target::get_tib_address)
5794 (windows_nat_target::get_ada_task_ptid)
5795 (windows_nat_target::thread_name)
5796 (windows_nat_target::thread_alive): Use lwp, not tid.
5797
2950fdf7
TT
57982020-04-08 Tom Tromey <tromey@adacore.com>
5799
5800 * windows-nat.c (handle_exception)
5801 (windows_nat_target::thread_name): Update.
5802 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5803 <name>: Now unique_xmalloc_ptr.
5804
62fe396b
TT
58052020-04-08 Tom Tromey <tromey@adacore.com>
5806
5807 * windows-nat.c (thread_rec)
5808 (windows_nat_target::fetch_registers): Update.
5809 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5810 Update comment.
5811 <debug_registers_changed, reload_context>: Now bool.
5812
e9534bd2
TT
58132020-04-08 Tom Tromey <tromey@adacore.com>
5814
5815 * windows-nat.c (windows_add_thread): Use new.
5816 (windows_init_thread_list, windows_delete_thread): Use delete.
5817 (get_windows_debug_event): Update.
5818 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5819 destructor, and initializers.
5820
ae1f8880
TT
58212020-04-08 Tom Tromey <tromey@adacore.com>
5822
5823 * windows-nat.c (struct windows_thread_info): Remove.
5824 * nat/windows-nat.h: New file.
5825
55a1e039
TT
58262020-04-08 Tom Tromey <tromey@adacore.com>
5827
5828 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5829 (thread_rec, windows_add_thread, windows_delete_thread)
5830 (windows_continue): Update.
5831
93366324
TT
58322020-04-08 Tom Tromey <tromey@adacore.com>
5833
5834 * windows-nat.c (struct windows_thread_info): Remove typedef.
5835 (thread_head): Remove.
5836 (thread_list): New global.
5837 (thread_rec, windows_add_thread, windows_init_thread_list)
5838 (windows_delete_thread, windows_continue): Update.
5839
0f2265e2
SM
58402020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 * windows-tdep.h (windows_init_abi): Add comment.
5843 (cygwin_init_abi): New declaration.
5844 * windows-tdep.c: Split signal enumeration in two, one for
5845 Windows and one for Cygwin.
5846 (windows_gdb_signal_to_target): Only deal with signal of the
5847 Windows OS ABI.
5848 (cygwin_gdb_signal_to_target): New function.
5849 (windows_init_abi): Rename to windows_init_abi_common, don't set
5850 gdb_signal_to_target gdbarch method. Add new new function with
5851 this name.
5852 (cygwin_init_abi): New function.
5853 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5854 comment. Don't call windows_init_abi.
5855 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5856 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5857 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5858 i386_windows_init_abi_common, don't call windows_init_abi. Add
5859 a new function of this name.
5860 (i386_cygwin_init_abi): New function.
5861 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5862 OS ABI Cygwin.
5863
3810f182
SM
58642020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5867 parameter.c.
5868 (dwarf2_read_gdb_index): Update.
5869
063f8e80
KR
58702020-04-07 Kamil Rytarowski <n54@gmx.com>
5871
5872 * nbsd-tdep.c: Include "objfiles.h".
5873 (nbsd_skip_solib_resolver): New.
5874 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5875
85a9510c 58762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5877
5878 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5879 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5880 with DW_LLE_base_addressx are being emitted in DWARFv5.
5881 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5882 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5883 unsigned integer.
5884
9fc3eaae 58852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5886
5887 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5888 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5889 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5890 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5891 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5892 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5893 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5894
5895
41144253 58962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5897
5898 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5899 (read_loclist_index): New function definition.
5900 (lookup_loclist_base): New function definition.
5901 (read_loclist_header): New function definition.
5902 (dwarf2_cu): Add loclist_base and loclist_header field.
5903 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5904 (read_full_die_1): Read the value of DW_AT_loclists_base.
5905 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5906 (read_attribute_value): Handle DW_FORM_loclistx.
5907 (skip_one_die): Handle DW_FORM_loclistx.
5908 (loclist_header): New structure declaration.
5909 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5910
9f4e76a4
SM
59112020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5914 constructor. Remove `addr` parameter from other constructor and
5915 add `per_cu` parameter.
5916 * dwarf2/read.c (create_partial_symtab): Update.
5917
25c11aca
TV
59182020-04-07 Tom de Vries <tdevries@suse.de>
5919
5920 PR symtab/25796
5921 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5922 (partial_die_info::fixup): Inherit has_const_value.
5923
5707e24b
TV
59242020-04-07 Tom de Vries <tdevries@suse.de>
5925
5926 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5927 symbols without address.
5928
05f00e22
KR
59292020-04-06 Kamil Rytarowski <n54@gmx.com>
5930
5931 * nbsd-nat.h (struct thread_info): Add forward declaration.
5932 (nbsd_nat_target::thread_alive): Add.
5933 (nbsd_nat_target::thread_name): Likewise.
5934 (nbsd_nat_target::update_thread_list): Likewise.
5935 (update_thread_list::post_attach): Likewise.
5936 (post_attach::pid_to_str): Likewise.
5937 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5938 (nbsd_thread_lister): Add.
5939 (nbsd_nat_target::thread_alive): Likewise.
5940 (nbsd_nat_target::thread_name): Likewise.
5941 (nbsd_add_threads): Likewise.
5942 (update_thread_list::post_attach): Likewise.
5943 (nbsd_nat_target::update_thread_list): Likewise.
5944 (post_attach::pid_to_str): Likewise.
5945
6ee448cc
TT
59462020-04-06 Tom Tromey <tromey@adacore.com>
5947
5948 * ada-valprint.c (print_variant_part): Extract the variant field.
5949 (print_field_values): Use the field as the outer value when
5950 recursing.
5951
dea34e8c
TT
59522020-04-06 Tom Tromey <tromey@adacore.com>
5953
5954 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5955 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5956 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5957 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5958 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5959
93689ce9
TT
59602020-04-06 Tom Tromey <tromey@adacore.com>
5961
5962 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5963 TYPE_CODE_ERROR.
5964
79743962
KR
59652020-04-06 Kamil Rytarowski <n54@gmx.com>
5966
5967 * nbsd-tdep.c: Include "gdbarch.h".
5968 Define enum with NetBSD signal numbers.
5969 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5970 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5971 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5972 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5973 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5974 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5975 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5976 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5977 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5978 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5979 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5980 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5981
9e7c9a03
HD
59822020-04-03 Hannes Domani <ssbssa@yahoo.de>
5983
5984 PR gdb/25325
5985 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5986
d9e49b61
TT
59872020-04-03 Tom Tromey <tromey@adacore.com>
5988
5989 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5990 Read constant block.
5991
e0fc5c3f
SM
59922020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5993
5994 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5995 (gdb_bfd_get_full_section_contents): New declaration.
5996 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5997 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5998 gdb_bfd_get_full_section_contents.
5999
e2ff18a0
SM
60002020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * exec.c (build_section_table): Replace internal_error with
6003 gdb_assert.
6004 (section_table_xfer_memory_partial): Likewise.
6005 * mdebugread.c (parse_partial_symbols): Likewise.
6006 * psymtab.c (lookup_partial_symbol): Likewise.
6007 * utils.c (wrap_here): Likewise.
6008
0830d301
TT
60092020-04-02 Tom Tromey <tromey@adacore.com>
6010
6011 * f-lang.c (build_fortran_types): Use arch_type to initialize
6012 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6013
e7da7f8f
TT
60142020-04-02 Tom Tromey <tromey@adacore.com>
6015
6016 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6017 of attributes.
6018
c90d28ac
AB
60192020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6020 Bernd Edlinger <bernd.edlinger@hotmail.de>
6021 Tom Tromey <tromey@adacore.com>
6022
6023 * buildsym.c (buildsym_compunit::record_line): Remove
6024 deduplication code.
6025
1aa98955
TV
60262020-04-02 Tom de Vries <tdevries@suse.de>
6027
6028 PR ada/24671
6029 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6030
d3214198
TV
60312020-04-02 Tom de Vries <tdevries@suse.de>
6032
6033 * dwarf2/read.c (dwarf2_gdb_index_functions,
6034 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6035 NULL.
6036 * psymtab.c (psym_lookup_global_symbol_language): New function.
6037 (psym_functions): Init psym_lookup_global_symbol_language with
6038 psym_lookup_global_symbol_language.
6039 * symfile-debug.c (debug_sym_quick_functions): Init
6040 lookup_global_symbol_language with NULL.
6041 * symfile.c (set_initial_language): Remove fixme comment.
6042 * symfile.h (struct quick_symbol_functions): Add
6043 lookup_global_symbol_language.
6044 * symtab.c (find_quick_global_symbol_language): New function.
6045 (find_main_name): Use find_quick_global_symbol_language.
6046
2836752f
SM
60472020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6050
64dc2d4b
BE
60512020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6052
6053 * buildsym.c (record_line): Fix undefined behavior and preserve
6054 lines at eof.
6055
bbe3dc41
BE
60562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6057
6058 * buildsym.c (record_line): Fix the resizing condition.
6059
6b4a335b
TT
60602020-04-01 Tom Tromey <tom@tromey.com>
6061
6062 * value.h (value_literal_complex): Add comment.
6063 * valops.c (value_literal_complex): Refer to value.h.
6064
3638a098
TT
60652020-04-01 Tom Tromey <tom@tromey.com>
6066
6067 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6068 (scalar_type): New rule, from typebase.
6069 (typebase): Use scalar_type. Recognize complex types.
6070 (field_name): Handle FLOAT_KEYWORD.
6071 (ident_tokens): Add _Complex and __complex__.
6072
c34e8714
TT
60732020-04-01 Tom Tromey <tom@tromey.com>
6074
6075 PR exp/25299:
6076 * valarith.c (promotion_type, complex_binop): New functions.
6077 (scalar_binop): Handle complex numbers. Use promotion_type.
6078 (value_pos, value_neg, value_complement): Handle complex numbers.
6079
fa649bb7
TT
60802020-04-01 Tom Tromey <tom@tromey.com>
6081
6082 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6083 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6084 (parse_number): Handle complex numbers.
6085
981c08ce
TT
60862020-04-01 Tom Tromey <tom@tromey.com>
6087
6088 * c-valprint.c (c_decorations): Change complex suffix to "i".
6089
4c99290d
TT
60902020-04-01 Tom Tromey <tom@tromey.com>
6091
6092 * valprint.c (generic_value_print_complex): Use accessors.
6093 * value.h (value_real_part, value_imaginary_part): Declare.
6094 * valops.c (value_real_part, value_imaginary_part): New
6095 functions.
6096 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6097
5b930b45
TT
60982020-04-01 Tom Tromey <tom@tromey.com>
6099
6100 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6101 (read_range_type): Update.
6102 * mdebugread.c (basic_type): Update.
6103 * go-lang.c (build_go_types): Use init_complex_type.
6104 * gdbtypes.h (struct main_type) <complex_type>: New member.
6105 (init_complex_type): Update.
6106 (arch_complex_type): Don't declare.
6107 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6108 Make name if none given. Use alloc_type_copy. Look for cached
6109 complex type.
6110 (arch_complex_type): Remove.
6111 (gdbtypes_post_init): Use init_complex_type.
6112 * f-lang.c (build_fortran_types): Use init_complex_type.
6113 * dwarf2/read.c (read_base_type): Update.
6114 * d-lang.c (build_d_types): Use init_complex_type.
6115 * ctfread.c (read_base_type): Update.
6116
53cccef1
TBA
61172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6118
6119 * infrun.c (stop_all_threads): Update assertion, plus when
6120 stopping threads, take into account that we might be trying
6121 to stop an all-stop target.
6122 (stop_waiting): Call 'stop_all_threads' if there exists a
6123 non-stop target.
6124
a0714d30
TBA
61252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6126
6127 * target.h (exists_non_stop_target): New function declaration.
6128 * target.c (exists_non_stop_target): New function.
6129
60e22c1e
HD
61302020-04-01 Hannes Domani <ssbssa@yahoo.de>
6131
6132 PR gdb/24789
6133 * eval.c (is_integral_or_integral_reference): New function.
6134 (evaluate_subexp_standard): Allow integer references in
6135 pointer arithmetic.
6136
e139a727
TBA
61372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6138
6139 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6140 check for no ptid in the stop reply when the target is non-stop.
6141
e0802d59
TT
61422020-04-01 Tom Tromey <tromey@adacore.com>
6143
6144 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6145 "name" parameter to rvalue reference. Initialize m_name_holder.
6146 <lookup_name_info>: New overloads.
6147 <name>: Return gdb::string_view.
6148 <c_str>: New method.
6149 <make_ignore_params>: Update.
6150 <search_name_hash>: Update.
6151 <language_lookup_name>: Return const char *.
6152 <m_name>: Change type.
6153 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6154 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6155 (lookup_name_info::match_any): Update.
6156 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6157 Update.
6158 * minsyms.c (linkage_name_str): Update.
6159 * language.c (default_symbol_name_matcher): Update.
6160 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6161 Update.
6162 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6163 (ada_lookup_name_info::ada_lookup_name_info): Update.
6164 (literal_symbol_name_matcher): Update.
6165
8c072cb6
TT
61662020-04-01 Tom Tromey <tromey@adacore.com>
6167
6168 * psymtab.c (psymtab_search_name): Remove function.
6169 (psym_lookup_symbol): Create search name and lookup name here.
6170 (lookup_partial_symbol): Remove "name" parameter; add
6171 lookup_name.
6172 (psym_expand_symtabs_for_function): Update.
6173
6f29a534
TT
61742020-03-31 Joel Jones <joelkevinjones@gmail.com>
6175
6176 PR tui/25597:
6177 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6178
af62665e
TT
61792020-03-31 Tom Tromey <tromey@adacore.com>
6180
6181 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6182 memcpy.
6183
d1a89da5
NC
61842020-03-30 Nelson Chu <nelson.chu@sifive.com>
6185
6186 * features/riscv/32bit-csr.xml: Regenerated.
6187 * features/riscv/64bit-csr.xml: Regenerated.
6188
d8af9068
TT
61892020-03-30 Tom Tromey <tromey@adacore.com>
6190
6191 * ada-valprint.c (print_variant_part): Update.
6192 * ada-lang.h (ada_which_variant_applies): Update.
6193 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6194 outer_valaddr parameters; replace with "outer" value parameter.
6195 (to_fixed_variant_branch_type): Update.
6196
227c0bf4
PFC
61972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6198
6199 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6200 <list>. Remove inclusion of observable.h.
6201 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6202 (struct arch_lwp_info): New struct.
6203 (class ppc_linux_dreg_interface): New class.
6204 (struct ppc_linux_process_info): New struct.
6205 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6206 <low_new_clone, low_forget_process, low_prepare_to_resume>
6207 <copy_thread_dreg_state, mark_thread_stale>
6208 <mark_debug_registers_changed, register_hw_breakpoint>
6209 <clear_hw_breakpoint, register_wp, clear_wp>
6210 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6211 <num_memory_accesses, get_trigger_type>
6212 <create_watchpoint_request, hwdebug_point_cmp>
6213 <init_arch_lwp_info, get_arch_lwp_info>
6214 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6215 methods.
6216 <struct ptid_hash>: New inner struct.
6217 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6218 members.
6219 (saved_dabr_value, hwdebug_info, max_slots_number)
6220 (struct hw_break_tuple, struct thread_points, ppc_threads)
6221 (have_ptrace_hwdebug_interface)
6222 (hwdebug_find_thread_points_by_tid)
6223 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6224 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6225 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6226 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6227 use m_dreg_interface.
6228 (hwdebug_point_cmp): Change to...
6229 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6230 reference arguments instead of pointers.
6231 (ppc_linux_nat_target::ranged_break_num_registers): Use
6232 m_dreg_interface.
6233 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6234 m_dreg_interface. Call register_hw_breakpoint.
6235 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6236 m_dreg_interface. Call clear_hw_breakpoint.
6237 (get_trigger_type): Change to...
6238 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6239 comment.
6240 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6241 use m_dreg_interface. Call register_hw_breakpoint.
6242 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6243 use m_dreg_interface. Call clear_hw_breakpoint.
6244 (can_use_watchpoint_cond_accel): Change to...
6245 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6246 method. Update comment, use m_dreg_interface and
6247 m_process_info.
6248 (calculate_dvc): Change to...
6249 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6250 m_dreg_interface.
6251 (num_memory_accesses): Change to...
6252 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6253 (check_condition): Change to...
6254 (ppc_linux_nat_target::check_condition): ...this method.
6255 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6256 comment, use m_dreg_interface.
6257 (create_watchpoint_request): Change to...
6258 (ppc_linux_nat_target::create_watchpoint_request): ...this
6259 method. Use m_dreg_interface.
6260 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6261 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6262 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6263 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6264 (ppc_linux_nat_target::low_forget_process)
6265 (ppc_linux_nat_target::low_new_fork)
6266 (ppc_linux_nat_target::low_new_clone)
6267 (ppc_linux_nat_target::low_delete_thread)
6268 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6269 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6270 only call mark_thread_stale.
6271 (ppc_linux_thread_exit): Remove.
6272 (ppc_linux_nat_target::stopped_data_address): Change to...
6273 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6274 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6275 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6276 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6277 comment. Call low_stopped_data_address.
6278 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6279 m_dreg_interface.
6280 (ppc_linux_nat_target::masked_watch_num_registers): Use
6281 m_dreg_interface.
6282 (ppc_linux_nat_target::copy_thread_dreg_state)
6283 (ppc_linux_nat_target::mark_thread_stale)
6284 (ppc_linux_nat_target::mark_debug_registers_changed)
6285 (ppc_linux_nat_target::register_hw_breakpoint)
6286 (ppc_linux_nat_target::clear_hw_breakpoint)
6287 (ppc_linux_nat_target::register_wp)
6288 (ppc_linux_nat_target::clear_wp)
6289 (ppc_linux_nat_target::init_arch_lwp_info)
6290 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6291 (_initialize_ppc_linux_nat): Remove observer callback.
6292
4db10d8f
PFC
62932020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6294
6295 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6296 (ppc_linux_nat_target::auxv_parse)
6297 (ppc_linux_nat_target::read_description)
6298 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6299 Move up.
6300
1310c1b0
PFC
63012020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6302
6303 * linux-nat.h (low_new_clone): New method.
6304 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6305
69b037c3
SM
63062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6307
6308 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6309 (dbx_expand_psymtab): ... this.
6310 (start_psymtab): Update.
6311 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6312 (mdebug_expand_psymtab): ... this.
6313 (parse_partial_symbols): Update.
6314 (new_psymtab): Update.
6315 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6316 (xcoff_expand_psymtab): ... this.
6317 (xcoff_start_psymtab): Update.
6318
48993951
SM
63192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6322 <expand_dependencies>: ... this.
6323 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6324 (partial_symtab::expand_dependencies): ... this.
6325 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6326 Update.
6327 (dwarf2_psymtab::expand_psymtab): Update.
6328 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6329 * mdebugread.c (psymtab_to_symtab_1): Update.
6330 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6331
3ad83046
SM
63322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * psympriv.h (discard_psymtab): Remove.
6335 * dbxread.c (dbx_end_psymtab): Update.
6336 * xcoffread.c (xcoff_end_psymtab): Update.
6337
4d1b9ab6
TT
63382020-03-28 Tom Tromey <tom@tromey.com>
6339
6340 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6341 comment.
6342
f1749218
TT
63432020-03-28 Tom Tromey <tom@tromey.com>
6344
6345 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6346
ebea7626
HD
63472020-03-27 Hannes Domani <ssbssa@yahoo.de>
6348
6349 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6350
a879b4d5
JB
63512020-03-26 John Baldwin <jhb@FreeBSD.org>
6352
6353 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6354
0826b30a
TT
63552020-03-26 Tom Tromey <tom@tromey.com>
6356
6357 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6358 (mark_common_block_symbol_computed, read_tag_string_type)
6359 (attr_to_dynamic_prop, read_subrange_type): Update.
6360 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6361 to be methods on struct attribute.
6362 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6363 (read_call_site_scope, partial_die_info::read)
6364 (partial_die_info::read, lookup_die_type, follow_die_ref):
6365 Update.
6366 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6367 from dwarf2_get_ref_die_offset.
6368 (attribute::constant_value): New method, from
6369 dwarf2_get_attr_constant_value.
6370 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6371 Declare method.
6372 <constant_value>: New method.
6373
2b2558bf
TT
63742020-03-26 Tom Tromey <tom@tromey.com>
6375
6376 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6377 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6378 (dwarf_type_encoding_name): Move to stringify.c.
6379 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6380 * dwarf2/stringify.c: New file.
6381 * dwarf2/stringify.h: New file.
6382
eeb64781
TT
63832020-03-26 Tom Tromey <tom@tromey.com>
6384
6385 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6386 Rewrite.
6387
a39fdb41
TT
63882020-03-26 Tom Tromey <tom@tromey.com>
6389
6390 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6391 methods.
6392 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6393 (lookup_ranges_base): Likewise.
6394 (read_cutu_die_from_dwo, read_full_die_1): Update.
6395
436c571c
TT
63962020-03-26 Tom Tromey <tom@tromey.com>
6397
6398 * dwarf2/read.c (read_import_statement, read_file_scope)
6399 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6400 (read_lexical_block_scope, read_call_site_scope)
6401 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6402 (handle_struct_member_die, process_structure_scope)
6403 (update_enumeration_type_from_children)
6404 (process_enumeration_scope, read_array_type, read_common_block)
6405 (read_namespace, read_module, read_subroutine_type): Update.
6406 (sibling_die): Remove.
6407
052c8bb8
TT
64082020-03-26 Tom Tromey <tom@tromey.com>
6409
6410 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6411 (build_type_psymtabs_reader, read_structure_type)
6412 (read_enumeration_type, read_full_die_1): Update.
6413 (dwarf2_attr_no_follow): Move to die.h.
6414 * dwarf2/die.h (struct die_info) <attr>: New method.
6415
2b24b6e4
TT
64162020-03-26 Tom Tromey <tom@tromey.com>
6417
6418 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6419 <base_address>: Now an optional.
6420 (dwarf2_find_base_address, dwarf2_rnglists_process)
6421 (dwarf2_ranges_process, fill_in_loclist_baton)
6422 (dwarf2_symbol_mark_computed): Update.
6423
c2d50fd0
TT
64242020-03-26 Tom Tromey <tom@tromey.com>
6425
6426 * dwarf2/read.c (struct die_info): Move to die.h.
6427 * dwarf2/die.h: New file.
6428
0df7ad3a
TT
64292020-03-26 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6432 * dwarf2/read.c
6433 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6434 Move to line-header.c.
6435 (read_checked_initial_length_and_offset, read_formatted_entries):
6436 Likewise.
6437 (dwarf_decode_line_header): Split into two.
6438 * dwarf2/line-header.c
6439 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6440 Move from read.c.
6441 (read_checked_initial_length_and_offset, read_formatted_entries):
6442 Likewise.
6443 (dwarf_decode_line_header): New function, split from read.c.
6444
86c0bb4c
TT
64452020-03-26 Tom Tromey <tom@tromey.com>
6446
6447 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6448 Declare method.
6449 * dwarf2/read.c (read_attribute_value): Update.
6450 (dwarf2_per_objfile::read_line_string): Rename from
6451 read_indirect_line_string.
6452 (read_formatted_entries): Update.
6453
2ef46c2f
TT
64542020-03-26 Tom Tromey <tom@tromey.com>
6455
6456 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6457 variable.
6458
4f9c1eda
TT
64592020-03-26 Tom Tromey <tom@tromey.com>
6460
6461 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6462 const.
6463 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6464 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6465 parameter const.
6466
5a0e026f
TT
64672020-03-26 Tom Tromey <tom@tromey.com>
6468
6469 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6470 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6471 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6472 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6473
8844c11b
TT
64742020-03-26 Tom Tromey <tom@tromey.com>
6475
6476 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6477 file_names_size, file_full_name, file_file_name>: Use const.
6478 <file_name_at, file_names>: Add const overload.
6479 * dwarf2/line-header.c (line_header::file_file_name)
6480 (line_header::file_full_name): Update.
6481
c90ec28a
TT
64822020-03-26 Tom Tromey <tom@tromey.com>
6483
6484 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6485 (macro_start_file, consume_improper_spaces)
6486 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6487 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6488 (dwarf_decode_macros): Move to macro.c.
6489 * dwarf2/macro.c: New file.
6490 * dwarf2/macro.h: New file.
6491 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6492
4f44ae6c
TT
64932020-03-26 Tom Tromey <tom@tromey.com>
6494
6495 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6496 method.
6497 * dwarf2/section.c: New method. From
6498 read_indirect_string_at_offset_from.
6499 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6500 (read_indirect_string_at_offset_from): Move to section.c.
6501 (read_indirect_string_at_offset): Rewrite.
6502 (read_indirect_line_string_at_offset): Remove.
6503 (read_indirect_string, read_indirect_line_string)
6504 (dwarf_decode_macro_bytes): Update.
6505
a0194fa8
TT
65062020-03-26 Tom Tromey <tom@tromey.com>
6507
6508 * dwarf2/section.h (struct dwarf2_section_info)
6509 <overload_complaint>: Declare.
6510 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6511 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6512 Rename from dwarf2_section_buffer_overflow_complaint.
6513 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6514 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6515
3d27bbdb
TT
65162020-03-26 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6519 Declare.
6520 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6521 Move from read.c.
6522 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6523 to section.c.
6524
9eac9650
TT
65252020-03-26 Tom Tromey <tom@tromey.com>
6526
6527 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6528
bf80d710
TT
65292020-03-26 Tom Tromey <tom@tromey.com>
6530
6531 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6532 "builder".
6533 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6534 parameter.
6535 (dwarf_decode_macros): Update.
6536
0314b390
TT
65372020-03-26 Tom Tromey <tom@tromey.com>
6538
6539 * dwarf2/read.c (read_attribute_value): Update.
6540 (read_indirect_string_from_dwz): Move to dwz.c; change into
6541 method.
6542 (dwarf_decode_macro_bytes): Update.
6543 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6544 * dwarf2/dwz.c: New file.
6545 * Makefile.in (COMMON_SFILES): Add dwz.c.
6546
9fda78b6
TT
65472020-03-26 Tom Tromey <tom@tromey.com>
6548
6549 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6550 * dwarf2/read.c: Add include.
6551 * dwarf2/index-write.c: Add include.
6552 * dwarf2/index-cache.c: Add include.
6553 * dwarf2/dwz.h: New file.
6554
33aa3c10
TT
65552020-03-25 Tom Tromey <tom@tromey.com>
6556
6557 * compile/compile-object-load.c (get_out_value_type): Mention
6558 correct symbol name in error message.
6559
d503b685
HD
65602020-03-25 Hannes Domani <ssbssa@yahoo.de>
6561
6562 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6563
7b1eff95
TV
65642020-03-25 Tom de Vries <tdevries@suse.de>
6565
6566 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6567 * symmisc.c (dump_symtab_1): Print user and includes fields.
6568 (maintenance_info_symtabs): Same.
6569
dd895392
AB
65702020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 PR gdb/25534
6573 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6574 (riscv_regcache_cooked_write): New function.
6575 (riscv_push_dummy_call): Use new function.
6576 (riscv_return_value): Likewise.
6577
5ab2fbf1
SM
65782020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6581 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6582 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6583 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6584 * infrun.c (follow_fork): Likewise.
6585 (follow_fork_inferior): Likewise.
6586 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6587 * linux-nat.h (class linux_nat_target): Likewise.
6588 * remote.c (class remote_target) <follow_fork>: Likewise.
6589 (remote_target::follow_fork): Likewise.
6590 * target-delegates.c: Re-generate.
6591 * target.c (default_follow_fork): Likewise.
6592 (target_follow_fork): Likewise.
6593 * target.h (struct target_ops) <follow_fork>: Likewise.
6594 (target_follow_fork): Likewise.
6595
a64fafb5
TV
65962020-03-24 Tom de Vries <tdevries@suse.de>
6597
6598 * psymtab.c (maintenance_info_psymtabs): Print user field.
6599
fe26d3a3
TT
66002020-03-20 Tom Tromey <tromey@adacore.com>
6601
6602 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6603 const.
6604 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6605 const.
6606
c884cc46
SM
66072020-03-20 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * ptrace.m4: Don't check for ptrace declaration.
6610 * config.in: Re-generate.
6611 * configure: Re-generate.
6612 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6613 not defined.
6614
1ff700c2
KR
66152020-03-20 Kamil Rytarowski <n54@gmx.com>
6616
6617 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6618 `PTRACE_TYPE_RET'.
6619 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6620 * sparc-nat.c (gdb_ptrace): Likewise.
6621 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6622
f7d4f0b1
TT
66232020-03-20 Tom Tromey <tromey@adacore.com>
6624
6625 * c-exp.y (lex_one_token): Fix assert.
6626
f67210ff
TT
66272020-03-20 Tom Tromey <tromey@adacore.com>
6628
6629 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6630 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6631 strncpy call.
6632
1773be9e
TT
66332020-03-20 Tom Tromey <tromey@adacore.com>
6634
6635 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6636
70304be9
TT
66372020-03-20 Tom Tromey <tromey@adacore.com>
6638
6639 * ada-valprint.c (print_variant_part): Remove parameters; switch
6640 to value-based API.
6641 (print_field_values): Likewise.
6642 (ada_val_print_struct_union): Likewise.
6643 (ada_value_print_1): Update.
6644
9faa006d
KR
66452020-03-20 Kamil Rytarowski <n54@gmx.com>
6646
6647 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6648 nbsd_nat_target instead of inf_ptrace_target.
6649 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6650 nbsd_nat_target.
6651
4a90f062
KR
66522020-03-20 Kamil Rytarowski <n54@gmx.com>
6653
6654 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6655 it to the ptrace call.
6656 * (store_registers): Likewise.
6657
66582020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6659
6660 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6661 it to the ptrace call.
6662 * (store_registers): Likewise.
6663
2d07da27
LM
66642020-03-19 Luis Machado <luis.machado@linaro.org>
6665
6666 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6667 valid, fetch vg value from ptrace.
6668
f09db380
KR
66692020-03-19 Kamil Rytarowski <n54@gmx.com>
6670 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6671 * inf-ptrace.c: Likewise.
6672 * (gdb_ptrace): Add.
6673 * (inf_ptrace_target::resume): Update.
6674 * (inf_ptrace_target::xfer_partial): Likewise.
6675 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6676 * (inf_ptrace_peek_poke): Update.
6677
fcc7376e
KR
66782020-03-19 Kamil Rytarowski <n54@gmx.com>
6679
6680 * x86-bsd-nat.c (gdb_ptrace): New.
6681 * (x86bsd_dr_set): Add new argument `ptid'.
6682 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6683 x86bsd_dr_set_addr): Update.
6684
cada5fc9
AB
66852020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * remote.c (remote_target::process_stop_reply): Handle events for
6688 all threads differently.
6689
19a2740f
AB
66902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6691
6692 * completer.c (completion_tracker::remove_completion): Define new
6693 function.
6694 * completer.h (completion_tracker::remove_completion): Declare new
6695 function.
6696 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6697 when adding a C++ function symbol.
6698
724fd9ba
AB
66992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * completer.c (completion_tracker::completion_hash_entry): Define
6702 new class.
6703 (advance_to_filename_complete_word_point): Call
6704 recompute_lowest_common_denominator.
6705 (completion_tracker::completion_tracker): Call discard_completions
6706 to setup the hash table.
6707 (completion_tracker::discard_completions): Allow for being called
6708 from the constructor, pass new equal function, and element deleter
6709 when constructing the hash table. Initialise new class member
6710 variables.
6711 (completion_tracker::maybe_add_completion): Remove use of
6712 m_entries_vec, and store more information into m_entries_hash.
6713 (completion_tracker::recompute_lcd_visitor): New function, most
6714 content taken from...
6715 (completion_tracker::recompute_lowest_common_denominator):
6716 ...here, this now just visits each item in the hash calling the
6717 above visitor.
6718 (completion_tracker::build_completion_result): Remove use of
6719 m_entries_vec, call recompute_lowest_common_denominator.
6720 * completer.h (completion_tracker::have_completions): Remove use
6721 of m_entries_vec.
6722 (completion_tracker::completion_hash_entry): Declare new class.
6723 (completion_tracker::recompute_lowest_common_denominator): Change
6724 function signature.
6725 (completion_tracker::recompute_lcd_visitor): Declare new function.
6726 (completion_tracker::m_entries_vec): Delete.
6727 (completion_tracker::m_entries_hash): Initialize to NULL.
6728 (completion_tracker::m_lowest_common_denominator_valid): New
6729 member variable.
6730 (completion_tracker::m_lowest_common_denominator_max_length): New
6731 member variable.
6732
5a82b8a1
KR
67332020-03-17 Kamil Rytarowski <n54@gmx.com>
6734
6735 * regformats/regdef.h: Put reg in gdb namespace.
6736
fb516a69
KR
67372020-03-17 Kamil Rytarowski <n54@gmx.com>
6738
6739 * i386-bsd-nat.c (gdb_ptrace): New.
6740 * (i386bsd_fetch_inferior_registers,
6741 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6742 * (i386bsd_fetch_inferior_registers,
6743 i386bsd_store_inferior_registers) Use gdb_ptrace.
6744
1c0aa1fb
KR
67452020-03-17 Kamil Rytarowski <n54@gmx.com>
6746
6747 * amd64-bsd-nat.c (gdb_ptrace): New.
6748 * (amd64bsd_fetch_inferior_registers,
6749 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6750 * (amd64bsd_fetch_inferior_registers,
6751 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6752
5ccd2fb7
KR
67532020-03-17 Kamil Rytarowski <n54@gmx.com>
6754
6755 * user-regs.c (user_reg::read): Rename to...
6756 (user_reg::xread): ...this.
6757 * (append_user_reg): Rename argument `read' to `xread'.
6758 * (user_reg_add_builtin): Likewise.
6759 * (user_reg_add): Likewise.
6760 * (value_of_user_reg): Likewise.
6761
2108a63a
KR
67622020-03-17 Kamil Rytarowski <n54@gmx.com>
6763
6764 * sparc-nat.c (gdb_ptrace): New.
6765 * sparc-nat.c (sparc_fetch_inferior_registers)
6766 (sparc_store_inferior_registers) Remove obsolete comment.
6767 * sparc-nat.c (sparc_fetch_inferior_registers)
6768 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6769 * sparc-nat.c (sparc_fetch_inferior_registers)
6770 (sparc_store_inferior_registers) Use gdb_ptrace.
6771
a225c9a8
KR
67722020-03-17 Kamil Rytarowski <n54@gmx.com>
6773
6774 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6775 it to the ptrace call.
6776 * sh-nbsd-nat.c (store_registers): Likewise.
6777
98097623
KR
67782020-03-17 Kamil Rytarowski <n54@gmx.com>
6779
6780 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6781 nbsd_nat_target instead of inf_ptrace_target.
6782 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6783 nbsd_nat_target.
6784
9e38d619
KR
67852020-03-17 Kamil Rytarowski <n54@gmx.com>
6786
6787 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6788
a2ecbe9f
KR
67892020-03-17 Kamil Rytarowski <n54@gmx.com>
6790
6791 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6792 <sys/sysctl.h>.
6793 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6794
58990295
TV
67952020-03-17 Tom de Vries <tdevries@suse.de>
6796
6797 PR gdb/23710
6798 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6799 fields.
6800 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6801 fields.
6802 (process_imported_unit_die): Skip import of c++ CUs.
6803
771dd3a8
TT
68042020-03-16 Tom Tromey <tom@tromey.com>
6805
6806 * p-valprint.c (pascal_object_print_value): Initialize
6807 base_value.
6808
817a7585
AK
68092020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6810 Shahab Vahedi <shahab@synopsys.com>
6811
6812 * Makefile.in: Add arch/arc.o
6813 * configure.tgt: Likewise.
6814 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6815 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6816 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6817 * arc-tdep.h (arc_read_description): Add proto type.
6818 * arch/arc.c: New file.
6819 * arch/arc.h: Likewise.
6820 * features/Makefile: Replace old target descriptions with new.
6821 * features/arc-arcompact.c: Remove.
6822 * features/arc-arcompact.xml: Likewise.
6823 * features/arc-v2.c: Likewise
6824 * features/arc-v2.xml: Likewise
6825 * features/arc/aux-arcompact.xml: New file.
6826 * features/arc/aux-v2.xml: Likewise.
6827 * features/arc/core-arcompact.xml: Likewise.
6828 * features/arc/core-v2.xml: Likewise.
6829 * features/arc/aux-arcompact.c: Generate.
6830 * features/arc/aux-v2.c: Likewise.
6831 * features/arc/core-arcompact.c: Likewise.
6832 * features/arc/core-v2.c: Likewise.
6833 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6834
67430cd0
TT
68352020-03-16 Tom Tromey <tromey@adacore.com>
6836
6837 PR gdb/25663:
6838 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6839 putting value into bcache.
6840
30efb6c7
SM
68412020-03-16 Simon Marchi <simon.marchi@efficios.com>
6842
6843 PR gdb/21500
6844 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6845 to...
6846 (amd64_windows_init_abi_common): ... this. Don't set size of
6847 long type.
6848 (amd64_windows_init_abi): New function.
6849 (amd64_cygwin_init_abi): New function.
6850 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6851 the Cygwin OS ABI.
6852 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6853 comment.
6854
8db52437
SM
68552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6858 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6859 (pe_import_directory_entry): New struct type.
6860 (is_linked_with_cygwin_dll): New function.
6861 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6862 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6863 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6864
5982a56a
SM
68652020-03-16 Simon Marchi <simon.marchi@efficios.com>
6866
6867 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6868 i386_cygwin_core_osabi_sniffer.
6869
7a1998df
SM
68702020-03-16 Simon Marchi <simon.marchi@efficios.com>
6871
6872 * i386-cygwin-tdep.c: Rename to...
6873 * i386-windows-tdep.c: ... this.
6874 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6875 i386-windows-tdep.c.
6876 * configure.tgt: Likewise.
6877
053205cc
SM
68782020-03-16 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6881 * osabi.c (gdb_osabi_names): Add "Windows".
6882 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6883 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6884 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6885 i386_cygwin_osabi_sniffer.
6886 (_initialize_i386_cygwin_tdep): Register OS ABI
6887 GDB_OSABI_WINDOWS for i386.
6888 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6889 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6890 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6891 for x86-64.
6892 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6893 when the target matches '*-*-mingw*'.
6894
fe4b2ee6
SM
68952020-03-16 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * defs.h (enum gdb_osabi): Move to...
6898 * osabi.h (enum gdb_osabi): ... here.
6899 * gdbarch.sh: Include osabi.h in gdbarch.h.
6900 * gdbarch.h: Re-generate.
6901
cb9b645d
SM
69022020-03-16 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6905 function.
6906 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6907
3293bbaf
TT
69082020-03-14 Tom Tromey <tom@tromey.com>
6909
6910 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6911 for C++.
6912 (c_type_print_modifier): Likewise. Add "language" parameter.
6913 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6914 (c_type_print_base_1): Update.
6915 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6916 constants.
6917 * type-stack.c (type_stack::insert): Handle tp_atomic and
6918 tp_restrict.
6919 (type_stack::follow_type_instance_flags): Likewise.
6920 (type_stack::follow_types): Likewise. Merge type-following code.
6921 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6922 (space_identifier, cv_with_space_id)
6923 (const_or_volatile_or_space_identifier_noopt)
6924 (const_or_volatile_or_space_identifier): Remove.
6925 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6926 rules.
6927 (ptr_operator, typebase): Update.
6928 (enum token_flag) <FLAG_C>: New constant.
6929 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6930 "_Atomic".
6931 (lex_one_token): Handle FLAG_C.
6932
154151a6
KR
69332020-03-14 Kamil Rytarowski <n54@gmx.com>
6934
6935 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6936 it to the ptrace call.
6937 * m68k-bsd-nat.c (store_registers): Likewise.
6938
bc107784
KR
69392020-03-14 Kamil Rytarowski <n54@gmx.com>
6940
6941 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6942 gdb_byte *.
6943 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6944 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6945 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6946
01a80117
KR
69472020-03-14 Kamil Rytarowski <n54@gmx.com>
6948
6949 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6950 nbsd_nat_target instead of inf_ptrace_target.
6951 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6952 nbsd_nat_target.
6953
f90280ca
KR
69542020-03-14 Kamil Rytarowski <n54@gmx.com>
6955
6956 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6957 register_t.
6958
6def66f1
KR
69592020-03-14 Kamil Rytarowski <n54@gmx.com>
6960
6961 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6962 it to the ptrace call.
6963 * alpha-bsd-nat.c (store_registers): Likewise.
6964
66eaca97
KR
69652020-03-14 Kamil Rytarowski <n54@gmx.com>
6966
6967 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6968 includes.
6969 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6970 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6971 fill_fpregset): Likewise.
6972
4fed520b
KR
69732020-03-14 Kamil Rytarowski <n54@gmx.com>
6974
6975 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6976 nbsd_nat_target instead of inf_ptrace_target.
6977 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6978 nbsd_nat_target.
6979
2190cf06
KR
69802020-03-14 Kamil Rytarowski <n54@gmx.com>
6981
6982 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6983 register_t.
6984
75c56d3d
KR
69852020-03-14 Kamil Rytarowski <n54@gmx.com>
6986
6987 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6988 it to the ptrace call.
6989 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6990 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6991 * arm-nbsd-nat.c (store_register): Likewise.
6992 * arm-nbsd-nat.c (store_regs): Likewise.
6993 * arm-nbsd-nat.c (store_fp_register): Likewise.
6994 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6995
6018d381
KR
69962020-03-14 Kamil Rytarowski <n54@gmx.com>
6997
6998 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6999 nbsd_nat_target instead of inf_ptrace_target.
7000 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7001 nbsd_nat_target.
7002
013f99f0
KR
70032020-03-14 Kamil Rytarowski <n54@gmx.com>
7004
7005 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7006 it to the ptrace call.
7007 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7008
12753073
KR
70092020-03-14 Kamil Rytarowski <n54@gmx.com>
7010
6227b330
KR
7011 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7012 it to the ptrace call.
7013 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7014
70152020-03-14 Kamil Rytarowski <n54@gmx.com>
7016
7017 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7018 gdb_byte *.
12753073
KR
7019 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7020
d5be5fa4
KR
70212020-03-14 Kamil Rytarowski <n54@gmx.com>
7022
7023 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7024 instead of inf_ptrace_target.
7025 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7026 nbsd_nat_target.
7027
8110f842
KR
70282020-03-14 Kamil Rytarowski <n54@gmx.com>
7029
7030 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7031 register_t.
7032
52feded7
KR
70332020-03-14 Kamil Rytarowski <n54@gmx.com>
7034
7035 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7036 register_t.
7037
25567eee
KR
70382020-03-14 Kamil Rytarowski <n54@gmx.com>
7039
7040 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7041 register_t.
7042
426a9c18
TT
70432020-03-13 Tom Tromey <tom@tromey.com>
7044
7045 * value.h (val_print): Don't declare.
7046 * valprint.h (val_print_array_elements)
7047 (val_print_scalar_formatted, generic_val_print): Don't declare.
7048 * valprint.c (generic_val_print_array): Take a struct value.
7049 (generic_val_print_ptr, generic_val_print_memberptr)
7050 (generic_val_print_bool, generic_val_print_int)
7051 (generic_val_print_char, generic_val_print_complex)
7052 (generic_val_print): Remove.
7053 (generic_value_print): Update.
7054 (do_val_print): Remove unused parameters. Don't call
7055 la_val_print.
7056 (val_print): Remove.
7057 (common_val_print): Update. Don't call value_check_printable.
7058 (val_print_scalar_formatted, val_print_array_elements): Remove.
7059 * rust-lang.c (rust_val_print): Remove.
7060 (rust_language_defn): Update.
7061 * p-valprint.c (pascal_val_print): Remove.
7062 (pascal_value_print_inner): Update.
7063 (pascal_object_print_val_fields, pascal_object_print_val):
7064 Remove.
7065 (pascal_object_print_static_field): Update.
7066 * p-lang.h (pascal_val_print): Don't declare.
7067 * p-lang.c (pascal_language_defn): Update.
7068 * opencl-lang.c (opencl_language_defn): Update.
7069 * objc-lang.c (objc_language_defn): Update.
7070 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7071 * m2-lang.h (m2_val_print): Don't declare.
7072 * m2-lang.c (m2_language_defn): Update.
7073 * language.h (struct language_defn) <la_val_print>: Remove.
7074 * language.c (unk_lang_value_print_inner): Rename. Change
7075 argument types.
7076 (unknown_language_defn, auto_language_defn): Update.
7077 * go-valprint.c (go_val_print): Remove.
7078 * go-lang.h (go_val_print): Don't declare.
7079 * go-lang.c (go_language_defn): Update.
7080 * f-valprint.c (f_val_print): Remove.
7081 * f-lang.h (f_value_print): Don't declare.
7082 * f-lang.c (f_language_defn): Update.
7083 * d-valprint.c (d_val_print): Remove.
7084 * d-lang.h (d_value_print): Don't declare.
7085 * d-lang.c (d_language_defn): Update.
7086 * cp-valprint.c (cp_print_value_fields)
7087 (cp_print_value_fields_rtti, cp_print_value): Remove.
7088 (cp_print_static_field): Update.
7089 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7090 (c_val_print_struct, c_val_print_union, c_val_print_int)
7091 (c_val_print_memberptr, c_val_print): Remove.
7092 * c-lang.h (c_val_print_array, cp_print_value_fields)
7093 (cp_print_value_fields_rtti): Don't declare.
7094 * c-lang.c (c_language_defn, cplus_language_defn)
7095 (asm_language_defn, minimal_language_defn): Update.
7096 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7097 (ada_val_print_enum): Take a struct value.
7098 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7099 (ada_val_print): Remove.
7100 (ada_value_print_1): Update.
7101 (printable_val_type): Remove.
7102 * ada-lang.h (ada_val_print): Don't declare.
7103 * ada-lang.c (ada_language_defn): Update.
7104
42331a1e
TT
71052020-03-13 Tom Tromey <tom@tromey.com>
7106
7107 * valprint.c (do_val_print): Update.
7108 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7109 a struct value.
7110 (value_to_value_object_no_release): Declare.
7111 * python/py-value.c (value_to_value_object_no_release): New
7112 function.
7113 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7114 struct value.
7115 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7116 function.
7117 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7118 a struct value.
7119 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7120 Declare.
7121 (gdbscm_apply_val_pretty_printer): Take a struct value.
7122 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7123 value.
7124 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7125 value.
7126 * extension-priv.h (struct extension_language_ops)
7127 <apply_val_pretty_printer>: Take a struct value.
7128 * cp-valprint.c (cp_print_value): Create a struct value.
7129 (cp_print_value): Update.
7130
3a916a97
TT
71312020-03-13 Tom Tromey <tom@tromey.com>
7132
7133 * ada-valprint.c (print_field_values): Call common_val_print.
7134
b59eac37
TT
71352020-03-13 Tom Tromey <tom@tromey.com>
7136
7137 * ada-valprint.c (val_print_packed_array_elements): Remove
7138 bitoffset and val parameters. Call common_val_print.
7139 (ada_val_print_string): Remove offset, address, and original_value
7140 parameters.
7141 (ada_val_print_array): Update.
7142 (ada_value_print_array): New function.
7143 (ada_value_print_1): Call it.
7144
03371129
TT
71452020-03-13 Tom Tromey <tom@tromey.com>
7146
7147 * ada-valprint.c (ada_value_print): Use common_val_print.
7148
2e088f8b
TT
71492020-03-13 Tom Tromey <tom@tromey.com>
7150
7151 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7152
39ef85a8
TT
71532020-03-13 Tom Tromey <tom@tromey.com>
7154
7155 * ada-valprint.c (ada_value_print_num): New function.
7156 (ada_value_print_1): Use it.
7157
b9fa6e07
TT
71582020-03-13 Tom Tromey <tom@tromey.com>
7159
7160 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7161
416595d6
TT
71622020-03-13 Tom Tromey <tom@tromey.com>
7163
7164 * ada-valprint.c (ada_value_print_ptr): New function.
7165 (ada_value_print_1): Use it.
7166
5b5e15ec
TT
71672020-03-13 Tom Tromey <tom@tromey.com>
7168
7169 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7170 call common_val_print.
7171 (ada_val_print_1): Update.
7172 (ada_value_print_1): New function.
7173 (ada_value_print_inner): Rewrite.
7174
fbf54e75
TT
71752020-03-13 Tom Tromey <tom@tromey.com>
7176
7177 * cp-valprint.c (cp_print_value_fields): Update.
7178 (cp_print_value): New function.
7179
64b653ca
TT
71802020-03-13 Tom Tromey <tom@tromey.com>
7181
7182 * m2-valprint.c (m2_value_print_inner): Use
7183 cp_print_value_fields.
7184 * cp-valprint.c (cp_print_value_fields): New function.
7185 * c-valprint.c (c_value_print_struct): New function.
7186 (c_value_print_inner): Use c_value_print_struct.
7187 * c-lang.h (cp_print_value_fields): Declare.
7188
6999f067
TT
71892020-03-13 Tom Tromey <tom@tromey.com>
7190
7191 * c-valprint.c (c_value_print_array): New function.
7192 (c_value_print_inner): Use it.
7193
ce80b8bd
TT
71942020-03-13 Tom Tromey <tom@tromey.com>
7195
7196 * c-valprint.c (c_value_print_memberptr): New function.
7197 (c_value_print_inner): Use it.
7198
2faac269
TT
71992020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * c-valprint.c (c_value_print_int): New function.
7202 (c_value_print_inner): Use it.
7203
da3e2c29
TT
72042020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * c-valprint.c (c_value_print_ptr): New function.
7207 (c_value_print_inner): Use it.
7208
50836231
TT
72092020-03-13 Tom Tromey <tom@tromey.com>
7210
7211 * c-valprint.c (c_value_print_inner): Rewrite.
7212
4f412b6e
TT
72132020-03-13 Tom Tromey <tom@tromey.com>
7214
7215 * valprint.c (generic_value_print_complex): New function.
7216 (generic_value_print): Use it.
7217
f5354008
TT
72182020-03-13 Tom Tromey <tom@tromey.com>
7219
7220 * valprint.c (generic_val_print_float): Don't call
7221 val_print_scalar_formatted.
7222 (generic_val_print, generic_value_print): Update.
7223
3eec3b05
TT
72242020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * valprint.c (generic_value_print_char): New function
7227 (generic_value_print): Use it.
7228
fdddfccb
TT
72292020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * valprint.c (generic_value_print_int): New function.
7232 (generic_value_print): Use it.
7233
6dde7521
TT
72342020-03-13 Tom Tromey <tom@tromey.com>
7235
7236 * valprint.c (generic_value_print_bool): New function.
7237 (generic_value_print): Use it.
7238
4112d2e6
TT
72392020-03-13 Tom Tromey <tom@tromey.com>
7240
7241 * valprint.c (generic_val_print_func): Simplify.
7242 (generic_val_print, generic_value_print): Update.
7243
65786af6
TT
72442020-03-13 Tom Tromey <tom@tromey.com>
7245
7246 * valprint.c (generic_val_print_flags): Remove.
7247 (generic_val_print, generic_value_print): Update.
7248 (val_print_type_code_flags): Add original_value parameter.
7249
40f3ce18
TT
72502020-03-13 Tom Tromey <tom@tromey.com>
7251
7252 * valprint.c (generic_val_print): Update.
7253 (generic_value_print): Update.
7254 * valprint.c (generic_val_print_enum): Don't call
7255 val_print_scalar_formatted.
7256
2a5b130b
TT
72572020-03-13 Tom Tromey <tom@tromey.com>
7258
7259 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7260 * valprint.c (generic_value_print_ptr): New function.
7261
abc66ce9
TT
72622020-03-13 Tom Tromey <tom@tromey.com>
7263
7264 * valprint.c (generic_value_print): Rewrite.
7265
07a32858
TT
72662020-03-13 Tom Tromey <tom@tromey.com>
7267
7268 * p-valprint.c (pascal_object_print_value_fields)
7269 (pascal_object_print_value): New functions.
7270
64d64d3a
TT
72712020-03-13 Tom Tromey <tom@tromey.com>
7272
7273 * p-valprint.c (pascal_value_print_inner): Rewrite.
7274
6a95a1f5
TT
72752020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * f-valprint.c (f_value_print_innner): Rewrite.
7278
59fcdac6
TT
72792020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * m2-valprint.c (m2_print_unbounded_array): New overload.
7282 (m2_print_unbounded_array): Update.
7283 (m2_print_array_contents): Take a struct value.
7284 (m2_value_print_inner): Rewrite.
7285
d133c3e1
TT
72862020-03-13 Tom Tromey <tom@tromey.com>
7287
7288 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7289 (d_value_print_inner): New function.
7290 * d-lang.h (d_value_print_inner): Declare.
7291 * d-lang.c (d_language_defn): Use d_value_print_inner.
7292
23b0f06b
TT
72932020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * go-valprint.c (go_value_print_inner): New function.
7296 * go-lang.h (go_value_print_inner): Declare.
7297 * go-lang.c (go_language_defn): Use go_value_print_inner.
7298
5f56f7cb
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7302 API.
7303 (rust_val_print): Rewrite.
7304 (rust_value_print_inner): New function, from rust_val_print.
7305 (rust_language_defn): Use rust_value_print_inner.
7306
26792ee0
TT
73072020-03-13 Tom Tromey <tom@tromey.com>
7308
7309 * ada-valprint.c (ada_value_print_inner): New function.
7310 * ada-lang.h (ada_value_print_inner): Declare.
7311 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7312
24051bbe
TT
73132020-03-13 Tom Tromey <tom@tromey.com>
7314
7315 * f-valprint.c (f_value_print_innner): New function.
7316 * f-lang.h (f_value_print_innner): Declare.
7317 * f-lang.c (f_language_defn): Use f_value_print_innner.
7318
c0941be6
TT
73192020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * p-valprint.c (pascal_value_print_inner): New function.
7322 * p-lang.h (pascal_value_print_inner): Declare.
7323 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7324
62c4663d
TT
73252020-03-13 Tom Tromey <tom@tromey.com>
7326
7327 * m2-valprint.c (m2_value_print_inner): New function.
7328 * m2-lang.h (m2_value_print_inner): Declare.
7329 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7330
62182190
TT
73312020-03-13 Tom Tromey <tom@tromey.com>
7332
7333 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7334 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7335 * c-valprint.c (c_value_print_inner): New function.
7336 * c-lang.h (c_value_print_inner): Declare.
7337 * c-lang.c (c_language_defn, cplus_language_defn)
7338 (asm_language_defn, minimal_language_defn): Use
7339 c_value_print_inner.
7340
1e592a8a
TT
73412020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * p-valprint.c (pascal_object_print_value_fields): Now static.
7344 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7345
7fe471e9
TT
73462020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * c-valprint.c (c_val_print_array): Simplify.
7349
d121c6ce
TT
73502020-03-13 Tom Tromey <tom@tromey.com>
7351
7352 * valprint.c (value_print_array_elements): New function.
7353 * valprint.h (value_print_array_elements): Declare.
7354
4dba70ee
TT
73552020-03-13 Tom Tromey <tom@tromey.com>
7356
7357 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7358 * mips-tdep.c (mips_print_register): Use
7359 value_print_scalar_formatted.
7360
4f9ae810
TT
73612020-03-13 Tom Tromey <tom@tromey.com>
7362
7363 * valprint.h (value_print_scalar_formatted): Declare.
7364 * valprint.c (value_print_scalar_formatted): New function.
7365
156bfec9
TT
73662020-03-13 Tom Tromey <tom@tromey.com>
7367
7368 * valprint.h (generic_value_print): Declare.
7369 * valprint.c (generic_value_print): New function.
7370
2b4e573d
TT
73712020-03-13 Tom Tromey <tom@tromey.com>
7372
7373 * valprint.c (do_val_print): Call la_value_print_inner, if
7374 available.
7375 * rust-lang.c (rust_language_defn): Update.
7376 * p-lang.c (pascal_language_defn): Update.
7377 * opencl-lang.c (opencl_language_defn): Update.
7378 * objc-lang.c (objc_language_defn): Update.
7379 * m2-lang.c (m2_language_defn): Update.
7380 * language.h (struct language_defn) <la_value_print_inner>: New
7381 member.
7382 * language.c (unknown_language_defn, auto_language_defn): Update.
7383 * go-lang.c (go_language_defn): Update.
7384 * f-lang.c (f_language_defn): Update.
7385 * d-lang.c (d_language_defn): Update.
7386 * c-lang.c (c_language_defn, cplus_language_defn)
7387 (asm_language_defn, minimal_language_defn): Update.
7388 * ada-lang.c (ada_language_defn): Update.
7389
a1f6a07c
TT
73902020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * c-valprint.c (c_value_print): Use common_val_print.
7393
410cf315
TT
73942020-03-13 Tom Tromey <tom@tromey.com>
7395
7396 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7397
72a45c93
TT
73982020-03-13 Tom Tromey <tom@tromey.com>
7399
7400 * f-valprint.c (f77_print_array_1, f_val_print): Use
7401 common_val_print.
7402
040f66bd
TT
74032020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * riscv-tdep.c (riscv_print_one_register_info): Use
7406 common_val_print.
7407
a6e05a6c
TT
74082020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * mi/mi-main.c (output_register): Use common_val_print.
7411
3444c526
TT
74122020-03-13 Tom Tromey <tom@tromey.com>
7413
7414 * infcmd.c (default_print_one_register_info): Use
7415 common_val_print.
7416
c2a44efe
TT
74172020-03-13 Tom Tromey <tom@tromey.com>
7418
7419 * valprint.h (common_val_print_checked): Declare.
7420 * valprint.c (common_val_print_checked): New function.
7421 * stack.c (print_frame_arg): Use common_val_print_checked.
7422
b0c26e99
TT
74232020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * valprint.c (do_val_print): New function, from val_print.
7426 (val_print): Use do_val_print.
7427 (common_val_print): Use do_val_print.
7428
ce3acbe9
TT
74292020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * valprint.c (value_print): Use scoped_value_mark.
7432
96c7f873
TV
74332020-03-13 Tom de Vries <tdevries@suse.de>
7434
7435 PR symtab/25646
7436 * psymtab.c (partial_symtab::partial_symtab): Don't set
7437 globals_offset and statics_offset. Push element onto
7438 current_global_psymbols and current_static_psymbols stacks.
7439 (concat): New function.
7440 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7441 element from current_global_psymbols and current_static_psymbols
7442 stacks. Concat popped elements to global_psymbols and
7443 static_symbols.
7444 (add_psymbol_to_list): Use current_global_psymbols and
7445 current_static_psymbols stacks.
7446 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7447 current_static_psymbols fields.
7448
6ba0a321
CB
74492020-03-12 Christian Biesinger <cbiesinger@google.com>
7450
7451 * corelow.c (sniff_core_bfd): Remove.
7452 (class core_target) <m_core_vec>: Remove.
7453 (core_target::core_target): Update.
7454 (core_file_fns): Remove.
7455 (deprecated_add_core_fns): Remove.
7456 (default_core_sniffer): Remove.
7457 (sniff_core_bfd): Remove.
7458 (default_check_format): Remove.
7459 (gdb_check_format): Remove.
7460 (core_target_open): Update.
7461 (core_target::get_core_register_section): Update.
7462 (get_core_registers_cb): Update.
7463 (core_target::fetch_registers): Update.
7464 * gdbcore.h (struct core_fns): Remove.
7465 (deprecated_add_core_fns): Remove.
7466 (default_core_sniffer): Remove.
7467 (default_check_format): Remove.
7468
227031b2
TT
74692020-03-12 Tom Tromey <tom@tromey.com>
7470
7471 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7472 CORE_ADDR.
7473 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7474
53807e9f
TT
74752020-03-12 Tom Tromey <tom@tromey.com>
7476
7477 * remote.c (remote_target::download_tracepoint)
7478 (remote_target::enable_tracepoint)
7479 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7480 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7481 sprintf_vma.
7482
64f25102
TT
74832020-03-12 Tom Tromey <tom@tromey.com>
7484
7485 * symfile-mem.c: Update CORE_ADDR size assert.
7486
272cd5a3
SM
74872020-03-12 Simon Marchi <simon.marchi@efficios.com>
7488
7489 * selftest.m4: Move to gdbsupport/.
7490 * acinclude.m4: Update path to selftest.m4.
7491
74cd3f9d
SM
74922020-03-12 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7495 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7496 gdbarch-selfselftests.c and selftest-arch.c.
7497 (SUBDIR_UNITTESTS_OBS): Rename to...
7498 (SELFTESTS_OBS): ... this.
7499 (COMMON_SFILES): Remove disasm-selftests.c and
7500 gdbarch-selftests.c.
7501 * configure.ac: Don't add selftest-arch.{c,o} to
7502 CONFIG_{SRCS,OBS}.
7503 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7504 preprocessor conditions.
7505
db6878ac
SM
75062020-03-12 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * configure.ac: Don't source bfd/development.sh.
7509 * selftest.m4: Modify comment.
7510 * configure: Re-generate.
7511
4d696a5c
SM
75122020-03-12 Simon Marchi <simon.marchi@efficios.com>
7513
7514 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7515 not "true" or "false".
7516 * configure: Re-generate.
7517
8dd8e1c7
CB
75182020-03-12 Christian Biesinger <cbiesinger@google.com>
7519
7520 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7521 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7522 renamed to arm_nbsd_supply_gregset.
7523 (fetch_register): Update to call arm_nbsd_supply_gregset.
7524 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7525 (arm_netbsd_nat_target::fetch_registers): Update.
7526 (fetch_elfcore_registers): Removed.
7527 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7528 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7529 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7530 not require NetBSD system headers.
7531 (arm_nbsd_regset): New struct.
7532 (arm_nbsd_iterate_over_regset_sections): New function.
7533 (arm_netbsd_init_abi_common): Updated to call
7534 set_gdbarch_iterate_over_regset_sections.
7535 * arm-nbsd-tdep.h: New file.
7536
dd69bf7a
KB
75372020-03-11 Kevin Buettner <kevinb@redhat.com>
7538
7539 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7540 recursion.
7541
a0761e34
SM
75422020-03-11 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * configure: Re-generate.
7545
e7a82140
TT
75462020-03-11 Tom Tromey <tromey@adacore.com>
7547
7548 * ada-typeprint.c (print_choices): Fix comment.
7549
dcc050c8
AB
75502020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7553 previous item in the list, when the list has no items.
7554
1c33af77
TV
75552020-03-11 Tom de Vries <tdevries@suse.de>
7556
7557 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7558 PROP_LOCLIST handling code.
7559
8c95582d
AB
75602020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7561
7562 * buildsym-legacy.c (record_line): Pass extra parameter to
7563 record_line.
7564 * buildsym.c (buildsym_compunit::record_line): Take an extra
7565 parameter, reduce duplication in the line table, and record the
7566 is_stmt flag in the line table.
7567 * buildsym.h (buildsym_compunit::record_line): Add extra
7568 parameter.
7569 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7570 non-statement lines.
7571 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7572 this to the symtab builder.
7573 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7574 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7575 through to dwarf_record_line_1.
7576 * infrun.c (process_event_stop_test): When stepping, don't stop at
7577 a non-statement instruction, and only refresh the step info when
7578 we land in the middle of a line's range. Also add an extra
7579 comment.
7580 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7581 field.
7582 * record-btrace.c (btrace_find_line_range): Only record lines
7583 marked as is-statement.
7584 * stack.c (frame_show_address): Show the frame address if we are
7585 in a non-statement sal.
7586 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7587 (maintenance_print_one_line_table): Print a header for the is_stmt
7588 column, and include is_stmt information in the output.
7589 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7590 preference to non-statements.
7591 (find_pcs_for_symtab_line): Prefer is-statement entries.
7592 (find_line_common): Likewise.
7593 * symtab.h (struct linetable_entry): Add is_stmt field.
7594 (struct symtab_and_line): Likewise.
7595 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7596 arranging the line table.
7597
e4003a34
TV
75982020-03-07 Tom de Vries <tdevries@suse.de>
7599
7600 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7601 DIE.
7602
e8932576
TT
76032020-03-07 Tom Tromey <tom@tromey.com>
7604
7605 * valops.c (value_literal_complex): Remove obsolete comment.
7606 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7607 comment.
7608
29734269
SM
76092020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7610
7611 * infrun.h: Forward-declare thread_info.
7612 (set_step_info): Add thread_info parameter, add doc.
7613 * infrun.c (set_step_info): Add thread_info parameter, move doc
7614 to header.
7615 * infrun.c (process_event_stop_test): Pass thread to
7616 set_step_info call.
7617 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7618 set_step_info.
7619 (prepare_one_step): Add thread_info parameter, pass it to
7620 set_step_frame and prepare_one_step (recursive) call.
7621 (step_1): Pass thread to prepare_one_step call.
7622 (step_command_fsm::should_stop): Pass thread to
7623 prepare_one_step.
7624 (until_next_fsm): Pass thread to set_step_frame call.
7625 (finish_command): Pass thread to set_step_info call.
7626
b7d64b29
HD
76272020-03-06 Hannes Domani <ssbssa@yahoo.de>
7628
7629 * windows-tdep.c (windows_solib_create_inferior_hook):
7630 Check if inferior is running.
7631
09f2921c
TV
76322020-03-06 Tom de Vries <tdevries@suse.de>
7633
7634 * NEWS: Fix "the the".
7635 * ctfread.c: Same.
7636
fd760e79
TV
76372020-03-06 Tom de Vries <tdevries@suse.de>
7638
7639 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7640
20ea4a60
AB
76412020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * .dir-locals.el: Add a comment referencing the other copies of
7644 this file.
7645
0afbabf0
JB
76462020-03-05 John Baldwin <jhb@FreeBSD.org>
7647
7648 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7649 psargs.
7650
842806cb
TBA
76512020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7652
7653 * .gitattributes: New file.
7654
be1e3d3e
TT
76552020-03-04 Tom Tromey <tom@tromey.com>
7656
7657 * symmisc.c (print_symbol_bcache_statistics)
7658 (print_objfile_statistics): Update.
7659 * symfile.c (allocate_symtab): Use intern.
7660 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7661 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7662 macro_cache>: Remove.
7663 <string_cache>: New member.
7664 (struct objfile) <intern>: New methods.
7665 * elfread.c (elf_symtab_read): Use intern.
7666 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7667 (dwarf2_compute_name, dwarf2_physname)
7668 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7669 names.
7670 (guess_partial_die_structure_name): Update.
7671 (partial_die_info::fixup): Intern name.
7672 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7673 name.
7674 (dwarf2_name): Intern name. Update.
7675 * buildsym.c (buildsym_compunit::get_macro_table): Use
7676 string_cache.
7677
4e7625fd
TT
76782020-03-04 Tom Tromey <tom@tromey.com>
7679
7680 * jit.c (bfd_open_from_target_memory): Make "target" const.
7681 * corefile.c (gnutarget): Now const.
7682 * gdbcore.h (gnutarget): Now const.
7683
46f9f931
HD
76842020-03-04 Hannes Domani <ssbssa@yahoo.de>
7685
7686 * NEWS: Mention support for WOW64 processes.
7687 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7688 (amd64_windows_segment_register_p): Remove static.
7689 (_initialize_amd64_windows_nat): Update.
7690 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7691 * i386-windows-nat.c (context_offset): Update.
7692 (i386_mappings): Rename and remove static.
7693 (i386_windows_segment_register_p): Remove static.
7694 (_initialize_i386_windows_nat): Update.
7695 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7696 (STATUS_WX86_SINGLE_STEP): New macro.
7697 (EnumProcessModulesEx): New macro.
7698 (Wow64SuspendThread): New macro.
7699 (Wow64GetThreadContext): New macro.
7700 (Wow64SetThreadContext): New macro.
7701 (Wow64GetThreadSelectorEntry): New macro.
7702 (windows_set_context_register_offsets): Add static.
7703 (windows_set_segment_register_p): Likewise.
7704 (windows_add_thread): Adapt for WOW64 processes.
7705 (windows_fetch_one_register): Likewise.
7706 (windows_nat_target::fetch_registers): Likewise.
7707 (windows_store_one_register): Likewise.
7708 (display_selector): Likewise.
7709 (display_selectors): Likewise.
7710 (handle_exception): Likewise.
7711 (windows_continue): Likewise.
7712 (windows_nat_target::resume): Likewise.
7713 (windows_add_all_dlls): Likewise.
7714 (do_initial_windows_stuff): Likewise.
7715 (windows_nat_target::attach): Likewise.
7716 (windows_get_exec_module_filename): Likewise.
7717 (windows_nat_target::create_inferior): Likewise.
7718 (windows_xfer_siginfo): Likewise.
7719 (_initialize_loadable): Initialize Wow64SuspendThread,
7720 Wow64GetThreadContext, Wow64SetThreadContext,
7721 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7722 * windows-nat.h (windows_set_context_register_offsets):
7723 Remove declaration.
7724 (windows_set_segment_register_p): Likewise.
7725 (i386_windows_segment_register_p): Add declaration.
7726 (amd64_windows_segment_register_p): Likewise.
7727
440cf44e
LM
77282020-03-04 Luis Machado <luis.machado@linaro.org>
7729
7730 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7731 in "info registers" for AArch64/ARM.
7732
7733 The change caused "info registers" to not print GPR's.
7734
7735 gdb/ChangeLog:
7736
7737 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7738
7739 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7740 when reg->group is empty and reggroup is not.
7741
1009d92f
TT
77422020-03-03 Tom Tromey <tromey@adacore.com>
7743
7744 * dwarf2/frame.c (struct dwarf2_frame_cache)
7745 <checked_tailcall_bottom, entry_cfa_sp_offset,
7746 entry_cfa_sp_offset_p>: Remove members.
7747 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7748 (dwarf2_frame_prev_register): Don't call
7749 dwarf2_tailcall_sniffer_first.
7750 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7751 * frame-unwind.c (add_unwinder): New fuction.
7752 (frame_unwind_init): Use it. Add tailcall unwinder.
7753
5e5d66b6
AB
77542020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7755 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7756
7757 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7758 value should be printed as true.
7759
584cf46d
HD
77602020-03-03 Hannes Domani <ssbssa@yahoo.de>
7761
7762 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7763 (windows_init_abi): Set and use windows_so_ops.
7764
7b973adc
SDJ
77652020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7766
7767 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7768 when verifying if dealing with a convenience variable.
7769
bb7b70ab
LM
77702020-03-03 Luis Machado <luis.machado@linaro.org>
7771
7772 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7773
9822cb57
SM
77742020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7775
7776 * infrun.c (gdbarch_supports_displaced_stepping): New.
7777 (use_displaced_stepping): Break up conditions in smaller pieces.
7778 Use gdbarch_supports_displaced_stepping.
7779 (displaced_step_prepare_throw): Use
7780 gdbarch_supports_displaced_stepping.
7781
63e163f2
AB
77822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * NEWS: Mention new behaviour of the history filename.
7785 * top.c (write_history_p): Add comment.
7786 (show_write_history_p): Add header comment, give a different
7787 message when history writing is on, but the history filename is
7788 empty.
7789 (history_filename): Add comment.
7790 (history_filename_empty): New function.
7791 (show_history_filename): Add header comment, give a different
7792 message when the filename is empty.
7793 (init_history): Compare history_filename against nullptr, and only
7794 read history if the filename is not empty.
7795 (set_history_filename): Add header comment, and only make
7796 non-empty filenames absolute.
7797 (init_main): Make the filename argument to 'set history filename'
7798 optional.
7799
81b86b97
CB
78002020-03-02 Christian Biesinger <cbiesinger@google.com>
7801
7802 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7803 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7804 (fetch_fp_register): Update.
7805 (fetch_fp_regs): Update.
7806 (store_fp_register): Update.
7807 (store_fp_regs): Update.
7808 (arm_netbsd_nat_target::read_description): New function.
7809 (fetch_elfcore_registers): Update.
7810
24ed6739
AB
78112020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7814 general_thread if the stop reply is missing a thread-id.
7815 (remote_target::process_stop_reply): Use the first non-exited
7816 thread if the target didn't pass a thread-id.
7817 * infrun.c (do_target_wait): Move call to
7818 switch_to_inferior_no_thread to ....
7819 (do_target_wait_1): ... here.
7820
a84bb2a0
JT
78212020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7822
7823 * debuginfod-support.c: Include defs.h first.
7824
658dadf0
TV
78252020-02-28 Tom de Vries <tdevries@suse.de>
7826
7827 * symfile.c (set_initial_language): Use default language for lookup.
7828
4ebe4877
SM
78292020-02-28 Simon Marchi <simon.marchi@efficios.com>
7830
7831 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7832 reader variable, pass `this` to read_cutu_die_from_dwo.
7833
e5da1139
AM
78342020-02-27 Aaron Merey <amerey@redhat.com>
7835
7836 * source.c (open_source_file): Check for nullptr when computing
7837 srcpath.
7838
317f7127
TT
78392020-02-27 Tom Tromey <tromey@adacore.com>
7840
7841 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7842 member.
7843 (dwarf2_add_field): Don't update nfields.
7844 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7845
3104d9ee
AB
78462020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7849 abs.
7850
b83470bf
TT
78512020-02-26 Tom Tromey <tom@tromey.com>
7852
7853 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7854 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7855 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7856 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7857 per_cu_data.
7858
edfe0a0c
TT
78592020-02-26 Tom Tromey <tom@tromey.com>
7860
7861 * dwarf2/index-write.c (psym_index_map): Change type.
7862 (add_address_entry_worker, write_one_signatured_type)
7863 (recursively_count_psymbols, recursively_write_psymbols)
7864 (class debug_names, psyms_seen_size, write_gdbindex)
7865 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7866
0d79cdc4
AM
78672020-02-26 Aaron Merey <amerey@redhat.com>
7868
7869 * Makefile.in: Handle optional debuginfod support.
7870 * NEWS: Update.
7871 * README: Add --with-debuginfod summary.
7872 * config.in: Regenerate.
7873 * configure: Regenerate.
7874 * configure.ac: Handle optional debuginfod support.
7875 * debuginfod-support.c: debuginfod helper functions.
7876 * debuginfod-support.h: Ditto.
7877 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7878 summary.
7879 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7880 when a dwz file cannot be found.
7881 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7882 debuginfo file cannot be found.
7883 * source.c (open_source_file): Query debuginfod servers when a
7884 source file cannot be found.
7885 * top.c (print_gdb_configuration): Include
7886 --{with,without}-debuginfod in the output.
7887
b65ce565
JG
78882020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7889
7890 * thread.c (thr_try_catch_cmd): Print thread name.
7891
d4c9a4f8
SM
78922020-02-26 Simon Marchi <simon.marchi@efficios.com>
7893
7894 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7895 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7896 dwarf2_fetch_die_type_sect_off): Move to...
7897 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7898 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7899 dwarf2_fetch_die_type_sect_off): ... here.
7900 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7901 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7902 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7903
0dce4280
TV
79042020-02-26 Tom de Vries <tdevries@suse.de>
7905
7906 PR gdb/25603
7907 * symfile.c (set_initial_language): Exit-early if
7908 language_mode == language_mode_manual.
7909
450a1bfc
SM
79102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7913 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7914 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7915
9e80cfa1
AB
79162020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * gdbtypes.c (create_array_type_with_stride): Handle negative
7919 array strides.
7920 * valarith.c (value_subscripted_rvalue): Likewise.
7921
09624f1f
LM
79222020-02-25 Luis Machado <luis.machado@linaro.org>
7923
7924 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7925
8cb5117c
SM
79262020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7927
7928 * loc.h (dwarf2_get_die_type): Move to...
7929 * read.h (dwarf2_get_die_type): ... here.
7930 * read.c (dwarf2_get_die_type): Move doc to header.
7931
c325c44e
JB
79322020-02-25 Joel Brobecker <brobecker@adacore.com>
7933
7934 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7935 'gnulib/Makefile.in' to the list.
7936
4ac93832
TT
79372020-02-24 Tom Tromey <tom@tromey.com>
7938
7939 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7940 Remove.
7941 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7942 XOBNEWVEC.
7943
197400e8
TT
79442020-02-24 Tom Tromey <tom@tromey.com>
7945
7946 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7947 New method.
7948 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7949 (dw2_do_instantiate_symtab, dw2_get_file_names)
7950 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7951
76935768
TT
79522020-02-24 Tom Tromey <tom@tromey.com>
7953
7954 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7955 make_scoped_restore.
7956 (dwarf2_psymtab::read_symtab): Don't clear
7957 reading_partial_symbols.
7958
a88ef40d
TV
79592020-02-24 Tom de Vries <tdevries@suse.de>
7960
7961 PR gdb/25592
7962 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7963
c9af6521
TV
79642020-02-24 Tom de Vries <tdevries@suse.de>
7965
7966 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7967 commands layout next/prev/regs.
7968
5707a07a
TT
79692020-02-22 Tom Tromey <tom@tromey.com>
7970
7971 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7972 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7973
3b0fb49e
TT
79742020-02-22 Tom Tromey <tom@tromey.com>
7975
7976 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7977
283be8bf
TT
79782020-02-22 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7981 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7982 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7983 * tui/tui.c (_initialize_tui): Add usage text.
7984
ca793b96
TT
79852020-02-22 Tom Tromey <tom@tromey.com>
7986
7987 * tui/tui-win.c (tui_set_focus_command)
7988 (tui_set_win_height_command): Use error_no_arg.
7989 (_initialize_tui_win): Update help text.
7990 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7991
432b5c40
TT
79922020-02-22 Tom Tromey <tom@tromey.com>
7993
7994 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7995 * tui/tui-disasm.h (struct tui_disasm_window)
7996 <display_start_addr>: Declare.
7997 * tui/tui-source.h (struct tui_source_window)
7998 <display_start_addr>: Declare.
7999 * tui/tui-winsource.h (struct tui_source_window_base)
8000 <show_source_line, display_start_addr>: New methods.
8001 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8002 Rename and move to protected section.
8003 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8004 (tui_source_window_base::do_erase_source_content): Update.
8005 (tui_source_window_base::show_source_line): Now a method.
8006 (tui_source_window_base::show_source_content)
8007 (tui_source_window_base::tui_source_window_base)
8008 (tui_source_window_base::rerender)
8009 (tui_source_window_base::refill)
8010 (tui_source_window_base::do_scroll_horizontal)
8011 (tui_source_window_base::set_is_exec_point_at)
8012 (tui_source_window_base::update_breakpoint_info)
8013 (tui_source_window_base::update_exec_info): Update.
8014 * tui/tui-source.c (tui_source_window::set_contents)
8015 (tui_source_window::showing_source_p)
8016 (tui_source_window::do_scroll_vertical)
8017 (tui_source_window::location_matches_p)
8018 (tui_source_window::line_is_displayed): Update.
8019 (tui_source_window::display_start_addr): New method.
8020 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8021 (tui_disasm_window::do_scroll_vertical)
8022 (tui_disasm_window::location_matches_p): Update.
8023 (tui_disasm_window::display_start_addr): New method.
8024
01b1af32
TT
80252020-02-22 Tom Tromey <tom@tromey.com>
8026
8027 * NEWS: Add entry for gdb.register_window_type.
8028 * tui/tui-layout.h (window_factory): New typedef.
8029 (tui_register_window): Declare.
8030 * tui/tui-layout.c (saved_tui_windows): New global.
8031 (tui_apply_current_layout): Use it.
8032 (tui_register_window): New function.
8033 * python/python.c (do_start_initialization): Call
8034 gdbpy_initialize_tui.
8035 (python_GdbMethods): Add "register_window_type" function.
8036 * python/python-internal.h (gdbpy_register_tui_window)
8037 (gdbpy_initialize_tui): Declare.
8038 * python/py-tui.c: New file.
8039 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8040
fc96d20b
TT
80412020-02-22 Tom Tromey <tom@tromey.com>
8042
8043 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8044
935c78c0
TT
80452020-02-22 Tom Tromey <tom@tromey.com>
8046
8047 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8048 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8049 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8050 (tui_set_win_focus_to): Move from tui-win.c.
8051
0240c8f1
TT
80522020-02-22 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8055 functions.
8056 (known_window_types): New global.
8057 (tui_get_window_by_name): Reimplement.
8058 (initialize_known_windows): New function.
8059 (validate_window_name): Rewrite.
8060 (_initialize_tui_layout): Call initialize_known_windows.
8061
fdb01f0c
TT
80622020-02-22 Tom Tromey <tom@tromey.com>
8063
8064 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8065 Remove constants.
8066 * tui/tui-winsource.h (struct tui_source_window_base)
8067 <tui_source_window_base>: Remove parameter.
8068 * tui/tui-winsource.c
8069 (tui_source_window_base::tui_source_window_base): Remove
8070 parameter.
8071 (tui_source_window_base::refill): Update.
8072 * tui/tui-stack.h (struct tui_locator_window)
8073 <tui_locator_window>: Update.
8074 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8075 Default the constructor.
8076 * tui/tui-regs.h (struct tui_data_item_window)
8077 <tui_data_item_window>: Default the constructor.
8078 (struct tui_data_window) <tui_data_window>: Likewise.
8079 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8080 Default the constructor.
8081 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8082 Default the constructor.
8083 <type>: Remove.
8084 (struct tui_win_info) <tui_win_info>: Default the constructor.
8085 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8086 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8087 Default the constructor.
8088
865a5aec
TT
80892020-02-22 Tom Tromey <tom@tromey.com>
8090
8091 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8092 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8093 * tui/tui-win.c (tui_resize_all): Don't call
8094 tui_delete_invisible_windows.
8095 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8096 done.
8097 (tui_set_layout): Update.
8098 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8099 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8100 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8101
e098d18c
TT
81022020-02-22 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8105 correctly.
8106
eb9c8874
TT
81072020-02-22 Tom Tromey <tom@tromey.com>
8108
8109 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8110
7eed1a8e
TT
81112020-02-22 Tom Tromey <tom@tromey.com>
8112
8113 * tui/tui-winsource.h (struct tui_source_window_iterator)
8114 <inner_iterator>: New etytypedef.
8115 <tui_source_window_iterator>: Take "end" parameter.
8116 <tui_source_window_iterator>: Take iterator.
8117 <operator*, advance>: Update.
8118 <m_iter>: Change type.
8119 <m_end>: New field.
8120 (struct tui_source_windows) <begin, end>: Update.
8121 * tui/tui-layout.c (tui_windows): New global.
8122 (tui_apply_current_layout): Clear tui_windows.
8123 (tui_layout_window::apply): Update tui_windows.
8124 * tui/tui-data.h (tui_windows): Declare.
8125 (all_tui_windows): Now inline function.
8126 (class tui_window_iterator, struct all_tui_windows): Remove.
8127
7c043ba6
TT
81282020-02-22 Tom Tromey <tom@tromey.com>
8129
8130 PR tui/17850:
8131 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8132 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8133 "height" argument.
8134 (class tui_layout_window) <get_sizes>: Likewise.
8135 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8136 argument.
8137 <get_sizes>: Add "height" argument.
8138 <m_vertical>: New field.
8139 * tui/tui-layout.c (tui_layout_split::clone): Update.
8140 (tui_layout_split::get_sizes): Add "height" argument.
8141 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8142 (tui_new_layout_command): Parse "-horizontal".
8143 (_initialize_tui_layout): Update help string.
8144 (tui_layout_split::specification): Add "-horizontal" when needed.
8145 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8146 argument.
8147 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8148 New methods.
8149
6bc56648
TT
81502020-02-22 Tom Tromey <tom@tromey.com>
8151
8152 * tui/tui-layout.h (enum tui_adjust_result): New.
8153 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8154 (class tui_layout_window) <adjust_size>: Return
8155 tui_adjust_result. Rewrite.
8156 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8157 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8158
c22fef7e
TT
81592020-02-22 Tom Tromey <tom@tromey.com>
8160
8161 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8162 parameter and return types.
8163 (class tui_layout_base) <specification>: Add "depth".
8164 (class tui_layout_window) <specification>: Add "depth".
8165 (class tui_layout_split) <specification>: Add "depth".
8166 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8167 and return types.
8168 (tui_new_layout_command): Parse sub-layouts.
8169 (_initialize_tui_layout): Update help string.
8170 (tui_layout_window::specification): Add "depth".
8171 (add_layout_command): Update.
8172
ee325b61
TT
81732020-02-22 Tom Tromey <tom@tromey.com>
8174
8175 * NEWS: Add "tui new-layout" item.
8176 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8177 Add new-layout command to help text.
8178 (validate_window_name): New function.
8179 (tui_new_layout_command): New function.
8180 (_initialize_tui_layout): Register "new-layout".
8181 (tui_layout_window::specification): New method.
8182 (tui_layout_window::specification): New method.
8183 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8184 method.
8185 (class tui_layout_window) <specification>: New method.
8186 (class tui_layout_split) <specification>: New method.
8187
416eb92d
TT
81882020-02-22 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8191 * tui/tui-win.c (window_name_completer): Update comment.
8192 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8193 Declare method.
8194 (class tui_layout_window) <replace_window>: Likewise.
8195 (class tui_layout_split) <replace_window>: Likewise.
8196 (tui_set_layout): Don't declare.
8197 (tui_set_initial_layout): Declare function.
8198 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8199 (asm_regs_layout): New globals.
8200 (tui_current_layout, show_layout): Remove.
8201 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8202 (find_layout, tui_apply_layout): New function.
8203 (layout_completer): Remove.
8204 (tui_next_layout): Reimplement.
8205 (tui_next_layout_command): New function.
8206 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8207 (tui_regs_layout): Reimplement.
8208 (tui_regs_layout_command): New function.
8209 (extract_display_start_addr): Rewrite.
8210 (next_layout, prev_layout): Remove.
8211 (tui_layout_window::replace_window): New method.
8212 (tui_layout_split::replace_window): New method.
8213 (destroy_layout): New function.
8214 (layout_list): New global.
8215 (add_layout_command): New function.
8216 (initialize_layouts): Update.
8217 (tui_layout_command): New function.
8218 (_initialize_tui_layout): Install "layout" commands.
8219 * tui/tui-data.h (enum tui_layout_type): Remove.
8220 (tui_current_layout): Don't declare.
8221
0dbc2fc7
TT
82222020-02-22 Tom Tromey <tom@tromey.com>
8223
8224 * tui/tui-regs.c (tui_reg_layout): Remove.
8225 (tui_reg_command): Use tui_regs_layout.
8226 * tui/tui-layout.h (tui_reg_command): Declare.
8227 * tui/tui-layout.c (tui_reg_command): New function.
8228
5afe342e
TT
82292020-02-22 Tom Tromey <tom@tromey.com>
8230
8231 * tui/tui.c (tui_rl_delete_other_windows): Call
8232 tui_remove_some_windows.
8233 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8234 Declare method.
8235 (class tui_layout_window) <remove_windows>: New method.
8236 (class tui_layout_split) <remove_windows>: Declare.
8237 (tui_remove_some_windows): Declare.
8238 * tui/tui-layout.c (tui_remove_some_windows): New function.
8239 (tui_layout_split::remove_windows): New method.
8240
427326a8
TT
82412020-02-22 Tom Tromey <tom@tromey.com>
8242
8243 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8244 * tui/tui-layout.h (tui_next_layout): Declare.
8245 * tui/tui-layout.c (tui_next_layout): New function.
8246
3fe12b6d
TT
82472020-02-22 Tom Tromey <tom@tromey.com>
8248
8249 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8250 correct coordinates.
8251
59b8b5d2
TT
82522020-02-22 Tom Tromey <tom@tromey.com>
8253
8254 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8255 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8256 DATA_WIN case.
8257
2a3d458b
TT
82582020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8261 TUI_DISASM_WIN, not tui_win_list.
8262
3f0cbb04
TT
82632020-02-22 Tom Tromey <tom@tromey.com>
8264
8265 * valprint.c (generic_val_print_enum_1)
8266 (val_print_type_code_flags): Style member names.
8267 * rust-lang.c (val_print_struct, rust_print_enum)
8268 (rust_print_struct_def, rust_internal_print_type): Style member
8269 names.
8270 * p-valprint.c (pascal_object_print_value_fields): Style member
8271 names. Only call fprintf_symbol_filtered for static members.
8272 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8273 * f-valprint.c (f_val_print): Style member names.
8274 * f-typeprint.c (f_type_print_base): Style member names.
8275 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8276 call fprintf_symbol_filtered for static members.
8277 (cp_print_class_member): Style member names.
8278 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8279 member names.
8280 * ada-valprint.c (ada_print_scalar): Style enum names.
8281 (ada_val_print_enum): Likewise.
8282 * ada-typeprint.c (print_enum_type): Style enum names.
8283
d4d947ae
TT
82842020-02-21 Tom Tromey <tom@tromey.com>
8285
8286 * psympriv.h (struct partial_symtab): Update comment.
8287
e94e944b
TT
82882020-02-21 Tom Tromey <tromey@adacore.com>
8289
8290 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8291 type is CORE_ADDR.
8292
1eb73179
TV
82932020-02-21 Tom de Vries <tdevries@suse.de>
8294
8295 PR gdb/25534
8296 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8297 if dependencies[i]->user != NULL.
8298
4f180d53
AT
82992020-02-21 Ali Tamur <tamur@google.com>
8300
8301 * dwarf2/read.c (dwarf2_name): Add null check.
8302
22b6cd70
TT
83032020-02-20 Tom Tromey <tom@tromey.com>
8304
8305 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8306 ">=", in binary search.
8307 (dwarf2_find_containing_comp_unit): New overload.
8308 (run_test): New self-test.
8309 (_initialize_dwarf2_read): Register new test.
8310
bd0cf5a6
NC
83112020-02-20 Nelson Chu <nelson.chu@sifive.com>
8312
8313 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8314 * riscv-tdep.h: Likewise.
8315 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8316 rv32-only CSR.
8317 * features/riscv/64bit-csr.xml: Regenerated.
8318
3f702acd
SDJ
83192020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8320 Tom Tromey <tom@tromey.com>
8321
8322 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8323 of 'fputc_unfiltered'.
8324 (putchar_unfiltered): Call 'fputc_unfiltered'.
8325 (fputc_unfiltered): Call 'fputs_unfiltered'.
8326
d13c7322
AB
83272020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8328
8329 * config.in: Regenerate.
8330 * configure: Regenerate.
8331 * configure.ac: Add --with-python-libdir option.
8332 * main.c: Use WITH_PYTHON_LIBDIR.
8333
869d8950
TT
83342020-02-19 Tom Tromey <tom@tromey.com>
8335
8336 * symtab.c (general_symbol_info::compute_and_set_names): Use
8337 obstack_strndup. Simplify call to symbol_set_demangled_name.
8338
298e9637
SM
83392020-02-19 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * dwarf2/read.c (allocate_signatured_type_table,
8342 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8343 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8344 Remove objfile parameter, update all callers.
8345
08410482
DE
83462020-02-19 Doug Evans <dje@google.com>
8347
8348 PR rust/25535
8349 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8350 rust_enum_variant calculation.
8351
dfdeeca1
TT
83522020-02-19 Tom Tromey <tromey@adacore.com>
8353
8354 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8355
2ef5453b
TT
83562020-02-19 Tom Tromey <tromey@adacore.com>
8357
8358 * ada-lang.c (cache_symbol): Use obstack_strdup.
8359
9f1528a1
AB
83602020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * configure: Regenerate.
8363
d3c22fa8
TT
83642020-02-19 Tom Tromey <tromey@adacore.com>
8365
8366 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8367 NULL check.
8368
bf84f706
MR
83692020-02-19 Maciej W. Rozycki <macro@wdc.com>
8370
8371 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8372
d1c9b20f
AB
83732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8376 if GDBSERVER is not defined.
8377 (riscv_tdesc_cache): Likewise, also store const target_desc.
8378 (STATIC_IN_GDB): Define.
8379 (riscv_create_target_description): Update declaration with
8380 STATIC_IN_GDB.
8381 (riscv_lookup_target_description): New function, only define if
8382 GDBSERVER is not defined.
8383 * arch/riscv.h (riscv_create_target_description): Declare only
8384 when GDBSERVER is defined.
8385 (riscv_lookup_target_description): New declaration when GDBSERVER
8386 is not defined.
8387 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8388 (riscv_linux_read_features): ...this, and return
8389 riscv_gdbarch_features instead of target_desc.
8390 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8391 (riscv_linux_read_description): Rename to...
8392 (riscv_linux_read_features): ...this.
8393 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8394 Update to use riscv_gdbarch_features and
8395 riscv_lookup_target_description.
8396 * riscv-tdep.c (riscv_find_default_target_description): Use
8397 riscv_lookup_target_description instead of
8398 riscv_create_target_description.
8399
373d7ac0
SM
84002020-02-18 Simon Marchi <simon.marchi@efficios.com>
8401
8402 * valprint.c (generic_val_print_enum_1): When printing a flag
8403 enum with value 0 and there is no enumerator with value 0, print
8404 just "0" instead of "(unknown: 0x0)".
8405
b29a2df0
SM
84062020-02-18 Simon Marchi <simon.marchi@efficios.com>
8407
8408 * valprint.c (generic_val_print_enum_1): Print unknown part of
8409 flag enum in hex.
8410
6740f0cc
SM
84112020-02-18 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8414 flag enums to contain duplicate enumerators.
8415 * valprint.c (generic_val_print_enum_1): Update comment.
8416
edd45eb0
SM
84172020-02-18 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * dwarf2/read.c: Include "count-one-bits.h".
8420 (update_enumeration_type_from_children): If an enumerator has
8421 multiple bits set, don't treat the enumeration as a "flag enum".
8422 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8423 of flag enums have 0 or 1 bit set.
8424
6d0cf446
BE
84252020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8426
8427 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8428 conversion.
8429 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8430 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8431 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8432 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8433 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8434
7001c1b7
SM
84352020-02-18 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8438
fdb61c6c
SM
84392020-02-14 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8442 displaced_step_closure_up.
8443 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8444 (struct displaced_step_closure_up):
8445 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8446 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8447 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8448 Likewise.
8449 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8450 * gdbarch.c, gdbarch.h: Re-generate.
8451 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8452 displaced_step_closure_up.
8453 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8454 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8455 * infrun.h (displaced_step_closure_up): New type alias.
8456 (struct displaced_step_inferior_state) <step_closure>: Change
8457 type to displaced_step_closure_up.
8458 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8459 displaced_step_closure_up.
8460 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8461
a4a38eb4
TT
84622020-02-14 Tom Tromey <tom@tromey.com>
8463
8464 * minidebug.c (gnu_debug_key): New global.
8465 (find_separate_debug_file_in_section): Use it.
8466
e8217e61
SM
84672020-02-14 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8470 std::unique_ptr.
8471 * gdbarch.c: Re-generate.
8472 * gdbarch.h: Re-generate.
8473 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8474 change.
8475 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8476 type to std::unique_ptr.
8477 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8478 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8479 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8480 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8481 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8482 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8483 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8484 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8485 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8486
d8d83535
SM
84872020-02-14 Simon Marchi <simon.marchi@efficios.com>
8488
8489 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8490 std::unique_ptr.
8491 (displaced_step_clear): Rename to...
8492 (displaced_step_reset): ... this. Just call displaced->reset ().
8493 (displaced_step_clear_cleanup): Rename to...
8494 (displaced_step_reset_cleanup): ... this.
8495 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8496 (displaced_step_fixup): Likewise.
8497 (resume_1): Likewise.
8498 (handle_inferior_event): Restore child's memory before calling
8499 displaced_step_fixup on the parent.
8500 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8501 to std::unique_ptr.
8502 <step_closure>: Change type to std::unique_ptr.
8503
5f661e03
SM
85042020-02-14 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * arm-tdep.c: Include count-one-bits.h.
8507 (cleanup_block_store_pc): Use count_one_bits.
8508 (cleanup_block_load_pc): Use count_one_bits.
8509 (arm_copy_block_xfer): Use count_one_bits.
8510 (thumb2_copy_block_xfer): Use count_one_bits.
8511 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8512 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8513 (thumb_get_next_pcs_raw): Use count_one_bits.
8514 (arm_get_next_pcs_raw): Use count_one_bits_l.
8515 * arch/arm.c (bitcount): Remove.
8516 * arch/arm.h (bitcount): Remove.
8517
8084e579
TT
85182020-02-14 Tom Tromey <tromey@adacore.com>
8519
8520 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8521 Update.
8522 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8523 * dwarf2/loc.c (call_site_find_chain_1): Return
8524 unique_xmalloc_ptr.
8525 (call_site_find_chain): Likewise.
8526
258bf0ee
RB
85272020-02-14 Richard Biener <rguenther@suse.de>
8528
8529 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8530 on expression with division operators.
8531
f98a8458
AKS
85322020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8533
8534 * MAINTAINERS (Write After Approval): Adding myself.
8535
d1437c0e
TT
85362020-02-12 Tom Tromey <tom@tromey.com>
8537
8538 * event-loop.c (event_data, gdb_event, event_handler_func):
8539 Remove.
8540
3d4560f7
TT
85412020-02-12 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8544 (dwarf2_frame_objfile_data): Add comment.
8545 (find_comp_unit, set_comp_unit): New functions.
8546 (dwarf2_frame_find_fde): Use find_comp_unit.
8547 (dwarf2_build_frame_info): Use set_comp_unit.
8548
21982304
TT
85492020-02-12 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8552 (comp_unit): Don't initialize objfile.
8553 (execute_cfa_program): Add text_offset parameter.
8554 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8555 (dwarf2_frame_cache): Update.
8556 (dwarf2_build_frame_info): Don't set "objfile" member.
8557
4debb237
TT
85582020-02-12 Tom Tromey <tom@tromey.com>
8559
8560 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8561 (decode_frame_entry): Likewise.
8562 (dwarf2_build_frame_info): Update.
8563
0d404d44
TT
85642020-02-12 Tom Tromey <tom@tromey.com>
8565
8566 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8567 (decode_frame_entry_1): Use the comp_unit obstack.
8568
a7a3ae5c
TT
85692020-02-12 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/frame.c (struct comp_unit): Add initializers and
8572 constructor.
8573 (dwarf2_frame_objfile_data): Store a comp_unit.
8574 (dwarf2_frame_find_fde): Update.
8575 (dwarf2_build_frame_info): Use "new".
8576
a9d65418
TT
85772020-02-12 Tom Tromey <tom@tromey.com>
8578
8579 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8580 (dwarf2_fde_table): Typedef for std::vector.
8581 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8582 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8583 (decode_frame_entry): Update.
8584 (dwarf2_build_frame_info): Use "new".
8585
7559c217
CB
85862020-02-12 Christian Biesinger <cbiesinger@google.com>
8587
8588 * arm-tdep.c (arm_gdbarch_init): Update.
8589 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8590 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8591 have_neon, is_m>: Change to bool.
8592
aeefc73c
CB
85932020-02-12 Christian Biesinger <cbiesinger@google.com>
8594
8595 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8596
d27b8e5f
TT
85972020-02-12 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8600
cd5900f3
HD
86012020-02-12 Hannes Domani <ssbssa@yahoo.de>
8602
8603 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8604 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8605
f056b22b
TT
86062020-02-11 Tom Tromey <tom@tromey.com>
8607
8608 * psymtab.h: Update comment.
8609
f92ff6b5
TT
86102020-02-11 Tom Tromey <tom@tromey.com>
8611
8612 * gdb_obstack.h (struct auto_obstack): Use
8613 DISABLE_COPY_AND_ASSIGN.
8614
3fd6912b
TT
86152020-02-11 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2/frame.h (struct objfile): Don't forward declare.
8618
69ed9b74
CB
86192020-02-11 Christian Biesinger <cbiesinger@google.com>
8620
8621 * cris-tdep.c (cris_supply_gregset): Change signature to match
8622 what struct regset expects.
8623 (cris_regset): New struct.
8624 (fetch_core_registers): Remove.
8625 (cris_iterate_over_regset_sections): New function.
8626 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8627 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8628
bda874f6
CB
86292020-02-11 Christian Biesinger <cbiesinger@google.com>
8630
8631 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8632 registers.
8633
754e1564
CB
86342020-02-11 Christian Biesinger <cbiesinger@google.com>
8635
8636 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8637
8ddd8e0e
SM
86382020-02-11 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * configure: Re-generate.
8641
898e7f60
SM
86422020-02-11 Simon Marchi <simon.marchi@efficios.com>
8643
8644 * configure: Re-generate.
8645
58df732b
SM
86462020-02-11 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * acinclude: Update warning.m4 path.
8649 * warning.m4: Move to gdbsupport.
8650
da5bd37e
TT
86512020-02-11 Tom Tromey <tromey@adacore.com>
8652
8653 * remote.c (remote_console_output): Update.
8654 * printcmd.c (printf_command): Update.
8655 * event-loop.c (gdb_wait_for_event): Update.
8656 * linux-nat.c (sigchld_handler): Update.
8657 * remote-sim.c (gdb_os_write_stdout): Update.
8658 (gdb_os_flush_stdout): Update.
8659 (gdb_os_flush_stderr): Update.
8660 (gdb_os_write_stderr): Update.
8661 * exceptions.c (print_exception): Update.
8662 * remote-fileio.c (remote_fileio_func_read): Update.
8663 (remote_fileio_func_write): Update.
8664 * tui/tui.c (tui_enable): Update.
8665 * tui/tui-interp.c (tui_interp::init): Update.
8666 * utils.c (init_page_info): Update.
8667 (putchar_unfiltered, fputc_unfiltered): Update.
8668 (gdb_flush): Update.
8669 (emit_style_escape): Update.
8670 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8671 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8672 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8673 (stderr_file::write): Update.
8674 (stderr_file::puts): Update.
8675 * ui-file.h (ui_file_isatty, ui_file_write)
8676 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8677 (ui_file_puts): Don't declare.
8678
85f0dd3c
TV
86792020-02-10 Tom de Vries <tdevries@suse.de>
8680
8681 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8682 sentinel to char *.
8683
2e927613
TV
86842020-02-09 Tom de Vries <tdevries@suse.de>
8685
8686 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8687 filename if it matches "<artificial>".
8688
6bafc845
HD
86892020-02-09 Hannes Domani <ssbssa@yahoo.de>
8690
8691 * windows-tdep.c (struct enum_value_name): New struct.
8692 (create_enum): New function.
8693 (windows_get_siginfo_type): Create and use enum types.
8694
7928d571
HD
86952020-02-09 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * NEWS: Mention $_siginfo support for Windows.
8698 * windows-nat.c (handle_exception): Set siginfo_er.
8699 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8700 (windows_xfer_siginfo): New function.
8701 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8702 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8703 (init_windows_gdbarch_data): New function.
8704 (get_windows_gdbarch_data): New function.
8705 (windows_get_siginfo_type): New function.
8706 (windows_init_abi): Register windows_get_siginfo_type.
8707 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8708
6751ebae
TT
87092020-02-08 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8712 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8713 <keep>: Declare method.
8714 <m_keep>: Remove member.
8715 <~cutu_reader>: Remove.
8716 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8717 (cutu_reader::cutu_reader): Update.
8718 (cutu_reader::keep): Rename from ~cutu_reader.
8719 (process_psymtab_comp_unit, build_type_psymtabs_1)
8720 (process_skeletonless_type_unit, load_partial_comp_unit)
8721 (load_full_comp_unit, dwarf2_read_addr_index)
8722 (read_signatured_type): Update.
8723
135f5437
TT
87242020-02-08 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8727 "want_partial_unit" parameter.
8728 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8729 Inline check for DW_TAG_partial_unit.
8730 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8731
9f66ff1c
TT
87322020-02-08 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8735 read.c.
8736 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8737 read.c.
8738
c8a7a66f
TT
87392020-02-08 Tom Tromey <tom@tromey.com>
8740
8741 * dwarf2/read.c (read_address): Move to comp-unit.c.
8742 (dwarf2_rnglists_process, dwarf2_ranges_process)
8743 (read_attribute_value, dwarf_decode_lines_1)
8744 (var_decode_location, decode_locdesc): Update.
8745 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8746 read.c. Remove "cu" parameter.
8747 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8748 method.
8749
8266302d
TT
87502020-02-08 Tom Tromey <tom@tromey.com>
8751
8752 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8753 (read_indirect_line_string): Update.
8754 * dwarf2/comp-unit.c (read_offset): Remove.
8755 (read_comp_unit_head): Update.
8756 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8757 method.
8758 (read_offset): Don't declare.
8759
4057dfde
TT
87602020-02-08 Tom Tromey <tom@tromey.com>
8761
8762 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8763 * dwarf2/read.c (struct comp_unit_head): Move to
8764 dwarf2/comp-unit.h.
8765 (enum class rcuh_kind): Move to comp-unit.h.
8766 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8767 (read_comp_unit_head, error_check_comp_unit_head)
8768 (read_and_check_comp_unit_head): Move to comp-unit.c.
8769 (read_offset, dwarf_unit_type_name): Likewise.
8770 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8771 (cutu_reader::cutu_reader, read_call_site_scope)
8772 (find_partial_die, follow_die_offset): Update.
8773 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8774
24aa364d
TT
87752020-02-08 Tom Tromey <tom@tromey.com>
8776
8777 * dwarf2/read.c (read_offset_1): Move to leb.c.
8778 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8779 (dwarf_decode_macro_bytes): Update.
8780 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8781 * dwarf2/leb.h (read_offset): Declare.
8782
2c7d5afc
TT
87832020-02-08 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/read.c (dwarf2_section_size): Remove.
8786 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8787 Update.
8788 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8789
4075cb26
TT
87902020-02-08 Tom Tromey <tom@tromey.com>
8791
8792 * dwarf2/read.c (read_initial_length): Move to leb.c.
8793 * dwarf2/leb.h (read_initial_length): Declare.
8794 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8795 handle_nonstd parameter.
8796 * dwarf2/frame.c (read_initial_length): Remove.
8797 (decode_frame_entry_1): Update.
8798
09ba997f
TT
87992020-02-08 Tom Tromey <tom@tromey.com>
8800
8801 * dwarf2/loc.c (dwarf2_find_location_expression)
8802 (dwarf_evaluate_loc_desc::get_tls_address)
8803 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8804 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8805 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8806 (dwarf2_compile_property_to_c)
8807 (dwarf2_loc_desc_get_symbol_read_needs)
8808 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8809 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8810 (loclist_describe_location, loclist_tracepoint_var_ref)
8811 (loclist_generate_c_location): Update.
8812 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8813 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8814 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8815 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8816 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8817 (dwarf2_per_cu_data::addr_size)
8818 (dwarf2_per_cu_data::ref_addr_size)
8819 (dwarf2_per_cu_data::text_offset)
8820 (dwarf2_per_cu_data::addr_type): Now methods.
8821 (per_cu_header_read_in): Make per_cu "const".
8822 (dwarf2_version): Remove.
8823 (dwarf2_per_cu_data::int_type): Now a method.
8824 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8825 (set_die_type, read_array_type, read_subrange_index_type)
8826 (read_tag_string_type, read_subrange_type): Update.
8827 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8828 offset_size, ref_addr_size, text_offset, addr_type, version,
8829 objfile, int_type, addr_sized_int_type>: Declare methods.
8830
96c738c0
TT
88312020-02-08 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8834 Move earlier.
8835
8fdd972c
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2/read.h (dwarf_line_debug): Declare.
8839 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8840 * dwarf2/read.c: Move line_header code to new files.
8841 (dwarf_line_debug): No longer static.
8842 * dwarf2/line-header.c: New file.
8843 * dwarf2/line-header.h: New file.
8844
03075812
TT
88452020-02-08 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/read.c (struct line_header) <file_full_name,
8848 file_file_name>: Return unique_xmalloc_ptr.
8849 (line_header::file_file_name): Update.
8850 (line_header::file_full_name): Update.
8851 (dw2_get_file_names_reader): Update.
8852 (macro_start_file): Update.
8853
bb822404
TT
88542020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2/read.c (struct line_header) <file_full_name,
8857 file_file_name>: Declare methods.
8858 (dw2_get_file_names_reader): Update.
8859 (file_file_name): Now a method.
8860 (file_full_name): Likewise.
8861 (macro_start_file): Update.
8862
009b64fc
TT
88632020-02-08 Tom Tromey <tom@tromey.com>
8864
8865 * dwarf2/read.c (dwarf_always_disassemble)
8866 (show_dwarf_always_disassemble): Move to loc.c.
8867 (_initialize_dwarf2_read): Move "always-disassemble" registration
8868 to loc.c.
8869 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8870 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8871 static.
8872 (show_dwarf_always_disassemble): Move from read.c.
8873 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8874
5895093f
TT
88752020-02-08 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8878 (create_quick_file_names_table): Return htab_up.
8879 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8880 Update.
8881 * dwarf2/read.h (struct dwarf2_per_objfile)
8882 <quick_file_names_table>: Now htab_up.
8883
b3b32279
TT
88842020-02-08 Tom Tromey <tom@tromey.com>
8885
8886 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8887
1d33d811
TT
88882020-02-08 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8891 Rewrite.
8892 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8893 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8894 (abbrev_table::abbrev_table): No longer inline.
8895 (ABBREV_HASH_SIZE): Remove.
8896 (abbrev_table::m_abbrevs): Now an htab_up.
8897
86de1d91
TT
88982020-02-08 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8901 (cutu_reader): Update.
8902 (build_type_psymtabs_1): Update.
8903 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8904 (abbrev_table::alloc_abbrev): Update.
8905 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8906 (abbrev_table::read): New static method, renamed from
8907 abbrev_table_read_table.
8908 (abbrev_table::alloc_abbrev)
8909 (abbrev_table::add_abbrev): Now private.
8910 (abbrev_table::abbrev_table): Now private.
8911 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8912
0335378b
TT
89132020-02-08 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8916 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8917 htab_up.
8918
48b490f2
TT
89192020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8922 htab_up.
8923 (lookup_dwo_unit_in_dwp): Update.
8924 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8925 on obstack.
8926
bc68fb19
TT
89272020-02-08 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8930 obstack.
8931
d15acc42
TT
89322020-02-08 Tom Tromey <tom@tromey.com>
8933
8934 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8935 line_header_hash.
8936 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8937 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8938 Change type to htab_up.
8939
eaa5fa8b
TT
89402020-02-08 Tom Tromey <tom@tromey.com>
8941
8942 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8943 htab_up. Don't allocate on obstack.
8944 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8945 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8946 Change type to htab_up.
8947
b0b6a987
TT
89482020-02-08 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8951 Change type to htab_up.
8952 * dwarf2/read.c (create_signatured_type_table_from_index)
8953 (create_signatured_type_table_from_debug_names)
8954 (create_all_type_units, add_type_unit)
8955 (lookup_dwo_signatured_type, lookup_signatured_type)
8956 (process_skeletonless_type_unit): Update.
8957 (create_debug_type_hash_table, create_debug_types_hash_table):
8958 Change type of types_htab.
8959 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8960 htab_up. Don't allocate on obstack.
8961 (create_cus_hash_table): Change type of cus_htab parameter.
8962 (struct dwo_file) <cus, tus>: Now htab_up.
8963 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8964 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8965 (queue_and_load_all_dwo_tus): Update.
8966 * dwarf2/index-write.c (write_gdbindex): Update.
8967 (write_debug_names): Update.
8968
39856def
TT
89692020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8972 dwarf2/read.c. Remove "next" member. Add constructor ntad
8973 destructor.
8974 (struct dwarf2_per_objfile) <queue>: New member.
8975 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8976 dwarf2/read.h.
8977 (dwarf2_queue, dwarf2_queue_tail): Remove.
8978 (class dwarf2_queue_guard): Add parameter to constructor. Use
8979 DISABLE_COPY_AND_ASSIGN.
8980 <m_per_objfile>: New member.
8981 <~dwarf2_queue_guard>: Rewrite.
8982 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8983 Update.
8984 (~dwarf2_queue_item): New.
8985
3e225074
TT
89862020-02-08 Tom Tromey <tom@tromey.com>
8987
8988 * dwarf2/read.c (struct die_info) <has_children>: New member.
8989 (dw2_get_file_names_reader): Remove has_children.
8990 (dw2_get_file_names): Update.
8991 (read_cutu_die_from_dwo): Remove has_children.
8992 (cutu_reader::init_tu_and_read_dwo_dies)
8993 (cutu_reader::cutu_reader): Update.
8994 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8995 Remove has_children.
8996 (build_type_psymtabs_1, process_skeletonless_type_unit)
8997 (load_partial_comp_unit, load_full_comp_unit): Update.
8998 (create_dwo_cu_reader): Remove has_children.
8999 (create_cus_hash_table, read_die_and_children): Update.
9000 (read_full_die_1,read_full_die): Remove has_children.
9001 (read_signatured_type): Update.
9002 (class cutu_reader) <has_children>: Remove.
9003
82ca8957
TT
90042020-02-08 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/expr.c: Rename from dwarf2expr.c.
9007 * dwarf2/expr.h: Rename from dwarf2expr.h.
9008 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9009 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9010 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9011 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9012 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9013 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9014 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9015 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9016 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9017 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9018 * dwarf2/loc.c: Rename from dwarf2loc.c.
9019 * dwarf2/loc.h: Rename from dwarf2loc.h.
9020 * dwarf2/read.c: Rename from dwarf2read.c.
9021 * dwarf2/read.h: Rename from dwarf2read.h.
9022 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9023 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9024 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9025 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9026 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9027 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9028 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9029 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9030 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9031 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9032 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9033 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9034 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9035 Update.
9036 * Makefile.in (COMMON_SFILES): Update.
9037 (HFILES_NO_SRCDIR): Update.
9038
9e35d499
TT
90392020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9042 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9043
1eba2311
TT
90442020-02-08 Tom Tromey <tom@tromey.com>
9045
9046 * dwarf2read.h (struct die_info): Don't declare.
9047
e41c2da2
TT
90482020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2read.h (die_info_ptr): Remove typedef.
9051
4fc6c0d5
TT
90522020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2read.c (read_call_site_scope)
9055 (handle_data_member_location, dwarf2_add_member_fn)
9056 (mark_common_block_symbol_computed, read_common_block)
9057 (attr_to_dynamic_prop, partial_die_info::read)
9058 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9059 (dwarf2_symbol_mark_computed, set_die_type): Update.
9060 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9061 method.
9062 (attr_form_is_block): Don't declare.
9063 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9064
cd6c91b4
TT
90652020-02-08 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2read.c (dwarf2_find_base_address, )
9068 (read_call_site_scope, rust_containing_type)
9069 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9070 (handle_data_member_location, dwarf2_add_member_fn)
9071 (get_alignment, read_structure_type, process_structure_scope)
9072 (mark_common_block_symbol_computed, read_common_block)
9073 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9074 (partial_die_info::read, read_attribute_value, new_symbol)
9075 (lookup_die_type, dwarf2_get_ref_die_offset)
9076 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9077 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9078 (dwarf2_symbol_mark_computed): Update.
9079 * dwarf2/attribute.h (struct attribute) <value_as_address,
9080 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9081 methods.
9082 (value_as_address, attr_form_is_section_offset)
9083 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9084 * dwarf2/attribute.c (attribute::value_as_address)
9085 (attribute::form_is_section_offset, attribute::form_is_constant)
9086 (attribute::form_is_ref): Now methods.
9087
162dce55
TT
90882020-02-08 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2read.c (struct attribute, DW_STRING)
9091 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9092 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9093 (attr_form_is_block, attr_form_is_section_offset)
9094 (attr_form_is_constant, attr_form_is_ref): Move.
9095 * dwarf2/attribute.h: New file.
9096 * dwarf2/attribute.c: New file, from dwarf2read.c.
9097 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9098
3054dd54
TT
90992020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9102 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9103 Move.
9104 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9105 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9106 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9107 abbrev.c.
9108 * dwarf2/abbrev.h: New file.
9109 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9110 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9111
96b79293
TT
91122020-02-08 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9115 (dwarf2_section_size, dwarf2_get_section_info)
9116 (create_signatured_type_table_from_debug_names)
9117 (create_addrmap_from_aranges, read_debug_names_from_section)
9118 (get_gdb_index_contents_from_section, read_comp_unit_head)
9119 (error_check_comp_unit_head, read_abbrev_offset)
9120 (create_debug_type_hash_table, init_cu_die_reader)
9121 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9122 (read_comp_units_from_section, create_cus_hash_table)
9123 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9124 (create_dwp_v2_section, dwarf2_rnglists_process)
9125 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9126 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9127 (read_indirect_string_from_dwz, read_addr_index_1)
9128 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9129 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9130 (fill_in_loclist_baton): Update.
9131 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9132 get_containing_section, get_bfd_owner, get_bfd_section,
9133 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9134 (dwarf2_read_section, get_section_name, get_section_file_name)
9135 (get_containing_section, get_section_bfd_owner)
9136 (get_section_bfd_section, get_section_name, get_section_file_name)
9137 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9138 declare.
9139 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9140 (dwarf2_section_info::get_bfd_owner)
9141 (dwarf2_section_info::get_bfd_section)
9142 (dwarf2_section_info::get_name)
9143 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9144 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9145 (dwarf2_section_info::read): Now methods.
9146 * dwarf-index-write.c (class debug_names): Update.
9147
2c86cff9
TT
91482020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9151 Move to dwarf2/section.h.
9152 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9153 (get_section_bfd_section, get_section_name)
9154 (get_section_file_name, get_section_id, get_section_flags)
9155 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9156 dwarf2/section.c.
9157 * dwarf2/section.h: New file.
9158 * dwarf2/section.c: New file, from dwarf2read.c.
9159 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9160
f4382c45
TT
91612020-02-08 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9164 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9165 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9166 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9167 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9168 * dwarf2/leb.h: New file, from dwarf2read.c.
9169 * dwarf2/leb.c: New file, from dwarf2read.c.
9170 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9171 Remove.
9172 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9173 (COMMON_SFILES): Add dwarf2/leb.c.
9174
01840b7a
JB
91752020-02-08 Joel Brobecker <brobecker@adacore.com>
9176
9177 GDB 9.1 released.
9178
dfcb27e4
IB
91792020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9180
9181 PR gdb/25190:
aac66a4c
SM
9182 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9183 * gdb/remote.c (remote_console_output): Update.
9184 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9185 (ui_file_puts): ...this.
9186 * gdb/ui-file.h (ui_file_puts): Add declaration.
9187 * gdb/utils.c (emit_style_escape): Update.
9188 (flush_wrap_buffer): Update.
9189 (fputs_maybe_filtered): Update.
9190 (fputs_unfiltered): Add function.
dfcb27e4 9191
faa17681
IB
91922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9193
aac66a4c
SM
9194 * gdb/event-loop.c (gdb_wait_for_event): Update.
9195 * gdb/printcmd.c (printf_command): Update.
9196 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9197 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9198 (gdb_os_flush_stderr): Update.
9199 * gdb/remote.c (remote_console_output): Update.
9200 * gdb/ui-file.c (gdb_flush): Rename to...
9201 (ui_file_flush): ...this.
9202 (stderr_file::write): Update.
9203 (stderr_file::puts): Update.
9204 * gdb/ui-file.h (gdb_flush): Rename to...
9205 (ui_file_flush): ...this.
9206 * gdb/utils.c (gdb_flush): Add function.
9207 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9208
5abbbe1d
TT
92092020-02-07 Tom Tromey <tromey@adacore.com>
9210
9211 PR breakpoints/24915:
9212 * source.c (find_and_open_source): Do not check basenames_may_differ.
9213
919adfe8
TT
92142020-02-07 Tom Tromey <tom@tromey.com>
9215
9216 * README: Update gdbserver documentation.
9217 * gdbserver: Move to top level.
9218 * configure.tgt (build_gdbserver): Remove.
9219 * configure.ac: Remove --enable-gdbserver.
9220 * configure: Rebuild.
9221 * Makefile.in (distclean): Don't mention gdbserver.
9222
1d5d29e7
SV
92232020-02-06 Shahab Vahedi <shahab@synopsys.com>
9224
9225 * source-cache.c (source_cache::ensure): Surround
9226 get_plain_source_lines with a try/catch.
9227 (source_cache::get_line_charpos): Get rid of try/catch
9228 and only check for the return value of "ensure".
9229 * tui/tui-source.c (tui_source_window::set_contents):
9230 Simplify "nlines" calculation.
9231
6eb1129c
SV
92322020-02-06 Shahab Vahedi <shahab@synopsys.com>
9233
9234 * MAINTAINERS (Write After Approval): Add myself.
9235
c6a42d11
CB
92362020-02-05 Christian Biesinger <cbiesinger@google.com>
9237
9238 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9239 function call.
9240
c8ecdda6
CB
92412020-02-05 Christian Biesinger <cbiesinger@google.com>
9242
9243 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9244
f6480e70
MR
92452020-02-05 Maciej W. Rozycki <macro@wdc.com>
9246
9247 * nat/riscv-linux-tdesc.h: New file.
9248 * nat/riscv-linux-tdesc.c: New file, taking code from...
9249 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9250 ... here.
9251 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9252 NATDEPFILES.
9253
dcc9fbc6
AB
92542020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9257 we don't set the fake simulator ptid to the null_ptid.
9258
719546c4
SM
92592020-02-03 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9262 * gdbthread.h (class thread_info) <resumed>: Likewise.
9263 * infrun.c (resume_1): Likewise.
9264 (proceed): Likewise.
9265 (infrun_thread_stop_requested): Likewise.
9266 (stop_all_threads): Likewise.
9267 (handle_inferior_event): Likewise.
9268 (restart_threads): Likewise.
9269 (finish_step_over): Likewise.
9270 (keep_going_stepped_thread): Likewise.
9271 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9272 (linux_handle_extended_wait): Likewise.
9273 * record-btrace.c (get_thread_current_frame_id): Likewise.
9274 * record-full.c (record_full_wait_1): Likewise.
9275 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9276 * target.c (target_resume): Likewise.
9277 * thread.c (set_running_thread): Likewise.
9278
e409c542
AKS
92792020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9280
9281 * f-valprint.c (f77_print_array_1): Changed datatype of index
9282 variable to LONGEST from int to enable it to contain bound
9283 values correctly.
9284
ee98c0da
MR
92852020-02-03 Maciej W. Rozycki <macro@wdc.com>
9286
9287 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9288 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9289 offsets according to FLEN determined.
9290 (riscv_linux_nat_target::read_description): Determine FLEN
9291 dynamically.
9292 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9293 according to FLEN determined.
9294 (riscv_linux_nat_target::store_registers): Likewise.
9295
aa66aac4
SV
92962020-02-01 Shahab Vahedi <shahab@synopsys.com>
9297
9298 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9299 when reg->group is empty and reggroup is not.
9300
fd9faca8
TT
93012020-01-31 Tom Tromey <tromey@adacore.com>
9302
9303 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9304 Call beneath target's mourn_inferior after unpushing.
9305
42330a68
AB
93062020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9307
9308 PR tui/9765
9309 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9310 have enough lines to fill the screen, still return the lowest
9311 address we found.
9312
7a27a45b
AB
93132020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9314
9315 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9316 '-', '<', and '>' commands.
9317
c47f70e2
PA
93182020-01-29 Pedro Alves <palves@redhat.com>
9319 Sergio Durigan Junior <sergiodj@redhat.com>
9320
9321 * infcmd.c (construct_inferior_arguments): Assert that
9322 'argc' is greater than 0.
9323
5133a315
LM
93242020-01-29 Luis Machado <luis.machado@linaro.org>
9325
9326 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9327 (BRK_INSN_MASK): Define to 0xd4200000.
9328 (aarch64_program_breakpoint_here_p): New function.
9329 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9330 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9331 breakpoint.c.
9332 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9333 breakpoint.h
9334 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9335 call gdbarch_program_breakpoint_here_p.
9336 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9337 default_program_breakpoint_here_p, changed return type to bool and
9338 simplified.
9339 * breakpoint.h (program_breakpoint_here): Moved prototype to
9340 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9341 return type to bool.
9342 * gdbarch.c: Regenerate.
9343 * gdbarch.h: Regenerate.
9344 * gdbarch.sh (program_breakpoint_here_p): New method.
9345 * infrun.c (handle_signal_stop): Call
9346 gdbarch_program_breakpoint_here_p.
9347
168f8c6b
TT
93482020-01-26 Tom Tromey <tom@tromey.com>
9349
9350 * ctfread.c (struct ctf_fp_info): Reindent.
9351 (_initialize_ctfread): Remove.
9352
128a391f
TT
93532020-01-26 Tom Tromey <tom@tromey.com>
9354
9355 * psymtab.c (partial_map_expand_apply)
9356 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9357 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9358 (psym_print_stats, psym_expand_symtabs_for_function)
9359 (psym_map_symbol_filenames, psym_map_matching_symbols)
9360 (psym_expand_symtabs_matching)
9361 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9362 (maintenance_check_psymtabs): Use new methods.
9363 * psympriv.h (struct partial_symtab) <readin_p,
9364 get_compunit_symtab>: New methods.
9365 <readin, compunit_symtab>: Remove members.
9366 (struct standard_psymtab): New.
9367 (struct legacy_psymtab): Derive from standard_psymtab.
9368 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9369 standard_psymtab.
9370 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9371
0494dbec
TT
93722020-01-26 Tom Tromey <tom@tromey.com>
9373
9374 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9375 read_dependencies. Add assert.
9376 * psymtab.c (partial_symtab::read_dependencies): New method.
9377 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9378 method.
9379 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9380 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9381 read_dependencies.
9382 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9383 Add assert.
9384
8566b89b
TT
93852020-01-26 Tom Tromey <tom@tromey.com>
9386
9387 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9388 Call expand_psymtab.
9389 (xcoff_read_symtab): Call expand_psymtab.
9390 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9391 legacy_expand_psymtab.
9392 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9393 method.
9394 (struct legacy_psymtab) <expand_psymtab>: Implement.
9395 <legacy_expand_psymtab>: New member.
9396 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9397 (parse_partial_symbols): Set legacy_expand_psymtab.
9398 (psymtab_to_symtab_1): Change argument order. Call
9399 expand_psymtab.
9400 (new_psymtab): Set legacy_expand_psymtab.
9401 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9402 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9403 expand_psymtab.
9404 (dwarf2_psymtab::expand_psymtab): Rename from
9405 psymtab_to_symtab_1. Call expand_psymtab.
9406 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9407 (dbx_end_psymtab): Likewise.
9408 (dbx_psymtab_to_symtab_1): Change argument order. Call
9409 expand_psymtab.
9410 (dbx_read_symtab): Call expand_psymtab.
9411 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9412 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9413 (ctf_psymtab::read_symtab): Call expand_psymtab.
9414
077cbab2
TT
94152020-01-26 Tom Tromey <tom@tromey.com>
9416
9417 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9418 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9419 messages.
9420 * mdebugread.c (mdebug_read_symtab): Remove prints.
9421 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9422 assert.
9423 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9424
891813be
TT
94252020-01-26 Tom Tromey <tom@tromey.com>
9426
9427 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9428 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9429 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9430 legacy_symtab.
9431 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9432 * psymtab.c (psymtab_to_symtab): Call method.
9433 (dump_psymtab): Update.
9434 * psympriv.h (struct partial_symtab): Add virtual destructor.
9435 <read_symtab>: New method.
9436 (struct legacy_symtab): New.
9437 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9438 (struct pst_map) <pst>: Now a legacy_psymtab.
9439 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9440 (new_psymtab): Use legacy_psymtab.
9441 * dwarf2read.h (struct dwarf2_psymtab): New.
9442 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9443 * dwarf2read.c (dwarf2_create_include_psymtab)
9444 (dwarf2_build_include_psymtabs, create_type_unit_group)
9445 (create_partial_symtab, process_psymtab_comp_unit_reader)
9446 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9447 (set_partial_user): Use dwarf2_psymtab.
9448 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9449 (psymtab_to_symtab_1, process_full_comp_unit)
9450 (process_full_type_unit, dwarf2_ranges_read)
9451 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9452 (dwarf_decode_lines): Use dwarf2_psymtab.
9453 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9454 (add_address_entry_worker, write_one_signatured_type)
9455 (recursively_count_psymbols, recursively_write_psymbols)
9456 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9457 (write_debug_names): Likewise.
9458 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9459 <pst>: Now a legacy_psymtab.
9460 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9461 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9462 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9463 * ctfread.c (struct ctf_psymtab): New.
9464 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9465 ctf_psymtab.
9466 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9467 (create_partial_symtab): Return a ctf_psymtab.
9468 (scan_partial_symbols): Update.
9469
c3693a1d
TT
94702020-01-26 Tom Tromey <tom@tromey.com>
9471
9472 * xcoffread.c (xcoff_start_psymtab): Use new.
9473 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9474 renamed from start_psymtab_common.
9475 * psympriv.h (struct partial_symtab): Add new constructor.
9476 (start_psymtab_common): Don't declare.
9477 * mdebugread.c (parse_partial_symbols): Use new.
9478 * dwarf2read.c (create_partial_symtab): Use new.
9479 * dbxread.c (start_psymtab): Use new.
9480 * ctfread.c (create_partial_symtab): Use new.
9481
32caafd0
TT
94822020-01-26 Tom Tromey <tom@tromey.com>
9483
9484 * xcoffread.c (xcoff_end_psymtab): Use new.
9485 * psymtab.c (start_psymtab_common): Use new.
9486 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9487 Update.
9488 * psympriv.h (struct partial_symtab): Add parameters to
9489 constructor. Don't inline.
9490 (allocate_psymtab): Don't declare.
9491 * mdebugread.c (new_psymtab): Use new.
9492 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9493 * dbxread.c (dbx_end_psymtab): Use new.
9494
abaa2f23
TT
94952020-01-26 Tom Tromey <tom@tromey.com>
9496
9497 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9498 allocate_psymtab. Update documentation.
9499 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9500 allocate_psymtab. Do not use new.
9501 (allocate_psymtab): Use new. Update.
9502
6d94535f
TT
95032020-01-26 Tom Tromey <tom@tromey.com>
9504
9505 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9506 * psymtab.c (psym_print_stats): Update.
9507 * psympriv.h (struct partial_symtab) <readin,
9508 psymtabs_addrmap_supported, anonymous>: Now bool.
9509 * mdebugread.c (psymtab_to_symtab_1): Update.
9510 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9511 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9512 (process_full_comp_unit, process_full_type_unit): Update.
9513 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9514 * ctfread.c (psymtab_to_symtab): Update.
9515
6f17252b
TT
95162020-01-26 Tom Tromey <tom@tromey.com>
9517
9518 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9519 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9520 * psymtab.c (psymtab_storage): Delete psymtabs.
9521 (psymtab_storage::allocate_psymtab): Use new.
9522 (psymtab_storage::discard_psymtab): Use delete.
9523 * psympriv.h (struct partial_symtab): Add constructor and
9524 initializers.
9525
f6f1cebc
TT
95262020-01-26 Tom Tromey <tom@tromey.com>
9527
9528 * machoread.c: Do not include psympriv.h.
9529
e47e48f6
PW
95302020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9531
9532 * NEWS: Mention the new option and the set/show commands.
9533
a2fedca9
PW
95342020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9535
9536 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9537 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9538 (validate_exec_file): New variables, enums, functions.
9539 (exec_file_locate_attach, print_section_info): Style the filenames.
9540 (_initialize_exec): Install show_exec_file_mismatch_command and
9541 set_exec_file_mismatch_command.
9542 * gdbcore.h (validate_exec_file): Declare.
9543 * infcmd.c (attach_command): Call validate_exec_file.
9544 * remote.c ( remote_target::remote_add_inferior): Likewise.
9545
7ffa82e1
AB
95462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9547
9548 * frame.c (find_frame_sal): Move call to get_next_frame into more
9549 inner scope.
9550 * inline-frame.c (inilne_state) <inline_state>: Update argument
9551 types.
9552 (inilne_state) <skipped_symbol>: Rename to...
9553 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9554 (skip_inline_frames): Build vector of skipped symbols and use this
9555 to reate the inline_state.
9556 (inline_skipped_symbol): Add a comment and some assertions, fetch
9557 skipped symbol from the list.
9558
3d92a3e3
AB
95592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9560
9561 * buildsym.c (lte_is_less_than): Delete.
9562 (buildsym_compunit::end_symtab_with_blockvector): Create local
9563 lambda function to sort line table entries, and use
9564 std::stable_sort instead of std::sort.
9565 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9566 markers when looking for a previous line.
9567
94a72be7
AB
95682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9569
9570 * dwarf2read.c (lnp_state_machine::record_line): Include
9571 end_sequence parameter in debug print out. Record the line if we
9572 are at an end_sequence marker even if it's not the start of a
9573 statement.
9574 * symmisc.c (maintenance_print_one_line_table): Print end of
9575 sequence markers with 'END' not '0'.
9576
53af73bf
PA
95772020-01-24 Pedro Alves <palves@redhat.com>
9578
9579 PR gdb/25410
9580 * thread.c (scoped_restore_current_thread::restore): Use
9581 switch_to_inferior_no_thread.
9582 * exec.c: Include "progspace-and-thread.h".
9583 (add_target_sections, remove_target_sections):
9584 scoped_restore_current_pspace_and_thread instead of
9585 scoped_restore_current_thread.
9586 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9587 and aspace to the inferior before calling clone_program_space.
9588 Remove stale comment.
9589
3050c6f4
CB
95902020-01-24 Christian Biesinger <cbiesinger@google.com>
9591
9592 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9593 (arm_netbsd_nat_target::fetch_registers): ...this.
9594 (arm_nbsd_nat_target::store_registers): Rename to...
9595 (arm_netbsd_nat_target::store_registers): ...this.
9596
73685c7e
CB
95972020-01-24 Christian Biesinger <cbiesinger@google.com>
9598
9599 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9600 register_t.
9601
89203d40
CB
96022020-01-24 Christian Biesinger <cbiesinger@google.com>
9603
9604 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9605 Update comment.
9606 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9607 Likewise.
9608 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9609 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9610 the correct replacement (iterate_over_regset_sections).
9611 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9612 Update comment.
9613
1ba1ac88
AB
96142020-01-24 Graham Markall <graham.markall@embecosm.com>
9615
9616 PR gdb/23718
9617 * gdb/python/python.c (execute_gdb_command): Call
9618 async_enable_stdin in catch block.
9619
f3364a6d
AB
96202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9621
9622 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9623 SWITCH_THRU_ALL_UIS.
9624
733d0a67
AB
96252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9626
9627 PR tui/9765
9628 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9629 comment, add extra parameter, and update to store previous symbol
9630 when appropriate.
9631 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9632 add extra parameter.
9633 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9634 remove unneeded parameter, add try/catch around gdb_print_insn,
9635 rewrite to add items to asm_lines vector.
9636 (tui_find_backward_disassembly_start_address): New function.
9637 (tui_find_disassembly_address): Updated throughout.
9638 (tui_disasm_window::set_contents): Update for changes to
9639 tui_disassemble.
9640 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9641 number of lines to scroll.
9642
b3b3bada
SM
96432020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9644
9645 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9646 (SECT_OFF_DATA): Likewise.
9647 (SECT_OFF_RODATA): Likewise.
9648 (SECT_OFF_TEXT): Likewise.
9649 (SECT_OFF_BSS): Likewise.
9650 (struct objfile) <text_section_offset, data_section_offset>: New
9651 methods.
9652 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9653 objfile::text_section_offset.
9654 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9655 * coffread.c (coff_symtab_read): Likewise.
9656 (enter_linenos): Likewise.
9657 (process_coff_symbol): Likewise.
9658 * ctfread.c (get_objfile_text_range): Likewise.
9659 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9660 Use objfile::data_section_offset.
9661 * dwarf2-frame.c (execute_cfa_program): Use
9662 objfile::text_section_offset.
9663 (dwarf2_frame_find_fde): Likewise.
9664 * dwarf2read.c (create_addrmap_from_index): Likewise.
9665 (create_addrmap_from_aranges): Likewise.
9666 (dw2_find_pc_sect_compunit_symtab): Likewise.
9667 (process_psymtab_comp_unit_reader): Likewise.
9668 (add_partial_symbol): Likewise.
9669 (add_partial_subprogram): Likewise.
9670 (process_full_comp_unit): Likewise.
9671 (read_file_scope): Likewise.
9672 (read_func_scope): Likewise.
9673 (read_lexical_block_scope): Likewise.
9674 (read_call_site_scope): Likewise.
9675 (dwarf2_rnglists_process): Likewise.
9676 (dwarf2_ranges_process): Likewise.
9677 (dwarf2_ranges_read): Likewise.
9678 (dwarf_decode_lines_1): Likewise.
9679 (new_symbol): Likewise.
9680 (dwarf2_fetch_die_loc_sect_off): Likewise.
9681 (dwarf2_per_cu_text_offset): Likewise.
9682 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9683 * hppa-tdep.c (read_unwind_info): Likewise.
9684 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9685 * psympriv.h (struct partial_symtab): Likewise.
9686 * psymtab.c (find_pc_sect_psymtab): Likewise.
9687 * solib-svr4.c (enable_break): Likewise.
9688 * stap-probe.c (relocate_address): Use
9689 objfile::data_section_offset.
9690 * xcoffread.c (enter_line_range): Use
9691 objfile::text_section_offset.
9692 (read_xcoff_symtab): Likewise.
9693
ab53f382
SM
96942020-01-23 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9697 declaration to narrower scopes.
9698
e7eee665
SM
96992020-01-23 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * darwin-nat.h (struct darwin_exception_msg, enum
9702 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9703 Move up.
9704 (class darwin_nat_target) <wait_1, check_new_threads,
9705 decode_exception_message, decode_message, stop_inferior,
9706 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9707 * darwin-nat.c (darwin_check_new_threads): Rename to...
9708 (darwin_nat_target::check_new_threads): ... this.
9709 (darwin_suspend_inferior_it): Remove.
9710 (darwin_decode_exception_message): Rename to...
9711 (darwin_nat_target::decode_exception_message): ... this.
9712 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9713 (darwin_decode_message): Rename to...
9714 (darwin_nat_target::decode_message): ... this.
9715 (cancel_breakpoint): Rename to...
9716 (darwin_nat_target::cancel_breakpoint): ... this.
9717 (darwin_wait): Rename to...
9718 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9719 instead of iterate_over_inferiors.
9720 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9721 (darwin_stop_inferior): Rename to...
9722 (darwin_nat_target::stop_inferior): ... this.
9723 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9724 (darwin_init_thread_list): Rename to...
9725 (darwin_nat_target::init_thread_list): ... this.
9726 (darwin_ptrace_him): Rename to...
9727 (darwin_nat_target::ptrace_him): ... this.
9728 (darwin_nat_target::create_inferior): Pass lambda function to
9729 fork_inferior.
9730 (darwin_nat_target::detach): Call stop_inferior instead of
9731 darwin_stop_inferior.
9732 * fork-inferior.h (fork_inferior): Change init_trace_fun
9733 parameter to gdb::function_view.
9734 * fork-inferior.c (fork_inferior): Likewise.
9735
c162ed3e
HD
97362020-01-23 Hannes Domani <ssbssa@yahoo.de>
9737
9738 * i386-cygwin-tdep.c (core_process_module_section): Update.
9739 * windows-nat.c (struct lm_info_windows): Add text_offset.
9740 (windows_xfer_shared_libraries): Update.
9741 * windows-tdep.c (windows_xfer_shared_library):
9742 Add text_offset_cached argument.
9743 * windows-tdep.h (windows_xfer_shared_library): Update.
9744
a1237872
SM
97452020-01-21 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9748
b3ee6dd9
SM
97492020-01-21 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9752 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9753 replace with range-based for.
9754 (gdbsim_interrupt_inferior): Remove.
9755 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9756 with a range-based for. Inline code from
9757 gdbsim_interrupt_inferior.
9758
f9fac3c8
SM
97592020-01-21 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * infrun.c (proceed): Fix indentation.
9762
f6474de9
TT
97632020-01-21 Tom Tromey <tromey@adacore.com>
9764
9765 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9766 * python/python.c (python_extension_ops): Update.
9767 (gdbpy_colorize): New function.
9768 * python/lib/gdb/__init__.py (colorize): New function.
9769 * extension.h (ext_lang_colorize): Declare.
9770 * extension.c (ext_lang_colorize): New function.
9771 * extension-priv.h (struct extension_language_ops) <colorize>: New
9772 member.
9773 * cli/cli-style.c (_initialize_cli_style): Update help text.
9774
f0c702d4
LM
97752020-01-21 Luis Machado <luis.machado@linaro.org>
9776
9777 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9778 <cond>: Change type to bool.
9779 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9780 (aarch64_displaced_step_cb): Likewise.
9781 (aarch64_displaced_step_tb): Likewise.
9782
1ab139e5
LM
97832020-01-21 Luis Machado <luis.machado@linaro.org>
9784
9785 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9786 output.
9787
0c271889
LM
97882020-01-21 Luis Machado <luis.machado@linaro.org>
9789
9790 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9791 <pc_adjust>: Adjust the documentation.
9792 (aarch64_displaced_step_fixup): Check if PC really moved before
9793 adjusting it.
9794
4d89c1c7
TT
97952020-01-19 Tom Tromey <tom@tromey.com>
9796
9797 * disasm.c (~gdb_disassembler): New destructor.
9798 (gdb_buffered_insn_length): Call disassemble_free_target.
9799 * disasm.h (class gdb_disassembler): Declare destructor. Use
9800 DISABLE_COPY_AND_ASSIGN.
9801
c0ab21c2
TT
98022020-01-19 Tom Tromey <tom@tromey.com>
9803
9804 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9805 (die_reader_func_ftype): Remove.
9806 (cutu_reader): New class.
9807 (dw2_get_file_names_reader): Remove "data" parameter.
9808 (dw2_get_file_names): Use cutu_reader.
9809 (create_debug_type_hash_table): Update.
9810 (read_cutu_die_from_dwo): Update comment.
9811 (lookup_dwo_unit): Add dwo_name parameter.
9812 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9813 die_reader_func_ftype and data parameters.
9814 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9815 Remove die_reader_func_ftype and data parameters.
9816 (~cutu_reader): New; from init_cutu_and_read_dies.
9817 (cutu_reader::cutu_reader): Rename from
9818 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9819 and data parameters.
9820 (init_cutu_and_read_dies_simple): Remove.
9821 (struct process_psymtab_comp_unit_data): Remove.
9822 (process_psymtab_comp_unit_reader): Remove data parameter; add
9823 want_partial_unit and pretend_language parameters.
9824 (process_psymtab_comp_unit): Use cutu_reader.
9825 (build_type_psymtabs_reader): Remove data parameter.
9826 (build_type_psymtabs_1): Use cutu_reader.
9827 (process_skeletonless_type_unit): Likewise.
9828 (load_partial_comp_unit_reader): Remove.
9829 (load_partial_comp_unit): Use cutu_reader.
9830 (load_full_comp_unit_reader): Remove.
9831 (load_full_comp_unit): Use cutu_reader.
9832 (struct create_dwo_cu_data): Remove.
9833 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9834 dwo_unit parameters.
9835 (create_cus_hash_table): Use cutu_reader.
9836 (struct dwarf2_read_addr_index_data): Remove.
9837 (dwarf2_read_addr_index_reader): Remove.
9838 (dwarf2_read_addr_index): Use cutu_reader.
9839 (read_signatured_type_reader): Remove.
9840 (read_signatured_type): Use cutu_reader.
9841
45bbae5c
TT
98422020-01-19 Tom Tromey <tom@tromey.com>
9843
9844 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9845 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9846 (tui_wrefresh): Declare.
9847 * tui/tui-wingeneral.c (suppress_output): New global.
9848 (tui_suppress_output, ~tui_suppress_output): New constructor and
9849 destructor.
9850 (tui_wrefresh): New function.
9851 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9852 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9853 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9854 method.
9855 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9856 tui_wrefresh.
9857 (tui_data_window::no_refresh): New method.
9858 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9859 (tui_reg_command): Use tui_suppress_output
9860 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9861 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9862 method.
9863 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9864
4f13c1c0
TT
98652020-01-19 Tom Tromey <tom@tromey.com>
9866
9867 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9868 Handle case where symtab is null.
9869
fa47e446
SM
98702020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9871
9872 * linux-fork.c (one_fork_p): Simplify.
9873
26f42329
SM
98742020-01-17 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * top.c (struct qt_args): Remove.
9877 (kill_or_detach): Change return type to void, replace `void *`
9878 parameter with a proper one.
9879 (print_inferior_quit_action): Likewise.
9880 (quit_confirm): Use range-based for loop to iterate over inferiors.
9881 (quit_force): Likewise.
9882
a9ac81b1
SM
98832020-01-17 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9886 `void *` parameter with proper parameters.
9887 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9888 (print_one_inferior): Change return type to void, replace `void *`
9889 parameter with proper parameters.
9890 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9891 inferiors.
9892 (get_other_inferior): Remove.
9893 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9894 inferiors.
9895
788eca49
SM
98962020-01-17 Simon Marchi <simon.marchi@efficios.com>
9897
9898 * mi/mi-interp.c (report_initial_inferior): Remove.
9899 (mi_interp::init): Use range-based for to iterate over inferiors.
9900
d9bc85b6
SM
99012020-01-17 Simon Marchi <simon.marchi@efficios.com>
9902
9903 * python/py-inferior.c (build_inferior_list): Remove.
9904 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9905
40c94099
CB
99062020-01-16 Christian Biesinger <cbiesinger@google.com>
9907
9908 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9909 (btrace_stitch_trace): Likewise.
9910 * charset.c (intermediate_encoding): Likewise (vaild).
9911 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9912 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9913 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9914
e0cdfe3c
HD
99152020-01-16 Hannes Domani <ssbssa@yahoo.de>
9916
9917 * windows-tdep.c (windows_get_tlb_type):
9918 Add rtl_user_process_parameters type.
9919
790f1718 99202020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9921 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9922
9923 PR build/24805
9924 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9925 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9926 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9927 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9928 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9929 (ps_plog): Redeclare exported functions with default visibility.
9930
3112ed97
NA
99312020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9932
9933 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9934 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9935
8dc3273e
SM
99362020-01-15 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * infcmd.c (post_create_inferior): Use get_thread_regcache
9939 instead of get_current_regcache.
9940
ff47f4f0
TT
99412020-01-14 Tom Tromey <tom@tromey.com>
9942
9943 PR symtab/12535:
9944 * python/python.c (gdbpy_decode_line): Treat empty string the same
9945 as no argument.
9946
975f45b7
TT
99472020-01-14 Tom Tromey <tom@tromey.com>
9948
9949 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9950
25e57356
TT
99512020-01-14 Tom Tromey <tom@tromey.com>
9952
9953 * nat/linux-btrace.c: Don't include <config.h>.
9954 * nat/linux-ptrace.c: Don't include <config.h>.
9955 * nat/x86-linux-dregs.c: Don't include <config.h>.
9956
05ea2a05
TT
99572020-01-14 Tom Tromey <tom@tromey.com>
9958
9959 * configure: Rebuild.
9960 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9961
01027315
TT
99622020-01-14 Tom Tromey <tom@tromey.com>
9963
9964 * nat/x86-linux-dregs.c: Include configh.h.
9965 * nat/linux-ptrace.c: Include configh.h.
9966 * nat/linux-btrace.c: Include configh.h.
9967 * defs.h: Include config.h, bfd.h.
9968 * configure.ac: Don't source common.host.
9969 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9970 * configure: Rebuild.
9971 * acinclude.m4: Update path.
9972 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9973 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9974 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9975 (CLIBS): Add LIBSUPPORT.
9976 (CDEPS): Likewise.
9977 (COMMON_SFILES): Remove gdbsupport files.
9978 (HFILES_NO_SRCDIR): Likewise.
9979 (stamp-version): Update path to create-version.sh.
9980 (ALLDEPFILES): Remove gdbsupport files.
9981
b2ceabe8
TT
99822020-01-14 Tom Tromey <tom@tromey.com>
9983
9984 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9985 USE_WIN32API when needed.
9986 * configure.ac (USE_WIN32API): Don't define.
9987 (WIN32LIBS): Use WIN32APILIBS.
9988 * configure: Rebuild.
9989
25c51f71
TT
99902020-01-14 Tom Tromey <tom@tromey.com>
9991
9992 * configure: Rebuild.
9993 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9994
717c684d
BE
99952020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9996
9997 * skip.c (skip_function_command): Make skip w/o arguments use the
9998 name of the inlined function if pc is inside any inlined function.
9999
7da6a5b9
LM
100002020-01-14 Luis Machado <luis.machado@linaro.org>
10001
10002 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10003 * infrun.c (resume_1): Likewise.
10004 (handle_inferior_event): Remove stale comment.
10005 * linux-nat.c (linux_nat_target::resume): Update comments.
10006 (save_stop_reason): Likewise.
10007 (linux_nat_filter_event): Likewise.
10008 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10009
44e4c775
AB
100102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10011
10012 * elfread.c (record_minimal_symbol): Set section index to 0 for
10013 non-allocatable sections.
10014
18a8505e
AT
10015
100162020-01-13 Ali Tamur <tamur@google.com>
10017
10018 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10019 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10020 to gdb::optional. Update comments.
10021 (dwo_file): Update comments.
10022 (read_attribute): Update API to take an additional out parameter,
10023 need_reprocess. This is used to mark attributes that need other
10024 attributes (e.g. str_offsets_base) for correct computation which may not
10025 have been read yet.
10026 (read_attribute_reprocess): New function declaration.
10027 (read_addr_index): Likewise.
10028 (read_dwo_str_index): Likewise.
10029 (read_stub_str_index): Likewise.
10030 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10031 (lookup_addr_base): New function definition.
10032 (lookup_ranges_base): Likewise.
10033 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10034 lookup_ranges_base.
10035 (init_cutu_and_read_dies): Update comments.
10036 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10037 unit. This is used to inherit parent's str_offsets_base and addr_base.
10038 Update comments.
10039 (init_cutu_and_read_dies_simple): Reflect API changes.
10040 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10041 (create_cus_hash_table): Change API to take parent compile unit.
10042 Reflect API changes.
10043 (open_and_init_dwo_file): Reflect API changes.
10044 (dwarf2_get_pc_bounds): Update comments.
10045 (dwarf2_record_block_ranges): Likewise.
10046 (read_full_die_1): Change implementation to reprocess attributes that
10047 need str_offsets_base and addr_base.
10048 (partial_die_info::read): Likewise.
10049 (read_attribute_reprocess): New function definition.
10050 (read_attribute_value): Change API to take an additional out parameter,
10051 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10052 when a non-dwo compile unit has index based attributes.
10053 (read_attribute): Reflect API changes.
10054 (read_addr_index_1): Reflect API changes. Update comments.
10055 (dwarf2_read_addr_index_data): Reflect API changes.
10056 (dwarf2_read_addr_index): Likewise.
10057 (read_str_index): Change API and implementation. This becomes a helper
10058 to be used by the new string index related methods. Update error
10059 message and comments.
10060 (read_dwo_str_index): New function definition.
10061 (read_stub_str_index): Likewise.
10062 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10063 * symfile.h (dwarf2_debug_sections): Likewise.
10064 * xcoffread.c (dwarf2_debug_sections): Likewise.
10065
0cac9354
SM
100662020-01-13 Simon Marchi <simon.marchi@efficios.com>
10067
10068 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10069 core_reg_sect type to gdb_byte *.
10070 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10071 * cris-tdep.c (fetch_core_registers): Likewise.
10072 * corelow.c (core_target::get_core_register_section): Change
10073 type of `contents` to gdb::byte_vector.
10074
9a6d629c
AB
100752020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10076
10077 * tui/tui-wingeneral.c (box_win): Position the title in the center
10078 of the border.
10079
d8b2f9e3
SM
100802020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10081
10082 * corelow.c (core_target::get_core_register_section): Use
10083 std::vector instead of alloca.
10084
bb564c58
SM
100852020-01-13 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * warning.m4: Add -Wmissing-declarations to build_warnings.
10088 * configure: Re-generate.
10089
6b366111
SM
100902020-01-13 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * python/python.c (init__gdb_module): Add declaration.
10093
6c265988
SM
100942020-01-13 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10097 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10098 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10099 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10100 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10101 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10102 * ada-exp.y (_initialize_ada_exp): Add declaration.
10103 * ada-lang.c (_initialize_ada_language): Add declaration.
10104 * ada-tasks.c (_initialize_tasks): Add declaration.
10105 * agent.c (_initialize_agent): Add declaration.
10106 * aix-thread.c (_initialize_aix_thread): Add declaration.
10107 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10108 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10109 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10110 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10111 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10112 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10113 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10114 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10115 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10116 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10117 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10118 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10119 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10120 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10121 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10122 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10123 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10124 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10125 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10126 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10127 * annotate.c (_initialize_annotate): Add declaration.
10128 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10129 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10130 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10131 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10132 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10133 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10134 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10135 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10136 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10137 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10138 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10139 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10140 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10141 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10142 * auto-load.c (_initialize_auto_load): Add declaration.
10143 * auxv.c (_initialize_auxv): Add declaration.
10144 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10145 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10146 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10147 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10148 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10149 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10150 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10151 * breakpoint.c (_initialize_breakpoint): Add declaration.
10152 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10153 * btrace.c (_initialize_btrace): Add declaration.
10154 * charset.c (_initialize_charset): Add declaration.
10155 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10156 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10157 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10158 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10159 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10160 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10161 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10162 * coffread.c (_initialize_coffread): Add declaration.
10163 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10164 * compile/compile.c (_initialize_compile): Add declaration.
10165 * complaints.c (_initialize_complaints): Add declaration.
10166 * completer.c (_initialize_completer): Add declaration.
10167 * copying.c (_initialize_copying): Add declaration.
10168 * corefile.c (_initialize_core): Add declaration.
10169 * corelow.c (_initialize_corelow): Add declaration.
10170 * cp-abi.c (_initialize_cp_abi): Add declaration.
10171 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10172 * cp-support.c (_initialize_cp_support): Add declaration.
10173 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10174 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10175 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10176 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10177 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10178 * ctfread.c (_initialize_ctfread): Add declaration.
10179 * d-lang.c (_initialize_d_language): Add declaration.
10180 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10181 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10182 * dbxread.c (_initialize_dbxread): Add declaration.
10183 * dcache.c (_initialize_dcache): Add declaration.
10184 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10185 * disasm.c (_initialize_disasm): Add declaration.
10186 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10187 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10188 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10189 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10190 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10191 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10192 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10193 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10194 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10195 * elfread.c (_initialize_elfread): Add declaration.
10196 * exec.c (_initialize_exec): Add declaration.
10197 * extension.c (_initialize_extension): Add declaration.
10198 * f-lang.c (_initialize_f_language): Add declaration.
10199 * f-valprint.c (_initialize_f_valprint): Add declaration.
10200 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10201 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10202 * filesystem.c (_initialize_filesystem): Add declaration.
10203 * findcmd.c (_initialize_mem_search): Add declaration.
10204 * findvar.c (_initialize_findvar): Add declaration.
10205 * fork-child.c (_initialize_fork_child): Add declaration.
10206 * frame-base.c (_initialize_frame_base): Add declaration.
10207 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10208 * frame.c (_initialize_frame): Add declaration.
10209 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10210 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10211 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10212 * gcore.c (_initialize_gcore): Add declaration.
10213 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10214 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10215 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10216 * gdbarch.c (_initialize_gdbarch): Add declaration.
10217 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10218 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10219 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10220 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10221 * go-lang.c (_initialize_go_language): Add declaration.
10222 * go32-nat.c (_initialize_go32_nat): Add declaration.
10223 * guile/guile.c (_initialize_guile): Add declaration.
10224 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10225 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10226 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10227 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10228 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10229 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10230 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10231 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10232 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10233 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10234 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10235 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10236 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10237 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10238 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10239 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10240 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10241 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10242 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10243 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10244 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10245 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10246 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10247 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10248 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10249 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10250 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10251 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10252 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10253 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10254 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10255 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10256 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10257 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10258 * infcall.c (_initialize_infcall): Add declaration.
10259 * infcmd.c (_initialize_infcmd): Add declaration.
10260 * inflow.c (_initialize_inflow): Add declaration.
10261 * infrun.c (_initialize_infrun): Add declaration.
10262 * interps.c (_initialize_interpreter): Add declaration.
10263 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10264 * jit.c (_initialize_jit): Add declaration.
10265 * language.c (_initialize_language): Add declaration.
10266 * linux-fork.c (_initialize_linux_fork): Add declaration.
10267 * linux-nat.c (_initialize_linux_nat): Add declaration.
10268 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10269 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10270 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10271 * m2-lang.c (_initialize_m2_language): Add declaration.
10272 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10273 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10274 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10275 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10276 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10277 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10278 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10279 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10280 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10281 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10282 * machoread.c (_initialize_machoread): Add declaration.
10283 * macrocmd.c (_initialize_macrocmd): Add declaration.
10284 * macroscope.c (_initialize_macroscope): Add declaration.
10285 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10286 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10287 * maint.c (_initialize_maint_cmds): Add declaration.
10288 * mdebugread.c (_initialize_mdebugread): Add declaration.
10289 * memattr.c (_initialize_mem): Add declaration.
10290 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10291 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10292 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10293 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10294 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10295 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10296 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10297 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10298 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10299 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10300 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10301 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10302 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10303 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10304 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10305 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10306 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10307 * mipsread.c (_initialize_mipsread): Add declaration.
10308 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10309 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10310 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10311 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10312 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10313 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10314 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10315 * nto-procfs.c (_initialize_procfs): Add declaration.
10316 * objc-lang.c (_initialize_objc_language): Add declaration.
10317 * observable.c (_initialize_observer): Add declaration.
10318 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10319 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10320 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10321 * osabi.c (_initialize_gdb_osabi): Add declaration.
10322 * osdata.c (_initialize_osdata): Add declaration.
10323 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10324 * parse.c (_initialize_parse): Add declaration.
10325 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10326 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10327 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10328 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10329 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10330 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10331 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10332 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10333 * printcmd.c (_initialize_printcmd): Add declaration.
10334 * probe.c (_initialize_probe): Add declaration.
10335 * proc-api.c (_initialize_proc_api): Add declaration.
10336 * proc-events.c (_initialize_proc_events): Add declaration.
10337 * proc-service.c (_initialize_proc_service): Add declaration.
10338 * procfs.c (_initialize_procfs): Add declaration.
10339 * producer.c (_initialize_producer): Add declaration.
10340 * psymtab.c (_initialize_psymtab): Add declaration.
10341 * python/python.c (_initialize_python): Add declaration.
10342 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10343 * record-btrace.c (_initialize_record_btrace): Add declaration.
10344 * record-full.c (_initialize_record_full): Add declaration.
10345 * record.c (_initialize_record): Add declaration.
10346 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10347 * regcache.c (_initialize_regcache): Add declaration.
10348 * reggroups.c (_initialize_reggroup): Add declaration.
10349 * remote-notif.c (_initialize_notif): Add declaration.
10350 * remote-sim.c (_initialize_remote_sim): Add declaration.
10351 * remote.c (_initialize_remote): Add declaration.
10352 * reverse.c (_initialize_reverse): Add declaration.
10353 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10354 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10355 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10356 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10357 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10358 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10359 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10360 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10361 Add declaration.
10362 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10363 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10364 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10365 * rust-exp.y (_initialize_rust_exp): Add declaration.
10366 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10367 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10368 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10369 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10370 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10371 * score-tdep.c (_initialize_score_tdep): Add declaration.
10372 * ser-go32.c (_initialize_ser_dos): Add declaration.
10373 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10374 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10375 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10376 * ser-uds.c (_initialize_ser_socket): Add declaration.
10377 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10378 * serial.c (_initialize_serial): Add declaration.
10379 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10380 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10381 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10382 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10383 * skip.c (_initialize_step_skip): Add declaration.
10384 * sol-thread.c (_initialize_sol_thread): Add declaration.
10385 * solib-aix.c (_initialize_solib_aix): Add declaration.
10386 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10387 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10388 * solib-frv.c (_initialize_frv_solib): Add declaration.
10389 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10390 * solib-target.c (_initialize_solib_target): Add declaration.
10391 * solib.c (_initialize_solib): Add declaration.
10392 * source-cache.c (_initialize_source_cache): Add declaration.
10393 * source.c (_initialize_source): Add declaration.
10394 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10395 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10396 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10397 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10398 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10399 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10400 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10401 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10402 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10403 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10404 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10405 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10406 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10407 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10408 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10409 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10410 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10411 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10412 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10413 * stabsread.c (_initialize_stabsread): Add declaration.
10414 * stack.c (_initialize_stack): Add declaration.
10415 * stap-probe.c (_initialize_stap_probe): Add declaration.
10416 * std-regs.c (_initialize_frame_reg): Add declaration.
10417 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10418 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10419 * symfile.c (_initialize_symfile): Add declaration.
10420 * symmisc.c (_initialize_symmisc): Add declaration.
10421 * symtab.c (_initialize_symtab): Add declaration.
10422 * target.c (_initialize_target): Add declaration.
10423 * target-connection.c (_initialize_target_connection): Add
10424 declaration.
10425 * target-dcache.c (_initialize_target_dcache): Add declaration.
10426 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10427 * thread.c (_initialize_thread): Add declaration.
10428 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10429 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10430 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10431 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10432 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10433 * tracectf.c (_initialize_ctf): Add declaration.
10434 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10435 * tracefile.c (_initialize_tracefile): Add declaration.
10436 * tracepoint.c (_initialize_tracepoint): Add declaration.
10437 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10438 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10439 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10440 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10441 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10442 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10443 * tui/tui.c (_initialize_tui): Add declaration.
10444 * typeprint.c (_initialize_typeprint): Add declaration.
10445 * ui-style.c (_initialize_ui_style): Add declaration.
10446 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10447 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10448 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10449 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10450 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10451 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10452 * unittests/filtered_iterator-selftests.c
10453 (_initialize_filtered_iterator_selftests): Add declaration.
10454 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10455 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10456 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10457 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10458 * unittests/main-thread-selftests.c
10459 (_initialize_main_thread_selftests): Add declaration.
10460 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10461 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10462 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10463 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10464 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10465 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10466 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10467 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10468 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10469 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10470 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10471 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10472 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10473 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10474 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10475 declaration.
10476 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10477 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10478 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10479 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10480 * user-regs.c (_initialize_user_regs): Add declaration.
10481 * utils.c (_initialize_utils): Add declaration.
10482 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10483 * valops.c (_initialize_valops): Add declaration.
10484 * valprint.c (_initialize_valprint): Add declaration.
10485 * value.c (_initialize_values): Add declaration.
10486 * varobj.c (_initialize_varobj): Add declaration.
10487 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10488 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10489 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10490 * windows-nat.c (_initialize_windows_nat): Add declaration.
10491 (_initialize_check_for_gdb_ini): Add declaration.
10492 (_initialize_loadable): Add declaration.
10493 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10494 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10495 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10496 * xcoffread.c (_initialize_xcoffread): Add declaration.
10497 * xml-support.c (_initialize_xml_support): Add declaration.
10498 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10499 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10500 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10501 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10502
e2de1eec
SM
105032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10504
10505 * regformats/regdat.sh: Generate declaration for init function.
10506
e0037b4c
SM
105072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10510 up.
10511 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10512 close_one_inferior>: New methods.
10513 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10514 pass down target to find_inferior_pid.
10515 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10516 Pass down target to find_inferior_ptid.
10517 (gdbsim_target::create_inferior): Pass down target to
10518 add_thread_silent.
10519 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10520 target down to find_inferior_ptid and switch_to_thread.
10521 (gdbsim_target::close): Update to call close_one_inferior.
10522 (struct resume_data): Remove.
10523 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10524 directly, rather than through a void pointer.
10525 (gdbsim_target::resume): Update to call resume_one_inferior.
10526
58920b5b
SM
105272020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10528
10529 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10530
4ec89149
PA
105312020-01-12 Pedro Alves <palves@redhat.com>
10532
10533 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10534 directly for the current inferior instead of
10535 discard_all_inferiors.
10536 (discard_all_inferiors): Delete.
10537
7c392d1d
TT
105382020-01-11 Tom Tromey <tom@tromey.com>
10539
10540 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10541 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10542 deprecated_safe_get_selected_frame.
10543
d9ebdab7
TBA
105442020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10545
10546 * inferior.c (print_inferior): Switch inferior before printing it.
10547
f3c469b9
PA
105482020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10549 Pedro Alves <palves@redhat.com>
10550
10551 * progspace-and-thread.c (switch_to_program_space_and_thread):
10552 Assert there's an inferior for PSPACE. Use
10553 switch_to_inferior_no_thread to switch the inferior too.
10554 * progspace.c (program_space::~program_space): Call
10555 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10556 (program_space::free_all_objfiles): Don't call clear_symtab_users
10557 here.
10558 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10559
65c574f6
PA
105602020-01-10 Pedro Alves <palves@redhat.com>
10561
10562 * NEWS: Mention multi-target debugging, "info connections", and
10563 "add-inferior -no-connection".
10564
2f4fcf00
PA
105652020-01-10 Pedro Alves <palves@redhat.com>
10566
10567 * infrun.c: Include "target-connection.h".
10568 (check_multi_target_resumption): New.
10569 (proceed): Call it.
10570 * target-connection.c (make_target_connection_string): Make
10571 extern.
10572 * target-connection.h (make_target_connection_string): Declare.
10573
121b3efd
PA
105742020-01-10 Pedro Alves <palves@redhat.com>
10575
10576 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10577 * inferior.c (uiout_field_connection): New function.
10578 (print_inferior): Add new "connection-id" column.
10579 (add_inferior_command): Show connection number/string of added
10580 inferior.
10581 * process-stratum-target.h
10582 (process_stratum_target::connection_string): New virtual method.
10583 (process_stratum_target::connection_number): New field.
10584 * remote.c (remote_target::connection_string): New override.
10585 * target-connection.c: New file.
10586 * target-connection.h: New file.
10587 * target.c (decref_target): Remove process_stratum targets from
10588 the connection list.
10589 (target_stack::push): Add process_stratum targets to the
10590 connection list.
10591
4f837581
PA
105922020-01-10 Pedro Alves <palves@redhat.com>
10593
10594 Revert:
10595 2016-04-12 Pedro Alves <palves@redhat.com>
10596 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10597 Remove references to name.
10598 * serial.h (struct serial) <name>: Delete.
10599
f4ec508e
PA
106002020-01-10 Pedro Alves <palves@redhat.com>
10601
10602 * gdbarch-selftests.c (register_to_value_test): Remove "target
10603 already pushed" check.
10604
5b6d1e4f
PA
106052020-01-10 Pedro Alves <palves@redhat.com>
10606 John Baldwin <jhb@FreeBSD.org>
10607
10608 * aarch64-linux-nat.c
10609 (aarch64_linux_nat_target::thread_architecture): Adjust.
10610 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10611 (task_command_1): Likewise.
10612 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10613 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10614 (aix_thread_target::store_registers)
10615 (aix_thread_target::thread_alive): Adjust.
10616 * amd64-fbsd-tdep.c: Include "inferior.h".
10617 (amd64fbsd_get_thread_local_address): Pass down target.
10618 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10619 thread's gdbarch instead of target_gdbarch.
10620 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10621 get_last_target_status.
10622 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10623 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10624 inferiors.
10625 (update_inserted_breakpoint_locations): Skip if inferiors with no
10626 execution.
10627 (update_global_location_list): When handling moribund locations,
10628 find representative inferior for location's pspace, and use thread
10629 count of its process_stratum target.
10630 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10631 * bsd-uthread.c (bsd_uthread_target::wait): Use
10632 as_process_stratum_target and adjust thread_change_ptid and
10633 add_thread calls.
10634 (bsd_uthread_target::update_thread_list): Use
10635 as_process_stratum_target and adjust find_thread_ptid,
10636 thread_change_ptid and add_thread calls.
10637 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10638 find_thread_ptid call.
10639 * corelow.c (add_to_thread_list): Adjust add_thread call.
10640 (core_target_open): Adjust add_thread_silent and thread_count
10641 calls.
10642 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10643 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10644 * event-top.c (async_disconnect): Pop targets from all inferiors.
10645 * exec.c (add_target_sections): Push exec target on all inferiors
10646 sharing the program space.
10647 (remove_target_sections): Remove the exec target from all
10648 inferiors sharing the program space.
10649 (exec_on_vfork): New.
10650 * exec.h (exec_on_vfork): Declare.
10651 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10652 Pass it down.
10653 (fbsd_nat_target::update_thread_list): Adjust.
10654 (fbsd_nat_target::resume): Adjust.
10655 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10656 down.
10657 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10658 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10659 get_thread_arch_regcache call.
10660 * fork-child.c (gdb_startup_inferior): Pass target down to
10661 startup_inferior and set_executing.
10662 * gdbthread.h (struct process_stratum_target): Forward declare.
10663 (add_thread, add_thread_silent, add_thread_with_info)
10664 (in_thread_list): Add process_stratum_target parameter.
10665 (find_thread_ptid(inferior*, ptid_t)): New overload.
10666 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10667 parameter.
10668 (all_threads()): Delete overload.
10669 (all_threads, all_non_exited_threads): Add process_stratum_target
10670 parameter.
10671 (all_threads_safe): Use brace initialization.
10672 (thread_count): Add process_stratum_target parameter.
10673 (set_resumed, set_running, set_stop_requested, set_executing)
10674 (threads_are_executing, finish_thread_state): Add
10675 process_stratum_target parameter.
10676 (switch_to_thread): Use is_current_thread.
10677 * i386-fbsd-tdep.c: Include "inferior.h".
10678 (i386fbsd_get_thread_local_address): Pass down target.
10679 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10680 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10681 have_inferiors check.
10682 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10683 (inf_ptrace_target::attach): Adjust.
10684 * infcall.c (run_inferior_call): Adjust.
10685 * infcmd.c (run_command_1): Pass target to
10686 scoped_finish_thread_state.
10687 (proceed_thread_callback): Skip inferiors with no execution.
10688 (continue_command): Rename 'all_threads' local to avoid hiding
10689 'all_threads' function. Adjust get_last_target_status call.
10690 (prepare_one_step): Adjust set_running call.
10691 (signal_command): Use user_visible_resume_target. Compare thread
10692 pointers instead of inferior_ptid.
10693 (info_program_command): Adjust to pass down target.
10694 (attach_command): Mark target's 'thread_executing' flag.
10695 (stop_current_target_threads_ns): New, factored out from ...
10696 (interrupt_target_1): ... this. Switch inferior before making
10697 target calls.
10698 * inferior-iter.h
10699 (struct all_inferiors_iterator, struct all_inferiors_range)
10700 (struct all_inferiors_safe_range)
10701 (struct all_non_exited_inferiors_range): Filter on
10702 process_stratum_target too. Remove explicit.
10703 * inferior.c (inferior::inferior): Push dummy target on target
10704 stack.
10705 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10706 Add process_stratum_target parameter, and pass it down.
10707 (have_live_inferiors): Adjust.
10708 (switch_to_inferior_and_push_target): New.
10709 (add_inferior_command, clone_inferior_command): Handle
10710 "-no-connection" parameter. Use
10711 switch_to_inferior_and_push_target.
10712 (_initialize_inferior): Mention "-no-connection" option in
10713 the help of "add-inferior" and "clone-inferior" commands.
10714 * inferior.h: Include "process-stratum-target.h".
10715 (interrupt_target_1): Use bool.
10716 (struct inferior) <push_target, unpush_target, target_is_pushed,
10717 find_target_beneath, top_target, process_target, target_at,
10718 m_stack>: New.
10719 (discard_all_inferiors): Delete.
10720 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10721 (all_inferiors, all_non_exited_inferiors): Add
10722 process_stratum_target parameter.
10723 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10724 (target_last_proc_target): New global.
10725 (follow_fork_inferior): Push target on new inferior. Pass target
10726 to add_thread_silent. Call exec_on_vfork. Handle target's
10727 reference count.
10728 (follow_fork): Adjust get_last_target_status call. Also consider
10729 target.
10730 (follow_exec): Push target on new inferior.
10731 (struct execution_control_state) <target>: New field.
10732 (user_visible_resume_target): New.
10733 (do_target_resume): Call target_async.
10734 (resume_1): Set target's threads_executing flag. Consider resume
10735 target.
10736 (commit_resume_all_targets): New.
10737 (proceed): Also consider resume target. Skip threads of inferiors
10738 with no execution. Commit resumtion in all targets.
10739 (start_remote): Pass current inferior to wait_for_inferior.
10740 (infrun_thread_stop_requested): Consider target as well. Pass
10741 thread_info pointer to clear_inline_frame_state instead of ptid.
10742 (infrun_thread_thread_exit): Consider target as well.
10743 (random_pending_event_thread): New inferior parameter. Use it.
10744 (do_target_wait): Rename to ...
10745 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10746 down.
10747 (threads_are_resumed_pending_p, do_target_wait): New.
10748 (prepare_for_detach): Adjust calls.
10749 (wait_for_inferior): New inferior parameter. Handle it. Use
10750 do_target_wait_1 instead of do_target_wait.
10751 (fetch_inferior_event): Adjust. Switch to representative
10752 inferior. Pass target down.
10753 (set_last_target_status): Add process_stratum_target parameter.
10754 Save target in global.
10755 (get_last_target_status): Add process_stratum_target parameter and
10756 handle it.
10757 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10758 (context_switch): Check inferior_ptid == null_ptid before calling
10759 inferior_thread().
10760 (get_inferior_stop_soon): Pass down target.
10761 (wait_one): Rename to ...
10762 (poll_one_curr_target): ... this.
10763 (struct wait_one_event): New.
10764 (wait_one): New.
10765 (stop_all_threads): Adjust.
10766 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10767 event's target.
10768 (switch_back_to_stepped_thread): Also consider target.
10769 (print_stop_event): Update.
10770 (normal_stop): Update. Also consider the resume target.
10771 * infrun.h (wait_for_inferior): Remove declaration.
10772 (user_visible_resume_target): New declaration.
10773 (get_last_target_status, set_last_target_status): New
10774 process_stratum_target parameter.
10775 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10776 process_stratum_target parameter, and use it.
10777 (clear_inline_frame_state (thread_info*)): New.
10778 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10779 process_stratum_target parameter.
10780 (clear_inline_frame_state (thread_info*)): Declare.
10781 * linux-fork.c (delete_checkpoint_command): Pass target down to
10782 find_thread_ptid.
10783 (checkpoint_command): Adjust.
10784 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10785 instead of just tweaking inferior_ptid.
10786 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10787 (exit_lwp): Pass target down to find_thread_ptid.
10788 (attach_proc_task_lwp_callback): Pass target down to
10789 add_thread/set_running/set_executing.
10790 (linux_nat_target::attach): Pass target down to
10791 thread_change_ptid.
10792 (get_detach_signal): Pass target down to find_thread_ptid.
10793 Consider last target status's target.
10794 (linux_resume_one_lwp_throw, resume_lwp)
10795 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10796 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10797 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10798 (linux_nat_target::async_wait_fd): New.
10799 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10800 target down.
10801 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10802 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10803 * linux-thread-db.c (struct thread_db_info::process_target): New
10804 field.
10805 (add_thread_db_info): Save target.
10806 (get_thread_db_info): New process_stratum_target parameter. Also
10807 match target.
10808 (delete_thread_db_info): New process_stratum_target parameter.
10809 Also match target.
10810 (thread_from_lwp): Adjust to pass down target.
10811 (thread_db_notice_clone): Pass down target.
10812 (check_thread_db_callback): Pass down target.
10813 (try_thread_db_load_1): Always push the thread_db target.
10814 (try_thread_db_load, record_thread): Pass target down.
10815 (thread_db_target::detach): Pass target down. Always unpush the
10816 thread_db target.
10817 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10818 target down. Always unpush the thread_db target.
10819 (find_new_threads_callback, thread_db_find_new_threads_2)
10820 (thread_db_target::update_thread_list): Pass target down.
10821 (thread_db_target::pid_to_str): Pass current inferior down.
10822 (thread_db_target::get_thread_local_address): Pass target down.
10823 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10824 target down.
10825 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10826 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10827 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10828 (procfs_init_inferior): Rename to ...
10829 (procfs_target::procfs_init_inferior): ... this and adjust.
10830 (procfs_target::create_inferior, procfs_notice_thread)
10831 (procfs_do_thread_registers): Adjust.
10832 * ppc-fbsd-tdep.c: Include "inferior.h".
10833 (ppcfbsd_get_thread_local_address): Pass down target.
10834 * proc-service.c (ps_xfer_memory): Switch current inferior and
10835 program space as well.
10836 (get_ps_regcache): Pass target down.
10837 * process-stratum-target.c
10838 (process_stratum_target::thread_address_space)
10839 (process_stratum_target::thread_architecture): Pass target down.
10840 * process-stratum-target.h
10841 (process_stratum_target::threads_executing): New field.
10842 (as_process_stratum_target): New.
10843 * ravenscar-thread.c
10844 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10845 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10846 down.
10847 * record-btrace.c (record_btrace_target::info_record): Adjust.
10848 (record_btrace_target::record_method)
10849 (record_btrace_target::record_is_replaying)
10850 (record_btrace_target::fetch_registers)
10851 (get_thread_current_frame_id, record_btrace_target::resume)
10852 (record_btrace_target::wait, record_btrace_target::stop): Pass
10853 target down.
10854 * record-full.c (record_full_wait_1): Switch to event thread.
10855 Pass target down.
10856 * regcache.c (regcache::regcache)
10857 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10858 process_stratum_target parameter and handle it.
10859 (current_thread_target): New global.
10860 (get_thread_regcache): Add process_stratum_target parameter and
10861 handle it. Switch inferior before calling target method.
10862 (get_thread_regcache): Pass target down.
10863 (get_thread_regcache_for_ptid): Pass target down.
10864 (registers_changed_ptid): Add process_stratum_target parameter and
10865 handle it.
10866 (registers_changed_thread, registers_changed): Pass target down.
10867 (test_get_thread_arch_aspace_regcache): New.
10868 (current_regcache_test): Define a couple local test_target_ops
10869 instances and use them for testing.
10870 (readwrite_regcache): Pass process_stratum_target parameter.
10871 (cooked_read_test, cooked_write_test): Pass mock_target down.
10872 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10873 (get_thread_arch_aspace_regcache): Add process_stratum_target
10874 parameter.
10875 (regcache::target): New method.
10876 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10877 (regcache::registers_changed_ptid): Add process_stratum_target
10878 parameter.
10879 (regcache::m_target): New field.
10880 (registers_changed_ptid): Add process_stratum_target parameter.
10881 * remote.c (remote_state::supports_vCont_probed): New field.
10882 (remote_target::async_wait_fd): New method.
10883 (remote_unpush_and_throw): Add remote_target parameter.
10884 (get_current_remote_target): Adjust.
10885 (remote_target::remote_add_inferior): Push target.
10886 (remote_target::remote_add_thread)
10887 (remote_target::remote_notice_new_inferior)
10888 (get_remote_thread_info): Pass target down.
10889 (remote_target::update_thread_list): Skip threads of inferiors
10890 bound to other targets. (remote_target::close): Don't discard
10891 inferiors. (remote_target::add_current_inferior_and_thread)
10892 (remote_target::process_initial_stop_replies)
10893 (remote_target::start_remote)
10894 (remote_target::remote_serial_quit_handler): Pass down target.
10895 (remote_target::remote_unpush_target): New remote_target
10896 parameter. Unpush the target from all inferiors.
10897 (remote_target::remote_unpush_and_throw): New remote_target
10898 parameter. Pass it down.
10899 (remote_target::open_1): Check whether the current inferior has
10900 execution instead of checking whether any inferior is live. Pass
10901 target down.
10902 (remote_target::remote_detach_1): Pass down target. Use
10903 remote_unpush_target.
10904 (extended_remote_target::attach): Pass down target.
10905 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10906 (remote_target::append_resumption): Pass down target.
10907 (remote_target::append_pending_thread_resumptions)
10908 (remote_target::remote_resume_with_hc, remote_target::resume)
10909 (remote_target::commit_resume): Pass down target.
10910 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10911 (remote_target::interrupt_query)
10912 (remote_target::remove_new_fork_children)
10913 (remote_target::check_pending_events_prevent_wildcard_vcont)
10914 (remote_target::remote_parse_stop_reply)
10915 (remote_target::process_stop_reply): Pass down target.
10916 (first_remote_resumed_thread): New remote_target parameter. Pass
10917 it down.
10918 (remote_target::wait_as): Pass down target.
10919 (unpush_and_perror): New remote_target parameter. Pass it down.
10920 (remote_target::readchar, remote_target::remote_serial_write)
10921 (remote_target::getpkt_or_notif_sane_1)
10922 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10923 down target.
10924 (remote_target::mourn_inferior): Pass down target. Use
10925 remote_unpush_target.
10926 (remote_target::core_of_thread)
10927 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10928 (remote_target::pid_to_exec_file)
10929 (remote_target::thread_handle_to_thread_info): Pass down target.
10930 (remote_target::async_wait_fd): New.
10931 * riscv-fbsd-tdep.c: Include "inferior.h".
10932 (riscv_fbsd_get_thread_local_address): Pass down target.
10933 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10934 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10935 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10936 Adjust.
10937 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10938 * solib-svr4.c (enable_break): Pass down target.
10939 * spu-multiarch.c (parse_spufs_run): Pass down target.
10940 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10941 * target-delegates.c: Regenerate.
10942 * target.c (g_target_stack): Delete.
10943 (current_top_target): Return the current inferior's top target.
10944 (target_has_execution_1): Refer to the passed-in inferior's top
10945 target.
10946 (target_supports_terminal_ours): Check whether the initial
10947 inferior was already created.
10948 (decref_target): New.
10949 (target_stack::push): Incref/decref the target.
10950 (push_target, push_target, unpush_target): Adjust.
10951 (target_stack::unpush): Defref target.
10952 (target_is_pushed): Return bool. Adjust to refer to the current
10953 inferior's target stack.
10954 (dispose_inferior): Delete, and inline parts ...
10955 (target_preopen): ... here. Only dispose of the current inferior.
10956 (target_detach): Hold strong target reference while detaching.
10957 Pass target down.
10958 (target_thread_name): Add assertion.
10959 (target_resume): Pass down target.
10960 (target_ops::beneath, find_target_at): Adjust to refer to the
10961 current inferior's target stack.
10962 (get_dummy_target): New.
10963 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10964 has a thread running.
10965 (initialize_targets): Rename to ...
10966 (_initialize_target): ... this.
10967 * target.h: Include "gdbsupport/refcounted-object.h".
10968 (struct target_ops): Inherit refcounted_object.
10969 (target_ops::shortname, target_ops::longname): Make const.
10970 (target_ops::async_wait_fd): New method.
10971 (decref_target): Declare.
10972 (struct target_ops_ref_policy): New.
10973 (target_ops_ref): New typedef.
10974 (get_dummy_target): Declare function.
10975 (target_is_pushed): Return bool.
10976 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10977 (all_matching_threads_iterator::all_matching_threads_iterator):
10978 Handle filter target.
10979 * thread-iter.h (struct all_matching_threads_iterator, struct
10980 all_matching_threads_range, class all_non_exited_threads_range):
10981 Filter by target too. Remove explicit.
10982 * thread.c (threads_executing): Delete.
10983 (inferior_thread): Pass down current inferior.
10984 (clear_thread_inferior_resources): Pass down thread pointer
10985 instead of ptid_t.
10986 (add_thread_silent, add_thread_with_info, add_thread): Add
10987 process_stratum_target parameter. Use it for thread and inferior
10988 searches.
10989 (is_current_thread): New.
10990 (thread_info::deletable): Use it.
10991 (find_thread_ptid, thread_count, in_thread_list)
10992 (thread_change_ptid, set_resumed, set_running): New
10993 process_stratum_target parameter. Pass it down.
10994 (set_executing): New process_stratum_target parameter. Pass it
10995 down. Adjust reference to 'threads_executing'.
10996 (threads_are_executing): New process_stratum_target parameter.
10997 Adjust reference to 'threads_executing'.
10998 (set_stop_requested, finish_thread_state): New
10999 process_stratum_target parameter. Pass it down.
11000 (switch_to_thread): Also match inferior.
11001 (switch_to_thread): New process_stratum_target parameter. Pass it
11002 down.
11003 (update_threads_executing): Reimplement.
11004 * top.c (quit_force): Pop targets from all inferior.
11005 (gdb_init): Don't call initialize_targets.
11006 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11007 Declare.
11008 (windows_add_thread, windows_delete_thread): Adjust.
11009 (get_windows_debug_event): Rename to ...
11010 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11011 * tracefile-tfile.c (tfile_target_open): Pass down target.
11012 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11013 Forward declare.
11014 (switch_to_thread): Add process_stratum_target parameter.
11015 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11016 parameter. Use it.
11017 (mi_on_resume): Pass target down.
11018 * nat/fork-inferior.c (startup_inferior): Add
11019 process_stratum_target parameter. Pass it down.
11020 * nat/fork-inferior.h (startup_inferior): Add
11021 process_stratum_target parameter.
11022 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11023
75c6c844
PA
110242020-01-10 Pedro Alves <palves@redhat.com>
11025
11026 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11027 directly. Instead find the first thread in the thread list and
11028 use switch_to_thread.
11029
78f2c40a
PA
110302020-01-10 Pedro Alves <palves@redhat.com>
11031
11032 * remote.c (remote_target::remote_add_inferior): Don't bind a
11033 process to the current inferior if the current inferior is already
11034 bound to a process.
11035
e7af6c70
TBA
110362020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11037 Pedro Alves <palves@redhat.com>
11038
11039 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11040 If no process is specified, return null_ptid instead of
11041 inferior_ptid.
11042 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11043 TARGET_WAITKIND_SIGNALLED with no pid.
11044
31ba933e
PA
110452020-01-10 Pedro Alves <palves@redhat.com>
11046
11047 * remote.c (first_remote_resumed_thread): New.
11048 (remote_target::wait_as): Use it as default event_ptid instead of
11049 inferior_ptid.
11050
735fc2ca
PA
110512020-01-10 Pedro Alves <palves@redhat.com>
11052
11053 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11054
c17e02e1
PA
110552020-01-10 Pedro Alves <palves@redhat.com>
11056
11057 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11058 not -1.
11059
ab1ddbcf
PA
110602020-01-10 Pedro Alves <palves@redhat.com>
11061
11062 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11063 ptid to get_last_target_status.
11064 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11065 ptid to get_last_target_status.
11066 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11067 get_last_target_status.
11068 (info_program_command): Don't pass a target_waitstatus to
11069 get_last_target_status.
11070 * infrun.c (init_wait_for_inferior): Use
11071 nullify_last_target_wait_ptid.
11072 (get_last_target_status): Handle nullptr arguments.
11073 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11074 (print_stop_event): Don't pass a ptid to get_last_target_status.
11075 (normal_stop): Don't pass a ptid to get_last_target_status.
11076 * infrun.h (get_last_target_status, set_last_target_status): Move
11077 comments here and update.
11078 (nullify_last_target_wait_ptid): Declare.
11079 * linux-fork.c (fork_load_infrun_state): Remove local extern
11080 declaration of nullify_last_target_wait_ptid.
11081 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11082 to get_last_target_status.
11083
f3f8ece4
PA
110842020-01-10 Pedro Alves <palves@redhat.com>
11085
11086 * gdbthread.h (scoped_restore_current_thread)
11087 <dont_restore, restore, m_dont_restore>: Declare.
11088 * thread.c (thread_alive): Add assertion. Return bool.
11089 (switch_to_thread_if_alive): New.
11090 (prune_threads): Switch inferior/thread.
11091 (print_thread_info_1): Switch thread before calling target methods.
11092 (scoped_restore_current_thread::restore): New, factored out from
11093 ...
11094 (scoped_restore_current_thread::~scoped_restore_current_thread):
11095 ... this.
11096 (scoped_restore_current_thread::scoped_restore_current_thread):
11097 Add assertion.
11098 (thread_apply_all_command, thread_select): Use
11099 switch_to_thread_if_alive.
11100 * infrun.c (proceed, restart_threads, handle_signal_stop)
11101 (switch_back_to_stepped_thread): Switch current thread before
11102 calling target methods.
11103
db2d40f7
PA
111042020-01-10 Pedro Alves <palves@redhat.com>
11105
11106 * inferior.c (switch_to_inferior_no_thread): New function,
11107 factored out from ...
11108 (inferior_command): ... here.
11109 * inferior.h (switch_to_inferior_no_thread): Declare.
11110 * mi/mi-main.c (run_one_inferior): Use
11111 switch_to_inferior_no_thread.
11112
bd420a2d
PA
111132020-01-10 Pedro Alves <palves@redhat.com>
11114
11115 * infcmd.c (kill_command): Remove dead code.
11116
ddf5db90
PA
111172020-01-10 Pedro Alves <palves@redhat.com>
11118
11119 * remote.c (remote_target::mourn_inferior): No longer check
11120 whether the target is running.
11121
5018ce90
PA
111222020-01-10 Pedro Alves <palves@redhat.com>
11123
11124 * corelow.c (core_target::has_execution): Change parameter type to
11125 inferior pointer.
11126 * inferior.c (number_of_live_inferiors): Use
11127 inferior::has_execution instead of target_has_execution_1.
11128 * inferior.h (inferior::has_execution): New.
11129 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11130 inferior::has_execution instead of target_has_execution_1.
11131 * process-stratum-target.c
11132 (process_stratum_target::has_execution): Change parameter type to
11133 inferior pointer. Check the inferior's PID instead of
11134 inferior_ptid.
11135 * process-stratum-target.h
11136 (process_stratum_target::has_execution): Change parameter type to
11137 inferior pointer.
11138 * record-full.c (record_full_core_target::has_execution): Change
11139 parameter type to inferior pointer.
11140 * target.c (target_has_execution_1): Change parameter type to
11141 inferior pointer.
11142 (target_has_execution_current): Adjust.
11143 * target.h (target_ops::has_execution): Change parameter type to
11144 inferior pointer.
11145 (target_has_execution_1): Change parameter type to inferior
11146 pointer. Change return type to bool.
11147 * tracefile.h (tracefile_target::has_execution): Change parameter
11148 type to inferior pointer.
11149
74375d18
PA
111502020-01-10 Pedro Alves <palves@redhat.com>
11151
11152 * exceptions.c (print_flush): Remove current_top_target() check.
11153
acdf84a6
PA
111542020-01-10 Pedro Alves <palves@redhat.com>
11155
11156 * remote.c (show_remote_exec_file): Show the current inferior's
11157 exec-file instead of the command variable's value.
11158
ec506636
PA
111592020-01-10 Pedro Alves <palves@redhat.com>
11160
11161 * record-full.c (record_full_resume_ptid): New global.
11162 (record_full_target::resume): Set it.
11163 (record_full_wait_1): Use record_full_resume_ptid instead of
11164 inferior_ptid.
11165
873657b9
PA
111662020-01-10 Pedro Alves <palves@redhat.com>
11167
11168 * gdbthread.h (scoped_restore_current_thread)
11169 <dont_restore, restore, m_dont_restore>: Declare.
11170 * thread.c (thread_alive): Add assertion. Return bool.
11171 (switch_to_thread_if_alive): New.
11172 (prune_threads): Switch inferior/thread.
11173 (print_thread_info_1): Switch thread before calling target methods.
11174 (scoped_restore_current_thread::restore): New, factored out from
11175 ...
11176 (scoped_restore_current_thread::~scoped_restore_current_thread):
11177 ... this.
11178 (scoped_restore_current_thread::scoped_restore_current_thread):
11179 Add assertion.
11180 (thread_apply_all_command, thread_select): Use
11181 switch_to_thread_if_alive.
11182
7f0ae84c
GB
111832020-01-10 George Barrett <bob@bob131.so>
11184
11185 * stap-probe.c (stap_modify_semaphore): Don't check for null
11186 semaphores.
11187 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11188 for null semaphores.
11189
f5a7c406
AB
111902020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11193 all source windows, and maintain horizontal scroll status while
11194 doing so.
11195
9ae6bf64
TT
111962020-01-09 Tom Tromey <tom@tromey.com>
11197
11198 PR tui/18932:
11199 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11200 update_source_window, not print_source_lines.
11201
b2efe70c
AB
112022020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11203
11204 * tui/tui.c (tui_enable): Register tui hooks after calling
11205 tui_display_main.
11206
5f23a082
CB
112072020-01-09 Christian Biesinger <cbiesinger@google.com>
11208
11209 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11210
3061113b
SM
112112020-01-08 Simon Marchi <simon.marchi@efficios.com>
11212
11213 * thread.c (print_thread_info_1): Fix indentation.
11214
57d75002
CB
112152020-01-09 Christian Biesinger <cbiesinger@google.com>
11216
11217 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11218 unique_xmalloc_ptr outside the if to always free the demangled name.
11219
6a053cb1
TT
112202020-01-08 Tom Tromey <tromey@adacore.com>
11221
11222 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11223 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11224 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11225 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11226 Remove.
11227 (section_offsets): New typedef.
11228 * symtab.c (fixup_section, get_msymbol_address): Update.
11229 * symmisc.c (dump_msymbols): Update.
11230 * symfile.h (relative_addr_info_to_section_offsets)
11231 (symfile_map_offsets_to_segments): Update.
11232 * symfile.c (build_section_addr_info_from_objfile)
11233 (init_objfile_sect_indices): Update.
11234 (struct place_section_arg): Change type of "offsets".
11235 (place_section): Update.
11236 (relative_addr_info_to_section_offsets): Change type of
11237 "section_offsets". Remove "num_sections" parameter.
11238 (default_symfile_offsets, syms_from_objfile_1)
11239 (set_objfile_default_section_offset): Update.
11240 (reread_symbols): No need to preserve section offsets by hand.
11241 (symfile_map_offsets_to_segments): Change type of "offsets".
11242 * stap-probe.c (relocate_address): Update.
11243 * stabsread.h (process_one_symbol): Update.
11244 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11245 (solib_target_relocate_section_addresses): Update.
11246 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11247 Update.
11248 * solib-frv.c (frv_relocate_main_executable): Update.
11249 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11250 * solib-aix.c (solib_aix_get_section_offsets): Change return
11251 type.
11252 (solib_aix_solib_create_inferior_hook): Update.
11253 * remote.c (remote_target::get_offsets): Update.
11254 * psymtab.c (find_pc_sect_psymtab): Update.
11255 * psympriv.h (struct partial_symbol) <address, text_low,
11256 text_high>: Update.
11257 * objfiles.h (obj_section_offset): Update.
11258 (struct objfile) <section_offsets>: Change type.
11259 <num_sections>: Remove.
11260 (objfile_relocate): Update.
11261 * objfiles.c (entry_point_address_query): Update
11262 (relocate_one_symbol): Change type of "section_offsets".
11263 (objfile_relocate1, objfile_relocate1): Change type of
11264 "new_offsets".
11265 (objfile_rebase1): Update.
11266 * mipsread.c (mipscoff_symfile_read): Update.
11267 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11268 parameter.
11269 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11270 (parse_external, psymtab_to_symtab_1): Update.
11271 * machoread.c (macho_symfile_offsets): Update.
11272 * ia64-tdep.c (ia64_find_unwind_table): Update.
11273 * hppa-tdep.c (read_unwind_info): Update.
11274 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11275 * dwarf2read.c (create_addrmap_from_index)
11276 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11277 (process_psymtab_comp_unit_reader, add_partial_symbol)
11278 (add_partial_subprogram, process_full_comp_unit)
11279 (read_file_scope, read_func_scope, read_lexical_block_scope)
11280 (read_call_site_scope, dwarf2_rnglists_process)
11281 (dwarf2_ranges_process, dwarf2_ranges_read)
11282 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11283 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11284 Update.
11285 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11286 Update.
11287 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11288 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11289 (process_one_symbol): Change type of "section_offsets".
11290 * ctfread.c (get_objfile_text_range): Update.
11291 * coffread.c (coff_symtab_read, enter_linenos)
11292 (process_coff_symbol): Update.
11293 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11294 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11295
456e800a
TT
112962020-01-08 Tom Tromey <tromey@adacore.com>
11297
11298 * dwarf2read.c (parse_macro_definition): Use std::string.
11299 (parse_macro_definition): Likewise.
11300
6dfa2fc2
TT
113012020-01-08 Tom Tromey <tromey@adacore.com>
11302
11303 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11304 (ATTR_ALLOC_CHUNK): Remove.
11305
421d1616
TT
113062020-01-08 Tom Tromey <tromey@adacore.com>
11307
11308 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11309
43816ebc
TT
113102020-01-08 Tom Tromey <tromey@adacore.com>
11311
11312 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11313 (dwarf2_compute_name, open_dwo_file): Likewise.
11314 (process_enumeration_scope): Use std::vector.
11315 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11316 (partial_die_info::fixup, dwarf2_start_subfile)
11317 (guess_full_die_structure_name, dwarf2_name): Likewise.
11318 (determine_prefix): Update.
11319 (guess_full_die_structure_name): Make return type const.
11320 (partial_die_full_name): Return unique_xmalloc_ptr.
11321 (DW_FIELD_ALLOC_CHUNK): Remove.
11322
4212d509
TT
113232020-01-07 Tom Tromey <tromey@adacore.com>
11324
11325 PR build/24937:
11326 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11327
06a6207a
JT
113282020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11329
11330 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11331
153d79c4
AB
113322020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11333
11334 * stack.c (print_frame_info): Move disassemble_next_line code
11335 inside source_print block.
11336
66182876
EZ
113372020-01-06 Eli Zaretskii <eliz@gnu.org>
11338
11339 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11340 gdb/signals.h, as we are now using native signal symbols.
11341
cbfa8581
SV
113422020-01-06 Shahab Vahedi <shahab@synopsys.com>
11343
11344 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11345 overflow by an early check of content vs threshold.
aac66a4c 11346 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11347 Likewise.
11348
3f602821
EZ
113492020-01-06 Eli Zaretskii <eliz@gnu.org>
11350
11351 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11352
a08c904d
JT
113532020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11354
11355 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11356 export table if no section contains it's RVA.
11357
89a65580
EZ
113582020-01-06 Eli Zaretskii <eliz@gnu.org>
11359
11360 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11361
8b7fcda2
HD
113622020-01-06 Hannes Domani <ssbssa@yahoo.de>
11363
11364 * source.c (print_source_lines_base): Set last_line_listed.
11365
a61b4f69
SV
113662020-01-06 Shahab Vahedi <shahab@synopsys.com>
11367
11368 * tui/tui-disasm.c: Remove trailing spaces.
11369
559e7e50
EZ
113702020-01-06 Eli Zaretskii <eliz@gnu.org>
11371 Pedro Alves <palves@redhat.com>
11372
11373 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11374 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11375 (windows_gdb_signal_to_target): New function, uses the above
11376 enumeration to convert GDB internal signal codes to equivalent
11377 Windows codes.
11378 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11379 * windows-nat.c: Include "gdb_wait.h".
11380 (get_windows_debug_event): Extract the fatal exception from the
11381 exit status and convert to the equivalent Posix signal number.
11382 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11383 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11384 * gdbsupport/gdb_wait.c: New file, implements
11385 windows_status_to_termsig.
11386 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11387 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11388
f2302a34
AB
113892020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11390
11391 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11392 show_layout.
11393
6a5206eb
LM
113942020-01-05 Luis Machado <luis.machado@linaro.org>
11395
11396 * aarch64-linux-nat.c
11397 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11398 and bfd_mach_aarch64.
11399
6ec1d75e
PW
114002020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11401
11402 * ui-file.c (stdio_file::can_emit_style_escape)
11403 (tee_file::can_emit_style_escape): Ensure style is used also on
11404 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11405 to gdb_stdout.
11406 * main.c (set_gdb_data_directory): Use file style to output the
11407 warning that the given pathname is not a directory.
11408 * top.c (show_history_filename, gdb_safe_append_history)
11409 (show_gdb_datadir): Use file style.
11410
44f81a76
HD
114112020-01-03 Hannes Domani <ssbssa@yahoo.de>
11412
11413 * solib-target.c (struct lm_info_target):
11414 Change offsets to be a unique_xmalloc_ptr.
11415 (solib_target_relocate_section_addresses): Update.
11416
25057eb0
HD
114172020-01-03 Hannes Domani <ssbssa@yahoo.de>
11418
11419 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11420
6e2118f5
BE
114212020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11422
11423 * MAINTAINERS (Write After Approval): Add myself.
11424
8133c7dc
LM
114252020-01-02 Luis Machado <luis.machado@linaro.org>
11426
11427 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11428 Cell BE architecture.
11429 * target.h (struct target_ops) <thread_architecture>: Likewise.
11430
48189bec
HD
114312020-01-01 Hannes Domani <ssbssa@yahoo.de>
11432
11433 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11434
ead1063b
HD
114352020-01-01 Hannes Domani <ssbssa@yahoo.de>
11436
11437 * MAINTAINERS (Write After Approval): Add myself.
11438
e5d78223
JB
114392020-01-01 Joel Brobecker <brobecker@adacore.com>
11440
11441 * gdbarch.sh: Update copyright year range of generated files.
11442
b811d2c2
JB
114432020-01-01 Joel Brobecker <brobecker@adacore.com>
11444
11445 Update copyright year range in all GDB files.
11446
5f4def5c
JB
114472020-01-01 Joel Brobecker <brobecker@adacore.com>
11448
11449 * copyright.py: Convert to Python 3.
11450
51fd4002
JB
114512020-01-01 Joel Brobecker <brobecker@adacore.com>
11452
11453 * copyright.py: Adapt after move of gnulib directory from gdb
11454 directory to toplevel directory.
11455
5fb651f2
JB
114562020-01-01 Joel Brobecker <brobecker@adacore.com>
11457
11458 * copyright.py (main): Exit if run from the wrong directory.
11459
5dd8bf88
JB
114602020-01-01 Joel Brobecker <brobecker@adacore.com>
11461
11462 * top.c (print_gdb_version): Change copyright year to 2020.
11463
9f71dacb 114642020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11465
9f71dacb 11466 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11467
9f71dacb 11468For older changes see ChangeLog-2019.
c906108c
SS
11469\f
11470Local Variables:
11471mode: change-log
11472left-margin: 8
11473fill-column: 74
11474version-control: never
57da7796 11475coding: utf-8
c906108c 11476End: