Use NT_FILE note section for reading core target memory
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2
3 * corelow.c (solist.h, unordered_map): Include.
4 (class core_target): Add field m_core_file_mappings and
5 method build_file_mappings.
6 (core_target::core_target): Call build_file_mappings.
7 (core_target::~core_target): Free memory associated with
8 m_core_file_mappings.
9 (core_target::build_file_mappings): New method.
10 (core_target::xfer_partial): Use m_core_file_mappings
11 for memory transfers.
12 * linux-tdep.c (linux_read_core_file_mappings): New
13 function.
14 (linux_core_info_proc_mappings): Rewrite to use
15 linux_read_core_file_mappings.
16 (linux_init_abi): Register linux_read_core_file_mappings.
17
18 2020-07-22 Kevin Buettner <kevinb@redhat.com>
19
20 * arch-utils.c (default_read_core_file_mappings): New function.
21 * arch-utils.c (default_read_core_file_mappings): Declare.
22 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
23 * gdbarch.h, gdbarch.c: Regenerate.
24
25 2020-07-22 Kevin Buettner <kevinb@redhat.com>
26
27 PR corefiles/25631
28 * corelow.c (core_target:xfer_partial): Revise
29 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
30 case after first checking the stratum beneath the core
31 target.
32 (has_all_memory): Return true.
33 * target.c (raw_memory_xfer_partial): Revise comment
34 regarding use of has_all_memory.
35
36 2020-07-22 Kevin Buettner <kevinb@redhat.com>
37
38 * exec.h (section_table_xfer_memory): Revise declaration,
39 replacing section name parameter with an optional callback
40 predicate.
41 * exec.c (section_table_xfer_memory): Likewise.
42 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
43 of section_table_xfer_memory.
44
45 2020-07-22 Tom Tromey <tromey@adacore.com>
46
47 * mi/mi-cmd-stack.c (list_args_or_locals): Use
48 lookup_symbol_search_name.
49
50 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * python/py-registers.c (gdbpy_register_object_data_init): Remove
53 redundant local variable.
54 (gdbpy_get_register_descriptor): Extract descriptor vector as a
55 reference, not pointer, update code accordingly.
56
57 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
58 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
59
60 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
61 * jit.c (jit_breakpoint_re_set_internal): Use the
62 `skip_jit_symbol_lookup` field.
63
64 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
65 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
66
67 * jit.c (jit_read_descriptor): Define the descriptor address once,
68 use twice.
69 (jit_breakpoint_deleted): Move the declaration of the loop variable
70 `iter` into the loop header.
71 (jit_breakpoint_re_set_internal): Move the declaration of the local
72 variable `objf_data` to the first point of definition.
73 (jit_event_handler): Move the declaration of local variables
74 `code_entry`, `entry_addr`, and `objf` to their first point of use.
75 Rename `objf` to `jited`.
76
77 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
80 Remove.
81 * jit.c (get_jiter_objfile_data): Update.
82
83 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
84 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * jit.c (struct jit_program_space_data): Remove.
87 (jit_program_space_key): Remove.
88 (jiter_objfile_data::~jiter_objfile_data): Remove program space
89 stuff.
90 (get_jit_program_space_data): Remove.
91 (jit_breakpoint_deleted): Iterate on all of the program space's
92 objfiles.
93 (jit_inferior_init): Likewise.
94 (jit_breakpoint_re_set_internal): Likewise. Also change return
95 type to void.
96 (jit_breakpoint_re_set): Pass current_program_space to
97 jit_breakpoint_re_set_internal.
98
99 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * jit.h (struct jiter_objfile_data) <cached_code_address,
102 jit_breakpoint>: Move to here from ...
103 * jit.c (jit_program_space_data): ... here.
104 (jiter_objfile_data::~jiter_objfile_data): Update.
105 (jit_breakpoint_deleted): Update.
106 (jit_breakpoint_re_set_internal): Update.
107
108 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
111 checks.
112 (jit_read_descriptor): Remove NULL check.
113 (jit_event_handler): Add an assertion.
114
115 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * jit.h (struct jit_objfile_data): Split into...
118 (struct jiter_objfile_data): ... this ...
119 (struct jited_objfile_data): ... and this.
120 * objfiles.h (struct objfile) <jit_data>: Remove.
121 <jiter_data, jited_data>: New fields.
122 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
123 (jiter_objfile_data::~jiter_objfile_data): ... this.
124 (get_jit_objfile_data): Rename to ...
125 (get_jiter_objfile_data): ... this.
126 (add_objfile_entry): Update.
127 (jit_read_descriptor): Use get_jiter_objfile_data.
128 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
129 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
130 (jit_inferior_exit_hook): Use objfile's jited_data field.
131
132 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * jit.h: Forward-declare `struct minimal_symbol`.
135 (struct jit_objfile_data): Migrate to here from jit.c; also add a
136 constructor, destructor, and an objfile* field.
137 * jit.c (jit_objfile_data): Remove.
138 (struct jit_objfile_data): Migrate from here to jit.h.
139 (jit_objfile_data::~jit_objfile_data): New destructor
140 implementation with code moved from free_objfile_data.
141 (free_objfile_data): Delete.
142 (get_jit_objfile_data): Update to use the jit_data field of objfile.
143 (jit_find_objf_with_entry_addr): Ditto.
144 (jit_inferior_exit_hook): Ditto.
145 (_initialize_jit): Remove the call to
146 register_objfile_data_with_cleanup.
147 * objfiles.h (struct objfile) <jit_data>: New field.
148
149 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150
151 * jit.h: Forward-declare `struct objfile`.
152 (jit_event_handler): Add a second parameter, the JITer objfile.
153 * jit.c (jit_read_descriptor): Change the signature to take the
154 JITer objfile as an argument instead of the jit_program_space_data.
155 (jit_inferior_init): Update the call to jit_read_descriptor.
156 (jit_event_handler): Use the new JITer objfile argument when calling
157 jit_read_descriptor.
158 * breakpoint.c (handle_jit_event): Update the call to
159 jit_event_handler to pass the JITer objfile.
160
161 2020-07-21 John Baldwin <jhb@FreeBSD.org>
162
163 * gdbarch.c: Regenerate.
164 * gdbarch.h: Regenerate.
165 * gdbarch.sh (handle_segmentation_fault): Remove method.
166 * infrun.c (handle_segmentation_fault): Remove.
167 (print_signal_received_reason): Remove call to
168 handle_segmentation_fault.
169
170 2020-07-21 John Baldwin <jhb@FreeBSD.org>
171
172 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
173 Rename to sparc64_linux_report_signal_info and add siggnal
174 argument.
175 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
176 instead of sparc64_linux_handle_segmentation_fault.
177
178 2020-07-21 John Baldwin <jhb@FreeBSD.org>
179
180 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
181 i386_linux_report_signal_info instead of
182 i386_linux_handle_segmentation_fault.
183 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
184 to i386_linux_report_signal_info and add siggnal argument.
185 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
186 of i386_linux_handle_segmentation_fault.
187 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
188 to i386_linux_report_signal_info and add siggnal argument.
189
190 2020-07-21 John Baldwin <jhb@FreeBSD.org>
191
192 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
193 hook if present.
194
195 2020-07-21 John Baldwin <jhb@FreeBSD.org>
196
197 * gdbarch.c: Regenerate.
198 * gdbarch.h: Regenerate.
199 * gdbarch.sh (report_signal_info): New method.
200 * infrun.c (print_signal_received_reason): Invoke gdbarch
201 report_signal_info hook if present.
202
203 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * python/py-registers.c : Add 'unordered_map' include.
206 (gdbpy_new_reggroup): Renamed to...
207 (gdbpy_get_reggroup): ...this. Update to only create register
208 group descriptors when needed.
209 (gdbpy_reggroup_iter_next): Update.
210
211 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * python/py-registers.c (gdbpy_register_object_data): New static
214 global.
215 (gdbpy_register_object_data_init): New function.
216 (gdbpy_new_register_descriptor): Renamed to...
217 (gdbpy_get_register_descriptor): ...this, and update to reuse
218 existing register descriptors where possible.
219 (gdbpy_register_descriptor_iter_next): Update.
220 (gdbpy_initialize_registers): Register new gdbarch data.
221
222 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
223
224 * linux-nat.c (stopped_pids): Make static.
225
226 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
227
228 PR ada/26235
229 * gdbtypes.c (ada_discrete_type_low_bound,
230 ada_discrete_type_high_bound): Handle undefined bounds.
231
232 2020-07-21 Kamil Rytarowski <n54@gmx.com>
233
234 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
235 declaration.
236 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
237 function.
238
239 2020-07-20 John Baldwin <jhb@FreeBSD.org>
240
241 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
242 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
243 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
244 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
245 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
246 method.
247
248 2020-07-20 Ludovic Courtès <ludo@gnu.org>
249
250 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
251 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
252 which are deprecated in Guile 3.0.
253 * configure.ac (try_guile_versions): Add "guile-3.0".
254 * configure (try_guile_versions): Regenerate.
255 * NEWS: Update entry.
256
257 2020-07-20 Ludovic Courtès <ludo@gnu.org>
258 Doug Evans <dje@google.com>
259
260 PR gdb/21104
261 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
262 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
263 USING_GUILE_BEFORE_2_2.
264 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
265 Change type to 'scm_t_port_type *'.
266 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
267 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
268 parameter and honor it. Update callers.
269 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
270 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
271 functions.
272 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
273 USING_GUILE_BEFORE_2_2.
274 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
275 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
276 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
277 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
278 and 'SCM_PORT_TYPE'.
279 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
280 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
281 (gdbscm_memory_port_read, gdbscm_memory_port_write)
282 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
283 [!USING_GUILE_BEFORE_2_2]: New functions.
284 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
285 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
286 'gdbscm_memory_port_read'.
287 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
288 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
289 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
290 function.
291 (ioscm_init_memory_port): Remove.
292 (ioscm_init_memory_port_stream): New function
293 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
294 function.
295 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
296 Return scm_from_uint (0).
297 (gdbscm_set_memory_port_read_buffer_size_x)
298 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
299 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
300 Return scm_from_uint (0).
301 (gdbscm_set_memory_port_write_buffer_size_x)
302 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
303 * configure.ac (try_guile_versions): Add "guile-2.2".
304 * configure: Regenerate.
305 * NEWS: Add entry.
306
307 2020-07-18 Tom Tromey <tom@tromey.com>
308
309 * linux-nat.c (linux_multi_process): Remove.
310 (linux_nat_target::supports_multi_process): Return true.
311
312 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * arch/riscv.c (riscv_tdesc_cache): Change map type.
315 (riscv_lookup_target_description): Return pointer out of
316 unique_ptr.
317 * target-descriptions.c (allocate_target_description): Add
318 comment.
319 (target_desc_deleter::operator()): Likewise.
320 * target-descriptions.h (struct target_desc_deleter): Moved to
321 gdbsupport/tdesc.h.
322 (target_desc_up): Likewise.
323
324 2020-07-17 Tom Tromey <tromey@adacore.com>
325
326 * linux-nat.c (linux_nat_target::supports_non_stop)
327 (linux_nat_target::always_non_stop_p): Use "true".
328 (linux_nat_target::supports_disable_randomization): Use "true" and
329 "false".
330
331 2020-07-16 Caroline Tice <cmtice@google.com>
332
333 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
334 (RNGLIST_HEADER_SIZE64): New constant definition.
335 (struct dwop_section_names): Add rnglists_dwo.
336 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
337 (struct loclist_header): Rename to 'loclists_rnglists_header'.
338 (struct dwo_sections): Add rnglists field.
339 (read_attribut_reprocess): Add tag parameter.
340 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
341 (cu_debug_rnglists_section): New function (decl & definition).
342 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
343 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
344 die whose range is being checked; get rnglist section from
345 cu_debug_rnglists_section, to get from either objfile or dwo file as
346 appropriate. Add cases for DW_RLE_base_addressx,
347 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
348 the base address to DW_RLE_offset_pairs (not to all ranges), moving
349 test inside if-condition and updating complaint message.
350 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
351 dwarf2_rnglists_process.
352 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
353 dwarf2_ranges_process.
354 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
355 need_ranges_base and update comment appropriately. Also pass die tag
356 to dwarf2_ranges_read.
357 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
358 need_ranges_base and update comment appropriately. Also pass die tag
359 to dwarf2_ranges_process.
360 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
361 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
362 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
363 need_ranges_base and update comment appropriately. Also pass die tag
364 to read_attribute_reprocess and dwarf2_ranges_read.
365 (read_loclist_header): Rename function to read_loclists_rnglists_header,
366 and update function comment appropriately.
367 (read_loclist_index): Call read_loclists_rnglists_header instead of
368 read_loclist_header.
369 (read_rnglist_index): New function.
370 (read_attribute_reprocess): Add tag parameter. Add code for
371 DW_FORM_rnglistx, passing tag to read_rnglist_index.
372 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
373
374 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
377 being resolved.
378
379 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * arch-utils.c (show_architecture): Update formatting of messages.
382
383 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
384
385 * gdbtypes.h (struct type) <bounds>: Handle array and string
386 types.
387 * ada-lang.c (assign_aggregate): Use type::bounds on
388 array/string type.
389 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
390 * c-varobj.c (c_number_of_children): Likewise.
391 (c_describe_child): Likewise.
392 * eval.c (evaluate_subexp_for_sizeof): Likewise.
393 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
394 (f_type_print_base): Likewise.
395 * f-valprint.c (f77_array_offset_tbl): Likewise.
396 (f77_get_upperbound): Likewise.
397 (f77_print_array_1): Likewise.
398 * guile/scm-type.c (gdbscm_type_range): Likewise.
399 * m2-typeprint.c (m2_array): Likewise.
400 (m2_is_long_set_of_type): Likewise.
401 * m2-valprint.c (get_long_set_bounds): Likewise.
402 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
403 * python/py-type.c (typy_range): Likewise.
404 * rust-lang.c (rust_internal_print_type): Likewise.
405 * type-stack.c (type_stack::follow_types): Likewise.
406 * valarith.c (value_subscripted_rvalue): Likewise.
407 * valops.c (value_cast): Likewise.
408
409 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
410
411 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
412 callers to use the equivalent accessor methods.
413
414 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
415
416 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
417 (struct type) <bit_stride>: New method.
418 (TYPE_BIT_STRIDE): Remove.
419 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
420
421 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
422
423 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
424 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
425 callers to use the equivalent accessor methods instead.
426
427 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
428
429 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
430 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
431 callers to use the equivalent accessor methods instead.
432
433 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
434
435 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
436 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
437 to use dynamic_prop::kind.
438
439 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
440
441 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
442 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
443 to get the bound property's kind and check against
444 PROP_UNDEFINED.
445
446 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
447
448 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
449 all callers to use type::range_bounds followed by
450 dynamic_prop::{low,high}.
451
452 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
455 const_val, set_const_val, baton, set_locexpr, set_loclist,
456 set_addr_offset, variant_parts, set_variant_parts,
457 original_type, set_original_type>: New methods.
458 <kind>: Rename to...
459 <m_kind>: ... this. Update all users to use the new methods
460 instead.
461 <data>: Rename to...
462 <m_data>: ... this. Update all users to use the new methods
463 instead.
464
465 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
466
467 * gdbtypes.c (get_discrete_bounds): Return failure if
468 the range type's bounds are not both defined and constant
469 values.
470 (get_array_bounds): Update comment. Remove undefined bound check.
471
472 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
475 the type::bounds method directly.
476
477 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
478
479 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
480 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
481 are used to set the range type's bounds to use set_bounds.
482
483 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
484
485 * exec.c (_initialize_exec): Update exec-file-mismatch help.
486
487 2020-07-10 Pedro Alves <pedro@palves.net>
488
489 * gdbthread.h (inferior_ref): Define.
490 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
491 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
492 * thread.c
493 (scoped_restore_current_thread::restore):
494 Adjust to gdb::ref_ptr.
495 (scoped_restore_current_thread::~scoped_restore_current_thread):
496 Remove manual decref handling.
497 (scoped_restore_current_thread::scoped_restore_current_thread):
498 Adjust to use
499 inferior_ref::new_reference/thread_info_ref::new_reference.
500 Incref the thread before calling get_frame_id instead of after.
501 Let TARGET_CLOSE_ERROR propagate.
502
503 2020-07-10 Pedro Alves <pedro@palves.net>
504
505 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
506 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
507 NOT_AVAILABLE_ERROR.
508 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
509 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
510
511 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
512 Pedro Alves <pedro@palves.net>
513
514 PR gdb/26199
515 * infrun.c (threads_are_resumed_pending_p): Delete.
516 (do_target_wait): Remove threads_are_executing and
517 threads_are_resumed_pending_p checks from the inferior_matches
518 lambda. Update comments.
519
520 2020-07-10 Pedro Alves <pedro@palves.net>
521
522 PR gdb/26199
523 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
524 executing threads.
525
526 2020-07-10 Pedro Alves <pedro@palves.net>
527
528 PR gdb/26199
529 * infrun.c (handle_no_resumed): Handle multiple targets.
530
531 2020-07-10 Pedro Alves <pedro@palves.net>
532
533 PR gdb/26199
534 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
535 target_is_async_p.
536
537 2020-07-10 Pedro Alves <pedro@palves.net>
538
539 PR gdb/26199
540 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
541 threads, not all threads.
542
543 2020-07-10 Pedro Alves <pedro@palves.net>
544
545 PR gdb/26199
546 * remote.c (remote_target::open_1): Pass remote target pointer as
547 data to create_async_event_handler.
548 (remote_async_inferior_event_handler): Mark async event handler
549 before returning if the remote target still has either pending
550 events or unacknowledged notifications.
551
552 2020-07-10 John Baldwin <jhb@FreeBSD.org>
553
554 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
555 declaration.
556 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
557 function.
558
559 2020-07-09 John Baldwin <jhb@FreeBSD.org>
560
561 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
562 inferior_ptid.
563
564 2020-07-09 John Baldwin <jhb@FreeBSD.org>
565
566 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
567 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
568 AT_FREEBSD_PS_STRINGS.
569
570 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
571
572 * auto-load.c (auto_load_objfile_script_1): Convert drive part
573 of debugfile path on Windows.
574
575 2020-07-08 John Baldwin <jhb@FreeBSD.org>
576
577 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
578 argument to 'data'.
579
580 2020-07-08 Tom Tromey <tromey@adacore.com>
581
582 * ada-lang.c (ada_exception_message_1): Use read_memory.
583
584 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 PR python/22748
587 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
588 special handling for inline frames.
589 * findvar.c (value_of_register_lazy): Skip inline frames when
590 creating lazy register values.
591 * frame.c (frame_id_computed_p): Delete definition.
592 * frame.h (frame_id_computed_p): Delete declaration.
593
594 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
595
596 * NEWS: Mention additions to Python API.
597 * python/py-arch.c (archpy_register_groups): New function.
598 (arch_object_methods): Add 'register_groups' method.
599 * python/py-registers.c (reggroup_iterator_object): New struct.
600 (reggroup_object): New struct.
601 (gdbpy_new_reggroup): New function.
602 (gdbpy_reggroup_to_string): New function.
603 (gdbpy_reggroup_name): New function.
604 (gdbpy_reggroup_iter): New function.
605 (gdbpy_reggroup_iter_next): New function.
606 (gdbpy_new_reggroup_iterator): New function
607 (gdbpy_initialize_registers): Register new types.
608 (reggroup_iterator_object_type): Define new Python type.
609 (gdbpy_reggroup_getset): New static global.
610 (reggroup_object_type): Define new Python type.
611 * python/python-internal.h
612
613 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
616 * python/py-arch.c (archpy_registers): New function.
617 (arch_object_methods): Add 'registers' method.
618 * python/py-registers.c: New file.
619 * python/python-internal.h
620 (gdbpy_new_register_descriptor_iterator): Declare.
621 (gdbpy_initialize_registers): Declare.
622 * python/python.c (do_start_initialization): Call
623 gdbpy_initialize_registers.
624 * NEWS: Mention additions to the Python API.
625
626 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * NEWS: Mention new Python API method.
629 * python/py-unwind.c (pending_framepy_architecture): New function.
630 (pending_frame_object_methods): Add architecture method.
631
632 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * gdbarch.c: Regenerate.
635 * gdbarch.h: Regenerate.
636 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
637 (gdbarch_data): Use internal_error for the case where
638 deprecated_set_gdbarch_data was originally needed.
639 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
640 and use passed in obstack.
641 (libunwind_frame_set_descr): Should no longer get back NULL from
642 gdbarch_data.
643 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
644 type.
645 * user-regs.c (user_regs_init): Update parameters, and use passed
646 in obstack.
647 (user_reg_add): Should no longer get back NULL from gdbarch_data.
648 (_initialize_user_regs): Register as a pre-init gdbarch data type.
649
650 2020-07-06 Tom de Vries <tdevries@suse.de>
651
652 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
653 End-Of-Sequence in lte_is_less_than.
654 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
655 "gdb: Don't reorder line table entries too much when sorting".
656
657 2020-07-06 Tom de Vries <tdevries@suse.de>
658
659 PR tui/26205
660 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
661
662 2020-07-05 Tom de Vries <tdevries@suse.de>
663
664 PR build/26187
665 * inferior.h (struct infcall_suspend_state_deleter): If available, use
666 std::uncaught_exceptions instead of deprecated
667 std::uncaught_exception.
668
669 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
670
671 * macroexp.h (macro_stringify): Return
672 gdb::unique_xmalloc_ptr<char>.
673 * macroexp.c (macro_stringify): Likewise.
674 * macrotab.c (fixup_definition): Update.
675
676 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
679 (lex_one_token): Update.
680 * macroexp.c (struct macro_buffer) <release>: Return
681 gdb::unique_xmalloc_ptr<char>.
682 (macro_stringify): Update.
683 (macro_expand): Update.
684 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
685 * macroexp.h (macro_expand_next): Likewise.
686
687 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
688
689 * macroexp.h (macro_lookup_ftype): Remove.
690 (macro_expand, macro_expand_once, macro_expand_next): Remove
691 lookup function parameters, add scope parameter.
692 * macroexp.c (scan, substitute_args, expand, maybe_expand,
693 macro_expand, macro_expand_once, macro_expand_next): Likewise.
694 * macroscope.h (standard_macro_lookup): Change parameter type
695 to macro_scope.
696 * macroscope.c (standard_macro_lookup): Likewise.
697 * c-exp.y (lex_one_token): Update.
698 * macrocmd.c (macro_expand_command): Likewise.
699 (macro_expand_once_command): Likewise.
700
701 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * inf-loop.c (inferior_event_handler): Remove client_data param.
704 * inf-loop.h (inferior_event_handler): Likewise.
705 * infcmd.c (step_1): Adjust.
706 * infrun.c (proceed): Adjust.
707 (fetch_inferior_event): Remove client_data param.
708 (infrun_async_inferior_event_handler): Adjust.
709 * infrun.h (fetch_inferior_event): Remove `void *` param.
710 * linux-nat.c (handle_target_event): Adjust.
711 * record-btrace.c (record_btrace_handle_async_inferior_event):
712 Adjust.
713 * record-full.c (record_full_async_inferior_event_handler):
714 Adjust.
715 * remote.c (remote_async_inferior_event_handler): Adjust.
716
717 2020-07-01 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
720 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
721
722 2020-07-01 Tom Tromey <tom@tromey.com>
723
724 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
725 tui_gen_win_info.
726 (tui_win_info::make_window): Merge with
727 tui_gen_win_info::make_window.
728 (tui_win_info::make_visible): Move from tui_gen_win_info.
729 * tui/tui-win.c (tui_win_info::max_width): Move from
730 tui_gen_win_info.
731 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
732 type.
733 <window_factory>: Likewise.
734 * tui/tui-layout.c (tui_win_info::resize): Move from
735 tui_gen_win_info.
736 (make_standard_window): Change return type.
737 (get_locator_window, tui_get_window_by_name): Likewise.
738 (tui_layout_window::apply): Remove a cast.
739 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
740 (struct tui_win_info): Merge with tui_gen_win_info.
741 (struct tui_gen_win_info): Remove.
742
743 2020-07-01 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-stack.h (struct tui_locator_window): Derive from
746 tui_win_info.
747 <do_scroll_horizontal, do_scroll_vertical>: New methods.
748 <can_box>: New method.
749
750 2020-07-01 Tom Tromey <tom@tromey.com>
751
752 * tui/tui-stack.h (struct tui_locator_window): Remove body.
753
754 2020-07-01 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-regs.c (tui_data_window::display_registers_from)
757 (tui_data_window::display_registers_from)
758 (tui_data_window::first_data_item_displayed)
759 (tui_data_window::delete_data_content_windows): Update.
760 (tui_data_window::refresh_window, tui_data_window::no_refresh):
761 Remove.
762 (tui_data_window::check_register_values): Update.
763 (tui_data_item_window::rerender): Add parameters. Update.
764 (tui_data_item_window::refresh_window): Remove.
765 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
766 virtual.
767 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
768 tui_gen_win_info.
769 <refresh_window, max_height, min_height>: Remove.
770 <rerender>: Add parameters.
771 <x, y, visible>: New members.
772 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
773 <m_item_width>: New member.
774
775 2020-07-01 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-regs.c (tui_data_window::show_register_group)
778 (tui_data_window::check_register_values): Update.
779 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
780 from item_no.
781
782 2020-07-01 Tom Tromey <tom@tromey.com>
783
784 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
785 useless "if".
786
787 2020-07-01 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
790 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
791
792 2020-07-01 Tom Tromey <tom@tromey.com>
793
794 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
795 * tui/tui-winsource.h (enum tui_line_or_address_kind)
796 (struct tui_line_or_address): Move from tui-data.h.
797 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
798 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
799 (tui_cmd_window, tui_source_window_base, tui_source_window)
800 (tui_disasm_window): Don't declare.
801 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
802 to tui-winsource.h.
803 (SINGLE_KEY): Move to tui-stack.c.
804
805 2020-07-01 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
808 std::string.
809 * tui/tui-regs.c (class tab_expansion_file): New.
810 (tab_expansion_file::write): New method.
811 (tui_register_format): Change return type. Use
812 tab_expansion_file.
813 (tui_get_register, tui_data_window::display_registers_from)
814 (tui_data_item_window::rerender): Update.
815 * tui/tui-io.h (tui_expand_tabs): Don't declare.
816 * tui/tui-io.c (tui_expand_tabs): Remove.
817
818 2020-07-01 Tom Tromey <tom@tromey.com>
819
820 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
821
822 2020-07-01 Fangrui Song <maskray@google.com>
823
824 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
825
826 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
827
828 * dwarf2/read.c (set_die_type): Removed conditions to restrict
829 forms for DW_AT_associated and DW_AT_allocated attributes,
830 which is already checked in function attr_to_dynamic_prop.
831
832 2020-06-30 Tom Tromey <tromey@adacore.com>
833
834 * dwarf2/read.c (quirk_rust_enum): Correctly call
835 alloc_rust_variant for default-less enum.
836
837 2020-06-30 Tom Tromey <tromey@adacore.com>
838
839 PR build/26183:
840 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
841 gdb::to_string.
842
843 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
844
845 * gdbarch.sh (displaced_step_copy_insn): Update doc.
846 * gdbarch.h: Re-generate.
847
848 2020-06-28 Tom Tromey <tom@tromey.com>
849
850 * command.h (cmd_types): Remove.
851 (cmd_type): Don't declare.
852 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
853 typedef.
854 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
855 * cli/cli-decode.c (cmd_type): Remove.
856
857 2020-06-27 Pedro Alves <palves@redhat.com>
858
859 * fork-child.c (prefork_hook): Adjust.
860 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
861 Delete.
862 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
863 * inferior.c (inferior::set_tty, inferior::tty): New methods.
864 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
865 Remove declarations.
866 (struct inferior) <set_tty, tty>: New methods.
867 (struct inferior) <terminal>: Rename to ...
868 (struct inferior) <m_terminal>: ... this and make private.
869 * main.c (captured_main_1): Adjust.
870 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
871 (mi_cmd_inferior_tty_show): Adjust.
872 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
873 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
874
875 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
876
877 * configure.ac: Add --enable-libctf: handle --disable-static
878 properly.
879 * acinclude.m4: sinclude ../config/enable.m4.
880 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
881 (LIBCTF): Substitute in.
882 (CTF_DEPS): New, likewise.
883 (CLIBS): libctf needs symbols from libbfd: move earlier.
884 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
885 flags.
886 * ctfread.c: Surround in ENABLE_LIBCTF.
887 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
888 * configure: Regenerate.
889 * config.in: Likewise.
890
891 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
892
893 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
894
895 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
896
897 * inferior.h (struct inferior) <terminal>: Change type to
898 gdb::unique_xmalloc_ptr<char>.
899 * inferior.c (inferior::~inferior): Don't free inf->terminal.
900 * infcmd.c (set_inferior_io_terminal): Don't free terminal
901 field, adjust to unique pointer.
902 (get_inferior_io_terminal): Adjust to unique pointer.
903
904 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
905
906 * riscv-tdep.c (riscv_print_registers_info): Loop over all
907 registers, not just the known core set of registers.
908
909 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
912 fflags, frm, and fcsr registers.
913 (riscv_register_reggroup_p): Remove unknown CSRs from save and
914 restore groups.
915 (riscv_tdesc_unknown_reg): New function.
916 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
917 tdesc_use_registers.
918 * riscv-tdep.h (struct gdbarch_tdep): Add
919 unknown_csrs_first_regnum, unknown_csrs_count,
920 duplicate_fflags_regnum, duplicate_frm_regnum, and
921 duplicate_fcsr_regnum fields.
922
923 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * target-descriptions.c (tdesc_use_registers): Add new parameter a
926 callback, use the callback (when not null) to help number unknown
927 registers.
928 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
929 (tdesc_use_registers): Add extra parameter to declaration.
930
931 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
934 in the file.
935 (class riscv_pending_register_alias): Likewise.
936 (riscv_register_feature::register_info): Change 'required_p' field
937 to 'required', and change its type. Add 'check' member function.
938 (riscv_register_feature::register_info::check): Define new member
939 function.
940 (riscv_xreg_feature): Change initialisation of 'required' field.
941 (riscv_freg_feature): Likewise.
942 (riscv_virtual_feature): Likewise.
943 (riscv_csr_feature): Likewise.
944 (riscv_check_tdesc_feature): Take extra parameter, the csr
945 tdesc_feature, rewrite the function to use the new
946 riscv_register_feature::register_info::check function.
947 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
948
949 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * features/Makefile: Remove all references to the deleted files
952 below.
953 * features/riscv/32bit-csr.c: Deleted.
954 * features/riscv/32bit-csr.xml: Deleted.
955 * features/riscv/64bit-csr.c: Deleted.
956 * features/riscv/64bit-csr.xml: Deleted.
957 * features/riscv/rebuild-csr-xml.sh: Deleted.
958
959 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
962 whitespace error for declaration of names member variable.
963 (struct riscv_register_feature): Add new prefer_first_name member
964 variable, and fix whitespace error in declaration of registers.
965 (riscv_xreg_feature): Initialize prefer_first_name field.
966 (riscv_freg_feature): Likewise.
967 (riscv_virtual_feature): Likewise.
968 (riscv_csr_feature): Likewise.
969 (riscv_register_name): Expand on comments. Remove register name
970 modifications for CSR and virtual registers.
971
972 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
975 errors.
976
977 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
980 riscv-opc.h.
981 (class riscv_pending_register_alias): New class.
982 (riscv_check_tdesc_feature): Take vector of pending aliases and
983 populate it as appropriate.
984 (riscv_setup_register_aliases): Delete.
985 (riscv_gdbarch_init): Create vector of pending aliases and pass it
986 to riscv_check_tdesc_feature in all cases. Use the vector to
987 create the register aliases.
988
989 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
990
991 * sol2-tdep.c (sol2_static_transform_name): Remove.
992 (sol2_init_abi): Don't register it.
993 * gdbarch.sh (static_transform_name): Remove.
994 * gdbarch.c, gdbarch.h: Regenerate.
995
996 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
997 gdbarch_static_transform_name.
998 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
999 * stabsread.c (define_symbol) <'X'>: Remove.
1000 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1001 handling.
1002 <'V'>: Likewise.
1003 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1004 <'S'>: Remove call to gdbarch_static_transform_name.
1005
1006 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1007
1008 * procfs.c (procfs_pre_trace): New function.
1009 (procfs_target::create_inferior): Pass it to fork_inferior.
1010
1011 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012
1013 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1014 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1015 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1016 sol2-tdep.o, sparc-sol2-tdep.o.
1017 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1018 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1019 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1020 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1021
1022 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023
1024 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1025 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1026 Call sol2_init_abi.
1027 Remove calls to set_gdbarch_skip_solib_resolver,
1028 set_gdbarch_core_pid_to_str.
1029 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1030 (i386_sol2_static_transform_name): Remove.
1031 (i386_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 Use sol2_sigtramp_p.
1036 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1037 (sol2_sigtramp_p): New function.
1038 (sol2_static_transform_name): New function.
1039 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1040 (sol2_init_abi): New function.
1041 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1042 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1043 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1044 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1045 (sparc_sol2_static_transform_name): Remove.
1046 (sparc32_sol2_init_abi): Call sol2_init_abi.
1047 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1048 set_gdbarch_static_transform_name,
1049 set_gdbarch_skip_solib_resolver,
1050 set_gdbarch_core_pid_to_str.
1051 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1052 (sparc_sol2_static_transform_name): Remove
1053 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1054 call sol2_sigtramp_p.
1055 (sparc64_sol2_init_abi): Call sol2_init_abi.
1056 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1057 set_gdbarch_static_transform_name,
1058 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1059
1060 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1061
1062 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1063 * exec.c (validate_exec_file): If from_tty, set both
1064 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1065 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1066 and from_tty, unconditionally ask a confirmation.
1067
1068 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * target-descriptions.c (tdesc_architecture_name): Protect against
1071 NULL pointer dereference.
1072 (maint_print_xml_tdesc_cmd): New function.
1073 (_initialize_target_descriptions): Register new 'maint print
1074 xml-tdesc' command and give it the filename completer.
1075 * NEWS: Mention new 'maint print xml-tdesc' command.
1076
1077 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * target-descriptions.c (class tdesc_compatible_info): New class.
1080 (struct target_desc): Change type of compatible vector.
1081 (tdesc_compatible_p): Update for change in type of
1082 target_desc::compatible.
1083 (tdesc_compatible_info_list): New function.
1084 (tdesc_compatible_info_arch_name): New function.
1085 (tdesc_add_compatible): Update for change in type of
1086 target_desc::compatible.
1087 (print_c_tdesc::visit_pre): Likewise.
1088
1089 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1092 whitespace to underscore.
1093 (maint_print_c_tdesc_cmd): Use fake filename for target
1094 descriptions that came from the target.
1095 (_initialize_target_descriptions): Add filename command completion
1096 for 'maint print c-tdesc'.
1097
1098 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1101 lines.
1102
1103 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1106 lines.
1107 (dwarf2_find_location_expression): Likewise.
1108 (call_site_parameter_matches): Likewise.
1109 (dwarf2_compile_expr_to_ax): Likewise.
1110 (disassemble_dwarf_expression): Likewise.
1111 (loclist_describe_location): Likewise.
1112
1113 2020-06-23 Pedro Alves <palves@redhat.com>
1114
1115 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1116 progspace-and-thread.h. Include scoped-mock-context.h instead.
1117 (register_to_value_test): Use scoped_mock_context.
1118 * regcache.c: Include "scoped-mock-context.h".
1119 (cooked_read_test): Don't error out if a target is already pushed.
1120 Use scoped_mock_context. Adjust.
1121 * scoped-mock-context.h: New file.
1122
1123 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1124
1125 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1126 initializer.
1127 (ada_language::is_string_type_p): New member function.
1128 * c-lang.c (c_language_data): Delete la_is_string_type_p
1129 initializer.
1130 (cplus_language_data): Likewise.
1131 (asm_language_data): Likewise.
1132 (minimal_language_data): Likewise.
1133 * d-lang.c (d_language_data): Likewise.
1134 * f-lang.c (f_is_string_type_p): Delete function, implementation
1135 moved to f_language::is_string_type_p.
1136 (f_language_data): Delete la_is_string_type_p initializer.
1137 (f_language::is_string_type_p): New member function,
1138 implementation from f_is_string_type_p.
1139 * go-lang.c (go_is_string_type_p): Delete function, implementation
1140 moved to go_language::is_string_type_p.
1141 (go_language_data): Delete la_is_string_type_p initializer.
1142 (go_language::is_string_type_p): New member function,
1143 implementation from go_is_string_type_p.
1144 * language.c (language_defn::is_string_type_p): Define new member
1145 function.
1146 (default_is_string_type_p): Make static, add comment copied from
1147 header file.
1148 (unknown_language_data): Delete la_is_string_type_p initializer.
1149 (unknown_language::is_string_type_p): New member function.
1150 (auto_language_data): Delete la_is_string_type_p initializer.
1151 (auto_language::is_string_type_p): New member function.
1152 * language.h (language_data): Delete la_is_string_type_p field.
1153 (language_defn::is_string_type_p): Declare new function.
1154 (default_is_string_type_p): Delete desclaration, move comment to
1155 definition.
1156 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1157 moved to m2_language::is_string_type_p.
1158 (m2_language_data): Delete la_is_string_type_p initializer.
1159 (m2_language::is_string_type_p): New member function,
1160 implementation from m2_is_string_type_p.
1161 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1162 initializer.
1163 * opencl-lang.c (opencl_language_data): Likewise.
1164 * p-lang.c (pascal_is_string_type_p): Delete function,
1165 implementation moved to pascal_language::is_string_type_p.
1166 (pascal_language_data): Delete la_is_string_type_p initializer.
1167 (pascal_language::is_string_type_p): New member function,
1168 implementation from pascal_is_string_type_p.
1169 * rust-lang.c (rust_is_string_type_p): Delete function,
1170 implementation moved to rust_language::is_string_type_p.
1171 (rust_language_data): Delete la_is_string_type_p initializer.
1172 (rust_language::is_string_type_p): New member function,
1173 implementation from rust_is_string_type_p.
1174 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1175 is_string_type_p.
1176
1177 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * ada-lang.c (ada_language_data): Delete la_print_typedef
1180 initializer.
1181 (ada_language::print_typedef): New member function.
1182 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1183 (cplus_language_data): Likewise.
1184 (asm_language_data): Likewise.
1185 (minimal_language_data): Likewise.
1186 * d-lang.c (d_language_data): Likewise.
1187 * f-lang.c (f_language_data): Likewise.
1188 (f_language::print_typedef): New member function.
1189 * go-lang.c (go_language_data): Delete la_print_typedef
1190 initializer.
1191 * language.c (language_defn::print_typedef): Define member
1192 function.
1193 (unknown_language_data): Delete la_print_typedef initializer.
1194 (unknown_language::print_typedef): New member function.
1195 (auto_language_data): Delete la_print_typedef initializer.
1196 (auto_language::print_typedef): New member function.
1197 * language.h (language_data): Delete la_print_typedef field.
1198 (language_defn::print_typedef): Declare new member function.
1199 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1200 (default_print_typedef): Delete declaration.
1201 * m2-lang.c (m2_language_data): Delete la_print_typedef
1202 initializer.
1203 (m2_language::print_typedef): New member function.
1204 * objc-lang.c (objc_language_data): Delete la_print_typedef
1205 initializer.
1206 * opencl-lang.c (opencl_language_data): Likewise.
1207 * p-lang.c (pascal_language_data): Likewise.
1208 (pascal_language::print_typedef): New member function.
1209 * rust-lang.c (rust_print_typedef): Delete function,
1210 implementation moved to rust_language::print_typedef.
1211 (rust_language): Delete la_print_typedef initializer.
1212 (rust_language::print_typedef): New member function,
1213 implementation from rust_print_typedef.
1214 * typeprint.c (default_print_typedef): Delete.
1215
1216 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1219 (ada_language::printstr): New member function.
1220 * c-lang.c (c_language_data): Delete la_printstr initializer.
1221 (cplus_language_data): Likewise.
1222 (asm_language_data): Likewise.
1223 (minimal_language_data): Likewise.
1224 * d-lang.c (d_language_data): Likewise.
1225 * f-lang.c (f_printstr): Rename to f_language::printstr.
1226 (f_language_data): Delete la_printstr initializer.
1227 (f_language::printstr): New member function, implementation from
1228 f_printstr.
1229 * go-lang.c (go_language_data): Delete la_printstr initializer.
1230 * language.c (language_defn::printstr): Define new member
1231 function.
1232 (unk_lang_printstr): Delete.
1233 (unknown_language_data): Delete la_printstr initializer.
1234 (unknown_language::printstr): New member function.
1235 (auto_language_data): Delete la_printstr initializer.
1236 (auto_language::printstr): New member function.
1237 * language.h (language_data): Delete la_printstr field.
1238 (language_defn::printstr): Declare new member function.
1239 (LA_PRINT_STRING): Update call to printstr.
1240 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1241 (m2_language_data): Delete la_printstr initializer.
1242 (m2_language::printstr): New member function, implementation from
1243 m2_printstr.
1244 * objc-lang.c (objc_language_data): Delete la_printstr
1245 initializer.
1246 * opencl-lang.c (opencl_language_data): Likewise.
1247 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1248 (pascal_language_data): Delete la_printstr initializer.
1249 (pascal_language::printstr): New member function, implementation
1250 from pascal_printstr.
1251 * p-lang.h (pascal_printstr): Delete declaration.
1252 * rust-lang.c (rust_printstr): Update header comment.
1253 (rust_language_data): Delete la_printstr initializer.
1254 (rust_language::printstr): New member function.
1255
1256 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1257
1258 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1259 (ada_language::printchar): New member function.
1260 * c-lang.c (c_language_data): Delete la_printchar initializer.
1261 (cplus_language_data): Likewise.
1262 (asm_language_data): Likewise.
1263 (minimal_language_data): Likewise.
1264 * d-lang.c (d_language_data): Likewise.
1265 * f-lang.c (f_printchar): Rename to f_language::printchar.
1266 (f_language_data): Delete la_printchar initializer.
1267 (f_language::printchar): New member function, implementation from
1268 f_printchar.
1269 * go-lang.c (go_language_data): Delete la_printchar initializer.
1270 * language.c (unk_lang_printchar): Delete.
1271 (language_defn::printchar): Define new member function.
1272 (unknown_language_data): Delete la_printchar initializer.
1273 (unknown_language::printchar): New member function.
1274 (auto_language_data): Delete la_printchar initializer.
1275 (auto_language::printchar): New member function.
1276 * language.h (language_data): Delete la_printchar field.
1277 (language_defn::printchar): Declare new member function.
1278 (LA_PRINT_CHAR): Update call to printchar.
1279 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1280 (m2_language::printchar): New member function.
1281 * objc-lang.c (objc_language_data): Delete la_printchar
1282 initializer.
1283 * opencl-lang.c (opencl_language_data): Likewise.
1284 * p-lang.c (pascal_language_data): Delete la_printchar
1285 initializer.
1286 (pascal_language::printchar): New member function.
1287 * rust-lang.c (rust_printchar): Rename to
1288 rust_language::printchar.
1289 (rust_language_data): Delete la_printchar initializer.
1290 (rust_language::printchar): New member function, implementation
1291 from rust_printchar.
1292
1293 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1296 (ada_language_data): Delete la_emitchar initializer.
1297 (ada_language::emitchar): New member function, implementation from
1298 emit_char.
1299 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1300 (cplus_language_data): Likewise.
1301 (asm_language_data): Likewise.
1302 (minimal_language_data): Likewise.
1303 * d-lang.c (d_language_data): Likewise.
1304 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1305 (f_language_data): Delete la_emitchar initializer.
1306 (f_language::emitchar): New member function, implementation from
1307 f_emit_char.
1308 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1309 * language.c (unk_lang_emit_char): Delete.
1310 (language_defn::emitchar): New member function definition.
1311 (unknown_language_data): Delete la_emitchar initializer.
1312 (unknown_language::emitchar): New member function.
1313 (auto_language_data): Delete la_emitchar initializer.
1314 (auto_language::emitchar): New member function.
1315 * language.h (language_data): Delete la_emitchar field.
1316 (language_defn::emitchar): New member field declaration.
1317 (LA_EMIT_CHAR): Update call to emitchar.
1318 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1319 (m2_language_data): Delete la_emitchar initializer.
1320 (m2_language::emitchar): New member function, implementation from
1321 m2_emit_char.
1322 * objc-lang.c (objc_language_data): Delete la_emitchar
1323 initializer.
1324 * opencl-lang.c (opencl_language_data): Likewise.
1325 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1326 (pascal_language_data): Delete la_emitchar initializer.
1327 (pascal_language::emitchar): New member function, implementation
1328 from pascal_emit_char.
1329 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1330 (rust_language_data): Delete la_emitchar initializer.
1331 (rust_language::emitchar): New member function, implementation
1332 from rust_emitchar.
1333
1334 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1337 (ada_language_data): Delete la_post_parser initializer.
1338 (ada_language::post_parser): New member function.
1339 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1340 (cplus_language_data): Likewise.
1341 (asm_language_data): Likewise.
1342 (minimal_language_data): Likewise.
1343 * d-lang.c (d_language_data): Likewise.
1344 * f-lang.c (f_language_data): Likewise.
1345 * go-lang.c (go_language_data): Likewise.
1346 * language.c (unknown_language_data): Likewise.
1347 (auto_language_data): Likewise.
1348 * language.h (language_data): Delete la_post_parser field.
1349 (language_defn::post_parser): New member function.
1350 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1351 * objc-lang.c (objc_language_data): Likewise.
1352 * opencl-lang.c (opencl_language_data): Likewise.
1353 * p-lang.c (pascal_language_data): Likewise.
1354 * parse.c (parse_exp_in_context): Update call to post_parser.
1355 (null_post_parser): Delete definition.
1356 * parser-defs.h (null_post_parser): Delete declaration.
1357 * rust-lang.c (rust_language_data): Delete la_post_parser
1358 initializer.
1359
1360 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * ada-lang.c (parse): Rename to ada_language::parser.
1363 (ada_language_data): Delete la_parser initializer.
1364 (ada_language::parser): New member function, implementation from
1365 parse.
1366 * c-lang.c (c_language_data): Delete la_parser initializer.
1367 (cplus_language_data): Likewise.
1368 (asm_language_data): Likewise.
1369 (minimal_language_data): Likewise.
1370 * d-lang.c (d_language_data): Likewise.
1371 (d_language::parser): New member function.
1372 * f-lang.c (f_language_data): Delete la_parser initializer.
1373 (f_language::parser): New member function.
1374 * go-lang.c (go_language_data): Delete la_parser initializer.
1375 (go_language::parser): New member function.
1376 * language.c (unk_lang_parser): Delete.
1377 (language_defn::parser): Define new member function.
1378 (unknown_language_data): Delete la_parser initializer.
1379 (unknown_language::parser): New member function.
1380 (auto_language_data): Delete la_parser initializer.
1381 (auto_language::parser): New member function.
1382 * language.h (language_data): Delete la_parser field.
1383 (language_defn::parser): Declare new member function.
1384 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1385 (m2_language::parser): New member function.
1386 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1387 * opencl-lang.c (opencl_language_data): Likewise.
1388 * p-lang.c (pascal_language_data): Likewise.
1389 (pascal_language::parser): New member function.
1390 * parse.c (parse_exp_in_context): Update call to parser.
1391 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1392 (rust_language::parser): New member function.
1393
1394 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * top.c (print_gdb_configuration): Print --with-python-libdir
1397 configuration value.
1398
1399 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1400
1401 * NEWS: Mention change to the alias command.
1402
1403 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1404
1405 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1406 (alias_command_completer)
1407 (make_alias_options_def_group): New functions.
1408 (alias_opts, alias_option_defs): New struct and array.
1409 (alias_usage_error): Update usage.
1410 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1411 Use option framework.
1412 (_initialize_cli_cmds): Update alias command help.
1413 Update aliases command help.
1414 (show_user):
1415 Add NULL for new default_args lookup_cmd argument.
1416 (valid_command_p): Rename to validate_aliased_command.
1417 Add NULL for new default_args lookup_cmd argument. Verify that the
1418 aliased_command has no default args.
1419 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1420 (lookup_cmd_1, lookup_cmd): New argument default_args.
1421 (add_alias_cmd):
1422 Add NULL for new default_args lookup_cmd argument.
1423 (print_help_for_command): Show default args under the layout
1424 alias some_alias = some_aliased_cmd some_alias_default_arg.
1425 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1426 xfree default_args in destructor.
1427 * cli/cli-script.c (process_next_line, do_define_command):
1428 Add NULL for new default_args lookup_cmd argument.
1429 * command.h: Declare new default_args argument in lookup_cmd
1430 and lookup_cmd_1.
1431 * completer.c (complete_line_internal_1):
1432 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1433 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1434 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1435 Likewise.
1436 * infcmd.c (_initialize_infcmd): Likewise.
1437 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1438 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1439 * python/py-param.c (add_setshow_generic): Likewise.
1440 * remote.c (_initialize_remote): Likewise.
1441 * top.c (execute_command): Prepend default_args if command has some.
1442 (set_verbose):
1443 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1444 * tracepoint.c (validate_actionline, encode_actions_1):
1445 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1446
1447 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448
1449 * jit.c (jit_read_descriptor): Use bool as the return type.
1450 (jit_breakpoint_re_set_internal): Use bool as the return type.
1451 Invert the return value logic; return true if the jit breakpoint
1452 has been successfully initialized.
1453 (jit_inferior_init): Update the call to
1454 jit_breakpoint_re_set_internal.
1455
1456 2020-06-22 Pedro Alves <palves@redhat.com>
1457
1458 PR gdb/25939
1459 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1460 Use the current inferior instead. Don't return
1461 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1462 wait again.
1463 * sol-thread.c (sol_thread_target::wait): Don't reference
1464 inferior_ptid.
1465 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1466 (sol_update_thread_list_callback): Use the current inferior's pid
1467 instead of inferior_ptid.
1468
1469 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1470
1471 * procfs.c: Cleanup many comments.
1472
1473 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1474 (AFTER_WATCHFLAG): Replace by value.
1475
1476 (MAIN_PROC_NAME_FORMAT): Inline ...
1477 (create_procinfo): ... here.
1478
1479 (procfs_debug_inferior): Remove SYS_exec handling.
1480 (syscall_is_exec): Likewise.
1481 (procfs_set_exec_trap): Likewise.
1482
1483 (syscall_is_lwp_exit): Inline in callers.
1484 (syscall_is_exit): Likewise.
1485 (syscall_is_exec): Likewise.
1486 (syscall_is_lwp_create): Likewise.
1487
1488 (invalidate_cache): Remove #if 0 code.
1489
1490 (make_signal_thread_runnable): Remove.
1491 (procfs_target::resume): Remove #if 0 code.
1492
1493 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1494
1495 PR gdb/25939
1496 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1497 call ...
1498 (procfs_target::create_inferior): ... here.
1499
1500 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1501
1502 * exec.c (validate_exec_file): Ensure the build-id is up to
1503 date by calling reopen_exec_file (that checks file timestamp
1504 to decide to re-read the file).
1505
1506 2020-06-18 Pedro Alves <palves@redhat.com>
1507
1508 PR gdb/25412
1509 * gdbthread.h (delete_thread, delete_thread_silent)
1510 (find_thread_ptid): Update comments.
1511 * thread.c (current_thread_): New global.
1512 (is_current_thread): Move higher, and reimplement.
1513 (inferior_thread): Reimplement.
1514 (set_thread_exited): Use bool. Add assertions.
1515 (add_thread_silent): Simplify thread-reuse handling by always
1516 calling delete_thread.
1517 (delete_thread): Remove intro comment.
1518 (find_thread_ptid): Skip exited threads.
1519 (switch_to_thread_no_regs): Write to current_thread_.
1520 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1521 INFERIOR_PTID. Clear current_thread_.
1522
1523 2020-06-18 Pedro Alves <palves@redhat.com>
1524
1525 * aix-thread.c (pd_update): Use switch_to_thread.
1526
1527 2020-06-18 Pedro Alves <palves@redhat.com>
1528
1529 * ravenscar-thread.c (ravenscar_thread_target): Update.
1530 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1531 (ravenscar_thread_target::add_active_thread): ... this. Don't
1532 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1533 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1534
1535 2020-06-18 Pedro Alves <palves@redhat.com>
1536
1537 * nat/windows-nat.c (current_windows_thread): Remove.
1538 * nat/windows-nat.h (current_windows_thread): Remove.
1539 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1540 Adjust.
1541 (display_selectors): Adjust to fetch the current
1542 windows_thread_info based on inferior_ptid.
1543 (fake_create_process): No longer write to current_windows_thread.
1544 (windows_nat_target::get_windows_debug_event):
1545 Don't set inferior_ptid or current_windows_thread.
1546 (windows_nat_target::wait): Adjust to not rely on
1547 current_windows_thread.
1548 (do_initial_windows_stuff): Now a method of windows_nat_target.
1549 Switch to the last_ptid thread.
1550 (windows_nat_target::attach): Adjust.
1551 (windows_nat_target::detach): Use switch_to_no_thread instead of
1552 writing to inferior_ptid directly.
1553 (windows_nat_target::create_inferior): Adjust.
1554
1555 2020-06-18 Pedro Alves <palves@redhat.com>
1556
1557 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1558
1559 2020-06-18 Pedro Alves <palves@redhat.com>
1560
1561 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1562 after creating it, instead of writing to inferior_ptid. Don't
1563 write to inferior_ptid.
1564
1565 2020-06-18 Pedro Alves <palves@redhat.com>
1566
1567 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1568
1569 2020-06-18 Pedro Alves <palves@redhat.com>
1570
1571 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1572 it, instead of writing to inferior_ptid.
1573
1574 2020-06-18 Pedro Alves <palves@redhat.com>
1575
1576 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1577 to inferior_ptid.
1578
1579 2020-06-18 Pedro Alves <palves@redhat.com>
1580
1581 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1582 instead of writing to inferior_ptid directly.
1583
1584 2020-06-18 Pedro Alves <palves@redhat.com>
1585
1586 * corelow.c (core_target::close): Use switch_to_no_thread instead
1587 of writing to inferior_ptid directly.
1588 (add_to_thread_list, core_target_open): Use switch_to_thread
1589 instead of writing to inferior_ptid directly.
1590
1591 2020-06-18 Pedro Alves <palves@redhat.com>
1592
1593 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1594 inferior_ptid.
1595 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1596 inferior_ptid.
1597 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1598 inferior_ptid directly.
1599 (darwin_nat_target::init_thread_list): Switch to thread, instead
1600 of writing to inferior_ptid.
1601 (darwin_nat_target::attach): Don't write to inferior_ptid.
1602 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1603
1604 2020-06-18 Pedro Alves <palves@redhat.com>
1605
1606 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1607 thread.
1608 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1609 Instead use switch_to_thread.
1610 (gnu_nat_target::detach): Use switch_to_no_thread
1611 instead of writing to inferior_ptid directly. Used passed-in
1612 inferior instead of looking up the inferior by pid.
1613
1614 2020-06-18 Pedro Alves <palves@redhat.com>
1615
1616 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1617 inferior_ptid.
1618
1619 2020-06-18 Pedro Alves <palves@redhat.com>
1620
1621 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1622 inferior_ptid.
1623 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1624 thread.
1625 (nto_procfs_target::detach): Avoid referencing
1626 inferior_ptid. Use switch_to_no_thread instead of writing to
1627 inferior_ptid directly.
1628 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1629 instead of writing to inferior_ptid directly.
1630 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1631 to thread.
1632
1633 2020-06-18 Pedro Alves <palves@redhat.com>
1634
1635 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1636 after creating it, instead of writing to inferior_ptid.
1637 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1638 to inferior_ptid directly.
1639 (gdbsim_target::wait): Don't write to inferior_ptid.
1640
1641 2020-06-18 Pedro Alves <palves@redhat.com>
1642
1643 * remote.c (remote_target::remote_notice_new_inferior): Use
1644 switch_to_thread instead of writing to inferior_ptid directly.
1645 (remote_target::add_current_inferior_and_thread): Use
1646 switch_to_no_thread instead of writing to inferior_ptid directly.
1647 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1648 and switch_to_thread instead of using set_current_inferior or
1649 writing to inferior_ptid directly.
1650
1651 2020-06-18 Pedro Alves <palves@redhat.com>
1652
1653 * tracectf.c (ctf_target_open): Switch to added thread instead of
1654 writing to inferior_ptid directly.
1655 (ctf_target::close): Use switch_to_no_thread instead of writing to
1656 inferior_ptid directly.
1657
1658 2020-06-18 Pedro Alves <palves@redhat.com>
1659
1660 * tracefile-tfile.c (tfile_target_open): Don't write to
1661 inferior_ptid directly, instead switch to added thread.
1662 (tfile_target::close): Use switch_to_no_thread instead of writing
1663 to inferior_ptid directly.
1664
1665 2020-06-18 Pedro Alves <palves@redhat.com>
1666
1667 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1668 (procfs_target::detach): Use switch_to_no_thread
1669 instead of writing to inferior_ptid directly.
1670 (do_attach): Change return type to void. Switch to the added
1671 thread.
1672 (procfs_target::create_inferior): Switch to the added thread.
1673 (procfs_do_thread_registers): Don't write to inferior_ptid.
1674
1675 2020-06-18 Pedro Alves <palves@redhat.com>
1676
1677 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1678 of writing to inferior_ptid.
1679 (scoped_restore_exited_inferior): Delete.
1680 (handle_vfork_child_exec_or_exit): Simplify using
1681 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1682 instead of writing to inferior_ptid.
1683 (THREAD_STOPPED_BY): Delete.
1684 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1685 (thread_stopped_by_hw_breakpoint): Delete.
1686 (save_waitstatus): Use
1687 scoped_restore_current_thread+switch_to_thread, and call
1688 target_stopped_by_watchpoint instead of
1689 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1690 instead of thread_stopped_by_sw_breakpoint, and
1691 target_stopped_by_hw_breakpoint instead of
1692 thread_stopped_by_hw_breakpoint.
1693 (handle_inferior_event)
1694 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1695 inferior_ptid directly, nor
1696 set_current_inferior/set_current_program_space. Use
1697 switch_to_thread / switch_to_inferior_no_thread instead.
1698
1699 2020-06-18 Pedro Alves <palves@redhat.com>
1700
1701 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1702 instead of writing to inferior_ptid.
1703
1704 2020-06-18 Pedro Alves <palves@redhat.com>
1705
1706 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1707 added thread.
1708 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1709 to the added thread.
1710 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1711 instead of writing to inferior_ptid.
1712
1713 2020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1716 (register_to_value_test): Mock a program_space too. Heap-allocate
1717 the address space. Don't write to inferior_ptid. Use
1718 switch_to_thread instead.
1719
1720 2020-06-18 Pedro Alves <palves@redhat.com>
1721
1722 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1723 Delete.
1724 (find_signalled_thread()): New, factored out from
1725 linux_make_corefile_notes and adjusted to handle exited threads.
1726 (linux_make_corefile_notes): Adjust to use the new
1727 find_signalled_thread.
1728
1729 2020-06-18 Pedro Alves <palves@redhat.com>
1730
1731 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1732 of saving/restoring inferior_ptid.
1733
1734 2020-06-17 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1737 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1738 declare.
1739 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1740
1741 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1744 of partial symtabs.
1745
1746 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1747
1748 * regformats/reg-arm.dat: Remove.
1749 * regformats/reg-bfin.dat: Remove.
1750 * regformats/reg-cris.dat: Remove.
1751 * regformats/reg-crisv32.dat: Remove.
1752 * regformats/reg-m32r.dat: Remove.
1753 * regformats/reg-tilegx.dat: Remove.
1754 * regformats/reg-tilegx32.dat: Remove.
1755
1756 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * features/Makefile (WHICH): Remove arm files.
1759 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1760 * regformats/arm/arm-with-neon.dat: Remove.
1761 * regformats/arm/arm-with-vfpv2.dat: Remove.
1762 * regformats/arm/arm-with-vfpv3.dat: Remove.
1763
1764 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1765
1766 * features/Makefile (XMLTOC): Remove rx.xml.
1767
1768 2020-06-17 Pedro Alves <palves@redhat.com>
1769
1770 * gdbthread.h (thread_control_state) <trap_expected> Update
1771 comments.
1772
1773 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1776 ada_language::lookup_symbol_nonlocal.
1777 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1778 (ada_language::lookup_symbol_nonlocal): New member function,
1779 implementation from ada_lookup_symbol_nonlocal.
1780 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1781 initializer.
1782 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1783 initializer.
1784 (cplus_language::lookup_symbol_nonlocal): New member function.
1785 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1786 (minimal_language_data) Likewise.
1787 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1788 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1789 initializer.
1790 (d_language::lookup_symbol_nonlocal): New member function.
1791 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1792 initializer.
1793 (f_language::lookup_symbol_nonlocal): New member function.
1794 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1795 initializer.
1796 * language.c (unknown_language_data): Likewise.
1797 (auto_language_data): Likewise.
1798 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1799 field.
1800 (language_defn::lookup_symbol_nonlocal): New member function.
1801 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1802 initializer.
1803 * objc-lang.c (objc_language_data): Likewise.
1804 * opencl-lang.c (opencl_language_data): Likewise.
1805 * p-lang.c (pascal_language_data): Likewise.
1806 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1807 rust_language::lookup_symbol_nonlocal.
1808 (rust_language_data): Delete la_lookup_symbol_nonlocal
1809 initializer.
1810 (rust_language::lookup_symbol_nonlocal): New member function,
1811 implementation from rust_lookup_symbol_nonlocal.
1812 * symtab.c (lookup_symbol_aux): Update call to
1813 lookup_symbol_nonlocal.
1814 (basic_lookup_symbol_nonlocal): Rename to...
1815 (language_defn::lookup_symbol_nonlocal): ...this, and update
1816 header comment. Remove language_defn parameter, and replace with
1817 uses of `this'.
1818 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1819
1820 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1823 initializer.
1824 (ada_language::value_print_inner): New member function.
1825 * c-lang.c (c_language_data): Delete la_value_print_inner
1826 initializer.
1827 (cplus_language_data): Likewise.
1828 (asm_language_data): Likewise.
1829 (minimal_language_data): Likewise.
1830 * d-lang.c (d_language_data): Likewise.
1831 (d_language::value_print_inner): New member function.
1832 * f-lang.c (f_language_data): Delete la_value_print_inner
1833 initializer.
1834 (f_language::value_print_inner): New member function.
1835 * f-lang.h (f_value_print_innner): Rename to...
1836 (f_value_print_inner): ...this (note spelling of 'inner').
1837 * f-valprint.c (f_value_print_innner): Rename to...
1838 (f_value_print_inner): ...this (note spelling of 'inner').
1839 * go-lang.c (go_language_data): Delete la_value_print_inner
1840 initializer.
1841 (go_language::value_print_inner): New member function.
1842 * language.c (language_defn::value_print_inner): Define new member
1843 function.
1844 (unk_lang_value_print_inner): Delete.
1845 (unknown_language_data): Delete la_value_print_inner initializer.
1846 (unknown_language::value_print_inner): New member function.
1847 (auto_language_data): Delete la_value_print_inner initializer.
1848 (auto_language::value_print_inner): New member function.
1849 * language.h (language_data): Delete la_value_print_inner field.
1850 (language_defn::value_print_inner): Delcare new member function.
1851 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1852 initializer.
1853 (m2_language::value_print_inner): New member function.
1854 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1855 initializer.
1856 * opencl-lang.c (opencl_language_data): Likewise.
1857 * p-lang.c (pascal_language_data): Likewise.
1858 (pascal_language::value_print_inner): New member function.
1859 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1860 initializer.
1861 (rust_language::value_print_inner): New member function.
1862 * valprint.c (do_val_print): Update call to value_print_inner.
1863
1864 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * ada-lang.c (ada_language_data): Delete la_value_print
1867 initializer.
1868 (ada_language::value_print): New member function.
1869 * c-lang.c (c_language_data): Delete la_value_print initializer.
1870 (cplus_language_data): Likewise.
1871 (asm_language_data): Likewise.
1872 (minimal_language_data): Likewise.
1873 * d-lang.c (d_language_data): Likewise.
1874 * f-lang.c (f_language_data): Likewise.
1875 * go-lang.c (go_language_data): Likewise.
1876 * language.c (unk_lang_value_print): Delete.
1877 (language_defn::value_print): Define new member function.
1878 (unknown_language_data): Delete la_value_print initializer.
1879 (unknown_language::value_print): New member function.
1880 (auto_language_data): Delete la_value_print initializer.
1881 (auto_language::value_print): New member function.
1882 * language.h (language_data): Delete la_value_print field.
1883 (language_defn::value_print): Declare new member function.
1884 (LA_VALUE_PRINT): Update call to value_print.
1885 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1886 * objc-lang.c (objc_language_data): Likewise.
1887 * opencl-lang.c (opencl_language_data): Likewise.
1888 * p-lang.c (pascal_language_data): Likewise.
1889 (pascal_language::value_print): New member function.
1890 * rust-lang.c (rust_language_data): Delete la_value_print
1891 initializer.
1892
1893 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * ada-lang.c (ada_watch_location_expression): Rename to
1896 ada_language::watch_location_expression.
1897 (ada_language_data): Delete la_watch_location_expression
1898 initializer.
1899 (ada_language::watch_location_expression): New member function,
1900 implementation from ada_watch_location_expression.
1901 * breakpoint.c (watch_command_1): Update call to
1902 watch_location_expression.
1903 * c-lang.c (c_watch_location_expression): Rename to
1904 language_defn::watch_location_expression.
1905 (c_language_data): Delete la_watch_location_expression
1906 initializer.
1907 (cplus_language_data): Likewise.
1908 (asm_language_data): Likewise.
1909 (minimal_language_data): Likewise.
1910 * c-lang.h (c_watch_location_expression): Delete declaration.
1911 * d-lang.c (d_language_data): Delete la_watch_location_expression
1912 initializer.
1913 * f-lang.c (f_language_data): Likewise.
1914 * go-lang.c (go_language_data): Likewise.
1915 * language.c (language_defn::watch_location_expression): Member
1916 function implementation from c_watch_location_expression.
1917 (unknown_language_data): Delete la_watch_location_expression
1918 initializer.
1919 (auto_language_data): Likewise.
1920 * language.h (language_data): Delete la_watch_location_expression
1921 field.
1922 (language_defn::watch_location_expression): Declare new member
1923 function.
1924 * m2-lang.c (m2_language_data): Delete
1925 la_watch_location_expression initializer.
1926 * objc-lang.c (objc_language_data): Likewise.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_language_data): Likewise.
1929 * rust-lang.c (rust_watch_location_expression): Rename to
1930 rust_language::watch_location_expression.
1931 (rust_language_data): Delete la_watch_location_expression
1932 initializer.
1933 (rust_language::watch_location_expression): New member function,
1934 implementation from rust_watch_location_expression.
1935
1936 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1939 ada_language::collect_symbol_completion_matches.
1940 (ada_language_data): Delete la_collect_symbol_completion_matches
1941 initializer.
1942 (ada_language::collect_symbol_completion_matches): New member
1943 function, implementation from
1944 ada_collect_symbol_completion_matches.
1945 * c-lang.c (c_language_data): Delete
1946 la_collect_symbol_completion_matches initializer.
1947 (cplus_language_data): Likewise.
1948 (asm_language_data): Likewise.
1949 (minimal_language_data): Likewise.
1950 * d-lang.c (d_language_data): Likewise.
1951 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1952 f_language::collect_symbol_completion_matches.
1953 (f_language_data): Delete la_collect_symbol_completion_matches
1954 initializer.
1955 (f_language::collect_symbol_completion_matches) New member
1956 function, implementation from f_collect_symbol_completion_matches.
1957 * go-lang.c (go_language_data): Delete
1958 la_collect_symbol_completion_matches initializer.
1959 * language.c (unknown_language_data): Likewise.
1960 (auto_language_data): Likewise.
1961 * language.h (language_data): Delete
1962 la_collect_symbol_completion_matches field.
1963 (language_defn::collect_symbol_completion_matches): New member
1964 function.
1965 * m2-lang.c (m2_language_data): Delete
1966 la_collect_symbol_completion_matches initializer.
1967 * objc-lang.c (objc_language_data): Likewise.
1968 * opencl-lang.c (opencl_language_data): Likewise.
1969 * p-lang.c (pascal_language_data): Likewise.
1970 * rust-lang.c (rust_language_data): Likewise.
1971 * symtab.c (default_collect_symbol_completion_matches): Delete.
1972 (collect_symbol_completion_matches): Update call to
1973 collect_symbol_completion_matches.
1974 (collect_symbol_completion_matches_type): Likewise.
1975 * symtab.h (default_collect_symbol_completion_matches): Delete
1976 declaration.
1977
1978 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1981 (ada_language_data): Delete la_word_break_characters initializer.
1982 (ada_language::word_break_characters): New member function.
1983 * c-lang.c (c_language_data): Delete la_word_break_characters
1984 initializer.
1985 (cplus_language_data): Likewise.
1986 (asm_language_data): Likewise.
1987 (minimal_language_data): Likewise.
1988 * completer.c: Update global comment.
1989 (advance_to_expression_complete_word_point): Update call to
1990 word_break_characters.
1991 (complete_files_symbols): Likewise.
1992 (complete_line_internal_1): Likewise.
1993 (default_completer_handle_brkchars): Likewise.
1994 (skip_quoted_chars): Likewise.
1995 * d-lang.c (d_language_data): Delete la_word_break_characters
1996 initializer.
1997 * f-lang.c (f_word_break_characters): Delete.
1998 (f_language_data): Delete la_word_break_characters initializer.
1999 (f_language::word_break_characters): New member function.
2000 * go-lang.c (go_language_data): Delete la_word_break_characters
2001 initializer.
2002 * language.c (unknown_language_data): Likewise.
2003 (auto_language_data): Likewise.
2004 * language.h (default_word_break_characters): Move declaration to
2005 earlier in the file.
2006 (language_data): Delete la_word_break_characters field.
2007 (language_defn::word_break_characters): New member function.
2008 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2009 initializer.
2010 * objc-lang.c (objc_language_data): Likewise.
2011 * opencl-lang.c (opencl_language_data): Likewise.
2012 * p-lang.c (pascal_language_data): Likewise.
2013 * rust-lang.c (rust_language_data): Likewise.
2014
2015 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2018 (ada_language_data): Delete la_get_symbol_name_matcher
2019 initializer.
2020 (language_defn::get_symbol_name_matcher_inner): New member
2021 function.
2022 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2023 initializer.
2024 (cplus_language_data): Likewise.
2025 (cplus_language::get_symbol_name_matcher_inner): New member
2026 function.
2027 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2028 (minimal_language_data): Likewise.
2029 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2030 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2031 initializer.
2032 * dictionary.c (iter_match_first_hashed): Update call to
2033 get_symbol_name_matcher.
2034 (iter_match_next_hashed): Likewise.
2035 (iter_match_next_linear): Likewise.
2036 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2037 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2038 initializer.
2039 (f_language::get_symbol_name_matcher_inner): New member function.
2040 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2041 initializer.
2042 * language.c (default_symbol_name_matcher): Update header comment,
2043 make static.
2044 (language_defn::get_symbol_name_matcher): New definition.
2045 (language_defn::get_symbol_name_matcher_inner): Likewise.
2046 (get_symbol_name_matcher): Delete.
2047 (unknown_language_data): Delete la_get_symbol_name_matcher
2048 initializer.
2049 (auto_language_data): Likewise.
2050 * language.h (language_data): Delete la_get_symbol_name_matcher
2051 field.
2052 (language_defn::get_symbol_name_matcher): New member function.
2053 (language_defn::get_symbol_name_matcher_inner): Likewise.
2054 (default_symbol_name_matcher): Delete declaration.
2055 * linespec.c (find_methods): Update call to
2056 get_symbol_name_matcher.
2057 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2058 initializer.
2059 * minsyms.c (lookup_minimal_symbol): Update call to
2060 get_symbol_name_matcher.
2061 (iterate_over_minimal_symbols): Likewise.
2062 * objc-lang.c (objc_language_data): Delete
2063 la_get_symbol_name_matcher initializer.
2064 * opencl-lang.c (opencl_language_data): Likewise.
2065 * p-lang.c (pascal_language_data): Likewise.
2066 * psymtab.c (psymbol_name_matches): Update call to
2067 get_symbol_name_matcher.
2068 * rust-lang.c (rust_language_data): Delete
2069 la_get_symbol_name_matcher initializer.
2070 * symtab.c (symbol_matches_search_name): Update call to
2071 get_symbol_name_matcher.
2072 (compare_symbol_name): Likewise.
2073
2074 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * ada-lang.c (ada_language_data): Delete la_compute_program
2077 initializer.
2078 * c-lang.c (c_language_data): Likewise.
2079 (c_language::compute_program): New member function.
2080 (cplus_language_data): Delete la_compute_program initializer.
2081 (cplus_language::compute_program): New member function.
2082 (asm_language_data): Delete la_compute_program initializer.
2083 (minimal_language_data): Likewise.
2084 * c-lang.h (c_compute_program): Update comment.
2085 (cplus_compute_program): Likewise.
2086 * compile/compile-c-support.c (c_compute_program): Likewise.
2087 (cplus_compute_program): Likewise.
2088 * compile/compile.c (compile_to_object): Update call to
2089 la_compute_program.
2090 * d-lang.c (d_language_data): Delete la_compute_program
2091 initializer.
2092 * f-lang.c (f_language_data): Likewise.
2093 * go-lang.c (go_language_data): Likewise.
2094 * language.c (unknown_language_data): Likewise.
2095 (auto_language_data): Likewise.
2096 * language.h (language_data): Delete la_compute_program field.
2097 (language_defn::compute_program): New member function.
2098 * m2-lang.c (m2_language_data): Delete la_compute_program
2099 initializer.
2100 * objc-lang.c (objc_language_data): Likewise.
2101 * opencl-lang.c (opencl_language_data): Likewise.
2102 * p-lang.c (pascal_language_data): Likewise.
2103 * rust-lang.c (rust_language_data): Likewise.
2104
2105 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * ada-lang.c (ada_language_data) Delete
2108 la_class_name_from_physname initializer.
2109 * c-lang.c (c_language_data): Likewise.
2110 (cplus_language_data): Likewise.
2111 (cplus_language::class_name_from_physname): New member function.
2112 (asm_language_data): Delete la_class_name_from_physname
2113 initializer.
2114 (minimal_language_data): Likewise.
2115 * d-lang.c (d_language_data): Likewise.
2116 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2117 method on language_defn class.
2118 (guess_full_die_structure_name): Likewise.
2119 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2120 initializer.
2121 * go-lang.c (go_language_data): Likewise.
2122 * language.c (language_class_name_from_physname): Delete.
2123 (unk_lang_class_name): Delete.
2124 (unknown_language_data): Delete la_class_name_from_physname
2125 initializer.
2126 (auto_language_data): Likewise.
2127 * language.h (language_data): Delete la_class_name_from_physname
2128 field.
2129 (language_defn::class_name_from_physname): New function.
2130 (language_class_name_from_physname): Delete declaration.
2131 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2132 initializer.
2133 * objc-lang.c (objc_language_data): Likewise.
2134 * opencl-lang.c (opencl_language_data): Likewise.
2135 * p-lang.c (pascal_language_data): Likewise.
2136 * rust-lang.c (rust_language_data): Likewise.
2137
2138 2020-06-16 Tom Tromey <tom@tromey.com>
2139
2140 * tui/tui-data.h (STATUS_NAME): New macro.
2141 * tui/tui-layout.c (tui_remove_some_windows)
2142 (initialize_known_windows, tui_register_window)
2143 (tui_layout_split::remove_windows, initialize_layouts)
2144 (tui_new_layout_command): Don't use hard-coded window names.
2145
2146 2020-06-16 Tom Tromey <tom@tromey.com>
2147
2148 PR tui/25348:
2149 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2150 tui_initialize_readline. Only run once. Call rl_initialize.
2151 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2152 tui_initialize_readline.
2153 * tui/tui-io.c (tui_setup_io): Call
2154 tui_ensure_readline_initialized.
2155 * tui/tui-interp.c (tui_interp::init): Update.
2156
2157 2020-06-16 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2160 Also preserve the status window.
2161
2162 2020-06-16 Tom Tromey <tom@tromey.com>
2163
2164 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2165 where m_window==nullptr.
2166
2167 2020-06-15 Tom Tromey <tromey@adacore.com>
2168
2169 * windows-nat.c (windows_nat::handle_output_debug_string):
2170 Update.
2171 (windows_nat::handle_ms_vc_exception): Update.
2172 * target.h (target_read_string): Change API.
2173 * target.c (target_read_string): Change API.
2174 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2175 Update.
2176 * solib-frv.c (frv_current_sos): Update.
2177 * solib-dsbt.c (dsbt_current_sos): Update.
2178 * solib-darwin.c (darwin_current_sos): Update.
2179 * linux-thread-db.c (inferior_has_bug): Update.
2180 * expprint.c (print_subexp_standard): Update.
2181 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2182 (ada_exception_message_1): Update.
2183
2184 2020-06-15 Tom Tromey <tromey@adacore.com>
2185
2186 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2187
2188 2020-06-15 Tom Tromey <tromey@adacore.com>
2189
2190 * valprint.c (read_string): Update comment.
2191 * target.c (MIN): Remove.
2192 (target_read_string): Rewrite.
2193
2194 2020-06-15 Tom Tromey <tromey@adacore.com>
2195
2196 * corefile.c (read_memory_string): Remove.
2197 * ada-valprint.c (ada_value_print_ptr): Update.
2198 * ada-lang.h (ada_tag_name): Change return type.
2199 * ada-lang.c (type_from_tag): Update.
2200 (ada_tag_name_from_tsd): Change return type. Use
2201 target_read_string.
2202 (ada_tag_name): Likewise.
2203 * gdbcore.h (read_memory_string): Don't declare.
2204
2205 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2206
2207 * symtab.c (rbreak_command): Ignore Windows drive colon.
2208
2209 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2210
2211 * NEWS: Mention removed GDBserver host support.
2212
2213 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2214
2215 * features/riscv/rebuild-csr-xml.sh: Updated.
2216
2217 2020-06-11 Tom Tromey <tom@tromey.com>
2218
2219 PR gdb/18318:
2220 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2221
2222 2020-06-09 Jonny Grant <jg@jguk.org>
2223 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * main.c (captured_main_1): Don't print new line after help.
2226 (print_gdb_help): add mailing list and IRC channel information
2227 to --help. Add new lines between items in the footer. Remove
2228 quotes around bug url.
2229
2230 2020-06-11 Keith Seitz <keiths@redhat.com>
2231
2232 PR gdb/21356
2233 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2234 Resolve typedefs for type length calculations.
2235
2236 2020-06-10 Tom de Vries <tdevries@suse.de>
2237
2238 PR ada/24713
2239 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2240 (write_psymbols): Enable .gdb_index for ada.
2241 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2242 ada.
2243
2244 2020-06-10 Tom de Vries <tdevries@suse.de>
2245
2246 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2247 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2248 namei" instead of "const char *name" argument.
2249 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2250 dw2_symtab_iter_init.
2251
2252 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2253
2254 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2255 to use type::field and field::type instead.
2256
2257 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2258
2259 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2260 to use field::type instead.
2261
2262 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2263
2264 * gdbtypes.h (struct field) <type, set_type>: New methods.
2265 Rename `type` field to...
2266 <m_type>: ... this. Change references throughout to use type or
2267 set_type methods.
2268 (FIELD_TYPE): Use field::type. Change call sites that modify
2269 the field's type to use field::set_type instead.
2270
2271 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2272
2273 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2274 to use type::index_type instead.
2275
2276 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2279 methods.
2280 (TYPE_INDEX_TYPE): Use type::index_type.
2281 * gdbtypes.c (create_array_type_with_stride): Likewise.
2282
2283 2020-06-07 Tom Tromey <tom@tromey.com>
2284
2285 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2286 parameter.
2287 (generic_value_print): Update.
2288
2289 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 Revert commit 982a38f60b0.
2292 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2293
2294 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2297 avoid use after free.
2298
2299 2020-06-05 Tom de Vries <tdevries@suse.de>
2300
2301 * NEWS: Fix typos.
2302
2303 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2304
2305 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2306 the per_bfd object.
2307 (dwarf2_read_debug_names): Likewise.
2308 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2309 object when re-using a per_bfd object with an index.
2310
2311 2020-06-03 Tom de Vries <tdevries@suse.de>
2312
2313 PR symtab/26046
2314 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2315 children for C++.
2316 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2317 DW_TAG_subprogram.
2318
2319 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * ada-lang.c (ada_language_data): Delete skip_trampoline
2322 initializer.
2323 * c-lang.c (c_language_data): Likewise.
2324 (cplus_language_data): Likewise.
2325 (cplus_language::skip_trampoline): New member function.
2326 (asm_language_data): Delete skip_trampoline initializer.
2327 (minimal_language_data): Likewise.
2328 * d-lang.c (d_language_data): Likewise.
2329 * f-lang.c (f_language_data): Likewise.
2330 * go-lang.c (go_language_data): Likewise.
2331 * language.c (unk_lang_trampoline): Delete function.
2332 (skip_language_trampoline): Update.
2333 (unknown_language_data): Delete skip_trampoline initializer.
2334 (auto_language_data): Likewise.
2335 * language.h (language_data): Delete skip_trampoline field.
2336 (language_defn::skip_trampoline): New function.
2337 * m2-lang.c (m2_language_data): Delete skip_trampoline
2338 initializer.
2339 * objc-lang.c (objc_skip_trampoline): Delete function, move
2340 implementation to objc_language::skip_trampoline.
2341 (objc_language_data): Delete skip_trampoline initializer.
2342 (objc_language::skip_trampoline): New member function with
2343 implementation from objc_skip_trampoline.
2344 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2345 initializer.
2346 * p-lang.c (pascal_language_data): Likewise.
2347 * rust-lang.c (rust_language_data): Likewise.
2348
2349 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2352 (ada_language::demangle): New member function.
2353 * c-lang.c (c_language_data): Delete la_demangle initializer.
2354 (cplus_language_data): Delete la_demangle initializer.
2355 (cplus_language::demangle): New member function.
2356 (asm_language_data): Delete la_demangle initializer.
2357 (minimal_language_data): Delete la_demangle initializer.
2358 * d-lang.c (d_language_data): Delete la_demangle initializer.
2359 (d_language::demangle): New member function.
2360 * f-lang.c (f_language_data): Delete la_demangle initializer.
2361 (f_language::demangle): New member function.
2362 * go-lang.c (go_language_data): Delete la_demangle initializer.
2363 (go_language::demangle): New member function.
2364 * language.c (language_demangle): Update.
2365 (unk_lang_demangle): Delete.
2366 (unknown_language_data): Delete la_demangle initializer.
2367 (unknown_language::demangle): New member function.
2368 (auto_language_data): Delete la_demangle initializer.
2369 (auto_language::demangle): New member function.
2370 * language.h (language_data): Delete la_demangle field.
2371 (language_defn::demangle): New function.
2372 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2373 * objc-lang.c (objc_language_data): Delete la_demangle
2374 initializer.
2375 (objc_language::demangle): New member function.
2376 * opencl-lang.c (opencl_language_data): Delete la_demangle
2377 initializer.
2378 * p-lang.c (pascal_language_data): Likewise.
2379 * rust-lang.c (rust_language_data): Likewise.
2380 (rust_language::demangle): New member function.
2381
2382 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * ada-lang.c (ada_language_data): Delete la_print_type
2385 initializer.
2386 (ada_language::print_type): New member function.
2387 * c-lang.c (c_language_data): Delete la_print_type initializer.
2388 (c_language::print_type): New member function.
2389 (cplus_language_data): Delete la_print_type initializer.
2390 (cplus_language::print_type): New member function.
2391 (asm_language_data): Delete la_print_type initializer.
2392 (asm_language::print_type): New member function.
2393 (minimal_language_data): Delete la_print_type initializer.
2394 (minimal_language::print_type): New member function.
2395 * d-lang.c (d_language_data): Delete la_print_type initializer.
2396 (d_language::print_type): New member function.
2397 * f-lang.c (f_language_data): Delete la_print_type initializer.
2398 (f_language::print_type): New member function.
2399 * go-lang.c (go_language_data): Delete la_print_type initializer.
2400 (go_language::print_type): New member function.
2401 * language.c (unk_lang_print_type): Delete.
2402 (unknown_language_data): Delete la_print_type initializer.
2403 (unknown_language::print_type): New member function.
2404 (auto_language_data): Delete la_print_type initializer.
2405 (auto_language::print_type): New member function.
2406 * language.h (language_data): Delete la_print_type field.
2407 (language_defn::print_type): New function.
2408 (LA_PRINT_TYPE): Update.
2409 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2410 (m2_language::print_type): New member function.
2411 * objc-lang.c (objc_language_data): Delete la_print_type
2412 initializer.
2413 (objc_language::print_type): New member function.
2414 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2415 to opencl_language::print_type.
2416 (opencl_language_data): Delete la_print_type initializer.
2417 (opencl_language::print_type): New member function, implementation
2418 from opencl_print_type.
2419 * p-lang.c (pascal_language_data): Delete la_print_type
2420 initializer.
2421 (pascal_language::print_type): New member function.
2422 * rust-lang.c (rust_print_type): Delete, implementation moved to
2423 rust_language::print_type.
2424 (rust_language_data): Delete la_print_type initializer.
2425 (rust_language::print_type): New member function, implementation
2426 from rust_print_type.
2427
2428 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2431 implementation moves to...
2432 (ada_language::sniff_from_mangled_name): ...here. Update return
2433 type.
2434 (ada_language_data): Delete la_sniff_from_mangled_name
2435 initializer.
2436 * c-lang.c (c_language_data): Likewise.
2437 (cplus_language_data): Likewise.
2438 (cplus_language::sniff_from_mangled_name): New member function,
2439 implementation taken from gdb_sniff_from_mangled_name.
2440 (asm_language_data): Delete la_sniff_from_mangled_name
2441 initializer.
2442 (minimal_language_data): Likewise.
2443 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2444 implementation moves to cplus_language::sniff_from_mangled_name.
2445 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2446 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2447 moves to...
2448 (d_language::sniff_from_mangled_name): ...here.
2449 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2450 * f-lang.c (f_language_data): Likewise.
2451 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2452 moves to...
2453 (go_language::sniff_from_mangled_name): ...here.
2454 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2455 * language.c (language_sniff_from_mangled_name): Delete.
2456 (unknown_language_data): Delete la_sniff_from_mangled_name
2457 initializer.
2458 (auto_language_data): Likewise.
2459 * language.h (language_data): Delete la_sniff_from_mangled_name
2460 field.
2461 (language_defn::sniff_from_mangled_name): New function.
2462 (language_sniff_from_mangled_name): Delete declaration.
2463 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2464 field.
2465 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2466 implementation moves to...
2467 (objc_language::sniff_from_mangled_name): ...here.
2468 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2469 * opencl-lang.c (opencl_language_data): Likewise.
2470 * p-lang.c (pascal_language_data): Likewise.
2471 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2472 implementation moves to...
2473 (rust_language::sniff_from_mangled_name): ...here.
2474 (rust_language_data): Delete la_sniff_from_mangled_name
2475 initializer.
2476 * symtab.c (symbol_find_demangled_name): Call
2477 sniff_from_mangled_name member function.
2478
2479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2482 initializer.
2483 * c-lang.c (c_language_data): Likewise.
2484 (cplus_language_data): Likewise.
2485 (cplus_language::search_name_hash): New member function.
2486 (asm_language_data): Delete la_search_name_hash initializer.
2487 (minimal_language_data): Likewise.
2488 * d-lang.c (d_language_data): Likewise.
2489 * dictionary.c (default_search_name_hash): Rename to...
2490 (language_defn::search_name_hash): ...this.
2491 * f-lang.c (f_language_data): Likewise.
2492 (f_language::search_name_hash): New member function.
2493 * go-lang.c (go_language_data): Delete la_search_name_hash
2494 initializer.
2495 * language.c (unknown_language_data): Likewise.
2496 (auto_language_data): Likewise.
2497 * language.h (struct language_data): Delete la_search_name_hash
2498 field.
2499 (language_defn::search_name_hash): Declare new member function.
2500 (default_search_name_hash): Delete declaration.
2501 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2502 initializer.
2503 * objc-lang.c (objc_language_data): Likewise.
2504 * opencl-lang.c (opencl_language_data): Likewise.
2505 * p-lang.c (pascal_language_data): Likewise.
2506 * rust-lang.c (rust_language_data): Likewise.
2507 * symtab.c (search_name_hash): Update call.
2508
2509 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2512 initializer.
2513 * c-lang.c (class compile_instance): Declare.
2514 (c_language_data): Delete la_get_compile_instance initializer.
2515 (c_language::get_compile_instance): New member function.
2516 (cplus_language_data): Delete la_get_compile_instance initializer.
2517 (cplus_language::get_compile_instance): New member function.
2518 (asm_language_data): Delete la_get_compile_instance initializer.
2519 (minimal_language_data): Likewise.
2520 * c-lang.h (c_get_compile_context): Update comment.
2521 (cplus_get_compile_context): Update comment.
2522 * compile/compile.c (compile_to_object): Update calls, don't rely
2523 on function pointer being NULL.
2524 * d-lang.c (d_language_data): Delete la_get_compile_instance
2525 initializer.
2526 * f-lang.c (f_language_data): Likewise.
2527 * go-lang.c (go_language_data): Likewise.
2528 * language.c (unknown_language_data): Likewise.
2529 (auto_language_data): Likewise.
2530 * language.h (language_data): Delete la_get_compile_instance field.
2531 (language_defn::get_compile_instance): New member function.
2532 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2533 initializer.
2534 * objc-lang.c (objc_language_data): Likewise.
2535 * opencl-lang.c (opencl_language_data): Likewise.
2536 * p-lang.c (pascal_language_data): Likewise.
2537 * rust-lang.c (rust_language_data): Likewise.
2538
2539 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_add_all_symbols): Update comment.
2542 (ada_iterate_over_symbols): Delete, move implementation to...
2543 (ada_language::iterate_over_symbols): ...here, a new member
2544 function, rewrite to use range based for loop.
2545 (ada_language_data): Delete la_iterate_over_symbols initializer.
2546 * c-lang.c (c_language_data): Likewise.
2547 (cplus_language_data): Likewise.
2548 (asm_language_data): Likewise.
2549 (minimal_language_data): Likewise.
2550 * d-lang.c (d_language_data): Likewise.
2551 * f-lang.c (f_language_data): Likewise.
2552 * go-lang.c (go_language_data): Likewise.
2553 * language.c (unknown_language_data): Likewise.
2554 (auto_language_data): Likewise.
2555 * language.h (language_data): Delete la_iterate_over_symbols field.
2556 (language_defn::iterate_over_symbols): New member function.
2557 (LA_ITERATE_OVER_SYMBOLS): Update.
2558 * linespec.c (iterate_over_all_matching_symtabs): Update.
2559 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2560 initializer.
2561 * objc-lang.c (objc_language_data): Likewise.
2562 * opencl-lang.c (opencl_language_data): Likewise.
2563 * p-lang.c (pascal_language_data): Likewise.
2564 * rust-lang.c (rust_language_data): Likewise.
2565
2566 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * ada-lang.c (ada_language_data): Delete
2569 la_lookup_transparent_type initializer.
2570 * c-lang.c (c_language_data): Likewise.
2571 (cplus_language_data): Likewise.
2572 (cplus_language::lookup_transparent_type): New member function.
2573 (asm_language_data): Delete la_lookup_transparent_type
2574 initializer.
2575 (minimal_language_data): Likewise.
2576 * d-lang.c (d_language_data): Likewise.
2577 * f-lang.c (f_language_data): Likewise.
2578 * go-lang.c (go_language_data): Likewise.
2579 * language.c (unknown_language_data): Likewise.
2580 (auto_language_data): Likewise.
2581 * language.h (struct language_data): Delete
2582 la_lookup_transparent_type field.
2583 (language_defn::lookup_transparent_type): New member function.
2584 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2585 initializer.
2586 * objc-lang.c (objc_language_data): Likewise.
2587 * opencl-lang.c (opencl_language_data): Likewise.
2588 * p-lang.c (pascal_language_data): Likewise.
2589 * rust-lang.c (rust_language_data): Likewise.
2590 * symtab.c (symbol_matches_domain): Update call.
2591
2592 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * ada-lang.c (ada_language_arch_info): Delete function, move
2595 implementation to...
2596 (ada_language::language_arch_info): ...here, a new member
2597 function.
2598 (ada_language_data): Delete la_language_arch_info.
2599 * c-lang.c (c_language_data): Likewise.
2600 (c_language::language_arch_info): New member function.
2601 (cplus_language_arch_info): Delete function, move
2602 implementation to...
2603 (cplus_language::language_arch_info): ...here, a new member
2604 function.
2605 (cplus_language_data): Delete la_language_arch_info.
2606 (asm_language_data): Likewise.
2607 (asm_language::language_arch_info): New member function.
2608 (minimal_language_data): Delete la_language_arch_info.
2609 (minimal_language::language_arch_info): New member function.
2610 * d-lang.c (d_language_arch_info): Delete function, move
2611 implementation to...
2612 (d_language::language_arch_info): ...here, a new member
2613 function.
2614 (d_language_data): Delete la_language_arch_info.
2615 * f-lang.c (f_language_arch_info): Delete function, move
2616 implementation to...
2617 (f_language::language_arch_info): ...here, a new member
2618 function.
2619 (f_language_data): Delete la_language_arch_info.
2620 * go-lang.c (go_language_arch_info): Delete function, move
2621 implementation to...
2622 (go_language::language_arch_info): ...here, a new member
2623 function.
2624 (go_language_data): Delete la_language_arch_info.
2625 * language.c (unknown_language_data): Likewise.
2626 (unknown_language::language_arch_info): New member function.
2627 (auto_language_data): Delete la_language_arch_info.
2628 (auto_language::language_arch_info): New member function.
2629 (language_gdbarch_post_init): Update call to
2630 la_language_arch_info.
2631 * language.h (language_data): Delete la_language_arch_info
2632 function pointer.
2633 (language_defn::language_arch_info): New function.
2634 * m2-lang.c (m2_language_arch_info): Delete function, move
2635 implementation to...
2636 (m2_language::language_arch_info): ...here, a new member
2637 function.
2638 (m2_language_data): Delete la_language_arch_info.
2639 * objc-lang.c (objc_language_arch_info): Delete function, move
2640 implementation to...
2641 (objc_language::language_arch_info): ...here, a new member
2642 function.
2643 (objc_language_data): Delete la_language_arch_info.
2644 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2645 implementation to...
2646 (opencl_language::language_arch_info): ...here, a new member
2647 function.
2648 (opencl_language_data): Delete la_language_arch_info.
2649 * p-lang.c (pascal_language_arch_info): Delete function, move
2650 implementation to...
2651 (pascal_language::language_arch_info): ...here, a new member
2652 function.
2653 (pascal_language_data): Delete la_language_arch_info.
2654 * rust-lang.c (rust_language_arch_info): Delete function, move
2655 implementation to...
2656 (rust_language::language_arch_info): ...here, a new member
2657 function.
2658 (rust_language_data): Delete la_language_arch_info.
2659
2660 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2663 initializer.
2664 * c-lang.c (c_language_data): Likewise.
2665 (cplus_language_data): Likewise.
2666 (cplus_language::pass_by_reference_info): New method.
2667 (asm_language_data): Delete la_pass_by_reference initializer.
2668 (minimal_language_data): Likewise.
2669 * cp-abi.c (cp_pass_by_reference): Remove use of
2670 default_pass_by_reference.
2671 * d-lang.c (d_language_data): Likewise.
2672 * f-lang.c (f_language_data): Likewise.
2673 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2674 default_pass_by_reference.
2675 * go-lang.c (go_language_data): Likewise.
2676 * language.c (language_pass_by_reference): Update.
2677 (default_pass_by_reference): Delete.
2678 (unknown_language_data): Delete la_pass_by_reference
2679 initializer.
2680 (auto_language_data): Likewise.
2681 * language.h (struct language_data): Delete la_pass_by_reference
2682 field.
2683 (language_defn::pass_by_reference_info): New member function.
2684 (default_pass_by_reference): Delete declaration.
2685 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2686 initializer.
2687 * objc-lang.c (objc_language_data): Likewise.
2688 * opencl-lang.c (opencl_language_data): Likewise.
2689 * p-lang.c (pascal_language_data): Likewise.
2690 * rust-lang.c (rust_language_data): Likewise.
2691
2692 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * ada-lang.c (ada_read_var_value): Delete function, move
2695 implementation to...
2696 (ada_language::read_var_value): ...here.
2697 (ada_language_data): Delete la_read_var_value initializer.
2698 * c-lang.c (c_language_data): Likewise.
2699 (cplus_language_data): Likewise.
2700 (minimal_language_data): Likewise.
2701 * d-lang.c (d_language_data): Likewise.
2702 * f-lang.c (f_language_data): Likewise.
2703 * findvar.c (default_read_var_value): Rename to...
2704 (language_defn::read_var_value): ...this.
2705 * findvar.c (read_var_value): Update header comment, and change to
2706 call member function instead of function pointer.
2707 * go-lang.c (go_language_data): Likewise.
2708 * language.c (unknown_language_data): Delete la_read_var_value
2709 initializer.
2710 (auto_language_data): Likewise.
2711 * language.h (struct language_data): Delete la_read_var_value
2712 field.
2713 (language_defn::read_var_value): New member function.
2714 (default_read_var_value): Delete declaration.
2715 * m2-lang.c (m2_language_data): Delete la_read_var_value
2716 initializer.
2717 * objc-lang.c (objc_language_data): Likewise.
2718 * opencl-lang.c (opencl_language_data): Likewise.
2719 * p-lang.c (pascal_language_data): Likewise.
2720 * rust-lang.c (rust_language_data): Likewise.
2721 * value.h (default_read_var_value): Delete declaration.
2722
2723 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * ada-lang.c (ada_print_array_index): Delete function, move
2726 implementation to...
2727 (ada_language::print_array_index): ...here.
2728 (ada_language_data): Delete la_print_array_index initializer.
2729 * c-lang.c (c_language_data): Likewise.
2730 (cplus_language_data): Likewise.
2731 (minimal_language_data): Likewise.
2732 * d-lang.c (d_language_data): Likewise.
2733 * f-lang.c (f_language_data): Likewise.
2734 * go-lang.c (go_language_data): Likewise.
2735 * language.c (default_print_array_index): Delete function, move
2736 implementation to...
2737 (language_defn::print_array_index): ...here.
2738 (unknown_language_data): Delete la_print_array_index initializer.
2739 (auto_language_data): Likewise.
2740 * language.h (struct language_data): Delete la_print_array_index
2741 field.
2742 (language_defn::print_array_index): New member function.
2743 (LA_PRINT_ARRAY_INDEX): Update.
2744 (default_print_array_index): Delete declaration.
2745 * m2-lang.c (m2_language_data): Delete la_print_array_index
2746 initializer.
2747 * objc-lang.c (objc_language_data): Likewise.
2748 * opencl-lang.c (opencl_language_data): Likewise.
2749 * p-lang.c (pascal_language_data): Likewise.
2750 * rust-lang.c (rust_language_data): Likewise.
2751
2752 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * gdb/ada-lang.c (ada_language_defn): Convert to...
2755 (ada_language_data): ...this.
2756 (class ada_language): New class.
2757 (ada_language_defn): New static global.
2758 * gdb/c-lang.c (c_language_defn): Convert to...
2759 (c_language_data): ...this.
2760 (class c_language): New class.
2761 (c_language_defn): New static global.
2762 (cplus_language_defn): Convert to...
2763 (cplus_language_data): ...this.
2764 (class cplus_language): New class.
2765 (cplus_language_defn): New static global.
2766 (asm_language_defn): Convert to...
2767 (asm_language_data): ...this.
2768 (class asm_language): New class.
2769 (asm_language_defn): New static global.
2770 (minimal_language_defn): Convert to...
2771 (minimal_language_data): ...this.
2772 (class minimal_language): New class.
2773 (minimal_language_defn): New static global.
2774 * gdb/d-lang.c (d_language_defn): Convert to...
2775 (d_language_data): ...this.
2776 (class d_language): New class.
2777 (d_language_defn): New static global.
2778 * gdb/f-lang.c (f_language_defn): Convert to...
2779 (f_language_data): ...this.
2780 (class f_language): New class.
2781 (f_language_defn): New static global.
2782 * gdb/go-lang.c (go_language_defn): Convert to...
2783 (go_language_data): ...this.
2784 (class go_language): New class.
2785 (go_language_defn): New static global.
2786 * gdb/language.c (unknown_language_defn): Remove declaration.
2787 (current_language): Initialize to nullptr, real initialization is
2788 moved to _initialize_language.
2789 (languages): Delete global.
2790 (language_defn::languages): Define.
2791 (set_language_command): Use language_defn::languages.
2792 (set_language): Likewise.
2793 (range_error): Likewise.
2794 (language_enum): Likewise.
2795 (language_def): Likewise.
2796 (add_set_language_command): Use language_def::languages for the
2797 language list, and language_def to lookup language pointers.
2798 (skip_language_trampoline): Use language_defn::languages.
2799 (unknown_language_defn): Convert to...
2800 (unknown_language_data): ...this.
2801 (class unknown_language): New class.
2802 (unknown_language_defn): New static global.
2803 (auto_language_defn): Convert to...
2804 (auto_language_data): ...this.
2805 (class auto_language): New class.
2806 (auto_language_defn): New static global.
2807 (language_gdbarch_post_init): Use language_defn::languages.
2808 (_initialize_language): Initialize current_language.
2809 * gdb/language.h (struct language_defn): Rename to...
2810 (struct language_data): ...this.
2811 (struct language_defn): New.
2812 (auto_language_defn): Delete.
2813 (unknown_language_defn): Delete.
2814 (minimal_language_defn): Delete.
2815 (ada_language_defn): Delete.
2816 (asm_language_defn): Delete.
2817 (c_language_defn): Delete.
2818 (cplus_language_defn): Delete.
2819 (d_language_defn): Delete.
2820 (f_language_defn): Delete.
2821 (go_language_defn): Delete.
2822 (m2_language_defn): Delete.
2823 (objc_language_defn): Delete.
2824 (opencl_language_defn): Delete.
2825 (pascal_language_defn): Delete.
2826 (rust_language_defn): Delete.
2827 * gdb/m2-lang.c (m2_language_defn): Convert to...
2828 (m2_language_data): ...this.
2829 (class m2_language): New class.
2830 (m2_language_defn): New static global.
2831 * gdb/objc-lang.c (objc_language_defn): Convert to...
2832 (objc_language_data): ...this.
2833 (class objc_language): New class.
2834 (objc_language_defn): New static global.
2835 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2836 (opencl_language_data): ...this.
2837 (class opencl_language): New class.
2838 (opencl_language_defn): New static global.
2839 * gdb/p-lang.c (pascal_language_defn): Convert to...
2840 (pascal_language_data): ...this.
2841 (class pascal_language): New class.
2842 (pascal_language_defn): New static global.
2843 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2844 language pointer, update comment format.
2845 * gdb/rust-lang.c (rust_language_defn): Convert to...
2846 (rust_language_data): ...this.
2847 (class rust_language): New class.
2848 (rust_language_defn): New static global.
2849
2850 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2851
2852 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2853 member variable.
2854 <m_stmt_at_address>: New member variable.
2855 (lnp_state_machine::record_line): Don't record some lines, update
2856 tracking of is_stmt at the same address.
2857 (lnp_state_machine::lnp_state_machine): Initialise new member
2858 variables.
2859
2860 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2861
2862 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2863 "-include gnu-nat-mig.h".
2864 * gnu-nat-mig.h: New file.
2865 * gnu-nat.c: Include "gnu-nat-mig.h".
2866 (exc_server, msg_reply_server, notify_server,
2867 process_reply_server): Remove declarations.
2868
2869 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2870
2871 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2872 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2873 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2874 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2875 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2876 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2877 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2878 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2879 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2880 to gnu_nat_target class.
2881 * gnu-nat.c: Likewise.
2882 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2883 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2884 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2885 object.
2886 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2887 instead of `gnu_target'.
2888
2889 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2890
2891 * i386-gnu-tdep.c: Include "gdbcore.h"
2892 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2893 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2894 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2895 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2896 i386_gnu_sigcontext_addr): New functions
2897 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2898 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2899 tdep.
2900
2901 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2902
2903 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2904 before fork_inferior call. Avoid calling it if target_is_pushed returns
2905 true.
2906
2907 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2908
2909 * gnu-nat.h (gnu_target): New variable declaration.
2910 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2911 gnu_target.
2912 * gnu-nat.c (gnu_target): New variable.
2913 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2914 add_thread_silent, and add_thread calls.
2915 (gnu_nat_target::create_inferior): Pass gnu_target to
2916 add_thread_silent, thread_change_ptid call.
2917 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2918 call.
2919
2920 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2921
2922 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2923 (gnu_nat_target::find_memory_regions): Remove unused
2924 `old_address' variable.
2925
2926 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2927
2928 * gnu-nat.c: Include "gdbarch.h".
2929
2930 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2931
2932 * reply_mig_hack.awk (Error return): Cast function through
2933 void *, to bypass compiler function call check.
2934
2935 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2936
2937 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2938 $(srcdir)/reply_mig_hack.awk.
2939
2940 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2941
2942 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2943
2944 2020-05-30 Jonny Grant <jg@jguk.org>
2945
2946 * configure.ac (ACX_BUGURL): change bug URL to https.
2947
2948 2020-05-30 Pedro Alves <palves@redhat.com>
2949
2950 * cp-support.c (replace_typedefs_template): New.
2951 (replace_typedefs_qualified_name): Handle
2952 DEMANGLE_COMPONENT_TEMPLATE.
2953
2954 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2957 dwarf2/index-cache.h, dwarf2/index-write.c,
2958 dwarf2/index-write.h, dwarf2/line-header.c,
2959 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2960 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2961 variables and fields from `dwarf2_per_objfile` to just
2962 `per_objfile` throughout.
2963
2964 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2967 <push_dwarf_reg_entry_value>: Add comment.
2968
2969 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2970 Keith Seitz <keiths@redhat.com>
2971
2972 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2973 instead of PyEval_ReleaseLock.
2974 (class gdbpy_gil): Move to earlier in file.
2975 (finalize_python): Set gdb_python_initialized.
2976 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2977 when not initialized.
2978
2979 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2982 <push_dwarf_reg_entry_value>: Remove assert. Override
2983 per_objfile with caller_per_objfile.
2984
2985 2020-05-28 Tom de Vries <tdevries@suse.de>
2986
2987 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2988 PR gold/15646 workaround to symbol kind "type".
2989
2990 2020-05-27 Tom Tromey <tromey@adacore.com>
2991
2992 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2993
2994 2020-05-27 Tom Tromey <tromey@adacore.com>
2995
2996 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2997 Use htab_find_with_hash.
2998 <add_abbrev>: Remove "abbrev_number" parameter.
2999 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3000 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3001 (hash_abbrev): Add comment.
3002 (abbrev_table::lookup_abbrev): Move to header file.
3003 (abbrev_table::read): Update.
3004
3005 2020-05-27 Tom Tromey <tromey@adacore.com>
3006
3007 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3008 method.
3009 <canonical_name>: New member.
3010 <raw_name>: Rename from "name".
3011 (partial_die_info): Initialize canonical_name.
3012 (scan_partial_symbols): Check raw_name.
3013 (partial_die_parent_scope, partial_die_full_name)
3014 (add_partial_symbol, add_partial_subprogram)
3015 (add_partial_enumeration, load_partial_dies): Use "name" method.
3016 (partial_die_info::name): New method.
3017 (partial_die_info::read, guess_partial_die_structure_name)
3018 (partial_die_info::fixup): Update.
3019
3020 2020-05-27 Tom Tromey <tromey@adacore.com>
3021
3022 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3023 <get_ref_die_offset>: Inline.
3024 <get_ref_die_offset_complaint>: New method.
3025 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3026 (attribute::get_ref_die_offset_complaint): Rename from
3027 get_ref_die_offset. Just issue complaint.
3028
3029 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3030
3031 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3032
3033 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3034
3035 * exec.c (exec_file_attach): Use errno value of first openp failure.
3036
3037 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3038
3039 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3040 Don't close thread handle.
3041
3042 2020-05-27 Tom Tromey <tom@tromey.com>
3043 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3046 shared_ptr.
3047 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3048 member.
3049 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3050 dwarf2_per_bfd_objfile_data_key>: New globals.
3051 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3052 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3053 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3054 shared.
3055 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3056 short-circuit when sharing.
3057 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3058 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3059
3060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3061
3062 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3063 to...
3064 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3065 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3066
3067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3070 build_name_components, find_name_components_bounds>:
3071 Add per_objfile parameter.
3072 (struct mapped_index) <symbol_name_at>: Likewise.
3073 (struct mapped_debug_names): Remove constructor.
3074 <dwarf2_per_objfile>: Remove field.
3075 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3076 (mapped_index_base::find_name_components_bounds,
3077 mapped_index_base::build_name_components,
3078 dw2_expand_symtabs_matching_symbol): Likewise.
3079 (class mock_mapped_index) <symbol_name_at>: Likewise.
3080 (check_match): Likewise.
3081 (check_find_bounds_finds): Likewise.
3082 (test_mapped_index_find_name_component_bounds): Update.
3083 (CHECK_MATCH): Update.
3084 (dw2_expand_symtabs_matching): Update.
3085 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3086 per_objfile parameter.
3087 <find_vec_in_debug_names>: Likewise.
3088 <m_per_objfile>: New field.
3089 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3090 parameter.
3091 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3092 (dw2_debug_names_iterator::next): Update.
3093 (dw2_debug_names_lookup_symbol): Update.
3094 (dw2_debug_names_expand_symtabs_for_function): Update.
3095 (dw2_debug_names_map_matching_symbols): Update.
3096 (dw2_debug_names_expand_symtabs_matching): Update.
3097 (dwarf2_read_debug_names): Update.
3098
3099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3100
3101 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3102 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3103 move to dwarf2_per_objfile.
3104 <read_in_chain>: Remove.
3105 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3106 remove_all_cus, age_comp_units>: New methods.
3107 <m_dwarf2_cus>: New member.
3108 (struct dwarf2_per_cu_data) <cu>: Remove.
3109 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3110 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3111 moved to methods of dwarf2_per_objfile.
3112 (dwarf2_clear_marks): Remove.
3113 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3114 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3115 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3116 (dwarf2_per_objfile::remove_all_cus): New.
3117 (class free_cached_comp_units) <~free_cached_comp_units>:
3118 Update.
3119 (load_cu): Update.
3120 (dw2_do_instantiate_symtab): Adjust.
3121 (fill_in_sig_entry_from_dwo_entry): Adjust.
3122 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3123 (cutu_reader::cutu_reader): Likewise.
3124 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3125 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3126 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3127 and dwarf2_per_objfile::age_comp_units.
3128 (load_partial_comp_unit): Update.
3129 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3130 (process_queue): Likewise.
3131 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3132 backlink.
3133 (dwarf2_read_addr_index): Likewise.
3134 (follow_die_offset): Likewise.
3135 (dwarf2_fetch_die_loc_sect_off): Likewise.
3136 (dwarf2_fetch_constant_bytes): Likewise.
3137 (dwarf2_fetch_die_type_sect_off): Likewise.
3138 (follow_die_sig_1): Likewise.
3139 (load_full_type_unit): Likewise.
3140 (read_signatured_type): Likewise.
3141 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3142 (dwarf2_cu::~dwarf2_cu): Remove.
3143 (dwarf2_per_objfile::get_cu): New.
3144 (dwarf2_per_objfile::set_cu): New.
3145 (age_cached_comp_units): Rename to...
3146 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3147 to std::unordered_map.
3148 (free_one_cached_comp_unit): Rename to...
3149 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3150 to std::unordered_map.
3151 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3152 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3153 a dwarf2_per_objfile in data.
3154 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3155 (dwarf2_clear_marks): Remove.
3156
3157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3160 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3161 (init_tu_and_read_dwo_dies): Likewise.
3162 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3163 (cutu_reader::cutu_reader): Likewise.
3164 (load_partial_comp_unit): Likewise.
3165 (process_psymtab_comp_unit): Update.
3166 (build_type_psymtabs_1): Update.
3167 (process_skeletonless_type_unit): Update.
3168 (load_full_comp_unit): Update.
3169 (find_partial_die): Update.
3170 (dwarf2_read_addr_index): Update.
3171 (read_signatured_type): Update.
3172
3173 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3174
3175 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3176 m_header_read_in>: New fields.
3177 <get_header>: New method.
3178 * dwarf2/read.c (per_cu_header_read_in): Remove.
3179 (dwarf2_per_cu_data::get_header): New.
3180 (dwarf2_per_cu_data::addr_size): Update.
3181 (dwarf2_per_cu_data::offset_size): Update.
3182 (dwarf2_per_cu_data::ref_addr_size): Update.
3183
3184 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3187 (dw2_do_instantiate_symtab): Update.
3188 (queue_and_load_all_dwo_tus): Change parameter from
3189 dwarf2_per_cu_data to dwarf2_cu.
3190 (dwarf2_fetch_die_loc_sect_off): Update.
3191 (dwarf2_fetch_constant_bytes): Update.
3192 (dwarf2_fetch_die_type_sect_off): Update.
3193
3194 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * dwarf2/read.c (process_full_comp_unit,
3197 process_full_type_unit): Remove per_cu, per_objfile paramters.
3198 Add dwarf2_cu parameter.
3199 (process_queue): Update.
3200
3201 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * dwarf2/read.c (create_cu_from_index_list): Replace
3204 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3205 (create_cus_from_index_list): Likewise.
3206 (create_cus_from_index): Likewise.
3207 (create_signatured_type_table_from_index): Likewise.
3208 (create_cus_from_debug_names_list): Likewise.
3209 (create_cus_from_debug_names): Likewise.
3210 (dwarf2_read_gdb_index): Update.
3211 (dwarf2_read_debug_names): Update.
3212
3213 2020-05-27 Tom Tromey <tom@tromey.com>
3214 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * dwarf2/read.h (struct dwarf2_per_objfile)
3217 <get_type_for_signatured_type, set_type_for_signatured_type>:
3218 New methods.
3219 <m_type_map>: New member.
3220 (struct signatured_type) <type>: Remove.
3221 * dwarf2/read.c
3222 (dwarf2_per_objfile::get_type_for_signatured_type,
3223 dwarf2_per_objfile::set_type_for_signatured_type): New.
3224 (get_signatured_type): Use new methods.
3225
3226 2020-05-27 Tom Tromey <tom@tromey.com>
3227 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3230 (struct dwarf2_per_objfile) <type_units>: New member.
3231 <get_type_unit_group_unshareable>: New method.
3232 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3233 num_symtabs, symtabs>: Remove; move to
3234 type_unit_group_unshareable.
3235 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3236 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3237 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3238
3239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * dwarf2/read.h (struct dwarf2_per_cu_data):
3242 <dwarf2_per_objfile>: Remove.
3243 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3244 dwarf2_per_objfile.
3245 (create_signatured_type_table_from_index): Likewise.
3246 (create_signatured_type_table_from_debug_names): Likewise.
3247 (create_debug_type_hash_table): Likewise.
3248 (fill_in_sig_entry_from_dwo_entry): Likewise.
3249 (create_type_unit_group): Likewise.
3250 (read_comp_units_from_section): Likewise.
3251 (create_cus_hash_table): Likewise.
3252
3253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3256 dwarf2_per_cu_data::dwarf2_per_objfile.
3257 (compute_compunit_symtab_includes): Likewise.
3258 (dwarf2_cu::start_symtab): Likewise.
3259
3260 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3261
3262 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3263 parameter.
3264 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3265 (read_namespace_alias): Update.
3266 (lookup_die_type): Update.
3267 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3269 Update.
3270 (disassemble_dwarf_expression): Update.
3271
3272 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * dwarf2/read.h (struct dwarf2_queue_item): Add
3275 dwarf2_per_objfile parameter, assign new parameter.
3276 <per_objfile>: New field.
3277 * dwarf2/read.c (free_one_cached_comp_unit): Add
3278 dwarf2_per_objfile parameter.
3279 (queue_comp_unit): Likewise.
3280 (dw2_do_instantiate_symtab): Update.
3281 (process_psymtab_comp_unit): Update.
3282 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3283 (process_imported_unit_die): Update.
3284 (queue_and_load_dwo_tu): Update.
3285 (follow_die_offset): Update.
3286 (follow_die_sig_1): Update.
3287
3288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3291 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3292 (read_call_site_scope): Assign per_objfile.
3293 (dwarf2_per_cu_data::objfile): Remove.
3294 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3295 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3296 dwarf2_per_objfile parameter.
3297 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3298 dwarf2_per_objfile parameter.
3299 (dwarf_expr_reg_to_entry_parameter): Add output
3300 dwarf2_per_objfile parameter.
3301 (locexpr_get_frame_base): Update.
3302 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3303 <push_dwarf_reg_entry_value>: Update.
3304 <call_site_to_target_addr>: Update.
3305 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3306 parameter.
3307 (value_of_dwarf_reg_entry): Update.
3308 (rw_pieced_value): Update.
3309 (indirect_synthetic_pointer): Update.
3310 (dwarf2_evaluate_property): Update.
3311 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3312 parameter.
3313 (locexpr_read_variable): Update.
3314 (locexpr_get_symbol_read_needs): Update.
3315 (loclist_read_variable): Update.
3316
3317 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3320 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3321 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3322 parameter.
3323 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3324 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3325 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3326 parameter.
3327 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3328 sect_variable_value): Add dwarf2_per_objfile parameter.
3329 (class dwarf_evaluate_loc_desc) <dwarf_call,
3330 dwarf_variable_value>: Update.
3331 (fetch_const_value_from_synthetic_pointer): Add
3332 dwarf2_per_objfile parameter.
3333 (fetch_const_value_from_synthetic_pointer): Update.
3334 (coerced_pieced_ref): Update.
3335 (class symbol_needs_eval_context) <dwarf_call,
3336 dwarf_variable_value>: Update.
3337 (dwarf2_compile_expr_to_ax): Update.
3338
3339 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3342 parameter.
3343 (dwarf2_evaluate_loc_desc_full): Update.
3344
3345 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3348 parameter.
3349 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3350 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3351 dwarf2_per_objfile parameter.
3352 (decode_debug_loc_dwo_addresses): Likewise.
3353 (dwarf2_find_location_expression): Update.
3354 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3355 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3356 parameter.
3357 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3358 parameter.
3359 (locexpr_describe_location_1): Likewise.
3360 (locexpr_describe_location): Update.
3361
3362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3365 Remove.
3366 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3367 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3368 (dwarf2_compile_property_to_c): Update.
3369 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3370 use text offset from objfile.
3371 (locexpr_tracepoint_var_ref): Update.
3372 (locexpr_generate_c_location): Update.
3373 (loclist_describe_location): Update.
3374 (loclist_tracepoint_var_ref): Update.
3375 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3376 dwarf2_per_objfile parameter.
3377 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3378 use text offset from objfile.
3379 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3380
3381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/expr.h (struct dwarf_expr_context)
3384 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3385 <offset>: Remove.
3386 <per_objfile>: New member.
3387 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3388 dwarf2_per_objfile parameter. Don't set offset, set
3389 per_objfile.
3390 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3391 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3392 a dwarf2_per_objfile object instead of an offset.
3393 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3394 constructor.
3395 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3396 to dwarf2_expr_executor constructor. Don't set offset.
3397 (dwarf2_fetch_cfa_info): Update.
3398 (struct dwarf2_frame_cache) <text_offset>: Remove.
3399 <per_objfile>: New field.
3400 (dwarf2_frame_cache): Update.
3401 (dwarf2_frame_prev_register): Update.
3402 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3403 <dwarf_evaluate_loc_desc>: Add constructor.
3404 (dwarf2_evaluate_loc_desc_full): Update.
3405 (dwarf2_locexpr_baton_eval): Update.
3406 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3407 Add constructor.
3408 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3409
3410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3413 addr_sized_int_type>: Move to dwarf2_cu.
3414 <int_type>: Move to dwarf2_per_objfile.
3415 (struct dwarf2_per_objfile) <int_type>: Move here.
3416 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3417 addr_sized_int_type>: Move here.
3418 (read_func_scope): Update.
3419 (read_array_type): Update.
3420 (read_tag_string_type): Update.
3421 (attr_to_dynamic_prop): Update.
3422 (dwarf2_per_cu_data::int_type): Rename to...
3423 (dwarf2_per_objfile::int_type): ... this.
3424 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3425 (dwarf2_cu::addr_sized_int_type): ... this.
3426 (read_subrange_type): Update.
3427 (dwarf2_per_cu_data::addr_type): Rename to...
3428 (dwarf2_cu::addr_type): ... this.
3429 (set_die_type): Update.
3430
3431 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3434 data through per_cu->cu.
3435
3436 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3439 dwarf2_per_cu_data parameter fo dwarf2_cu.
3440 (lookup_dwo_type_unit): Likewise.
3441 (read_cutu_die_from_dwo): Likewise.
3442 (lookup_dwo_unit): Likewise.
3443 (open_and_init_dwo_file): Likewise.
3444 (lookup_dwo_cutu): Likewise.
3445 (lookup_dwo_comp_unit): Likewise.
3446 (lookup_dwo_type_unit): Likewise.
3447 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3448 (cutu_reader::cutu_reader): Update.
3449
3450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3453 parameter.
3454 (process_full_type_unit): Likewise.
3455 (process_queue): Update.
3456
3457 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * dwarf2/read.c (recursively_compute_inclusions): Add
3460 dwarf2_per_objfile parameter.
3461 (compute_compunit_symtab_includes): Likewise.
3462 (process_cu_includes): Update.
3463
3464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3467 parameter.
3468 (create_type_unit_group): Update.
3469 (process_psymtab_comp_unit_reader): Update.
3470 (build_type_psymtabs_reader): Update.
3471
3472 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3475 object through m_this_cu->cu.
3476
3477 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3480 the info parameter.
3481 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3482
3483 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3486 per_objfile parameter.
3487 (load_full_type_unit): Add per_objfile parameter.
3488 (read_signatured_type): Likewise.
3489 (load_full_comp_unit): Likewise.
3490 (load_cu): Likewise.
3491 (dw2_do_instantiate_symtab): Likewise.
3492 (dw2_get_file_names): Likewise.
3493 (dw2_map_symtabs_matching_filename): Update.
3494 (dw_expand_symtabs_matching_file_matcher): Update.
3495 (dw2_map_symbol_filenames): Update.
3496 (process_psymtab_comp_unit): Add per_objfile parameter.
3497 (build_type_psymtabs_1): Update.
3498 (process_skeletonless_type_unit): Update.
3499 (dwarf2_build_psymtabs_hard): Update.
3500 (load_partial_comp_unit): Add per_objfile parameter.
3501 (scan_partial_symbols): Update.
3502 (load_full_comp_unit): Add per_objfile parameter.
3503 (process_imported_unit_die): Update.
3504 (create_cus_hash_table): Update.
3505 (find_partial_die): Update.
3506 (dwarf2_read_addr_index): Update.
3507 (follow_die_offset): Update.
3508 (dwarf2_fetch_die_loc_sect_off): Update.
3509 (dwarf2_fetch_constant_bytes): Update.
3510 (dwarf2_fetch_die_type_sect_off): Update.
3511 (follow_die_sig_1): Update.
3512 (load_full_type_unit): Add per_objfile parameter.
3513 (read_signatured_type): Likewise.
3514
3515 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3518 of objfile_name.
3519
3520 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3521
3522 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3523 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3524 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3525 field.
3526 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3527 (create_cus_from_index): Update.
3528 (dwarf2_read_gdb_index): Update.
3529 (create_cus_from_debug_names): Update.
3530 (dwarf2_read_debug_names): Update.
3531 (get_abbrev_section_for_cu): Update.
3532 (create_all_comp_units): Update.
3533 (read_attribute_value): Update.
3534 (get_debug_line_section): Update.
3535 * dwarf2/index-cache.c (index_cache::store): Update.
3536 * dwarf2/index-write.c (save_gdb_index_command): Update.
3537 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3538
3539 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3542 member.
3543 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3544 dwarf2_per_cu_data::per_bfd.
3545 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3546 (create_type_unit_group): Likewise.
3547 (queue_comp_unit): Remove reference to
3548 per_cu->dwarf2_per_objfile.
3549 (maybe_queue_comp_unit): Likewise.
3550 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3551 (create_cus_hash_table): Assign new field.
3552
3553 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * dwarf2/read.c: Replace
3556 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3557 dwarf2_cu->per_objfile throughout.
3558
3559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3562 parameter, don't use per_cu->dwarf2_per_objfile.
3563 (dw2_instantiate_symtab): Likewise.
3564 (dw2_find_last_source_symtab): Update.
3565 (dw2_map_expand_apply): Update.
3566 (dw2_lookup_symbol): Update.
3567 (dw2_expand_symtabs_for_function): Update.
3568 (dw2_expand_all_symtabs): Update.
3569 (dw2_expand_symtabs_with_fullname): Update.
3570 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3571 don't use per_cu->dwarf2_per_objfile.
3572 (dw2_expand_marked_cus): Update.
3573 (dw2_find_pc_sect_compunit_symtab): Update.
3574 (dw2_debug_names_lookup_symbol): Update.
3575 (dw2_debug_names_expand_symtabs_for_function): Update.
3576 (dw2_debug_names_map_matching_symbols): Update.
3577 (dwarf2_psymtab::expand_psymtab): Update.
3578
3579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3582 <per_objfile>: New member.
3583 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3584 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3585 call to dwarf2_cu.
3586 (cutu_reader::cutu_reader): Update.
3587 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3588
3589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3592 struct dwarf2_per_objfile.
3593 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3594 dwarf2_per_bfd.
3595 * dwarf2/read.c (set_die_type): Update.
3596 (get_die_type_at_offset): Update.
3597
3598 2020-05-27 Tom Tromey <tom@tromey.com>
3599 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3602 method.
3603 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3604 get_symtab, set_symtab>: New methods.
3605 <m_symtabs>: New field.
3606 (struct dwarf2_psymtab): Derive from partial_symtab.
3607 <readin_p, get_compunit_symtab>: Declare methods.
3608 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3609 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3610 New methods.
3611 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3612 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3613 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3614 (dw2_symtab_iter_next, dw2_print_stats)
3615 (dw2_expand_symtabs_with_fullname)
3616 (dw2_expand_symtabs_matching_one)
3617 (dw_expand_symtabs_matching_file_matcher)
3618 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3619 (dw2_debug_names_iterator::next)
3620 (dw2_debug_names_map_matching_symbols)
3621 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3622 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3623 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3624 New methods.
3625 (get_compunit_symtab, process_full_comp_unit)
3626 (process_full_type_unit): Update.
3627 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3628
3629 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3630
3631 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3632 then introduce a new dwarf2_per_objfile type.
3633 <read_line_string>: Move to the new dwarf2_per_objfile type.
3634 <objfile>: Likewise.
3635 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3636 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3637 dwarf2_per_objfile->per_bfd.
3638 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3639 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3640 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3641 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3642 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3643 (dwarf2_per_objfile::locate_sections): Rename to...
3644 (dwarf2_per_bfd::locate_sections): ... this.
3645 (dwarf2_per_objfile::get_cutu): Rename to...
3646 (dwarf2_per_bfd::get_cutu): ... this.
3647 (dwarf2_per_objfile::get_cu): Rename to...
3648 (dwarf2_per_bfd::get_cu): ... this.
3649 (dwarf2_per_objfile::get_tu): Rename to...
3650 (dwarf2_per_bfd::get_tu): ... this.
3651 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3652 (dwarf2_per_bfd::allocate_per_cu): ... this.
3653 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3654 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3655 (get_gdb_index_contents_ftype): Change parameter from
3656 dwarf2_per_objfile to dwarf2_per_bfd.
3657 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3658 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3659
3660 2020-05-27 Tom Tromey <tom@tromey.com>
3661 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3664 (allocate_piece_closure): Set "per_objfile" member.
3665 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3666 (locexpr_describe_location, loclist_describe_location): Use new
3667 member.
3668 * dwarf2/read.c (read_call_site_scope)
3669 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3670 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3671 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3672 handle_data_member_location): Set per_objfile member.
3673 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3674 member.
3675 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3676
3677 2020-05-27 Tom Tromey <tom@tromey.com>
3678
3679 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3680 allocate_signatured_type>: Declare new methods.
3681 <m_num_psymtabs>: New member.
3682 (struct dwarf2_per_cu_data) <index>: New member.
3683 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3684 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3685 (create_cu_from_index_list): Use allocate_per_cu.
3686 (create_signatured_type_table_from_index)
3687 (create_signatured_type_table_from_debug_names)
3688 (create_debug_type_hash_table, add_type_unit)
3689 (read_comp_units_from_section): Use allocate_signatured_type.
3690
3691 2020-05-27 Tom Tromey <tom@tromey.com>
3692
3693 * psymtab.c (partial_map_expand_apply)
3694 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3695 (psym_lookup_global_symbol_language)
3696 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3697 (psym_print_stats, psym_expand_symtabs_for_function)
3698 (psym_map_symbol_filenames, psym_map_matching_symbols)
3699 (psym_expand_symtabs_matching)
3700 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3701 (maintenance_check_psymtabs): Update.
3702 * psympriv.h (struct partial_symtab) <readin_p,
3703 get_compunit_symtab>: Add objfile parameter.
3704 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3705 Likewise.
3706 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3707 get_compunit_symtab>: Likewise.
3708 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3709
3710 2020-05-27 Tom Tromey <tom@tromey.com>
3711
3712 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3713 member.
3714 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3715 (create_cu_from_index_list)
3716 (create_signatured_type_table_from_index)
3717 (create_signatured_type_table_from_debug_names)
3718 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3719 (dwarf2_create_include_psymtab)
3720 (create_debug_type_hash_table, add_type_unit)
3721 (create_type_unit_group, read_comp_units_from_section)
3722 (dwarf2_compute_name, create_cus_hash_table)
3723 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3724 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3725 obstack.
3726 (dw2_get_real_path): Likewise. Change argument to
3727 dwarf2_per_objfile.
3728
3729 2020-05-27 Luis Machado <luis.machado@linaro.org>
3730
3731 PR tdep/26000
3732 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3733 for ldrd (immediate).
3734
3735 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3736
3737 * command.h: Add comment giving the name of class_tui.
3738 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3739 create the fake command for the help for class_tui.
3740
3741 2020-05-26 Tom Tromey <tromey@adacore.com>
3742
3743 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3744 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3745 (val_atr): New function.
3746 (value_val_atr): Use it.
3747 * ada-valprint.c (print_optional_low_bound): Change low bound
3748 handling for enums.
3749 (val_print_packed_array_elements): Don't call discrete_position.
3750 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3751 discrete_position for enum types.
3752 * language.c (default_print_array_index): Change type.
3753 * language.h (struct language_defn) <la_print_array_index>: Add
3754 index_type parameter, change type of index_value.
3755 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3756 (default_print_array_index): Update.
3757 * valprint.c (maybe_print_array_index): Don't call
3758 value_from_longest. Update.
3759 (value_print_array_elements): Don't call discrete_position.
3760
3761 2020-05-26 Tom Tromey <tromey@adacore.com>
3762
3763 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3764 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3765
3766 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3767
3768 PR gdb/13519
3769 * avr-tdep.c (avr_integer_to_address): Return data or code
3770 address accordingly to the second 'type' argument of the
3771 function.
3772
3773 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3774
3775 * infcmd.c, inferior.h: (construct_inferior_arguments):
3776 Moved function from here to gdbsupport/common-inferior.{h,cc}
3777
3778 2020-05-23 Tom Tromey <tom@tromey.com>
3779
3780 Revert commit eca1f90c:
3781 * NEWS: Remove entry for completion styling.
3782 * completer.c (_rl_completion_prefix_display_length): Move
3783 declaration later.
3784 (gdb_fnprint): Revert.
3785 (gdb_display_match_list_1): Likewise.
3786 * cli/cli-style.c (completion_prefix_style)
3787 (completion_difference_style, completion_suffix_style): Remove.
3788 (_initialize_cli_style): Revert.
3789 * cli/cli-style.h (completion_prefix_style)
3790 (completion_difference_style, completion_suffix_style): Don't
3791 declare.
3792
3793 2020-05-24 Pedro Alves <palves@redhat.com>
3794
3795 * symtab.c (completion_list_add_name): Return boolean indication
3796 of whether the symbol matched.
3797 (completion_list_add_symbol): Don't try to remove C++ aliases if
3798 the symbol didn't match in the first place.
3799 * symtab.h (completion_list_add_name): Return bool.
3800
3801 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3804 type::field.
3805
3806 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3807
3808 GDB 9.2 released.
3809
3810 2020-05-23 Tom Tromey <tom@tromey.com>
3811
3812 * NEWS: Add entry for completion styling.
3813 * completer.c (_rl_completion_prefix_display_length): Move
3814 declaration earlier.
3815 (gdb_fnprint): Use completion_style.
3816 (gdb_display_match_list_1): Likewise.
3817 * cli/cli-style.c (completion_prefix_style)
3818 (completion_difference_style, completion_suffix_style): New
3819 globals.
3820 (_initialize_cli_style): Register new globals.
3821 * cli/cli-style.h (completion_prefix_style)
3822 (completion_difference_style, completion_suffix_style): Declare.
3823
3824 2020-05-23 Pedro Alves <palves@redhat.com>
3825
3826 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3827 (parse_escape): Use ISDIGIT instead of isdigit.
3828 (puts_debug): Use gdb_isprint instead of isprint.
3829 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3830 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3831 ISSPACE instead of isspace.
3832 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3833 instead of isspace.
3834 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3835 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3836 instead of isxdigit and ISDIGIT instead of isdigit.
3837
3838 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * gdbtypes.h (struct type) <field>: New method.
3841 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3842 or type::field.
3843
3844 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3847 (TYPE_FIELDS): Use type::fields. Change all call sites that
3848 modify the propery to use type::set_fields instead.
3849
3850 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3851
3852 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3853 type::num_fields instead.
3854
3855 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3858 methods.
3859 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3860 that modify the number of fields to use type::set_num_fields
3861 instead.
3862
3863 2020-05-22 Tom Tromey <tromey@adacore.com>
3864
3865 * compile/compile-object-load.h (munmap_list_free): Don't
3866 declare.
3867
3868 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * annotate.c (annotate_source_line): Update return type, add call
3871 to update current symtab and line.
3872 * annotate.h (annotate_source_line): Update return type, and
3873 extend header comment.
3874 * source.c (info_line_command): Check annotation_level before
3875 calling annotate_source_line.
3876 * stack.c (print_frame_info): If calling annotate_source_line
3877 returns true, then don't print any other source line information.
3878
3879 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3882
3883 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * coffread.c (patch_type): Remove NULL check before xfree.
3886 * corefile.c (set_gnutarget): Likewise.
3887 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3888 * exec.c (build_section_table): Likewise.
3889 * remote.c (remote_target::pass_signals): Likewise.
3890 * utils.c (n_spaces): Likewise.
3891 * cli/cli-script.c (document_command): Likewise.
3892 * i386-windows-tdep.c (core_process_module_section): Likewise.
3893 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3894
3895 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * symfile.c (reread_symbols): Clear objfile's section_offsets
3898 vector and section indices, re-compute them by calling
3899 sym_offsets.
3900
3901 2020-05-20 Tom Tromey <tromey@adacore.com>
3902
3903 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3904 (desc_one_bound, desc_index_type): Compute field name.
3905
3906 2020-05-20 Tom de Vries <tdevries@suse.de>
3907
3908 PR symtab/25833
3909 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3910
3911 2020-05-20 Alan Modra <amodra@gmail.com>
3912
3913 PR 25993
3914 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3915 bfd_set_filename.
3916 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3917 passed to bfd_set_filename.
3918 * symfile-mem.c (add_vsyscall_page): Likewise for string
3919 passed to symbol_file_add_from_memory.
3920 (symbol_file_add_from_memory): Make name param a const char* and
3921 don't strdup.
3922
3923 2020-05-20 Alan Modra <amodra@gmail.com>
3924
3925 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3926 rather than accessing bfd->filename directly.
3927 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3928 and use bfd_section_name.
3929 * dwarf2/frame.c (decode_frame_entry): Likewise.
3930 * exec.c (exec_set_section_address): Likewise.
3931 * solib-aix.c (solib_aix_bfd_open): Likewise.
3932 * stap-probe.c (get_stap_base_address): Likewise.
3933 * symfile.c (reread_symbols): Likewise.
3934
3935 2020-05-19 Tom Tromey <tromey@adacore.com>
3936
3937 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3938
3939 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3942
3943 2020-05-19 Pedro Alves <palves@redhat.com>
3944
3945 * NEWS (set exec-file-mismatch): Adjust entry.
3946 * exec.c: Include "build-id.h".
3947 (validate_exec_file): Try to match build IDs instead of filenames.
3948 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3949 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3950 and pass down 'warn_if_slow'.
3951 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3952 gdb_bfd_open_closure to pass it down.
3953 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3954
3955 2020-05-19 Pedro Alves <palves@redhat.com>
3956
3957 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3958 * target.c (target_fileio_open_1): Rename to target_fileio_open
3959 and make extern. Use bool.
3960 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3961 (target_fileio_read_alloc_1): Adjust.
3962 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3963 (target_fileio_open_warn_if_slow): Delete declaration.
3964
3965 2020-05-19 Pedro Alves <palves@redhat.com>
3966
3967 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3968 Adjust all callers.
3969
3970 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3971
3972 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3973 whether disp is negative.
3974
3975 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * symfile.h (struct symfile_segment_data)
3978 <~symfile_segment_data>: Remove.
3979 <segment_info>: Change to std::vector.
3980 * symfile.c (default_symfile_segments): Update.
3981 * elfread.c (elf_symfile_segments): Update.
3982
3983 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3986 <segments>: New.
3987 <segment_bases, segment_sizes>: Remove.
3988 * symfile.c (default_symfile_segments): Update.
3989 * elfread.c (elf_symfile_segments): Update.
3990 * remote.c (remote_target::get_offsets): Update.
3991 * solib-target.c (solib_target_relocate_section_addresses):
3992 Update.
3993
3994 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * symfile.h (struct symfile_segment_data): Initialize fields.
3997 <~symfile_segment_data>: Add.
3998 (symfile_segment_data_up): New.
3999 (struct sym_fns) <sym_segments>: Return a
4000 symfile_segment_data_up.
4001 (default_symfile_segments): Return a symfile_segment_data_up.
4002 (free_symfile_segment_data): Remove.
4003 (get_symfile_segment_data): Return a symfile_segment_data_up.
4004 * symfile.c (default_symfile_segments): Likewise.
4005 (get_symfile_segment_data): Likewise.
4006 (free_symfile_segment_data): Remove.
4007 (symfile_find_segment_sections): Update.
4008 * elfread.c (elf_symfile_segments): Return a
4009 symfile_segment_data_up.
4010 * remote.c (remote_target::get_offsets): Update.
4011 * solib-target.c (solib_target_relocate_section_addresses):
4012 Update.
4013 * symfile-debug.c (debug_sym_segments): Return a
4014 symfile_segment_data_up.
4015
4016 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4017
4018 PR build/25981
4019 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4020 Hardcode register numbers.
4021
4022 PR build/25981
4023 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4024 procfs_find_LDT_entry): Remove.
4025 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4026 procfs_find_LDT_entry): Remove.
4027 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4028 Remove.
4029
4030 2020-05-17 Pedro Alves <palves@redhat.com>
4031 Andrew Burgess <andrew.burgess@embecosm.com>
4032 Keno Fischer <keno@juliacomputing.com>
4033
4034 PR gdb/25741
4035 * breakpoint.c (build_target_condition_list): Update comments.
4036 (build_target_command_list): Update comments and skip matching
4037 locations.
4038 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4039 a separate function. Simplify "set breakpoint auto-hw off"
4040 handling.
4041 (insert_breakpoints): Update comment.
4042 (tracepoint_locations_match): New parameter. For breakpoints,
4043 compare location types too, if the caller wants to.
4044 (handle_automatic_hardware_breakpoints): New functions.
4045 (bp_location_is_less_than): Also sort by location type and
4046 hardware breakpoint length.
4047 (update_global_location_list): Handle "set breakpoint auto-hw on"
4048 here.
4049 (update_breakpoint_locations): Ask breakpoint_locations_match to
4050 ignore location types.
4051
4052 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4055 type::name instead.
4056
4057 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbtypes.h (struct type) <name, set_name>: New methods.
4060 (TYPE_CODE): Use type::name. Change all call sites used to set
4061 the name to use type::set_name instead.
4062
4063 2020-05-16 Tom Tromey <tom@tromey.com>
4064
4065 * top.c (quit_force): Update.
4066 * infrun.c (handle_no_resumed): Update.
4067 * top.h (all_uis): New function.
4068 (ALL_UIS): Remove.
4069
4070 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4073
4074 2020-05-16 Pedro Alves <palves@redhat.com>
4075
4076 * ia64-linux-nat.c
4077 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4078 Declare method.
4079 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4080
4081 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4084 (sparc64_adi_info): Likewise.
4085
4086 2020-05-15 Tom Tromey <tom@tromey.com>
4087
4088 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4089 block_objfile.
4090 (lookup_objfile_from_block): Remove.
4091 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4092 (lookup_global_symbol): Use block_objfile.
4093 * symtab.h (lookup_objfile_from_block): Don't declare.
4094 * printcmd.c (clear_dangling_display_expressions): Use
4095 block_objfile.
4096 * parse.c (operator_check_standard): Use block_objfile.
4097
4098 2020-05-15 Tom Tromey <tom@tromey.com>
4099
4100 * language.c (language_alloc_type_symbol): Set
4101 SYMBOL_SECTION.
4102 * symtab.c (initialize_objfile_symbol): Remove.
4103 (allocate_symbol): Remove.
4104 (allocate_template_symbol): Remove.
4105 * dwarf2/read.c (fixup_go_packaging): Use "new".
4106 (new_symbol): Use "new".
4107 (read_variable): Don't call initialize_objfile_symbol. Use
4108 "new".
4109 (read_func_scope): Use "new".
4110 * xcoffread.c (process_xcoff_symbol): Don't call
4111 initialize_objfile_symbol.
4112 (SYMBOL_DUP): Remove.
4113 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4114 "new".
4115 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4116 (allocate_template_symbol): Don't declare.
4117 (struct symbol): Add copy constructor. Change defaults.
4118 * jit.c (finalize_symtab): Use "new".
4119 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4120 Use "new".
4121 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4122 (common_block_end): Use "new".
4123 * mdebugread.c (parse_symbol): Use "new".
4124 (new_symbol): Likewise.
4125
4126 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4127
4128 * NEWS: Mention changes to help and apropos.
4129
4130 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4131
4132 * command.h (enum command_class): Improve comments, document
4133 that class_alias is for user-defined aliases, give the class
4134 name for each class, remove unused class_xdb.
4135 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4136 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4137 by a precise class.
4138 * infcmd.c (_initialize_infcmd): Likewise.
4139 * reverse.c (_initialize_reverse): Likewise.
4140 * stack.c (_initialize_stack): Likewise.
4141 * symfile.c (_initialize_symfile): Likewise.
4142 * tracepoint.c (_initialize_tracepoint): Likewise.
4143
4144 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4145
4146 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4147 when their aliased command is traversed.
4148 (help_cmd): Add fput_command_names_styled call to
4149 output command name and aliases when command has an alias.
4150
4151 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4152
4153 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4154 * cli/cli-decode.c (help_cmd_list): Declare as static,
4155 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4156 a command together with the command.
4157 (fput_command_name_styled, fput_command_names_styled): New functions.
4158 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4159 fput_command_name_styled.
4160 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4161 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4162
4163 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4164
4165 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4166 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4167 * command.h (cmd_show_list): Likewise.
4168 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4169 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4170
4171 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172
4173 * unittests/command-def-selftests.c (traverse_command_structure):
4174 Verify all commands of a list have the same prefix command and
4175 that only the top cmdlist commands have a null prefix.
4176
4177 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4178
4179 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4180 as prefix, not one of its aliases.
4181 (set_cmd_prefix): Remove.
4182 (do_add_cmd): Centralize the setting of the prefix of a command, when
4183 command is defined after its full chain of prefix commands.
4184 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4185 (add_setshow_cmd_full): Likewise.
4186 (update_prefix_field_of_prefixed_commands): New function.
4187 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4188 update_prefix_field_of_prefixed_commands.
4189 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4190 addresses of remote_set_cmdlist and remote_show_cmdlist given
4191 as argument, not the address of an argument.
4192 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4193 * gdb/remote.c (_initialize_remote): Likewise.
4194
4195 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196
4197 * cli/cli-cmds.c (alias_command): Check for an existing alias
4198 using lookup_cmd_composition, as valid_command_p is too strict
4199 and forbids aliases that are the prefix of an existing alias
4200 or command.
4201 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4202 command is properly recognised as a valid command.
4203
4204 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4205
4206 * unittests/help-doc-selftests.c: Rename to
4207 unittests/command-def-selftests.c
4208 * unittests/command-def-selftests.c (help_doc_tests): Update some
4209 comments.
4210 (command_structure_tests, traverse_command_structure): New namespace
4211 and function.
4212 (command_structure_invariants_tests): New function.
4213 (_initialize_command_def_selftests) Renamed from
4214 _initialize_help_doc_selftests, register command_structure_invariants
4215 selftest.
4216
4217 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4218
4219 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4220 an alias of 'show'.
4221
4222 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4223
4224 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4225 ada_is_fixed_point_type. Update all callers.
4226 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4227 all callers.
4228 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4229 Update all callers.
4230 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4231 print_fixed_point_type. Update all callers.
4232 * ada-valprint.c (ada_value_print_num): Replace call to
4233 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4234
4235 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4236
4237 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4238 processors.
4239 (cpu_supports_bts): Add CV_AMD case.
4240
4241 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4242 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * infrun.c (stop_all_threads): Collect multiple wait events at
4245 each pass.
4246
4247 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4250 type::code instead.
4251
4252 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * gdbtypes.h (struct type) <code, set_code>: New methods.
4255 (TYPE_CODE): Use type::code. Change all call sites used to set
4256 the code to use type::set_code instead.
4257
4258 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4259 Tom de Vries <tdevries@suse.de>
4260 Pedro Alves <palves@redhat.com>
4261
4262 PR threads/25478
4263 * infrun.c (stop_all_threads): Do NOT ignore
4264 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4265 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4266 received.
4267 (handle_no_resumed): Remove code handling a live inferior with no
4268 threads.
4269 * remote.c (has_single_non_exited_thread): New.
4270 (remote_target::update_thread_list): Do not delete a thread if is
4271 the last thread of the process.
4272 * thread.c (thread_select): Call delete_exited_threads instead of
4273 prune_threads.
4274
4275 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4276
4277 * infrun.c (stop_all_threads): Enable/disable thread events of all
4278 targets. Move a debug message denoting the end of the function
4279 into the SCOPED_EXIT block.
4280
4281 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4282
4283 * process-stratum-target.h: Include <set>.
4284 (all_non_exited_process_targets, switch_to_target_no_thread): New
4285 function declarations.
4286 * process-stratum-target.c (all_non_exited_process_targets)
4287 (switch_to_target_no_thread): New function implementations.
4288
4289 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4290
4291 * infrun.c (handle_inferior_event): Extract out a piece of code
4292 into...
4293 (mark_non_executing_threads): ...this new function.
4294
4295 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4296
4297 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4298 use.
4299
4300 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4301
4302 * regcache.c (regcache_read_pc_protected): New function
4303 implementation that returns 0 if the PC cannot read via
4304 'regcache_read_pc'.
4305 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4306 instead of 'regcache_read_pc'.
4307 (keep_going_pass_signal): Ditto.
4308
4309 2020-05-13 Tom Tromey <tromey@adacore.com>
4310
4311 * ada-lang.c (align_value): Remove.
4312 (ada_template_to_fixed_record_type_1): Use align_up.
4313
4314 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4315
4316 * async-event.c: Update the copyright year.
4317 * async-event.h: Update the copyright year.
4318
4319 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * objfiles.h (is_addr_in_objfile,
4322 shared_objfile_contains_address_p): Return bool.
4323 * objfile.c (is_addr_in_objfile,
4324 shared_objfile_contains_address_p): Return bool.
4325
4326 2020-05-11 Tom Tromey <tromey@adacore.com>
4327
4328 * cli/cli-cmds.c (info_command): Restore.
4329 (_initialize_cli_cmds): Use add_prefix_command for "info".
4330 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4331
4332 2020-05-11 Tom Tromey <tromey@adacore.com>
4333
4334 * ada-lang.c (ada_value_primitive_field): Now public.
4335 * ada-lang.h (ada_value_primitive_field): Declare.
4336 * ada-valprint.c (print_field_values): Use
4337 ada_value_primitive_field for wrapper fields.
4338
4339 2020-05-11 Tom de Vries <tdevries@suse.de>
4340
4341 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4342 MODULE_DOMAIN.
4343
4344 2020-05-11 Tom de Vries <tdevries@suse.de>
4345
4346 PR symtab/25941
4347 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4348 with length 0, if not gdb-produced.
4349 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4350
4351 2020-05-09 Tom de Vries <tdevries@suse.de>
4352
4353 PR gdb/25955
4354 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4355 calculation.
4356
4357 2020-05-09 Tom Tromey <tom@tromey.com>
4358
4359 * top.c (server_command): Now bool.
4360 * top.h (server_command): Now bool.
4361
4362 2020-05-08 Tom Tromey <tromey@adacore.com>
4363
4364 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4365 already being processed.
4366
4367 2020-05-08 Tom Tromey <tom@tromey.com>
4368
4369 * printcmd.c (struct display) <next>: Remove.
4370 <display>: New constructor.
4371 <exp_string>: Now a std::string.
4372 <enabled_p>: Now a bool.
4373 (display_number): Move definition earlier.
4374 (displays): Rename from display_chain. Now a std::vector.
4375 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4376 (display_command): Update.
4377 (do_one_display, disable_display)
4378 (enable_disable_display_command, do_enable_disable_display):
4379 Update.
4380 (free_display): Remove.
4381 (clear_displays): Rewrite.
4382 (delete_display): Update.
4383 (map_display_numbers): Use function_view. Remove "data"
4384 parameter. Update.
4385 (do_delete_display): Remove.
4386 (undisplay_command): Update.
4387 (do_one_display, do_displays, disable_display)
4388 (info_display_command): Update.
4389 (do_enable_disable_display): Remove.
4390 (enable_disable_display_command)
4391 (clear_dangling_display_expressions): Update.
4392
4393 2020-05-08 Tom Tromey <tom@tromey.com>
4394
4395 * symtab.c (set_symbol_cache_size)
4396 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4397 (maintenance_print_symbol_cache_statistics): Update.
4398 * symmisc.c (print_symbol_bcache_statistics)
4399 (print_objfile_statistics, maintenance_print_objfiles)
4400 (maintenance_info_symtabs, maintenance_check_symtabs)
4401 (maintenance_expand_symtabs, maintenance_info_line_tables):
4402 Update.
4403 * symfile-debug.c (set_debug_symfile): Update.
4404 * source.c (forget_cached_source_info): Update.
4405 * python/python.c (gdbpy_progspaces): Update.
4406 * psymtab.c (maintenance_info_psymtabs): Update.
4407 * probe.c (parse_probes): Update.
4408 * linespec.c (iterate_over_all_matching_symtabs)
4409 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4410 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4411 * exec.c (exec_target::close): Update.
4412 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4413 * breakpoint.c (print_one_breakpoint_location)
4414 (create_longjmp_master_breakpoint)
4415 (create_std_terminate_master_breakpoint): Update.
4416 * progspace.c (program_spaces): Now a std::vector.
4417 (maybe_new_address_space): Update.
4418 (add_program_space): Remove.
4419 (program_space::program_space): Update.
4420 (remove_program_space): Update.
4421 (number_of_program_spaces): Remove.
4422 (print_program_space, update_address_spaces): Update.
4423 * progspace.h (program_spaces): Change type.
4424 (ALL_PSPACES): Remove.
4425 (number_of_program_spaces): Don't declare.
4426 (struct program_space) <next>: Remove.
4427
4428 2020-05-08 Tom Tromey <tom@tromey.com>
4429
4430 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4431 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4432 (enable_break): Update.
4433 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4434 (frv_fdpic_find_canonical_descriptor): Update.
4435 (frv_fetch_objfile_link_map): Update.
4436 * progspace.c (program_space::free_all_objfiles): Update.
4437 (program_space::solibs): New method.
4438 * progspace.h (struct program_space) <solibs>: New method.
4439 * solist.h (master_so_list): Don't declare.
4440 (ALL_SO_LIBS): Remove.
4441 * solib.h (so_list_head): Remove.
4442 (update_solib_list): Update comment.
4443 * solib.c (master_so_list): Remove.
4444 (solib_used, update_solib_list, solib_add)
4445 (info_sharedlibrary_command, clear_solib)
4446 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4447
4448 2020-05-08 Tom Tromey <tom@tromey.com>
4449
4450 * extension.c (extension_languages): Now a std::array.
4451 (ALL_EXTENSION_LANGUAGES): Remove.
4452 (get_ext_lang_defn, get_ext_lang_of_file)
4453 (eval_ext_lang_from_control_command): Update.
4454 (finish_ext_lang_initialization)
4455 (auto_load_ext_lang_scripts_for_objfile)
4456 (ext_lang_type_printers::ext_lang_type_printers)
4457 (apply_ext_lang_type_printers)
4458 (ext_lang_type_printers::~ext_lang_type_printers)
4459 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4460 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4461 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4462 (get_matching_xmethod_workers, ext_lang_colorize)
4463 (ext_lang_before_prompt): Update.
4464 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4465
4466 2020-05-08 Tom Tromey <tom@tromey.com>
4467
4468 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4469 overload.
4470 <swap_string, m_string>: Remove.
4471 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4472 Update.
4473 * stabsread.c (define_symbol, read_type): Update.
4474 * linespec.c (find_linespec_symbols): Update.
4475 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4476 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4477 * dbxread.c (read_dbx_symtab): Update.
4478 * cp-support.h (cp_canonicalize_string_full)
4479 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4480 Return unique_xmalloc_ptr.
4481 * cp-support.c (inspect_type): Update.
4482 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4483 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4484 Likewise.
4485 * c-typeprint.c (print_name_maybe_canonical): Update.
4486 * break-catch-throw.c (check_status_exception_catchpoint):
4487 Update.
4488
4489 2020-05-08 Tom de Vries <tdevries@suse.de>
4490
4491 * infrun.c (follow_fork): Copy current_line and current_symtab to
4492 child thread.
4493
4494 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * async-event.c (struct async_signal_handler, struct
4497 async_event_handler): Reformat, remove typedef.
4498
4499 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4500
4501 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4502 access thistype->main_type->dyn_prop_list directly.
4503
4504 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4507 (remove_dyn_prop): Remove. Update all users to use
4508 type::remove_dyn_prop.
4509 * gdbtypes.c (remove_dyn_prop): Rename to...
4510 (type::remove_dyn_prop): ... this.
4511
4512 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4513
4514 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4515 (add_dyn_prop): Remove. Update all users to use
4516 type::add_dyn_prop.
4517 * gdbtypes.c (add_dyn_prop): Rename to...
4518 (type::add_dyn_prop): ... this.
4519
4520 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4523 (get_dyn_prop): Remove. Update all users to use
4524 type::dyn_prop.
4525 * gdbtypes.c (get_dyn_prop): Rename to...
4526 (type::dyn_prop): ... this.
4527
4528 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4531
4532 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4535 instruction, skip it if it's there.
4536
4537 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4538
4539 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4540
4541 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4544 * gdbtypes.c (recursive_dump_type): Remove use of
4545 TYPE_INCOMPLETE.
4546
4547 2020-05-03 Tom Tromey <tom@tromey.com>
4548
4549 * breakpoint.c (catch_command, tcatch_command): Remove.
4550 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4551 add_show_prefix_cmd.
4552 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4553 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4554 Remove.
4555 (add_internal_problem_command): Use add_basic_prefix_cmd,
4556 add_show_prefix_cmd.
4557 * mips-tdep.c (set_mipsfpu_command): Remove.
4558 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4559 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4560 (_initialize_index_cache): Use add_basic_prefix_cmd.
4561 * memattr.c (dummy_cmd): Remove.
4562 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4563 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4564 (_initialize_tui_win): Use add_basic_prefix_cmd,
4565 add_show_prefix_cmd.
4566 * cli/cli-logging.c (set_logging_command): Remove.
4567 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4568 add_show_prefix_cmd.
4569 (show_logging_command): Remove.
4570 * target.c (target_command): Remove.
4571 (add_target): Use add_basic_prefix_cmd.
4572
4573 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4574
4575 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4576
4577 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4578
4579 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4580 info_command.
4581
4582 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4583
4584 * nbsd-nat.c (nbsd_enable_proc_events)
4585 (nbsd_nat_target::post_startup_inferior): Add.
4586 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4587 (nbsd_nat_target::update_thread_list): Rewrite.
4588 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4589 "PTRACE_LWP_CREATE".
4590 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4591
4592 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4593
4594 * stack.c (_initialize_stack): Remove duplicated creation
4595 of "frame" command and "f" alias.
4596
4597 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4598
4599 PR gdb/18706
4600 * gdbtypes.c (check_typedef): Calculate size of array of
4601 stubbed type.
4602
4603 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4604
4605 PR gdb/15559
4606 * i386-tdep.c (i386_push_dummy_call): Call
4607 i386_thiscall_push_dummy_call.
4608 (i386_thiscall_push_dummy_call): New function.
4609 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4610 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4611 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4612
4613 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbarch.sh (do_read): Add shellcheck disable directive for
4616 warning SC2162.
4617
4618 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4621 "referenced but not assigned" warning.
4622
4623 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbarch.sh: Remove code that sets fallbackdefault.
4626
4627 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * gdbarch.sh: Use shell operators && and || instead of
4630 -a and -o.
4631
4632 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbarch.sh: Use $(...) instead of `...`.
4635
4636 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * gdbarch.sh: Use double quotes around variables.
4639
4640 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * gdbarch.sh: Use %s with printf, instead of variables in the
4643 format string.
4644
4645 2020-04-29 Tom Tromey <tromey@adacore.com>
4646
4647 PR ada/25875:
4648 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4649 type fields here.
4650 (read_enumeration_type): Call
4651 update_enumeration_type_from_children later. Update comments.
4652 (process_enumeration_scope): Don't create type fields.
4653
4654 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4655
4656 * nbsd-tdep.c: Include "xml-syscall.h".
4657 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4658
4659 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4660
4661 * nbsd-nat.c: Include "sys/wait.h".
4662 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4663 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4664 (nbsd_nat_target::remove_exec_catchpoint)
4665 (nbsd_nat_target::set_syscall_catchpoint): Add.
4666 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4667 (nbsd_nat_target::insert_exec_catchpoint)
4668 (nbsd_nat_target::remove_exec_catchpoint)
4669 (nbsd_nat_target::set_syscall_catchpoint): Add.
4670 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4671 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4672 `nbsd_get_syscall_number'.
4673
4674 2020-04-29 Tom Tromey <tom@tromey.com>
4675
4676 * stack.c (print_block_frame_labels): Remove.
4677
4678 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4679
4680 PR gdb/17320
4681 * ada-valprint.c (val_print_packed_array_elements): Move array
4682 end bracket to new line.
4683 (ada_val_print_string): Remove extra spaces before first array
4684 element.
4685 * c-valprint.c (c_value_print_array): Likewise.
4686 * m2-valprint.c (m2_print_array_contents): Likewise.
4687 (m2_value_print_inner): Likewise.
4688 * p-valprint.c (pascal_value_print_inner): Likewise.
4689 * valprint.c (generic_val_print_array): Likewise.
4690 (value_print_array_elements): Move first array element and array
4691 end bracket to new line.
4692
4693 2020-04-29 Tom de Vries <tdevries@suse.de>
4694
4695 PR symtab/25889
4696 * linespec.c (find_method): Fix ix calculation.
4697
4698 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4699
4700 * syscalls/update-netbsd.sh: New file.
4701 * syscalls/netbsd.xml: Regenerate.
4702 * data-directory/Makefile.in: Register `netbsd.xml' in
4703 `SYSCALLS_FILES'.
4704
4705 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * syscalls/update-freebsd.sh: Add double quotes.
4708
4709 2020-04-28 Tom Tromey <tom@tromey.com>
4710
4711 * NEWS: Update.
4712 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4713 (cmdpy_init): Allow class_tui.
4714
4715 2020-04-28 Mark Williams <mark@myosotissp.com>
4716
4717 PR gdb/24480
4718 * dwarf2read.c: Add missing assingments to list_in_scope when
4719 start_symtab was already called.
4720
4721 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4722
4723 PR gdb/25881
4724 * dwarf2/read.c (offset_map_type): Use
4725 gdb:hash_enum<sect_offset> as hash function.
4726
4727 2020-04-28 Tom de Vries <tdevries@suse.de>
4728
4729 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4730 with DW_AT_signature.
4731
4732 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * configure.ac: Remove check for fs_base/gs_base in
4735 user_regs_struct.
4736 * configure: Re-generate.
4737 * config.in: Re-generate.
4738 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4739 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4740 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4741
4742 2020-04-27 Luis Machado <luis.machado@linaro.org>
4743
4744 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4745 problematic inline frame unwinding situation.
4746 * frame.c (frame_id_computed_p): New function.
4747 * frame.h (frame_id_computed_p): New prototype.
4748
4749 2020-04-26 Tom Tromey <tom@tromey.com>
4750
4751 * command.h (enum command_class) <class_pseudo>: Remove.
4752
4753 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4754
4755 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4756 and whitespace.
4757
4758 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4759
4760 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4761 `PT_GET_PROCESS_STATE' block.
4762
4763 2020-04-24 Tom Tromey <tom@tromey.com>
4764
4765 * symtab.h (symbol_get_demangled_name): Don't declare.
4766 * symtab.c (symbol_get_demangled_name): Remove.
4767 (general_symbol_info::natural_name)
4768 (general_symbol_info::demangled_name): Update.
4769
4770 2020-04-24 Tom Tromey <tom@tromey.com>
4771
4772 PR rust/25025:
4773 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4774
4775 2020-04-24 Tom Tromey <tom@tromey.com>
4776
4777 PR symtab/12707:
4778 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4779 exists.
4780 (new_symbol): Likewise.
4781 * compile/compile-object-load.c (get_out_value_type): Use
4782 symbol_matches_search_name.
4783
4784 2020-04-24 Tom Tromey <tom@tromey.com>
4785
4786 * dwarf2/read.c (add_partial_symbol): Do not call
4787 compute_and_set_names.
4788
4789 2020-04-24 Tom Tromey <tom@tromey.com>
4790
4791 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4792 overload.
4793
4794 2020-04-24 Tom Tromey <tom@tromey.com>
4795
4796 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4797 (add_psymbol_to_list): New overload. Make old overload call new
4798 one.
4799 * psympriv.h (add_psymbol_to_list): New overload.
4800
4801 2020-04-24 Tom Tromey <tom@tromey.com>
4802
4803 * dwarf2/read.c (partial_die_info::read) <case
4804 DW_AT_linkage_name>: Use value_as_string.
4805 (dwarf2_string_attr): Use value_as_string.
4806 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4807 method.
4808 * dwarf2/attribute.c (attribute::value_as_string): New method.
4809
4810 2020-04-24 Tom Tromey <tom@tromey.com>
4811
4812 * symtab.c (general_symbol_info::natural_name)
4813 (general_symbol_info::demangled_name): Check for language_rust.
4814
4815 2020-04-24 Tom Tromey <tom@tromey.com>
4816
4817 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4818 (dwarf2_physname): ... from here.
4819 (partial_die_info::read): Add Rust "{" hack.
4820
4821 2020-04-24 Tom Tromey <tom@tromey.com>
4822
4823 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4824 method.
4825 (symbol_set_demangled_name): Don't declare.
4826 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4827 symbol_set_demangled_name.
4828 (general_symbol_info::set_language)
4829 (general_symbol_info::compute_and_set_names): Update.
4830 * minsyms.c (minimal_symbol_reader::install): Update.
4831 * dwarf2/read.c (new_symbol): Update.
4832
4833 2020-04-24 Tom Tromey <tromey@adacore.com>
4834
4835 PR python/23662:
4836 * python/py-type.c (convert_field): Handle
4837 FIELD_LOC_KIND_DWARF_BLOCK.
4838 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4839 (typy_get_dynamic): Nw function.
4840 (type_object_getset): Add "dynamic".
4841 * NEWS: Add entry.
4842
4843 2020-04-24 Tom Tromey <tromey@adacore.com>
4844
4845 * ada-typeprint.c (print_choices, print_variant_part)
4846 (print_record_field_types_dynamic): New functions.
4847 (print_record_field_types): Use print_record_field_types_dynamic.
4848
4849 2020-04-24 Tom Tromey <tromey@adacore.com>
4850
4851 * dwarf2/read.c (handle_data_member_location): New overload.
4852 (dwarf2_add_field): Use it.
4853 (decode_locdesc): Add "computed" parameter. Update comment.
4854 * gdbtypes.c (is_dynamic_type_internal): Also look for
4855 FIELD_LOC_KIND_DWARF_BLOCK.
4856 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4857 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4858 virtual base classes.
4859 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4860 FIELD_LOC_KIND_DWARF_BLOCK.
4861
4862 2020-04-24 Tom Tromey <tromey@adacore.com>
4863
4864 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4865 * gdbtypes.c (is_dynamic_type_internal): Check
4866 TYPE_HAS_DYNAMIC_LENGTH.
4867 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4868 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4869 New macros.
4870 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4871 constant.
4872
4873 2020-04-24 Tom Tromey <tromey@adacore.com>
4874
4875 * dwarf2/read.c (struct variant_field): Rewrite.
4876 (struct variant_part_builder): New.
4877 (struct nextfield): Remove "variant" field. Add "offset".
4878 (struct field_info): Add "current_variant_part" and
4879 "variant_parts".
4880 (alloc_discriminant_info): Remove.
4881 (alloc_rust_variant): New function.
4882 (quirk_rust_enum): Update.
4883 (dwarf2_add_field): Set "offset" member. Don't handle
4884 DW_TAG_variant_part.
4885 (offset_map_type): New typedef.
4886 (convert_variant_range, create_one_variant)
4887 (create_one_variant_part, create_variant_parts)
4888 (add_variant_property): New functions.
4889 (dwarf2_attach_fields_to_type): Call add_variant_property.
4890 (read_structure_type): Don't handle DW_TAG_variant_part.
4891 (handle_variant_part, handle_variant): New functions.
4892 (handle_struct_member_die): Use them.
4893 (process_structure_scope): Don't handle variant parts.
4894 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4895 (struct discriminant_info): Remove.
4896 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4897 (struct main_type) <flag_discriminated_union>: Remove.
4898 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4899 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4900 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4901 Update.
4902 * valops.c (value_union_variant): Remove.
4903 * value.h (value_union_variant): Don't declare.
4904
4905 2020-04-24 Tom Tromey <tromey@adacore.com>
4906
4907 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4908 (ada_value_primitive_packed_val): Update.
4909 * ada-valprint.c (ada_value_print_1): Update.
4910 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4911 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4912 just an address. Use evaluate_for_locexpr_baton.
4913 (dwarf2_evaluate_property): Update.
4914 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4915 array_view.
4916 * findvar.c (default_read_var_value): Update.
4917 * gdbtypes.c (compute_variant_fields_inner)
4918 (resolve_dynamic_type_internal): Update.
4919 (resolve_dynamic_type): Change type of valaddr parameter.
4920 * gdbtypes.h (resolve_dynamic_type): Update.
4921 * valarith.c (value_subscripted_rvalue): Update.
4922 * value.c (value_from_contents_and_address): Update.
4923
4924 2020-04-24 Tom Tromey <tromey@adacore.com>
4925
4926 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4927 "push_initial_value" parameter.
4928 (dwarf2_evaluate_property): Likewise.
4929 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4930
4931 2020-04-24 Tom Tromey <tromey@adacore.com>
4932
4933 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4934 (variant::matches, compute_variant_fields_recurse)
4935 (compute_variant_fields_inner, compute_variant_fields): New
4936 functions.
4937 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4938 Use resolved_type after type is made.
4939 (operator==): Add new cases.
4940 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4941 (struct discriminant_range, struct variant, struct variant_part):
4942 New.
4943 (union dynamic_prop_data) <variant_parts, original_type>: New
4944 members.
4945 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4946 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4947 constants.
4948 * value.c (unpack_bits_as_long): Now public.
4949 * value.h (unpack_bits_as_long): Declare.
4950
4951 2020-04-24 Tom Tromey <tromey@adacore.com>
4952
4953 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4954 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4955
4956 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4957
4958 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4959
4960 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4961
4962 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4963 (remove_fork_catchpoint, post_startup_inferior)
4964 (post_attach): Move...
4965 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4966 (remove_fork_catchpoint, post_startup_inferior)
4967 (post_attach): ...here.
4968 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4969 (remove_fork_catchpoint, post_startup_inferior)
4970 (post_attach): Move...
4971 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4972 (remove_fork_catchpoint, post_startup_inferior)
4973 (post_attach): ...here.
4974
4975 2020-04-24 Tom Tromey <tromey@adacore.com>
4976
4977 * nat/windows-nat.h (struct windows_thread_info)
4978 <pc_adjusted>: New member.
4979 * windows-nat.c (windows_fetch_one_register): Check
4980 pc_adjusted.
4981 (windows_nat_target::get_windows_debug_event)
4982 (windows_nat_target::wait): Set pc_adjusted.
4983
4984 2020-04-24 Tom de Vries <tdevries@suse.de>
4985
4986 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4987 Run gdb-add-index inside temp dir.
4988
4989 2020-04-23 Tom Tromey <tromey@adacore.com>
4990
4991 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4992 in loop.
4993
4994 2020-04-23 Luis Machado <luis.machado@linaro.org>
4995
4996 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4997 get_frame_register instead of gdbarch_unwind_pc.
4998
4999 2020-04-23 Tom de Vries <tdevries@suse.de>
5000
5001 * symtab.c (lookup_global_symbol): Prefer def over decl.
5002
5003 2020-04-23 Tom de Vries <tdevries@suse.de>
5004
5005 PR symtab/25807
5006 * block.c (best_symbol, better_symbol): Promote to external.
5007 * block.h (best_symbol, better_symbol): Declare.
5008 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5009 decl.
5010
5011 2020-04-23 Tom Tromey <tromey@adacore.com>
5012
5013 PR ada/25837:
5014 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5015 "const char *", not a "const std::string &".
5016 <name_and_matcher::operator==>: Update.
5017 * unittests/lookup_name_info-selftests.c: Change type of
5018 "result".
5019
5020 2020-04-23 Tom Tromey <tom@tromey.com>
5021
5022 * inferior.h (iterate_over_inferiors): Don't declare.
5023 * inferior.c (iterate_over_inferiors): Remove.
5024 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5025 Remove.
5026 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5027 use iterate_over_inferiors.
5028 (darwin_resume_inferior_it)
5029 (struct resume_inferior_threads_param)
5030 (darwin_resume_inferior_threads_it): Remove.
5031 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5032
5033 2020-04-23 Tom de Vries <tdevries@suse.de>
5034
5035 * blockframe.c (find_pc_partial_function): Use
5036 find_pc_sect_compunit_symtab rather than
5037 objfile->sf->qf->find_pc_sect_compunit_symtab.
5038
5039 2020-04-22 Tom de Vries <tdevries@suse.de>
5040
5041 PR symtab/25764
5042 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5043 in psymtabs.
5044
5045 2020-04-22 Tom de Vries <tdevries@suse.de>
5046
5047 PR symtab/25801
5048 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5049 symtabs.
5050
5051 2020-04-22 Tom de Vries <tdevries@suse.de>
5052
5053 PR symtab/25700
5054 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5055 CU if already created.
5056
5057 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5058
5059 * infrun.c (displaced_step_fixup): Switch to the event_thread
5060 before calling displaced_step_restore, not after.
5061
5062 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5063
5064 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5065 its inferior is not recorded by us.
5066 (record_btrace_target_open): Replace call to
5067 all_non_exited_threads () with call to current_inferior
5068 ()->non_exited_threads ().
5069 (record_btrace_target::stop_recording): Likewise.
5070 (record_btrace_target::close): Likewise.
5071 (record_btrace_target::wait): Likewise.
5072 (record_btrace_target::record_stop_replaying): Likewise.
5073
5074 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5075
5076 * btrace.c (btrace_enable): Throw an error on double enables and
5077 when enabling recording fails.
5078 (btrace_disable): Throw an error if the thread is not recorded.
5079
5080 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5081
5082 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5083 request if we do not have a thread_info.
5084
5085 2020-04-21 Tom de Vries <tdevries@suse.de>
5086
5087 PR gdb/25471
5088 * thread.c
5089 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5090 exception in get_frame_id.
5091
5092 2020-04-20 Tom Tromey <tromey@adacore.com>
5093
5094 * python/python.c (struct gdbpy_event): Mark move constructor as
5095 noexcept.
5096 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5097 constructor as noexcept.
5098 * completer.h (struct completion_result): Mark move constructor as
5099 noexcept.
5100 * completer.c (completion_result::completion_result): Use
5101 initialization style. Don't call reset_match_list.
5102
5103 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5104
5105 * MAINTAINERS (Write After Approval): Add myself.
5106
5107 2020-04-18 Tom Tromey <tom@tromey.com>
5108
5109 * windows-tdep.c (init_w32_command_list)
5110 (w32_prefix_command_valid): Restore.
5111 (_initialize_windows_tdep): Call init_w32_command_list.
5112
5113 2020-04-18 Tom Tromey <tom@tromey.com>
5114
5115 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5116 * value.c (value_fn_field): Update.
5117 * valops.c (find_function_in_inferior)
5118 (value_allocate_space_in_inferior): Update.
5119 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5120 Update.
5121 * tui/tui-source.c (tui_source_window::set_contents): Update.
5122 * symtab.c (lookup_global_or_static_symbol)
5123 (find_function_start_sal_1, skip_prologue_sal)
5124 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5125 * symmisc.c (dump_msymbols, dump_symtab_1)
5126 (maintenance_print_one_line_table): Update.
5127 * symfile.c (init_entry_point_info, section_is_mapped)
5128 (list_overlays_command, simple_read_overlay_table)
5129 (simple_overlay_update_1): Update.
5130 * stap-probe.c (handle_stap_probe): Update.
5131 * stabsread.c (dbx_init_float_type, define_symbol)
5132 (read_one_struct_field, read_enum_type, read_range_type): Update.
5133 * source.c (info_line_command): Update.
5134 * python/python.c (gdbpy_source_objfile_script)
5135 (gdbpy_execute_objfile_script): Update.
5136 * python/py-type.c (save_objfile_types): Update.
5137 * python/py-objfile.c (py_free_objfile): Update.
5138 * python/py-inferior.c (python_new_objfile): Update.
5139 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5140 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5141 (maintenance_check_psymtabs): Update.
5142 * printcmd.c (info_address_command): Update.
5143 * objfiles.h (struct objfile) <arch>: New method, from
5144 get_objfile_arch.
5145 (get_objfile_arch): Don't declare.
5146 * objfiles.c (get_objfile_arch): Remove.
5147 (filter_overlapping_sections): Update.
5148 * minsyms.c (msymbol_is_function): Update.
5149 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5150 (output_nondebug_symbol): Update.
5151 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5152 (mdebug_expand_psymtab): Update.
5153 * machoread.c (macho_add_oso_symfile): Update.
5154 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5155 Update.
5156 * linux-fork.c (checkpoint_command): Update.
5157 * linespec.c (convert_linespec_to_sals): Update.
5158 * jit.c (finalize_symtab): Update.
5159 * infrun.c (insert_exception_resume_from_probe): Update.
5160 * ia64-tdep.c (ia64_find_unwind_table): Update.
5161 * hppa-tdep.c (internalize_unwinds): Update.
5162 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5163 Update.
5164 * gcore.c (call_target_sbrk): Update.
5165 * elfread.c (record_minimal_symbol, elf_symtab_read)
5166 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5167 (elf_gnu_ifunc_resolve_by_got): Update.
5168 * dwarf2/read.c (create_addrmap_from_index)
5169 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5170 (read_debug_names_from_section)
5171 (process_psymtab_comp_unit_reader, add_partial_symbol)
5172 (add_partial_subprogram, process_full_comp_unit)
5173 (read_file_scope, read_func_scope, read_lexical_block_scope)
5174 (read_call_site_scope, dwarf2_ranges_read)
5175 (dwarf2_record_block_ranges, dwarf2_add_field)
5176 (mark_common_block_symbol_computed, read_tag_pointer_type)
5177 (read_tag_string_type, dwarf2_init_float_type)
5178 (dwarf2_init_complex_target_type, read_base_type)
5179 (partial_die_info::read, partial_die_info::read)
5180 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5181 (dwarf2_fetch_die_loc_sect_off): Update.
5182 * dwarf2/loc.c (dwarf2_find_location_expression)
5183 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5184 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5185 (dwarf2_loc_desc_get_symbol_read_needs)
5186 (locexpr_describe_location_piece, locexpr_describe_location_1)
5187 (loclist_describe_location): Update.
5188 * dwarf2/index-write.c (write_debug_names): Update.
5189 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5190 * dtrace-probe.c (dtrace_process_dof): Update.
5191 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5192 (process_one_symbol): Update.
5193 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5194 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5195 (coff_read_enum_type): Update.
5196 * cli/cli-cmds.c (edit_command, list_command): Update.
5197 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5198 * breakpoint.c (create_overlay_event_breakpoint)
5199 (create_longjmp_master_breakpoint)
5200 (create_std_terminate_master_breakpoint)
5201 (create_exception_master_breakpoint, get_sal_arch): Update.
5202 * block.c (block_gdbarch): Update.
5203 * annotate.c (annotate_source_line): Update.
5204
5205 2020-04-17 Tom Tromey <tromey@adacore.com>
5206
5207 * auto-load.c (show_auto_load_cmd): Remove.
5208 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5209 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5210 (maintenance_print_arc_command): Remove.
5211 * tui/tui-win.c (tui_command): Remove.
5212 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5213 * tui/tui-layout.c (tui_layout_command): Remove.
5214 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5215 * python/python.c (user_set_python, user_show_python): Remove.
5216 (_initialize_python): Use add_basic_prefix_cmd,
5217 add_show_prefix_cmd.
5218 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5219 (install_gdb_commands): Use add_basic_prefix_cmd,
5220 add_show_prefix_cmd.
5221 (info_guile_command): Remove.
5222 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5223 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5224 add_show_prefix_cmd.
5225 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5226 Remove do_set and do_show parameters.
5227 * cli/cli-style.c (set_style, show_style): Remove.
5228 (_initialize_cli_style): Use add_basic_prefix_cmd,
5229 add_show_prefix_cmd.
5230 (cli_style_option::add_setshow_commands): Remove do_set and
5231 do_show parameters.
5232 (cli_style_option::add_setshow_commands): Use
5233 add_basic_prefix_cmd, add_show_prefix_cmd.
5234 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5235 (set_style_name): Remove.
5236 * cli/cli-dump.c (dump_command, append_command): Remove.
5237 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5238 (tekhex_dump_command, binary_dump_command)
5239 (binary_append_command): Remove.
5240 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5241 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5242 (init_w32_command_list): Remove; move into ...
5243 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5244 * valprint.c (set_print, show_print, set_print_raw)
5245 (show_print_raw): Remove.
5246 (_initialize_valprint): Use add_basic_prefix_cmd,
5247 add_show_prefix_cmd.
5248 * typeprint.c (set_print_type, show_print_type): Remove.
5249 (_initialize_typeprint): Use add_basic_prefix_cmd,
5250 add_show_prefix_cmd.
5251 * record.c (set_record_command, show_record_command): Remove.
5252 (_initialize_record): Use add_basic_prefix_cmd,
5253 add_show_prefix_cmd.
5254 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5255 add_show_prefix_cmd.
5256 (info_command, show_command, set_debug, show_debug): Remove.
5257 * top.h (set_history, show_history): Don't declare.
5258 * top.c (set_history, show_history): Remove.
5259 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5260 (unset_tdesc_cmd): Remove.
5261 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5262 add_show_prefix_cmd.
5263 * symtab.c (info_module_command): Remove.
5264 (_initialize_symtab): Use add_basic_prefix_cmd.
5265 * symfile.c (overlay_command): Remove.
5266 (_initialize_symfile): Use add_basic_prefix_cmd.
5267 * sparc64-tdep.c (info_adi_command): Remove.
5268 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5269 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5270 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5271 add_show_prefix_cmd.
5272 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5273 (_initialize_serial): Use add_basic_prefix_cmd,
5274 add_show_prefix_cmd.
5275 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5276 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5277 add_show_prefix_cmd.
5278 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5279 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5280 add_show_prefix_cmd.
5281 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5282 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5283 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5284 add_show_prefix_cmd.
5285 * remote.c (remote_command, set_remote_cmd): Remove.
5286 (_initialize_remote): Use add_basic_prefix_cmd.
5287 * record-full.c (set_record_full_command)
5288 (show_record_full_command): Remove.
5289 (_initialize_record_full): Use add_basic_prefix_cmd,
5290 add_show_prefix_cmd.
5291 * record-btrace.c (cmd_set_record_btrace)
5292 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5293 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5294 (cmd_show_record_btrace_pt): Remove.
5295 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5296 add_show_prefix_cmd.
5297 * ravenscar-thread.c (set_ravenscar_command)
5298 (show_ravenscar_command): Remove.
5299 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5300 add_show_prefix_cmd.
5301 * mips-tdep.c (show_mips_command, set_mips_command)
5302 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5303 add_show_prefix_cmd.
5304 * maint.c (maintenance_command, maintenance_info_command)
5305 (maintenance_check_command, maintenance_print_command)
5306 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5307 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5308 add_show_prefix_cmd.
5309 (show_per_command_cmd): Remove.
5310 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5311 Remove.
5312 (maintenance_show_test_settings_cmd): Remove.
5313 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5314 add_show_prefix_cmd.
5315 * maint-test-options.c (maintenance_test_options_command):
5316 Remove.
5317 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5318 * macrocmd.c (macro_command): Remove
5319 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5320 * language.c (set_check, show_check): Remove.
5321 (_initialize_language): Use add_basic_prefix_cmd,
5322 add_show_prefix_cmd.
5323 * infcmd.c (unset_command): Remove.
5324 (_initialize_infcmd): Use add_basic_prefix_cmd.
5325 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5326 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5327 add_show_prefix_cmd.
5328 * go32-nat.c (go32_info_dos_command): Remove.
5329 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5330 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5331 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5332 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5333 (_initialize_frame): Use add_basic_prefix_cmd,
5334 add_show_prefix_cmd.
5335 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5336 (_initialize_dcache): Use add_basic_prefix_cmd,
5337 add_show_prefix_cmd.
5338 * cp-support.c (maint_cplus_command): Remove.
5339 (_initialize_cp_support): Use add_basic_prefix_cmd.
5340 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5341 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5342 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5343 add_basic_prefix_cmd, add_show_prefix_cmd.
5344 * breakpoint.c (save_command): Remove.
5345 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5346 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5347 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5348 add_show_prefix_cmd.
5349 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5350 (set_ada_command, show_ada_command): Remove.
5351 (_initialize_ada_language): Use add_basic_prefix_cmd,
5352 add_show_prefix_cmd.
5353 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5354
5355 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5356
5357 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5358 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5359
5360 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5363 warning messages.
5364
5365 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5366
5367 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5368 import table is not at beginning of .idata section.
5369
5370 2020-04-16 Pedro Alves <palves@redhat.com>
5371
5372 * inferior.c (delete_inferior): Use delete operator directly
5373 instead of delete_program_space.
5374 * progspace.c (add_program_space): New, factored out from
5375 program_space::program_space.
5376 (remove_program_space): New, factored out from
5377 delete_program_space.
5378 (program_space::program_space): Remove intro comment. Rewrite.
5379 (program_space::~program_space): Remove intro comment. Call
5380 remove_program_space.
5381 (delete_program_space): Delete.
5382 * progspace.h (program_space::program_space): Make explicit. Move
5383 intro comment here, adjusted.
5384 (program_space::~program_space): Move intro comment here,
5385 adjusted.
5386 (delete_program_space): Remove.
5387
5388 2020-04-16 Tom Tromey <tromey@adacore.com>
5389
5390 * windows-nat.c (windows_nat::handle_access_violation): New
5391 function.
5392 * nat/windows-nat.h (handle_access_violation): Declare.
5393 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5394 windows-nat.c. Call handle_access_violation.
5395
5396 2020-04-16 Tom de Vries <tdevries@suse.de>
5397
5398 PR symtab/25791
5399 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5400 CUs without psymtab.
5401
5402 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5403
5404 * python/python.c (do_start_initialization): Don't call
5405 PyEval_InitThreads for Python 3.9 and beyond.
5406
5407 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5408
5409 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5410 thread functions.
5411 (obsd_nat_target::wait): Likewise.
5412
5413 2020-04-15 Tom Tromey <tromey@adacore.com>
5414
5415 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5416 (DEBUG_EXCEPT): Use debug_printf.
5417
5418 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5419
5420 * completer.c (class completion_tracker::completion_hash_entry)
5421 <hash_name>: New member function.
5422 (completion_tracker::discard_completions): New callback to hash a
5423 completion_hash_entry, pass this to htab_create_alloc.
5424
5425 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5426
5427 * windows-nat.c (windows_make_so): Warn rather than stopping with
5428 an error if realpath() fails.
5429
5430 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5431
5432 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5433 (nbsd_nat_target::info_proc): Add do_status.
5434
5435 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5436 Tom de Vries <tdevries@suse.de>
5437
5438 PR symtab/25718
5439 * psympriv.h (struct partial_symtab::read_symtab)
5440 (struct partial_symtab::expand_psymtab)
5441 (struct partial_symtab::read_dependencies): Update comments.
5442 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5443 read_symtab for includer.
5444 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5445 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5446 (struct dwarf2_include_psymtab::m_readin): Remove.
5447 (struct dwarf2_include_psymtab::includer): New member function.
5448 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5449
5450 2020-04-14 Tom de Vries <tdevries@suse.de>
5451
5452 PR symtab/25720
5453 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5454 with NULL symbol_matcher and lookup_name.
5455 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5456 and lookup_name.
5457 * dwarf2/read.c (dw2_expand_symtabs_matching)
5458 (dw2_debug_names_expand_symtabs_matching): Same.
5459 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5460 Make lookup_name a pointer. Update comment.
5461 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5462 lookup_name being a pointer.
5463 * symfile.c (expand_symtabs_matching): Same.
5464 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5465 * linespec.c (iterate_over_all_matching_symtabs): Same.
5466
5467 2020-04-13 Tom Tromey <tom@tromey.com>
5468
5469 * run-on-main-thread.c: Update include.
5470 * unittests/main-thread-selftests.c: Update include.
5471 * tui/tui-win.c: Update include.
5472 * tui/tui-io.c: Update include.
5473 * tui/tui-interp.c: Update include.
5474 * tui/tui-hooks.c: Update include.
5475 * top.h: Update include.
5476 * top.c: Update include.
5477 * ser-base.c: Update include.
5478 * remote.c: Update include.
5479 * remote-notif.c: Update include.
5480 * remote-fileio.c: Update include.
5481 * record-full.c: Update include.
5482 * record-btrace.c: Update include.
5483 * python/python.c: Update include.
5484 * posix-hdep.c: Update include.
5485 * mingw-hdep.c: Update include.
5486 * mi/mi-main.c: Update include.
5487 * mi/mi-interp.c: Update include.
5488 * main.c: Update include.
5489 * linux-nat.c: Update include.
5490 * interps.c: Update include.
5491 * infrun.c: Update include.
5492 * inf-loop.c: Update include.
5493 * event-top.c: Update include.
5494 * event-loop.c: Move to ../gdbsupport/.
5495 * event-loop.h: Move to ../gdbsupport/.
5496 * async-event.h: Update include.
5497 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5498
5499 2020-04-13 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-win.c: Include async-event.h.
5502 * remote.c: Include async-event.h.
5503 * remote-notif.c: Include async-event.h.
5504 * record-full.c: Include async-event.h.
5505 * record-btrace.c: Include async-event.h.
5506 * infrun.c: Include async-event.h.
5507 * event-top.c: Include async-event.h.
5508 * event-loop.h: Move some declarations to async-event.h.
5509 * event-loop.c: Don't include ser-event.h or top.h. Move some
5510 code to async-event.c.
5511 * async-event.h: New file.
5512 * async-event.c: New file.
5513 * Makefile.in (COMMON_SFILES): Add async-event.c.
5514 (HFILES_NO_SRCDIR): Add async-event.h.
5515
5516 2020-04-13 Tom Tromey <tom@tromey.com>
5517
5518 * utils.c (flush_streams): New function.
5519 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5520
5521 2020-04-13 Tom Tromey <tom@tromey.com>
5522
5523 * event-loop.c (handle_file_event): Use warning, not
5524 printf_unfiltered.
5525
5526 2020-04-13 Tom Tromey <tom@tromey.com>
5527
5528 * event-loop.c: Include <chrono>.
5529
5530 2020-04-13 Tom Tromey <tom@tromey.com>
5531
5532 * gdb_select.h: Move to ../gdbsupport/.
5533 * event-loop.c: Update include path.
5534 * top.c: Update include path.
5535 * ser-base.c: Update include path.
5536 * ui-file.c: Update include path.
5537 * ser-tcp.c: Update include path.
5538 * guile/scm-ports.c: Update include path.
5539 * posix-hdep.c: Update include path.
5540 * ser-unix.c: Update include path.
5541 * gdb_usleep.c: Update include path.
5542 * mingw-hdep.c: Update include path.
5543 * inflow.c: Update include path.
5544 * infrun.c: Update include path.
5545 * event-top.c: Update include path.
5546
5547 2020-04-13 Tom Tromey <tom@tromey.com>
5548
5549 * configure: Rebuild.
5550 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5551
5552 2020-04-13 Tom Tromey <tom@tromey.com>
5553
5554 * event-loop.h (start_event_loop): Don't declare.
5555 * event-loop.c (start_event_loop): Move...
5556 * main.c (start_event_loop): ...here. Now static.
5557
5558 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5559
5560 * MAINTAINERS: Update my email address.
5561
5562 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5563
5564 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5565 IP_ALL.
5566
5567 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5568
5569 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5570 (nbsd_nat_target::info_proc): Add do_cmdline.
5571
5572 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5573
5574 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5575 (nbsd_nat_target::info_proc): Add do_cwd.
5576
5577 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5578
5579 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5580
5581 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5582
5583 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5584 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5585 (nbsd_nat_target::info_proc): New functions.
5586 * nbsd-nat.c (kinfo_get_vmmap): New function.
5587 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5588 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5589 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5590 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5591 functions.
5592 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5593 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5594 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5595 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5596 (KINFO_VME_FLAG_GROWS_DOWN): New.
5597
5598 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5599
5600 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5601 bit shift.
5602
5603 2020-04-10 Tom Tromey <tromey@adacore.com>
5604
5605 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5606
5607 2020-04-10 Tom Tromey <tromey@adacore.com>
5608
5609 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5610 separate debug files.
5611
5612 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5613
5614 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5615 Move to...
5616 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5617 ... here.
5618 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5619 Check for STATUS_WX86_BREAKPOINT.
5620 (windows_nat_target::wait): Same.
5621
5622 2020-04-10 Tom de Vries <tdevries@suse.de>
5623
5624 PR cli/25808
5625 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5626
5627 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5628
5629 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5630 (Write After Approval): Remove Tom de Vries.
5631
5632 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5633
5634 revert partially:
5635 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5636
5637 * buildsym.c (record_line): Fix undefined behavior and preserve
5638 lines at eof.
5639
5640 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5641
5642 * auxv.h (svr4_auxv_parse): New.
5643 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5644 and generic_auxv_parse.
5645 (svr4_auxv_parse): Add.
5646 * obsd-tdep.c: Include "auxv.h".
5647 (obsd_auxv_parse): Remove.
5648 (obsd_init_abi): Remove comment.
5649 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5650 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5651 * nbsd-tdep.c: Include "auxv.h".
5652 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5653
5654 2020-04-08 Tom Tromey <tromey@adacore.com>
5655
5656 * nat/windows-nat.h (last_wait_event): Don't declare.
5657 (wait_for_debug_event): Update comment.
5658 * nat/windows-nat.c (last_wait_event): Now static.
5659
5660 2020-04-08 Tom Tromey <tromey@adacore.com>
5661
5662 * windows-nat.c (wait_for_debug_event): Move to
5663 nat/windows-nat.c.
5664 * nat/windows-nat.h (wait_for_debug_event): Declare.
5665 * nat/windows-nat.c (wait_for_debug_event): Move from
5666 windows-nat.c. No longer static.
5667
5668 2020-04-08 Tom Tromey <tromey@adacore.com>
5669
5670 * windows-nat.c (get_windows_debug_event): Use
5671 fetch_pending_stop.
5672 * nat/windows-nat.h (fetch_pending_stop): Declare.
5673 * nat/windows-nat.c (fetch_pending_stop): New function.
5674
5675 2020-04-08 Tom Tromey <tromey@adacore.com>
5676
5677 * windows-nat.c (windows_continue): Use matching_pending_stop and
5678 continue_last_debug_event.
5679 * nat/windows-nat.h (matching_pending_stop)
5680 (continue_last_debug_event): Declare.
5681 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5682 (matching_pending_stop, continue_last_debug_event): New
5683 functions.
5684
5685 2020-04-08 Tom Tromey <tromey@adacore.com>
5686
5687 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5688 (handle_exception_result): Move to nat/windows-nat.h.
5689 (DEBUG_EXCEPTION_SIMPLE): Remove.
5690 (windows_nat::handle_ms_vc_exception): New function.
5691 (handle_exception): Move to nat/windows-nat.c.
5692 (get_windows_debug_event): Update.
5693 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5694 nat/windows-nat.c.
5695 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5696 (handle_exception_result): Move from windows-nat.c.
5697 (handle_exception): Declare.
5698 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5699 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5700 windows-nat.c.
5701
5702 2020-04-08 Tom Tromey <tromey@adacore.com>
5703
5704 * windows-nat.c (exception_count, event_count): Remove.
5705 (handle_exception, get_windows_debug_event)
5706 (do_initial_windows_stuff): Update.
5707
5708 2020-04-08 Tom Tromey <tromey@adacore.com>
5709
5710 * windows-nat.c (windows_nat::handle_load_dll)
5711 (windows_nat::handle_unload_dll): Rename. No longer static.
5712 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5713 Declare.
5714
5715 2020-04-08 Tom Tromey <tromey@adacore.com>
5716
5717 * complaints.h (stop_whining): Declare at top-level.
5718 (complaint): Don't declare stop_whining.
5719
5720 2020-04-08 Tom Tromey <tromey@adacore.com>
5721
5722 * windows-nat.c (windows_nat::handle_output_debug_string):
5723 Rename. No longer static.
5724 * nat/windows-nat.h (handle_output_debug_string): Declare.
5725
5726 2020-04-08 Tom Tromey <tromey@adacore.com>
5727
5728 * windows-nat.c (current_process_handle, current_process_id)
5729 (main_thread_id, last_sig, current_event, last_wait_event)
5730 (current_windows_thread, desired_stop_thread_id, pending_stops)
5731 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5732 (display_selectors, fake_create_process)
5733 (get_windows_debug_event): Update.
5734 * nat/windows-nat.h (current_process_handle, current_process_id)
5735 (main_thread_id, last_sig, current_event, last_wait_event)
5736 (current_windows_thread, desired_stop_thread_id, pending_stops)
5737 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5738 * nat/windows-nat.c (current_process_handle, current_process_id)
5739 (main_thread_id, last_sig, current_event, last_wait_event)
5740 (current_windows_thread, desired_stop_thread_id, pending_stops)
5741 (siginfo_er): New globals. Move from windows-nat.c.
5742
5743 2020-04-08 Tom Tromey <tromey@adacore.com>
5744
5745 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5746 (handle_load_dll): Update.
5747 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5748
5749 2020-04-08 Tom Tromey <tromey@adacore.com>
5750
5751 * windows-nat.c (enum thread_disposition_type): Move to
5752 nat/windows-nat.h.
5753 (windows_nat::thread_rec): Rename from thread_rec. No longer
5754 static.
5755 (windows_add_thread, windows_nat_target::fetch_registers)
5756 (windows_nat_target::store_registers, handle_exception)
5757 (windows_nat_target::resume, get_windows_debug_event)
5758 (windows_nat_target::get_tib_address)
5759 (windows_nat_target::thread_name)
5760 (windows_nat_target::thread_alive): Update.
5761 * nat/windows-nat.h (enum thread_disposition_type): Move from
5762 windows-nat.c.
5763 (thread_rec): Declare.
5764
5765 2020-04-08 Tom Tromey <tromey@adacore.com>
5766
5767 * windows-nat.c: Add "using namespace".
5768 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5769 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5770
5771 2020-04-08 Tom Tromey <tromey@adacore.com>
5772
5773 * nat/windows-nat.h (struct windows_thread_info): Declare
5774 destructor.
5775 * nat/windows-nat.c (~windows_thread_info): New.
5776
5777 2020-04-08 Tom Tromey <tromey@adacore.com>
5778
5779 PR gdb/22992
5780 * windows-nat.c (current_event): Update comment.
5781 (last_wait_event, desired_stop_thread_id): New globals.
5782 (struct pending_stop): New.
5783 (pending_stops): New global.
5784 (windows_nat_target) <stopped_by_sw_breakpoint>
5785 <supports_stopped_by_sw_breakpoint>: New methods.
5786 (windows_fetch_one_register): Add assertions. Adjust PC.
5787 (windows_continue): Handle pending stops. Suspend other threads
5788 when stepping. Use last_wait_event
5789 (wait_for_debug_event): New function.
5790 (get_windows_debug_event): Use wait_for_debug_event. Handle
5791 pending stops. Queue spurious stops.
5792 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5793 (windows_nat_target::kill): Use wait_for_debug_event.
5794 * nat/windows-nat.h (struct windows_thread_info)
5795 <stopped_at_software_breakpoint>: New field.
5796 * nat/windows-nat.c (windows_thread_info::resume): Clear
5797 stopped_at_software_breakpoint.
5798
5799 2020-04-08 Tom Tromey <tromey@adacore.com>
5800
5801 * windows-nat.c (enum thread_disposition_type): New.
5802 (thread_rec): Replace "get_context" parameter with "disposition";
5803 change type.
5804 (windows_add_thread, windows_nat_target::fetch_registers)
5805 (windows_nat_target::store_registers, handle_exception)
5806 (windows_nat_target::resume, get_windows_debug_event)
5807 (windows_nat_target::get_tib_address)
5808 (windows_nat_target::thread_name)
5809 (windows_nat_target::thread_alive): Update.
5810
5811 2020-04-08 Tom Tromey <tromey@adacore.com>
5812
5813 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5814 (windows_continue): Use windows_continue::resume.
5815 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5816 resume>: Declare new methods.
5817 * nat/windows-nat.c: New file.
5818 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5819
5820 2020-04-08 Tom Tromey <tromey@adacore.com>
5821
5822 * windows-nat.c (windows_add_thread, windows_delete_thread)
5823 (windows_nat_target::fetch_registers)
5824 (windows_nat_target::store_registers, fake_create_process)
5825 (windows_nat_target::resume, windows_nat_target::resume)
5826 (get_windows_debug_event, windows_nat_target::wait)
5827 (windows_nat_target::pid_to_str)
5828 (windows_nat_target::get_tib_address)
5829 (windows_nat_target::get_ada_task_ptid)
5830 (windows_nat_target::thread_name)
5831 (windows_nat_target::thread_alive): Use lwp, not tid.
5832
5833 2020-04-08 Tom Tromey <tromey@adacore.com>
5834
5835 * windows-nat.c (handle_exception)
5836 (windows_nat_target::thread_name): Update.
5837 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5838 <name>: Now unique_xmalloc_ptr.
5839
5840 2020-04-08 Tom Tromey <tromey@adacore.com>
5841
5842 * windows-nat.c (thread_rec)
5843 (windows_nat_target::fetch_registers): Update.
5844 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5845 Update comment.
5846 <debug_registers_changed, reload_context>: Now bool.
5847
5848 2020-04-08 Tom Tromey <tromey@adacore.com>
5849
5850 * windows-nat.c (windows_add_thread): Use new.
5851 (windows_init_thread_list, windows_delete_thread): Use delete.
5852 (get_windows_debug_event): Update.
5853 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5854 destructor, and initializers.
5855
5856 2020-04-08 Tom Tromey <tromey@adacore.com>
5857
5858 * windows-nat.c (struct windows_thread_info): Remove.
5859 * nat/windows-nat.h: New file.
5860
5861 2020-04-08 Tom Tromey <tromey@adacore.com>
5862
5863 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5864 (thread_rec, windows_add_thread, windows_delete_thread)
5865 (windows_continue): Update.
5866
5867 2020-04-08 Tom Tromey <tromey@adacore.com>
5868
5869 * windows-nat.c (struct windows_thread_info): Remove typedef.
5870 (thread_head): Remove.
5871 (thread_list): New global.
5872 (thread_rec, windows_add_thread, windows_init_thread_list)
5873 (windows_delete_thread, windows_continue): Update.
5874
5875 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * windows-tdep.h (windows_init_abi): Add comment.
5878 (cygwin_init_abi): New declaration.
5879 * windows-tdep.c: Split signal enumeration in two, one for
5880 Windows and one for Cygwin.
5881 (windows_gdb_signal_to_target): Only deal with signal of the
5882 Windows OS ABI.
5883 (cygwin_gdb_signal_to_target): New function.
5884 (windows_init_abi): Rename to windows_init_abi_common, don't set
5885 gdb_signal_to_target gdbarch method. Add new new function with
5886 this name.
5887 (cygwin_init_abi): New function.
5888 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5889 comment. Don't call windows_init_abi.
5890 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5891 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5892 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5893 i386_windows_init_abi_common, don't call windows_init_abi. Add
5894 a new function of this name.
5895 (i386_cygwin_init_abi): New function.
5896 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5897 OS ABI Cygwin.
5898
5899 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5900
5901 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5902 parameter.c.
5903 (dwarf2_read_gdb_index): Update.
5904
5905 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5906
5907 * nbsd-tdep.c: Include "objfiles.h".
5908 (nbsd_skip_solib_resolver): New.
5909 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5910
5911 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5912
5913 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5914 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5915 with DW_LLE_base_addressx are being emitted in DWARFv5.
5916 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5917 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5918 unsigned integer.
5919
5920 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5921
5922 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5923 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5924 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5925 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5926 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5927 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5928 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5929
5930
5931 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5932
5933 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5934 (read_loclist_index): New function definition.
5935 (lookup_loclist_base): New function definition.
5936 (read_loclist_header): New function definition.
5937 (dwarf2_cu): Add loclist_base and loclist_header field.
5938 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5939 (read_full_die_1): Read the value of DW_AT_loclists_base.
5940 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5941 (read_attribute_value): Handle DW_FORM_loclistx.
5942 (skip_one_die): Handle DW_FORM_loclistx.
5943 (loclist_header): New structure declaration.
5944 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5945
5946 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5949 constructor. Remove `addr` parameter from other constructor and
5950 add `per_cu` parameter.
5951 * dwarf2/read.c (create_partial_symtab): Update.
5952
5953 2020-04-07 Tom de Vries <tdevries@suse.de>
5954
5955 PR symtab/25796
5956 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5957 (partial_die_info::fixup): Inherit has_const_value.
5958
5959 2020-04-07 Tom de Vries <tdevries@suse.de>
5960
5961 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5962 symbols without address.
5963
5964 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5965
5966 * nbsd-nat.h (struct thread_info): Add forward declaration.
5967 (nbsd_nat_target::thread_alive): Add.
5968 (nbsd_nat_target::thread_name): Likewise.
5969 (nbsd_nat_target::update_thread_list): Likewise.
5970 (update_thread_list::post_attach): Likewise.
5971 (post_attach::pid_to_str): Likewise.
5972 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5973 (nbsd_thread_lister): Add.
5974 (nbsd_nat_target::thread_alive): Likewise.
5975 (nbsd_nat_target::thread_name): Likewise.
5976 (nbsd_add_threads): Likewise.
5977 (update_thread_list::post_attach): Likewise.
5978 (nbsd_nat_target::update_thread_list): Likewise.
5979 (post_attach::pid_to_str): Likewise.
5980
5981 2020-04-06 Tom Tromey <tromey@adacore.com>
5982
5983 * ada-valprint.c (print_variant_part): Extract the variant field.
5984 (print_field_values): Use the field as the outer value when
5985 recursing.
5986
5987 2020-04-06 Tom Tromey <tromey@adacore.com>
5988
5989 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5990 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5991 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5992 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5993 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5994
5995 2020-04-06 Tom Tromey <tromey@adacore.com>
5996
5997 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5998 TYPE_CODE_ERROR.
5999
6000 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6001
6002 * nbsd-tdep.c: Include "gdbarch.h".
6003 Define enum with NetBSD signal numbers.
6004 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6005 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6006 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6007 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6008 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6009 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6010 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6011 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6012 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6013 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6014 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6015 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6016
6017 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6018
6019 PR gdb/25325
6020 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6021
6022 2020-04-03 Tom Tromey <tromey@adacore.com>
6023
6024 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6025 Read constant block.
6026
6027 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6030 (gdb_bfd_get_full_section_contents): New declaration.
6031 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6032 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6033 gdb_bfd_get_full_section_contents.
6034
6035 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6036
6037 * exec.c (build_section_table): Replace internal_error with
6038 gdb_assert.
6039 (section_table_xfer_memory_partial): Likewise.
6040 * mdebugread.c (parse_partial_symbols): Likewise.
6041 * psymtab.c (lookup_partial_symbol): Likewise.
6042 * utils.c (wrap_here): Likewise.
6043
6044 2020-04-02 Tom Tromey <tromey@adacore.com>
6045
6046 * f-lang.c (build_fortran_types): Use arch_type to initialize
6047 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6048
6049 2020-04-02 Tom Tromey <tromey@adacore.com>
6050
6051 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6052 of attributes.
6053
6054 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6055 Bernd Edlinger <bernd.edlinger@hotmail.de>
6056 Tom Tromey <tromey@adacore.com>
6057
6058 * buildsym.c (buildsym_compunit::record_line): Remove
6059 deduplication code.
6060
6061 2020-04-02 Tom de Vries <tdevries@suse.de>
6062
6063 PR ada/24671
6064 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6065
6066 2020-04-02 Tom de Vries <tdevries@suse.de>
6067
6068 * dwarf2/read.c (dwarf2_gdb_index_functions,
6069 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6070 NULL.
6071 * psymtab.c (psym_lookup_global_symbol_language): New function.
6072 (psym_functions): Init psym_lookup_global_symbol_language with
6073 psym_lookup_global_symbol_language.
6074 * symfile-debug.c (debug_sym_quick_functions): Init
6075 lookup_global_symbol_language with NULL.
6076 * symfile.c (set_initial_language): Remove fixme comment.
6077 * symfile.h (struct quick_symbol_functions): Add
6078 lookup_global_symbol_language.
6079 * symtab.c (find_quick_global_symbol_language): New function.
6080 (find_main_name): Use find_quick_global_symbol_language.
6081
6082 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6085
6086 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6087
6088 * buildsym.c (record_line): Fix undefined behavior and preserve
6089 lines at eof.
6090
6091 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6092
6093 * buildsym.c (record_line): Fix the resizing condition.
6094
6095 2020-04-01 Tom Tromey <tom@tromey.com>
6096
6097 * value.h (value_literal_complex): Add comment.
6098 * valops.c (value_literal_complex): Refer to value.h.
6099
6100 2020-04-01 Tom Tromey <tom@tromey.com>
6101
6102 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6103 (scalar_type): New rule, from typebase.
6104 (typebase): Use scalar_type. Recognize complex types.
6105 (field_name): Handle FLOAT_KEYWORD.
6106 (ident_tokens): Add _Complex and __complex__.
6107
6108 2020-04-01 Tom Tromey <tom@tromey.com>
6109
6110 PR exp/25299:
6111 * valarith.c (promotion_type, complex_binop): New functions.
6112 (scalar_binop): Handle complex numbers. Use promotion_type.
6113 (value_pos, value_neg, value_complement): Handle complex numbers.
6114
6115 2020-04-01 Tom Tromey <tom@tromey.com>
6116
6117 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6118 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6119 (parse_number): Handle complex numbers.
6120
6121 2020-04-01 Tom Tromey <tom@tromey.com>
6122
6123 * c-valprint.c (c_decorations): Change complex suffix to "i".
6124
6125 2020-04-01 Tom Tromey <tom@tromey.com>
6126
6127 * valprint.c (generic_value_print_complex): Use accessors.
6128 * value.h (value_real_part, value_imaginary_part): Declare.
6129 * valops.c (value_real_part, value_imaginary_part): New
6130 functions.
6131 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6132
6133 2020-04-01 Tom Tromey <tom@tromey.com>
6134
6135 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6136 (read_range_type): Update.
6137 * mdebugread.c (basic_type): Update.
6138 * go-lang.c (build_go_types): Use init_complex_type.
6139 * gdbtypes.h (struct main_type) <complex_type>: New member.
6140 (init_complex_type): Update.
6141 (arch_complex_type): Don't declare.
6142 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6143 Make name if none given. Use alloc_type_copy. Look for cached
6144 complex type.
6145 (arch_complex_type): Remove.
6146 (gdbtypes_post_init): Use init_complex_type.
6147 * f-lang.c (build_fortran_types): Use init_complex_type.
6148 * dwarf2/read.c (read_base_type): Update.
6149 * d-lang.c (build_d_types): Use init_complex_type.
6150 * ctfread.c (read_base_type): Update.
6151
6152 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6153
6154 * infrun.c (stop_all_threads): Update assertion, plus when
6155 stopping threads, take into account that we might be trying
6156 to stop an all-stop target.
6157 (stop_waiting): Call 'stop_all_threads' if there exists a
6158 non-stop target.
6159
6160 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6161
6162 * target.h (exists_non_stop_target): New function declaration.
6163 * target.c (exists_non_stop_target): New function.
6164
6165 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6166
6167 PR gdb/24789
6168 * eval.c (is_integral_or_integral_reference): New function.
6169 (evaluate_subexp_standard): Allow integer references in
6170 pointer arithmetic.
6171
6172 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173
6174 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6175 check for no ptid in the stop reply when the target is non-stop.
6176
6177 2020-04-01 Tom Tromey <tromey@adacore.com>
6178
6179 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6180 "name" parameter to rvalue reference. Initialize m_name_holder.
6181 <lookup_name_info>: New overloads.
6182 <name>: Return gdb::string_view.
6183 <c_str>: New method.
6184 <make_ignore_params>: Update.
6185 <search_name_hash>: Update.
6186 <language_lookup_name>: Return const char *.
6187 <m_name>: Change type.
6188 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6189 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6190 (lookup_name_info::match_any): Update.
6191 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6192 Update.
6193 * minsyms.c (linkage_name_str): Update.
6194 * language.c (default_symbol_name_matcher): Update.
6195 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6196 Update.
6197 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6198 (ada_lookup_name_info::ada_lookup_name_info): Update.
6199 (literal_symbol_name_matcher): Update.
6200
6201 2020-04-01 Tom Tromey <tromey@adacore.com>
6202
6203 * psymtab.c (psymtab_search_name): Remove function.
6204 (psym_lookup_symbol): Create search name and lookup name here.
6205 (lookup_partial_symbol): Remove "name" parameter; add
6206 lookup_name.
6207 (psym_expand_symtabs_for_function): Update.
6208
6209 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6210
6211 PR tui/25597:
6212 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6213
6214 2020-03-31 Tom Tromey <tromey@adacore.com>
6215
6216 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6217 memcpy.
6218
6219 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6220
6221 * features/riscv/32bit-csr.xml: Regenerated.
6222 * features/riscv/64bit-csr.xml: Regenerated.
6223
6224 2020-03-30 Tom Tromey <tromey@adacore.com>
6225
6226 * ada-valprint.c (print_variant_part): Update.
6227 * ada-lang.h (ada_which_variant_applies): Update.
6228 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6229 outer_valaddr parameters; replace with "outer" value parameter.
6230 (to_fixed_variant_branch_type): Update.
6231
6232 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6233
6234 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6235 <list>. Remove inclusion of observable.h.
6236 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6237 (struct arch_lwp_info): New struct.
6238 (class ppc_linux_dreg_interface): New class.
6239 (struct ppc_linux_process_info): New struct.
6240 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6241 <low_new_clone, low_forget_process, low_prepare_to_resume>
6242 <copy_thread_dreg_state, mark_thread_stale>
6243 <mark_debug_registers_changed, register_hw_breakpoint>
6244 <clear_hw_breakpoint, register_wp, clear_wp>
6245 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6246 <num_memory_accesses, get_trigger_type>
6247 <create_watchpoint_request, hwdebug_point_cmp>
6248 <init_arch_lwp_info, get_arch_lwp_info>
6249 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6250 methods.
6251 <struct ptid_hash>: New inner struct.
6252 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6253 members.
6254 (saved_dabr_value, hwdebug_info, max_slots_number)
6255 (struct hw_break_tuple, struct thread_points, ppc_threads)
6256 (have_ptrace_hwdebug_interface)
6257 (hwdebug_find_thread_points_by_tid)
6258 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6259 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6260 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6261 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6262 use m_dreg_interface.
6263 (hwdebug_point_cmp): Change to...
6264 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6265 reference arguments instead of pointers.
6266 (ppc_linux_nat_target::ranged_break_num_registers): Use
6267 m_dreg_interface.
6268 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6269 m_dreg_interface. Call register_hw_breakpoint.
6270 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6271 m_dreg_interface. Call clear_hw_breakpoint.
6272 (get_trigger_type): Change to...
6273 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6274 comment.
6275 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6276 use m_dreg_interface. Call register_hw_breakpoint.
6277 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6278 use m_dreg_interface. Call clear_hw_breakpoint.
6279 (can_use_watchpoint_cond_accel): Change to...
6280 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6281 method. Update comment, use m_dreg_interface and
6282 m_process_info.
6283 (calculate_dvc): Change to...
6284 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6285 m_dreg_interface.
6286 (num_memory_accesses): Change to...
6287 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6288 (check_condition): Change to...
6289 (ppc_linux_nat_target::check_condition): ...this method.
6290 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6291 comment, use m_dreg_interface.
6292 (create_watchpoint_request): Change to...
6293 (ppc_linux_nat_target::create_watchpoint_request): ...this
6294 method. Use m_dreg_interface.
6295 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6296 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6297 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6298 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6299 (ppc_linux_nat_target::low_forget_process)
6300 (ppc_linux_nat_target::low_new_fork)
6301 (ppc_linux_nat_target::low_new_clone)
6302 (ppc_linux_nat_target::low_delete_thread)
6303 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6304 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6305 only call mark_thread_stale.
6306 (ppc_linux_thread_exit): Remove.
6307 (ppc_linux_nat_target::stopped_data_address): Change to...
6308 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6309 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6310 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6311 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6312 comment. Call low_stopped_data_address.
6313 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6314 m_dreg_interface.
6315 (ppc_linux_nat_target::masked_watch_num_registers): Use
6316 m_dreg_interface.
6317 (ppc_linux_nat_target::copy_thread_dreg_state)
6318 (ppc_linux_nat_target::mark_thread_stale)
6319 (ppc_linux_nat_target::mark_debug_registers_changed)
6320 (ppc_linux_nat_target::register_hw_breakpoint)
6321 (ppc_linux_nat_target::clear_hw_breakpoint)
6322 (ppc_linux_nat_target::register_wp)
6323 (ppc_linux_nat_target::clear_wp)
6324 (ppc_linux_nat_target::init_arch_lwp_info)
6325 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6326 (_initialize_ppc_linux_nat): Remove observer callback.
6327
6328 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6329
6330 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6331 (ppc_linux_nat_target::auxv_parse)
6332 (ppc_linux_nat_target::read_description)
6333 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6334 Move up.
6335
6336 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6337
6338 * linux-nat.h (low_new_clone): New method.
6339 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6340
6341 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6344 (dbx_expand_psymtab): ... this.
6345 (start_psymtab): Update.
6346 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6347 (mdebug_expand_psymtab): ... this.
6348 (parse_partial_symbols): Update.
6349 (new_psymtab): Update.
6350 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6351 (xcoff_expand_psymtab): ... this.
6352 (xcoff_start_psymtab): Update.
6353
6354 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6355
6356 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6357 <expand_dependencies>: ... this.
6358 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6359 (partial_symtab::expand_dependencies): ... this.
6360 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6361 Update.
6362 (dwarf2_psymtab::expand_psymtab): Update.
6363 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6364 * mdebugread.c (psymtab_to_symtab_1): Update.
6365 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6366
6367 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6368
6369 * psympriv.h (discard_psymtab): Remove.
6370 * dbxread.c (dbx_end_psymtab): Update.
6371 * xcoffread.c (xcoff_end_psymtab): Update.
6372
6373 2020-03-28 Tom Tromey <tom@tromey.com>
6374
6375 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6376 comment.
6377
6378 2020-03-28 Tom Tromey <tom@tromey.com>
6379
6380 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6381
6382 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6383
6384 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6385
6386 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6387
6388 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6389
6390 2020-03-26 Tom Tromey <tom@tromey.com>
6391
6392 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6393 (mark_common_block_symbol_computed, read_tag_string_type)
6394 (attr_to_dynamic_prop, read_subrange_type): Update.
6395 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6396 to be methods on struct attribute.
6397 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6398 (read_call_site_scope, partial_die_info::read)
6399 (partial_die_info::read, lookup_die_type, follow_die_ref):
6400 Update.
6401 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6402 from dwarf2_get_ref_die_offset.
6403 (attribute::constant_value): New method, from
6404 dwarf2_get_attr_constant_value.
6405 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6406 Declare method.
6407 <constant_value>: New method.
6408
6409 2020-03-26 Tom Tromey <tom@tromey.com>
6410
6411 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6412 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6413 (dwarf_type_encoding_name): Move to stringify.c.
6414 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6415 * dwarf2/stringify.c: New file.
6416 * dwarf2/stringify.h: New file.
6417
6418 2020-03-26 Tom Tromey <tom@tromey.com>
6419
6420 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6421 Rewrite.
6422
6423 2020-03-26 Tom Tromey <tom@tromey.com>
6424
6425 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6426 methods.
6427 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6428 (lookup_ranges_base): Likewise.
6429 (read_cutu_die_from_dwo, read_full_die_1): Update.
6430
6431 2020-03-26 Tom Tromey <tom@tromey.com>
6432
6433 * dwarf2/read.c (read_import_statement, read_file_scope)
6434 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6435 (read_lexical_block_scope, read_call_site_scope)
6436 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6437 (handle_struct_member_die, process_structure_scope)
6438 (update_enumeration_type_from_children)
6439 (process_enumeration_scope, read_array_type, read_common_block)
6440 (read_namespace, read_module, read_subroutine_type): Update.
6441 (sibling_die): Remove.
6442
6443 2020-03-26 Tom Tromey <tom@tromey.com>
6444
6445 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6446 (build_type_psymtabs_reader, read_structure_type)
6447 (read_enumeration_type, read_full_die_1): Update.
6448 (dwarf2_attr_no_follow): Move to die.h.
6449 * dwarf2/die.h (struct die_info) <attr>: New method.
6450
6451 2020-03-26 Tom Tromey <tom@tromey.com>
6452
6453 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6454 <base_address>: Now an optional.
6455 (dwarf2_find_base_address, dwarf2_rnglists_process)
6456 (dwarf2_ranges_process, fill_in_loclist_baton)
6457 (dwarf2_symbol_mark_computed): Update.
6458
6459 2020-03-26 Tom Tromey <tom@tromey.com>
6460
6461 * dwarf2/read.c (struct die_info): Move to die.h.
6462 * dwarf2/die.h: New file.
6463
6464 2020-03-26 Tom Tromey <tom@tromey.com>
6465
6466 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6467 * dwarf2/read.c
6468 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6469 Move to line-header.c.
6470 (read_checked_initial_length_and_offset, read_formatted_entries):
6471 Likewise.
6472 (dwarf_decode_line_header): Split into two.
6473 * dwarf2/line-header.c
6474 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6475 Move from read.c.
6476 (read_checked_initial_length_and_offset, read_formatted_entries):
6477 Likewise.
6478 (dwarf_decode_line_header): New function, split from read.c.
6479
6480 2020-03-26 Tom Tromey <tom@tromey.com>
6481
6482 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6483 Declare method.
6484 * dwarf2/read.c (read_attribute_value): Update.
6485 (dwarf2_per_objfile::read_line_string): Rename from
6486 read_indirect_line_string.
6487 (read_formatted_entries): Update.
6488
6489 2020-03-26 Tom Tromey <tom@tromey.com>
6490
6491 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6492 variable.
6493
6494 2020-03-26 Tom Tromey <tom@tromey.com>
6495
6496 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6497 const.
6498 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6499 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6500 parameter const.
6501
6502 2020-03-26 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6505 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6506 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6507 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6508
6509 2020-03-26 Tom Tromey <tom@tromey.com>
6510
6511 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6512 file_names_size, file_full_name, file_file_name>: Use const.
6513 <file_name_at, file_names>: Add const overload.
6514 * dwarf2/line-header.c (line_header::file_file_name)
6515 (line_header::file_full_name): Update.
6516
6517 2020-03-26 Tom Tromey <tom@tromey.com>
6518
6519 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6520 (macro_start_file, consume_improper_spaces)
6521 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6522 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6523 (dwarf_decode_macros): Move to macro.c.
6524 * dwarf2/macro.c: New file.
6525 * dwarf2/macro.h: New file.
6526 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6527
6528 2020-03-26 Tom Tromey <tom@tromey.com>
6529
6530 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6531 method.
6532 * dwarf2/section.c: New method. From
6533 read_indirect_string_at_offset_from.
6534 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6535 (read_indirect_string_at_offset_from): Move to section.c.
6536 (read_indirect_string_at_offset): Rewrite.
6537 (read_indirect_line_string_at_offset): Remove.
6538 (read_indirect_string, read_indirect_line_string)
6539 (dwarf_decode_macro_bytes): Update.
6540
6541 2020-03-26 Tom Tromey <tom@tromey.com>
6542
6543 * dwarf2/section.h (struct dwarf2_section_info)
6544 <overload_complaint>: Declare.
6545 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6546 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6547 Rename from dwarf2_section_buffer_overflow_complaint.
6548 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6549 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6550
6551 2020-03-26 Tom Tromey <tom@tromey.com>
6552
6553 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6554 Declare.
6555 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6556 Move from read.c.
6557 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6558 to section.c.
6559
6560 2020-03-26 Tom Tromey <tom@tromey.com>
6561
6562 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6563
6564 2020-03-26 Tom Tromey <tom@tromey.com>
6565
6566 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6567 "builder".
6568 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6569 parameter.
6570 (dwarf_decode_macros): Update.
6571
6572 2020-03-26 Tom Tromey <tom@tromey.com>
6573
6574 * dwarf2/read.c (read_attribute_value): Update.
6575 (read_indirect_string_from_dwz): Move to dwz.c; change into
6576 method.
6577 (dwarf_decode_macro_bytes): Update.
6578 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6579 * dwarf2/dwz.c: New file.
6580 * Makefile.in (COMMON_SFILES): Add dwz.c.
6581
6582 2020-03-26 Tom Tromey <tom@tromey.com>
6583
6584 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6585 * dwarf2/read.c: Add include.
6586 * dwarf2/index-write.c: Add include.
6587 * dwarf2/index-cache.c: Add include.
6588 * dwarf2/dwz.h: New file.
6589
6590 2020-03-25 Tom Tromey <tom@tromey.com>
6591
6592 * compile/compile-object-load.c (get_out_value_type): Mention
6593 correct symbol name in error message.
6594
6595 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6596
6597 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6598
6599 2020-03-25 Tom de Vries <tdevries@suse.de>
6600
6601 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6602 * symmisc.c (dump_symtab_1): Print user and includes fields.
6603 (maintenance_info_symtabs): Same.
6604
6605 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6606
6607 PR gdb/25534
6608 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6609 (riscv_regcache_cooked_write): New function.
6610 (riscv_push_dummy_call): Use new function.
6611 (riscv_return_value): Likewise.
6612
6613 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6614
6615 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6616 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6617 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6618 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6619 * infrun.c (follow_fork): Likewise.
6620 (follow_fork_inferior): Likewise.
6621 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6622 * linux-nat.h (class linux_nat_target): Likewise.
6623 * remote.c (class remote_target) <follow_fork>: Likewise.
6624 (remote_target::follow_fork): Likewise.
6625 * target-delegates.c: Re-generate.
6626 * target.c (default_follow_fork): Likewise.
6627 (target_follow_fork): Likewise.
6628 * target.h (struct target_ops) <follow_fork>: Likewise.
6629 (target_follow_fork): Likewise.
6630
6631 2020-03-24 Tom de Vries <tdevries@suse.de>
6632
6633 * psymtab.c (maintenance_info_psymtabs): Print user field.
6634
6635 2020-03-20 Tom Tromey <tromey@adacore.com>
6636
6637 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6638 const.
6639 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6640 const.
6641
6642 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6643
6644 * ptrace.m4: Don't check for ptrace declaration.
6645 * config.in: Re-generate.
6646 * configure: Re-generate.
6647 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6648 not defined.
6649
6650 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6651
6652 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6653 `PTRACE_TYPE_RET'.
6654 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6655 * sparc-nat.c (gdb_ptrace): Likewise.
6656 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6657
6658 2020-03-20 Tom Tromey <tromey@adacore.com>
6659
6660 * c-exp.y (lex_one_token): Fix assert.
6661
6662 2020-03-20 Tom Tromey <tromey@adacore.com>
6663
6664 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6665 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6666 strncpy call.
6667
6668 2020-03-20 Tom Tromey <tromey@adacore.com>
6669
6670 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6671
6672 2020-03-20 Tom Tromey <tromey@adacore.com>
6673
6674 * ada-valprint.c (print_variant_part): Remove parameters; switch
6675 to value-based API.
6676 (print_field_values): Likewise.
6677 (ada_val_print_struct_union): Likewise.
6678 (ada_value_print_1): Update.
6679
6680 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6681
6682 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6683 nbsd_nat_target instead of inf_ptrace_target.
6684 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6685 nbsd_nat_target.
6686
6687 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6688
6689 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6690 it to the ptrace call.
6691 * (store_registers): Likewise.
6692
6693 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6694
6695 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6696 it to the ptrace call.
6697 * (store_registers): Likewise.
6698
6699 2020-03-19 Luis Machado <luis.machado@linaro.org>
6700
6701 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6702 valid, fetch vg value from ptrace.
6703
6704 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6705 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6706 * inf-ptrace.c: Likewise.
6707 * (gdb_ptrace): Add.
6708 * (inf_ptrace_target::resume): Update.
6709 * (inf_ptrace_target::xfer_partial): Likewise.
6710 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6711 * (inf_ptrace_peek_poke): Update.
6712
6713 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6714
6715 * x86-bsd-nat.c (gdb_ptrace): New.
6716 * (x86bsd_dr_set): Add new argument `ptid'.
6717 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6718 x86bsd_dr_set_addr): Update.
6719
6720 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * remote.c (remote_target::process_stop_reply): Handle events for
6723 all threads differently.
6724
6725 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * completer.c (completion_tracker::remove_completion): Define new
6728 function.
6729 * completer.h (completion_tracker::remove_completion): Declare new
6730 function.
6731 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6732 when adding a C++ function symbol.
6733
6734 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * completer.c (completion_tracker::completion_hash_entry): Define
6737 new class.
6738 (advance_to_filename_complete_word_point): Call
6739 recompute_lowest_common_denominator.
6740 (completion_tracker::completion_tracker): Call discard_completions
6741 to setup the hash table.
6742 (completion_tracker::discard_completions): Allow for being called
6743 from the constructor, pass new equal function, and element deleter
6744 when constructing the hash table. Initialise new class member
6745 variables.
6746 (completion_tracker::maybe_add_completion): Remove use of
6747 m_entries_vec, and store more information into m_entries_hash.
6748 (completion_tracker::recompute_lcd_visitor): New function, most
6749 content taken from...
6750 (completion_tracker::recompute_lowest_common_denominator):
6751 ...here, this now just visits each item in the hash calling the
6752 above visitor.
6753 (completion_tracker::build_completion_result): Remove use of
6754 m_entries_vec, call recompute_lowest_common_denominator.
6755 * completer.h (completion_tracker::have_completions): Remove use
6756 of m_entries_vec.
6757 (completion_tracker::completion_hash_entry): Declare new class.
6758 (completion_tracker::recompute_lowest_common_denominator): Change
6759 function signature.
6760 (completion_tracker::recompute_lcd_visitor): Declare new function.
6761 (completion_tracker::m_entries_vec): Delete.
6762 (completion_tracker::m_entries_hash): Initialize to NULL.
6763 (completion_tracker::m_lowest_common_denominator_valid): New
6764 member variable.
6765 (completion_tracker::m_lowest_common_denominator_max_length): New
6766 member variable.
6767
6768 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6769
6770 * regformats/regdef.h: Put reg in gdb namespace.
6771
6772 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6773
6774 * i386-bsd-nat.c (gdb_ptrace): New.
6775 * (i386bsd_fetch_inferior_registers,
6776 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6777 * (i386bsd_fetch_inferior_registers,
6778 i386bsd_store_inferior_registers) Use gdb_ptrace.
6779
6780 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6781
6782 * amd64-bsd-nat.c (gdb_ptrace): New.
6783 * (amd64bsd_fetch_inferior_registers,
6784 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6785 * (amd64bsd_fetch_inferior_registers,
6786 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6787
6788 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6789
6790 * user-regs.c (user_reg::read): Rename to...
6791 (user_reg::xread): ...this.
6792 * (append_user_reg): Rename argument `read' to `xread'.
6793 * (user_reg_add_builtin): Likewise.
6794 * (user_reg_add): Likewise.
6795 * (value_of_user_reg): Likewise.
6796
6797 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6798
6799 * sparc-nat.c (gdb_ptrace): New.
6800 * sparc-nat.c (sparc_fetch_inferior_registers)
6801 (sparc_store_inferior_registers) Remove obsolete comment.
6802 * sparc-nat.c (sparc_fetch_inferior_registers)
6803 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6804 * sparc-nat.c (sparc_fetch_inferior_registers)
6805 (sparc_store_inferior_registers) Use gdb_ptrace.
6806
6807 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6808
6809 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6810 it to the ptrace call.
6811 * sh-nbsd-nat.c (store_registers): Likewise.
6812
6813 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6814
6815 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6816 nbsd_nat_target instead of inf_ptrace_target.
6817 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6818 nbsd_nat_target.
6819
6820 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6821
6822 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6823
6824 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6825
6826 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6827 <sys/sysctl.h>.
6828 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6829
6830 2020-03-17 Tom de Vries <tdevries@suse.de>
6831
6832 PR gdb/23710
6833 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6834 fields.
6835 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6836 fields.
6837 (process_imported_unit_die): Skip import of c++ CUs.
6838
6839 2020-03-16 Tom Tromey <tom@tromey.com>
6840
6841 * p-valprint.c (pascal_object_print_value): Initialize
6842 base_value.
6843
6844 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6845 Shahab Vahedi <shahab@synopsys.com>
6846
6847 * Makefile.in: Add arch/arc.o
6848 * configure.tgt: Likewise.
6849 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6850 (_initialize_arc_tdep): Don't initialize old target descriptions.
6851 (arc_read_description): New function to cache target descriptions.
6852 * arc-tdep.h (arc_read_description): Add proto type.
6853 * arch/arc.c: New file.
6854 * arch/arc.h: Likewise.
6855 * features/Makefile: Replace old target descriptions with new.
6856 * features/arc-arcompact.c: Remove.
6857 * features/arc-arcompact.xml: Likewise.
6858 * features/arc-v2.c: Likewise
6859 * features/arc-v2.xml: Likewise
6860 * features/arc/aux-arcompact.xml: New file.
6861 * features/arc/aux-v2.xml: Likewise.
6862 * features/arc/core-arcompact.xml: Likewise.
6863 * features/arc/core-v2.xml: Likewise.
6864 * features/arc/aux-arcompact.c: Generate.
6865 * features/arc/aux-v2.c: Likewise.
6866 * features/arc/core-arcompact.c: Likewise.
6867 * features/arc/core-v2.c: Likewise.
6868 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6869
6870 2020-03-16 Tom Tromey <tromey@adacore.com>
6871
6872 PR gdb/25663:
6873 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6874 putting value into bcache.
6875
6876 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6877
6878 PR gdb/21500
6879 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6880 to...
6881 (amd64_windows_init_abi_common): ... this. Don't set size of
6882 long type.
6883 (amd64_windows_init_abi): New function.
6884 (amd64_cygwin_init_abi): New function.
6885 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6886 the Cygwin OS ABI.
6887 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6888 comment.
6889
6890 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6893 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6894 (pe_import_directory_entry): New struct type.
6895 (is_linked_with_cygwin_dll): New function.
6896 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6897 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6898 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6899
6900 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6903 i386_cygwin_core_osabi_sniffer.
6904
6905 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * i386-cygwin-tdep.c: Rename to...
6908 * i386-windows-tdep.c: ... this.
6909 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6910 i386-windows-tdep.c.
6911 * configure.tgt: Likewise.
6912
6913 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6916 * osabi.c (gdb_osabi_names): Add "Windows".
6917 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6918 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6919 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6920 i386_cygwin_osabi_sniffer.
6921 (_initialize_i386_cygwin_tdep): Register OS ABI
6922 GDB_OSABI_WINDOWS for i386.
6923 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6924 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6925 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6926 for x86-64.
6927 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6928 when the target matches '*-*-mingw*'.
6929
6930 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6931
6932 * defs.h (enum gdb_osabi): Move to...
6933 * osabi.h (enum gdb_osabi): ... here.
6934 * gdbarch.sh: Include osabi.h in gdbarch.h.
6935 * gdbarch.h: Re-generate.
6936
6937 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6940 function.
6941 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6942
6943 2020-03-14 Tom Tromey <tom@tromey.com>
6944
6945 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6946 for C++.
6947 (c_type_print_modifier): Likewise. Add "language" parameter.
6948 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6949 (c_type_print_base_1): Update.
6950 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6951 constants.
6952 * type-stack.c (type_stack::insert): Handle tp_atomic and
6953 tp_restrict.
6954 (type_stack::follow_type_instance_flags): Likewise.
6955 (type_stack::follow_types): Likewise. Merge type-following code.
6956 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6957 (space_identifier, cv_with_space_id)
6958 (const_or_volatile_or_space_identifier_noopt)
6959 (const_or_volatile_or_space_identifier): Remove.
6960 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6961 rules.
6962 (ptr_operator, typebase): Update.
6963 (enum token_flag) <FLAG_C>: New constant.
6964 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6965 "_Atomic".
6966 (lex_one_token): Handle FLAG_C.
6967
6968 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6969
6970 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6971 it to the ptrace call.
6972 * m68k-bsd-nat.c (store_registers): Likewise.
6973
6974 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6975
6976 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6977 gdb_byte *.
6978 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6979 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6980 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6981
6982 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6983
6984 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6985 nbsd_nat_target instead of inf_ptrace_target.
6986 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6987 nbsd_nat_target.
6988
6989 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6990
6991 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6992 register_t.
6993
6994 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6995
6996 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6997 it to the ptrace call.
6998 * alpha-bsd-nat.c (store_registers): Likewise.
6999
7000 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7001
7002 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7003 includes.
7004 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7005 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7006 fill_fpregset): Likewise.
7007
7008 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7009
7010 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7011 nbsd_nat_target instead of inf_ptrace_target.
7012 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7013 nbsd_nat_target.
7014
7015 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7016
7017 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7018 register_t.
7019
7020 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7021
7022 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7023 it to the ptrace call.
7024 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7025 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7026 * arm-nbsd-nat.c (store_register): Likewise.
7027 * arm-nbsd-nat.c (store_regs): Likewise.
7028 * arm-nbsd-nat.c (store_fp_register): Likewise.
7029 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7030
7031 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7032
7033 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7034 nbsd_nat_target instead of inf_ptrace_target.
7035 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7036 nbsd_nat_target.
7037
7038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7039
7040 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7041 it to the ptrace call.
7042 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7043
7044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7045
7046 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7047 it to the ptrace call.
7048 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7049
7050 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7051
7052 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7053 gdb_byte *.
7054 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7055
7056 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7057
7058 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7059 instead of inf_ptrace_target.
7060 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7061 nbsd_nat_target.
7062
7063 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7064
7065 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7066 register_t.
7067
7068 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7069
7070 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7071 register_t.
7072
7073 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7074
7075 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7076 register_t.
7077
7078 2020-03-13 Tom Tromey <tom@tromey.com>
7079
7080 * value.h (val_print): Don't declare.
7081 * valprint.h (val_print_array_elements)
7082 (val_print_scalar_formatted, generic_val_print): Don't declare.
7083 * valprint.c (generic_val_print_array): Take a struct value.
7084 (generic_val_print_ptr, generic_val_print_memberptr)
7085 (generic_val_print_bool, generic_val_print_int)
7086 (generic_val_print_char, generic_val_print_complex)
7087 (generic_val_print): Remove.
7088 (generic_value_print): Update.
7089 (do_val_print): Remove unused parameters. Don't call
7090 la_val_print.
7091 (val_print): Remove.
7092 (common_val_print): Update. Don't call value_check_printable.
7093 (val_print_scalar_formatted, val_print_array_elements): Remove.
7094 * rust-lang.c (rust_val_print): Remove.
7095 (rust_language_defn): Update.
7096 * p-valprint.c (pascal_val_print): Remove.
7097 (pascal_value_print_inner): Update.
7098 (pascal_object_print_val_fields, pascal_object_print_val):
7099 Remove.
7100 (pascal_object_print_static_field): Update.
7101 * p-lang.h (pascal_val_print): Don't declare.
7102 * p-lang.c (pascal_language_defn): Update.
7103 * opencl-lang.c (opencl_language_defn): Update.
7104 * objc-lang.c (objc_language_defn): Update.
7105 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7106 * m2-lang.h (m2_val_print): Don't declare.
7107 * m2-lang.c (m2_language_defn): Update.
7108 * language.h (struct language_defn) <la_val_print>: Remove.
7109 * language.c (unk_lang_value_print_inner): Rename. Change
7110 argument types.
7111 (unknown_language_defn, auto_language_defn): Update.
7112 * go-valprint.c (go_val_print): Remove.
7113 * go-lang.h (go_val_print): Don't declare.
7114 * go-lang.c (go_language_defn): Update.
7115 * f-valprint.c (f_val_print): Remove.
7116 * f-lang.h (f_value_print): Don't declare.
7117 * f-lang.c (f_language_defn): Update.
7118 * d-valprint.c (d_val_print): Remove.
7119 * d-lang.h (d_value_print): Don't declare.
7120 * d-lang.c (d_language_defn): Update.
7121 * cp-valprint.c (cp_print_value_fields)
7122 (cp_print_value_fields_rtti, cp_print_value): Remove.
7123 (cp_print_static_field): Update.
7124 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7125 (c_val_print_struct, c_val_print_union, c_val_print_int)
7126 (c_val_print_memberptr, c_val_print): Remove.
7127 * c-lang.h (c_val_print_array, cp_print_value_fields)
7128 (cp_print_value_fields_rtti): Don't declare.
7129 * c-lang.c (c_language_defn, cplus_language_defn)
7130 (asm_language_defn, minimal_language_defn): Update.
7131 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7132 (ada_val_print_enum): Take a struct value.
7133 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7134 (ada_val_print): Remove.
7135 (ada_value_print_1): Update.
7136 (printable_val_type): Remove.
7137 * ada-lang.h (ada_val_print): Don't declare.
7138 * ada-lang.c (ada_language_defn): Update.
7139
7140 2020-03-13 Tom Tromey <tom@tromey.com>
7141
7142 * valprint.c (do_val_print): Update.
7143 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7144 a struct value.
7145 (value_to_value_object_no_release): Declare.
7146 * python/py-value.c (value_to_value_object_no_release): New
7147 function.
7148 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7149 struct value.
7150 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7151 function.
7152 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7153 a struct value.
7154 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7155 Declare.
7156 (gdbscm_apply_val_pretty_printer): Take a struct value.
7157 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7158 value.
7159 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7160 value.
7161 * extension-priv.h (struct extension_language_ops)
7162 <apply_val_pretty_printer>: Take a struct value.
7163 * cp-valprint.c (cp_print_value): Create a struct value.
7164 (cp_print_value): Update.
7165
7166 2020-03-13 Tom Tromey <tom@tromey.com>
7167
7168 * ada-valprint.c (print_field_values): Call common_val_print.
7169
7170 2020-03-13 Tom Tromey <tom@tromey.com>
7171
7172 * ada-valprint.c (val_print_packed_array_elements): Remove
7173 bitoffset and val parameters. Call common_val_print.
7174 (ada_val_print_string): Remove offset, address, and original_value
7175 parameters.
7176 (ada_val_print_array): Update.
7177 (ada_value_print_array): New function.
7178 (ada_value_print_1): Call it.
7179
7180 2020-03-13 Tom Tromey <tom@tromey.com>
7181
7182 * ada-valprint.c (ada_value_print): Use common_val_print.
7183
7184 2020-03-13 Tom Tromey <tom@tromey.com>
7185
7186 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7187
7188 2020-03-13 Tom Tromey <tom@tromey.com>
7189
7190 * ada-valprint.c (ada_value_print_num): New function.
7191 (ada_value_print_1): Use it.
7192
7193 2020-03-13 Tom Tromey <tom@tromey.com>
7194
7195 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7196
7197 2020-03-13 Tom Tromey <tom@tromey.com>
7198
7199 * ada-valprint.c (ada_value_print_ptr): New function.
7200 (ada_value_print_1): Use it.
7201
7202 2020-03-13 Tom Tromey <tom@tromey.com>
7203
7204 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7205 call common_val_print.
7206 (ada_val_print_1): Update.
7207 (ada_value_print_1): New function.
7208 (ada_value_print_inner): Rewrite.
7209
7210 2020-03-13 Tom Tromey <tom@tromey.com>
7211
7212 * cp-valprint.c (cp_print_value_fields): Update.
7213 (cp_print_value): New function.
7214
7215 2020-03-13 Tom Tromey <tom@tromey.com>
7216
7217 * m2-valprint.c (m2_value_print_inner): Use
7218 cp_print_value_fields.
7219 * cp-valprint.c (cp_print_value_fields): New function.
7220 * c-valprint.c (c_value_print_struct): New function.
7221 (c_value_print_inner): Use c_value_print_struct.
7222 * c-lang.h (cp_print_value_fields): Declare.
7223
7224 2020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * c-valprint.c (c_value_print_array): New function.
7227 (c_value_print_inner): Use it.
7228
7229 2020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * c-valprint.c (c_value_print_memberptr): New function.
7232 (c_value_print_inner): Use it.
7233
7234 2020-03-13 Tom Tromey <tom@tromey.com>
7235
7236 * c-valprint.c (c_value_print_int): New function.
7237 (c_value_print_inner): Use it.
7238
7239 2020-03-13 Tom Tromey <tom@tromey.com>
7240
7241 * c-valprint.c (c_value_print_ptr): New function.
7242 (c_value_print_inner): Use it.
7243
7244 2020-03-13 Tom Tromey <tom@tromey.com>
7245
7246 * c-valprint.c (c_value_print_inner): Rewrite.
7247
7248 2020-03-13 Tom Tromey <tom@tromey.com>
7249
7250 * valprint.c (generic_value_print_complex): New function.
7251 (generic_value_print): Use it.
7252
7253 2020-03-13 Tom Tromey <tom@tromey.com>
7254
7255 * valprint.c (generic_val_print_float): Don't call
7256 val_print_scalar_formatted.
7257 (generic_val_print, generic_value_print): Update.
7258
7259 2020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * valprint.c (generic_value_print_char): New function
7262 (generic_value_print): Use it.
7263
7264 2020-03-13 Tom Tromey <tom@tromey.com>
7265
7266 * valprint.c (generic_value_print_int): New function.
7267 (generic_value_print): Use it.
7268
7269 2020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * valprint.c (generic_value_print_bool): New function.
7272 (generic_value_print): Use it.
7273
7274 2020-03-13 Tom Tromey <tom@tromey.com>
7275
7276 * valprint.c (generic_val_print_func): Simplify.
7277 (generic_val_print, generic_value_print): Update.
7278
7279 2020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * valprint.c (generic_val_print_flags): Remove.
7282 (generic_val_print, generic_value_print): Update.
7283 (val_print_type_code_flags): Add original_value parameter.
7284
7285 2020-03-13 Tom Tromey <tom@tromey.com>
7286
7287 * valprint.c (generic_val_print): Update.
7288 (generic_value_print): Update.
7289 * valprint.c (generic_val_print_enum): Don't call
7290 val_print_scalar_formatted.
7291
7292 2020-03-13 Tom Tromey <tom@tromey.com>
7293
7294 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7295 * valprint.c (generic_value_print_ptr): New function.
7296
7297 2020-03-13 Tom Tromey <tom@tromey.com>
7298
7299 * valprint.c (generic_value_print): Rewrite.
7300
7301 2020-03-13 Tom Tromey <tom@tromey.com>
7302
7303 * p-valprint.c (pascal_object_print_value_fields)
7304 (pascal_object_print_value): New functions.
7305
7306 2020-03-13 Tom Tromey <tom@tromey.com>
7307
7308 * p-valprint.c (pascal_value_print_inner): Rewrite.
7309
7310 2020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * f-valprint.c (f_value_print_innner): Rewrite.
7313
7314 2020-03-13 Tom Tromey <tom@tromey.com>
7315
7316 * m2-valprint.c (m2_print_unbounded_array): New overload.
7317 (m2_print_unbounded_array): Update.
7318 (m2_print_array_contents): Take a struct value.
7319 (m2_value_print_inner): Rewrite.
7320
7321 2020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7324 (d_value_print_inner): New function.
7325 * d-lang.h (d_value_print_inner): Declare.
7326 * d-lang.c (d_language_defn): Use d_value_print_inner.
7327
7328 2020-03-13 Tom Tromey <tom@tromey.com>
7329
7330 * go-valprint.c (go_value_print_inner): New function.
7331 * go-lang.h (go_value_print_inner): Declare.
7332 * go-lang.c (go_language_defn): Use go_value_print_inner.
7333
7334 2020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7337 API.
7338 (rust_val_print): Rewrite.
7339 (rust_value_print_inner): New function, from rust_val_print.
7340 (rust_language_defn): Use rust_value_print_inner.
7341
7342 2020-03-13 Tom Tromey <tom@tromey.com>
7343
7344 * ada-valprint.c (ada_value_print_inner): New function.
7345 * ada-lang.h (ada_value_print_inner): Declare.
7346 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7347
7348 2020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * f-valprint.c (f_value_print_innner): New function.
7351 * f-lang.h (f_value_print_innner): Declare.
7352 * f-lang.c (f_language_defn): Use f_value_print_innner.
7353
7354 2020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * p-valprint.c (pascal_value_print_inner): New function.
7357 * p-lang.h (pascal_value_print_inner): Declare.
7358 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7359
7360 2020-03-13 Tom Tromey <tom@tromey.com>
7361
7362 * m2-valprint.c (m2_value_print_inner): New function.
7363 * m2-lang.h (m2_value_print_inner): Declare.
7364 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7365
7366 2020-03-13 Tom Tromey <tom@tromey.com>
7367
7368 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7369 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7370 * c-valprint.c (c_value_print_inner): New function.
7371 * c-lang.h (c_value_print_inner): Declare.
7372 * c-lang.c (c_language_defn, cplus_language_defn)
7373 (asm_language_defn, minimal_language_defn): Use
7374 c_value_print_inner.
7375
7376 2020-03-13 Tom Tromey <tom@tromey.com>
7377
7378 * p-valprint.c (pascal_object_print_value_fields): Now static.
7379 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7380
7381 2020-03-13 Tom Tromey <tom@tromey.com>
7382
7383 * c-valprint.c (c_val_print_array): Simplify.
7384
7385 2020-03-13 Tom Tromey <tom@tromey.com>
7386
7387 * valprint.c (value_print_array_elements): New function.
7388 * valprint.h (value_print_array_elements): Declare.
7389
7390 2020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7393 * mips-tdep.c (mips_print_register): Use
7394 value_print_scalar_formatted.
7395
7396 2020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * valprint.h (value_print_scalar_formatted): Declare.
7399 * valprint.c (value_print_scalar_formatted): New function.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * valprint.h (generic_value_print): Declare.
7404 * valprint.c (generic_value_print): New function.
7405
7406 2020-03-13 Tom Tromey <tom@tromey.com>
7407
7408 * valprint.c (do_val_print): Call la_value_print_inner, if
7409 available.
7410 * rust-lang.c (rust_language_defn): Update.
7411 * p-lang.c (pascal_language_defn): Update.
7412 * opencl-lang.c (opencl_language_defn): Update.
7413 * objc-lang.c (objc_language_defn): Update.
7414 * m2-lang.c (m2_language_defn): Update.
7415 * language.h (struct language_defn) <la_value_print_inner>: New
7416 member.
7417 * language.c (unknown_language_defn, auto_language_defn): Update.
7418 * go-lang.c (go_language_defn): Update.
7419 * f-lang.c (f_language_defn): Update.
7420 * d-lang.c (d_language_defn): Update.
7421 * c-lang.c (c_language_defn, cplus_language_defn)
7422 (asm_language_defn, minimal_language_defn): Update.
7423 * ada-lang.c (ada_language_defn): Update.
7424
7425 2020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * c-valprint.c (c_value_print): Use common_val_print.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * f-valprint.c (f77_print_array_1, f_val_print): Use
7436 common_val_print.
7437
7438 2020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * riscv-tdep.c (riscv_print_one_register_info): Use
7441 common_val_print.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * mi/mi-main.c (output_register): Use common_val_print.
7446
7447 2020-03-13 Tom Tromey <tom@tromey.com>
7448
7449 * infcmd.c (default_print_one_register_info): Use
7450 common_val_print.
7451
7452 2020-03-13 Tom Tromey <tom@tromey.com>
7453
7454 * valprint.h (common_val_print_checked): Declare.
7455 * valprint.c (common_val_print_checked): New function.
7456 * stack.c (print_frame_arg): Use common_val_print_checked.
7457
7458 2020-03-13 Tom Tromey <tom@tromey.com>
7459
7460 * valprint.c (do_val_print): New function, from val_print.
7461 (val_print): Use do_val_print.
7462 (common_val_print): Use do_val_print.
7463
7464 2020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * valprint.c (value_print): Use scoped_value_mark.
7467
7468 2020-03-13 Tom de Vries <tdevries@suse.de>
7469
7470 PR symtab/25646
7471 * psymtab.c (partial_symtab::partial_symtab): Don't set
7472 globals_offset and statics_offset. Push element onto
7473 current_global_psymbols and current_static_psymbols stacks.
7474 (concat): New function.
7475 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7476 element from current_global_psymbols and current_static_psymbols
7477 stacks. Concat popped elements to global_psymbols and
7478 static_symbols.
7479 (add_psymbol_to_list): Use current_global_psymbols and
7480 current_static_psymbols stacks.
7481 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7482 current_static_psymbols fields.
7483
7484 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7485
7486 * corelow.c (sniff_core_bfd): Remove.
7487 (class core_target) <m_core_vec>: Remove.
7488 (core_target::core_target): Update.
7489 (core_file_fns): Remove.
7490 (deprecated_add_core_fns): Remove.
7491 (default_core_sniffer): Remove.
7492 (sniff_core_bfd): Remove.
7493 (default_check_format): Remove.
7494 (gdb_check_format): Remove.
7495 (core_target_open): Update.
7496 (core_target::get_core_register_section): Update.
7497 (get_core_registers_cb): Update.
7498 (core_target::fetch_registers): Update.
7499 * gdbcore.h (struct core_fns): Remove.
7500 (deprecated_add_core_fns): Remove.
7501 (default_core_sniffer): Remove.
7502 (default_check_format): Remove.
7503
7504 2020-03-12 Tom Tromey <tom@tromey.com>
7505
7506 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7507 CORE_ADDR.
7508 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7509
7510 2020-03-12 Tom Tromey <tom@tromey.com>
7511
7512 * remote.c (remote_target::download_tracepoint)
7513 (remote_target::enable_tracepoint)
7514 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7515 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7516 sprintf_vma.
7517
7518 2020-03-12 Tom Tromey <tom@tromey.com>
7519
7520 * symfile-mem.c: Update CORE_ADDR size assert.
7521
7522 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * selftest.m4: Move to gdbsupport/.
7525 * acinclude.m4: Update path to selftest.m4.
7526
7527 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7530 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7531 gdbarch-selfselftests.c and selftest-arch.c.
7532 (SUBDIR_UNITTESTS_OBS): Rename to...
7533 (SELFTESTS_OBS): ... this.
7534 (COMMON_SFILES): Remove disasm-selftests.c and
7535 gdbarch-selftests.c.
7536 * configure.ac: Don't add selftest-arch.{c,o} to
7537 CONFIG_{SRCS,OBS}.
7538 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7539 preprocessor conditions.
7540
7541 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * configure.ac: Don't source bfd/development.sh.
7544 * selftest.m4: Modify comment.
7545 * configure: Re-generate.
7546
7547 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7550 not "true" or "false".
7551 * configure: Re-generate.
7552
7553 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7554
7555 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7556 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7557 renamed to arm_nbsd_supply_gregset.
7558 (fetch_register): Update to call arm_nbsd_supply_gregset.
7559 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7560 (arm_netbsd_nat_target::fetch_registers): Update.
7561 (fetch_elfcore_registers): Removed.
7562 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7563 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7564 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7565 not require NetBSD system headers.
7566 (arm_nbsd_regset): New struct.
7567 (arm_nbsd_iterate_over_regset_sections): New function.
7568 (arm_netbsd_init_abi_common): Updated to call
7569 set_gdbarch_iterate_over_regset_sections.
7570 * arm-nbsd-tdep.h: New file.
7571
7572 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7573
7574 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7575 recursion.
7576
7577 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * configure: Re-generate.
7580
7581 2020-03-11 Tom Tromey <tromey@adacore.com>
7582
7583 * ada-typeprint.c (print_choices): Fix comment.
7584
7585 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7586
7587 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7588 previous item in the list, when the list has no items.
7589
7590 2020-03-11 Tom de Vries <tdevries@suse.de>
7591
7592 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7593 PROP_LOCLIST handling code.
7594
7595 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * buildsym-legacy.c (record_line): Pass extra parameter to
7598 record_line.
7599 * buildsym.c (buildsym_compunit::record_line): Take an extra
7600 parameter, reduce duplication in the line table, and record the
7601 is_stmt flag in the line table.
7602 * buildsym.h (buildsym_compunit::record_line): Add extra
7603 parameter.
7604 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7605 non-statement lines.
7606 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7607 this to the symtab builder.
7608 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7609 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7610 through to dwarf_record_line_1.
7611 * infrun.c (process_event_stop_test): When stepping, don't stop at
7612 a non-statement instruction, and only refresh the step info when
7613 we land in the middle of a line's range. Also add an extra
7614 comment.
7615 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7616 field.
7617 * record-btrace.c (btrace_find_line_range): Only record lines
7618 marked as is-statement.
7619 * stack.c (frame_show_address): Show the frame address if we are
7620 in a non-statement sal.
7621 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7622 (maintenance_print_one_line_table): Print a header for the is_stmt
7623 column, and include is_stmt information in the output.
7624 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7625 preference to non-statements.
7626 (find_pcs_for_symtab_line): Prefer is-statement entries.
7627 (find_line_common): Likewise.
7628 * symtab.h (struct linetable_entry): Add is_stmt field.
7629 (struct symtab_and_line): Likewise.
7630 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7631 arranging the line table.
7632
7633 2020-03-07 Tom de Vries <tdevries@suse.de>
7634
7635 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7636 DIE.
7637
7638 2020-03-07 Tom Tromey <tom@tromey.com>
7639
7640 * valops.c (value_literal_complex): Remove obsolete comment.
7641 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7642 comment.
7643
7644 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7645
7646 * infrun.h: Forward-declare thread_info.
7647 (set_step_info): Add thread_info parameter, add doc.
7648 * infrun.c (set_step_info): Add thread_info parameter, move doc
7649 to header.
7650 * infrun.c (process_event_stop_test): Pass thread to
7651 set_step_info call.
7652 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7653 set_step_info.
7654 (prepare_one_step): Add thread_info parameter, pass it to
7655 set_step_frame and prepare_one_step (recursive) call.
7656 (step_1): Pass thread to prepare_one_step call.
7657 (step_command_fsm::should_stop): Pass thread to
7658 prepare_one_step.
7659 (until_next_fsm): Pass thread to set_step_frame call.
7660 (finish_command): Pass thread to set_step_info call.
7661
7662 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7663
7664 * windows-tdep.c (windows_solib_create_inferior_hook):
7665 Check if inferior is running.
7666
7667 2020-03-06 Tom de Vries <tdevries@suse.de>
7668
7669 * NEWS: Fix "the the".
7670 * ctfread.c: Same.
7671
7672 2020-03-06 Tom de Vries <tdevries@suse.de>
7673
7674 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7675
7676 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * .dir-locals.el: Add a comment referencing the other copies of
7679 this file.
7680
7681 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7682
7683 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7684 psargs.
7685
7686 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7687
7688 * .gitattributes: New file.
7689
7690 2020-03-04 Tom Tromey <tom@tromey.com>
7691
7692 * symmisc.c (print_symbol_bcache_statistics)
7693 (print_objfile_statistics): Update.
7694 * symfile.c (allocate_symtab): Use intern.
7695 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7696 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7697 macro_cache>: Remove.
7698 <string_cache>: New member.
7699 (struct objfile) <intern>: New methods.
7700 * elfread.c (elf_symtab_read): Use intern.
7701 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7702 (dwarf2_compute_name, dwarf2_physname)
7703 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7704 names.
7705 (guess_partial_die_structure_name): Update.
7706 (partial_die_info::fixup): Intern name.
7707 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7708 name.
7709 (dwarf2_name): Intern name. Update.
7710 * buildsym.c (buildsym_compunit::get_macro_table): Use
7711 string_cache.
7712
7713 2020-03-04 Tom Tromey <tom@tromey.com>
7714
7715 * jit.c (bfd_open_from_target_memory): Make "target" const.
7716 * corefile.c (gnutarget): Now const.
7717 * gdbcore.h (gnutarget): Now const.
7718
7719 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7720
7721 * NEWS: Mention support for WOW64 processes.
7722 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7723 (amd64_windows_segment_register_p): Remove static.
7724 (_initialize_amd64_windows_nat): Update.
7725 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7726 * i386-windows-nat.c (context_offset): Update.
7727 (i386_mappings): Rename and remove static.
7728 (i386_windows_segment_register_p): Remove static.
7729 (_initialize_i386_windows_nat): Update.
7730 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7731 (STATUS_WX86_SINGLE_STEP): New macro.
7732 (EnumProcessModulesEx): New macro.
7733 (Wow64SuspendThread): New macro.
7734 (Wow64GetThreadContext): New macro.
7735 (Wow64SetThreadContext): New macro.
7736 (Wow64GetThreadSelectorEntry): New macro.
7737 (windows_set_context_register_offsets): Add static.
7738 (windows_set_segment_register_p): Likewise.
7739 (windows_add_thread): Adapt for WOW64 processes.
7740 (windows_fetch_one_register): Likewise.
7741 (windows_nat_target::fetch_registers): Likewise.
7742 (windows_store_one_register): Likewise.
7743 (display_selector): Likewise.
7744 (display_selectors): Likewise.
7745 (handle_exception): Likewise.
7746 (windows_continue): Likewise.
7747 (windows_nat_target::resume): Likewise.
7748 (windows_add_all_dlls): Likewise.
7749 (do_initial_windows_stuff): Likewise.
7750 (windows_nat_target::attach): Likewise.
7751 (windows_get_exec_module_filename): Likewise.
7752 (windows_nat_target::create_inferior): Likewise.
7753 (windows_xfer_siginfo): Likewise.
7754 (_initialize_loadable): Initialize Wow64SuspendThread,
7755 Wow64GetThreadContext, Wow64SetThreadContext,
7756 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7757 * windows-nat.h (windows_set_context_register_offsets):
7758 Remove declaration.
7759 (windows_set_segment_register_p): Likewise.
7760 (i386_windows_segment_register_p): Add declaration.
7761 (amd64_windows_segment_register_p): Likewise.
7762
7763 2020-03-04 Luis Machado <luis.machado@linaro.org>
7764
7765 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7766 in "info registers" for AArch64/ARM.
7767
7768 The change caused "info registers" to not print GPR's.
7769
7770 gdb/ChangeLog:
7771
7772 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7773
7774 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7775 when reg->group is empty and reggroup is not.
7776
7777 2020-03-03 Tom Tromey <tromey@adacore.com>
7778
7779 * dwarf2/frame.c (struct dwarf2_frame_cache)
7780 <checked_tailcall_bottom, entry_cfa_sp_offset,
7781 entry_cfa_sp_offset_p>: Remove members.
7782 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7783 (dwarf2_frame_prev_register): Don't call
7784 dwarf2_tailcall_sniffer_first.
7785 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7786 * frame-unwind.c (add_unwinder): New fuction.
7787 (frame_unwind_init): Use it. Add tailcall unwinder.
7788
7789 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7790 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7791
7792 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7793 value should be printed as true.
7794
7795 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7796
7797 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7798 (windows_init_abi): Set and use windows_so_ops.
7799
7800 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7801
7802 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7803 when verifying if dealing with a convenience variable.
7804
7805 2020-03-03 Luis Machado <luis.machado@linaro.org>
7806
7807 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7808
7809 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7810
7811 * infrun.c (gdbarch_supports_displaced_stepping): New.
7812 (use_displaced_stepping): Break up conditions in smaller pieces.
7813 Use gdbarch_supports_displaced_stepping.
7814 (displaced_step_prepare_throw): Use
7815 gdbarch_supports_displaced_stepping.
7816
7817 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7818
7819 * NEWS: Mention new behaviour of the history filename.
7820 * top.c (write_history_p): Add comment.
7821 (show_write_history_p): Add header comment, give a different
7822 message when history writing is on, but the history filename is
7823 empty.
7824 (history_filename): Add comment.
7825 (history_filename_empty): New function.
7826 (show_history_filename): Add header comment, give a different
7827 message when the filename is empty.
7828 (init_history): Compare history_filename against nullptr, and only
7829 read history if the filename is not empty.
7830 (set_history_filename): Add header comment, and only make
7831 non-empty filenames absolute.
7832 (init_main): Make the filename argument to 'set history filename'
7833 optional.
7834
7835 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7836
7837 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7838 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7839 (fetch_fp_register): Update.
7840 (fetch_fp_regs): Update.
7841 (store_fp_register): Update.
7842 (store_fp_regs): Update.
7843 (arm_netbsd_nat_target::read_description): New function.
7844 (fetch_elfcore_registers): Update.
7845
7846 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7849 general_thread if the stop reply is missing a thread-id.
7850 (remote_target::process_stop_reply): Use the first non-exited
7851 thread if the target didn't pass a thread-id.
7852 * infrun.c (do_target_wait): Move call to
7853 switch_to_inferior_no_thread to ....
7854 (do_target_wait_1): ... here.
7855
7856 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7857
7858 * debuginfod-support.c: Include defs.h first.
7859
7860 2020-02-28 Tom de Vries <tdevries@suse.de>
7861
7862 * symfile.c (set_initial_language): Use default language for lookup.
7863
7864 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7867 reader variable, pass `this` to read_cutu_die_from_dwo.
7868
7869 2020-02-27 Aaron Merey <amerey@redhat.com>
7870
7871 * source.c (open_source_file): Check for nullptr when computing
7872 srcpath.
7873
7874 2020-02-27 Tom Tromey <tromey@adacore.com>
7875
7876 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7877 member.
7878 (dwarf2_add_field): Don't update nfields.
7879 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7880
7881 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7882
7883 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7884 abs.
7885
7886 2020-02-26 Tom Tromey <tom@tromey.com>
7887
7888 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7889 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7890 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7891 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7892 per_cu_data.
7893
7894 2020-02-26 Tom Tromey <tom@tromey.com>
7895
7896 * dwarf2/index-write.c (psym_index_map): Change type.
7897 (add_address_entry_worker, write_one_signatured_type)
7898 (recursively_count_psymbols, recursively_write_psymbols)
7899 (class debug_names, psyms_seen_size, write_gdbindex)
7900 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7901
7902 2020-02-26 Aaron Merey <amerey@redhat.com>
7903
7904 * Makefile.in: Handle optional debuginfod support.
7905 * NEWS: Update.
7906 * README: Add --with-debuginfod summary.
7907 * config.in: Regenerate.
7908 * configure: Regenerate.
7909 * configure.ac: Handle optional debuginfod support.
7910 * debuginfod-support.c: debuginfod helper functions.
7911 * debuginfod-support.h: Ditto.
7912 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7913 summary.
7914 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7915 when a dwz file cannot be found.
7916 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7917 debuginfo file cannot be found.
7918 * source.c (open_source_file): Query debuginfod servers when a
7919 source file cannot be found.
7920 * top.c (print_gdb_configuration): Include
7921 --{with,without}-debuginfod in the output.
7922
7923 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7924
7925 * thread.c (thr_try_catch_cmd): Print thread name.
7926
7927 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7930 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7931 dwarf2_fetch_die_type_sect_off): Move to...
7932 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7933 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7934 dwarf2_fetch_die_type_sect_off): ... here.
7935 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7936 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7937 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7938
7939 2020-02-26 Tom de Vries <tdevries@suse.de>
7940
7941 PR gdb/25603
7942 * symfile.c (set_initial_language): Exit-early if
7943 language_mode == language_mode_manual.
7944
7945 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7946
7947 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7948 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7949 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7950
7951 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7952
7953 * gdbtypes.c (create_array_type_with_stride): Handle negative
7954 array strides.
7955 * valarith.c (value_subscripted_rvalue): Likewise.
7956
7957 2020-02-25 Luis Machado <luis.machado@linaro.org>
7958
7959 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7960
7961 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7962
7963 * loc.h (dwarf2_get_die_type): Move to...
7964 * read.h (dwarf2_get_die_type): ... here.
7965 * read.c (dwarf2_get_die_type): Move doc to header.
7966
7967 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7968
7969 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7970 'gnulib/Makefile.in' to the list.
7971
7972 2020-02-24 Tom Tromey <tom@tromey.com>
7973
7974 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7975 Remove.
7976 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7977 XOBNEWVEC.
7978
7979 2020-02-24 Tom Tromey <tom@tromey.com>
7980
7981 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7982 New method.
7983 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7984 (dw2_do_instantiate_symtab, dw2_get_file_names)
7985 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7986
7987 2020-02-24 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7990 make_scoped_restore.
7991 (dwarf2_psymtab::read_symtab): Don't clear
7992 reading_partial_symbols.
7993
7994 2020-02-24 Tom de Vries <tdevries@suse.de>
7995
7996 PR gdb/25592
7997 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7998
7999 2020-02-24 Tom de Vries <tdevries@suse.de>
8000
8001 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8002 commands layout next/prev/regs.
8003
8004 2020-02-22 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8007 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8008
8009 2020-02-22 Tom Tromey <tom@tromey.com>
8010
8011 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8012
8013 2020-02-22 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8016 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8017 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8018 * tui/tui.c (_initialize_tui): Add usage text.
8019
8020 2020-02-22 Tom Tromey <tom@tromey.com>
8021
8022 * tui/tui-win.c (tui_set_focus_command)
8023 (tui_set_win_height_command): Use error_no_arg.
8024 (_initialize_tui_win): Update help text.
8025 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8026
8027 2020-02-22 Tom Tromey <tom@tromey.com>
8028
8029 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8030 * tui/tui-disasm.h (struct tui_disasm_window)
8031 <display_start_addr>: Declare.
8032 * tui/tui-source.h (struct tui_source_window)
8033 <display_start_addr>: Declare.
8034 * tui/tui-winsource.h (struct tui_source_window_base)
8035 <show_source_line, display_start_addr>: New methods.
8036 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8037 Rename and move to protected section.
8038 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8039 (tui_source_window_base::do_erase_source_content): Update.
8040 (tui_source_window_base::show_source_line): Now a method.
8041 (tui_source_window_base::show_source_content)
8042 (tui_source_window_base::tui_source_window_base)
8043 (tui_source_window_base::rerender)
8044 (tui_source_window_base::refill)
8045 (tui_source_window_base::do_scroll_horizontal)
8046 (tui_source_window_base::set_is_exec_point_at)
8047 (tui_source_window_base::update_breakpoint_info)
8048 (tui_source_window_base::update_exec_info): Update.
8049 * tui/tui-source.c (tui_source_window::set_contents)
8050 (tui_source_window::showing_source_p)
8051 (tui_source_window::do_scroll_vertical)
8052 (tui_source_window::location_matches_p)
8053 (tui_source_window::line_is_displayed): Update.
8054 (tui_source_window::display_start_addr): New method.
8055 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8056 (tui_disasm_window::do_scroll_vertical)
8057 (tui_disasm_window::location_matches_p): Update.
8058 (tui_disasm_window::display_start_addr): New method.
8059
8060 2020-02-22 Tom Tromey <tom@tromey.com>
8061
8062 * NEWS: Add entry for gdb.register_window_type.
8063 * tui/tui-layout.h (window_factory): New typedef.
8064 (tui_register_window): Declare.
8065 * tui/tui-layout.c (saved_tui_windows): New global.
8066 (tui_apply_current_layout): Use it.
8067 (tui_register_window): New function.
8068 * python/python.c (do_start_initialization): Call
8069 gdbpy_initialize_tui.
8070 (python_GdbMethods): Add "register_window_type" function.
8071 * python/python-internal.h (gdbpy_register_tui_window)
8072 (gdbpy_initialize_tui): Declare.
8073 * python/py-tui.c: New file.
8074 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8075
8076 2020-02-22 Tom Tromey <tom@tromey.com>
8077
8078 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8079
8080 2020-02-22 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8083 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8084 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8085 (tui_set_win_focus_to): Move from tui-win.c.
8086
8087 2020-02-22 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8090 functions.
8091 (known_window_types): New global.
8092 (tui_get_window_by_name): Reimplement.
8093 (initialize_known_windows): New function.
8094 (validate_window_name): Rewrite.
8095 (_initialize_tui_layout): Call initialize_known_windows.
8096
8097 2020-02-22 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8100 Remove constants.
8101 * tui/tui-winsource.h (struct tui_source_window_base)
8102 <tui_source_window_base>: Remove parameter.
8103 * tui/tui-winsource.c
8104 (tui_source_window_base::tui_source_window_base): Remove
8105 parameter.
8106 (tui_source_window_base::refill): Update.
8107 * tui/tui-stack.h (struct tui_locator_window)
8108 <tui_locator_window>: Update.
8109 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8110 Default the constructor.
8111 * tui/tui-regs.h (struct tui_data_item_window)
8112 <tui_data_item_window>: Default the constructor.
8113 (struct tui_data_window) <tui_data_window>: Likewise.
8114 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8115 Default the constructor.
8116 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8117 Default the constructor.
8118 <type>: Remove.
8119 (struct tui_win_info) <tui_win_info>: Default the constructor.
8120 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8121 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8122 Default the constructor.
8123
8124 2020-02-22 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8127 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8128 * tui/tui-win.c (tui_resize_all): Don't call
8129 tui_delete_invisible_windows.
8130 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8131 done.
8132 (tui_set_layout): Update.
8133 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8134 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8135 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8136
8137 2020-02-22 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8140 correctly.
8141
8142 2020-02-22 Tom Tromey <tom@tromey.com>
8143
8144 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8145
8146 2020-02-22 Tom Tromey <tom@tromey.com>
8147
8148 * tui/tui-winsource.h (struct tui_source_window_iterator)
8149 <inner_iterator>: New etytypedef.
8150 <tui_source_window_iterator>: Take "end" parameter.
8151 <tui_source_window_iterator>: Take iterator.
8152 <operator*, advance>: Update.
8153 <m_iter>: Change type.
8154 <m_end>: New field.
8155 (struct tui_source_windows) <begin, end>: Update.
8156 * tui/tui-layout.c (tui_windows): New global.
8157 (tui_apply_current_layout): Clear tui_windows.
8158 (tui_layout_window::apply): Update tui_windows.
8159 * tui/tui-data.h (tui_windows): Declare.
8160 (all_tui_windows): Now inline function.
8161 (class tui_window_iterator, struct all_tui_windows): Remove.
8162
8163 2020-02-22 Tom Tromey <tom@tromey.com>
8164
8165 PR tui/17850:
8166 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8167 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8168 "height" argument.
8169 (class tui_layout_window) <get_sizes>: Likewise.
8170 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8171 argument.
8172 <get_sizes>: Add "height" argument.
8173 <m_vertical>: New field.
8174 * tui/tui-layout.c (tui_layout_split::clone): Update.
8175 (tui_layout_split::get_sizes): Add "height" argument.
8176 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8177 (tui_new_layout_command): Parse "-horizontal".
8178 (_initialize_tui_layout): Update help string.
8179 (tui_layout_split::specification): Add "-horizontal" when needed.
8180 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8181 argument.
8182 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8183 New methods.
8184
8185 2020-02-22 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-layout.h (enum tui_adjust_result): New.
8188 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8189 (class tui_layout_window) <adjust_size>: Return
8190 tui_adjust_result. Rewrite.
8191 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8192 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8193
8194 2020-02-22 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8197 parameter and return types.
8198 (class tui_layout_base) <specification>: Add "depth".
8199 (class tui_layout_window) <specification>: Add "depth".
8200 (class tui_layout_split) <specification>: Add "depth".
8201 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8202 and return types.
8203 (tui_new_layout_command): Parse sub-layouts.
8204 (_initialize_tui_layout): Update help string.
8205 (tui_layout_window::specification): Add "depth".
8206 (add_layout_command): Update.
8207
8208 2020-02-22 Tom Tromey <tom@tromey.com>
8209
8210 * NEWS: Add "tui new-layout" item.
8211 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8212 Add new-layout command to help text.
8213 (validate_window_name): New function.
8214 (tui_new_layout_command): New function.
8215 (_initialize_tui_layout): Register "new-layout".
8216 (tui_layout_window::specification): New method.
8217 (tui_layout_window::specification): New method.
8218 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8219 method.
8220 (class tui_layout_window) <specification>: New method.
8221 (class tui_layout_split) <specification>: New method.
8222
8223 2020-02-22 Tom Tromey <tom@tromey.com>
8224
8225 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8226 * tui/tui-win.c (window_name_completer): Update comment.
8227 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8228 Declare method.
8229 (class tui_layout_window) <replace_window>: Likewise.
8230 (class tui_layout_split) <replace_window>: Likewise.
8231 (tui_set_layout): Don't declare.
8232 (tui_set_initial_layout): Declare function.
8233 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8234 (asm_regs_layout): New globals.
8235 (tui_current_layout, show_layout): Remove.
8236 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8237 (find_layout, tui_apply_layout): New function.
8238 (layout_completer): Remove.
8239 (tui_next_layout): Reimplement.
8240 (tui_next_layout_command): New function.
8241 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8242 (tui_regs_layout): Reimplement.
8243 (tui_regs_layout_command): New function.
8244 (extract_display_start_addr): Rewrite.
8245 (next_layout, prev_layout): Remove.
8246 (tui_layout_window::replace_window): New method.
8247 (tui_layout_split::replace_window): New method.
8248 (destroy_layout): New function.
8249 (layout_list): New global.
8250 (add_layout_command): New function.
8251 (initialize_layouts): Update.
8252 (tui_layout_command): New function.
8253 (_initialize_tui_layout): Install "layout" commands.
8254 * tui/tui-data.h (enum tui_layout_type): Remove.
8255 (tui_current_layout): Don't declare.
8256
8257 2020-02-22 Tom Tromey <tom@tromey.com>
8258
8259 * tui/tui-regs.c (tui_reg_layout): Remove.
8260 (tui_reg_command): Use tui_regs_layout.
8261 * tui/tui-layout.h (tui_reg_command): Declare.
8262 * tui/tui-layout.c (tui_reg_command): New function.
8263
8264 2020-02-22 Tom Tromey <tom@tromey.com>
8265
8266 * tui/tui.c (tui_rl_delete_other_windows): Call
8267 tui_remove_some_windows.
8268 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8269 Declare method.
8270 (class tui_layout_window) <remove_windows>: New method.
8271 (class tui_layout_split) <remove_windows>: Declare.
8272 (tui_remove_some_windows): Declare.
8273 * tui/tui-layout.c (tui_remove_some_windows): New function.
8274 (tui_layout_split::remove_windows): New method.
8275
8276 2020-02-22 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8279 * tui/tui-layout.h (tui_next_layout): Declare.
8280 * tui/tui-layout.c (tui_next_layout): New function.
8281
8282 2020-02-22 Tom Tromey <tom@tromey.com>
8283
8284 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8285 correct coordinates.
8286
8287 2020-02-22 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8290 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8291 DATA_WIN case.
8292
8293 2020-02-22 Tom Tromey <tom@tromey.com>
8294
8295 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8296 TUI_DISASM_WIN, not tui_win_list.
8297
8298 2020-02-22 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.c (generic_val_print_enum_1)
8301 (val_print_type_code_flags): Style member names.
8302 * rust-lang.c (val_print_struct, rust_print_enum)
8303 (rust_print_struct_def, rust_internal_print_type): Style member
8304 names.
8305 * p-valprint.c (pascal_object_print_value_fields): Style member
8306 names. Only call fprintf_symbol_filtered for static members.
8307 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8308 * f-valprint.c (f_val_print): Style member names.
8309 * f-typeprint.c (f_type_print_base): Style member names.
8310 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8311 call fprintf_symbol_filtered for static members.
8312 (cp_print_class_member): Style member names.
8313 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8314 member names.
8315 * ada-valprint.c (ada_print_scalar): Style enum names.
8316 (ada_val_print_enum): Likewise.
8317 * ada-typeprint.c (print_enum_type): Style enum names.
8318
8319 2020-02-21 Tom Tromey <tom@tromey.com>
8320
8321 * psympriv.h (struct partial_symtab): Update comment.
8322
8323 2020-02-21 Tom Tromey <tromey@adacore.com>
8324
8325 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8326 type is CORE_ADDR.
8327
8328 2020-02-21 Tom de Vries <tdevries@suse.de>
8329
8330 PR gdb/25534
8331 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8332 if dependencies[i]->user != NULL.
8333
8334 2020-02-21 Ali Tamur <tamur@google.com>
8335
8336 * dwarf2/read.c (dwarf2_name): Add null check.
8337
8338 2020-02-20 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8341 ">=", in binary search.
8342 (dwarf2_find_containing_comp_unit): New overload.
8343 (run_test): New self-test.
8344 (_initialize_dwarf2_read): Register new test.
8345
8346 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8347
8348 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8349 * riscv-tdep.h: Likewise.
8350 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8351 rv32-only CSR.
8352 * features/riscv/64bit-csr.xml: Regenerated.
8353
8354 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8355 Tom Tromey <tom@tromey.com>
8356
8357 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8358 of 'fputc_unfiltered'.
8359 (putchar_unfiltered): Call 'fputc_unfiltered'.
8360 (fputc_unfiltered): Call 'fputs_unfiltered'.
8361
8362 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8363
8364 * config.in: Regenerate.
8365 * configure: Regenerate.
8366 * configure.ac: Add --with-python-libdir option.
8367 * main.c: Use WITH_PYTHON_LIBDIR.
8368
8369 2020-02-19 Tom Tromey <tom@tromey.com>
8370
8371 * symtab.c (general_symbol_info::compute_and_set_names): Use
8372 obstack_strndup. Simplify call to symbol_set_demangled_name.
8373
8374 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8375
8376 * dwarf2/read.c (allocate_signatured_type_table,
8377 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8378 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8379 Remove objfile parameter, update all callers.
8380
8381 2020-02-19 Doug Evans <dje@google.com>
8382
8383 PR rust/25535
8384 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8385 rust_enum_variant calculation.
8386
8387 2020-02-19 Tom Tromey <tromey@adacore.com>
8388
8389 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8390
8391 2020-02-19 Tom Tromey <tromey@adacore.com>
8392
8393 * ada-lang.c (cache_symbol): Use obstack_strdup.
8394
8395 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * configure: Regenerate.
8398
8399 2020-02-19 Tom Tromey <tromey@adacore.com>
8400
8401 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8402 NULL check.
8403
8404 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8405
8406 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8407
8408 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8411 if GDBSERVER is not defined.
8412 (riscv_tdesc_cache): Likewise, also store const target_desc.
8413 (STATIC_IN_GDB): Define.
8414 (riscv_create_target_description): Update declaration with
8415 STATIC_IN_GDB.
8416 (riscv_lookup_target_description): New function, only define if
8417 GDBSERVER is not defined.
8418 * arch/riscv.h (riscv_create_target_description): Declare only
8419 when GDBSERVER is defined.
8420 (riscv_lookup_target_description): New declaration when GDBSERVER
8421 is not defined.
8422 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8423 (riscv_linux_read_features): ...this, and return
8424 riscv_gdbarch_features instead of target_desc.
8425 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8426 (riscv_linux_read_description): Rename to...
8427 (riscv_linux_read_features): ...this.
8428 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8429 Update to use riscv_gdbarch_features and
8430 riscv_lookup_target_description.
8431 * riscv-tdep.c (riscv_find_default_target_description): Use
8432 riscv_lookup_target_description instead of
8433 riscv_create_target_description.
8434
8435 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * valprint.c (generic_val_print_enum_1): When printing a flag
8438 enum with value 0 and there is no enumerator with value 0, print
8439 just "0" instead of "(unknown: 0x0)".
8440
8441 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8442
8443 * valprint.c (generic_val_print_enum_1): Print unknown part of
8444 flag enum in hex.
8445
8446 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8447
8448 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8449 flag enums to contain duplicate enumerators.
8450 * valprint.c (generic_val_print_enum_1): Update comment.
8451
8452 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * dwarf2/read.c: Include "count-one-bits.h".
8455 (update_enumeration_type_from_children): If an enumerator has
8456 multiple bits set, don't treat the enumeration as a "flag enum".
8457 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8458 of flag enums have 0 or 1 bit set.
8459
8460 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8461
8462 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8463 conversion.
8464 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8465 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8466 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8467 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8468 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8469
8470 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8471
8472 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8473
8474 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8475
8476 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8477 displaced_step_closure_up.
8478 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8479 (struct displaced_step_closure_up):
8480 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8481 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8482 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8483 Likewise.
8484 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8485 * gdbarch.c, gdbarch.h: Re-generate.
8486 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8487 displaced_step_closure_up.
8488 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8489 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8490 * infrun.h (displaced_step_closure_up): New type alias.
8491 (struct displaced_step_inferior_state) <step_closure>: Change
8492 type to displaced_step_closure_up.
8493 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8494 displaced_step_closure_up.
8495 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8496
8497 2020-02-14 Tom Tromey <tom@tromey.com>
8498
8499 * minidebug.c (gnu_debug_key): New global.
8500 (find_separate_debug_file_in_section): Use it.
8501
8502 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8503
8504 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8505 std::unique_ptr.
8506 * gdbarch.c: Re-generate.
8507 * gdbarch.h: Re-generate.
8508 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8509 change.
8510 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8511 type to std::unique_ptr.
8512 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8513 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8514 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8516 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8517 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8518 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8519 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8520 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8521
8522 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8525 std::unique_ptr.
8526 (displaced_step_clear): Rename to...
8527 (displaced_step_reset): ... this. Just call displaced->reset ().
8528 (displaced_step_clear_cleanup): Rename to...
8529 (displaced_step_reset_cleanup): ... this.
8530 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8531 (displaced_step_fixup): Likewise.
8532 (resume_1): Likewise.
8533 (handle_inferior_event): Restore child's memory before calling
8534 displaced_step_fixup on the parent.
8535 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8536 to std::unique_ptr.
8537 <step_closure>: Change type to std::unique_ptr.
8538
8539 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * arm-tdep.c: Include count-one-bits.h.
8542 (cleanup_block_store_pc): Use count_one_bits.
8543 (cleanup_block_load_pc): Use count_one_bits.
8544 (arm_copy_block_xfer): Use count_one_bits.
8545 (thumb2_copy_block_xfer): Use count_one_bits.
8546 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8547 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8548 (thumb_get_next_pcs_raw): Use count_one_bits.
8549 (arm_get_next_pcs_raw): Use count_one_bits_l.
8550 * arch/arm.c (bitcount): Remove.
8551 * arch/arm.h (bitcount): Remove.
8552
8553 2020-02-14 Tom Tromey <tromey@adacore.com>
8554
8555 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8556 Update.
8557 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8558 * dwarf2/loc.c (call_site_find_chain_1): Return
8559 unique_xmalloc_ptr.
8560 (call_site_find_chain): Likewise.
8561
8562 2020-02-14 Richard Biener <rguenther@suse.de>
8563
8564 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8565 on expression with division operators.
8566
8567 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8568
8569 * MAINTAINERS (Write After Approval): Adding myself.
8570
8571 2020-02-12 Tom Tromey <tom@tromey.com>
8572
8573 * event-loop.c (event_data, gdb_event, event_handler_func):
8574 Remove.
8575
8576 2020-02-12 Tom Tromey <tom@tromey.com>
8577
8578 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8579 (dwarf2_frame_objfile_data): Add comment.
8580 (find_comp_unit, set_comp_unit): New functions.
8581 (dwarf2_frame_find_fde): Use find_comp_unit.
8582 (dwarf2_build_frame_info): Use set_comp_unit.
8583
8584 2020-02-12 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8587 (comp_unit): Don't initialize objfile.
8588 (execute_cfa_program): Add text_offset parameter.
8589 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8590 (dwarf2_frame_cache): Update.
8591 (dwarf2_build_frame_info): Don't set "objfile" member.
8592
8593 2020-02-12 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8596 (decode_frame_entry): Likewise.
8597 (dwarf2_build_frame_info): Update.
8598
8599 2020-02-12 Tom Tromey <tom@tromey.com>
8600
8601 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8602 (decode_frame_entry_1): Use the comp_unit obstack.
8603
8604 2020-02-12 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2/frame.c (struct comp_unit): Add initializers and
8607 constructor.
8608 (dwarf2_frame_objfile_data): Store a comp_unit.
8609 (dwarf2_frame_find_fde): Update.
8610 (dwarf2_build_frame_info): Use "new".
8611
8612 2020-02-12 Tom Tromey <tom@tromey.com>
8613
8614 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8615 (dwarf2_fde_table): Typedef for std::vector.
8616 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8617 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8618 (decode_frame_entry): Update.
8619 (dwarf2_build_frame_info): Use "new".
8620
8621 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8622
8623 * arm-tdep.c (arm_gdbarch_init): Update.
8624 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8625 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8626 have_neon, is_m>: Change to bool.
8627
8628 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8629
8630 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8631
8632 2020-02-12 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8635
8636 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8637
8638 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8639 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8640
8641 2020-02-11 Tom Tromey <tom@tromey.com>
8642
8643 * psymtab.h: Update comment.
8644
8645 2020-02-11 Tom Tromey <tom@tromey.com>
8646
8647 * gdb_obstack.h (struct auto_obstack): Use
8648 DISABLE_COPY_AND_ASSIGN.
8649
8650 2020-02-11 Tom Tromey <tom@tromey.com>
8651
8652 * dwarf2/frame.h (struct objfile): Don't forward declare.
8653
8654 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8655
8656 * cris-tdep.c (cris_supply_gregset): Change signature to match
8657 what struct regset expects.
8658 (cris_regset): New struct.
8659 (fetch_core_registers): Remove.
8660 (cris_iterate_over_regset_sections): New function.
8661 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8662 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8663
8664 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8665
8666 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8667 registers.
8668
8669 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8670
8671 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8672
8673 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * configure: Re-generate.
8676
8677 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * configure: Re-generate.
8680
8681 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * acinclude: Update warning.m4 path.
8684 * warning.m4: Move to gdbsupport.
8685
8686 2020-02-11 Tom Tromey <tromey@adacore.com>
8687
8688 * remote.c (remote_console_output): Update.
8689 * printcmd.c (printf_command): Update.
8690 * event-loop.c (gdb_wait_for_event): Update.
8691 * linux-nat.c (sigchld_handler): Update.
8692 * remote-sim.c (gdb_os_write_stdout): Update.
8693 (gdb_os_flush_stdout): Update.
8694 (gdb_os_flush_stderr): Update.
8695 (gdb_os_write_stderr): Update.
8696 * exceptions.c (print_exception): Update.
8697 * remote-fileio.c (remote_fileio_func_read): Update.
8698 (remote_fileio_func_write): Update.
8699 * tui/tui.c (tui_enable): Update.
8700 * tui/tui-interp.c (tui_interp::init): Update.
8701 * utils.c (init_page_info): Update.
8702 (putchar_unfiltered, fputc_unfiltered): Update.
8703 (gdb_flush): Update.
8704 (emit_style_escape): Update.
8705 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8706 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8707 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8708 (stderr_file::write): Update.
8709 (stderr_file::puts): Update.
8710 * ui-file.h (ui_file_isatty, ui_file_write)
8711 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8712 (ui_file_puts): Don't declare.
8713
8714 2020-02-10 Tom de Vries <tdevries@suse.de>
8715
8716 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8717 sentinel to char *.
8718
8719 2020-02-09 Tom de Vries <tdevries@suse.de>
8720
8721 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8722 filename if it matches "<artificial>".
8723
8724 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8725
8726 * windows-tdep.c (struct enum_value_name): New struct.
8727 (create_enum): New function.
8728 (windows_get_siginfo_type): Create and use enum types.
8729
8730 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8731
8732 * NEWS: Mention $_siginfo support for Windows.
8733 * windows-nat.c (handle_exception): Set siginfo_er.
8734 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8735 (windows_xfer_siginfo): New function.
8736 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8737 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8738 (init_windows_gdbarch_data): New function.
8739 (get_windows_gdbarch_data): New function.
8740 (windows_get_siginfo_type): New function.
8741 (windows_init_abi): Register windows_get_siginfo_type.
8742 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8743
8744 2020-02-08 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8747 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8748 <keep>: Declare method.
8749 <m_keep>: Remove member.
8750 <~cutu_reader>: Remove.
8751 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8752 (cutu_reader::cutu_reader): Update.
8753 (cutu_reader::keep): Rename from ~cutu_reader.
8754 (process_psymtab_comp_unit, build_type_psymtabs_1)
8755 (process_skeletonless_type_unit, load_partial_comp_unit)
8756 (load_full_comp_unit, dwarf2_read_addr_index)
8757 (read_signatured_type): Update.
8758
8759 2020-02-08 Tom Tromey <tom@tromey.com>
8760
8761 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8762 "want_partial_unit" parameter.
8763 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8764 Inline check for DW_TAG_partial_unit.
8765 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8766
8767 2020-02-08 Tom Tromey <tom@tromey.com>
8768
8769 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8770 read.c.
8771 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8772 read.c.
8773
8774 2020-02-08 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/read.c (read_address): Move to comp-unit.c.
8777 (dwarf2_rnglists_process, dwarf2_ranges_process)
8778 (read_attribute_value, dwarf_decode_lines_1)
8779 (var_decode_location, decode_locdesc): Update.
8780 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8781 read.c. Remove "cu" parameter.
8782 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8783 method.
8784
8785 2020-02-08 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8788 (read_indirect_line_string): Update.
8789 * dwarf2/comp-unit.c (read_offset): Remove.
8790 (read_comp_unit_head): Update.
8791 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8792 method.
8793 (read_offset): Don't declare.
8794
8795 2020-02-08 Tom Tromey <tom@tromey.com>
8796
8797 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8798 * dwarf2/read.c (struct comp_unit_head): Move to
8799 dwarf2/comp-unit.h.
8800 (enum class rcuh_kind): Move to comp-unit.h.
8801 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8802 (read_comp_unit_head, error_check_comp_unit_head)
8803 (read_and_check_comp_unit_head): Move to comp-unit.c.
8804 (read_offset, dwarf_unit_type_name): Likewise.
8805 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8806 (cutu_reader::cutu_reader, read_call_site_scope)
8807 (find_partial_die, follow_die_offset): Update.
8808 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8809
8810 2020-02-08 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (read_offset_1): Move to leb.c.
8813 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8814 (dwarf_decode_macro_bytes): Update.
8815 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8816 * dwarf2/leb.h (read_offset): Declare.
8817
8818 2020-02-08 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2/read.c (dwarf2_section_size): Remove.
8821 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8822 Update.
8823 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8824
8825 2020-02-08 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/read.c (read_initial_length): Move to leb.c.
8828 * dwarf2/leb.h (read_initial_length): Declare.
8829 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8830 handle_nonstd parameter.
8831 * dwarf2/frame.c (read_initial_length): Remove.
8832 (decode_frame_entry_1): Update.
8833
8834 2020-02-08 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/loc.c (dwarf2_find_location_expression)
8837 (dwarf_evaluate_loc_desc::get_tls_address)
8838 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8839 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8840 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8841 (dwarf2_compile_property_to_c)
8842 (dwarf2_loc_desc_get_symbol_read_needs)
8843 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8844 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8845 (loclist_describe_location, loclist_tracepoint_var_ref)
8846 (loclist_generate_c_location): Update.
8847 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8848 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8849 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8850 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8851 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8852 (dwarf2_per_cu_data::addr_size)
8853 (dwarf2_per_cu_data::ref_addr_size)
8854 (dwarf2_per_cu_data::text_offset)
8855 (dwarf2_per_cu_data::addr_type): Now methods.
8856 (per_cu_header_read_in): Make per_cu "const".
8857 (dwarf2_version): Remove.
8858 (dwarf2_per_cu_data::int_type): Now a method.
8859 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8860 (set_die_type, read_array_type, read_subrange_index_type)
8861 (read_tag_string_type, read_subrange_type): Update.
8862 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8863 offset_size, ref_addr_size, text_offset, addr_type, version,
8864 objfile, int_type, addr_sized_int_type>: Declare methods.
8865
8866 2020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8869 Move earlier.
8870
8871 2020-02-08 Tom Tromey <tom@tromey.com>
8872
8873 * dwarf2/read.h (dwarf_line_debug): Declare.
8874 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8875 * dwarf2/read.c: Move line_header code to new files.
8876 (dwarf_line_debug): No longer static.
8877 * dwarf2/line-header.c: New file.
8878 * dwarf2/line-header.h: New file.
8879
8880 2020-02-08 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/read.c (struct line_header) <file_full_name,
8883 file_file_name>: Return unique_xmalloc_ptr.
8884 (line_header::file_file_name): Update.
8885 (line_header::file_full_name): Update.
8886 (dw2_get_file_names_reader): Update.
8887 (macro_start_file): Update.
8888
8889 2020-02-08 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2/read.c (struct line_header) <file_full_name,
8892 file_file_name>: Declare methods.
8893 (dw2_get_file_names_reader): Update.
8894 (file_file_name): Now a method.
8895 (file_full_name): Likewise.
8896 (macro_start_file): Update.
8897
8898 2020-02-08 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.c (dwarf_always_disassemble)
8901 (show_dwarf_always_disassemble): Move to loc.c.
8902 (_initialize_dwarf2_read): Move "always-disassemble" registration
8903 to loc.c.
8904 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8905 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8906 static.
8907 (show_dwarf_always_disassemble): Move from read.c.
8908 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8909
8910 2020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8913 (create_quick_file_names_table): Return htab_up.
8914 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8915 Update.
8916 * dwarf2/read.h (struct dwarf2_per_objfile)
8917 <quick_file_names_table>: Now htab_up.
8918
8919 2020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8922
8923 2020-02-08 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8926 Rewrite.
8927 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8928 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8929 (abbrev_table::abbrev_table): No longer inline.
8930 (ABBREV_HASH_SIZE): Remove.
8931 (abbrev_table::m_abbrevs): Now an htab_up.
8932
8933 2020-02-08 Tom Tromey <tom@tromey.com>
8934
8935 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8936 (cutu_reader): Update.
8937 (build_type_psymtabs_1): Update.
8938 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8939 (abbrev_table::alloc_abbrev): Update.
8940 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8941 (abbrev_table::read): New static method, renamed from
8942 abbrev_table_read_table.
8943 (abbrev_table::alloc_abbrev)
8944 (abbrev_table::add_abbrev): Now private.
8945 (abbrev_table::abbrev_table): Now private.
8946 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8947
8948 2020-02-08 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8951 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8952 htab_up.
8953
8954 2020-02-08 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8957 htab_up.
8958 (lookup_dwo_unit_in_dwp): Update.
8959 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8960 on obstack.
8961
8962 2020-02-08 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8965 obstack.
8966
8967 2020-02-08 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8970 line_header_hash.
8971 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8972 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8973 Change type to htab_up.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8978 htab_up. Don't allocate on obstack.
8979 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8980 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8981 Change type to htab_up.
8982
8983 2020-02-08 Tom Tromey <tom@tromey.com>
8984
8985 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8986 Change type to htab_up.
8987 * dwarf2/read.c (create_signatured_type_table_from_index)
8988 (create_signatured_type_table_from_debug_names)
8989 (create_all_type_units, add_type_unit)
8990 (lookup_dwo_signatured_type, lookup_signatured_type)
8991 (process_skeletonless_type_unit): Update.
8992 (create_debug_type_hash_table, create_debug_types_hash_table):
8993 Change type of types_htab.
8994 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8995 htab_up. Don't allocate on obstack.
8996 (create_cus_hash_table): Change type of cus_htab parameter.
8997 (struct dwo_file) <cus, tus>: Now htab_up.
8998 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8999 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9000 (queue_and_load_all_dwo_tus): Update.
9001 * dwarf2/index-write.c (write_gdbindex): Update.
9002 (write_debug_names): Update.
9003
9004 2020-02-08 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9007 dwarf2/read.c. Remove "next" member. Add constructor ntad
9008 destructor.
9009 (struct dwarf2_per_objfile) <queue>: New member.
9010 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9011 dwarf2/read.h.
9012 (dwarf2_queue, dwarf2_queue_tail): Remove.
9013 (class dwarf2_queue_guard): Add parameter to constructor. Use
9014 DISABLE_COPY_AND_ASSIGN.
9015 <m_per_objfile>: New member.
9016 <~dwarf2_queue_guard>: Rewrite.
9017 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9018 Update.
9019 (~dwarf2_queue_item): New.
9020
9021 2020-02-08 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (struct die_info) <has_children>: New member.
9024 (dw2_get_file_names_reader): Remove has_children.
9025 (dw2_get_file_names): Update.
9026 (read_cutu_die_from_dwo): Remove has_children.
9027 (cutu_reader::init_tu_and_read_dwo_dies)
9028 (cutu_reader::cutu_reader): Update.
9029 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9030 Remove has_children.
9031 (build_type_psymtabs_1, process_skeletonless_type_unit)
9032 (load_partial_comp_unit, load_full_comp_unit): Update.
9033 (create_dwo_cu_reader): Remove has_children.
9034 (create_cus_hash_table, read_die_and_children): Update.
9035 (read_full_die_1,read_full_die): Remove has_children.
9036 (read_signatured_type): Update.
9037 (class cutu_reader) <has_children>: Remove.
9038
9039 2020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/expr.c: Rename from dwarf2expr.c.
9042 * dwarf2/expr.h: Rename from dwarf2expr.h.
9043 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9044 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9045 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9046 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9047 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9048 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9049 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9050 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9051 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9052 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9053 * dwarf2/loc.c: Rename from dwarf2loc.c.
9054 * dwarf2/loc.h: Rename from dwarf2loc.h.
9055 * dwarf2/read.c: Rename from dwarf2read.c.
9056 * dwarf2/read.h: Rename from dwarf2read.h.
9057 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9058 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9059 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9060 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9061 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9062 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9063 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9064 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9065 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9066 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9067 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9068 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9069 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9070 Update.
9071 * Makefile.in (COMMON_SFILES): Update.
9072 (HFILES_NO_SRCDIR): Update.
9073
9074 2020-02-08 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9077 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9078
9079 2020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2read.h (struct die_info): Don't declare.
9082
9083 2020-02-08 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2read.h (die_info_ptr): Remove typedef.
9086
9087 2020-02-08 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2read.c (read_call_site_scope)
9090 (handle_data_member_location, dwarf2_add_member_fn)
9091 (mark_common_block_symbol_computed, read_common_block)
9092 (attr_to_dynamic_prop, partial_die_info::read)
9093 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9094 (dwarf2_symbol_mark_computed, set_die_type): Update.
9095 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9096 method.
9097 (attr_form_is_block): Don't declare.
9098 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9099
9100 2020-02-08 Tom Tromey <tom@tromey.com>
9101
9102 * dwarf2read.c (dwarf2_find_base_address, )
9103 (read_call_site_scope, rust_containing_type)
9104 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9105 (handle_data_member_location, dwarf2_add_member_fn)
9106 (get_alignment, read_structure_type, process_structure_scope)
9107 (mark_common_block_symbol_computed, read_common_block)
9108 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9109 (partial_die_info::read, read_attribute_value, new_symbol)
9110 (lookup_die_type, dwarf2_get_ref_die_offset)
9111 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9112 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9113 (dwarf2_symbol_mark_computed): Update.
9114 * dwarf2/attribute.h (struct attribute) <value_as_address,
9115 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9116 methods.
9117 (value_as_address, attr_form_is_section_offset)
9118 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9119 * dwarf2/attribute.c (attribute::value_as_address)
9120 (attribute::form_is_section_offset, attribute::form_is_constant)
9121 (attribute::form_is_ref): Now methods.
9122
9123 2020-02-08 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2read.c (struct attribute, DW_STRING)
9126 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9127 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9128 (attr_form_is_block, attr_form_is_section_offset)
9129 (attr_form_is_constant, attr_form_is_ref): Move.
9130 * dwarf2/attribute.h: New file.
9131 * dwarf2/attribute.c: New file, from dwarf2read.c.
9132 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9137 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9138 Move.
9139 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9140 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9141 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9142 abbrev.c.
9143 * dwarf2/abbrev.h: New file.
9144 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9145 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9146
9147 2020-02-08 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9150 (dwarf2_section_size, dwarf2_get_section_info)
9151 (create_signatured_type_table_from_debug_names)
9152 (create_addrmap_from_aranges, read_debug_names_from_section)
9153 (get_gdb_index_contents_from_section, read_comp_unit_head)
9154 (error_check_comp_unit_head, read_abbrev_offset)
9155 (create_debug_type_hash_table, init_cu_die_reader)
9156 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9157 (read_comp_units_from_section, create_cus_hash_table)
9158 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9159 (create_dwp_v2_section, dwarf2_rnglists_process)
9160 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9161 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9162 (read_indirect_string_from_dwz, read_addr_index_1)
9163 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9164 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9165 (fill_in_loclist_baton): Update.
9166 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9167 get_containing_section, get_bfd_owner, get_bfd_section,
9168 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9169 (dwarf2_read_section, get_section_name, get_section_file_name)
9170 (get_containing_section, get_section_bfd_owner)
9171 (get_section_bfd_section, get_section_name, get_section_file_name)
9172 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9173 declare.
9174 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9175 (dwarf2_section_info::get_bfd_owner)
9176 (dwarf2_section_info::get_bfd_section)
9177 (dwarf2_section_info::get_name)
9178 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9179 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9180 (dwarf2_section_info::read): Now methods.
9181 * dwarf-index-write.c (class debug_names): Update.
9182
9183 2020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9186 Move to dwarf2/section.h.
9187 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9188 (get_section_bfd_section, get_section_name)
9189 (get_section_file_name, get_section_id, get_section_flags)
9190 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9191 dwarf2/section.c.
9192 * dwarf2/section.h: New file.
9193 * dwarf2/section.c: New file, from dwarf2read.c.
9194 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9195
9196 2020-02-08 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9199 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9200 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9201 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9202 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9203 * dwarf2/leb.h: New file, from dwarf2read.c.
9204 * dwarf2/leb.c: New file, from dwarf2read.c.
9205 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9206 Remove.
9207 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9208 (COMMON_SFILES): Add dwarf2/leb.c.
9209
9210 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9211
9212 GDB 9.1 released.
9213
9214 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9215
9216 PR gdb/25190:
9217 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9218 * gdb/remote.c (remote_console_output): Update.
9219 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9220 (ui_file_puts): ...this.
9221 * gdb/ui-file.h (ui_file_puts): Add declaration.
9222 * gdb/utils.c (emit_style_escape): Update.
9223 (flush_wrap_buffer): Update.
9224 (fputs_maybe_filtered): Update.
9225 (fputs_unfiltered): Add function.
9226
9227 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9228
9229 * gdb/event-loop.c (gdb_wait_for_event): Update.
9230 * gdb/printcmd.c (printf_command): Update.
9231 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9232 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9233 (gdb_os_flush_stderr): Update.
9234 * gdb/remote.c (remote_console_output): Update.
9235 * gdb/ui-file.c (gdb_flush): Rename to...
9236 (ui_file_flush): ...this.
9237 (stderr_file::write): Update.
9238 (stderr_file::puts): Update.
9239 * gdb/ui-file.h (gdb_flush): Rename to...
9240 (ui_file_flush): ...this.
9241 * gdb/utils.c (gdb_flush): Add function.
9242 * gdb/utils.h (gdb_flush): Add declaration.
9243
9244 2020-02-07 Tom Tromey <tromey@adacore.com>
9245
9246 PR breakpoints/24915:
9247 * source.c (find_and_open_source): Do not check basenames_may_differ.
9248
9249 2020-02-07 Tom Tromey <tom@tromey.com>
9250
9251 * README: Update gdbserver documentation.
9252 * gdbserver: Move to top level.
9253 * configure.tgt (build_gdbserver): Remove.
9254 * configure.ac: Remove --enable-gdbserver.
9255 * configure: Rebuild.
9256 * Makefile.in (distclean): Don't mention gdbserver.
9257
9258 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9259
9260 * source-cache.c (source_cache::ensure): Surround
9261 get_plain_source_lines with a try/catch.
9262 (source_cache::get_line_charpos): Get rid of try/catch
9263 and only check for the return value of "ensure".
9264 * tui/tui-source.c (tui_source_window::set_contents):
9265 Simplify "nlines" calculation.
9266
9267 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9268
9269 * MAINTAINERS (Write After Approval): Add myself.
9270
9271 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9272
9273 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9274 function call.
9275
9276 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9277
9278 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9279
9280 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9281
9282 * nat/riscv-linux-tdesc.h: New file.
9283 * nat/riscv-linux-tdesc.c: New file, taking code from...
9284 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9285 ... here.
9286 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9287 NATDEPFILES.
9288
9289 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9290
9291 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9292 we don't set the fake simulator ptid to the null_ptid.
9293
9294 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9297 * gdbthread.h (class thread_info) <resumed>: Likewise.
9298 * infrun.c (resume_1): Likewise.
9299 (proceed): Likewise.
9300 (infrun_thread_stop_requested): Likewise.
9301 (stop_all_threads): Likewise.
9302 (handle_inferior_event): Likewise.
9303 (restart_threads): Likewise.
9304 (finish_step_over): Likewise.
9305 (keep_going_stepped_thread): Likewise.
9306 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9307 (linux_handle_extended_wait): Likewise.
9308 * record-btrace.c (get_thread_current_frame_id): Likewise.
9309 * record-full.c (record_full_wait_1): Likewise.
9310 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9311 * target.c (target_resume): Likewise.
9312 * thread.c (set_running_thread): Likewise.
9313
9314 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9315
9316 * f-valprint.c (f77_print_array_1): Changed datatype of index
9317 variable to LONGEST from int to enable it to contain bound
9318 values correctly.
9319
9320 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9321
9322 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9323 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9324 offsets according to FLEN determined.
9325 (riscv_linux_nat_target::read_description): Determine FLEN
9326 dynamically.
9327 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9328 according to FLEN determined.
9329 (riscv_linux_nat_target::store_registers): Likewise.
9330
9331 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9332
9333 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9334 when reg->group is empty and reggroup is not.
9335
9336 2020-01-31 Tom Tromey <tromey@adacore.com>
9337
9338 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9339 Call beneath target's mourn_inferior after unpushing.
9340
9341 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9342
9343 PR tui/9765
9344 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9345 have enough lines to fill the screen, still return the lowest
9346 address we found.
9347
9348 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9349
9350 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9351 '-', '<', and '>' commands.
9352
9353 2020-01-29 Pedro Alves <palves@redhat.com>
9354 Sergio Durigan Junior <sergiodj@redhat.com>
9355
9356 * infcmd.c (construct_inferior_arguments): Assert that
9357 'argc' is greater than 0.
9358
9359 2020-01-29 Luis Machado <luis.machado@linaro.org>
9360
9361 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9362 (BRK_INSN_MASK): Define to 0xd4200000.
9363 (aarch64_program_breakpoint_here_p): New function.
9364 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9365 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9366 breakpoint.c.
9367 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9368 breakpoint.h
9369 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9370 call gdbarch_program_breakpoint_here_p.
9371 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9372 default_program_breakpoint_here_p, changed return type to bool and
9373 simplified.
9374 * breakpoint.h (program_breakpoint_here): Moved prototype to
9375 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9376 return type to bool.
9377 * gdbarch.c: Regenerate.
9378 * gdbarch.h: Regenerate.
9379 * gdbarch.sh (program_breakpoint_here_p): New method.
9380 * infrun.c (handle_signal_stop): Call
9381 gdbarch_program_breakpoint_here_p.
9382
9383 2020-01-26 Tom Tromey <tom@tromey.com>
9384
9385 * ctfread.c (struct ctf_fp_info): Reindent.
9386 (_initialize_ctfread): Remove.
9387
9388 2020-01-26 Tom Tromey <tom@tromey.com>
9389
9390 * psymtab.c (partial_map_expand_apply)
9391 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9392 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9393 (psym_print_stats, psym_expand_symtabs_for_function)
9394 (psym_map_symbol_filenames, psym_map_matching_symbols)
9395 (psym_expand_symtabs_matching)
9396 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9397 (maintenance_check_psymtabs): Use new methods.
9398 * psympriv.h (struct partial_symtab) <readin_p,
9399 get_compunit_symtab>: New methods.
9400 <readin, compunit_symtab>: Remove members.
9401 (struct standard_psymtab): New.
9402 (struct legacy_psymtab): Derive from standard_psymtab.
9403 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9404 standard_psymtab.
9405 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9406
9407 2020-01-26 Tom Tromey <tom@tromey.com>
9408
9409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9410 read_dependencies. Add assert.
9411 * psymtab.c (partial_symtab::read_dependencies): New method.
9412 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9413 method.
9414 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9415 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9416 read_dependencies.
9417 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9418 Add assert.
9419
9420 2020-01-26 Tom Tromey <tom@tromey.com>
9421
9422 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9423 Call expand_psymtab.
9424 (xcoff_read_symtab): Call expand_psymtab.
9425 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9426 legacy_expand_psymtab.
9427 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9428 method.
9429 (struct legacy_psymtab) <expand_psymtab>: Implement.
9430 <legacy_expand_psymtab>: New member.
9431 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9432 (parse_partial_symbols): Set legacy_expand_psymtab.
9433 (psymtab_to_symtab_1): Change argument order. Call
9434 expand_psymtab.
9435 (new_psymtab): Set legacy_expand_psymtab.
9436 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9437 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9438 expand_psymtab.
9439 (dwarf2_psymtab::expand_psymtab): Rename from
9440 psymtab_to_symtab_1. Call expand_psymtab.
9441 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9442 (dbx_end_psymtab): Likewise.
9443 (dbx_psymtab_to_symtab_1): Change argument order. Call
9444 expand_psymtab.
9445 (dbx_read_symtab): Call expand_psymtab.
9446 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9447 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9448 (ctf_psymtab::read_symtab): Call expand_psymtab.
9449
9450 2020-01-26 Tom Tromey <tom@tromey.com>
9451
9452 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9453 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9454 messages.
9455 * mdebugread.c (mdebug_read_symtab): Remove prints.
9456 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9457 assert.
9458 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9459
9460 2020-01-26 Tom Tromey <tom@tromey.com>
9461
9462 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9463 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9464 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9465 legacy_symtab.
9466 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9467 * psymtab.c (psymtab_to_symtab): Call method.
9468 (dump_psymtab): Update.
9469 * psympriv.h (struct partial_symtab): Add virtual destructor.
9470 <read_symtab>: New method.
9471 (struct legacy_symtab): New.
9472 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9473 (struct pst_map) <pst>: Now a legacy_psymtab.
9474 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9475 (new_psymtab): Use legacy_psymtab.
9476 * dwarf2read.h (struct dwarf2_psymtab): New.
9477 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9478 * dwarf2read.c (dwarf2_create_include_psymtab)
9479 (dwarf2_build_include_psymtabs, create_type_unit_group)
9480 (create_partial_symtab, process_psymtab_comp_unit_reader)
9481 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9482 (set_partial_user): Use dwarf2_psymtab.
9483 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9484 (psymtab_to_symtab_1, process_full_comp_unit)
9485 (process_full_type_unit, dwarf2_ranges_read)
9486 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9487 (dwarf_decode_lines): Use dwarf2_psymtab.
9488 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9489 (add_address_entry_worker, write_one_signatured_type)
9490 (recursively_count_psymbols, recursively_write_psymbols)
9491 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9492 (write_debug_names): Likewise.
9493 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9494 <pst>: Now a legacy_psymtab.
9495 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9496 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9497 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9498 * ctfread.c (struct ctf_psymtab): New.
9499 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9500 ctf_psymtab.
9501 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9502 (create_partial_symtab): Return a ctf_psymtab.
9503 (scan_partial_symbols): Update.
9504
9505 2020-01-26 Tom Tromey <tom@tromey.com>
9506
9507 * xcoffread.c (xcoff_start_psymtab): Use new.
9508 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9509 renamed from start_psymtab_common.
9510 * psympriv.h (struct partial_symtab): Add new constructor.
9511 (start_psymtab_common): Don't declare.
9512 * mdebugread.c (parse_partial_symbols): Use new.
9513 * dwarf2read.c (create_partial_symtab): Use new.
9514 * dbxread.c (start_psymtab): Use new.
9515 * ctfread.c (create_partial_symtab): Use new.
9516
9517 2020-01-26 Tom Tromey <tom@tromey.com>
9518
9519 * xcoffread.c (xcoff_end_psymtab): Use new.
9520 * psymtab.c (start_psymtab_common): Use new.
9521 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9522 Update.
9523 * psympriv.h (struct partial_symtab): Add parameters to
9524 constructor. Don't inline.
9525 (allocate_psymtab): Don't declare.
9526 * mdebugread.c (new_psymtab): Use new.
9527 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9528 * dbxread.c (dbx_end_psymtab): Use new.
9529
9530 2020-01-26 Tom Tromey <tom@tromey.com>
9531
9532 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9533 allocate_psymtab. Update documentation.
9534 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9535 allocate_psymtab. Do not use new.
9536 (allocate_psymtab): Use new. Update.
9537
9538 2020-01-26 Tom Tromey <tom@tromey.com>
9539
9540 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9541 * psymtab.c (psym_print_stats): Update.
9542 * psympriv.h (struct partial_symtab) <readin,
9543 psymtabs_addrmap_supported, anonymous>: Now bool.
9544 * mdebugread.c (psymtab_to_symtab_1): Update.
9545 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9546 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9547 (process_full_comp_unit, process_full_type_unit): Update.
9548 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9549 * ctfread.c (psymtab_to_symtab): Update.
9550
9551 2020-01-26 Tom Tromey <tom@tromey.com>
9552
9553 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9554 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9555 * psymtab.c (psymtab_storage): Delete psymtabs.
9556 (psymtab_storage::allocate_psymtab): Use new.
9557 (psymtab_storage::discard_psymtab): Use delete.
9558 * psympriv.h (struct partial_symtab): Add constructor and
9559 initializers.
9560
9561 2020-01-26 Tom Tromey <tom@tromey.com>
9562
9563 * machoread.c: Do not include psympriv.h.
9564
9565 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9566
9567 * NEWS: Mention the new option and the set/show commands.
9568
9569 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9570
9571 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9572 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9573 (validate_exec_file): New variables, enums, functions.
9574 (exec_file_locate_attach, print_section_info): Style the filenames.
9575 (_initialize_exec): Install show_exec_file_mismatch_command and
9576 set_exec_file_mismatch_command.
9577 * gdbcore.h (validate_exec_file): Declare.
9578 * infcmd.c (attach_command): Call validate_exec_file.
9579 * remote.c ( remote_target::remote_add_inferior): Likewise.
9580
9581 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9582
9583 * frame.c (find_frame_sal): Move call to get_next_frame into more
9584 inner scope.
9585 * inline-frame.c (inilne_state) <inline_state>: Update argument
9586 types.
9587 (inilne_state) <skipped_symbol>: Rename to...
9588 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9589 (skip_inline_frames): Build vector of skipped symbols and use this
9590 to reate the inline_state.
9591 (inline_skipped_symbol): Add a comment and some assertions, fetch
9592 skipped symbol from the list.
9593
9594 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9595
9596 * buildsym.c (lte_is_less_than): Delete.
9597 (buildsym_compunit::end_symtab_with_blockvector): Create local
9598 lambda function to sort line table entries, and use
9599 std::stable_sort instead of std::sort.
9600 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9601 markers when looking for a previous line.
9602
9603 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * dwarf2read.c (lnp_state_machine::record_line): Include
9606 end_sequence parameter in debug print out. Record the line if we
9607 are at an end_sequence marker even if it's not the start of a
9608 statement.
9609 * symmisc.c (maintenance_print_one_line_table): Print end of
9610 sequence markers with 'END' not '0'.
9611
9612 2020-01-24 Pedro Alves <palves@redhat.com>
9613
9614 PR gdb/25410
9615 * thread.c (scoped_restore_current_thread::restore): Use
9616 switch_to_inferior_no_thread.
9617 * exec.c: Include "progspace-and-thread.h".
9618 (add_target_sections, remove_target_sections):
9619 scoped_restore_current_pspace_and_thread instead of
9620 scoped_restore_current_thread.
9621 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9622 and aspace to the inferior before calling clone_program_space.
9623 Remove stale comment.
9624
9625 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9626
9627 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9628 (arm_netbsd_nat_target::fetch_registers): ...this.
9629 (arm_nbsd_nat_target::store_registers): Rename to...
9630 (arm_netbsd_nat_target::store_registers): ...this.
9631
9632 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9633
9634 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9635 register_t.
9636
9637 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9638
9639 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9640 Update comment.
9641 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9642 Likewise.
9643 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9644 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9645 the correct replacement (iterate_over_regset_sections).
9646 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9647 Update comment.
9648
9649 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9650
9651 PR gdb/23718
9652 * gdb/python/python.c (execute_gdb_command): Call
9653 async_enable_stdin in catch block.
9654
9655 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9656
9657 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9658 SWITCH_THRU_ALL_UIS.
9659
9660 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9661
9662 PR tui/9765
9663 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9664 comment, add extra parameter, and update to store previous symbol
9665 when appropriate.
9666 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9667 add extra parameter.
9668 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9669 remove unneeded parameter, add try/catch around gdb_print_insn,
9670 rewrite to add items to asm_lines vector.
9671 (tui_find_backward_disassembly_start_address): New function.
9672 (tui_find_disassembly_address): Updated throughout.
9673 (tui_disasm_window::set_contents): Update for changes to
9674 tui_disassemble.
9675 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9676 number of lines to scroll.
9677
9678 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9679
9680 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9681 (SECT_OFF_DATA): Likewise.
9682 (SECT_OFF_RODATA): Likewise.
9683 (SECT_OFF_TEXT): Likewise.
9684 (SECT_OFF_BSS): Likewise.
9685 (struct objfile) <text_section_offset, data_section_offset>: New
9686 methods.
9687 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9688 objfile::text_section_offset.
9689 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9690 * coffread.c (coff_symtab_read): Likewise.
9691 (enter_linenos): Likewise.
9692 (process_coff_symbol): Likewise.
9693 * ctfread.c (get_objfile_text_range): Likewise.
9694 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9695 Use objfile::data_section_offset.
9696 * dwarf2-frame.c (execute_cfa_program): Use
9697 objfile::text_section_offset.
9698 (dwarf2_frame_find_fde): Likewise.
9699 * dwarf2read.c (create_addrmap_from_index): Likewise.
9700 (create_addrmap_from_aranges): Likewise.
9701 (dw2_find_pc_sect_compunit_symtab): Likewise.
9702 (process_psymtab_comp_unit_reader): Likewise.
9703 (add_partial_symbol): Likewise.
9704 (add_partial_subprogram): Likewise.
9705 (process_full_comp_unit): Likewise.
9706 (read_file_scope): Likewise.
9707 (read_func_scope): Likewise.
9708 (read_lexical_block_scope): Likewise.
9709 (read_call_site_scope): Likewise.
9710 (dwarf2_rnglists_process): Likewise.
9711 (dwarf2_ranges_process): Likewise.
9712 (dwarf2_ranges_read): Likewise.
9713 (dwarf_decode_lines_1): Likewise.
9714 (new_symbol): Likewise.
9715 (dwarf2_fetch_die_loc_sect_off): Likewise.
9716 (dwarf2_per_cu_text_offset): Likewise.
9717 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9718 * hppa-tdep.c (read_unwind_info): Likewise.
9719 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9720 * psympriv.h (struct partial_symtab): Likewise.
9721 * psymtab.c (find_pc_sect_psymtab): Likewise.
9722 * solib-svr4.c (enable_break): Likewise.
9723 * stap-probe.c (relocate_address): Use
9724 objfile::data_section_offset.
9725 * xcoffread.c (enter_line_range): Use
9726 objfile::text_section_offset.
9727 (read_xcoff_symtab): Likewise.
9728
9729 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9732 declaration to narrower scopes.
9733
9734 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * darwin-nat.h (struct darwin_exception_msg, enum
9737 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9738 Move up.
9739 (class darwin_nat_target) <wait_1, check_new_threads,
9740 decode_exception_message, decode_message, stop_inferior,
9741 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9742 * darwin-nat.c (darwin_check_new_threads): Rename to...
9743 (darwin_nat_target::check_new_threads): ... this.
9744 (darwin_suspend_inferior_it): Remove.
9745 (darwin_decode_exception_message): Rename to...
9746 (darwin_nat_target::decode_exception_message): ... this.
9747 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9748 (darwin_decode_message): Rename to...
9749 (darwin_nat_target::decode_message): ... this.
9750 (cancel_breakpoint): Rename to...
9751 (darwin_nat_target::cancel_breakpoint): ... this.
9752 (darwin_wait): Rename to...
9753 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9754 instead of iterate_over_inferiors.
9755 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9756 (darwin_stop_inferior): Rename to...
9757 (darwin_nat_target::stop_inferior): ... this.
9758 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9759 (darwin_init_thread_list): Rename to...
9760 (darwin_nat_target::init_thread_list): ... this.
9761 (darwin_ptrace_him): Rename to...
9762 (darwin_nat_target::ptrace_him): ... this.
9763 (darwin_nat_target::create_inferior): Pass lambda function to
9764 fork_inferior.
9765 (darwin_nat_target::detach): Call stop_inferior instead of
9766 darwin_stop_inferior.
9767 * fork-inferior.h (fork_inferior): Change init_trace_fun
9768 parameter to gdb::function_view.
9769 * fork-inferior.c (fork_inferior): Likewise.
9770
9771 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9772
9773 * i386-cygwin-tdep.c (core_process_module_section): Update.
9774 * windows-nat.c (struct lm_info_windows): Add text_offset.
9775 (windows_xfer_shared_libraries): Update.
9776 * windows-tdep.c (windows_xfer_shared_library):
9777 Add text_offset_cached argument.
9778 * windows-tdep.h (windows_xfer_shared_library): Update.
9779
9780 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9781
9782 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9783
9784 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9785
9786 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9787 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9788 replace with range-based for.
9789 (gdbsim_interrupt_inferior): Remove.
9790 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9791 with a range-based for. Inline code from
9792 gdbsim_interrupt_inferior.
9793
9794 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * infrun.c (proceed): Fix indentation.
9797
9798 2020-01-21 Tom Tromey <tromey@adacore.com>
9799
9800 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9801 * python/python.c (python_extension_ops): Update.
9802 (gdbpy_colorize): New function.
9803 * python/lib/gdb/__init__.py (colorize): New function.
9804 * extension.h (ext_lang_colorize): Declare.
9805 * extension.c (ext_lang_colorize): New function.
9806 * extension-priv.h (struct extension_language_ops) <colorize>: New
9807 member.
9808 * cli/cli-style.c (_initialize_cli_style): Update help text.
9809
9810 2020-01-21 Luis Machado <luis.machado@linaro.org>
9811
9812 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9813 <cond>: Change type to bool.
9814 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9815 (aarch64_displaced_step_cb): Likewise.
9816 (aarch64_displaced_step_tb): Likewise.
9817
9818 2020-01-21 Luis Machado <luis.machado@linaro.org>
9819
9820 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9821 output.
9822
9823 2020-01-21 Luis Machado <luis.machado@linaro.org>
9824
9825 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9826 <pc_adjust>: Adjust the documentation.
9827 (aarch64_displaced_step_fixup): Check if PC really moved before
9828 adjusting it.
9829
9830 2020-01-19 Tom Tromey <tom@tromey.com>
9831
9832 * disasm.c (~gdb_disassembler): New destructor.
9833 (gdb_buffered_insn_length): Call disassemble_free_target.
9834 * disasm.h (class gdb_disassembler): Declare destructor. Use
9835 DISABLE_COPY_AND_ASSIGN.
9836
9837 2020-01-19 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9840 (die_reader_func_ftype): Remove.
9841 (cutu_reader): New class.
9842 (dw2_get_file_names_reader): Remove "data" parameter.
9843 (dw2_get_file_names): Use cutu_reader.
9844 (create_debug_type_hash_table): Update.
9845 (read_cutu_die_from_dwo): Update comment.
9846 (lookup_dwo_unit): Add dwo_name parameter.
9847 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9848 die_reader_func_ftype and data parameters.
9849 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9850 Remove die_reader_func_ftype and data parameters.
9851 (~cutu_reader): New; from init_cutu_and_read_dies.
9852 (cutu_reader::cutu_reader): Rename from
9853 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9854 and data parameters.
9855 (init_cutu_and_read_dies_simple): Remove.
9856 (struct process_psymtab_comp_unit_data): Remove.
9857 (process_psymtab_comp_unit_reader): Remove data parameter; add
9858 want_partial_unit and pretend_language parameters.
9859 (process_psymtab_comp_unit): Use cutu_reader.
9860 (build_type_psymtabs_reader): Remove data parameter.
9861 (build_type_psymtabs_1): Use cutu_reader.
9862 (process_skeletonless_type_unit): Likewise.
9863 (load_partial_comp_unit_reader): Remove.
9864 (load_partial_comp_unit): Use cutu_reader.
9865 (load_full_comp_unit_reader): Remove.
9866 (load_full_comp_unit): Use cutu_reader.
9867 (struct create_dwo_cu_data): Remove.
9868 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9869 dwo_unit parameters.
9870 (create_cus_hash_table): Use cutu_reader.
9871 (struct dwarf2_read_addr_index_data): Remove.
9872 (dwarf2_read_addr_index_reader): Remove.
9873 (dwarf2_read_addr_index): Use cutu_reader.
9874 (read_signatured_type_reader): Remove.
9875 (read_signatured_type): Use cutu_reader.
9876
9877 2020-01-19 Tom Tromey <tom@tromey.com>
9878
9879 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9880 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9881 (tui_wrefresh): Declare.
9882 * tui/tui-wingeneral.c (suppress_output): New global.
9883 (tui_suppress_output, ~tui_suppress_output): New constructor and
9884 destructor.
9885 (tui_wrefresh): New function.
9886 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9887 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9888 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9889 method.
9890 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9891 tui_wrefresh.
9892 (tui_data_window::no_refresh): New method.
9893 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9894 (tui_reg_command): Use tui_suppress_output
9895 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9896 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9897 method.
9898 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9899
9900 2020-01-19 Tom Tromey <tom@tromey.com>
9901
9902 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9903 Handle case where symtab is null.
9904
9905 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9906
9907 * linux-fork.c (one_fork_p): Simplify.
9908
9909 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * top.c (struct qt_args): Remove.
9912 (kill_or_detach): Change return type to void, replace `void *`
9913 parameter with a proper one.
9914 (print_inferior_quit_action): Likewise.
9915 (quit_confirm): Use range-based for loop to iterate over inferiors.
9916 (quit_force): Likewise.
9917
9918 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9921 `void *` parameter with proper parameters.
9922 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9923 (print_one_inferior): Change return type to void, replace `void *`
9924 parameter with proper parameters.
9925 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9926 inferiors.
9927 (get_other_inferior): Remove.
9928 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9929 inferiors.
9930
9931 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * mi/mi-interp.c (report_initial_inferior): Remove.
9934 (mi_interp::init): Use range-based for to iterate over inferiors.
9935
9936 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * python/py-inferior.c (build_inferior_list): Remove.
9939 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9940
9941 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9942
9943 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9944 (btrace_stitch_trace): Likewise.
9945 * charset.c (intermediate_encoding): Likewise (vaild).
9946 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9947 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9948 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9949
9950 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9951
9952 * windows-tdep.c (windows_get_tlb_type):
9953 Add rtl_user_process_parameters type.
9954
9955 2020-01-16 Pedro Alves <palves@redhat.com>
9956 Norbert Lange <nolange79@gmail.com>
9957
9958 PR build/24805
9959 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9960 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9961 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9962 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9963 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9964 (ps_plog): Redeclare exported functions with default visibility.
9965
9966 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9967
9968 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9969 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9970
9971 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * infcmd.c (post_create_inferior): Use get_thread_regcache
9974 instead of get_current_regcache.
9975
9976 2020-01-14 Tom Tromey <tom@tromey.com>
9977
9978 PR symtab/12535:
9979 * python/python.c (gdbpy_decode_line): Treat empty string the same
9980 as no argument.
9981
9982 2020-01-14 Tom Tromey <tom@tromey.com>
9983
9984 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9985
9986 2020-01-14 Tom Tromey <tom@tromey.com>
9987
9988 * nat/linux-btrace.c: Don't include <config.h>.
9989 * nat/linux-ptrace.c: Don't include <config.h>.
9990 * nat/x86-linux-dregs.c: Don't include <config.h>.
9991
9992 2020-01-14 Tom Tromey <tom@tromey.com>
9993
9994 * configure: Rebuild.
9995 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9996
9997 2020-01-14 Tom Tromey <tom@tromey.com>
9998
9999 * nat/x86-linux-dregs.c: Include configh.h.
10000 * nat/linux-ptrace.c: Include configh.h.
10001 * nat/linux-btrace.c: Include configh.h.
10002 * defs.h: Include config.h, bfd.h.
10003 * configure.ac: Don't source common.host.
10004 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10005 * configure: Rebuild.
10006 * acinclude.m4: Update path.
10007 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10008 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10009 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10010 (CLIBS): Add LIBSUPPORT.
10011 (CDEPS): Likewise.
10012 (COMMON_SFILES): Remove gdbsupport files.
10013 (HFILES_NO_SRCDIR): Likewise.
10014 (stamp-version): Update path to create-version.sh.
10015 (ALLDEPFILES): Remove gdbsupport files.
10016
10017 2020-01-14 Tom Tromey <tom@tromey.com>
10018
10019 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10020 USE_WIN32API when needed.
10021 * configure.ac (USE_WIN32API): Don't define.
10022 (WIN32LIBS): Use WIN32APILIBS.
10023 * configure: Rebuild.
10024
10025 2020-01-14 Tom Tromey <tom@tromey.com>
10026
10027 * configure: Rebuild.
10028 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10029
10030 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10031
10032 * skip.c (skip_function_command): Make skip w/o arguments use the
10033 name of the inlined function if pc is inside any inlined function.
10034
10035 2020-01-14 Luis Machado <luis.machado@linaro.org>
10036
10037 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10038 * infrun.c (resume_1): Likewise.
10039 (handle_inferior_event): Remove stale comment.
10040 * linux-nat.c (linux_nat_target::resume): Update comments.
10041 (save_stop_reason): Likewise.
10042 (linux_nat_filter_event): Likewise.
10043 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10044
10045 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10046
10047 * elfread.c (record_minimal_symbol): Set section index to 0 for
10048 non-allocatable sections.
10049
10050
10051 2020-01-13 Ali Tamur <tamur@google.com>
10052
10053 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10054 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10055 to gdb::optional. Update comments.
10056 (dwo_file): Update comments.
10057 (read_attribute): Update API to take an additional out parameter,
10058 need_reprocess. This is used to mark attributes that need other
10059 attributes (e.g. str_offsets_base) for correct computation which may not
10060 have been read yet.
10061 (read_attribute_reprocess): New function declaration.
10062 (read_addr_index): Likewise.
10063 (read_dwo_str_index): Likewise.
10064 (read_stub_str_index): Likewise.
10065 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10066 (lookup_addr_base): New function definition.
10067 (lookup_ranges_base): Likewise.
10068 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10069 lookup_ranges_base.
10070 (init_cutu_and_read_dies): Update comments.
10071 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10072 unit. This is used to inherit parent's str_offsets_base and addr_base.
10073 Update comments.
10074 (init_cutu_and_read_dies_simple): Reflect API changes.
10075 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10076 (create_cus_hash_table): Change API to take parent compile unit.
10077 Reflect API changes.
10078 (open_and_init_dwo_file): Reflect API changes.
10079 (dwarf2_get_pc_bounds): Update comments.
10080 (dwarf2_record_block_ranges): Likewise.
10081 (read_full_die_1): Change implementation to reprocess attributes that
10082 need str_offsets_base and addr_base.
10083 (partial_die_info::read): Likewise.
10084 (read_attribute_reprocess): New function definition.
10085 (read_attribute_value): Change API to take an additional out parameter,
10086 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10087 when a non-dwo compile unit has index based attributes.
10088 (read_attribute): Reflect API changes.
10089 (read_addr_index_1): Reflect API changes. Update comments.
10090 (dwarf2_read_addr_index_data): Reflect API changes.
10091 (dwarf2_read_addr_index): Likewise.
10092 (read_str_index): Change API and implementation. This becomes a helper
10093 to be used by the new string index related methods. Update error
10094 message and comments.
10095 (read_dwo_str_index): New function definition.
10096 (read_stub_str_index): Likewise.
10097 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10098 * symfile.h (dwarf2_debug_sections): Likewise.
10099 * xcoffread.c (dwarf2_debug_sections): Likewise.
10100
10101 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10104 core_reg_sect type to gdb_byte *.
10105 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10106 * cris-tdep.c (fetch_core_registers): Likewise.
10107 * corelow.c (core_target::get_core_register_section): Change
10108 type of `contents` to gdb::byte_vector.
10109
10110 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * tui/tui-wingeneral.c (box_win): Position the title in the center
10113 of the border.
10114
10115 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * corelow.c (core_target::get_core_register_section): Use
10118 std::vector instead of alloca.
10119
10120 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10121
10122 * warning.m4: Add -Wmissing-declarations to build_warnings.
10123 * configure: Re-generate.
10124
10125 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * python/python.c (init__gdb_module): Add declaration.
10128
10129 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10132 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10133 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10134 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10135 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10136 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10137 * ada-exp.y (_initialize_ada_exp): Add declaration.
10138 * ada-lang.c (_initialize_ada_language): Add declaration.
10139 * ada-tasks.c (_initialize_tasks): Add declaration.
10140 * agent.c (_initialize_agent): Add declaration.
10141 * aix-thread.c (_initialize_aix_thread): Add declaration.
10142 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10143 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10144 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10145 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10146 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10147 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10148 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10149 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10150 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10151 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10152 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10153 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10154 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10155 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10156 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10157 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10158 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10159 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10160 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10161 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10162 * annotate.c (_initialize_annotate): Add declaration.
10163 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10164 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10165 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10166 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10167 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10168 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10169 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10170 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10171 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10172 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10173 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10174 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10175 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10176 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10177 * auto-load.c (_initialize_auto_load): Add declaration.
10178 * auxv.c (_initialize_auxv): Add declaration.
10179 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10180 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10181 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10182 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10183 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10184 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10185 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10186 * breakpoint.c (_initialize_breakpoint): Add declaration.
10187 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10188 * btrace.c (_initialize_btrace): Add declaration.
10189 * charset.c (_initialize_charset): Add declaration.
10190 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10191 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10192 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10193 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10194 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10195 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10196 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10197 * coffread.c (_initialize_coffread): Add declaration.
10198 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10199 * compile/compile.c (_initialize_compile): Add declaration.
10200 * complaints.c (_initialize_complaints): Add declaration.
10201 * completer.c (_initialize_completer): Add declaration.
10202 * copying.c (_initialize_copying): Add declaration.
10203 * corefile.c (_initialize_core): Add declaration.
10204 * corelow.c (_initialize_corelow): Add declaration.
10205 * cp-abi.c (_initialize_cp_abi): Add declaration.
10206 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10207 * cp-support.c (_initialize_cp_support): Add declaration.
10208 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10209 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10210 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10211 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10212 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10213 * ctfread.c (_initialize_ctfread): Add declaration.
10214 * d-lang.c (_initialize_d_language): Add declaration.
10215 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10216 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10217 * dbxread.c (_initialize_dbxread): Add declaration.
10218 * dcache.c (_initialize_dcache): Add declaration.
10219 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10220 * disasm.c (_initialize_disasm): Add declaration.
10221 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10222 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10223 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10224 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10225 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10226 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10227 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10228 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10229 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10230 * elfread.c (_initialize_elfread): Add declaration.
10231 * exec.c (_initialize_exec): Add declaration.
10232 * extension.c (_initialize_extension): Add declaration.
10233 * f-lang.c (_initialize_f_language): Add declaration.
10234 * f-valprint.c (_initialize_f_valprint): Add declaration.
10235 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10236 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10237 * filesystem.c (_initialize_filesystem): Add declaration.
10238 * findcmd.c (_initialize_mem_search): Add declaration.
10239 * findvar.c (_initialize_findvar): Add declaration.
10240 * fork-child.c (_initialize_fork_child): Add declaration.
10241 * frame-base.c (_initialize_frame_base): Add declaration.
10242 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10243 * frame.c (_initialize_frame): Add declaration.
10244 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10245 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10246 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10247 * gcore.c (_initialize_gcore): Add declaration.
10248 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10249 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10250 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10251 * gdbarch.c (_initialize_gdbarch): Add declaration.
10252 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10253 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10254 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10255 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10256 * go-lang.c (_initialize_go_language): Add declaration.
10257 * go32-nat.c (_initialize_go32_nat): Add declaration.
10258 * guile/guile.c (_initialize_guile): Add declaration.
10259 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10260 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10261 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10262 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10263 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10264 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10265 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10266 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10267 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10268 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10269 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10270 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10271 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10272 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10273 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10274 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10275 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10276 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10277 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10278 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10279 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10280 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10281 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10282 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10283 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10284 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10285 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10286 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10287 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10288 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10289 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10290 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10291 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10292 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10293 * infcall.c (_initialize_infcall): Add declaration.
10294 * infcmd.c (_initialize_infcmd): Add declaration.
10295 * inflow.c (_initialize_inflow): Add declaration.
10296 * infrun.c (_initialize_infrun): Add declaration.
10297 * interps.c (_initialize_interpreter): Add declaration.
10298 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10299 * jit.c (_initialize_jit): Add declaration.
10300 * language.c (_initialize_language): Add declaration.
10301 * linux-fork.c (_initialize_linux_fork): Add declaration.
10302 * linux-nat.c (_initialize_linux_nat): Add declaration.
10303 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10304 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10305 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10306 * m2-lang.c (_initialize_m2_language): Add declaration.
10307 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10308 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10309 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10310 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10311 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10312 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10313 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10314 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10315 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10316 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10317 * machoread.c (_initialize_machoread): Add declaration.
10318 * macrocmd.c (_initialize_macrocmd): Add declaration.
10319 * macroscope.c (_initialize_macroscope): Add declaration.
10320 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10321 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10322 * maint.c (_initialize_maint_cmds): Add declaration.
10323 * mdebugread.c (_initialize_mdebugread): Add declaration.
10324 * memattr.c (_initialize_mem): Add declaration.
10325 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10326 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10327 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10328 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10329 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10330 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10331 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10332 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10333 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10334 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10335 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10336 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10337 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10338 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10339 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10340 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10341 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10342 * mipsread.c (_initialize_mipsread): Add declaration.
10343 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10344 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10345 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10346 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10347 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10348 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10349 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10350 * nto-procfs.c (_initialize_procfs): Add declaration.
10351 * objc-lang.c (_initialize_objc_language): Add declaration.
10352 * observable.c (_initialize_observer): Add declaration.
10353 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10354 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10355 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10356 * osabi.c (_initialize_gdb_osabi): Add declaration.
10357 * osdata.c (_initialize_osdata): Add declaration.
10358 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10359 * parse.c (_initialize_parse): Add declaration.
10360 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10361 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10362 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10363 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10364 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10365 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10366 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10367 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10368 * printcmd.c (_initialize_printcmd): Add declaration.
10369 * probe.c (_initialize_probe): Add declaration.
10370 * proc-api.c (_initialize_proc_api): Add declaration.
10371 * proc-events.c (_initialize_proc_events): Add declaration.
10372 * proc-service.c (_initialize_proc_service): Add declaration.
10373 * procfs.c (_initialize_procfs): Add declaration.
10374 * producer.c (_initialize_producer): Add declaration.
10375 * psymtab.c (_initialize_psymtab): Add declaration.
10376 * python/python.c (_initialize_python): Add declaration.
10377 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10378 * record-btrace.c (_initialize_record_btrace): Add declaration.
10379 * record-full.c (_initialize_record_full): Add declaration.
10380 * record.c (_initialize_record): Add declaration.
10381 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10382 * regcache.c (_initialize_regcache): Add declaration.
10383 * reggroups.c (_initialize_reggroup): Add declaration.
10384 * remote-notif.c (_initialize_notif): Add declaration.
10385 * remote-sim.c (_initialize_remote_sim): Add declaration.
10386 * remote.c (_initialize_remote): Add declaration.
10387 * reverse.c (_initialize_reverse): Add declaration.
10388 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10389 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10390 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10391 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10392 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10393 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10394 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10395 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10396 Add declaration.
10397 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10398 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10399 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10400 * rust-exp.y (_initialize_rust_exp): Add declaration.
10401 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10402 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10403 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10404 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10405 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10406 * score-tdep.c (_initialize_score_tdep): Add declaration.
10407 * ser-go32.c (_initialize_ser_dos): Add declaration.
10408 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10409 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10410 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10411 * ser-uds.c (_initialize_ser_socket): Add declaration.
10412 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10413 * serial.c (_initialize_serial): Add declaration.
10414 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10415 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10416 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10417 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10418 * skip.c (_initialize_step_skip): Add declaration.
10419 * sol-thread.c (_initialize_sol_thread): Add declaration.
10420 * solib-aix.c (_initialize_solib_aix): Add declaration.
10421 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10422 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10423 * solib-frv.c (_initialize_frv_solib): Add declaration.
10424 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10425 * solib-target.c (_initialize_solib_target): Add declaration.
10426 * solib.c (_initialize_solib): Add declaration.
10427 * source-cache.c (_initialize_source_cache): Add declaration.
10428 * source.c (_initialize_source): Add declaration.
10429 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10430 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10431 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10432 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10433 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10434 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10435 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10436 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10437 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10438 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10439 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10440 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10441 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10442 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10443 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10444 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10445 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10446 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10447 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10448 * stabsread.c (_initialize_stabsread): Add declaration.
10449 * stack.c (_initialize_stack): Add declaration.
10450 * stap-probe.c (_initialize_stap_probe): Add declaration.
10451 * std-regs.c (_initialize_frame_reg): Add declaration.
10452 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10453 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10454 * symfile.c (_initialize_symfile): Add declaration.
10455 * symmisc.c (_initialize_symmisc): Add declaration.
10456 * symtab.c (_initialize_symtab): Add declaration.
10457 * target.c (_initialize_target): Add declaration.
10458 * target-connection.c (_initialize_target_connection): Add
10459 declaration.
10460 * target-dcache.c (_initialize_target_dcache): Add declaration.
10461 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10462 * thread.c (_initialize_thread): Add declaration.
10463 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10464 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10465 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10466 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10467 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10468 * tracectf.c (_initialize_ctf): Add declaration.
10469 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10470 * tracefile.c (_initialize_tracefile): Add declaration.
10471 * tracepoint.c (_initialize_tracepoint): Add declaration.
10472 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10473 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10474 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10475 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10476 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10477 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10478 * tui/tui.c (_initialize_tui): Add declaration.
10479 * typeprint.c (_initialize_typeprint): Add declaration.
10480 * ui-style.c (_initialize_ui_style): Add declaration.
10481 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10482 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10483 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10484 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10485 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10486 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10487 * unittests/filtered_iterator-selftests.c
10488 (_initialize_filtered_iterator_selftests): Add declaration.
10489 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10490 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10491 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10492 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10493 * unittests/main-thread-selftests.c
10494 (_initialize_main_thread_selftests): Add declaration.
10495 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10496 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10497 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10498 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10499 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10500 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10501 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10502 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10503 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10504 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10505 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10506 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10507 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10508 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10509 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10510 declaration.
10511 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10512 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10513 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10514 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10515 * user-regs.c (_initialize_user_regs): Add declaration.
10516 * utils.c (_initialize_utils): Add declaration.
10517 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10518 * valops.c (_initialize_valops): Add declaration.
10519 * valprint.c (_initialize_valprint): Add declaration.
10520 * value.c (_initialize_values): Add declaration.
10521 * varobj.c (_initialize_varobj): Add declaration.
10522 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10523 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10524 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10525 * windows-nat.c (_initialize_windows_nat): Add declaration.
10526 (_initialize_check_for_gdb_ini): Add declaration.
10527 (_initialize_loadable): Add declaration.
10528 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10529 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10530 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10531 * xcoffread.c (_initialize_xcoffread): Add declaration.
10532 * xml-support.c (_initialize_xml_support): Add declaration.
10533 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10534 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10535 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10536 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10537
10538 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * regformats/regdat.sh: Generate declaration for init function.
10541
10542 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10543
10544 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10545 up.
10546 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10547 close_one_inferior>: New methods.
10548 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10549 pass down target to find_inferior_pid.
10550 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10551 Pass down target to find_inferior_ptid.
10552 (gdbsim_target::create_inferior): Pass down target to
10553 add_thread_silent.
10554 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10555 target down to find_inferior_ptid and switch_to_thread.
10556 (gdbsim_target::close): Update to call close_one_inferior.
10557 (struct resume_data): Remove.
10558 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10559 directly, rather than through a void pointer.
10560 (gdbsim_target::resume): Update to call resume_one_inferior.
10561
10562 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10563
10564 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10565
10566 2020-01-12 Pedro Alves <palves@redhat.com>
10567
10568 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10569 directly for the current inferior instead of
10570 discard_all_inferiors.
10571 (discard_all_inferiors): Delete.
10572
10573 2020-01-11 Tom Tromey <tom@tromey.com>
10574
10575 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10576 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10577 deprecated_safe_get_selected_frame.
10578
10579 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10580
10581 * inferior.c (print_inferior): Switch inferior before printing it.
10582
10583 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10584 Pedro Alves <palves@redhat.com>
10585
10586 * progspace-and-thread.c (switch_to_program_space_and_thread):
10587 Assert there's an inferior for PSPACE. Use
10588 switch_to_inferior_no_thread to switch the inferior too.
10589 * progspace.c (program_space::~program_space): Call
10590 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10591 (program_space::free_all_objfiles): Don't call clear_symtab_users
10592 here.
10593 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10594
10595 2020-01-10 Pedro Alves <palves@redhat.com>
10596
10597 * NEWS: Mention multi-target debugging, "info connections", and
10598 "add-inferior -no-connection".
10599
10600 2020-01-10 Pedro Alves <palves@redhat.com>
10601
10602 * infrun.c: Include "target-connection.h".
10603 (check_multi_target_resumption): New.
10604 (proceed): Call it.
10605 * target-connection.c (make_target_connection_string): Make
10606 extern.
10607 * target-connection.h (make_target_connection_string): Declare.
10608
10609 2020-01-10 Pedro Alves <palves@redhat.com>
10610
10611 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10612 * inferior.c (uiout_field_connection): New function.
10613 (print_inferior): Add new "connection-id" column.
10614 (add_inferior_command): Show connection number/string of added
10615 inferior.
10616 * process-stratum-target.h
10617 (process_stratum_target::connection_string): New virtual method.
10618 (process_stratum_target::connection_number): New field.
10619 * remote.c (remote_target::connection_string): New override.
10620 * target-connection.c: New file.
10621 * target-connection.h: New file.
10622 * target.c (decref_target): Remove process_stratum targets from
10623 the connection list.
10624 (target_stack::push): Add process_stratum targets to the
10625 connection list.
10626
10627 2020-01-10 Pedro Alves <palves@redhat.com>
10628
10629 Revert:
10630 2016-04-12 Pedro Alves <palves@redhat.com>
10631 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10632 Remove references to name.
10633 * serial.h (struct serial) <name>: Delete.
10634
10635 2020-01-10 Pedro Alves <palves@redhat.com>
10636
10637 * gdbarch-selftests.c (register_to_value_test): Remove "target
10638 already pushed" check.
10639
10640 2020-01-10 Pedro Alves <palves@redhat.com>
10641 John Baldwin <jhb@FreeBSD.org>
10642
10643 * aarch64-linux-nat.c
10644 (aarch64_linux_nat_target::thread_architecture): Adjust.
10645 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10646 (task_command_1): Likewise.
10647 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10648 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10649 (aix_thread_target::store_registers)
10650 (aix_thread_target::thread_alive): Adjust.
10651 * amd64-fbsd-tdep.c: Include "inferior.h".
10652 (amd64fbsd_get_thread_local_address): Pass down target.
10653 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10654 thread's gdbarch instead of target_gdbarch.
10655 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10656 get_last_target_status.
10657 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10658 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10659 inferiors.
10660 (update_inserted_breakpoint_locations): Skip if inferiors with no
10661 execution.
10662 (update_global_location_list): When handling moribund locations,
10663 find representative inferior for location's pspace, and use thread
10664 count of its process_stratum target.
10665 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10666 * bsd-uthread.c (bsd_uthread_target::wait): Use
10667 as_process_stratum_target and adjust thread_change_ptid and
10668 add_thread calls.
10669 (bsd_uthread_target::update_thread_list): Use
10670 as_process_stratum_target and adjust find_thread_ptid,
10671 thread_change_ptid and add_thread calls.
10672 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10673 find_thread_ptid call.
10674 * corelow.c (add_to_thread_list): Adjust add_thread call.
10675 (core_target_open): Adjust add_thread_silent and thread_count
10676 calls.
10677 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10678 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10679 * event-top.c (async_disconnect): Pop targets from all inferiors.
10680 * exec.c (add_target_sections): Push exec target on all inferiors
10681 sharing the program space.
10682 (remove_target_sections): Remove the exec target from all
10683 inferiors sharing the program space.
10684 (exec_on_vfork): New.
10685 * exec.h (exec_on_vfork): Declare.
10686 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10687 Pass it down.
10688 (fbsd_nat_target::update_thread_list): Adjust.
10689 (fbsd_nat_target::resume): Adjust.
10690 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10691 down.
10692 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10693 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10694 get_thread_arch_regcache call.
10695 * fork-child.c (gdb_startup_inferior): Pass target down to
10696 startup_inferior and set_executing.
10697 * gdbthread.h (struct process_stratum_target): Forward declare.
10698 (add_thread, add_thread_silent, add_thread_with_info)
10699 (in_thread_list): Add process_stratum_target parameter.
10700 (find_thread_ptid(inferior*, ptid_t)): New overload.
10701 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10702 parameter.
10703 (all_threads()): Delete overload.
10704 (all_threads, all_non_exited_threads): Add process_stratum_target
10705 parameter.
10706 (all_threads_safe): Use brace initialization.
10707 (thread_count): Add process_stratum_target parameter.
10708 (set_resumed, set_running, set_stop_requested, set_executing)
10709 (threads_are_executing, finish_thread_state): Add
10710 process_stratum_target parameter.
10711 (switch_to_thread): Use is_current_thread.
10712 * i386-fbsd-tdep.c: Include "inferior.h".
10713 (i386fbsd_get_thread_local_address): Pass down target.
10714 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10715 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10716 have_inferiors check.
10717 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10718 (inf_ptrace_target::attach): Adjust.
10719 * infcall.c (run_inferior_call): Adjust.
10720 * infcmd.c (run_command_1): Pass target to
10721 scoped_finish_thread_state.
10722 (proceed_thread_callback): Skip inferiors with no execution.
10723 (continue_command): Rename 'all_threads' local to avoid hiding
10724 'all_threads' function. Adjust get_last_target_status call.
10725 (prepare_one_step): Adjust set_running call.
10726 (signal_command): Use user_visible_resume_target. Compare thread
10727 pointers instead of inferior_ptid.
10728 (info_program_command): Adjust to pass down target.
10729 (attach_command): Mark target's 'thread_executing' flag.
10730 (stop_current_target_threads_ns): New, factored out from ...
10731 (interrupt_target_1): ... this. Switch inferior before making
10732 target calls.
10733 * inferior-iter.h
10734 (struct all_inferiors_iterator, struct all_inferiors_range)
10735 (struct all_inferiors_safe_range)
10736 (struct all_non_exited_inferiors_range): Filter on
10737 process_stratum_target too. Remove explicit.
10738 * inferior.c (inferior::inferior): Push dummy target on target
10739 stack.
10740 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10741 Add process_stratum_target parameter, and pass it down.
10742 (have_live_inferiors): Adjust.
10743 (switch_to_inferior_and_push_target): New.
10744 (add_inferior_command, clone_inferior_command): Handle
10745 "-no-connection" parameter. Use
10746 switch_to_inferior_and_push_target.
10747 (_initialize_inferior): Mention "-no-connection" option in
10748 the help of "add-inferior" and "clone-inferior" commands.
10749 * inferior.h: Include "process-stratum-target.h".
10750 (interrupt_target_1): Use bool.
10751 (struct inferior) <push_target, unpush_target, target_is_pushed,
10752 find_target_beneath, top_target, process_target, target_at,
10753 m_stack>: New.
10754 (discard_all_inferiors): Delete.
10755 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10756 (all_inferiors, all_non_exited_inferiors): Add
10757 process_stratum_target parameter.
10758 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10759 (target_last_proc_target): New global.
10760 (follow_fork_inferior): Push target on new inferior. Pass target
10761 to add_thread_silent. Call exec_on_vfork. Handle target's
10762 reference count.
10763 (follow_fork): Adjust get_last_target_status call. Also consider
10764 target.
10765 (follow_exec): Push target on new inferior.
10766 (struct execution_control_state) <target>: New field.
10767 (user_visible_resume_target): New.
10768 (do_target_resume): Call target_async.
10769 (resume_1): Set target's threads_executing flag. Consider resume
10770 target.
10771 (commit_resume_all_targets): New.
10772 (proceed): Also consider resume target. Skip threads of inferiors
10773 with no execution. Commit resumtion in all targets.
10774 (start_remote): Pass current inferior to wait_for_inferior.
10775 (infrun_thread_stop_requested): Consider target as well. Pass
10776 thread_info pointer to clear_inline_frame_state instead of ptid.
10777 (infrun_thread_thread_exit): Consider target as well.
10778 (random_pending_event_thread): New inferior parameter. Use it.
10779 (do_target_wait): Rename to ...
10780 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10781 down.
10782 (threads_are_resumed_pending_p, do_target_wait): New.
10783 (prepare_for_detach): Adjust calls.
10784 (wait_for_inferior): New inferior parameter. Handle it. Use
10785 do_target_wait_1 instead of do_target_wait.
10786 (fetch_inferior_event): Adjust. Switch to representative
10787 inferior. Pass target down.
10788 (set_last_target_status): Add process_stratum_target parameter.
10789 Save target in global.
10790 (get_last_target_status): Add process_stratum_target parameter and
10791 handle it.
10792 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10793 (context_switch): Check inferior_ptid == null_ptid before calling
10794 inferior_thread().
10795 (get_inferior_stop_soon): Pass down target.
10796 (wait_one): Rename to ...
10797 (poll_one_curr_target): ... this.
10798 (struct wait_one_event): New.
10799 (wait_one): New.
10800 (stop_all_threads): Adjust.
10801 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10802 event's target.
10803 (switch_back_to_stepped_thread): Also consider target.
10804 (print_stop_event): Update.
10805 (normal_stop): Update. Also consider the resume target.
10806 * infrun.h (wait_for_inferior): Remove declaration.
10807 (user_visible_resume_target): New declaration.
10808 (get_last_target_status, set_last_target_status): New
10809 process_stratum_target parameter.
10810 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10811 process_stratum_target parameter, and use it.
10812 (clear_inline_frame_state (thread_info*)): New.
10813 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10814 process_stratum_target parameter.
10815 (clear_inline_frame_state (thread_info*)): Declare.
10816 * linux-fork.c (delete_checkpoint_command): Pass target down to
10817 find_thread_ptid.
10818 (checkpoint_command): Adjust.
10819 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10820 instead of just tweaking inferior_ptid.
10821 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10822 (exit_lwp): Pass target down to find_thread_ptid.
10823 (attach_proc_task_lwp_callback): Pass target down to
10824 add_thread/set_running/set_executing.
10825 (linux_nat_target::attach): Pass target down to
10826 thread_change_ptid.
10827 (get_detach_signal): Pass target down to find_thread_ptid.
10828 Consider last target status's target.
10829 (linux_resume_one_lwp_throw, resume_lwp)
10830 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10831 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10832 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10833 (linux_nat_target::async_wait_fd): New.
10834 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10835 target down.
10836 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10837 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10838 * linux-thread-db.c (struct thread_db_info::process_target): New
10839 field.
10840 (add_thread_db_info): Save target.
10841 (get_thread_db_info): New process_stratum_target parameter. Also
10842 match target.
10843 (delete_thread_db_info): New process_stratum_target parameter.
10844 Also match target.
10845 (thread_from_lwp): Adjust to pass down target.
10846 (thread_db_notice_clone): Pass down target.
10847 (check_thread_db_callback): Pass down target.
10848 (try_thread_db_load_1): Always push the thread_db target.
10849 (try_thread_db_load, record_thread): Pass target down.
10850 (thread_db_target::detach): Pass target down. Always unpush the
10851 thread_db target.
10852 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10853 target down. Always unpush the thread_db target.
10854 (find_new_threads_callback, thread_db_find_new_threads_2)
10855 (thread_db_target::update_thread_list): Pass target down.
10856 (thread_db_target::pid_to_str): Pass current inferior down.
10857 (thread_db_target::get_thread_local_address): Pass target down.
10858 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10859 target down.
10860 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10861 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10862 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10863 (procfs_init_inferior): Rename to ...
10864 (procfs_target::procfs_init_inferior): ... this and adjust.
10865 (procfs_target::create_inferior, procfs_notice_thread)
10866 (procfs_do_thread_registers): Adjust.
10867 * ppc-fbsd-tdep.c: Include "inferior.h".
10868 (ppcfbsd_get_thread_local_address): Pass down target.
10869 * proc-service.c (ps_xfer_memory): Switch current inferior and
10870 program space as well.
10871 (get_ps_regcache): Pass target down.
10872 * process-stratum-target.c
10873 (process_stratum_target::thread_address_space)
10874 (process_stratum_target::thread_architecture): Pass target down.
10875 * process-stratum-target.h
10876 (process_stratum_target::threads_executing): New field.
10877 (as_process_stratum_target): New.
10878 * ravenscar-thread.c
10879 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10880 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10881 down.
10882 * record-btrace.c (record_btrace_target::info_record): Adjust.
10883 (record_btrace_target::record_method)
10884 (record_btrace_target::record_is_replaying)
10885 (record_btrace_target::fetch_registers)
10886 (get_thread_current_frame_id, record_btrace_target::resume)
10887 (record_btrace_target::wait, record_btrace_target::stop): Pass
10888 target down.
10889 * record-full.c (record_full_wait_1): Switch to event thread.
10890 Pass target down.
10891 * regcache.c (regcache::regcache)
10892 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10893 process_stratum_target parameter and handle it.
10894 (current_thread_target): New global.
10895 (get_thread_regcache): Add process_stratum_target parameter and
10896 handle it. Switch inferior before calling target method.
10897 (get_thread_regcache): Pass target down.
10898 (get_thread_regcache_for_ptid): Pass target down.
10899 (registers_changed_ptid): Add process_stratum_target parameter and
10900 handle it.
10901 (registers_changed_thread, registers_changed): Pass target down.
10902 (test_get_thread_arch_aspace_regcache): New.
10903 (current_regcache_test): Define a couple local test_target_ops
10904 instances and use them for testing.
10905 (readwrite_regcache): Pass process_stratum_target parameter.
10906 (cooked_read_test, cooked_write_test): Pass mock_target down.
10907 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10908 (get_thread_arch_aspace_regcache): Add process_stratum_target
10909 parameter.
10910 (regcache::target): New method.
10911 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10912 (regcache::registers_changed_ptid): Add process_stratum_target
10913 parameter.
10914 (regcache::m_target): New field.
10915 (registers_changed_ptid): Add process_stratum_target parameter.
10916 * remote.c (remote_state::supports_vCont_probed): New field.
10917 (remote_target::async_wait_fd): New method.
10918 (remote_unpush_and_throw): Add remote_target parameter.
10919 (get_current_remote_target): Adjust.
10920 (remote_target::remote_add_inferior): Push target.
10921 (remote_target::remote_add_thread)
10922 (remote_target::remote_notice_new_inferior)
10923 (get_remote_thread_info): Pass target down.
10924 (remote_target::update_thread_list): Skip threads of inferiors
10925 bound to other targets. (remote_target::close): Don't discard
10926 inferiors. (remote_target::add_current_inferior_and_thread)
10927 (remote_target::process_initial_stop_replies)
10928 (remote_target::start_remote)
10929 (remote_target::remote_serial_quit_handler): Pass down target.
10930 (remote_target::remote_unpush_target): New remote_target
10931 parameter. Unpush the target from all inferiors.
10932 (remote_target::remote_unpush_and_throw): New remote_target
10933 parameter. Pass it down.
10934 (remote_target::open_1): Check whether the current inferior has
10935 execution instead of checking whether any inferior is live. Pass
10936 target down.
10937 (remote_target::remote_detach_1): Pass down target. Use
10938 remote_unpush_target.
10939 (extended_remote_target::attach): Pass down target.
10940 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10941 (remote_target::append_resumption): Pass down target.
10942 (remote_target::append_pending_thread_resumptions)
10943 (remote_target::remote_resume_with_hc, remote_target::resume)
10944 (remote_target::commit_resume): Pass down target.
10945 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10946 (remote_target::interrupt_query)
10947 (remote_target::remove_new_fork_children)
10948 (remote_target::check_pending_events_prevent_wildcard_vcont)
10949 (remote_target::remote_parse_stop_reply)
10950 (remote_target::process_stop_reply): Pass down target.
10951 (first_remote_resumed_thread): New remote_target parameter. Pass
10952 it down.
10953 (remote_target::wait_as): Pass down target.
10954 (unpush_and_perror): New remote_target parameter. Pass it down.
10955 (remote_target::readchar, remote_target::remote_serial_write)
10956 (remote_target::getpkt_or_notif_sane_1)
10957 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10958 down target.
10959 (remote_target::mourn_inferior): Pass down target. Use
10960 remote_unpush_target.
10961 (remote_target::core_of_thread)
10962 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10963 (remote_target::pid_to_exec_file)
10964 (remote_target::thread_handle_to_thread_info): Pass down target.
10965 (remote_target::async_wait_fd): New.
10966 * riscv-fbsd-tdep.c: Include "inferior.h".
10967 (riscv_fbsd_get_thread_local_address): Pass down target.
10968 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10969 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10970 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10971 Adjust.
10972 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10973 * solib-svr4.c (enable_break): Pass down target.
10974 * spu-multiarch.c (parse_spufs_run): Pass down target.
10975 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10976 * target-delegates.c: Regenerate.
10977 * target.c (g_target_stack): Delete.
10978 (current_top_target): Return the current inferior's top target.
10979 (target_has_execution_1): Refer to the passed-in inferior's top
10980 target.
10981 (target_supports_terminal_ours): Check whether the initial
10982 inferior was already created.
10983 (decref_target): New.
10984 (target_stack::push): Incref/decref the target.
10985 (push_target, push_target, unpush_target): Adjust.
10986 (target_stack::unpush): Defref target.
10987 (target_is_pushed): Return bool. Adjust to refer to the current
10988 inferior's target stack.
10989 (dispose_inferior): Delete, and inline parts ...
10990 (target_preopen): ... here. Only dispose of the current inferior.
10991 (target_detach): Hold strong target reference while detaching.
10992 Pass target down.
10993 (target_thread_name): Add assertion.
10994 (target_resume): Pass down target.
10995 (target_ops::beneath, find_target_at): Adjust to refer to the
10996 current inferior's target stack.
10997 (get_dummy_target): New.
10998 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10999 has a thread running.
11000 (initialize_targets): Rename to ...
11001 (_initialize_target): ... this.
11002 * target.h: Include "gdbsupport/refcounted-object.h".
11003 (struct target_ops): Inherit refcounted_object.
11004 (target_ops::shortname, target_ops::longname): Make const.
11005 (target_ops::async_wait_fd): New method.
11006 (decref_target): Declare.
11007 (struct target_ops_ref_policy): New.
11008 (target_ops_ref): New typedef.
11009 (get_dummy_target): Declare function.
11010 (target_is_pushed): Return bool.
11011 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11012 (all_matching_threads_iterator::all_matching_threads_iterator):
11013 Handle filter target.
11014 * thread-iter.h (struct all_matching_threads_iterator, struct
11015 all_matching_threads_range, class all_non_exited_threads_range):
11016 Filter by target too. Remove explicit.
11017 * thread.c (threads_executing): Delete.
11018 (inferior_thread): Pass down current inferior.
11019 (clear_thread_inferior_resources): Pass down thread pointer
11020 instead of ptid_t.
11021 (add_thread_silent, add_thread_with_info, add_thread): Add
11022 process_stratum_target parameter. Use it for thread and inferior
11023 searches.
11024 (is_current_thread): New.
11025 (thread_info::deletable): Use it.
11026 (find_thread_ptid, thread_count, in_thread_list)
11027 (thread_change_ptid, set_resumed, set_running): New
11028 process_stratum_target parameter. Pass it down.
11029 (set_executing): New process_stratum_target parameter. Pass it
11030 down. Adjust reference to 'threads_executing'.
11031 (threads_are_executing): New process_stratum_target parameter.
11032 Adjust reference to 'threads_executing'.
11033 (set_stop_requested, finish_thread_state): New
11034 process_stratum_target parameter. Pass it down.
11035 (switch_to_thread): Also match inferior.
11036 (switch_to_thread): New process_stratum_target parameter. Pass it
11037 down.
11038 (update_threads_executing): Reimplement.
11039 * top.c (quit_force): Pop targets from all inferior.
11040 (gdb_init): Don't call initialize_targets.
11041 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11042 Declare.
11043 (windows_add_thread, windows_delete_thread): Adjust.
11044 (get_windows_debug_event): Rename to ...
11045 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11046 * tracefile-tfile.c (tfile_target_open): Pass down target.
11047 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11048 Forward declare.
11049 (switch_to_thread): Add process_stratum_target parameter.
11050 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11051 parameter. Use it.
11052 (mi_on_resume): Pass target down.
11053 * nat/fork-inferior.c (startup_inferior): Add
11054 process_stratum_target parameter. Pass it down.
11055 * nat/fork-inferior.h (startup_inferior): Add
11056 process_stratum_target parameter.
11057 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11058
11059 2020-01-10 Pedro Alves <palves@redhat.com>
11060
11061 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11062 directly. Instead find the first thread in the thread list and
11063 use switch_to_thread.
11064
11065 2020-01-10 Pedro Alves <palves@redhat.com>
11066
11067 * remote.c (remote_target::remote_add_inferior): Don't bind a
11068 process to the current inferior if the current inferior is already
11069 bound to a process.
11070
11071 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11072 Pedro Alves <palves@redhat.com>
11073
11074 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11075 If no process is specified, return null_ptid instead of
11076 inferior_ptid.
11077 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11078 TARGET_WAITKIND_SIGNALLED with no pid.
11079
11080 2020-01-10 Pedro Alves <palves@redhat.com>
11081
11082 * remote.c (first_remote_resumed_thread): New.
11083 (remote_target::wait_as): Use it as default event_ptid instead of
11084 inferior_ptid.
11085
11086 2020-01-10 Pedro Alves <palves@redhat.com>
11087
11088 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11089
11090 2020-01-10 Pedro Alves <palves@redhat.com>
11091
11092 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11093 not -1.
11094
11095 2020-01-10 Pedro Alves <palves@redhat.com>
11096
11097 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11098 ptid to get_last_target_status.
11099 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11100 ptid to get_last_target_status.
11101 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11102 get_last_target_status.
11103 (info_program_command): Don't pass a target_waitstatus to
11104 get_last_target_status.
11105 * infrun.c (init_wait_for_inferior): Use
11106 nullify_last_target_wait_ptid.
11107 (get_last_target_status): Handle nullptr arguments.
11108 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11109 (print_stop_event): Don't pass a ptid to get_last_target_status.
11110 (normal_stop): Don't pass a ptid to get_last_target_status.
11111 * infrun.h (get_last_target_status, set_last_target_status): Move
11112 comments here and update.
11113 (nullify_last_target_wait_ptid): Declare.
11114 * linux-fork.c (fork_load_infrun_state): Remove local extern
11115 declaration of nullify_last_target_wait_ptid.
11116 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11117 to get_last_target_status.
11118
11119 2020-01-10 Pedro Alves <palves@redhat.com>
11120
11121 * gdbthread.h (scoped_restore_current_thread)
11122 <dont_restore, restore, m_dont_restore>: Declare.
11123 * thread.c (thread_alive): Add assertion. Return bool.
11124 (switch_to_thread_if_alive): New.
11125 (prune_threads): Switch inferior/thread.
11126 (print_thread_info_1): Switch thread before calling target methods.
11127 (scoped_restore_current_thread::restore): New, factored out from
11128 ...
11129 (scoped_restore_current_thread::~scoped_restore_current_thread):
11130 ... this.
11131 (scoped_restore_current_thread::scoped_restore_current_thread):
11132 Add assertion.
11133 (thread_apply_all_command, thread_select): Use
11134 switch_to_thread_if_alive.
11135 * infrun.c (proceed, restart_threads, handle_signal_stop)
11136 (switch_back_to_stepped_thread): Switch current thread before
11137 calling target methods.
11138
11139 2020-01-10 Pedro Alves <palves@redhat.com>
11140
11141 * inferior.c (switch_to_inferior_no_thread): New function,
11142 factored out from ...
11143 (inferior_command): ... here.
11144 * inferior.h (switch_to_inferior_no_thread): Declare.
11145 * mi/mi-main.c (run_one_inferior): Use
11146 switch_to_inferior_no_thread.
11147
11148 2020-01-10 Pedro Alves <palves@redhat.com>
11149
11150 * infcmd.c (kill_command): Remove dead code.
11151
11152 2020-01-10 Pedro Alves <palves@redhat.com>
11153
11154 * remote.c (remote_target::mourn_inferior): No longer check
11155 whether the target is running.
11156
11157 2020-01-10 Pedro Alves <palves@redhat.com>
11158
11159 * corelow.c (core_target::has_execution): Change parameter type to
11160 inferior pointer.
11161 * inferior.c (number_of_live_inferiors): Use
11162 inferior::has_execution instead of target_has_execution_1.
11163 * inferior.h (inferior::has_execution): New.
11164 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11165 inferior::has_execution instead of target_has_execution_1.
11166 * process-stratum-target.c
11167 (process_stratum_target::has_execution): Change parameter type to
11168 inferior pointer. Check the inferior's PID instead of
11169 inferior_ptid.
11170 * process-stratum-target.h
11171 (process_stratum_target::has_execution): Change parameter type to
11172 inferior pointer.
11173 * record-full.c (record_full_core_target::has_execution): Change
11174 parameter type to inferior pointer.
11175 * target.c (target_has_execution_1): Change parameter type to
11176 inferior pointer.
11177 (target_has_execution_current): Adjust.
11178 * target.h (target_ops::has_execution): Change parameter type to
11179 inferior pointer.
11180 (target_has_execution_1): Change parameter type to inferior
11181 pointer. Change return type to bool.
11182 * tracefile.h (tracefile_target::has_execution): Change parameter
11183 type to inferior pointer.
11184
11185 2020-01-10 Pedro Alves <palves@redhat.com>
11186
11187 * exceptions.c (print_flush): Remove current_top_target() check.
11188
11189 2020-01-10 Pedro Alves <palves@redhat.com>
11190
11191 * remote.c (show_remote_exec_file): Show the current inferior's
11192 exec-file instead of the command variable's value.
11193
11194 2020-01-10 Pedro Alves <palves@redhat.com>
11195
11196 * record-full.c (record_full_resume_ptid): New global.
11197 (record_full_target::resume): Set it.
11198 (record_full_wait_1): Use record_full_resume_ptid instead of
11199 inferior_ptid.
11200
11201 2020-01-10 Pedro Alves <palves@redhat.com>
11202
11203 * gdbthread.h (scoped_restore_current_thread)
11204 <dont_restore, restore, m_dont_restore>: Declare.
11205 * thread.c (thread_alive): Add assertion. Return bool.
11206 (switch_to_thread_if_alive): New.
11207 (prune_threads): Switch inferior/thread.
11208 (print_thread_info_1): Switch thread before calling target methods.
11209 (scoped_restore_current_thread::restore): New, factored out from
11210 ...
11211 (scoped_restore_current_thread::~scoped_restore_current_thread):
11212 ... this.
11213 (scoped_restore_current_thread::scoped_restore_current_thread):
11214 Add assertion.
11215 (thread_apply_all_command, thread_select): Use
11216 switch_to_thread_if_alive.
11217
11218 2020-01-10 George Barrett <bob@bob131.so>
11219
11220 * stap-probe.c (stap_modify_semaphore): Don't check for null
11221 semaphores.
11222 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11223 for null semaphores.
11224
11225 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11226
11227 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11228 all source windows, and maintain horizontal scroll status while
11229 doing so.
11230
11231 2020-01-09 Tom Tromey <tom@tromey.com>
11232
11233 PR tui/18932:
11234 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11235 update_source_window, not print_source_lines.
11236
11237 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11238
11239 * tui/tui.c (tui_enable): Register tui hooks after calling
11240 tui_display_main.
11241
11242 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11243
11244 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11245
11246 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * thread.c (print_thread_info_1): Fix indentation.
11249
11250 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11251
11252 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11253 unique_xmalloc_ptr outside the if to always free the demangled name.
11254
11255 2020-01-08 Tom Tromey <tromey@adacore.com>
11256
11257 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11258 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11259 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11260 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11261 Remove.
11262 (section_offsets): New typedef.
11263 * symtab.c (fixup_section, get_msymbol_address): Update.
11264 * symmisc.c (dump_msymbols): Update.
11265 * symfile.h (relative_addr_info_to_section_offsets)
11266 (symfile_map_offsets_to_segments): Update.
11267 * symfile.c (build_section_addr_info_from_objfile)
11268 (init_objfile_sect_indices): Update.
11269 (struct place_section_arg): Change type of "offsets".
11270 (place_section): Update.
11271 (relative_addr_info_to_section_offsets): Change type of
11272 "section_offsets". Remove "num_sections" parameter.
11273 (default_symfile_offsets, syms_from_objfile_1)
11274 (set_objfile_default_section_offset): Update.
11275 (reread_symbols): No need to preserve section offsets by hand.
11276 (symfile_map_offsets_to_segments): Change type of "offsets".
11277 * stap-probe.c (relocate_address): Update.
11278 * stabsread.h (process_one_symbol): Update.
11279 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11280 (solib_target_relocate_section_addresses): Update.
11281 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11282 Update.
11283 * solib-frv.c (frv_relocate_main_executable): Update.
11284 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11285 * solib-aix.c (solib_aix_get_section_offsets): Change return
11286 type.
11287 (solib_aix_solib_create_inferior_hook): Update.
11288 * remote.c (remote_target::get_offsets): Update.
11289 * psymtab.c (find_pc_sect_psymtab): Update.
11290 * psympriv.h (struct partial_symbol) <address, text_low,
11291 text_high>: Update.
11292 * objfiles.h (obj_section_offset): Update.
11293 (struct objfile) <section_offsets>: Change type.
11294 <num_sections>: Remove.
11295 (objfile_relocate): Update.
11296 * objfiles.c (entry_point_address_query): Update
11297 (relocate_one_symbol): Change type of "section_offsets".
11298 (objfile_relocate1, objfile_relocate1): Change type of
11299 "new_offsets".
11300 (objfile_rebase1): Update.
11301 * mipsread.c (mipscoff_symfile_read): Update.
11302 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11303 parameter.
11304 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11305 (parse_external, psymtab_to_symtab_1): Update.
11306 * machoread.c (macho_symfile_offsets): Update.
11307 * ia64-tdep.c (ia64_find_unwind_table): Update.
11308 * hppa-tdep.c (read_unwind_info): Update.
11309 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11310 * dwarf2read.c (create_addrmap_from_index)
11311 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11312 (process_psymtab_comp_unit_reader, add_partial_symbol)
11313 (add_partial_subprogram, process_full_comp_unit)
11314 (read_file_scope, read_func_scope, read_lexical_block_scope)
11315 (read_call_site_scope, dwarf2_rnglists_process)
11316 (dwarf2_ranges_process, dwarf2_ranges_read)
11317 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11318 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11319 Update.
11320 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11321 Update.
11322 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11323 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11324 (process_one_symbol): Change type of "section_offsets".
11325 * ctfread.c (get_objfile_text_range): Update.
11326 * coffread.c (coff_symtab_read, enter_linenos)
11327 (process_coff_symbol): Update.
11328 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11329 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11330
11331 2020-01-08 Tom Tromey <tromey@adacore.com>
11332
11333 * dwarf2read.c (parse_macro_definition): Use std::string.
11334 (parse_macro_definition): Likewise.
11335
11336 2020-01-08 Tom Tromey <tromey@adacore.com>
11337
11338 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11339 (ATTR_ALLOC_CHUNK): Remove.
11340
11341 2020-01-08 Tom Tromey <tromey@adacore.com>
11342
11343 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11344
11345 2020-01-08 Tom Tromey <tromey@adacore.com>
11346
11347 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11348 (dwarf2_compute_name, open_dwo_file): Likewise.
11349 (process_enumeration_scope): Use std::vector.
11350 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11351 (partial_die_info::fixup, dwarf2_start_subfile)
11352 (guess_full_die_structure_name, dwarf2_name): Likewise.
11353 (determine_prefix): Update.
11354 (guess_full_die_structure_name): Make return type const.
11355 (partial_die_full_name): Return unique_xmalloc_ptr.
11356 (DW_FIELD_ALLOC_CHUNK): Remove.
11357
11358 2020-01-07 Tom Tromey <tromey@adacore.com>
11359
11360 PR build/24937:
11361 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11362
11363 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11364
11365 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11366
11367 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * stack.c (print_frame_info): Move disassemble_next_line code
11370 inside source_print block.
11371
11372 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11373
11374 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11375 gdb/signals.h, as we are now using native signal symbols.
11376
11377 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11378
11379 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11380 overflow by an early check of content vs threshold.
11381 * tui/tui-source.c (tui_source_window::line_is_displayed):
11382 Likewise.
11383
11384 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11385
11386 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11387
11388 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11389
11390 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11391 export table if no section contains it's RVA.
11392
11393 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11394
11395 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11396
11397 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11398
11399 * source.c (print_source_lines_base): Set last_line_listed.
11400
11401 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11402
11403 * tui/tui-disasm.c: Remove trailing spaces.
11404
11405 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11406 Pedro Alves <palves@redhat.com>
11407
11408 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11409 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11410 (windows_gdb_signal_to_target): New function, uses the above
11411 enumeration to convert GDB internal signal codes to equivalent
11412 Windows codes.
11413 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11414 * windows-nat.c: Include "gdb_wait.h".
11415 (get_windows_debug_event): Extract the fatal exception from the
11416 exit status and convert to the equivalent Posix signal number.
11417 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11418 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11419 * gdbsupport/gdb_wait.c: New file, implements
11420 windows_status_to_termsig.
11421 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11422 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11423
11424 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11425
11426 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11427 show_layout.
11428
11429 2020-01-05 Luis Machado <luis.machado@linaro.org>
11430
11431 * aarch64-linux-nat.c
11432 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11433 and bfd_mach_aarch64.
11434
11435 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11436
11437 * ui-file.c (stdio_file::can_emit_style_escape)
11438 (tee_file::can_emit_style_escape): Ensure style is used also on
11439 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11440 to gdb_stdout.
11441 * main.c (set_gdb_data_directory): Use file style to output the
11442 warning that the given pathname is not a directory.
11443 * top.c (show_history_filename, gdb_safe_append_history)
11444 (show_gdb_datadir): Use file style.
11445
11446 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11447
11448 * solib-target.c (struct lm_info_target):
11449 Change offsets to be a unique_xmalloc_ptr.
11450 (solib_target_relocate_section_addresses): Update.
11451
11452 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11453
11454 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11455
11456 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11457
11458 * MAINTAINERS (Write After Approval): Add myself.
11459
11460 2020-01-02 Luis Machado <luis.machado@linaro.org>
11461
11462 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11463 Cell BE architecture.
11464 * target.h (struct target_ops) <thread_architecture>: Likewise.
11465
11466 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11467
11468 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11469
11470 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11471
11472 * MAINTAINERS (Write After Approval): Add myself.
11473
11474 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11475
11476 * gdbarch.sh: Update copyright year range of generated files.
11477
11478 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11479
11480 Update copyright year range in all GDB files.
11481
11482 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11483
11484 * copyright.py: Convert to Python 3.
11485
11486 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11487
11488 * copyright.py: Adapt after move of gnulib directory from gdb
11489 directory to toplevel directory.
11490
11491 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11492
11493 * copyright.py (main): Exit if run from the wrong directory.
11494
11495 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11496
11497 * top.c (print_gdb_version): Change copyright year to 2020.
11498
11499 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11500
11501 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11502
11503 For older changes see ChangeLog-2019.
11504 \f
11505 Local Variables:
11506 mode: change-log
11507 left-margin: 8
11508 fill-column: 74
11509 version-control: never
11510 coding: utf-8
11511 End:
This page took 0.249738 seconds and 5 git commands to generate.