Add new command "maint print core-file-backed-mappings"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2
3 * corelow.c (gdbcmd.h): Include.
4 (core_target::info_proc_mappings): New method.
5 (get_current_core_target): New function.
6 (maintenance_print_core_file_backed_mappings): New function.
7 (_initialize_corelow): Add core-file-backed-mappings to
8 "maint print" commands.
9
10 2020-07-22 Kevin Buettner <kevinb@redhat.com>
11
12 * linux-tdep.c (dump_note_entry_p): New function.
13 (linux_dump_mapping_p_ftype): New typedef.
14 (linux_find_memory_regions_full): Add new parameter,
15 should_dump_mapping_p.
16 (linux_find_memory_regions): Adjust call to
17 linux_find_memory_regions_full.
18 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
19 call to linux_find_memory_regions_full.
20
21 2020-07-22 Kevin Buettner <kevinb@redhat.com>
22
23 * corelow.c (solist.h, unordered_map): Include.
24 (class core_target): Add field m_core_file_mappings and
25 method build_file_mappings.
26 (core_target::core_target): Call build_file_mappings.
27 (core_target::~core_target): Free memory associated with
28 m_core_file_mappings.
29 (core_target::build_file_mappings): New method.
30 (core_target::xfer_partial): Use m_core_file_mappings
31 for memory transfers.
32 * linux-tdep.c (linux_read_core_file_mappings): New
33 function.
34 (linux_core_info_proc_mappings): Rewrite to use
35 linux_read_core_file_mappings.
36 (linux_init_abi): Register linux_read_core_file_mappings.
37
38 2020-07-22 Kevin Buettner <kevinb@redhat.com>
39
40 * arch-utils.c (default_read_core_file_mappings): New function.
41 * arch-utils.c (default_read_core_file_mappings): Declare.
42 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
43 * gdbarch.h, gdbarch.c: Regenerate.
44
45 2020-07-22 Kevin Buettner <kevinb@redhat.com>
46
47 PR corefiles/25631
48 * corelow.c (core_target:xfer_partial): Revise
49 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
50 case after first checking the stratum beneath the core
51 target.
52 (has_all_memory): Return true.
53 * target.c (raw_memory_xfer_partial): Revise comment
54 regarding use of has_all_memory.
55
56 2020-07-22 Kevin Buettner <kevinb@redhat.com>
57
58 * exec.h (section_table_xfer_memory): Revise declaration,
59 replacing section name parameter with an optional callback
60 predicate.
61 * exec.c (section_table_xfer_memory): Likewise.
62 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
63 of section_table_xfer_memory.
64
65 2020-07-22 Tom Tromey <tromey@adacore.com>
66
67 * mi/mi-cmd-stack.c (list_args_or_locals): Use
68 lookup_symbol_search_name.
69
70 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * python/py-registers.c (gdbpy_register_object_data_init): Remove
73 redundant local variable.
74 (gdbpy_get_register_descriptor): Extract descriptor vector as a
75 reference, not pointer, update code accordingly.
76
77 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
78 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
79
80 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
81 * jit.c (jit_breakpoint_re_set_internal): Use the
82 `skip_jit_symbol_lookup` field.
83
84 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
85 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
86
87 * jit.c (jit_read_descriptor): Define the descriptor address once,
88 use twice.
89 (jit_breakpoint_deleted): Move the declaration of the loop variable
90 `iter` into the loop header.
91 (jit_breakpoint_re_set_internal): Move the declaration of the local
92 variable `objf_data` to the first point of definition.
93 (jit_event_handler): Move the declaration of local variables
94 `code_entry`, `entry_addr`, and `objf` to their first point of use.
95 Rename `objf` to `jited`.
96
97 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
100 Remove.
101 * jit.c (get_jiter_objfile_data): Update.
102
103 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
104 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * jit.c (struct jit_program_space_data): Remove.
107 (jit_program_space_key): Remove.
108 (jiter_objfile_data::~jiter_objfile_data): Remove program space
109 stuff.
110 (get_jit_program_space_data): Remove.
111 (jit_breakpoint_deleted): Iterate on all of the program space's
112 objfiles.
113 (jit_inferior_init): Likewise.
114 (jit_breakpoint_re_set_internal): Likewise. Also change return
115 type to void.
116 (jit_breakpoint_re_set): Pass current_program_space to
117 jit_breakpoint_re_set_internal.
118
119 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * jit.h (struct jiter_objfile_data) <cached_code_address,
122 jit_breakpoint>: Move to here from ...
123 * jit.c (jit_program_space_data): ... here.
124 (jiter_objfile_data::~jiter_objfile_data): Update.
125 (jit_breakpoint_deleted): Update.
126 (jit_breakpoint_re_set_internal): Update.
127
128 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
131 checks.
132 (jit_read_descriptor): Remove NULL check.
133 (jit_event_handler): Add an assertion.
134
135 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
136
137 * jit.h (struct jit_objfile_data): Split into...
138 (struct jiter_objfile_data): ... this ...
139 (struct jited_objfile_data): ... and this.
140 * objfiles.h (struct objfile) <jit_data>: Remove.
141 <jiter_data, jited_data>: New fields.
142 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
143 (jiter_objfile_data::~jiter_objfile_data): ... this.
144 (get_jit_objfile_data): Rename to ...
145 (get_jiter_objfile_data): ... this.
146 (add_objfile_entry): Update.
147 (jit_read_descriptor): Use get_jiter_objfile_data.
148 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
149 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
150 (jit_inferior_exit_hook): Use objfile's jited_data field.
151
152 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * jit.h: Forward-declare `struct minimal_symbol`.
155 (struct jit_objfile_data): Migrate to here from jit.c; also add a
156 constructor, destructor, and an objfile* field.
157 * jit.c (jit_objfile_data): Remove.
158 (struct jit_objfile_data): Migrate from here to jit.h.
159 (jit_objfile_data::~jit_objfile_data): New destructor
160 implementation with code moved from free_objfile_data.
161 (free_objfile_data): Delete.
162 (get_jit_objfile_data): Update to use the jit_data field of objfile.
163 (jit_find_objf_with_entry_addr): Ditto.
164 (jit_inferior_exit_hook): Ditto.
165 (_initialize_jit): Remove the call to
166 register_objfile_data_with_cleanup.
167 * objfiles.h (struct objfile) <jit_data>: New field.
168
169 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
170
171 * jit.h: Forward-declare `struct objfile`.
172 (jit_event_handler): Add a second parameter, the JITer objfile.
173 * jit.c (jit_read_descriptor): Change the signature to take the
174 JITer objfile as an argument instead of the jit_program_space_data.
175 (jit_inferior_init): Update the call to jit_read_descriptor.
176 (jit_event_handler): Use the new JITer objfile argument when calling
177 jit_read_descriptor.
178 * breakpoint.c (handle_jit_event): Update the call to
179 jit_event_handler to pass the JITer objfile.
180
181 2020-07-21 John Baldwin <jhb@FreeBSD.org>
182
183 * gdbarch.c: Regenerate.
184 * gdbarch.h: Regenerate.
185 * gdbarch.sh (handle_segmentation_fault): Remove method.
186 * infrun.c (handle_segmentation_fault): Remove.
187 (print_signal_received_reason): Remove call to
188 handle_segmentation_fault.
189
190 2020-07-21 John Baldwin <jhb@FreeBSD.org>
191
192 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
193 Rename to sparc64_linux_report_signal_info and add siggnal
194 argument.
195 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
196 instead of sparc64_linux_handle_segmentation_fault.
197
198 2020-07-21 John Baldwin <jhb@FreeBSD.org>
199
200 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
201 i386_linux_report_signal_info instead of
202 i386_linux_handle_segmentation_fault.
203 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
204 to i386_linux_report_signal_info and add siggnal argument.
205 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
206 of i386_linux_handle_segmentation_fault.
207 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
208 to i386_linux_report_signal_info and add siggnal argument.
209
210 2020-07-21 John Baldwin <jhb@FreeBSD.org>
211
212 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
213 hook if present.
214
215 2020-07-21 John Baldwin <jhb@FreeBSD.org>
216
217 * gdbarch.c: Regenerate.
218 * gdbarch.h: Regenerate.
219 * gdbarch.sh (report_signal_info): New method.
220 * infrun.c (print_signal_received_reason): Invoke gdbarch
221 report_signal_info hook if present.
222
223 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * python/py-registers.c : Add 'unordered_map' include.
226 (gdbpy_new_reggroup): Renamed to...
227 (gdbpy_get_reggroup): ...this. Update to only create register
228 group descriptors when needed.
229 (gdbpy_reggroup_iter_next): Update.
230
231 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * python/py-registers.c (gdbpy_register_object_data): New static
234 global.
235 (gdbpy_register_object_data_init): New function.
236 (gdbpy_new_register_descriptor): Renamed to...
237 (gdbpy_get_register_descriptor): ...this, and update to reuse
238 existing register descriptors where possible.
239 (gdbpy_register_descriptor_iter_next): Update.
240 (gdbpy_initialize_registers): Register new gdbarch data.
241
242 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
243
244 * linux-nat.c (stopped_pids): Make static.
245
246 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
247
248 PR ada/26235
249 * gdbtypes.c (ada_discrete_type_low_bound,
250 ada_discrete_type_high_bound): Handle undefined bounds.
251
252 2020-07-21 Kamil Rytarowski <n54@gmx.com>
253
254 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
255 declaration.
256 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
257 function.
258
259 2020-07-20 John Baldwin <jhb@FreeBSD.org>
260
261 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
262 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
263 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
264 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
265 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
266 method.
267
268 2020-07-20 Ludovic Courtès <ludo@gnu.org>
269
270 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
271 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
272 which are deprecated in Guile 3.0.
273 * configure.ac (try_guile_versions): Add "guile-3.0".
274 * configure (try_guile_versions): Regenerate.
275 * NEWS: Update entry.
276
277 2020-07-20 Ludovic Courtès <ludo@gnu.org>
278 Doug Evans <dje@google.com>
279
280 PR gdb/21104
281 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
282 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
283 USING_GUILE_BEFORE_2_2.
284 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
285 Change type to 'scm_t_port_type *'.
286 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
287 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
288 parameter and honor it. Update callers.
289 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
290 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
291 functions.
292 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
293 USING_GUILE_BEFORE_2_2.
294 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
295 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
296 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
297 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
298 and 'SCM_PORT_TYPE'.
299 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
300 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
301 (gdbscm_memory_port_read, gdbscm_memory_port_write)
302 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
303 [!USING_GUILE_BEFORE_2_2]: New functions.
304 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
305 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
306 'gdbscm_memory_port_read'.
307 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
308 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
309 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
310 function.
311 (ioscm_init_memory_port): Remove.
312 (ioscm_init_memory_port_stream): New function
313 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
314 function.
315 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
316 Return scm_from_uint (0).
317 (gdbscm_set_memory_port_read_buffer_size_x)
318 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
319 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
320 Return scm_from_uint (0).
321 (gdbscm_set_memory_port_write_buffer_size_x)
322 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
323 * configure.ac (try_guile_versions): Add "guile-2.2".
324 * configure: Regenerate.
325 * NEWS: Add entry.
326
327 2020-07-18 Tom Tromey <tom@tromey.com>
328
329 * linux-nat.c (linux_multi_process): Remove.
330 (linux_nat_target::supports_multi_process): Return true.
331
332 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * arch/riscv.c (riscv_tdesc_cache): Change map type.
335 (riscv_lookup_target_description): Return pointer out of
336 unique_ptr.
337 * target-descriptions.c (allocate_target_description): Add
338 comment.
339 (target_desc_deleter::operator()): Likewise.
340 * target-descriptions.h (struct target_desc_deleter): Moved to
341 gdbsupport/tdesc.h.
342 (target_desc_up): Likewise.
343
344 2020-07-17 Tom Tromey <tromey@adacore.com>
345
346 * linux-nat.c (linux_nat_target::supports_non_stop)
347 (linux_nat_target::always_non_stop_p): Use "true".
348 (linux_nat_target::supports_disable_randomization): Use "true" and
349 "false".
350
351 2020-07-16 Caroline Tice <cmtice@google.com>
352
353 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
354 (RNGLIST_HEADER_SIZE64): New constant definition.
355 (struct dwop_section_names): Add rnglists_dwo.
356 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
357 (struct loclist_header): Rename to 'loclists_rnglists_header'.
358 (struct dwo_sections): Add rnglists field.
359 (read_attribut_reprocess): Add tag parameter.
360 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
361 (cu_debug_rnglists_section): New function (decl & definition).
362 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
363 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
364 die whose range is being checked; get rnglist section from
365 cu_debug_rnglists_section, to get from either objfile or dwo file as
366 appropriate. Add cases for DW_RLE_base_addressx,
367 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
368 the base address to DW_RLE_offset_pairs (not to all ranges), moving
369 test inside if-condition and updating complaint message.
370 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
371 dwarf2_rnglists_process.
372 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
373 dwarf2_ranges_process.
374 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
375 need_ranges_base and update comment appropriately. Also pass die tag
376 to dwarf2_ranges_read.
377 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
378 need_ranges_base and update comment appropriately. Also pass die tag
379 to dwarf2_ranges_process.
380 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
381 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
382 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
383 need_ranges_base and update comment appropriately. Also pass die tag
384 to read_attribute_reprocess and dwarf2_ranges_read.
385 (read_loclist_header): Rename function to read_loclists_rnglists_header,
386 and update function comment appropriately.
387 (read_loclist_index): Call read_loclists_rnglists_header instead of
388 read_loclist_header.
389 (read_rnglist_index): New function.
390 (read_attribute_reprocess): Add tag parameter. Add code for
391 DW_FORM_rnglistx, passing tag to read_rnglist_index.
392 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
393
394 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
397 being resolved.
398
399 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * arch-utils.c (show_architecture): Update formatting of messages.
402
403 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
404
405 * gdbtypes.h (struct type) <bounds>: Handle array and string
406 types.
407 * ada-lang.c (assign_aggregate): Use type::bounds on
408 array/string type.
409 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
410 * c-varobj.c (c_number_of_children): Likewise.
411 (c_describe_child): Likewise.
412 * eval.c (evaluate_subexp_for_sizeof): Likewise.
413 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
414 (f_type_print_base): Likewise.
415 * f-valprint.c (f77_array_offset_tbl): Likewise.
416 (f77_get_upperbound): Likewise.
417 (f77_print_array_1): Likewise.
418 * guile/scm-type.c (gdbscm_type_range): Likewise.
419 * m2-typeprint.c (m2_array): Likewise.
420 (m2_is_long_set_of_type): Likewise.
421 * m2-valprint.c (get_long_set_bounds): Likewise.
422 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
423 * python/py-type.c (typy_range): Likewise.
424 * rust-lang.c (rust_internal_print_type): Likewise.
425 * type-stack.c (type_stack::follow_types): Likewise.
426 * valarith.c (value_subscripted_rvalue): Likewise.
427 * valops.c (value_cast): Likewise.
428
429 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
430
431 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
432 callers to use the equivalent accessor methods.
433
434 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
435
436 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
437 (struct type) <bit_stride>: New method.
438 (TYPE_BIT_STRIDE): Remove.
439 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
440
441 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
442
443 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
444 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
445 callers to use the equivalent accessor methods instead.
446
447 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
448
449 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
450 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
451 callers to use the equivalent accessor methods instead.
452
453 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
454
455 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
456 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
457 to use dynamic_prop::kind.
458
459 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
460
461 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
462 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
463 to get the bound property's kind and check against
464 PROP_UNDEFINED.
465
466 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
467
468 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
469 all callers to use type::range_bounds followed by
470 dynamic_prop::{low,high}.
471
472 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
475 const_val, set_const_val, baton, set_locexpr, set_loclist,
476 set_addr_offset, variant_parts, set_variant_parts,
477 original_type, set_original_type>: New methods.
478 <kind>: Rename to...
479 <m_kind>: ... this. Update all users to use the new methods
480 instead.
481 <data>: Rename to...
482 <m_data>: ... this. Update all users to use the new methods
483 instead.
484
485 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
486
487 * gdbtypes.c (get_discrete_bounds): Return failure if
488 the range type's bounds are not both defined and constant
489 values.
490 (get_array_bounds): Update comment. Remove undefined bound check.
491
492 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
495 the type::bounds method directly.
496
497 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
498
499 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
500 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
501 are used to set the range type's bounds to use set_bounds.
502
503 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
504
505 * exec.c (_initialize_exec): Update exec-file-mismatch help.
506
507 2020-07-10 Pedro Alves <pedro@palves.net>
508
509 * gdbthread.h (inferior_ref): Define.
510 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
511 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
512 * thread.c
513 (scoped_restore_current_thread::restore):
514 Adjust to gdb::ref_ptr.
515 (scoped_restore_current_thread::~scoped_restore_current_thread):
516 Remove manual decref handling.
517 (scoped_restore_current_thread::scoped_restore_current_thread):
518 Adjust to use
519 inferior_ref::new_reference/thread_info_ref::new_reference.
520 Incref the thread before calling get_frame_id instead of after.
521 Let TARGET_CLOSE_ERROR propagate.
522
523 2020-07-10 Pedro Alves <pedro@palves.net>
524
525 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
526 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
527 NOT_AVAILABLE_ERROR.
528 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
529 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
530
531 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
532 Pedro Alves <pedro@palves.net>
533
534 PR gdb/26199
535 * infrun.c (threads_are_resumed_pending_p): Delete.
536 (do_target_wait): Remove threads_are_executing and
537 threads_are_resumed_pending_p checks from the inferior_matches
538 lambda. Update comments.
539
540 2020-07-10 Pedro Alves <pedro@palves.net>
541
542 PR gdb/26199
543 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
544 executing threads.
545
546 2020-07-10 Pedro Alves <pedro@palves.net>
547
548 PR gdb/26199
549 * infrun.c (handle_no_resumed): Handle multiple targets.
550
551 2020-07-10 Pedro Alves <pedro@palves.net>
552
553 PR gdb/26199
554 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
555 target_is_async_p.
556
557 2020-07-10 Pedro Alves <pedro@palves.net>
558
559 PR gdb/26199
560 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
561 threads, not all threads.
562
563 2020-07-10 Pedro Alves <pedro@palves.net>
564
565 PR gdb/26199
566 * remote.c (remote_target::open_1): Pass remote target pointer as
567 data to create_async_event_handler.
568 (remote_async_inferior_event_handler): Mark async event handler
569 before returning if the remote target still has either pending
570 events or unacknowledged notifications.
571
572 2020-07-10 John Baldwin <jhb@FreeBSD.org>
573
574 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
575 declaration.
576 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
577 function.
578
579 2020-07-09 John Baldwin <jhb@FreeBSD.org>
580
581 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
582 inferior_ptid.
583
584 2020-07-09 John Baldwin <jhb@FreeBSD.org>
585
586 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
587 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
588 AT_FREEBSD_PS_STRINGS.
589
590 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
591
592 * auto-load.c (auto_load_objfile_script_1): Convert drive part
593 of debugfile path on Windows.
594
595 2020-07-08 John Baldwin <jhb@FreeBSD.org>
596
597 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
598 argument to 'data'.
599
600 2020-07-08 Tom Tromey <tromey@adacore.com>
601
602 * ada-lang.c (ada_exception_message_1): Use read_memory.
603
604 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 PR python/22748
607 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
608 special handling for inline frames.
609 * findvar.c (value_of_register_lazy): Skip inline frames when
610 creating lazy register values.
611 * frame.c (frame_id_computed_p): Delete definition.
612 * frame.h (frame_id_computed_p): Delete declaration.
613
614 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * NEWS: Mention additions to Python API.
617 * python/py-arch.c (archpy_register_groups): New function.
618 (arch_object_methods): Add 'register_groups' method.
619 * python/py-registers.c (reggroup_iterator_object): New struct.
620 (reggroup_object): New struct.
621 (gdbpy_new_reggroup): New function.
622 (gdbpy_reggroup_to_string): New function.
623 (gdbpy_reggroup_name): New function.
624 (gdbpy_reggroup_iter): New function.
625 (gdbpy_reggroup_iter_next): New function.
626 (gdbpy_new_reggroup_iterator): New function
627 (gdbpy_initialize_registers): Register new types.
628 (reggroup_iterator_object_type): Define new Python type.
629 (gdbpy_reggroup_getset): New static global.
630 (reggroup_object_type): Define new Python type.
631 * python/python-internal.h
632
633 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
636 * python/py-arch.c (archpy_registers): New function.
637 (arch_object_methods): Add 'registers' method.
638 * python/py-registers.c: New file.
639 * python/python-internal.h
640 (gdbpy_new_register_descriptor_iterator): Declare.
641 (gdbpy_initialize_registers): Declare.
642 * python/python.c (do_start_initialization): Call
643 gdbpy_initialize_registers.
644 * NEWS: Mention additions to the Python API.
645
646 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * NEWS: Mention new Python API method.
649 * python/py-unwind.c (pending_framepy_architecture): New function.
650 (pending_frame_object_methods): Add architecture method.
651
652 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * gdbarch.c: Regenerate.
655 * gdbarch.h: Regenerate.
656 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
657 (gdbarch_data): Use internal_error for the case where
658 deprecated_set_gdbarch_data was originally needed.
659 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
660 and use passed in obstack.
661 (libunwind_frame_set_descr): Should no longer get back NULL from
662 gdbarch_data.
663 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
664 type.
665 * user-regs.c (user_regs_init): Update parameters, and use passed
666 in obstack.
667 (user_reg_add): Should no longer get back NULL from gdbarch_data.
668 (_initialize_user_regs): Register as a pre-init gdbarch data type.
669
670 2020-07-06 Tom de Vries <tdevries@suse.de>
671
672 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
673 End-Of-Sequence in lte_is_less_than.
674 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
675 "gdb: Don't reorder line table entries too much when sorting".
676
677 2020-07-06 Tom de Vries <tdevries@suse.de>
678
679 PR tui/26205
680 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
681
682 2020-07-05 Tom de Vries <tdevries@suse.de>
683
684 PR build/26187
685 * inferior.h (struct infcall_suspend_state_deleter): If available, use
686 std::uncaught_exceptions instead of deprecated
687 std::uncaught_exception.
688
689 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * macroexp.h (macro_stringify): Return
692 gdb::unique_xmalloc_ptr<char>.
693 * macroexp.c (macro_stringify): Likewise.
694 * macrotab.c (fixup_definition): Update.
695
696 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
697
698 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
699 (lex_one_token): Update.
700 * macroexp.c (struct macro_buffer) <release>: Return
701 gdb::unique_xmalloc_ptr<char>.
702 (macro_stringify): Update.
703 (macro_expand): Update.
704 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
705 * macroexp.h (macro_expand_next): Likewise.
706
707 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
708
709 * macroexp.h (macro_lookup_ftype): Remove.
710 (macro_expand, macro_expand_once, macro_expand_next): Remove
711 lookup function parameters, add scope parameter.
712 * macroexp.c (scan, substitute_args, expand, maybe_expand,
713 macro_expand, macro_expand_once, macro_expand_next): Likewise.
714 * macroscope.h (standard_macro_lookup): Change parameter type
715 to macro_scope.
716 * macroscope.c (standard_macro_lookup): Likewise.
717 * c-exp.y (lex_one_token): Update.
718 * macrocmd.c (macro_expand_command): Likewise.
719 (macro_expand_once_command): Likewise.
720
721 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * inf-loop.c (inferior_event_handler): Remove client_data param.
724 * inf-loop.h (inferior_event_handler): Likewise.
725 * infcmd.c (step_1): Adjust.
726 * infrun.c (proceed): Adjust.
727 (fetch_inferior_event): Remove client_data param.
728 (infrun_async_inferior_event_handler): Adjust.
729 * infrun.h (fetch_inferior_event): Remove `void *` param.
730 * linux-nat.c (handle_target_event): Adjust.
731 * record-btrace.c (record_btrace_handle_async_inferior_event):
732 Adjust.
733 * record-full.c (record_full_async_inferior_event_handler):
734 Adjust.
735 * remote.c (remote_async_inferior_event_handler): Adjust.
736
737 2020-07-01 Tom Tromey <tom@tromey.com>
738
739 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
740 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
741
742 2020-07-01 Tom Tromey <tom@tromey.com>
743
744 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
745 tui_gen_win_info.
746 (tui_win_info::make_window): Merge with
747 tui_gen_win_info::make_window.
748 (tui_win_info::make_visible): Move from tui_gen_win_info.
749 * tui/tui-win.c (tui_win_info::max_width): Move from
750 tui_gen_win_info.
751 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
752 type.
753 <window_factory>: Likewise.
754 * tui/tui-layout.c (tui_win_info::resize): Move from
755 tui_gen_win_info.
756 (make_standard_window): Change return type.
757 (get_locator_window, tui_get_window_by_name): Likewise.
758 (tui_layout_window::apply): Remove a cast.
759 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
760 (struct tui_win_info): Merge with tui_gen_win_info.
761 (struct tui_gen_win_info): Remove.
762
763 2020-07-01 Tom Tromey <tom@tromey.com>
764
765 * tui/tui-stack.h (struct tui_locator_window): Derive from
766 tui_win_info.
767 <do_scroll_horizontal, do_scroll_vertical>: New methods.
768 <can_box>: New method.
769
770 2020-07-01 Tom Tromey <tom@tromey.com>
771
772 * tui/tui-stack.h (struct tui_locator_window): Remove body.
773
774 2020-07-01 Tom Tromey <tom@tromey.com>
775
776 * tui/tui-regs.c (tui_data_window::display_registers_from)
777 (tui_data_window::display_registers_from)
778 (tui_data_window::first_data_item_displayed)
779 (tui_data_window::delete_data_content_windows): Update.
780 (tui_data_window::refresh_window, tui_data_window::no_refresh):
781 Remove.
782 (tui_data_window::check_register_values): Update.
783 (tui_data_item_window::rerender): Add parameters. Update.
784 (tui_data_item_window::refresh_window): Remove.
785 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
786 virtual.
787 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
788 tui_gen_win_info.
789 <refresh_window, max_height, min_height>: Remove.
790 <rerender>: Add parameters.
791 <x, y, visible>: New members.
792 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
793 <m_item_width>: New member.
794
795 2020-07-01 Tom Tromey <tom@tromey.com>
796
797 * tui/tui-regs.c (tui_data_window::show_register_group)
798 (tui_data_window::check_register_values): Update.
799 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
800 from item_no.
801
802 2020-07-01 Tom Tromey <tom@tromey.com>
803
804 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
805 useless "if".
806
807 2020-07-01 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
810 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
811
812 2020-07-01 Tom Tromey <tom@tromey.com>
813
814 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
815 * tui/tui-winsource.h (enum tui_line_or_address_kind)
816 (struct tui_line_or_address): Move from tui-data.h.
817 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
818 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
819 (tui_cmd_window, tui_source_window_base, tui_source_window)
820 (tui_disasm_window): Don't declare.
821 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
822 to tui-winsource.h.
823 (SINGLE_KEY): Move to tui-stack.c.
824
825 2020-07-01 Tom Tromey <tom@tromey.com>
826
827 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
828 std::string.
829 * tui/tui-regs.c (class tab_expansion_file): New.
830 (tab_expansion_file::write): New method.
831 (tui_register_format): Change return type. Use
832 tab_expansion_file.
833 (tui_get_register, tui_data_window::display_registers_from)
834 (tui_data_item_window::rerender): Update.
835 * tui/tui-io.h (tui_expand_tabs): Don't declare.
836 * tui/tui-io.c (tui_expand_tabs): Remove.
837
838 2020-07-01 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
841
842 2020-07-01 Fangrui Song <maskray@google.com>
843
844 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
845
846 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
847
848 * dwarf2/read.c (set_die_type): Removed conditions to restrict
849 forms for DW_AT_associated and DW_AT_allocated attributes,
850 which is already checked in function attr_to_dynamic_prop.
851
852 2020-06-30 Tom Tromey <tromey@adacore.com>
853
854 * dwarf2/read.c (quirk_rust_enum): Correctly call
855 alloc_rust_variant for default-less enum.
856
857 2020-06-30 Tom Tromey <tromey@adacore.com>
858
859 PR build/26183:
860 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
861 gdb::to_string.
862
863 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
864
865 * gdbarch.sh (displaced_step_copy_insn): Update doc.
866 * gdbarch.h: Re-generate.
867
868 2020-06-28 Tom Tromey <tom@tromey.com>
869
870 * command.h (cmd_types): Remove.
871 (cmd_type): Don't declare.
872 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
873 typedef.
874 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
875 * cli/cli-decode.c (cmd_type): Remove.
876
877 2020-06-27 Pedro Alves <palves@redhat.com>
878
879 * fork-child.c (prefork_hook): Adjust.
880 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
881 Delete.
882 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
883 * inferior.c (inferior::set_tty, inferior::tty): New methods.
884 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
885 Remove declarations.
886 (struct inferior) <set_tty, tty>: New methods.
887 (struct inferior) <terminal>: Rename to ...
888 (struct inferior) <m_terminal>: ... this and make private.
889 * main.c (captured_main_1): Adjust.
890 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
891 (mi_cmd_inferior_tty_show): Adjust.
892 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
893 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
894
895 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
896
897 * configure.ac: Add --enable-libctf: handle --disable-static
898 properly.
899 * acinclude.m4: sinclude ../config/enable.m4.
900 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
901 (LIBCTF): Substitute in.
902 (CTF_DEPS): New, likewise.
903 (CLIBS): libctf needs symbols from libbfd: move earlier.
904 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
905 flags.
906 * ctfread.c: Surround in ENABLE_LIBCTF.
907 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
908 * configure: Regenerate.
909 * config.in: Likewise.
910
911 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
912
913 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
914
915 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
916
917 * inferior.h (struct inferior) <terminal>: Change type to
918 gdb::unique_xmalloc_ptr<char>.
919 * inferior.c (inferior::~inferior): Don't free inf->terminal.
920 * infcmd.c (set_inferior_io_terminal): Don't free terminal
921 field, adjust to unique pointer.
922 (get_inferior_io_terminal): Adjust to unique pointer.
923
924 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
925
926 * riscv-tdep.c (riscv_print_registers_info): Loop over all
927 registers, not just the known core set of registers.
928
929 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
930
931 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
932 fflags, frm, and fcsr registers.
933 (riscv_register_reggroup_p): Remove unknown CSRs from save and
934 restore groups.
935 (riscv_tdesc_unknown_reg): New function.
936 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
937 tdesc_use_registers.
938 * riscv-tdep.h (struct gdbarch_tdep): Add
939 unknown_csrs_first_regnum, unknown_csrs_count,
940 duplicate_fflags_regnum, duplicate_frm_regnum, and
941 duplicate_fcsr_regnum fields.
942
943 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * target-descriptions.c (tdesc_use_registers): Add new parameter a
946 callback, use the callback (when not null) to help number unknown
947 registers.
948 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
949 (tdesc_use_registers): Add extra parameter to declaration.
950
951 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
954 in the file.
955 (class riscv_pending_register_alias): Likewise.
956 (riscv_register_feature::register_info): Change 'required_p' field
957 to 'required', and change its type. Add 'check' member function.
958 (riscv_register_feature::register_info::check): Define new member
959 function.
960 (riscv_xreg_feature): Change initialisation of 'required' field.
961 (riscv_freg_feature): Likewise.
962 (riscv_virtual_feature): Likewise.
963 (riscv_csr_feature): Likewise.
964 (riscv_check_tdesc_feature): Take extra parameter, the csr
965 tdesc_feature, rewrite the function to use the new
966 riscv_register_feature::register_info::check function.
967 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
968
969 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * features/Makefile: Remove all references to the deleted files
972 below.
973 * features/riscv/32bit-csr.c: Deleted.
974 * features/riscv/32bit-csr.xml: Deleted.
975 * features/riscv/64bit-csr.c: Deleted.
976 * features/riscv/64bit-csr.xml: Deleted.
977 * features/riscv/rebuild-csr-xml.sh: Deleted.
978
979 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
982 whitespace error for declaration of names member variable.
983 (struct riscv_register_feature): Add new prefer_first_name member
984 variable, and fix whitespace error in declaration of registers.
985 (riscv_xreg_feature): Initialize prefer_first_name field.
986 (riscv_freg_feature): Likewise.
987 (riscv_virtual_feature): Likewise.
988 (riscv_csr_feature): Likewise.
989 (riscv_register_name): Expand on comments. Remove register name
990 modifications for CSR and virtual registers.
991
992 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
993
994 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
995 errors.
996
997 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1000 riscv-opc.h.
1001 (class riscv_pending_register_alias): New class.
1002 (riscv_check_tdesc_feature): Take vector of pending aliases and
1003 populate it as appropriate.
1004 (riscv_setup_register_aliases): Delete.
1005 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1006 to riscv_check_tdesc_feature in all cases. Use the vector to
1007 create the register aliases.
1008
1009 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1010
1011 * sol2-tdep.c (sol2_static_transform_name): Remove.
1012 (sol2_init_abi): Don't register it.
1013 * gdbarch.sh (static_transform_name): Remove.
1014 * gdbarch.c, gdbarch.h: Regenerate.
1015
1016 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1017 gdbarch_static_transform_name.
1018 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1019 * stabsread.c (define_symbol) <'X'>: Remove.
1020 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1021 handling.
1022 <'V'>: Likewise.
1023 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1024 <'S'>: Remove call to gdbarch_static_transform_name.
1025
1026 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1027
1028 * procfs.c (procfs_pre_trace): New function.
1029 (procfs_target::create_inferior): Pass it to fork_inferior.
1030
1031 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1034 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1035 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1036 sol2-tdep.o, sparc-sol2-tdep.o.
1037 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1038 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1039 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1040 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1041
1042 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1043
1044 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1045 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1046 Call sol2_init_abi.
1047 Remove calls to set_gdbarch_skip_solib_resolver,
1048 set_gdbarch_core_pid_to_str.
1049 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1050 (i386_sol2_static_transform_name): Remove.
1051 (i386_sol2_init_abi): Call sol2_init_abi.
1052 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1053 set_gdbarch_static_transform_name,
1054 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1055 Use sol2_sigtramp_p.
1056 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1057 (sol2_sigtramp_p): New function.
1058 (sol2_static_transform_name): New function.
1059 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1060 (sol2_init_abi): New function.
1061 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1062 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1063 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1064 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1065 (sparc_sol2_static_transform_name): Remove.
1066 (sparc32_sol2_init_abi): Call sol2_init_abi.
1067 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1068 set_gdbarch_static_transform_name,
1069 set_gdbarch_skip_solib_resolver,
1070 set_gdbarch_core_pid_to_str.
1071 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1072 (sparc_sol2_static_transform_name): Remove
1073 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1074 call sol2_sigtramp_p.
1075 (sparc64_sol2_init_abi): Call sol2_init_abi.
1076 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1077 set_gdbarch_static_transform_name,
1078 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1079
1080 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1081
1082 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1083 * exec.c (validate_exec_file): If from_tty, set both
1084 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1085 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1086 and from_tty, unconditionally ask a confirmation.
1087
1088 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * target-descriptions.c (tdesc_architecture_name): Protect against
1091 NULL pointer dereference.
1092 (maint_print_xml_tdesc_cmd): New function.
1093 (_initialize_target_descriptions): Register new 'maint print
1094 xml-tdesc' command and give it the filename completer.
1095 * NEWS: Mention new 'maint print xml-tdesc' command.
1096
1097 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * target-descriptions.c (class tdesc_compatible_info): New class.
1100 (struct target_desc): Change type of compatible vector.
1101 (tdesc_compatible_p): Update for change in type of
1102 target_desc::compatible.
1103 (tdesc_compatible_info_list): New function.
1104 (tdesc_compatible_info_arch_name): New function.
1105 (tdesc_add_compatible): Update for change in type of
1106 target_desc::compatible.
1107 (print_c_tdesc::visit_pre): Likewise.
1108
1109 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1112 whitespace to underscore.
1113 (maint_print_c_tdesc_cmd): Use fake filename for target
1114 descriptions that came from the target.
1115 (_initialize_target_descriptions): Add filename command completion
1116 for 'maint print c-tdesc'.
1117
1118 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1121 lines.
1122
1123 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1126 lines.
1127 (dwarf2_find_location_expression): Likewise.
1128 (call_site_parameter_matches): Likewise.
1129 (dwarf2_compile_expr_to_ax): Likewise.
1130 (disassemble_dwarf_expression): Likewise.
1131 (loclist_describe_location): Likewise.
1132
1133 2020-06-23 Pedro Alves <palves@redhat.com>
1134
1135 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1136 progspace-and-thread.h. Include scoped-mock-context.h instead.
1137 (register_to_value_test): Use scoped_mock_context.
1138 * regcache.c: Include "scoped-mock-context.h".
1139 (cooked_read_test): Don't error out if a target is already pushed.
1140 Use scoped_mock_context. Adjust.
1141 * scoped-mock-context.h: New file.
1142
1143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1146 initializer.
1147 (ada_language::is_string_type_p): New member function.
1148 * c-lang.c (c_language_data): Delete la_is_string_type_p
1149 initializer.
1150 (cplus_language_data): Likewise.
1151 (asm_language_data): Likewise.
1152 (minimal_language_data): Likewise.
1153 * d-lang.c (d_language_data): Likewise.
1154 * f-lang.c (f_is_string_type_p): Delete function, implementation
1155 moved to f_language::is_string_type_p.
1156 (f_language_data): Delete la_is_string_type_p initializer.
1157 (f_language::is_string_type_p): New member function,
1158 implementation from f_is_string_type_p.
1159 * go-lang.c (go_is_string_type_p): Delete function, implementation
1160 moved to go_language::is_string_type_p.
1161 (go_language_data): Delete la_is_string_type_p initializer.
1162 (go_language::is_string_type_p): New member function,
1163 implementation from go_is_string_type_p.
1164 * language.c (language_defn::is_string_type_p): Define new member
1165 function.
1166 (default_is_string_type_p): Make static, add comment copied from
1167 header file.
1168 (unknown_language_data): Delete la_is_string_type_p initializer.
1169 (unknown_language::is_string_type_p): New member function.
1170 (auto_language_data): Delete la_is_string_type_p initializer.
1171 (auto_language::is_string_type_p): New member function.
1172 * language.h (language_data): Delete la_is_string_type_p field.
1173 (language_defn::is_string_type_p): Declare new function.
1174 (default_is_string_type_p): Delete desclaration, move comment to
1175 definition.
1176 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1177 moved to m2_language::is_string_type_p.
1178 (m2_language_data): Delete la_is_string_type_p initializer.
1179 (m2_language::is_string_type_p): New member function,
1180 implementation from m2_is_string_type_p.
1181 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1182 initializer.
1183 * opencl-lang.c (opencl_language_data): Likewise.
1184 * p-lang.c (pascal_is_string_type_p): Delete function,
1185 implementation moved to pascal_language::is_string_type_p.
1186 (pascal_language_data): Delete la_is_string_type_p initializer.
1187 (pascal_language::is_string_type_p): New member function,
1188 implementation from pascal_is_string_type_p.
1189 * rust-lang.c (rust_is_string_type_p): Delete function,
1190 implementation moved to rust_language::is_string_type_p.
1191 (rust_language_data): Delete la_is_string_type_p initializer.
1192 (rust_language::is_string_type_p): New member function,
1193 implementation from rust_is_string_type_p.
1194 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1195 is_string_type_p.
1196
1197 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * ada-lang.c (ada_language_data): Delete la_print_typedef
1200 initializer.
1201 (ada_language::print_typedef): New member function.
1202 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1203 (cplus_language_data): Likewise.
1204 (asm_language_data): Likewise.
1205 (minimal_language_data): Likewise.
1206 * d-lang.c (d_language_data): Likewise.
1207 * f-lang.c (f_language_data): Likewise.
1208 (f_language::print_typedef): New member function.
1209 * go-lang.c (go_language_data): Delete la_print_typedef
1210 initializer.
1211 * language.c (language_defn::print_typedef): Define member
1212 function.
1213 (unknown_language_data): Delete la_print_typedef initializer.
1214 (unknown_language::print_typedef): New member function.
1215 (auto_language_data): Delete la_print_typedef initializer.
1216 (auto_language::print_typedef): New member function.
1217 * language.h (language_data): Delete la_print_typedef field.
1218 (language_defn::print_typedef): Declare new member function.
1219 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1220 (default_print_typedef): Delete declaration.
1221 * m2-lang.c (m2_language_data): Delete la_print_typedef
1222 initializer.
1223 (m2_language::print_typedef): New member function.
1224 * objc-lang.c (objc_language_data): Delete la_print_typedef
1225 initializer.
1226 * opencl-lang.c (opencl_language_data): Likewise.
1227 * p-lang.c (pascal_language_data): Likewise.
1228 (pascal_language::print_typedef): New member function.
1229 * rust-lang.c (rust_print_typedef): Delete function,
1230 implementation moved to rust_language::print_typedef.
1231 (rust_language): Delete la_print_typedef initializer.
1232 (rust_language::print_typedef): New member function,
1233 implementation from rust_print_typedef.
1234 * typeprint.c (default_print_typedef): Delete.
1235
1236 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1239 (ada_language::printstr): New member function.
1240 * c-lang.c (c_language_data): Delete la_printstr initializer.
1241 (cplus_language_data): Likewise.
1242 (asm_language_data): Likewise.
1243 (minimal_language_data): Likewise.
1244 * d-lang.c (d_language_data): Likewise.
1245 * f-lang.c (f_printstr): Rename to f_language::printstr.
1246 (f_language_data): Delete la_printstr initializer.
1247 (f_language::printstr): New member function, implementation from
1248 f_printstr.
1249 * go-lang.c (go_language_data): Delete la_printstr initializer.
1250 * language.c (language_defn::printstr): Define new member
1251 function.
1252 (unk_lang_printstr): Delete.
1253 (unknown_language_data): Delete la_printstr initializer.
1254 (unknown_language::printstr): New member function.
1255 (auto_language_data): Delete la_printstr initializer.
1256 (auto_language::printstr): New member function.
1257 * language.h (language_data): Delete la_printstr field.
1258 (language_defn::printstr): Declare new member function.
1259 (LA_PRINT_STRING): Update call to printstr.
1260 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1261 (m2_language_data): Delete la_printstr initializer.
1262 (m2_language::printstr): New member function, implementation from
1263 m2_printstr.
1264 * objc-lang.c (objc_language_data): Delete la_printstr
1265 initializer.
1266 * opencl-lang.c (opencl_language_data): Likewise.
1267 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1268 (pascal_language_data): Delete la_printstr initializer.
1269 (pascal_language::printstr): New member function, implementation
1270 from pascal_printstr.
1271 * p-lang.h (pascal_printstr): Delete declaration.
1272 * rust-lang.c (rust_printstr): Update header comment.
1273 (rust_language_data): Delete la_printstr initializer.
1274 (rust_language::printstr): New member function.
1275
1276 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1279 (ada_language::printchar): New member function.
1280 * c-lang.c (c_language_data): Delete la_printchar initializer.
1281 (cplus_language_data): Likewise.
1282 (asm_language_data): Likewise.
1283 (minimal_language_data): Likewise.
1284 * d-lang.c (d_language_data): Likewise.
1285 * f-lang.c (f_printchar): Rename to f_language::printchar.
1286 (f_language_data): Delete la_printchar initializer.
1287 (f_language::printchar): New member function, implementation from
1288 f_printchar.
1289 * go-lang.c (go_language_data): Delete la_printchar initializer.
1290 * language.c (unk_lang_printchar): Delete.
1291 (language_defn::printchar): Define new member function.
1292 (unknown_language_data): Delete la_printchar initializer.
1293 (unknown_language::printchar): New member function.
1294 (auto_language_data): Delete la_printchar initializer.
1295 (auto_language::printchar): New member function.
1296 * language.h (language_data): Delete la_printchar field.
1297 (language_defn::printchar): Declare new member function.
1298 (LA_PRINT_CHAR): Update call to printchar.
1299 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1300 (m2_language::printchar): New member function.
1301 * objc-lang.c (objc_language_data): Delete la_printchar
1302 initializer.
1303 * opencl-lang.c (opencl_language_data): Likewise.
1304 * p-lang.c (pascal_language_data): Delete la_printchar
1305 initializer.
1306 (pascal_language::printchar): New member function.
1307 * rust-lang.c (rust_printchar): Rename to
1308 rust_language::printchar.
1309 (rust_language_data): Delete la_printchar initializer.
1310 (rust_language::printchar): New member function, implementation
1311 from rust_printchar.
1312
1313 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1316 (ada_language_data): Delete la_emitchar initializer.
1317 (ada_language::emitchar): New member function, implementation from
1318 emit_char.
1319 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1320 (cplus_language_data): Likewise.
1321 (asm_language_data): Likewise.
1322 (minimal_language_data): Likewise.
1323 * d-lang.c (d_language_data): Likewise.
1324 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1325 (f_language_data): Delete la_emitchar initializer.
1326 (f_language::emitchar): New member function, implementation from
1327 f_emit_char.
1328 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1329 * language.c (unk_lang_emit_char): Delete.
1330 (language_defn::emitchar): New member function definition.
1331 (unknown_language_data): Delete la_emitchar initializer.
1332 (unknown_language::emitchar): New member function.
1333 (auto_language_data): Delete la_emitchar initializer.
1334 (auto_language::emitchar): New member function.
1335 * language.h (language_data): Delete la_emitchar field.
1336 (language_defn::emitchar): New member field declaration.
1337 (LA_EMIT_CHAR): Update call to emitchar.
1338 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1339 (m2_language_data): Delete la_emitchar initializer.
1340 (m2_language::emitchar): New member function, implementation from
1341 m2_emit_char.
1342 * objc-lang.c (objc_language_data): Delete la_emitchar
1343 initializer.
1344 * opencl-lang.c (opencl_language_data): Likewise.
1345 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1346 (pascal_language_data): Delete la_emitchar initializer.
1347 (pascal_language::emitchar): New member function, implementation
1348 from pascal_emit_char.
1349 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1350 (rust_language_data): Delete la_emitchar initializer.
1351 (rust_language::emitchar): New member function, implementation
1352 from rust_emitchar.
1353
1354 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1357 (ada_language_data): Delete la_post_parser initializer.
1358 (ada_language::post_parser): New member function.
1359 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1360 (cplus_language_data): Likewise.
1361 (asm_language_data): Likewise.
1362 (minimal_language_data): Likewise.
1363 * d-lang.c (d_language_data): Likewise.
1364 * f-lang.c (f_language_data): Likewise.
1365 * go-lang.c (go_language_data): Likewise.
1366 * language.c (unknown_language_data): Likewise.
1367 (auto_language_data): Likewise.
1368 * language.h (language_data): Delete la_post_parser field.
1369 (language_defn::post_parser): New member function.
1370 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1371 * objc-lang.c (objc_language_data): Likewise.
1372 * opencl-lang.c (opencl_language_data): Likewise.
1373 * p-lang.c (pascal_language_data): Likewise.
1374 * parse.c (parse_exp_in_context): Update call to post_parser.
1375 (null_post_parser): Delete definition.
1376 * parser-defs.h (null_post_parser): Delete declaration.
1377 * rust-lang.c (rust_language_data): Delete la_post_parser
1378 initializer.
1379
1380 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * ada-lang.c (parse): Rename to ada_language::parser.
1383 (ada_language_data): Delete la_parser initializer.
1384 (ada_language::parser): New member function, implementation from
1385 parse.
1386 * c-lang.c (c_language_data): Delete la_parser initializer.
1387 (cplus_language_data): Likewise.
1388 (asm_language_data): Likewise.
1389 (minimal_language_data): Likewise.
1390 * d-lang.c (d_language_data): Likewise.
1391 (d_language::parser): New member function.
1392 * f-lang.c (f_language_data): Delete la_parser initializer.
1393 (f_language::parser): New member function.
1394 * go-lang.c (go_language_data): Delete la_parser initializer.
1395 (go_language::parser): New member function.
1396 * language.c (unk_lang_parser): Delete.
1397 (language_defn::parser): Define new member function.
1398 (unknown_language_data): Delete la_parser initializer.
1399 (unknown_language::parser): New member function.
1400 (auto_language_data): Delete la_parser initializer.
1401 (auto_language::parser): New member function.
1402 * language.h (language_data): Delete la_parser field.
1403 (language_defn::parser): Declare new member function.
1404 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1405 (m2_language::parser): New member function.
1406 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1407 * opencl-lang.c (opencl_language_data): Likewise.
1408 * p-lang.c (pascal_language_data): Likewise.
1409 (pascal_language::parser): New member function.
1410 * parse.c (parse_exp_in_context): Update call to parser.
1411 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1412 (rust_language::parser): New member function.
1413
1414 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * top.c (print_gdb_configuration): Print --with-python-libdir
1417 configuration value.
1418
1419 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1420
1421 * NEWS: Mention change to the alias command.
1422
1423 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1424
1425 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1426 (alias_command_completer)
1427 (make_alias_options_def_group): New functions.
1428 (alias_opts, alias_option_defs): New struct and array.
1429 (alias_usage_error): Update usage.
1430 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1431 Use option framework.
1432 (_initialize_cli_cmds): Update alias command help.
1433 Update aliases command help.
1434 (show_user):
1435 Add NULL for new default_args lookup_cmd argument.
1436 (valid_command_p): Rename to validate_aliased_command.
1437 Add NULL for new default_args lookup_cmd argument. Verify that the
1438 aliased_command has no default args.
1439 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1440 (lookup_cmd_1, lookup_cmd): New argument default_args.
1441 (add_alias_cmd):
1442 Add NULL for new default_args lookup_cmd argument.
1443 (print_help_for_command): Show default args under the layout
1444 alias some_alias = some_aliased_cmd some_alias_default_arg.
1445 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1446 xfree default_args in destructor.
1447 * cli/cli-script.c (process_next_line, do_define_command):
1448 Add NULL for new default_args lookup_cmd argument.
1449 * command.h: Declare new default_args argument in lookup_cmd
1450 and lookup_cmd_1.
1451 * completer.c (complete_line_internal_1):
1452 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1453 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1454 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1455 Likewise.
1456 * infcmd.c (_initialize_infcmd): Likewise.
1457 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1458 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1459 * python/py-param.c (add_setshow_generic): Likewise.
1460 * remote.c (_initialize_remote): Likewise.
1461 * top.c (execute_command): Prepend default_args if command has some.
1462 (set_verbose):
1463 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1464 * tracepoint.c (validate_actionline, encode_actions_1):
1465 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1466
1467 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 * jit.c (jit_read_descriptor): Use bool as the return type.
1470 (jit_breakpoint_re_set_internal): Use bool as the return type.
1471 Invert the return value logic; return true if the jit breakpoint
1472 has been successfully initialized.
1473 (jit_inferior_init): Update the call to
1474 jit_breakpoint_re_set_internal.
1475
1476 2020-06-22 Pedro Alves <palves@redhat.com>
1477
1478 PR gdb/25939
1479 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1480 Use the current inferior instead. Don't return
1481 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1482 wait again.
1483 * sol-thread.c (sol_thread_target::wait): Don't reference
1484 inferior_ptid.
1485 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1486 (sol_update_thread_list_callback): Use the current inferior's pid
1487 instead of inferior_ptid.
1488
1489 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1490
1491 * procfs.c: Cleanup many comments.
1492
1493 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1494 (AFTER_WATCHFLAG): Replace by value.
1495
1496 (MAIN_PROC_NAME_FORMAT): Inline ...
1497 (create_procinfo): ... here.
1498
1499 (procfs_debug_inferior): Remove SYS_exec handling.
1500 (syscall_is_exec): Likewise.
1501 (procfs_set_exec_trap): Likewise.
1502
1503 (syscall_is_lwp_exit): Inline in callers.
1504 (syscall_is_exit): Likewise.
1505 (syscall_is_exec): Likewise.
1506 (syscall_is_lwp_create): Likewise.
1507
1508 (invalidate_cache): Remove #if 0 code.
1509
1510 (make_signal_thread_runnable): Remove.
1511 (procfs_target::resume): Remove #if 0 code.
1512
1513 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1514
1515 PR gdb/25939
1516 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1517 call ...
1518 (procfs_target::create_inferior): ... here.
1519
1520 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1521
1522 * exec.c (validate_exec_file): Ensure the build-id is up to
1523 date by calling reopen_exec_file (that checks file timestamp
1524 to decide to re-read the file).
1525
1526 2020-06-18 Pedro Alves <palves@redhat.com>
1527
1528 PR gdb/25412
1529 * gdbthread.h (delete_thread, delete_thread_silent)
1530 (find_thread_ptid): Update comments.
1531 * thread.c (current_thread_): New global.
1532 (is_current_thread): Move higher, and reimplement.
1533 (inferior_thread): Reimplement.
1534 (set_thread_exited): Use bool. Add assertions.
1535 (add_thread_silent): Simplify thread-reuse handling by always
1536 calling delete_thread.
1537 (delete_thread): Remove intro comment.
1538 (find_thread_ptid): Skip exited threads.
1539 (switch_to_thread_no_regs): Write to current_thread_.
1540 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1541 INFERIOR_PTID. Clear current_thread_.
1542
1543 2020-06-18 Pedro Alves <palves@redhat.com>
1544
1545 * aix-thread.c (pd_update): Use switch_to_thread.
1546
1547 2020-06-18 Pedro Alves <palves@redhat.com>
1548
1549 * ravenscar-thread.c (ravenscar_thread_target): Update.
1550 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1551 (ravenscar_thread_target::add_active_thread): ... this. Don't
1552 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1553 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1554
1555 2020-06-18 Pedro Alves <palves@redhat.com>
1556
1557 * nat/windows-nat.c (current_windows_thread): Remove.
1558 * nat/windows-nat.h (current_windows_thread): Remove.
1559 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1560 Adjust.
1561 (display_selectors): Adjust to fetch the current
1562 windows_thread_info based on inferior_ptid.
1563 (fake_create_process): No longer write to current_windows_thread.
1564 (windows_nat_target::get_windows_debug_event):
1565 Don't set inferior_ptid or current_windows_thread.
1566 (windows_nat_target::wait): Adjust to not rely on
1567 current_windows_thread.
1568 (do_initial_windows_stuff): Now a method of windows_nat_target.
1569 Switch to the last_ptid thread.
1570 (windows_nat_target::attach): Adjust.
1571 (windows_nat_target::detach): Use switch_to_no_thread instead of
1572 writing to inferior_ptid directly.
1573 (windows_nat_target::create_inferior): Adjust.
1574
1575 2020-06-18 Pedro Alves <palves@redhat.com>
1576
1577 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1578
1579 2020-06-18 Pedro Alves <palves@redhat.com>
1580
1581 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1582 after creating it, instead of writing to inferior_ptid. Don't
1583 write to inferior_ptid.
1584
1585 2020-06-18 Pedro Alves <palves@redhat.com>
1586
1587 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1588
1589 2020-06-18 Pedro Alves <palves@redhat.com>
1590
1591 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1592 it, instead of writing to inferior_ptid.
1593
1594 2020-06-18 Pedro Alves <palves@redhat.com>
1595
1596 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1597 to inferior_ptid.
1598
1599 2020-06-18 Pedro Alves <palves@redhat.com>
1600
1601 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1602 instead of writing to inferior_ptid directly.
1603
1604 2020-06-18 Pedro Alves <palves@redhat.com>
1605
1606 * corelow.c (core_target::close): Use switch_to_no_thread instead
1607 of writing to inferior_ptid directly.
1608 (add_to_thread_list, core_target_open): Use switch_to_thread
1609 instead of writing to inferior_ptid directly.
1610
1611 2020-06-18 Pedro Alves <palves@redhat.com>
1612
1613 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1614 inferior_ptid.
1615 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1616 inferior_ptid.
1617 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1618 inferior_ptid directly.
1619 (darwin_nat_target::init_thread_list): Switch to thread, instead
1620 of writing to inferior_ptid.
1621 (darwin_nat_target::attach): Don't write to inferior_ptid.
1622 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1623
1624 2020-06-18 Pedro Alves <palves@redhat.com>
1625
1626 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1627 thread.
1628 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1629 Instead use switch_to_thread.
1630 (gnu_nat_target::detach): Use switch_to_no_thread
1631 instead of writing to inferior_ptid directly. Used passed-in
1632 inferior instead of looking up the inferior by pid.
1633
1634 2020-06-18 Pedro Alves <palves@redhat.com>
1635
1636 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1637 inferior_ptid.
1638
1639 2020-06-18 Pedro Alves <palves@redhat.com>
1640
1641 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1642 inferior_ptid.
1643 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1644 thread.
1645 (nto_procfs_target::detach): Avoid referencing
1646 inferior_ptid. Use switch_to_no_thread instead of writing to
1647 inferior_ptid directly.
1648 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1649 instead of writing to inferior_ptid directly.
1650 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1651 to thread.
1652
1653 2020-06-18 Pedro Alves <palves@redhat.com>
1654
1655 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1656 after creating it, instead of writing to inferior_ptid.
1657 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1658 to inferior_ptid directly.
1659 (gdbsim_target::wait): Don't write to inferior_ptid.
1660
1661 2020-06-18 Pedro Alves <palves@redhat.com>
1662
1663 * remote.c (remote_target::remote_notice_new_inferior): Use
1664 switch_to_thread instead of writing to inferior_ptid directly.
1665 (remote_target::add_current_inferior_and_thread): Use
1666 switch_to_no_thread instead of writing to inferior_ptid directly.
1667 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1668 and switch_to_thread instead of using set_current_inferior or
1669 writing to inferior_ptid directly.
1670
1671 2020-06-18 Pedro Alves <palves@redhat.com>
1672
1673 * tracectf.c (ctf_target_open): Switch to added thread instead of
1674 writing to inferior_ptid directly.
1675 (ctf_target::close): Use switch_to_no_thread instead of writing to
1676 inferior_ptid directly.
1677
1678 2020-06-18 Pedro Alves <palves@redhat.com>
1679
1680 * tracefile-tfile.c (tfile_target_open): Don't write to
1681 inferior_ptid directly, instead switch to added thread.
1682 (tfile_target::close): Use switch_to_no_thread instead of writing
1683 to inferior_ptid directly.
1684
1685 2020-06-18 Pedro Alves <palves@redhat.com>
1686
1687 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1688 (procfs_target::detach): Use switch_to_no_thread
1689 instead of writing to inferior_ptid directly.
1690 (do_attach): Change return type to void. Switch to the added
1691 thread.
1692 (procfs_target::create_inferior): Switch to the added thread.
1693 (procfs_do_thread_registers): Don't write to inferior_ptid.
1694
1695 2020-06-18 Pedro Alves <palves@redhat.com>
1696
1697 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1698 of writing to inferior_ptid.
1699 (scoped_restore_exited_inferior): Delete.
1700 (handle_vfork_child_exec_or_exit): Simplify using
1701 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1702 instead of writing to inferior_ptid.
1703 (THREAD_STOPPED_BY): Delete.
1704 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1705 (thread_stopped_by_hw_breakpoint): Delete.
1706 (save_waitstatus): Use
1707 scoped_restore_current_thread+switch_to_thread, and call
1708 target_stopped_by_watchpoint instead of
1709 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1710 instead of thread_stopped_by_sw_breakpoint, and
1711 target_stopped_by_hw_breakpoint instead of
1712 thread_stopped_by_hw_breakpoint.
1713 (handle_inferior_event)
1714 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1715 inferior_ptid directly, nor
1716 set_current_inferior/set_current_program_space. Use
1717 switch_to_thread / switch_to_inferior_no_thread instead.
1718
1719 2020-06-18 Pedro Alves <palves@redhat.com>
1720
1721 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1722 instead of writing to inferior_ptid.
1723
1724 2020-06-18 Pedro Alves <palves@redhat.com>
1725
1726 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1727 added thread.
1728 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1729 to the added thread.
1730 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1731 instead of writing to inferior_ptid.
1732
1733 2020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1736 (register_to_value_test): Mock a program_space too. Heap-allocate
1737 the address space. Don't write to inferior_ptid. Use
1738 switch_to_thread instead.
1739
1740 2020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1743 Delete.
1744 (find_signalled_thread()): New, factored out from
1745 linux_make_corefile_notes and adjusted to handle exited threads.
1746 (linux_make_corefile_notes): Adjust to use the new
1747 find_signalled_thread.
1748
1749 2020-06-18 Pedro Alves <palves@redhat.com>
1750
1751 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1752 of saving/restoring inferior_ptid.
1753
1754 2020-06-17 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1757 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1758 declare.
1759 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1760
1761 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1762
1763 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1764 of partial symtabs.
1765
1766 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1767
1768 * regformats/reg-arm.dat: Remove.
1769 * regformats/reg-bfin.dat: Remove.
1770 * regformats/reg-cris.dat: Remove.
1771 * regformats/reg-crisv32.dat: Remove.
1772 * regformats/reg-m32r.dat: Remove.
1773 * regformats/reg-tilegx.dat: Remove.
1774 * regformats/reg-tilegx32.dat: Remove.
1775
1776 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1777
1778 * features/Makefile (WHICH): Remove arm files.
1779 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1780 * regformats/arm/arm-with-neon.dat: Remove.
1781 * regformats/arm/arm-with-vfpv2.dat: Remove.
1782 * regformats/arm/arm-with-vfpv3.dat: Remove.
1783
1784 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * features/Makefile (XMLTOC): Remove rx.xml.
1787
1788 2020-06-17 Pedro Alves <palves@redhat.com>
1789
1790 * gdbthread.h (thread_control_state) <trap_expected> Update
1791 comments.
1792
1793 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1796 ada_language::lookup_symbol_nonlocal.
1797 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1798 (ada_language::lookup_symbol_nonlocal): New member function,
1799 implementation from ada_lookup_symbol_nonlocal.
1800 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1801 initializer.
1802 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1803 initializer.
1804 (cplus_language::lookup_symbol_nonlocal): New member function.
1805 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1806 (minimal_language_data) Likewise.
1807 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1808 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1809 initializer.
1810 (d_language::lookup_symbol_nonlocal): New member function.
1811 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1812 initializer.
1813 (f_language::lookup_symbol_nonlocal): New member function.
1814 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1815 initializer.
1816 * language.c (unknown_language_data): Likewise.
1817 (auto_language_data): Likewise.
1818 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1819 field.
1820 (language_defn::lookup_symbol_nonlocal): New member function.
1821 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1822 initializer.
1823 * objc-lang.c (objc_language_data): Likewise.
1824 * opencl-lang.c (opencl_language_data): Likewise.
1825 * p-lang.c (pascal_language_data): Likewise.
1826 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1827 rust_language::lookup_symbol_nonlocal.
1828 (rust_language_data): Delete la_lookup_symbol_nonlocal
1829 initializer.
1830 (rust_language::lookup_symbol_nonlocal): New member function,
1831 implementation from rust_lookup_symbol_nonlocal.
1832 * symtab.c (lookup_symbol_aux): Update call to
1833 lookup_symbol_nonlocal.
1834 (basic_lookup_symbol_nonlocal): Rename to...
1835 (language_defn::lookup_symbol_nonlocal): ...this, and update
1836 header comment. Remove language_defn parameter, and replace with
1837 uses of `this'.
1838 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1839
1840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1843 initializer.
1844 (ada_language::value_print_inner): New member function.
1845 * c-lang.c (c_language_data): Delete la_value_print_inner
1846 initializer.
1847 (cplus_language_data): Likewise.
1848 (asm_language_data): Likewise.
1849 (minimal_language_data): Likewise.
1850 * d-lang.c (d_language_data): Likewise.
1851 (d_language::value_print_inner): New member function.
1852 * f-lang.c (f_language_data): Delete la_value_print_inner
1853 initializer.
1854 (f_language::value_print_inner): New member function.
1855 * f-lang.h (f_value_print_innner): Rename to...
1856 (f_value_print_inner): ...this (note spelling of 'inner').
1857 * f-valprint.c (f_value_print_innner): Rename to...
1858 (f_value_print_inner): ...this (note spelling of 'inner').
1859 * go-lang.c (go_language_data): Delete la_value_print_inner
1860 initializer.
1861 (go_language::value_print_inner): New member function.
1862 * language.c (language_defn::value_print_inner): Define new member
1863 function.
1864 (unk_lang_value_print_inner): Delete.
1865 (unknown_language_data): Delete la_value_print_inner initializer.
1866 (unknown_language::value_print_inner): New member function.
1867 (auto_language_data): Delete la_value_print_inner initializer.
1868 (auto_language::value_print_inner): New member function.
1869 * language.h (language_data): Delete la_value_print_inner field.
1870 (language_defn::value_print_inner): Delcare new member function.
1871 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1872 initializer.
1873 (m2_language::value_print_inner): New member function.
1874 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1875 initializer.
1876 * opencl-lang.c (opencl_language_data): Likewise.
1877 * p-lang.c (pascal_language_data): Likewise.
1878 (pascal_language::value_print_inner): New member function.
1879 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1880 initializer.
1881 (rust_language::value_print_inner): New member function.
1882 * valprint.c (do_val_print): Update call to value_print_inner.
1883
1884 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * ada-lang.c (ada_language_data): Delete la_value_print
1887 initializer.
1888 (ada_language::value_print): New member function.
1889 * c-lang.c (c_language_data): Delete la_value_print initializer.
1890 (cplus_language_data): Likewise.
1891 (asm_language_data): Likewise.
1892 (minimal_language_data): Likewise.
1893 * d-lang.c (d_language_data): Likewise.
1894 * f-lang.c (f_language_data): Likewise.
1895 * go-lang.c (go_language_data): Likewise.
1896 * language.c (unk_lang_value_print): Delete.
1897 (language_defn::value_print): Define new member function.
1898 (unknown_language_data): Delete la_value_print initializer.
1899 (unknown_language::value_print): New member function.
1900 (auto_language_data): Delete la_value_print initializer.
1901 (auto_language::value_print): New member function.
1902 * language.h (language_data): Delete la_value_print field.
1903 (language_defn::value_print): Declare new member function.
1904 (LA_VALUE_PRINT): Update call to value_print.
1905 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1906 * objc-lang.c (objc_language_data): Likewise.
1907 * opencl-lang.c (opencl_language_data): Likewise.
1908 * p-lang.c (pascal_language_data): Likewise.
1909 (pascal_language::value_print): New member function.
1910 * rust-lang.c (rust_language_data): Delete la_value_print
1911 initializer.
1912
1913 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * ada-lang.c (ada_watch_location_expression): Rename to
1916 ada_language::watch_location_expression.
1917 (ada_language_data): Delete la_watch_location_expression
1918 initializer.
1919 (ada_language::watch_location_expression): New member function,
1920 implementation from ada_watch_location_expression.
1921 * breakpoint.c (watch_command_1): Update call to
1922 watch_location_expression.
1923 * c-lang.c (c_watch_location_expression): Rename to
1924 language_defn::watch_location_expression.
1925 (c_language_data): Delete la_watch_location_expression
1926 initializer.
1927 (cplus_language_data): Likewise.
1928 (asm_language_data): Likewise.
1929 (minimal_language_data): Likewise.
1930 * c-lang.h (c_watch_location_expression): Delete declaration.
1931 * d-lang.c (d_language_data): Delete la_watch_location_expression
1932 initializer.
1933 * f-lang.c (f_language_data): Likewise.
1934 * go-lang.c (go_language_data): Likewise.
1935 * language.c (language_defn::watch_location_expression): Member
1936 function implementation from c_watch_location_expression.
1937 (unknown_language_data): Delete la_watch_location_expression
1938 initializer.
1939 (auto_language_data): Likewise.
1940 * language.h (language_data): Delete la_watch_location_expression
1941 field.
1942 (language_defn::watch_location_expression): Declare new member
1943 function.
1944 * m2-lang.c (m2_language_data): Delete
1945 la_watch_location_expression initializer.
1946 * objc-lang.c (objc_language_data): Likewise.
1947 * opencl-lang.c (opencl_language_data): Likewise.
1948 * p-lang.c (pascal_language_data): Likewise.
1949 * rust-lang.c (rust_watch_location_expression): Rename to
1950 rust_language::watch_location_expression.
1951 (rust_language_data): Delete la_watch_location_expression
1952 initializer.
1953 (rust_language::watch_location_expression): New member function,
1954 implementation from rust_watch_location_expression.
1955
1956 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1959 ada_language::collect_symbol_completion_matches.
1960 (ada_language_data): Delete la_collect_symbol_completion_matches
1961 initializer.
1962 (ada_language::collect_symbol_completion_matches): New member
1963 function, implementation from
1964 ada_collect_symbol_completion_matches.
1965 * c-lang.c (c_language_data): Delete
1966 la_collect_symbol_completion_matches initializer.
1967 (cplus_language_data): Likewise.
1968 (asm_language_data): Likewise.
1969 (minimal_language_data): Likewise.
1970 * d-lang.c (d_language_data): Likewise.
1971 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1972 f_language::collect_symbol_completion_matches.
1973 (f_language_data): Delete la_collect_symbol_completion_matches
1974 initializer.
1975 (f_language::collect_symbol_completion_matches) New member
1976 function, implementation from f_collect_symbol_completion_matches.
1977 * go-lang.c (go_language_data): Delete
1978 la_collect_symbol_completion_matches initializer.
1979 * language.c (unknown_language_data): Likewise.
1980 (auto_language_data): Likewise.
1981 * language.h (language_data): Delete
1982 la_collect_symbol_completion_matches field.
1983 (language_defn::collect_symbol_completion_matches): New member
1984 function.
1985 * m2-lang.c (m2_language_data): Delete
1986 la_collect_symbol_completion_matches initializer.
1987 * objc-lang.c (objc_language_data): Likewise.
1988 * opencl-lang.c (opencl_language_data): Likewise.
1989 * p-lang.c (pascal_language_data): Likewise.
1990 * rust-lang.c (rust_language_data): Likewise.
1991 * symtab.c (default_collect_symbol_completion_matches): Delete.
1992 (collect_symbol_completion_matches): Update call to
1993 collect_symbol_completion_matches.
1994 (collect_symbol_completion_matches_type): Likewise.
1995 * symtab.h (default_collect_symbol_completion_matches): Delete
1996 declaration.
1997
1998 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2001 (ada_language_data): Delete la_word_break_characters initializer.
2002 (ada_language::word_break_characters): New member function.
2003 * c-lang.c (c_language_data): Delete la_word_break_characters
2004 initializer.
2005 (cplus_language_data): Likewise.
2006 (asm_language_data): Likewise.
2007 (minimal_language_data): Likewise.
2008 * completer.c: Update global comment.
2009 (advance_to_expression_complete_word_point): Update call to
2010 word_break_characters.
2011 (complete_files_symbols): Likewise.
2012 (complete_line_internal_1): Likewise.
2013 (default_completer_handle_brkchars): Likewise.
2014 (skip_quoted_chars): Likewise.
2015 * d-lang.c (d_language_data): Delete la_word_break_characters
2016 initializer.
2017 * f-lang.c (f_word_break_characters): Delete.
2018 (f_language_data): Delete la_word_break_characters initializer.
2019 (f_language::word_break_characters): New member function.
2020 * go-lang.c (go_language_data): Delete la_word_break_characters
2021 initializer.
2022 * language.c (unknown_language_data): Likewise.
2023 (auto_language_data): Likewise.
2024 * language.h (default_word_break_characters): Move declaration to
2025 earlier in the file.
2026 (language_data): Delete la_word_break_characters field.
2027 (language_defn::word_break_characters): New member function.
2028 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2029 initializer.
2030 * objc-lang.c (objc_language_data): Likewise.
2031 * opencl-lang.c (opencl_language_data): Likewise.
2032 * p-lang.c (pascal_language_data): Likewise.
2033 * rust-lang.c (rust_language_data): Likewise.
2034
2035 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2038 (ada_language_data): Delete la_get_symbol_name_matcher
2039 initializer.
2040 (language_defn::get_symbol_name_matcher_inner): New member
2041 function.
2042 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2043 initializer.
2044 (cplus_language_data): Likewise.
2045 (cplus_language::get_symbol_name_matcher_inner): New member
2046 function.
2047 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2048 (minimal_language_data): Likewise.
2049 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2050 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2051 initializer.
2052 * dictionary.c (iter_match_first_hashed): Update call to
2053 get_symbol_name_matcher.
2054 (iter_match_next_hashed): Likewise.
2055 (iter_match_next_linear): Likewise.
2056 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2057 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2058 initializer.
2059 (f_language::get_symbol_name_matcher_inner): New member function.
2060 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2061 initializer.
2062 * language.c (default_symbol_name_matcher): Update header comment,
2063 make static.
2064 (language_defn::get_symbol_name_matcher): New definition.
2065 (language_defn::get_symbol_name_matcher_inner): Likewise.
2066 (get_symbol_name_matcher): Delete.
2067 (unknown_language_data): Delete la_get_symbol_name_matcher
2068 initializer.
2069 (auto_language_data): Likewise.
2070 * language.h (language_data): Delete la_get_symbol_name_matcher
2071 field.
2072 (language_defn::get_symbol_name_matcher): New member function.
2073 (language_defn::get_symbol_name_matcher_inner): Likewise.
2074 (default_symbol_name_matcher): Delete declaration.
2075 * linespec.c (find_methods): Update call to
2076 get_symbol_name_matcher.
2077 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2078 initializer.
2079 * minsyms.c (lookup_minimal_symbol): Update call to
2080 get_symbol_name_matcher.
2081 (iterate_over_minimal_symbols): Likewise.
2082 * objc-lang.c (objc_language_data): Delete
2083 la_get_symbol_name_matcher initializer.
2084 * opencl-lang.c (opencl_language_data): Likewise.
2085 * p-lang.c (pascal_language_data): Likewise.
2086 * psymtab.c (psymbol_name_matches): Update call to
2087 get_symbol_name_matcher.
2088 * rust-lang.c (rust_language_data): Delete
2089 la_get_symbol_name_matcher initializer.
2090 * symtab.c (symbol_matches_search_name): Update call to
2091 get_symbol_name_matcher.
2092 (compare_symbol_name): Likewise.
2093
2094 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * ada-lang.c (ada_language_data): Delete la_compute_program
2097 initializer.
2098 * c-lang.c (c_language_data): Likewise.
2099 (c_language::compute_program): New member function.
2100 (cplus_language_data): Delete la_compute_program initializer.
2101 (cplus_language::compute_program): New member function.
2102 (asm_language_data): Delete la_compute_program initializer.
2103 (minimal_language_data): Likewise.
2104 * c-lang.h (c_compute_program): Update comment.
2105 (cplus_compute_program): Likewise.
2106 * compile/compile-c-support.c (c_compute_program): Likewise.
2107 (cplus_compute_program): Likewise.
2108 * compile/compile.c (compile_to_object): Update call to
2109 la_compute_program.
2110 * d-lang.c (d_language_data): Delete la_compute_program
2111 initializer.
2112 * f-lang.c (f_language_data): Likewise.
2113 * go-lang.c (go_language_data): Likewise.
2114 * language.c (unknown_language_data): Likewise.
2115 (auto_language_data): Likewise.
2116 * language.h (language_data): Delete la_compute_program field.
2117 (language_defn::compute_program): New member function.
2118 * m2-lang.c (m2_language_data): Delete la_compute_program
2119 initializer.
2120 * objc-lang.c (objc_language_data): Likewise.
2121 * opencl-lang.c (opencl_language_data): Likewise.
2122 * p-lang.c (pascal_language_data): Likewise.
2123 * rust-lang.c (rust_language_data): Likewise.
2124
2125 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * ada-lang.c (ada_language_data) Delete
2128 la_class_name_from_physname initializer.
2129 * c-lang.c (c_language_data): Likewise.
2130 (cplus_language_data): Likewise.
2131 (cplus_language::class_name_from_physname): New member function.
2132 (asm_language_data): Delete la_class_name_from_physname
2133 initializer.
2134 (minimal_language_data): Likewise.
2135 * d-lang.c (d_language_data): Likewise.
2136 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2137 method on language_defn class.
2138 (guess_full_die_structure_name): Likewise.
2139 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2140 initializer.
2141 * go-lang.c (go_language_data): Likewise.
2142 * language.c (language_class_name_from_physname): Delete.
2143 (unk_lang_class_name): Delete.
2144 (unknown_language_data): Delete la_class_name_from_physname
2145 initializer.
2146 (auto_language_data): Likewise.
2147 * language.h (language_data): Delete la_class_name_from_physname
2148 field.
2149 (language_defn::class_name_from_physname): New function.
2150 (language_class_name_from_physname): Delete declaration.
2151 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2152 initializer.
2153 * objc-lang.c (objc_language_data): Likewise.
2154 * opencl-lang.c (opencl_language_data): Likewise.
2155 * p-lang.c (pascal_language_data): Likewise.
2156 * rust-lang.c (rust_language_data): Likewise.
2157
2158 2020-06-16 Tom Tromey <tom@tromey.com>
2159
2160 * tui/tui-data.h (STATUS_NAME): New macro.
2161 * tui/tui-layout.c (tui_remove_some_windows)
2162 (initialize_known_windows, tui_register_window)
2163 (tui_layout_split::remove_windows, initialize_layouts)
2164 (tui_new_layout_command): Don't use hard-coded window names.
2165
2166 2020-06-16 Tom Tromey <tom@tromey.com>
2167
2168 PR tui/25348:
2169 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2170 tui_initialize_readline. Only run once. Call rl_initialize.
2171 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2172 tui_initialize_readline.
2173 * tui/tui-io.c (tui_setup_io): Call
2174 tui_ensure_readline_initialized.
2175 * tui/tui-interp.c (tui_interp::init): Update.
2176
2177 2020-06-16 Tom Tromey <tom@tromey.com>
2178
2179 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2180 Also preserve the status window.
2181
2182 2020-06-16 Tom Tromey <tom@tromey.com>
2183
2184 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2185 where m_window==nullptr.
2186
2187 2020-06-15 Tom Tromey <tromey@adacore.com>
2188
2189 * windows-nat.c (windows_nat::handle_output_debug_string):
2190 Update.
2191 (windows_nat::handle_ms_vc_exception): Update.
2192 * target.h (target_read_string): Change API.
2193 * target.c (target_read_string): Change API.
2194 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2195 Update.
2196 * solib-frv.c (frv_current_sos): Update.
2197 * solib-dsbt.c (dsbt_current_sos): Update.
2198 * solib-darwin.c (darwin_current_sos): Update.
2199 * linux-thread-db.c (inferior_has_bug): Update.
2200 * expprint.c (print_subexp_standard): Update.
2201 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2202 (ada_exception_message_1): Update.
2203
2204 2020-06-15 Tom Tromey <tromey@adacore.com>
2205
2206 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2207
2208 2020-06-15 Tom Tromey <tromey@adacore.com>
2209
2210 * valprint.c (read_string): Update comment.
2211 * target.c (MIN): Remove.
2212 (target_read_string): Rewrite.
2213
2214 2020-06-15 Tom Tromey <tromey@adacore.com>
2215
2216 * corefile.c (read_memory_string): Remove.
2217 * ada-valprint.c (ada_value_print_ptr): Update.
2218 * ada-lang.h (ada_tag_name): Change return type.
2219 * ada-lang.c (type_from_tag): Update.
2220 (ada_tag_name_from_tsd): Change return type. Use
2221 target_read_string.
2222 (ada_tag_name): Likewise.
2223 * gdbcore.h (read_memory_string): Don't declare.
2224
2225 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2226
2227 * symtab.c (rbreak_command): Ignore Windows drive colon.
2228
2229 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2230
2231 * NEWS: Mention removed GDBserver host support.
2232
2233 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2234
2235 * features/riscv/rebuild-csr-xml.sh: Updated.
2236
2237 2020-06-11 Tom Tromey <tom@tromey.com>
2238
2239 PR gdb/18318:
2240 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2241
2242 2020-06-09 Jonny Grant <jg@jguk.org>
2243 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2244
2245 * main.c (captured_main_1): Don't print new line after help.
2246 (print_gdb_help): add mailing list and IRC channel information
2247 to --help. Add new lines between items in the footer. Remove
2248 quotes around bug url.
2249
2250 2020-06-11 Keith Seitz <keiths@redhat.com>
2251
2252 PR gdb/21356
2253 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2254 Resolve typedefs for type length calculations.
2255
2256 2020-06-10 Tom de Vries <tdevries@suse.de>
2257
2258 PR ada/24713
2259 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2260 (write_psymbols): Enable .gdb_index for ada.
2261 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2262 ada.
2263
2264 2020-06-10 Tom de Vries <tdevries@suse.de>
2265
2266 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2267 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2268 namei" instead of "const char *name" argument.
2269 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2270 dw2_symtab_iter_init.
2271
2272 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2273
2274 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2275 to use type::field and field::type instead.
2276
2277 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2280 to use field::type instead.
2281
2282 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * gdbtypes.h (struct field) <type, set_type>: New methods.
2285 Rename `type` field to...
2286 <m_type>: ... this. Change references throughout to use type or
2287 set_type methods.
2288 (FIELD_TYPE): Use field::type. Change call sites that modify
2289 the field's type to use field::set_type instead.
2290
2291 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2294 to use type::index_type instead.
2295
2296 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2299 methods.
2300 (TYPE_INDEX_TYPE): Use type::index_type.
2301 * gdbtypes.c (create_array_type_with_stride): Likewise.
2302
2303 2020-06-07 Tom Tromey <tom@tromey.com>
2304
2305 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2306 parameter.
2307 (generic_value_print): Update.
2308
2309 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 Revert commit 982a38f60b0.
2312 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2313
2314 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2317 avoid use after free.
2318
2319 2020-06-05 Tom de Vries <tdevries@suse.de>
2320
2321 * NEWS: Fix typos.
2322
2323 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2326 the per_bfd object.
2327 (dwarf2_read_debug_names): Likewise.
2328 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2329 object when re-using a per_bfd object with an index.
2330
2331 2020-06-03 Tom de Vries <tdevries@suse.de>
2332
2333 PR symtab/26046
2334 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2335 children for C++.
2336 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2337 DW_TAG_subprogram.
2338
2339 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * ada-lang.c (ada_language_data): Delete skip_trampoline
2342 initializer.
2343 * c-lang.c (c_language_data): Likewise.
2344 (cplus_language_data): Likewise.
2345 (cplus_language::skip_trampoline): New member function.
2346 (asm_language_data): Delete skip_trampoline initializer.
2347 (minimal_language_data): Likewise.
2348 * d-lang.c (d_language_data): Likewise.
2349 * f-lang.c (f_language_data): Likewise.
2350 * go-lang.c (go_language_data): Likewise.
2351 * language.c (unk_lang_trampoline): Delete function.
2352 (skip_language_trampoline): Update.
2353 (unknown_language_data): Delete skip_trampoline initializer.
2354 (auto_language_data): Likewise.
2355 * language.h (language_data): Delete skip_trampoline field.
2356 (language_defn::skip_trampoline): New function.
2357 * m2-lang.c (m2_language_data): Delete skip_trampoline
2358 initializer.
2359 * objc-lang.c (objc_skip_trampoline): Delete function, move
2360 implementation to objc_language::skip_trampoline.
2361 (objc_language_data): Delete skip_trampoline initializer.
2362 (objc_language::skip_trampoline): New member function with
2363 implementation from objc_skip_trampoline.
2364 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2365 initializer.
2366 * p-lang.c (pascal_language_data): Likewise.
2367 * rust-lang.c (rust_language_data): Likewise.
2368
2369 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2372 (ada_language::demangle): New member function.
2373 * c-lang.c (c_language_data): Delete la_demangle initializer.
2374 (cplus_language_data): Delete la_demangle initializer.
2375 (cplus_language::demangle): New member function.
2376 (asm_language_data): Delete la_demangle initializer.
2377 (minimal_language_data): Delete la_demangle initializer.
2378 * d-lang.c (d_language_data): Delete la_demangle initializer.
2379 (d_language::demangle): New member function.
2380 * f-lang.c (f_language_data): Delete la_demangle initializer.
2381 (f_language::demangle): New member function.
2382 * go-lang.c (go_language_data): Delete la_demangle initializer.
2383 (go_language::demangle): New member function.
2384 * language.c (language_demangle): Update.
2385 (unk_lang_demangle): Delete.
2386 (unknown_language_data): Delete la_demangle initializer.
2387 (unknown_language::demangle): New member function.
2388 (auto_language_data): Delete la_demangle initializer.
2389 (auto_language::demangle): New member function.
2390 * language.h (language_data): Delete la_demangle field.
2391 (language_defn::demangle): New function.
2392 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2393 * objc-lang.c (objc_language_data): Delete la_demangle
2394 initializer.
2395 (objc_language::demangle): New member function.
2396 * opencl-lang.c (opencl_language_data): Delete la_demangle
2397 initializer.
2398 * p-lang.c (pascal_language_data): Likewise.
2399 * rust-lang.c (rust_language_data): Likewise.
2400 (rust_language::demangle): New member function.
2401
2402 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * ada-lang.c (ada_language_data): Delete la_print_type
2405 initializer.
2406 (ada_language::print_type): New member function.
2407 * c-lang.c (c_language_data): Delete la_print_type initializer.
2408 (c_language::print_type): New member function.
2409 (cplus_language_data): Delete la_print_type initializer.
2410 (cplus_language::print_type): New member function.
2411 (asm_language_data): Delete la_print_type initializer.
2412 (asm_language::print_type): New member function.
2413 (minimal_language_data): Delete la_print_type initializer.
2414 (minimal_language::print_type): New member function.
2415 * d-lang.c (d_language_data): Delete la_print_type initializer.
2416 (d_language::print_type): New member function.
2417 * f-lang.c (f_language_data): Delete la_print_type initializer.
2418 (f_language::print_type): New member function.
2419 * go-lang.c (go_language_data): Delete la_print_type initializer.
2420 (go_language::print_type): New member function.
2421 * language.c (unk_lang_print_type): Delete.
2422 (unknown_language_data): Delete la_print_type initializer.
2423 (unknown_language::print_type): New member function.
2424 (auto_language_data): Delete la_print_type initializer.
2425 (auto_language::print_type): New member function.
2426 * language.h (language_data): Delete la_print_type field.
2427 (language_defn::print_type): New function.
2428 (LA_PRINT_TYPE): Update.
2429 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2430 (m2_language::print_type): New member function.
2431 * objc-lang.c (objc_language_data): Delete la_print_type
2432 initializer.
2433 (objc_language::print_type): New member function.
2434 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2435 to opencl_language::print_type.
2436 (opencl_language_data): Delete la_print_type initializer.
2437 (opencl_language::print_type): New member function, implementation
2438 from opencl_print_type.
2439 * p-lang.c (pascal_language_data): Delete la_print_type
2440 initializer.
2441 (pascal_language::print_type): New member function.
2442 * rust-lang.c (rust_print_type): Delete, implementation moved to
2443 rust_language::print_type.
2444 (rust_language_data): Delete la_print_type initializer.
2445 (rust_language::print_type): New member function, implementation
2446 from rust_print_type.
2447
2448 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2451 implementation moves to...
2452 (ada_language::sniff_from_mangled_name): ...here. Update return
2453 type.
2454 (ada_language_data): Delete la_sniff_from_mangled_name
2455 initializer.
2456 * c-lang.c (c_language_data): Likewise.
2457 (cplus_language_data): Likewise.
2458 (cplus_language::sniff_from_mangled_name): New member function,
2459 implementation taken from gdb_sniff_from_mangled_name.
2460 (asm_language_data): Delete la_sniff_from_mangled_name
2461 initializer.
2462 (minimal_language_data): Likewise.
2463 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2464 implementation moves to cplus_language::sniff_from_mangled_name.
2465 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2466 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2467 moves to...
2468 (d_language::sniff_from_mangled_name): ...here.
2469 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2470 * f-lang.c (f_language_data): Likewise.
2471 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2472 moves to...
2473 (go_language::sniff_from_mangled_name): ...here.
2474 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2475 * language.c (language_sniff_from_mangled_name): Delete.
2476 (unknown_language_data): Delete la_sniff_from_mangled_name
2477 initializer.
2478 (auto_language_data): Likewise.
2479 * language.h (language_data): Delete la_sniff_from_mangled_name
2480 field.
2481 (language_defn::sniff_from_mangled_name): New function.
2482 (language_sniff_from_mangled_name): Delete declaration.
2483 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2484 field.
2485 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2486 implementation moves to...
2487 (objc_language::sniff_from_mangled_name): ...here.
2488 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2489 * opencl-lang.c (opencl_language_data): Likewise.
2490 * p-lang.c (pascal_language_data): Likewise.
2491 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2492 implementation moves to...
2493 (rust_language::sniff_from_mangled_name): ...here.
2494 (rust_language_data): Delete la_sniff_from_mangled_name
2495 initializer.
2496 * symtab.c (symbol_find_demangled_name): Call
2497 sniff_from_mangled_name member function.
2498
2499 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2502 initializer.
2503 * c-lang.c (c_language_data): Likewise.
2504 (cplus_language_data): Likewise.
2505 (cplus_language::search_name_hash): New member function.
2506 (asm_language_data): Delete la_search_name_hash initializer.
2507 (minimal_language_data): Likewise.
2508 * d-lang.c (d_language_data): Likewise.
2509 * dictionary.c (default_search_name_hash): Rename to...
2510 (language_defn::search_name_hash): ...this.
2511 * f-lang.c (f_language_data): Likewise.
2512 (f_language::search_name_hash): New member function.
2513 * go-lang.c (go_language_data): Delete la_search_name_hash
2514 initializer.
2515 * language.c (unknown_language_data): Likewise.
2516 (auto_language_data): Likewise.
2517 * language.h (struct language_data): Delete la_search_name_hash
2518 field.
2519 (language_defn::search_name_hash): Declare new member function.
2520 (default_search_name_hash): Delete declaration.
2521 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2522 initializer.
2523 * objc-lang.c (objc_language_data): Likewise.
2524 * opencl-lang.c (opencl_language_data): Likewise.
2525 * p-lang.c (pascal_language_data): Likewise.
2526 * rust-lang.c (rust_language_data): Likewise.
2527 * symtab.c (search_name_hash): Update call.
2528
2529 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2532 initializer.
2533 * c-lang.c (class compile_instance): Declare.
2534 (c_language_data): Delete la_get_compile_instance initializer.
2535 (c_language::get_compile_instance): New member function.
2536 (cplus_language_data): Delete la_get_compile_instance initializer.
2537 (cplus_language::get_compile_instance): New member function.
2538 (asm_language_data): Delete la_get_compile_instance initializer.
2539 (minimal_language_data): Likewise.
2540 * c-lang.h (c_get_compile_context): Update comment.
2541 (cplus_get_compile_context): Update comment.
2542 * compile/compile.c (compile_to_object): Update calls, don't rely
2543 on function pointer being NULL.
2544 * d-lang.c (d_language_data): Delete la_get_compile_instance
2545 initializer.
2546 * f-lang.c (f_language_data): Likewise.
2547 * go-lang.c (go_language_data): Likewise.
2548 * language.c (unknown_language_data): Likewise.
2549 (auto_language_data): Likewise.
2550 * language.h (language_data): Delete la_get_compile_instance field.
2551 (language_defn::get_compile_instance): New member function.
2552 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2553 initializer.
2554 * objc-lang.c (objc_language_data): Likewise.
2555 * opencl-lang.c (opencl_language_data): Likewise.
2556 * p-lang.c (pascal_language_data): Likewise.
2557 * rust-lang.c (rust_language_data): Likewise.
2558
2559 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * ada-lang.c (ada_add_all_symbols): Update comment.
2562 (ada_iterate_over_symbols): Delete, move implementation to...
2563 (ada_language::iterate_over_symbols): ...here, a new member
2564 function, rewrite to use range based for loop.
2565 (ada_language_data): Delete la_iterate_over_symbols initializer.
2566 * c-lang.c (c_language_data): Likewise.
2567 (cplus_language_data): Likewise.
2568 (asm_language_data): Likewise.
2569 (minimal_language_data): Likewise.
2570 * d-lang.c (d_language_data): Likewise.
2571 * f-lang.c (f_language_data): Likewise.
2572 * go-lang.c (go_language_data): Likewise.
2573 * language.c (unknown_language_data): Likewise.
2574 (auto_language_data): Likewise.
2575 * language.h (language_data): Delete la_iterate_over_symbols field.
2576 (language_defn::iterate_over_symbols): New member function.
2577 (LA_ITERATE_OVER_SYMBOLS): Update.
2578 * linespec.c (iterate_over_all_matching_symtabs): Update.
2579 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2580 initializer.
2581 * objc-lang.c (objc_language_data): Likewise.
2582 * opencl-lang.c (opencl_language_data): Likewise.
2583 * p-lang.c (pascal_language_data): Likewise.
2584 * rust-lang.c (rust_language_data): Likewise.
2585
2586 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * ada-lang.c (ada_language_data): Delete
2589 la_lookup_transparent_type initializer.
2590 * c-lang.c (c_language_data): Likewise.
2591 (cplus_language_data): Likewise.
2592 (cplus_language::lookup_transparent_type): New member function.
2593 (asm_language_data): Delete la_lookup_transparent_type
2594 initializer.
2595 (minimal_language_data): Likewise.
2596 * d-lang.c (d_language_data): Likewise.
2597 * f-lang.c (f_language_data): Likewise.
2598 * go-lang.c (go_language_data): Likewise.
2599 * language.c (unknown_language_data): Likewise.
2600 (auto_language_data): Likewise.
2601 * language.h (struct language_data): Delete
2602 la_lookup_transparent_type field.
2603 (language_defn::lookup_transparent_type): New member function.
2604 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2605 initializer.
2606 * objc-lang.c (objc_language_data): Likewise.
2607 * opencl-lang.c (opencl_language_data): Likewise.
2608 * p-lang.c (pascal_language_data): Likewise.
2609 * rust-lang.c (rust_language_data): Likewise.
2610 * symtab.c (symbol_matches_domain): Update call.
2611
2612 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_language_arch_info): Delete function, move
2615 implementation to...
2616 (ada_language::language_arch_info): ...here, a new member
2617 function.
2618 (ada_language_data): Delete la_language_arch_info.
2619 * c-lang.c (c_language_data): Likewise.
2620 (c_language::language_arch_info): New member function.
2621 (cplus_language_arch_info): Delete function, move
2622 implementation to...
2623 (cplus_language::language_arch_info): ...here, a new member
2624 function.
2625 (cplus_language_data): Delete la_language_arch_info.
2626 (asm_language_data): Likewise.
2627 (asm_language::language_arch_info): New member function.
2628 (minimal_language_data): Delete la_language_arch_info.
2629 (minimal_language::language_arch_info): New member function.
2630 * d-lang.c (d_language_arch_info): Delete function, move
2631 implementation to...
2632 (d_language::language_arch_info): ...here, a new member
2633 function.
2634 (d_language_data): Delete la_language_arch_info.
2635 * f-lang.c (f_language_arch_info): Delete function, move
2636 implementation to...
2637 (f_language::language_arch_info): ...here, a new member
2638 function.
2639 (f_language_data): Delete la_language_arch_info.
2640 * go-lang.c (go_language_arch_info): Delete function, move
2641 implementation to...
2642 (go_language::language_arch_info): ...here, a new member
2643 function.
2644 (go_language_data): Delete la_language_arch_info.
2645 * language.c (unknown_language_data): Likewise.
2646 (unknown_language::language_arch_info): New member function.
2647 (auto_language_data): Delete la_language_arch_info.
2648 (auto_language::language_arch_info): New member function.
2649 (language_gdbarch_post_init): Update call to
2650 la_language_arch_info.
2651 * language.h (language_data): Delete la_language_arch_info
2652 function pointer.
2653 (language_defn::language_arch_info): New function.
2654 * m2-lang.c (m2_language_arch_info): Delete function, move
2655 implementation to...
2656 (m2_language::language_arch_info): ...here, a new member
2657 function.
2658 (m2_language_data): Delete la_language_arch_info.
2659 * objc-lang.c (objc_language_arch_info): Delete function, move
2660 implementation to...
2661 (objc_language::language_arch_info): ...here, a new member
2662 function.
2663 (objc_language_data): Delete la_language_arch_info.
2664 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2665 implementation to...
2666 (opencl_language::language_arch_info): ...here, a new member
2667 function.
2668 (opencl_language_data): Delete la_language_arch_info.
2669 * p-lang.c (pascal_language_arch_info): Delete function, move
2670 implementation to...
2671 (pascal_language::language_arch_info): ...here, a new member
2672 function.
2673 (pascal_language_data): Delete la_language_arch_info.
2674 * rust-lang.c (rust_language_arch_info): Delete function, move
2675 implementation to...
2676 (rust_language::language_arch_info): ...here, a new member
2677 function.
2678 (rust_language_data): Delete la_language_arch_info.
2679
2680 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2681
2682 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2683 initializer.
2684 * c-lang.c (c_language_data): Likewise.
2685 (cplus_language_data): Likewise.
2686 (cplus_language::pass_by_reference_info): New method.
2687 (asm_language_data): Delete la_pass_by_reference initializer.
2688 (minimal_language_data): Likewise.
2689 * cp-abi.c (cp_pass_by_reference): Remove use of
2690 default_pass_by_reference.
2691 * d-lang.c (d_language_data): Likewise.
2692 * f-lang.c (f_language_data): Likewise.
2693 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2694 default_pass_by_reference.
2695 * go-lang.c (go_language_data): Likewise.
2696 * language.c (language_pass_by_reference): Update.
2697 (default_pass_by_reference): Delete.
2698 (unknown_language_data): Delete la_pass_by_reference
2699 initializer.
2700 (auto_language_data): Likewise.
2701 * language.h (struct language_data): Delete la_pass_by_reference
2702 field.
2703 (language_defn::pass_by_reference_info): New member function.
2704 (default_pass_by_reference): Delete declaration.
2705 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2706 initializer.
2707 * objc-lang.c (objc_language_data): Likewise.
2708 * opencl-lang.c (opencl_language_data): Likewise.
2709 * p-lang.c (pascal_language_data): Likewise.
2710 * rust-lang.c (rust_language_data): Likewise.
2711
2712 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2713
2714 * ada-lang.c (ada_read_var_value): Delete function, move
2715 implementation to...
2716 (ada_language::read_var_value): ...here.
2717 (ada_language_data): Delete la_read_var_value initializer.
2718 * c-lang.c (c_language_data): Likewise.
2719 (cplus_language_data): Likewise.
2720 (minimal_language_data): Likewise.
2721 * d-lang.c (d_language_data): Likewise.
2722 * f-lang.c (f_language_data): Likewise.
2723 * findvar.c (default_read_var_value): Rename to...
2724 (language_defn::read_var_value): ...this.
2725 * findvar.c (read_var_value): Update header comment, and change to
2726 call member function instead of function pointer.
2727 * go-lang.c (go_language_data): Likewise.
2728 * language.c (unknown_language_data): Delete la_read_var_value
2729 initializer.
2730 (auto_language_data): Likewise.
2731 * language.h (struct language_data): Delete la_read_var_value
2732 field.
2733 (language_defn::read_var_value): New member function.
2734 (default_read_var_value): Delete declaration.
2735 * m2-lang.c (m2_language_data): Delete la_read_var_value
2736 initializer.
2737 * objc-lang.c (objc_language_data): Likewise.
2738 * opencl-lang.c (opencl_language_data): Likewise.
2739 * p-lang.c (pascal_language_data): Likewise.
2740 * rust-lang.c (rust_language_data): Likewise.
2741 * value.h (default_read_var_value): Delete declaration.
2742
2743 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * ada-lang.c (ada_print_array_index): Delete function, move
2746 implementation to...
2747 (ada_language::print_array_index): ...here.
2748 (ada_language_data): Delete la_print_array_index initializer.
2749 * c-lang.c (c_language_data): Likewise.
2750 (cplus_language_data): Likewise.
2751 (minimal_language_data): Likewise.
2752 * d-lang.c (d_language_data): Likewise.
2753 * f-lang.c (f_language_data): Likewise.
2754 * go-lang.c (go_language_data): Likewise.
2755 * language.c (default_print_array_index): Delete function, move
2756 implementation to...
2757 (language_defn::print_array_index): ...here.
2758 (unknown_language_data): Delete la_print_array_index initializer.
2759 (auto_language_data): Likewise.
2760 * language.h (struct language_data): Delete la_print_array_index
2761 field.
2762 (language_defn::print_array_index): New member function.
2763 (LA_PRINT_ARRAY_INDEX): Update.
2764 (default_print_array_index): Delete declaration.
2765 * m2-lang.c (m2_language_data): Delete la_print_array_index
2766 initializer.
2767 * objc-lang.c (objc_language_data): Likewise.
2768 * opencl-lang.c (opencl_language_data): Likewise.
2769 * p-lang.c (pascal_language_data): Likewise.
2770 * rust-lang.c (rust_language_data): Likewise.
2771
2772 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2773
2774 * gdb/ada-lang.c (ada_language_defn): Convert to...
2775 (ada_language_data): ...this.
2776 (class ada_language): New class.
2777 (ada_language_defn): New static global.
2778 * gdb/c-lang.c (c_language_defn): Convert to...
2779 (c_language_data): ...this.
2780 (class c_language): New class.
2781 (c_language_defn): New static global.
2782 (cplus_language_defn): Convert to...
2783 (cplus_language_data): ...this.
2784 (class cplus_language): New class.
2785 (cplus_language_defn): New static global.
2786 (asm_language_defn): Convert to...
2787 (asm_language_data): ...this.
2788 (class asm_language): New class.
2789 (asm_language_defn): New static global.
2790 (minimal_language_defn): Convert to...
2791 (minimal_language_data): ...this.
2792 (class minimal_language): New class.
2793 (minimal_language_defn): New static global.
2794 * gdb/d-lang.c (d_language_defn): Convert to...
2795 (d_language_data): ...this.
2796 (class d_language): New class.
2797 (d_language_defn): New static global.
2798 * gdb/f-lang.c (f_language_defn): Convert to...
2799 (f_language_data): ...this.
2800 (class f_language): New class.
2801 (f_language_defn): New static global.
2802 * gdb/go-lang.c (go_language_defn): Convert to...
2803 (go_language_data): ...this.
2804 (class go_language): New class.
2805 (go_language_defn): New static global.
2806 * gdb/language.c (unknown_language_defn): Remove declaration.
2807 (current_language): Initialize to nullptr, real initialization is
2808 moved to _initialize_language.
2809 (languages): Delete global.
2810 (language_defn::languages): Define.
2811 (set_language_command): Use language_defn::languages.
2812 (set_language): Likewise.
2813 (range_error): Likewise.
2814 (language_enum): Likewise.
2815 (language_def): Likewise.
2816 (add_set_language_command): Use language_def::languages for the
2817 language list, and language_def to lookup language pointers.
2818 (skip_language_trampoline): Use language_defn::languages.
2819 (unknown_language_defn): Convert to...
2820 (unknown_language_data): ...this.
2821 (class unknown_language): New class.
2822 (unknown_language_defn): New static global.
2823 (auto_language_defn): Convert to...
2824 (auto_language_data): ...this.
2825 (class auto_language): New class.
2826 (auto_language_defn): New static global.
2827 (language_gdbarch_post_init): Use language_defn::languages.
2828 (_initialize_language): Initialize current_language.
2829 * gdb/language.h (struct language_defn): Rename to...
2830 (struct language_data): ...this.
2831 (struct language_defn): New.
2832 (auto_language_defn): Delete.
2833 (unknown_language_defn): Delete.
2834 (minimal_language_defn): Delete.
2835 (ada_language_defn): Delete.
2836 (asm_language_defn): Delete.
2837 (c_language_defn): Delete.
2838 (cplus_language_defn): Delete.
2839 (d_language_defn): Delete.
2840 (f_language_defn): Delete.
2841 (go_language_defn): Delete.
2842 (m2_language_defn): Delete.
2843 (objc_language_defn): Delete.
2844 (opencl_language_defn): Delete.
2845 (pascal_language_defn): Delete.
2846 (rust_language_defn): Delete.
2847 * gdb/m2-lang.c (m2_language_defn): Convert to...
2848 (m2_language_data): ...this.
2849 (class m2_language): New class.
2850 (m2_language_defn): New static global.
2851 * gdb/objc-lang.c (objc_language_defn): Convert to...
2852 (objc_language_data): ...this.
2853 (class objc_language): New class.
2854 (objc_language_defn): New static global.
2855 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2856 (opencl_language_data): ...this.
2857 (class opencl_language): New class.
2858 (opencl_language_defn): New static global.
2859 * gdb/p-lang.c (pascal_language_defn): Convert to...
2860 (pascal_language_data): ...this.
2861 (class pascal_language): New class.
2862 (pascal_language_defn): New static global.
2863 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2864 language pointer, update comment format.
2865 * gdb/rust-lang.c (rust_language_defn): Convert to...
2866 (rust_language_data): ...this.
2867 (class rust_language): New class.
2868 (rust_language_defn): New static global.
2869
2870 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2873 member variable.
2874 <m_stmt_at_address>: New member variable.
2875 (lnp_state_machine::record_line): Don't record some lines, update
2876 tracking of is_stmt at the same address.
2877 (lnp_state_machine::lnp_state_machine): Initialise new member
2878 variables.
2879
2880 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2881
2882 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2883 "-include gnu-nat-mig.h".
2884 * gnu-nat-mig.h: New file.
2885 * gnu-nat.c: Include "gnu-nat-mig.h".
2886 (exc_server, msg_reply_server, notify_server,
2887 process_reply_server): Remove declarations.
2888
2889 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2890
2891 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2892 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2893 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2894 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2895 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2896 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2897 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2898 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2899 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2900 to gnu_nat_target class.
2901 * gnu-nat.c: Likewise.
2902 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2903 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2904 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2905 object.
2906 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2907 instead of `gnu_target'.
2908
2909 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2910
2911 * i386-gnu-tdep.c: Include "gdbcore.h"
2912 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2913 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2914 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2915 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2916 i386_gnu_sigcontext_addr): New functions
2917 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2918 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2919 tdep.
2920
2921 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2922
2923 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2924 before fork_inferior call. Avoid calling it if target_is_pushed returns
2925 true.
2926
2927 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2928
2929 * gnu-nat.h (gnu_target): New variable declaration.
2930 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2931 gnu_target.
2932 * gnu-nat.c (gnu_target): New variable.
2933 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2934 add_thread_silent, and add_thread calls.
2935 (gnu_nat_target::create_inferior): Pass gnu_target to
2936 add_thread_silent, thread_change_ptid call.
2937 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2938 call.
2939
2940 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2941
2942 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2943 (gnu_nat_target::find_memory_regions): Remove unused
2944 `old_address' variable.
2945
2946 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2947
2948 * gnu-nat.c: Include "gdbarch.h".
2949
2950 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2951
2952 * reply_mig_hack.awk (Error return): Cast function through
2953 void *, to bypass compiler function call check.
2954
2955 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2956
2957 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2958 $(srcdir)/reply_mig_hack.awk.
2959
2960 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2963
2964 2020-05-30 Jonny Grant <jg@jguk.org>
2965
2966 * configure.ac (ACX_BUGURL): change bug URL to https.
2967
2968 2020-05-30 Pedro Alves <palves@redhat.com>
2969
2970 * cp-support.c (replace_typedefs_template): New.
2971 (replace_typedefs_qualified_name): Handle
2972 DEMANGLE_COMPONENT_TEMPLATE.
2973
2974 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2977 dwarf2/index-cache.h, dwarf2/index-write.c,
2978 dwarf2/index-write.h, dwarf2/line-header.c,
2979 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2980 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2981 variables and fields from `dwarf2_per_objfile` to just
2982 `per_objfile` throughout.
2983
2984 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2987 <push_dwarf_reg_entry_value>: Add comment.
2988
2989 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2990 Keith Seitz <keiths@redhat.com>
2991
2992 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2993 instead of PyEval_ReleaseLock.
2994 (class gdbpy_gil): Move to earlier in file.
2995 (finalize_python): Set gdb_python_initialized.
2996 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2997 when not initialized.
2998
2999 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3000
3001 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3002 <push_dwarf_reg_entry_value>: Remove assert. Override
3003 per_objfile with caller_per_objfile.
3004
3005 2020-05-28 Tom de Vries <tdevries@suse.de>
3006
3007 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3008 PR gold/15646 workaround to symbol kind "type".
3009
3010 2020-05-27 Tom Tromey <tromey@adacore.com>
3011
3012 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3013
3014 2020-05-27 Tom Tromey <tromey@adacore.com>
3015
3016 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3017 Use htab_find_with_hash.
3018 <add_abbrev>: Remove "abbrev_number" parameter.
3019 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3020 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3021 (hash_abbrev): Add comment.
3022 (abbrev_table::lookup_abbrev): Move to header file.
3023 (abbrev_table::read): Update.
3024
3025 2020-05-27 Tom Tromey <tromey@adacore.com>
3026
3027 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3028 method.
3029 <canonical_name>: New member.
3030 <raw_name>: Rename from "name".
3031 (partial_die_info): Initialize canonical_name.
3032 (scan_partial_symbols): Check raw_name.
3033 (partial_die_parent_scope, partial_die_full_name)
3034 (add_partial_symbol, add_partial_subprogram)
3035 (add_partial_enumeration, load_partial_dies): Use "name" method.
3036 (partial_die_info::name): New method.
3037 (partial_die_info::read, guess_partial_die_structure_name)
3038 (partial_die_info::fixup): Update.
3039
3040 2020-05-27 Tom Tromey <tromey@adacore.com>
3041
3042 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3043 <get_ref_die_offset>: Inline.
3044 <get_ref_die_offset_complaint>: New method.
3045 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3046 (attribute::get_ref_die_offset_complaint): Rename from
3047 get_ref_die_offset. Just issue complaint.
3048
3049 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3050
3051 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3052
3053 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3054
3055 * exec.c (exec_file_attach): Use errno value of first openp failure.
3056
3057 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3058
3059 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3060 Don't close thread handle.
3061
3062 2020-05-27 Tom Tromey <tom@tromey.com>
3063 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3066 shared_ptr.
3067 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3068 member.
3069 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3070 dwarf2_per_bfd_objfile_data_key>: New globals.
3071 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3072 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3073 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3074 shared.
3075 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3076 short-circuit when sharing.
3077 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3078 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3079
3080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3083 to...
3084 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3085 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3086
3087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3090 build_name_components, find_name_components_bounds>:
3091 Add per_objfile parameter.
3092 (struct mapped_index) <symbol_name_at>: Likewise.
3093 (struct mapped_debug_names): Remove constructor.
3094 <dwarf2_per_objfile>: Remove field.
3095 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3096 (mapped_index_base::find_name_components_bounds,
3097 mapped_index_base::build_name_components,
3098 dw2_expand_symtabs_matching_symbol): Likewise.
3099 (class mock_mapped_index) <symbol_name_at>: Likewise.
3100 (check_match): Likewise.
3101 (check_find_bounds_finds): Likewise.
3102 (test_mapped_index_find_name_component_bounds): Update.
3103 (CHECK_MATCH): Update.
3104 (dw2_expand_symtabs_matching): Update.
3105 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3106 per_objfile parameter.
3107 <find_vec_in_debug_names>: Likewise.
3108 <m_per_objfile>: New field.
3109 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3110 parameter.
3111 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3112 (dw2_debug_names_iterator::next): Update.
3113 (dw2_debug_names_lookup_symbol): Update.
3114 (dw2_debug_names_expand_symtabs_for_function): Update.
3115 (dw2_debug_names_map_matching_symbols): Update.
3116 (dw2_debug_names_expand_symtabs_matching): Update.
3117 (dwarf2_read_debug_names): Update.
3118
3119 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3122 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3123 move to dwarf2_per_objfile.
3124 <read_in_chain>: Remove.
3125 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3126 remove_all_cus, age_comp_units>: New methods.
3127 <m_dwarf2_cus>: New member.
3128 (struct dwarf2_per_cu_data) <cu>: Remove.
3129 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3130 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3131 moved to methods of dwarf2_per_objfile.
3132 (dwarf2_clear_marks): Remove.
3133 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3134 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3135 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3136 (dwarf2_per_objfile::remove_all_cus): New.
3137 (class free_cached_comp_units) <~free_cached_comp_units>:
3138 Update.
3139 (load_cu): Update.
3140 (dw2_do_instantiate_symtab): Adjust.
3141 (fill_in_sig_entry_from_dwo_entry): Adjust.
3142 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3143 (cutu_reader::cutu_reader): Likewise.
3144 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3145 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3146 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3147 and dwarf2_per_objfile::age_comp_units.
3148 (load_partial_comp_unit): Update.
3149 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3150 (process_queue): Likewise.
3151 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3152 backlink.
3153 (dwarf2_read_addr_index): Likewise.
3154 (follow_die_offset): Likewise.
3155 (dwarf2_fetch_die_loc_sect_off): Likewise.
3156 (dwarf2_fetch_constant_bytes): Likewise.
3157 (dwarf2_fetch_die_type_sect_off): Likewise.
3158 (follow_die_sig_1): Likewise.
3159 (load_full_type_unit): Likewise.
3160 (read_signatured_type): Likewise.
3161 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3162 (dwarf2_cu::~dwarf2_cu): Remove.
3163 (dwarf2_per_objfile::get_cu): New.
3164 (dwarf2_per_objfile::set_cu): New.
3165 (age_cached_comp_units): Rename to...
3166 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3167 to std::unordered_map.
3168 (free_one_cached_comp_unit): Rename to...
3169 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3170 to std::unordered_map.
3171 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3172 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3173 a dwarf2_per_objfile in data.
3174 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3175 (dwarf2_clear_marks): Remove.
3176
3177 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3180 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3181 (init_tu_and_read_dwo_dies): Likewise.
3182 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3183 (cutu_reader::cutu_reader): Likewise.
3184 (load_partial_comp_unit): Likewise.
3185 (process_psymtab_comp_unit): Update.
3186 (build_type_psymtabs_1): Update.
3187 (process_skeletonless_type_unit): Update.
3188 (load_full_comp_unit): Update.
3189 (find_partial_die): Update.
3190 (dwarf2_read_addr_index): Update.
3191 (read_signatured_type): Update.
3192
3193 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3196 m_header_read_in>: New fields.
3197 <get_header>: New method.
3198 * dwarf2/read.c (per_cu_header_read_in): Remove.
3199 (dwarf2_per_cu_data::get_header): New.
3200 (dwarf2_per_cu_data::addr_size): Update.
3201 (dwarf2_per_cu_data::offset_size): Update.
3202 (dwarf2_per_cu_data::ref_addr_size): Update.
3203
3204 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3207 (dw2_do_instantiate_symtab): Update.
3208 (queue_and_load_all_dwo_tus): Change parameter from
3209 dwarf2_per_cu_data to dwarf2_cu.
3210 (dwarf2_fetch_die_loc_sect_off): Update.
3211 (dwarf2_fetch_constant_bytes): Update.
3212 (dwarf2_fetch_die_type_sect_off): Update.
3213
3214 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * dwarf2/read.c (process_full_comp_unit,
3217 process_full_type_unit): Remove per_cu, per_objfile paramters.
3218 Add dwarf2_cu parameter.
3219 (process_queue): Update.
3220
3221 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * dwarf2/read.c (create_cu_from_index_list): Replace
3224 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3225 (create_cus_from_index_list): Likewise.
3226 (create_cus_from_index): Likewise.
3227 (create_signatured_type_table_from_index): Likewise.
3228 (create_cus_from_debug_names_list): Likewise.
3229 (create_cus_from_debug_names): Likewise.
3230 (dwarf2_read_gdb_index): Update.
3231 (dwarf2_read_debug_names): Update.
3232
3233 2020-05-27 Tom Tromey <tom@tromey.com>
3234 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * dwarf2/read.h (struct dwarf2_per_objfile)
3237 <get_type_for_signatured_type, set_type_for_signatured_type>:
3238 New methods.
3239 <m_type_map>: New member.
3240 (struct signatured_type) <type>: Remove.
3241 * dwarf2/read.c
3242 (dwarf2_per_objfile::get_type_for_signatured_type,
3243 dwarf2_per_objfile::set_type_for_signatured_type): New.
3244 (get_signatured_type): Use new methods.
3245
3246 2020-05-27 Tom Tromey <tom@tromey.com>
3247 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3250 (struct dwarf2_per_objfile) <type_units>: New member.
3251 <get_type_unit_group_unshareable>: New method.
3252 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3253 num_symtabs, symtabs>: Remove; move to
3254 type_unit_group_unshareable.
3255 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3256 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3257 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3258
3259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * dwarf2/read.h (struct dwarf2_per_cu_data):
3262 <dwarf2_per_objfile>: Remove.
3263 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3264 dwarf2_per_objfile.
3265 (create_signatured_type_table_from_index): Likewise.
3266 (create_signatured_type_table_from_debug_names): Likewise.
3267 (create_debug_type_hash_table): Likewise.
3268 (fill_in_sig_entry_from_dwo_entry): Likewise.
3269 (create_type_unit_group): Likewise.
3270 (read_comp_units_from_section): Likewise.
3271 (create_cus_hash_table): Likewise.
3272
3273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3276 dwarf2_per_cu_data::dwarf2_per_objfile.
3277 (compute_compunit_symtab_includes): Likewise.
3278 (dwarf2_cu::start_symtab): Likewise.
3279
3280 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3281
3282 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3283 parameter.
3284 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3285 (read_namespace_alias): Update.
3286 (lookup_die_type): Update.
3287 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3288 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3289 Update.
3290 (disassemble_dwarf_expression): Update.
3291
3292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * dwarf2/read.h (struct dwarf2_queue_item): Add
3295 dwarf2_per_objfile parameter, assign new parameter.
3296 <per_objfile>: New field.
3297 * dwarf2/read.c (free_one_cached_comp_unit): Add
3298 dwarf2_per_objfile parameter.
3299 (queue_comp_unit): Likewise.
3300 (dw2_do_instantiate_symtab): Update.
3301 (process_psymtab_comp_unit): Update.
3302 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3303 (process_imported_unit_die): Update.
3304 (queue_and_load_dwo_tu): Update.
3305 (follow_die_offset): Update.
3306 (follow_die_sig_1): Update.
3307
3308 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3311 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3312 (read_call_site_scope): Assign per_objfile.
3313 (dwarf2_per_cu_data::objfile): Remove.
3314 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3315 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3316 dwarf2_per_objfile parameter.
3317 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3318 dwarf2_per_objfile parameter.
3319 (dwarf_expr_reg_to_entry_parameter): Add output
3320 dwarf2_per_objfile parameter.
3321 (locexpr_get_frame_base): Update.
3322 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3323 <push_dwarf_reg_entry_value>: Update.
3324 <call_site_to_target_addr>: Update.
3325 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3326 parameter.
3327 (value_of_dwarf_reg_entry): Update.
3328 (rw_pieced_value): Update.
3329 (indirect_synthetic_pointer): Update.
3330 (dwarf2_evaluate_property): Update.
3331 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3332 parameter.
3333 (locexpr_read_variable): Update.
3334 (locexpr_get_symbol_read_needs): Update.
3335 (loclist_read_variable): Update.
3336
3337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3340 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3341 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3342 parameter.
3343 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3344 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3345 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3346 parameter.
3347 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3348 sect_variable_value): Add dwarf2_per_objfile parameter.
3349 (class dwarf_evaluate_loc_desc) <dwarf_call,
3350 dwarf_variable_value>: Update.
3351 (fetch_const_value_from_synthetic_pointer): Add
3352 dwarf2_per_objfile parameter.
3353 (fetch_const_value_from_synthetic_pointer): Update.
3354 (coerced_pieced_ref): Update.
3355 (class symbol_needs_eval_context) <dwarf_call,
3356 dwarf_variable_value>: Update.
3357 (dwarf2_compile_expr_to_ax): Update.
3358
3359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3362 parameter.
3363 (dwarf2_evaluate_loc_desc_full): Update.
3364
3365 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3368 parameter.
3369 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3370 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3371 dwarf2_per_objfile parameter.
3372 (decode_debug_loc_dwo_addresses): Likewise.
3373 (dwarf2_find_location_expression): Update.
3374 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3375 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3376 parameter.
3377 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3378 parameter.
3379 (locexpr_describe_location_1): Likewise.
3380 (locexpr_describe_location): Update.
3381
3382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3385 Remove.
3386 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3387 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3388 (dwarf2_compile_property_to_c): Update.
3389 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3390 use text offset from objfile.
3391 (locexpr_tracepoint_var_ref): Update.
3392 (locexpr_generate_c_location): Update.
3393 (loclist_describe_location): Update.
3394 (loclist_tracepoint_var_ref): Update.
3395 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3396 dwarf2_per_objfile parameter.
3397 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3398 use text offset from objfile.
3399 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3400
3401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * dwarf2/expr.h (struct dwarf_expr_context)
3404 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3405 <offset>: Remove.
3406 <per_objfile>: New member.
3407 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3408 dwarf2_per_objfile parameter. Don't set offset, set
3409 per_objfile.
3410 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3411 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3412 a dwarf2_per_objfile object instead of an offset.
3413 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3414 constructor.
3415 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3416 to dwarf2_expr_executor constructor. Don't set offset.
3417 (dwarf2_fetch_cfa_info): Update.
3418 (struct dwarf2_frame_cache) <text_offset>: Remove.
3419 <per_objfile>: New field.
3420 (dwarf2_frame_cache): Update.
3421 (dwarf2_frame_prev_register): Update.
3422 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3423 <dwarf_evaluate_loc_desc>: Add constructor.
3424 (dwarf2_evaluate_loc_desc_full): Update.
3425 (dwarf2_locexpr_baton_eval): Update.
3426 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3427 Add constructor.
3428 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3429
3430 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3433 addr_sized_int_type>: Move to dwarf2_cu.
3434 <int_type>: Move to dwarf2_per_objfile.
3435 (struct dwarf2_per_objfile) <int_type>: Move here.
3436 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3437 addr_sized_int_type>: Move here.
3438 (read_func_scope): Update.
3439 (read_array_type): Update.
3440 (read_tag_string_type): Update.
3441 (attr_to_dynamic_prop): Update.
3442 (dwarf2_per_cu_data::int_type): Rename to...
3443 (dwarf2_per_objfile::int_type): ... this.
3444 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3445 (dwarf2_cu::addr_sized_int_type): ... this.
3446 (read_subrange_type): Update.
3447 (dwarf2_per_cu_data::addr_type): Rename to...
3448 (dwarf2_cu::addr_type): ... this.
3449 (set_die_type): Update.
3450
3451 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3452
3453 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3454 data through per_cu->cu.
3455
3456 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3459 dwarf2_per_cu_data parameter fo dwarf2_cu.
3460 (lookup_dwo_type_unit): Likewise.
3461 (read_cutu_die_from_dwo): Likewise.
3462 (lookup_dwo_unit): Likewise.
3463 (open_and_init_dwo_file): Likewise.
3464 (lookup_dwo_cutu): Likewise.
3465 (lookup_dwo_comp_unit): Likewise.
3466 (lookup_dwo_type_unit): Likewise.
3467 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3468 (cutu_reader::cutu_reader): Update.
3469
3470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3473 parameter.
3474 (process_full_type_unit): Likewise.
3475 (process_queue): Update.
3476
3477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * dwarf2/read.c (recursively_compute_inclusions): Add
3480 dwarf2_per_objfile parameter.
3481 (compute_compunit_symtab_includes): Likewise.
3482 (process_cu_includes): Update.
3483
3484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3487 parameter.
3488 (create_type_unit_group): Update.
3489 (process_psymtab_comp_unit_reader): Update.
3490 (build_type_psymtabs_reader): Update.
3491
3492 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3495 object through m_this_cu->cu.
3496
3497 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3498
3499 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3500 the info parameter.
3501 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3502
3503 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3504
3505 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3506 per_objfile parameter.
3507 (load_full_type_unit): Add per_objfile parameter.
3508 (read_signatured_type): Likewise.
3509 (load_full_comp_unit): Likewise.
3510 (load_cu): Likewise.
3511 (dw2_do_instantiate_symtab): Likewise.
3512 (dw2_get_file_names): Likewise.
3513 (dw2_map_symtabs_matching_filename): Update.
3514 (dw_expand_symtabs_matching_file_matcher): Update.
3515 (dw2_map_symbol_filenames): Update.
3516 (process_psymtab_comp_unit): Add per_objfile parameter.
3517 (build_type_psymtabs_1): Update.
3518 (process_skeletonless_type_unit): Update.
3519 (dwarf2_build_psymtabs_hard): Update.
3520 (load_partial_comp_unit): Add per_objfile parameter.
3521 (scan_partial_symbols): Update.
3522 (load_full_comp_unit): Add per_objfile parameter.
3523 (process_imported_unit_die): Update.
3524 (create_cus_hash_table): Update.
3525 (find_partial_die): Update.
3526 (dwarf2_read_addr_index): Update.
3527 (follow_die_offset): Update.
3528 (dwarf2_fetch_die_loc_sect_off): Update.
3529 (dwarf2_fetch_constant_bytes): Update.
3530 (dwarf2_fetch_die_type_sect_off): Update.
3531 (follow_die_sig_1): Update.
3532 (load_full_type_unit): Add per_objfile parameter.
3533 (read_signatured_type): Likewise.
3534
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3538 of objfile_name.
3539
3540 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3541
3542 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3543 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3544 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3545 field.
3546 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3547 (create_cus_from_index): Update.
3548 (dwarf2_read_gdb_index): Update.
3549 (create_cus_from_debug_names): Update.
3550 (dwarf2_read_debug_names): Update.
3551 (get_abbrev_section_for_cu): Update.
3552 (create_all_comp_units): Update.
3553 (read_attribute_value): Update.
3554 (get_debug_line_section): Update.
3555 * dwarf2/index-cache.c (index_cache::store): Update.
3556 * dwarf2/index-write.c (save_gdb_index_command): Update.
3557 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3558
3559 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3560
3561 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3562 member.
3563 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3564 dwarf2_per_cu_data::per_bfd.
3565 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3566 (create_type_unit_group): Likewise.
3567 (queue_comp_unit): Remove reference to
3568 per_cu->dwarf2_per_objfile.
3569 (maybe_queue_comp_unit): Likewise.
3570 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3571 (create_cus_hash_table): Assign new field.
3572
3573 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3574
3575 * dwarf2/read.c: Replace
3576 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3577 dwarf2_cu->per_objfile throughout.
3578
3579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3582 parameter, don't use per_cu->dwarf2_per_objfile.
3583 (dw2_instantiate_symtab): Likewise.
3584 (dw2_find_last_source_symtab): Update.
3585 (dw2_map_expand_apply): Update.
3586 (dw2_lookup_symbol): Update.
3587 (dw2_expand_symtabs_for_function): Update.
3588 (dw2_expand_all_symtabs): Update.
3589 (dw2_expand_symtabs_with_fullname): Update.
3590 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3591 don't use per_cu->dwarf2_per_objfile.
3592 (dw2_expand_marked_cus): Update.
3593 (dw2_find_pc_sect_compunit_symtab): Update.
3594 (dw2_debug_names_lookup_symbol): Update.
3595 (dw2_debug_names_expand_symtabs_for_function): Update.
3596 (dw2_debug_names_map_matching_symbols): Update.
3597 (dwarf2_psymtab::expand_psymtab): Update.
3598
3599 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3602 <per_objfile>: New member.
3603 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3604 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3605 call to dwarf2_cu.
3606 (cutu_reader::cutu_reader): Update.
3607 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3608
3609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3612 struct dwarf2_per_objfile.
3613 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3614 dwarf2_per_bfd.
3615 * dwarf2/read.c (set_die_type): Update.
3616 (get_die_type_at_offset): Update.
3617
3618 2020-05-27 Tom Tromey <tom@tromey.com>
3619 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3622 method.
3623 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3624 get_symtab, set_symtab>: New methods.
3625 <m_symtabs>: New field.
3626 (struct dwarf2_psymtab): Derive from partial_symtab.
3627 <readin_p, get_compunit_symtab>: Declare methods.
3628 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3629 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3630 New methods.
3631 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3632 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3633 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3634 (dw2_symtab_iter_next, dw2_print_stats)
3635 (dw2_expand_symtabs_with_fullname)
3636 (dw2_expand_symtabs_matching_one)
3637 (dw_expand_symtabs_matching_file_matcher)
3638 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3639 (dw2_debug_names_iterator::next)
3640 (dw2_debug_names_map_matching_symbols)
3641 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3642 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3643 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3644 New methods.
3645 (get_compunit_symtab, process_full_comp_unit)
3646 (process_full_type_unit): Update.
3647 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3648
3649 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3650
3651 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3652 then introduce a new dwarf2_per_objfile type.
3653 <read_line_string>: Move to the new dwarf2_per_objfile type.
3654 <objfile>: Likewise.
3655 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3656 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3657 dwarf2_per_objfile->per_bfd.
3658 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3659 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3660 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3661 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3662 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3663 (dwarf2_per_objfile::locate_sections): Rename to...
3664 (dwarf2_per_bfd::locate_sections): ... this.
3665 (dwarf2_per_objfile::get_cutu): Rename to...
3666 (dwarf2_per_bfd::get_cutu): ... this.
3667 (dwarf2_per_objfile::get_cu): Rename to...
3668 (dwarf2_per_bfd::get_cu): ... this.
3669 (dwarf2_per_objfile::get_tu): Rename to...
3670 (dwarf2_per_bfd::get_tu): ... this.
3671 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3672 (dwarf2_per_bfd::allocate_per_cu): ... this.
3673 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3674 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3675 (get_gdb_index_contents_ftype): Change parameter from
3676 dwarf2_per_objfile to dwarf2_per_bfd.
3677 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3678 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3679
3680 2020-05-27 Tom Tromey <tom@tromey.com>
3681 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3684 (allocate_piece_closure): Set "per_objfile" member.
3685 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3686 (locexpr_describe_location, loclist_describe_location): Use new
3687 member.
3688 * dwarf2/read.c (read_call_site_scope)
3689 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3690 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3691 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3692 handle_data_member_location): Set per_objfile member.
3693 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3694 member.
3695 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3696
3697 2020-05-27 Tom Tromey <tom@tromey.com>
3698
3699 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3700 allocate_signatured_type>: Declare new methods.
3701 <m_num_psymtabs>: New member.
3702 (struct dwarf2_per_cu_data) <index>: New member.
3703 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3704 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3705 (create_cu_from_index_list): Use allocate_per_cu.
3706 (create_signatured_type_table_from_index)
3707 (create_signatured_type_table_from_debug_names)
3708 (create_debug_type_hash_table, add_type_unit)
3709 (read_comp_units_from_section): Use allocate_signatured_type.
3710
3711 2020-05-27 Tom Tromey <tom@tromey.com>
3712
3713 * psymtab.c (partial_map_expand_apply)
3714 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3715 (psym_lookup_global_symbol_language)
3716 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3717 (psym_print_stats, psym_expand_symtabs_for_function)
3718 (psym_map_symbol_filenames, psym_map_matching_symbols)
3719 (psym_expand_symtabs_matching)
3720 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3721 (maintenance_check_psymtabs): Update.
3722 * psympriv.h (struct partial_symtab) <readin_p,
3723 get_compunit_symtab>: Add objfile parameter.
3724 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3725 Likewise.
3726 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3727 get_compunit_symtab>: Likewise.
3728 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3729
3730 2020-05-27 Tom Tromey <tom@tromey.com>
3731
3732 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3733 member.
3734 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3735 (create_cu_from_index_list)
3736 (create_signatured_type_table_from_index)
3737 (create_signatured_type_table_from_debug_names)
3738 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3739 (dwarf2_create_include_psymtab)
3740 (create_debug_type_hash_table, add_type_unit)
3741 (create_type_unit_group, read_comp_units_from_section)
3742 (dwarf2_compute_name, create_cus_hash_table)
3743 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3744 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3745 obstack.
3746 (dw2_get_real_path): Likewise. Change argument to
3747 dwarf2_per_objfile.
3748
3749 2020-05-27 Luis Machado <luis.machado@linaro.org>
3750
3751 PR tdep/26000
3752 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3753 for ldrd (immediate).
3754
3755 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3756
3757 * command.h: Add comment giving the name of class_tui.
3758 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3759 create the fake command for the help for class_tui.
3760
3761 2020-05-26 Tom Tromey <tromey@adacore.com>
3762
3763 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3764 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3765 (val_atr): New function.
3766 (value_val_atr): Use it.
3767 * ada-valprint.c (print_optional_low_bound): Change low bound
3768 handling for enums.
3769 (val_print_packed_array_elements): Don't call discrete_position.
3770 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3771 discrete_position for enum types.
3772 * language.c (default_print_array_index): Change type.
3773 * language.h (struct language_defn) <la_print_array_index>: Add
3774 index_type parameter, change type of index_value.
3775 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3776 (default_print_array_index): Update.
3777 * valprint.c (maybe_print_array_index): Don't call
3778 value_from_longest. Update.
3779 (value_print_array_elements): Don't call discrete_position.
3780
3781 2020-05-26 Tom Tromey <tromey@adacore.com>
3782
3783 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3784 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3785
3786 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3787
3788 PR gdb/13519
3789 * avr-tdep.c (avr_integer_to_address): Return data or code
3790 address accordingly to the second 'type' argument of the
3791 function.
3792
3793 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3794
3795 * infcmd.c, inferior.h: (construct_inferior_arguments):
3796 Moved function from here to gdbsupport/common-inferior.{h,cc}
3797
3798 2020-05-23 Tom Tromey <tom@tromey.com>
3799
3800 Revert commit eca1f90c:
3801 * NEWS: Remove entry for completion styling.
3802 * completer.c (_rl_completion_prefix_display_length): Move
3803 declaration later.
3804 (gdb_fnprint): Revert.
3805 (gdb_display_match_list_1): Likewise.
3806 * cli/cli-style.c (completion_prefix_style)
3807 (completion_difference_style, completion_suffix_style): Remove.
3808 (_initialize_cli_style): Revert.
3809 * cli/cli-style.h (completion_prefix_style)
3810 (completion_difference_style, completion_suffix_style): Don't
3811 declare.
3812
3813 2020-05-24 Pedro Alves <palves@redhat.com>
3814
3815 * symtab.c (completion_list_add_name): Return boolean indication
3816 of whether the symbol matched.
3817 (completion_list_add_symbol): Don't try to remove C++ aliases if
3818 the symbol didn't match in the first place.
3819 * symtab.h (completion_list_add_name): Return bool.
3820
3821 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3822
3823 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3824 type::field.
3825
3826 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3827
3828 GDB 9.2 released.
3829
3830 2020-05-23 Tom Tromey <tom@tromey.com>
3831
3832 * NEWS: Add entry for completion styling.
3833 * completer.c (_rl_completion_prefix_display_length): Move
3834 declaration earlier.
3835 (gdb_fnprint): Use completion_style.
3836 (gdb_display_match_list_1): Likewise.
3837 * cli/cli-style.c (completion_prefix_style)
3838 (completion_difference_style, completion_suffix_style): New
3839 globals.
3840 (_initialize_cli_style): Register new globals.
3841 * cli/cli-style.h (completion_prefix_style)
3842 (completion_difference_style, completion_suffix_style): Declare.
3843
3844 2020-05-23 Pedro Alves <palves@redhat.com>
3845
3846 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3847 (parse_escape): Use ISDIGIT instead of isdigit.
3848 (puts_debug): Use gdb_isprint instead of isprint.
3849 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3850 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3851 ISSPACE instead of isspace.
3852 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3853 instead of isspace.
3854 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3855 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3856 instead of isxdigit and ISDIGIT instead of isdigit.
3857
3858 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3859
3860 * gdbtypes.h (struct type) <field>: New method.
3861 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3862 or type::field.
3863
3864 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3867 (TYPE_FIELDS): Use type::fields. Change all call sites that
3868 modify the propery to use type::set_fields instead.
3869
3870 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3873 type::num_fields instead.
3874
3875 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3878 methods.
3879 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3880 that modify the number of fields to use type::set_num_fields
3881 instead.
3882
3883 2020-05-22 Tom Tromey <tromey@adacore.com>
3884
3885 * compile/compile-object-load.h (munmap_list_free): Don't
3886 declare.
3887
3888 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3889
3890 * annotate.c (annotate_source_line): Update return type, add call
3891 to update current symtab and line.
3892 * annotate.h (annotate_source_line): Update return type, and
3893 extend header comment.
3894 * source.c (info_line_command): Check annotation_level before
3895 calling annotate_source_line.
3896 * stack.c (print_frame_info): If calling annotate_source_line
3897 returns true, then don't print any other source line information.
3898
3899 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3900
3901 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3902
3903 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * coffread.c (patch_type): Remove NULL check before xfree.
3906 * corefile.c (set_gnutarget): Likewise.
3907 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3908 * exec.c (build_section_table): Likewise.
3909 * remote.c (remote_target::pass_signals): Likewise.
3910 * utils.c (n_spaces): Likewise.
3911 * cli/cli-script.c (document_command): Likewise.
3912 * i386-windows-tdep.c (core_process_module_section): Likewise.
3913 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3914
3915 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * symfile.c (reread_symbols): Clear objfile's section_offsets
3918 vector and section indices, re-compute them by calling
3919 sym_offsets.
3920
3921 2020-05-20 Tom Tromey <tromey@adacore.com>
3922
3923 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3924 (desc_one_bound, desc_index_type): Compute field name.
3925
3926 2020-05-20 Tom de Vries <tdevries@suse.de>
3927
3928 PR symtab/25833
3929 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3930
3931 2020-05-20 Alan Modra <amodra@gmail.com>
3932
3933 PR 25993
3934 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3935 bfd_set_filename.
3936 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3937 passed to bfd_set_filename.
3938 * symfile-mem.c (add_vsyscall_page): Likewise for string
3939 passed to symbol_file_add_from_memory.
3940 (symbol_file_add_from_memory): Make name param a const char* and
3941 don't strdup.
3942
3943 2020-05-20 Alan Modra <amodra@gmail.com>
3944
3945 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3946 rather than accessing bfd->filename directly.
3947 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3948 and use bfd_section_name.
3949 * dwarf2/frame.c (decode_frame_entry): Likewise.
3950 * exec.c (exec_set_section_address): Likewise.
3951 * solib-aix.c (solib_aix_bfd_open): Likewise.
3952 * stap-probe.c (get_stap_base_address): Likewise.
3953 * symfile.c (reread_symbols): Likewise.
3954
3955 2020-05-19 Tom Tromey <tromey@adacore.com>
3956
3957 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3958
3959 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3962
3963 2020-05-19 Pedro Alves <palves@redhat.com>
3964
3965 * NEWS (set exec-file-mismatch): Adjust entry.
3966 * exec.c: Include "build-id.h".
3967 (validate_exec_file): Try to match build IDs instead of filenames.
3968 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3969 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3970 and pass down 'warn_if_slow'.
3971 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3972 gdb_bfd_open_closure to pass it down.
3973 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3974
3975 2020-05-19 Pedro Alves <palves@redhat.com>
3976
3977 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3978 * target.c (target_fileio_open_1): Rename to target_fileio_open
3979 and make extern. Use bool.
3980 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3981 (target_fileio_read_alloc_1): Adjust.
3982 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3983 (target_fileio_open_warn_if_slow): Delete declaration.
3984
3985 2020-05-19 Pedro Alves <palves@redhat.com>
3986
3987 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3988 Adjust all callers.
3989
3990 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3991
3992 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3993 whether disp is negative.
3994
3995 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3996
3997 * symfile.h (struct symfile_segment_data)
3998 <~symfile_segment_data>: Remove.
3999 <segment_info>: Change to std::vector.
4000 * symfile.c (default_symfile_segments): Update.
4001 * elfread.c (elf_symfile_segments): Update.
4002
4003 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4006 <segments>: New.
4007 <segment_bases, segment_sizes>: Remove.
4008 * symfile.c (default_symfile_segments): Update.
4009 * elfread.c (elf_symfile_segments): Update.
4010 * remote.c (remote_target::get_offsets): Update.
4011 * solib-target.c (solib_target_relocate_section_addresses):
4012 Update.
4013
4014 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * symfile.h (struct symfile_segment_data): Initialize fields.
4017 <~symfile_segment_data>: Add.
4018 (symfile_segment_data_up): New.
4019 (struct sym_fns) <sym_segments>: Return a
4020 symfile_segment_data_up.
4021 (default_symfile_segments): Return a symfile_segment_data_up.
4022 (free_symfile_segment_data): Remove.
4023 (get_symfile_segment_data): Return a symfile_segment_data_up.
4024 * symfile.c (default_symfile_segments): Likewise.
4025 (get_symfile_segment_data): Likewise.
4026 (free_symfile_segment_data): Remove.
4027 (symfile_find_segment_sections): Update.
4028 * elfread.c (elf_symfile_segments): Return a
4029 symfile_segment_data_up.
4030 * remote.c (remote_target::get_offsets): Update.
4031 * solib-target.c (solib_target_relocate_section_addresses):
4032 Update.
4033 * symfile-debug.c (debug_sym_segments): Return a
4034 symfile_segment_data_up.
4035
4036 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4037
4038 PR build/25981
4039 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4040 Hardcode register numbers.
4041
4042 PR build/25981
4043 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4044 procfs_find_LDT_entry): Remove.
4045 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4046 procfs_find_LDT_entry): Remove.
4047 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4048 Remove.
4049
4050 2020-05-17 Pedro Alves <palves@redhat.com>
4051 Andrew Burgess <andrew.burgess@embecosm.com>
4052 Keno Fischer <keno@juliacomputing.com>
4053
4054 PR gdb/25741
4055 * breakpoint.c (build_target_condition_list): Update comments.
4056 (build_target_command_list): Update comments and skip matching
4057 locations.
4058 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4059 a separate function. Simplify "set breakpoint auto-hw off"
4060 handling.
4061 (insert_breakpoints): Update comment.
4062 (tracepoint_locations_match): New parameter. For breakpoints,
4063 compare location types too, if the caller wants to.
4064 (handle_automatic_hardware_breakpoints): New functions.
4065 (bp_location_is_less_than): Also sort by location type and
4066 hardware breakpoint length.
4067 (update_global_location_list): Handle "set breakpoint auto-hw on"
4068 here.
4069 (update_breakpoint_locations): Ask breakpoint_locations_match to
4070 ignore location types.
4071
4072 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4075 type::name instead.
4076
4077 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (struct type) <name, set_name>: New methods.
4080 (TYPE_CODE): Use type::name. Change all call sites used to set
4081 the name to use type::set_name instead.
4082
4083 2020-05-16 Tom Tromey <tom@tromey.com>
4084
4085 * top.c (quit_force): Update.
4086 * infrun.c (handle_no_resumed): Update.
4087 * top.h (all_uis): New function.
4088 (ALL_UIS): Remove.
4089
4090 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4093
4094 2020-05-16 Pedro Alves <palves@redhat.com>
4095
4096 * ia64-linux-nat.c
4097 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4098 Declare method.
4099 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4100
4101 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4104 (sparc64_adi_info): Likewise.
4105
4106 2020-05-15 Tom Tromey <tom@tromey.com>
4107
4108 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4109 block_objfile.
4110 (lookup_objfile_from_block): Remove.
4111 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4112 (lookup_global_symbol): Use block_objfile.
4113 * symtab.h (lookup_objfile_from_block): Don't declare.
4114 * printcmd.c (clear_dangling_display_expressions): Use
4115 block_objfile.
4116 * parse.c (operator_check_standard): Use block_objfile.
4117
4118 2020-05-15 Tom Tromey <tom@tromey.com>
4119
4120 * language.c (language_alloc_type_symbol): Set
4121 SYMBOL_SECTION.
4122 * symtab.c (initialize_objfile_symbol): Remove.
4123 (allocate_symbol): Remove.
4124 (allocate_template_symbol): Remove.
4125 * dwarf2/read.c (fixup_go_packaging): Use "new".
4126 (new_symbol): Use "new".
4127 (read_variable): Don't call initialize_objfile_symbol. Use
4128 "new".
4129 (read_func_scope): Use "new".
4130 * xcoffread.c (process_xcoff_symbol): Don't call
4131 initialize_objfile_symbol.
4132 (SYMBOL_DUP): Remove.
4133 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4134 "new".
4135 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4136 (allocate_template_symbol): Don't declare.
4137 (struct symbol): Add copy constructor. Change defaults.
4138 * jit.c (finalize_symtab): Use "new".
4139 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4140 Use "new".
4141 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4142 (common_block_end): Use "new".
4143 * mdebugread.c (parse_symbol): Use "new".
4144 (new_symbol): Likewise.
4145
4146 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * NEWS: Mention changes to help and apropos.
4149
4150 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4151
4152 * command.h (enum command_class): Improve comments, document
4153 that class_alias is for user-defined aliases, give the class
4154 name for each class, remove unused class_xdb.
4155 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4156 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4157 by a precise class.
4158 * infcmd.c (_initialize_infcmd): Likewise.
4159 * reverse.c (_initialize_reverse): Likewise.
4160 * stack.c (_initialize_stack): Likewise.
4161 * symfile.c (_initialize_symfile): Likewise.
4162 * tracepoint.c (_initialize_tracepoint): Likewise.
4163
4164 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4165
4166 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4167 when their aliased command is traversed.
4168 (help_cmd): Add fput_command_names_styled call to
4169 output command name and aliases when command has an alias.
4170
4171 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172
4173 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4174 * cli/cli-decode.c (help_cmd_list): Declare as static,
4175 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4176 a command together with the command.
4177 (fput_command_name_styled, fput_command_names_styled): New functions.
4178 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4179 fput_command_name_styled.
4180 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4181 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4182
4183 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4184
4185 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4186 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4187 * command.h (cmd_show_list): Likewise.
4188 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4189 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4190
4191 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4192
4193 * unittests/command-def-selftests.c (traverse_command_structure):
4194 Verify all commands of a list have the same prefix command and
4195 that only the top cmdlist commands have a null prefix.
4196
4197 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4198
4199 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4200 as prefix, not one of its aliases.
4201 (set_cmd_prefix): Remove.
4202 (do_add_cmd): Centralize the setting of the prefix of a command, when
4203 command is defined after its full chain of prefix commands.
4204 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4205 (add_setshow_cmd_full): Likewise.
4206 (update_prefix_field_of_prefixed_commands): New function.
4207 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4208 update_prefix_field_of_prefixed_commands.
4209 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4210 addresses of remote_set_cmdlist and remote_show_cmdlist given
4211 as argument, not the address of an argument.
4212 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4213 * gdb/remote.c (_initialize_remote): Likewise.
4214
4215 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4216
4217 * cli/cli-cmds.c (alias_command): Check for an existing alias
4218 using lookup_cmd_composition, as valid_command_p is too strict
4219 and forbids aliases that are the prefix of an existing alias
4220 or command.
4221 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4222 command is properly recognised as a valid command.
4223
4224 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4225
4226 * unittests/help-doc-selftests.c: Rename to
4227 unittests/command-def-selftests.c
4228 * unittests/command-def-selftests.c (help_doc_tests): Update some
4229 comments.
4230 (command_structure_tests, traverse_command_structure): New namespace
4231 and function.
4232 (command_structure_invariants_tests): New function.
4233 (_initialize_command_def_selftests) Renamed from
4234 _initialize_help_doc_selftests, register command_structure_invariants
4235 selftest.
4236
4237 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4238
4239 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4240 an alias of 'show'.
4241
4242 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4243
4244 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4245 ada_is_fixed_point_type. Update all callers.
4246 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4247 all callers.
4248 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4249 Update all callers.
4250 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4251 print_fixed_point_type. Update all callers.
4252 * ada-valprint.c (ada_value_print_num): Replace call to
4253 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4254
4255 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4256
4257 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4258 processors.
4259 (cpu_supports_bts): Add CV_AMD case.
4260
4261 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4262 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * infrun.c (stop_all_threads): Collect multiple wait events at
4265 each pass.
4266
4267 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4268
4269 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4270 type::code instead.
4271
4272 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * gdbtypes.h (struct type) <code, set_code>: New methods.
4275 (TYPE_CODE): Use type::code. Change all call sites used to set
4276 the code to use type::set_code instead.
4277
4278 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4279 Tom de Vries <tdevries@suse.de>
4280 Pedro Alves <palves@redhat.com>
4281
4282 PR threads/25478
4283 * infrun.c (stop_all_threads): Do NOT ignore
4284 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4285 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4286 received.
4287 (handle_no_resumed): Remove code handling a live inferior with no
4288 threads.
4289 * remote.c (has_single_non_exited_thread): New.
4290 (remote_target::update_thread_list): Do not delete a thread if is
4291 the last thread of the process.
4292 * thread.c (thread_select): Call delete_exited_threads instead of
4293 prune_threads.
4294
4295 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4296
4297 * infrun.c (stop_all_threads): Enable/disable thread events of all
4298 targets. Move a debug message denoting the end of the function
4299 into the SCOPED_EXIT block.
4300
4301 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4302
4303 * process-stratum-target.h: Include <set>.
4304 (all_non_exited_process_targets, switch_to_target_no_thread): New
4305 function declarations.
4306 * process-stratum-target.c (all_non_exited_process_targets)
4307 (switch_to_target_no_thread): New function implementations.
4308
4309 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4310
4311 * infrun.c (handle_inferior_event): Extract out a piece of code
4312 into...
4313 (mark_non_executing_threads): ...this new function.
4314
4315 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4316
4317 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4318 use.
4319
4320 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4321
4322 * regcache.c (regcache_read_pc_protected): New function
4323 implementation that returns 0 if the PC cannot read via
4324 'regcache_read_pc'.
4325 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4326 instead of 'regcache_read_pc'.
4327 (keep_going_pass_signal): Ditto.
4328
4329 2020-05-13 Tom Tromey <tromey@adacore.com>
4330
4331 * ada-lang.c (align_value): Remove.
4332 (ada_template_to_fixed_record_type_1): Use align_up.
4333
4334 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4335
4336 * async-event.c: Update the copyright year.
4337 * async-event.h: Update the copyright year.
4338
4339 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4340
4341 * objfiles.h (is_addr_in_objfile,
4342 shared_objfile_contains_address_p): Return bool.
4343 * objfile.c (is_addr_in_objfile,
4344 shared_objfile_contains_address_p): Return bool.
4345
4346 2020-05-11 Tom Tromey <tromey@adacore.com>
4347
4348 * cli/cli-cmds.c (info_command): Restore.
4349 (_initialize_cli_cmds): Use add_prefix_command for "info".
4350 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4351
4352 2020-05-11 Tom Tromey <tromey@adacore.com>
4353
4354 * ada-lang.c (ada_value_primitive_field): Now public.
4355 * ada-lang.h (ada_value_primitive_field): Declare.
4356 * ada-valprint.c (print_field_values): Use
4357 ada_value_primitive_field for wrapper fields.
4358
4359 2020-05-11 Tom de Vries <tdevries@suse.de>
4360
4361 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4362 MODULE_DOMAIN.
4363
4364 2020-05-11 Tom de Vries <tdevries@suse.de>
4365
4366 PR symtab/25941
4367 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4368 with length 0, if not gdb-produced.
4369 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4370
4371 2020-05-09 Tom de Vries <tdevries@suse.de>
4372
4373 PR gdb/25955
4374 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4375 calculation.
4376
4377 2020-05-09 Tom Tromey <tom@tromey.com>
4378
4379 * top.c (server_command): Now bool.
4380 * top.h (server_command): Now bool.
4381
4382 2020-05-08 Tom Tromey <tromey@adacore.com>
4383
4384 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4385 already being processed.
4386
4387 2020-05-08 Tom Tromey <tom@tromey.com>
4388
4389 * printcmd.c (struct display) <next>: Remove.
4390 <display>: New constructor.
4391 <exp_string>: Now a std::string.
4392 <enabled_p>: Now a bool.
4393 (display_number): Move definition earlier.
4394 (displays): Rename from display_chain. Now a std::vector.
4395 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4396 (display_command): Update.
4397 (do_one_display, disable_display)
4398 (enable_disable_display_command, do_enable_disable_display):
4399 Update.
4400 (free_display): Remove.
4401 (clear_displays): Rewrite.
4402 (delete_display): Update.
4403 (map_display_numbers): Use function_view. Remove "data"
4404 parameter. Update.
4405 (do_delete_display): Remove.
4406 (undisplay_command): Update.
4407 (do_one_display, do_displays, disable_display)
4408 (info_display_command): Update.
4409 (do_enable_disable_display): Remove.
4410 (enable_disable_display_command)
4411 (clear_dangling_display_expressions): Update.
4412
4413 2020-05-08 Tom Tromey <tom@tromey.com>
4414
4415 * symtab.c (set_symbol_cache_size)
4416 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4417 (maintenance_print_symbol_cache_statistics): Update.
4418 * symmisc.c (print_symbol_bcache_statistics)
4419 (print_objfile_statistics, maintenance_print_objfiles)
4420 (maintenance_info_symtabs, maintenance_check_symtabs)
4421 (maintenance_expand_symtabs, maintenance_info_line_tables):
4422 Update.
4423 * symfile-debug.c (set_debug_symfile): Update.
4424 * source.c (forget_cached_source_info): Update.
4425 * python/python.c (gdbpy_progspaces): Update.
4426 * psymtab.c (maintenance_info_psymtabs): Update.
4427 * probe.c (parse_probes): Update.
4428 * linespec.c (iterate_over_all_matching_symtabs)
4429 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4430 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4431 * exec.c (exec_target::close): Update.
4432 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4433 * breakpoint.c (print_one_breakpoint_location)
4434 (create_longjmp_master_breakpoint)
4435 (create_std_terminate_master_breakpoint): Update.
4436 * progspace.c (program_spaces): Now a std::vector.
4437 (maybe_new_address_space): Update.
4438 (add_program_space): Remove.
4439 (program_space::program_space): Update.
4440 (remove_program_space): Update.
4441 (number_of_program_spaces): Remove.
4442 (print_program_space, update_address_spaces): Update.
4443 * progspace.h (program_spaces): Change type.
4444 (ALL_PSPACES): Remove.
4445 (number_of_program_spaces): Don't declare.
4446 (struct program_space) <next>: Remove.
4447
4448 2020-05-08 Tom Tromey <tom@tromey.com>
4449
4450 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4451 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4452 (enable_break): Update.
4453 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4454 (frv_fdpic_find_canonical_descriptor): Update.
4455 (frv_fetch_objfile_link_map): Update.
4456 * progspace.c (program_space::free_all_objfiles): Update.
4457 (program_space::solibs): New method.
4458 * progspace.h (struct program_space) <solibs>: New method.
4459 * solist.h (master_so_list): Don't declare.
4460 (ALL_SO_LIBS): Remove.
4461 * solib.h (so_list_head): Remove.
4462 (update_solib_list): Update comment.
4463 * solib.c (master_so_list): Remove.
4464 (solib_used, update_solib_list, solib_add)
4465 (info_sharedlibrary_command, clear_solib)
4466 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4467
4468 2020-05-08 Tom Tromey <tom@tromey.com>
4469
4470 * extension.c (extension_languages): Now a std::array.
4471 (ALL_EXTENSION_LANGUAGES): Remove.
4472 (get_ext_lang_defn, get_ext_lang_of_file)
4473 (eval_ext_lang_from_control_command): Update.
4474 (finish_ext_lang_initialization)
4475 (auto_load_ext_lang_scripts_for_objfile)
4476 (ext_lang_type_printers::ext_lang_type_printers)
4477 (apply_ext_lang_type_printers)
4478 (ext_lang_type_printers::~ext_lang_type_printers)
4479 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4480 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4481 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4482 (get_matching_xmethod_workers, ext_lang_colorize)
4483 (ext_lang_before_prompt): Update.
4484 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4485
4486 2020-05-08 Tom Tromey <tom@tromey.com>
4487
4488 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4489 overload.
4490 <swap_string, m_string>: Remove.
4491 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4492 Update.
4493 * stabsread.c (define_symbol, read_type): Update.
4494 * linespec.c (find_linespec_symbols): Update.
4495 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4496 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4497 * dbxread.c (read_dbx_symtab): Update.
4498 * cp-support.h (cp_canonicalize_string_full)
4499 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4500 Return unique_xmalloc_ptr.
4501 * cp-support.c (inspect_type): Update.
4502 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4503 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4504 Likewise.
4505 * c-typeprint.c (print_name_maybe_canonical): Update.
4506 * break-catch-throw.c (check_status_exception_catchpoint):
4507 Update.
4508
4509 2020-05-08 Tom de Vries <tdevries@suse.de>
4510
4511 * infrun.c (follow_fork): Copy current_line and current_symtab to
4512 child thread.
4513
4514 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * async-event.c (struct async_signal_handler, struct
4517 async_event_handler): Reformat, remove typedef.
4518
4519 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4522 access thistype->main_type->dyn_prop_list directly.
4523
4524 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4527 (remove_dyn_prop): Remove. Update all users to use
4528 type::remove_dyn_prop.
4529 * gdbtypes.c (remove_dyn_prop): Rename to...
4530 (type::remove_dyn_prop): ... this.
4531
4532 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4533
4534 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4535 (add_dyn_prop): Remove. Update all users to use
4536 type::add_dyn_prop.
4537 * gdbtypes.c (add_dyn_prop): Rename to...
4538 (type::add_dyn_prop): ... this.
4539
4540 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4543 (get_dyn_prop): Remove. Update all users to use
4544 type::dyn_prop.
4545 * gdbtypes.c (get_dyn_prop): Rename to...
4546 (type::dyn_prop): ... this.
4547
4548 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4551
4552 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4555 instruction, skip it if it's there.
4556
4557 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4558
4559 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4560
4561 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4564 * gdbtypes.c (recursive_dump_type): Remove use of
4565 TYPE_INCOMPLETE.
4566
4567 2020-05-03 Tom Tromey <tom@tromey.com>
4568
4569 * breakpoint.c (catch_command, tcatch_command): Remove.
4570 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4571 add_show_prefix_cmd.
4572 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4573 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4574 Remove.
4575 (add_internal_problem_command): Use add_basic_prefix_cmd,
4576 add_show_prefix_cmd.
4577 * mips-tdep.c (set_mipsfpu_command): Remove.
4578 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4579 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4580 (_initialize_index_cache): Use add_basic_prefix_cmd.
4581 * memattr.c (dummy_cmd): Remove.
4582 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4583 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4584 (_initialize_tui_win): Use add_basic_prefix_cmd,
4585 add_show_prefix_cmd.
4586 * cli/cli-logging.c (set_logging_command): Remove.
4587 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4588 add_show_prefix_cmd.
4589 (show_logging_command): Remove.
4590 * target.c (target_command): Remove.
4591 (add_target): Use add_basic_prefix_cmd.
4592
4593 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4594
4595 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4596
4597 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4598
4599 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4600 info_command.
4601
4602 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4603
4604 * nbsd-nat.c (nbsd_enable_proc_events)
4605 (nbsd_nat_target::post_startup_inferior): Add.
4606 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4607 (nbsd_nat_target::update_thread_list): Rewrite.
4608 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4609 "PTRACE_LWP_CREATE".
4610 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4611
4612 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4613
4614 * stack.c (_initialize_stack): Remove duplicated creation
4615 of "frame" command and "f" alias.
4616
4617 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4618
4619 PR gdb/18706
4620 * gdbtypes.c (check_typedef): Calculate size of array of
4621 stubbed type.
4622
4623 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4624
4625 PR gdb/15559
4626 * i386-tdep.c (i386_push_dummy_call): Call
4627 i386_thiscall_push_dummy_call.
4628 (i386_thiscall_push_dummy_call): New function.
4629 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4630 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4631 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4632
4633 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * gdbarch.sh (do_read): Add shellcheck disable directive for
4636 warning SC2162.
4637
4638 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4641 "referenced but not assigned" warning.
4642
4643 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbarch.sh: Remove code that sets fallbackdefault.
4646
4647 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * gdbarch.sh: Use shell operators && and || instead of
4650 -a and -o.
4651
4652 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * gdbarch.sh: Use $(...) instead of `...`.
4655
4656 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * gdbarch.sh: Use double quotes around variables.
4659
4660 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * gdbarch.sh: Use %s with printf, instead of variables in the
4663 format string.
4664
4665 2020-04-29 Tom Tromey <tromey@adacore.com>
4666
4667 PR ada/25875:
4668 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4669 type fields here.
4670 (read_enumeration_type): Call
4671 update_enumeration_type_from_children later. Update comments.
4672 (process_enumeration_scope): Don't create type fields.
4673
4674 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4675
4676 * nbsd-tdep.c: Include "xml-syscall.h".
4677 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4678
4679 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4680
4681 * nbsd-nat.c: Include "sys/wait.h".
4682 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4683 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4684 (nbsd_nat_target::remove_exec_catchpoint)
4685 (nbsd_nat_target::set_syscall_catchpoint): Add.
4686 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4687 (nbsd_nat_target::insert_exec_catchpoint)
4688 (nbsd_nat_target::remove_exec_catchpoint)
4689 (nbsd_nat_target::set_syscall_catchpoint): Add.
4690 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4691 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4692 `nbsd_get_syscall_number'.
4693
4694 2020-04-29 Tom Tromey <tom@tromey.com>
4695
4696 * stack.c (print_block_frame_labels): Remove.
4697
4698 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4699
4700 PR gdb/17320
4701 * ada-valprint.c (val_print_packed_array_elements): Move array
4702 end bracket to new line.
4703 (ada_val_print_string): Remove extra spaces before first array
4704 element.
4705 * c-valprint.c (c_value_print_array): Likewise.
4706 * m2-valprint.c (m2_print_array_contents): Likewise.
4707 (m2_value_print_inner): Likewise.
4708 * p-valprint.c (pascal_value_print_inner): Likewise.
4709 * valprint.c (generic_val_print_array): Likewise.
4710 (value_print_array_elements): Move first array element and array
4711 end bracket to new line.
4712
4713 2020-04-29 Tom de Vries <tdevries@suse.de>
4714
4715 PR symtab/25889
4716 * linespec.c (find_method): Fix ix calculation.
4717
4718 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4719
4720 * syscalls/update-netbsd.sh: New file.
4721 * syscalls/netbsd.xml: Regenerate.
4722 * data-directory/Makefile.in: Register `netbsd.xml' in
4723 `SYSCALLS_FILES'.
4724
4725 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * syscalls/update-freebsd.sh: Add double quotes.
4728
4729 2020-04-28 Tom Tromey <tom@tromey.com>
4730
4731 * NEWS: Update.
4732 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4733 (cmdpy_init): Allow class_tui.
4734
4735 2020-04-28 Mark Williams <mark@myosotissp.com>
4736
4737 PR gdb/24480
4738 * dwarf2read.c: Add missing assingments to list_in_scope when
4739 start_symtab was already called.
4740
4741 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4742
4743 PR gdb/25881
4744 * dwarf2/read.c (offset_map_type): Use
4745 gdb:hash_enum<sect_offset> as hash function.
4746
4747 2020-04-28 Tom de Vries <tdevries@suse.de>
4748
4749 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4750 with DW_AT_signature.
4751
4752 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * configure.ac: Remove check for fs_base/gs_base in
4755 user_regs_struct.
4756 * configure: Re-generate.
4757 * config.in: Re-generate.
4758 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4759 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4760 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4761
4762 2020-04-27 Luis Machado <luis.machado@linaro.org>
4763
4764 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4765 problematic inline frame unwinding situation.
4766 * frame.c (frame_id_computed_p): New function.
4767 * frame.h (frame_id_computed_p): New prototype.
4768
4769 2020-04-26 Tom Tromey <tom@tromey.com>
4770
4771 * command.h (enum command_class) <class_pseudo>: Remove.
4772
4773 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774
4775 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4776 and whitespace.
4777
4778 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4779
4780 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4781 `PT_GET_PROCESS_STATE' block.
4782
4783 2020-04-24 Tom Tromey <tom@tromey.com>
4784
4785 * symtab.h (symbol_get_demangled_name): Don't declare.
4786 * symtab.c (symbol_get_demangled_name): Remove.
4787 (general_symbol_info::natural_name)
4788 (general_symbol_info::demangled_name): Update.
4789
4790 2020-04-24 Tom Tromey <tom@tromey.com>
4791
4792 PR rust/25025:
4793 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4794
4795 2020-04-24 Tom Tromey <tom@tromey.com>
4796
4797 PR symtab/12707:
4798 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4799 exists.
4800 (new_symbol): Likewise.
4801 * compile/compile-object-load.c (get_out_value_type): Use
4802 symbol_matches_search_name.
4803
4804 2020-04-24 Tom Tromey <tom@tromey.com>
4805
4806 * dwarf2/read.c (add_partial_symbol): Do not call
4807 compute_and_set_names.
4808
4809 2020-04-24 Tom Tromey <tom@tromey.com>
4810
4811 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4812 overload.
4813
4814 2020-04-24 Tom Tromey <tom@tromey.com>
4815
4816 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4817 (add_psymbol_to_list): New overload. Make old overload call new
4818 one.
4819 * psympriv.h (add_psymbol_to_list): New overload.
4820
4821 2020-04-24 Tom Tromey <tom@tromey.com>
4822
4823 * dwarf2/read.c (partial_die_info::read) <case
4824 DW_AT_linkage_name>: Use value_as_string.
4825 (dwarf2_string_attr): Use value_as_string.
4826 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4827 method.
4828 * dwarf2/attribute.c (attribute::value_as_string): New method.
4829
4830 2020-04-24 Tom Tromey <tom@tromey.com>
4831
4832 * symtab.c (general_symbol_info::natural_name)
4833 (general_symbol_info::demangled_name): Check for language_rust.
4834
4835 2020-04-24 Tom Tromey <tom@tromey.com>
4836
4837 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4838 (dwarf2_physname): ... from here.
4839 (partial_die_info::read): Add Rust "{" hack.
4840
4841 2020-04-24 Tom Tromey <tom@tromey.com>
4842
4843 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4844 method.
4845 (symbol_set_demangled_name): Don't declare.
4846 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4847 symbol_set_demangled_name.
4848 (general_symbol_info::set_language)
4849 (general_symbol_info::compute_and_set_names): Update.
4850 * minsyms.c (minimal_symbol_reader::install): Update.
4851 * dwarf2/read.c (new_symbol): Update.
4852
4853 2020-04-24 Tom Tromey <tromey@adacore.com>
4854
4855 PR python/23662:
4856 * python/py-type.c (convert_field): Handle
4857 FIELD_LOC_KIND_DWARF_BLOCK.
4858 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4859 (typy_get_dynamic): Nw function.
4860 (type_object_getset): Add "dynamic".
4861 * NEWS: Add entry.
4862
4863 2020-04-24 Tom Tromey <tromey@adacore.com>
4864
4865 * ada-typeprint.c (print_choices, print_variant_part)
4866 (print_record_field_types_dynamic): New functions.
4867 (print_record_field_types): Use print_record_field_types_dynamic.
4868
4869 2020-04-24 Tom Tromey <tromey@adacore.com>
4870
4871 * dwarf2/read.c (handle_data_member_location): New overload.
4872 (dwarf2_add_field): Use it.
4873 (decode_locdesc): Add "computed" parameter. Update comment.
4874 * gdbtypes.c (is_dynamic_type_internal): Also look for
4875 FIELD_LOC_KIND_DWARF_BLOCK.
4876 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4877 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4878 virtual base classes.
4879 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4880 FIELD_LOC_KIND_DWARF_BLOCK.
4881
4882 2020-04-24 Tom Tromey <tromey@adacore.com>
4883
4884 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4885 * gdbtypes.c (is_dynamic_type_internal): Check
4886 TYPE_HAS_DYNAMIC_LENGTH.
4887 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4888 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4889 New macros.
4890 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4891 constant.
4892
4893 2020-04-24 Tom Tromey <tromey@adacore.com>
4894
4895 * dwarf2/read.c (struct variant_field): Rewrite.
4896 (struct variant_part_builder): New.
4897 (struct nextfield): Remove "variant" field. Add "offset".
4898 (struct field_info): Add "current_variant_part" and
4899 "variant_parts".
4900 (alloc_discriminant_info): Remove.
4901 (alloc_rust_variant): New function.
4902 (quirk_rust_enum): Update.
4903 (dwarf2_add_field): Set "offset" member. Don't handle
4904 DW_TAG_variant_part.
4905 (offset_map_type): New typedef.
4906 (convert_variant_range, create_one_variant)
4907 (create_one_variant_part, create_variant_parts)
4908 (add_variant_property): New functions.
4909 (dwarf2_attach_fields_to_type): Call add_variant_property.
4910 (read_structure_type): Don't handle DW_TAG_variant_part.
4911 (handle_variant_part, handle_variant): New functions.
4912 (handle_struct_member_die): Use them.
4913 (process_structure_scope): Don't handle variant parts.
4914 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4915 (struct discriminant_info): Remove.
4916 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4917 (struct main_type) <flag_discriminated_union>: Remove.
4918 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4919 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4920 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4921 Update.
4922 * valops.c (value_union_variant): Remove.
4923 * value.h (value_union_variant): Don't declare.
4924
4925 2020-04-24 Tom Tromey <tromey@adacore.com>
4926
4927 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4928 (ada_value_primitive_packed_val): Update.
4929 * ada-valprint.c (ada_value_print_1): Update.
4930 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4931 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4932 just an address. Use evaluate_for_locexpr_baton.
4933 (dwarf2_evaluate_property): Update.
4934 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4935 array_view.
4936 * findvar.c (default_read_var_value): Update.
4937 * gdbtypes.c (compute_variant_fields_inner)
4938 (resolve_dynamic_type_internal): Update.
4939 (resolve_dynamic_type): Change type of valaddr parameter.
4940 * gdbtypes.h (resolve_dynamic_type): Update.
4941 * valarith.c (value_subscripted_rvalue): Update.
4942 * value.c (value_from_contents_and_address): Update.
4943
4944 2020-04-24 Tom Tromey <tromey@adacore.com>
4945
4946 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4947 "push_initial_value" parameter.
4948 (dwarf2_evaluate_property): Likewise.
4949 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4950
4951 2020-04-24 Tom Tromey <tromey@adacore.com>
4952
4953 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4954 (variant::matches, compute_variant_fields_recurse)
4955 (compute_variant_fields_inner, compute_variant_fields): New
4956 functions.
4957 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4958 Use resolved_type after type is made.
4959 (operator==): Add new cases.
4960 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4961 (struct discriminant_range, struct variant, struct variant_part):
4962 New.
4963 (union dynamic_prop_data) <variant_parts, original_type>: New
4964 members.
4965 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4966 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4967 constants.
4968 * value.c (unpack_bits_as_long): Now public.
4969 * value.h (unpack_bits_as_long): Declare.
4970
4971 2020-04-24 Tom Tromey <tromey@adacore.com>
4972
4973 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4974 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4975
4976 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4977
4978 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4979
4980 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4981
4982 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4983 (remove_fork_catchpoint, post_startup_inferior)
4984 (post_attach): Move...
4985 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4986 (remove_fork_catchpoint, post_startup_inferior)
4987 (post_attach): ...here.
4988 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4989 (remove_fork_catchpoint, post_startup_inferior)
4990 (post_attach): Move...
4991 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4992 (remove_fork_catchpoint, post_startup_inferior)
4993 (post_attach): ...here.
4994
4995 2020-04-24 Tom Tromey <tromey@adacore.com>
4996
4997 * nat/windows-nat.h (struct windows_thread_info)
4998 <pc_adjusted>: New member.
4999 * windows-nat.c (windows_fetch_one_register): Check
5000 pc_adjusted.
5001 (windows_nat_target::get_windows_debug_event)
5002 (windows_nat_target::wait): Set pc_adjusted.
5003
5004 2020-04-24 Tom de Vries <tdevries@suse.de>
5005
5006 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5007 Run gdb-add-index inside temp dir.
5008
5009 2020-04-23 Tom Tromey <tromey@adacore.com>
5010
5011 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5012 in loop.
5013
5014 2020-04-23 Luis Machado <luis.machado@linaro.org>
5015
5016 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5017 get_frame_register instead of gdbarch_unwind_pc.
5018
5019 2020-04-23 Tom de Vries <tdevries@suse.de>
5020
5021 * symtab.c (lookup_global_symbol): Prefer def over decl.
5022
5023 2020-04-23 Tom de Vries <tdevries@suse.de>
5024
5025 PR symtab/25807
5026 * block.c (best_symbol, better_symbol): Promote to external.
5027 * block.h (best_symbol, better_symbol): Declare.
5028 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5029 decl.
5030
5031 2020-04-23 Tom Tromey <tromey@adacore.com>
5032
5033 PR ada/25837:
5034 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5035 "const char *", not a "const std::string &".
5036 <name_and_matcher::operator==>: Update.
5037 * unittests/lookup_name_info-selftests.c: Change type of
5038 "result".
5039
5040 2020-04-23 Tom Tromey <tom@tromey.com>
5041
5042 * inferior.h (iterate_over_inferiors): Don't declare.
5043 * inferior.c (iterate_over_inferiors): Remove.
5044 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5045 Remove.
5046 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5047 use iterate_over_inferiors.
5048 (darwin_resume_inferior_it)
5049 (struct resume_inferior_threads_param)
5050 (darwin_resume_inferior_threads_it): Remove.
5051 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5052
5053 2020-04-23 Tom de Vries <tdevries@suse.de>
5054
5055 * blockframe.c (find_pc_partial_function): Use
5056 find_pc_sect_compunit_symtab rather than
5057 objfile->sf->qf->find_pc_sect_compunit_symtab.
5058
5059 2020-04-22 Tom de Vries <tdevries@suse.de>
5060
5061 PR symtab/25764
5062 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5063 in psymtabs.
5064
5065 2020-04-22 Tom de Vries <tdevries@suse.de>
5066
5067 PR symtab/25801
5068 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5069 symtabs.
5070
5071 2020-04-22 Tom de Vries <tdevries@suse.de>
5072
5073 PR symtab/25700
5074 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5075 CU if already created.
5076
5077 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5078
5079 * infrun.c (displaced_step_fixup): Switch to the event_thread
5080 before calling displaced_step_restore, not after.
5081
5082 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5083
5084 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5085 its inferior is not recorded by us.
5086 (record_btrace_target_open): Replace call to
5087 all_non_exited_threads () with call to current_inferior
5088 ()->non_exited_threads ().
5089 (record_btrace_target::stop_recording): Likewise.
5090 (record_btrace_target::close): Likewise.
5091 (record_btrace_target::wait): Likewise.
5092 (record_btrace_target::record_stop_replaying): Likewise.
5093
5094 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5095
5096 * btrace.c (btrace_enable): Throw an error on double enables and
5097 when enabling recording fails.
5098 (btrace_disable): Throw an error if the thread is not recorded.
5099
5100 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5101
5102 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5103 request if we do not have a thread_info.
5104
5105 2020-04-21 Tom de Vries <tdevries@suse.de>
5106
5107 PR gdb/25471
5108 * thread.c
5109 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5110 exception in get_frame_id.
5111
5112 2020-04-20 Tom Tromey <tromey@adacore.com>
5113
5114 * python/python.c (struct gdbpy_event): Mark move constructor as
5115 noexcept.
5116 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5117 constructor as noexcept.
5118 * completer.h (struct completion_result): Mark move constructor as
5119 noexcept.
5120 * completer.c (completion_result::completion_result): Use
5121 initialization style. Don't call reset_match_list.
5122
5123 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5124
5125 * MAINTAINERS (Write After Approval): Add myself.
5126
5127 2020-04-18 Tom Tromey <tom@tromey.com>
5128
5129 * windows-tdep.c (init_w32_command_list)
5130 (w32_prefix_command_valid): Restore.
5131 (_initialize_windows_tdep): Call init_w32_command_list.
5132
5133 2020-04-18 Tom Tromey <tom@tromey.com>
5134
5135 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5136 * value.c (value_fn_field): Update.
5137 * valops.c (find_function_in_inferior)
5138 (value_allocate_space_in_inferior): Update.
5139 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5140 Update.
5141 * tui/tui-source.c (tui_source_window::set_contents): Update.
5142 * symtab.c (lookup_global_or_static_symbol)
5143 (find_function_start_sal_1, skip_prologue_sal)
5144 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5145 * symmisc.c (dump_msymbols, dump_symtab_1)
5146 (maintenance_print_one_line_table): Update.
5147 * symfile.c (init_entry_point_info, section_is_mapped)
5148 (list_overlays_command, simple_read_overlay_table)
5149 (simple_overlay_update_1): Update.
5150 * stap-probe.c (handle_stap_probe): Update.
5151 * stabsread.c (dbx_init_float_type, define_symbol)
5152 (read_one_struct_field, read_enum_type, read_range_type): Update.
5153 * source.c (info_line_command): Update.
5154 * python/python.c (gdbpy_source_objfile_script)
5155 (gdbpy_execute_objfile_script): Update.
5156 * python/py-type.c (save_objfile_types): Update.
5157 * python/py-objfile.c (py_free_objfile): Update.
5158 * python/py-inferior.c (python_new_objfile): Update.
5159 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5160 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5161 (maintenance_check_psymtabs): Update.
5162 * printcmd.c (info_address_command): Update.
5163 * objfiles.h (struct objfile) <arch>: New method, from
5164 get_objfile_arch.
5165 (get_objfile_arch): Don't declare.
5166 * objfiles.c (get_objfile_arch): Remove.
5167 (filter_overlapping_sections): Update.
5168 * minsyms.c (msymbol_is_function): Update.
5169 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5170 (output_nondebug_symbol): Update.
5171 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5172 (mdebug_expand_psymtab): Update.
5173 * machoread.c (macho_add_oso_symfile): Update.
5174 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5175 Update.
5176 * linux-fork.c (checkpoint_command): Update.
5177 * linespec.c (convert_linespec_to_sals): Update.
5178 * jit.c (finalize_symtab): Update.
5179 * infrun.c (insert_exception_resume_from_probe): Update.
5180 * ia64-tdep.c (ia64_find_unwind_table): Update.
5181 * hppa-tdep.c (internalize_unwinds): Update.
5182 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5183 Update.
5184 * gcore.c (call_target_sbrk): Update.
5185 * elfread.c (record_minimal_symbol, elf_symtab_read)
5186 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5187 (elf_gnu_ifunc_resolve_by_got): Update.
5188 * dwarf2/read.c (create_addrmap_from_index)
5189 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5190 (read_debug_names_from_section)
5191 (process_psymtab_comp_unit_reader, add_partial_symbol)
5192 (add_partial_subprogram, process_full_comp_unit)
5193 (read_file_scope, read_func_scope, read_lexical_block_scope)
5194 (read_call_site_scope, dwarf2_ranges_read)
5195 (dwarf2_record_block_ranges, dwarf2_add_field)
5196 (mark_common_block_symbol_computed, read_tag_pointer_type)
5197 (read_tag_string_type, dwarf2_init_float_type)
5198 (dwarf2_init_complex_target_type, read_base_type)
5199 (partial_die_info::read, partial_die_info::read)
5200 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5201 (dwarf2_fetch_die_loc_sect_off): Update.
5202 * dwarf2/loc.c (dwarf2_find_location_expression)
5203 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5204 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5205 (dwarf2_loc_desc_get_symbol_read_needs)
5206 (locexpr_describe_location_piece, locexpr_describe_location_1)
5207 (loclist_describe_location): Update.
5208 * dwarf2/index-write.c (write_debug_names): Update.
5209 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5210 * dtrace-probe.c (dtrace_process_dof): Update.
5211 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5212 (process_one_symbol): Update.
5213 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5214 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5215 (coff_read_enum_type): Update.
5216 * cli/cli-cmds.c (edit_command, list_command): Update.
5217 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5218 * breakpoint.c (create_overlay_event_breakpoint)
5219 (create_longjmp_master_breakpoint)
5220 (create_std_terminate_master_breakpoint)
5221 (create_exception_master_breakpoint, get_sal_arch): Update.
5222 * block.c (block_gdbarch): Update.
5223 * annotate.c (annotate_source_line): Update.
5224
5225 2020-04-17 Tom Tromey <tromey@adacore.com>
5226
5227 * auto-load.c (show_auto_load_cmd): Remove.
5228 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5229 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5230 (maintenance_print_arc_command): Remove.
5231 * tui/tui-win.c (tui_command): Remove.
5232 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5233 * tui/tui-layout.c (tui_layout_command): Remove.
5234 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5235 * python/python.c (user_set_python, user_show_python): Remove.
5236 (_initialize_python): Use add_basic_prefix_cmd,
5237 add_show_prefix_cmd.
5238 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5239 (install_gdb_commands): Use add_basic_prefix_cmd,
5240 add_show_prefix_cmd.
5241 (info_guile_command): Remove.
5242 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5243 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5244 add_show_prefix_cmd.
5245 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5246 Remove do_set and do_show parameters.
5247 * cli/cli-style.c (set_style, show_style): Remove.
5248 (_initialize_cli_style): Use add_basic_prefix_cmd,
5249 add_show_prefix_cmd.
5250 (cli_style_option::add_setshow_commands): Remove do_set and
5251 do_show parameters.
5252 (cli_style_option::add_setshow_commands): Use
5253 add_basic_prefix_cmd, add_show_prefix_cmd.
5254 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5255 (set_style_name): Remove.
5256 * cli/cli-dump.c (dump_command, append_command): Remove.
5257 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5258 (tekhex_dump_command, binary_dump_command)
5259 (binary_append_command): Remove.
5260 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5261 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5262 (init_w32_command_list): Remove; move into ...
5263 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5264 * valprint.c (set_print, show_print, set_print_raw)
5265 (show_print_raw): Remove.
5266 (_initialize_valprint): Use add_basic_prefix_cmd,
5267 add_show_prefix_cmd.
5268 * typeprint.c (set_print_type, show_print_type): Remove.
5269 (_initialize_typeprint): Use add_basic_prefix_cmd,
5270 add_show_prefix_cmd.
5271 * record.c (set_record_command, show_record_command): Remove.
5272 (_initialize_record): Use add_basic_prefix_cmd,
5273 add_show_prefix_cmd.
5274 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5275 add_show_prefix_cmd.
5276 (info_command, show_command, set_debug, show_debug): Remove.
5277 * top.h (set_history, show_history): Don't declare.
5278 * top.c (set_history, show_history): Remove.
5279 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5280 (unset_tdesc_cmd): Remove.
5281 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5282 add_show_prefix_cmd.
5283 * symtab.c (info_module_command): Remove.
5284 (_initialize_symtab): Use add_basic_prefix_cmd.
5285 * symfile.c (overlay_command): Remove.
5286 (_initialize_symfile): Use add_basic_prefix_cmd.
5287 * sparc64-tdep.c (info_adi_command): Remove.
5288 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5289 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5290 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5291 add_show_prefix_cmd.
5292 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5293 (_initialize_serial): Use add_basic_prefix_cmd,
5294 add_show_prefix_cmd.
5295 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5296 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5297 add_show_prefix_cmd.
5298 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5299 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5300 add_show_prefix_cmd.
5301 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5302 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5303 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5304 add_show_prefix_cmd.
5305 * remote.c (remote_command, set_remote_cmd): Remove.
5306 (_initialize_remote): Use add_basic_prefix_cmd.
5307 * record-full.c (set_record_full_command)
5308 (show_record_full_command): Remove.
5309 (_initialize_record_full): Use add_basic_prefix_cmd,
5310 add_show_prefix_cmd.
5311 * record-btrace.c (cmd_set_record_btrace)
5312 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5313 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5314 (cmd_show_record_btrace_pt): Remove.
5315 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5316 add_show_prefix_cmd.
5317 * ravenscar-thread.c (set_ravenscar_command)
5318 (show_ravenscar_command): Remove.
5319 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 * mips-tdep.c (show_mips_command, set_mips_command)
5322 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5323 add_show_prefix_cmd.
5324 * maint.c (maintenance_command, maintenance_info_command)
5325 (maintenance_check_command, maintenance_print_command)
5326 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5327 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5328 add_show_prefix_cmd.
5329 (show_per_command_cmd): Remove.
5330 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5331 Remove.
5332 (maintenance_show_test_settings_cmd): Remove.
5333 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5334 add_show_prefix_cmd.
5335 * maint-test-options.c (maintenance_test_options_command):
5336 Remove.
5337 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5338 * macrocmd.c (macro_command): Remove
5339 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5340 * language.c (set_check, show_check): Remove.
5341 (_initialize_language): Use add_basic_prefix_cmd,
5342 add_show_prefix_cmd.
5343 * infcmd.c (unset_command): Remove.
5344 (_initialize_infcmd): Use add_basic_prefix_cmd.
5345 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5346 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5347 add_show_prefix_cmd.
5348 * go32-nat.c (go32_info_dos_command): Remove.
5349 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5350 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5351 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5352 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5353 (_initialize_frame): Use add_basic_prefix_cmd,
5354 add_show_prefix_cmd.
5355 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5356 (_initialize_dcache): Use add_basic_prefix_cmd,
5357 add_show_prefix_cmd.
5358 * cp-support.c (maint_cplus_command): Remove.
5359 (_initialize_cp_support): Use add_basic_prefix_cmd.
5360 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5361 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5362 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5363 add_basic_prefix_cmd, add_show_prefix_cmd.
5364 * breakpoint.c (save_command): Remove.
5365 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5366 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5367 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5370 (set_ada_command, show_ada_command): Remove.
5371 (_initialize_ada_language): Use add_basic_prefix_cmd,
5372 add_show_prefix_cmd.
5373 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5374
5375 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5376
5377 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5378 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5379
5380 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5381
5382 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5383 warning messages.
5384
5385 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5386
5387 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5388 import table is not at beginning of .idata section.
5389
5390 2020-04-16 Pedro Alves <palves@redhat.com>
5391
5392 * inferior.c (delete_inferior): Use delete operator directly
5393 instead of delete_program_space.
5394 * progspace.c (add_program_space): New, factored out from
5395 program_space::program_space.
5396 (remove_program_space): New, factored out from
5397 delete_program_space.
5398 (program_space::program_space): Remove intro comment. Rewrite.
5399 (program_space::~program_space): Remove intro comment. Call
5400 remove_program_space.
5401 (delete_program_space): Delete.
5402 * progspace.h (program_space::program_space): Make explicit. Move
5403 intro comment here, adjusted.
5404 (program_space::~program_space): Move intro comment here,
5405 adjusted.
5406 (delete_program_space): Remove.
5407
5408 2020-04-16 Tom Tromey <tromey@adacore.com>
5409
5410 * windows-nat.c (windows_nat::handle_access_violation): New
5411 function.
5412 * nat/windows-nat.h (handle_access_violation): Declare.
5413 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5414 windows-nat.c. Call handle_access_violation.
5415
5416 2020-04-16 Tom de Vries <tdevries@suse.de>
5417
5418 PR symtab/25791
5419 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5420 CUs without psymtab.
5421
5422 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5423
5424 * python/python.c (do_start_initialization): Don't call
5425 PyEval_InitThreads for Python 3.9 and beyond.
5426
5427 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5428
5429 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5430 thread functions.
5431 (obsd_nat_target::wait): Likewise.
5432
5433 2020-04-15 Tom Tromey <tromey@adacore.com>
5434
5435 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5436 (DEBUG_EXCEPT): Use debug_printf.
5437
5438 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5439
5440 * completer.c (class completion_tracker::completion_hash_entry)
5441 <hash_name>: New member function.
5442 (completion_tracker::discard_completions): New callback to hash a
5443 completion_hash_entry, pass this to htab_create_alloc.
5444
5445 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5446
5447 * windows-nat.c (windows_make_so): Warn rather than stopping with
5448 an error if realpath() fails.
5449
5450 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5451
5452 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5453 (nbsd_nat_target::info_proc): Add do_status.
5454
5455 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5456 Tom de Vries <tdevries@suse.de>
5457
5458 PR symtab/25718
5459 * psympriv.h (struct partial_symtab::read_symtab)
5460 (struct partial_symtab::expand_psymtab)
5461 (struct partial_symtab::read_dependencies): Update comments.
5462 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5463 read_symtab for includer.
5464 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5465 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5466 (struct dwarf2_include_psymtab::m_readin): Remove.
5467 (struct dwarf2_include_psymtab::includer): New member function.
5468 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5469
5470 2020-04-14 Tom de Vries <tdevries@suse.de>
5471
5472 PR symtab/25720
5473 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5474 with NULL symbol_matcher and lookup_name.
5475 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5476 and lookup_name.
5477 * dwarf2/read.c (dw2_expand_symtabs_matching)
5478 (dw2_debug_names_expand_symtabs_matching): Same.
5479 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5480 Make lookup_name a pointer. Update comment.
5481 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5482 lookup_name being a pointer.
5483 * symfile.c (expand_symtabs_matching): Same.
5484 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5485 * linespec.c (iterate_over_all_matching_symtabs): Same.
5486
5487 2020-04-13 Tom Tromey <tom@tromey.com>
5488
5489 * run-on-main-thread.c: Update include.
5490 * unittests/main-thread-selftests.c: Update include.
5491 * tui/tui-win.c: Update include.
5492 * tui/tui-io.c: Update include.
5493 * tui/tui-interp.c: Update include.
5494 * tui/tui-hooks.c: Update include.
5495 * top.h: Update include.
5496 * top.c: Update include.
5497 * ser-base.c: Update include.
5498 * remote.c: Update include.
5499 * remote-notif.c: Update include.
5500 * remote-fileio.c: Update include.
5501 * record-full.c: Update include.
5502 * record-btrace.c: Update include.
5503 * python/python.c: Update include.
5504 * posix-hdep.c: Update include.
5505 * mingw-hdep.c: Update include.
5506 * mi/mi-main.c: Update include.
5507 * mi/mi-interp.c: Update include.
5508 * main.c: Update include.
5509 * linux-nat.c: Update include.
5510 * interps.c: Update include.
5511 * infrun.c: Update include.
5512 * inf-loop.c: Update include.
5513 * event-top.c: Update include.
5514 * event-loop.c: Move to ../gdbsupport/.
5515 * event-loop.h: Move to ../gdbsupport/.
5516 * async-event.h: Update include.
5517 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5518
5519 2020-04-13 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-win.c: Include async-event.h.
5522 * remote.c: Include async-event.h.
5523 * remote-notif.c: Include async-event.h.
5524 * record-full.c: Include async-event.h.
5525 * record-btrace.c: Include async-event.h.
5526 * infrun.c: Include async-event.h.
5527 * event-top.c: Include async-event.h.
5528 * event-loop.h: Move some declarations to async-event.h.
5529 * event-loop.c: Don't include ser-event.h or top.h. Move some
5530 code to async-event.c.
5531 * async-event.h: New file.
5532 * async-event.c: New file.
5533 * Makefile.in (COMMON_SFILES): Add async-event.c.
5534 (HFILES_NO_SRCDIR): Add async-event.h.
5535
5536 2020-04-13 Tom Tromey <tom@tromey.com>
5537
5538 * utils.c (flush_streams): New function.
5539 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5540
5541 2020-04-13 Tom Tromey <tom@tromey.com>
5542
5543 * event-loop.c (handle_file_event): Use warning, not
5544 printf_unfiltered.
5545
5546 2020-04-13 Tom Tromey <tom@tromey.com>
5547
5548 * event-loop.c: Include <chrono>.
5549
5550 2020-04-13 Tom Tromey <tom@tromey.com>
5551
5552 * gdb_select.h: Move to ../gdbsupport/.
5553 * event-loop.c: Update include path.
5554 * top.c: Update include path.
5555 * ser-base.c: Update include path.
5556 * ui-file.c: Update include path.
5557 * ser-tcp.c: Update include path.
5558 * guile/scm-ports.c: Update include path.
5559 * posix-hdep.c: Update include path.
5560 * ser-unix.c: Update include path.
5561 * gdb_usleep.c: Update include path.
5562 * mingw-hdep.c: Update include path.
5563 * inflow.c: Update include path.
5564 * infrun.c: Update include path.
5565 * event-top.c: Update include path.
5566
5567 2020-04-13 Tom Tromey <tom@tromey.com>
5568
5569 * configure: Rebuild.
5570 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5571
5572 2020-04-13 Tom Tromey <tom@tromey.com>
5573
5574 * event-loop.h (start_event_loop): Don't declare.
5575 * event-loop.c (start_event_loop): Move...
5576 * main.c (start_event_loop): ...here. Now static.
5577
5578 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5579
5580 * MAINTAINERS: Update my email address.
5581
5582 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5583
5584 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5585 IP_ALL.
5586
5587 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5588
5589 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5590 (nbsd_nat_target::info_proc): Add do_cmdline.
5591
5592 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5593
5594 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5595 (nbsd_nat_target::info_proc): Add do_cwd.
5596
5597 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5598
5599 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5600
5601 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5602
5603 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5604 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5605 (nbsd_nat_target::info_proc): New functions.
5606 * nbsd-nat.c (kinfo_get_vmmap): New function.
5607 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5608 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5609 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5610 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5611 functions.
5612 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5613 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5614 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5615 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5616 (KINFO_VME_FLAG_GROWS_DOWN): New.
5617
5618 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5619
5620 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5621 bit shift.
5622
5623 2020-04-10 Tom Tromey <tromey@adacore.com>
5624
5625 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5626
5627 2020-04-10 Tom Tromey <tromey@adacore.com>
5628
5629 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5630 separate debug files.
5631
5632 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5633
5634 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5635 Move to...
5636 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5637 ... here.
5638 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5639 Check for STATUS_WX86_BREAKPOINT.
5640 (windows_nat_target::wait): Same.
5641
5642 2020-04-10 Tom de Vries <tdevries@suse.de>
5643
5644 PR cli/25808
5645 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5646
5647 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5650 (Write After Approval): Remove Tom de Vries.
5651
5652 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5653
5654 revert partially:
5655 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5656
5657 * buildsym.c (record_line): Fix undefined behavior and preserve
5658 lines at eof.
5659
5660 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5661
5662 * auxv.h (svr4_auxv_parse): New.
5663 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5664 and generic_auxv_parse.
5665 (svr4_auxv_parse): Add.
5666 * obsd-tdep.c: Include "auxv.h".
5667 (obsd_auxv_parse): Remove.
5668 (obsd_init_abi): Remove comment.
5669 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5670 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5671 * nbsd-tdep.c: Include "auxv.h".
5672 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5673
5674 2020-04-08 Tom Tromey <tromey@adacore.com>
5675
5676 * nat/windows-nat.h (last_wait_event): Don't declare.
5677 (wait_for_debug_event): Update comment.
5678 * nat/windows-nat.c (last_wait_event): Now static.
5679
5680 2020-04-08 Tom Tromey <tromey@adacore.com>
5681
5682 * windows-nat.c (wait_for_debug_event): Move to
5683 nat/windows-nat.c.
5684 * nat/windows-nat.h (wait_for_debug_event): Declare.
5685 * nat/windows-nat.c (wait_for_debug_event): Move from
5686 windows-nat.c. No longer static.
5687
5688 2020-04-08 Tom Tromey <tromey@adacore.com>
5689
5690 * windows-nat.c (get_windows_debug_event): Use
5691 fetch_pending_stop.
5692 * nat/windows-nat.h (fetch_pending_stop): Declare.
5693 * nat/windows-nat.c (fetch_pending_stop): New function.
5694
5695 2020-04-08 Tom Tromey <tromey@adacore.com>
5696
5697 * windows-nat.c (windows_continue): Use matching_pending_stop and
5698 continue_last_debug_event.
5699 * nat/windows-nat.h (matching_pending_stop)
5700 (continue_last_debug_event): Declare.
5701 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5702 (matching_pending_stop, continue_last_debug_event): New
5703 functions.
5704
5705 2020-04-08 Tom Tromey <tromey@adacore.com>
5706
5707 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5708 (handle_exception_result): Move to nat/windows-nat.h.
5709 (DEBUG_EXCEPTION_SIMPLE): Remove.
5710 (windows_nat::handle_ms_vc_exception): New function.
5711 (handle_exception): Move to nat/windows-nat.c.
5712 (get_windows_debug_event): Update.
5713 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5714 nat/windows-nat.c.
5715 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5716 (handle_exception_result): Move from windows-nat.c.
5717 (handle_exception): Declare.
5718 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5719 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5720 windows-nat.c.
5721
5722 2020-04-08 Tom Tromey <tromey@adacore.com>
5723
5724 * windows-nat.c (exception_count, event_count): Remove.
5725 (handle_exception, get_windows_debug_event)
5726 (do_initial_windows_stuff): Update.
5727
5728 2020-04-08 Tom Tromey <tromey@adacore.com>
5729
5730 * windows-nat.c (windows_nat::handle_load_dll)
5731 (windows_nat::handle_unload_dll): Rename. No longer static.
5732 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5733 Declare.
5734
5735 2020-04-08 Tom Tromey <tromey@adacore.com>
5736
5737 * complaints.h (stop_whining): Declare at top-level.
5738 (complaint): Don't declare stop_whining.
5739
5740 2020-04-08 Tom Tromey <tromey@adacore.com>
5741
5742 * windows-nat.c (windows_nat::handle_output_debug_string):
5743 Rename. No longer static.
5744 * nat/windows-nat.h (handle_output_debug_string): Declare.
5745
5746 2020-04-08 Tom Tromey <tromey@adacore.com>
5747
5748 * windows-nat.c (current_process_handle, current_process_id)
5749 (main_thread_id, last_sig, current_event, last_wait_event)
5750 (current_windows_thread, desired_stop_thread_id, pending_stops)
5751 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5752 (display_selectors, fake_create_process)
5753 (get_windows_debug_event): Update.
5754 * nat/windows-nat.h (current_process_handle, current_process_id)
5755 (main_thread_id, last_sig, current_event, last_wait_event)
5756 (current_windows_thread, desired_stop_thread_id, pending_stops)
5757 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5758 * nat/windows-nat.c (current_process_handle, current_process_id)
5759 (main_thread_id, last_sig, current_event, last_wait_event)
5760 (current_windows_thread, desired_stop_thread_id, pending_stops)
5761 (siginfo_er): New globals. Move from windows-nat.c.
5762
5763 2020-04-08 Tom Tromey <tromey@adacore.com>
5764
5765 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5766 (handle_load_dll): Update.
5767 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5768
5769 2020-04-08 Tom Tromey <tromey@adacore.com>
5770
5771 * windows-nat.c (enum thread_disposition_type): Move to
5772 nat/windows-nat.h.
5773 (windows_nat::thread_rec): Rename from thread_rec. No longer
5774 static.
5775 (windows_add_thread, windows_nat_target::fetch_registers)
5776 (windows_nat_target::store_registers, handle_exception)
5777 (windows_nat_target::resume, get_windows_debug_event)
5778 (windows_nat_target::get_tib_address)
5779 (windows_nat_target::thread_name)
5780 (windows_nat_target::thread_alive): Update.
5781 * nat/windows-nat.h (enum thread_disposition_type): Move from
5782 windows-nat.c.
5783 (thread_rec): Declare.
5784
5785 2020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c: Add "using namespace".
5788 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5789 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5790
5791 2020-04-08 Tom Tromey <tromey@adacore.com>
5792
5793 * nat/windows-nat.h (struct windows_thread_info): Declare
5794 destructor.
5795 * nat/windows-nat.c (~windows_thread_info): New.
5796
5797 2020-04-08 Tom Tromey <tromey@adacore.com>
5798
5799 PR gdb/22992
5800 * windows-nat.c (current_event): Update comment.
5801 (last_wait_event, desired_stop_thread_id): New globals.
5802 (struct pending_stop): New.
5803 (pending_stops): New global.
5804 (windows_nat_target) <stopped_by_sw_breakpoint>
5805 <supports_stopped_by_sw_breakpoint>: New methods.
5806 (windows_fetch_one_register): Add assertions. Adjust PC.
5807 (windows_continue): Handle pending stops. Suspend other threads
5808 when stepping. Use last_wait_event
5809 (wait_for_debug_event): New function.
5810 (get_windows_debug_event): Use wait_for_debug_event. Handle
5811 pending stops. Queue spurious stops.
5812 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5813 (windows_nat_target::kill): Use wait_for_debug_event.
5814 * nat/windows-nat.h (struct windows_thread_info)
5815 <stopped_at_software_breakpoint>: New field.
5816 * nat/windows-nat.c (windows_thread_info::resume): Clear
5817 stopped_at_software_breakpoint.
5818
5819 2020-04-08 Tom Tromey <tromey@adacore.com>
5820
5821 * windows-nat.c (enum thread_disposition_type): New.
5822 (thread_rec): Replace "get_context" parameter with "disposition";
5823 change type.
5824 (windows_add_thread, windows_nat_target::fetch_registers)
5825 (windows_nat_target::store_registers, handle_exception)
5826 (windows_nat_target::resume, get_windows_debug_event)
5827 (windows_nat_target::get_tib_address)
5828 (windows_nat_target::thread_name)
5829 (windows_nat_target::thread_alive): Update.
5830
5831 2020-04-08 Tom Tromey <tromey@adacore.com>
5832
5833 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5834 (windows_continue): Use windows_continue::resume.
5835 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5836 resume>: Declare new methods.
5837 * nat/windows-nat.c: New file.
5838 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5839
5840 2020-04-08 Tom Tromey <tromey@adacore.com>
5841
5842 * windows-nat.c (windows_add_thread, windows_delete_thread)
5843 (windows_nat_target::fetch_registers)
5844 (windows_nat_target::store_registers, fake_create_process)
5845 (windows_nat_target::resume, windows_nat_target::resume)
5846 (get_windows_debug_event, windows_nat_target::wait)
5847 (windows_nat_target::pid_to_str)
5848 (windows_nat_target::get_tib_address)
5849 (windows_nat_target::get_ada_task_ptid)
5850 (windows_nat_target::thread_name)
5851 (windows_nat_target::thread_alive): Use lwp, not tid.
5852
5853 2020-04-08 Tom Tromey <tromey@adacore.com>
5854
5855 * windows-nat.c (handle_exception)
5856 (windows_nat_target::thread_name): Update.
5857 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5858 <name>: Now unique_xmalloc_ptr.
5859
5860 2020-04-08 Tom Tromey <tromey@adacore.com>
5861
5862 * windows-nat.c (thread_rec)
5863 (windows_nat_target::fetch_registers): Update.
5864 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5865 Update comment.
5866 <debug_registers_changed, reload_context>: Now bool.
5867
5868 2020-04-08 Tom Tromey <tromey@adacore.com>
5869
5870 * windows-nat.c (windows_add_thread): Use new.
5871 (windows_init_thread_list, windows_delete_thread): Use delete.
5872 (get_windows_debug_event): Update.
5873 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5874 destructor, and initializers.
5875
5876 2020-04-08 Tom Tromey <tromey@adacore.com>
5877
5878 * windows-nat.c (struct windows_thread_info): Remove.
5879 * nat/windows-nat.h: New file.
5880
5881 2020-04-08 Tom Tromey <tromey@adacore.com>
5882
5883 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5884 (thread_rec, windows_add_thread, windows_delete_thread)
5885 (windows_continue): Update.
5886
5887 2020-04-08 Tom Tromey <tromey@adacore.com>
5888
5889 * windows-nat.c (struct windows_thread_info): Remove typedef.
5890 (thread_head): Remove.
5891 (thread_list): New global.
5892 (thread_rec, windows_add_thread, windows_init_thread_list)
5893 (windows_delete_thread, windows_continue): Update.
5894
5895 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * windows-tdep.h (windows_init_abi): Add comment.
5898 (cygwin_init_abi): New declaration.
5899 * windows-tdep.c: Split signal enumeration in two, one for
5900 Windows and one for Cygwin.
5901 (windows_gdb_signal_to_target): Only deal with signal of the
5902 Windows OS ABI.
5903 (cygwin_gdb_signal_to_target): New function.
5904 (windows_init_abi): Rename to windows_init_abi_common, don't set
5905 gdb_signal_to_target gdbarch method. Add new new function with
5906 this name.
5907 (cygwin_init_abi): New function.
5908 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5909 comment. Don't call windows_init_abi.
5910 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5911 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5912 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5913 i386_windows_init_abi_common, don't call windows_init_abi. Add
5914 a new function of this name.
5915 (i386_cygwin_init_abi): New function.
5916 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5917 OS ABI Cygwin.
5918
5919 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5922 parameter.c.
5923 (dwarf2_read_gdb_index): Update.
5924
5925 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5926
5927 * nbsd-tdep.c: Include "objfiles.h".
5928 (nbsd_skip_solib_resolver): New.
5929 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5930
5931 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5932
5933 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5934 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5935 with DW_LLE_base_addressx are being emitted in DWARFv5.
5936 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5937 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5938 unsigned integer.
5939
5940 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5941
5942 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5943 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5944 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5945 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5946 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5947 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5948 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5949
5950
5951 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5952
5953 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5954 (read_loclist_index): New function definition.
5955 (lookup_loclist_base): New function definition.
5956 (read_loclist_header): New function definition.
5957 (dwarf2_cu): Add loclist_base and loclist_header field.
5958 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5959 (read_full_die_1): Read the value of DW_AT_loclists_base.
5960 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5961 (read_attribute_value): Handle DW_FORM_loclistx.
5962 (skip_one_die): Handle DW_FORM_loclistx.
5963 (loclist_header): New structure declaration.
5964 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5965
5966 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5967
5968 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5969 constructor. Remove `addr` parameter from other constructor and
5970 add `per_cu` parameter.
5971 * dwarf2/read.c (create_partial_symtab): Update.
5972
5973 2020-04-07 Tom de Vries <tdevries@suse.de>
5974
5975 PR symtab/25796
5976 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5977 (partial_die_info::fixup): Inherit has_const_value.
5978
5979 2020-04-07 Tom de Vries <tdevries@suse.de>
5980
5981 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5982 symbols without address.
5983
5984 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5985
5986 * nbsd-nat.h (struct thread_info): Add forward declaration.
5987 (nbsd_nat_target::thread_alive): Add.
5988 (nbsd_nat_target::thread_name): Likewise.
5989 (nbsd_nat_target::update_thread_list): Likewise.
5990 (update_thread_list::post_attach): Likewise.
5991 (post_attach::pid_to_str): Likewise.
5992 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5993 (nbsd_thread_lister): Add.
5994 (nbsd_nat_target::thread_alive): Likewise.
5995 (nbsd_nat_target::thread_name): Likewise.
5996 (nbsd_add_threads): Likewise.
5997 (update_thread_list::post_attach): Likewise.
5998 (nbsd_nat_target::update_thread_list): Likewise.
5999 (post_attach::pid_to_str): Likewise.
6000
6001 2020-04-06 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-valprint.c (print_variant_part): Extract the variant field.
6004 (print_field_values): Use the field as the outer value when
6005 recursing.
6006
6007 2020-04-06 Tom Tromey <tromey@adacore.com>
6008
6009 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6010 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6011 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6012 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6013 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6014
6015 2020-04-06 Tom Tromey <tromey@adacore.com>
6016
6017 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6018 TYPE_CODE_ERROR.
6019
6020 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6021
6022 * nbsd-tdep.c: Include "gdbarch.h".
6023 Define enum with NetBSD signal numbers.
6024 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6025 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6026 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6027 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6028 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6029 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6030 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6031 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6032 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6033 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6034 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6035 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6036
6037 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6038
6039 PR gdb/25325
6040 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6041
6042 2020-04-03 Tom Tromey <tromey@adacore.com>
6043
6044 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6045 Read constant block.
6046
6047 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6050 (gdb_bfd_get_full_section_contents): New declaration.
6051 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6052 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6053 gdb_bfd_get_full_section_contents.
6054
6055 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * exec.c (build_section_table): Replace internal_error with
6058 gdb_assert.
6059 (section_table_xfer_memory_partial): Likewise.
6060 * mdebugread.c (parse_partial_symbols): Likewise.
6061 * psymtab.c (lookup_partial_symbol): Likewise.
6062 * utils.c (wrap_here): Likewise.
6063
6064 2020-04-02 Tom Tromey <tromey@adacore.com>
6065
6066 * f-lang.c (build_fortran_types): Use arch_type to initialize
6067 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6068
6069 2020-04-02 Tom Tromey <tromey@adacore.com>
6070
6071 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6072 of attributes.
6073
6074 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6075 Bernd Edlinger <bernd.edlinger@hotmail.de>
6076 Tom Tromey <tromey@adacore.com>
6077
6078 * buildsym.c (buildsym_compunit::record_line): Remove
6079 deduplication code.
6080
6081 2020-04-02 Tom de Vries <tdevries@suse.de>
6082
6083 PR ada/24671
6084 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6085
6086 2020-04-02 Tom de Vries <tdevries@suse.de>
6087
6088 * dwarf2/read.c (dwarf2_gdb_index_functions,
6089 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6090 NULL.
6091 * psymtab.c (psym_lookup_global_symbol_language): New function.
6092 (psym_functions): Init psym_lookup_global_symbol_language with
6093 psym_lookup_global_symbol_language.
6094 * symfile-debug.c (debug_sym_quick_functions): Init
6095 lookup_global_symbol_language with NULL.
6096 * symfile.c (set_initial_language): Remove fixme comment.
6097 * symfile.h (struct quick_symbol_functions): Add
6098 lookup_global_symbol_language.
6099 * symtab.c (find_quick_global_symbol_language): New function.
6100 (find_main_name): Use find_quick_global_symbol_language.
6101
6102 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6105
6106 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6107
6108 * buildsym.c (record_line): Fix undefined behavior and preserve
6109 lines at eof.
6110
6111 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6112
6113 * buildsym.c (record_line): Fix the resizing condition.
6114
6115 2020-04-01 Tom Tromey <tom@tromey.com>
6116
6117 * value.h (value_literal_complex): Add comment.
6118 * valops.c (value_literal_complex): Refer to value.h.
6119
6120 2020-04-01 Tom Tromey <tom@tromey.com>
6121
6122 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6123 (scalar_type): New rule, from typebase.
6124 (typebase): Use scalar_type. Recognize complex types.
6125 (field_name): Handle FLOAT_KEYWORD.
6126 (ident_tokens): Add _Complex and __complex__.
6127
6128 2020-04-01 Tom Tromey <tom@tromey.com>
6129
6130 PR exp/25299:
6131 * valarith.c (promotion_type, complex_binop): New functions.
6132 (scalar_binop): Handle complex numbers. Use promotion_type.
6133 (value_pos, value_neg, value_complement): Handle complex numbers.
6134
6135 2020-04-01 Tom Tromey <tom@tromey.com>
6136
6137 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6138 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6139 (parse_number): Handle complex numbers.
6140
6141 2020-04-01 Tom Tromey <tom@tromey.com>
6142
6143 * c-valprint.c (c_decorations): Change complex suffix to "i".
6144
6145 2020-04-01 Tom Tromey <tom@tromey.com>
6146
6147 * valprint.c (generic_value_print_complex): Use accessors.
6148 * value.h (value_real_part, value_imaginary_part): Declare.
6149 * valops.c (value_real_part, value_imaginary_part): New
6150 functions.
6151 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6152
6153 2020-04-01 Tom Tromey <tom@tromey.com>
6154
6155 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6156 (read_range_type): Update.
6157 * mdebugread.c (basic_type): Update.
6158 * go-lang.c (build_go_types): Use init_complex_type.
6159 * gdbtypes.h (struct main_type) <complex_type>: New member.
6160 (init_complex_type): Update.
6161 (arch_complex_type): Don't declare.
6162 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6163 Make name if none given. Use alloc_type_copy. Look for cached
6164 complex type.
6165 (arch_complex_type): Remove.
6166 (gdbtypes_post_init): Use init_complex_type.
6167 * f-lang.c (build_fortran_types): Use init_complex_type.
6168 * dwarf2/read.c (read_base_type): Update.
6169 * d-lang.c (build_d_types): Use init_complex_type.
6170 * ctfread.c (read_base_type): Update.
6171
6172 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173
6174 * infrun.c (stop_all_threads): Update assertion, plus when
6175 stopping threads, take into account that we might be trying
6176 to stop an all-stop target.
6177 (stop_waiting): Call 'stop_all_threads' if there exists a
6178 non-stop target.
6179
6180 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6181
6182 * target.h (exists_non_stop_target): New function declaration.
6183 * target.c (exists_non_stop_target): New function.
6184
6185 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6186
6187 PR gdb/24789
6188 * eval.c (is_integral_or_integral_reference): New function.
6189 (evaluate_subexp_standard): Allow integer references in
6190 pointer arithmetic.
6191
6192 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6193
6194 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6195 check for no ptid in the stop reply when the target is non-stop.
6196
6197 2020-04-01 Tom Tromey <tromey@adacore.com>
6198
6199 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6200 "name" parameter to rvalue reference. Initialize m_name_holder.
6201 <lookup_name_info>: New overloads.
6202 <name>: Return gdb::string_view.
6203 <c_str>: New method.
6204 <make_ignore_params>: Update.
6205 <search_name_hash>: Update.
6206 <language_lookup_name>: Return const char *.
6207 <m_name>: Change type.
6208 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6209 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6210 (lookup_name_info::match_any): Update.
6211 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6212 Update.
6213 * minsyms.c (linkage_name_str): Update.
6214 * language.c (default_symbol_name_matcher): Update.
6215 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6216 Update.
6217 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6218 (ada_lookup_name_info::ada_lookup_name_info): Update.
6219 (literal_symbol_name_matcher): Update.
6220
6221 2020-04-01 Tom Tromey <tromey@adacore.com>
6222
6223 * psymtab.c (psymtab_search_name): Remove function.
6224 (psym_lookup_symbol): Create search name and lookup name here.
6225 (lookup_partial_symbol): Remove "name" parameter; add
6226 lookup_name.
6227 (psym_expand_symtabs_for_function): Update.
6228
6229 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6230
6231 PR tui/25597:
6232 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6233
6234 2020-03-31 Tom Tromey <tromey@adacore.com>
6235
6236 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6237 memcpy.
6238
6239 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6240
6241 * features/riscv/32bit-csr.xml: Regenerated.
6242 * features/riscv/64bit-csr.xml: Regenerated.
6243
6244 2020-03-30 Tom Tromey <tromey@adacore.com>
6245
6246 * ada-valprint.c (print_variant_part): Update.
6247 * ada-lang.h (ada_which_variant_applies): Update.
6248 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6249 outer_valaddr parameters; replace with "outer" value parameter.
6250 (to_fixed_variant_branch_type): Update.
6251
6252 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6253
6254 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6255 <list>. Remove inclusion of observable.h.
6256 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6257 (struct arch_lwp_info): New struct.
6258 (class ppc_linux_dreg_interface): New class.
6259 (struct ppc_linux_process_info): New struct.
6260 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6261 <low_new_clone, low_forget_process, low_prepare_to_resume>
6262 <copy_thread_dreg_state, mark_thread_stale>
6263 <mark_debug_registers_changed, register_hw_breakpoint>
6264 <clear_hw_breakpoint, register_wp, clear_wp>
6265 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6266 <num_memory_accesses, get_trigger_type>
6267 <create_watchpoint_request, hwdebug_point_cmp>
6268 <init_arch_lwp_info, get_arch_lwp_info>
6269 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6270 methods.
6271 <struct ptid_hash>: New inner struct.
6272 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6273 members.
6274 (saved_dabr_value, hwdebug_info, max_slots_number)
6275 (struct hw_break_tuple, struct thread_points, ppc_threads)
6276 (have_ptrace_hwdebug_interface)
6277 (hwdebug_find_thread_points_by_tid)
6278 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6279 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6280 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6281 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6282 use m_dreg_interface.
6283 (hwdebug_point_cmp): Change to...
6284 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6285 reference arguments instead of pointers.
6286 (ppc_linux_nat_target::ranged_break_num_registers): Use
6287 m_dreg_interface.
6288 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6289 m_dreg_interface. Call register_hw_breakpoint.
6290 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6291 m_dreg_interface. Call clear_hw_breakpoint.
6292 (get_trigger_type): Change to...
6293 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6294 comment.
6295 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6296 use m_dreg_interface. Call register_hw_breakpoint.
6297 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6298 use m_dreg_interface. Call clear_hw_breakpoint.
6299 (can_use_watchpoint_cond_accel): Change to...
6300 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6301 method. Update comment, use m_dreg_interface and
6302 m_process_info.
6303 (calculate_dvc): Change to...
6304 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6305 m_dreg_interface.
6306 (num_memory_accesses): Change to...
6307 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6308 (check_condition): Change to...
6309 (ppc_linux_nat_target::check_condition): ...this method.
6310 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6311 comment, use m_dreg_interface.
6312 (create_watchpoint_request): Change to...
6313 (ppc_linux_nat_target::create_watchpoint_request): ...this
6314 method. Use m_dreg_interface.
6315 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6316 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6317 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6318 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6319 (ppc_linux_nat_target::low_forget_process)
6320 (ppc_linux_nat_target::low_new_fork)
6321 (ppc_linux_nat_target::low_new_clone)
6322 (ppc_linux_nat_target::low_delete_thread)
6323 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6324 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6325 only call mark_thread_stale.
6326 (ppc_linux_thread_exit): Remove.
6327 (ppc_linux_nat_target::stopped_data_address): Change to...
6328 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6329 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6330 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6331 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6332 comment. Call low_stopped_data_address.
6333 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6334 m_dreg_interface.
6335 (ppc_linux_nat_target::masked_watch_num_registers): Use
6336 m_dreg_interface.
6337 (ppc_linux_nat_target::copy_thread_dreg_state)
6338 (ppc_linux_nat_target::mark_thread_stale)
6339 (ppc_linux_nat_target::mark_debug_registers_changed)
6340 (ppc_linux_nat_target::register_hw_breakpoint)
6341 (ppc_linux_nat_target::clear_hw_breakpoint)
6342 (ppc_linux_nat_target::register_wp)
6343 (ppc_linux_nat_target::clear_wp)
6344 (ppc_linux_nat_target::init_arch_lwp_info)
6345 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6346 (_initialize_ppc_linux_nat): Remove observer callback.
6347
6348 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6349
6350 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6351 (ppc_linux_nat_target::auxv_parse)
6352 (ppc_linux_nat_target::read_description)
6353 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6354 Move up.
6355
6356 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6357
6358 * linux-nat.h (low_new_clone): New method.
6359 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6360
6361 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6364 (dbx_expand_psymtab): ... this.
6365 (start_psymtab): Update.
6366 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6367 (mdebug_expand_psymtab): ... this.
6368 (parse_partial_symbols): Update.
6369 (new_psymtab): Update.
6370 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6371 (xcoff_expand_psymtab): ... this.
6372 (xcoff_start_psymtab): Update.
6373
6374 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6377 <expand_dependencies>: ... this.
6378 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6379 (partial_symtab::expand_dependencies): ... this.
6380 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6381 Update.
6382 (dwarf2_psymtab::expand_psymtab): Update.
6383 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6384 * mdebugread.c (psymtab_to_symtab_1): Update.
6385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6386
6387 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6388
6389 * psympriv.h (discard_psymtab): Remove.
6390 * dbxread.c (dbx_end_psymtab): Update.
6391 * xcoffread.c (xcoff_end_psymtab): Update.
6392
6393 2020-03-28 Tom Tromey <tom@tromey.com>
6394
6395 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6396 comment.
6397
6398 2020-03-28 Tom Tromey <tom@tromey.com>
6399
6400 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6401
6402 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6403
6404 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6405
6406 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6407
6408 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6409
6410 2020-03-26 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6413 (mark_common_block_symbol_computed, read_tag_string_type)
6414 (attr_to_dynamic_prop, read_subrange_type): Update.
6415 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6416 to be methods on struct attribute.
6417 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6418 (read_call_site_scope, partial_die_info::read)
6419 (partial_die_info::read, lookup_die_type, follow_die_ref):
6420 Update.
6421 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6422 from dwarf2_get_ref_die_offset.
6423 (attribute::constant_value): New method, from
6424 dwarf2_get_attr_constant_value.
6425 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6426 Declare method.
6427 <constant_value>: New method.
6428
6429 2020-03-26 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6432 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6433 (dwarf_type_encoding_name): Move to stringify.c.
6434 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6435 * dwarf2/stringify.c: New file.
6436 * dwarf2/stringify.h: New file.
6437
6438 2020-03-26 Tom Tromey <tom@tromey.com>
6439
6440 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6441 Rewrite.
6442
6443 2020-03-26 Tom Tromey <tom@tromey.com>
6444
6445 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6446 methods.
6447 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6448 (lookup_ranges_base): Likewise.
6449 (read_cutu_die_from_dwo, read_full_die_1): Update.
6450
6451 2020-03-26 Tom Tromey <tom@tromey.com>
6452
6453 * dwarf2/read.c (read_import_statement, read_file_scope)
6454 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6455 (read_lexical_block_scope, read_call_site_scope)
6456 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6457 (handle_struct_member_die, process_structure_scope)
6458 (update_enumeration_type_from_children)
6459 (process_enumeration_scope, read_array_type, read_common_block)
6460 (read_namespace, read_module, read_subroutine_type): Update.
6461 (sibling_die): Remove.
6462
6463 2020-03-26 Tom Tromey <tom@tromey.com>
6464
6465 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6466 (build_type_psymtabs_reader, read_structure_type)
6467 (read_enumeration_type, read_full_die_1): Update.
6468 (dwarf2_attr_no_follow): Move to die.h.
6469 * dwarf2/die.h (struct die_info) <attr>: New method.
6470
6471 2020-03-26 Tom Tromey <tom@tromey.com>
6472
6473 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6474 <base_address>: Now an optional.
6475 (dwarf2_find_base_address, dwarf2_rnglists_process)
6476 (dwarf2_ranges_process, fill_in_loclist_baton)
6477 (dwarf2_symbol_mark_computed): Update.
6478
6479 2020-03-26 Tom Tromey <tom@tromey.com>
6480
6481 * dwarf2/read.c (struct die_info): Move to die.h.
6482 * dwarf2/die.h: New file.
6483
6484 2020-03-26 Tom Tromey <tom@tromey.com>
6485
6486 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6487 * dwarf2/read.c
6488 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6489 Move to line-header.c.
6490 (read_checked_initial_length_and_offset, read_formatted_entries):
6491 Likewise.
6492 (dwarf_decode_line_header): Split into two.
6493 * dwarf2/line-header.c
6494 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6495 Move from read.c.
6496 (read_checked_initial_length_and_offset, read_formatted_entries):
6497 Likewise.
6498 (dwarf_decode_line_header): New function, split from read.c.
6499
6500 2020-03-26 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6503 Declare method.
6504 * dwarf2/read.c (read_attribute_value): Update.
6505 (dwarf2_per_objfile::read_line_string): Rename from
6506 read_indirect_line_string.
6507 (read_formatted_entries): Update.
6508
6509 2020-03-26 Tom Tromey <tom@tromey.com>
6510
6511 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6512 variable.
6513
6514 2020-03-26 Tom Tromey <tom@tromey.com>
6515
6516 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6517 const.
6518 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6519 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6520 parameter const.
6521
6522 2020-03-26 Tom Tromey <tom@tromey.com>
6523
6524 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6525 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6526 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6527 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6528
6529 2020-03-26 Tom Tromey <tom@tromey.com>
6530
6531 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6532 file_names_size, file_full_name, file_file_name>: Use const.
6533 <file_name_at, file_names>: Add const overload.
6534 * dwarf2/line-header.c (line_header::file_file_name)
6535 (line_header::file_full_name): Update.
6536
6537 2020-03-26 Tom Tromey <tom@tromey.com>
6538
6539 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6540 (macro_start_file, consume_improper_spaces)
6541 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6542 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6543 (dwarf_decode_macros): Move to macro.c.
6544 * dwarf2/macro.c: New file.
6545 * dwarf2/macro.h: New file.
6546 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6547
6548 2020-03-26 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6551 method.
6552 * dwarf2/section.c: New method. From
6553 read_indirect_string_at_offset_from.
6554 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6555 (read_indirect_string_at_offset_from): Move to section.c.
6556 (read_indirect_string_at_offset): Rewrite.
6557 (read_indirect_line_string_at_offset): Remove.
6558 (read_indirect_string, read_indirect_line_string)
6559 (dwarf_decode_macro_bytes): Update.
6560
6561 2020-03-26 Tom Tromey <tom@tromey.com>
6562
6563 * dwarf2/section.h (struct dwarf2_section_info)
6564 <overload_complaint>: Declare.
6565 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6566 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6567 Rename from dwarf2_section_buffer_overflow_complaint.
6568 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6569 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6570
6571 2020-03-26 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6574 Declare.
6575 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6576 Move from read.c.
6577 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6578 to section.c.
6579
6580 2020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6583
6584 2020-03-26 Tom Tromey <tom@tromey.com>
6585
6586 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6587 "builder".
6588 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6589 parameter.
6590 (dwarf_decode_macros): Update.
6591
6592 2020-03-26 Tom Tromey <tom@tromey.com>
6593
6594 * dwarf2/read.c (read_attribute_value): Update.
6595 (read_indirect_string_from_dwz): Move to dwz.c; change into
6596 method.
6597 (dwarf_decode_macro_bytes): Update.
6598 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6599 * dwarf2/dwz.c: New file.
6600 * Makefile.in (COMMON_SFILES): Add dwz.c.
6601
6602 2020-03-26 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6605 * dwarf2/read.c: Add include.
6606 * dwarf2/index-write.c: Add include.
6607 * dwarf2/index-cache.c: Add include.
6608 * dwarf2/dwz.h: New file.
6609
6610 2020-03-25 Tom Tromey <tom@tromey.com>
6611
6612 * compile/compile-object-load.c (get_out_value_type): Mention
6613 correct symbol name in error message.
6614
6615 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6616
6617 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6618
6619 2020-03-25 Tom de Vries <tdevries@suse.de>
6620
6621 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6622 * symmisc.c (dump_symtab_1): Print user and includes fields.
6623 (maintenance_info_symtabs): Same.
6624
6625 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6626
6627 PR gdb/25534
6628 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6629 (riscv_regcache_cooked_write): New function.
6630 (riscv_push_dummy_call): Use new function.
6631 (riscv_return_value): Likewise.
6632
6633 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6636 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6637 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6638 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6639 * infrun.c (follow_fork): Likewise.
6640 (follow_fork_inferior): Likewise.
6641 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6642 * linux-nat.h (class linux_nat_target): Likewise.
6643 * remote.c (class remote_target) <follow_fork>: Likewise.
6644 (remote_target::follow_fork): Likewise.
6645 * target-delegates.c: Re-generate.
6646 * target.c (default_follow_fork): Likewise.
6647 (target_follow_fork): Likewise.
6648 * target.h (struct target_ops) <follow_fork>: Likewise.
6649 (target_follow_fork): Likewise.
6650
6651 2020-03-24 Tom de Vries <tdevries@suse.de>
6652
6653 * psymtab.c (maintenance_info_psymtabs): Print user field.
6654
6655 2020-03-20 Tom Tromey <tromey@adacore.com>
6656
6657 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6658 const.
6659 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6660 const.
6661
6662 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * ptrace.m4: Don't check for ptrace declaration.
6665 * config.in: Re-generate.
6666 * configure: Re-generate.
6667 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6668 not defined.
6669
6670 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6671
6672 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6673 `PTRACE_TYPE_RET'.
6674 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6675 * sparc-nat.c (gdb_ptrace): Likewise.
6676 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6677
6678 2020-03-20 Tom Tromey <tromey@adacore.com>
6679
6680 * c-exp.y (lex_one_token): Fix assert.
6681
6682 2020-03-20 Tom Tromey <tromey@adacore.com>
6683
6684 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6685 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6686 strncpy call.
6687
6688 2020-03-20 Tom Tromey <tromey@adacore.com>
6689
6690 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6691
6692 2020-03-20 Tom Tromey <tromey@adacore.com>
6693
6694 * ada-valprint.c (print_variant_part): Remove parameters; switch
6695 to value-based API.
6696 (print_field_values): Likewise.
6697 (ada_val_print_struct_union): Likewise.
6698 (ada_value_print_1): Update.
6699
6700 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6701
6702 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6703 nbsd_nat_target instead of inf_ptrace_target.
6704 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6705 nbsd_nat_target.
6706
6707 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6708
6709 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6710 it to the ptrace call.
6711 * (store_registers): Likewise.
6712
6713 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6714
6715 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6716 it to the ptrace call.
6717 * (store_registers): Likewise.
6718
6719 2020-03-19 Luis Machado <luis.machado@linaro.org>
6720
6721 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6722 valid, fetch vg value from ptrace.
6723
6724 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6725 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6726 * inf-ptrace.c: Likewise.
6727 * (gdb_ptrace): Add.
6728 * (inf_ptrace_target::resume): Update.
6729 * (inf_ptrace_target::xfer_partial): Likewise.
6730 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6731 * (inf_ptrace_peek_poke): Update.
6732
6733 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6734
6735 * x86-bsd-nat.c (gdb_ptrace): New.
6736 * (x86bsd_dr_set): Add new argument `ptid'.
6737 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6738 x86bsd_dr_set_addr): Update.
6739
6740 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * remote.c (remote_target::process_stop_reply): Handle events for
6743 all threads differently.
6744
6745 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * completer.c (completion_tracker::remove_completion): Define new
6748 function.
6749 * completer.h (completion_tracker::remove_completion): Declare new
6750 function.
6751 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6752 when adding a C++ function symbol.
6753
6754 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 * completer.c (completion_tracker::completion_hash_entry): Define
6757 new class.
6758 (advance_to_filename_complete_word_point): Call
6759 recompute_lowest_common_denominator.
6760 (completion_tracker::completion_tracker): Call discard_completions
6761 to setup the hash table.
6762 (completion_tracker::discard_completions): Allow for being called
6763 from the constructor, pass new equal function, and element deleter
6764 when constructing the hash table. Initialise new class member
6765 variables.
6766 (completion_tracker::maybe_add_completion): Remove use of
6767 m_entries_vec, and store more information into m_entries_hash.
6768 (completion_tracker::recompute_lcd_visitor): New function, most
6769 content taken from...
6770 (completion_tracker::recompute_lowest_common_denominator):
6771 ...here, this now just visits each item in the hash calling the
6772 above visitor.
6773 (completion_tracker::build_completion_result): Remove use of
6774 m_entries_vec, call recompute_lowest_common_denominator.
6775 * completer.h (completion_tracker::have_completions): Remove use
6776 of m_entries_vec.
6777 (completion_tracker::completion_hash_entry): Declare new class.
6778 (completion_tracker::recompute_lowest_common_denominator): Change
6779 function signature.
6780 (completion_tracker::recompute_lcd_visitor): Declare new function.
6781 (completion_tracker::m_entries_vec): Delete.
6782 (completion_tracker::m_entries_hash): Initialize to NULL.
6783 (completion_tracker::m_lowest_common_denominator_valid): New
6784 member variable.
6785 (completion_tracker::m_lowest_common_denominator_max_length): New
6786 member variable.
6787
6788 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6789
6790 * regformats/regdef.h: Put reg in gdb namespace.
6791
6792 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6793
6794 * i386-bsd-nat.c (gdb_ptrace): New.
6795 * (i386bsd_fetch_inferior_registers,
6796 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6797 * (i386bsd_fetch_inferior_registers,
6798 i386bsd_store_inferior_registers) Use gdb_ptrace.
6799
6800 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6801
6802 * amd64-bsd-nat.c (gdb_ptrace): New.
6803 * (amd64bsd_fetch_inferior_registers,
6804 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6805 * (amd64bsd_fetch_inferior_registers,
6806 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6807
6808 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6809
6810 * user-regs.c (user_reg::read): Rename to...
6811 (user_reg::xread): ...this.
6812 * (append_user_reg): Rename argument `read' to `xread'.
6813 * (user_reg_add_builtin): Likewise.
6814 * (user_reg_add): Likewise.
6815 * (value_of_user_reg): Likewise.
6816
6817 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6818
6819 * sparc-nat.c (gdb_ptrace): New.
6820 * sparc-nat.c (sparc_fetch_inferior_registers)
6821 (sparc_store_inferior_registers) Remove obsolete comment.
6822 * sparc-nat.c (sparc_fetch_inferior_registers)
6823 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6824 * sparc-nat.c (sparc_fetch_inferior_registers)
6825 (sparc_store_inferior_registers) Use gdb_ptrace.
6826
6827 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6828
6829 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6830 it to the ptrace call.
6831 * sh-nbsd-nat.c (store_registers): Likewise.
6832
6833 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6834
6835 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6836 nbsd_nat_target instead of inf_ptrace_target.
6837 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6838 nbsd_nat_target.
6839
6840 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6841
6842 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6843
6844 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6845
6846 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6847 <sys/sysctl.h>.
6848 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6849
6850 2020-03-17 Tom de Vries <tdevries@suse.de>
6851
6852 PR gdb/23710
6853 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6854 fields.
6855 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6856 fields.
6857 (process_imported_unit_die): Skip import of c++ CUs.
6858
6859 2020-03-16 Tom Tromey <tom@tromey.com>
6860
6861 * p-valprint.c (pascal_object_print_value): Initialize
6862 base_value.
6863
6864 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6865 Shahab Vahedi <shahab@synopsys.com>
6866
6867 * Makefile.in: Add arch/arc.o
6868 * configure.tgt: Likewise.
6869 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6870 (_initialize_arc_tdep): Don't initialize old target descriptions.
6871 (arc_read_description): New function to cache target descriptions.
6872 * arc-tdep.h (arc_read_description): Add proto type.
6873 * arch/arc.c: New file.
6874 * arch/arc.h: Likewise.
6875 * features/Makefile: Replace old target descriptions with new.
6876 * features/arc-arcompact.c: Remove.
6877 * features/arc-arcompact.xml: Likewise.
6878 * features/arc-v2.c: Likewise
6879 * features/arc-v2.xml: Likewise
6880 * features/arc/aux-arcompact.xml: New file.
6881 * features/arc/aux-v2.xml: Likewise.
6882 * features/arc/core-arcompact.xml: Likewise.
6883 * features/arc/core-v2.xml: Likewise.
6884 * features/arc/aux-arcompact.c: Generate.
6885 * features/arc/aux-v2.c: Likewise.
6886 * features/arc/core-arcompact.c: Likewise.
6887 * features/arc/core-v2.c: Likewise.
6888 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6889
6890 2020-03-16 Tom Tromey <tromey@adacore.com>
6891
6892 PR gdb/25663:
6893 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6894 putting value into bcache.
6895
6896 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6897
6898 PR gdb/21500
6899 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6900 to...
6901 (amd64_windows_init_abi_common): ... this. Don't set size of
6902 long type.
6903 (amd64_windows_init_abi): New function.
6904 (amd64_cygwin_init_abi): New function.
6905 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6906 the Cygwin OS ABI.
6907 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6908 comment.
6909
6910 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6913 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6914 (pe_import_directory_entry): New struct type.
6915 (is_linked_with_cygwin_dll): New function.
6916 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6917 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6918 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6919
6920 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6923 i386_cygwin_core_osabi_sniffer.
6924
6925 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * i386-cygwin-tdep.c: Rename to...
6928 * i386-windows-tdep.c: ... this.
6929 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6930 i386-windows-tdep.c.
6931 * configure.tgt: Likewise.
6932
6933 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6936 * osabi.c (gdb_osabi_names): Add "Windows".
6937 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6938 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6939 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6940 i386_cygwin_osabi_sniffer.
6941 (_initialize_i386_cygwin_tdep): Register OS ABI
6942 GDB_OSABI_WINDOWS for i386.
6943 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6944 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6945 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6946 for x86-64.
6947 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6948 when the target matches '*-*-mingw*'.
6949
6950 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * defs.h (enum gdb_osabi): Move to...
6953 * osabi.h (enum gdb_osabi): ... here.
6954 * gdbarch.sh: Include osabi.h in gdbarch.h.
6955 * gdbarch.h: Re-generate.
6956
6957 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6960 function.
6961 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6962
6963 2020-03-14 Tom Tromey <tom@tromey.com>
6964
6965 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6966 for C++.
6967 (c_type_print_modifier): Likewise. Add "language" parameter.
6968 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6969 (c_type_print_base_1): Update.
6970 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6971 constants.
6972 * type-stack.c (type_stack::insert): Handle tp_atomic and
6973 tp_restrict.
6974 (type_stack::follow_type_instance_flags): Likewise.
6975 (type_stack::follow_types): Likewise. Merge type-following code.
6976 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6977 (space_identifier, cv_with_space_id)
6978 (const_or_volatile_or_space_identifier_noopt)
6979 (const_or_volatile_or_space_identifier): Remove.
6980 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6981 rules.
6982 (ptr_operator, typebase): Update.
6983 (enum token_flag) <FLAG_C>: New constant.
6984 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6985 "_Atomic".
6986 (lex_one_token): Handle FLAG_C.
6987
6988 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6989
6990 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6991 it to the ptrace call.
6992 * m68k-bsd-nat.c (store_registers): Likewise.
6993
6994 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6995
6996 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6997 gdb_byte *.
6998 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6999 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7000 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7001
7002 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7003
7004 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7005 nbsd_nat_target instead of inf_ptrace_target.
7006 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7007 nbsd_nat_target.
7008
7009 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7010
7011 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7012 register_t.
7013
7014 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7015
7016 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7017 it to the ptrace call.
7018 * alpha-bsd-nat.c (store_registers): Likewise.
7019
7020 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7021
7022 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7023 includes.
7024 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7025 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7026 fill_fpregset): Likewise.
7027
7028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7029
7030 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7031 nbsd_nat_target instead of inf_ptrace_target.
7032 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7033 nbsd_nat_target.
7034
7035 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7036
7037 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7038 register_t.
7039
7040 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7041
7042 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7043 it to the ptrace call.
7044 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7045 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7046 * arm-nbsd-nat.c (store_register): Likewise.
7047 * arm-nbsd-nat.c (store_regs): Likewise.
7048 * arm-nbsd-nat.c (store_fp_register): Likewise.
7049 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7050
7051 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7052
7053 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7054 nbsd_nat_target instead of inf_ptrace_target.
7055 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7056 nbsd_nat_target.
7057
7058 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7059
7060 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7061 it to the ptrace call.
7062 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7063
7064 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7065
7066 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7067 it to the ptrace call.
7068 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7069
7070 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7071
7072 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7073 gdb_byte *.
7074 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7075
7076 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7077
7078 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7079 instead of inf_ptrace_target.
7080 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7081 nbsd_nat_target.
7082
7083 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7084
7085 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7086 register_t.
7087
7088 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7089
7090 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7091 register_t.
7092
7093 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7094
7095 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7096 register_t.
7097
7098 2020-03-13 Tom Tromey <tom@tromey.com>
7099
7100 * value.h (val_print): Don't declare.
7101 * valprint.h (val_print_array_elements)
7102 (val_print_scalar_formatted, generic_val_print): Don't declare.
7103 * valprint.c (generic_val_print_array): Take a struct value.
7104 (generic_val_print_ptr, generic_val_print_memberptr)
7105 (generic_val_print_bool, generic_val_print_int)
7106 (generic_val_print_char, generic_val_print_complex)
7107 (generic_val_print): Remove.
7108 (generic_value_print): Update.
7109 (do_val_print): Remove unused parameters. Don't call
7110 la_val_print.
7111 (val_print): Remove.
7112 (common_val_print): Update. Don't call value_check_printable.
7113 (val_print_scalar_formatted, val_print_array_elements): Remove.
7114 * rust-lang.c (rust_val_print): Remove.
7115 (rust_language_defn): Update.
7116 * p-valprint.c (pascal_val_print): Remove.
7117 (pascal_value_print_inner): Update.
7118 (pascal_object_print_val_fields, pascal_object_print_val):
7119 Remove.
7120 (pascal_object_print_static_field): Update.
7121 * p-lang.h (pascal_val_print): Don't declare.
7122 * p-lang.c (pascal_language_defn): Update.
7123 * opencl-lang.c (opencl_language_defn): Update.
7124 * objc-lang.c (objc_language_defn): Update.
7125 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7126 * m2-lang.h (m2_val_print): Don't declare.
7127 * m2-lang.c (m2_language_defn): Update.
7128 * language.h (struct language_defn) <la_val_print>: Remove.
7129 * language.c (unk_lang_value_print_inner): Rename. Change
7130 argument types.
7131 (unknown_language_defn, auto_language_defn): Update.
7132 * go-valprint.c (go_val_print): Remove.
7133 * go-lang.h (go_val_print): Don't declare.
7134 * go-lang.c (go_language_defn): Update.
7135 * f-valprint.c (f_val_print): Remove.
7136 * f-lang.h (f_value_print): Don't declare.
7137 * f-lang.c (f_language_defn): Update.
7138 * d-valprint.c (d_val_print): Remove.
7139 * d-lang.h (d_value_print): Don't declare.
7140 * d-lang.c (d_language_defn): Update.
7141 * cp-valprint.c (cp_print_value_fields)
7142 (cp_print_value_fields_rtti, cp_print_value): Remove.
7143 (cp_print_static_field): Update.
7144 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7145 (c_val_print_struct, c_val_print_union, c_val_print_int)
7146 (c_val_print_memberptr, c_val_print): Remove.
7147 * c-lang.h (c_val_print_array, cp_print_value_fields)
7148 (cp_print_value_fields_rtti): Don't declare.
7149 * c-lang.c (c_language_defn, cplus_language_defn)
7150 (asm_language_defn, minimal_language_defn): Update.
7151 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7152 (ada_val_print_enum): Take a struct value.
7153 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7154 (ada_val_print): Remove.
7155 (ada_value_print_1): Update.
7156 (printable_val_type): Remove.
7157 * ada-lang.h (ada_val_print): Don't declare.
7158 * ada-lang.c (ada_language_defn): Update.
7159
7160 2020-03-13 Tom Tromey <tom@tromey.com>
7161
7162 * valprint.c (do_val_print): Update.
7163 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7164 a struct value.
7165 (value_to_value_object_no_release): Declare.
7166 * python/py-value.c (value_to_value_object_no_release): New
7167 function.
7168 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7169 struct value.
7170 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7171 function.
7172 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7173 a struct value.
7174 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7175 Declare.
7176 (gdbscm_apply_val_pretty_printer): Take a struct value.
7177 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7178 value.
7179 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7180 value.
7181 * extension-priv.h (struct extension_language_ops)
7182 <apply_val_pretty_printer>: Take a struct value.
7183 * cp-valprint.c (cp_print_value): Create a struct value.
7184 (cp_print_value): Update.
7185
7186 2020-03-13 Tom Tromey <tom@tromey.com>
7187
7188 * ada-valprint.c (print_field_values): Call common_val_print.
7189
7190 2020-03-13 Tom Tromey <tom@tromey.com>
7191
7192 * ada-valprint.c (val_print_packed_array_elements): Remove
7193 bitoffset and val parameters. Call common_val_print.
7194 (ada_val_print_string): Remove offset, address, and original_value
7195 parameters.
7196 (ada_val_print_array): Update.
7197 (ada_value_print_array): New function.
7198 (ada_value_print_1): Call it.
7199
7200 2020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * ada-valprint.c (ada_value_print): Use common_val_print.
7203
7204 2020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7207
7208 2020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * ada-valprint.c (ada_value_print_num): New function.
7211 (ada_value_print_1): Use it.
7212
7213 2020-03-13 Tom Tromey <tom@tromey.com>
7214
7215 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7216
7217 2020-03-13 Tom Tromey <tom@tromey.com>
7218
7219 * ada-valprint.c (ada_value_print_ptr): New function.
7220 (ada_value_print_1): Use it.
7221
7222 2020-03-13 Tom Tromey <tom@tromey.com>
7223
7224 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7225 call common_val_print.
7226 (ada_val_print_1): Update.
7227 (ada_value_print_1): New function.
7228 (ada_value_print_inner): Rewrite.
7229
7230 2020-03-13 Tom Tromey <tom@tromey.com>
7231
7232 * cp-valprint.c (cp_print_value_fields): Update.
7233 (cp_print_value): New function.
7234
7235 2020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * m2-valprint.c (m2_value_print_inner): Use
7238 cp_print_value_fields.
7239 * cp-valprint.c (cp_print_value_fields): New function.
7240 * c-valprint.c (c_value_print_struct): New function.
7241 (c_value_print_inner): Use c_value_print_struct.
7242 * c-lang.h (cp_print_value_fields): Declare.
7243
7244 2020-03-13 Tom Tromey <tom@tromey.com>
7245
7246 * c-valprint.c (c_value_print_array): New function.
7247 (c_value_print_inner): Use it.
7248
7249 2020-03-13 Tom Tromey <tom@tromey.com>
7250
7251 * c-valprint.c (c_value_print_memberptr): New function.
7252 (c_value_print_inner): Use it.
7253
7254 2020-03-13 Tom Tromey <tom@tromey.com>
7255
7256 * c-valprint.c (c_value_print_int): New function.
7257 (c_value_print_inner): Use it.
7258
7259 2020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * c-valprint.c (c_value_print_ptr): New function.
7262 (c_value_print_inner): Use it.
7263
7264 2020-03-13 Tom Tromey <tom@tromey.com>
7265
7266 * c-valprint.c (c_value_print_inner): Rewrite.
7267
7268 2020-03-13 Tom Tromey <tom@tromey.com>
7269
7270 * valprint.c (generic_value_print_complex): New function.
7271 (generic_value_print): Use it.
7272
7273 2020-03-13 Tom Tromey <tom@tromey.com>
7274
7275 * valprint.c (generic_val_print_float): Don't call
7276 val_print_scalar_formatted.
7277 (generic_val_print, generic_value_print): Update.
7278
7279 2020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * valprint.c (generic_value_print_char): New function
7282 (generic_value_print): Use it.
7283
7284 2020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * valprint.c (generic_value_print_int): New function.
7287 (generic_value_print): Use it.
7288
7289 2020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * valprint.c (generic_value_print_bool): New function.
7292 (generic_value_print): Use it.
7293
7294 2020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * valprint.c (generic_val_print_func): Simplify.
7297 (generic_val_print, generic_value_print): Update.
7298
7299 2020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * valprint.c (generic_val_print_flags): Remove.
7302 (generic_val_print, generic_value_print): Update.
7303 (val_print_type_code_flags): Add original_value parameter.
7304
7305 2020-03-13 Tom Tromey <tom@tromey.com>
7306
7307 * valprint.c (generic_val_print): Update.
7308 (generic_value_print): Update.
7309 * valprint.c (generic_val_print_enum): Don't call
7310 val_print_scalar_formatted.
7311
7312 2020-03-13 Tom Tromey <tom@tromey.com>
7313
7314 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7315 * valprint.c (generic_value_print_ptr): New function.
7316
7317 2020-03-13 Tom Tromey <tom@tromey.com>
7318
7319 * valprint.c (generic_value_print): Rewrite.
7320
7321 2020-03-13 Tom Tromey <tom@tromey.com>
7322
7323 * p-valprint.c (pascal_object_print_value_fields)
7324 (pascal_object_print_value): New functions.
7325
7326 2020-03-13 Tom Tromey <tom@tromey.com>
7327
7328 * p-valprint.c (pascal_value_print_inner): Rewrite.
7329
7330 2020-03-13 Tom Tromey <tom@tromey.com>
7331
7332 * f-valprint.c (f_value_print_innner): Rewrite.
7333
7334 2020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * m2-valprint.c (m2_print_unbounded_array): New overload.
7337 (m2_print_unbounded_array): Update.
7338 (m2_print_array_contents): Take a struct value.
7339 (m2_value_print_inner): Rewrite.
7340
7341 2020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7344 (d_value_print_inner): New function.
7345 * d-lang.h (d_value_print_inner): Declare.
7346 * d-lang.c (d_language_defn): Use d_value_print_inner.
7347
7348 2020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * go-valprint.c (go_value_print_inner): New function.
7351 * go-lang.h (go_value_print_inner): Declare.
7352 * go-lang.c (go_language_defn): Use go_value_print_inner.
7353
7354 2020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7357 API.
7358 (rust_val_print): Rewrite.
7359 (rust_value_print_inner): New function, from rust_val_print.
7360 (rust_language_defn): Use rust_value_print_inner.
7361
7362 2020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * ada-valprint.c (ada_value_print_inner): New function.
7365 * ada-lang.h (ada_value_print_inner): Declare.
7366 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7367
7368 2020-03-13 Tom Tromey <tom@tromey.com>
7369
7370 * f-valprint.c (f_value_print_innner): New function.
7371 * f-lang.h (f_value_print_innner): Declare.
7372 * f-lang.c (f_language_defn): Use f_value_print_innner.
7373
7374 2020-03-13 Tom Tromey <tom@tromey.com>
7375
7376 * p-valprint.c (pascal_value_print_inner): New function.
7377 * p-lang.h (pascal_value_print_inner): Declare.
7378 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7379
7380 2020-03-13 Tom Tromey <tom@tromey.com>
7381
7382 * m2-valprint.c (m2_value_print_inner): New function.
7383 * m2-lang.h (m2_value_print_inner): Declare.
7384 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7385
7386 2020-03-13 Tom Tromey <tom@tromey.com>
7387
7388 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7389 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7390 * c-valprint.c (c_value_print_inner): New function.
7391 * c-lang.h (c_value_print_inner): Declare.
7392 * c-lang.c (c_language_defn, cplus_language_defn)
7393 (asm_language_defn, minimal_language_defn): Use
7394 c_value_print_inner.
7395
7396 2020-03-13 Tom Tromey <tom@tromey.com>
7397
7398 * p-valprint.c (pascal_object_print_value_fields): Now static.
7399 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * c-valprint.c (c_val_print_array): Simplify.
7404
7405 2020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * valprint.c (value_print_array_elements): New function.
7408 * valprint.h (value_print_array_elements): Declare.
7409
7410 2020-03-13 Tom Tromey <tom@tromey.com>
7411
7412 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7413 * mips-tdep.c (mips_print_register): Use
7414 value_print_scalar_formatted.
7415
7416 2020-03-13 Tom Tromey <tom@tromey.com>
7417
7418 * valprint.h (value_print_scalar_formatted): Declare.
7419 * valprint.c (value_print_scalar_formatted): New function.
7420
7421 2020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * valprint.h (generic_value_print): Declare.
7424 * valprint.c (generic_value_print): New function.
7425
7426 2020-03-13 Tom Tromey <tom@tromey.com>
7427
7428 * valprint.c (do_val_print): Call la_value_print_inner, if
7429 available.
7430 * rust-lang.c (rust_language_defn): Update.
7431 * p-lang.c (pascal_language_defn): Update.
7432 * opencl-lang.c (opencl_language_defn): Update.
7433 * objc-lang.c (objc_language_defn): Update.
7434 * m2-lang.c (m2_language_defn): Update.
7435 * language.h (struct language_defn) <la_value_print_inner>: New
7436 member.
7437 * language.c (unknown_language_defn, auto_language_defn): Update.
7438 * go-lang.c (go_language_defn): Update.
7439 * f-lang.c (f_language_defn): Update.
7440 * d-lang.c (d_language_defn): Update.
7441 * c-lang.c (c_language_defn, cplus_language_defn)
7442 (asm_language_defn, minimal_language_defn): Update.
7443 * ada-lang.c (ada_language_defn): Update.
7444
7445 2020-03-13 Tom Tromey <tom@tromey.com>
7446
7447 * c-valprint.c (c_value_print): Use common_val_print.
7448
7449 2020-03-13 Tom Tromey <tom@tromey.com>
7450
7451 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7452
7453 2020-03-13 Tom Tromey <tom@tromey.com>
7454
7455 * f-valprint.c (f77_print_array_1, f_val_print): Use
7456 common_val_print.
7457
7458 2020-03-13 Tom Tromey <tom@tromey.com>
7459
7460 * riscv-tdep.c (riscv_print_one_register_info): Use
7461 common_val_print.
7462
7463 2020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * mi/mi-main.c (output_register): Use common_val_print.
7466
7467 2020-03-13 Tom Tromey <tom@tromey.com>
7468
7469 * infcmd.c (default_print_one_register_info): Use
7470 common_val_print.
7471
7472 2020-03-13 Tom Tromey <tom@tromey.com>
7473
7474 * valprint.h (common_val_print_checked): Declare.
7475 * valprint.c (common_val_print_checked): New function.
7476 * stack.c (print_frame_arg): Use common_val_print_checked.
7477
7478 2020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * valprint.c (do_val_print): New function, from val_print.
7481 (val_print): Use do_val_print.
7482 (common_val_print): Use do_val_print.
7483
7484 2020-03-13 Tom Tromey <tom@tromey.com>
7485
7486 * valprint.c (value_print): Use scoped_value_mark.
7487
7488 2020-03-13 Tom de Vries <tdevries@suse.de>
7489
7490 PR symtab/25646
7491 * psymtab.c (partial_symtab::partial_symtab): Don't set
7492 globals_offset and statics_offset. Push element onto
7493 current_global_psymbols and current_static_psymbols stacks.
7494 (concat): New function.
7495 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7496 element from current_global_psymbols and current_static_psymbols
7497 stacks. Concat popped elements to global_psymbols and
7498 static_symbols.
7499 (add_psymbol_to_list): Use current_global_psymbols and
7500 current_static_psymbols stacks.
7501 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7502 current_static_psymbols fields.
7503
7504 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7505
7506 * corelow.c (sniff_core_bfd): Remove.
7507 (class core_target) <m_core_vec>: Remove.
7508 (core_target::core_target): Update.
7509 (core_file_fns): Remove.
7510 (deprecated_add_core_fns): Remove.
7511 (default_core_sniffer): Remove.
7512 (sniff_core_bfd): Remove.
7513 (default_check_format): Remove.
7514 (gdb_check_format): Remove.
7515 (core_target_open): Update.
7516 (core_target::get_core_register_section): Update.
7517 (get_core_registers_cb): Update.
7518 (core_target::fetch_registers): Update.
7519 * gdbcore.h (struct core_fns): Remove.
7520 (deprecated_add_core_fns): Remove.
7521 (default_core_sniffer): Remove.
7522 (default_check_format): Remove.
7523
7524 2020-03-12 Tom Tromey <tom@tromey.com>
7525
7526 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7527 CORE_ADDR.
7528 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7529
7530 2020-03-12 Tom Tromey <tom@tromey.com>
7531
7532 * remote.c (remote_target::download_tracepoint)
7533 (remote_target::enable_tracepoint)
7534 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7535 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7536 sprintf_vma.
7537
7538 2020-03-12 Tom Tromey <tom@tromey.com>
7539
7540 * symfile-mem.c: Update CORE_ADDR size assert.
7541
7542 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7543
7544 * selftest.m4: Move to gdbsupport/.
7545 * acinclude.m4: Update path to selftest.m4.
7546
7547 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7550 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7551 gdbarch-selfselftests.c and selftest-arch.c.
7552 (SUBDIR_UNITTESTS_OBS): Rename to...
7553 (SELFTESTS_OBS): ... this.
7554 (COMMON_SFILES): Remove disasm-selftests.c and
7555 gdbarch-selftests.c.
7556 * configure.ac: Don't add selftest-arch.{c,o} to
7557 CONFIG_{SRCS,OBS}.
7558 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7559 preprocessor conditions.
7560
7561 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7562
7563 * configure.ac: Don't source bfd/development.sh.
7564 * selftest.m4: Modify comment.
7565 * configure: Re-generate.
7566
7567 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7570 not "true" or "false".
7571 * configure: Re-generate.
7572
7573 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7574
7575 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7576 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7577 renamed to arm_nbsd_supply_gregset.
7578 (fetch_register): Update to call arm_nbsd_supply_gregset.
7579 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7580 (arm_netbsd_nat_target::fetch_registers): Update.
7581 (fetch_elfcore_registers): Removed.
7582 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7583 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7584 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7585 not require NetBSD system headers.
7586 (arm_nbsd_regset): New struct.
7587 (arm_nbsd_iterate_over_regset_sections): New function.
7588 (arm_netbsd_init_abi_common): Updated to call
7589 set_gdbarch_iterate_over_regset_sections.
7590 * arm-nbsd-tdep.h: New file.
7591
7592 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7593
7594 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7595 recursion.
7596
7597 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * configure: Re-generate.
7600
7601 2020-03-11 Tom Tromey <tromey@adacore.com>
7602
7603 * ada-typeprint.c (print_choices): Fix comment.
7604
7605 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7606
7607 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7608 previous item in the list, when the list has no items.
7609
7610 2020-03-11 Tom de Vries <tdevries@suse.de>
7611
7612 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7613 PROP_LOCLIST handling code.
7614
7615 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * buildsym-legacy.c (record_line): Pass extra parameter to
7618 record_line.
7619 * buildsym.c (buildsym_compunit::record_line): Take an extra
7620 parameter, reduce duplication in the line table, and record the
7621 is_stmt flag in the line table.
7622 * buildsym.h (buildsym_compunit::record_line): Add extra
7623 parameter.
7624 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7625 non-statement lines.
7626 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7627 this to the symtab builder.
7628 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7629 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7630 through to dwarf_record_line_1.
7631 * infrun.c (process_event_stop_test): When stepping, don't stop at
7632 a non-statement instruction, and only refresh the step info when
7633 we land in the middle of a line's range. Also add an extra
7634 comment.
7635 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7636 field.
7637 * record-btrace.c (btrace_find_line_range): Only record lines
7638 marked as is-statement.
7639 * stack.c (frame_show_address): Show the frame address if we are
7640 in a non-statement sal.
7641 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7642 (maintenance_print_one_line_table): Print a header for the is_stmt
7643 column, and include is_stmt information in the output.
7644 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7645 preference to non-statements.
7646 (find_pcs_for_symtab_line): Prefer is-statement entries.
7647 (find_line_common): Likewise.
7648 * symtab.h (struct linetable_entry): Add is_stmt field.
7649 (struct symtab_and_line): Likewise.
7650 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7651 arranging the line table.
7652
7653 2020-03-07 Tom de Vries <tdevries@suse.de>
7654
7655 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7656 DIE.
7657
7658 2020-03-07 Tom Tromey <tom@tromey.com>
7659
7660 * valops.c (value_literal_complex): Remove obsolete comment.
7661 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7662 comment.
7663
7664 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7665
7666 * infrun.h: Forward-declare thread_info.
7667 (set_step_info): Add thread_info parameter, add doc.
7668 * infrun.c (set_step_info): Add thread_info parameter, move doc
7669 to header.
7670 * infrun.c (process_event_stop_test): Pass thread to
7671 set_step_info call.
7672 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7673 set_step_info.
7674 (prepare_one_step): Add thread_info parameter, pass it to
7675 set_step_frame and prepare_one_step (recursive) call.
7676 (step_1): Pass thread to prepare_one_step call.
7677 (step_command_fsm::should_stop): Pass thread to
7678 prepare_one_step.
7679 (until_next_fsm): Pass thread to set_step_frame call.
7680 (finish_command): Pass thread to set_step_info call.
7681
7682 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7683
7684 * windows-tdep.c (windows_solib_create_inferior_hook):
7685 Check if inferior is running.
7686
7687 2020-03-06 Tom de Vries <tdevries@suse.de>
7688
7689 * NEWS: Fix "the the".
7690 * ctfread.c: Same.
7691
7692 2020-03-06 Tom de Vries <tdevries@suse.de>
7693
7694 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7695
7696 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7697
7698 * .dir-locals.el: Add a comment referencing the other copies of
7699 this file.
7700
7701 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7702
7703 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7704 psargs.
7705
7706 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7707
7708 * .gitattributes: New file.
7709
7710 2020-03-04 Tom Tromey <tom@tromey.com>
7711
7712 * symmisc.c (print_symbol_bcache_statistics)
7713 (print_objfile_statistics): Update.
7714 * symfile.c (allocate_symtab): Use intern.
7715 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7716 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7717 macro_cache>: Remove.
7718 <string_cache>: New member.
7719 (struct objfile) <intern>: New methods.
7720 * elfread.c (elf_symtab_read): Use intern.
7721 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7722 (dwarf2_compute_name, dwarf2_physname)
7723 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7724 names.
7725 (guess_partial_die_structure_name): Update.
7726 (partial_die_info::fixup): Intern name.
7727 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7728 name.
7729 (dwarf2_name): Intern name. Update.
7730 * buildsym.c (buildsym_compunit::get_macro_table): Use
7731 string_cache.
7732
7733 2020-03-04 Tom Tromey <tom@tromey.com>
7734
7735 * jit.c (bfd_open_from_target_memory): Make "target" const.
7736 * corefile.c (gnutarget): Now const.
7737 * gdbcore.h (gnutarget): Now const.
7738
7739 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7740
7741 * NEWS: Mention support for WOW64 processes.
7742 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7743 (amd64_windows_segment_register_p): Remove static.
7744 (_initialize_amd64_windows_nat): Update.
7745 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7746 * i386-windows-nat.c (context_offset): Update.
7747 (i386_mappings): Rename and remove static.
7748 (i386_windows_segment_register_p): Remove static.
7749 (_initialize_i386_windows_nat): Update.
7750 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7751 (STATUS_WX86_SINGLE_STEP): New macro.
7752 (EnumProcessModulesEx): New macro.
7753 (Wow64SuspendThread): New macro.
7754 (Wow64GetThreadContext): New macro.
7755 (Wow64SetThreadContext): New macro.
7756 (Wow64GetThreadSelectorEntry): New macro.
7757 (windows_set_context_register_offsets): Add static.
7758 (windows_set_segment_register_p): Likewise.
7759 (windows_add_thread): Adapt for WOW64 processes.
7760 (windows_fetch_one_register): Likewise.
7761 (windows_nat_target::fetch_registers): Likewise.
7762 (windows_store_one_register): Likewise.
7763 (display_selector): Likewise.
7764 (display_selectors): Likewise.
7765 (handle_exception): Likewise.
7766 (windows_continue): Likewise.
7767 (windows_nat_target::resume): Likewise.
7768 (windows_add_all_dlls): Likewise.
7769 (do_initial_windows_stuff): Likewise.
7770 (windows_nat_target::attach): Likewise.
7771 (windows_get_exec_module_filename): Likewise.
7772 (windows_nat_target::create_inferior): Likewise.
7773 (windows_xfer_siginfo): Likewise.
7774 (_initialize_loadable): Initialize Wow64SuspendThread,
7775 Wow64GetThreadContext, Wow64SetThreadContext,
7776 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7777 * windows-nat.h (windows_set_context_register_offsets):
7778 Remove declaration.
7779 (windows_set_segment_register_p): Likewise.
7780 (i386_windows_segment_register_p): Add declaration.
7781 (amd64_windows_segment_register_p): Likewise.
7782
7783 2020-03-04 Luis Machado <luis.machado@linaro.org>
7784
7785 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7786 in "info registers" for AArch64/ARM.
7787
7788 The change caused "info registers" to not print GPR's.
7789
7790 gdb/ChangeLog:
7791
7792 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7793
7794 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7795 when reg->group is empty and reggroup is not.
7796
7797 2020-03-03 Tom Tromey <tromey@adacore.com>
7798
7799 * dwarf2/frame.c (struct dwarf2_frame_cache)
7800 <checked_tailcall_bottom, entry_cfa_sp_offset,
7801 entry_cfa_sp_offset_p>: Remove members.
7802 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7803 (dwarf2_frame_prev_register): Don't call
7804 dwarf2_tailcall_sniffer_first.
7805 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7806 * frame-unwind.c (add_unwinder): New fuction.
7807 (frame_unwind_init): Use it. Add tailcall unwinder.
7808
7809 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7810 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7811
7812 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7813 value should be printed as true.
7814
7815 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7816
7817 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7818 (windows_init_abi): Set and use windows_so_ops.
7819
7820 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7823 when verifying if dealing with a convenience variable.
7824
7825 2020-03-03 Luis Machado <luis.machado@linaro.org>
7826
7827 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7828
7829 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * infrun.c (gdbarch_supports_displaced_stepping): New.
7832 (use_displaced_stepping): Break up conditions in smaller pieces.
7833 Use gdbarch_supports_displaced_stepping.
7834 (displaced_step_prepare_throw): Use
7835 gdbarch_supports_displaced_stepping.
7836
7837 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * NEWS: Mention new behaviour of the history filename.
7840 * top.c (write_history_p): Add comment.
7841 (show_write_history_p): Add header comment, give a different
7842 message when history writing is on, but the history filename is
7843 empty.
7844 (history_filename): Add comment.
7845 (history_filename_empty): New function.
7846 (show_history_filename): Add header comment, give a different
7847 message when the filename is empty.
7848 (init_history): Compare history_filename against nullptr, and only
7849 read history if the filename is not empty.
7850 (set_history_filename): Add header comment, and only make
7851 non-empty filenames absolute.
7852 (init_main): Make the filename argument to 'set history filename'
7853 optional.
7854
7855 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7856
7857 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7858 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7859 (fetch_fp_register): Update.
7860 (fetch_fp_regs): Update.
7861 (store_fp_register): Update.
7862 (store_fp_regs): Update.
7863 (arm_netbsd_nat_target::read_description): New function.
7864 (fetch_elfcore_registers): Update.
7865
7866 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7867
7868 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7869 general_thread if the stop reply is missing a thread-id.
7870 (remote_target::process_stop_reply): Use the first non-exited
7871 thread if the target didn't pass a thread-id.
7872 * infrun.c (do_target_wait): Move call to
7873 switch_to_inferior_no_thread to ....
7874 (do_target_wait_1): ... here.
7875
7876 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7877
7878 * debuginfod-support.c: Include defs.h first.
7879
7880 2020-02-28 Tom de Vries <tdevries@suse.de>
7881
7882 * symfile.c (set_initial_language): Use default language for lookup.
7883
7884 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7885
7886 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7887 reader variable, pass `this` to read_cutu_die_from_dwo.
7888
7889 2020-02-27 Aaron Merey <amerey@redhat.com>
7890
7891 * source.c (open_source_file): Check for nullptr when computing
7892 srcpath.
7893
7894 2020-02-27 Tom Tromey <tromey@adacore.com>
7895
7896 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7897 member.
7898 (dwarf2_add_field): Don't update nfields.
7899 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7900
7901 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7904 abs.
7905
7906 2020-02-26 Tom Tromey <tom@tromey.com>
7907
7908 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7909 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7910 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7911 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7912 per_cu_data.
7913
7914 2020-02-26 Tom Tromey <tom@tromey.com>
7915
7916 * dwarf2/index-write.c (psym_index_map): Change type.
7917 (add_address_entry_worker, write_one_signatured_type)
7918 (recursively_count_psymbols, recursively_write_psymbols)
7919 (class debug_names, psyms_seen_size, write_gdbindex)
7920 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7921
7922 2020-02-26 Aaron Merey <amerey@redhat.com>
7923
7924 * Makefile.in: Handle optional debuginfod support.
7925 * NEWS: Update.
7926 * README: Add --with-debuginfod summary.
7927 * config.in: Regenerate.
7928 * configure: Regenerate.
7929 * configure.ac: Handle optional debuginfod support.
7930 * debuginfod-support.c: debuginfod helper functions.
7931 * debuginfod-support.h: Ditto.
7932 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7933 summary.
7934 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7935 when a dwz file cannot be found.
7936 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7937 debuginfo file cannot be found.
7938 * source.c (open_source_file): Query debuginfod servers when a
7939 source file cannot be found.
7940 * top.c (print_gdb_configuration): Include
7941 --{with,without}-debuginfod in the output.
7942
7943 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7944
7945 * thread.c (thr_try_catch_cmd): Print thread name.
7946
7947 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7948
7949 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7950 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7951 dwarf2_fetch_die_type_sect_off): Move to...
7952 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7953 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7954 dwarf2_fetch_die_type_sect_off): ... here.
7955 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7956 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7957 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7958
7959 2020-02-26 Tom de Vries <tdevries@suse.de>
7960
7961 PR gdb/25603
7962 * symfile.c (set_initial_language): Exit-early if
7963 language_mode == language_mode_manual.
7964
7965 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7966
7967 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7968 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7969 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7970
7971 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * gdbtypes.c (create_array_type_with_stride): Handle negative
7974 array strides.
7975 * valarith.c (value_subscripted_rvalue): Likewise.
7976
7977 2020-02-25 Luis Machado <luis.machado@linaro.org>
7978
7979 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7980
7981 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7982
7983 * loc.h (dwarf2_get_die_type): Move to...
7984 * read.h (dwarf2_get_die_type): ... here.
7985 * read.c (dwarf2_get_die_type): Move doc to header.
7986
7987 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7988
7989 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7990 'gnulib/Makefile.in' to the list.
7991
7992 2020-02-24 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7995 Remove.
7996 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7997 XOBNEWVEC.
7998
7999 2020-02-24 Tom Tromey <tom@tromey.com>
8000
8001 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8002 New method.
8003 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8004 (dw2_do_instantiate_symtab, dw2_get_file_names)
8005 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8006
8007 2020-02-24 Tom Tromey <tom@tromey.com>
8008
8009 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8010 make_scoped_restore.
8011 (dwarf2_psymtab::read_symtab): Don't clear
8012 reading_partial_symbols.
8013
8014 2020-02-24 Tom de Vries <tdevries@suse.de>
8015
8016 PR gdb/25592
8017 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8018
8019 2020-02-24 Tom de Vries <tdevries@suse.de>
8020
8021 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8022 commands layout next/prev/regs.
8023
8024 2020-02-22 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8027 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8028
8029 2020-02-22 Tom Tromey <tom@tromey.com>
8030
8031 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8032
8033 2020-02-22 Tom Tromey <tom@tromey.com>
8034
8035 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8036 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8037 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8038 * tui/tui.c (_initialize_tui): Add usage text.
8039
8040 2020-02-22 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-win.c (tui_set_focus_command)
8043 (tui_set_win_height_command): Use error_no_arg.
8044 (_initialize_tui_win): Update help text.
8045 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8046
8047 2020-02-22 Tom Tromey <tom@tromey.com>
8048
8049 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8050 * tui/tui-disasm.h (struct tui_disasm_window)
8051 <display_start_addr>: Declare.
8052 * tui/tui-source.h (struct tui_source_window)
8053 <display_start_addr>: Declare.
8054 * tui/tui-winsource.h (struct tui_source_window_base)
8055 <show_source_line, display_start_addr>: New methods.
8056 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8057 Rename and move to protected section.
8058 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8059 (tui_source_window_base::do_erase_source_content): Update.
8060 (tui_source_window_base::show_source_line): Now a method.
8061 (tui_source_window_base::show_source_content)
8062 (tui_source_window_base::tui_source_window_base)
8063 (tui_source_window_base::rerender)
8064 (tui_source_window_base::refill)
8065 (tui_source_window_base::do_scroll_horizontal)
8066 (tui_source_window_base::set_is_exec_point_at)
8067 (tui_source_window_base::update_breakpoint_info)
8068 (tui_source_window_base::update_exec_info): Update.
8069 * tui/tui-source.c (tui_source_window::set_contents)
8070 (tui_source_window::showing_source_p)
8071 (tui_source_window::do_scroll_vertical)
8072 (tui_source_window::location_matches_p)
8073 (tui_source_window::line_is_displayed): Update.
8074 (tui_source_window::display_start_addr): New method.
8075 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8076 (tui_disasm_window::do_scroll_vertical)
8077 (tui_disasm_window::location_matches_p): Update.
8078 (tui_disasm_window::display_start_addr): New method.
8079
8080 2020-02-22 Tom Tromey <tom@tromey.com>
8081
8082 * NEWS: Add entry for gdb.register_window_type.
8083 * tui/tui-layout.h (window_factory): New typedef.
8084 (tui_register_window): Declare.
8085 * tui/tui-layout.c (saved_tui_windows): New global.
8086 (tui_apply_current_layout): Use it.
8087 (tui_register_window): New function.
8088 * python/python.c (do_start_initialization): Call
8089 gdbpy_initialize_tui.
8090 (python_GdbMethods): Add "register_window_type" function.
8091 * python/python-internal.h (gdbpy_register_tui_window)
8092 (gdbpy_initialize_tui): Declare.
8093 * python/py-tui.c: New file.
8094 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8095
8096 2020-02-22 Tom Tromey <tom@tromey.com>
8097
8098 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8099
8100 2020-02-22 Tom Tromey <tom@tromey.com>
8101
8102 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8103 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8104 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8105 (tui_set_win_focus_to): Move from tui-win.c.
8106
8107 2020-02-22 Tom Tromey <tom@tromey.com>
8108
8109 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8110 functions.
8111 (known_window_types): New global.
8112 (tui_get_window_by_name): Reimplement.
8113 (initialize_known_windows): New function.
8114 (validate_window_name): Rewrite.
8115 (_initialize_tui_layout): Call initialize_known_windows.
8116
8117 2020-02-22 Tom Tromey <tom@tromey.com>
8118
8119 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8120 Remove constants.
8121 * tui/tui-winsource.h (struct tui_source_window_base)
8122 <tui_source_window_base>: Remove parameter.
8123 * tui/tui-winsource.c
8124 (tui_source_window_base::tui_source_window_base): Remove
8125 parameter.
8126 (tui_source_window_base::refill): Update.
8127 * tui/tui-stack.h (struct tui_locator_window)
8128 <tui_locator_window>: Update.
8129 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8130 Default the constructor.
8131 * tui/tui-regs.h (struct tui_data_item_window)
8132 <tui_data_item_window>: Default the constructor.
8133 (struct tui_data_window) <tui_data_window>: Likewise.
8134 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8135 Default the constructor.
8136 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8137 Default the constructor.
8138 <type>: Remove.
8139 (struct tui_win_info) <tui_win_info>: Default the constructor.
8140 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8141 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8142 Default the constructor.
8143
8144 2020-02-22 Tom Tromey <tom@tromey.com>
8145
8146 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8147 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8148 * tui/tui-win.c (tui_resize_all): Don't call
8149 tui_delete_invisible_windows.
8150 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8151 done.
8152 (tui_set_layout): Update.
8153 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8154 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8155 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8156
8157 2020-02-22 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8160 correctly.
8161
8162 2020-02-22 Tom Tromey <tom@tromey.com>
8163
8164 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8165
8166 2020-02-22 Tom Tromey <tom@tromey.com>
8167
8168 * tui/tui-winsource.h (struct tui_source_window_iterator)
8169 <inner_iterator>: New etytypedef.
8170 <tui_source_window_iterator>: Take "end" parameter.
8171 <tui_source_window_iterator>: Take iterator.
8172 <operator*, advance>: Update.
8173 <m_iter>: Change type.
8174 <m_end>: New field.
8175 (struct tui_source_windows) <begin, end>: Update.
8176 * tui/tui-layout.c (tui_windows): New global.
8177 (tui_apply_current_layout): Clear tui_windows.
8178 (tui_layout_window::apply): Update tui_windows.
8179 * tui/tui-data.h (tui_windows): Declare.
8180 (all_tui_windows): Now inline function.
8181 (class tui_window_iterator, struct all_tui_windows): Remove.
8182
8183 2020-02-22 Tom Tromey <tom@tromey.com>
8184
8185 PR tui/17850:
8186 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8187 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8188 "height" argument.
8189 (class tui_layout_window) <get_sizes>: Likewise.
8190 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8191 argument.
8192 <get_sizes>: Add "height" argument.
8193 <m_vertical>: New field.
8194 * tui/tui-layout.c (tui_layout_split::clone): Update.
8195 (tui_layout_split::get_sizes): Add "height" argument.
8196 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8197 (tui_new_layout_command): Parse "-horizontal".
8198 (_initialize_tui_layout): Update help string.
8199 (tui_layout_split::specification): Add "-horizontal" when needed.
8200 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8201 argument.
8202 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8203 New methods.
8204
8205 2020-02-22 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-layout.h (enum tui_adjust_result): New.
8208 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8209 (class tui_layout_window) <adjust_size>: Return
8210 tui_adjust_result. Rewrite.
8211 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8212 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8213
8214 2020-02-22 Tom Tromey <tom@tromey.com>
8215
8216 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8217 parameter and return types.
8218 (class tui_layout_base) <specification>: Add "depth".
8219 (class tui_layout_window) <specification>: Add "depth".
8220 (class tui_layout_split) <specification>: Add "depth".
8221 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8222 and return types.
8223 (tui_new_layout_command): Parse sub-layouts.
8224 (_initialize_tui_layout): Update help string.
8225 (tui_layout_window::specification): Add "depth".
8226 (add_layout_command): Update.
8227
8228 2020-02-22 Tom Tromey <tom@tromey.com>
8229
8230 * NEWS: Add "tui new-layout" item.
8231 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8232 Add new-layout command to help text.
8233 (validate_window_name): New function.
8234 (tui_new_layout_command): New function.
8235 (_initialize_tui_layout): Register "new-layout".
8236 (tui_layout_window::specification): New method.
8237 (tui_layout_window::specification): New method.
8238 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8239 method.
8240 (class tui_layout_window) <specification>: New method.
8241 (class tui_layout_split) <specification>: New method.
8242
8243 2020-02-22 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8246 * tui/tui-win.c (window_name_completer): Update comment.
8247 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8248 Declare method.
8249 (class tui_layout_window) <replace_window>: Likewise.
8250 (class tui_layout_split) <replace_window>: Likewise.
8251 (tui_set_layout): Don't declare.
8252 (tui_set_initial_layout): Declare function.
8253 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8254 (asm_regs_layout): New globals.
8255 (tui_current_layout, show_layout): Remove.
8256 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8257 (find_layout, tui_apply_layout): New function.
8258 (layout_completer): Remove.
8259 (tui_next_layout): Reimplement.
8260 (tui_next_layout_command): New function.
8261 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8262 (tui_regs_layout): Reimplement.
8263 (tui_regs_layout_command): New function.
8264 (extract_display_start_addr): Rewrite.
8265 (next_layout, prev_layout): Remove.
8266 (tui_layout_window::replace_window): New method.
8267 (tui_layout_split::replace_window): New method.
8268 (destroy_layout): New function.
8269 (layout_list): New global.
8270 (add_layout_command): New function.
8271 (initialize_layouts): Update.
8272 (tui_layout_command): New function.
8273 (_initialize_tui_layout): Install "layout" commands.
8274 * tui/tui-data.h (enum tui_layout_type): Remove.
8275 (tui_current_layout): Don't declare.
8276
8277 2020-02-22 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-regs.c (tui_reg_layout): Remove.
8280 (tui_reg_command): Use tui_regs_layout.
8281 * tui/tui-layout.h (tui_reg_command): Declare.
8282 * tui/tui-layout.c (tui_reg_command): New function.
8283
8284 2020-02-22 Tom Tromey <tom@tromey.com>
8285
8286 * tui/tui.c (tui_rl_delete_other_windows): Call
8287 tui_remove_some_windows.
8288 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8289 Declare method.
8290 (class tui_layout_window) <remove_windows>: New method.
8291 (class tui_layout_split) <remove_windows>: Declare.
8292 (tui_remove_some_windows): Declare.
8293 * tui/tui-layout.c (tui_remove_some_windows): New function.
8294 (tui_layout_split::remove_windows): New method.
8295
8296 2020-02-22 Tom Tromey <tom@tromey.com>
8297
8298 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8299 * tui/tui-layout.h (tui_next_layout): Declare.
8300 * tui/tui-layout.c (tui_next_layout): New function.
8301
8302 2020-02-22 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8305 correct coordinates.
8306
8307 2020-02-22 Tom Tromey <tom@tromey.com>
8308
8309 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8310 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8311 DATA_WIN case.
8312
8313 2020-02-22 Tom Tromey <tom@tromey.com>
8314
8315 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8316 TUI_DISASM_WIN, not tui_win_list.
8317
8318 2020-02-22 Tom Tromey <tom@tromey.com>
8319
8320 * valprint.c (generic_val_print_enum_1)
8321 (val_print_type_code_flags): Style member names.
8322 * rust-lang.c (val_print_struct, rust_print_enum)
8323 (rust_print_struct_def, rust_internal_print_type): Style member
8324 names.
8325 * p-valprint.c (pascal_object_print_value_fields): Style member
8326 names. Only call fprintf_symbol_filtered for static members.
8327 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8328 * f-valprint.c (f_val_print): Style member names.
8329 * f-typeprint.c (f_type_print_base): Style member names.
8330 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8331 call fprintf_symbol_filtered for static members.
8332 (cp_print_class_member): Style member names.
8333 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8334 member names.
8335 * ada-valprint.c (ada_print_scalar): Style enum names.
8336 (ada_val_print_enum): Likewise.
8337 * ada-typeprint.c (print_enum_type): Style enum names.
8338
8339 2020-02-21 Tom Tromey <tom@tromey.com>
8340
8341 * psympriv.h (struct partial_symtab): Update comment.
8342
8343 2020-02-21 Tom Tromey <tromey@adacore.com>
8344
8345 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8346 type is CORE_ADDR.
8347
8348 2020-02-21 Tom de Vries <tdevries@suse.de>
8349
8350 PR gdb/25534
8351 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8352 if dependencies[i]->user != NULL.
8353
8354 2020-02-21 Ali Tamur <tamur@google.com>
8355
8356 * dwarf2/read.c (dwarf2_name): Add null check.
8357
8358 2020-02-20 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8361 ">=", in binary search.
8362 (dwarf2_find_containing_comp_unit): New overload.
8363 (run_test): New self-test.
8364 (_initialize_dwarf2_read): Register new test.
8365
8366 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8367
8368 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8369 * riscv-tdep.h: Likewise.
8370 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8371 rv32-only CSR.
8372 * features/riscv/64bit-csr.xml: Regenerated.
8373
8374 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8375 Tom Tromey <tom@tromey.com>
8376
8377 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8378 of 'fputc_unfiltered'.
8379 (putchar_unfiltered): Call 'fputc_unfiltered'.
8380 (fputc_unfiltered): Call 'fputs_unfiltered'.
8381
8382 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * config.in: Regenerate.
8385 * configure: Regenerate.
8386 * configure.ac: Add --with-python-libdir option.
8387 * main.c: Use WITH_PYTHON_LIBDIR.
8388
8389 2020-02-19 Tom Tromey <tom@tromey.com>
8390
8391 * symtab.c (general_symbol_info::compute_and_set_names): Use
8392 obstack_strndup. Simplify call to symbol_set_demangled_name.
8393
8394 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8395
8396 * dwarf2/read.c (allocate_signatured_type_table,
8397 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8398 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8399 Remove objfile parameter, update all callers.
8400
8401 2020-02-19 Doug Evans <dje@google.com>
8402
8403 PR rust/25535
8404 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8405 rust_enum_variant calculation.
8406
8407 2020-02-19 Tom Tromey <tromey@adacore.com>
8408
8409 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8410
8411 2020-02-19 Tom Tromey <tromey@adacore.com>
8412
8413 * ada-lang.c (cache_symbol): Use obstack_strdup.
8414
8415 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8416
8417 * configure: Regenerate.
8418
8419 2020-02-19 Tom Tromey <tromey@adacore.com>
8420
8421 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8422 NULL check.
8423
8424 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8425
8426 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8427
8428 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8431 if GDBSERVER is not defined.
8432 (riscv_tdesc_cache): Likewise, also store const target_desc.
8433 (STATIC_IN_GDB): Define.
8434 (riscv_create_target_description): Update declaration with
8435 STATIC_IN_GDB.
8436 (riscv_lookup_target_description): New function, only define if
8437 GDBSERVER is not defined.
8438 * arch/riscv.h (riscv_create_target_description): Declare only
8439 when GDBSERVER is defined.
8440 (riscv_lookup_target_description): New declaration when GDBSERVER
8441 is not defined.
8442 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8443 (riscv_linux_read_features): ...this, and return
8444 riscv_gdbarch_features instead of target_desc.
8445 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8446 (riscv_linux_read_description): Rename to...
8447 (riscv_linux_read_features): ...this.
8448 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8449 Update to use riscv_gdbarch_features and
8450 riscv_lookup_target_description.
8451 * riscv-tdep.c (riscv_find_default_target_description): Use
8452 riscv_lookup_target_description instead of
8453 riscv_create_target_description.
8454
8455 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8456
8457 * valprint.c (generic_val_print_enum_1): When printing a flag
8458 enum with value 0 and there is no enumerator with value 0, print
8459 just "0" instead of "(unknown: 0x0)".
8460
8461 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8462
8463 * valprint.c (generic_val_print_enum_1): Print unknown part of
8464 flag enum in hex.
8465
8466 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8467
8468 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8469 flag enums to contain duplicate enumerators.
8470 * valprint.c (generic_val_print_enum_1): Update comment.
8471
8472 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * dwarf2/read.c: Include "count-one-bits.h".
8475 (update_enumeration_type_from_children): If an enumerator has
8476 multiple bits set, don't treat the enumeration as a "flag enum".
8477 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8478 of flag enums have 0 or 1 bit set.
8479
8480 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8481
8482 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8483 conversion.
8484 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8485 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8486 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8487 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8488 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8489
8490 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8493
8494 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8497 displaced_step_closure_up.
8498 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8499 (struct displaced_step_closure_up):
8500 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8501 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8502 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8503 Likewise.
8504 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8505 * gdbarch.c, gdbarch.h: Re-generate.
8506 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8507 displaced_step_closure_up.
8508 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8509 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8510 * infrun.h (displaced_step_closure_up): New type alias.
8511 (struct displaced_step_inferior_state) <step_closure>: Change
8512 type to displaced_step_closure_up.
8513 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8514 displaced_step_closure_up.
8515 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8516
8517 2020-02-14 Tom Tromey <tom@tromey.com>
8518
8519 * minidebug.c (gnu_debug_key): New global.
8520 (find_separate_debug_file_in_section): Use it.
8521
8522 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8525 std::unique_ptr.
8526 * gdbarch.c: Re-generate.
8527 * gdbarch.h: Re-generate.
8528 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8529 change.
8530 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8531 type to std::unique_ptr.
8532 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8533 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8534 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8535 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8537 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8538 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8539 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8540 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8541
8542 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8545 std::unique_ptr.
8546 (displaced_step_clear): Rename to...
8547 (displaced_step_reset): ... this. Just call displaced->reset ().
8548 (displaced_step_clear_cleanup): Rename to...
8549 (displaced_step_reset_cleanup): ... this.
8550 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8551 (displaced_step_fixup): Likewise.
8552 (resume_1): Likewise.
8553 (handle_inferior_event): Restore child's memory before calling
8554 displaced_step_fixup on the parent.
8555 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8556 to std::unique_ptr.
8557 <step_closure>: Change type to std::unique_ptr.
8558
8559 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * arm-tdep.c: Include count-one-bits.h.
8562 (cleanup_block_store_pc): Use count_one_bits.
8563 (cleanup_block_load_pc): Use count_one_bits.
8564 (arm_copy_block_xfer): Use count_one_bits.
8565 (thumb2_copy_block_xfer): Use count_one_bits.
8566 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8567 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8568 (thumb_get_next_pcs_raw): Use count_one_bits.
8569 (arm_get_next_pcs_raw): Use count_one_bits_l.
8570 * arch/arm.c (bitcount): Remove.
8571 * arch/arm.h (bitcount): Remove.
8572
8573 2020-02-14 Tom Tromey <tromey@adacore.com>
8574
8575 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8576 Update.
8577 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8578 * dwarf2/loc.c (call_site_find_chain_1): Return
8579 unique_xmalloc_ptr.
8580 (call_site_find_chain): Likewise.
8581
8582 2020-02-14 Richard Biener <rguenther@suse.de>
8583
8584 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8585 on expression with division operators.
8586
8587 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8588
8589 * MAINTAINERS (Write After Approval): Adding myself.
8590
8591 2020-02-12 Tom Tromey <tom@tromey.com>
8592
8593 * event-loop.c (event_data, gdb_event, event_handler_func):
8594 Remove.
8595
8596 2020-02-12 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8599 (dwarf2_frame_objfile_data): Add comment.
8600 (find_comp_unit, set_comp_unit): New functions.
8601 (dwarf2_frame_find_fde): Use find_comp_unit.
8602 (dwarf2_build_frame_info): Use set_comp_unit.
8603
8604 2020-02-12 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8607 (comp_unit): Don't initialize objfile.
8608 (execute_cfa_program): Add text_offset parameter.
8609 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8610 (dwarf2_frame_cache): Update.
8611 (dwarf2_build_frame_info): Don't set "objfile" member.
8612
8613 2020-02-12 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8616 (decode_frame_entry): Likewise.
8617 (dwarf2_build_frame_info): Update.
8618
8619 2020-02-12 Tom Tromey <tom@tromey.com>
8620
8621 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8622 (decode_frame_entry_1): Use the comp_unit obstack.
8623
8624 2020-02-12 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2/frame.c (struct comp_unit): Add initializers and
8627 constructor.
8628 (dwarf2_frame_objfile_data): Store a comp_unit.
8629 (dwarf2_frame_find_fde): Update.
8630 (dwarf2_build_frame_info): Use "new".
8631
8632 2020-02-12 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8635 (dwarf2_fde_table): Typedef for std::vector.
8636 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8637 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8638 (decode_frame_entry): Update.
8639 (dwarf2_build_frame_info): Use "new".
8640
8641 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8642
8643 * arm-tdep.c (arm_gdbarch_init): Update.
8644 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8645 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8646 have_neon, is_m>: Change to bool.
8647
8648 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8649
8650 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8651
8652 2020-02-12 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8655
8656 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8657
8658 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8659 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8660
8661 2020-02-11 Tom Tromey <tom@tromey.com>
8662
8663 * psymtab.h: Update comment.
8664
8665 2020-02-11 Tom Tromey <tom@tromey.com>
8666
8667 * gdb_obstack.h (struct auto_obstack): Use
8668 DISABLE_COPY_AND_ASSIGN.
8669
8670 2020-02-11 Tom Tromey <tom@tromey.com>
8671
8672 * dwarf2/frame.h (struct objfile): Don't forward declare.
8673
8674 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8675
8676 * cris-tdep.c (cris_supply_gregset): Change signature to match
8677 what struct regset expects.
8678 (cris_regset): New struct.
8679 (fetch_core_registers): Remove.
8680 (cris_iterate_over_regset_sections): New function.
8681 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8682 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8683
8684 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8685
8686 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8687 registers.
8688
8689 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8690
8691 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8692
8693 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * configure: Re-generate.
8696
8697 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * configure: Re-generate.
8700
8701 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * acinclude: Update warning.m4 path.
8704 * warning.m4: Move to gdbsupport.
8705
8706 2020-02-11 Tom Tromey <tromey@adacore.com>
8707
8708 * remote.c (remote_console_output): Update.
8709 * printcmd.c (printf_command): Update.
8710 * event-loop.c (gdb_wait_for_event): Update.
8711 * linux-nat.c (sigchld_handler): Update.
8712 * remote-sim.c (gdb_os_write_stdout): Update.
8713 (gdb_os_flush_stdout): Update.
8714 (gdb_os_flush_stderr): Update.
8715 (gdb_os_write_stderr): Update.
8716 * exceptions.c (print_exception): Update.
8717 * remote-fileio.c (remote_fileio_func_read): Update.
8718 (remote_fileio_func_write): Update.
8719 * tui/tui.c (tui_enable): Update.
8720 * tui/tui-interp.c (tui_interp::init): Update.
8721 * utils.c (init_page_info): Update.
8722 (putchar_unfiltered, fputc_unfiltered): Update.
8723 (gdb_flush): Update.
8724 (emit_style_escape): Update.
8725 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8726 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8727 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8728 (stderr_file::write): Update.
8729 (stderr_file::puts): Update.
8730 * ui-file.h (ui_file_isatty, ui_file_write)
8731 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8732 (ui_file_puts): Don't declare.
8733
8734 2020-02-10 Tom de Vries <tdevries@suse.de>
8735
8736 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8737 sentinel to char *.
8738
8739 2020-02-09 Tom de Vries <tdevries@suse.de>
8740
8741 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8742 filename if it matches "<artificial>".
8743
8744 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8745
8746 * windows-tdep.c (struct enum_value_name): New struct.
8747 (create_enum): New function.
8748 (windows_get_siginfo_type): Create and use enum types.
8749
8750 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8751
8752 * NEWS: Mention $_siginfo support for Windows.
8753 * windows-nat.c (handle_exception): Set siginfo_er.
8754 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8755 (windows_xfer_siginfo): New function.
8756 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8757 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8758 (init_windows_gdbarch_data): New function.
8759 (get_windows_gdbarch_data): New function.
8760 (windows_get_siginfo_type): New function.
8761 (windows_init_abi): Register windows_get_siginfo_type.
8762 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8763
8764 2020-02-08 Tom Tromey <tom@tromey.com>
8765
8766 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8767 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8768 <keep>: Declare method.
8769 <m_keep>: Remove member.
8770 <~cutu_reader>: Remove.
8771 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8772 (cutu_reader::cutu_reader): Update.
8773 (cutu_reader::keep): Rename from ~cutu_reader.
8774 (process_psymtab_comp_unit, build_type_psymtabs_1)
8775 (process_skeletonless_type_unit, load_partial_comp_unit)
8776 (load_full_comp_unit, dwarf2_read_addr_index)
8777 (read_signatured_type): Update.
8778
8779 2020-02-08 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8782 "want_partial_unit" parameter.
8783 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8784 Inline check for DW_TAG_partial_unit.
8785 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8786
8787 2020-02-08 Tom Tromey <tom@tromey.com>
8788
8789 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8790 read.c.
8791 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8792 read.c.
8793
8794 2020-02-08 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/read.c (read_address): Move to comp-unit.c.
8797 (dwarf2_rnglists_process, dwarf2_ranges_process)
8798 (read_attribute_value, dwarf_decode_lines_1)
8799 (var_decode_location, decode_locdesc): Update.
8800 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8801 read.c. Remove "cu" parameter.
8802 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8803 method.
8804
8805 2020-02-08 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8808 (read_indirect_line_string): Update.
8809 * dwarf2/comp-unit.c (read_offset): Remove.
8810 (read_comp_unit_head): Update.
8811 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8812 method.
8813 (read_offset): Don't declare.
8814
8815 2020-02-08 Tom Tromey <tom@tromey.com>
8816
8817 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8818 * dwarf2/read.c (struct comp_unit_head): Move to
8819 dwarf2/comp-unit.h.
8820 (enum class rcuh_kind): Move to comp-unit.h.
8821 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8822 (read_comp_unit_head, error_check_comp_unit_head)
8823 (read_and_check_comp_unit_head): Move to comp-unit.c.
8824 (read_offset, dwarf_unit_type_name): Likewise.
8825 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8826 (cutu_reader::cutu_reader, read_call_site_scope)
8827 (find_partial_die, follow_die_offset): Update.
8828 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8829
8830 2020-02-08 Tom Tromey <tom@tromey.com>
8831
8832 * dwarf2/read.c (read_offset_1): Move to leb.c.
8833 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8834 (dwarf_decode_macro_bytes): Update.
8835 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8836 * dwarf2/leb.h (read_offset): Declare.
8837
8838 2020-02-08 Tom Tromey <tom@tromey.com>
8839
8840 * dwarf2/read.c (dwarf2_section_size): Remove.
8841 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8842 Update.
8843 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8844
8845 2020-02-08 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/read.c (read_initial_length): Move to leb.c.
8848 * dwarf2/leb.h (read_initial_length): Declare.
8849 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8850 handle_nonstd parameter.
8851 * dwarf2/frame.c (read_initial_length): Remove.
8852 (decode_frame_entry_1): Update.
8853
8854 2020-02-08 Tom Tromey <tom@tromey.com>
8855
8856 * dwarf2/loc.c (dwarf2_find_location_expression)
8857 (dwarf_evaluate_loc_desc::get_tls_address)
8858 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8859 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8860 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8861 (dwarf2_compile_property_to_c)
8862 (dwarf2_loc_desc_get_symbol_read_needs)
8863 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8864 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8865 (loclist_describe_location, loclist_tracepoint_var_ref)
8866 (loclist_generate_c_location): Update.
8867 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8868 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8869 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8870 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8871 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8872 (dwarf2_per_cu_data::addr_size)
8873 (dwarf2_per_cu_data::ref_addr_size)
8874 (dwarf2_per_cu_data::text_offset)
8875 (dwarf2_per_cu_data::addr_type): Now methods.
8876 (per_cu_header_read_in): Make per_cu "const".
8877 (dwarf2_version): Remove.
8878 (dwarf2_per_cu_data::int_type): Now a method.
8879 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8880 (set_die_type, read_array_type, read_subrange_index_type)
8881 (read_tag_string_type, read_subrange_type): Update.
8882 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8883 offset_size, ref_addr_size, text_offset, addr_type, version,
8884 objfile, int_type, addr_sized_int_type>: Declare methods.
8885
8886 2020-02-08 Tom Tromey <tom@tromey.com>
8887
8888 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8889 Move earlier.
8890
8891 2020-02-08 Tom Tromey <tom@tromey.com>
8892
8893 * dwarf2/read.h (dwarf_line_debug): Declare.
8894 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8895 * dwarf2/read.c: Move line_header code to new files.
8896 (dwarf_line_debug): No longer static.
8897 * dwarf2/line-header.c: New file.
8898 * dwarf2/line-header.h: New file.
8899
8900 2020-02-08 Tom Tromey <tom@tromey.com>
8901
8902 * dwarf2/read.c (struct line_header) <file_full_name,
8903 file_file_name>: Return unique_xmalloc_ptr.
8904 (line_header::file_file_name): Update.
8905 (line_header::file_full_name): Update.
8906 (dw2_get_file_names_reader): Update.
8907 (macro_start_file): Update.
8908
8909 2020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (struct line_header) <file_full_name,
8912 file_file_name>: Declare methods.
8913 (dw2_get_file_names_reader): Update.
8914 (file_file_name): Now a method.
8915 (file_full_name): Likewise.
8916 (macro_start_file): Update.
8917
8918 2020-02-08 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (dwarf_always_disassemble)
8921 (show_dwarf_always_disassemble): Move to loc.c.
8922 (_initialize_dwarf2_read): Move "always-disassemble" registration
8923 to loc.c.
8924 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8925 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8926 static.
8927 (show_dwarf_always_disassemble): Move from read.c.
8928 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8929
8930 2020-02-08 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8933 (create_quick_file_names_table): Return htab_up.
8934 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8935 Update.
8936 * dwarf2/read.h (struct dwarf2_per_objfile)
8937 <quick_file_names_table>: Now htab_up.
8938
8939 2020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8942
8943 2020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8946 Rewrite.
8947 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8948 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8949 (abbrev_table::abbrev_table): No longer inline.
8950 (ABBREV_HASH_SIZE): Remove.
8951 (abbrev_table::m_abbrevs): Now an htab_up.
8952
8953 2020-02-08 Tom Tromey <tom@tromey.com>
8954
8955 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8956 (cutu_reader): Update.
8957 (build_type_psymtabs_1): Update.
8958 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8959 (abbrev_table::alloc_abbrev): Update.
8960 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8961 (abbrev_table::read): New static method, renamed from
8962 abbrev_table_read_table.
8963 (abbrev_table::alloc_abbrev)
8964 (abbrev_table::add_abbrev): Now private.
8965 (abbrev_table::abbrev_table): Now private.
8966 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8967
8968 2020-02-08 Tom Tromey <tom@tromey.com>
8969
8970 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8971 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8972 htab_up.
8973
8974 2020-02-08 Tom Tromey <tom@tromey.com>
8975
8976 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8977 htab_up.
8978 (lookup_dwo_unit_in_dwp): Update.
8979 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8980 on obstack.
8981
8982 2020-02-08 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8985 obstack.
8986
8987 2020-02-08 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8990 line_header_hash.
8991 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8992 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8993 Change type to htab_up.
8994
8995 2020-02-08 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8998 htab_up. Don't allocate on obstack.
8999 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9000 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9001 Change type to htab_up.
9002
9003 2020-02-08 Tom Tromey <tom@tromey.com>
9004
9005 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9006 Change type to htab_up.
9007 * dwarf2/read.c (create_signatured_type_table_from_index)
9008 (create_signatured_type_table_from_debug_names)
9009 (create_all_type_units, add_type_unit)
9010 (lookup_dwo_signatured_type, lookup_signatured_type)
9011 (process_skeletonless_type_unit): Update.
9012 (create_debug_type_hash_table, create_debug_types_hash_table):
9013 Change type of types_htab.
9014 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9015 htab_up. Don't allocate on obstack.
9016 (create_cus_hash_table): Change type of cus_htab parameter.
9017 (struct dwo_file) <cus, tus>: Now htab_up.
9018 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9019 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9020 (queue_and_load_all_dwo_tus): Update.
9021 * dwarf2/index-write.c (write_gdbindex): Update.
9022 (write_debug_names): Update.
9023
9024 2020-02-08 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9027 dwarf2/read.c. Remove "next" member. Add constructor ntad
9028 destructor.
9029 (struct dwarf2_per_objfile) <queue>: New member.
9030 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9031 dwarf2/read.h.
9032 (dwarf2_queue, dwarf2_queue_tail): Remove.
9033 (class dwarf2_queue_guard): Add parameter to constructor. Use
9034 DISABLE_COPY_AND_ASSIGN.
9035 <m_per_objfile>: New member.
9036 <~dwarf2_queue_guard>: Rewrite.
9037 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9038 Update.
9039 (~dwarf2_queue_item): New.
9040
9041 2020-02-08 Tom Tromey <tom@tromey.com>
9042
9043 * dwarf2/read.c (struct die_info) <has_children>: New member.
9044 (dw2_get_file_names_reader): Remove has_children.
9045 (dw2_get_file_names): Update.
9046 (read_cutu_die_from_dwo): Remove has_children.
9047 (cutu_reader::init_tu_and_read_dwo_dies)
9048 (cutu_reader::cutu_reader): Update.
9049 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9050 Remove has_children.
9051 (build_type_psymtabs_1, process_skeletonless_type_unit)
9052 (load_partial_comp_unit, load_full_comp_unit): Update.
9053 (create_dwo_cu_reader): Remove has_children.
9054 (create_cus_hash_table, read_die_and_children): Update.
9055 (read_full_die_1,read_full_die): Remove has_children.
9056 (read_signatured_type): Update.
9057 (class cutu_reader) <has_children>: Remove.
9058
9059 2020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/expr.c: Rename from dwarf2expr.c.
9062 * dwarf2/expr.h: Rename from dwarf2expr.h.
9063 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9064 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9065 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9066 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9067 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9068 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9069 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9070 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9071 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9072 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9073 * dwarf2/loc.c: Rename from dwarf2loc.c.
9074 * dwarf2/loc.h: Rename from dwarf2loc.h.
9075 * dwarf2/read.c: Rename from dwarf2read.c.
9076 * dwarf2/read.h: Rename from dwarf2read.h.
9077 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9078 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9079 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9080 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9081 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9082 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9083 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9084 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9085 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9086 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9087 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9088 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9089 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9090 Update.
9091 * Makefile.in (COMMON_SFILES): Update.
9092 (HFILES_NO_SRCDIR): Update.
9093
9094 2020-02-08 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9097 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9098
9099 2020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2read.h (struct die_info): Don't declare.
9102
9103 2020-02-08 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2read.h (die_info_ptr): Remove typedef.
9106
9107 2020-02-08 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2read.c (read_call_site_scope)
9110 (handle_data_member_location, dwarf2_add_member_fn)
9111 (mark_common_block_symbol_computed, read_common_block)
9112 (attr_to_dynamic_prop, partial_die_info::read)
9113 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9114 (dwarf2_symbol_mark_computed, set_die_type): Update.
9115 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9116 method.
9117 (attr_form_is_block): Don't declare.
9118 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9119
9120 2020-02-08 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2read.c (dwarf2_find_base_address, )
9123 (read_call_site_scope, rust_containing_type)
9124 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9125 (handle_data_member_location, dwarf2_add_member_fn)
9126 (get_alignment, read_structure_type, process_structure_scope)
9127 (mark_common_block_symbol_computed, read_common_block)
9128 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9129 (partial_die_info::read, read_attribute_value, new_symbol)
9130 (lookup_die_type, dwarf2_get_ref_die_offset)
9131 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9132 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9133 (dwarf2_symbol_mark_computed): Update.
9134 * dwarf2/attribute.h (struct attribute) <value_as_address,
9135 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9136 methods.
9137 (value_as_address, attr_form_is_section_offset)
9138 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9139 * dwarf2/attribute.c (attribute::value_as_address)
9140 (attribute::form_is_section_offset, attribute::form_is_constant)
9141 (attribute::form_is_ref): Now methods.
9142
9143 2020-02-08 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2read.c (struct attribute, DW_STRING)
9146 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9147 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9148 (attr_form_is_block, attr_form_is_section_offset)
9149 (attr_form_is_constant, attr_form_is_ref): Move.
9150 * dwarf2/attribute.h: New file.
9151 * dwarf2/attribute.c: New file, from dwarf2read.c.
9152 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9153
9154 2020-02-08 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9157 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9158 Move.
9159 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9160 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9161 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9162 abbrev.c.
9163 * dwarf2/abbrev.h: New file.
9164 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9165 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9166
9167 2020-02-08 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9170 (dwarf2_section_size, dwarf2_get_section_info)
9171 (create_signatured_type_table_from_debug_names)
9172 (create_addrmap_from_aranges, read_debug_names_from_section)
9173 (get_gdb_index_contents_from_section, read_comp_unit_head)
9174 (error_check_comp_unit_head, read_abbrev_offset)
9175 (create_debug_type_hash_table, init_cu_die_reader)
9176 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9177 (read_comp_units_from_section, create_cus_hash_table)
9178 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9179 (create_dwp_v2_section, dwarf2_rnglists_process)
9180 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9181 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9182 (read_indirect_string_from_dwz, read_addr_index_1)
9183 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9184 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9185 (fill_in_loclist_baton): Update.
9186 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9187 get_containing_section, get_bfd_owner, get_bfd_section,
9188 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9189 (dwarf2_read_section, get_section_name, get_section_file_name)
9190 (get_containing_section, get_section_bfd_owner)
9191 (get_section_bfd_section, get_section_name, get_section_file_name)
9192 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9193 declare.
9194 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9195 (dwarf2_section_info::get_bfd_owner)
9196 (dwarf2_section_info::get_bfd_section)
9197 (dwarf2_section_info::get_name)
9198 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9199 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9200 (dwarf2_section_info::read): Now methods.
9201 * dwarf-index-write.c (class debug_names): Update.
9202
9203 2020-02-08 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9206 Move to dwarf2/section.h.
9207 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9208 (get_section_bfd_section, get_section_name)
9209 (get_section_file_name, get_section_id, get_section_flags)
9210 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9211 dwarf2/section.c.
9212 * dwarf2/section.h: New file.
9213 * dwarf2/section.c: New file, from dwarf2read.c.
9214 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9215
9216 2020-02-08 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9219 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9220 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9221 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9222 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9223 * dwarf2/leb.h: New file, from dwarf2read.c.
9224 * dwarf2/leb.c: New file, from dwarf2read.c.
9225 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9226 Remove.
9227 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9228 (COMMON_SFILES): Add dwarf2/leb.c.
9229
9230 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9231
9232 GDB 9.1 released.
9233
9234 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9235
9236 PR gdb/25190:
9237 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9238 * gdb/remote.c (remote_console_output): Update.
9239 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9240 (ui_file_puts): ...this.
9241 * gdb/ui-file.h (ui_file_puts): Add declaration.
9242 * gdb/utils.c (emit_style_escape): Update.
9243 (flush_wrap_buffer): Update.
9244 (fputs_maybe_filtered): Update.
9245 (fputs_unfiltered): Add function.
9246
9247 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9248
9249 * gdb/event-loop.c (gdb_wait_for_event): Update.
9250 * gdb/printcmd.c (printf_command): Update.
9251 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9252 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9253 (gdb_os_flush_stderr): Update.
9254 * gdb/remote.c (remote_console_output): Update.
9255 * gdb/ui-file.c (gdb_flush): Rename to...
9256 (ui_file_flush): ...this.
9257 (stderr_file::write): Update.
9258 (stderr_file::puts): Update.
9259 * gdb/ui-file.h (gdb_flush): Rename to...
9260 (ui_file_flush): ...this.
9261 * gdb/utils.c (gdb_flush): Add function.
9262 * gdb/utils.h (gdb_flush): Add declaration.
9263
9264 2020-02-07 Tom Tromey <tromey@adacore.com>
9265
9266 PR breakpoints/24915:
9267 * source.c (find_and_open_source): Do not check basenames_may_differ.
9268
9269 2020-02-07 Tom Tromey <tom@tromey.com>
9270
9271 * README: Update gdbserver documentation.
9272 * gdbserver: Move to top level.
9273 * configure.tgt (build_gdbserver): Remove.
9274 * configure.ac: Remove --enable-gdbserver.
9275 * configure: Rebuild.
9276 * Makefile.in (distclean): Don't mention gdbserver.
9277
9278 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9279
9280 * source-cache.c (source_cache::ensure): Surround
9281 get_plain_source_lines with a try/catch.
9282 (source_cache::get_line_charpos): Get rid of try/catch
9283 and only check for the return value of "ensure".
9284 * tui/tui-source.c (tui_source_window::set_contents):
9285 Simplify "nlines" calculation.
9286
9287 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9288
9289 * MAINTAINERS (Write After Approval): Add myself.
9290
9291 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9292
9293 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9294 function call.
9295
9296 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9297
9298 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9299
9300 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9301
9302 * nat/riscv-linux-tdesc.h: New file.
9303 * nat/riscv-linux-tdesc.c: New file, taking code from...
9304 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9305 ... here.
9306 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9307 NATDEPFILES.
9308
9309 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9310
9311 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9312 we don't set the fake simulator ptid to the null_ptid.
9313
9314 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9317 * gdbthread.h (class thread_info) <resumed>: Likewise.
9318 * infrun.c (resume_1): Likewise.
9319 (proceed): Likewise.
9320 (infrun_thread_stop_requested): Likewise.
9321 (stop_all_threads): Likewise.
9322 (handle_inferior_event): Likewise.
9323 (restart_threads): Likewise.
9324 (finish_step_over): Likewise.
9325 (keep_going_stepped_thread): Likewise.
9326 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9327 (linux_handle_extended_wait): Likewise.
9328 * record-btrace.c (get_thread_current_frame_id): Likewise.
9329 * record-full.c (record_full_wait_1): Likewise.
9330 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9331 * target.c (target_resume): Likewise.
9332 * thread.c (set_running_thread): Likewise.
9333
9334 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9335
9336 * f-valprint.c (f77_print_array_1): Changed datatype of index
9337 variable to LONGEST from int to enable it to contain bound
9338 values correctly.
9339
9340 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9341
9342 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9343 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9344 offsets according to FLEN determined.
9345 (riscv_linux_nat_target::read_description): Determine FLEN
9346 dynamically.
9347 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9348 according to FLEN determined.
9349 (riscv_linux_nat_target::store_registers): Likewise.
9350
9351 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9352
9353 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9354 when reg->group is empty and reggroup is not.
9355
9356 2020-01-31 Tom Tromey <tromey@adacore.com>
9357
9358 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9359 Call beneath target's mourn_inferior after unpushing.
9360
9361 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 PR tui/9765
9364 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9365 have enough lines to fill the screen, still return the lowest
9366 address we found.
9367
9368 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9371 '-', '<', and '>' commands.
9372
9373 2020-01-29 Pedro Alves <palves@redhat.com>
9374 Sergio Durigan Junior <sergiodj@redhat.com>
9375
9376 * infcmd.c (construct_inferior_arguments): Assert that
9377 'argc' is greater than 0.
9378
9379 2020-01-29 Luis Machado <luis.machado@linaro.org>
9380
9381 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9382 (BRK_INSN_MASK): Define to 0xd4200000.
9383 (aarch64_program_breakpoint_here_p): New function.
9384 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9385 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9386 breakpoint.c.
9387 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9388 breakpoint.h
9389 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9390 call gdbarch_program_breakpoint_here_p.
9391 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9392 default_program_breakpoint_here_p, changed return type to bool and
9393 simplified.
9394 * breakpoint.h (program_breakpoint_here): Moved prototype to
9395 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9396 return type to bool.
9397 * gdbarch.c: Regenerate.
9398 * gdbarch.h: Regenerate.
9399 * gdbarch.sh (program_breakpoint_here_p): New method.
9400 * infrun.c (handle_signal_stop): Call
9401 gdbarch_program_breakpoint_here_p.
9402
9403 2020-01-26 Tom Tromey <tom@tromey.com>
9404
9405 * ctfread.c (struct ctf_fp_info): Reindent.
9406 (_initialize_ctfread): Remove.
9407
9408 2020-01-26 Tom Tromey <tom@tromey.com>
9409
9410 * psymtab.c (partial_map_expand_apply)
9411 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9412 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9413 (psym_print_stats, psym_expand_symtabs_for_function)
9414 (psym_map_symbol_filenames, psym_map_matching_symbols)
9415 (psym_expand_symtabs_matching)
9416 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9417 (maintenance_check_psymtabs): Use new methods.
9418 * psympriv.h (struct partial_symtab) <readin_p,
9419 get_compunit_symtab>: New methods.
9420 <readin, compunit_symtab>: Remove members.
9421 (struct standard_psymtab): New.
9422 (struct legacy_psymtab): Derive from standard_psymtab.
9423 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9424 standard_psymtab.
9425 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9426
9427 2020-01-26 Tom Tromey <tom@tromey.com>
9428
9429 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9430 read_dependencies. Add assert.
9431 * psymtab.c (partial_symtab::read_dependencies): New method.
9432 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9433 method.
9434 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9435 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9436 read_dependencies.
9437 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9438 Add assert.
9439
9440 2020-01-26 Tom Tromey <tom@tromey.com>
9441
9442 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9443 Call expand_psymtab.
9444 (xcoff_read_symtab): Call expand_psymtab.
9445 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9446 legacy_expand_psymtab.
9447 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9448 method.
9449 (struct legacy_psymtab) <expand_psymtab>: Implement.
9450 <legacy_expand_psymtab>: New member.
9451 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9452 (parse_partial_symbols): Set legacy_expand_psymtab.
9453 (psymtab_to_symtab_1): Change argument order. Call
9454 expand_psymtab.
9455 (new_psymtab): Set legacy_expand_psymtab.
9456 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9457 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9458 expand_psymtab.
9459 (dwarf2_psymtab::expand_psymtab): Rename from
9460 psymtab_to_symtab_1. Call expand_psymtab.
9461 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9462 (dbx_end_psymtab): Likewise.
9463 (dbx_psymtab_to_symtab_1): Change argument order. Call
9464 expand_psymtab.
9465 (dbx_read_symtab): Call expand_psymtab.
9466 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9467 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9468 (ctf_psymtab::read_symtab): Call expand_psymtab.
9469
9470 2020-01-26 Tom Tromey <tom@tromey.com>
9471
9472 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9473 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9474 messages.
9475 * mdebugread.c (mdebug_read_symtab): Remove prints.
9476 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9477 assert.
9478 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9479
9480 2020-01-26 Tom Tromey <tom@tromey.com>
9481
9482 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9483 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9484 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9485 legacy_symtab.
9486 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9487 * psymtab.c (psymtab_to_symtab): Call method.
9488 (dump_psymtab): Update.
9489 * psympriv.h (struct partial_symtab): Add virtual destructor.
9490 <read_symtab>: New method.
9491 (struct legacy_symtab): New.
9492 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9493 (struct pst_map) <pst>: Now a legacy_psymtab.
9494 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9495 (new_psymtab): Use legacy_psymtab.
9496 * dwarf2read.h (struct dwarf2_psymtab): New.
9497 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9498 * dwarf2read.c (dwarf2_create_include_psymtab)
9499 (dwarf2_build_include_psymtabs, create_type_unit_group)
9500 (create_partial_symtab, process_psymtab_comp_unit_reader)
9501 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9502 (set_partial_user): Use dwarf2_psymtab.
9503 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9504 (psymtab_to_symtab_1, process_full_comp_unit)
9505 (process_full_type_unit, dwarf2_ranges_read)
9506 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9507 (dwarf_decode_lines): Use dwarf2_psymtab.
9508 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9509 (add_address_entry_worker, write_one_signatured_type)
9510 (recursively_count_psymbols, recursively_write_psymbols)
9511 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9512 (write_debug_names): Likewise.
9513 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9514 <pst>: Now a legacy_psymtab.
9515 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9516 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9517 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9518 * ctfread.c (struct ctf_psymtab): New.
9519 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9520 ctf_psymtab.
9521 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9522 (create_partial_symtab): Return a ctf_psymtab.
9523 (scan_partial_symbols): Update.
9524
9525 2020-01-26 Tom Tromey <tom@tromey.com>
9526
9527 * xcoffread.c (xcoff_start_psymtab): Use new.
9528 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9529 renamed from start_psymtab_common.
9530 * psympriv.h (struct partial_symtab): Add new constructor.
9531 (start_psymtab_common): Don't declare.
9532 * mdebugread.c (parse_partial_symbols): Use new.
9533 * dwarf2read.c (create_partial_symtab): Use new.
9534 * dbxread.c (start_psymtab): Use new.
9535 * ctfread.c (create_partial_symtab): Use new.
9536
9537 2020-01-26 Tom Tromey <tom@tromey.com>
9538
9539 * xcoffread.c (xcoff_end_psymtab): Use new.
9540 * psymtab.c (start_psymtab_common): Use new.
9541 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9542 Update.
9543 * psympriv.h (struct partial_symtab): Add parameters to
9544 constructor. Don't inline.
9545 (allocate_psymtab): Don't declare.
9546 * mdebugread.c (new_psymtab): Use new.
9547 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9548 * dbxread.c (dbx_end_psymtab): Use new.
9549
9550 2020-01-26 Tom Tromey <tom@tromey.com>
9551
9552 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9553 allocate_psymtab. Update documentation.
9554 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9555 allocate_psymtab. Do not use new.
9556 (allocate_psymtab): Use new. Update.
9557
9558 2020-01-26 Tom Tromey <tom@tromey.com>
9559
9560 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9561 * psymtab.c (psym_print_stats): Update.
9562 * psympriv.h (struct partial_symtab) <readin,
9563 psymtabs_addrmap_supported, anonymous>: Now bool.
9564 * mdebugread.c (psymtab_to_symtab_1): Update.
9565 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9566 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9567 (process_full_comp_unit, process_full_type_unit): Update.
9568 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9569 * ctfread.c (psymtab_to_symtab): Update.
9570
9571 2020-01-26 Tom Tromey <tom@tromey.com>
9572
9573 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9574 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9575 * psymtab.c (psymtab_storage): Delete psymtabs.
9576 (psymtab_storage::allocate_psymtab): Use new.
9577 (psymtab_storage::discard_psymtab): Use delete.
9578 * psympriv.h (struct partial_symtab): Add constructor and
9579 initializers.
9580
9581 2020-01-26 Tom Tromey <tom@tromey.com>
9582
9583 * machoread.c: Do not include psympriv.h.
9584
9585 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9586
9587 * NEWS: Mention the new option and the set/show commands.
9588
9589 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9590
9591 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9592 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9593 (validate_exec_file): New variables, enums, functions.
9594 (exec_file_locate_attach, print_section_info): Style the filenames.
9595 (_initialize_exec): Install show_exec_file_mismatch_command and
9596 set_exec_file_mismatch_command.
9597 * gdbcore.h (validate_exec_file): Declare.
9598 * infcmd.c (attach_command): Call validate_exec_file.
9599 * remote.c ( remote_target::remote_add_inferior): Likewise.
9600
9601 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9602
9603 * frame.c (find_frame_sal): Move call to get_next_frame into more
9604 inner scope.
9605 * inline-frame.c (inilne_state) <inline_state>: Update argument
9606 types.
9607 (inilne_state) <skipped_symbol>: Rename to...
9608 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9609 (skip_inline_frames): Build vector of skipped symbols and use this
9610 to reate the inline_state.
9611 (inline_skipped_symbol): Add a comment and some assertions, fetch
9612 skipped symbol from the list.
9613
9614 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9615
9616 * buildsym.c (lte_is_less_than): Delete.
9617 (buildsym_compunit::end_symtab_with_blockvector): Create local
9618 lambda function to sort line table entries, and use
9619 std::stable_sort instead of std::sort.
9620 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9621 markers when looking for a previous line.
9622
9623 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9624
9625 * dwarf2read.c (lnp_state_machine::record_line): Include
9626 end_sequence parameter in debug print out. Record the line if we
9627 are at an end_sequence marker even if it's not the start of a
9628 statement.
9629 * symmisc.c (maintenance_print_one_line_table): Print end of
9630 sequence markers with 'END' not '0'.
9631
9632 2020-01-24 Pedro Alves <palves@redhat.com>
9633
9634 PR gdb/25410
9635 * thread.c (scoped_restore_current_thread::restore): Use
9636 switch_to_inferior_no_thread.
9637 * exec.c: Include "progspace-and-thread.h".
9638 (add_target_sections, remove_target_sections):
9639 scoped_restore_current_pspace_and_thread instead of
9640 scoped_restore_current_thread.
9641 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9642 and aspace to the inferior before calling clone_program_space.
9643 Remove stale comment.
9644
9645 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9646
9647 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9648 (arm_netbsd_nat_target::fetch_registers): ...this.
9649 (arm_nbsd_nat_target::store_registers): Rename to...
9650 (arm_netbsd_nat_target::store_registers): ...this.
9651
9652 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9653
9654 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9655 register_t.
9656
9657 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9658
9659 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9660 Update comment.
9661 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9662 Likewise.
9663 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9664 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9665 the correct replacement (iterate_over_regset_sections).
9666 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9667 Update comment.
9668
9669 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9670
9671 PR gdb/23718
9672 * gdb/python/python.c (execute_gdb_command): Call
9673 async_enable_stdin in catch block.
9674
9675 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9676
9677 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9678 SWITCH_THRU_ALL_UIS.
9679
9680 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9681
9682 PR tui/9765
9683 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9684 comment, add extra parameter, and update to store previous symbol
9685 when appropriate.
9686 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9687 add extra parameter.
9688 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9689 remove unneeded parameter, add try/catch around gdb_print_insn,
9690 rewrite to add items to asm_lines vector.
9691 (tui_find_backward_disassembly_start_address): New function.
9692 (tui_find_disassembly_address): Updated throughout.
9693 (tui_disasm_window::set_contents): Update for changes to
9694 tui_disassemble.
9695 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9696 number of lines to scroll.
9697
9698 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9699
9700 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9701 (SECT_OFF_DATA): Likewise.
9702 (SECT_OFF_RODATA): Likewise.
9703 (SECT_OFF_TEXT): Likewise.
9704 (SECT_OFF_BSS): Likewise.
9705 (struct objfile) <text_section_offset, data_section_offset>: New
9706 methods.
9707 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9708 objfile::text_section_offset.
9709 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9710 * coffread.c (coff_symtab_read): Likewise.
9711 (enter_linenos): Likewise.
9712 (process_coff_symbol): Likewise.
9713 * ctfread.c (get_objfile_text_range): Likewise.
9714 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9715 Use objfile::data_section_offset.
9716 * dwarf2-frame.c (execute_cfa_program): Use
9717 objfile::text_section_offset.
9718 (dwarf2_frame_find_fde): Likewise.
9719 * dwarf2read.c (create_addrmap_from_index): Likewise.
9720 (create_addrmap_from_aranges): Likewise.
9721 (dw2_find_pc_sect_compunit_symtab): Likewise.
9722 (process_psymtab_comp_unit_reader): Likewise.
9723 (add_partial_symbol): Likewise.
9724 (add_partial_subprogram): Likewise.
9725 (process_full_comp_unit): Likewise.
9726 (read_file_scope): Likewise.
9727 (read_func_scope): Likewise.
9728 (read_lexical_block_scope): Likewise.
9729 (read_call_site_scope): Likewise.
9730 (dwarf2_rnglists_process): Likewise.
9731 (dwarf2_ranges_process): Likewise.
9732 (dwarf2_ranges_read): Likewise.
9733 (dwarf_decode_lines_1): Likewise.
9734 (new_symbol): Likewise.
9735 (dwarf2_fetch_die_loc_sect_off): Likewise.
9736 (dwarf2_per_cu_text_offset): Likewise.
9737 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9738 * hppa-tdep.c (read_unwind_info): Likewise.
9739 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9740 * psympriv.h (struct partial_symtab): Likewise.
9741 * psymtab.c (find_pc_sect_psymtab): Likewise.
9742 * solib-svr4.c (enable_break): Likewise.
9743 * stap-probe.c (relocate_address): Use
9744 objfile::data_section_offset.
9745 * xcoffread.c (enter_line_range): Use
9746 objfile::text_section_offset.
9747 (read_xcoff_symtab): Likewise.
9748
9749 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9752 declaration to narrower scopes.
9753
9754 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * darwin-nat.h (struct darwin_exception_msg, enum
9757 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9758 Move up.
9759 (class darwin_nat_target) <wait_1, check_new_threads,
9760 decode_exception_message, decode_message, stop_inferior,
9761 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9762 * darwin-nat.c (darwin_check_new_threads): Rename to...
9763 (darwin_nat_target::check_new_threads): ... this.
9764 (darwin_suspend_inferior_it): Remove.
9765 (darwin_decode_exception_message): Rename to...
9766 (darwin_nat_target::decode_exception_message): ... this.
9767 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9768 (darwin_decode_message): Rename to...
9769 (darwin_nat_target::decode_message): ... this.
9770 (cancel_breakpoint): Rename to...
9771 (darwin_nat_target::cancel_breakpoint): ... this.
9772 (darwin_wait): Rename to...
9773 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9774 instead of iterate_over_inferiors.
9775 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9776 (darwin_stop_inferior): Rename to...
9777 (darwin_nat_target::stop_inferior): ... this.
9778 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9779 (darwin_init_thread_list): Rename to...
9780 (darwin_nat_target::init_thread_list): ... this.
9781 (darwin_ptrace_him): Rename to...
9782 (darwin_nat_target::ptrace_him): ... this.
9783 (darwin_nat_target::create_inferior): Pass lambda function to
9784 fork_inferior.
9785 (darwin_nat_target::detach): Call stop_inferior instead of
9786 darwin_stop_inferior.
9787 * fork-inferior.h (fork_inferior): Change init_trace_fun
9788 parameter to gdb::function_view.
9789 * fork-inferior.c (fork_inferior): Likewise.
9790
9791 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9792
9793 * i386-cygwin-tdep.c (core_process_module_section): Update.
9794 * windows-nat.c (struct lm_info_windows): Add text_offset.
9795 (windows_xfer_shared_libraries): Update.
9796 * windows-tdep.c (windows_xfer_shared_library):
9797 Add text_offset_cached argument.
9798 * windows-tdep.h (windows_xfer_shared_library): Update.
9799
9800 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9803
9804 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9807 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9808 replace with range-based for.
9809 (gdbsim_interrupt_inferior): Remove.
9810 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9811 with a range-based for. Inline code from
9812 gdbsim_interrupt_inferior.
9813
9814 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * infrun.c (proceed): Fix indentation.
9817
9818 2020-01-21 Tom Tromey <tromey@adacore.com>
9819
9820 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9821 * python/python.c (python_extension_ops): Update.
9822 (gdbpy_colorize): New function.
9823 * python/lib/gdb/__init__.py (colorize): New function.
9824 * extension.h (ext_lang_colorize): Declare.
9825 * extension.c (ext_lang_colorize): New function.
9826 * extension-priv.h (struct extension_language_ops) <colorize>: New
9827 member.
9828 * cli/cli-style.c (_initialize_cli_style): Update help text.
9829
9830 2020-01-21 Luis Machado <luis.machado@linaro.org>
9831
9832 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9833 <cond>: Change type to bool.
9834 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9835 (aarch64_displaced_step_cb): Likewise.
9836 (aarch64_displaced_step_tb): Likewise.
9837
9838 2020-01-21 Luis Machado <luis.machado@linaro.org>
9839
9840 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9841 output.
9842
9843 2020-01-21 Luis Machado <luis.machado@linaro.org>
9844
9845 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9846 <pc_adjust>: Adjust the documentation.
9847 (aarch64_displaced_step_fixup): Check if PC really moved before
9848 adjusting it.
9849
9850 2020-01-19 Tom Tromey <tom@tromey.com>
9851
9852 * disasm.c (~gdb_disassembler): New destructor.
9853 (gdb_buffered_insn_length): Call disassemble_free_target.
9854 * disasm.h (class gdb_disassembler): Declare destructor. Use
9855 DISABLE_COPY_AND_ASSIGN.
9856
9857 2020-01-19 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9860 (die_reader_func_ftype): Remove.
9861 (cutu_reader): New class.
9862 (dw2_get_file_names_reader): Remove "data" parameter.
9863 (dw2_get_file_names): Use cutu_reader.
9864 (create_debug_type_hash_table): Update.
9865 (read_cutu_die_from_dwo): Update comment.
9866 (lookup_dwo_unit): Add dwo_name parameter.
9867 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9868 die_reader_func_ftype and data parameters.
9869 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9870 Remove die_reader_func_ftype and data parameters.
9871 (~cutu_reader): New; from init_cutu_and_read_dies.
9872 (cutu_reader::cutu_reader): Rename from
9873 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9874 and data parameters.
9875 (init_cutu_and_read_dies_simple): Remove.
9876 (struct process_psymtab_comp_unit_data): Remove.
9877 (process_psymtab_comp_unit_reader): Remove data parameter; add
9878 want_partial_unit and pretend_language parameters.
9879 (process_psymtab_comp_unit): Use cutu_reader.
9880 (build_type_psymtabs_reader): Remove data parameter.
9881 (build_type_psymtabs_1): Use cutu_reader.
9882 (process_skeletonless_type_unit): Likewise.
9883 (load_partial_comp_unit_reader): Remove.
9884 (load_partial_comp_unit): Use cutu_reader.
9885 (load_full_comp_unit_reader): Remove.
9886 (load_full_comp_unit): Use cutu_reader.
9887 (struct create_dwo_cu_data): Remove.
9888 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9889 dwo_unit parameters.
9890 (create_cus_hash_table): Use cutu_reader.
9891 (struct dwarf2_read_addr_index_data): Remove.
9892 (dwarf2_read_addr_index_reader): Remove.
9893 (dwarf2_read_addr_index): Use cutu_reader.
9894 (read_signatured_type_reader): Remove.
9895 (read_signatured_type): Use cutu_reader.
9896
9897 2020-01-19 Tom Tromey <tom@tromey.com>
9898
9899 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9900 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9901 (tui_wrefresh): Declare.
9902 * tui/tui-wingeneral.c (suppress_output): New global.
9903 (tui_suppress_output, ~tui_suppress_output): New constructor and
9904 destructor.
9905 (tui_wrefresh): New function.
9906 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9907 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9908 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9909 method.
9910 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9911 tui_wrefresh.
9912 (tui_data_window::no_refresh): New method.
9913 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9914 (tui_reg_command): Use tui_suppress_output
9915 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9916 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9917 method.
9918 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9919
9920 2020-01-19 Tom Tromey <tom@tromey.com>
9921
9922 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9923 Handle case where symtab is null.
9924
9925 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9926
9927 * linux-fork.c (one_fork_p): Simplify.
9928
9929 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * top.c (struct qt_args): Remove.
9932 (kill_or_detach): Change return type to void, replace `void *`
9933 parameter with a proper one.
9934 (print_inferior_quit_action): Likewise.
9935 (quit_confirm): Use range-based for loop to iterate over inferiors.
9936 (quit_force): Likewise.
9937
9938 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9941 `void *` parameter with proper parameters.
9942 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9943 (print_one_inferior): Change return type to void, replace `void *`
9944 parameter with proper parameters.
9945 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9946 inferiors.
9947 (get_other_inferior): Remove.
9948 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9949 inferiors.
9950
9951 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * mi/mi-interp.c (report_initial_inferior): Remove.
9954 (mi_interp::init): Use range-based for to iterate over inferiors.
9955
9956 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * python/py-inferior.c (build_inferior_list): Remove.
9959 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9960
9961 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9962
9963 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9964 (btrace_stitch_trace): Likewise.
9965 * charset.c (intermediate_encoding): Likewise (vaild).
9966 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9967 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9968 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9969
9970 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9971
9972 * windows-tdep.c (windows_get_tlb_type):
9973 Add rtl_user_process_parameters type.
9974
9975 2020-01-16 Pedro Alves <palves@redhat.com>
9976 Norbert Lange <nolange79@gmail.com>
9977
9978 PR build/24805
9979 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9980 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9981 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9982 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9983 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9984 (ps_plog): Redeclare exported functions with default visibility.
9985
9986 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9987
9988 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9989 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9990
9991 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * infcmd.c (post_create_inferior): Use get_thread_regcache
9994 instead of get_current_regcache.
9995
9996 2020-01-14 Tom Tromey <tom@tromey.com>
9997
9998 PR symtab/12535:
9999 * python/python.c (gdbpy_decode_line): Treat empty string the same
10000 as no argument.
10001
10002 2020-01-14 Tom Tromey <tom@tromey.com>
10003
10004 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10005
10006 2020-01-14 Tom Tromey <tom@tromey.com>
10007
10008 * nat/linux-btrace.c: Don't include <config.h>.
10009 * nat/linux-ptrace.c: Don't include <config.h>.
10010 * nat/x86-linux-dregs.c: Don't include <config.h>.
10011
10012 2020-01-14 Tom Tromey <tom@tromey.com>
10013
10014 * configure: Rebuild.
10015 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10016
10017 2020-01-14 Tom Tromey <tom@tromey.com>
10018
10019 * nat/x86-linux-dregs.c: Include configh.h.
10020 * nat/linux-ptrace.c: Include configh.h.
10021 * nat/linux-btrace.c: Include configh.h.
10022 * defs.h: Include config.h, bfd.h.
10023 * configure.ac: Don't source common.host.
10024 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10025 * configure: Rebuild.
10026 * acinclude.m4: Update path.
10027 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10028 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10029 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10030 (CLIBS): Add LIBSUPPORT.
10031 (CDEPS): Likewise.
10032 (COMMON_SFILES): Remove gdbsupport files.
10033 (HFILES_NO_SRCDIR): Likewise.
10034 (stamp-version): Update path to create-version.sh.
10035 (ALLDEPFILES): Remove gdbsupport files.
10036
10037 2020-01-14 Tom Tromey <tom@tromey.com>
10038
10039 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10040 USE_WIN32API when needed.
10041 * configure.ac (USE_WIN32API): Don't define.
10042 (WIN32LIBS): Use WIN32APILIBS.
10043 * configure: Rebuild.
10044
10045 2020-01-14 Tom Tromey <tom@tromey.com>
10046
10047 * configure: Rebuild.
10048 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10049
10050 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10051
10052 * skip.c (skip_function_command): Make skip w/o arguments use the
10053 name of the inlined function if pc is inside any inlined function.
10054
10055 2020-01-14 Luis Machado <luis.machado@linaro.org>
10056
10057 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10058 * infrun.c (resume_1): Likewise.
10059 (handle_inferior_event): Remove stale comment.
10060 * linux-nat.c (linux_nat_target::resume): Update comments.
10061 (save_stop_reason): Likewise.
10062 (linux_nat_filter_event): Likewise.
10063 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10064
10065 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10066
10067 * elfread.c (record_minimal_symbol): Set section index to 0 for
10068 non-allocatable sections.
10069
10070
10071 2020-01-13 Ali Tamur <tamur@google.com>
10072
10073 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10074 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10075 to gdb::optional. Update comments.
10076 (dwo_file): Update comments.
10077 (read_attribute): Update API to take an additional out parameter,
10078 need_reprocess. This is used to mark attributes that need other
10079 attributes (e.g. str_offsets_base) for correct computation which may not
10080 have been read yet.
10081 (read_attribute_reprocess): New function declaration.
10082 (read_addr_index): Likewise.
10083 (read_dwo_str_index): Likewise.
10084 (read_stub_str_index): Likewise.
10085 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10086 (lookup_addr_base): New function definition.
10087 (lookup_ranges_base): Likewise.
10088 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10089 lookup_ranges_base.
10090 (init_cutu_and_read_dies): Update comments.
10091 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10092 unit. This is used to inherit parent's str_offsets_base and addr_base.
10093 Update comments.
10094 (init_cutu_and_read_dies_simple): Reflect API changes.
10095 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10096 (create_cus_hash_table): Change API to take parent compile unit.
10097 Reflect API changes.
10098 (open_and_init_dwo_file): Reflect API changes.
10099 (dwarf2_get_pc_bounds): Update comments.
10100 (dwarf2_record_block_ranges): Likewise.
10101 (read_full_die_1): Change implementation to reprocess attributes that
10102 need str_offsets_base and addr_base.
10103 (partial_die_info::read): Likewise.
10104 (read_attribute_reprocess): New function definition.
10105 (read_attribute_value): Change API to take an additional out parameter,
10106 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10107 when a non-dwo compile unit has index based attributes.
10108 (read_attribute): Reflect API changes.
10109 (read_addr_index_1): Reflect API changes. Update comments.
10110 (dwarf2_read_addr_index_data): Reflect API changes.
10111 (dwarf2_read_addr_index): Likewise.
10112 (read_str_index): Change API and implementation. This becomes a helper
10113 to be used by the new string index related methods. Update error
10114 message and comments.
10115 (read_dwo_str_index): New function definition.
10116 (read_stub_str_index): Likewise.
10117 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10118 * symfile.h (dwarf2_debug_sections): Likewise.
10119 * xcoffread.c (dwarf2_debug_sections): Likewise.
10120
10121 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10124 core_reg_sect type to gdb_byte *.
10125 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10126 * cris-tdep.c (fetch_core_registers): Likewise.
10127 * corelow.c (core_target::get_core_register_section): Change
10128 type of `contents` to gdb::byte_vector.
10129
10130 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * tui/tui-wingeneral.c (box_win): Position the title in the center
10133 of the border.
10134
10135 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10136
10137 * corelow.c (core_target::get_core_register_section): Use
10138 std::vector instead of alloca.
10139
10140 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * warning.m4: Add -Wmissing-declarations to build_warnings.
10143 * configure: Re-generate.
10144
10145 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10146
10147 * python/python.c (init__gdb_module): Add declaration.
10148
10149 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10152 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10153 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10154 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10155 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10156 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10157 * ada-exp.y (_initialize_ada_exp): Add declaration.
10158 * ada-lang.c (_initialize_ada_language): Add declaration.
10159 * ada-tasks.c (_initialize_tasks): Add declaration.
10160 * agent.c (_initialize_agent): Add declaration.
10161 * aix-thread.c (_initialize_aix_thread): Add declaration.
10162 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10163 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10164 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10165 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10166 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10167 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10168 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10169 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10170 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10171 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10172 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10173 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10174 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10175 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10176 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10177 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10178 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10179 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10180 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10181 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10182 * annotate.c (_initialize_annotate): Add declaration.
10183 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10184 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10185 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10186 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10187 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10188 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10189 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10190 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10191 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10192 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10193 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10194 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10195 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10196 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10197 * auto-load.c (_initialize_auto_load): Add declaration.
10198 * auxv.c (_initialize_auxv): Add declaration.
10199 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10200 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10201 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10202 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10203 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10204 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10205 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10206 * breakpoint.c (_initialize_breakpoint): Add declaration.
10207 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10208 * btrace.c (_initialize_btrace): Add declaration.
10209 * charset.c (_initialize_charset): Add declaration.
10210 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10211 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10212 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10213 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10214 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10215 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10216 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10217 * coffread.c (_initialize_coffread): Add declaration.
10218 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10219 * compile/compile.c (_initialize_compile): Add declaration.
10220 * complaints.c (_initialize_complaints): Add declaration.
10221 * completer.c (_initialize_completer): Add declaration.
10222 * copying.c (_initialize_copying): Add declaration.
10223 * corefile.c (_initialize_core): Add declaration.
10224 * corelow.c (_initialize_corelow): Add declaration.
10225 * cp-abi.c (_initialize_cp_abi): Add declaration.
10226 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10227 * cp-support.c (_initialize_cp_support): Add declaration.
10228 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10229 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10230 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10231 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10232 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10233 * ctfread.c (_initialize_ctfread): Add declaration.
10234 * d-lang.c (_initialize_d_language): Add declaration.
10235 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10236 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10237 * dbxread.c (_initialize_dbxread): Add declaration.
10238 * dcache.c (_initialize_dcache): Add declaration.
10239 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10240 * disasm.c (_initialize_disasm): Add declaration.
10241 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10242 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10243 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10244 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10245 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10246 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10247 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10248 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10249 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10250 * elfread.c (_initialize_elfread): Add declaration.
10251 * exec.c (_initialize_exec): Add declaration.
10252 * extension.c (_initialize_extension): Add declaration.
10253 * f-lang.c (_initialize_f_language): Add declaration.
10254 * f-valprint.c (_initialize_f_valprint): Add declaration.
10255 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10256 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10257 * filesystem.c (_initialize_filesystem): Add declaration.
10258 * findcmd.c (_initialize_mem_search): Add declaration.
10259 * findvar.c (_initialize_findvar): Add declaration.
10260 * fork-child.c (_initialize_fork_child): Add declaration.
10261 * frame-base.c (_initialize_frame_base): Add declaration.
10262 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10263 * frame.c (_initialize_frame): Add declaration.
10264 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10265 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10266 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10267 * gcore.c (_initialize_gcore): Add declaration.
10268 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10269 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10270 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10271 * gdbarch.c (_initialize_gdbarch): Add declaration.
10272 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10273 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10274 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10275 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10276 * go-lang.c (_initialize_go_language): Add declaration.
10277 * go32-nat.c (_initialize_go32_nat): Add declaration.
10278 * guile/guile.c (_initialize_guile): Add declaration.
10279 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10280 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10281 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10282 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10283 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10284 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10285 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10286 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10287 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10288 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10289 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10290 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10291 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10292 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10293 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10294 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10295 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10296 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10297 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10298 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10299 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10300 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10301 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10302 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10303 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10304 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10305 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10306 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10307 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10308 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10309 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10310 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10311 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10312 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10313 * infcall.c (_initialize_infcall): Add declaration.
10314 * infcmd.c (_initialize_infcmd): Add declaration.
10315 * inflow.c (_initialize_inflow): Add declaration.
10316 * infrun.c (_initialize_infrun): Add declaration.
10317 * interps.c (_initialize_interpreter): Add declaration.
10318 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10319 * jit.c (_initialize_jit): Add declaration.
10320 * language.c (_initialize_language): Add declaration.
10321 * linux-fork.c (_initialize_linux_fork): Add declaration.
10322 * linux-nat.c (_initialize_linux_nat): Add declaration.
10323 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10324 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10325 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10326 * m2-lang.c (_initialize_m2_language): Add declaration.
10327 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10328 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10329 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10330 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10331 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10332 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10333 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10334 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10335 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10336 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10337 * machoread.c (_initialize_machoread): Add declaration.
10338 * macrocmd.c (_initialize_macrocmd): Add declaration.
10339 * macroscope.c (_initialize_macroscope): Add declaration.
10340 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10341 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10342 * maint.c (_initialize_maint_cmds): Add declaration.
10343 * mdebugread.c (_initialize_mdebugread): Add declaration.
10344 * memattr.c (_initialize_mem): Add declaration.
10345 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10346 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10347 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10348 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10349 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10350 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10351 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10352 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10353 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10354 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10355 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10356 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10357 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10358 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10359 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10360 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10361 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10362 * mipsread.c (_initialize_mipsread): Add declaration.
10363 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10364 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10365 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10366 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10367 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10368 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10369 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10370 * nto-procfs.c (_initialize_procfs): Add declaration.
10371 * objc-lang.c (_initialize_objc_language): Add declaration.
10372 * observable.c (_initialize_observer): Add declaration.
10373 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10374 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10375 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10376 * osabi.c (_initialize_gdb_osabi): Add declaration.
10377 * osdata.c (_initialize_osdata): Add declaration.
10378 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10379 * parse.c (_initialize_parse): Add declaration.
10380 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10381 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10382 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10383 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10384 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10385 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10386 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10387 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10388 * printcmd.c (_initialize_printcmd): Add declaration.
10389 * probe.c (_initialize_probe): Add declaration.
10390 * proc-api.c (_initialize_proc_api): Add declaration.
10391 * proc-events.c (_initialize_proc_events): Add declaration.
10392 * proc-service.c (_initialize_proc_service): Add declaration.
10393 * procfs.c (_initialize_procfs): Add declaration.
10394 * producer.c (_initialize_producer): Add declaration.
10395 * psymtab.c (_initialize_psymtab): Add declaration.
10396 * python/python.c (_initialize_python): Add declaration.
10397 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10398 * record-btrace.c (_initialize_record_btrace): Add declaration.
10399 * record-full.c (_initialize_record_full): Add declaration.
10400 * record.c (_initialize_record): Add declaration.
10401 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10402 * regcache.c (_initialize_regcache): Add declaration.
10403 * reggroups.c (_initialize_reggroup): Add declaration.
10404 * remote-notif.c (_initialize_notif): Add declaration.
10405 * remote-sim.c (_initialize_remote_sim): Add declaration.
10406 * remote.c (_initialize_remote): Add declaration.
10407 * reverse.c (_initialize_reverse): Add declaration.
10408 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10409 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10410 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10411 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10412 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10413 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10414 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10415 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10416 Add declaration.
10417 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10418 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10419 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10420 * rust-exp.y (_initialize_rust_exp): Add declaration.
10421 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10422 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10423 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10424 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10425 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10426 * score-tdep.c (_initialize_score_tdep): Add declaration.
10427 * ser-go32.c (_initialize_ser_dos): Add declaration.
10428 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10429 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10430 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10431 * ser-uds.c (_initialize_ser_socket): Add declaration.
10432 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10433 * serial.c (_initialize_serial): Add declaration.
10434 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10435 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10436 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10437 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10438 * skip.c (_initialize_step_skip): Add declaration.
10439 * sol-thread.c (_initialize_sol_thread): Add declaration.
10440 * solib-aix.c (_initialize_solib_aix): Add declaration.
10441 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10442 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10443 * solib-frv.c (_initialize_frv_solib): Add declaration.
10444 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10445 * solib-target.c (_initialize_solib_target): Add declaration.
10446 * solib.c (_initialize_solib): Add declaration.
10447 * source-cache.c (_initialize_source_cache): Add declaration.
10448 * source.c (_initialize_source): Add declaration.
10449 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10450 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10451 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10452 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10453 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10454 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10455 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10456 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10457 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10458 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10459 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10460 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10461 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10462 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10463 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10464 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10465 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10466 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10467 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10468 * stabsread.c (_initialize_stabsread): Add declaration.
10469 * stack.c (_initialize_stack): Add declaration.
10470 * stap-probe.c (_initialize_stap_probe): Add declaration.
10471 * std-regs.c (_initialize_frame_reg): Add declaration.
10472 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10473 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10474 * symfile.c (_initialize_symfile): Add declaration.
10475 * symmisc.c (_initialize_symmisc): Add declaration.
10476 * symtab.c (_initialize_symtab): Add declaration.
10477 * target.c (_initialize_target): Add declaration.
10478 * target-connection.c (_initialize_target_connection): Add
10479 declaration.
10480 * target-dcache.c (_initialize_target_dcache): Add declaration.
10481 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10482 * thread.c (_initialize_thread): Add declaration.
10483 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10484 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10485 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10486 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10487 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10488 * tracectf.c (_initialize_ctf): Add declaration.
10489 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10490 * tracefile.c (_initialize_tracefile): Add declaration.
10491 * tracepoint.c (_initialize_tracepoint): Add declaration.
10492 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10493 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10494 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10495 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10496 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10497 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10498 * tui/tui.c (_initialize_tui): Add declaration.
10499 * typeprint.c (_initialize_typeprint): Add declaration.
10500 * ui-style.c (_initialize_ui_style): Add declaration.
10501 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10502 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10503 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10504 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10505 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10506 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10507 * unittests/filtered_iterator-selftests.c
10508 (_initialize_filtered_iterator_selftests): Add declaration.
10509 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10510 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10511 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10512 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10513 * unittests/main-thread-selftests.c
10514 (_initialize_main_thread_selftests): Add declaration.
10515 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10516 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10517 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10518 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10519 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10520 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10521 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10522 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10523 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10524 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10525 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10526 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10527 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10528 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10529 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10530 declaration.
10531 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10532 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10533 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10534 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10535 * user-regs.c (_initialize_user_regs): Add declaration.
10536 * utils.c (_initialize_utils): Add declaration.
10537 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10538 * valops.c (_initialize_valops): Add declaration.
10539 * valprint.c (_initialize_valprint): Add declaration.
10540 * value.c (_initialize_values): Add declaration.
10541 * varobj.c (_initialize_varobj): Add declaration.
10542 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10543 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10544 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10545 * windows-nat.c (_initialize_windows_nat): Add declaration.
10546 (_initialize_check_for_gdb_ini): Add declaration.
10547 (_initialize_loadable): Add declaration.
10548 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10549 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10550 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10551 * xcoffread.c (_initialize_xcoffread): Add declaration.
10552 * xml-support.c (_initialize_xml_support): Add declaration.
10553 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10554 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10555 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10556 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10557
10558 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10559
10560 * regformats/regdat.sh: Generate declaration for init function.
10561
10562 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10563
10564 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10565 up.
10566 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10567 close_one_inferior>: New methods.
10568 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10569 pass down target to find_inferior_pid.
10570 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10571 Pass down target to find_inferior_ptid.
10572 (gdbsim_target::create_inferior): Pass down target to
10573 add_thread_silent.
10574 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10575 target down to find_inferior_ptid and switch_to_thread.
10576 (gdbsim_target::close): Update to call close_one_inferior.
10577 (struct resume_data): Remove.
10578 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10579 directly, rather than through a void pointer.
10580 (gdbsim_target::resume): Update to call resume_one_inferior.
10581
10582 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10583
10584 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10585
10586 2020-01-12 Pedro Alves <palves@redhat.com>
10587
10588 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10589 directly for the current inferior instead of
10590 discard_all_inferiors.
10591 (discard_all_inferiors): Delete.
10592
10593 2020-01-11 Tom Tromey <tom@tromey.com>
10594
10595 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10596 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10597 deprecated_safe_get_selected_frame.
10598
10599 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10600
10601 * inferior.c (print_inferior): Switch inferior before printing it.
10602
10603 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10604 Pedro Alves <palves@redhat.com>
10605
10606 * progspace-and-thread.c (switch_to_program_space_and_thread):
10607 Assert there's an inferior for PSPACE. Use
10608 switch_to_inferior_no_thread to switch the inferior too.
10609 * progspace.c (program_space::~program_space): Call
10610 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10611 (program_space::free_all_objfiles): Don't call clear_symtab_users
10612 here.
10613 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10614
10615 2020-01-10 Pedro Alves <palves@redhat.com>
10616
10617 * NEWS: Mention multi-target debugging, "info connections", and
10618 "add-inferior -no-connection".
10619
10620 2020-01-10 Pedro Alves <palves@redhat.com>
10621
10622 * infrun.c: Include "target-connection.h".
10623 (check_multi_target_resumption): New.
10624 (proceed): Call it.
10625 * target-connection.c (make_target_connection_string): Make
10626 extern.
10627 * target-connection.h (make_target_connection_string): Declare.
10628
10629 2020-01-10 Pedro Alves <palves@redhat.com>
10630
10631 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10632 * inferior.c (uiout_field_connection): New function.
10633 (print_inferior): Add new "connection-id" column.
10634 (add_inferior_command): Show connection number/string of added
10635 inferior.
10636 * process-stratum-target.h
10637 (process_stratum_target::connection_string): New virtual method.
10638 (process_stratum_target::connection_number): New field.
10639 * remote.c (remote_target::connection_string): New override.
10640 * target-connection.c: New file.
10641 * target-connection.h: New file.
10642 * target.c (decref_target): Remove process_stratum targets from
10643 the connection list.
10644 (target_stack::push): Add process_stratum targets to the
10645 connection list.
10646
10647 2020-01-10 Pedro Alves <palves@redhat.com>
10648
10649 Revert:
10650 2016-04-12 Pedro Alves <palves@redhat.com>
10651 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10652 Remove references to name.
10653 * serial.h (struct serial) <name>: Delete.
10654
10655 2020-01-10 Pedro Alves <palves@redhat.com>
10656
10657 * gdbarch-selftests.c (register_to_value_test): Remove "target
10658 already pushed" check.
10659
10660 2020-01-10 Pedro Alves <palves@redhat.com>
10661 John Baldwin <jhb@FreeBSD.org>
10662
10663 * aarch64-linux-nat.c
10664 (aarch64_linux_nat_target::thread_architecture): Adjust.
10665 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10666 (task_command_1): Likewise.
10667 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10668 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10669 (aix_thread_target::store_registers)
10670 (aix_thread_target::thread_alive): Adjust.
10671 * amd64-fbsd-tdep.c: Include "inferior.h".
10672 (amd64fbsd_get_thread_local_address): Pass down target.
10673 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10674 thread's gdbarch instead of target_gdbarch.
10675 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10676 get_last_target_status.
10677 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10678 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10679 inferiors.
10680 (update_inserted_breakpoint_locations): Skip if inferiors with no
10681 execution.
10682 (update_global_location_list): When handling moribund locations,
10683 find representative inferior for location's pspace, and use thread
10684 count of its process_stratum target.
10685 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10686 * bsd-uthread.c (bsd_uthread_target::wait): Use
10687 as_process_stratum_target and adjust thread_change_ptid and
10688 add_thread calls.
10689 (bsd_uthread_target::update_thread_list): Use
10690 as_process_stratum_target and adjust find_thread_ptid,
10691 thread_change_ptid and add_thread calls.
10692 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10693 find_thread_ptid call.
10694 * corelow.c (add_to_thread_list): Adjust add_thread call.
10695 (core_target_open): Adjust add_thread_silent and thread_count
10696 calls.
10697 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10698 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10699 * event-top.c (async_disconnect): Pop targets from all inferiors.
10700 * exec.c (add_target_sections): Push exec target on all inferiors
10701 sharing the program space.
10702 (remove_target_sections): Remove the exec target from all
10703 inferiors sharing the program space.
10704 (exec_on_vfork): New.
10705 * exec.h (exec_on_vfork): Declare.
10706 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10707 Pass it down.
10708 (fbsd_nat_target::update_thread_list): Adjust.
10709 (fbsd_nat_target::resume): Adjust.
10710 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10711 down.
10712 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10713 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10714 get_thread_arch_regcache call.
10715 * fork-child.c (gdb_startup_inferior): Pass target down to
10716 startup_inferior and set_executing.
10717 * gdbthread.h (struct process_stratum_target): Forward declare.
10718 (add_thread, add_thread_silent, add_thread_with_info)
10719 (in_thread_list): Add process_stratum_target parameter.
10720 (find_thread_ptid(inferior*, ptid_t)): New overload.
10721 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10722 parameter.
10723 (all_threads()): Delete overload.
10724 (all_threads, all_non_exited_threads): Add process_stratum_target
10725 parameter.
10726 (all_threads_safe): Use brace initialization.
10727 (thread_count): Add process_stratum_target parameter.
10728 (set_resumed, set_running, set_stop_requested, set_executing)
10729 (threads_are_executing, finish_thread_state): Add
10730 process_stratum_target parameter.
10731 (switch_to_thread): Use is_current_thread.
10732 * i386-fbsd-tdep.c: Include "inferior.h".
10733 (i386fbsd_get_thread_local_address): Pass down target.
10734 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10735 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10736 have_inferiors check.
10737 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10738 (inf_ptrace_target::attach): Adjust.
10739 * infcall.c (run_inferior_call): Adjust.
10740 * infcmd.c (run_command_1): Pass target to
10741 scoped_finish_thread_state.
10742 (proceed_thread_callback): Skip inferiors with no execution.
10743 (continue_command): Rename 'all_threads' local to avoid hiding
10744 'all_threads' function. Adjust get_last_target_status call.
10745 (prepare_one_step): Adjust set_running call.
10746 (signal_command): Use user_visible_resume_target. Compare thread
10747 pointers instead of inferior_ptid.
10748 (info_program_command): Adjust to pass down target.
10749 (attach_command): Mark target's 'thread_executing' flag.
10750 (stop_current_target_threads_ns): New, factored out from ...
10751 (interrupt_target_1): ... this. Switch inferior before making
10752 target calls.
10753 * inferior-iter.h
10754 (struct all_inferiors_iterator, struct all_inferiors_range)
10755 (struct all_inferiors_safe_range)
10756 (struct all_non_exited_inferiors_range): Filter on
10757 process_stratum_target too. Remove explicit.
10758 * inferior.c (inferior::inferior): Push dummy target on target
10759 stack.
10760 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10761 Add process_stratum_target parameter, and pass it down.
10762 (have_live_inferiors): Adjust.
10763 (switch_to_inferior_and_push_target): New.
10764 (add_inferior_command, clone_inferior_command): Handle
10765 "-no-connection" parameter. Use
10766 switch_to_inferior_and_push_target.
10767 (_initialize_inferior): Mention "-no-connection" option in
10768 the help of "add-inferior" and "clone-inferior" commands.
10769 * inferior.h: Include "process-stratum-target.h".
10770 (interrupt_target_1): Use bool.
10771 (struct inferior) <push_target, unpush_target, target_is_pushed,
10772 find_target_beneath, top_target, process_target, target_at,
10773 m_stack>: New.
10774 (discard_all_inferiors): Delete.
10775 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10776 (all_inferiors, all_non_exited_inferiors): Add
10777 process_stratum_target parameter.
10778 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10779 (target_last_proc_target): New global.
10780 (follow_fork_inferior): Push target on new inferior. Pass target
10781 to add_thread_silent. Call exec_on_vfork. Handle target's
10782 reference count.
10783 (follow_fork): Adjust get_last_target_status call. Also consider
10784 target.
10785 (follow_exec): Push target on new inferior.
10786 (struct execution_control_state) <target>: New field.
10787 (user_visible_resume_target): New.
10788 (do_target_resume): Call target_async.
10789 (resume_1): Set target's threads_executing flag. Consider resume
10790 target.
10791 (commit_resume_all_targets): New.
10792 (proceed): Also consider resume target. Skip threads of inferiors
10793 with no execution. Commit resumtion in all targets.
10794 (start_remote): Pass current inferior to wait_for_inferior.
10795 (infrun_thread_stop_requested): Consider target as well. Pass
10796 thread_info pointer to clear_inline_frame_state instead of ptid.
10797 (infrun_thread_thread_exit): Consider target as well.
10798 (random_pending_event_thread): New inferior parameter. Use it.
10799 (do_target_wait): Rename to ...
10800 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10801 down.
10802 (threads_are_resumed_pending_p, do_target_wait): New.
10803 (prepare_for_detach): Adjust calls.
10804 (wait_for_inferior): New inferior parameter. Handle it. Use
10805 do_target_wait_1 instead of do_target_wait.
10806 (fetch_inferior_event): Adjust. Switch to representative
10807 inferior. Pass target down.
10808 (set_last_target_status): Add process_stratum_target parameter.
10809 Save target in global.
10810 (get_last_target_status): Add process_stratum_target parameter and
10811 handle it.
10812 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10813 (context_switch): Check inferior_ptid == null_ptid before calling
10814 inferior_thread().
10815 (get_inferior_stop_soon): Pass down target.
10816 (wait_one): Rename to ...
10817 (poll_one_curr_target): ... this.
10818 (struct wait_one_event): New.
10819 (wait_one): New.
10820 (stop_all_threads): Adjust.
10821 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10822 event's target.
10823 (switch_back_to_stepped_thread): Also consider target.
10824 (print_stop_event): Update.
10825 (normal_stop): Update. Also consider the resume target.
10826 * infrun.h (wait_for_inferior): Remove declaration.
10827 (user_visible_resume_target): New declaration.
10828 (get_last_target_status, set_last_target_status): New
10829 process_stratum_target parameter.
10830 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10831 process_stratum_target parameter, and use it.
10832 (clear_inline_frame_state (thread_info*)): New.
10833 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10834 process_stratum_target parameter.
10835 (clear_inline_frame_state (thread_info*)): Declare.
10836 * linux-fork.c (delete_checkpoint_command): Pass target down to
10837 find_thread_ptid.
10838 (checkpoint_command): Adjust.
10839 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10840 instead of just tweaking inferior_ptid.
10841 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10842 (exit_lwp): Pass target down to find_thread_ptid.
10843 (attach_proc_task_lwp_callback): Pass target down to
10844 add_thread/set_running/set_executing.
10845 (linux_nat_target::attach): Pass target down to
10846 thread_change_ptid.
10847 (get_detach_signal): Pass target down to find_thread_ptid.
10848 Consider last target status's target.
10849 (linux_resume_one_lwp_throw, resume_lwp)
10850 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10851 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10852 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10853 (linux_nat_target::async_wait_fd): New.
10854 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10855 target down.
10856 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10857 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10858 * linux-thread-db.c (struct thread_db_info::process_target): New
10859 field.
10860 (add_thread_db_info): Save target.
10861 (get_thread_db_info): New process_stratum_target parameter. Also
10862 match target.
10863 (delete_thread_db_info): New process_stratum_target parameter.
10864 Also match target.
10865 (thread_from_lwp): Adjust to pass down target.
10866 (thread_db_notice_clone): Pass down target.
10867 (check_thread_db_callback): Pass down target.
10868 (try_thread_db_load_1): Always push the thread_db target.
10869 (try_thread_db_load, record_thread): Pass target down.
10870 (thread_db_target::detach): Pass target down. Always unpush the
10871 thread_db target.
10872 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10873 target down. Always unpush the thread_db target.
10874 (find_new_threads_callback, thread_db_find_new_threads_2)
10875 (thread_db_target::update_thread_list): Pass target down.
10876 (thread_db_target::pid_to_str): Pass current inferior down.
10877 (thread_db_target::get_thread_local_address): Pass target down.
10878 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10879 target down.
10880 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10881 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10882 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10883 (procfs_init_inferior): Rename to ...
10884 (procfs_target::procfs_init_inferior): ... this and adjust.
10885 (procfs_target::create_inferior, procfs_notice_thread)
10886 (procfs_do_thread_registers): Adjust.
10887 * ppc-fbsd-tdep.c: Include "inferior.h".
10888 (ppcfbsd_get_thread_local_address): Pass down target.
10889 * proc-service.c (ps_xfer_memory): Switch current inferior and
10890 program space as well.
10891 (get_ps_regcache): Pass target down.
10892 * process-stratum-target.c
10893 (process_stratum_target::thread_address_space)
10894 (process_stratum_target::thread_architecture): Pass target down.
10895 * process-stratum-target.h
10896 (process_stratum_target::threads_executing): New field.
10897 (as_process_stratum_target): New.
10898 * ravenscar-thread.c
10899 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10900 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10901 down.
10902 * record-btrace.c (record_btrace_target::info_record): Adjust.
10903 (record_btrace_target::record_method)
10904 (record_btrace_target::record_is_replaying)
10905 (record_btrace_target::fetch_registers)
10906 (get_thread_current_frame_id, record_btrace_target::resume)
10907 (record_btrace_target::wait, record_btrace_target::stop): Pass
10908 target down.
10909 * record-full.c (record_full_wait_1): Switch to event thread.
10910 Pass target down.
10911 * regcache.c (regcache::regcache)
10912 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10913 process_stratum_target parameter and handle it.
10914 (current_thread_target): New global.
10915 (get_thread_regcache): Add process_stratum_target parameter and
10916 handle it. Switch inferior before calling target method.
10917 (get_thread_regcache): Pass target down.
10918 (get_thread_regcache_for_ptid): Pass target down.
10919 (registers_changed_ptid): Add process_stratum_target parameter and
10920 handle it.
10921 (registers_changed_thread, registers_changed): Pass target down.
10922 (test_get_thread_arch_aspace_regcache): New.
10923 (current_regcache_test): Define a couple local test_target_ops
10924 instances and use them for testing.
10925 (readwrite_regcache): Pass process_stratum_target parameter.
10926 (cooked_read_test, cooked_write_test): Pass mock_target down.
10927 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10928 (get_thread_arch_aspace_regcache): Add process_stratum_target
10929 parameter.
10930 (regcache::target): New method.
10931 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10932 (regcache::registers_changed_ptid): Add process_stratum_target
10933 parameter.
10934 (regcache::m_target): New field.
10935 (registers_changed_ptid): Add process_stratum_target parameter.
10936 * remote.c (remote_state::supports_vCont_probed): New field.
10937 (remote_target::async_wait_fd): New method.
10938 (remote_unpush_and_throw): Add remote_target parameter.
10939 (get_current_remote_target): Adjust.
10940 (remote_target::remote_add_inferior): Push target.
10941 (remote_target::remote_add_thread)
10942 (remote_target::remote_notice_new_inferior)
10943 (get_remote_thread_info): Pass target down.
10944 (remote_target::update_thread_list): Skip threads of inferiors
10945 bound to other targets. (remote_target::close): Don't discard
10946 inferiors. (remote_target::add_current_inferior_and_thread)
10947 (remote_target::process_initial_stop_replies)
10948 (remote_target::start_remote)
10949 (remote_target::remote_serial_quit_handler): Pass down target.
10950 (remote_target::remote_unpush_target): New remote_target
10951 parameter. Unpush the target from all inferiors.
10952 (remote_target::remote_unpush_and_throw): New remote_target
10953 parameter. Pass it down.
10954 (remote_target::open_1): Check whether the current inferior has
10955 execution instead of checking whether any inferior is live. Pass
10956 target down.
10957 (remote_target::remote_detach_1): Pass down target. Use
10958 remote_unpush_target.
10959 (extended_remote_target::attach): Pass down target.
10960 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10961 (remote_target::append_resumption): Pass down target.
10962 (remote_target::append_pending_thread_resumptions)
10963 (remote_target::remote_resume_with_hc, remote_target::resume)
10964 (remote_target::commit_resume): Pass down target.
10965 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10966 (remote_target::interrupt_query)
10967 (remote_target::remove_new_fork_children)
10968 (remote_target::check_pending_events_prevent_wildcard_vcont)
10969 (remote_target::remote_parse_stop_reply)
10970 (remote_target::process_stop_reply): Pass down target.
10971 (first_remote_resumed_thread): New remote_target parameter. Pass
10972 it down.
10973 (remote_target::wait_as): Pass down target.
10974 (unpush_and_perror): New remote_target parameter. Pass it down.
10975 (remote_target::readchar, remote_target::remote_serial_write)
10976 (remote_target::getpkt_or_notif_sane_1)
10977 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10978 down target.
10979 (remote_target::mourn_inferior): Pass down target. Use
10980 remote_unpush_target.
10981 (remote_target::core_of_thread)
10982 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10983 (remote_target::pid_to_exec_file)
10984 (remote_target::thread_handle_to_thread_info): Pass down target.
10985 (remote_target::async_wait_fd): New.
10986 * riscv-fbsd-tdep.c: Include "inferior.h".
10987 (riscv_fbsd_get_thread_local_address): Pass down target.
10988 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10989 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10990 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10991 Adjust.
10992 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10993 * solib-svr4.c (enable_break): Pass down target.
10994 * spu-multiarch.c (parse_spufs_run): Pass down target.
10995 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10996 * target-delegates.c: Regenerate.
10997 * target.c (g_target_stack): Delete.
10998 (current_top_target): Return the current inferior's top target.
10999 (target_has_execution_1): Refer to the passed-in inferior's top
11000 target.
11001 (target_supports_terminal_ours): Check whether the initial
11002 inferior was already created.
11003 (decref_target): New.
11004 (target_stack::push): Incref/decref the target.
11005 (push_target, push_target, unpush_target): Adjust.
11006 (target_stack::unpush): Defref target.
11007 (target_is_pushed): Return bool. Adjust to refer to the current
11008 inferior's target stack.
11009 (dispose_inferior): Delete, and inline parts ...
11010 (target_preopen): ... here. Only dispose of the current inferior.
11011 (target_detach): Hold strong target reference while detaching.
11012 Pass target down.
11013 (target_thread_name): Add assertion.
11014 (target_resume): Pass down target.
11015 (target_ops::beneath, find_target_at): Adjust to refer to the
11016 current inferior's target stack.
11017 (get_dummy_target): New.
11018 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11019 has a thread running.
11020 (initialize_targets): Rename to ...
11021 (_initialize_target): ... this.
11022 * target.h: Include "gdbsupport/refcounted-object.h".
11023 (struct target_ops): Inherit refcounted_object.
11024 (target_ops::shortname, target_ops::longname): Make const.
11025 (target_ops::async_wait_fd): New method.
11026 (decref_target): Declare.
11027 (struct target_ops_ref_policy): New.
11028 (target_ops_ref): New typedef.
11029 (get_dummy_target): Declare function.
11030 (target_is_pushed): Return bool.
11031 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11032 (all_matching_threads_iterator::all_matching_threads_iterator):
11033 Handle filter target.
11034 * thread-iter.h (struct all_matching_threads_iterator, struct
11035 all_matching_threads_range, class all_non_exited_threads_range):
11036 Filter by target too. Remove explicit.
11037 * thread.c (threads_executing): Delete.
11038 (inferior_thread): Pass down current inferior.
11039 (clear_thread_inferior_resources): Pass down thread pointer
11040 instead of ptid_t.
11041 (add_thread_silent, add_thread_with_info, add_thread): Add
11042 process_stratum_target parameter. Use it for thread and inferior
11043 searches.
11044 (is_current_thread): New.
11045 (thread_info::deletable): Use it.
11046 (find_thread_ptid, thread_count, in_thread_list)
11047 (thread_change_ptid, set_resumed, set_running): New
11048 process_stratum_target parameter. Pass it down.
11049 (set_executing): New process_stratum_target parameter. Pass it
11050 down. Adjust reference to 'threads_executing'.
11051 (threads_are_executing): New process_stratum_target parameter.
11052 Adjust reference to 'threads_executing'.
11053 (set_stop_requested, finish_thread_state): New
11054 process_stratum_target parameter. Pass it down.
11055 (switch_to_thread): Also match inferior.
11056 (switch_to_thread): New process_stratum_target parameter. Pass it
11057 down.
11058 (update_threads_executing): Reimplement.
11059 * top.c (quit_force): Pop targets from all inferior.
11060 (gdb_init): Don't call initialize_targets.
11061 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11062 Declare.
11063 (windows_add_thread, windows_delete_thread): Adjust.
11064 (get_windows_debug_event): Rename to ...
11065 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11066 * tracefile-tfile.c (tfile_target_open): Pass down target.
11067 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11068 Forward declare.
11069 (switch_to_thread): Add process_stratum_target parameter.
11070 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11071 parameter. Use it.
11072 (mi_on_resume): Pass target down.
11073 * nat/fork-inferior.c (startup_inferior): Add
11074 process_stratum_target parameter. Pass it down.
11075 * nat/fork-inferior.h (startup_inferior): Add
11076 process_stratum_target parameter.
11077 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11078
11079 2020-01-10 Pedro Alves <palves@redhat.com>
11080
11081 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11082 directly. Instead find the first thread in the thread list and
11083 use switch_to_thread.
11084
11085 2020-01-10 Pedro Alves <palves@redhat.com>
11086
11087 * remote.c (remote_target::remote_add_inferior): Don't bind a
11088 process to the current inferior if the current inferior is already
11089 bound to a process.
11090
11091 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11092 Pedro Alves <palves@redhat.com>
11093
11094 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11095 If no process is specified, return null_ptid instead of
11096 inferior_ptid.
11097 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11098 TARGET_WAITKIND_SIGNALLED with no pid.
11099
11100 2020-01-10 Pedro Alves <palves@redhat.com>
11101
11102 * remote.c (first_remote_resumed_thread): New.
11103 (remote_target::wait_as): Use it as default event_ptid instead of
11104 inferior_ptid.
11105
11106 2020-01-10 Pedro Alves <palves@redhat.com>
11107
11108 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11109
11110 2020-01-10 Pedro Alves <palves@redhat.com>
11111
11112 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11113 not -1.
11114
11115 2020-01-10 Pedro Alves <palves@redhat.com>
11116
11117 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11118 ptid to get_last_target_status.
11119 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11120 ptid to get_last_target_status.
11121 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11122 get_last_target_status.
11123 (info_program_command): Don't pass a target_waitstatus to
11124 get_last_target_status.
11125 * infrun.c (init_wait_for_inferior): Use
11126 nullify_last_target_wait_ptid.
11127 (get_last_target_status): Handle nullptr arguments.
11128 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11129 (print_stop_event): Don't pass a ptid to get_last_target_status.
11130 (normal_stop): Don't pass a ptid to get_last_target_status.
11131 * infrun.h (get_last_target_status, set_last_target_status): Move
11132 comments here and update.
11133 (nullify_last_target_wait_ptid): Declare.
11134 * linux-fork.c (fork_load_infrun_state): Remove local extern
11135 declaration of nullify_last_target_wait_ptid.
11136 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11137 to get_last_target_status.
11138
11139 2020-01-10 Pedro Alves <palves@redhat.com>
11140
11141 * gdbthread.h (scoped_restore_current_thread)
11142 <dont_restore, restore, m_dont_restore>: Declare.
11143 * thread.c (thread_alive): Add assertion. Return bool.
11144 (switch_to_thread_if_alive): New.
11145 (prune_threads): Switch inferior/thread.
11146 (print_thread_info_1): Switch thread before calling target methods.
11147 (scoped_restore_current_thread::restore): New, factored out from
11148 ...
11149 (scoped_restore_current_thread::~scoped_restore_current_thread):
11150 ... this.
11151 (scoped_restore_current_thread::scoped_restore_current_thread):
11152 Add assertion.
11153 (thread_apply_all_command, thread_select): Use
11154 switch_to_thread_if_alive.
11155 * infrun.c (proceed, restart_threads, handle_signal_stop)
11156 (switch_back_to_stepped_thread): Switch current thread before
11157 calling target methods.
11158
11159 2020-01-10 Pedro Alves <palves@redhat.com>
11160
11161 * inferior.c (switch_to_inferior_no_thread): New function,
11162 factored out from ...
11163 (inferior_command): ... here.
11164 * inferior.h (switch_to_inferior_no_thread): Declare.
11165 * mi/mi-main.c (run_one_inferior): Use
11166 switch_to_inferior_no_thread.
11167
11168 2020-01-10 Pedro Alves <palves@redhat.com>
11169
11170 * infcmd.c (kill_command): Remove dead code.
11171
11172 2020-01-10 Pedro Alves <palves@redhat.com>
11173
11174 * remote.c (remote_target::mourn_inferior): No longer check
11175 whether the target is running.
11176
11177 2020-01-10 Pedro Alves <palves@redhat.com>
11178
11179 * corelow.c (core_target::has_execution): Change parameter type to
11180 inferior pointer.
11181 * inferior.c (number_of_live_inferiors): Use
11182 inferior::has_execution instead of target_has_execution_1.
11183 * inferior.h (inferior::has_execution): New.
11184 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11185 inferior::has_execution instead of target_has_execution_1.
11186 * process-stratum-target.c
11187 (process_stratum_target::has_execution): Change parameter type to
11188 inferior pointer. Check the inferior's PID instead of
11189 inferior_ptid.
11190 * process-stratum-target.h
11191 (process_stratum_target::has_execution): Change parameter type to
11192 inferior pointer.
11193 * record-full.c (record_full_core_target::has_execution): Change
11194 parameter type to inferior pointer.
11195 * target.c (target_has_execution_1): Change parameter type to
11196 inferior pointer.
11197 (target_has_execution_current): Adjust.
11198 * target.h (target_ops::has_execution): Change parameter type to
11199 inferior pointer.
11200 (target_has_execution_1): Change parameter type to inferior
11201 pointer. Change return type to bool.
11202 * tracefile.h (tracefile_target::has_execution): Change parameter
11203 type to inferior pointer.
11204
11205 2020-01-10 Pedro Alves <palves@redhat.com>
11206
11207 * exceptions.c (print_flush): Remove current_top_target() check.
11208
11209 2020-01-10 Pedro Alves <palves@redhat.com>
11210
11211 * remote.c (show_remote_exec_file): Show the current inferior's
11212 exec-file instead of the command variable's value.
11213
11214 2020-01-10 Pedro Alves <palves@redhat.com>
11215
11216 * record-full.c (record_full_resume_ptid): New global.
11217 (record_full_target::resume): Set it.
11218 (record_full_wait_1): Use record_full_resume_ptid instead of
11219 inferior_ptid.
11220
11221 2020-01-10 Pedro Alves <palves@redhat.com>
11222
11223 * gdbthread.h (scoped_restore_current_thread)
11224 <dont_restore, restore, m_dont_restore>: Declare.
11225 * thread.c (thread_alive): Add assertion. Return bool.
11226 (switch_to_thread_if_alive): New.
11227 (prune_threads): Switch inferior/thread.
11228 (print_thread_info_1): Switch thread before calling target methods.
11229 (scoped_restore_current_thread::restore): New, factored out from
11230 ...
11231 (scoped_restore_current_thread::~scoped_restore_current_thread):
11232 ... this.
11233 (scoped_restore_current_thread::scoped_restore_current_thread):
11234 Add assertion.
11235 (thread_apply_all_command, thread_select): Use
11236 switch_to_thread_if_alive.
11237
11238 2020-01-10 George Barrett <bob@bob131.so>
11239
11240 * stap-probe.c (stap_modify_semaphore): Don't check for null
11241 semaphores.
11242 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11243 for null semaphores.
11244
11245 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11248 all source windows, and maintain horizontal scroll status while
11249 doing so.
11250
11251 2020-01-09 Tom Tromey <tom@tromey.com>
11252
11253 PR tui/18932:
11254 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11255 update_source_window, not print_source_lines.
11256
11257 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11258
11259 * tui/tui.c (tui_enable): Register tui hooks after calling
11260 tui_display_main.
11261
11262 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11263
11264 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11265
11266 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11267
11268 * thread.c (print_thread_info_1): Fix indentation.
11269
11270 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11271
11272 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11273 unique_xmalloc_ptr outside the if to always free the demangled name.
11274
11275 2020-01-08 Tom Tromey <tromey@adacore.com>
11276
11277 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11278 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11279 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11280 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11281 Remove.
11282 (section_offsets): New typedef.
11283 * symtab.c (fixup_section, get_msymbol_address): Update.
11284 * symmisc.c (dump_msymbols): Update.
11285 * symfile.h (relative_addr_info_to_section_offsets)
11286 (symfile_map_offsets_to_segments): Update.
11287 * symfile.c (build_section_addr_info_from_objfile)
11288 (init_objfile_sect_indices): Update.
11289 (struct place_section_arg): Change type of "offsets".
11290 (place_section): Update.
11291 (relative_addr_info_to_section_offsets): Change type of
11292 "section_offsets". Remove "num_sections" parameter.
11293 (default_symfile_offsets, syms_from_objfile_1)
11294 (set_objfile_default_section_offset): Update.
11295 (reread_symbols): No need to preserve section offsets by hand.
11296 (symfile_map_offsets_to_segments): Change type of "offsets".
11297 * stap-probe.c (relocate_address): Update.
11298 * stabsread.h (process_one_symbol): Update.
11299 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11300 (solib_target_relocate_section_addresses): Update.
11301 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11302 Update.
11303 * solib-frv.c (frv_relocate_main_executable): Update.
11304 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11305 * solib-aix.c (solib_aix_get_section_offsets): Change return
11306 type.
11307 (solib_aix_solib_create_inferior_hook): Update.
11308 * remote.c (remote_target::get_offsets): Update.
11309 * psymtab.c (find_pc_sect_psymtab): Update.
11310 * psympriv.h (struct partial_symbol) <address, text_low,
11311 text_high>: Update.
11312 * objfiles.h (obj_section_offset): Update.
11313 (struct objfile) <section_offsets>: Change type.
11314 <num_sections>: Remove.
11315 (objfile_relocate): Update.
11316 * objfiles.c (entry_point_address_query): Update
11317 (relocate_one_symbol): Change type of "section_offsets".
11318 (objfile_relocate1, objfile_relocate1): Change type of
11319 "new_offsets".
11320 (objfile_rebase1): Update.
11321 * mipsread.c (mipscoff_symfile_read): Update.
11322 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11323 parameter.
11324 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11325 (parse_external, psymtab_to_symtab_1): Update.
11326 * machoread.c (macho_symfile_offsets): Update.
11327 * ia64-tdep.c (ia64_find_unwind_table): Update.
11328 * hppa-tdep.c (read_unwind_info): Update.
11329 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11330 * dwarf2read.c (create_addrmap_from_index)
11331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11332 (process_psymtab_comp_unit_reader, add_partial_symbol)
11333 (add_partial_subprogram, process_full_comp_unit)
11334 (read_file_scope, read_func_scope, read_lexical_block_scope)
11335 (read_call_site_scope, dwarf2_rnglists_process)
11336 (dwarf2_ranges_process, dwarf2_ranges_read)
11337 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11338 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11339 Update.
11340 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11341 Update.
11342 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11343 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11344 (process_one_symbol): Change type of "section_offsets".
11345 * ctfread.c (get_objfile_text_range): Update.
11346 * coffread.c (coff_symtab_read, enter_linenos)
11347 (process_coff_symbol): Update.
11348 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11349 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11350
11351 2020-01-08 Tom Tromey <tromey@adacore.com>
11352
11353 * dwarf2read.c (parse_macro_definition): Use std::string.
11354 (parse_macro_definition): Likewise.
11355
11356 2020-01-08 Tom Tromey <tromey@adacore.com>
11357
11358 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11359 (ATTR_ALLOC_CHUNK): Remove.
11360
11361 2020-01-08 Tom Tromey <tromey@adacore.com>
11362
11363 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11364
11365 2020-01-08 Tom Tromey <tromey@adacore.com>
11366
11367 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11368 (dwarf2_compute_name, open_dwo_file): Likewise.
11369 (process_enumeration_scope): Use std::vector.
11370 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11371 (partial_die_info::fixup, dwarf2_start_subfile)
11372 (guess_full_die_structure_name, dwarf2_name): Likewise.
11373 (determine_prefix): Update.
11374 (guess_full_die_structure_name): Make return type const.
11375 (partial_die_full_name): Return unique_xmalloc_ptr.
11376 (DW_FIELD_ALLOC_CHUNK): Remove.
11377
11378 2020-01-07 Tom Tromey <tromey@adacore.com>
11379
11380 PR build/24937:
11381 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11382
11383 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11384
11385 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11386
11387 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11388
11389 * stack.c (print_frame_info): Move disassemble_next_line code
11390 inside source_print block.
11391
11392 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11393
11394 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11395 gdb/signals.h, as we are now using native signal symbols.
11396
11397 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11398
11399 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11400 overflow by an early check of content vs threshold.
11401 * tui/tui-source.c (tui_source_window::line_is_displayed):
11402 Likewise.
11403
11404 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11405
11406 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11407
11408 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11409
11410 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11411 export table if no section contains it's RVA.
11412
11413 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11414
11415 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11416
11417 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11418
11419 * source.c (print_source_lines_base): Set last_line_listed.
11420
11421 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11422
11423 * tui/tui-disasm.c: Remove trailing spaces.
11424
11425 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11426 Pedro Alves <palves@redhat.com>
11427
11428 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11429 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11430 (windows_gdb_signal_to_target): New function, uses the above
11431 enumeration to convert GDB internal signal codes to equivalent
11432 Windows codes.
11433 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11434 * windows-nat.c: Include "gdb_wait.h".
11435 (get_windows_debug_event): Extract the fatal exception from the
11436 exit status and convert to the equivalent Posix signal number.
11437 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11438 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11439 * gdbsupport/gdb_wait.c: New file, implements
11440 windows_status_to_termsig.
11441 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11442 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11443
11444 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11445
11446 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11447 show_layout.
11448
11449 2020-01-05 Luis Machado <luis.machado@linaro.org>
11450
11451 * aarch64-linux-nat.c
11452 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11453 and bfd_mach_aarch64.
11454
11455 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11456
11457 * ui-file.c (stdio_file::can_emit_style_escape)
11458 (tee_file::can_emit_style_escape): Ensure style is used also on
11459 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11460 to gdb_stdout.
11461 * main.c (set_gdb_data_directory): Use file style to output the
11462 warning that the given pathname is not a directory.
11463 * top.c (show_history_filename, gdb_safe_append_history)
11464 (show_gdb_datadir): Use file style.
11465
11466 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11467
11468 * solib-target.c (struct lm_info_target):
11469 Change offsets to be a unique_xmalloc_ptr.
11470 (solib_target_relocate_section_addresses): Update.
11471
11472 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11473
11474 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11475
11476 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11477
11478 * MAINTAINERS (Write After Approval): Add myself.
11479
11480 2020-01-02 Luis Machado <luis.machado@linaro.org>
11481
11482 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11483 Cell BE architecture.
11484 * target.h (struct target_ops) <thread_architecture>: Likewise.
11485
11486 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11487
11488 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11489
11490 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11491
11492 * MAINTAINERS (Write After Approval): Add myself.
11493
11494 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11495
11496 * gdbarch.sh: Update copyright year range of generated files.
11497
11498 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11499
11500 Update copyright year range in all GDB files.
11501
11502 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11503
11504 * copyright.py: Convert to Python 3.
11505
11506 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11507
11508 * copyright.py: Adapt after move of gnulib directory from gdb
11509 directory to toplevel directory.
11510
11511 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11512
11513 * copyright.py (main): Exit if run from the wrong directory.
11514
11515 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11516
11517 * top.c (print_gdb_version): Change copyright year to 2020.
11518
11519 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11520
11521 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11522
11523 For older changes see ChangeLog-2019.
11524 \f
11525 Local Variables:
11526 mode: change-log
11527 left-margin: 8
11528 fill-column: 74
11529 version-control: never
11530 coding: utf-8
11531 End:
This page took 0.261858 seconds and 5 git commands to generate.