]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Update binary_get_section_contents to seek using section's file position
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2735d421
KB
12020-07-22 Kevin Buettner <kevinb@redhat.com>
2
3 PR corefiles/25631
4 * corelow.c (core_target:xfer_partial): Revise
5 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6 case after first checking the stratum beneath the core
7 target.
8 (has_all_memory): Return true.
9 * target.c (raw_memory_xfer_partial): Revise comment
10 regarding use of has_all_memory.
11
e56cb451
KB
122020-07-22 Kevin Buettner <kevinb@redhat.com>
13
14 * exec.h (section_table_xfer_memory): Revise declaration,
15 replacing section name parameter with an optional callback
16 predicate.
17 * exec.c (section_table_xfer_memory): Likewise.
18 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
19 of section_table_xfer_memory.
20
32fa152e
TT
212020-07-22 Tom Tromey <tromey@adacore.com>
22
23 * mi/mi-cmd-stack.c (list_args_or_locals): Use
24 lookup_symbol_search_name.
25
a67a1c41
AB
262020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * python/py-registers.c (gdbpy_register_object_data_init): Remove
29 redundant local variable.
30 (gdbpy_get_register_descriptor): Extract descriptor vector as a
31 reference, not pointer, update code accordingly.
32
a7b4ff4f
SM
332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
34 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
37 * jit.c (jit_breakpoint_re_set_internal): Use the
38 `skip_jit_symbol_lookup` field.
39
2340e834
SM
402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
41 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42
43 * jit.c (jit_read_descriptor): Define the descriptor address once,
44 use twice.
45 (jit_breakpoint_deleted): Move the declaration of the loop variable
46 `iter` into the loop header.
47 (jit_breakpoint_re_set_internal): Move the declaration of the local
48 variable `objf_data` to the first point of definition.
49 (jit_event_handler): Move the declaration of local variables
50 `code_entry`, `entry_addr`, and `objf` to their first point of use.
51 Rename `objf` to `jited`.
52
c1072906
SM
532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
56 Remove.
57 * jit.c (get_jiter_objfile_data): Update.
58
c8474dc3
TBA
592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * jit.c (struct jit_program_space_data): Remove.
63 (jit_program_space_key): Remove.
64 (jiter_objfile_data::~jiter_objfile_data): Remove program space
65 stuff.
66 (get_jit_program_space_data): Remove.
67 (jit_breakpoint_deleted): Iterate on all of the program space's
68 objfiles.
69 (jit_inferior_init): Likewise.
70 (jit_breakpoint_re_set_internal): Likewise. Also change return
71 type to void.
72 (jit_breakpoint_re_set): Pass current_program_space to
73 jit_breakpoint_re_set_internal.
74
77208eb7
SM
752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * jit.h (struct jiter_objfile_data) <cached_code_address,
78 jit_breakpoint>: Move to here from ...
79 * jit.c (jit_program_space_data): ... here.
80 (jiter_objfile_data::~jiter_objfile_data): Update.
81 (jit_breakpoint_deleted): Update.
82 (jit_breakpoint_re_set_internal): Update.
83
8c1c720f
SM
842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
87 checks.
88 (jit_read_descriptor): Remove NULL check.
89 (jit_event_handler): Add an assertion.
90
0e74a041
SM
912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * jit.h (struct jit_objfile_data): Split into...
94 (struct jiter_objfile_data): ... this ...
95 (struct jited_objfile_data): ... and this.
96 * objfiles.h (struct objfile) <jit_data>: Remove.
97 <jiter_data, jited_data>: New fields.
98 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
99 (jiter_objfile_data::~jiter_objfile_data): ... this.
100 (get_jit_objfile_data): Rename to ...
101 (get_jiter_objfile_data): ... this.
102 (add_objfile_entry): Update.
103 (jit_read_descriptor): Use get_jiter_objfile_data.
104 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
105 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
106 (jit_inferior_exit_hook): Use objfile's jited_data field.
107
238b5c9f
SM
1082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * jit.h: Forward-declare `struct minimal_symbol`.
111 (struct jit_objfile_data): Migrate to here from jit.c; also add a
112 constructor, destructor, and an objfile* field.
113 * jit.c (jit_objfile_data): Remove.
114 (struct jit_objfile_data): Migrate from here to jit.h.
115 (jit_objfile_data::~jit_objfile_data): New destructor
116 implementation with code moved from free_objfile_data.
117 (free_objfile_data): Delete.
118 (get_jit_objfile_data): Update to use the jit_data field of objfile.
119 (jit_find_objf_with_entry_addr): Ditto.
120 (jit_inferior_exit_hook): Ditto.
121 (_initialize_jit): Remove the call to
122 register_objfile_data_with_cleanup.
123 * objfiles.h (struct objfile) <jit_data>: New field.
124
fe053b9e
TBA
1252020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
126
127 * jit.h: Forward-declare `struct objfile`.
128 (jit_event_handler): Add a second parameter, the JITer objfile.
129 * jit.c (jit_read_descriptor): Change the signature to take the
130 JITer objfile as an argument instead of the jit_program_space_data.
131 (jit_inferior_init): Update the call to jit_read_descriptor.
132 (jit_event_handler): Use the new JITer objfile argument when calling
133 jit_read_descriptor.
134 * breakpoint.c (handle_jit_event): Update the call to
135 jit_event_handler to pass the JITer objfile.
136
4cec0c66
JB
1372020-07-21 John Baldwin <jhb@FreeBSD.org>
138
139 * gdbarch.c: Regenerate.
140 * gdbarch.h: Regenerate.
141 * gdbarch.sh (handle_segmentation_fault): Remove method.
142 * infrun.c (handle_segmentation_fault): Remove.
143 (print_signal_received_reason): Remove call to
144 handle_segmentation_fault.
145
0e42f66a
JB
1462020-07-21 John Baldwin <jhb@FreeBSD.org>
147
148 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
149 Rename to sparc64_linux_report_signal_info and add siggnal
150 argument.
151 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
152 instead of sparc64_linux_handle_segmentation_fault.
153
77bdfeb2
JB
1542020-07-21 John Baldwin <jhb@FreeBSD.org>
155
156 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
157 i386_linux_report_signal_info instead of
158 i386_linux_handle_segmentation_fault.
159 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
160 to i386_linux_report_signal_info and add siggnal argument.
161 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
162 of i386_linux_handle_segmentation_fault.
163 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
164 to i386_linux_report_signal_info and add siggnal argument.
165
ad97bfc5
JB
1662020-07-21 John Baldwin <jhb@FreeBSD.org>
167
168 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
169 hook if present.
170
272bb05c
JB
1712020-07-21 John Baldwin <jhb@FreeBSD.org>
172
173 * gdbarch.c: Regenerate.
174 * gdbarch.h: Regenerate.
175 * gdbarch.sh (report_signal_info): New method.
176 * infrun.c (print_signal_received_reason): Invoke gdbarch
177 report_signal_info hook if present.
178
baf8791e
AB
1792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * python/py-registers.c : Add 'unordered_map' include.
182 (gdbpy_new_reggroup): Renamed to...
183 (gdbpy_get_reggroup): ...this. Update to only create register
184 group descriptors when needed.
185 (gdbpy_reggroup_iter_next): Update.
186
f7306dac
AB
1872020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * python/py-registers.c (gdbpy_register_object_data): New static
190 global.
191 (gdbpy_register_object_data_init): New function.
192 (gdbpy_new_register_descriptor): Renamed to...
193 (gdbpy_get_register_descriptor): ...this, and update to reuse
194 existing register descriptors where possible.
195 (gdbpy_register_descriptor_iter_next): Update.
196 (gdbpy_initialize_registers): Register new gdbarch data.
197
05c309a8
SM
1982020-07-21 Simon Marchi <simon.marchi@efficios.com>
199
200 * linux-nat.c (stopped_pids): Make static.
201
d1fd641e
SM
2022020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
203
204 PR ada/26235
205 * gdbtypes.c (ada_discrete_type_low_bound,
206 ada_discrete_type_high_bound): Handle undefined bounds.
207
1de14d77
KR
2082020-07-21 Kamil Rytarowski <n54@gmx.com>
209
210 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
211 declaration.
212 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
213 function.
214
ed810cc7
JB
2152020-07-20 John Baldwin <jhb@FreeBSD.org>
216
217 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
218 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
219 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
220 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
221 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
222 method.
223
ae5369e7
LC
2242020-07-20 Ludovic Courtès <ludo@gnu.org>
225
226 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
227 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
228 which are deprecated in Guile 3.0.
229 * configure.ac (try_guile_versions): Add "guile-3.0".
230 * configure (try_guile_versions): Regenerate.
231 * NEWS: Update entry.
232
68cf161c
LC
2332020-07-20 Ludovic Courtès <ludo@gnu.org>
234 Doug Evans <dje@google.com>
235
236 PR gdb/21104
237 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
238 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
239 USING_GUILE_BEFORE_2_2.
240 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
241 Change type to 'scm_t_port_type *'.
242 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
243 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
244 parameter and honor it. Update callers.
245 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
246 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
247 functions.
248 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
249 USING_GUILE_BEFORE_2_2.
250 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
251 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
252 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
253 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
254 and 'SCM_PORT_TYPE'.
255 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
256 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
257 (gdbscm_memory_port_read, gdbscm_memory_port_write)
258 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
259 [!USING_GUILE_BEFORE_2_2]: New functions.
260 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
261 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
262 'gdbscm_memory_port_read'.
263 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
264 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
265 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
266 function.
267 (ioscm_init_memory_port): Remove.
268 (ioscm_init_memory_port_stream): New function
269 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
270 function.
271 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
272 Return scm_from_uint (0).
273 (gdbscm_set_memory_port_read_buffer_size_x)
274 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
275 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
276 Return scm_from_uint (0).
277 (gdbscm_set_memory_port_write_buffer_size_x)
278 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
279 * configure.ac (try_guile_versions): Add "guile-2.2".
280 * configure: Regenerate.
281 * NEWS: Add entry.
282
aee91db3
TT
2832020-07-18 Tom Tromey <tom@tromey.com>
284
285 * linux-nat.c (linux_multi_process): Remove.
286 (linux_nat_target::supports_multi_process): Return true.
287
0e267416
AB
2882020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * arch/riscv.c (riscv_tdesc_cache): Change map type.
291 (riscv_lookup_target_description): Return pointer out of
292 unique_ptr.
293 * target-descriptions.c (allocate_target_description): Add
294 comment.
295 (target_desc_deleter::operator()): Likewise.
296 * target-descriptions.h (struct target_desc_deleter): Moved to
297 gdbsupport/tdesc.h.
298 (target_desc_up): Likewise.
299
f80c8ec4
TT
3002020-07-17 Tom Tromey <tromey@adacore.com>
301
302 * linux-nat.c (linux_nat_target::supports_non_stop)
303 (linux_nat_target::always_non_stop_p): Use "true".
304 (linux_nat_target::supports_disable_randomization): Use "true" and
305 "false".
306
d0ce17d8
CT
3072020-07-16 Caroline Tice <cmtice@google.com>
308
309 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
310 (RNGLIST_HEADER_SIZE64): New constant definition.
311 (struct dwop_section_names): Add rnglists_dwo.
312 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
313 (struct loclist_header): Rename to 'loclists_rnglists_header'.
314 (struct dwo_sections): Add rnglists field.
315 (read_attribut_reprocess): Add tag parameter.
316 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
317 (cu_debug_rnglists_section): New function (decl & definition).
318 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
319 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
320 die whose range is being checked; get rnglist section from
321 cu_debug_rnglists_section, to get from either objfile or dwo file as
322 appropriate. Add cases for DW_RLE_base_addressx,
323 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
324 the base address to DW_RLE_offset_pairs (not to all ranges), moving
325 test inside if-condition and updating complaint message.
326 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
327 dwarf2_rnglists_process.
328 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
329 dwarf2_ranges_process.
330 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
331 need_ranges_base and update comment appropriately. Also pass die tag
332 to dwarf2_ranges_read.
333 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
334 need_ranges_base and update comment appropriately. Also pass die tag
335 to dwarf2_ranges_process.
336 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
337 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
338 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
339 need_ranges_base and update comment appropriately. Also pass die tag
340 to read_attribute_reprocess and dwarf2_ranges_read.
341 (read_loclist_header): Rename function to read_loclists_rnglists_header,
342 and update function comment appropriately.
343 (read_loclist_index): Call read_loclists_rnglists_header instead of
344 read_loclist_header.
345 (read_rnglist_index): New function.
346 (read_attribute_reprocess): Add tag parameter. Add code for
347 DW_FORM_rnglistx, passing tag to read_rnglist_index.
348 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
349
3dcc261c
AB
3502020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
353 being resolved.
354
ccb9eba6
AB
3552020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * arch-utils.c (show_architecture): Update formatting of messages.
358
cf88be68
SM
3592020-07-12 Simon Marchi <simon.marchi@efficios.com>
360
361 * gdbtypes.h (struct type) <bounds>: Handle array and string
362 types.
363 * ada-lang.c (assign_aggregate): Use type::bounds on
364 array/string type.
365 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
366 * c-varobj.c (c_number_of_children): Likewise.
367 (c_describe_child): Likewise.
368 * eval.c (evaluate_subexp_for_sizeof): Likewise.
369 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
370 (f_type_print_base): Likewise.
371 * f-valprint.c (f77_array_offset_tbl): Likewise.
372 (f77_get_upperbound): Likewise.
373 (f77_print_array_1): Likewise.
374 * guile/scm-type.c (gdbscm_type_range): Likewise.
375 * m2-typeprint.c (m2_array): Likewise.
376 (m2_is_long_set_of_type): Likewise.
377 * m2-valprint.c (get_long_set_bounds): Likewise.
378 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
379 * python/py-type.c (typy_range): Likewise.
380 * rust-lang.c (rust_internal_print_type): Likewise.
381 * type-stack.c (type_stack::follow_types): Likewise.
382 * valarith.c (value_subscripted_rvalue): Likewise.
383 * valops.c (value_cast): Likewise.
384
509971ae
SM
3852020-07-12 Simon Marchi <simon.marchi@efficios.com>
386
387 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
388 callers to use the equivalent accessor methods.
389
107406b7
SM
3902020-07-12 Simon Marchi <simon.marchi@efficios.com>
391
392 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
393 (struct type) <bit_stride>: New method.
394 (TYPE_BIT_STRIDE): Remove.
395 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
396
bb789949
SM
3972020-07-12 Simon Marchi <simon.marchi@efficios.com>
398
399 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
400 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
401 callers to use the equivalent accessor methods instead.
402
39498edb
SM
4032020-07-12 Simon Marchi <simon.marchi@efficios.com>
404
405 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
406 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
407 callers to use the equivalent accessor methods instead.
408
3b606f38
SM
4092020-07-12 Simon Marchi <simon.marchi@efficios.com>
410
411 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
412 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
413 to use dynamic_prop::kind.
414
064d9cb9
SM
4152020-07-12 Simon Marchi <simon.marchi@efficios.com>
416
417 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
418 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
419 to get the bound property's kind and check against
420 PROP_UNDEFINED.
421
5537ddd0
SM
4222020-07-12 Simon Marchi <simon.marchi@efficios.com>
423
424 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
425 all callers to use type::range_bounds followed by
426 dynamic_prop::{low,high}.
427
8c2e4e06
SM
4282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
431 const_val, set_const_val, baton, set_locexpr, set_loclist,
432 set_addr_offset, variant_parts, set_variant_parts,
433 original_type, set_original_type>: New methods.
434 <kind>: Rename to...
435 <m_kind>: ... this. Update all users to use the new methods
436 instead.
437 <data>: Rename to...
438 <m_data>: ... this. Update all users to use the new methods
439 instead.
440
7c6f2712
SM
4412020-07-12 Simon Marchi <simon.marchi@efficios.com>
442
443 * gdbtypes.c (get_discrete_bounds): Return failure if
444 the range type's bounds are not both defined and constant
445 values.
446 (get_array_bounds): Update comment. Remove undefined bound check.
447
599088e3
SM
4482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
451 the type::bounds method directly.
452
c4dfcb36
SM
4532020-07-12 Simon Marchi <simon.marchi@efficios.com>
454
455 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
456 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
457 are used to set the range type's bounds to use set_bounds.
458
0a278aa7
PW
4592020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
460
461 * exec.c (_initialize_exec): Update exec-file-mismatch help.
462
cce20f10
PA
4632020-07-10 Pedro Alves <pedro@palves.net>
464
465 * gdbthread.h (inferior_ref): Define.
466 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
467 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
468 * thread.c
469 (scoped_restore_current_thread::restore):
470 Adjust to gdb::ref_ptr.
471 (scoped_restore_current_thread::~scoped_restore_current_thread):
472 Remove manual decref handling.
473 (scoped_restore_current_thread::scoped_restore_current_thread):
474 Adjust to use
475 inferior_ref::new_reference/thread_info_ref::new_reference.
476 Incref the thread before calling get_frame_id instead of after.
477 Let TARGET_CLOSE_ERROR propagate.
478
6d7aa592
PA
4792020-07-10 Pedro Alves <pedro@palves.net>
480
481 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
482 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
483 NOT_AVAILABLE_ERROR.
484 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
485 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
486
b3e3a4c1
SM
4872020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
488 Pedro Alves <pedro@palves.net>
489
490 PR gdb/26199
491 * infrun.c (threads_are_resumed_pending_p): Delete.
492 (do_target_wait): Remove threads_are_executing and
493 threads_are_resumed_pending_p checks from the inferior_matches
494 lambda. Update comments.
495
d6cc5d98
PA
4962020-07-10 Pedro Alves <pedro@palves.net>
497
498 PR gdb/26199
499 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
500 executing threads.
501
7d3badc6
PA
5022020-07-10 Pedro Alves <pedro@palves.net>
503
504 PR gdb/26199
505 * infrun.c (handle_no_resumed): Handle multiple targets.
506
42bd97a6
PA
5072020-07-10 Pedro Alves <pedro@palves.net>
508
509 PR gdb/26199
510 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
511 target_is_async_p.
512
43667cc6
PA
5132020-07-10 Pedro Alves <pedro@palves.net>
514
515 PR gdb/26199
516 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
517 threads, not all threads.
518
96118d11
PA
5192020-07-10 Pedro Alves <pedro@palves.net>
520
521 PR gdb/26199
522 * remote.c (remote_target::open_1): Pass remote target pointer as
523 data to create_async_event_handler.
524 (remote_async_inferior_event_handler): Mark async event handler
525 before returning if the remote target still has either pending
526 events or unacknowledged notifications.
527
54904d81
JB
5282020-07-10 John Baldwin <jhb@FreeBSD.org>
529
530 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
531 declaration.
532 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
533 function.
534
f37e5866
JB
5352020-07-09 John Baldwin <jhb@FreeBSD.org>
536
537 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
538 inferior_ptid.
539
fc238d4a
JB
5402020-07-09 John Baldwin <jhb@FreeBSD.org>
541
542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
543 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
544 AT_FREEBSD_PS_STRINGS.
545
6e2469ff
HD
5462020-07-08 Hannes Domani <ssbssa@yahoo.de>
547
548 * auto-load.c (auto_load_objfile_script_1): Convert drive part
549 of debugfile path on Windows.
550
d1076c41
JB
5512020-07-08 John Baldwin <jhb@FreeBSD.org>
552
553 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
554 argument to 'data'.
555
15f3b077
TT
5562020-07-08 Tom Tromey <tromey@adacore.com>
557
558 * ada-lang.c (ada_exception_message_1): Use read_memory.
559
9fc501fd
AB
5602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 PR python/22748
563 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
564 special handling for inline frames.
565 * findvar.c (value_of_register_lazy): Skip inline frames when
566 creating lazy register values.
567 * frame.c (frame_id_computed_p): Delete definition.
568 * frame.h (frame_id_computed_p): Delete declaration.
569
64cb3757
AB
5702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * NEWS: Mention additions to Python API.
573 * python/py-arch.c (archpy_register_groups): New function.
574 (arch_object_methods): Add 'register_groups' method.
575 * python/py-registers.c (reggroup_iterator_object): New struct.
576 (reggroup_object): New struct.
577 (gdbpy_new_reggroup): New function.
578 (gdbpy_reggroup_to_string): New function.
579 (gdbpy_reggroup_name): New function.
580 (gdbpy_reggroup_iter): New function.
581 (gdbpy_reggroup_iter_next): New function.
582 (gdbpy_new_reggroup_iterator): New function
583 (gdbpy_initialize_registers): Register new types.
584 (reggroup_iterator_object_type): Define new Python type.
585 (gdbpy_reggroup_getset): New static global.
586 (reggroup_object_type): Define new Python type.
587 * python/python-internal.h
588
0f767f94
AB
5892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
592 * python/py-arch.c (archpy_registers): New function.
593 (arch_object_methods): Add 'registers' method.
594 * python/py-registers.c: New file.
595 * python/python-internal.h
596 (gdbpy_new_register_descriptor_iterator): Declare.
597 (gdbpy_initialize_registers): Declare.
598 * python/python.c (do_start_initialization): Call
599 gdbpy_initialize_registers.
600 * NEWS: Mention additions to the Python API.
601
87dbc774
AB
6022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * NEWS: Mention new Python API method.
605 * python/py-unwind.c (pending_framepy_architecture): New function.
606 (pending_frame_object_methods): Add architecture method.
607
3bc98c0c
AB
6082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * gdbarch.c: Regenerate.
611 * gdbarch.h: Regenerate.
612 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
613 (gdbarch_data): Use internal_error for the case where
614 deprecated_set_gdbarch_data was originally needed.
615 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
616 and use passed in obstack.
617 (libunwind_frame_set_descr): Should no longer get back NULL from
618 gdbarch_data.
619 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
620 type.
621 * user-regs.c (user_regs_init): Update parameters, and use passed
622 in obstack.
623 (user_reg_add): Should no longer get back NULL from gdbarch_data.
624 (_initialize_user_regs): Register as a pre-init gdbarch data type.
625
d8cc8af6
TV
6262020-07-06 Tom de Vries <tdevries@suse.de>
627
628 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
629 End-Of-Sequence in lte_is_less_than.
630 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
631 "gdb: Don't reorder line table entries too much when sorting".
632
947f7597
TV
6332020-07-06 Tom de Vries <tdevries@suse.de>
634
635 PR tui/26205
636 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
637
1e7c1b22
TV
6382020-07-05 Tom de Vries <tdevries@suse.de>
639
640 PR build/26187
641 * inferior.h (struct infcall_suspend_state_deleter): If available, use
642 std::uncaught_exceptions instead of deprecated
643 std::uncaught_exception.
644
a36158ec
SM
6452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * macroexp.h (macro_stringify): Return
648 gdb::unique_xmalloc_ptr<char>.
649 * macroexp.c (macro_stringify): Likewise.
650 * macrotab.c (fixup_definition): Update.
651
14d960c8
SM
6522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
655 (lex_one_token): Update.
656 * macroexp.c (struct macro_buffer) <release>: Return
657 gdb::unique_xmalloc_ptr<char>.
658 (macro_stringify): Update.
659 (macro_expand): Update.
660 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
661 * macroexp.h (macro_expand_next): Likewise.
662
211d5b1c
SM
6632020-07-02 Simon Marchi <simon.marchi@efficios.com>
664
665 * macroexp.h (macro_lookup_ftype): Remove.
666 (macro_expand, macro_expand_once, macro_expand_next): Remove
667 lookup function parameters, add scope parameter.
668 * macroexp.c (scan, substitute_args, expand, maybe_expand,
669 macro_expand, macro_expand_once, macro_expand_next): Likewise.
670 * macroscope.h (standard_macro_lookup): Change parameter type
671 to macro_scope.
672 * macroscope.c (standard_macro_lookup): Likewise.
673 * c-exp.y (lex_one_token): Update.
674 * macrocmd.c (macro_expand_command): Likewise.
675 (macro_expand_once_command): Likewise.
676
b1a35af2
SM
6772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * inf-loop.c (inferior_event_handler): Remove client_data param.
680 * inf-loop.h (inferior_event_handler): Likewise.
681 * infcmd.c (step_1): Adjust.
682 * infrun.c (proceed): Adjust.
683 (fetch_inferior_event): Remove client_data param.
684 (infrun_async_inferior_event_handler): Adjust.
685 * infrun.h (fetch_inferior_event): Remove `void *` param.
686 * linux-nat.c (handle_target_event): Adjust.
687 * record-btrace.c (record_btrace_handle_async_inferior_event):
688 Adjust.
689 * record-full.c (record_full_async_inferior_event_handler):
690 Adjust.
691 * remote.c (remote_async_inferior_event_handler): Adjust.
692
1cdf9e33
TT
6932020-07-01 Tom Tromey <tom@tromey.com>
694
695 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
696 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
697
32c1e210
TT
6982020-07-01 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
701 tui_gen_win_info.
702 (tui_win_info::make_window): Merge with
703 tui_gen_win_info::make_window.
704 (tui_win_info::make_visible): Move from tui_gen_win_info.
705 * tui/tui-win.c (tui_win_info::max_width): Move from
706 tui_gen_win_info.
707 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
708 type.
709 <window_factory>: Likewise.
710 * tui/tui-layout.c (tui_win_info::resize): Move from
711 tui_gen_win_info.
712 (make_standard_window): Change return type.
713 (get_locator_window, tui_get_window_by_name): Likewise.
714 (tui_layout_window::apply): Remove a cast.
715 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
716 (struct tui_win_info): Merge with tui_gen_win_info.
717 (struct tui_gen_win_info): Remove.
718
a30cb6da
TT
7192020-07-01 Tom Tromey <tom@tromey.com>
720
721 * tui/tui-stack.h (struct tui_locator_window): Derive from
722 tui_win_info.
723 <do_scroll_horizontal, do_scroll_vertical>: New methods.
724 <can_box>: New method.
725
1eb2161f
TT
7262020-07-01 Tom Tromey <tom@tromey.com>
727
728 * tui/tui-stack.h (struct tui_locator_window): Remove body.
729
7134f2eb
TT
7302020-07-01 Tom Tromey <tom@tromey.com>
731
732 * tui/tui-regs.c (tui_data_window::display_registers_from)
733 (tui_data_window::display_registers_from)
734 (tui_data_window::first_data_item_displayed)
735 (tui_data_window::delete_data_content_windows): Update.
736 (tui_data_window::refresh_window, tui_data_window::no_refresh):
737 Remove.
738 (tui_data_window::check_register_values): Update.
739 (tui_data_item_window::rerender): Add parameters. Update.
740 (tui_data_item_window::refresh_window): Remove.
741 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
742 virtual.
743 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
744 tui_gen_win_info.
745 <refresh_window, max_height, min_height>: Remove.
746 <rerender>: Add parameters.
747 <x, y, visible>: New members.
748 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
749 <m_item_width>: New member.
750
22b7b041
TT
7512020-07-01 Tom Tromey <tom@tromey.com>
752
753 * tui/tui-regs.c (tui_data_window::show_register_group)
754 (tui_data_window::check_register_values): Update.
755 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
756 from item_no.
757
c9753adb
TT
7582020-07-01 Tom Tromey <tom@tromey.com>
759
760 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
761 useless "if".
762
9ab26b4a
TT
7632020-07-01 Tom Tromey <tom@tromey.com>
764
765 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
766 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
767
e555083f
TT
7682020-07-01 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
771 * tui/tui-winsource.h (enum tui_line_or_address_kind)
772 (struct tui_line_or_address): Move from tui-data.h.
773 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
774 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
775 (tui_cmd_window, tui_source_window_base, tui_source_window)
776 (tui_disasm_window): Don't declare.
777 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
778 to tui-winsource.h.
779 (SINGLE_KEY): Move to tui-stack.c.
780
7a02bab7
TT
7812020-07-01 Tom Tromey <tom@tromey.com>
782
783 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
784 std::string.
785 * tui/tui-regs.c (class tab_expansion_file): New.
786 (tab_expansion_file::write): New method.
787 (tui_register_format): Change return type. Use
788 tab_expansion_file.
789 (tui_get_register, tui_data_window::display_registers_from)
790 (tui_data_item_window::rerender): Update.
791 * tui/tui-io.h (tui_expand_tabs): Don't declare.
792 * tui/tui-io.c (tui_expand_tabs): Remove.
793
ea68593b
TT
7942020-07-01 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
797
a8caed5d
FS
7982020-07-01 Fangrui Song <maskray@google.com>
799
800 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
801
9cdf9820
AKS
8022020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
803
804 * dwarf2/read.c (set_die_type): Removed conditions to restrict
805 forms for DW_AT_associated and DW_AT_allocated attributes,
806 which is already checked in function attr_to_dynamic_prop.
807
a1520ad8
TT
8082020-06-30 Tom Tromey <tromey@adacore.com>
809
810 * dwarf2/read.c (quirk_rust_enum): Correctly call
811 alloc_rust_variant for default-less enum.
812
5ac58899
TT
8132020-06-30 Tom Tromey <tromey@adacore.com>
814
815 PR build/26183:
816 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
817 gdb::to_string.
818
19b187a9
SM
8192020-06-29 Simon Marchi <simon.marchi@efficios.com>
820
821 * gdbarch.sh (displaced_step_copy_insn): Update doc.
822 * gdbarch.h: Re-generate.
823
cd4c4c07
TT
8242020-06-28 Tom Tromey <tom@tromey.com>
825
826 * command.h (cmd_types): Remove.
827 (cmd_type): Don't declare.
828 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
829 typedef.
830 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
831 * cli/cli-decode.c (cmd_type): Remove.
832
05779d57
PA
8332020-06-27 Pedro Alves <palves@redhat.com>
834
835 * fork-child.c (prefork_hook): Adjust.
836 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
837 Delete.
838 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
839 * inferior.c (inferior::set_tty, inferior::tty): New methods.
840 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
841 Remove declarations.
842 (struct inferior) <set_tty, tty>: New methods.
843 (struct inferior) <terminal>: Rename to ...
844 (struct inferior) <m_terminal>: ... this and make private.
845 * main.c (captured_main_1): Adjust.
846 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
847 (mi_cmd_inferior_tty_show): Adjust.
848 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
849 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
850
1776e3e5
NA
8512020-06-26 Nick Alcock <nick.alcock@oracle.com>
852
853 * configure.ac: Add --enable-libctf: handle --disable-static
854 properly.
855 * acinclude.m4: sinclude ../config/enable.m4.
856 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
857 (LIBCTF): Substitute in.
858 (CTF_DEPS): New, likewise.
859 (CLIBS): libctf needs symbols from libbfd: move earlier.
860 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
861 flags.
862 * ctfread.c: Surround in ENABLE_LIBCTF.
863 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
864 * configure: Regenerate.
865 * config.in: Likewise.
866
58373b80
SM
8672020-06-25 Simon Marchi <simon.marchi@efficios.com>
868
869 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
870
277474ee
SM
8712020-06-25 Simon Marchi <simon.marchi@efficios.com>
872
873 * inferior.h (struct inferior) <terminal>: Change type to
874 gdb::unique_xmalloc_ptr<char>.
875 * inferior.c (inferior::~inferior): Don't free inf->terminal.
876 * infcmd.c (set_inferior_io_terminal): Don't free terminal
877 field, adjust to unique pointer.
878 (get_inferior_io_terminal): Adjust to unique pointer.
879
6d74da72
AB
8802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * riscv-tdep.c (riscv_print_registers_info): Loop over all
883 registers, not just the known core set of registers.
884
2e52d038
AB
8852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
888 fflags, frm, and fcsr registers.
889 (riscv_register_reggroup_p): Remove unknown CSRs from save and
890 restore groups.
891 (riscv_tdesc_unknown_reg): New function.
892 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
893 tdesc_use_registers.
894 * riscv-tdep.h (struct gdbarch_tdep): Add
895 unknown_csrs_first_regnum, unknown_csrs_count,
896 duplicate_fflags_regnum, duplicate_frm_regnum, and
897 duplicate_fcsr_regnum fields.
898
be64fd07
AB
8992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * target-descriptions.c (tdesc_use_registers): Add new parameter a
902 callback, use the callback (when not null) to help number unknown
903 registers.
904 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
905 (tdesc_use_registers): Add extra parameter to declaration.
906
3b9fce96
AB
9072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
910 in the file.
911 (class riscv_pending_register_alias): Likewise.
912 (riscv_register_feature::register_info): Change 'required_p' field
913 to 'required', and change its type. Add 'check' member function.
914 (riscv_register_feature::register_info::check): Define new member
915 function.
916 (riscv_xreg_feature): Change initialisation of 'required' field.
917 (riscv_freg_feature): Likewise.
918 (riscv_virtual_feature): Likewise.
919 (riscv_csr_feature): Likewise.
920 (riscv_check_tdesc_feature): Take extra parameter, the csr
921 tdesc_feature, rewrite the function to use the new
922 riscv_register_feature::register_info::check function.
923 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
924
865bad26
AB
9252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * features/Makefile: Remove all references to the deleted files
928 below.
929 * features/riscv/32bit-csr.c: Deleted.
930 * features/riscv/32bit-csr.xml: Deleted.
931 * features/riscv/64bit-csr.c: Deleted.
932 * features/riscv/64bit-csr.xml: Deleted.
933 * features/riscv/rebuild-csr-xml.sh: Deleted.
934
ed69cbc8
AB
9352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
936
937 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
938 whitespace error for declaration of names member variable.
939 (struct riscv_register_feature): Add new prefer_first_name member
940 variable, and fix whitespace error in declaration of registers.
941 (riscv_xreg_feature): Initialize prefer_first_name field.
942 (riscv_freg_feature): Likewise.
943 (riscv_virtual_feature): Likewise.
944 (riscv_csr_feature): Likewise.
945 (riscv_register_name): Expand on comments. Remove register name
946 modifications for CSR and virtual registers.
947
4445e8f5
AB
9482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
949
950 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
951 errors.
952
767a879e
AB
9532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
956 riscv-opc.h.
957 (class riscv_pending_register_alias): New class.
958 (riscv_check_tdesc_feature): Take vector of pending aliases and
959 populate it as appropriate.
960 (riscv_setup_register_aliases): Delete.
961 (riscv_gdbarch_init): Create vector of pending aliases and pass it
962 to riscv_check_tdesc_feature in all cases. Use the vector to
963 create the register aliases.
964
bb6e55f3
RO
9652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
966
967 * sol2-tdep.c (sol2_static_transform_name): Remove.
968 (sol2_init_abi): Don't register it.
969 * gdbarch.sh (static_transform_name): Remove.
970 * gdbarch.c, gdbarch.h: Regenerate.
971
972 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
973 gdbarch_static_transform_name.
974 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
975 * stabsread.c (define_symbol) <'X'>: Remove.
976 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
977 handling.
978 <'V'>: Likewise.
979 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
980 <'S'>: Remove call to gdbarch_static_transform_name.
981
c6d36836
RO
9822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
983
984 * procfs.c (procfs_pre_trace): New function.
985 (procfs_target::create_inferior): Pass it to fork_inferior.
986
a7e6196b
RO
9872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
988
989 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
990 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
991 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
992 sol2-tdep.o, sparc-sol2-tdep.o.
993 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
994 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
995 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
996 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
997
d412e696
RO
9982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
999
1000 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1001 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1002 Call sol2_init_abi.
1003 Remove calls to set_gdbarch_skip_solib_resolver,
1004 set_gdbarch_core_pid_to_str.
1005 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1006 (i386_sol2_static_transform_name): Remove.
1007 (i386_sol2_init_abi): Call sol2_init_abi.
1008 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1009 set_gdbarch_static_transform_name,
1010 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1011 Use sol2_sigtramp_p.
1012 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1013 (sol2_sigtramp_p): New function.
1014 (sol2_static_transform_name): New function.
1015 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1016 (sol2_init_abi): New function.
1017 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1018 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1019 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1020 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1021 (sparc_sol2_static_transform_name): Remove.
1022 (sparc32_sol2_init_abi): Call sol2_init_abi.
1023 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1024 set_gdbarch_static_transform_name,
1025 set_gdbarch_skip_solib_resolver,
1026 set_gdbarch_core_pid_to_str.
1027 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1028 (sparc_sol2_static_transform_name): Remove
1029 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1030 call sol2_sigtramp_p.
1031 (sparc64_sol2_init_abi): Call sol2_init_abi.
1032 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1033 set_gdbarch_static_transform_name,
1034 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1035
a8654e7d
PW
10362020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1037
1038 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1039 * exec.c (validate_exec_file): If from_tty, set both
1040 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1041 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1042 and from_tty, unconditionally ask a confirmation.
1043
caa7fd04
AB
10442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1045
1046 * target-descriptions.c (tdesc_architecture_name): Protect against
1047 NULL pointer dereference.
1048 (maint_print_xml_tdesc_cmd): New function.
1049 (_initialize_target_descriptions): Register new 'maint print
1050 xml-tdesc' command and give it the filename completer.
1051 * NEWS: Mention new 'maint print xml-tdesc' command.
1052
fbf42f4e
AB
10532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * target-descriptions.c (class tdesc_compatible_info): New class.
1056 (struct target_desc): Change type of compatible vector.
1057 (tdesc_compatible_p): Update for change in type of
1058 target_desc::compatible.
1059 (tdesc_compatible_info_list): New function.
1060 (tdesc_compatible_info_arch_name): New function.
1061 (tdesc_add_compatible): Update for change in type of
1062 target_desc::compatible.
1063 (print_c_tdesc::visit_pre): Likewise.
1064
20821f4e
AB
10652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1066
1067 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1068 whitespace to underscore.
1069 (maint_print_c_tdesc_cmd): Use fake filename for target
1070 descriptions that came from the target.
1071 (_initialize_target_descriptions): Add filename command completion
1072 for 'maint print c-tdesc'.
1073
1fb5ee62
SM
10742020-06-23 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1077 lines.
1078
fc3ecb3e
SM
10792020-06-23 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1082 lines.
1083 (dwarf2_find_location_expression): Likewise.
1084 (call_site_parameter_matches): Likewise.
1085 (dwarf2_compile_expr_to_ax): Likewise.
1086 (disassemble_dwarf_expression): Likewise.
1087 (loclist_describe_location): Likewise.
1088
236ef034
PA
10892020-06-23 Pedro Alves <palves@redhat.com>
1090
1091 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1092 progspace-and-thread.h. Include scoped-mock-context.h instead.
1093 (register_to_value_test): Use scoped_mock_context.
1094 * regcache.c: Include "scoped-mock-context.h".
1095 (cooked_read_test): Don't error out if a target is already pushed.
1096 Use scoped_mock_context. Adjust.
1097 * scoped-mock-context.h: New file.
1098
39e7ecca
AB
10992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1102 initializer.
1103 (ada_language::is_string_type_p): New member function.
1104 * c-lang.c (c_language_data): Delete la_is_string_type_p
1105 initializer.
1106 (cplus_language_data): Likewise.
1107 (asm_language_data): Likewise.
1108 (minimal_language_data): Likewise.
1109 * d-lang.c (d_language_data): Likewise.
1110 * f-lang.c (f_is_string_type_p): Delete function, implementation
1111 moved to f_language::is_string_type_p.
1112 (f_language_data): Delete la_is_string_type_p initializer.
1113 (f_language::is_string_type_p): New member function,
1114 implementation from f_is_string_type_p.
1115 * go-lang.c (go_is_string_type_p): Delete function, implementation
1116 moved to go_language::is_string_type_p.
1117 (go_language_data): Delete la_is_string_type_p initializer.
1118 (go_language::is_string_type_p): New member function,
1119 implementation from go_is_string_type_p.
1120 * language.c (language_defn::is_string_type_p): Define new member
1121 function.
1122 (default_is_string_type_p): Make static, add comment copied from
1123 header file.
1124 (unknown_language_data): Delete la_is_string_type_p initializer.
1125 (unknown_language::is_string_type_p): New member function.
1126 (auto_language_data): Delete la_is_string_type_p initializer.
1127 (auto_language::is_string_type_p): New member function.
1128 * language.h (language_data): Delete la_is_string_type_p field.
1129 (language_defn::is_string_type_p): Declare new function.
1130 (default_is_string_type_p): Delete desclaration, move comment to
1131 definition.
1132 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1133 moved to m2_language::is_string_type_p.
1134 (m2_language_data): Delete la_is_string_type_p initializer.
1135 (m2_language::is_string_type_p): New member function,
1136 implementation from m2_is_string_type_p.
1137 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1138 initializer.
1139 * opencl-lang.c (opencl_language_data): Likewise.
1140 * p-lang.c (pascal_is_string_type_p): Delete function,
1141 implementation moved to pascal_language::is_string_type_p.
1142 (pascal_language_data): Delete la_is_string_type_p initializer.
1143 (pascal_language::is_string_type_p): New member function,
1144 implementation from pascal_is_string_type_p.
1145 * rust-lang.c (rust_is_string_type_p): Delete function,
1146 implementation moved to rust_language::is_string_type_p.
1147 (rust_language_data): Delete la_is_string_type_p initializer.
1148 (rust_language::is_string_type_p): New member function,
1149 implementation from rust_is_string_type_p.
1150 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1151 is_string_type_p.
1152
4ffc13fb
AB
11532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * ada-lang.c (ada_language_data): Delete la_print_typedef
1156 initializer.
1157 (ada_language::print_typedef): New member function.
1158 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1159 (cplus_language_data): Likewise.
1160 (asm_language_data): Likewise.
1161 (minimal_language_data): Likewise.
1162 * d-lang.c (d_language_data): Likewise.
1163 * f-lang.c (f_language_data): Likewise.
1164 (f_language::print_typedef): New member function.
1165 * go-lang.c (go_language_data): Delete la_print_typedef
1166 initializer.
1167 * language.c (language_defn::print_typedef): Define member
1168 function.
1169 (unknown_language_data): Delete la_print_typedef initializer.
1170 (unknown_language::print_typedef): New member function.
1171 (auto_language_data): Delete la_print_typedef initializer.
1172 (auto_language::print_typedef): New member function.
1173 * language.h (language_data): Delete la_print_typedef field.
1174 (language_defn::print_typedef): Declare new member function.
1175 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1176 (default_print_typedef): Delete declaration.
1177 * m2-lang.c (m2_language_data): Delete la_print_typedef
1178 initializer.
1179 (m2_language::print_typedef): New member function.
1180 * objc-lang.c (objc_language_data): Delete la_print_typedef
1181 initializer.
1182 * opencl-lang.c (opencl_language_data): Likewise.
1183 * p-lang.c (pascal_language_data): Likewise.
1184 (pascal_language::print_typedef): New member function.
1185 * rust-lang.c (rust_print_typedef): Delete function,
1186 implementation moved to rust_language::print_typedef.
1187 (rust_language): Delete la_print_typedef initializer.
1188 (rust_language::print_typedef): New member function,
1189 implementation from rust_print_typedef.
1190 * typeprint.c (default_print_typedef): Delete.
1191
d711ee67
AB
11922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1195 (ada_language::printstr): New member function.
1196 * c-lang.c (c_language_data): Delete la_printstr initializer.
1197 (cplus_language_data): Likewise.
1198 (asm_language_data): Likewise.
1199 (minimal_language_data): Likewise.
1200 * d-lang.c (d_language_data): Likewise.
1201 * f-lang.c (f_printstr): Rename to f_language::printstr.
1202 (f_language_data): Delete la_printstr initializer.
1203 (f_language::printstr): New member function, implementation from
1204 f_printstr.
1205 * go-lang.c (go_language_data): Delete la_printstr initializer.
1206 * language.c (language_defn::printstr): Define new member
1207 function.
1208 (unk_lang_printstr): Delete.
1209 (unknown_language_data): Delete la_printstr initializer.
1210 (unknown_language::printstr): New member function.
1211 (auto_language_data): Delete la_printstr initializer.
1212 (auto_language::printstr): New member function.
1213 * language.h (language_data): Delete la_printstr field.
1214 (language_defn::printstr): Declare new member function.
1215 (LA_PRINT_STRING): Update call to printstr.
1216 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1217 (m2_language_data): Delete la_printstr initializer.
1218 (m2_language::printstr): New member function, implementation from
1219 m2_printstr.
1220 * objc-lang.c (objc_language_data): Delete la_printstr
1221 initializer.
1222 * opencl-lang.c (opencl_language_data): Likewise.
1223 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1224 (pascal_language_data): Delete la_printstr initializer.
1225 (pascal_language::printstr): New member function, implementation
1226 from pascal_printstr.
1227 * p-lang.h (pascal_printstr): Delete declaration.
1228 * rust-lang.c (rust_printstr): Update header comment.
1229 (rust_language_data): Delete la_printstr initializer.
1230 (rust_language::printstr): New member function.
1231
52b50f2c
AB
12322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1235 (ada_language::printchar): New member function.
1236 * c-lang.c (c_language_data): Delete la_printchar initializer.
1237 (cplus_language_data): Likewise.
1238 (asm_language_data): Likewise.
1239 (minimal_language_data): Likewise.
1240 * d-lang.c (d_language_data): Likewise.
1241 * f-lang.c (f_printchar): Rename to f_language::printchar.
1242 (f_language_data): Delete la_printchar initializer.
1243 (f_language::printchar): New member function, implementation from
1244 f_printchar.
1245 * go-lang.c (go_language_data): Delete la_printchar initializer.
1246 * language.c (unk_lang_printchar): Delete.
1247 (language_defn::printchar): Define new member function.
1248 (unknown_language_data): Delete la_printchar initializer.
1249 (unknown_language::printchar): New member function.
1250 (auto_language_data): Delete la_printchar initializer.
1251 (auto_language::printchar): New member function.
1252 * language.h (language_data): Delete la_printchar field.
1253 (language_defn::printchar): Declare new member function.
1254 (LA_PRINT_CHAR): Update call to printchar.
1255 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1256 (m2_language::printchar): New member function.
1257 * objc-lang.c (objc_language_data): Delete la_printchar
1258 initializer.
1259 * opencl-lang.c (opencl_language_data): Likewise.
1260 * p-lang.c (pascal_language_data): Delete la_printchar
1261 initializer.
1262 (pascal_language::printchar): New member function.
1263 * rust-lang.c (rust_printchar): Rename to
1264 rust_language::printchar.
1265 (rust_language_data): Delete la_printchar initializer.
1266 (rust_language::printchar): New member function, implementation
1267 from rust_printchar.
1268
ec8cec5b
AB
12692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1270
1271 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1272 (ada_language_data): Delete la_emitchar initializer.
1273 (ada_language::emitchar): New member function, implementation from
1274 emit_char.
1275 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1276 (cplus_language_data): Likewise.
1277 (asm_language_data): Likewise.
1278 (minimal_language_data): Likewise.
1279 * d-lang.c (d_language_data): Likewise.
1280 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1281 (f_language_data): Delete la_emitchar initializer.
1282 (f_language::emitchar): New member function, implementation from
1283 f_emit_char.
1284 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1285 * language.c (unk_lang_emit_char): Delete.
1286 (language_defn::emitchar): New member function definition.
1287 (unknown_language_data): Delete la_emitchar initializer.
1288 (unknown_language::emitchar): New member function.
1289 (auto_language_data): Delete la_emitchar initializer.
1290 (auto_language::emitchar): New member function.
1291 * language.h (language_data): Delete la_emitchar field.
1292 (language_defn::emitchar): New member field declaration.
1293 (LA_EMIT_CHAR): Update call to emitchar.
1294 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1295 (m2_language_data): Delete la_emitchar initializer.
1296 (m2_language::emitchar): New member function, implementation from
1297 m2_emit_char.
1298 * objc-lang.c (objc_language_data): Delete la_emitchar
1299 initializer.
1300 * opencl-lang.c (opencl_language_data): Likewise.
1301 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1302 (pascal_language_data): Delete la_emitchar initializer.
1303 (pascal_language::emitchar): New member function, implementation
1304 from pascal_emit_char.
1305 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1306 (rust_language_data): Delete la_emitchar initializer.
1307 (rust_language::emitchar): New member function, implementation
1308 from rust_emitchar.
1309
1bf9c363
AB
13102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1313 (ada_language_data): Delete la_post_parser initializer.
1314 (ada_language::post_parser): New member function.
1315 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1316 (cplus_language_data): Likewise.
1317 (asm_language_data): Likewise.
1318 (minimal_language_data): Likewise.
1319 * d-lang.c (d_language_data): Likewise.
1320 * f-lang.c (f_language_data): Likewise.
1321 * go-lang.c (go_language_data): Likewise.
1322 * language.c (unknown_language_data): Likewise.
1323 (auto_language_data): Likewise.
1324 * language.h (language_data): Delete la_post_parser field.
1325 (language_defn::post_parser): New member function.
1326 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1327 * objc-lang.c (objc_language_data): Likewise.
1328 * opencl-lang.c (opencl_language_data): Likewise.
1329 * p-lang.c (pascal_language_data): Likewise.
1330 * parse.c (parse_exp_in_context): Update call to post_parser.
1331 (null_post_parser): Delete definition.
1332 * parser-defs.h (null_post_parser): Delete declaration.
1333 * rust-lang.c (rust_language_data): Delete la_post_parser
1334 initializer.
1335
87afa652
AB
13362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * ada-lang.c (parse): Rename to ada_language::parser.
1339 (ada_language_data): Delete la_parser initializer.
1340 (ada_language::parser): New member function, implementation from
1341 parse.
1342 * c-lang.c (c_language_data): Delete la_parser initializer.
1343 (cplus_language_data): Likewise.
1344 (asm_language_data): Likewise.
1345 (minimal_language_data): Likewise.
1346 * d-lang.c (d_language_data): Likewise.
1347 (d_language::parser): New member function.
1348 * f-lang.c (f_language_data): Delete la_parser initializer.
1349 (f_language::parser): New member function.
1350 * go-lang.c (go_language_data): Delete la_parser initializer.
1351 (go_language::parser): New member function.
1352 * language.c (unk_lang_parser): Delete.
1353 (language_defn::parser): Define new member function.
1354 (unknown_language_data): Delete la_parser initializer.
1355 (unknown_language::parser): New member function.
1356 (auto_language_data): Delete la_parser initializer.
1357 (auto_language::parser): New member function.
1358 * language.h (language_data): Delete la_parser field.
1359 (language_defn::parser): Declare new member function.
1360 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1361 (m2_language::parser): New member function.
1362 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1363 * opencl-lang.c (opencl_language_data): Likewise.
1364 * p-lang.c (pascal_language_data): Likewise.
1365 (pascal_language::parser): New member function.
1366 * parse.c (parse_exp_in_context): Update call to parser.
1367 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1368 (rust_language::parser): New member function.
1369
37825800
AB
13702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * top.c (print_gdb_configuration): Print --with-python-libdir
1373 configuration value.
1374
5b860c93
PW
13752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1376
1377 * NEWS: Mention change to the alias command.
1378
cf00cd6f
PW
13792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1380
1381 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1382 (alias_command_completer)
1383 (make_alias_options_def_group): New functions.
1384 (alias_opts, alias_option_defs): New struct and array.
1385 (alias_usage_error): Update usage.
1386 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1387 Use option framework.
1388 (_initialize_cli_cmds): Update alias command help.
1389 Update aliases command help.
1390 (show_user):
1391 Add NULL for new default_args lookup_cmd argument.
1392 (valid_command_p): Rename to validate_aliased_command.
1393 Add NULL for new default_args lookup_cmd argument. Verify that the
1394 aliased_command has no default args.
1395 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1396 (lookup_cmd_1, lookup_cmd): New argument default_args.
1397 (add_alias_cmd):
1398 Add NULL for new default_args lookup_cmd argument.
1399 (print_help_for_command): Show default args under the layout
1400 alias some_alias = some_aliased_cmd some_alias_default_arg.
1401 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1402 xfree default_args in destructor.
1403 * cli/cli-script.c (process_next_line, do_define_command):
1404 Add NULL for new default_args lookup_cmd argument.
1405 * command.h: Declare new default_args argument in lookup_cmd
1406 and lookup_cmd_1.
1407 * completer.c (complete_line_internal_1):
1408 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1409 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1410 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1411 Likewise.
1412 * infcmd.c (_initialize_infcmd): Likewise.
1413 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1414 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1415 * python/py-param.c (add_setshow_generic): Likewise.
1416 * remote.c (_initialize_remote): Likewise.
1417 * top.c (execute_command): Prepend default_args if command has some.
1418 (set_verbose):
1419 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1420 * tracepoint.c (validate_actionline, encode_actions_1):
1421 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1422
bd920864
TBA
14232020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1424
1425 * jit.c (jit_read_descriptor): Use bool as the return type.
1426 (jit_breakpoint_re_set_internal): Use bool as the return type.
1427 Invert the return value logic; return true if the jit breakpoint
1428 has been successfully initialized.
1429 (jit_inferior_init): Update the call to
1430 jit_breakpoint_re_set_internal.
1431
f8098322
PA
14322020-06-22 Pedro Alves <palves@redhat.com>
1433
1434 PR gdb/25939
1435 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1436 Use the current inferior instead. Don't return
1437 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1438 wait again.
1439 * sol-thread.c (sol_thread_target::wait): Don't reference
1440 inferior_ptid.
1441 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1442 (sol_update_thread_list_callback): Use the current inferior's pid
1443 instead of inferior_ptid.
1444
196535a6
RO
14452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1446
1447 * procfs.c: Cleanup many comments.
1448
1449 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1450 (AFTER_WATCHFLAG): Replace by value.
1451
1452 (MAIN_PROC_NAME_FORMAT): Inline ...
1453 (create_procinfo): ... here.
1454
1455 (procfs_debug_inferior): Remove SYS_exec handling.
1456 (syscall_is_exec): Likewise.
1457 (procfs_set_exec_trap): Likewise.
1458
1459 (syscall_is_lwp_exit): Inline in callers.
1460 (syscall_is_exit): Likewise.
1461 (syscall_is_exec): Likewise.
1462 (syscall_is_lwp_create): Likewise.
1463
1464 (invalidate_cache): Remove #if 0 code.
1465
1466 (make_signal_thread_runnable): Remove.
1467 (procfs_target::resume): Remove #if 0 code.
1468
cf6f3e86
RO
14692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1470
1471 PR gdb/25939
1472 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1473 call ...
1474 (procfs_target::create_inferior): ... here.
1475
48e9cc84
PW
14762020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1477
1478 * exec.c (validate_exec_file): Ensure the build-id is up to
1479 date by calling reopen_exec_file (that checks file timestamp
1480 to decide to re-read the file).
1481
3922b302
PA
14822020-06-18 Pedro Alves <palves@redhat.com>
1483
1484 PR gdb/25412
1485 * gdbthread.h (delete_thread, delete_thread_silent)
1486 (find_thread_ptid): Update comments.
1487 * thread.c (current_thread_): New global.
1488 (is_current_thread): Move higher, and reimplement.
1489 (inferior_thread): Reimplement.
1490 (set_thread_exited): Use bool. Add assertions.
1491 (add_thread_silent): Simplify thread-reuse handling by always
1492 calling delete_thread.
1493 (delete_thread): Remove intro comment.
1494 (find_thread_ptid): Skip exited threads.
1495 (switch_to_thread_no_regs): Write to current_thread_.
1496 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1497 INFERIOR_PTID. Clear current_thread_.
1498
6dbdab44
PA
14992020-06-18 Pedro Alves <palves@redhat.com>
1500
1501 * aix-thread.c (pd_update): Use switch_to_thread.
1502
2da4b788
PA
15032020-06-18 Pedro Alves <palves@redhat.com>
1504
1505 * ravenscar-thread.c (ravenscar_thread_target): Update.
1506 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1507 (ravenscar_thread_target::add_active_thread): ... this. Don't
1508 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1509 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1510
50838d1b
PA
15112020-06-18 Pedro Alves <palves@redhat.com>
1512
1513 * nat/windows-nat.c (current_windows_thread): Remove.
1514 * nat/windows-nat.h (current_windows_thread): Remove.
1515 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1516 Adjust.
1517 (display_selectors): Adjust to fetch the current
1518 windows_thread_info based on inferior_ptid.
1519 (fake_create_process): No longer write to current_windows_thread.
1520 (windows_nat_target::get_windows_debug_event):
1521 Don't set inferior_ptid or current_windows_thread.
1522 (windows_nat_target::wait): Adjust to not rely on
1523 current_windows_thread.
1524 (do_initial_windows_stuff): Now a method of windows_nat_target.
1525 Switch to the last_ptid thread.
1526 (windows_nat_target::attach): Adjust.
1527 (windows_nat_target::detach): Use switch_to_no_thread instead of
1528 writing to inferior_ptid directly.
1529 (windows_nat_target::create_inferior): Adjust.
1530
31ce04e9
PA
15312020-06-18 Pedro Alves <palves@redhat.com>
1532
1533 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1534
1ee1a363
PA
15352020-06-18 Pedro Alves <palves@redhat.com>
1536
1537 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1538 after creating it, instead of writing to inferior_ptid. Don't
1539 write to inferior_ptid.
1540
6d350754
PA
15412020-06-18 Pedro Alves <palves@redhat.com>
1542
1543 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1544
5d971d48
PA
15452020-06-18 Pedro Alves <palves@redhat.com>
1546
1547 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1548 it, instead of writing to inferior_ptid.
1549
86e57d1b
PA
15502020-06-18 Pedro Alves <palves@redhat.com>
1551
1552 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1553 to inferior_ptid.
1554
f2e1c129
PA
15552020-06-18 Pedro Alves <palves@redhat.com>
1556
1557 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1558 instead of writing to inferior_ptid directly.
1559
60db1b85
PA
15602020-06-18 Pedro Alves <palves@redhat.com>
1561
1562 * corelow.c (core_target::close): Use switch_to_no_thread instead
1563 of writing to inferior_ptid directly.
1564 (add_to_thread_list, core_target_open): Use switch_to_thread
1565 instead of writing to inferior_ptid directly.
1566
fe7d6a8d
PA
15672020-06-18 Pedro Alves <palves@redhat.com>
1568
1569 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1570 inferior_ptid.
1571 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1572 inferior_ptid.
1573 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1574 inferior_ptid directly.
1575 (darwin_nat_target::init_thread_list): Switch to thread, instead
1576 of writing to inferior_ptid.
1577 (darwin_nat_target::attach): Don't write to inferior_ptid.
1578 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1579
975f8708
PA
15802020-06-18 Pedro Alves <palves@redhat.com>
1581
1582 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1583 thread.
1584 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1585 Instead use switch_to_thread.
1586 (gnu_nat_target::detach): Use switch_to_no_thread
1587 instead of writing to inferior_ptid directly. Used passed-in
1588 inferior instead of looking up the inferior by pid.
1589
1a204730
PA
15902020-06-18 Pedro Alves <palves@redhat.com>
1591
1592 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1593 inferior_ptid.
1594
ebe84f23
PA
15952020-06-18 Pedro Alves <palves@redhat.com>
1596
1597 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1598 inferior_ptid.
1599 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1600 thread.
1601 (nto_procfs_target::detach): Avoid referencing
1602 inferior_ptid. Use switch_to_no_thread instead of writing to
1603 inferior_ptid directly.
1604 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1605 instead of writing to inferior_ptid directly.
1606 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1607 to thread.
1608
191f02e5
PA
16092020-06-18 Pedro Alves <palves@redhat.com>
1610
1611 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1612 after creating it, instead of writing to inferior_ptid.
1613 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1614 to inferior_ptid directly.
1615 (gdbsim_target::wait): Don't write to inferior_ptid.
1616
0ac55310
PA
16172020-06-18 Pedro Alves <palves@redhat.com>
1618
1619 * remote.c (remote_target::remote_notice_new_inferior): Use
1620 switch_to_thread instead of writing to inferior_ptid directly.
1621 (remote_target::add_current_inferior_and_thread): Use
1622 switch_to_no_thread instead of writing to inferior_ptid directly.
1623 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1624 and switch_to_thread instead of using set_current_inferior or
1625 writing to inferior_ptid directly.
1626
5233f39b
PA
16272020-06-18 Pedro Alves <palves@redhat.com>
1628
1629 * tracectf.c (ctf_target_open): Switch to added thread instead of
1630 writing to inferior_ptid directly.
1631 (ctf_target::close): Use switch_to_no_thread instead of writing to
1632 inferior_ptid directly.
1633
087e161b
PA
16342020-06-18 Pedro Alves <palves@redhat.com>
1635
1636 * tracefile-tfile.c (tfile_target_open): Don't write to
1637 inferior_ptid directly, instead switch to added thread.
1638 (tfile_target::close): Use switch_to_no_thread instead of writing
1639 to inferior_ptid directly.
1640
7fb43e53
PA
16412020-06-18 Pedro Alves <palves@redhat.com>
1642
1643 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1644 (procfs_target::detach): Use switch_to_no_thread
1645 instead of writing to inferior_ptid directly.
1646 (do_attach): Change return type to void. Switch to the added
1647 thread.
1648 (procfs_target::create_inferior): Switch to the added thread.
1649 (procfs_do_thread_registers): Don't write to inferior_ptid.
1650
18493a00
PA
16512020-06-18 Pedro Alves <palves@redhat.com>
1652
1653 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1654 of writing to inferior_ptid.
1655 (scoped_restore_exited_inferior): Delete.
1656 (handle_vfork_child_exec_or_exit): Simplify using
1657 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1658 instead of writing to inferior_ptid.
1659 (THREAD_STOPPED_BY): Delete.
1660 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1661 (thread_stopped_by_hw_breakpoint): Delete.
1662 (save_waitstatus): Use
1663 scoped_restore_current_thread+switch_to_thread, and call
1664 target_stopped_by_watchpoint instead of
1665 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1666 instead of thread_stopped_by_sw_breakpoint, and
1667 target_stopped_by_hw_breakpoint instead of
1668 thread_stopped_by_hw_breakpoint.
1669 (handle_inferior_event)
1670 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1671 inferior_ptid directly, nor
1672 set_current_inferior/set_current_program_space. Use
1673 switch_to_thread / switch_to_inferior_no_thread instead.
1674
a0776b13
PA
16752020-06-18 Pedro Alves <palves@redhat.com>
1676
1677 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1678 instead of writing to inferior_ptid.
1679
6155c136
PA
16802020-06-18 Pedro Alves <palves@redhat.com>
1681
1682 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1683 added thread.
1684 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1685 to the added thread.
1686 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1687 instead of writing to inferior_ptid.
1688
c5316fc6
PA
16892020-06-18 Pedro Alves <palves@redhat.com>
1690
1691 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1692 (register_to_value_test): Mock a program_space too. Heap-allocate
1693 the address space. Don't write to inferior_ptid. Use
1694 switch_to_thread instead.
1695
8df01799
PA
16962020-06-18 Pedro Alves <palves@redhat.com>
1697
1698 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1699 Delete.
1700 (find_signalled_thread()): New, factored out from
1701 linux_make_corefile_notes and adjusted to handle exited threads.
1702 (linux_make_corefile_notes): Adjust to use the new
1703 find_signalled_thread.
1704
41792d68
PA
17052020-06-18 Pedro Alves <palves@redhat.com>
1706
1707 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1708 of saving/restoring inferior_ptid.
1709
612f258a
TT
17102020-06-17 Tom Tromey <tom@tromey.com>
1711
1712 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1713 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1714 declare.
1715 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1716
efb763a5
SM
17172020-06-15 Simon Marchi <simon.marchi@efficios.com>
1718
1719 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1720 of partial symtabs.
1721
2951f6c0
SM
17222020-06-17 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * regformats/reg-arm.dat: Remove.
1725 * regformats/reg-bfin.dat: Remove.
1726 * regformats/reg-cris.dat: Remove.
1727 * regformats/reg-crisv32.dat: Remove.
1728 * regformats/reg-m32r.dat: Remove.
1729 * regformats/reg-tilegx.dat: Remove.
1730 * regformats/reg-tilegx32.dat: Remove.
1731
7d458ea5
SM
17322020-06-17 Simon Marchi <simon.marchi@efficios.com>
1733
1734 * features/Makefile (WHICH): Remove arm files.
1735 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1736 * regformats/arm/arm-with-neon.dat: Remove.
1737 * regformats/arm/arm-with-vfpv2.dat: Remove.
1738 * regformats/arm/arm-with-vfpv3.dat: Remove.
1739
3af96c0d
SM
17402020-06-17 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * features/Makefile (XMLTOC): Remove rx.xml.
1743
b25e22fd
PA
17442020-06-17 Pedro Alves <palves@redhat.com>
1745
1746 * gdbthread.h (thread_control_state) <trap_expected> Update
1747 comments.
1748
a78a19b1
AB
17492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1752 ada_language::lookup_symbol_nonlocal.
1753 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1754 (ada_language::lookup_symbol_nonlocal): New member function,
1755 implementation from ada_lookup_symbol_nonlocal.
1756 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1757 initializer.
1758 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1759 initializer.
1760 (cplus_language::lookup_symbol_nonlocal): New member function.
1761 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1762 (minimal_language_data) Likewise.
1763 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1764 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1765 initializer.
1766 (d_language::lookup_symbol_nonlocal): New member function.
1767 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1768 initializer.
1769 (f_language::lookup_symbol_nonlocal): New member function.
1770 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1771 initializer.
1772 * language.c (unknown_language_data): Likewise.
1773 (auto_language_data): Likewise.
1774 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1775 field.
1776 (language_defn::lookup_symbol_nonlocal): New member function.
1777 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1778 initializer.
1779 * objc-lang.c (objc_language_data): Likewise.
1780 * opencl-lang.c (opencl_language_data): Likewise.
1781 * p-lang.c (pascal_language_data): Likewise.
1782 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1783 rust_language::lookup_symbol_nonlocal.
1784 (rust_language_data): Delete la_lookup_symbol_nonlocal
1785 initializer.
1786 (rust_language::lookup_symbol_nonlocal): New member function,
1787 implementation from rust_lookup_symbol_nonlocal.
1788 * symtab.c (lookup_symbol_aux): Update call to
1789 lookup_symbol_nonlocal.
1790 (basic_lookup_symbol_nonlocal): Rename to...
1791 (language_defn::lookup_symbol_nonlocal): ...this, and update
1792 header comment. Remove language_defn parameter, and replace with
1793 uses of `this'.
1794 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1795
ebe2334e
AB
17962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1799 initializer.
1800 (ada_language::value_print_inner): New member function.
1801 * c-lang.c (c_language_data): Delete la_value_print_inner
1802 initializer.
1803 (cplus_language_data): Likewise.
1804 (asm_language_data): Likewise.
1805 (minimal_language_data): Likewise.
1806 * d-lang.c (d_language_data): Likewise.
1807 (d_language::value_print_inner): New member function.
1808 * f-lang.c (f_language_data): Delete la_value_print_inner
1809 initializer.
1810 (f_language::value_print_inner): New member function.
1811 * f-lang.h (f_value_print_innner): Rename to...
1812 (f_value_print_inner): ...this (note spelling of 'inner').
1813 * f-valprint.c (f_value_print_innner): Rename to...
1814 (f_value_print_inner): ...this (note spelling of 'inner').
1815 * go-lang.c (go_language_data): Delete la_value_print_inner
1816 initializer.
1817 (go_language::value_print_inner): New member function.
1818 * language.c (language_defn::value_print_inner): Define new member
1819 function.
1820 (unk_lang_value_print_inner): Delete.
1821 (unknown_language_data): Delete la_value_print_inner initializer.
1822 (unknown_language::value_print_inner): New member function.
1823 (auto_language_data): Delete la_value_print_inner initializer.
1824 (auto_language::value_print_inner): New member function.
1825 * language.h (language_data): Delete la_value_print_inner field.
1826 (language_defn::value_print_inner): Delcare new member function.
1827 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1828 initializer.
1829 (m2_language::value_print_inner): New member function.
1830 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1831 initializer.
1832 * opencl-lang.c (opencl_language_data): Likewise.
1833 * p-lang.c (pascal_language_data): Likewise.
1834 (pascal_language::value_print_inner): New member function.
1835 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1836 initializer.
1837 (rust_language::value_print_inner): New member function.
1838 * valprint.c (do_val_print): Update call to value_print_inner.
1839
a1d1fa3e
AB
18402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * ada-lang.c (ada_language_data): Delete la_value_print
1843 initializer.
1844 (ada_language::value_print): New member function.
1845 * c-lang.c (c_language_data): Delete la_value_print initializer.
1846 (cplus_language_data): Likewise.
1847 (asm_language_data): Likewise.
1848 (minimal_language_data): Likewise.
1849 * d-lang.c (d_language_data): Likewise.
1850 * f-lang.c (f_language_data): Likewise.
1851 * go-lang.c (go_language_data): Likewise.
1852 * language.c (unk_lang_value_print): Delete.
1853 (language_defn::value_print): Define new member function.
1854 (unknown_language_data): Delete la_value_print initializer.
1855 (unknown_language::value_print): New member function.
1856 (auto_language_data): Delete la_value_print initializer.
1857 (auto_language::value_print): New member function.
1858 * language.h (language_data): Delete la_value_print field.
1859 (language_defn::value_print): Declare new member function.
1860 (LA_VALUE_PRINT): Update call to value_print.
1861 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1862 * objc-lang.c (objc_language_data): Likewise.
1863 * opencl-lang.c (opencl_language_data): Likewise.
1864 * p-lang.c (pascal_language_data): Likewise.
1865 (pascal_language::value_print): New member function.
1866 * rust-lang.c (rust_language_data): Delete la_value_print
1867 initializer.
1868
f16a9f57
AB
18692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (ada_watch_location_expression): Rename to
1872 ada_language::watch_location_expression.
1873 (ada_language_data): Delete la_watch_location_expression
1874 initializer.
1875 (ada_language::watch_location_expression): New member function,
1876 implementation from ada_watch_location_expression.
1877 * breakpoint.c (watch_command_1): Update call to
1878 watch_location_expression.
1879 * c-lang.c (c_watch_location_expression): Rename to
1880 language_defn::watch_location_expression.
1881 (c_language_data): Delete la_watch_location_expression
1882 initializer.
1883 (cplus_language_data): Likewise.
1884 (asm_language_data): Likewise.
1885 (minimal_language_data): Likewise.
1886 * c-lang.h (c_watch_location_expression): Delete declaration.
1887 * d-lang.c (d_language_data): Delete la_watch_location_expression
1888 initializer.
1889 * f-lang.c (f_language_data): Likewise.
1890 * go-lang.c (go_language_data): Likewise.
1891 * language.c (language_defn::watch_location_expression): Member
1892 function implementation from c_watch_location_expression.
1893 (unknown_language_data): Delete la_watch_location_expression
1894 initializer.
1895 (auto_language_data): Likewise.
1896 * language.h (language_data): Delete la_watch_location_expression
1897 field.
1898 (language_defn::watch_location_expression): Declare new member
1899 function.
1900 * m2-lang.c (m2_language_data): Delete
1901 la_watch_location_expression initializer.
1902 * objc-lang.c (objc_language_data): Likewise.
1903 * opencl-lang.c (opencl_language_data): Likewise.
1904 * p-lang.c (pascal_language_data): Likewise.
1905 * rust-lang.c (rust_watch_location_expression): Rename to
1906 rust_language::watch_location_expression.
1907 (rust_language_data): Delete la_watch_location_expression
1908 initializer.
1909 (rust_language::watch_location_expression): New member function,
1910 implementation from rust_watch_location_expression.
1911
7e56227d
AB
19122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1915 ada_language::collect_symbol_completion_matches.
1916 (ada_language_data): Delete la_collect_symbol_completion_matches
1917 initializer.
1918 (ada_language::collect_symbol_completion_matches): New member
1919 function, implementation from
1920 ada_collect_symbol_completion_matches.
1921 * c-lang.c (c_language_data): Delete
1922 la_collect_symbol_completion_matches initializer.
1923 (cplus_language_data): Likewise.
1924 (asm_language_data): Likewise.
1925 (minimal_language_data): Likewise.
1926 * d-lang.c (d_language_data): Likewise.
1927 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1928 f_language::collect_symbol_completion_matches.
1929 (f_language_data): Delete la_collect_symbol_completion_matches
1930 initializer.
1931 (f_language::collect_symbol_completion_matches) New member
1932 function, implementation from f_collect_symbol_completion_matches.
1933 * go-lang.c (go_language_data): Delete
1934 la_collect_symbol_completion_matches initializer.
1935 * language.c (unknown_language_data): Likewise.
1936 (auto_language_data): Likewise.
1937 * language.h (language_data): Delete
1938 la_collect_symbol_completion_matches field.
1939 (language_defn::collect_symbol_completion_matches): New member
1940 function.
1941 * m2-lang.c (m2_language_data): Delete
1942 la_collect_symbol_completion_matches initializer.
1943 * objc-lang.c (objc_language_data): Likewise.
1944 * opencl-lang.c (opencl_language_data): Likewise.
1945 * p-lang.c (pascal_language_data): Likewise.
1946 * rust-lang.c (rust_language_data): Likewise.
1947 * symtab.c (default_collect_symbol_completion_matches): Delete.
1948 (collect_symbol_completion_matches): Update call to
1949 collect_symbol_completion_matches.
1950 (collect_symbol_completion_matches_type): Likewise.
1951 * symtab.h (default_collect_symbol_completion_matches): Delete
1952 declaration.
1953
53fc67f8
AB
19542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1955
1956 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1957 (ada_language_data): Delete la_word_break_characters initializer.
1958 (ada_language::word_break_characters): New member function.
1959 * c-lang.c (c_language_data): Delete la_word_break_characters
1960 initializer.
1961 (cplus_language_data): Likewise.
1962 (asm_language_data): Likewise.
1963 (minimal_language_data): Likewise.
1964 * completer.c: Update global comment.
1965 (advance_to_expression_complete_word_point): Update call to
1966 word_break_characters.
1967 (complete_files_symbols): Likewise.
1968 (complete_line_internal_1): Likewise.
1969 (default_completer_handle_brkchars): Likewise.
1970 (skip_quoted_chars): Likewise.
1971 * d-lang.c (d_language_data): Delete la_word_break_characters
1972 initializer.
1973 * f-lang.c (f_word_break_characters): Delete.
1974 (f_language_data): Delete la_word_break_characters initializer.
1975 (f_language::word_break_characters): New member function.
1976 * go-lang.c (go_language_data): Delete la_word_break_characters
1977 initializer.
1978 * language.c (unknown_language_data): Likewise.
1979 (auto_language_data): Likewise.
1980 * language.h (default_word_break_characters): Move declaration to
1981 earlier in the file.
1982 (language_data): Delete la_word_break_characters field.
1983 (language_defn::word_break_characters): New member function.
1984 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1985 initializer.
1986 * objc-lang.c (objc_language_data): Likewise.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 * rust-lang.c (rust_language_data): Likewise.
1990
c9debfb9
AB
19912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1994 (ada_language_data): Delete la_get_symbol_name_matcher
1995 initializer.
1996 (language_defn::get_symbol_name_matcher_inner): New member
1997 function.
1998 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1999 initializer.
2000 (cplus_language_data): Likewise.
2001 (cplus_language::get_symbol_name_matcher_inner): New member
2002 function.
2003 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2004 (minimal_language_data): Likewise.
2005 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2006 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2007 initializer.
2008 * dictionary.c (iter_match_first_hashed): Update call to
2009 get_symbol_name_matcher.
2010 (iter_match_next_hashed): Likewise.
2011 (iter_match_next_linear): Likewise.
2012 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2013 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2014 initializer.
2015 (f_language::get_symbol_name_matcher_inner): New member function.
2016 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2017 initializer.
2018 * language.c (default_symbol_name_matcher): Update header comment,
2019 make static.
2020 (language_defn::get_symbol_name_matcher): New definition.
2021 (language_defn::get_symbol_name_matcher_inner): Likewise.
2022 (get_symbol_name_matcher): Delete.
2023 (unknown_language_data): Delete la_get_symbol_name_matcher
2024 initializer.
2025 (auto_language_data): Likewise.
2026 * language.h (language_data): Delete la_get_symbol_name_matcher
2027 field.
2028 (language_defn::get_symbol_name_matcher): New member function.
2029 (language_defn::get_symbol_name_matcher_inner): Likewise.
2030 (default_symbol_name_matcher): Delete declaration.
2031 * linespec.c (find_methods): Update call to
2032 get_symbol_name_matcher.
2033 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2034 initializer.
2035 * minsyms.c (lookup_minimal_symbol): Update call to
2036 get_symbol_name_matcher.
2037 (iterate_over_minimal_symbols): Likewise.
2038 * objc-lang.c (objc_language_data): Delete
2039 la_get_symbol_name_matcher initializer.
2040 * opencl-lang.c (opencl_language_data): Likewise.
2041 * p-lang.c (pascal_language_data): Likewise.
2042 * psymtab.c (psymbol_name_matches): Update call to
2043 get_symbol_name_matcher.
2044 * rust-lang.c (rust_language_data): Delete
2045 la_get_symbol_name_matcher initializer.
2046 * symtab.c (symbol_matches_search_name): Update call to
2047 get_symbol_name_matcher.
2048 (compare_symbol_name): Likewise.
2049
9a49ad8c
AB
20502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2051
2052 * ada-lang.c (ada_language_data): Delete la_compute_program
2053 initializer.
2054 * c-lang.c (c_language_data): Likewise.
2055 (c_language::compute_program): New member function.
2056 (cplus_language_data): Delete la_compute_program initializer.
2057 (cplus_language::compute_program): New member function.
2058 (asm_language_data): Delete la_compute_program initializer.
2059 (minimal_language_data): Likewise.
2060 * c-lang.h (c_compute_program): Update comment.
2061 (cplus_compute_program): Likewise.
2062 * compile/compile-c-support.c (c_compute_program): Likewise.
2063 (cplus_compute_program): Likewise.
2064 * compile/compile.c (compile_to_object): Update call to
2065 la_compute_program.
2066 * d-lang.c (d_language_data): Delete la_compute_program
2067 initializer.
2068 * f-lang.c (f_language_data): Likewise.
2069 * go-lang.c (go_language_data): Likewise.
2070 * language.c (unknown_language_data): Likewise.
2071 (auto_language_data): Likewise.
2072 * language.h (language_data): Delete la_compute_program field.
2073 (language_defn::compute_program): New member function.
2074 * m2-lang.c (m2_language_data): Delete la_compute_program
2075 initializer.
2076 * objc-lang.c (objc_language_data): Likewise.
2077 * opencl-lang.c (opencl_language_data): Likewise.
2078 * p-lang.c (pascal_language_data): Likewise.
2079 * rust-lang.c (rust_language_data): Likewise.
2080
eff93b4d
AB
20812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * ada-lang.c (ada_language_data) Delete
2084 la_class_name_from_physname initializer.
2085 * c-lang.c (c_language_data): Likewise.
2086 (cplus_language_data): Likewise.
2087 (cplus_language::class_name_from_physname): New member function.
2088 (asm_language_data): Delete la_class_name_from_physname
2089 initializer.
2090 (minimal_language_data): Likewise.
2091 * d-lang.c (d_language_data): Likewise.
2092 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2093 method on language_defn class.
2094 (guess_full_die_structure_name): Likewise.
2095 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2096 initializer.
2097 * go-lang.c (go_language_data): Likewise.
2098 * language.c (language_class_name_from_physname): Delete.
2099 (unk_lang_class_name): Delete.
2100 (unknown_language_data): Delete la_class_name_from_physname
2101 initializer.
2102 (auto_language_data): Likewise.
2103 * language.h (language_data): Delete la_class_name_from_physname
2104 field.
2105 (language_defn::class_name_from_physname): New function.
2106 (language_class_name_from_physname): Delete declaration.
2107 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2108 initializer.
2109 * objc-lang.c (objc_language_data): Likewise.
2110 * opencl-lang.c (opencl_language_data): Likewise.
2111 * p-lang.c (pascal_language_data): Likewise.
2112 * rust-lang.c (rust_language_data): Likewise.
2113
de543742
TT
21142020-06-16 Tom Tromey <tom@tromey.com>
2115
2116 * tui/tui-data.h (STATUS_NAME): New macro.
2117 * tui/tui-layout.c (tui_remove_some_windows)
2118 (initialize_known_windows, tui_register_window)
2119 (tui_layout_split::remove_windows, initialize_layouts)
2120 (tui_new_layout_command): Don't use hard-coded window names.
2121
a350efd4
TT
21222020-06-16 Tom Tromey <tom@tromey.com>
2123
2124 PR tui/25348:
2125 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2126 tui_initialize_readline. Only run once. Call rl_initialize.
2127 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2128 tui_initialize_readline.
2129 * tui/tui-io.c (tui_setup_io): Call
2130 tui_ensure_readline_initialized.
2131 * tui/tui-interp.c (tui_interp::init): Update.
2132
39ec0490
TT
21332020-06-16 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2136 Also preserve the status window.
2137
d2d1ea20
TT
21382020-06-16 Tom Tromey <tom@tromey.com>
2139
2140 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2141 where m_window==nullptr.
2142
66920317
TT
21432020-06-15 Tom Tromey <tromey@adacore.com>
2144
2145 * windows-nat.c (windows_nat::handle_output_debug_string):
2146 Update.
2147 (windows_nat::handle_ms_vc_exception): Update.
2148 * target.h (target_read_string): Change API.
2149 * target.c (target_read_string): Change API.
2150 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2151 Update.
2152 * solib-frv.c (frv_current_sos): Update.
2153 * solib-dsbt.c (dsbt_current_sos): Update.
2154 * solib-darwin.c (darwin_current_sos): Update.
2155 * linux-thread-db.c (inferior_has_bug): Update.
2156 * expprint.c (print_subexp_standard): Update.
2157 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2158 (ada_exception_message_1): Update.
2159
a5d871dd
TT
21602020-06-15 Tom Tromey <tromey@adacore.com>
2161
2162 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2163
670e35fa
TT
21642020-06-15 Tom Tromey <tromey@adacore.com>
2165
2166 * valprint.c (read_string): Update comment.
2167 * target.c (MIN): Remove.
2168 (target_read_string): Rewrite.
2169
f5272a3b
TT
21702020-06-15 Tom Tromey <tromey@adacore.com>
2171
2172 * corefile.c (read_memory_string): Remove.
2173 * ada-valprint.c (ada_value_print_ptr): Update.
2174 * ada-lang.h (ada_tag_name): Change return type.
2175 * ada-lang.c (type_from_tag): Update.
2176 (ada_tag_name_from_tsd): Change return type. Use
2177 target_read_string.
2178 (ada_tag_name): Likewise.
2179 * gdbcore.h (read_memory_string): Don't declare.
2180
2c074f49
HD
21812020-06-14 Hannes Domani <ssbssa@yahoo.de>
2182
2183 * symtab.c (rbreak_command): Ignore Windows drive colon.
2184
6a17d503
SM
21852020-06-12 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * NEWS: Mention removed GDBserver host support.
2188
453c733f
NC
21892020-06-12 Nelson Chu <nelson.chu@sifive.com>
2190
2191 * features/riscv/rebuild-csr-xml.sh: Updated.
2192
2b4e6a3f
TT
21932020-06-11 Tom Tromey <tom@tromey.com>
2194
2195 PR gdb/18318:
2196 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2197
4412332f
JG
21982020-06-09 Jonny Grant <jg@jguk.org>
21992020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * main.c (captured_main_1): Don't print new line after help.
2202 (print_gdb_help): add mailing list and IRC channel information
2203 to --help. Add new lines between items in the footer. Remove
2204 quotes around bug url.
2205
2f33032a
KS
22062020-06-11 Keith Seitz <keiths@redhat.com>
2207
2208 PR gdb/21356
2209 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2210 Resolve typedefs for type length calculations.
2211
7ab96794
TV
22122020-06-10 Tom de Vries <tdevries@suse.de>
2213
2214 PR ada/24713
2215 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2216 (write_psymbols): Enable .gdb_index for ada.
2217 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2218 ada.
2219
e5f3ece2
TV
22202020-06-10 Tom de Vries <tdevries@suse.de>
2221
2222 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2223 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2224 namei" instead of "const char *name" argument.
2225 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2226 dw2_symtab_iter_init.
2227
940da03e
SM
22282020-06-08 Simon Marchi <simon.marchi@efficios.com>
2229
2230 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2231 to use type::field and field::type instead.
2232
b6cdac4b
SM
22332020-06-08 Simon Marchi <simon.marchi@efficios.com>
2234
2235 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2236 to use field::type instead.
2237
5d14b6e5
SM
22382020-06-08 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * gdbtypes.h (struct field) <type, set_type>: New methods.
2241 Rename `type` field to...
2242 <m_type>: ... this. Change references throughout to use type or
2243 set_type methods.
2244 (FIELD_TYPE): Use field::type. Change call sites that modify
2245 the field's type to use field::set_type instead.
2246
3d967001
SM
22472020-06-08 Simon Marchi <simon.marchi@efficios.com>
2248
2249 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2250 to use type::index_type instead.
2251
262abc0d
SM
22522020-06-08 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2255 methods.
2256 (TYPE_INDEX_TYPE): Use type::index_type.
2257 * gdbtypes.c (create_array_type_with_stride): Likewise.
2258
82836c92
TT
22592020-06-07 Tom Tromey <tom@tromey.com>
2260
2261 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2262 parameter.
2263 (generic_value_print): Update.
2264
940dace9
AB
22652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 Revert commit 982a38f60b0.
2268 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2269
982a38f6
AB
22702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2273 avoid use after free.
2274
82f06518
TV
22752020-06-05 Tom de Vries <tdevries@suse.de>
2276
2277 * NEWS: Fix typos.
2278
f8c41851
SM
22792020-06-04 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2282 the per_bfd object.
2283 (dwarf2_read_debug_names): Likewise.
2284 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2285 object when re-using a per_bfd object with an index.
2286
f9b5d5ea
TV
22872020-06-03 Tom de Vries <tdevries@suse.de>
2288
2289 PR symtab/26046
2290 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2291 children for C++.
2292 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2293 DW_TAG_subprogram.
2294
f6eee2d0
AB
22952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_language_data): Delete skip_trampoline
2298 initializer.
2299 * c-lang.c (c_language_data): Likewise.
2300 (cplus_language_data): Likewise.
2301 (cplus_language::skip_trampoline): New member function.
2302 (asm_language_data): Delete skip_trampoline initializer.
2303 (minimal_language_data): Likewise.
2304 * d-lang.c (d_language_data): Likewise.
2305 * f-lang.c (f_language_data): Likewise.
2306 * go-lang.c (go_language_data): Likewise.
2307 * language.c (unk_lang_trampoline): Delete function.
2308 (skip_language_trampoline): Update.
2309 (unknown_language_data): Delete skip_trampoline initializer.
2310 (auto_language_data): Likewise.
2311 * language.h (language_data): Delete skip_trampoline field.
2312 (language_defn::skip_trampoline): New function.
2313 * m2-lang.c (m2_language_data): Delete skip_trampoline
2314 initializer.
2315 * objc-lang.c (objc_skip_trampoline): Delete function, move
2316 implementation to objc_language::skip_trampoline.
2317 (objc_language_data): Delete skip_trampoline initializer.
2318 (objc_language::skip_trampoline): New member function with
2319 implementation from objc_skip_trampoline.
2320 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2321 initializer.
2322 * p-lang.c (pascal_language_data): Likewise.
2323 * rust-lang.c (rust_language_data): Likewise.
2324
0a50df5d
AB
23252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2328 (ada_language::demangle): New member function.
2329 * c-lang.c (c_language_data): Delete la_demangle initializer.
2330 (cplus_language_data): Delete la_demangle initializer.
2331 (cplus_language::demangle): New member function.
2332 (asm_language_data): Delete la_demangle initializer.
2333 (minimal_language_data): Delete la_demangle initializer.
2334 * d-lang.c (d_language_data): Delete la_demangle initializer.
2335 (d_language::demangle): New member function.
2336 * f-lang.c (f_language_data): Delete la_demangle initializer.
2337 (f_language::demangle): New member function.
2338 * go-lang.c (go_language_data): Delete la_demangle initializer.
2339 (go_language::demangle): New member function.
2340 * language.c (language_demangle): Update.
2341 (unk_lang_demangle): Delete.
2342 (unknown_language_data): Delete la_demangle initializer.
2343 (unknown_language::demangle): New member function.
2344 (auto_language_data): Delete la_demangle initializer.
2345 (auto_language::demangle): New member function.
2346 * language.h (language_data): Delete la_demangle field.
2347 (language_defn::demangle): New function.
2348 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2349 * objc-lang.c (objc_language_data): Delete la_demangle
2350 initializer.
2351 (objc_language::demangle): New member function.
2352 * opencl-lang.c (opencl_language_data): Delete la_demangle
2353 initializer.
2354 * p-lang.c (pascal_language_data): Likewise.
2355 * rust-lang.c (rust_language_data): Likewise.
2356 (rust_language::demangle): New member function.
2357
fbfb0a46
AB
23582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * ada-lang.c (ada_language_data): Delete la_print_type
2361 initializer.
2362 (ada_language::print_type): New member function.
2363 * c-lang.c (c_language_data): Delete la_print_type initializer.
2364 (c_language::print_type): New member function.
2365 (cplus_language_data): Delete la_print_type initializer.
2366 (cplus_language::print_type): New member function.
2367 (asm_language_data): Delete la_print_type initializer.
2368 (asm_language::print_type): New member function.
2369 (minimal_language_data): Delete la_print_type initializer.
2370 (minimal_language::print_type): New member function.
2371 * d-lang.c (d_language_data): Delete la_print_type initializer.
2372 (d_language::print_type): New member function.
2373 * f-lang.c (f_language_data): Delete la_print_type initializer.
2374 (f_language::print_type): New member function.
2375 * go-lang.c (go_language_data): Delete la_print_type initializer.
2376 (go_language::print_type): New member function.
2377 * language.c (unk_lang_print_type): Delete.
2378 (unknown_language_data): Delete la_print_type initializer.
2379 (unknown_language::print_type): New member function.
2380 (auto_language_data): Delete la_print_type initializer.
2381 (auto_language::print_type): New member function.
2382 * language.h (language_data): Delete la_print_type field.
2383 (language_defn::print_type): New function.
2384 (LA_PRINT_TYPE): Update.
2385 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2386 (m2_language::print_type): New member function.
2387 * objc-lang.c (objc_language_data): Delete la_print_type
2388 initializer.
2389 (objc_language::print_type): New member function.
2390 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2391 to opencl_language::print_type.
2392 (opencl_language_data): Delete la_print_type initializer.
2393 (opencl_language::print_type): New member function, implementation
2394 from opencl_print_type.
2395 * p-lang.c (pascal_language_data): Delete la_print_type
2396 initializer.
2397 (pascal_language::print_type): New member function.
2398 * rust-lang.c (rust_print_type): Delete, implementation moved to
2399 rust_language::print_type.
2400 (rust_language_data): Delete la_print_type initializer.
2401 (rust_language::print_type): New member function, implementation
2402 from rust_print_type.
2403
6f827019
AB
24042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2407 implementation moves to...
2408 (ada_language::sniff_from_mangled_name): ...here. Update return
2409 type.
2410 (ada_language_data): Delete la_sniff_from_mangled_name
2411 initializer.
2412 * c-lang.c (c_language_data): Likewise.
2413 (cplus_language_data): Likewise.
2414 (cplus_language::sniff_from_mangled_name): New member function,
2415 implementation taken from gdb_sniff_from_mangled_name.
2416 (asm_language_data): Delete la_sniff_from_mangled_name
2417 initializer.
2418 (minimal_language_data): Likewise.
2419 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2420 implementation moves to cplus_language::sniff_from_mangled_name.
2421 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2422 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2423 moves to...
2424 (d_language::sniff_from_mangled_name): ...here.
2425 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2426 * f-lang.c (f_language_data): Likewise.
2427 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2428 moves to...
2429 (go_language::sniff_from_mangled_name): ...here.
2430 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2431 * language.c (language_sniff_from_mangled_name): Delete.
2432 (unknown_language_data): Delete la_sniff_from_mangled_name
2433 initializer.
2434 (auto_language_data): Likewise.
2435 * language.h (language_data): Delete la_sniff_from_mangled_name
2436 field.
2437 (language_defn::sniff_from_mangled_name): New function.
2438 (language_sniff_from_mangled_name): Delete declaration.
2439 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2440 field.
2441 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2442 implementation moves to...
2443 (objc_language::sniff_from_mangled_name): ...here.
2444 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2445 * opencl-lang.c (opencl_language_data): Likewise.
2446 * p-lang.c (pascal_language_data): Likewise.
2447 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2448 implementation moves to...
2449 (rust_language::sniff_from_mangled_name): ...here.
2450 (rust_language_data): Delete la_sniff_from_mangled_name
2451 initializer.
2452 * symtab.c (symbol_find_demangled_name): Call
2453 sniff_from_mangled_name member function.
2454
fb8006fd
AB
24552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2458 initializer.
2459 * c-lang.c (c_language_data): Likewise.
2460 (cplus_language_data): Likewise.
2461 (cplus_language::search_name_hash): New member function.
2462 (asm_language_data): Delete la_search_name_hash initializer.
2463 (minimal_language_data): Likewise.
2464 * d-lang.c (d_language_data): Likewise.
2465 * dictionary.c (default_search_name_hash): Rename to...
2466 (language_defn::search_name_hash): ...this.
2467 * f-lang.c (f_language_data): Likewise.
2468 (f_language::search_name_hash): New member function.
2469 * go-lang.c (go_language_data): Delete la_search_name_hash
2470 initializer.
2471 * language.c (unknown_language_data): Likewise.
2472 (auto_language_data): Likewise.
2473 * language.h (struct language_data): Delete la_search_name_hash
2474 field.
2475 (language_defn::search_name_hash): Declare new member function.
2476 (default_search_name_hash): Delete declaration.
2477 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2478 initializer.
2479 * objc-lang.c (objc_language_data): Likewise.
2480 * opencl-lang.c (opencl_language_data): Likewise.
2481 * p-lang.c (pascal_language_data): Likewise.
2482 * rust-lang.c (rust_language_data): Likewise.
2483 * symtab.c (search_name_hash): Update call.
2484
8e25bafe
AB
24852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2488 initializer.
2489 * c-lang.c (class compile_instance): Declare.
2490 (c_language_data): Delete la_get_compile_instance initializer.
2491 (c_language::get_compile_instance): New member function.
2492 (cplus_language_data): Delete la_get_compile_instance initializer.
2493 (cplus_language::get_compile_instance): New member function.
2494 (asm_language_data): Delete la_get_compile_instance initializer.
2495 (minimal_language_data): Likewise.
2496 * c-lang.h (c_get_compile_context): Update comment.
2497 (cplus_get_compile_context): Update comment.
2498 * compile/compile.c (compile_to_object): Update calls, don't rely
2499 on function pointer being NULL.
2500 * d-lang.c (d_language_data): Delete la_get_compile_instance
2501 initializer.
2502 * f-lang.c (f_language_data): Likewise.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (unknown_language_data): Likewise.
2505 (auto_language_data): Likewise.
2506 * language.h (language_data): Delete la_get_compile_instance field.
2507 (language_defn::get_compile_instance): New member function.
2508 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2509 initializer.
2510 * objc-lang.c (objc_language_data): Likewise.
2511 * opencl-lang.c (opencl_language_data): Likewise.
2512 * p-lang.c (pascal_language_data): Likewise.
2513 * rust-lang.c (rust_language_data): Likewise.
2514
4009ee92
AB
25152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * ada-lang.c (ada_add_all_symbols): Update comment.
2518 (ada_iterate_over_symbols): Delete, move implementation to...
2519 (ada_language::iterate_over_symbols): ...here, a new member
2520 function, rewrite to use range based for loop.
2521 (ada_language_data): Delete la_iterate_over_symbols initializer.
2522 * c-lang.c (c_language_data): Likewise.
2523 (cplus_language_data): Likewise.
2524 (asm_language_data): Likewise.
2525 (minimal_language_data): Likewise.
2526 * d-lang.c (d_language_data): Likewise.
2527 * f-lang.c (f_language_data): Likewise.
2528 * go-lang.c (go_language_data): Likewise.
2529 * language.c (unknown_language_data): Likewise.
2530 (auto_language_data): Likewise.
2531 * language.h (language_data): Delete la_iterate_over_symbols field.
2532 (language_defn::iterate_over_symbols): New member function.
2533 (LA_ITERATE_OVER_SYMBOLS): Update.
2534 * linespec.c (iterate_over_all_matching_symtabs): Update.
2535 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2536 initializer.
2537 * objc-lang.c (objc_language_data): Likewise.
2538 * opencl-lang.c (opencl_language_data): Likewise.
2539 * p-lang.c (pascal_language_data): Likewise.
2540 * rust-lang.c (rust_language_data): Likewise.
2541
54f4ca46
AB
25422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * ada-lang.c (ada_language_data): Delete
2545 la_lookup_transparent_type initializer.
2546 * c-lang.c (c_language_data): Likewise.
2547 (cplus_language_data): Likewise.
2548 (cplus_language::lookup_transparent_type): New member function.
2549 (asm_language_data): Delete la_lookup_transparent_type
2550 initializer.
2551 (minimal_language_data): Likewise.
2552 * d-lang.c (d_language_data): Likewise.
2553 * f-lang.c (f_language_data): Likewise.
2554 * go-lang.c (go_language_data): Likewise.
2555 * language.c (unknown_language_data): Likewise.
2556 (auto_language_data): Likewise.
2557 * language.h (struct language_data): Delete
2558 la_lookup_transparent_type field.
2559 (language_defn::lookup_transparent_type): New member function.
2560 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2561 initializer.
2562 * objc-lang.c (objc_language_data): Likewise.
2563 * opencl-lang.c (opencl_language_data): Likewise.
2564 * p-lang.c (pascal_language_data): Likewise.
2565 * rust-lang.c (rust_language_data): Likewise.
2566 * symtab.c (symbol_matches_domain): Update call.
2567
1fb314aa
AB
25682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * ada-lang.c (ada_language_arch_info): Delete function, move
2571 implementation to...
2572 (ada_language::language_arch_info): ...here, a new member
2573 function.
2574 (ada_language_data): Delete la_language_arch_info.
2575 * c-lang.c (c_language_data): Likewise.
2576 (c_language::language_arch_info): New member function.
2577 (cplus_language_arch_info): Delete function, move
2578 implementation to...
2579 (cplus_language::language_arch_info): ...here, a new member
2580 function.
2581 (cplus_language_data): Delete la_language_arch_info.
2582 (asm_language_data): Likewise.
2583 (asm_language::language_arch_info): New member function.
2584 (minimal_language_data): Delete la_language_arch_info.
2585 (minimal_language::language_arch_info): New member function.
2586 * d-lang.c (d_language_arch_info): Delete function, move
2587 implementation to...
2588 (d_language::language_arch_info): ...here, a new member
2589 function.
2590 (d_language_data): Delete la_language_arch_info.
2591 * f-lang.c (f_language_arch_info): Delete function, move
2592 implementation to...
2593 (f_language::language_arch_info): ...here, a new member
2594 function.
2595 (f_language_data): Delete la_language_arch_info.
2596 * go-lang.c (go_language_arch_info): Delete function, move
2597 implementation to...
2598 (go_language::language_arch_info): ...here, a new member
2599 function.
2600 (go_language_data): Delete la_language_arch_info.
2601 * language.c (unknown_language_data): Likewise.
2602 (unknown_language::language_arch_info): New member function.
2603 (auto_language_data): Delete la_language_arch_info.
2604 (auto_language::language_arch_info): New member function.
2605 (language_gdbarch_post_init): Update call to
2606 la_language_arch_info.
2607 * language.h (language_data): Delete la_language_arch_info
2608 function pointer.
2609 (language_defn::language_arch_info): New function.
2610 * m2-lang.c (m2_language_arch_info): Delete function, move
2611 implementation to...
2612 (m2_language::language_arch_info): ...here, a new member
2613 function.
2614 (m2_language_data): Delete la_language_arch_info.
2615 * objc-lang.c (objc_language_arch_info): Delete function, move
2616 implementation to...
2617 (objc_language::language_arch_info): ...here, a new member
2618 function.
2619 (objc_language_data): Delete la_language_arch_info.
2620 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2621 implementation to...
2622 (opencl_language::language_arch_info): ...here, a new member
2623 function.
2624 (opencl_language_data): Delete la_language_arch_info.
2625 * p-lang.c (pascal_language_arch_info): Delete function, move
2626 implementation to...
2627 (pascal_language::language_arch_info): ...here, a new member
2628 function.
2629 (pascal_language_data): Delete la_language_arch_info.
2630 * rust-lang.c (rust_language_arch_info): Delete function, move
2631 implementation to...
2632 (rust_language::language_arch_info): ...here, a new member
2633 function.
2634 (rust_language_data): Delete la_language_arch_info.
2635
48448202
AB
26362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2639 initializer.
2640 * c-lang.c (c_language_data): Likewise.
2641 (cplus_language_data): Likewise.
2642 (cplus_language::pass_by_reference_info): New method.
2643 (asm_language_data): Delete la_pass_by_reference initializer.
2644 (minimal_language_data): Likewise.
2645 * cp-abi.c (cp_pass_by_reference): Remove use of
2646 default_pass_by_reference.
2647 * d-lang.c (d_language_data): Likewise.
2648 * f-lang.c (f_language_data): Likewise.
2649 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2650 default_pass_by_reference.
2651 * go-lang.c (go_language_data): Likewise.
2652 * language.c (language_pass_by_reference): Update.
2653 (default_pass_by_reference): Delete.
2654 (unknown_language_data): Delete la_pass_by_reference
2655 initializer.
2656 (auto_language_data): Likewise.
2657 * language.h (struct language_data): Delete la_pass_by_reference
2658 field.
2659 (language_defn::pass_by_reference_info): New member function.
2660 (default_pass_by_reference): Delete declaration.
2661 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2662 initializer.
2663 * objc-lang.c (objc_language_data): Likewise.
2664 * opencl-lang.c (opencl_language_data): Likewise.
2665 * p-lang.c (pascal_language_data): Likewise.
2666 * rust-lang.c (rust_language_data): Likewise.
2667
15e5fd35
AB
26682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * ada-lang.c (ada_read_var_value): Delete function, move
2671 implementation to...
2672 (ada_language::read_var_value): ...here.
2673 (ada_language_data): Delete la_read_var_value initializer.
2674 * c-lang.c (c_language_data): Likewise.
2675 (cplus_language_data): Likewise.
2676 (minimal_language_data): Likewise.
2677 * d-lang.c (d_language_data): Likewise.
2678 * f-lang.c (f_language_data): Likewise.
2679 * findvar.c (default_read_var_value): Rename to...
2680 (language_defn::read_var_value): ...this.
2681 * findvar.c (read_var_value): Update header comment, and change to
2682 call member function instead of function pointer.
2683 * go-lang.c (go_language_data): Likewise.
2684 * language.c (unknown_language_data): Delete la_read_var_value
2685 initializer.
2686 (auto_language_data): Likewise.
2687 * language.h (struct language_data): Delete la_read_var_value
2688 field.
2689 (language_defn::read_var_value): New member function.
2690 (default_read_var_value): Delete declaration.
2691 * m2-lang.c (m2_language_data): Delete la_read_var_value
2692 initializer.
2693 * objc-lang.c (objc_language_data): Likewise.
2694 * opencl-lang.c (opencl_language_data): Likewise.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_language_data): Likewise.
2697 * value.h (default_read_var_value): Delete declaration.
2698
5bd40f2a
AB
26992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_print_array_index): Delete function, move
2702 implementation to...
2703 (ada_language::print_array_index): ...here.
2704 (ada_language_data): Delete la_print_array_index initializer.
2705 * c-lang.c (c_language_data): Likewise.
2706 (cplus_language_data): Likewise.
2707 (minimal_language_data): Likewise.
2708 * d-lang.c (d_language_data): Likewise.
2709 * f-lang.c (f_language_data): Likewise.
2710 * go-lang.c (go_language_data): Likewise.
2711 * language.c (default_print_array_index): Delete function, move
2712 implementation to...
2713 (language_defn::print_array_index): ...here.
2714 (unknown_language_data): Delete la_print_array_index initializer.
2715 (auto_language_data): Likewise.
2716 * language.h (struct language_data): Delete la_print_array_index
2717 field.
2718 (language_defn::print_array_index): New member function.
2719 (LA_PRINT_ARRAY_INDEX): Update.
2720 (default_print_array_index): Delete declaration.
2721 * m2-lang.c (m2_language_data): Delete la_print_array_index
2722 initializer.
2723 * objc-lang.c (objc_language_data): Likewise.
2724 * opencl-lang.c (opencl_language_data): Likewise.
2725 * p-lang.c (pascal_language_data): Likewise.
2726 * rust-lang.c (rust_language_data): Likewise.
2727
0874fd07
AB
27282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * gdb/ada-lang.c (ada_language_defn): Convert to...
2731 (ada_language_data): ...this.
2732 (class ada_language): New class.
2733 (ada_language_defn): New static global.
2734 * gdb/c-lang.c (c_language_defn): Convert to...
2735 (c_language_data): ...this.
2736 (class c_language): New class.
2737 (c_language_defn): New static global.
2738 (cplus_language_defn): Convert to...
2739 (cplus_language_data): ...this.
2740 (class cplus_language): New class.
2741 (cplus_language_defn): New static global.
2742 (asm_language_defn): Convert to...
2743 (asm_language_data): ...this.
2744 (class asm_language): New class.
2745 (asm_language_defn): New static global.
2746 (minimal_language_defn): Convert to...
2747 (minimal_language_data): ...this.
2748 (class minimal_language): New class.
2749 (minimal_language_defn): New static global.
2750 * gdb/d-lang.c (d_language_defn): Convert to...
2751 (d_language_data): ...this.
2752 (class d_language): New class.
2753 (d_language_defn): New static global.
2754 * gdb/f-lang.c (f_language_defn): Convert to...
2755 (f_language_data): ...this.
2756 (class f_language): New class.
2757 (f_language_defn): New static global.
2758 * gdb/go-lang.c (go_language_defn): Convert to...
2759 (go_language_data): ...this.
2760 (class go_language): New class.
2761 (go_language_defn): New static global.
2762 * gdb/language.c (unknown_language_defn): Remove declaration.
2763 (current_language): Initialize to nullptr, real initialization is
2764 moved to _initialize_language.
2765 (languages): Delete global.
2766 (language_defn::languages): Define.
2767 (set_language_command): Use language_defn::languages.
2768 (set_language): Likewise.
2769 (range_error): Likewise.
2770 (language_enum): Likewise.
2771 (language_def): Likewise.
2772 (add_set_language_command): Use language_def::languages for the
2773 language list, and language_def to lookup language pointers.
2774 (skip_language_trampoline): Use language_defn::languages.
2775 (unknown_language_defn): Convert to...
2776 (unknown_language_data): ...this.
2777 (class unknown_language): New class.
2778 (unknown_language_defn): New static global.
2779 (auto_language_defn): Convert to...
2780 (auto_language_data): ...this.
2781 (class auto_language): New class.
2782 (auto_language_defn): New static global.
2783 (language_gdbarch_post_init): Use language_defn::languages.
2784 (_initialize_language): Initialize current_language.
2785 * gdb/language.h (struct language_defn): Rename to...
2786 (struct language_data): ...this.
2787 (struct language_defn): New.
2788 (auto_language_defn): Delete.
2789 (unknown_language_defn): Delete.
2790 (minimal_language_defn): Delete.
2791 (ada_language_defn): Delete.
2792 (asm_language_defn): Delete.
2793 (c_language_defn): Delete.
2794 (cplus_language_defn): Delete.
2795 (d_language_defn): Delete.
2796 (f_language_defn): Delete.
2797 (go_language_defn): Delete.
2798 (m2_language_defn): Delete.
2799 (objc_language_defn): Delete.
2800 (opencl_language_defn): Delete.
2801 (pascal_language_defn): Delete.
2802 (rust_language_defn): Delete.
2803 * gdb/m2-lang.c (m2_language_defn): Convert to...
2804 (m2_language_data): ...this.
2805 (class m2_language): New class.
2806 (m2_language_defn): New static global.
2807 * gdb/objc-lang.c (objc_language_defn): Convert to...
2808 (objc_language_data): ...this.
2809 (class objc_language): New class.
2810 (objc_language_defn): New static global.
2811 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2812 (opencl_language_data): ...this.
2813 (class opencl_language): New class.
2814 (opencl_language_defn): New static global.
2815 * gdb/p-lang.c (pascal_language_defn): Convert to...
2816 (pascal_language_data): ...this.
2817 (class pascal_language): New class.
2818 (pascal_language_defn): New static global.
2819 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2820 language pointer, update comment format.
2821 * gdb/rust-lang.c (rust_language_defn): Convert to...
2822 (rust_language_data): ...this.
2823 (class rust_language): New class.
2824 (rust_language_defn): New static global.
2825
1313c56e
AB
28262020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2829 member variable.
2830 <m_stmt_at_address>: New member variable.
2831 (lnp_state_machine::record_line): Don't record some lines, update
2832 tracking of is_stmt at the same address.
2833 (lnp_state_machine::lnp_state_machine): Initialise new member
2834 variables.
2835
b7ed9f3d
ST
28362020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2837
2838 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2839 "-include gnu-nat-mig.h".
2840 * gnu-nat-mig.h: New file.
2841 * gnu-nat.c: Include "gnu-nat-mig.h".
2842 (exc_server, msg_reply_server, notify_server,
2843 process_reply_server): Remove declarations.
2844
14a8ad62
ST
28452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2846
2847 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2848 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2849 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2850 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2851 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2852 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2853 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2854 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2855 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2856 to gnu_nat_target class.
2857 * gnu-nat.c: Likewise.
2858 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2859 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2860 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2861 object.
2862 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2863 instead of `gnu_target'.
2864
0af5e106
ST
28652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2866
2867 * i386-gnu-tdep.c: Include "gdbcore.h"
2868 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2869 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2870 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2871 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2872 i386_gnu_sigcontext_addr): New functions
2873 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2874 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2875 tdep.
2876
078f2fc9
ST
28772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2878
2879 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2880 before fork_inferior call. Avoid calling it if target_is_pushed returns
2881 true.
2882
53dff92c
ST
28832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2884
2885 * gnu-nat.h (gnu_target): New variable declaration.
2886 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2887 gnu_target.
2888 * gnu-nat.c (gnu_target): New variable.
2889 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2890 add_thread_silent, and add_thread calls.
2891 (gnu_nat_target::create_inferior): Pass gnu_target to
2892 add_thread_silent, thread_change_ptid call.
2893 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2894 call.
2895
5a8b8627
ST
28962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2897
2898 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2899 (gnu_nat_target::find_memory_regions): Remove unused
2900 `old_address' variable.
2901
366f550a
ST
29022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2903
2904 * gnu-nat.c: Include "gdbarch.h".
2905
f14871bf
ST
29062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2907
2908 * reply_mig_hack.awk (Error return): Cast function through
2909 void *, to bypass compiler function call check.
2910
c6887cfb
ST
29112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2912
2913 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2914 $(srcdir)/reply_mig_hack.awk.
2915
6930bffe
ST
29162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2917
2918 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2919
112c22ed
JG
29202020-05-30 Jonny Grant <jg@jguk.org>
2921
2922 * configure.ac (ACX_BUGURL): change bug URL to https.
2923
f68f85b5
PA
29242020-05-30 Pedro Alves <palves@redhat.com>
2925
2926 * cp-support.c (replace_typedefs_template): New.
2927 (replace_typedefs_qualified_name): Handle
2928 DEMANGLE_COMPONENT_TEMPLATE.
2929
976ca316
SM
29302020-05-29 Simon Marchi <simon.marchi@efficios.com>
2931
2932 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2933 dwarf2/index-cache.h, dwarf2/index-write.c,
2934 dwarf2/index-write.h, dwarf2/line-header.c,
2935 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2936 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2937 variables and fields from `dwarf2_per_objfile` to just
2938 `per_objfile` throughout.
2939
989ade05
SM
29402020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2941
2942 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2943 <push_dwarf_reg_entry_value>: Add comment.
2944
c47bae85
KB
29452020-05-28 Kevin Buettner <kevinb@redhat.com>
2946 Keith Seitz <keiths@redhat.com>
2947
2948 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2949 instead of PyEval_ReleaseLock.
2950 (class gdbpy_gil): Move to earlier in file.
2951 (finalize_python): Set gdb_python_initialized.
2952 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2953 when not initialized.
2954
44486dcf
SM
29552020-05-28 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2958 <push_dwarf_reg_entry_value>: Remove assert. Override
2959 per_objfile with caller_per_objfile.
2960
f030440d
TV
29612020-05-28 Tom de Vries <tdevries@suse.de>
2962
2963 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2964 PR gold/15646 workaround to symbol kind "type".
2965
f0fbb768
TT
29662020-05-27 Tom Tromey <tromey@adacore.com>
2967
2968 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2969
af0b2a3e
TT
29702020-05-27 Tom Tromey <tromey@adacore.com>
2971
2972 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2973 Use htab_find_with_hash.
2974 <add_abbrev>: Remove "abbrev_number" parameter.
2975 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2976 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2977 (hash_abbrev): Add comment.
2978 (abbrev_table::lookup_abbrev): Move to header file.
2979 (abbrev_table::read): Update.
2980
7d00ffec
TT
29812020-05-27 Tom Tromey <tromey@adacore.com>
2982
2983 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2984 method.
2985 <canonical_name>: New member.
2986 <raw_name>: Rename from "name".
2987 (partial_die_info): Initialize canonical_name.
2988 (scan_partial_symbols): Check raw_name.
2989 (partial_die_parent_scope, partial_die_full_name)
2990 (add_partial_symbol, add_partial_subprogram)
2991 (add_partial_enumeration, load_partial_dies): Use "name" method.
2992 (partial_die_info::name): New method.
2993 (partial_die_info::read, guess_partial_die_structure_name)
2994 (partial_die_info::fixup): Update.
2995
697bba18
TT
29962020-05-27 Tom Tromey <tromey@adacore.com>
2997
2998 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2999 <get_ref_die_offset>: Inline.
3000 <get_ref_die_offset_complaint>: New method.
3001 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3002 (attribute::get_ref_die_offset_complaint): Rename from
3003 get_ref_die_offset. Just issue complaint.
3004
c17ace43
HD
30052020-05-27 Hannes Domani <ssbssa@yahoo.de>
3006
3007 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3008
96445f0b
HD
30092020-05-27 Hannes Domani <ssbssa@yahoo.de>
3010
3011 * exec.c (exec_file_attach): Use errno value of first openp failure.
3012
ac637ec3
HD
30132020-05-27 Hannes Domani <ssbssa@yahoo.de>
3014
3015 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3016 Don't close thread handle.
3017
17ee85fc
TT
30182020-05-27 Tom Tromey <tom@tromey.com>
3019 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3022 shared_ptr.
3023 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3024 member.
3025 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3026 dwarf2_per_bfd_objfile_data_key>: New globals.
3027 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3028 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3029 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3030 shared.
3031 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3032 short-circuit when sharing.
3033 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3034 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3035
39b16f87
SM
30362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3039 to...
3040 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3041 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3042
fcf23d5b
SM
30432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3046 build_name_components, find_name_components_bounds>:
3047 Add per_objfile parameter.
3048 (struct mapped_index) <symbol_name_at>: Likewise.
3049 (struct mapped_debug_names): Remove constructor.
3050 <dwarf2_per_objfile>: Remove field.
3051 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3052 (mapped_index_base::find_name_components_bounds,
3053 mapped_index_base::build_name_components,
3054 dw2_expand_symtabs_matching_symbol): Likewise.
3055 (class mock_mapped_index) <symbol_name_at>: Likewise.
3056 (check_match): Likewise.
3057 (check_find_bounds_finds): Likewise.
3058 (test_mapped_index_find_name_component_bounds): Update.
3059 (CHECK_MATCH): Update.
3060 (dw2_expand_symtabs_matching): Update.
3061 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3062 per_objfile parameter.
3063 <find_vec_in_debug_names>: Likewise.
3064 <m_per_objfile>: New field.
3065 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3066 parameter.
3067 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3068 (dw2_debug_names_iterator::next): Update.
3069 (dw2_debug_names_lookup_symbol): Update.
3070 (dw2_debug_names_expand_symtabs_for_function): Update.
3071 (dw2_debug_names_map_matching_symbols): Update.
3072 (dw2_debug_names_expand_symtabs_matching): Update.
3073 (dwarf2_read_debug_names): Update.
3074
7188ed02
SM
30752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3078 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3079 move to dwarf2_per_objfile.
3080 <read_in_chain>: Remove.
3081 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3082 remove_all_cus, age_comp_units>: New methods.
3083 <m_dwarf2_cus>: New member.
3084 (struct dwarf2_per_cu_data) <cu>: Remove.
3085 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3086 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3087 moved to methods of dwarf2_per_objfile.
3088 (dwarf2_clear_marks): Remove.
3089 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3090 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3091 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3092 (dwarf2_per_objfile::remove_all_cus): New.
3093 (class free_cached_comp_units) <~free_cached_comp_units>:
3094 Update.
3095 (load_cu): Update.
3096 (dw2_do_instantiate_symtab): Adjust.
3097 (fill_in_sig_entry_from_dwo_entry): Adjust.
3098 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3099 (cutu_reader::cutu_reader): Likewise.
3100 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3101 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3102 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3103 and dwarf2_per_objfile::age_comp_units.
3104 (load_partial_comp_unit): Update.
3105 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3106 (process_queue): Likewise.
3107 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3108 backlink.
3109 (dwarf2_read_addr_index): Likewise.
3110 (follow_die_offset): Likewise.
3111 (dwarf2_fetch_die_loc_sect_off): Likewise.
3112 (dwarf2_fetch_constant_bytes): Likewise.
3113 (dwarf2_fetch_die_type_sect_off): Likewise.
3114 (follow_die_sig_1): Likewise.
3115 (load_full_type_unit): Likewise.
3116 (read_signatured_type): Likewise.
3117 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3118 (dwarf2_cu::~dwarf2_cu): Remove.
3119 (dwarf2_per_objfile::get_cu): New.
3120 (dwarf2_per_objfile::set_cu): New.
3121 (age_cached_comp_units): Rename to...
3122 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3123 to std::unordered_map.
3124 (free_one_cached_comp_unit): Rename to...
3125 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3126 to std::unordered_map.
3127 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3128 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3129 a dwarf2_per_objfile in data.
3130 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3131 (dwarf2_clear_marks): Remove.
3132
2e671100
SM
31332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3136 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3137 (init_tu_and_read_dwo_dies): Likewise.
3138 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3139 (cutu_reader::cutu_reader): Likewise.
3140 (load_partial_comp_unit): Likewise.
3141 (process_psymtab_comp_unit): Update.
3142 (build_type_psymtabs_1): Update.
3143 (process_skeletonless_type_unit): Update.
3144 (load_full_comp_unit): Update.
3145 (find_partial_die): Update.
3146 (dwarf2_read_addr_index): Update.
3147 (read_signatured_type): Update.
3148
2e6a9f79
SM
31492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3152 m_header_read_in>: New fields.
3153 <get_header>: New method.
3154 * dwarf2/read.c (per_cu_header_read_in): Remove.
3155 (dwarf2_per_cu_data::get_header): New.
3156 (dwarf2_per_cu_data::addr_size): Update.
3157 (dwarf2_per_cu_data::offset_size): Update.
3158 (dwarf2_per_cu_data::ref_addr_size): Update.
3159
1b555f17
SM
31602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3163 (dw2_do_instantiate_symtab): Update.
3164 (queue_and_load_all_dwo_tus): Change parameter from
3165 dwarf2_per_cu_data to dwarf2_cu.
3166 (dwarf2_fetch_die_loc_sect_off): Update.
3167 (dwarf2_fetch_constant_bytes): Update.
3168 (dwarf2_fetch_die_type_sect_off): Update.
3169
8fc0b21d
SM
31702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3171
3172 * dwarf2/read.c (process_full_comp_unit,
3173 process_full_type_unit): Remove per_cu, per_objfile paramters.
3174 Add dwarf2_cu parameter.
3175 (process_queue): Update.
3176
168c9250
SM
31772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3178
3179 * dwarf2/read.c (create_cu_from_index_list): Replace
3180 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3181 (create_cus_from_index_list): Likewise.
3182 (create_cus_from_index): Likewise.
3183 (create_signatured_type_table_from_index): Likewise.
3184 (create_cus_from_debug_names_list): Likewise.
3185 (create_cus_from_debug_names): Likewise.
3186 (dwarf2_read_gdb_index): Update.
3187 (dwarf2_read_debug_names): Update.
3188
e286671b
TT
31892020-05-27 Tom Tromey <tom@tromey.com>
3190 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.h (struct dwarf2_per_objfile)
3193 <get_type_for_signatured_type, set_type_for_signatured_type>:
3194 New methods.
3195 <m_type_map>: New member.
3196 (struct signatured_type) <type>: Remove.
3197 * dwarf2/read.c
3198 (dwarf2_per_objfile::get_type_for_signatured_type,
3199 dwarf2_per_objfile::set_type_for_signatured_type): New.
3200 (get_signatured_type): Use new methods.
3201
8adb8487
TT
32022020-05-27 Tom Tromey <tom@tromey.com>
3203 Simon Marchi <simon.marchi@efficios.com>
3204
3205 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3206 (struct dwarf2_per_objfile) <type_units>: New member.
3207 <get_type_unit_group_unshareable>: New method.
3208 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3209 num_symtabs, symtabs>: Remove; move to
3210 type_unit_group_unshareable.
3211 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3212 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3213 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3214
127bbf4b
SM
32152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * dwarf2/read.h (struct dwarf2_per_cu_data):
3218 <dwarf2_per_objfile>: Remove.
3219 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3220 dwarf2_per_objfile.
3221 (create_signatured_type_table_from_index): Likewise.
3222 (create_signatured_type_table_from_debug_names): Likewise.
3223 (create_debug_type_hash_table): Likewise.
3224 (fill_in_sig_entry_from_dwo_entry): Likewise.
3225 (create_type_unit_group): Likewise.
3226 (read_comp_units_from_section): Likewise.
3227 (create_cus_hash_table): Likewise.
3228
f6e649dd
SM
32292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3230
3231 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3232 dwarf2_per_cu_data::dwarf2_per_objfile.
3233 (compute_compunit_symtab_includes): Likewise.
3234 (dwarf2_cu::start_symtab): Likewise.
3235
aa66c379
SM
32362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3239 parameter.
3240 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3241 (read_namespace_alias): Update.
3242 (lookup_die_type): Update.
3243 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3244 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3245 Update.
3246 (disassemble_dwarf_expression): Update.
3247
120ce1b5
SM
32482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * dwarf2/read.h (struct dwarf2_queue_item): Add
3251 dwarf2_per_objfile parameter, assign new parameter.
3252 <per_objfile>: New field.
3253 * dwarf2/read.c (free_one_cached_comp_unit): Add
3254 dwarf2_per_objfile parameter.
3255 (queue_comp_unit): Likewise.
3256 (dw2_do_instantiate_symtab): Update.
3257 (process_psymtab_comp_unit): Update.
3258 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3259 (process_imported_unit_die): Update.
3260 (queue_and_load_dwo_tu): Update.
3261 (follow_die_offset): Update.
3262 (follow_die_sig_1): Update.
3263
9f47c707
SM
32642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3267 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3268 (read_call_site_scope): Assign per_objfile.
3269 (dwarf2_per_cu_data::objfile): Remove.
3270 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3271 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3272 dwarf2_per_objfile parameter.
3273 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3274 dwarf2_per_objfile parameter.
3275 (dwarf_expr_reg_to_entry_parameter): Add output
3276 dwarf2_per_objfile parameter.
3277 (locexpr_get_frame_base): Update.
3278 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3279 <push_dwarf_reg_entry_value>: Update.
3280 <call_site_to_target_addr>: Update.
3281 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3282 parameter.
3283 (value_of_dwarf_reg_entry): Update.
3284 (rw_pieced_value): Update.
3285 (indirect_synthetic_pointer): Update.
3286 (dwarf2_evaluate_property): Update.
3287 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3288 parameter.
3289 (locexpr_read_variable): Update.
3290 (locexpr_get_symbol_read_needs): Update.
3291 (loclist_read_variable): Update.
3292
14095eb3
SM
32932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3294
3295 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3296 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3297 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3298 parameter.
3299 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3300 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3301 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3302 parameter.
3303 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3304 sect_variable_value): Add dwarf2_per_objfile parameter.
3305 (class dwarf_evaluate_loc_desc) <dwarf_call,
3306 dwarf_variable_value>: Update.
3307 (fetch_const_value_from_synthetic_pointer): Add
3308 dwarf2_per_objfile parameter.
3309 (fetch_const_value_from_synthetic_pointer): Update.
3310 (coerced_pieced_ref): Update.
3311 (class symbol_needs_eval_context) <dwarf_call,
3312 dwarf_variable_value>: Update.
3313 (dwarf2_compile_expr_to_ax): Update.
3314
3c3cd3d4
SM
33152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3318 parameter.
3319 (dwarf2_evaluate_loc_desc_full): Update.
3320
82ca3f51
SM
33212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3324 parameter.
3325 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3326 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3327 dwarf2_per_objfile parameter.
3328 (decode_debug_loc_dwo_addresses): Likewise.
3329 (dwarf2_find_location_expression): Update.
3330 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3331 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3332 parameter.
3333 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3334 parameter.
3335 (locexpr_describe_location_1): Likewise.
3336 (locexpr_describe_location): Update.
3337
4b167ea1
SM
33382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3341 Remove.
3342 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3343 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3344 (dwarf2_compile_property_to_c): Update.
3345 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3346 use text offset from objfile.
3347 (locexpr_tracepoint_var_ref): Update.
3348 (locexpr_generate_c_location): Update.
3349 (loclist_describe_location): Update.
3350 (loclist_tracepoint_var_ref): Update.
3351 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3352 dwarf2_per_objfile parameter.
3353 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3354 use text offset from objfile.
3355 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3356
89b07335
SM
33572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * dwarf2/expr.h (struct dwarf_expr_context)
3360 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3361 <offset>: Remove.
3362 <per_objfile>: New member.
3363 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3364 dwarf2_per_objfile parameter. Don't set offset, set
3365 per_objfile.
3366 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3367 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3368 a dwarf2_per_objfile object instead of an offset.
3369 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3370 constructor.
3371 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3372 to dwarf2_expr_executor constructor. Don't set offset.
3373 (dwarf2_fetch_cfa_info): Update.
3374 (struct dwarf2_frame_cache) <text_offset>: Remove.
3375 <per_objfile>: New field.
3376 (dwarf2_frame_cache): Update.
3377 (dwarf2_frame_prev_register): Update.
3378 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3379 <dwarf_evaluate_loc_desc>: Add constructor.
3380 (dwarf2_evaluate_loc_desc_full): Update.
3381 (dwarf2_locexpr_baton_eval): Update.
3382 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3383 Add constructor.
3384 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3385
293e7e51
SM
33862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3387
3388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3389 addr_sized_int_type>: Move to dwarf2_cu.
3390 <int_type>: Move to dwarf2_per_objfile.
3391 (struct dwarf2_per_objfile) <int_type>: Move here.
3392 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3393 addr_sized_int_type>: Move here.
3394 (read_func_scope): Update.
3395 (read_array_type): Update.
3396 (read_tag_string_type): Update.
3397 (attr_to_dynamic_prop): Update.
3398 (dwarf2_per_cu_data::int_type): Rename to...
3399 (dwarf2_per_objfile::int_type): ... this.
3400 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3401 (dwarf2_cu::addr_sized_int_type): ... this.
3402 (read_subrange_type): Update.
3403 (dwarf2_per_cu_data::addr_type): Rename to...
3404 (dwarf2_cu::addr_type): ... this.
3405 (set_die_type): Update.
3406
64874a40
SM
34072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3410 data through per_cu->cu.
3411
4ab09049
SM
34122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3415 dwarf2_per_cu_data parameter fo dwarf2_cu.
3416 (lookup_dwo_type_unit): Likewise.
3417 (read_cutu_die_from_dwo): Likewise.
3418 (lookup_dwo_unit): Likewise.
3419 (open_and_init_dwo_file): Likewise.
3420 (lookup_dwo_cutu): Likewise.
3421 (lookup_dwo_comp_unit): Likewise.
3422 (lookup_dwo_type_unit): Likewise.
3423 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3424 (cutu_reader::cutu_reader): Update.
3425
47b14e86
SM
34262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3429 parameter.
3430 (process_full_type_unit): Likewise.
3431 (process_queue): Update.
3432
43182c09
SM
34332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * dwarf2/read.c (recursively_compute_inclusions): Add
3436 dwarf2_per_objfile parameter.
3437 (compute_compunit_symtab_includes): Likewise.
3438 (process_cu_includes): Update.
3439
7aa104c4
SM
34402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3443 parameter.
3444 (create_type_unit_group): Update.
3445 (process_psymtab_comp_unit_reader): Update.
3446 (build_type_psymtabs_reader): Update.
3447
e3beb21d
SM
34482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3451 object through m_this_cu->cu.
3452
d460f660
SM
34532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3456 the info parameter.
3457 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3458
ab432490
SM
34592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3460
3461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3462 per_objfile parameter.
3463 (load_full_type_unit): Add per_objfile parameter.
3464 (read_signatured_type): Likewise.
3465 (load_full_comp_unit): Likewise.
3466 (load_cu): Likewise.
3467 (dw2_do_instantiate_symtab): Likewise.
3468 (dw2_get_file_names): Likewise.
3469 (dw2_map_symtabs_matching_filename): Update.
3470 (dw_expand_symtabs_matching_file_matcher): Update.
3471 (dw2_map_symbol_filenames): Update.
3472 (process_psymtab_comp_unit): Add per_objfile parameter.
3473 (build_type_psymtabs_1): Update.
3474 (process_skeletonless_type_unit): Update.
3475 (dwarf2_build_psymtabs_hard): Update.
3476 (load_partial_comp_unit): Add per_objfile parameter.
3477 (scan_partial_symbols): Update.
3478 (load_full_comp_unit): Add per_objfile parameter.
3479 (process_imported_unit_die): Update.
3480 (create_cus_hash_table): Update.
3481 (find_partial_die): Update.
3482 (dwarf2_read_addr_index): Update.
3483 (follow_die_offset): Update.
3484 (dwarf2_fetch_die_loc_sect_off): Update.
3485 (dwarf2_fetch_constant_bytes): Update.
3486 (dwarf2_fetch_die_type_sect_off): Update.
3487 (follow_die_sig_1): Update.
3488 (load_full_type_unit): Add per_objfile parameter.
3489 (read_signatured_type): Likewise.
3490
313bad1b
SM
34912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3494 of objfile_name.
3495
c3699833
SM
34962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3497
3498 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3499 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3500 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3501 field.
3502 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3503 (create_cus_from_index): Update.
3504 (dwarf2_read_gdb_index): Update.
3505 (create_cus_from_debug_names): Update.
3506 (dwarf2_read_debug_names): Update.
3507 (get_abbrev_section_for_cu): Update.
3508 (create_all_comp_units): Update.
3509 (read_attribute_value): Update.
3510 (get_debug_line_section): Update.
3511 * dwarf2/index-cache.c (index_cache::store): Update.
3512 * dwarf2/index-write.c (save_gdb_index_command): Update.
3513 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3514
1859c670
SM
35152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3516
3517 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3518 member.
3519 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3520 dwarf2_per_cu_data::per_bfd.
3521 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3522 (create_type_unit_group): Likewise.
3523 (queue_comp_unit): Remove reference to
3524 per_cu->dwarf2_per_objfile.
3525 (maybe_queue_comp_unit): Likewise.
3526 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3527 (create_cus_hash_table): Assign new field.
3528
5e22e966
SM
35292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/read.c: Replace
3532 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3533 dwarf2_cu->per_objfile throughout.
3534
97a1449a
SM
35352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3538 parameter, don't use per_cu->dwarf2_per_objfile.
3539 (dw2_instantiate_symtab): Likewise.
3540 (dw2_find_last_source_symtab): Update.
3541 (dw2_map_expand_apply): Update.
3542 (dw2_lookup_symbol): Update.
3543 (dw2_expand_symtabs_for_function): Update.
3544 (dw2_expand_all_symtabs): Update.
3545 (dw2_expand_symtabs_with_fullname): Update.
3546 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3547 don't use per_cu->dwarf2_per_objfile.
3548 (dw2_expand_marked_cus): Update.
3549 (dw2_find_pc_sect_compunit_symtab): Update.
3550 (dw2_debug_names_lookup_symbol): Update.
3551 (dw2_debug_names_expand_symtabs_for_function): Update.
3552 (dw2_debug_names_map_matching_symbols): Update.
3553 (dwarf2_psymtab::expand_psymtab): Update.
3554
9e021579
SM
35552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3558 <per_objfile>: New member.
3559 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3560 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3561 call to dwarf2_cu.
3562 (cutu_reader::cutu_reader): Update.
3563 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3564
ae090bdb
SM
35652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3568 struct dwarf2_per_objfile.
3569 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3570 dwarf2_per_bfd.
3571 * dwarf2/read.c (set_die_type): Update.
3572 (get_die_type_at_offset): Update.
3573
af758d11
SM
35742020-05-27 Tom Tromey <tom@tromey.com>
3575 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3578 method.
3579 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3580 get_symtab, set_symtab>: New methods.
3581 <m_symtabs>: New field.
3582 (struct dwarf2_psymtab): Derive from partial_symtab.
3583 <readin_p, get_compunit_symtab>: Declare methods.
3584 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3585 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3586 New methods.
3587 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3588 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3589 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3590 (dw2_symtab_iter_next, dw2_print_stats)
3591 (dw2_expand_symtabs_with_fullname)
3592 (dw2_expand_symtabs_matching_one)
3593 (dw_expand_symtabs_matching_file_matcher)
3594 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3595 (dw2_debug_names_iterator::next)
3596 (dw2_debug_names_map_matching_symbols)
3597 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3598 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3599 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3600 New methods.
3601 (get_compunit_symtab, process_full_comp_unit)
3602 (process_full_type_unit): Update.
3603 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3604
5989a64e
SM
36052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3606
3607 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3608 then introduce a new dwarf2_per_objfile type.
3609 <read_line_string>: Move to the new dwarf2_per_objfile type.
3610 <objfile>: Likewise.
3611 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3612 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3613 dwarf2_per_objfile->per_bfd.
3614 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3615 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3616 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3617 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3618 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3619 (dwarf2_per_objfile::locate_sections): Rename to...
3620 (dwarf2_per_bfd::locate_sections): ... this.
3621 (dwarf2_per_objfile::get_cutu): Rename to...
3622 (dwarf2_per_bfd::get_cutu): ... this.
3623 (dwarf2_per_objfile::get_cu): Rename to...
3624 (dwarf2_per_bfd::get_cu): ... this.
3625 (dwarf2_per_objfile::get_tu): Rename to...
3626 (dwarf2_per_bfd::get_tu): ... this.
3627 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3628 (dwarf2_per_bfd::allocate_per_cu): ... this.
3629 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3630 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3631 (get_gdb_index_contents_ftype): Change parameter from
3632 dwarf2_per_objfile to dwarf2_per_bfd.
3633 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3634 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3635
a50264ba
TT
36362020-05-27 Tom Tromey <tom@tromey.com>
3637 Simon Marchi <simon.marchi@efficios.com>
3638
3639 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3640 (allocate_piece_closure): Set "per_objfile" member.
3641 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3642 (locexpr_describe_location, loclist_describe_location): Use new
3643 member.
3644 * dwarf2/read.c (read_call_site_scope)
3645 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3646 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3647 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3648 handle_data_member_location): Set per_objfile member.
3649 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3650 member.
3651 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3652
d3473f0c
TT
36532020-05-27 Tom Tromey <tom@tromey.com>
3654
3655 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3656 allocate_signatured_type>: Declare new methods.
3657 <m_num_psymtabs>: New member.
3658 (struct dwarf2_per_cu_data) <index>: New member.
3659 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3660 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3661 (create_cu_from_index_list): Use allocate_per_cu.
3662 (create_signatured_type_table_from_index)
3663 (create_signatured_type_table_from_debug_names)
3664 (create_debug_type_hash_table, add_type_unit)
3665 (read_comp_units_from_section): Use allocate_signatured_type.
3666
5717c425
TT
36672020-05-27 Tom Tromey <tom@tromey.com>
3668
3669 * psymtab.c (partial_map_expand_apply)
3670 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3671 (psym_lookup_global_symbol_language)
3672 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3673 (psym_print_stats, psym_expand_symtabs_for_function)
3674 (psym_map_symbol_filenames, psym_map_matching_symbols)
3675 (psym_expand_symtabs_matching)
3676 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3677 (maintenance_check_psymtabs): Update.
3678 * psympriv.h (struct partial_symtab) <readin_p,
3679 get_compunit_symtab>: Add objfile parameter.
3680 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3681 Likewise.
3682 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3683 get_compunit_symtab>: Likewise.
3684 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3685
45940949
TT
36862020-05-27 Tom Tromey <tom@tromey.com>
3687
3688 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3689 member.
3690 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3691 (create_cu_from_index_list)
3692 (create_signatured_type_table_from_index)
3693 (create_signatured_type_table_from_debug_names)
3694 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3695 (dwarf2_create_include_psymtab)
3696 (create_debug_type_hash_table, add_type_unit)
3697 (create_type_unit_group, read_comp_units_from_section)
3698 (dwarf2_compute_name, create_cus_hash_table)
3699 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3700 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3701 obstack.
3702 (dw2_get_real_path): Likewise. Change argument to
3703 dwarf2_per_objfile.
3704
f8c6d152
LM
37052020-05-27 Luis Machado <luis.machado@linaro.org>
3706
3707 PR tdep/26000
3708 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3709 for ldrd (immediate).
3710
e98d2e6d
PW
37112020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3712
3713 * command.h: Add comment giving the name of class_tui.
3714 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3715 create the fake command for the help for class_tui.
3716
53a47a3e
TT
37172020-05-26 Tom Tromey <tromey@adacore.com>
3718
3719 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3720 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3721 (val_atr): New function.
3722 (value_val_atr): Use it.
3723 * ada-valprint.c (print_optional_low_bound): Change low bound
3724 handling for enums.
3725 (val_print_packed_array_elements): Don't call discrete_position.
3726 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3727 discrete_position for enum types.
3728 * language.c (default_print_array_index): Change type.
3729 * language.h (struct language_defn) <la_print_array_index>: Add
3730 index_type parameter, change type of index_value.
3731 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3732 (default_print_array_index): Update.
3733 * valprint.c (maybe_print_array_index): Don't call
3734 value_from_longest. Update.
3735 (value_print_array_elements): Don't call discrete_position.
3736
0bc2354b
TT
37372020-05-26 Tom Tromey <tromey@adacore.com>
3738
3739 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3740 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3741
1218a4bf
CDA
37422020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3743
3744 PR gdb/13519
3745 * avr-tdep.c (avr_integer_to_address): Return data or code
3746 address accordingly to the second 'type' argument of the
3747 function.
3748
92651b1d
MW
37492020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3750
3751 * infcmd.c, inferior.h: (construct_inferior_arguments):
3752 Moved function from here to gdbsupport/common-inferior.{h,cc}
3753
0a4f5f8c
TT
37542020-05-23 Tom Tromey <tom@tromey.com>
3755
3756 Revert commit eca1f90c:
3757 * NEWS: Remove entry for completion styling.
3758 * completer.c (_rl_completion_prefix_display_length): Move
3759 declaration later.
3760 (gdb_fnprint): Revert.
3761 (gdb_display_match_list_1): Likewise.
3762 * cli/cli-style.c (completion_prefix_style)
3763 (completion_difference_style, completion_suffix_style): Remove.
3764 (_initialize_cli_style): Revert.
3765 * cli/cli-style.h (completion_prefix_style)
3766 (completion_difference_style, completion_suffix_style): Don't
3767 declare.
3768
e08bd6c5
PA
37692020-05-24 Pedro Alves <palves@redhat.com>
3770
3771 * symtab.c (completion_list_add_name): Return boolean indication
3772 of whether the symbol matched.
3773 (completion_list_add_symbol): Don't try to remove C++ aliases if
3774 the symbol didn't match in the first place.
3775 * symtab.h (completion_list_add_name): Return bool.
3776
ceacbf6e
SM
37772020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3778
3779 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3780 type::field.
3781
26f16254
JB
37822020-05-23 Joel Brobecker <brobecker@adacore.com>
3783
3784 GDB 9.2 released.
3785
eca1f90c
TT
37862020-05-23 Tom Tromey <tom@tromey.com>
3787
3788 * NEWS: Add entry for completion styling.
3789 * completer.c (_rl_completion_prefix_display_length): Move
3790 declaration earlier.
3791 (gdb_fnprint): Use completion_style.
3792 (gdb_display_match_list_1): Likewise.
3793 * cli/cli-style.c (completion_prefix_style)
3794 (completion_difference_style, completion_suffix_style): New
3795 globals.
3796 (_initialize_cli_style): Register new globals.
3797 * cli/cli-style.h (completion_prefix_style)
3798 (completion_difference_style, completion_suffix_style): Declare.
3799
51e2cfa2
PA
38002020-05-23 Pedro Alves <palves@redhat.com>
3801
3802 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3803 (parse_escape): Use ISDIGIT instead of isdigit.
3804 (puts_debug): Use gdb_isprint instead of isprint.
3805 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3806 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3807 ISSPACE instead of isspace.
3808 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3809 instead of isspace.
3810 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3811 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3812 instead of isxdigit and ISDIGIT instead of isdigit.
3813
80fc5e77
SM
38142020-05-22 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * gdbtypes.h (struct type) <field>: New method.
3817 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3818 or type::field.
3819
3cabb6b0
SM
38202020-05-22 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3823 (TYPE_FIELDS): Use type::fields. Change all call sites that
3824 modify the propery to use type::set_fields instead.
3825
1f704f76
SM
38262020-05-22 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3829 type::num_fields instead.
3830
5e33d5f4
SM
38312020-05-22 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3834 methods.
3835 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3836 that modify the number of fields to use type::set_num_fields
3837 instead.
3838
9392ebb3
TT
38392020-05-22 Tom Tromey <tromey@adacore.com>
3840
3841 * compile/compile-object-load.h (munmap_list_free): Don't
3842 declare.
3843
7c13f4e8
AB
38442020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * annotate.c (annotate_source_line): Update return type, add call
3847 to update current symtab and line.
3848 * annotate.h (annotate_source_line): Update return type, and
3849 extend header comment.
3850 * source.c (info_line_command): Check annotation_level before
3851 calling annotate_source_line.
3852 * stack.c (print_frame_info): If calling annotate_source_line
3853 returns true, then don't print any other source line information.
3854
aa370940
SM
38552020-05-21 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3858
84d53fa9
SM
38592020-05-21 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * coffread.c (patch_type): Remove NULL check before xfree.
3862 * corefile.c (set_gnutarget): Likewise.
3863 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3864 * exec.c (build_section_table): Likewise.
3865 * remote.c (remote_target::pass_signals): Likewise.
3866 * utils.c (n_spaces): Likewise.
3867 * cli/cli-script.c (document_command): Likewise.
3868 * i386-windows-tdep.c (core_process_module_section): Likewise.
3869 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3870
9d428aae
SM
38712020-05-20 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * symfile.c (reread_symbols): Clear objfile's section_offsets
3874 vector and section indices, re-compute them by calling
3875 sym_offsets.
3876
250106a7
TT
38772020-05-20 Tom Tromey <tromey@adacore.com>
3878
3879 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3880 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3881
9a0bacfb
TV
38822020-05-20 Tom de Vries <tdevries@suse.de>
3883
3884 PR symtab/25833
3885 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3886
7b958a48
AM
38872020-05-20 Alan Modra <amodra@gmail.com>
3888
3889 PR 25993
3890 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3891 bfd_set_filename.
3892 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3893 passed to bfd_set_filename.
3894 * symfile-mem.c (add_vsyscall_page): Likewise for string
3895 passed to symbol_file_add_from_memory.
3896 (symbol_file_add_from_memory): Make name param a const char* and
3897 don't strdup.
3898
c7e97679
AM
38992020-05-20 Alan Modra <amodra@gmail.com>
3900
3901 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3902 rather than accessing bfd->filename directly.
3903 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3904 and use bfd_section_name.
3905 * dwarf2/frame.c (decode_frame_entry): Likewise.
3906 * exec.c (exec_set_section_address): Likewise.
3907 * solib-aix.c (solib_aix_bfd_open): Likewise.
3908 * stap-probe.c (get_stap_base_address): Likewise.
3909 * symfile.c (reread_symbols): Likewise.
3910
563c591b
TT
39112020-05-19 Tom Tromey <tromey@adacore.com>
3912
3913 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3914
f408d82c
SM
39152020-05-19 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3918
98c59b52
PA
39192020-05-19 Pedro Alves <palves@redhat.com>
3920
3921 * NEWS (set exec-file-mismatch): Adjust entry.
3922 * exec.c: Include "build-id.h".
3923 (validate_exec_file): Try to match build IDs instead of filenames.
3924 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3925 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3926 and pass down 'warn_if_slow'.
3927 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3928 gdb_bfd_open_closure to pass it down.
3929 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3930
4111f652
PA
39312020-05-19 Pedro Alves <palves@redhat.com>
3932
3933 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3934 * target.c (target_fileio_open_1): Rename to target_fileio_open
3935 and make extern. Use bool.
3936 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3937 (target_fileio_read_alloc_1): Adjust.
3938 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3939 (target_fileio_open_warn_if_slow): Delete declaration.
3940
ad80db5b
PA
39412020-05-19 Pedro Alves <palves@redhat.com>
3942
3943 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3944 Adjust all callers.
3945
1d6ce4d3
YS
39462020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3947
3948 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3949 whether disp is negative.
3950
9005fbbb
SM
39512020-05-19 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * symfile.h (struct symfile_segment_data)
3954 <~symfile_segment_data>: Remove.
3955 <segment_info>: Change to std::vector.
3956 * symfile.c (default_symfile_segments): Update.
3957 * elfread.c (elf_symfile_segments): Update.
3958
68b888ff
SM
39592020-05-19 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3962 <segments>: New.
3963 <segment_bases, segment_sizes>: Remove.
3964 * symfile.c (default_symfile_segments): Update.
3965 * elfread.c (elf_symfile_segments): Update.
3966 * remote.c (remote_target::get_offsets): Update.
3967 * solib-target.c (solib_target_relocate_section_addresses):
3968 Update.
3969
62982abd
SM
39702020-05-19 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * symfile.h (struct symfile_segment_data): Initialize fields.
3973 <~symfile_segment_data>: Add.
3974 (symfile_segment_data_up): New.
3975 (struct sym_fns) <sym_segments>: Return a
3976 symfile_segment_data_up.
3977 (default_symfile_segments): Return a symfile_segment_data_up.
3978 (free_symfile_segment_data): Remove.
3979 (get_symfile_segment_data): Return a symfile_segment_data_up.
3980 * symfile.c (default_symfile_segments): Likewise.
3981 (get_symfile_segment_data): Likewise.
3982 (free_symfile_segment_data): Remove.
3983 (symfile_find_segment_sections): Update.
3984 * elfread.c (elf_symfile_segments): Return a
3985 symfile_segment_data_up.
3986 * remote.c (remote_target::get_offsets): Update.
3987 * solib-target.c (solib_target_relocate_section_addresses):
3988 Update.
3989 * symfile-debug.c (debug_sym_segments): Return a
3990 symfile_segment_data_up.
3991
7f204339
RO
39922020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3993
e52a0f1b
RO
3994 PR build/25981
3995 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3996 Hardcode register numbers.
3997
7f204339
RO
3998 PR build/25981
3999 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4000 procfs_find_LDT_entry): Remove.
4001 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4002 procfs_find_LDT_entry): Remove.
4003 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4004 Remove.
4005
7f32a4d5
PA
40062020-05-17 Pedro Alves <palves@redhat.com>
4007 Andrew Burgess <andrew.burgess@embecosm.com>
4008 Keno Fischer <keno@juliacomputing.com>
4009
4010 PR gdb/25741
4011 * breakpoint.c (build_target_condition_list): Update comments.
4012 (build_target_command_list): Update comments and skip matching
4013 locations.
4014 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4015 a separate function. Simplify "set breakpoint auto-hw off"
4016 handling.
4017 (insert_breakpoints): Update comment.
4018 (tracepoint_locations_match): New parameter. For breakpoints,
4019 compare location types too, if the caller wants to.
4020 (handle_automatic_hardware_breakpoints): New functions.
4021 (bp_location_is_less_than): Also sort by location type and
4022 hardware breakpoint length.
4023 (update_global_location_list): Handle "set breakpoint auto-hw on"
4024 here.
4025 (update_breakpoint_locations): Ask breakpoint_locations_match to
4026 ignore location types.
4027
7d93a1e0
SM
40282020-05-16 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4031 type::name instead.
4032
d0e39ea2
SM
40332020-05-16 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (struct type) <name, set_name>: New methods.
4036 (TYPE_CODE): Use type::name. Change all call sites used to set
4037 the name to use type::set_name instead.
4038
2dab0c7b
TT
40392020-05-16 Tom Tromey <tom@tromey.com>
4040
4041 * top.c (quit_force): Update.
4042 * infrun.c (handle_no_resumed): Update.
4043 * top.h (all_uis): New function.
4044 (ALL_UIS): Remove.
4045
59f7bd8d
SM
40462020-05-16 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4049
9bf058f0
PA
40502020-05-16 Pedro Alves <palves@redhat.com>
4051
4052 * ia64-linux-nat.c
4053 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4054 Declare method.
4055 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4056
8f86ae1a
SM
40572020-05-15 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4060 (sparc64_adi_info): Likewise.
4061
d6bc0792
TT
40622020-05-15 Tom Tromey <tom@tromey.com>
4063
4064 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4065 block_objfile.
4066 (lookup_objfile_from_block): Remove.
4067 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4068 (lookup_global_symbol): Use block_objfile.
4069 * symtab.h (lookup_objfile_from_block): Don't declare.
4070 * printcmd.c (clear_dangling_display_expressions): Use
4071 block_objfile.
4072 * parse.c (operator_check_standard): Use block_objfile.
4073
8c14c3a3
TT
40742020-05-15 Tom Tromey <tom@tromey.com>
4075
4076 * language.c (language_alloc_type_symbol): Set
4077 SYMBOL_SECTION.
4078 * symtab.c (initialize_objfile_symbol): Remove.
4079 (allocate_symbol): Remove.
4080 (allocate_template_symbol): Remove.
4081 * dwarf2/read.c (fixup_go_packaging): Use "new".
4082 (new_symbol): Use "new".
4083 (read_variable): Don't call initialize_objfile_symbol. Use
4084 "new".
4085 (read_func_scope): Use "new".
4086 * xcoffread.c (process_xcoff_symbol): Don't call
4087 initialize_objfile_symbol.
4088 (SYMBOL_DUP): Remove.
4089 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4090 "new".
4091 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4092 (allocate_template_symbol): Don't declare.
4093 (struct symbol): Add copy constructor. Change defaults.
4094 * jit.c (finalize_symtab): Use "new".
4095 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4096 Use "new".
4097 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4098 (common_block_end): Use "new".
4099 * mdebugread.c (parse_symbol): Use "new".
4100 (new_symbol): Likewise.
4101
5b4a1a8d
PW
41022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4103
4104 * NEWS: Mention changes to help and apropos.
4105
57b4f16e
PW
41062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4107
4108 * command.h (enum command_class): Improve comments, document
4109 that class_alias is for user-defined aliases, give the class
4110 name for each class, remove unused class_xdb.
4111 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4112 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4113 by a precise class.
4114 * infcmd.c (_initialize_infcmd): Likewise.
4115 * reverse.c (_initialize_reverse): Likewise.
4116 * stack.c (_initialize_stack): Likewise.
4117 * symfile.c (_initialize_symfile): Likewise.
4118 * tracepoint.c (_initialize_tracepoint): Likewise.
4119
7c05caf7
PW
41202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4121
4122 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4123 when their aliased command is traversed.
4124 (help_cmd): Add fput_command_names_styled call to
4125 output command name and aliases when command has an alias.
4126
3b3aaacb
PW
41272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4128
4129 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4130 * cli/cli-decode.c (help_cmd_list): Declare as static,
4131 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4132 a command together with the command.
4133 (fput_command_name_styled, fput_command_names_styled): New functions.
4134 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4135 fput_command_name_styled.
4136 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4137 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4138
7aa1b46f
PW
41392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4140
4141 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4142 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4143 * command.h (cmd_show_list): Likewise.
4144 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4145 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4146
89bcba74
PW
41472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4148
4149 * unittests/command-def-selftests.c (traverse_command_structure):
4150 Verify all commands of a list have the same prefix command and
4151 that only the top cmdlist commands have a null prefix.
4152
3f4d92eb
PW
41532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4154
4155 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4156 as prefix, not one of its aliases.
4157 (set_cmd_prefix): Remove.
4158 (do_add_cmd): Centralize the setting of the prefix of a command, when
4159 command is defined after its full chain of prefix commands.
4160 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4161 (add_setshow_cmd_full): Likewise.
4162 (update_prefix_field_of_prefixed_commands): New function.
4163 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4164 update_prefix_field_of_prefixed_commands.
4165 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4166 addresses of remote_set_cmdlist and remote_show_cmdlist given
4167 as argument, not the address of an argument.
4168 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4169 * gdb/remote.c (_initialize_remote): Likewise.
4170
0605465f
PW
41712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172
4173 * cli/cli-cmds.c (alias_command): Check for an existing alias
4174 using lookup_cmd_composition, as valid_command_p is too strict
4175 and forbids aliases that are the prefix of an existing alias
4176 or command.
4177 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4178 command is properly recognised as a valid command.
4179
58e6ac70
PW
41802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * unittests/help-doc-selftests.c: Rename to
4183 unittests/command-def-selftests.c
4184 * unittests/command-def-selftests.c (help_doc_tests): Update some
4185 comments.
4186 (command_structure_tests, traverse_command_structure): New namespace
4187 and function.
4188 (command_structure_invariants_tests): New function.
4189 (_initialize_command_def_selftests) Renamed from
4190 _initialize_help_doc_selftests, register command_structure_invariants
4191 selftest.
4192
a7b9ceb8
PW
41932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4194
4195 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4196 an alias of 'show'.
4197
b2188a06
JB
41982020-05-15 Joel Brobecker <brobecker@adacore.com>
4199
4200 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4201 ada_is_fixed_point_type. Update all callers.
4202 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4203 all callers.
4204 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4205 Update all callers.
4206 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4207 print_fixed_point_type. Update all callers.
4208 * ada-valprint.c (ada_value_print_num): Replace call to
4209 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4210
a51951c2
KB
42112020-05-14 Kevin Buettner <kevinb@redhat.com>
4212
4213 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4214 processors.
4215 (cpu_supports_bts): Add CV_AMD case.
4216
29d6859f
LM
42172020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4218 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * infrun.c (stop_all_threads): Collect multiple wait events at
4221 each pass.
4222
78134374
SM
42232020-05-14 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4226 type::code instead.
4227
67607e24
SM
42282020-05-14 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * gdbtypes.h (struct type) <code, set_code>: New methods.
4231 (TYPE_CODE): Use type::code. Change all call sites used to set
4232 the code to use type::set_code instead.
4233
a05575d3
TBA
42342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4235 Tom de Vries <tdevries@suse.de>
4236 Pedro Alves <palves@redhat.com>
4237
4238 PR threads/25478
4239 * infrun.c (stop_all_threads): Do NOT ignore
4240 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4241 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4242 received.
4243 (handle_no_resumed): Remove code handling a live inferior with no
4244 threads.
4245 * remote.c (has_single_non_exited_thread): New.
4246 (remote_target::update_thread_list): Do not delete a thread if is
4247 the last thread of the process.
4248 * thread.c (thread_select): Call delete_exited_threads instead of
4249 prune_threads.
4250
6ad82919
TBA
42512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4252
4253 * infrun.c (stop_all_threads): Enable/disable thread events of all
4254 targets. Move a debug message denoting the end of the function
4255 into the SCOPED_EXIT block.
4256
d890404b
TBA
42572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258
4259 * process-stratum-target.h: Include <set>.
4260 (all_non_exited_process_targets, switch_to_target_no_thread): New
4261 function declarations.
4262 * process-stratum-target.c (all_non_exited_process_targets)
4263 (switch_to_target_no_thread): New function implementations.
4264
293b3ebc
TBA
42652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 * infrun.c (handle_inferior_event): Extract out a piece of code
4268 into...
4269 (mark_non_executing_threads): ...this new function.
4270
7ca9b62a
TBA
42712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4272
4273 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4274 use.
4275
fc75c28b
TBA
42762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4277
4278 * regcache.c (regcache_read_pc_protected): New function
4279 implementation that returns 0 if the PC cannot read via
4280 'regcache_read_pc'.
4281 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4282 instead of 'regcache_read_pc'.
4283 (keep_going_pass_signal): Ditto.
4284
a89febbd
TT
42852020-05-13 Tom Tromey <tromey@adacore.com>
4286
4287 * ada-lang.c (align_value): Remove.
4288 (ada_template_to_fixed_record_type_1): Use align_up.
4289
f7e23710
TBA
42902020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4291
4292 * async-event.c: Update the copyright year.
4293 * async-event.h: Update the copyright year.
4294
02ff80c2
SM
42952020-05-12 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * objfiles.h (is_addr_in_objfile,
4298 shared_objfile_contains_address_p): Return bool.
4299 * objfile.c (is_addr_in_objfile,
4300 shared_objfile_contains_address_p): Return bool.
4301
4fd6c7e8
TT
43022020-05-11 Tom Tromey <tromey@adacore.com>
4303
4304 * cli/cli-cmds.c (info_command): Restore.
4305 (_initialize_cli_cmds): Use add_prefix_command for "info".
4306 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4307
5eb68a39
TT
43082020-05-11 Tom Tromey <tromey@adacore.com>
4309
4310 * ada-lang.c (ada_value_primitive_field): Now public.
4311 * ada-lang.h (ada_value_primitive_field): Declare.
4312 * ada-valprint.c (print_field_values): Use
4313 ada_value_primitive_field for wrapper fields.
4314
7666722f
TV
43152020-05-11 Tom de Vries <tdevries@suse.de>
4316
4317 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4318 MODULE_DOMAIN.
4319
3ee6bb11
TV
43202020-05-11 Tom de Vries <tdevries@suse.de>
4321
4322 PR symtab/25941
4323 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4324 with length 0, if not gdb-produced.
4325 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4326
43434996
TV
43272020-05-09 Tom de Vries <tdevries@suse.de>
4328
4329 PR gdb/25955
4330 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4331 calculation.
4332
2f78cffc
TT
43332020-05-09 Tom Tromey <tom@tromey.com>
4334
4335 * top.c (server_command): Now bool.
4336 * top.h (server_command): Now bool.
4337
4f7bc5ed
TT
43382020-05-08 Tom Tromey <tromey@adacore.com>
4339
4340 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4341 already being processed.
4342
8be4b118
TT
43432020-05-08 Tom Tromey <tom@tromey.com>
4344
4345 * printcmd.c (struct display) <next>: Remove.
4346 <display>: New constructor.
4347 <exp_string>: Now a std::string.
4348 <enabled_p>: Now a bool.
4349 (display_number): Move definition earlier.
4350 (displays): Rename from display_chain. Now a std::vector.
4351 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4352 (display_command): Update.
4353 (do_one_display, disable_display)
4354 (enable_disable_display_command, do_enable_disable_display):
4355 Update.
4356 (free_display): Remove.
4357 (clear_displays): Rewrite.
4358 (delete_display): Update.
4359 (map_display_numbers): Use function_view. Remove "data"
4360 parameter. Update.
4361 (do_delete_display): Remove.
4362 (undisplay_command): Update.
4363 (do_one_display, do_displays, disable_display)
4364 (info_display_command): Update.
4365 (do_enable_disable_display): Remove.
4366 (enable_disable_display_command)
4367 (clear_dangling_display_expressions): Update.
4368
94c93c35
TT
43692020-05-08 Tom Tromey <tom@tromey.com>
4370
4371 * symtab.c (set_symbol_cache_size)
4372 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4373 (maintenance_print_symbol_cache_statistics): Update.
4374 * symmisc.c (print_symbol_bcache_statistics)
4375 (print_objfile_statistics, maintenance_print_objfiles)
4376 (maintenance_info_symtabs, maintenance_check_symtabs)
4377 (maintenance_expand_symtabs, maintenance_info_line_tables):
4378 Update.
4379 * symfile-debug.c (set_debug_symfile): Update.
4380 * source.c (forget_cached_source_info): Update.
4381 * python/python.c (gdbpy_progspaces): Update.
4382 * psymtab.c (maintenance_info_psymtabs): Update.
4383 * probe.c (parse_probes): Update.
4384 * linespec.c (iterate_over_all_matching_symtabs)
4385 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4386 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4387 * exec.c (exec_target::close): Update.
4388 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4389 * breakpoint.c (print_one_breakpoint_location)
4390 (create_longjmp_master_breakpoint)
4391 (create_std_terminate_master_breakpoint): Update.
4392 * progspace.c (program_spaces): Now a std::vector.
4393 (maybe_new_address_space): Update.
4394 (add_program_space): Remove.
4395 (program_space::program_space): Update.
4396 (remove_program_space): Update.
4397 (number_of_program_spaces): Remove.
4398 (print_program_space, update_address_spaces): Update.
4399 * progspace.h (program_spaces): Change type.
4400 (ALL_PSPACES): Remove.
4401 (number_of_program_spaces): Don't declare.
4402 (struct program_space) <next>: Remove.
4403
a1fd1ac9
TT
44042020-05-08 Tom Tromey <tom@tromey.com>
4405
4406 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4407 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4408 (enable_break): Update.
4409 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4410 (frv_fdpic_find_canonical_descriptor): Update.
4411 (frv_fetch_objfile_link_map): Update.
4412 * progspace.c (program_space::free_all_objfiles): Update.
4413 (program_space::solibs): New method.
4414 * progspace.h (struct program_space) <solibs>: New method.
4415 * solist.h (master_so_list): Don't declare.
4416 (ALL_SO_LIBS): Remove.
4417 * solib.h (so_list_head): Remove.
4418 (update_solib_list): Update comment.
4419 * solib.c (master_so_list): Remove.
4420 (solib_used, update_solib_list, solib_add)
4421 (info_sharedlibrary_command, clear_solib)
4422 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4423
38eae084
TT
44242020-05-08 Tom Tromey <tom@tromey.com>
4425
4426 * extension.c (extension_languages): Now a std::array.
4427 (ALL_EXTENSION_LANGUAGES): Remove.
4428 (get_ext_lang_defn, get_ext_lang_of_file)
4429 (eval_ext_lang_from_control_command): Update.
4430 (finish_ext_lang_initialization)
4431 (auto_load_ext_lang_scripts_for_objfile)
4432 (ext_lang_type_printers::ext_lang_type_printers)
4433 (apply_ext_lang_type_printers)
4434 (ext_lang_type_printers::~ext_lang_type_printers)
4435 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4436 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4437 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4438 (get_matching_xmethod_workers, ext_lang_colorize)
4439 (ext_lang_before_prompt): Update.
4440 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4441
596dc4ad
TT
44422020-05-08 Tom Tromey <tom@tromey.com>
4443
4444 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4445 overload.
4446 <swap_string, m_string>: Remove.
4447 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4448 Update.
4449 * stabsread.c (define_symbol, read_type): Update.
4450 * linespec.c (find_linespec_symbols): Update.
4451 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4452 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4453 * dbxread.c (read_dbx_symtab): Update.
4454 * cp-support.h (cp_canonicalize_string_full)
4455 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4456 Return unique_xmalloc_ptr.
4457 * cp-support.c (inspect_type): Update.
4458 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4459 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4460 Likewise.
4461 * c-typeprint.c (print_name_maybe_canonical): Update.
4462 * break-catch-throw.c (check_status_exception_catchpoint):
4463 Update.
4464
bf4cb9be
TV
44652020-05-08 Tom de Vries <tdevries@suse.de>
4466
4467 * infrun.c (follow_fork): Copy current_line and current_symtab to
4468 child thread.
4469
a1b68f28
SM
44702020-05-07 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * async-event.c (struct async_signal_handler, struct
4473 async_event_handler): Reformat, remove typedef.
4474
98d48915
SM
44752020-05-07 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4478 access thistype->main_type->dyn_prop_list directly.
4479
7aa91313
SM
44802020-05-07 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4483 (remove_dyn_prop): Remove. Update all users to use
4484 type::remove_dyn_prop.
4485 * gdbtypes.c (remove_dyn_prop): Rename to...
4486 (type::remove_dyn_prop): ... this.
4487
5c54719c
SM
44882020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4489
4490 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4491 (add_dyn_prop): Remove. Update all users to use
4492 type::add_dyn_prop.
4493 * gdbtypes.c (add_dyn_prop): Rename to...
4494 (type::add_dyn_prop): ... this.
4495
24e99c6c
SM
44962020-05-07 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4499 (get_dyn_prop): Remove. Update all users to use
4500 type::dyn_prop.
4501 * gdbtypes.c (get_dyn_prop): Rename to...
4502 (type::dyn_prop): ... this.
4503
0d4bf016
SM
45042020-05-06 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4507
ac4a4f1c
SM
45082020-05-06 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4511 instruction, skip it if it's there.
4512
a3bbacc1
SM
45132020-05-05 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4516
c3236f84
SM
45172020-05-04 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4520 * gdbtypes.c (recursive_dump_type): Remove use of
4521 TYPE_INCOMPLETE.
4522
3b6acaee
TT
45232020-05-03 Tom Tromey <tom@tromey.com>
4524
4525 * breakpoint.c (catch_command, tcatch_command): Remove.
4526 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4527 add_show_prefix_cmd.
4528 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4529 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4530 Remove.
4531 (add_internal_problem_command): Use add_basic_prefix_cmd,
4532 add_show_prefix_cmd.
4533 * mips-tdep.c (set_mipsfpu_command): Remove.
4534 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4535 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4536 (_initialize_index_cache): Use add_basic_prefix_cmd.
4537 * memattr.c (dummy_cmd): Remove.
4538 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4539 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4540 (_initialize_tui_win): Use add_basic_prefix_cmd,
4541 add_show_prefix_cmd.
4542 * cli/cli-logging.c (set_logging_command): Remove.
4543 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4544 add_show_prefix_cmd.
4545 (show_logging_command): Remove.
4546 * target.c (target_command): Remove.
4547 (add_target): Use add_basic_prefix_cmd.
4548
a51119cd
HD
45492020-05-02 Hannes Domani <ssbssa@yahoo.de>
4550
4551 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4552
652fc23a 45532020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4554
652fc23a
PW
4555 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4556 info_command.
4557
117539e6
KR
45582020-04-30 Kamil Rytarowski <n54@gmx.com>
4559
4560 * nbsd-nat.c (nbsd_enable_proc_events)
4561 (nbsd_nat_target::post_startup_inferior): Add.
4562 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4563 (nbsd_nat_target::update_thread_list): Rewrite.
4564 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4565 "PTRACE_LWP_CREATE".
4566 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4567
102e38eb 45682020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4569
102e38eb
PW
4570 * stack.c (_initialize_stack): Remove duplicated creation
4571 of "frame" command and "f" alias.
4572
ee9d1e5f
HD
45732020-04-30 Hannes Domani <ssbssa@yahoo.de>
4574
4575 PR gdb/18706
4576 * gdbtypes.c (check_typedef): Calculate size of array of
4577 stubbed type.
4578
627c7fb8
HD
45792020-04-30 Hannes Domani <ssbssa@yahoo.de>
4580
4581 PR gdb/15559
4582 * i386-tdep.c (i386_push_dummy_call): Call
4583 i386_thiscall_push_dummy_call.
4584 (i386_thiscall_push_dummy_call): New function.
4585 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4586 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4587 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4588
ffc2844e
SM
45892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbarch.sh (do_read): Add shellcheck disable directive for
4592 warning SC2162.
4593
1207375d
SM
45942020-04-29 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4597 "referenced but not assigned" warning.
4598
9fdb2916
SM
45992020-04-29 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbarch.sh: Remove code that sets fallbackdefault.
4602
759cea5e
SM
46032020-04-29 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbarch.sh: Use shell operators && and || instead of
4606 -a and -o.
4607
cb02ab24
SM
46082020-04-29 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbarch.sh: Use $(...) instead of `...`.
4611
a6fc5ffc
SM
46122020-04-29 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbarch.sh: Use double quotes around variables.
4615
8d113d13
SM
46162020-04-29 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * gdbarch.sh: Use %s with printf, instead of variables in the
4619 format string.
4620
ed6acedd
TT
46212020-04-29 Tom Tromey <tromey@adacore.com>
4622
4623 PR ada/25875:
4624 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4625 type fields here.
4626 (read_enumeration_type): Call
4627 update_enumeration_type_from_children later. Update comments.
4628 (process_enumeration_scope): Don't create type fields.
4629
b68b1b58
KR
46302020-04-29 Kamil Rytarowski <n54@gmx.com>
4631
4632 * nbsd-tdep.c: Include "xml-syscall.h".
4633 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4634
f94b2e03
KR
46352020-04-29 Kamil Rytarowski <n54@gmx.com>
4636
4637 * nbsd-nat.c: Include "sys/wait.h".
4638 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4639 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4640 (nbsd_nat_target::remove_exec_catchpoint)
4641 (nbsd_nat_target::set_syscall_catchpoint): Add.
4642 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4643 (nbsd_nat_target::insert_exec_catchpoint)
4644 (nbsd_nat_target::remove_exec_catchpoint)
4645 (nbsd_nat_target::set_syscall_catchpoint): Add.
4646 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4647 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4648 `nbsd_get_syscall_number'.
4649
fc49bc72
TT
46502020-04-29 Tom Tromey <tom@tromey.com>
4651
4652 * stack.c (print_block_frame_labels): Remove.
4653
d642b692
HD
46542020-04-29 Hannes Domani <ssbssa@yahoo.de>
4655
4656 PR gdb/17320
4657 * ada-valprint.c (val_print_packed_array_elements): Move array
4658 end bracket to new line.
4659 (ada_val_print_string): Remove extra spaces before first array
4660 element.
4661 * c-valprint.c (c_value_print_array): Likewise.
4662 * m2-valprint.c (m2_print_array_contents): Likewise.
4663 (m2_value_print_inner): Likewise.
4664 * p-valprint.c (pascal_value_print_inner): Likewise.
4665 * valprint.c (generic_val_print_array): Likewise.
4666 (value_print_array_elements): Move first array element and array
4667 end bracket to new line.
4668
ea90f227
TV
46692020-04-29 Tom de Vries <tdevries@suse.de>
4670
4671 PR symtab/25889
4672 * linespec.c (find_method): Fix ix calculation.
4673
4498ef4f
KR
46742020-04-28 Kamil Rytarowski <n54@gmx.com>
4675
4676 * syscalls/update-netbsd.sh: New file.
4677 * syscalls/netbsd.xml: Regenerate.
4678 * data-directory/Makefile.in: Register `netbsd.xml' in
4679 `SYSCALLS_FILES'.
4680
a55e30b5
SM
46812020-04-28 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * syscalls/update-freebsd.sh: Add double quotes.
4684
2b2fbab8
TT
46852020-04-28 Tom Tromey <tom@tromey.com>
4686
4687 * NEWS: Update.
4688 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4689 (cmdpy_init): Allow class_tui.
4690
a65189c9
TV
46912020-04-28 Mark Williams <mark@myosotissp.com>
4692
4693 PR gdb/24480
4694 * dwarf2read.c: Add missing assingments to list_in_scope when
4695 start_symtab was already called.
4696
1b95cdb7
SM
46972020-04-28 Simon Marchi <simon.marchi@efficios.com>
4698
4699 PR gdb/25881
4700 * dwarf2/read.c (offset_map_type): Use
4701 gdb:hash_enum<sect_offset> as hash function.
4702
15cd93d0
TV
47032020-04-28 Tom de Vries <tdevries@suse.de>
4704
4705 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4706 with DW_AT_signature.
4707
1eb39914
SM
47082020-04-27 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * configure.ac: Remove check for fs_base/gs_base in
4711 user_regs_struct.
4712 * configure: Re-generate.
4713 * config.in: Re-generate.
4714 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4715 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4716 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4717
991a3e2e
LM
47182020-04-27 Luis Machado <luis.machado@linaro.org>
4719
4720 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4721 problematic inline frame unwinding situation.
4722 * frame.c (frame_id_computed_p): New function.
4723 * frame.h (frame_id_computed_p): New prototype.
4724
361ba0e8
TT
47252020-04-26 Tom Tromey <tom@tromey.com>
4726
4727 * command.h (enum command_class) <class_pseudo>: Remove.
4728
bc3609fd
PW
47292020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4730
4731 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4732 and whitespace.
4733
b9771db7
KR
47342020-04-25 Kamil Rytarowski <n54@gmx.com>
4735
ec16513e
SM
4736 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4737 `PT_GET_PROCESS_STATE' block.
b9771db7 4738
7151c1af
TT
47392020-04-24 Tom Tromey <tom@tromey.com>
4740
4741 * symtab.h (symbol_get_demangled_name): Don't declare.
4742 * symtab.c (symbol_get_demangled_name): Remove.
4743 (general_symbol_info::natural_name)
4744 (general_symbol_info::demangled_name): Update.
4745
906bb4c5
TT
47462020-04-24 Tom Tromey <tom@tromey.com>
4747
4748 PR rust/25025:
4749 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4750
bcfe6157
TT
47512020-04-24 Tom Tromey <tom@tromey.com>
4752
4753 PR symtab/12707:
4754 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4755 exists.
4756 (new_symbol): Likewise.
4757 * compile/compile-object-load.c (get_out_value_type): Use
4758 symbol_matches_search_name.
4759
f049a313
TT
47602020-04-24 Tom Tromey <tom@tromey.com>
4761
4762 * dwarf2/read.c (add_partial_symbol): Do not call
4763 compute_and_set_names.
4764
76e288d1
TT
47652020-04-24 Tom Tromey <tom@tromey.com>
4766
4767 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4768 overload.
4769
2467f4f6
TT
47702020-04-24 Tom Tromey <tom@tromey.com>
4771
4772 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4773 (add_psymbol_to_list): New overload. Make old overload call new
4774 one.
4775 * psympriv.h (add_psymbol_to_list): New overload.
4776
e61108c9
TT
47772020-04-24 Tom Tromey <tom@tromey.com>
4778
4779 * dwarf2/read.c (partial_die_info::read) <case
4780 DW_AT_linkage_name>: Use value_as_string.
4781 (dwarf2_string_attr): Use value_as_string.
4782 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4783 method.
4784 * dwarf2/attribute.c (attribute::value_as_string): New method.
4785
8c87a452
TT
47862020-04-24 Tom Tromey <tom@tromey.com>
4787
4788 * symtab.c (general_symbol_info::natural_name)
4789 (general_symbol_info::demangled_name): Check for language_rust.
4790
787de330
TT
47912020-04-24 Tom Tromey <tom@tromey.com>
4792
4793 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4794 (dwarf2_physname): ... from here.
4795 (partial_die_info::read): Add Rust "{" hack.
4796
ff985671
TT
47972020-04-24 Tom Tromey <tom@tromey.com>
4798
4799 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4800 method.
4801 (symbol_set_demangled_name): Don't declare.
4802 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4803 symbol_set_demangled_name.
4804 (general_symbol_info::set_language)
4805 (general_symbol_info::compute_and_set_names): Update.
4806 * minsyms.c (minimal_symbol_reader::install): Update.
4807 * dwarf2/read.c (new_symbol): Update.
4808
1acda803
TT
48092020-04-24 Tom Tromey <tromey@adacore.com>
4810
4811 PR python/23662:
4812 * python/py-type.c (convert_field): Handle
4813 FIELD_LOC_KIND_DWARF_BLOCK.
4814 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4815 (typy_get_dynamic): Nw function.
4816 (type_object_getset): Add "dynamic".
4817 * NEWS: Add entry.
4818
d656f129
TT
48192020-04-24 Tom Tromey <tromey@adacore.com>
4820
4821 * ada-typeprint.c (print_choices, print_variant_part)
4822 (print_record_field_types_dynamic): New functions.
4823 (print_record_field_types): Use print_record_field_types_dynamic.
4824
7d79de9a
TT
48252020-04-24 Tom Tromey <tromey@adacore.com>
4826
4827 * dwarf2/read.c (handle_data_member_location): New overload.
4828 (dwarf2_add_field): Use it.
4829 (decode_locdesc): Add "computed" parameter. Update comment.
4830 * gdbtypes.c (is_dynamic_type_internal): Also look for
4831 FIELD_LOC_KIND_DWARF_BLOCK.
4832 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4833 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4834 virtual base classes.
4835 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4836 FIELD_LOC_KIND_DWARF_BLOCK.
4837
f8e89861
TT
48382020-04-24 Tom Tromey <tromey@adacore.com>
4839
4840 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4841 * gdbtypes.c (is_dynamic_type_internal): Check
4842 TYPE_HAS_DYNAMIC_LENGTH.
4843 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4844 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4845 New macros.
4846 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4847 constant.
4848
9c6a1327
TT
48492020-04-24 Tom Tromey <tromey@adacore.com>
4850
4851 * dwarf2/read.c (struct variant_field): Rewrite.
4852 (struct variant_part_builder): New.
4853 (struct nextfield): Remove "variant" field. Add "offset".
4854 (struct field_info): Add "current_variant_part" and
4855 "variant_parts".
4856 (alloc_discriminant_info): Remove.
4857 (alloc_rust_variant): New function.
4858 (quirk_rust_enum): Update.
4859 (dwarf2_add_field): Set "offset" member. Don't handle
4860 DW_TAG_variant_part.
4861 (offset_map_type): New typedef.
4862 (convert_variant_range, create_one_variant)
4863 (create_one_variant_part, create_variant_parts)
4864 (add_variant_property): New functions.
4865 (dwarf2_attach_fields_to_type): Call add_variant_property.
4866 (read_structure_type): Don't handle DW_TAG_variant_part.
4867 (handle_variant_part, handle_variant): New functions.
4868 (handle_struct_member_die): Use them.
4869 (process_structure_scope): Don't handle variant parts.
4870 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4871 (struct discriminant_info): Remove.
4872 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4873 (struct main_type) <flag_discriminated_union>: Remove.
4874 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4875 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4876 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4877 Update.
4878 * valops.c (value_union_variant): Remove.
4879 * value.h (value_union_variant): Don't declare.
4880
b249d2c2
TT
48812020-04-24 Tom Tromey <tromey@adacore.com>
4882
4883 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4884 (ada_value_primitive_packed_val): Update.
4885 * ada-valprint.c (ada_value_print_1): Update.
4886 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4887 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4888 just an address. Use evaluate_for_locexpr_baton.
4889 (dwarf2_evaluate_property): Update.
4890 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4891 array_view.
4892 * findvar.c (default_read_var_value): Update.
4893 * gdbtypes.c (compute_variant_fields_inner)
4894 (resolve_dynamic_type_internal): Update.
4895 (resolve_dynamic_type): Change type of valaddr parameter.
4896 * gdbtypes.h (resolve_dynamic_type): Update.
4897 * valarith.c (value_subscripted_rvalue): Update.
4898 * value.c (value_from_contents_and_address): Update.
4899
61122aa9
TT
49002020-04-24 Tom Tromey <tromey@adacore.com>
4901
4902 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4903 "push_initial_value" parameter.
4904 (dwarf2_evaluate_property): Likewise.
4905 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4906
ef83a141
TT
49072020-04-24 Tom Tromey <tromey@adacore.com>
4908
4909 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4910 (variant::matches, compute_variant_fields_recurse)
4911 (compute_variant_fields_inner, compute_variant_fields): New
4912 functions.
4913 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4914 Use resolved_type after type is made.
4915 (operator==): Add new cases.
4916 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4917 (struct discriminant_range, struct variant, struct variant_part):
4918 New.
4919 (union dynamic_prop_data) <variant_parts, original_type>: New
4920 members.
4921 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4922 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4923 constants.
4924 * value.c (unpack_bits_as_long): Now public.
4925 * value.h (unpack_bits_as_long): Declare.
4926
675127ec
TT
49272020-04-24 Tom Tromey <tromey@adacore.com>
4928
4929 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4930 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4931
9852ceef
HD
49322020-04-24 Hannes Domani <ssbssa@yahoo.de>
4933
4934 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4935
7632c6ce
KR
49362020-04-24 Kamil Rytarowski <n54@gmx.com>
4937
4938 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4939 (remove_fork_catchpoint, post_startup_inferior)
4940 (post_attach): Move...
4941 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4942 (remove_fork_catchpoint, post_startup_inferior)
4943 (post_attach): ...here.
4944 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4945 (remove_fork_catchpoint, post_startup_inferior)
4946 (post_attach): Move...
4947 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4948 (remove_fork_catchpoint, post_startup_inferior)
4949 (post_attach): ...here.
4950
7be2bb4f
TT
49512020-04-24 Tom Tromey <tromey@adacore.com>
4952
4953 * nat/windows-nat.h (struct windows_thread_info)
4954 <pc_adjusted>: New member.
4955 * windows-nat.c (windows_fetch_one_register): Check
4956 pc_adjusted.
4957 (windows_nat_target::get_windows_debug_event)
4958 (windows_nat_target::wait): Set pc_adjusted.
4959
f80cb3b4
TV
49602020-04-24 Tom de Vries <tdevries@suse.de>
4961
4962 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4963 Run gdb-add-index inside temp dir.
4964
29514b87
TT
49652020-04-23 Tom Tromey <tromey@adacore.com>
4966
4967 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4968 in loop.
4969
5939967b
LM
49702020-04-23 Luis Machado <luis.machado@linaro.org>
4971
4972 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4973 get_frame_register instead of gdbarch_unwind_pc.
4974
70bc38f5
TV
49752020-04-23 Tom de Vries <tdevries@suse.de>
4976
4977 * symtab.c (lookup_global_symbol): Prefer def over decl.
4978
de82891c
TV
49792020-04-23 Tom de Vries <tdevries@suse.de>
4980
4981 PR symtab/25807
4982 * block.c (best_symbol, better_symbol): Promote to external.
4983 * block.h (best_symbol, better_symbol): Declare.
4984 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4985 decl.
4986
ecc6c606
TT
49872020-04-23 Tom Tromey <tromey@adacore.com>
4988
4989 PR ada/25837:
4990 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4991 "const char *", not a "const std::string &".
4992 <name_and_matcher::operator==>: Update.
4993 * unittests/lookup_name_info-selftests.c: Change type of
4994 "result".
4995
740480b8
TT
49962020-04-23 Tom Tromey <tom@tromey.com>
4997
4998 * inferior.h (iterate_over_inferiors): Don't declare.
4999 * inferior.c (iterate_over_inferiors): Remove.
5000 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5001 Remove.
5002 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5003 use iterate_over_inferiors.
5004 (darwin_resume_inferior_it)
5005 (struct resume_inferior_threads_param)
5006 (darwin_resume_inferior_threads_it): Remove.
5007 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5008
ae3ab1f0
TV
50092020-04-23 Tom de Vries <tdevries@suse.de>
5010
5011 * blockframe.c (find_pc_partial_function): Use
5012 find_pc_sect_compunit_symtab rather than
5013 objfile->sf->qf->find_pc_sect_compunit_symtab.
5014
317d2668
TV
50152020-04-22 Tom de Vries <tdevries@suse.de>
5016
5017 PR symtab/25764
5018 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5019 in psymtabs.
5020
eea9e357
TV
50212020-04-22 Tom de Vries <tdevries@suse.de>
5022
5023 PR symtab/25801
5024 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5025 symtabs.
5026
3d5afab3
TV
50272020-04-22 Tom de Vries <tdevries@suse.de>
5028
5029 PR symtab/25700
5030 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5031 CU if already created.
5032
d43b7a2d
TBA
50332020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5034
5035 * infrun.c (displaced_step_fixup): Switch to the event_thread
5036 before calling displaced_step_restore, not after.
5037
d89edf9b
MM
50382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5039
5040 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5041 its inferior is not recorded by us.
5042 (record_btrace_target_open): Replace call to
5043 all_non_exited_threads () with call to current_inferior
5044 ()->non_exited_threads ().
5045 (record_btrace_target::stop_recording): Likewise.
5046 (record_btrace_target::close): Likewise.
5047 (record_btrace_target::wait): Likewise.
5048 (record_btrace_target::record_stop_replaying): Likewise.
5049
5897fd49
MM
50502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5051
5052 * btrace.c (btrace_enable): Throw an error on double enables and
5053 when enabling recording fails.
5054 (btrace_disable): Throw an error if the thread is not recorded.
5055
1a476b6d
MM
50562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5057
5058 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5059 request if we do not have a thread_info.
5060
4778a5f8
TV
50612020-04-21 Tom de Vries <tdevries@suse.de>
5062
5063 PR gdb/25471
5064 * thread.c
5065 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5066 exception in get_frame_id.
5067
0fa7617d
TT
50682020-04-20 Tom Tromey <tromey@adacore.com>
5069
5070 * python/python.c (struct gdbpy_event): Mark move constructor as
5071 noexcept.
5072 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5073 constructor as noexcept.
5074 * completer.h (struct completion_result): Mark move constructor as
5075 noexcept.
5076 * completer.c (completion_result::completion_result): Use
5077 initialization style. Don't call reset_match_list.
5078
ad23bda0
MS
50792020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5080
5081 * MAINTAINERS (Write After Approval): Add myself.
5082
45e1f031
TT
50832020-04-18 Tom Tromey <tom@tromey.com>
5084
5085 * windows-tdep.c (init_w32_command_list)
5086 (w32_prefix_command_valid): Restore.
5087 (_initialize_windows_tdep): Call init_w32_command_list.
5088
08feed99
TT
50892020-04-18 Tom Tromey <tom@tromey.com>
5090
5091 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5092 * value.c (value_fn_field): Update.
5093 * valops.c (find_function_in_inferior)
5094 (value_allocate_space_in_inferior): Update.
5095 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5096 Update.
5097 * tui/tui-source.c (tui_source_window::set_contents): Update.
5098 * symtab.c (lookup_global_or_static_symbol)
5099 (find_function_start_sal_1, skip_prologue_sal)
5100 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5101 * symmisc.c (dump_msymbols, dump_symtab_1)
5102 (maintenance_print_one_line_table): Update.
5103 * symfile.c (init_entry_point_info, section_is_mapped)
5104 (list_overlays_command, simple_read_overlay_table)
5105 (simple_overlay_update_1): Update.
5106 * stap-probe.c (handle_stap_probe): Update.
5107 * stabsread.c (dbx_init_float_type, define_symbol)
5108 (read_one_struct_field, read_enum_type, read_range_type): Update.
5109 * source.c (info_line_command): Update.
5110 * python/python.c (gdbpy_source_objfile_script)
5111 (gdbpy_execute_objfile_script): Update.
5112 * python/py-type.c (save_objfile_types): Update.
5113 * python/py-objfile.c (py_free_objfile): Update.
5114 * python/py-inferior.c (python_new_objfile): Update.
5115 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5116 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5117 (maintenance_check_psymtabs): Update.
5118 * printcmd.c (info_address_command): Update.
5119 * objfiles.h (struct objfile) <arch>: New method, from
5120 get_objfile_arch.
5121 (get_objfile_arch): Don't declare.
5122 * objfiles.c (get_objfile_arch): Remove.
5123 (filter_overlapping_sections): Update.
5124 * minsyms.c (msymbol_is_function): Update.
5125 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5126 (output_nondebug_symbol): Update.
5127 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5128 (mdebug_expand_psymtab): Update.
5129 * machoread.c (macho_add_oso_symfile): Update.
5130 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5131 Update.
5132 * linux-fork.c (checkpoint_command): Update.
5133 * linespec.c (convert_linespec_to_sals): Update.
5134 * jit.c (finalize_symtab): Update.
5135 * infrun.c (insert_exception_resume_from_probe): Update.
5136 * ia64-tdep.c (ia64_find_unwind_table): Update.
5137 * hppa-tdep.c (internalize_unwinds): Update.
5138 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5139 Update.
5140 * gcore.c (call_target_sbrk): Update.
5141 * elfread.c (record_minimal_symbol, elf_symtab_read)
5142 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5143 (elf_gnu_ifunc_resolve_by_got): Update.
5144 * dwarf2/read.c (create_addrmap_from_index)
5145 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5146 (read_debug_names_from_section)
5147 (process_psymtab_comp_unit_reader, add_partial_symbol)
5148 (add_partial_subprogram, process_full_comp_unit)
5149 (read_file_scope, read_func_scope, read_lexical_block_scope)
5150 (read_call_site_scope, dwarf2_ranges_read)
5151 (dwarf2_record_block_ranges, dwarf2_add_field)
5152 (mark_common_block_symbol_computed, read_tag_pointer_type)
5153 (read_tag_string_type, dwarf2_init_float_type)
5154 (dwarf2_init_complex_target_type, read_base_type)
5155 (partial_die_info::read, partial_die_info::read)
5156 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5157 (dwarf2_fetch_die_loc_sect_off): Update.
5158 * dwarf2/loc.c (dwarf2_find_location_expression)
5159 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5160 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5161 (dwarf2_loc_desc_get_symbol_read_needs)
5162 (locexpr_describe_location_piece, locexpr_describe_location_1)
5163 (loclist_describe_location): Update.
5164 * dwarf2/index-write.c (write_debug_names): Update.
5165 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5166 * dtrace-probe.c (dtrace_process_dof): Update.
5167 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5168 (process_one_symbol): Update.
5169 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5170 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5171 (coff_read_enum_type): Update.
5172 * cli/cli-cmds.c (edit_command, list_command): Update.
5173 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5174 * breakpoint.c (create_overlay_event_breakpoint)
5175 (create_longjmp_master_breakpoint)
5176 (create_std_terminate_master_breakpoint)
5177 (create_exception_master_breakpoint, get_sal_arch): Update.
5178 * block.c (block_gdbarch): Update.
5179 * annotate.c (annotate_source_line): Update.
5180
0743fc83
TT
51812020-04-17 Tom Tromey <tromey@adacore.com>
5182
5183 * auto-load.c (show_auto_load_cmd): Remove.
5184 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5185 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5186 (maintenance_print_arc_command): Remove.
5187 * tui/tui-win.c (tui_command): Remove.
5188 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5189 * tui/tui-layout.c (tui_layout_command): Remove.
5190 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5191 * python/python.c (user_set_python, user_show_python): Remove.
5192 (_initialize_python): Use add_basic_prefix_cmd,
5193 add_show_prefix_cmd.
5194 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5195 (install_gdb_commands): Use add_basic_prefix_cmd,
5196 add_show_prefix_cmd.
5197 (info_guile_command): Remove.
5198 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5199 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5200 add_show_prefix_cmd.
5201 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5202 Remove do_set and do_show parameters.
5203 * cli/cli-style.c (set_style, show_style): Remove.
5204 (_initialize_cli_style): Use add_basic_prefix_cmd,
5205 add_show_prefix_cmd.
5206 (cli_style_option::add_setshow_commands): Remove do_set and
5207 do_show parameters.
5208 (cli_style_option::add_setshow_commands): Use
5209 add_basic_prefix_cmd, add_show_prefix_cmd.
5210 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5211 (set_style_name): Remove.
5212 * cli/cli-dump.c (dump_command, append_command): Remove.
5213 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5214 (tekhex_dump_command, binary_dump_command)
5215 (binary_append_command): Remove.
5216 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5217 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5218 (init_w32_command_list): Remove; move into ...
5219 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5220 * valprint.c (set_print, show_print, set_print_raw)
5221 (show_print_raw): Remove.
5222 (_initialize_valprint): Use add_basic_prefix_cmd,
5223 add_show_prefix_cmd.
5224 * typeprint.c (set_print_type, show_print_type): Remove.
5225 (_initialize_typeprint): Use add_basic_prefix_cmd,
5226 add_show_prefix_cmd.
5227 * record.c (set_record_command, show_record_command): Remove.
5228 (_initialize_record): Use add_basic_prefix_cmd,
5229 add_show_prefix_cmd.
5230 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5231 add_show_prefix_cmd.
5232 (info_command, show_command, set_debug, show_debug): Remove.
5233 * top.h (set_history, show_history): Don't declare.
5234 * top.c (set_history, show_history): Remove.
5235 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5236 (unset_tdesc_cmd): Remove.
5237 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5238 add_show_prefix_cmd.
5239 * symtab.c (info_module_command): Remove.
5240 (_initialize_symtab): Use add_basic_prefix_cmd.
5241 * symfile.c (overlay_command): Remove.
5242 (_initialize_symfile): Use add_basic_prefix_cmd.
5243 * sparc64-tdep.c (info_adi_command): Remove.
5244 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5245 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5246 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5247 add_show_prefix_cmd.
5248 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5249 (_initialize_serial): Use add_basic_prefix_cmd,
5250 add_show_prefix_cmd.
5251 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5252 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5253 add_show_prefix_cmd.
5254 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5255 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5256 add_show_prefix_cmd.
5257 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5258 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5259 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5260 add_show_prefix_cmd.
5261 * remote.c (remote_command, set_remote_cmd): Remove.
5262 (_initialize_remote): Use add_basic_prefix_cmd.
5263 * record-full.c (set_record_full_command)
5264 (show_record_full_command): Remove.
5265 (_initialize_record_full): Use add_basic_prefix_cmd,
5266 add_show_prefix_cmd.
5267 * record-btrace.c (cmd_set_record_btrace)
5268 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5269 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5270 (cmd_show_record_btrace_pt): Remove.
5271 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5272 add_show_prefix_cmd.
5273 * ravenscar-thread.c (set_ravenscar_command)
5274 (show_ravenscar_command): Remove.
5275 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5276 add_show_prefix_cmd.
5277 * mips-tdep.c (show_mips_command, set_mips_command)
5278 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5279 add_show_prefix_cmd.
5280 * maint.c (maintenance_command, maintenance_info_command)
5281 (maintenance_check_command, maintenance_print_command)
5282 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5283 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5284 add_show_prefix_cmd.
5285 (show_per_command_cmd): Remove.
5286 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5287 Remove.
5288 (maintenance_show_test_settings_cmd): Remove.
5289 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5290 add_show_prefix_cmd.
5291 * maint-test-options.c (maintenance_test_options_command):
5292 Remove.
5293 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5294 * macrocmd.c (macro_command): Remove
5295 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5296 * language.c (set_check, show_check): Remove.
5297 (_initialize_language): Use add_basic_prefix_cmd,
5298 add_show_prefix_cmd.
5299 * infcmd.c (unset_command): Remove.
5300 (_initialize_infcmd): Use add_basic_prefix_cmd.
5301 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5302 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5303 add_show_prefix_cmd.
5304 * go32-nat.c (go32_info_dos_command): Remove.
5305 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5306 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5307 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5308 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5309 (_initialize_frame): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5312 (_initialize_dcache): Use add_basic_prefix_cmd,
5313 add_show_prefix_cmd.
5314 * cp-support.c (maint_cplus_command): Remove.
5315 (_initialize_cp_support): Use add_basic_prefix_cmd.
5316 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5317 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5318 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5319 add_basic_prefix_cmd, add_show_prefix_cmd.
5320 * breakpoint.c (save_command): Remove.
5321 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5322 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5323 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5324 add_show_prefix_cmd.
5325 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5326 (set_ada_command, show_ada_command): Remove.
5327 (_initialize_ada_language): Use add_basic_prefix_cmd,
5328 add_show_prefix_cmd.
5329 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5330
3557f442
KR
53312020-04-16 Kamil Rytarowski <n54@gmx.com>
5332
5333 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5334 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5335
16197208
SM
53362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5337
5338 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5339 warning messages.
5340
00ac85d3
SM
53412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5344 import table is not at beginning of .idata section.
5345
381ce63f
PA
53462020-04-16 Pedro Alves <palves@redhat.com>
5347
5348 * inferior.c (delete_inferior): Use delete operator directly
5349 instead of delete_program_space.
5350 * progspace.c (add_program_space): New, factored out from
5351 program_space::program_space.
5352 (remove_program_space): New, factored out from
5353 delete_program_space.
5354 (program_space::program_space): Remove intro comment. Rewrite.
5355 (program_space::~program_space): Remove intro comment. Call
5356 remove_program_space.
5357 (delete_program_space): Delete.
5358 * progspace.h (program_space::program_space): Make explicit. Move
5359 intro comment here, adjusted.
5360 (program_space::~program_space): Move intro comment here,
5361 adjusted.
5362 (delete_program_space): Remove.
5363
a010605f
TT
53642020-04-16 Tom Tromey <tromey@adacore.com>
5365
5366 * windows-nat.c (windows_nat::handle_access_violation): New
5367 function.
5368 * nat/windows-nat.h (handle_access_violation): Declare.
5369 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5370 windows-nat.c. Call handle_access_violation.
5371
efba5c23
TV
53722020-04-16 Tom de Vries <tdevries@suse.de>
5373
5374 PR symtab/25791
5375 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5376 CUs without psymtab.
5377
97ed802d
KB
53782020-04-16 Kevin Buettner <kevinb@redhat.com>
5379
5380 * python/python.c (do_start_initialization): Don't call
5381 PyEval_InitThreads for Python 3.9 and beyond.
5382
c7d64809
KR
53832020-04-15 Kamil Rytarowski <n54@gmx.com>
5384
5385 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5386 thread functions.
5387 (obsd_nat_target::wait): Likewise.
5388
ce127a96
TT
53892020-04-15 Tom Tromey <tromey@adacore.com>
5390
5391 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5392 (DEBUG_EXCEPT): Use debug_printf.
5393
99f1bc6a
AB
53942020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * completer.c (class completion_tracker::completion_hash_entry)
5397 <hash_name>: New member function.
5398 (completion_tracker::discard_completions): New callback to hash a
5399 completion_hash_entry, pass this to htab_create_alloc.
5400
a0e9b532
JT
54012016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5402
5403 * windows-nat.c (windows_make_so): Warn rather than stopping with
5404 an error if realpath() fails.
5405
06ca5dd4
KR
54062020-04-14 Kamil Rytarowski <n54@gmx.com>
5407
5408 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5409 (nbsd_nat_target::info_proc): Add do_status.
5410
194d088f
TV
54112020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5412 Tom de Vries <tdevries@suse.de>
5413
5414 PR symtab/25718
5415 * psympriv.h (struct partial_symtab::read_symtab)
5416 (struct partial_symtab::expand_psymtab)
5417 (struct partial_symtab::read_dependencies): Update comments.
5418 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5419 read_symtab for includer.
5420 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5421 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5422 (struct dwarf2_include_psymtab::m_readin): Remove.
5423 (struct dwarf2_include_psymtab::includer): New member function.
5424 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5425
c1a66c06
TV
54262020-04-14 Tom de Vries <tdevries@suse.de>
5427
5428 PR symtab/25720
5429 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5430 with NULL symbol_matcher and lookup_name.
5431 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5432 and lookup_name.
5433 * dwarf2/read.c (dw2_expand_symtabs_matching)
5434 (dw2_debug_names_expand_symtabs_matching): Same.
5435 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5436 Make lookup_name a pointer. Update comment.
5437 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5438 lookup_name being a pointer.
5439 * symfile.c (expand_symtabs_matching): Same.
5440 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5441 * linespec.c (iterate_over_all_matching_symtabs): Same.
5442
400b5eca
TT
54432020-04-13 Tom Tromey <tom@tromey.com>
5444
5445 * run-on-main-thread.c: Update include.
5446 * unittests/main-thread-selftests.c: Update include.
5447 * tui/tui-win.c: Update include.
5448 * tui/tui-io.c: Update include.
5449 * tui/tui-interp.c: Update include.
5450 * tui/tui-hooks.c: Update include.
5451 * top.h: Update include.
5452 * top.c: Update include.
5453 * ser-base.c: Update include.
5454 * remote.c: Update include.
5455 * remote-notif.c: Update include.
5456 * remote-fileio.c: Update include.
5457 * record-full.c: Update include.
5458 * record-btrace.c: Update include.
5459 * python/python.c: Update include.
5460 * posix-hdep.c: Update include.
5461 * mingw-hdep.c: Update include.
5462 * mi/mi-main.c: Update include.
5463 * mi/mi-interp.c: Update include.
5464 * main.c: Update include.
5465 * linux-nat.c: Update include.
5466 * interps.c: Update include.
5467 * infrun.c: Update include.
5468 * inf-loop.c: Update include.
5469 * event-top.c: Update include.
5470 * event-loop.c: Move to ../gdbsupport/.
5471 * event-loop.h: Move to ../gdbsupport/.
5472 * async-event.h: Update include.
5473 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5474
93b54c8e
TT
54752020-04-13 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-win.c: Include async-event.h.
5478 * remote.c: Include async-event.h.
5479 * remote-notif.c: Include async-event.h.
5480 * record-full.c: Include async-event.h.
5481 * record-btrace.c: Include async-event.h.
5482 * infrun.c: Include async-event.h.
5483 * event-top.c: Include async-event.h.
5484 * event-loop.h: Move some declarations to async-event.h.
5485 * event-loop.c: Don't include ser-event.h or top.h. Move some
5486 code to async-event.c.
5487 * async-event.h: New file.
5488 * async-event.c: New file.
5489 * Makefile.in (COMMON_SFILES): Add async-event.c.
5490 (HFILES_NO_SRCDIR): Add async-event.h.
5491
c1cd3163
TT
54922020-04-13 Tom Tromey <tom@tromey.com>
5493
5494 * utils.c (flush_streams): New function.
5495 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5496
29f2bf4f
TT
54972020-04-13 Tom Tromey <tom@tromey.com>
5498
5499 * event-loop.c (handle_file_event): Use warning, not
5500 printf_unfiltered.
5501
98029d02
TT
55022020-04-13 Tom Tromey <tom@tromey.com>
5503
5504 * event-loop.c: Include <chrono>.
5505
06cc9596
TT
55062020-04-13 Tom Tromey <tom@tromey.com>
5507
5508 * gdb_select.h: Move to ../gdbsupport/.
5509 * event-loop.c: Update include path.
5510 * top.c: Update include path.
5511 * ser-base.c: Update include path.
5512 * ui-file.c: Update include path.
5513 * ser-tcp.c: Update include path.
5514 * guile/scm-ports.c: Update include path.
5515 * posix-hdep.c: Update include path.
5516 * ser-unix.c: Update include path.
5517 * gdb_usleep.c: Update include path.
5518 * mingw-hdep.c: Update include path.
5519 * inflow.c: Update include path.
5520 * infrun.c: Update include path.
5521 * event-top.c: Update include path.
5522
8ae8e197
TT
55232020-04-13 Tom Tromey <tom@tromey.com>
5524
5525 * configure: Rebuild.
5526 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5527
58cf28e8
TT
55282020-04-13 Tom Tromey <tom@tromey.com>
5529
5530 * event-loop.h (start_event_loop): Don't declare.
5531 * event-loop.c (start_event_loop): Move...
5532 * main.c (start_event_loop): ...here. Now static.
5533
b7f999ae
SDJ
55342020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5535
5536 * MAINTAINERS: Update my email address.
5537
1085dfd4
KR
55382020-04-12 Kamil Rytarowski <n54@gmx.com>
5539
5540 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5541 IP_ALL.
5542
49d1d1f5
KR
55432020-04-12 Kamil Rytarowski <n54@gmx.com>
5544
5545 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5546 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5547
b4848d2a
KR
55482020-04-12 Kamil Rytarowski <n54@gmx.com>
5549
5550 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5551 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5552
51c133d5
KR
55532020-04-12 Kamil Rytarowski <n54@gmx.com>
5554
5555 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5556
54b8cbd0
KR
55572020-04-11 Kamil Rytarowski <n54@gmx.com>
5558
5559 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5560 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5561 (nbsd_nat_target::info_proc): New functions.
5562 * nbsd-nat.c (kinfo_get_vmmap): New function.
5563 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5564 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5565 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5566 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5567 functions.
5568 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5569 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5570 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5571 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5572 (KINFO_VME_FLAG_GROWS_DOWN): New.
5573
cf83625d
AS
55742020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5575
5576 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5577 bit shift.
5578
0c4311ab
TT
55792020-04-10 Tom Tromey <tromey@adacore.com>
5580
5581 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5582
3e65b3e9
TT
55832020-04-10 Tom Tromey <tromey@adacore.com>
5584
5585 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5586 separate debug files.
5587
13302e95
HD
55882020-04-10 Hannes Domani <ssbssa@yahoo.de>
5589
5590 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5591 Move to...
5592 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5593 ... here.
5594 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5595 Check for STATUS_WX86_BREAKPOINT.
5596 (windows_nat_target::wait): Same.
5597
bdfc1e8a
TV
55982020-04-10 Tom de Vries <tdevries@suse.de>
5599
5600 PR cli/25808
5601 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5602
f4460aec
SM
56032020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5604
5605 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5606 (Write After Approval): Remove Tom de Vries.
5607
a25198bb
BE
56082020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5609
5610 revert partially:
5611 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5612
aac66a4c
SM
5613 * buildsym.c (record_line): Fix undefined behavior and preserve
5614 lines at eof.
a25198bb 5615
206c98a6
KR
56162020-04-09 Kamil Rytarowski <n54@gmx.com>
5617
5618 * auxv.h (svr4_auxv_parse): New.
5619 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5620 and generic_auxv_parse.
5621 (svr4_auxv_parse): Add.
5622 * obsd-tdep.c: Include "auxv.h".
5623 (obsd_auxv_parse): Remove.
5624 (obsd_init_abi): Remove comment.
5625 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5626 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5627 * nbsd-tdep.c: Include "auxv.h".
5628 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5629
71fbdbaf
TT
56302020-04-08 Tom Tromey <tromey@adacore.com>
5631
5632 * nat/windows-nat.h (last_wait_event): Don't declare.
5633 (wait_for_debug_event): Update comment.
5634 * nat/windows-nat.c (last_wait_event): Now static.
5635
2c1d95e8
TT
56362020-04-08 Tom Tromey <tromey@adacore.com>
5637
5638 * windows-nat.c (wait_for_debug_event): Move to
5639 nat/windows-nat.c.
5640 * nat/windows-nat.h (wait_for_debug_event): Declare.
5641 * nat/windows-nat.c (wait_for_debug_event): Move from
5642 windows-nat.c. No longer static.
5643
d2977bc4
TT
56442020-04-08 Tom Tromey <tromey@adacore.com>
5645
5646 * windows-nat.c (get_windows_debug_event): Use
5647 fetch_pending_stop.
5648 * nat/windows-nat.h (fetch_pending_stop): Declare.
5649 * nat/windows-nat.c (fetch_pending_stop): New function.
5650
e758e19c
TT
56512020-04-08 Tom Tromey <tromey@adacore.com>
5652
5653 * windows-nat.c (windows_continue): Use matching_pending_stop and
5654 continue_last_debug_event.
5655 * nat/windows-nat.h (matching_pending_stop)
5656 (continue_last_debug_event): Declare.
5657 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5658 (matching_pending_stop, continue_last_debug_event): New
5659 functions.
5660
8d30e395
TT
56612020-04-08 Tom Tromey <tromey@adacore.com>
5662
5663 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5664 (handle_exception_result): Move to nat/windows-nat.h.
5665 (DEBUG_EXCEPTION_SIMPLE): Remove.
5666 (windows_nat::handle_ms_vc_exception): New function.
5667 (handle_exception): Move to nat/windows-nat.c.
5668 (get_windows_debug_event): Update.
5669 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5670 nat/windows-nat.c.
5671 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5672 (handle_exception_result): Move from windows-nat.c.
5673 (handle_exception): Declare.
5674 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5675 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5676 windows-nat.c.
5677
29de418d
TT
56782020-04-08 Tom Tromey <tromey@adacore.com>
5679
5680 * windows-nat.c (exception_count, event_count): Remove.
5681 (handle_exception, get_windows_debug_event)
5682 (do_initial_windows_stuff): Update.
5683
a816ba18
TT
56842020-04-08 Tom Tromey <tromey@adacore.com>
5685
5686 * windows-nat.c (windows_nat::handle_load_dll)
5687 (windows_nat::handle_unload_dll): Rename. No longer static.
5688 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5689 Declare.
5690
a00caa12
TT
56912020-04-08 Tom Tromey <tromey@adacore.com>
5692
5693 * complaints.h (stop_whining): Declare at top-level.
5694 (complaint): Don't declare stop_whining.
5695
d41b524f
TT
56962020-04-08 Tom Tromey <tromey@adacore.com>
5697
5698 * windows-nat.c (windows_nat::handle_output_debug_string):
5699 Rename. No longer static.
5700 * nat/windows-nat.h (handle_output_debug_string): Declare.
5701
3c76026d
TT
57022020-04-08 Tom Tromey <tromey@adacore.com>
5703
5704 * windows-nat.c (current_process_handle, current_process_id)
5705 (main_thread_id, last_sig, current_event, last_wait_event)
5706 (current_windows_thread, desired_stop_thread_id, pending_stops)
5707 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5708 (display_selectors, fake_create_process)
5709 (get_windows_debug_event): Update.
5710 * nat/windows-nat.h (current_process_handle, current_process_id)
5711 (main_thread_id, last_sig, current_event, last_wait_event)
5712 (current_windows_thread, desired_stop_thread_id, pending_stops)
5713 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5714 * nat/windows-nat.c (current_process_handle, current_process_id)
5715 (main_thread_id, last_sig, current_event, last_wait_event)
5716 (current_windows_thread, desired_stop_thread_id, pending_stops)
5717 (siginfo_er): New globals. Move from windows-nat.c.
5718
9d8679cc
TT
57192020-04-08 Tom Tromey <tromey@adacore.com>
5720
5721 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5722 (handle_load_dll): Update.
5723 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5724
28688adf
TT
57252020-04-08 Tom Tromey <tromey@adacore.com>
5726
5727 * windows-nat.c (enum thread_disposition_type): Move to
5728 nat/windows-nat.h.
5729 (windows_nat::thread_rec): Rename from thread_rec. No longer
5730 static.
5731 (windows_add_thread, windows_nat_target::fetch_registers)
5732 (windows_nat_target::store_registers, handle_exception)
5733 (windows_nat_target::resume, get_windows_debug_event)
5734 (windows_nat_target::get_tib_address)
5735 (windows_nat_target::thread_name)
5736 (windows_nat_target::thread_alive): Update.
5737 * nat/windows-nat.h (enum thread_disposition_type): Move from
5738 windows-nat.c.
5739 (thread_rec): Declare.
5740
4834dad0
TT
57412020-04-08 Tom Tromey <tromey@adacore.com>
5742
5743 * windows-nat.c: Add "using namespace".
5744 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5745 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5746
65bafd5b
TT
57472020-04-08 Tom Tromey <tromey@adacore.com>
5748
5749 * nat/windows-nat.h (struct windows_thread_info): Declare
5750 destructor.
5751 * nat/windows-nat.c (~windows_thread_info): New.
5752
0a4afda3
TT
57532020-04-08 Tom Tromey <tromey@adacore.com>
5754
5755 PR gdb/22992
5756 * windows-nat.c (current_event): Update comment.
5757 (last_wait_event, desired_stop_thread_id): New globals.
5758 (struct pending_stop): New.
5759 (pending_stops): New global.
5760 (windows_nat_target) <stopped_by_sw_breakpoint>
5761 <supports_stopped_by_sw_breakpoint>: New methods.
5762 (windows_fetch_one_register): Add assertions. Adjust PC.
5763 (windows_continue): Handle pending stops. Suspend other threads
5764 when stepping. Use last_wait_event
5765 (wait_for_debug_event): New function.
5766 (get_windows_debug_event): Use wait_for_debug_event. Handle
5767 pending stops. Queue spurious stops.
5768 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5769 (windows_nat_target::kill): Use wait_for_debug_event.
5770 * nat/windows-nat.h (struct windows_thread_info)
5771 <stopped_at_software_breakpoint>: New field.
5772 * nat/windows-nat.c (windows_thread_info::resume): Clear
5773 stopped_at_software_breakpoint.
5774
8e61ebec
TT
57752020-04-08 Tom Tromey <tromey@adacore.com>
5776
5777 * windows-nat.c (enum thread_disposition_type): New.
5778 (thread_rec): Replace "get_context" parameter with "disposition";
5779 change type.
5780 (windows_add_thread, windows_nat_target::fetch_registers)
5781 (windows_nat_target::store_registers, handle_exception)
5782 (windows_nat_target::resume, get_windows_debug_event)
5783 (windows_nat_target::get_tib_address)
5784 (windows_nat_target::thread_name)
5785 (windows_nat_target::thread_alive): Update.
5786
98a03287
TT
57872020-04-08 Tom Tromey <tromey@adacore.com>
5788
5789 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5790 (windows_continue): Use windows_continue::resume.
5791 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5792 resume>: Declare new methods.
5793 * nat/windows-nat.c: New file.
5794 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5795
7c7411bc
TT
57962020-04-08 Tom Tromey <tromey@adacore.com>
5797
5798 * windows-nat.c (windows_add_thread, windows_delete_thread)
5799 (windows_nat_target::fetch_registers)
5800 (windows_nat_target::store_registers, fake_create_process)
5801 (windows_nat_target::resume, windows_nat_target::resume)
5802 (get_windows_debug_event, windows_nat_target::wait)
5803 (windows_nat_target::pid_to_str)
5804 (windows_nat_target::get_tib_address)
5805 (windows_nat_target::get_ada_task_ptid)
5806 (windows_nat_target::thread_name)
5807 (windows_nat_target::thread_alive): Use lwp, not tid.
5808
2950fdf7
TT
58092020-04-08 Tom Tromey <tromey@adacore.com>
5810
5811 * windows-nat.c (handle_exception)
5812 (windows_nat_target::thread_name): Update.
5813 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5814 <name>: Now unique_xmalloc_ptr.
5815
62fe396b
TT
58162020-04-08 Tom Tromey <tromey@adacore.com>
5817
5818 * windows-nat.c (thread_rec)
5819 (windows_nat_target::fetch_registers): Update.
5820 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5821 Update comment.
5822 <debug_registers_changed, reload_context>: Now bool.
5823
e9534bd2
TT
58242020-04-08 Tom Tromey <tromey@adacore.com>
5825
5826 * windows-nat.c (windows_add_thread): Use new.
5827 (windows_init_thread_list, windows_delete_thread): Use delete.
5828 (get_windows_debug_event): Update.
5829 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5830 destructor, and initializers.
5831
ae1f8880
TT
58322020-04-08 Tom Tromey <tromey@adacore.com>
5833
5834 * windows-nat.c (struct windows_thread_info): Remove.
5835 * nat/windows-nat.h: New file.
5836
55a1e039
TT
58372020-04-08 Tom Tromey <tromey@adacore.com>
5838
5839 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5840 (thread_rec, windows_add_thread, windows_delete_thread)
5841 (windows_continue): Update.
5842
93366324
TT
58432020-04-08 Tom Tromey <tromey@adacore.com>
5844
5845 * windows-nat.c (struct windows_thread_info): Remove typedef.
5846 (thread_head): Remove.
5847 (thread_list): New global.
5848 (thread_rec, windows_add_thread, windows_init_thread_list)
5849 (windows_delete_thread, windows_continue): Update.
5850
0f2265e2
SM
58512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * windows-tdep.h (windows_init_abi): Add comment.
5854 (cygwin_init_abi): New declaration.
5855 * windows-tdep.c: Split signal enumeration in two, one for
5856 Windows and one for Cygwin.
5857 (windows_gdb_signal_to_target): Only deal with signal of the
5858 Windows OS ABI.
5859 (cygwin_gdb_signal_to_target): New function.
5860 (windows_init_abi): Rename to windows_init_abi_common, don't set
5861 gdb_signal_to_target gdbarch method. Add new new function with
5862 this name.
5863 (cygwin_init_abi): New function.
5864 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5865 comment. Don't call windows_init_abi.
5866 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5867 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5868 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5869 i386_windows_init_abi_common, don't call windows_init_abi. Add
5870 a new function of this name.
5871 (i386_cygwin_init_abi): New function.
5872 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5873 OS ABI Cygwin.
5874
3810f182
SM
58752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5878 parameter.c.
5879 (dwarf2_read_gdb_index): Update.
5880
063f8e80
KR
58812020-04-07 Kamil Rytarowski <n54@gmx.com>
5882
5883 * nbsd-tdep.c: Include "objfiles.h".
5884 (nbsd_skip_solib_resolver): New.
5885 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5886
85a9510c 58872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5888
5889 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5890 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5891 with DW_LLE_base_addressx are being emitted in DWARFv5.
5892 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5893 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5894 unsigned integer.
5895
9fc3eaae 58962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5897
5898 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5899 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5900 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5901 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5902 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5903 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5904 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5905
5906
41144253 59072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5908
5909 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5910 (read_loclist_index): New function definition.
5911 (lookup_loclist_base): New function definition.
5912 (read_loclist_header): New function definition.
5913 (dwarf2_cu): Add loclist_base and loclist_header field.
5914 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5915 (read_full_die_1): Read the value of DW_AT_loclists_base.
5916 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5917 (read_attribute_value): Handle DW_FORM_loclistx.
5918 (skip_one_die): Handle DW_FORM_loclistx.
5919 (loclist_header): New structure declaration.
5920 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5921
9f4e76a4
SM
59222020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5925 constructor. Remove `addr` parameter from other constructor and
5926 add `per_cu` parameter.
5927 * dwarf2/read.c (create_partial_symtab): Update.
5928
25c11aca
TV
59292020-04-07 Tom de Vries <tdevries@suse.de>
5930
5931 PR symtab/25796
5932 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5933 (partial_die_info::fixup): Inherit has_const_value.
5934
5707e24b
TV
59352020-04-07 Tom de Vries <tdevries@suse.de>
5936
5937 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5938 symbols without address.
5939
05f00e22
KR
59402020-04-06 Kamil Rytarowski <n54@gmx.com>
5941
5942 * nbsd-nat.h (struct thread_info): Add forward declaration.
5943 (nbsd_nat_target::thread_alive): Add.
5944 (nbsd_nat_target::thread_name): Likewise.
5945 (nbsd_nat_target::update_thread_list): Likewise.
5946 (update_thread_list::post_attach): Likewise.
5947 (post_attach::pid_to_str): Likewise.
5948 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5949 (nbsd_thread_lister): Add.
5950 (nbsd_nat_target::thread_alive): Likewise.
5951 (nbsd_nat_target::thread_name): Likewise.
5952 (nbsd_add_threads): Likewise.
5953 (update_thread_list::post_attach): Likewise.
5954 (nbsd_nat_target::update_thread_list): Likewise.
5955 (post_attach::pid_to_str): Likewise.
5956
6ee448cc
TT
59572020-04-06 Tom Tromey <tromey@adacore.com>
5958
5959 * ada-valprint.c (print_variant_part): Extract the variant field.
5960 (print_field_values): Use the field as the outer value when
5961 recursing.
5962
dea34e8c
TT
59632020-04-06 Tom Tromey <tromey@adacore.com>
5964
5965 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5966 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5967 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5968 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5969 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5970
93689ce9
TT
59712020-04-06 Tom Tromey <tromey@adacore.com>
5972
5973 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5974 TYPE_CODE_ERROR.
5975
79743962
KR
59762020-04-06 Kamil Rytarowski <n54@gmx.com>
5977
5978 * nbsd-tdep.c: Include "gdbarch.h".
5979 Define enum with NetBSD signal numbers.
5980 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5981 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5982 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5983 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5984 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5985 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5986 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5987 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5988 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5989 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5990 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5991 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5992
9e7c9a03
HD
59932020-04-03 Hannes Domani <ssbssa@yahoo.de>
5994
5995 PR gdb/25325
5996 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5997
d9e49b61
TT
59982020-04-03 Tom Tromey <tromey@adacore.com>
5999
6000 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6001 Read constant block.
6002
e0fc5c3f
SM
60032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6006 (gdb_bfd_get_full_section_contents): New declaration.
6007 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6008 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6009 gdb_bfd_get_full_section_contents.
6010
e2ff18a0
SM
60112020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * exec.c (build_section_table): Replace internal_error with
6014 gdb_assert.
6015 (section_table_xfer_memory_partial): Likewise.
6016 * mdebugread.c (parse_partial_symbols): Likewise.
6017 * psymtab.c (lookup_partial_symbol): Likewise.
6018 * utils.c (wrap_here): Likewise.
6019
0830d301
TT
60202020-04-02 Tom Tromey <tromey@adacore.com>
6021
6022 * f-lang.c (build_fortran_types): Use arch_type to initialize
6023 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6024
e7da7f8f
TT
60252020-04-02 Tom Tromey <tromey@adacore.com>
6026
6027 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6028 of attributes.
6029
c90d28ac
AB
60302020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6031 Bernd Edlinger <bernd.edlinger@hotmail.de>
6032 Tom Tromey <tromey@adacore.com>
6033
6034 * buildsym.c (buildsym_compunit::record_line): Remove
6035 deduplication code.
6036
1aa98955
TV
60372020-04-02 Tom de Vries <tdevries@suse.de>
6038
6039 PR ada/24671
6040 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6041
d3214198
TV
60422020-04-02 Tom de Vries <tdevries@suse.de>
6043
6044 * dwarf2/read.c (dwarf2_gdb_index_functions,
6045 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6046 NULL.
6047 * psymtab.c (psym_lookup_global_symbol_language): New function.
6048 (psym_functions): Init psym_lookup_global_symbol_language with
6049 psym_lookup_global_symbol_language.
6050 * symfile-debug.c (debug_sym_quick_functions): Init
6051 lookup_global_symbol_language with NULL.
6052 * symfile.c (set_initial_language): Remove fixme comment.
6053 * symfile.h (struct quick_symbol_functions): Add
6054 lookup_global_symbol_language.
6055 * symtab.c (find_quick_global_symbol_language): New function.
6056 (find_main_name): Use find_quick_global_symbol_language.
6057
2836752f
SM
60582020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6061
64dc2d4b
BE
60622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6063
6064 * buildsym.c (record_line): Fix undefined behavior and preserve
6065 lines at eof.
6066
bbe3dc41
BE
60672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6068
6069 * buildsym.c (record_line): Fix the resizing condition.
6070
6b4a335b
TT
60712020-04-01 Tom Tromey <tom@tromey.com>
6072
6073 * value.h (value_literal_complex): Add comment.
6074 * valops.c (value_literal_complex): Refer to value.h.
6075
3638a098
TT
60762020-04-01 Tom Tromey <tom@tromey.com>
6077
6078 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6079 (scalar_type): New rule, from typebase.
6080 (typebase): Use scalar_type. Recognize complex types.
6081 (field_name): Handle FLOAT_KEYWORD.
6082 (ident_tokens): Add _Complex and __complex__.
6083
c34e8714
TT
60842020-04-01 Tom Tromey <tom@tromey.com>
6085
6086 PR exp/25299:
6087 * valarith.c (promotion_type, complex_binop): New functions.
6088 (scalar_binop): Handle complex numbers. Use promotion_type.
6089 (value_pos, value_neg, value_complement): Handle complex numbers.
6090
fa649bb7
TT
60912020-04-01 Tom Tromey <tom@tromey.com>
6092
6093 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6094 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6095 (parse_number): Handle complex numbers.
6096
981c08ce
TT
60972020-04-01 Tom Tromey <tom@tromey.com>
6098
6099 * c-valprint.c (c_decorations): Change complex suffix to "i".
6100
4c99290d
TT
61012020-04-01 Tom Tromey <tom@tromey.com>
6102
6103 * valprint.c (generic_value_print_complex): Use accessors.
6104 * value.h (value_real_part, value_imaginary_part): Declare.
6105 * valops.c (value_real_part, value_imaginary_part): New
6106 functions.
6107 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6108
5b930b45
TT
61092020-04-01 Tom Tromey <tom@tromey.com>
6110
6111 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6112 (read_range_type): Update.
6113 * mdebugread.c (basic_type): Update.
6114 * go-lang.c (build_go_types): Use init_complex_type.
6115 * gdbtypes.h (struct main_type) <complex_type>: New member.
6116 (init_complex_type): Update.
6117 (arch_complex_type): Don't declare.
6118 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6119 Make name if none given. Use alloc_type_copy. Look for cached
6120 complex type.
6121 (arch_complex_type): Remove.
6122 (gdbtypes_post_init): Use init_complex_type.
6123 * f-lang.c (build_fortran_types): Use init_complex_type.
6124 * dwarf2/read.c (read_base_type): Update.
6125 * d-lang.c (build_d_types): Use init_complex_type.
6126 * ctfread.c (read_base_type): Update.
6127
53cccef1
TBA
61282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6129
6130 * infrun.c (stop_all_threads): Update assertion, plus when
6131 stopping threads, take into account that we might be trying
6132 to stop an all-stop target.
6133 (stop_waiting): Call 'stop_all_threads' if there exists a
6134 non-stop target.
6135
a0714d30
TBA
61362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6137
6138 * target.h (exists_non_stop_target): New function declaration.
6139 * target.c (exists_non_stop_target): New function.
6140
60e22c1e
HD
61412020-04-01 Hannes Domani <ssbssa@yahoo.de>
6142
6143 PR gdb/24789
6144 * eval.c (is_integral_or_integral_reference): New function.
6145 (evaluate_subexp_standard): Allow integer references in
6146 pointer arithmetic.
6147
e139a727
TBA
61482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6149
6150 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6151 check for no ptid in the stop reply when the target is non-stop.
6152
e0802d59
TT
61532020-04-01 Tom Tromey <tromey@adacore.com>
6154
6155 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6156 "name" parameter to rvalue reference. Initialize m_name_holder.
6157 <lookup_name_info>: New overloads.
6158 <name>: Return gdb::string_view.
6159 <c_str>: New method.
6160 <make_ignore_params>: Update.
6161 <search_name_hash>: Update.
6162 <language_lookup_name>: Return const char *.
6163 <m_name>: Change type.
6164 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6165 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6166 (lookup_name_info::match_any): Update.
6167 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6168 Update.
6169 * minsyms.c (linkage_name_str): Update.
6170 * language.c (default_symbol_name_matcher): Update.
6171 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6172 Update.
6173 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6174 (ada_lookup_name_info::ada_lookup_name_info): Update.
6175 (literal_symbol_name_matcher): Update.
6176
8c072cb6
TT
61772020-04-01 Tom Tromey <tromey@adacore.com>
6178
6179 * psymtab.c (psymtab_search_name): Remove function.
6180 (psym_lookup_symbol): Create search name and lookup name here.
6181 (lookup_partial_symbol): Remove "name" parameter; add
6182 lookup_name.
6183 (psym_expand_symtabs_for_function): Update.
6184
6f29a534
TT
61852020-03-31 Joel Jones <joelkevinjones@gmail.com>
6186
6187 PR tui/25597:
6188 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6189
af62665e
TT
61902020-03-31 Tom Tromey <tromey@adacore.com>
6191
6192 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6193 memcpy.
6194
d1a89da5
NC
61952020-03-30 Nelson Chu <nelson.chu@sifive.com>
6196
6197 * features/riscv/32bit-csr.xml: Regenerated.
6198 * features/riscv/64bit-csr.xml: Regenerated.
6199
d8af9068
TT
62002020-03-30 Tom Tromey <tromey@adacore.com>
6201
6202 * ada-valprint.c (print_variant_part): Update.
6203 * ada-lang.h (ada_which_variant_applies): Update.
6204 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6205 outer_valaddr parameters; replace with "outer" value parameter.
6206 (to_fixed_variant_branch_type): Update.
6207
227c0bf4
PFC
62082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6209
6210 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6211 <list>. Remove inclusion of observable.h.
6212 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6213 (struct arch_lwp_info): New struct.
6214 (class ppc_linux_dreg_interface): New class.
6215 (struct ppc_linux_process_info): New struct.
6216 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6217 <low_new_clone, low_forget_process, low_prepare_to_resume>
6218 <copy_thread_dreg_state, mark_thread_stale>
6219 <mark_debug_registers_changed, register_hw_breakpoint>
6220 <clear_hw_breakpoint, register_wp, clear_wp>
6221 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6222 <num_memory_accesses, get_trigger_type>
6223 <create_watchpoint_request, hwdebug_point_cmp>
6224 <init_arch_lwp_info, get_arch_lwp_info>
6225 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6226 methods.
6227 <struct ptid_hash>: New inner struct.
6228 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6229 members.
6230 (saved_dabr_value, hwdebug_info, max_slots_number)
6231 (struct hw_break_tuple, struct thread_points, ppc_threads)
6232 (have_ptrace_hwdebug_interface)
6233 (hwdebug_find_thread_points_by_tid)
6234 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6235 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6236 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6237 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6238 use m_dreg_interface.
6239 (hwdebug_point_cmp): Change to...
6240 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6241 reference arguments instead of pointers.
6242 (ppc_linux_nat_target::ranged_break_num_registers): Use
6243 m_dreg_interface.
6244 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6245 m_dreg_interface. Call register_hw_breakpoint.
6246 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6247 m_dreg_interface. Call clear_hw_breakpoint.
6248 (get_trigger_type): Change to...
6249 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6250 comment.
6251 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6252 use m_dreg_interface. Call register_hw_breakpoint.
6253 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6254 use m_dreg_interface. Call clear_hw_breakpoint.
6255 (can_use_watchpoint_cond_accel): Change to...
6256 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6257 method. Update comment, use m_dreg_interface and
6258 m_process_info.
6259 (calculate_dvc): Change to...
6260 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6261 m_dreg_interface.
6262 (num_memory_accesses): Change to...
6263 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6264 (check_condition): Change to...
6265 (ppc_linux_nat_target::check_condition): ...this method.
6266 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6267 comment, use m_dreg_interface.
6268 (create_watchpoint_request): Change to...
6269 (ppc_linux_nat_target::create_watchpoint_request): ...this
6270 method. Use m_dreg_interface.
6271 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6272 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6273 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6274 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6275 (ppc_linux_nat_target::low_forget_process)
6276 (ppc_linux_nat_target::low_new_fork)
6277 (ppc_linux_nat_target::low_new_clone)
6278 (ppc_linux_nat_target::low_delete_thread)
6279 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6280 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6281 only call mark_thread_stale.
6282 (ppc_linux_thread_exit): Remove.
6283 (ppc_linux_nat_target::stopped_data_address): Change to...
6284 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6285 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6286 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6287 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6288 comment. Call low_stopped_data_address.
6289 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6290 m_dreg_interface.
6291 (ppc_linux_nat_target::masked_watch_num_registers): Use
6292 m_dreg_interface.
6293 (ppc_linux_nat_target::copy_thread_dreg_state)
6294 (ppc_linux_nat_target::mark_thread_stale)
6295 (ppc_linux_nat_target::mark_debug_registers_changed)
6296 (ppc_linux_nat_target::register_hw_breakpoint)
6297 (ppc_linux_nat_target::clear_hw_breakpoint)
6298 (ppc_linux_nat_target::register_wp)
6299 (ppc_linux_nat_target::clear_wp)
6300 (ppc_linux_nat_target::init_arch_lwp_info)
6301 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6302 (_initialize_ppc_linux_nat): Remove observer callback.
6303
4db10d8f
PFC
63042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6305
6306 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6307 (ppc_linux_nat_target::auxv_parse)
6308 (ppc_linux_nat_target::read_description)
6309 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6310 Move up.
6311
1310c1b0
PFC
63122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6313
6314 * linux-nat.h (low_new_clone): New method.
6315 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6316
69b037c3
SM
63172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6320 (dbx_expand_psymtab): ... this.
6321 (start_psymtab): Update.
6322 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6323 (mdebug_expand_psymtab): ... this.
6324 (parse_partial_symbols): Update.
6325 (new_psymtab): Update.
6326 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6327 (xcoff_expand_psymtab): ... this.
6328 (xcoff_start_psymtab): Update.
6329
48993951
SM
63302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6331
6332 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6333 <expand_dependencies>: ... this.
6334 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6335 (partial_symtab::expand_dependencies): ... this.
6336 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6337 Update.
6338 (dwarf2_psymtab::expand_psymtab): Update.
6339 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6340 * mdebugread.c (psymtab_to_symtab_1): Update.
6341 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6342
3ad83046
SM
63432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6344
6345 * psympriv.h (discard_psymtab): Remove.
6346 * dbxread.c (dbx_end_psymtab): Update.
6347 * xcoffread.c (xcoff_end_psymtab): Update.
6348
4d1b9ab6
TT
63492020-03-28 Tom Tromey <tom@tromey.com>
6350
6351 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6352 comment.
6353
f1749218
TT
63542020-03-28 Tom Tromey <tom@tromey.com>
6355
6356 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6357
ebea7626
HD
63582020-03-27 Hannes Domani <ssbssa@yahoo.de>
6359
6360 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6361
a879b4d5
JB
63622020-03-26 John Baldwin <jhb@FreeBSD.org>
6363
6364 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6365
0826b30a
TT
63662020-03-26 Tom Tromey <tom@tromey.com>
6367
6368 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6369 (mark_common_block_symbol_computed, read_tag_string_type)
6370 (attr_to_dynamic_prop, read_subrange_type): Update.
6371 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6372 to be methods on struct attribute.
6373 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6374 (read_call_site_scope, partial_die_info::read)
6375 (partial_die_info::read, lookup_die_type, follow_die_ref):
6376 Update.
6377 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6378 from dwarf2_get_ref_die_offset.
6379 (attribute::constant_value): New method, from
6380 dwarf2_get_attr_constant_value.
6381 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6382 Declare method.
6383 <constant_value>: New method.
6384
2b2558bf
TT
63852020-03-26 Tom Tromey <tom@tromey.com>
6386
6387 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6388 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6389 (dwarf_type_encoding_name): Move to stringify.c.
6390 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6391 * dwarf2/stringify.c: New file.
6392 * dwarf2/stringify.h: New file.
6393
eeb64781
TT
63942020-03-26 Tom Tromey <tom@tromey.com>
6395
6396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6397 Rewrite.
6398
a39fdb41
TT
63992020-03-26 Tom Tromey <tom@tromey.com>
6400
6401 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6402 methods.
6403 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6404 (lookup_ranges_base): Likewise.
6405 (read_cutu_die_from_dwo, read_full_die_1): Update.
6406
436c571c
TT
64072020-03-26 Tom Tromey <tom@tromey.com>
6408
6409 * dwarf2/read.c (read_import_statement, read_file_scope)
6410 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6411 (read_lexical_block_scope, read_call_site_scope)
6412 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6413 (handle_struct_member_die, process_structure_scope)
6414 (update_enumeration_type_from_children)
6415 (process_enumeration_scope, read_array_type, read_common_block)
6416 (read_namespace, read_module, read_subroutine_type): Update.
6417 (sibling_die): Remove.
6418
052c8bb8
TT
64192020-03-26 Tom Tromey <tom@tromey.com>
6420
6421 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6422 (build_type_psymtabs_reader, read_structure_type)
6423 (read_enumeration_type, read_full_die_1): Update.
6424 (dwarf2_attr_no_follow): Move to die.h.
6425 * dwarf2/die.h (struct die_info) <attr>: New method.
6426
2b24b6e4
TT
64272020-03-26 Tom Tromey <tom@tromey.com>
6428
6429 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6430 <base_address>: Now an optional.
6431 (dwarf2_find_base_address, dwarf2_rnglists_process)
6432 (dwarf2_ranges_process, fill_in_loclist_baton)
6433 (dwarf2_symbol_mark_computed): Update.
6434
c2d50fd0
TT
64352020-03-26 Tom Tromey <tom@tromey.com>
6436
6437 * dwarf2/read.c (struct die_info): Move to die.h.
6438 * dwarf2/die.h: New file.
6439
0df7ad3a
TT
64402020-03-26 Tom Tromey <tom@tromey.com>
6441
6442 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6443 * dwarf2/read.c
6444 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6445 Move to line-header.c.
6446 (read_checked_initial_length_and_offset, read_formatted_entries):
6447 Likewise.
6448 (dwarf_decode_line_header): Split into two.
6449 * dwarf2/line-header.c
6450 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6451 Move from read.c.
6452 (read_checked_initial_length_and_offset, read_formatted_entries):
6453 Likewise.
6454 (dwarf_decode_line_header): New function, split from read.c.
6455
86c0bb4c
TT
64562020-03-26 Tom Tromey <tom@tromey.com>
6457
6458 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6459 Declare method.
6460 * dwarf2/read.c (read_attribute_value): Update.
6461 (dwarf2_per_objfile::read_line_string): Rename from
6462 read_indirect_line_string.
6463 (read_formatted_entries): Update.
6464
2ef46c2f
TT
64652020-03-26 Tom Tromey <tom@tromey.com>
6466
6467 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6468 variable.
6469
4f9c1eda
TT
64702020-03-26 Tom Tromey <tom@tromey.com>
6471
6472 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6473 const.
6474 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6475 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6476 parameter const.
6477
5a0e026f
TT
64782020-03-26 Tom Tromey <tom@tromey.com>
6479
6480 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6481 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6482 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6483 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6484
8844c11b
TT
64852020-03-26 Tom Tromey <tom@tromey.com>
6486
6487 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6488 file_names_size, file_full_name, file_file_name>: Use const.
6489 <file_name_at, file_names>: Add const overload.
6490 * dwarf2/line-header.c (line_header::file_file_name)
6491 (line_header::file_full_name): Update.
6492
c90ec28a
TT
64932020-03-26 Tom Tromey <tom@tromey.com>
6494
6495 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6496 (macro_start_file, consume_improper_spaces)
6497 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6498 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6499 (dwarf_decode_macros): Move to macro.c.
6500 * dwarf2/macro.c: New file.
6501 * dwarf2/macro.h: New file.
6502 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6503
4f44ae6c
TT
65042020-03-26 Tom Tromey <tom@tromey.com>
6505
6506 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6507 method.
6508 * dwarf2/section.c: New method. From
6509 read_indirect_string_at_offset_from.
6510 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6511 (read_indirect_string_at_offset_from): Move to section.c.
6512 (read_indirect_string_at_offset): Rewrite.
6513 (read_indirect_line_string_at_offset): Remove.
6514 (read_indirect_string, read_indirect_line_string)
6515 (dwarf_decode_macro_bytes): Update.
6516
a0194fa8
TT
65172020-03-26 Tom Tromey <tom@tromey.com>
6518
6519 * dwarf2/section.h (struct dwarf2_section_info)
6520 <overload_complaint>: Declare.
6521 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6522 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6523 Rename from dwarf2_section_buffer_overflow_complaint.
6524 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6525 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6526
3d27bbdb
TT
65272020-03-26 Tom Tromey <tom@tromey.com>
6528
6529 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6530 Declare.
6531 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6532 Move from read.c.
6533 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6534 to section.c.
6535
9eac9650
TT
65362020-03-26 Tom Tromey <tom@tromey.com>
6537
6538 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6539
bf80d710
TT
65402020-03-26 Tom Tromey <tom@tromey.com>
6541
6542 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6543 "builder".
6544 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6545 parameter.
6546 (dwarf_decode_macros): Update.
6547
0314b390
TT
65482020-03-26 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2/read.c (read_attribute_value): Update.
6551 (read_indirect_string_from_dwz): Move to dwz.c; change into
6552 method.
6553 (dwarf_decode_macro_bytes): Update.
6554 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6555 * dwarf2/dwz.c: New file.
6556 * Makefile.in (COMMON_SFILES): Add dwz.c.
6557
9fda78b6
TT
65582020-03-26 Tom Tromey <tom@tromey.com>
6559
6560 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6561 * dwarf2/read.c: Add include.
6562 * dwarf2/index-write.c: Add include.
6563 * dwarf2/index-cache.c: Add include.
6564 * dwarf2/dwz.h: New file.
6565
33aa3c10
TT
65662020-03-25 Tom Tromey <tom@tromey.com>
6567
6568 * compile/compile-object-load.c (get_out_value_type): Mention
6569 correct symbol name in error message.
6570
d503b685
HD
65712020-03-25 Hannes Domani <ssbssa@yahoo.de>
6572
6573 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6574
7b1eff95
TV
65752020-03-25 Tom de Vries <tdevries@suse.de>
6576
6577 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6578 * symmisc.c (dump_symtab_1): Print user and includes fields.
6579 (maintenance_info_symtabs): Same.
6580
dd895392
AB
65812020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 PR gdb/25534
6584 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6585 (riscv_regcache_cooked_write): New function.
6586 (riscv_push_dummy_call): Use new function.
6587 (riscv_return_value): Likewise.
6588
5ab2fbf1
SM
65892020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6590
6591 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6592 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6593 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6594 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6595 * infrun.c (follow_fork): Likewise.
6596 (follow_fork_inferior): Likewise.
6597 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6598 * linux-nat.h (class linux_nat_target): Likewise.
6599 * remote.c (class remote_target) <follow_fork>: Likewise.
6600 (remote_target::follow_fork): Likewise.
6601 * target-delegates.c: Re-generate.
6602 * target.c (default_follow_fork): Likewise.
6603 (target_follow_fork): Likewise.
6604 * target.h (struct target_ops) <follow_fork>: Likewise.
6605 (target_follow_fork): Likewise.
6606
a64fafb5
TV
66072020-03-24 Tom de Vries <tdevries@suse.de>
6608
6609 * psymtab.c (maintenance_info_psymtabs): Print user field.
6610
fe26d3a3
TT
66112020-03-20 Tom Tromey <tromey@adacore.com>
6612
6613 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6614 const.
6615 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6616 const.
6617
c884cc46
SM
66182020-03-20 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * ptrace.m4: Don't check for ptrace declaration.
6621 * config.in: Re-generate.
6622 * configure: Re-generate.
6623 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6624 not defined.
6625
1ff700c2
KR
66262020-03-20 Kamil Rytarowski <n54@gmx.com>
6627
6628 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6629 `PTRACE_TYPE_RET'.
6630 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6631 * sparc-nat.c (gdb_ptrace): Likewise.
6632 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6633
f7d4f0b1
TT
66342020-03-20 Tom Tromey <tromey@adacore.com>
6635
6636 * c-exp.y (lex_one_token): Fix assert.
6637
f67210ff
TT
66382020-03-20 Tom Tromey <tromey@adacore.com>
6639
6640 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6641 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6642 strncpy call.
6643
1773be9e
TT
66442020-03-20 Tom Tromey <tromey@adacore.com>
6645
6646 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6647
70304be9
TT
66482020-03-20 Tom Tromey <tromey@adacore.com>
6649
6650 * ada-valprint.c (print_variant_part): Remove parameters; switch
6651 to value-based API.
6652 (print_field_values): Likewise.
6653 (ada_val_print_struct_union): Likewise.
6654 (ada_value_print_1): Update.
6655
9faa006d
KR
66562020-03-20 Kamil Rytarowski <n54@gmx.com>
6657
6658 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6659 nbsd_nat_target instead of inf_ptrace_target.
6660 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6661 nbsd_nat_target.
6662
4a90f062
KR
66632020-03-20 Kamil Rytarowski <n54@gmx.com>
6664
6665 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6666 it to the ptrace call.
6667 * (store_registers): Likewise.
6668
66692020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6670
6671 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6672 it to the ptrace call.
6673 * (store_registers): Likewise.
6674
2d07da27
LM
66752020-03-19 Luis Machado <luis.machado@linaro.org>
6676
6677 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6678 valid, fetch vg value from ptrace.
6679
f09db380
KR
66802020-03-19 Kamil Rytarowski <n54@gmx.com>
6681 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6682 * inf-ptrace.c: Likewise.
6683 * (gdb_ptrace): Add.
6684 * (inf_ptrace_target::resume): Update.
6685 * (inf_ptrace_target::xfer_partial): Likewise.
6686 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6687 * (inf_ptrace_peek_poke): Update.
6688
fcc7376e
KR
66892020-03-19 Kamil Rytarowski <n54@gmx.com>
6690
6691 * x86-bsd-nat.c (gdb_ptrace): New.
6692 * (x86bsd_dr_set): Add new argument `ptid'.
6693 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6694 x86bsd_dr_set_addr): Update.
6695
cada5fc9
AB
66962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * remote.c (remote_target::process_stop_reply): Handle events for
6699 all threads differently.
6700
19a2740f
AB
67012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * completer.c (completion_tracker::remove_completion): Define new
6704 function.
6705 * completer.h (completion_tracker::remove_completion): Declare new
6706 function.
6707 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6708 when adding a C++ function symbol.
6709
724fd9ba
AB
67102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * completer.c (completion_tracker::completion_hash_entry): Define
6713 new class.
6714 (advance_to_filename_complete_word_point): Call
6715 recompute_lowest_common_denominator.
6716 (completion_tracker::completion_tracker): Call discard_completions
6717 to setup the hash table.
6718 (completion_tracker::discard_completions): Allow for being called
6719 from the constructor, pass new equal function, and element deleter
6720 when constructing the hash table. Initialise new class member
6721 variables.
6722 (completion_tracker::maybe_add_completion): Remove use of
6723 m_entries_vec, and store more information into m_entries_hash.
6724 (completion_tracker::recompute_lcd_visitor): New function, most
6725 content taken from...
6726 (completion_tracker::recompute_lowest_common_denominator):
6727 ...here, this now just visits each item in the hash calling the
6728 above visitor.
6729 (completion_tracker::build_completion_result): Remove use of
6730 m_entries_vec, call recompute_lowest_common_denominator.
6731 * completer.h (completion_tracker::have_completions): Remove use
6732 of m_entries_vec.
6733 (completion_tracker::completion_hash_entry): Declare new class.
6734 (completion_tracker::recompute_lowest_common_denominator): Change
6735 function signature.
6736 (completion_tracker::recompute_lcd_visitor): Declare new function.
6737 (completion_tracker::m_entries_vec): Delete.
6738 (completion_tracker::m_entries_hash): Initialize to NULL.
6739 (completion_tracker::m_lowest_common_denominator_valid): New
6740 member variable.
6741 (completion_tracker::m_lowest_common_denominator_max_length): New
6742 member variable.
6743
5a82b8a1
KR
67442020-03-17 Kamil Rytarowski <n54@gmx.com>
6745
6746 * regformats/regdef.h: Put reg in gdb namespace.
6747
fb516a69
KR
67482020-03-17 Kamil Rytarowski <n54@gmx.com>
6749
6750 * i386-bsd-nat.c (gdb_ptrace): New.
6751 * (i386bsd_fetch_inferior_registers,
6752 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6753 * (i386bsd_fetch_inferior_registers,
6754 i386bsd_store_inferior_registers) Use gdb_ptrace.
6755
1c0aa1fb
KR
67562020-03-17 Kamil Rytarowski <n54@gmx.com>
6757
6758 * amd64-bsd-nat.c (gdb_ptrace): New.
6759 * (amd64bsd_fetch_inferior_registers,
6760 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6761 * (amd64bsd_fetch_inferior_registers,
6762 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6763
5ccd2fb7
KR
67642020-03-17 Kamil Rytarowski <n54@gmx.com>
6765
6766 * user-regs.c (user_reg::read): Rename to...
6767 (user_reg::xread): ...this.
6768 * (append_user_reg): Rename argument `read' to `xread'.
6769 * (user_reg_add_builtin): Likewise.
6770 * (user_reg_add): Likewise.
6771 * (value_of_user_reg): Likewise.
6772
2108a63a
KR
67732020-03-17 Kamil Rytarowski <n54@gmx.com>
6774
6775 * sparc-nat.c (gdb_ptrace): New.
6776 * sparc-nat.c (sparc_fetch_inferior_registers)
6777 (sparc_store_inferior_registers) Remove obsolete comment.
6778 * sparc-nat.c (sparc_fetch_inferior_registers)
6779 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6780 * sparc-nat.c (sparc_fetch_inferior_registers)
6781 (sparc_store_inferior_registers) Use gdb_ptrace.
6782
a225c9a8
KR
67832020-03-17 Kamil Rytarowski <n54@gmx.com>
6784
6785 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6786 it to the ptrace call.
6787 * sh-nbsd-nat.c (store_registers): Likewise.
6788
98097623
KR
67892020-03-17 Kamil Rytarowski <n54@gmx.com>
6790
6791 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6792 nbsd_nat_target instead of inf_ptrace_target.
6793 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6794 nbsd_nat_target.
6795
9e38d619
KR
67962020-03-17 Kamil Rytarowski <n54@gmx.com>
6797
6798 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6799
a2ecbe9f
KR
68002020-03-17 Kamil Rytarowski <n54@gmx.com>
6801
6802 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6803 <sys/sysctl.h>.
6804 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6805
58990295
TV
68062020-03-17 Tom de Vries <tdevries@suse.de>
6807
6808 PR gdb/23710
6809 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6810 fields.
6811 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6812 fields.
6813 (process_imported_unit_die): Skip import of c++ CUs.
6814
771dd3a8
TT
68152020-03-16 Tom Tromey <tom@tromey.com>
6816
6817 * p-valprint.c (pascal_object_print_value): Initialize
6818 base_value.
6819
817a7585
AK
68202020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6821 Shahab Vahedi <shahab@synopsys.com>
6822
6823 * Makefile.in: Add arch/arc.o
6824 * configure.tgt: Likewise.
6825 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6826 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6827 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6828 * arc-tdep.h (arc_read_description): Add proto type.
6829 * arch/arc.c: New file.
6830 * arch/arc.h: Likewise.
6831 * features/Makefile: Replace old target descriptions with new.
6832 * features/arc-arcompact.c: Remove.
6833 * features/arc-arcompact.xml: Likewise.
6834 * features/arc-v2.c: Likewise
6835 * features/arc-v2.xml: Likewise
6836 * features/arc/aux-arcompact.xml: New file.
6837 * features/arc/aux-v2.xml: Likewise.
6838 * features/arc/core-arcompact.xml: Likewise.
6839 * features/arc/core-v2.xml: Likewise.
6840 * features/arc/aux-arcompact.c: Generate.
6841 * features/arc/aux-v2.c: Likewise.
6842 * features/arc/core-arcompact.c: Likewise.
6843 * features/arc/core-v2.c: Likewise.
6844 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6845
67430cd0
TT
68462020-03-16 Tom Tromey <tromey@adacore.com>
6847
6848 PR gdb/25663:
6849 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6850 putting value into bcache.
6851
30efb6c7
SM
68522020-03-16 Simon Marchi <simon.marchi@efficios.com>
6853
6854 PR gdb/21500
6855 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6856 to...
6857 (amd64_windows_init_abi_common): ... this. Don't set size of
6858 long type.
6859 (amd64_windows_init_abi): New function.
6860 (amd64_cygwin_init_abi): New function.
6861 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6862 the Cygwin OS ABI.
6863 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6864 comment.
6865
8db52437
SM
68662020-03-16 Simon Marchi <simon.marchi@efficios.com>
6867
6868 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6869 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6870 (pe_import_directory_entry): New struct type.
6871 (is_linked_with_cygwin_dll): New function.
6872 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6873 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6874 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6875
5982a56a
SM
68762020-03-16 Simon Marchi <simon.marchi@efficios.com>
6877
6878 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6879 i386_cygwin_core_osabi_sniffer.
6880
7a1998df
SM
68812020-03-16 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * i386-cygwin-tdep.c: Rename to...
6884 * i386-windows-tdep.c: ... this.
6885 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6886 i386-windows-tdep.c.
6887 * configure.tgt: Likewise.
6888
053205cc
SM
68892020-03-16 Simon Marchi <simon.marchi@efficios.com>
6890
6891 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6892 * osabi.c (gdb_osabi_names): Add "Windows".
6893 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6894 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6895 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6896 i386_cygwin_osabi_sniffer.
6897 (_initialize_i386_cygwin_tdep): Register OS ABI
6898 GDB_OSABI_WINDOWS for i386.
6899 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6900 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6901 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6902 for x86-64.
6903 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6904 when the target matches '*-*-mingw*'.
6905
fe4b2ee6
SM
69062020-03-16 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * defs.h (enum gdb_osabi): Move to...
6909 * osabi.h (enum gdb_osabi): ... here.
6910 * gdbarch.sh: Include osabi.h in gdbarch.h.
6911 * gdbarch.h: Re-generate.
6912
cb9b645d
SM
69132020-03-16 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6916 function.
6917 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6918
3293bbaf
TT
69192020-03-14 Tom Tromey <tom@tromey.com>
6920
6921 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6922 for C++.
6923 (c_type_print_modifier): Likewise. Add "language" parameter.
6924 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6925 (c_type_print_base_1): Update.
6926 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6927 constants.
6928 * type-stack.c (type_stack::insert): Handle tp_atomic and
6929 tp_restrict.
6930 (type_stack::follow_type_instance_flags): Likewise.
6931 (type_stack::follow_types): Likewise. Merge type-following code.
6932 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6933 (space_identifier, cv_with_space_id)
6934 (const_or_volatile_or_space_identifier_noopt)
6935 (const_or_volatile_or_space_identifier): Remove.
6936 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6937 rules.
6938 (ptr_operator, typebase): Update.
6939 (enum token_flag) <FLAG_C>: New constant.
6940 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6941 "_Atomic".
6942 (lex_one_token): Handle FLAG_C.
6943
154151a6
KR
69442020-03-14 Kamil Rytarowski <n54@gmx.com>
6945
6946 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6947 it to the ptrace call.
6948 * m68k-bsd-nat.c (store_registers): Likewise.
6949
bc107784
KR
69502020-03-14 Kamil Rytarowski <n54@gmx.com>
6951
6952 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6953 gdb_byte *.
6954 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6955 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6956 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6957
01a80117
KR
69582020-03-14 Kamil Rytarowski <n54@gmx.com>
6959
6960 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6961 nbsd_nat_target instead of inf_ptrace_target.
6962 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6963 nbsd_nat_target.
6964
f90280ca
KR
69652020-03-14 Kamil Rytarowski <n54@gmx.com>
6966
6967 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6968 register_t.
6969
6def66f1
KR
69702020-03-14 Kamil Rytarowski <n54@gmx.com>
6971
6972 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6973 it to the ptrace call.
6974 * alpha-bsd-nat.c (store_registers): Likewise.
6975
66eaca97
KR
69762020-03-14 Kamil Rytarowski <n54@gmx.com>
6977
6978 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6979 includes.
6980 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6981 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6982 fill_fpregset): Likewise.
6983
4fed520b
KR
69842020-03-14 Kamil Rytarowski <n54@gmx.com>
6985
6986 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6987 nbsd_nat_target instead of inf_ptrace_target.
6988 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6989 nbsd_nat_target.
6990
2190cf06
KR
69912020-03-14 Kamil Rytarowski <n54@gmx.com>
6992
6993 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6994 register_t.
6995
75c56d3d
KR
69962020-03-14 Kamil Rytarowski <n54@gmx.com>
6997
6998 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6999 it to the ptrace call.
7000 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7001 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7002 * arm-nbsd-nat.c (store_register): Likewise.
7003 * arm-nbsd-nat.c (store_regs): Likewise.
7004 * arm-nbsd-nat.c (store_fp_register): Likewise.
7005 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7006
6018d381
KR
70072020-03-14 Kamil Rytarowski <n54@gmx.com>
7008
7009 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7010 nbsd_nat_target instead of inf_ptrace_target.
7011 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7012 nbsd_nat_target.
7013
013f99f0
KR
70142020-03-14 Kamil Rytarowski <n54@gmx.com>
7015
7016 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7017 it to the ptrace call.
7018 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7019
12753073
KR
70202020-03-14 Kamil Rytarowski <n54@gmx.com>
7021
6227b330
KR
7022 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7023 it to the ptrace call.
7024 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7025
70262020-03-14 Kamil Rytarowski <n54@gmx.com>
7027
7028 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7029 gdb_byte *.
12753073
KR
7030 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7031
d5be5fa4
KR
70322020-03-14 Kamil Rytarowski <n54@gmx.com>
7033
7034 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7035 instead of inf_ptrace_target.
7036 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7037 nbsd_nat_target.
7038
8110f842
KR
70392020-03-14 Kamil Rytarowski <n54@gmx.com>
7040
7041 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7042 register_t.
7043
52feded7
KR
70442020-03-14 Kamil Rytarowski <n54@gmx.com>
7045
7046 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7047 register_t.
7048
25567eee
KR
70492020-03-14 Kamil Rytarowski <n54@gmx.com>
7050
7051 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7052 register_t.
7053
426a9c18
TT
70542020-03-13 Tom Tromey <tom@tromey.com>
7055
7056 * value.h (val_print): Don't declare.
7057 * valprint.h (val_print_array_elements)
7058 (val_print_scalar_formatted, generic_val_print): Don't declare.
7059 * valprint.c (generic_val_print_array): Take a struct value.
7060 (generic_val_print_ptr, generic_val_print_memberptr)
7061 (generic_val_print_bool, generic_val_print_int)
7062 (generic_val_print_char, generic_val_print_complex)
7063 (generic_val_print): Remove.
7064 (generic_value_print): Update.
7065 (do_val_print): Remove unused parameters. Don't call
7066 la_val_print.
7067 (val_print): Remove.
7068 (common_val_print): Update. Don't call value_check_printable.
7069 (val_print_scalar_formatted, val_print_array_elements): Remove.
7070 * rust-lang.c (rust_val_print): Remove.
7071 (rust_language_defn): Update.
7072 * p-valprint.c (pascal_val_print): Remove.
7073 (pascal_value_print_inner): Update.
7074 (pascal_object_print_val_fields, pascal_object_print_val):
7075 Remove.
7076 (pascal_object_print_static_field): Update.
7077 * p-lang.h (pascal_val_print): Don't declare.
7078 * p-lang.c (pascal_language_defn): Update.
7079 * opencl-lang.c (opencl_language_defn): Update.
7080 * objc-lang.c (objc_language_defn): Update.
7081 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7082 * m2-lang.h (m2_val_print): Don't declare.
7083 * m2-lang.c (m2_language_defn): Update.
7084 * language.h (struct language_defn) <la_val_print>: Remove.
7085 * language.c (unk_lang_value_print_inner): Rename. Change
7086 argument types.
7087 (unknown_language_defn, auto_language_defn): Update.
7088 * go-valprint.c (go_val_print): Remove.
7089 * go-lang.h (go_val_print): Don't declare.
7090 * go-lang.c (go_language_defn): Update.
7091 * f-valprint.c (f_val_print): Remove.
7092 * f-lang.h (f_value_print): Don't declare.
7093 * f-lang.c (f_language_defn): Update.
7094 * d-valprint.c (d_val_print): Remove.
7095 * d-lang.h (d_value_print): Don't declare.
7096 * d-lang.c (d_language_defn): Update.
7097 * cp-valprint.c (cp_print_value_fields)
7098 (cp_print_value_fields_rtti, cp_print_value): Remove.
7099 (cp_print_static_field): Update.
7100 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7101 (c_val_print_struct, c_val_print_union, c_val_print_int)
7102 (c_val_print_memberptr, c_val_print): Remove.
7103 * c-lang.h (c_val_print_array, cp_print_value_fields)
7104 (cp_print_value_fields_rtti): Don't declare.
7105 * c-lang.c (c_language_defn, cplus_language_defn)
7106 (asm_language_defn, minimal_language_defn): Update.
7107 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7108 (ada_val_print_enum): Take a struct value.
7109 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7110 (ada_val_print): Remove.
7111 (ada_value_print_1): Update.
7112 (printable_val_type): Remove.
7113 * ada-lang.h (ada_val_print): Don't declare.
7114 * ada-lang.c (ada_language_defn): Update.
7115
42331a1e
TT
71162020-03-13 Tom Tromey <tom@tromey.com>
7117
7118 * valprint.c (do_val_print): Update.
7119 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7120 a struct value.
7121 (value_to_value_object_no_release): Declare.
7122 * python/py-value.c (value_to_value_object_no_release): New
7123 function.
7124 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7125 struct value.
7126 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7127 function.
7128 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7129 a struct value.
7130 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7131 Declare.
7132 (gdbscm_apply_val_pretty_printer): Take a struct value.
7133 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7134 value.
7135 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7136 value.
7137 * extension-priv.h (struct extension_language_ops)
7138 <apply_val_pretty_printer>: Take a struct value.
7139 * cp-valprint.c (cp_print_value): Create a struct value.
7140 (cp_print_value): Update.
7141
3a916a97
TT
71422020-03-13 Tom Tromey <tom@tromey.com>
7143
7144 * ada-valprint.c (print_field_values): Call common_val_print.
7145
b59eac37
TT
71462020-03-13 Tom Tromey <tom@tromey.com>
7147
7148 * ada-valprint.c (val_print_packed_array_elements): Remove
7149 bitoffset and val parameters. Call common_val_print.
7150 (ada_val_print_string): Remove offset, address, and original_value
7151 parameters.
7152 (ada_val_print_array): Update.
7153 (ada_value_print_array): New function.
7154 (ada_value_print_1): Call it.
7155
03371129
TT
71562020-03-13 Tom Tromey <tom@tromey.com>
7157
7158 * ada-valprint.c (ada_value_print): Use common_val_print.
7159
2e088f8b
TT
71602020-03-13 Tom Tromey <tom@tromey.com>
7161
7162 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7163
39ef85a8
TT
71642020-03-13 Tom Tromey <tom@tromey.com>
7165
7166 * ada-valprint.c (ada_value_print_num): New function.
7167 (ada_value_print_1): Use it.
7168
b9fa6e07
TT
71692020-03-13 Tom Tromey <tom@tromey.com>
7170
7171 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7172
416595d6
TT
71732020-03-13 Tom Tromey <tom@tromey.com>
7174
7175 * ada-valprint.c (ada_value_print_ptr): New function.
7176 (ada_value_print_1): Use it.
7177
5b5e15ec
TT
71782020-03-13 Tom Tromey <tom@tromey.com>
7179
7180 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7181 call common_val_print.
7182 (ada_val_print_1): Update.
7183 (ada_value_print_1): New function.
7184 (ada_value_print_inner): Rewrite.
7185
fbf54e75
TT
71862020-03-13 Tom Tromey <tom@tromey.com>
7187
7188 * cp-valprint.c (cp_print_value_fields): Update.
7189 (cp_print_value): New function.
7190
64b653ca
TT
71912020-03-13 Tom Tromey <tom@tromey.com>
7192
7193 * m2-valprint.c (m2_value_print_inner): Use
7194 cp_print_value_fields.
7195 * cp-valprint.c (cp_print_value_fields): New function.
7196 * c-valprint.c (c_value_print_struct): New function.
7197 (c_value_print_inner): Use c_value_print_struct.
7198 * c-lang.h (cp_print_value_fields): Declare.
7199
6999f067
TT
72002020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * c-valprint.c (c_value_print_array): New function.
7203 (c_value_print_inner): Use it.
7204
ce80b8bd
TT
72052020-03-13 Tom Tromey <tom@tromey.com>
7206
7207 * c-valprint.c (c_value_print_memberptr): New function.
7208 (c_value_print_inner): Use it.
7209
2faac269
TT
72102020-03-13 Tom Tromey <tom@tromey.com>
7211
7212 * c-valprint.c (c_value_print_int): New function.
7213 (c_value_print_inner): Use it.
7214
da3e2c29
TT
72152020-03-13 Tom Tromey <tom@tromey.com>
7216
7217 * c-valprint.c (c_value_print_ptr): New function.
7218 (c_value_print_inner): Use it.
7219
50836231
TT
72202020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * c-valprint.c (c_value_print_inner): Rewrite.
7223
4f412b6e
TT
72242020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * valprint.c (generic_value_print_complex): New function.
7227 (generic_value_print): Use it.
7228
f5354008
TT
72292020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * valprint.c (generic_val_print_float): Don't call
7232 val_print_scalar_formatted.
7233 (generic_val_print, generic_value_print): Update.
7234
3eec3b05
TT
72352020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * valprint.c (generic_value_print_char): New function
7238 (generic_value_print): Use it.
7239
fdddfccb
TT
72402020-03-13 Tom Tromey <tom@tromey.com>
7241
7242 * valprint.c (generic_value_print_int): New function.
7243 (generic_value_print): Use it.
7244
6dde7521
TT
72452020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * valprint.c (generic_value_print_bool): New function.
7248 (generic_value_print): Use it.
7249
4112d2e6
TT
72502020-03-13 Tom Tromey <tom@tromey.com>
7251
7252 * valprint.c (generic_val_print_func): Simplify.
7253 (generic_val_print, generic_value_print): Update.
7254
65786af6
TT
72552020-03-13 Tom Tromey <tom@tromey.com>
7256
7257 * valprint.c (generic_val_print_flags): Remove.
7258 (generic_val_print, generic_value_print): Update.
7259 (val_print_type_code_flags): Add original_value parameter.
7260
40f3ce18
TT
72612020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * valprint.c (generic_val_print): Update.
7264 (generic_value_print): Update.
7265 * valprint.c (generic_val_print_enum): Don't call
7266 val_print_scalar_formatted.
7267
2a5b130b
TT
72682020-03-13 Tom Tromey <tom@tromey.com>
7269
7270 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7271 * valprint.c (generic_value_print_ptr): New function.
7272
abc66ce9
TT
72732020-03-13 Tom Tromey <tom@tromey.com>
7274
7275 * valprint.c (generic_value_print): Rewrite.
7276
07a32858
TT
72772020-03-13 Tom Tromey <tom@tromey.com>
7278
7279 * p-valprint.c (pascal_object_print_value_fields)
7280 (pascal_object_print_value): New functions.
7281
64d64d3a
TT
72822020-03-13 Tom Tromey <tom@tromey.com>
7283
7284 * p-valprint.c (pascal_value_print_inner): Rewrite.
7285
6a95a1f5
TT
72862020-03-13 Tom Tromey <tom@tromey.com>
7287
7288 * f-valprint.c (f_value_print_innner): Rewrite.
7289
59fcdac6
TT
72902020-03-13 Tom Tromey <tom@tromey.com>
7291
7292 * m2-valprint.c (m2_print_unbounded_array): New overload.
7293 (m2_print_unbounded_array): Update.
7294 (m2_print_array_contents): Take a struct value.
7295 (m2_value_print_inner): Rewrite.
7296
d133c3e1
TT
72972020-03-13 Tom Tromey <tom@tromey.com>
7298
7299 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7300 (d_value_print_inner): New function.
7301 * d-lang.h (d_value_print_inner): Declare.
7302 * d-lang.c (d_language_defn): Use d_value_print_inner.
7303
23b0f06b
TT
73042020-03-13 Tom Tromey <tom@tromey.com>
7305
7306 * go-valprint.c (go_value_print_inner): New function.
7307 * go-lang.h (go_value_print_inner): Declare.
7308 * go-lang.c (go_language_defn): Use go_value_print_inner.
7309
5f56f7cb
TT
73102020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7313 API.
7314 (rust_val_print): Rewrite.
7315 (rust_value_print_inner): New function, from rust_val_print.
7316 (rust_language_defn): Use rust_value_print_inner.
7317
26792ee0
TT
73182020-03-13 Tom Tromey <tom@tromey.com>
7319
7320 * ada-valprint.c (ada_value_print_inner): New function.
7321 * ada-lang.h (ada_value_print_inner): Declare.
7322 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7323
24051bbe
TT
73242020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * f-valprint.c (f_value_print_innner): New function.
7327 * f-lang.h (f_value_print_innner): Declare.
7328 * f-lang.c (f_language_defn): Use f_value_print_innner.
7329
c0941be6
TT
73302020-03-13 Tom Tromey <tom@tromey.com>
7331
7332 * p-valprint.c (pascal_value_print_inner): New function.
7333 * p-lang.h (pascal_value_print_inner): Declare.
7334 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7335
62c4663d
TT
73362020-03-13 Tom Tromey <tom@tromey.com>
7337
7338 * m2-valprint.c (m2_value_print_inner): New function.
7339 * m2-lang.h (m2_value_print_inner): Declare.
7340 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7341
62182190
TT
73422020-03-13 Tom Tromey <tom@tromey.com>
7343
7344 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7345 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7346 * c-valprint.c (c_value_print_inner): New function.
7347 * c-lang.h (c_value_print_inner): Declare.
7348 * c-lang.c (c_language_defn, cplus_language_defn)
7349 (asm_language_defn, minimal_language_defn): Use
7350 c_value_print_inner.
7351
1e592a8a
TT
73522020-03-13 Tom Tromey <tom@tromey.com>
7353
7354 * p-valprint.c (pascal_object_print_value_fields): Now static.
7355 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7356
7fe471e9
TT
73572020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * c-valprint.c (c_val_print_array): Simplify.
7360
d121c6ce
TT
73612020-03-13 Tom Tromey <tom@tromey.com>
7362
7363 * valprint.c (value_print_array_elements): New function.
7364 * valprint.h (value_print_array_elements): Declare.
7365
4dba70ee
TT
73662020-03-13 Tom Tromey <tom@tromey.com>
7367
7368 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7369 * mips-tdep.c (mips_print_register): Use
7370 value_print_scalar_formatted.
7371
4f9ae810
TT
73722020-03-13 Tom Tromey <tom@tromey.com>
7373
7374 * valprint.h (value_print_scalar_formatted): Declare.
7375 * valprint.c (value_print_scalar_formatted): New function.
7376
156bfec9
TT
73772020-03-13 Tom Tromey <tom@tromey.com>
7378
7379 * valprint.h (generic_value_print): Declare.
7380 * valprint.c (generic_value_print): New function.
7381
2b4e573d
TT
73822020-03-13 Tom Tromey <tom@tromey.com>
7383
7384 * valprint.c (do_val_print): Call la_value_print_inner, if
7385 available.
7386 * rust-lang.c (rust_language_defn): Update.
7387 * p-lang.c (pascal_language_defn): Update.
7388 * opencl-lang.c (opencl_language_defn): Update.
7389 * objc-lang.c (objc_language_defn): Update.
7390 * m2-lang.c (m2_language_defn): Update.
7391 * language.h (struct language_defn) <la_value_print_inner>: New
7392 member.
7393 * language.c (unknown_language_defn, auto_language_defn): Update.
7394 * go-lang.c (go_language_defn): Update.
7395 * f-lang.c (f_language_defn): Update.
7396 * d-lang.c (d_language_defn): Update.
7397 * c-lang.c (c_language_defn, cplus_language_defn)
7398 (asm_language_defn, minimal_language_defn): Update.
7399 * ada-lang.c (ada_language_defn): Update.
7400
a1f6a07c
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * c-valprint.c (c_value_print): Use common_val_print.
7404
410cf315
TT
74052020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7408
72a45c93
TT
74092020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * f-valprint.c (f77_print_array_1, f_val_print): Use
7412 common_val_print.
7413
040f66bd
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * riscv-tdep.c (riscv_print_one_register_info): Use
7417 common_val_print.
7418
a6e05a6c
TT
74192020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * mi/mi-main.c (output_register): Use common_val_print.
7422
3444c526
TT
74232020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * infcmd.c (default_print_one_register_info): Use
7426 common_val_print.
7427
c2a44efe
TT
74282020-03-13 Tom Tromey <tom@tromey.com>
7429
7430 * valprint.h (common_val_print_checked): Declare.
7431 * valprint.c (common_val_print_checked): New function.
7432 * stack.c (print_frame_arg): Use common_val_print_checked.
7433
b0c26e99
TT
74342020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * valprint.c (do_val_print): New function, from val_print.
7437 (val_print): Use do_val_print.
7438 (common_val_print): Use do_val_print.
7439
ce3acbe9
TT
74402020-03-13 Tom Tromey <tom@tromey.com>
7441
7442 * valprint.c (value_print): Use scoped_value_mark.
7443
96c7f873
TV
74442020-03-13 Tom de Vries <tdevries@suse.de>
7445
7446 PR symtab/25646
7447 * psymtab.c (partial_symtab::partial_symtab): Don't set
7448 globals_offset and statics_offset. Push element onto
7449 current_global_psymbols and current_static_psymbols stacks.
7450 (concat): New function.
7451 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7452 element from current_global_psymbols and current_static_psymbols
7453 stacks. Concat popped elements to global_psymbols and
7454 static_symbols.
7455 (add_psymbol_to_list): Use current_global_psymbols and
7456 current_static_psymbols stacks.
7457 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7458 current_static_psymbols fields.
7459
6ba0a321
CB
74602020-03-12 Christian Biesinger <cbiesinger@google.com>
7461
7462 * corelow.c (sniff_core_bfd): Remove.
7463 (class core_target) <m_core_vec>: Remove.
7464 (core_target::core_target): Update.
7465 (core_file_fns): Remove.
7466 (deprecated_add_core_fns): Remove.
7467 (default_core_sniffer): Remove.
7468 (sniff_core_bfd): Remove.
7469 (default_check_format): Remove.
7470 (gdb_check_format): Remove.
7471 (core_target_open): Update.
7472 (core_target::get_core_register_section): Update.
7473 (get_core_registers_cb): Update.
7474 (core_target::fetch_registers): Update.
7475 * gdbcore.h (struct core_fns): Remove.
7476 (deprecated_add_core_fns): Remove.
7477 (default_core_sniffer): Remove.
7478 (default_check_format): Remove.
7479
227031b2
TT
74802020-03-12 Tom Tromey <tom@tromey.com>
7481
7482 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7483 CORE_ADDR.
7484 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7485
53807e9f
TT
74862020-03-12 Tom Tromey <tom@tromey.com>
7487
7488 * remote.c (remote_target::download_tracepoint)
7489 (remote_target::enable_tracepoint)
7490 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7491 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7492 sprintf_vma.
7493
64f25102
TT
74942020-03-12 Tom Tromey <tom@tromey.com>
7495
7496 * symfile-mem.c: Update CORE_ADDR size assert.
7497
272cd5a3
SM
74982020-03-12 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * selftest.m4: Move to gdbsupport/.
7501 * acinclude.m4: Update path to selftest.m4.
7502
74cd3f9d
SM
75032020-03-12 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7506 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7507 gdbarch-selfselftests.c and selftest-arch.c.
7508 (SUBDIR_UNITTESTS_OBS): Rename to...
7509 (SELFTESTS_OBS): ... this.
7510 (COMMON_SFILES): Remove disasm-selftests.c and
7511 gdbarch-selftests.c.
7512 * configure.ac: Don't add selftest-arch.{c,o} to
7513 CONFIG_{SRCS,OBS}.
7514 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7515 preprocessor conditions.
7516
db6878ac
SM
75172020-03-12 Simon Marchi <simon.marchi@efficios.com>
7518
7519 * configure.ac: Don't source bfd/development.sh.
7520 * selftest.m4: Modify comment.
7521 * configure: Re-generate.
7522
4d696a5c
SM
75232020-03-12 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7526 not "true" or "false".
7527 * configure: Re-generate.
7528
8dd8e1c7
CB
75292020-03-12 Christian Biesinger <cbiesinger@google.com>
7530
7531 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7532 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7533 renamed to arm_nbsd_supply_gregset.
7534 (fetch_register): Update to call arm_nbsd_supply_gregset.
7535 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7536 (arm_netbsd_nat_target::fetch_registers): Update.
7537 (fetch_elfcore_registers): Removed.
7538 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7539 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7540 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7541 not require NetBSD system headers.
7542 (arm_nbsd_regset): New struct.
7543 (arm_nbsd_iterate_over_regset_sections): New function.
7544 (arm_netbsd_init_abi_common): Updated to call
7545 set_gdbarch_iterate_over_regset_sections.
7546 * arm-nbsd-tdep.h: New file.
7547
dd69bf7a
KB
75482020-03-11 Kevin Buettner <kevinb@redhat.com>
7549
7550 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7551 recursion.
7552
a0761e34
SM
75532020-03-11 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * configure: Re-generate.
7556
e7a82140
TT
75572020-03-11 Tom Tromey <tromey@adacore.com>
7558
7559 * ada-typeprint.c (print_choices): Fix comment.
7560
dcc050c8
AB
75612020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7562
7563 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7564 previous item in the list, when the list has no items.
7565
1c33af77
TV
75662020-03-11 Tom de Vries <tdevries@suse.de>
7567
7568 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7569 PROP_LOCLIST handling code.
7570
8c95582d
AB
75712020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * buildsym-legacy.c (record_line): Pass extra parameter to
7574 record_line.
7575 * buildsym.c (buildsym_compunit::record_line): Take an extra
7576 parameter, reduce duplication in the line table, and record the
7577 is_stmt flag in the line table.
7578 * buildsym.h (buildsym_compunit::record_line): Add extra
7579 parameter.
7580 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7581 non-statement lines.
7582 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7583 this to the symtab builder.
7584 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7585 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7586 through to dwarf_record_line_1.
7587 * infrun.c (process_event_stop_test): When stepping, don't stop at
7588 a non-statement instruction, and only refresh the step info when
7589 we land in the middle of a line's range. Also add an extra
7590 comment.
7591 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7592 field.
7593 * record-btrace.c (btrace_find_line_range): Only record lines
7594 marked as is-statement.
7595 * stack.c (frame_show_address): Show the frame address if we are
7596 in a non-statement sal.
7597 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7598 (maintenance_print_one_line_table): Print a header for the is_stmt
7599 column, and include is_stmt information in the output.
7600 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7601 preference to non-statements.
7602 (find_pcs_for_symtab_line): Prefer is-statement entries.
7603 (find_line_common): Likewise.
7604 * symtab.h (struct linetable_entry): Add is_stmt field.
7605 (struct symtab_and_line): Likewise.
7606 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7607 arranging the line table.
7608
e4003a34
TV
76092020-03-07 Tom de Vries <tdevries@suse.de>
7610
7611 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7612 DIE.
7613
e8932576
TT
76142020-03-07 Tom Tromey <tom@tromey.com>
7615
7616 * valops.c (value_literal_complex): Remove obsolete comment.
7617 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7618 comment.
7619
29734269
SM
76202020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7621
7622 * infrun.h: Forward-declare thread_info.
7623 (set_step_info): Add thread_info parameter, add doc.
7624 * infrun.c (set_step_info): Add thread_info parameter, move doc
7625 to header.
7626 * infrun.c (process_event_stop_test): Pass thread to
7627 set_step_info call.
7628 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7629 set_step_info.
7630 (prepare_one_step): Add thread_info parameter, pass it to
7631 set_step_frame and prepare_one_step (recursive) call.
7632 (step_1): Pass thread to prepare_one_step call.
7633 (step_command_fsm::should_stop): Pass thread to
7634 prepare_one_step.
7635 (until_next_fsm): Pass thread to set_step_frame call.
7636 (finish_command): Pass thread to set_step_info call.
7637
b7d64b29
HD
76382020-03-06 Hannes Domani <ssbssa@yahoo.de>
7639
7640 * windows-tdep.c (windows_solib_create_inferior_hook):
7641 Check if inferior is running.
7642
09f2921c
TV
76432020-03-06 Tom de Vries <tdevries@suse.de>
7644
7645 * NEWS: Fix "the the".
7646 * ctfread.c: Same.
7647
fd760e79
TV
76482020-03-06 Tom de Vries <tdevries@suse.de>
7649
7650 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7651
20ea4a60
AB
76522020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * .dir-locals.el: Add a comment referencing the other copies of
7655 this file.
7656
0afbabf0
JB
76572020-03-05 John Baldwin <jhb@FreeBSD.org>
7658
7659 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7660 psargs.
7661
842806cb
TBA
76622020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7663
7664 * .gitattributes: New file.
7665
be1e3d3e
TT
76662020-03-04 Tom Tromey <tom@tromey.com>
7667
7668 * symmisc.c (print_symbol_bcache_statistics)
7669 (print_objfile_statistics): Update.
7670 * symfile.c (allocate_symtab): Use intern.
7671 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7672 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7673 macro_cache>: Remove.
7674 <string_cache>: New member.
7675 (struct objfile) <intern>: New methods.
7676 * elfread.c (elf_symtab_read): Use intern.
7677 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7678 (dwarf2_compute_name, dwarf2_physname)
7679 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7680 names.
7681 (guess_partial_die_structure_name): Update.
7682 (partial_die_info::fixup): Intern name.
7683 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7684 name.
7685 (dwarf2_name): Intern name. Update.
7686 * buildsym.c (buildsym_compunit::get_macro_table): Use
7687 string_cache.
7688
4e7625fd
TT
76892020-03-04 Tom Tromey <tom@tromey.com>
7690
7691 * jit.c (bfd_open_from_target_memory): Make "target" const.
7692 * corefile.c (gnutarget): Now const.
7693 * gdbcore.h (gnutarget): Now const.
7694
46f9f931
HD
76952020-03-04 Hannes Domani <ssbssa@yahoo.de>
7696
7697 * NEWS: Mention support for WOW64 processes.
7698 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7699 (amd64_windows_segment_register_p): Remove static.
7700 (_initialize_amd64_windows_nat): Update.
7701 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7702 * i386-windows-nat.c (context_offset): Update.
7703 (i386_mappings): Rename and remove static.
7704 (i386_windows_segment_register_p): Remove static.
7705 (_initialize_i386_windows_nat): Update.
7706 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7707 (STATUS_WX86_SINGLE_STEP): New macro.
7708 (EnumProcessModulesEx): New macro.
7709 (Wow64SuspendThread): New macro.
7710 (Wow64GetThreadContext): New macro.
7711 (Wow64SetThreadContext): New macro.
7712 (Wow64GetThreadSelectorEntry): New macro.
7713 (windows_set_context_register_offsets): Add static.
7714 (windows_set_segment_register_p): Likewise.
7715 (windows_add_thread): Adapt for WOW64 processes.
7716 (windows_fetch_one_register): Likewise.
7717 (windows_nat_target::fetch_registers): Likewise.
7718 (windows_store_one_register): Likewise.
7719 (display_selector): Likewise.
7720 (display_selectors): Likewise.
7721 (handle_exception): Likewise.
7722 (windows_continue): Likewise.
7723 (windows_nat_target::resume): Likewise.
7724 (windows_add_all_dlls): Likewise.
7725 (do_initial_windows_stuff): Likewise.
7726 (windows_nat_target::attach): Likewise.
7727 (windows_get_exec_module_filename): Likewise.
7728 (windows_nat_target::create_inferior): Likewise.
7729 (windows_xfer_siginfo): Likewise.
7730 (_initialize_loadable): Initialize Wow64SuspendThread,
7731 Wow64GetThreadContext, Wow64SetThreadContext,
7732 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7733 * windows-nat.h (windows_set_context_register_offsets):
7734 Remove declaration.
7735 (windows_set_segment_register_p): Likewise.
7736 (i386_windows_segment_register_p): Add declaration.
7737 (amd64_windows_segment_register_p): Likewise.
7738
440cf44e
LM
77392020-03-04 Luis Machado <luis.machado@linaro.org>
7740
7741 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7742 in "info registers" for AArch64/ARM.
7743
7744 The change caused "info registers" to not print GPR's.
7745
7746 gdb/ChangeLog:
7747
7748 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7749
7750 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7751 when reg->group is empty and reggroup is not.
7752
1009d92f
TT
77532020-03-03 Tom Tromey <tromey@adacore.com>
7754
7755 * dwarf2/frame.c (struct dwarf2_frame_cache)
7756 <checked_tailcall_bottom, entry_cfa_sp_offset,
7757 entry_cfa_sp_offset_p>: Remove members.
7758 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7759 (dwarf2_frame_prev_register): Don't call
7760 dwarf2_tailcall_sniffer_first.
7761 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7762 * frame-unwind.c (add_unwinder): New fuction.
7763 (frame_unwind_init): Use it. Add tailcall unwinder.
7764
5e5d66b6
AB
77652020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7766 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7767
7768 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7769 value should be printed as true.
7770
584cf46d
HD
77712020-03-03 Hannes Domani <ssbssa@yahoo.de>
7772
7773 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7774 (windows_init_abi): Set and use windows_so_ops.
7775
7b973adc
SDJ
77762020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7777
7778 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7779 when verifying if dealing with a convenience variable.
7780
bb7b70ab
LM
77812020-03-03 Luis Machado <luis.machado@linaro.org>
7782
7783 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7784
9822cb57
SM
77852020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7786
7787 * infrun.c (gdbarch_supports_displaced_stepping): New.
7788 (use_displaced_stepping): Break up conditions in smaller pieces.
7789 Use gdbarch_supports_displaced_stepping.
7790 (displaced_step_prepare_throw): Use
7791 gdbarch_supports_displaced_stepping.
7792
63e163f2
AB
77932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * NEWS: Mention new behaviour of the history filename.
7796 * top.c (write_history_p): Add comment.
7797 (show_write_history_p): Add header comment, give a different
7798 message when history writing is on, but the history filename is
7799 empty.
7800 (history_filename): Add comment.
7801 (history_filename_empty): New function.
7802 (show_history_filename): Add header comment, give a different
7803 message when the filename is empty.
7804 (init_history): Compare history_filename against nullptr, and only
7805 read history if the filename is not empty.
7806 (set_history_filename): Add header comment, and only make
7807 non-empty filenames absolute.
7808 (init_main): Make the filename argument to 'set history filename'
7809 optional.
7810
81b86b97
CB
78112020-03-02 Christian Biesinger <cbiesinger@google.com>
7812
7813 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7814 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7815 (fetch_fp_register): Update.
7816 (fetch_fp_regs): Update.
7817 (store_fp_register): Update.
7818 (store_fp_regs): Update.
7819 (arm_netbsd_nat_target::read_description): New function.
7820 (fetch_elfcore_registers): Update.
7821
24ed6739
AB
78222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7823
7824 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7825 general_thread if the stop reply is missing a thread-id.
7826 (remote_target::process_stop_reply): Use the first non-exited
7827 thread if the target didn't pass a thread-id.
7828 * infrun.c (do_target_wait): Move call to
7829 switch_to_inferior_no_thread to ....
7830 (do_target_wait_1): ... here.
7831
a84bb2a0
JT
78322020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7833
7834 * debuginfod-support.c: Include defs.h first.
7835
658dadf0
TV
78362020-02-28 Tom de Vries <tdevries@suse.de>
7837
7838 * symfile.c (set_initial_language): Use default language for lookup.
7839
4ebe4877
SM
78402020-02-28 Simon Marchi <simon.marchi@efficios.com>
7841
7842 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7843 reader variable, pass `this` to read_cutu_die_from_dwo.
7844
e5da1139
AM
78452020-02-27 Aaron Merey <amerey@redhat.com>
7846
7847 * source.c (open_source_file): Check for nullptr when computing
7848 srcpath.
7849
317f7127
TT
78502020-02-27 Tom Tromey <tromey@adacore.com>
7851
7852 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7853 member.
7854 (dwarf2_add_field): Don't update nfields.
7855 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7856
3104d9ee
AB
78572020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7860 abs.
7861
b83470bf
TT
78622020-02-26 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7865 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7866 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7867 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7868 per_cu_data.
7869
edfe0a0c
TT
78702020-02-26 Tom Tromey <tom@tromey.com>
7871
7872 * dwarf2/index-write.c (psym_index_map): Change type.
7873 (add_address_entry_worker, write_one_signatured_type)
7874 (recursively_count_psymbols, recursively_write_psymbols)
7875 (class debug_names, psyms_seen_size, write_gdbindex)
7876 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7877
0d79cdc4
AM
78782020-02-26 Aaron Merey <amerey@redhat.com>
7879
7880 * Makefile.in: Handle optional debuginfod support.
7881 * NEWS: Update.
7882 * README: Add --with-debuginfod summary.
7883 * config.in: Regenerate.
7884 * configure: Regenerate.
7885 * configure.ac: Handle optional debuginfod support.
7886 * debuginfod-support.c: debuginfod helper functions.
7887 * debuginfod-support.h: Ditto.
7888 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7889 summary.
7890 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7891 when a dwz file cannot be found.
7892 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7893 debuginfo file cannot be found.
7894 * source.c (open_source_file): Query debuginfod servers when a
7895 source file cannot be found.
7896 * top.c (print_gdb_configuration): Include
7897 --{with,without}-debuginfod in the output.
7898
b65ce565
JG
78992020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7900
7901 * thread.c (thr_try_catch_cmd): Print thread name.
7902
d4c9a4f8
SM
79032020-02-26 Simon Marchi <simon.marchi@efficios.com>
7904
7905 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7906 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7907 dwarf2_fetch_die_type_sect_off): Move to...
7908 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7909 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7910 dwarf2_fetch_die_type_sect_off): ... here.
7911 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7913 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7914
0dce4280
TV
79152020-02-26 Tom de Vries <tdevries@suse.de>
7916
7917 PR gdb/25603
7918 * symfile.c (set_initial_language): Exit-early if
7919 language_mode == language_mode_manual.
7920
450a1bfc
SM
79212020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7922
7923 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7924 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7925 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7926
9e80cfa1
AB
79272020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * gdbtypes.c (create_array_type_with_stride): Handle negative
7930 array strides.
7931 * valarith.c (value_subscripted_rvalue): Likewise.
7932
09624f1f
LM
79332020-02-25 Luis Machado <luis.machado@linaro.org>
7934
7935 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7936
8cb5117c
SM
79372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7938
7939 * loc.h (dwarf2_get_die_type): Move to...
7940 * read.h (dwarf2_get_die_type): ... here.
7941 * read.c (dwarf2_get_die_type): Move doc to header.
7942
c325c44e
JB
79432020-02-25 Joel Brobecker <brobecker@adacore.com>
7944
7945 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7946 'gnulib/Makefile.in' to the list.
7947
4ac93832
TT
79482020-02-24 Tom Tromey <tom@tromey.com>
7949
7950 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7951 Remove.
7952 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7953 XOBNEWVEC.
7954
197400e8
TT
79552020-02-24 Tom Tromey <tom@tromey.com>
7956
7957 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7958 New method.
7959 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7960 (dw2_do_instantiate_symtab, dw2_get_file_names)
7961 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7962
76935768
TT
79632020-02-24 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7966 make_scoped_restore.
7967 (dwarf2_psymtab::read_symtab): Don't clear
7968 reading_partial_symbols.
7969
a88ef40d
TV
79702020-02-24 Tom de Vries <tdevries@suse.de>
7971
7972 PR gdb/25592
7973 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7974
c9af6521
TV
79752020-02-24 Tom de Vries <tdevries@suse.de>
7976
7977 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7978 commands layout next/prev/regs.
7979
5707a07a
TT
79802020-02-22 Tom Tromey <tom@tromey.com>
7981
7982 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7983 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7984
3b0fb49e
TT
79852020-02-22 Tom Tromey <tom@tromey.com>
7986
7987 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7988
283be8bf
TT
79892020-02-22 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7992 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7993 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7994 * tui/tui.c (_initialize_tui): Add usage text.
7995
ca793b96
TT
79962020-02-22 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-win.c (tui_set_focus_command)
7999 (tui_set_win_height_command): Use error_no_arg.
8000 (_initialize_tui_win): Update help text.
8001 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8002
432b5c40
TT
80032020-02-22 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8006 * tui/tui-disasm.h (struct tui_disasm_window)
8007 <display_start_addr>: Declare.
8008 * tui/tui-source.h (struct tui_source_window)
8009 <display_start_addr>: Declare.
8010 * tui/tui-winsource.h (struct tui_source_window_base)
8011 <show_source_line, display_start_addr>: New methods.
8012 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8013 Rename and move to protected section.
8014 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8015 (tui_source_window_base::do_erase_source_content): Update.
8016 (tui_source_window_base::show_source_line): Now a method.
8017 (tui_source_window_base::show_source_content)
8018 (tui_source_window_base::tui_source_window_base)
8019 (tui_source_window_base::rerender)
8020 (tui_source_window_base::refill)
8021 (tui_source_window_base::do_scroll_horizontal)
8022 (tui_source_window_base::set_is_exec_point_at)
8023 (tui_source_window_base::update_breakpoint_info)
8024 (tui_source_window_base::update_exec_info): Update.
8025 * tui/tui-source.c (tui_source_window::set_contents)
8026 (tui_source_window::showing_source_p)
8027 (tui_source_window::do_scroll_vertical)
8028 (tui_source_window::location_matches_p)
8029 (tui_source_window::line_is_displayed): Update.
8030 (tui_source_window::display_start_addr): New method.
8031 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8032 (tui_disasm_window::do_scroll_vertical)
8033 (tui_disasm_window::location_matches_p): Update.
8034 (tui_disasm_window::display_start_addr): New method.
8035
01b1af32
TT
80362020-02-22 Tom Tromey <tom@tromey.com>
8037
8038 * NEWS: Add entry for gdb.register_window_type.
8039 * tui/tui-layout.h (window_factory): New typedef.
8040 (tui_register_window): Declare.
8041 * tui/tui-layout.c (saved_tui_windows): New global.
8042 (tui_apply_current_layout): Use it.
8043 (tui_register_window): New function.
8044 * python/python.c (do_start_initialization): Call
8045 gdbpy_initialize_tui.
8046 (python_GdbMethods): Add "register_window_type" function.
8047 * python/python-internal.h (gdbpy_register_tui_window)
8048 (gdbpy_initialize_tui): Declare.
8049 * python/py-tui.c: New file.
8050 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8051
fc96d20b
TT
80522020-02-22 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8055
935c78c0
TT
80562020-02-22 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8059 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8060 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8061 (tui_set_win_focus_to): Move from tui-win.c.
8062
0240c8f1
TT
80632020-02-22 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8066 functions.
8067 (known_window_types): New global.
8068 (tui_get_window_by_name): Reimplement.
8069 (initialize_known_windows): New function.
8070 (validate_window_name): Rewrite.
8071 (_initialize_tui_layout): Call initialize_known_windows.
8072
fdb01f0c
TT
80732020-02-22 Tom Tromey <tom@tromey.com>
8074
8075 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8076 Remove constants.
8077 * tui/tui-winsource.h (struct tui_source_window_base)
8078 <tui_source_window_base>: Remove parameter.
8079 * tui/tui-winsource.c
8080 (tui_source_window_base::tui_source_window_base): Remove
8081 parameter.
8082 (tui_source_window_base::refill): Update.
8083 * tui/tui-stack.h (struct tui_locator_window)
8084 <tui_locator_window>: Update.
8085 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8086 Default the constructor.
8087 * tui/tui-regs.h (struct tui_data_item_window)
8088 <tui_data_item_window>: Default the constructor.
8089 (struct tui_data_window) <tui_data_window>: Likewise.
8090 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8091 Default the constructor.
8092 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8093 Default the constructor.
8094 <type>: Remove.
8095 (struct tui_win_info) <tui_win_info>: Default the constructor.
8096 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8097 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8098 Default the constructor.
8099
865a5aec
TT
81002020-02-22 Tom Tromey <tom@tromey.com>
8101
8102 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8103 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8104 * tui/tui-win.c (tui_resize_all): Don't call
8105 tui_delete_invisible_windows.
8106 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8107 done.
8108 (tui_set_layout): Update.
8109 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8110 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8111 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8112
e098d18c
TT
81132020-02-22 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8116 correctly.
8117
eb9c8874
TT
81182020-02-22 Tom Tromey <tom@tromey.com>
8119
8120 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8121
7eed1a8e
TT
81222020-02-22 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-winsource.h (struct tui_source_window_iterator)
8125 <inner_iterator>: New etytypedef.
8126 <tui_source_window_iterator>: Take "end" parameter.
8127 <tui_source_window_iterator>: Take iterator.
8128 <operator*, advance>: Update.
8129 <m_iter>: Change type.
8130 <m_end>: New field.
8131 (struct tui_source_windows) <begin, end>: Update.
8132 * tui/tui-layout.c (tui_windows): New global.
8133 (tui_apply_current_layout): Clear tui_windows.
8134 (tui_layout_window::apply): Update tui_windows.
8135 * tui/tui-data.h (tui_windows): Declare.
8136 (all_tui_windows): Now inline function.
8137 (class tui_window_iterator, struct all_tui_windows): Remove.
8138
7c043ba6
TT
81392020-02-22 Tom Tromey <tom@tromey.com>
8140
8141 PR tui/17850:
8142 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8143 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8144 "height" argument.
8145 (class tui_layout_window) <get_sizes>: Likewise.
8146 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8147 argument.
8148 <get_sizes>: Add "height" argument.
8149 <m_vertical>: New field.
8150 * tui/tui-layout.c (tui_layout_split::clone): Update.
8151 (tui_layout_split::get_sizes): Add "height" argument.
8152 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8153 (tui_new_layout_command): Parse "-horizontal".
8154 (_initialize_tui_layout): Update help string.
8155 (tui_layout_split::specification): Add "-horizontal" when needed.
8156 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8157 argument.
8158 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8159 New methods.
8160
6bc56648
TT
81612020-02-22 Tom Tromey <tom@tromey.com>
8162
8163 * tui/tui-layout.h (enum tui_adjust_result): New.
8164 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8165 (class tui_layout_window) <adjust_size>: Return
8166 tui_adjust_result. Rewrite.
8167 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8168 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8169
c22fef7e
TT
81702020-02-22 Tom Tromey <tom@tromey.com>
8171
8172 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8173 parameter and return types.
8174 (class tui_layout_base) <specification>: Add "depth".
8175 (class tui_layout_window) <specification>: Add "depth".
8176 (class tui_layout_split) <specification>: Add "depth".
8177 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8178 and return types.
8179 (tui_new_layout_command): Parse sub-layouts.
8180 (_initialize_tui_layout): Update help string.
8181 (tui_layout_window::specification): Add "depth".
8182 (add_layout_command): Update.
8183
ee325b61
TT
81842020-02-22 Tom Tromey <tom@tromey.com>
8185
8186 * NEWS: Add "tui new-layout" item.
8187 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8188 Add new-layout command to help text.
8189 (validate_window_name): New function.
8190 (tui_new_layout_command): New function.
8191 (_initialize_tui_layout): Register "new-layout".
8192 (tui_layout_window::specification): New method.
8193 (tui_layout_window::specification): New method.
8194 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8195 method.
8196 (class tui_layout_window) <specification>: New method.
8197 (class tui_layout_split) <specification>: New method.
8198
416eb92d
TT
81992020-02-22 Tom Tromey <tom@tromey.com>
8200
8201 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8202 * tui/tui-win.c (window_name_completer): Update comment.
8203 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8204 Declare method.
8205 (class tui_layout_window) <replace_window>: Likewise.
8206 (class tui_layout_split) <replace_window>: Likewise.
8207 (tui_set_layout): Don't declare.
8208 (tui_set_initial_layout): Declare function.
8209 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8210 (asm_regs_layout): New globals.
8211 (tui_current_layout, show_layout): Remove.
8212 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8213 (find_layout, tui_apply_layout): New function.
8214 (layout_completer): Remove.
8215 (tui_next_layout): Reimplement.
8216 (tui_next_layout_command): New function.
8217 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8218 (tui_regs_layout): Reimplement.
8219 (tui_regs_layout_command): New function.
8220 (extract_display_start_addr): Rewrite.
8221 (next_layout, prev_layout): Remove.
8222 (tui_layout_window::replace_window): New method.
8223 (tui_layout_split::replace_window): New method.
8224 (destroy_layout): New function.
8225 (layout_list): New global.
8226 (add_layout_command): New function.
8227 (initialize_layouts): Update.
8228 (tui_layout_command): New function.
8229 (_initialize_tui_layout): Install "layout" commands.
8230 * tui/tui-data.h (enum tui_layout_type): Remove.
8231 (tui_current_layout): Don't declare.
8232
0dbc2fc7
TT
82332020-02-22 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-regs.c (tui_reg_layout): Remove.
8236 (tui_reg_command): Use tui_regs_layout.
8237 * tui/tui-layout.h (tui_reg_command): Declare.
8238 * tui/tui-layout.c (tui_reg_command): New function.
8239
5afe342e
TT
82402020-02-22 Tom Tromey <tom@tromey.com>
8241
8242 * tui/tui.c (tui_rl_delete_other_windows): Call
8243 tui_remove_some_windows.
8244 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8245 Declare method.
8246 (class tui_layout_window) <remove_windows>: New method.
8247 (class tui_layout_split) <remove_windows>: Declare.
8248 (tui_remove_some_windows): Declare.
8249 * tui/tui-layout.c (tui_remove_some_windows): New function.
8250 (tui_layout_split::remove_windows): New method.
8251
427326a8
TT
82522020-02-22 Tom Tromey <tom@tromey.com>
8253
8254 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8255 * tui/tui-layout.h (tui_next_layout): Declare.
8256 * tui/tui-layout.c (tui_next_layout): New function.
8257
3fe12b6d
TT
82582020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8261 correct coordinates.
8262
59b8b5d2
TT
82632020-02-22 Tom Tromey <tom@tromey.com>
8264
8265 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8266 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8267 DATA_WIN case.
8268
2a3d458b
TT
82692020-02-22 Tom Tromey <tom@tromey.com>
8270
8271 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8272 TUI_DISASM_WIN, not tui_win_list.
8273
3f0cbb04
TT
82742020-02-22 Tom Tromey <tom@tromey.com>
8275
8276 * valprint.c (generic_val_print_enum_1)
8277 (val_print_type_code_flags): Style member names.
8278 * rust-lang.c (val_print_struct, rust_print_enum)
8279 (rust_print_struct_def, rust_internal_print_type): Style member
8280 names.
8281 * p-valprint.c (pascal_object_print_value_fields): Style member
8282 names. Only call fprintf_symbol_filtered for static members.
8283 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8284 * f-valprint.c (f_val_print): Style member names.
8285 * f-typeprint.c (f_type_print_base): Style member names.
8286 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8287 call fprintf_symbol_filtered for static members.
8288 (cp_print_class_member): Style member names.
8289 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8290 member names.
8291 * ada-valprint.c (ada_print_scalar): Style enum names.
8292 (ada_val_print_enum): Likewise.
8293 * ada-typeprint.c (print_enum_type): Style enum names.
8294
d4d947ae
TT
82952020-02-21 Tom Tromey <tom@tromey.com>
8296
8297 * psympriv.h (struct partial_symtab): Update comment.
8298
e94e944b
TT
82992020-02-21 Tom Tromey <tromey@adacore.com>
8300
8301 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8302 type is CORE_ADDR.
8303
1eb73179
TV
83042020-02-21 Tom de Vries <tdevries@suse.de>
8305
8306 PR gdb/25534
8307 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8308 if dependencies[i]->user != NULL.
8309
4f180d53
AT
83102020-02-21 Ali Tamur <tamur@google.com>
8311
8312 * dwarf2/read.c (dwarf2_name): Add null check.
8313
22b6cd70
TT
83142020-02-20 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8317 ">=", in binary search.
8318 (dwarf2_find_containing_comp_unit): New overload.
8319 (run_test): New self-test.
8320 (_initialize_dwarf2_read): Register new test.
8321
bd0cf5a6
NC
83222020-02-20 Nelson Chu <nelson.chu@sifive.com>
8323
8324 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8325 * riscv-tdep.h: Likewise.
8326 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8327 rv32-only CSR.
8328 * features/riscv/64bit-csr.xml: Regenerated.
8329
3f702acd
SDJ
83302020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8331 Tom Tromey <tom@tromey.com>
8332
8333 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8334 of 'fputc_unfiltered'.
8335 (putchar_unfiltered): Call 'fputc_unfiltered'.
8336 (fputc_unfiltered): Call 'fputs_unfiltered'.
8337
d13c7322
AB
83382020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8339
8340 * config.in: Regenerate.
8341 * configure: Regenerate.
8342 * configure.ac: Add --with-python-libdir option.
8343 * main.c: Use WITH_PYTHON_LIBDIR.
8344
869d8950
TT
83452020-02-19 Tom Tromey <tom@tromey.com>
8346
8347 * symtab.c (general_symbol_info::compute_and_set_names): Use
8348 obstack_strndup. Simplify call to symbol_set_demangled_name.
8349
298e9637
SM
83502020-02-19 Simon Marchi <simon.marchi@efficios.com>
8351
8352 * dwarf2/read.c (allocate_signatured_type_table,
8353 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8354 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8355 Remove objfile parameter, update all callers.
8356
08410482
DE
83572020-02-19 Doug Evans <dje@google.com>
8358
8359 PR rust/25535
8360 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8361 rust_enum_variant calculation.
8362
dfdeeca1
TT
83632020-02-19 Tom Tromey <tromey@adacore.com>
8364
8365 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8366
2ef5453b
TT
83672020-02-19 Tom Tromey <tromey@adacore.com>
8368
8369 * ada-lang.c (cache_symbol): Use obstack_strdup.
8370
9f1528a1
AB
83712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 * configure: Regenerate.
8374
d3c22fa8
TT
83752020-02-19 Tom Tromey <tromey@adacore.com>
8376
8377 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8378 NULL check.
8379
bf84f706
MR
83802020-02-19 Maciej W. Rozycki <macro@wdc.com>
8381
8382 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8383
d1c9b20f
AB
83842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8385
8386 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8387 if GDBSERVER is not defined.
8388 (riscv_tdesc_cache): Likewise, also store const target_desc.
8389 (STATIC_IN_GDB): Define.
8390 (riscv_create_target_description): Update declaration with
8391 STATIC_IN_GDB.
8392 (riscv_lookup_target_description): New function, only define if
8393 GDBSERVER is not defined.
8394 * arch/riscv.h (riscv_create_target_description): Declare only
8395 when GDBSERVER is defined.
8396 (riscv_lookup_target_description): New declaration when GDBSERVER
8397 is not defined.
8398 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8399 (riscv_linux_read_features): ...this, and return
8400 riscv_gdbarch_features instead of target_desc.
8401 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8402 (riscv_linux_read_description): Rename to...
8403 (riscv_linux_read_features): ...this.
8404 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8405 Update to use riscv_gdbarch_features and
8406 riscv_lookup_target_description.
8407 * riscv-tdep.c (riscv_find_default_target_description): Use
8408 riscv_lookup_target_description instead of
8409 riscv_create_target_description.
8410
373d7ac0
SM
84112020-02-18 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * valprint.c (generic_val_print_enum_1): When printing a flag
8414 enum with value 0 and there is no enumerator with value 0, print
8415 just "0" instead of "(unknown: 0x0)".
8416
b29a2df0
SM
84172020-02-18 Simon Marchi <simon.marchi@efficios.com>
8418
8419 * valprint.c (generic_val_print_enum_1): Print unknown part of
8420 flag enum in hex.
8421
6740f0cc
SM
84222020-02-18 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8425 flag enums to contain duplicate enumerators.
8426 * valprint.c (generic_val_print_enum_1): Update comment.
8427
edd45eb0
SM
84282020-02-18 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * dwarf2/read.c: Include "count-one-bits.h".
8431 (update_enumeration_type_from_children): If an enumerator has
8432 multiple bits set, don't treat the enumeration as a "flag enum".
8433 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8434 of flag enums have 0 or 1 bit set.
8435
6d0cf446
BE
84362020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8437
8438 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8439 conversion.
8440 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8441 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8442 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8443 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8444 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8445
7001c1b7
SM
84462020-02-18 Simon Marchi <simon.marchi@efficios.com>
8447
8448 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8449
fdb61c6c
SM
84502020-02-14 Simon Marchi <simon.marchi@efficios.com>
8451
8452 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8453 displaced_step_closure_up.
8454 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8455 (struct displaced_step_closure_up):
8456 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8457 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8458 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8459 Likewise.
8460 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8461 * gdbarch.c, gdbarch.h: Re-generate.
8462 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8463 displaced_step_closure_up.
8464 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8465 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8466 * infrun.h (displaced_step_closure_up): New type alias.
8467 (struct displaced_step_inferior_state) <step_closure>: Change
8468 type to displaced_step_closure_up.
8469 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8470 displaced_step_closure_up.
8471 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8472
a4a38eb4
TT
84732020-02-14 Tom Tromey <tom@tromey.com>
8474
8475 * minidebug.c (gnu_debug_key): New global.
8476 (find_separate_debug_file_in_section): Use it.
8477
e8217e61
SM
84782020-02-14 Simon Marchi <simon.marchi@efficios.com>
8479
8480 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8481 std::unique_ptr.
8482 * gdbarch.c: Re-generate.
8483 * gdbarch.h: Re-generate.
8484 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8485 change.
8486 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8487 type to std::unique_ptr.
8488 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8489 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8490 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8491 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8492 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8493 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8494 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8495 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8496 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8497
d8d83535
SM
84982020-02-14 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8501 std::unique_ptr.
8502 (displaced_step_clear): Rename to...
8503 (displaced_step_reset): ... this. Just call displaced->reset ().
8504 (displaced_step_clear_cleanup): Rename to...
8505 (displaced_step_reset_cleanup): ... this.
8506 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8507 (displaced_step_fixup): Likewise.
8508 (resume_1): Likewise.
8509 (handle_inferior_event): Restore child's memory before calling
8510 displaced_step_fixup on the parent.
8511 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8512 to std::unique_ptr.
8513 <step_closure>: Change type to std::unique_ptr.
8514
5f661e03
SM
85152020-02-14 Simon Marchi <simon.marchi@efficios.com>
8516
8517 * arm-tdep.c: Include count-one-bits.h.
8518 (cleanup_block_store_pc): Use count_one_bits.
8519 (cleanup_block_load_pc): Use count_one_bits.
8520 (arm_copy_block_xfer): Use count_one_bits.
8521 (thumb2_copy_block_xfer): Use count_one_bits.
8522 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8523 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8524 (thumb_get_next_pcs_raw): Use count_one_bits.
8525 (arm_get_next_pcs_raw): Use count_one_bits_l.
8526 * arch/arm.c (bitcount): Remove.
8527 * arch/arm.h (bitcount): Remove.
8528
8084e579
TT
85292020-02-14 Tom Tromey <tromey@adacore.com>
8530
8531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8532 Update.
8533 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8534 * dwarf2/loc.c (call_site_find_chain_1): Return
8535 unique_xmalloc_ptr.
8536 (call_site_find_chain): Likewise.
8537
258bf0ee
RB
85382020-02-14 Richard Biener <rguenther@suse.de>
8539
8540 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8541 on expression with division operators.
8542
f98a8458
AKS
85432020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8544
8545 * MAINTAINERS (Write After Approval): Adding myself.
8546
d1437c0e
TT
85472020-02-12 Tom Tromey <tom@tromey.com>
8548
8549 * event-loop.c (event_data, gdb_event, event_handler_func):
8550 Remove.
8551
3d4560f7
TT
85522020-02-12 Tom Tromey <tom@tromey.com>
8553
8554 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8555 (dwarf2_frame_objfile_data): Add comment.
8556 (find_comp_unit, set_comp_unit): New functions.
8557 (dwarf2_frame_find_fde): Use find_comp_unit.
8558 (dwarf2_build_frame_info): Use set_comp_unit.
8559
21982304
TT
85602020-02-12 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8563 (comp_unit): Don't initialize objfile.
8564 (execute_cfa_program): Add text_offset parameter.
8565 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8566 (dwarf2_frame_cache): Update.
8567 (dwarf2_build_frame_info): Don't set "objfile" member.
8568
4debb237
TT
85692020-02-12 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8572 (decode_frame_entry): Likewise.
8573 (dwarf2_build_frame_info): Update.
8574
0d404d44
TT
85752020-02-12 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8578 (decode_frame_entry_1): Use the comp_unit obstack.
8579
a7a3ae5c
TT
85802020-02-12 Tom Tromey <tom@tromey.com>
8581
8582 * dwarf2/frame.c (struct comp_unit): Add initializers and
8583 constructor.
8584 (dwarf2_frame_objfile_data): Store a comp_unit.
8585 (dwarf2_frame_find_fde): Update.
8586 (dwarf2_build_frame_info): Use "new".
8587
a9d65418
TT
85882020-02-12 Tom Tromey <tom@tromey.com>
8589
8590 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8591 (dwarf2_fde_table): Typedef for std::vector.
8592 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8593 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8594 (decode_frame_entry): Update.
8595 (dwarf2_build_frame_info): Use "new".
8596
7559c217
CB
85972020-02-12 Christian Biesinger <cbiesinger@google.com>
8598
8599 * arm-tdep.c (arm_gdbarch_init): Update.
8600 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8601 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8602 have_neon, is_m>: Change to bool.
8603
aeefc73c
CB
86042020-02-12 Christian Biesinger <cbiesinger@google.com>
8605
8606 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8607
d27b8e5f
TT
86082020-02-12 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8611
cd5900f3
HD
86122020-02-12 Hannes Domani <ssbssa@yahoo.de>
8613
8614 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8615 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8616
f056b22b
TT
86172020-02-11 Tom Tromey <tom@tromey.com>
8618
8619 * psymtab.h: Update comment.
8620
f92ff6b5
TT
86212020-02-11 Tom Tromey <tom@tromey.com>
8622
8623 * gdb_obstack.h (struct auto_obstack): Use
8624 DISABLE_COPY_AND_ASSIGN.
8625
3fd6912b
TT
86262020-02-11 Tom Tromey <tom@tromey.com>
8627
8628 * dwarf2/frame.h (struct objfile): Don't forward declare.
8629
69ed9b74
CB
86302020-02-11 Christian Biesinger <cbiesinger@google.com>
8631
8632 * cris-tdep.c (cris_supply_gregset): Change signature to match
8633 what struct regset expects.
8634 (cris_regset): New struct.
8635 (fetch_core_registers): Remove.
8636 (cris_iterate_over_regset_sections): New function.
8637 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8638 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8639
bda874f6
CB
86402020-02-11 Christian Biesinger <cbiesinger@google.com>
8641
8642 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8643 registers.
8644
754e1564
CB
86452020-02-11 Christian Biesinger <cbiesinger@google.com>
8646
8647 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8648
8ddd8e0e
SM
86492020-02-11 Simon Marchi <simon.marchi@efficios.com>
8650
8651 * configure: Re-generate.
8652
898e7f60
SM
86532020-02-11 Simon Marchi <simon.marchi@efficios.com>
8654
8655 * configure: Re-generate.
8656
58df732b
SM
86572020-02-11 Simon Marchi <simon.marchi@efficios.com>
8658
8659 * acinclude: Update warning.m4 path.
8660 * warning.m4: Move to gdbsupport.
8661
da5bd37e
TT
86622020-02-11 Tom Tromey <tromey@adacore.com>
8663
8664 * remote.c (remote_console_output): Update.
8665 * printcmd.c (printf_command): Update.
8666 * event-loop.c (gdb_wait_for_event): Update.
8667 * linux-nat.c (sigchld_handler): Update.
8668 * remote-sim.c (gdb_os_write_stdout): Update.
8669 (gdb_os_flush_stdout): Update.
8670 (gdb_os_flush_stderr): Update.
8671 (gdb_os_write_stderr): Update.
8672 * exceptions.c (print_exception): Update.
8673 * remote-fileio.c (remote_fileio_func_read): Update.
8674 (remote_fileio_func_write): Update.
8675 * tui/tui.c (tui_enable): Update.
8676 * tui/tui-interp.c (tui_interp::init): Update.
8677 * utils.c (init_page_info): Update.
8678 (putchar_unfiltered, fputc_unfiltered): Update.
8679 (gdb_flush): Update.
8680 (emit_style_escape): Update.
8681 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8682 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8683 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8684 (stderr_file::write): Update.
8685 (stderr_file::puts): Update.
8686 * ui-file.h (ui_file_isatty, ui_file_write)
8687 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8688 (ui_file_puts): Don't declare.
8689
85f0dd3c
TV
86902020-02-10 Tom de Vries <tdevries@suse.de>
8691
8692 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8693 sentinel to char *.
8694
2e927613
TV
86952020-02-09 Tom de Vries <tdevries@suse.de>
8696
8697 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8698 filename if it matches "<artificial>".
8699
6bafc845
HD
87002020-02-09 Hannes Domani <ssbssa@yahoo.de>
8701
8702 * windows-tdep.c (struct enum_value_name): New struct.
8703 (create_enum): New function.
8704 (windows_get_siginfo_type): Create and use enum types.
8705
7928d571
HD
87062020-02-09 Hannes Domani <ssbssa@yahoo.de>
8707
8708 * NEWS: Mention $_siginfo support for Windows.
8709 * windows-nat.c (handle_exception): Set siginfo_er.
8710 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8711 (windows_xfer_siginfo): New function.
8712 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8713 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8714 (init_windows_gdbarch_data): New function.
8715 (get_windows_gdbarch_data): New function.
8716 (windows_get_siginfo_type): New function.
8717 (windows_init_abi): Register windows_get_siginfo_type.
8718 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8719
6751ebae
TT
87202020-02-08 Tom Tromey <tom@tromey.com>
8721
8722 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8723 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8724 <keep>: Declare method.
8725 <m_keep>: Remove member.
8726 <~cutu_reader>: Remove.
8727 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8728 (cutu_reader::cutu_reader): Update.
8729 (cutu_reader::keep): Rename from ~cutu_reader.
8730 (process_psymtab_comp_unit, build_type_psymtabs_1)
8731 (process_skeletonless_type_unit, load_partial_comp_unit)
8732 (load_full_comp_unit, dwarf2_read_addr_index)
8733 (read_signatured_type): Update.
8734
135f5437
TT
87352020-02-08 Tom Tromey <tom@tromey.com>
8736
8737 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8738 "want_partial_unit" parameter.
8739 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8740 Inline check for DW_TAG_partial_unit.
8741 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8742
9f66ff1c
TT
87432020-02-08 Tom Tromey <tom@tromey.com>
8744
8745 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8746 read.c.
8747 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8748 read.c.
8749
c8a7a66f
TT
87502020-02-08 Tom Tromey <tom@tromey.com>
8751
8752 * dwarf2/read.c (read_address): Move to comp-unit.c.
8753 (dwarf2_rnglists_process, dwarf2_ranges_process)
8754 (read_attribute_value, dwarf_decode_lines_1)
8755 (var_decode_location, decode_locdesc): Update.
8756 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8757 read.c. Remove "cu" parameter.
8758 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8759 method.
8760
8266302d
TT
87612020-02-08 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8764 (read_indirect_line_string): Update.
8765 * dwarf2/comp-unit.c (read_offset): Remove.
8766 (read_comp_unit_head): Update.
8767 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8768 method.
8769 (read_offset): Don't declare.
8770
4057dfde
TT
87712020-02-08 Tom Tromey <tom@tromey.com>
8772
8773 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8774 * dwarf2/read.c (struct comp_unit_head): Move to
8775 dwarf2/comp-unit.h.
8776 (enum class rcuh_kind): Move to comp-unit.h.
8777 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8778 (read_comp_unit_head, error_check_comp_unit_head)
8779 (read_and_check_comp_unit_head): Move to comp-unit.c.
8780 (read_offset, dwarf_unit_type_name): Likewise.
8781 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8782 (cutu_reader::cutu_reader, read_call_site_scope)
8783 (find_partial_die, follow_die_offset): Update.
8784 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8785
24aa364d
TT
87862020-02-08 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/read.c (read_offset_1): Move to leb.c.
8789 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8790 (dwarf_decode_macro_bytes): Update.
8791 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8792 * dwarf2/leb.h (read_offset): Declare.
8793
2c7d5afc
TT
87942020-02-08 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/read.c (dwarf2_section_size): Remove.
8797 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8798 Update.
8799 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8800
4075cb26
TT
88012020-02-08 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/read.c (read_initial_length): Move to leb.c.
8804 * dwarf2/leb.h (read_initial_length): Declare.
8805 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8806 handle_nonstd parameter.
8807 * dwarf2/frame.c (read_initial_length): Remove.
8808 (decode_frame_entry_1): Update.
8809
09ba997f
TT
88102020-02-08 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/loc.c (dwarf2_find_location_expression)
8813 (dwarf_evaluate_loc_desc::get_tls_address)
8814 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8815 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8816 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8817 (dwarf2_compile_property_to_c)
8818 (dwarf2_loc_desc_get_symbol_read_needs)
8819 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8820 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8821 (loclist_describe_location, loclist_tracepoint_var_ref)
8822 (loclist_generate_c_location): Update.
8823 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8824 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8825 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8826 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8827 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8828 (dwarf2_per_cu_data::addr_size)
8829 (dwarf2_per_cu_data::ref_addr_size)
8830 (dwarf2_per_cu_data::text_offset)
8831 (dwarf2_per_cu_data::addr_type): Now methods.
8832 (per_cu_header_read_in): Make per_cu "const".
8833 (dwarf2_version): Remove.
8834 (dwarf2_per_cu_data::int_type): Now a method.
8835 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8836 (set_die_type, read_array_type, read_subrange_index_type)
8837 (read_tag_string_type, read_subrange_type): Update.
8838 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8839 offset_size, ref_addr_size, text_offset, addr_type, version,
8840 objfile, int_type, addr_sized_int_type>: Declare methods.
8841
96c738c0
TT
88422020-02-08 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8845 Move earlier.
8846
8fdd972c
TT
88472020-02-08 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/read.h (dwarf_line_debug): Declare.
8850 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8851 * dwarf2/read.c: Move line_header code to new files.
8852 (dwarf_line_debug): No longer static.
8853 * dwarf2/line-header.c: New file.
8854 * dwarf2/line-header.h: New file.
8855
03075812
TT
88562020-02-08 Tom Tromey <tom@tromey.com>
8857
8858 * dwarf2/read.c (struct line_header) <file_full_name,
8859 file_file_name>: Return unique_xmalloc_ptr.
8860 (line_header::file_file_name): Update.
8861 (line_header::file_full_name): Update.
8862 (dw2_get_file_names_reader): Update.
8863 (macro_start_file): Update.
8864
bb822404
TT
88652020-02-08 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/read.c (struct line_header) <file_full_name,
8868 file_file_name>: Declare methods.
8869 (dw2_get_file_names_reader): Update.
8870 (file_file_name): Now a method.
8871 (file_full_name): Likewise.
8872 (macro_start_file): Update.
8873
009b64fc
TT
88742020-02-08 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.c (dwarf_always_disassemble)
8877 (show_dwarf_always_disassemble): Move to loc.c.
8878 (_initialize_dwarf2_read): Move "always-disassemble" registration
8879 to loc.c.
8880 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8881 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8882 static.
8883 (show_dwarf_always_disassemble): Move from read.c.
8884 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8885
5895093f
TT
88862020-02-08 Tom Tromey <tom@tromey.com>
8887
8888 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8889 (create_quick_file_names_table): Return htab_up.
8890 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8891 Update.
8892 * dwarf2/read.h (struct dwarf2_per_objfile)
8893 <quick_file_names_table>: Now htab_up.
8894
b3b32279
TT
88952020-02-08 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8898
1d33d811
TT
88992020-02-08 Tom Tromey <tom@tromey.com>
8900
8901 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8902 Rewrite.
8903 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8904 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8905 (abbrev_table::abbrev_table): No longer inline.
8906 (ABBREV_HASH_SIZE): Remove.
8907 (abbrev_table::m_abbrevs): Now an htab_up.
8908
86de1d91
TT
89092020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8912 (cutu_reader): Update.
8913 (build_type_psymtabs_1): Update.
8914 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8915 (abbrev_table::alloc_abbrev): Update.
8916 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8917 (abbrev_table::read): New static method, renamed from
8918 abbrev_table_read_table.
8919 (abbrev_table::alloc_abbrev)
8920 (abbrev_table::add_abbrev): Now private.
8921 (abbrev_table::abbrev_table): Now private.
8922 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8923
0335378b
TT
89242020-02-08 Tom Tromey <tom@tromey.com>
8925
8926 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8927 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8928 htab_up.
8929
48b490f2
TT
89302020-02-08 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8933 htab_up.
8934 (lookup_dwo_unit_in_dwp): Update.
8935 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8936 on obstack.
8937
bc68fb19
TT
89382020-02-08 Tom Tromey <tom@tromey.com>
8939
8940 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8941 obstack.
8942
d15acc42
TT
89432020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8946 line_header_hash.
8947 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8948 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8949 Change type to htab_up.
8950
eaa5fa8b
TT
89512020-02-08 Tom Tromey <tom@tromey.com>
8952
8953 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8954 htab_up. Don't allocate on obstack.
8955 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8956 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8957 Change type to htab_up.
8958
b0b6a987
TT
89592020-02-08 Tom Tromey <tom@tromey.com>
8960
8961 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8962 Change type to htab_up.
8963 * dwarf2/read.c (create_signatured_type_table_from_index)
8964 (create_signatured_type_table_from_debug_names)
8965 (create_all_type_units, add_type_unit)
8966 (lookup_dwo_signatured_type, lookup_signatured_type)
8967 (process_skeletonless_type_unit): Update.
8968 (create_debug_type_hash_table, create_debug_types_hash_table):
8969 Change type of types_htab.
8970 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8971 htab_up. Don't allocate on obstack.
8972 (create_cus_hash_table): Change type of cus_htab parameter.
8973 (struct dwo_file) <cus, tus>: Now htab_up.
8974 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8975 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8976 (queue_and_load_all_dwo_tus): Update.
8977 * dwarf2/index-write.c (write_gdbindex): Update.
8978 (write_debug_names): Update.
8979
39856def
TT
89802020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8983 dwarf2/read.c. Remove "next" member. Add constructor ntad
8984 destructor.
8985 (struct dwarf2_per_objfile) <queue>: New member.
8986 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8987 dwarf2/read.h.
8988 (dwarf2_queue, dwarf2_queue_tail): Remove.
8989 (class dwarf2_queue_guard): Add parameter to constructor. Use
8990 DISABLE_COPY_AND_ASSIGN.
8991 <m_per_objfile>: New member.
8992 <~dwarf2_queue_guard>: Rewrite.
8993 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8994 Update.
8995 (~dwarf2_queue_item): New.
8996
3e225074
TT
89972020-02-08 Tom Tromey <tom@tromey.com>
8998
8999 * dwarf2/read.c (struct die_info) <has_children>: New member.
9000 (dw2_get_file_names_reader): Remove has_children.
9001 (dw2_get_file_names): Update.
9002 (read_cutu_die_from_dwo): Remove has_children.
9003 (cutu_reader::init_tu_and_read_dwo_dies)
9004 (cutu_reader::cutu_reader): Update.
9005 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9006 Remove has_children.
9007 (build_type_psymtabs_1, process_skeletonless_type_unit)
9008 (load_partial_comp_unit, load_full_comp_unit): Update.
9009 (create_dwo_cu_reader): Remove has_children.
9010 (create_cus_hash_table, read_die_and_children): Update.
9011 (read_full_die_1,read_full_die): Remove has_children.
9012 (read_signatured_type): Update.
9013 (class cutu_reader) <has_children>: Remove.
9014
82ca8957
TT
90152020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/expr.c: Rename from dwarf2expr.c.
9018 * dwarf2/expr.h: Rename from dwarf2expr.h.
9019 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9020 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9021 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9022 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9023 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9024 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9025 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9026 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9027 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9028 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9029 * dwarf2/loc.c: Rename from dwarf2loc.c.
9030 * dwarf2/loc.h: Rename from dwarf2loc.h.
9031 * dwarf2/read.c: Rename from dwarf2read.c.
9032 * dwarf2/read.h: Rename from dwarf2read.h.
9033 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9034 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9035 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9036 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9037 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9038 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9039 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9040 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9041 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9042 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9043 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9044 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9045 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9046 Update.
9047 * Makefile.in (COMMON_SFILES): Update.
9048 (HFILES_NO_SRCDIR): Update.
9049
9e35d499
TT
90502020-02-08 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9053 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9054
1eba2311
TT
90552020-02-08 Tom Tromey <tom@tromey.com>
9056
9057 * dwarf2read.h (struct die_info): Don't declare.
9058
e41c2da2
TT
90592020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2read.h (die_info_ptr): Remove typedef.
9062
4fc6c0d5
TT
90632020-02-08 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2read.c (read_call_site_scope)
9066 (handle_data_member_location, dwarf2_add_member_fn)
9067 (mark_common_block_symbol_computed, read_common_block)
9068 (attr_to_dynamic_prop, partial_die_info::read)
9069 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9070 (dwarf2_symbol_mark_computed, set_die_type): Update.
9071 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9072 method.
9073 (attr_form_is_block): Don't declare.
9074 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9075
cd6c91b4
TT
90762020-02-08 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2read.c (dwarf2_find_base_address, )
9079 (read_call_site_scope, rust_containing_type)
9080 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9081 (handle_data_member_location, dwarf2_add_member_fn)
9082 (get_alignment, read_structure_type, process_structure_scope)
9083 (mark_common_block_symbol_computed, read_common_block)
9084 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9085 (partial_die_info::read, read_attribute_value, new_symbol)
9086 (lookup_die_type, dwarf2_get_ref_die_offset)
9087 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9088 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9089 (dwarf2_symbol_mark_computed): Update.
9090 * dwarf2/attribute.h (struct attribute) <value_as_address,
9091 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9092 methods.
9093 (value_as_address, attr_form_is_section_offset)
9094 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9095 * dwarf2/attribute.c (attribute::value_as_address)
9096 (attribute::form_is_section_offset, attribute::form_is_constant)
9097 (attribute::form_is_ref): Now methods.
9098
162dce55
TT
90992020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2read.c (struct attribute, DW_STRING)
9102 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9103 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9104 (attr_form_is_block, attr_form_is_section_offset)
9105 (attr_form_is_constant, attr_form_is_ref): Move.
9106 * dwarf2/attribute.h: New file.
9107 * dwarf2/attribute.c: New file, from dwarf2read.c.
9108 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9109
3054dd54
TT
91102020-02-08 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9113 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9114 Move.
9115 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9116 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9117 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9118 abbrev.c.
9119 * dwarf2/abbrev.h: New file.
9120 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9121 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9122
96b79293
TT
91232020-02-08 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9126 (dwarf2_section_size, dwarf2_get_section_info)
9127 (create_signatured_type_table_from_debug_names)
9128 (create_addrmap_from_aranges, read_debug_names_from_section)
9129 (get_gdb_index_contents_from_section, read_comp_unit_head)
9130 (error_check_comp_unit_head, read_abbrev_offset)
9131 (create_debug_type_hash_table, init_cu_die_reader)
9132 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9133 (read_comp_units_from_section, create_cus_hash_table)
9134 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9135 (create_dwp_v2_section, dwarf2_rnglists_process)
9136 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9137 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9138 (read_indirect_string_from_dwz, read_addr_index_1)
9139 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9140 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9141 (fill_in_loclist_baton): Update.
9142 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9143 get_containing_section, get_bfd_owner, get_bfd_section,
9144 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9145 (dwarf2_read_section, get_section_name, get_section_file_name)
9146 (get_containing_section, get_section_bfd_owner)
9147 (get_section_bfd_section, get_section_name, get_section_file_name)
9148 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9149 declare.
9150 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9151 (dwarf2_section_info::get_bfd_owner)
9152 (dwarf2_section_info::get_bfd_section)
9153 (dwarf2_section_info::get_name)
9154 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9155 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9156 (dwarf2_section_info::read): Now methods.
9157 * dwarf-index-write.c (class debug_names): Update.
9158
2c86cff9
TT
91592020-02-08 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9162 Move to dwarf2/section.h.
9163 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9164 (get_section_bfd_section, get_section_name)
9165 (get_section_file_name, get_section_id, get_section_flags)
9166 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9167 dwarf2/section.c.
9168 * dwarf2/section.h: New file.
9169 * dwarf2/section.c: New file, from dwarf2read.c.
9170 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9171
f4382c45
TT
91722020-02-08 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9175 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9176 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9177 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9178 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9179 * dwarf2/leb.h: New file, from dwarf2read.c.
9180 * dwarf2/leb.c: New file, from dwarf2read.c.
9181 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9182 Remove.
9183 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9184 (COMMON_SFILES): Add dwarf2/leb.c.
9185
01840b7a
JB
91862020-02-08 Joel Brobecker <brobecker@adacore.com>
9187
9188 GDB 9.1 released.
9189
dfcb27e4
IB
91902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9191
9192 PR gdb/25190:
aac66a4c
SM
9193 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9194 * gdb/remote.c (remote_console_output): Update.
9195 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9196 (ui_file_puts): ...this.
9197 * gdb/ui-file.h (ui_file_puts): Add declaration.
9198 * gdb/utils.c (emit_style_escape): Update.
9199 (flush_wrap_buffer): Update.
9200 (fputs_maybe_filtered): Update.
9201 (fputs_unfiltered): Add function.
dfcb27e4 9202
faa17681
IB
92032020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9204
aac66a4c
SM
9205 * gdb/event-loop.c (gdb_wait_for_event): Update.
9206 * gdb/printcmd.c (printf_command): Update.
9207 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9208 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9209 (gdb_os_flush_stderr): Update.
9210 * gdb/remote.c (remote_console_output): Update.
9211 * gdb/ui-file.c (gdb_flush): Rename to...
9212 (ui_file_flush): ...this.
9213 (stderr_file::write): Update.
9214 (stderr_file::puts): Update.
9215 * gdb/ui-file.h (gdb_flush): Rename to...
9216 (ui_file_flush): ...this.
9217 * gdb/utils.c (gdb_flush): Add function.
9218 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9219
5abbbe1d
TT
92202020-02-07 Tom Tromey <tromey@adacore.com>
9221
9222 PR breakpoints/24915:
9223 * source.c (find_and_open_source): Do not check basenames_may_differ.
9224
919adfe8
TT
92252020-02-07 Tom Tromey <tom@tromey.com>
9226
9227 * README: Update gdbserver documentation.
9228 * gdbserver: Move to top level.
9229 * configure.tgt (build_gdbserver): Remove.
9230 * configure.ac: Remove --enable-gdbserver.
9231 * configure: Rebuild.
9232 * Makefile.in (distclean): Don't mention gdbserver.
9233
1d5d29e7
SV
92342020-02-06 Shahab Vahedi <shahab@synopsys.com>
9235
9236 * source-cache.c (source_cache::ensure): Surround
9237 get_plain_source_lines with a try/catch.
9238 (source_cache::get_line_charpos): Get rid of try/catch
9239 and only check for the return value of "ensure".
9240 * tui/tui-source.c (tui_source_window::set_contents):
9241 Simplify "nlines" calculation.
9242
6eb1129c
SV
92432020-02-06 Shahab Vahedi <shahab@synopsys.com>
9244
9245 * MAINTAINERS (Write After Approval): Add myself.
9246
c6a42d11
CB
92472020-02-05 Christian Biesinger <cbiesinger@google.com>
9248
9249 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9250 function call.
9251
c8ecdda6
CB
92522020-02-05 Christian Biesinger <cbiesinger@google.com>
9253
9254 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9255
f6480e70
MR
92562020-02-05 Maciej W. Rozycki <macro@wdc.com>
9257
9258 * nat/riscv-linux-tdesc.h: New file.
9259 * nat/riscv-linux-tdesc.c: New file, taking code from...
9260 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9261 ... here.
9262 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9263 NATDEPFILES.
9264
dcc9fbc6
AB
92652020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9266
9267 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9268 we don't set the fake simulator ptid to the null_ptid.
9269
719546c4
SM
92702020-02-03 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9273 * gdbthread.h (class thread_info) <resumed>: Likewise.
9274 * infrun.c (resume_1): Likewise.
9275 (proceed): Likewise.
9276 (infrun_thread_stop_requested): Likewise.
9277 (stop_all_threads): Likewise.
9278 (handle_inferior_event): Likewise.
9279 (restart_threads): Likewise.
9280 (finish_step_over): Likewise.
9281 (keep_going_stepped_thread): Likewise.
9282 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9283 (linux_handle_extended_wait): Likewise.
9284 * record-btrace.c (get_thread_current_frame_id): Likewise.
9285 * record-full.c (record_full_wait_1): Likewise.
9286 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9287 * target.c (target_resume): Likewise.
9288 * thread.c (set_running_thread): Likewise.
9289
e409c542
AKS
92902020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9291
9292 * f-valprint.c (f77_print_array_1): Changed datatype of index
9293 variable to LONGEST from int to enable it to contain bound
9294 values correctly.
9295
ee98c0da
MR
92962020-02-03 Maciej W. Rozycki <macro@wdc.com>
9297
9298 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9299 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9300 offsets according to FLEN determined.
9301 (riscv_linux_nat_target::read_description): Determine FLEN
9302 dynamically.
9303 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9304 according to FLEN determined.
9305 (riscv_linux_nat_target::store_registers): Likewise.
9306
aa66aac4
SV
93072020-02-01 Shahab Vahedi <shahab@synopsys.com>
9308
9309 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9310 when reg->group is empty and reggroup is not.
9311
fd9faca8
TT
93122020-01-31 Tom Tromey <tromey@adacore.com>
9313
9314 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9315 Call beneath target's mourn_inferior after unpushing.
9316
42330a68
AB
93172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9318
9319 PR tui/9765
9320 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9321 have enough lines to fill the screen, still return the lowest
9322 address we found.
9323
7a27a45b
AB
93242020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9325
9326 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9327 '-', '<', and '>' commands.
9328
c47f70e2
PA
93292020-01-29 Pedro Alves <palves@redhat.com>
9330 Sergio Durigan Junior <sergiodj@redhat.com>
9331
9332 * infcmd.c (construct_inferior_arguments): Assert that
9333 'argc' is greater than 0.
9334
5133a315
LM
93352020-01-29 Luis Machado <luis.machado@linaro.org>
9336
9337 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9338 (BRK_INSN_MASK): Define to 0xd4200000.
9339 (aarch64_program_breakpoint_here_p): New function.
9340 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9341 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9342 breakpoint.c.
9343 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9344 breakpoint.h
9345 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9346 call gdbarch_program_breakpoint_here_p.
9347 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9348 default_program_breakpoint_here_p, changed return type to bool and
9349 simplified.
9350 * breakpoint.h (program_breakpoint_here): Moved prototype to
9351 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9352 return type to bool.
9353 * gdbarch.c: Regenerate.
9354 * gdbarch.h: Regenerate.
9355 * gdbarch.sh (program_breakpoint_here_p): New method.
9356 * infrun.c (handle_signal_stop): Call
9357 gdbarch_program_breakpoint_here_p.
9358
168f8c6b
TT
93592020-01-26 Tom Tromey <tom@tromey.com>
9360
9361 * ctfread.c (struct ctf_fp_info): Reindent.
9362 (_initialize_ctfread): Remove.
9363
128a391f
TT
93642020-01-26 Tom Tromey <tom@tromey.com>
9365
9366 * psymtab.c (partial_map_expand_apply)
9367 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9368 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9369 (psym_print_stats, psym_expand_symtabs_for_function)
9370 (psym_map_symbol_filenames, psym_map_matching_symbols)
9371 (psym_expand_symtabs_matching)
9372 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9373 (maintenance_check_psymtabs): Use new methods.
9374 * psympriv.h (struct partial_symtab) <readin_p,
9375 get_compunit_symtab>: New methods.
9376 <readin, compunit_symtab>: Remove members.
9377 (struct standard_psymtab): New.
9378 (struct legacy_psymtab): Derive from standard_psymtab.
9379 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9380 standard_psymtab.
9381 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9382
0494dbec
TT
93832020-01-26 Tom Tromey <tom@tromey.com>
9384
9385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9386 read_dependencies. Add assert.
9387 * psymtab.c (partial_symtab::read_dependencies): New method.
9388 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9389 method.
9390 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9391 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9392 read_dependencies.
9393 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9394 Add assert.
9395
8566b89b
TT
93962020-01-26 Tom Tromey <tom@tromey.com>
9397
9398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9399 Call expand_psymtab.
9400 (xcoff_read_symtab): Call expand_psymtab.
9401 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9402 legacy_expand_psymtab.
9403 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9404 method.
9405 (struct legacy_psymtab) <expand_psymtab>: Implement.
9406 <legacy_expand_psymtab>: New member.
9407 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9408 (parse_partial_symbols): Set legacy_expand_psymtab.
9409 (psymtab_to_symtab_1): Change argument order. Call
9410 expand_psymtab.
9411 (new_psymtab): Set legacy_expand_psymtab.
9412 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9413 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9414 expand_psymtab.
9415 (dwarf2_psymtab::expand_psymtab): Rename from
9416 psymtab_to_symtab_1. Call expand_psymtab.
9417 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9418 (dbx_end_psymtab): Likewise.
9419 (dbx_psymtab_to_symtab_1): Change argument order. Call
9420 expand_psymtab.
9421 (dbx_read_symtab): Call expand_psymtab.
9422 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9423 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9424 (ctf_psymtab::read_symtab): Call expand_psymtab.
9425
077cbab2
TT
94262020-01-26 Tom Tromey <tom@tromey.com>
9427
9428 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9429 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9430 messages.
9431 * mdebugread.c (mdebug_read_symtab): Remove prints.
9432 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9433 assert.
9434 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9435
891813be
TT
94362020-01-26 Tom Tromey <tom@tromey.com>
9437
9438 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9439 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9440 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9441 legacy_symtab.
9442 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9443 * psymtab.c (psymtab_to_symtab): Call method.
9444 (dump_psymtab): Update.
9445 * psympriv.h (struct partial_symtab): Add virtual destructor.
9446 <read_symtab>: New method.
9447 (struct legacy_symtab): New.
9448 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9449 (struct pst_map) <pst>: Now a legacy_psymtab.
9450 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9451 (new_psymtab): Use legacy_psymtab.
9452 * dwarf2read.h (struct dwarf2_psymtab): New.
9453 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9454 * dwarf2read.c (dwarf2_create_include_psymtab)
9455 (dwarf2_build_include_psymtabs, create_type_unit_group)
9456 (create_partial_symtab, process_psymtab_comp_unit_reader)
9457 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9458 (set_partial_user): Use dwarf2_psymtab.
9459 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9460 (psymtab_to_symtab_1, process_full_comp_unit)
9461 (process_full_type_unit, dwarf2_ranges_read)
9462 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9463 (dwarf_decode_lines): Use dwarf2_psymtab.
9464 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9465 (add_address_entry_worker, write_one_signatured_type)
9466 (recursively_count_psymbols, recursively_write_psymbols)
9467 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9468 (write_debug_names): Likewise.
9469 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9470 <pst>: Now a legacy_psymtab.
9471 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9472 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9473 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9474 * ctfread.c (struct ctf_psymtab): New.
9475 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9476 ctf_psymtab.
9477 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9478 (create_partial_symtab): Return a ctf_psymtab.
9479 (scan_partial_symbols): Update.
9480
c3693a1d
TT
94812020-01-26 Tom Tromey <tom@tromey.com>
9482
9483 * xcoffread.c (xcoff_start_psymtab): Use new.
9484 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9485 renamed from start_psymtab_common.
9486 * psympriv.h (struct partial_symtab): Add new constructor.
9487 (start_psymtab_common): Don't declare.
9488 * mdebugread.c (parse_partial_symbols): Use new.
9489 * dwarf2read.c (create_partial_symtab): Use new.
9490 * dbxread.c (start_psymtab): Use new.
9491 * ctfread.c (create_partial_symtab): Use new.
9492
32caafd0
TT
94932020-01-26 Tom Tromey <tom@tromey.com>
9494
9495 * xcoffread.c (xcoff_end_psymtab): Use new.
9496 * psymtab.c (start_psymtab_common): Use new.
9497 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9498 Update.
9499 * psympriv.h (struct partial_symtab): Add parameters to
9500 constructor. Don't inline.
9501 (allocate_psymtab): Don't declare.
9502 * mdebugread.c (new_psymtab): Use new.
9503 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9504 * dbxread.c (dbx_end_psymtab): Use new.
9505
abaa2f23
TT
95062020-01-26 Tom Tromey <tom@tromey.com>
9507
9508 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9509 allocate_psymtab. Update documentation.
9510 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9511 allocate_psymtab. Do not use new.
9512 (allocate_psymtab): Use new. Update.
9513
6d94535f
TT
95142020-01-26 Tom Tromey <tom@tromey.com>
9515
9516 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9517 * psymtab.c (psym_print_stats): Update.
9518 * psympriv.h (struct partial_symtab) <readin,
9519 psymtabs_addrmap_supported, anonymous>: Now bool.
9520 * mdebugread.c (psymtab_to_symtab_1): Update.
9521 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9522 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9523 (process_full_comp_unit, process_full_type_unit): Update.
9524 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9525 * ctfread.c (psymtab_to_symtab): Update.
9526
6f17252b
TT
95272020-01-26 Tom Tromey <tom@tromey.com>
9528
9529 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9530 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9531 * psymtab.c (psymtab_storage): Delete psymtabs.
9532 (psymtab_storage::allocate_psymtab): Use new.
9533 (psymtab_storage::discard_psymtab): Use delete.
9534 * psympriv.h (struct partial_symtab): Add constructor and
9535 initializers.
9536
f6f1cebc
TT
95372020-01-26 Tom Tromey <tom@tromey.com>
9538
9539 * machoread.c: Do not include psympriv.h.
9540
e47e48f6
PW
95412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9542
9543 * NEWS: Mention the new option and the set/show commands.
9544
a2fedca9
PW
95452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9546
9547 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9548 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9549 (validate_exec_file): New variables, enums, functions.
9550 (exec_file_locate_attach, print_section_info): Style the filenames.
9551 (_initialize_exec): Install show_exec_file_mismatch_command and
9552 set_exec_file_mismatch_command.
9553 * gdbcore.h (validate_exec_file): Declare.
9554 * infcmd.c (attach_command): Call validate_exec_file.
9555 * remote.c ( remote_target::remote_add_inferior): Likewise.
9556
7ffa82e1
AB
95572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * frame.c (find_frame_sal): Move call to get_next_frame into more
9560 inner scope.
9561 * inline-frame.c (inilne_state) <inline_state>: Update argument
9562 types.
9563 (inilne_state) <skipped_symbol>: Rename to...
9564 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9565 (skip_inline_frames): Build vector of skipped symbols and use this
9566 to reate the inline_state.
9567 (inline_skipped_symbol): Add a comment and some assertions, fetch
9568 skipped symbol from the list.
9569
3d92a3e3
AB
95702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * buildsym.c (lte_is_less_than): Delete.
9573 (buildsym_compunit::end_symtab_with_blockvector): Create local
9574 lambda function to sort line table entries, and use
9575 std::stable_sort instead of std::sort.
9576 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9577 markers when looking for a previous line.
9578
94a72be7
AB
95792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9580
9581 * dwarf2read.c (lnp_state_machine::record_line): Include
9582 end_sequence parameter in debug print out. Record the line if we
9583 are at an end_sequence marker even if it's not the start of a
9584 statement.
9585 * symmisc.c (maintenance_print_one_line_table): Print end of
9586 sequence markers with 'END' not '0'.
9587
53af73bf
PA
95882020-01-24 Pedro Alves <palves@redhat.com>
9589
9590 PR gdb/25410
9591 * thread.c (scoped_restore_current_thread::restore): Use
9592 switch_to_inferior_no_thread.
9593 * exec.c: Include "progspace-and-thread.h".
9594 (add_target_sections, remove_target_sections):
9595 scoped_restore_current_pspace_and_thread instead of
9596 scoped_restore_current_thread.
9597 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9598 and aspace to the inferior before calling clone_program_space.
9599 Remove stale comment.
9600
3050c6f4
CB
96012020-01-24 Christian Biesinger <cbiesinger@google.com>
9602
9603 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9604 (arm_netbsd_nat_target::fetch_registers): ...this.
9605 (arm_nbsd_nat_target::store_registers): Rename to...
9606 (arm_netbsd_nat_target::store_registers): ...this.
9607
73685c7e
CB
96082020-01-24 Christian Biesinger <cbiesinger@google.com>
9609
9610 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9611 register_t.
9612
89203d40
CB
96132020-01-24 Christian Biesinger <cbiesinger@google.com>
9614
9615 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9616 Update comment.
9617 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9618 Likewise.
9619 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9620 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9621 the correct replacement (iterate_over_regset_sections).
9622 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9623 Update comment.
9624
1ba1ac88
AB
96252020-01-24 Graham Markall <graham.markall@embecosm.com>
9626
9627 PR gdb/23718
9628 * gdb/python/python.c (execute_gdb_command): Call
9629 async_enable_stdin in catch block.
9630
f3364a6d
AB
96312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9634 SWITCH_THRU_ALL_UIS.
9635
733d0a67
AB
96362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9637
9638 PR tui/9765
9639 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9640 comment, add extra parameter, and update to store previous symbol
9641 when appropriate.
9642 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9643 add extra parameter.
9644 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9645 remove unneeded parameter, add try/catch around gdb_print_insn,
9646 rewrite to add items to asm_lines vector.
9647 (tui_find_backward_disassembly_start_address): New function.
9648 (tui_find_disassembly_address): Updated throughout.
9649 (tui_disasm_window::set_contents): Update for changes to
9650 tui_disassemble.
9651 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9652 number of lines to scroll.
9653
b3b3bada
SM
96542020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9655
9656 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9657 (SECT_OFF_DATA): Likewise.
9658 (SECT_OFF_RODATA): Likewise.
9659 (SECT_OFF_TEXT): Likewise.
9660 (SECT_OFF_BSS): Likewise.
9661 (struct objfile) <text_section_offset, data_section_offset>: New
9662 methods.
9663 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9664 objfile::text_section_offset.
9665 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9666 * coffread.c (coff_symtab_read): Likewise.
9667 (enter_linenos): Likewise.
9668 (process_coff_symbol): Likewise.
9669 * ctfread.c (get_objfile_text_range): Likewise.
9670 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9671 Use objfile::data_section_offset.
9672 * dwarf2-frame.c (execute_cfa_program): Use
9673 objfile::text_section_offset.
9674 (dwarf2_frame_find_fde): Likewise.
9675 * dwarf2read.c (create_addrmap_from_index): Likewise.
9676 (create_addrmap_from_aranges): Likewise.
9677 (dw2_find_pc_sect_compunit_symtab): Likewise.
9678 (process_psymtab_comp_unit_reader): Likewise.
9679 (add_partial_symbol): Likewise.
9680 (add_partial_subprogram): Likewise.
9681 (process_full_comp_unit): Likewise.
9682 (read_file_scope): Likewise.
9683 (read_func_scope): Likewise.
9684 (read_lexical_block_scope): Likewise.
9685 (read_call_site_scope): Likewise.
9686 (dwarf2_rnglists_process): Likewise.
9687 (dwarf2_ranges_process): Likewise.
9688 (dwarf2_ranges_read): Likewise.
9689 (dwarf_decode_lines_1): Likewise.
9690 (new_symbol): Likewise.
9691 (dwarf2_fetch_die_loc_sect_off): Likewise.
9692 (dwarf2_per_cu_text_offset): Likewise.
9693 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9694 * hppa-tdep.c (read_unwind_info): Likewise.
9695 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9696 * psympriv.h (struct partial_symtab): Likewise.
9697 * psymtab.c (find_pc_sect_psymtab): Likewise.
9698 * solib-svr4.c (enable_break): Likewise.
9699 * stap-probe.c (relocate_address): Use
9700 objfile::data_section_offset.
9701 * xcoffread.c (enter_line_range): Use
9702 objfile::text_section_offset.
9703 (read_xcoff_symtab): Likewise.
9704
ab53f382
SM
97052020-01-23 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9708 declaration to narrower scopes.
9709
e7eee665
SM
97102020-01-23 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * darwin-nat.h (struct darwin_exception_msg, enum
9713 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9714 Move up.
9715 (class darwin_nat_target) <wait_1, check_new_threads,
9716 decode_exception_message, decode_message, stop_inferior,
9717 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9718 * darwin-nat.c (darwin_check_new_threads): Rename to...
9719 (darwin_nat_target::check_new_threads): ... this.
9720 (darwin_suspend_inferior_it): Remove.
9721 (darwin_decode_exception_message): Rename to...
9722 (darwin_nat_target::decode_exception_message): ... this.
9723 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9724 (darwin_decode_message): Rename to...
9725 (darwin_nat_target::decode_message): ... this.
9726 (cancel_breakpoint): Rename to...
9727 (darwin_nat_target::cancel_breakpoint): ... this.
9728 (darwin_wait): Rename to...
9729 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9730 instead of iterate_over_inferiors.
9731 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9732 (darwin_stop_inferior): Rename to...
9733 (darwin_nat_target::stop_inferior): ... this.
9734 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9735 (darwin_init_thread_list): Rename to...
9736 (darwin_nat_target::init_thread_list): ... this.
9737 (darwin_ptrace_him): Rename to...
9738 (darwin_nat_target::ptrace_him): ... this.
9739 (darwin_nat_target::create_inferior): Pass lambda function to
9740 fork_inferior.
9741 (darwin_nat_target::detach): Call stop_inferior instead of
9742 darwin_stop_inferior.
9743 * fork-inferior.h (fork_inferior): Change init_trace_fun
9744 parameter to gdb::function_view.
9745 * fork-inferior.c (fork_inferior): Likewise.
9746
c162ed3e
HD
97472020-01-23 Hannes Domani <ssbssa@yahoo.de>
9748
9749 * i386-cygwin-tdep.c (core_process_module_section): Update.
9750 * windows-nat.c (struct lm_info_windows): Add text_offset.
9751 (windows_xfer_shared_libraries): Update.
9752 * windows-tdep.c (windows_xfer_shared_library):
9753 Add text_offset_cached argument.
9754 * windows-tdep.h (windows_xfer_shared_library): Update.
9755
a1237872
SM
97562020-01-21 Simon Marchi <simon.marchi@efficios.com>
9757
9758 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9759
b3ee6dd9
SM
97602020-01-21 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9763 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9764 replace with range-based for.
9765 (gdbsim_interrupt_inferior): Remove.
9766 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9767 with a range-based for. Inline code from
9768 gdbsim_interrupt_inferior.
9769
f9fac3c8
SM
97702020-01-21 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * infrun.c (proceed): Fix indentation.
9773
f6474de9
TT
97742020-01-21 Tom Tromey <tromey@adacore.com>
9775
9776 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9777 * python/python.c (python_extension_ops): Update.
9778 (gdbpy_colorize): New function.
9779 * python/lib/gdb/__init__.py (colorize): New function.
9780 * extension.h (ext_lang_colorize): Declare.
9781 * extension.c (ext_lang_colorize): New function.
9782 * extension-priv.h (struct extension_language_ops) <colorize>: New
9783 member.
9784 * cli/cli-style.c (_initialize_cli_style): Update help text.
9785
f0c702d4
LM
97862020-01-21 Luis Machado <luis.machado@linaro.org>
9787
9788 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9789 <cond>: Change type to bool.
9790 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9791 (aarch64_displaced_step_cb): Likewise.
9792 (aarch64_displaced_step_tb): Likewise.
9793
1ab139e5
LM
97942020-01-21 Luis Machado <luis.machado@linaro.org>
9795
9796 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9797 output.
9798
0c271889
LM
97992020-01-21 Luis Machado <luis.machado@linaro.org>
9800
9801 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9802 <pc_adjust>: Adjust the documentation.
9803 (aarch64_displaced_step_fixup): Check if PC really moved before
9804 adjusting it.
9805
4d89c1c7
TT
98062020-01-19 Tom Tromey <tom@tromey.com>
9807
9808 * disasm.c (~gdb_disassembler): New destructor.
9809 (gdb_buffered_insn_length): Call disassemble_free_target.
9810 * disasm.h (class gdb_disassembler): Declare destructor. Use
9811 DISABLE_COPY_AND_ASSIGN.
9812
c0ab21c2
TT
98132020-01-19 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9816 (die_reader_func_ftype): Remove.
9817 (cutu_reader): New class.
9818 (dw2_get_file_names_reader): Remove "data" parameter.
9819 (dw2_get_file_names): Use cutu_reader.
9820 (create_debug_type_hash_table): Update.
9821 (read_cutu_die_from_dwo): Update comment.
9822 (lookup_dwo_unit): Add dwo_name parameter.
9823 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9824 die_reader_func_ftype and data parameters.
9825 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9826 Remove die_reader_func_ftype and data parameters.
9827 (~cutu_reader): New; from init_cutu_and_read_dies.
9828 (cutu_reader::cutu_reader): Rename from
9829 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9830 and data parameters.
9831 (init_cutu_and_read_dies_simple): Remove.
9832 (struct process_psymtab_comp_unit_data): Remove.
9833 (process_psymtab_comp_unit_reader): Remove data parameter; add
9834 want_partial_unit and pretend_language parameters.
9835 (process_psymtab_comp_unit): Use cutu_reader.
9836 (build_type_psymtabs_reader): Remove data parameter.
9837 (build_type_psymtabs_1): Use cutu_reader.
9838 (process_skeletonless_type_unit): Likewise.
9839 (load_partial_comp_unit_reader): Remove.
9840 (load_partial_comp_unit): Use cutu_reader.
9841 (load_full_comp_unit_reader): Remove.
9842 (load_full_comp_unit): Use cutu_reader.
9843 (struct create_dwo_cu_data): Remove.
9844 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9845 dwo_unit parameters.
9846 (create_cus_hash_table): Use cutu_reader.
9847 (struct dwarf2_read_addr_index_data): Remove.
9848 (dwarf2_read_addr_index_reader): Remove.
9849 (dwarf2_read_addr_index): Use cutu_reader.
9850 (read_signatured_type_reader): Remove.
9851 (read_signatured_type): Use cutu_reader.
9852
45bbae5c
TT
98532020-01-19 Tom Tromey <tom@tromey.com>
9854
9855 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9856 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9857 (tui_wrefresh): Declare.
9858 * tui/tui-wingeneral.c (suppress_output): New global.
9859 (tui_suppress_output, ~tui_suppress_output): New constructor and
9860 destructor.
9861 (tui_wrefresh): New function.
9862 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9863 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9864 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9865 method.
9866 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9867 tui_wrefresh.
9868 (tui_data_window::no_refresh): New method.
9869 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9870 (tui_reg_command): Use tui_suppress_output
9871 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9872 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9873 method.
9874 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9875
4f13c1c0
TT
98762020-01-19 Tom Tromey <tom@tromey.com>
9877
9878 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9879 Handle case where symtab is null.
9880
fa47e446
SM
98812020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9882
9883 * linux-fork.c (one_fork_p): Simplify.
9884
26f42329
SM
98852020-01-17 Simon Marchi <simon.marchi@efficios.com>
9886
9887 * top.c (struct qt_args): Remove.
9888 (kill_or_detach): Change return type to void, replace `void *`
9889 parameter with a proper one.
9890 (print_inferior_quit_action): Likewise.
9891 (quit_confirm): Use range-based for loop to iterate over inferiors.
9892 (quit_force): Likewise.
9893
a9ac81b1
SM
98942020-01-17 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9897 `void *` parameter with proper parameters.
9898 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9899 (print_one_inferior): Change return type to void, replace `void *`
9900 parameter with proper parameters.
9901 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9902 inferiors.
9903 (get_other_inferior): Remove.
9904 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9905 inferiors.
9906
788eca49
SM
99072020-01-17 Simon Marchi <simon.marchi@efficios.com>
9908
9909 * mi/mi-interp.c (report_initial_inferior): Remove.
9910 (mi_interp::init): Use range-based for to iterate over inferiors.
9911
d9bc85b6
SM
99122020-01-17 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * python/py-inferior.c (build_inferior_list): Remove.
9915 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9916
40c94099
CB
99172020-01-16 Christian Biesinger <cbiesinger@google.com>
9918
9919 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9920 (btrace_stitch_trace): Likewise.
9921 * charset.c (intermediate_encoding): Likewise (vaild).
9922 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9923 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9924 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9925
e0cdfe3c
HD
99262020-01-16 Hannes Domani <ssbssa@yahoo.de>
9927
9928 * windows-tdep.c (windows_get_tlb_type):
9929 Add rtl_user_process_parameters type.
9930
790f1718 99312020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9932 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9933
9934 PR build/24805
9935 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9936 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9937 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9938 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9939 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9940 (ps_plog): Redeclare exported functions with default visibility.
9941
3112ed97
NA
99422020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9943
9944 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9945 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9946
8dc3273e
SM
99472020-01-15 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * infcmd.c (post_create_inferior): Use get_thread_regcache
9950 instead of get_current_regcache.
9951
ff47f4f0
TT
99522020-01-14 Tom Tromey <tom@tromey.com>
9953
9954 PR symtab/12535:
9955 * python/python.c (gdbpy_decode_line): Treat empty string the same
9956 as no argument.
9957
975f45b7
TT
99582020-01-14 Tom Tromey <tom@tromey.com>
9959
9960 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9961
25e57356
TT
99622020-01-14 Tom Tromey <tom@tromey.com>
9963
9964 * nat/linux-btrace.c: Don't include <config.h>.
9965 * nat/linux-ptrace.c: Don't include <config.h>.
9966 * nat/x86-linux-dregs.c: Don't include <config.h>.
9967
05ea2a05
TT
99682020-01-14 Tom Tromey <tom@tromey.com>
9969
9970 * configure: Rebuild.
9971 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9972
01027315
TT
99732020-01-14 Tom Tromey <tom@tromey.com>
9974
9975 * nat/x86-linux-dregs.c: Include configh.h.
9976 * nat/linux-ptrace.c: Include configh.h.
9977 * nat/linux-btrace.c: Include configh.h.
9978 * defs.h: Include config.h, bfd.h.
9979 * configure.ac: Don't source common.host.
9980 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9981 * configure: Rebuild.
9982 * acinclude.m4: Update path.
9983 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9984 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9985 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9986 (CLIBS): Add LIBSUPPORT.
9987 (CDEPS): Likewise.
9988 (COMMON_SFILES): Remove gdbsupport files.
9989 (HFILES_NO_SRCDIR): Likewise.
9990 (stamp-version): Update path to create-version.sh.
9991 (ALLDEPFILES): Remove gdbsupport files.
9992
b2ceabe8
TT
99932020-01-14 Tom Tromey <tom@tromey.com>
9994
9995 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9996 USE_WIN32API when needed.
9997 * configure.ac (USE_WIN32API): Don't define.
9998 (WIN32LIBS): Use WIN32APILIBS.
9999 * configure: Rebuild.
10000
25c51f71
TT
100012020-01-14 Tom Tromey <tom@tromey.com>
10002
10003 * configure: Rebuild.
10004 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10005
717c684d
BE
100062020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10007
10008 * skip.c (skip_function_command): Make skip w/o arguments use the
10009 name of the inlined function if pc is inside any inlined function.
10010
7da6a5b9
LM
100112020-01-14 Luis Machado <luis.machado@linaro.org>
10012
10013 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10014 * infrun.c (resume_1): Likewise.
10015 (handle_inferior_event): Remove stale comment.
10016 * linux-nat.c (linux_nat_target::resume): Update comments.
10017 (save_stop_reason): Likewise.
10018 (linux_nat_filter_event): Likewise.
10019 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10020
44e4c775
AB
100212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * elfread.c (record_minimal_symbol): Set section index to 0 for
10024 non-allocatable sections.
10025
18a8505e
AT
10026
100272020-01-13 Ali Tamur <tamur@google.com>
10028
10029 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10030 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10031 to gdb::optional. Update comments.
10032 (dwo_file): Update comments.
10033 (read_attribute): Update API to take an additional out parameter,
10034 need_reprocess. This is used to mark attributes that need other
10035 attributes (e.g. str_offsets_base) for correct computation which may not
10036 have been read yet.
10037 (read_attribute_reprocess): New function declaration.
10038 (read_addr_index): Likewise.
10039 (read_dwo_str_index): Likewise.
10040 (read_stub_str_index): Likewise.
10041 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10042 (lookup_addr_base): New function definition.
10043 (lookup_ranges_base): Likewise.
10044 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10045 lookup_ranges_base.
10046 (init_cutu_and_read_dies): Update comments.
10047 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10048 unit. This is used to inherit parent's str_offsets_base and addr_base.
10049 Update comments.
10050 (init_cutu_and_read_dies_simple): Reflect API changes.
10051 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10052 (create_cus_hash_table): Change API to take parent compile unit.
10053 Reflect API changes.
10054 (open_and_init_dwo_file): Reflect API changes.
10055 (dwarf2_get_pc_bounds): Update comments.
10056 (dwarf2_record_block_ranges): Likewise.
10057 (read_full_die_1): Change implementation to reprocess attributes that
10058 need str_offsets_base and addr_base.
10059 (partial_die_info::read): Likewise.
10060 (read_attribute_reprocess): New function definition.
10061 (read_attribute_value): Change API to take an additional out parameter,
10062 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10063 when a non-dwo compile unit has index based attributes.
10064 (read_attribute): Reflect API changes.
10065 (read_addr_index_1): Reflect API changes. Update comments.
10066 (dwarf2_read_addr_index_data): Reflect API changes.
10067 (dwarf2_read_addr_index): Likewise.
10068 (read_str_index): Change API and implementation. This becomes a helper
10069 to be used by the new string index related methods. Update error
10070 message and comments.
10071 (read_dwo_str_index): New function definition.
10072 (read_stub_str_index): Likewise.
10073 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10074 * symfile.h (dwarf2_debug_sections): Likewise.
10075 * xcoffread.c (dwarf2_debug_sections): Likewise.
10076
0cac9354
SM
100772020-01-13 Simon Marchi <simon.marchi@efficios.com>
10078
10079 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10080 core_reg_sect type to gdb_byte *.
10081 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10082 * cris-tdep.c (fetch_core_registers): Likewise.
10083 * corelow.c (core_target::get_core_register_section): Change
10084 type of `contents` to gdb::byte_vector.
10085
9a6d629c
AB
100862020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10087
10088 * tui/tui-wingeneral.c (box_win): Position the title in the center
10089 of the border.
10090
d8b2f9e3
SM
100912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * corelow.c (core_target::get_core_register_section): Use
10094 std::vector instead of alloca.
10095
bb564c58
SM
100962020-01-13 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * warning.m4: Add -Wmissing-declarations to build_warnings.
10099 * configure: Re-generate.
10100
6b366111
SM
101012020-01-13 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * python/python.c (init__gdb_module): Add declaration.
10104
6c265988
SM
101052020-01-13 Simon Marchi <simon.marchi@efficios.com>
10106
10107 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10108 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10109 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10110 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10111 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10112 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10113 * ada-exp.y (_initialize_ada_exp): Add declaration.
10114 * ada-lang.c (_initialize_ada_language): Add declaration.
10115 * ada-tasks.c (_initialize_tasks): Add declaration.
10116 * agent.c (_initialize_agent): Add declaration.
10117 * aix-thread.c (_initialize_aix_thread): Add declaration.
10118 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10119 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10120 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10121 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10122 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10123 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10124 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10125 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10126 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10127 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10128 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10129 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10130 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10131 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10132 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10133 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10134 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10135 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10136 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10137 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10138 * annotate.c (_initialize_annotate): Add declaration.
10139 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10140 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10141 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10142 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10143 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10144 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10145 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10146 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10147 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10148 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10149 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10150 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10151 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10152 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10153 * auto-load.c (_initialize_auto_load): Add declaration.
10154 * auxv.c (_initialize_auxv): Add declaration.
10155 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10156 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10157 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10158 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10159 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10160 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10161 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10162 * breakpoint.c (_initialize_breakpoint): Add declaration.
10163 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10164 * btrace.c (_initialize_btrace): Add declaration.
10165 * charset.c (_initialize_charset): Add declaration.
10166 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10167 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10168 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10169 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10170 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10171 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10172 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10173 * coffread.c (_initialize_coffread): Add declaration.
10174 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10175 * compile/compile.c (_initialize_compile): Add declaration.
10176 * complaints.c (_initialize_complaints): Add declaration.
10177 * completer.c (_initialize_completer): Add declaration.
10178 * copying.c (_initialize_copying): Add declaration.
10179 * corefile.c (_initialize_core): Add declaration.
10180 * corelow.c (_initialize_corelow): Add declaration.
10181 * cp-abi.c (_initialize_cp_abi): Add declaration.
10182 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10183 * cp-support.c (_initialize_cp_support): Add declaration.
10184 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10185 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10186 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10187 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10188 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10189 * ctfread.c (_initialize_ctfread): Add declaration.
10190 * d-lang.c (_initialize_d_language): Add declaration.
10191 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10192 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10193 * dbxread.c (_initialize_dbxread): Add declaration.
10194 * dcache.c (_initialize_dcache): Add declaration.
10195 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10196 * disasm.c (_initialize_disasm): Add declaration.
10197 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10198 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10199 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10200 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10201 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10202 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10203 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10204 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10205 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10206 * elfread.c (_initialize_elfread): Add declaration.
10207 * exec.c (_initialize_exec): Add declaration.
10208 * extension.c (_initialize_extension): Add declaration.
10209 * f-lang.c (_initialize_f_language): Add declaration.
10210 * f-valprint.c (_initialize_f_valprint): Add declaration.
10211 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10212 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10213 * filesystem.c (_initialize_filesystem): Add declaration.
10214 * findcmd.c (_initialize_mem_search): Add declaration.
10215 * findvar.c (_initialize_findvar): Add declaration.
10216 * fork-child.c (_initialize_fork_child): Add declaration.
10217 * frame-base.c (_initialize_frame_base): Add declaration.
10218 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10219 * frame.c (_initialize_frame): Add declaration.
10220 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10221 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10222 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10223 * gcore.c (_initialize_gcore): Add declaration.
10224 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10225 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10226 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10227 * gdbarch.c (_initialize_gdbarch): Add declaration.
10228 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10229 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10230 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10231 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10232 * go-lang.c (_initialize_go_language): Add declaration.
10233 * go32-nat.c (_initialize_go32_nat): Add declaration.
10234 * guile/guile.c (_initialize_guile): Add declaration.
10235 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10236 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10237 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10238 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10239 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10240 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10241 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10242 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10243 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10244 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10245 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10246 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10247 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10248 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10249 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10250 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10251 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10252 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10253 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10254 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10255 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10256 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10257 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10258 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10259 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10260 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10261 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10262 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10263 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10264 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10265 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10266 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10267 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10268 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10269 * infcall.c (_initialize_infcall): Add declaration.
10270 * infcmd.c (_initialize_infcmd): Add declaration.
10271 * inflow.c (_initialize_inflow): Add declaration.
10272 * infrun.c (_initialize_infrun): Add declaration.
10273 * interps.c (_initialize_interpreter): Add declaration.
10274 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10275 * jit.c (_initialize_jit): Add declaration.
10276 * language.c (_initialize_language): Add declaration.
10277 * linux-fork.c (_initialize_linux_fork): Add declaration.
10278 * linux-nat.c (_initialize_linux_nat): Add declaration.
10279 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10280 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10281 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10282 * m2-lang.c (_initialize_m2_language): Add declaration.
10283 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10284 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10285 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10286 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10287 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10288 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10289 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10290 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10291 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10292 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10293 * machoread.c (_initialize_machoread): Add declaration.
10294 * macrocmd.c (_initialize_macrocmd): Add declaration.
10295 * macroscope.c (_initialize_macroscope): Add declaration.
10296 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10297 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10298 * maint.c (_initialize_maint_cmds): Add declaration.
10299 * mdebugread.c (_initialize_mdebugread): Add declaration.
10300 * memattr.c (_initialize_mem): Add declaration.
10301 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10302 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10303 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10304 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10305 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10306 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10307 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10308 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10309 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10310 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10311 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10312 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10313 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10314 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10315 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10316 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10317 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10318 * mipsread.c (_initialize_mipsread): Add declaration.
10319 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10320 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10321 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10322 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10323 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10324 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10325 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10326 * nto-procfs.c (_initialize_procfs): Add declaration.
10327 * objc-lang.c (_initialize_objc_language): Add declaration.
10328 * observable.c (_initialize_observer): Add declaration.
10329 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10330 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10331 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10332 * osabi.c (_initialize_gdb_osabi): Add declaration.
10333 * osdata.c (_initialize_osdata): Add declaration.
10334 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10335 * parse.c (_initialize_parse): Add declaration.
10336 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10337 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10338 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10339 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10340 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10341 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10342 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10343 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10344 * printcmd.c (_initialize_printcmd): Add declaration.
10345 * probe.c (_initialize_probe): Add declaration.
10346 * proc-api.c (_initialize_proc_api): Add declaration.
10347 * proc-events.c (_initialize_proc_events): Add declaration.
10348 * proc-service.c (_initialize_proc_service): Add declaration.
10349 * procfs.c (_initialize_procfs): Add declaration.
10350 * producer.c (_initialize_producer): Add declaration.
10351 * psymtab.c (_initialize_psymtab): Add declaration.
10352 * python/python.c (_initialize_python): Add declaration.
10353 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10354 * record-btrace.c (_initialize_record_btrace): Add declaration.
10355 * record-full.c (_initialize_record_full): Add declaration.
10356 * record.c (_initialize_record): Add declaration.
10357 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10358 * regcache.c (_initialize_regcache): Add declaration.
10359 * reggroups.c (_initialize_reggroup): Add declaration.
10360 * remote-notif.c (_initialize_notif): Add declaration.
10361 * remote-sim.c (_initialize_remote_sim): Add declaration.
10362 * remote.c (_initialize_remote): Add declaration.
10363 * reverse.c (_initialize_reverse): Add declaration.
10364 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10365 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10366 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10367 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10368 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10369 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10370 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10371 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10372 Add declaration.
10373 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10374 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10375 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10376 * rust-exp.y (_initialize_rust_exp): Add declaration.
10377 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10378 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10379 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10380 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10381 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10382 * score-tdep.c (_initialize_score_tdep): Add declaration.
10383 * ser-go32.c (_initialize_ser_dos): Add declaration.
10384 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10385 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10386 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10387 * ser-uds.c (_initialize_ser_socket): Add declaration.
10388 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10389 * serial.c (_initialize_serial): Add declaration.
10390 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10391 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10392 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10393 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10394 * skip.c (_initialize_step_skip): Add declaration.
10395 * sol-thread.c (_initialize_sol_thread): Add declaration.
10396 * solib-aix.c (_initialize_solib_aix): Add declaration.
10397 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10398 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10399 * solib-frv.c (_initialize_frv_solib): Add declaration.
10400 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10401 * solib-target.c (_initialize_solib_target): Add declaration.
10402 * solib.c (_initialize_solib): Add declaration.
10403 * source-cache.c (_initialize_source_cache): Add declaration.
10404 * source.c (_initialize_source): Add declaration.
10405 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10406 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10407 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10408 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10409 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10410 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10411 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10412 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10413 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10414 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10415 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10416 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10417 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10418 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10419 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10420 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10421 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10422 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10423 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10424 * stabsread.c (_initialize_stabsread): Add declaration.
10425 * stack.c (_initialize_stack): Add declaration.
10426 * stap-probe.c (_initialize_stap_probe): Add declaration.
10427 * std-regs.c (_initialize_frame_reg): Add declaration.
10428 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10429 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10430 * symfile.c (_initialize_symfile): Add declaration.
10431 * symmisc.c (_initialize_symmisc): Add declaration.
10432 * symtab.c (_initialize_symtab): Add declaration.
10433 * target.c (_initialize_target): Add declaration.
10434 * target-connection.c (_initialize_target_connection): Add
10435 declaration.
10436 * target-dcache.c (_initialize_target_dcache): Add declaration.
10437 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10438 * thread.c (_initialize_thread): Add declaration.
10439 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10440 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10441 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10442 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10443 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10444 * tracectf.c (_initialize_ctf): Add declaration.
10445 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10446 * tracefile.c (_initialize_tracefile): Add declaration.
10447 * tracepoint.c (_initialize_tracepoint): Add declaration.
10448 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10449 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10450 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10451 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10452 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10453 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10454 * tui/tui.c (_initialize_tui): Add declaration.
10455 * typeprint.c (_initialize_typeprint): Add declaration.
10456 * ui-style.c (_initialize_ui_style): Add declaration.
10457 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10458 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10459 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10460 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10461 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10462 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10463 * unittests/filtered_iterator-selftests.c
10464 (_initialize_filtered_iterator_selftests): Add declaration.
10465 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10466 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10467 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10468 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10469 * unittests/main-thread-selftests.c
10470 (_initialize_main_thread_selftests): Add declaration.
10471 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10472 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10473 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10474 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10475 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10476 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10477 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10478 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10479 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10480 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10481 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10482 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10483 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10484 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10485 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10486 declaration.
10487 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10488 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10489 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10490 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10491 * user-regs.c (_initialize_user_regs): Add declaration.
10492 * utils.c (_initialize_utils): Add declaration.
10493 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10494 * valops.c (_initialize_valops): Add declaration.
10495 * valprint.c (_initialize_valprint): Add declaration.
10496 * value.c (_initialize_values): Add declaration.
10497 * varobj.c (_initialize_varobj): Add declaration.
10498 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10499 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10500 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10501 * windows-nat.c (_initialize_windows_nat): Add declaration.
10502 (_initialize_check_for_gdb_ini): Add declaration.
10503 (_initialize_loadable): Add declaration.
10504 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10505 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10506 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10507 * xcoffread.c (_initialize_xcoffread): Add declaration.
10508 * xml-support.c (_initialize_xml_support): Add declaration.
10509 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10510 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10511 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10512 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10513
e2de1eec
SM
105142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10515
10516 * regformats/regdat.sh: Generate declaration for init function.
10517
e0037b4c
SM
105182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10519
10520 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10521 up.
10522 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10523 close_one_inferior>: New methods.
10524 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10525 pass down target to find_inferior_pid.
10526 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10527 Pass down target to find_inferior_ptid.
10528 (gdbsim_target::create_inferior): Pass down target to
10529 add_thread_silent.
10530 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10531 target down to find_inferior_ptid and switch_to_thread.
10532 (gdbsim_target::close): Update to call close_one_inferior.
10533 (struct resume_data): Remove.
10534 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10535 directly, rather than through a void pointer.
10536 (gdbsim_target::resume): Update to call resume_one_inferior.
10537
58920b5b
SM
105382020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10541
4ec89149
PA
105422020-01-12 Pedro Alves <palves@redhat.com>
10543
10544 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10545 directly for the current inferior instead of
10546 discard_all_inferiors.
10547 (discard_all_inferiors): Delete.
10548
7c392d1d
TT
105492020-01-11 Tom Tromey <tom@tromey.com>
10550
10551 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10552 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10553 deprecated_safe_get_selected_frame.
10554
d9ebdab7
TBA
105552020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10556
10557 * inferior.c (print_inferior): Switch inferior before printing it.
10558
f3c469b9
PA
105592020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10560 Pedro Alves <palves@redhat.com>
10561
10562 * progspace-and-thread.c (switch_to_program_space_and_thread):
10563 Assert there's an inferior for PSPACE. Use
10564 switch_to_inferior_no_thread to switch the inferior too.
10565 * progspace.c (program_space::~program_space): Call
10566 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10567 (program_space::free_all_objfiles): Don't call clear_symtab_users
10568 here.
10569 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10570
65c574f6
PA
105712020-01-10 Pedro Alves <palves@redhat.com>
10572
10573 * NEWS: Mention multi-target debugging, "info connections", and
10574 "add-inferior -no-connection".
10575
2f4fcf00
PA
105762020-01-10 Pedro Alves <palves@redhat.com>
10577
10578 * infrun.c: Include "target-connection.h".
10579 (check_multi_target_resumption): New.
10580 (proceed): Call it.
10581 * target-connection.c (make_target_connection_string): Make
10582 extern.
10583 * target-connection.h (make_target_connection_string): Declare.
10584
121b3efd
PA
105852020-01-10 Pedro Alves <palves@redhat.com>
10586
10587 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10588 * inferior.c (uiout_field_connection): New function.
10589 (print_inferior): Add new "connection-id" column.
10590 (add_inferior_command): Show connection number/string of added
10591 inferior.
10592 * process-stratum-target.h
10593 (process_stratum_target::connection_string): New virtual method.
10594 (process_stratum_target::connection_number): New field.
10595 * remote.c (remote_target::connection_string): New override.
10596 * target-connection.c: New file.
10597 * target-connection.h: New file.
10598 * target.c (decref_target): Remove process_stratum targets from
10599 the connection list.
10600 (target_stack::push): Add process_stratum targets to the
10601 connection list.
10602
4f837581
PA
106032020-01-10 Pedro Alves <palves@redhat.com>
10604
10605 Revert:
10606 2016-04-12 Pedro Alves <palves@redhat.com>
10607 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10608 Remove references to name.
10609 * serial.h (struct serial) <name>: Delete.
10610
f4ec508e
PA
106112020-01-10 Pedro Alves <palves@redhat.com>
10612
10613 * gdbarch-selftests.c (register_to_value_test): Remove "target
10614 already pushed" check.
10615
5b6d1e4f
PA
106162020-01-10 Pedro Alves <palves@redhat.com>
10617 John Baldwin <jhb@FreeBSD.org>
10618
10619 * aarch64-linux-nat.c
10620 (aarch64_linux_nat_target::thread_architecture): Adjust.
10621 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10622 (task_command_1): Likewise.
10623 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10624 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10625 (aix_thread_target::store_registers)
10626 (aix_thread_target::thread_alive): Adjust.
10627 * amd64-fbsd-tdep.c: Include "inferior.h".
10628 (amd64fbsd_get_thread_local_address): Pass down target.
10629 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10630 thread's gdbarch instead of target_gdbarch.
10631 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10632 get_last_target_status.
10633 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10634 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10635 inferiors.
10636 (update_inserted_breakpoint_locations): Skip if inferiors with no
10637 execution.
10638 (update_global_location_list): When handling moribund locations,
10639 find representative inferior for location's pspace, and use thread
10640 count of its process_stratum target.
10641 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10642 * bsd-uthread.c (bsd_uthread_target::wait): Use
10643 as_process_stratum_target and adjust thread_change_ptid and
10644 add_thread calls.
10645 (bsd_uthread_target::update_thread_list): Use
10646 as_process_stratum_target and adjust find_thread_ptid,
10647 thread_change_ptid and add_thread calls.
10648 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10649 find_thread_ptid call.
10650 * corelow.c (add_to_thread_list): Adjust add_thread call.
10651 (core_target_open): Adjust add_thread_silent and thread_count
10652 calls.
10653 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10654 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10655 * event-top.c (async_disconnect): Pop targets from all inferiors.
10656 * exec.c (add_target_sections): Push exec target on all inferiors
10657 sharing the program space.
10658 (remove_target_sections): Remove the exec target from all
10659 inferiors sharing the program space.
10660 (exec_on_vfork): New.
10661 * exec.h (exec_on_vfork): Declare.
10662 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10663 Pass it down.
10664 (fbsd_nat_target::update_thread_list): Adjust.
10665 (fbsd_nat_target::resume): Adjust.
10666 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10667 down.
10668 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10669 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10670 get_thread_arch_regcache call.
10671 * fork-child.c (gdb_startup_inferior): Pass target down to
10672 startup_inferior and set_executing.
10673 * gdbthread.h (struct process_stratum_target): Forward declare.
10674 (add_thread, add_thread_silent, add_thread_with_info)
10675 (in_thread_list): Add process_stratum_target parameter.
10676 (find_thread_ptid(inferior*, ptid_t)): New overload.
10677 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10678 parameter.
10679 (all_threads()): Delete overload.
10680 (all_threads, all_non_exited_threads): Add process_stratum_target
10681 parameter.
10682 (all_threads_safe): Use brace initialization.
10683 (thread_count): Add process_stratum_target parameter.
10684 (set_resumed, set_running, set_stop_requested, set_executing)
10685 (threads_are_executing, finish_thread_state): Add
10686 process_stratum_target parameter.
10687 (switch_to_thread): Use is_current_thread.
10688 * i386-fbsd-tdep.c: Include "inferior.h".
10689 (i386fbsd_get_thread_local_address): Pass down target.
10690 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10691 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10692 have_inferiors check.
10693 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10694 (inf_ptrace_target::attach): Adjust.
10695 * infcall.c (run_inferior_call): Adjust.
10696 * infcmd.c (run_command_1): Pass target to
10697 scoped_finish_thread_state.
10698 (proceed_thread_callback): Skip inferiors with no execution.
10699 (continue_command): Rename 'all_threads' local to avoid hiding
10700 'all_threads' function. Adjust get_last_target_status call.
10701 (prepare_one_step): Adjust set_running call.
10702 (signal_command): Use user_visible_resume_target. Compare thread
10703 pointers instead of inferior_ptid.
10704 (info_program_command): Adjust to pass down target.
10705 (attach_command): Mark target's 'thread_executing' flag.
10706 (stop_current_target_threads_ns): New, factored out from ...
10707 (interrupt_target_1): ... this. Switch inferior before making
10708 target calls.
10709 * inferior-iter.h
10710 (struct all_inferiors_iterator, struct all_inferiors_range)
10711 (struct all_inferiors_safe_range)
10712 (struct all_non_exited_inferiors_range): Filter on
10713 process_stratum_target too. Remove explicit.
10714 * inferior.c (inferior::inferior): Push dummy target on target
10715 stack.
10716 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10717 Add process_stratum_target parameter, and pass it down.
10718 (have_live_inferiors): Adjust.
10719 (switch_to_inferior_and_push_target): New.
10720 (add_inferior_command, clone_inferior_command): Handle
10721 "-no-connection" parameter. Use
10722 switch_to_inferior_and_push_target.
10723 (_initialize_inferior): Mention "-no-connection" option in
10724 the help of "add-inferior" and "clone-inferior" commands.
10725 * inferior.h: Include "process-stratum-target.h".
10726 (interrupt_target_1): Use bool.
10727 (struct inferior) <push_target, unpush_target, target_is_pushed,
10728 find_target_beneath, top_target, process_target, target_at,
10729 m_stack>: New.
10730 (discard_all_inferiors): Delete.
10731 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10732 (all_inferiors, all_non_exited_inferiors): Add
10733 process_stratum_target parameter.
10734 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10735 (target_last_proc_target): New global.
10736 (follow_fork_inferior): Push target on new inferior. Pass target
10737 to add_thread_silent. Call exec_on_vfork. Handle target's
10738 reference count.
10739 (follow_fork): Adjust get_last_target_status call. Also consider
10740 target.
10741 (follow_exec): Push target on new inferior.
10742 (struct execution_control_state) <target>: New field.
10743 (user_visible_resume_target): New.
10744 (do_target_resume): Call target_async.
10745 (resume_1): Set target's threads_executing flag. Consider resume
10746 target.
10747 (commit_resume_all_targets): New.
10748 (proceed): Also consider resume target. Skip threads of inferiors
10749 with no execution. Commit resumtion in all targets.
10750 (start_remote): Pass current inferior to wait_for_inferior.
10751 (infrun_thread_stop_requested): Consider target as well. Pass
10752 thread_info pointer to clear_inline_frame_state instead of ptid.
10753 (infrun_thread_thread_exit): Consider target as well.
10754 (random_pending_event_thread): New inferior parameter. Use it.
10755 (do_target_wait): Rename to ...
10756 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10757 down.
10758 (threads_are_resumed_pending_p, do_target_wait): New.
10759 (prepare_for_detach): Adjust calls.
10760 (wait_for_inferior): New inferior parameter. Handle it. Use
10761 do_target_wait_1 instead of do_target_wait.
10762 (fetch_inferior_event): Adjust. Switch to representative
10763 inferior. Pass target down.
10764 (set_last_target_status): Add process_stratum_target parameter.
10765 Save target in global.
10766 (get_last_target_status): Add process_stratum_target parameter and
10767 handle it.
10768 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10769 (context_switch): Check inferior_ptid == null_ptid before calling
10770 inferior_thread().
10771 (get_inferior_stop_soon): Pass down target.
10772 (wait_one): Rename to ...
10773 (poll_one_curr_target): ... this.
10774 (struct wait_one_event): New.
10775 (wait_one): New.
10776 (stop_all_threads): Adjust.
10777 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10778 event's target.
10779 (switch_back_to_stepped_thread): Also consider target.
10780 (print_stop_event): Update.
10781 (normal_stop): Update. Also consider the resume target.
10782 * infrun.h (wait_for_inferior): Remove declaration.
10783 (user_visible_resume_target): New declaration.
10784 (get_last_target_status, set_last_target_status): New
10785 process_stratum_target parameter.
10786 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10787 process_stratum_target parameter, and use it.
10788 (clear_inline_frame_state (thread_info*)): New.
10789 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10790 process_stratum_target parameter.
10791 (clear_inline_frame_state (thread_info*)): Declare.
10792 * linux-fork.c (delete_checkpoint_command): Pass target down to
10793 find_thread_ptid.
10794 (checkpoint_command): Adjust.
10795 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10796 instead of just tweaking inferior_ptid.
10797 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10798 (exit_lwp): Pass target down to find_thread_ptid.
10799 (attach_proc_task_lwp_callback): Pass target down to
10800 add_thread/set_running/set_executing.
10801 (linux_nat_target::attach): Pass target down to
10802 thread_change_ptid.
10803 (get_detach_signal): Pass target down to find_thread_ptid.
10804 Consider last target status's target.
10805 (linux_resume_one_lwp_throw, resume_lwp)
10806 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10807 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10808 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10809 (linux_nat_target::async_wait_fd): New.
10810 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10811 target down.
10812 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10813 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10814 * linux-thread-db.c (struct thread_db_info::process_target): New
10815 field.
10816 (add_thread_db_info): Save target.
10817 (get_thread_db_info): New process_stratum_target parameter. Also
10818 match target.
10819 (delete_thread_db_info): New process_stratum_target parameter.
10820 Also match target.
10821 (thread_from_lwp): Adjust to pass down target.
10822 (thread_db_notice_clone): Pass down target.
10823 (check_thread_db_callback): Pass down target.
10824 (try_thread_db_load_1): Always push the thread_db target.
10825 (try_thread_db_load, record_thread): Pass target down.
10826 (thread_db_target::detach): Pass target down. Always unpush the
10827 thread_db target.
10828 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10829 target down. Always unpush the thread_db target.
10830 (find_new_threads_callback, thread_db_find_new_threads_2)
10831 (thread_db_target::update_thread_list): Pass target down.
10832 (thread_db_target::pid_to_str): Pass current inferior down.
10833 (thread_db_target::get_thread_local_address): Pass target down.
10834 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10835 target down.
10836 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10837 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10838 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10839 (procfs_init_inferior): Rename to ...
10840 (procfs_target::procfs_init_inferior): ... this and adjust.
10841 (procfs_target::create_inferior, procfs_notice_thread)
10842 (procfs_do_thread_registers): Adjust.
10843 * ppc-fbsd-tdep.c: Include "inferior.h".
10844 (ppcfbsd_get_thread_local_address): Pass down target.
10845 * proc-service.c (ps_xfer_memory): Switch current inferior and
10846 program space as well.
10847 (get_ps_regcache): Pass target down.
10848 * process-stratum-target.c
10849 (process_stratum_target::thread_address_space)
10850 (process_stratum_target::thread_architecture): Pass target down.
10851 * process-stratum-target.h
10852 (process_stratum_target::threads_executing): New field.
10853 (as_process_stratum_target): New.
10854 * ravenscar-thread.c
10855 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10856 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10857 down.
10858 * record-btrace.c (record_btrace_target::info_record): Adjust.
10859 (record_btrace_target::record_method)
10860 (record_btrace_target::record_is_replaying)
10861 (record_btrace_target::fetch_registers)
10862 (get_thread_current_frame_id, record_btrace_target::resume)
10863 (record_btrace_target::wait, record_btrace_target::stop): Pass
10864 target down.
10865 * record-full.c (record_full_wait_1): Switch to event thread.
10866 Pass target down.
10867 * regcache.c (regcache::regcache)
10868 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10869 process_stratum_target parameter and handle it.
10870 (current_thread_target): New global.
10871 (get_thread_regcache): Add process_stratum_target parameter and
10872 handle it. Switch inferior before calling target method.
10873 (get_thread_regcache): Pass target down.
10874 (get_thread_regcache_for_ptid): Pass target down.
10875 (registers_changed_ptid): Add process_stratum_target parameter and
10876 handle it.
10877 (registers_changed_thread, registers_changed): Pass target down.
10878 (test_get_thread_arch_aspace_regcache): New.
10879 (current_regcache_test): Define a couple local test_target_ops
10880 instances and use them for testing.
10881 (readwrite_regcache): Pass process_stratum_target parameter.
10882 (cooked_read_test, cooked_write_test): Pass mock_target down.
10883 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10884 (get_thread_arch_aspace_regcache): Add process_stratum_target
10885 parameter.
10886 (regcache::target): New method.
10887 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10888 (regcache::registers_changed_ptid): Add process_stratum_target
10889 parameter.
10890 (regcache::m_target): New field.
10891 (registers_changed_ptid): Add process_stratum_target parameter.
10892 * remote.c (remote_state::supports_vCont_probed): New field.
10893 (remote_target::async_wait_fd): New method.
10894 (remote_unpush_and_throw): Add remote_target parameter.
10895 (get_current_remote_target): Adjust.
10896 (remote_target::remote_add_inferior): Push target.
10897 (remote_target::remote_add_thread)
10898 (remote_target::remote_notice_new_inferior)
10899 (get_remote_thread_info): Pass target down.
10900 (remote_target::update_thread_list): Skip threads of inferiors
10901 bound to other targets. (remote_target::close): Don't discard
10902 inferiors. (remote_target::add_current_inferior_and_thread)
10903 (remote_target::process_initial_stop_replies)
10904 (remote_target::start_remote)
10905 (remote_target::remote_serial_quit_handler): Pass down target.
10906 (remote_target::remote_unpush_target): New remote_target
10907 parameter. Unpush the target from all inferiors.
10908 (remote_target::remote_unpush_and_throw): New remote_target
10909 parameter. Pass it down.
10910 (remote_target::open_1): Check whether the current inferior has
10911 execution instead of checking whether any inferior is live. Pass
10912 target down.
10913 (remote_target::remote_detach_1): Pass down target. Use
10914 remote_unpush_target.
10915 (extended_remote_target::attach): Pass down target.
10916 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10917 (remote_target::append_resumption): Pass down target.
10918 (remote_target::append_pending_thread_resumptions)
10919 (remote_target::remote_resume_with_hc, remote_target::resume)
10920 (remote_target::commit_resume): Pass down target.
10921 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10922 (remote_target::interrupt_query)
10923 (remote_target::remove_new_fork_children)
10924 (remote_target::check_pending_events_prevent_wildcard_vcont)
10925 (remote_target::remote_parse_stop_reply)
10926 (remote_target::process_stop_reply): Pass down target.
10927 (first_remote_resumed_thread): New remote_target parameter. Pass
10928 it down.
10929 (remote_target::wait_as): Pass down target.
10930 (unpush_and_perror): New remote_target parameter. Pass it down.
10931 (remote_target::readchar, remote_target::remote_serial_write)
10932 (remote_target::getpkt_or_notif_sane_1)
10933 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10934 down target.
10935 (remote_target::mourn_inferior): Pass down target. Use
10936 remote_unpush_target.
10937 (remote_target::core_of_thread)
10938 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10939 (remote_target::pid_to_exec_file)
10940 (remote_target::thread_handle_to_thread_info): Pass down target.
10941 (remote_target::async_wait_fd): New.
10942 * riscv-fbsd-tdep.c: Include "inferior.h".
10943 (riscv_fbsd_get_thread_local_address): Pass down target.
10944 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10945 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10946 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10947 Adjust.
10948 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10949 * solib-svr4.c (enable_break): Pass down target.
10950 * spu-multiarch.c (parse_spufs_run): Pass down target.
10951 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10952 * target-delegates.c: Regenerate.
10953 * target.c (g_target_stack): Delete.
10954 (current_top_target): Return the current inferior's top target.
10955 (target_has_execution_1): Refer to the passed-in inferior's top
10956 target.
10957 (target_supports_terminal_ours): Check whether the initial
10958 inferior was already created.
10959 (decref_target): New.
10960 (target_stack::push): Incref/decref the target.
10961 (push_target, push_target, unpush_target): Adjust.
10962 (target_stack::unpush): Defref target.
10963 (target_is_pushed): Return bool. Adjust to refer to the current
10964 inferior's target stack.
10965 (dispose_inferior): Delete, and inline parts ...
10966 (target_preopen): ... here. Only dispose of the current inferior.
10967 (target_detach): Hold strong target reference while detaching.
10968 Pass target down.
10969 (target_thread_name): Add assertion.
10970 (target_resume): Pass down target.
10971 (target_ops::beneath, find_target_at): Adjust to refer to the
10972 current inferior's target stack.
10973 (get_dummy_target): New.
10974 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10975 has a thread running.
10976 (initialize_targets): Rename to ...
10977 (_initialize_target): ... this.
10978 * target.h: Include "gdbsupport/refcounted-object.h".
10979 (struct target_ops): Inherit refcounted_object.
10980 (target_ops::shortname, target_ops::longname): Make const.
10981 (target_ops::async_wait_fd): New method.
10982 (decref_target): Declare.
10983 (struct target_ops_ref_policy): New.
10984 (target_ops_ref): New typedef.
10985 (get_dummy_target): Declare function.
10986 (target_is_pushed): Return bool.
10987 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10988 (all_matching_threads_iterator::all_matching_threads_iterator):
10989 Handle filter target.
10990 * thread-iter.h (struct all_matching_threads_iterator, struct
10991 all_matching_threads_range, class all_non_exited_threads_range):
10992 Filter by target too. Remove explicit.
10993 * thread.c (threads_executing): Delete.
10994 (inferior_thread): Pass down current inferior.
10995 (clear_thread_inferior_resources): Pass down thread pointer
10996 instead of ptid_t.
10997 (add_thread_silent, add_thread_with_info, add_thread): Add
10998 process_stratum_target parameter. Use it for thread and inferior
10999 searches.
11000 (is_current_thread): New.
11001 (thread_info::deletable): Use it.
11002 (find_thread_ptid, thread_count, in_thread_list)
11003 (thread_change_ptid, set_resumed, set_running): New
11004 process_stratum_target parameter. Pass it down.
11005 (set_executing): New process_stratum_target parameter. Pass it
11006 down. Adjust reference to 'threads_executing'.
11007 (threads_are_executing): New process_stratum_target parameter.
11008 Adjust reference to 'threads_executing'.
11009 (set_stop_requested, finish_thread_state): New
11010 process_stratum_target parameter. Pass it down.
11011 (switch_to_thread): Also match inferior.
11012 (switch_to_thread): New process_stratum_target parameter. Pass it
11013 down.
11014 (update_threads_executing): Reimplement.
11015 * top.c (quit_force): Pop targets from all inferior.
11016 (gdb_init): Don't call initialize_targets.
11017 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11018 Declare.
11019 (windows_add_thread, windows_delete_thread): Adjust.
11020 (get_windows_debug_event): Rename to ...
11021 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11022 * tracefile-tfile.c (tfile_target_open): Pass down target.
11023 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11024 Forward declare.
11025 (switch_to_thread): Add process_stratum_target parameter.
11026 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11027 parameter. Use it.
11028 (mi_on_resume): Pass target down.
11029 * nat/fork-inferior.c (startup_inferior): Add
11030 process_stratum_target parameter. Pass it down.
11031 * nat/fork-inferior.h (startup_inferior): Add
11032 process_stratum_target parameter.
11033 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11034
75c6c844
PA
110352020-01-10 Pedro Alves <palves@redhat.com>
11036
11037 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11038 directly. Instead find the first thread in the thread list and
11039 use switch_to_thread.
11040
78f2c40a
PA
110412020-01-10 Pedro Alves <palves@redhat.com>
11042
11043 * remote.c (remote_target::remote_add_inferior): Don't bind a
11044 process to the current inferior if the current inferior is already
11045 bound to a process.
11046
e7af6c70
TBA
110472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11048 Pedro Alves <palves@redhat.com>
11049
11050 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11051 If no process is specified, return null_ptid instead of
11052 inferior_ptid.
11053 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11054 TARGET_WAITKIND_SIGNALLED with no pid.
11055
31ba933e
PA
110562020-01-10 Pedro Alves <palves@redhat.com>
11057
11058 * remote.c (first_remote_resumed_thread): New.
11059 (remote_target::wait_as): Use it as default event_ptid instead of
11060 inferior_ptid.
11061
735fc2ca
PA
110622020-01-10 Pedro Alves <palves@redhat.com>
11063
11064 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11065
c17e02e1
PA
110662020-01-10 Pedro Alves <palves@redhat.com>
11067
11068 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11069 not -1.
11070
ab1ddbcf
PA
110712020-01-10 Pedro Alves <palves@redhat.com>
11072
11073 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11074 ptid to get_last_target_status.
11075 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11076 ptid to get_last_target_status.
11077 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11078 get_last_target_status.
11079 (info_program_command): Don't pass a target_waitstatus to
11080 get_last_target_status.
11081 * infrun.c (init_wait_for_inferior): Use
11082 nullify_last_target_wait_ptid.
11083 (get_last_target_status): Handle nullptr arguments.
11084 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11085 (print_stop_event): Don't pass a ptid to get_last_target_status.
11086 (normal_stop): Don't pass a ptid to get_last_target_status.
11087 * infrun.h (get_last_target_status, set_last_target_status): Move
11088 comments here and update.
11089 (nullify_last_target_wait_ptid): Declare.
11090 * linux-fork.c (fork_load_infrun_state): Remove local extern
11091 declaration of nullify_last_target_wait_ptid.
11092 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11093 to get_last_target_status.
11094
f3f8ece4
PA
110952020-01-10 Pedro Alves <palves@redhat.com>
11096
11097 * gdbthread.h (scoped_restore_current_thread)
11098 <dont_restore, restore, m_dont_restore>: Declare.
11099 * thread.c (thread_alive): Add assertion. Return bool.
11100 (switch_to_thread_if_alive): New.
11101 (prune_threads): Switch inferior/thread.
11102 (print_thread_info_1): Switch thread before calling target methods.
11103 (scoped_restore_current_thread::restore): New, factored out from
11104 ...
11105 (scoped_restore_current_thread::~scoped_restore_current_thread):
11106 ... this.
11107 (scoped_restore_current_thread::scoped_restore_current_thread):
11108 Add assertion.
11109 (thread_apply_all_command, thread_select): Use
11110 switch_to_thread_if_alive.
11111 * infrun.c (proceed, restart_threads, handle_signal_stop)
11112 (switch_back_to_stepped_thread): Switch current thread before
11113 calling target methods.
11114
db2d40f7
PA
111152020-01-10 Pedro Alves <palves@redhat.com>
11116
11117 * inferior.c (switch_to_inferior_no_thread): New function,
11118 factored out from ...
11119 (inferior_command): ... here.
11120 * inferior.h (switch_to_inferior_no_thread): Declare.
11121 * mi/mi-main.c (run_one_inferior): Use
11122 switch_to_inferior_no_thread.
11123
bd420a2d
PA
111242020-01-10 Pedro Alves <palves@redhat.com>
11125
11126 * infcmd.c (kill_command): Remove dead code.
11127
ddf5db90
PA
111282020-01-10 Pedro Alves <palves@redhat.com>
11129
11130 * remote.c (remote_target::mourn_inferior): No longer check
11131 whether the target is running.
11132
5018ce90
PA
111332020-01-10 Pedro Alves <palves@redhat.com>
11134
11135 * corelow.c (core_target::has_execution): Change parameter type to
11136 inferior pointer.
11137 * inferior.c (number_of_live_inferiors): Use
11138 inferior::has_execution instead of target_has_execution_1.
11139 * inferior.h (inferior::has_execution): New.
11140 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11141 inferior::has_execution instead of target_has_execution_1.
11142 * process-stratum-target.c
11143 (process_stratum_target::has_execution): Change parameter type to
11144 inferior pointer. Check the inferior's PID instead of
11145 inferior_ptid.
11146 * process-stratum-target.h
11147 (process_stratum_target::has_execution): Change parameter type to
11148 inferior pointer.
11149 * record-full.c (record_full_core_target::has_execution): Change
11150 parameter type to inferior pointer.
11151 * target.c (target_has_execution_1): Change parameter type to
11152 inferior pointer.
11153 (target_has_execution_current): Adjust.
11154 * target.h (target_ops::has_execution): Change parameter type to
11155 inferior pointer.
11156 (target_has_execution_1): Change parameter type to inferior
11157 pointer. Change return type to bool.
11158 * tracefile.h (tracefile_target::has_execution): Change parameter
11159 type to inferior pointer.
11160
74375d18
PA
111612020-01-10 Pedro Alves <palves@redhat.com>
11162
11163 * exceptions.c (print_flush): Remove current_top_target() check.
11164
acdf84a6
PA
111652020-01-10 Pedro Alves <palves@redhat.com>
11166
11167 * remote.c (show_remote_exec_file): Show the current inferior's
11168 exec-file instead of the command variable's value.
11169
ec506636
PA
111702020-01-10 Pedro Alves <palves@redhat.com>
11171
11172 * record-full.c (record_full_resume_ptid): New global.
11173 (record_full_target::resume): Set it.
11174 (record_full_wait_1): Use record_full_resume_ptid instead of
11175 inferior_ptid.
11176
873657b9
PA
111772020-01-10 Pedro Alves <palves@redhat.com>
11178
11179 * gdbthread.h (scoped_restore_current_thread)
11180 <dont_restore, restore, m_dont_restore>: Declare.
11181 * thread.c (thread_alive): Add assertion. Return bool.
11182 (switch_to_thread_if_alive): New.
11183 (prune_threads): Switch inferior/thread.
11184 (print_thread_info_1): Switch thread before calling target methods.
11185 (scoped_restore_current_thread::restore): New, factored out from
11186 ...
11187 (scoped_restore_current_thread::~scoped_restore_current_thread):
11188 ... this.
11189 (scoped_restore_current_thread::scoped_restore_current_thread):
11190 Add assertion.
11191 (thread_apply_all_command, thread_select): Use
11192 switch_to_thread_if_alive.
11193
7f0ae84c
GB
111942020-01-10 George Barrett <bob@bob131.so>
11195
11196 * stap-probe.c (stap_modify_semaphore): Don't check for null
11197 semaphores.
11198 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11199 for null semaphores.
11200
f5a7c406
AB
112012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11202
11203 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11204 all source windows, and maintain horizontal scroll status while
11205 doing so.
11206
9ae6bf64
TT
112072020-01-09 Tom Tromey <tom@tromey.com>
11208
11209 PR tui/18932:
11210 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11211 update_source_window, not print_source_lines.
11212
b2efe70c
AB
112132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * tui/tui.c (tui_enable): Register tui hooks after calling
11216 tui_display_main.
11217
5f23a082
CB
112182020-01-09 Christian Biesinger <cbiesinger@google.com>
11219
11220 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11221
3061113b
SM
112222020-01-08 Simon Marchi <simon.marchi@efficios.com>
11223
11224 * thread.c (print_thread_info_1): Fix indentation.
11225
57d75002
CB
112262020-01-09 Christian Biesinger <cbiesinger@google.com>
11227
11228 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11229 unique_xmalloc_ptr outside the if to always free the demangled name.
11230
6a053cb1
TT
112312020-01-08 Tom Tromey <tromey@adacore.com>
11232
11233 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11234 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11235 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11236 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11237 Remove.
11238 (section_offsets): New typedef.
11239 * symtab.c (fixup_section, get_msymbol_address): Update.
11240 * symmisc.c (dump_msymbols): Update.
11241 * symfile.h (relative_addr_info_to_section_offsets)
11242 (symfile_map_offsets_to_segments): Update.
11243 * symfile.c (build_section_addr_info_from_objfile)
11244 (init_objfile_sect_indices): Update.
11245 (struct place_section_arg): Change type of "offsets".
11246 (place_section): Update.
11247 (relative_addr_info_to_section_offsets): Change type of
11248 "section_offsets". Remove "num_sections" parameter.
11249 (default_symfile_offsets, syms_from_objfile_1)
11250 (set_objfile_default_section_offset): Update.
11251 (reread_symbols): No need to preserve section offsets by hand.
11252 (symfile_map_offsets_to_segments): Change type of "offsets".
11253 * stap-probe.c (relocate_address): Update.
11254 * stabsread.h (process_one_symbol): Update.
11255 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11256 (solib_target_relocate_section_addresses): Update.
11257 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11258 Update.
11259 * solib-frv.c (frv_relocate_main_executable): Update.
11260 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11261 * solib-aix.c (solib_aix_get_section_offsets): Change return
11262 type.
11263 (solib_aix_solib_create_inferior_hook): Update.
11264 * remote.c (remote_target::get_offsets): Update.
11265 * psymtab.c (find_pc_sect_psymtab): Update.
11266 * psympriv.h (struct partial_symbol) <address, text_low,
11267 text_high>: Update.
11268 * objfiles.h (obj_section_offset): Update.
11269 (struct objfile) <section_offsets>: Change type.
11270 <num_sections>: Remove.
11271 (objfile_relocate): Update.
11272 * objfiles.c (entry_point_address_query): Update
11273 (relocate_one_symbol): Change type of "section_offsets".
11274 (objfile_relocate1, objfile_relocate1): Change type of
11275 "new_offsets".
11276 (objfile_rebase1): Update.
11277 * mipsread.c (mipscoff_symfile_read): Update.
11278 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11279 parameter.
11280 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11281 (parse_external, psymtab_to_symtab_1): Update.
11282 * machoread.c (macho_symfile_offsets): Update.
11283 * ia64-tdep.c (ia64_find_unwind_table): Update.
11284 * hppa-tdep.c (read_unwind_info): Update.
11285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11286 * dwarf2read.c (create_addrmap_from_index)
11287 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11288 (process_psymtab_comp_unit_reader, add_partial_symbol)
11289 (add_partial_subprogram, process_full_comp_unit)
11290 (read_file_scope, read_func_scope, read_lexical_block_scope)
11291 (read_call_site_scope, dwarf2_rnglists_process)
11292 (dwarf2_ranges_process, dwarf2_ranges_read)
11293 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11294 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11295 Update.
11296 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11297 Update.
11298 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11299 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11300 (process_one_symbol): Change type of "section_offsets".
11301 * ctfread.c (get_objfile_text_range): Update.
11302 * coffread.c (coff_symtab_read, enter_linenos)
11303 (process_coff_symbol): Update.
11304 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11305 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11306
456e800a
TT
113072020-01-08 Tom Tromey <tromey@adacore.com>
11308
11309 * dwarf2read.c (parse_macro_definition): Use std::string.
11310 (parse_macro_definition): Likewise.
11311
6dfa2fc2
TT
113122020-01-08 Tom Tromey <tromey@adacore.com>
11313
11314 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11315 (ATTR_ALLOC_CHUNK): Remove.
11316
421d1616
TT
113172020-01-08 Tom Tromey <tromey@adacore.com>
11318
11319 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11320
43816ebc
TT
113212020-01-08 Tom Tromey <tromey@adacore.com>
11322
11323 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11324 (dwarf2_compute_name, open_dwo_file): Likewise.
11325 (process_enumeration_scope): Use std::vector.
11326 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11327 (partial_die_info::fixup, dwarf2_start_subfile)
11328 (guess_full_die_structure_name, dwarf2_name): Likewise.
11329 (determine_prefix): Update.
11330 (guess_full_die_structure_name): Make return type const.
11331 (partial_die_full_name): Return unique_xmalloc_ptr.
11332 (DW_FIELD_ALLOC_CHUNK): Remove.
11333
4212d509
TT
113342020-01-07 Tom Tromey <tromey@adacore.com>
11335
11336 PR build/24937:
11337 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11338
06a6207a
JT
113392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11340
11341 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11342
153d79c4
AB
113432020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * stack.c (print_frame_info): Move disassemble_next_line code
11346 inside source_print block.
11347
66182876
EZ
113482020-01-06 Eli Zaretskii <eliz@gnu.org>
11349
11350 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11351 gdb/signals.h, as we are now using native signal symbols.
11352
cbfa8581
SV
113532020-01-06 Shahab Vahedi <shahab@synopsys.com>
11354
11355 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11356 overflow by an early check of content vs threshold.
aac66a4c 11357 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11358 Likewise.
11359
3f602821
EZ
113602020-01-06 Eli Zaretskii <eliz@gnu.org>
11361
11362 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11363
a08c904d
JT
113642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11365
11366 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11367 export table if no section contains it's RVA.
11368
89a65580
EZ
113692020-01-06 Eli Zaretskii <eliz@gnu.org>
11370
11371 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11372
8b7fcda2
HD
113732020-01-06 Hannes Domani <ssbssa@yahoo.de>
11374
11375 * source.c (print_source_lines_base): Set last_line_listed.
11376
a61b4f69
SV
113772020-01-06 Shahab Vahedi <shahab@synopsys.com>
11378
11379 * tui/tui-disasm.c: Remove trailing spaces.
11380
559e7e50
EZ
113812020-01-06 Eli Zaretskii <eliz@gnu.org>
11382 Pedro Alves <palves@redhat.com>
11383
11384 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11385 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11386 (windows_gdb_signal_to_target): New function, uses the above
11387 enumeration to convert GDB internal signal codes to equivalent
11388 Windows codes.
11389 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11390 * windows-nat.c: Include "gdb_wait.h".
11391 (get_windows_debug_event): Extract the fatal exception from the
11392 exit status and convert to the equivalent Posix signal number.
11393 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11394 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11395 * gdbsupport/gdb_wait.c: New file, implements
11396 windows_status_to_termsig.
11397 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11398 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11399
f2302a34
AB
114002020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11401
11402 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11403 show_layout.
11404
6a5206eb
LM
114052020-01-05 Luis Machado <luis.machado@linaro.org>
11406
11407 * aarch64-linux-nat.c
11408 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11409 and bfd_mach_aarch64.
11410
6ec1d75e
PW
114112020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11412
11413 * ui-file.c (stdio_file::can_emit_style_escape)
11414 (tee_file::can_emit_style_escape): Ensure style is used also on
11415 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11416 to gdb_stdout.
11417 * main.c (set_gdb_data_directory): Use file style to output the
11418 warning that the given pathname is not a directory.
11419 * top.c (show_history_filename, gdb_safe_append_history)
11420 (show_gdb_datadir): Use file style.
11421
44f81a76
HD
114222020-01-03 Hannes Domani <ssbssa@yahoo.de>
11423
11424 * solib-target.c (struct lm_info_target):
11425 Change offsets to be a unique_xmalloc_ptr.
11426 (solib_target_relocate_section_addresses): Update.
11427
25057eb0
HD
114282020-01-03 Hannes Domani <ssbssa@yahoo.de>
11429
11430 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11431
6e2118f5
BE
114322020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11433
11434 * MAINTAINERS (Write After Approval): Add myself.
11435
8133c7dc
LM
114362020-01-02 Luis Machado <luis.machado@linaro.org>
11437
11438 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11439 Cell BE architecture.
11440 * target.h (struct target_ops) <thread_architecture>: Likewise.
11441
48189bec
HD
114422020-01-01 Hannes Domani <ssbssa@yahoo.de>
11443
11444 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11445
ead1063b
HD
114462020-01-01 Hannes Domani <ssbssa@yahoo.de>
11447
11448 * MAINTAINERS (Write After Approval): Add myself.
11449
e5d78223
JB
114502020-01-01 Joel Brobecker <brobecker@adacore.com>
11451
11452 * gdbarch.sh: Update copyright year range of generated files.
11453
b811d2c2
JB
114542020-01-01 Joel Brobecker <brobecker@adacore.com>
11455
11456 Update copyright year range in all GDB files.
11457
5f4def5c
JB
114582020-01-01 Joel Brobecker <brobecker@adacore.com>
11459
11460 * copyright.py: Convert to Python 3.
11461
51fd4002
JB
114622020-01-01 Joel Brobecker <brobecker@adacore.com>
11463
11464 * copyright.py: Adapt after move of gnulib directory from gdb
11465 directory to toplevel directory.
11466
5fb651f2
JB
114672020-01-01 Joel Brobecker <brobecker@adacore.com>
11468
11469 * copyright.py (main): Exit if run from the wrong directory.
11470
5dd8bf88
JB
114712020-01-01 Joel Brobecker <brobecker@adacore.com>
11472
11473 * top.c (print_gdb_version): Change copyright year to 2020.
11474
9f71dacb 114752020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11476
9f71dacb 11477 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11478
9f71dacb 11479For older changes see ChangeLog-2019.
c906108c
SS
11480\f
11481Local Variables:
11482mode: change-log
11483left-margin: 8
11484fill-column: 74
11485version-control: never
57da7796 11486coding: utf-8
c906108c 11487End: