gdb/python: Use reference not pointer in py-registers.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4 redundant local variable.
5 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6 reference, not pointer, update code accordingly.
7
8 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
9 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10
11 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
12 * jit.c (jit_breakpoint_re_set_internal): Use the
13 `skip_jit_symbol_lookup` field.
14
15 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17
18 * jit.c (jit_read_descriptor): Define the descriptor address once,
19 use twice.
20 (jit_breakpoint_deleted): Move the declaration of the loop variable
21 `iter` into the loop header.
22 (jit_breakpoint_re_set_internal): Move the declaration of the local
23 variable `objf_data` to the first point of definition.
24 (jit_event_handler): Move the declaration of local variables
25 `code_entry`, `entry_addr`, and `objf` to their first point of use.
26 Rename `objf` to `jited`.
27
28 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
31 Remove.
32 * jit.c (get_jiter_objfile_data): Update.
33
34 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * jit.c (struct jit_program_space_data): Remove.
38 (jit_program_space_key): Remove.
39 (jiter_objfile_data::~jiter_objfile_data): Remove program space
40 stuff.
41 (get_jit_program_space_data): Remove.
42 (jit_breakpoint_deleted): Iterate on all of the program space's
43 objfiles.
44 (jit_inferior_init): Likewise.
45 (jit_breakpoint_re_set_internal): Likewise. Also change return
46 type to void.
47 (jit_breakpoint_re_set): Pass current_program_space to
48 jit_breakpoint_re_set_internal.
49
50 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * jit.h (struct jiter_objfile_data) <cached_code_address,
53 jit_breakpoint>: Move to here from ...
54 * jit.c (jit_program_space_data): ... here.
55 (jiter_objfile_data::~jiter_objfile_data): Update.
56 (jit_breakpoint_deleted): Update.
57 (jit_breakpoint_re_set_internal): Update.
58
59 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
62 checks.
63 (jit_read_descriptor): Remove NULL check.
64 (jit_event_handler): Add an assertion.
65
66 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
67
68 * jit.h (struct jit_objfile_data): Split into...
69 (struct jiter_objfile_data): ... this ...
70 (struct jited_objfile_data): ... and this.
71 * objfiles.h (struct objfile) <jit_data>: Remove.
72 <jiter_data, jited_data>: New fields.
73 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
74 (jiter_objfile_data::~jiter_objfile_data): ... this.
75 (get_jit_objfile_data): Rename to ...
76 (get_jiter_objfile_data): ... this.
77 (add_objfile_entry): Update.
78 (jit_read_descriptor): Use get_jiter_objfile_data.
79 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
80 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
81 (jit_inferior_exit_hook): Use objfile's jited_data field.
82
83 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * jit.h: Forward-declare `struct minimal_symbol`.
86 (struct jit_objfile_data): Migrate to here from jit.c; also add a
87 constructor, destructor, and an objfile* field.
88 * jit.c (jit_objfile_data): Remove.
89 (struct jit_objfile_data): Migrate from here to jit.h.
90 (jit_objfile_data::~jit_objfile_data): New destructor
91 implementation with code moved from free_objfile_data.
92 (free_objfile_data): Delete.
93 (get_jit_objfile_data): Update to use the jit_data field of objfile.
94 (jit_find_objf_with_entry_addr): Ditto.
95 (jit_inferior_exit_hook): Ditto.
96 (_initialize_jit): Remove the call to
97 register_objfile_data_with_cleanup.
98 * objfiles.h (struct objfile) <jit_data>: New field.
99
100 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
101
102 * jit.h: Forward-declare `struct objfile`.
103 (jit_event_handler): Add a second parameter, the JITer objfile.
104 * jit.c (jit_read_descriptor): Change the signature to take the
105 JITer objfile as an argument instead of the jit_program_space_data.
106 (jit_inferior_init): Update the call to jit_read_descriptor.
107 (jit_event_handler): Use the new JITer objfile argument when calling
108 jit_read_descriptor.
109 * breakpoint.c (handle_jit_event): Update the call to
110 jit_event_handler to pass the JITer objfile.
111
112 2020-07-21 John Baldwin <jhb@FreeBSD.org>
113
114 * gdbarch.c: Regenerate.
115 * gdbarch.h: Regenerate.
116 * gdbarch.sh (handle_segmentation_fault): Remove method.
117 * infrun.c (handle_segmentation_fault): Remove.
118 (print_signal_received_reason): Remove call to
119 handle_segmentation_fault.
120
121 2020-07-21 John Baldwin <jhb@FreeBSD.org>
122
123 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
124 Rename to sparc64_linux_report_signal_info and add siggnal
125 argument.
126 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
127 instead of sparc64_linux_handle_segmentation_fault.
128
129 2020-07-21 John Baldwin <jhb@FreeBSD.org>
130
131 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
132 i386_linux_report_signal_info instead of
133 i386_linux_handle_segmentation_fault.
134 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
135 to i386_linux_report_signal_info and add siggnal argument.
136 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
137 of i386_linux_handle_segmentation_fault.
138 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
139 to i386_linux_report_signal_info and add siggnal argument.
140
141 2020-07-21 John Baldwin <jhb@FreeBSD.org>
142
143 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
144 hook if present.
145
146 2020-07-21 John Baldwin <jhb@FreeBSD.org>
147
148 * gdbarch.c: Regenerate.
149 * gdbarch.h: Regenerate.
150 * gdbarch.sh (report_signal_info): New method.
151 * infrun.c (print_signal_received_reason): Invoke gdbarch
152 report_signal_info hook if present.
153
154 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * python/py-registers.c : Add 'unordered_map' include.
157 (gdbpy_new_reggroup): Renamed to...
158 (gdbpy_get_reggroup): ...this. Update to only create register
159 group descriptors when needed.
160 (gdbpy_reggroup_iter_next): Update.
161
162 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * python/py-registers.c (gdbpy_register_object_data): New static
165 global.
166 (gdbpy_register_object_data_init): New function.
167 (gdbpy_new_register_descriptor): Renamed to...
168 (gdbpy_get_register_descriptor): ...this, and update to reuse
169 existing register descriptors where possible.
170 (gdbpy_register_descriptor_iter_next): Update.
171 (gdbpy_initialize_registers): Register new gdbarch data.
172
173 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
174
175 * linux-nat.c (stopped_pids): Make static.
176
177 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
178
179 PR ada/26235
180 * gdbtypes.c (ada_discrete_type_low_bound,
181 ada_discrete_type_high_bound): Handle undefined bounds.
182
183 2020-07-21 Kamil Rytarowski <n54@gmx.com>
184
185 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
186 declaration.
187 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
188 function.
189
190 2020-07-20 John Baldwin <jhb@FreeBSD.org>
191
192 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
193 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
194 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
195 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
196 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
197 method.
198
199 2020-07-20 Ludovic Courtès <ludo@gnu.org>
200
201 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
202 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
203 which are deprecated in Guile 3.0.
204 * configure.ac (try_guile_versions): Add "guile-3.0".
205 * configure (try_guile_versions): Regenerate.
206 * NEWS: Update entry.
207
208 2020-07-20 Ludovic Courtès <ludo@gnu.org>
209 Doug Evans <dje@google.com>
210
211 PR gdb/21104
212 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
213 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
214 USING_GUILE_BEFORE_2_2.
215 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
216 Change type to 'scm_t_port_type *'.
217 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
218 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
219 parameter and honor it. Update callers.
220 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
221 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
222 functions.
223 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
224 USING_GUILE_BEFORE_2_2.
225 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
226 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
227 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
228 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
229 and 'SCM_PORT_TYPE'.
230 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
231 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
232 (gdbscm_memory_port_read, gdbscm_memory_port_write)
233 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
234 [!USING_GUILE_BEFORE_2_2]: New functions.
235 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
236 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
237 'gdbscm_memory_port_read'.
238 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
239 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
240 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
241 function.
242 (ioscm_init_memory_port): Remove.
243 (ioscm_init_memory_port_stream): New function
244 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
245 function.
246 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
247 Return scm_from_uint (0).
248 (gdbscm_set_memory_port_read_buffer_size_x)
249 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
250 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
251 Return scm_from_uint (0).
252 (gdbscm_set_memory_port_write_buffer_size_x)
253 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
254 * configure.ac (try_guile_versions): Add "guile-2.2".
255 * configure: Regenerate.
256 * NEWS: Add entry.
257
258 2020-07-18 Tom Tromey <tom@tromey.com>
259
260 * linux-nat.c (linux_multi_process): Remove.
261 (linux_nat_target::supports_multi_process): Return true.
262
263 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * arch/riscv.c (riscv_tdesc_cache): Change map type.
266 (riscv_lookup_target_description): Return pointer out of
267 unique_ptr.
268 * target-descriptions.c (allocate_target_description): Add
269 comment.
270 (target_desc_deleter::operator()): Likewise.
271 * target-descriptions.h (struct target_desc_deleter): Moved to
272 gdbsupport/tdesc.h.
273 (target_desc_up): Likewise.
274
275 2020-07-17 Tom Tromey <tromey@adacore.com>
276
277 * linux-nat.c (linux_nat_target::supports_non_stop)
278 (linux_nat_target::always_non_stop_p): Use "true".
279 (linux_nat_target::supports_disable_randomization): Use "true" and
280 "false".
281
282 2020-07-16 Caroline Tice <cmtice@google.com>
283
284 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
285 (RNGLIST_HEADER_SIZE64): New constant definition.
286 (struct dwop_section_names): Add rnglists_dwo.
287 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
288 (struct loclist_header): Rename to 'loclists_rnglists_header'.
289 (struct dwo_sections): Add rnglists field.
290 (read_attribut_reprocess): Add tag parameter.
291 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
292 (cu_debug_rnglists_section): New function (decl & definition).
293 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
294 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
295 die whose range is being checked; get rnglist section from
296 cu_debug_rnglists_section, to get from either objfile or dwo file as
297 appropriate. Add cases for DW_RLE_base_addressx,
298 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
299 the base address to DW_RLE_offset_pairs (not to all ranges), moving
300 test inside if-condition and updating complaint message.
301 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
302 dwarf2_rnglists_process.
303 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
304 dwarf2_ranges_process.
305 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
306 need_ranges_base and update comment appropriately. Also pass die tag
307 to dwarf2_ranges_read.
308 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
309 need_ranges_base and update comment appropriately. Also pass die tag
310 to dwarf2_ranges_process.
311 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
312 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
313 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
314 need_ranges_base and update comment appropriately. Also pass die tag
315 to read_attribute_reprocess and dwarf2_ranges_read.
316 (read_loclist_header): Rename function to read_loclists_rnglists_header,
317 and update function comment appropriately.
318 (read_loclist_index): Call read_loclists_rnglists_header instead of
319 read_loclist_header.
320 (read_rnglist_index): New function.
321 (read_attribute_reprocess): Add tag parameter. Add code for
322 DW_FORM_rnglistx, passing tag to read_rnglist_index.
323 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
324
325 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
328 being resolved.
329
330 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * arch-utils.c (show_architecture): Update formatting of messages.
333
334 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
335
336 * gdbtypes.h (struct type) <bounds>: Handle array and string
337 types.
338 * ada-lang.c (assign_aggregate): Use type::bounds on
339 array/string type.
340 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
341 * c-varobj.c (c_number_of_children): Likewise.
342 (c_describe_child): Likewise.
343 * eval.c (evaluate_subexp_for_sizeof): Likewise.
344 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
345 (f_type_print_base): Likewise.
346 * f-valprint.c (f77_array_offset_tbl): Likewise.
347 (f77_get_upperbound): Likewise.
348 (f77_print_array_1): Likewise.
349 * guile/scm-type.c (gdbscm_type_range): Likewise.
350 * m2-typeprint.c (m2_array): Likewise.
351 (m2_is_long_set_of_type): Likewise.
352 * m2-valprint.c (get_long_set_bounds): Likewise.
353 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
354 * python/py-type.c (typy_range): Likewise.
355 * rust-lang.c (rust_internal_print_type): Likewise.
356 * type-stack.c (type_stack::follow_types): Likewise.
357 * valarith.c (value_subscripted_rvalue): Likewise.
358 * valops.c (value_cast): Likewise.
359
360 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
361
362 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
363 callers to use the equivalent accessor methods.
364
365 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
366
367 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
368 (struct type) <bit_stride>: New method.
369 (TYPE_BIT_STRIDE): Remove.
370 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
371
372 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
373
374 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
375 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
376 callers to use the equivalent accessor methods instead.
377
378 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
379
380 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
381 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
382 callers to use the equivalent accessor methods instead.
383
384 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
385
386 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
387 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
388 to use dynamic_prop::kind.
389
390 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
391
392 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
393 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
394 to get the bound property's kind and check against
395 PROP_UNDEFINED.
396
397 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
398
399 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
400 all callers to use type::range_bounds followed by
401 dynamic_prop::{low,high}.
402
403 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
406 const_val, set_const_val, baton, set_locexpr, set_loclist,
407 set_addr_offset, variant_parts, set_variant_parts,
408 original_type, set_original_type>: New methods.
409 <kind>: Rename to...
410 <m_kind>: ... this. Update all users to use the new methods
411 instead.
412 <data>: Rename to...
413 <m_data>: ... this. Update all users to use the new methods
414 instead.
415
416 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
417
418 * gdbtypes.c (get_discrete_bounds): Return failure if
419 the range type's bounds are not both defined and constant
420 values.
421 (get_array_bounds): Update comment. Remove undefined bound check.
422
423 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
426 the type::bounds method directly.
427
428 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
429
430 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
431 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
432 are used to set the range type's bounds to use set_bounds.
433
434 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
435
436 * exec.c (_initialize_exec): Update exec-file-mismatch help.
437
438 2020-07-10 Pedro Alves <pedro@palves.net>
439
440 * gdbthread.h (inferior_ref): Define.
441 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
442 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
443 * thread.c
444 (scoped_restore_current_thread::restore):
445 Adjust to gdb::ref_ptr.
446 (scoped_restore_current_thread::~scoped_restore_current_thread):
447 Remove manual decref handling.
448 (scoped_restore_current_thread::scoped_restore_current_thread):
449 Adjust to use
450 inferior_ref::new_reference/thread_info_ref::new_reference.
451 Incref the thread before calling get_frame_id instead of after.
452 Let TARGET_CLOSE_ERROR propagate.
453
454 2020-07-10 Pedro Alves <pedro@palves.net>
455
456 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
457 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
458 NOT_AVAILABLE_ERROR.
459 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
460 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
461
462 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
463 Pedro Alves <pedro@palves.net>
464
465 PR gdb/26199
466 * infrun.c (threads_are_resumed_pending_p): Delete.
467 (do_target_wait): Remove threads_are_executing and
468 threads_are_resumed_pending_p checks from the inferior_matches
469 lambda. Update comments.
470
471 2020-07-10 Pedro Alves <pedro@palves.net>
472
473 PR gdb/26199
474 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
475 executing threads.
476
477 2020-07-10 Pedro Alves <pedro@palves.net>
478
479 PR gdb/26199
480 * infrun.c (handle_no_resumed): Handle multiple targets.
481
482 2020-07-10 Pedro Alves <pedro@palves.net>
483
484 PR gdb/26199
485 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
486 target_is_async_p.
487
488 2020-07-10 Pedro Alves <pedro@palves.net>
489
490 PR gdb/26199
491 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
492 threads, not all threads.
493
494 2020-07-10 Pedro Alves <pedro@palves.net>
495
496 PR gdb/26199
497 * remote.c (remote_target::open_1): Pass remote target pointer as
498 data to create_async_event_handler.
499 (remote_async_inferior_event_handler): Mark async event handler
500 before returning if the remote target still has either pending
501 events or unacknowledged notifications.
502
503 2020-07-10 John Baldwin <jhb@FreeBSD.org>
504
505 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
506 declaration.
507 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
508 function.
509
510 2020-07-09 John Baldwin <jhb@FreeBSD.org>
511
512 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
513 inferior_ptid.
514
515 2020-07-09 John Baldwin <jhb@FreeBSD.org>
516
517 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
518 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
519 AT_FREEBSD_PS_STRINGS.
520
521 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
522
523 * auto-load.c (auto_load_objfile_script_1): Convert drive part
524 of debugfile path on Windows.
525
526 2020-07-08 John Baldwin <jhb@FreeBSD.org>
527
528 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
529 argument to 'data'.
530
531 2020-07-08 Tom Tromey <tromey@adacore.com>
532
533 * ada-lang.c (ada_exception_message_1): Use read_memory.
534
535 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 PR python/22748
538 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
539 special handling for inline frames.
540 * findvar.c (value_of_register_lazy): Skip inline frames when
541 creating lazy register values.
542 * frame.c (frame_id_computed_p): Delete definition.
543 * frame.h (frame_id_computed_p): Delete declaration.
544
545 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * NEWS: Mention additions to Python API.
548 * python/py-arch.c (archpy_register_groups): New function.
549 (arch_object_methods): Add 'register_groups' method.
550 * python/py-registers.c (reggroup_iterator_object): New struct.
551 (reggroup_object): New struct.
552 (gdbpy_new_reggroup): New function.
553 (gdbpy_reggroup_to_string): New function.
554 (gdbpy_reggroup_name): New function.
555 (gdbpy_reggroup_iter): New function.
556 (gdbpy_reggroup_iter_next): New function.
557 (gdbpy_new_reggroup_iterator): New function
558 (gdbpy_initialize_registers): Register new types.
559 (reggroup_iterator_object_type): Define new Python type.
560 (gdbpy_reggroup_getset): New static global.
561 (reggroup_object_type): Define new Python type.
562 * python/python-internal.h
563
564 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
567 * python/py-arch.c (archpy_registers): New function.
568 (arch_object_methods): Add 'registers' method.
569 * python/py-registers.c: New file.
570 * python/python-internal.h
571 (gdbpy_new_register_descriptor_iterator): Declare.
572 (gdbpy_initialize_registers): Declare.
573 * python/python.c (do_start_initialization): Call
574 gdbpy_initialize_registers.
575 * NEWS: Mention additions to the Python API.
576
577 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * NEWS: Mention new Python API method.
580 * python/py-unwind.c (pending_framepy_architecture): New function.
581 (pending_frame_object_methods): Add architecture method.
582
583 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * gdbarch.c: Regenerate.
586 * gdbarch.h: Regenerate.
587 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
588 (gdbarch_data): Use internal_error for the case where
589 deprecated_set_gdbarch_data was originally needed.
590 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
591 and use passed in obstack.
592 (libunwind_frame_set_descr): Should no longer get back NULL from
593 gdbarch_data.
594 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
595 type.
596 * user-regs.c (user_regs_init): Update parameters, and use passed
597 in obstack.
598 (user_reg_add): Should no longer get back NULL from gdbarch_data.
599 (_initialize_user_regs): Register as a pre-init gdbarch data type.
600
601 2020-07-06 Tom de Vries <tdevries@suse.de>
602
603 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
604 End-Of-Sequence in lte_is_less_than.
605 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
606 "gdb: Don't reorder line table entries too much when sorting".
607
608 2020-07-06 Tom de Vries <tdevries@suse.de>
609
610 PR tui/26205
611 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
612
613 2020-07-05 Tom de Vries <tdevries@suse.de>
614
615 PR build/26187
616 * inferior.h (struct infcall_suspend_state_deleter): If available, use
617 std::uncaught_exceptions instead of deprecated
618 std::uncaught_exception.
619
620 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
621
622 * macroexp.h (macro_stringify): Return
623 gdb::unique_xmalloc_ptr<char>.
624 * macroexp.c (macro_stringify): Likewise.
625 * macrotab.c (fixup_definition): Update.
626
627 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
630 (lex_one_token): Update.
631 * macroexp.c (struct macro_buffer) <release>: Return
632 gdb::unique_xmalloc_ptr<char>.
633 (macro_stringify): Update.
634 (macro_expand): Update.
635 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
636 * macroexp.h (macro_expand_next): Likewise.
637
638 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
639
640 * macroexp.h (macro_lookup_ftype): Remove.
641 (macro_expand, macro_expand_once, macro_expand_next): Remove
642 lookup function parameters, add scope parameter.
643 * macroexp.c (scan, substitute_args, expand, maybe_expand,
644 macro_expand, macro_expand_once, macro_expand_next): Likewise.
645 * macroscope.h (standard_macro_lookup): Change parameter type
646 to macro_scope.
647 * macroscope.c (standard_macro_lookup): Likewise.
648 * c-exp.y (lex_one_token): Update.
649 * macrocmd.c (macro_expand_command): Likewise.
650 (macro_expand_once_command): Likewise.
651
652 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * inf-loop.c (inferior_event_handler): Remove client_data param.
655 * inf-loop.h (inferior_event_handler): Likewise.
656 * infcmd.c (step_1): Adjust.
657 * infrun.c (proceed): Adjust.
658 (fetch_inferior_event): Remove client_data param.
659 (infrun_async_inferior_event_handler): Adjust.
660 * infrun.h (fetch_inferior_event): Remove `void *` param.
661 * linux-nat.c (handle_target_event): Adjust.
662 * record-btrace.c (record_btrace_handle_async_inferior_event):
663 Adjust.
664 * record-full.c (record_full_async_inferior_event_handler):
665 Adjust.
666 * remote.c (remote_async_inferior_event_handler): Adjust.
667
668 2020-07-01 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
671 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
672
673 2020-07-01 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
676 tui_gen_win_info.
677 (tui_win_info::make_window): Merge with
678 tui_gen_win_info::make_window.
679 (tui_win_info::make_visible): Move from tui_gen_win_info.
680 * tui/tui-win.c (tui_win_info::max_width): Move from
681 tui_gen_win_info.
682 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
683 type.
684 <window_factory>: Likewise.
685 * tui/tui-layout.c (tui_win_info::resize): Move from
686 tui_gen_win_info.
687 (make_standard_window): Change return type.
688 (get_locator_window, tui_get_window_by_name): Likewise.
689 (tui_layout_window::apply): Remove a cast.
690 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
691 (struct tui_win_info): Merge with tui_gen_win_info.
692 (struct tui_gen_win_info): Remove.
693
694 2020-07-01 Tom Tromey <tom@tromey.com>
695
696 * tui/tui-stack.h (struct tui_locator_window): Derive from
697 tui_win_info.
698 <do_scroll_horizontal, do_scroll_vertical>: New methods.
699 <can_box>: New method.
700
701 2020-07-01 Tom Tromey <tom@tromey.com>
702
703 * tui/tui-stack.h (struct tui_locator_window): Remove body.
704
705 2020-07-01 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-regs.c (tui_data_window::display_registers_from)
708 (tui_data_window::display_registers_from)
709 (tui_data_window::first_data_item_displayed)
710 (tui_data_window::delete_data_content_windows): Update.
711 (tui_data_window::refresh_window, tui_data_window::no_refresh):
712 Remove.
713 (tui_data_window::check_register_values): Update.
714 (tui_data_item_window::rerender): Add parameters. Update.
715 (tui_data_item_window::refresh_window): Remove.
716 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
717 virtual.
718 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
719 tui_gen_win_info.
720 <refresh_window, max_height, min_height>: Remove.
721 <rerender>: Add parameters.
722 <x, y, visible>: New members.
723 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
724 <m_item_width>: New member.
725
726 2020-07-01 Tom Tromey <tom@tromey.com>
727
728 * tui/tui-regs.c (tui_data_window::show_register_group)
729 (tui_data_window::check_register_values): Update.
730 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
731 from item_no.
732
733 2020-07-01 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
736 useless "if".
737
738 2020-07-01 Tom Tromey <tom@tromey.com>
739
740 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
741 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
742
743 2020-07-01 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
746 * tui/tui-winsource.h (enum tui_line_or_address_kind)
747 (struct tui_line_or_address): Move from tui-data.h.
748 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
749 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
750 (tui_cmd_window, tui_source_window_base, tui_source_window)
751 (tui_disasm_window): Don't declare.
752 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
753 to tui-winsource.h.
754 (SINGLE_KEY): Move to tui-stack.c.
755
756 2020-07-01 Tom Tromey <tom@tromey.com>
757
758 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
759 std::string.
760 * tui/tui-regs.c (class tab_expansion_file): New.
761 (tab_expansion_file::write): New method.
762 (tui_register_format): Change return type. Use
763 tab_expansion_file.
764 (tui_get_register, tui_data_window::display_registers_from)
765 (tui_data_item_window::rerender): Update.
766 * tui/tui-io.h (tui_expand_tabs): Don't declare.
767 * tui/tui-io.c (tui_expand_tabs): Remove.
768
769 2020-07-01 Tom Tromey <tom@tromey.com>
770
771 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
772
773 2020-07-01 Fangrui Song <maskray@google.com>
774
775 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
776
777 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
778
779 * dwarf2/read.c (set_die_type): Removed conditions to restrict
780 forms for DW_AT_associated and DW_AT_allocated attributes,
781 which is already checked in function attr_to_dynamic_prop.
782
783 2020-06-30 Tom Tromey <tromey@adacore.com>
784
785 * dwarf2/read.c (quirk_rust_enum): Correctly call
786 alloc_rust_variant for default-less enum.
787
788 2020-06-30 Tom Tromey <tromey@adacore.com>
789
790 PR build/26183:
791 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
792 gdb::to_string.
793
794 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
795
796 * gdbarch.sh (displaced_step_copy_insn): Update doc.
797 * gdbarch.h: Re-generate.
798
799 2020-06-28 Tom Tromey <tom@tromey.com>
800
801 * command.h (cmd_types): Remove.
802 (cmd_type): Don't declare.
803 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
804 typedef.
805 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
806 * cli/cli-decode.c (cmd_type): Remove.
807
808 2020-06-27 Pedro Alves <palves@redhat.com>
809
810 * fork-child.c (prefork_hook): Adjust.
811 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
812 Delete.
813 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
814 * inferior.c (inferior::set_tty, inferior::tty): New methods.
815 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
816 Remove declarations.
817 (struct inferior) <set_tty, tty>: New methods.
818 (struct inferior) <terminal>: Rename to ...
819 (struct inferior) <m_terminal>: ... this and make private.
820 * main.c (captured_main_1): Adjust.
821 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
822 (mi_cmd_inferior_tty_show): Adjust.
823 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
824 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
825
826 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
827
828 * configure.ac: Add --enable-libctf: handle --disable-static
829 properly.
830 * acinclude.m4: sinclude ../config/enable.m4.
831 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
832 (LIBCTF): Substitute in.
833 (CTF_DEPS): New, likewise.
834 (CLIBS): libctf needs symbols from libbfd: move earlier.
835 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
836 flags.
837 * ctfread.c: Surround in ENABLE_LIBCTF.
838 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
839 * configure: Regenerate.
840 * config.in: Likewise.
841
842 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
843
844 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
845
846 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
847
848 * inferior.h (struct inferior) <terminal>: Change type to
849 gdb::unique_xmalloc_ptr<char>.
850 * inferior.c (inferior::~inferior): Don't free inf->terminal.
851 * infcmd.c (set_inferior_io_terminal): Don't free terminal
852 field, adjust to unique pointer.
853 (get_inferior_io_terminal): Adjust to unique pointer.
854
855 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 * riscv-tdep.c (riscv_print_registers_info): Loop over all
858 registers, not just the known core set of registers.
859
860 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
863 fflags, frm, and fcsr registers.
864 (riscv_register_reggroup_p): Remove unknown CSRs from save and
865 restore groups.
866 (riscv_tdesc_unknown_reg): New function.
867 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
868 tdesc_use_registers.
869 * riscv-tdep.h (struct gdbarch_tdep): Add
870 unknown_csrs_first_regnum, unknown_csrs_count,
871 duplicate_fflags_regnum, duplicate_frm_regnum, and
872 duplicate_fcsr_regnum fields.
873
874 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * target-descriptions.c (tdesc_use_registers): Add new parameter a
877 callback, use the callback (when not null) to help number unknown
878 registers.
879 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
880 (tdesc_use_registers): Add extra parameter to declaration.
881
882 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
885 in the file.
886 (class riscv_pending_register_alias): Likewise.
887 (riscv_register_feature::register_info): Change 'required_p' field
888 to 'required', and change its type. Add 'check' member function.
889 (riscv_register_feature::register_info::check): Define new member
890 function.
891 (riscv_xreg_feature): Change initialisation of 'required' field.
892 (riscv_freg_feature): Likewise.
893 (riscv_virtual_feature): Likewise.
894 (riscv_csr_feature): Likewise.
895 (riscv_check_tdesc_feature): Take extra parameter, the csr
896 tdesc_feature, rewrite the function to use the new
897 riscv_register_feature::register_info::check function.
898 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
899
900 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * features/Makefile: Remove all references to the deleted files
903 below.
904 * features/riscv/32bit-csr.c: Deleted.
905 * features/riscv/32bit-csr.xml: Deleted.
906 * features/riscv/64bit-csr.c: Deleted.
907 * features/riscv/64bit-csr.xml: Deleted.
908 * features/riscv/rebuild-csr-xml.sh: Deleted.
909
910 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
913 whitespace error for declaration of names member variable.
914 (struct riscv_register_feature): Add new prefer_first_name member
915 variable, and fix whitespace error in declaration of registers.
916 (riscv_xreg_feature): Initialize prefer_first_name field.
917 (riscv_freg_feature): Likewise.
918 (riscv_virtual_feature): Likewise.
919 (riscv_csr_feature): Likewise.
920 (riscv_register_name): Expand on comments. Remove register name
921 modifications for CSR and virtual registers.
922
923 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
926 errors.
927
928 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
931 riscv-opc.h.
932 (class riscv_pending_register_alias): New class.
933 (riscv_check_tdesc_feature): Take vector of pending aliases and
934 populate it as appropriate.
935 (riscv_setup_register_aliases): Delete.
936 (riscv_gdbarch_init): Create vector of pending aliases and pass it
937 to riscv_check_tdesc_feature in all cases. Use the vector to
938 create the register aliases.
939
940 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941
942 * sol2-tdep.c (sol2_static_transform_name): Remove.
943 (sol2_init_abi): Don't register it.
944 * gdbarch.sh (static_transform_name): Remove.
945 * gdbarch.c, gdbarch.h: Regenerate.
946
947 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
948 gdbarch_static_transform_name.
949 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
950 * stabsread.c (define_symbol) <'X'>: Remove.
951 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
952 handling.
953 <'V'>: Likewise.
954 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
955 <'S'>: Remove call to gdbarch_static_transform_name.
956
957 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
958
959 * procfs.c (procfs_pre_trace): New function.
960 (procfs_target::create_inferior): Pass it to fork_inferior.
961
962 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
963
964 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
965 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
966 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
967 sol2-tdep.o, sparc-sol2-tdep.o.
968 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
969 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
970 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
971 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
972
973 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
974
975 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
976 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
977 Call sol2_init_abi.
978 Remove calls to set_gdbarch_skip_solib_resolver,
979 set_gdbarch_core_pid_to_str.
980 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
981 (i386_sol2_static_transform_name): Remove.
982 (i386_sol2_init_abi): Call sol2_init_abi.
983 Remove calls to set_gdbarch_sofun_address_maybe_missing,
984 set_gdbarch_static_transform_name,
985 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
986 Use sol2_sigtramp_p.
987 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
988 (sol2_sigtramp_p): New function.
989 (sol2_static_transform_name): New function.
990 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
991 (sol2_init_abi): New function.
992 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
993 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
994 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
995 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
996 (sparc_sol2_static_transform_name): Remove.
997 (sparc32_sol2_init_abi): Call sol2_init_abi.
998 Remove calls to set_gdbarch_sofun_address_maybe_missing,
999 set_gdbarch_static_transform_name,
1000 set_gdbarch_skip_solib_resolver,
1001 set_gdbarch_core_pid_to_str.
1002 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1003 (sparc_sol2_static_transform_name): Remove
1004 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1005 call sol2_sigtramp_p.
1006 (sparc64_sol2_init_abi): Call sol2_init_abi.
1007 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1008 set_gdbarch_static_transform_name,
1009 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1010
1011 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1012
1013 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1014 * exec.c (validate_exec_file): If from_tty, set both
1015 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1016 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1017 and from_tty, unconditionally ask a confirmation.
1018
1019 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * target-descriptions.c (tdesc_architecture_name): Protect against
1022 NULL pointer dereference.
1023 (maint_print_xml_tdesc_cmd): New function.
1024 (_initialize_target_descriptions): Register new 'maint print
1025 xml-tdesc' command and give it the filename completer.
1026 * NEWS: Mention new 'maint print xml-tdesc' command.
1027
1028 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * target-descriptions.c (class tdesc_compatible_info): New class.
1031 (struct target_desc): Change type of compatible vector.
1032 (tdesc_compatible_p): Update for change in type of
1033 target_desc::compatible.
1034 (tdesc_compatible_info_list): New function.
1035 (tdesc_compatible_info_arch_name): New function.
1036 (tdesc_add_compatible): Update for change in type of
1037 target_desc::compatible.
1038 (print_c_tdesc::visit_pre): Likewise.
1039
1040 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1043 whitespace to underscore.
1044 (maint_print_c_tdesc_cmd): Use fake filename for target
1045 descriptions that came from the target.
1046 (_initialize_target_descriptions): Add filename command completion
1047 for 'maint print c-tdesc'.
1048
1049 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1052 lines.
1053
1054 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1057 lines.
1058 (dwarf2_find_location_expression): Likewise.
1059 (call_site_parameter_matches): Likewise.
1060 (dwarf2_compile_expr_to_ax): Likewise.
1061 (disassemble_dwarf_expression): Likewise.
1062 (loclist_describe_location): Likewise.
1063
1064 2020-06-23 Pedro Alves <palves@redhat.com>
1065
1066 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1067 progspace-and-thread.h. Include scoped-mock-context.h instead.
1068 (register_to_value_test): Use scoped_mock_context.
1069 * regcache.c: Include "scoped-mock-context.h".
1070 (cooked_read_test): Don't error out if a target is already pushed.
1071 Use scoped_mock_context. Adjust.
1072 * scoped-mock-context.h: New file.
1073
1074 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1077 initializer.
1078 (ada_language::is_string_type_p): New member function.
1079 * c-lang.c (c_language_data): Delete la_is_string_type_p
1080 initializer.
1081 (cplus_language_data): Likewise.
1082 (asm_language_data): Likewise.
1083 (minimal_language_data): Likewise.
1084 * d-lang.c (d_language_data): Likewise.
1085 * f-lang.c (f_is_string_type_p): Delete function, implementation
1086 moved to f_language::is_string_type_p.
1087 (f_language_data): Delete la_is_string_type_p initializer.
1088 (f_language::is_string_type_p): New member function,
1089 implementation from f_is_string_type_p.
1090 * go-lang.c (go_is_string_type_p): Delete function, implementation
1091 moved to go_language::is_string_type_p.
1092 (go_language_data): Delete la_is_string_type_p initializer.
1093 (go_language::is_string_type_p): New member function,
1094 implementation from go_is_string_type_p.
1095 * language.c (language_defn::is_string_type_p): Define new member
1096 function.
1097 (default_is_string_type_p): Make static, add comment copied from
1098 header file.
1099 (unknown_language_data): Delete la_is_string_type_p initializer.
1100 (unknown_language::is_string_type_p): New member function.
1101 (auto_language_data): Delete la_is_string_type_p initializer.
1102 (auto_language::is_string_type_p): New member function.
1103 * language.h (language_data): Delete la_is_string_type_p field.
1104 (language_defn::is_string_type_p): Declare new function.
1105 (default_is_string_type_p): Delete desclaration, move comment to
1106 definition.
1107 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1108 moved to m2_language::is_string_type_p.
1109 (m2_language_data): Delete la_is_string_type_p initializer.
1110 (m2_language::is_string_type_p): New member function,
1111 implementation from m2_is_string_type_p.
1112 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1113 initializer.
1114 * opencl-lang.c (opencl_language_data): Likewise.
1115 * p-lang.c (pascal_is_string_type_p): Delete function,
1116 implementation moved to pascal_language::is_string_type_p.
1117 (pascal_language_data): Delete la_is_string_type_p initializer.
1118 (pascal_language::is_string_type_p): New member function,
1119 implementation from pascal_is_string_type_p.
1120 * rust-lang.c (rust_is_string_type_p): Delete function,
1121 implementation moved to rust_language::is_string_type_p.
1122 (rust_language_data): Delete la_is_string_type_p initializer.
1123 (rust_language::is_string_type_p): New member function,
1124 implementation from rust_is_string_type_p.
1125 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1126 is_string_type_p.
1127
1128 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * ada-lang.c (ada_language_data): Delete la_print_typedef
1131 initializer.
1132 (ada_language::print_typedef): New member function.
1133 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1134 (cplus_language_data): Likewise.
1135 (asm_language_data): Likewise.
1136 (minimal_language_data): Likewise.
1137 * d-lang.c (d_language_data): Likewise.
1138 * f-lang.c (f_language_data): Likewise.
1139 (f_language::print_typedef): New member function.
1140 * go-lang.c (go_language_data): Delete la_print_typedef
1141 initializer.
1142 * language.c (language_defn::print_typedef): Define member
1143 function.
1144 (unknown_language_data): Delete la_print_typedef initializer.
1145 (unknown_language::print_typedef): New member function.
1146 (auto_language_data): Delete la_print_typedef initializer.
1147 (auto_language::print_typedef): New member function.
1148 * language.h (language_data): Delete la_print_typedef field.
1149 (language_defn::print_typedef): Declare new member function.
1150 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1151 (default_print_typedef): Delete declaration.
1152 * m2-lang.c (m2_language_data): Delete la_print_typedef
1153 initializer.
1154 (m2_language::print_typedef): New member function.
1155 * objc-lang.c (objc_language_data): Delete la_print_typedef
1156 initializer.
1157 * opencl-lang.c (opencl_language_data): Likewise.
1158 * p-lang.c (pascal_language_data): Likewise.
1159 (pascal_language::print_typedef): New member function.
1160 * rust-lang.c (rust_print_typedef): Delete function,
1161 implementation moved to rust_language::print_typedef.
1162 (rust_language): Delete la_print_typedef initializer.
1163 (rust_language::print_typedef): New member function,
1164 implementation from rust_print_typedef.
1165 * typeprint.c (default_print_typedef): Delete.
1166
1167 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1170 (ada_language::printstr): New member function.
1171 * c-lang.c (c_language_data): Delete la_printstr initializer.
1172 (cplus_language_data): Likewise.
1173 (asm_language_data): Likewise.
1174 (minimal_language_data): Likewise.
1175 * d-lang.c (d_language_data): Likewise.
1176 * f-lang.c (f_printstr): Rename to f_language::printstr.
1177 (f_language_data): Delete la_printstr initializer.
1178 (f_language::printstr): New member function, implementation from
1179 f_printstr.
1180 * go-lang.c (go_language_data): Delete la_printstr initializer.
1181 * language.c (language_defn::printstr): Define new member
1182 function.
1183 (unk_lang_printstr): Delete.
1184 (unknown_language_data): Delete la_printstr initializer.
1185 (unknown_language::printstr): New member function.
1186 (auto_language_data): Delete la_printstr initializer.
1187 (auto_language::printstr): New member function.
1188 * language.h (language_data): Delete la_printstr field.
1189 (language_defn::printstr): Declare new member function.
1190 (LA_PRINT_STRING): Update call to printstr.
1191 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1192 (m2_language_data): Delete la_printstr initializer.
1193 (m2_language::printstr): New member function, implementation from
1194 m2_printstr.
1195 * objc-lang.c (objc_language_data): Delete la_printstr
1196 initializer.
1197 * opencl-lang.c (opencl_language_data): Likewise.
1198 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1199 (pascal_language_data): Delete la_printstr initializer.
1200 (pascal_language::printstr): New member function, implementation
1201 from pascal_printstr.
1202 * p-lang.h (pascal_printstr): Delete declaration.
1203 * rust-lang.c (rust_printstr): Update header comment.
1204 (rust_language_data): Delete la_printstr initializer.
1205 (rust_language::printstr): New member function.
1206
1207 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1210 (ada_language::printchar): New member function.
1211 * c-lang.c (c_language_data): Delete la_printchar initializer.
1212 (cplus_language_data): Likewise.
1213 (asm_language_data): Likewise.
1214 (minimal_language_data): Likewise.
1215 * d-lang.c (d_language_data): Likewise.
1216 * f-lang.c (f_printchar): Rename to f_language::printchar.
1217 (f_language_data): Delete la_printchar initializer.
1218 (f_language::printchar): New member function, implementation from
1219 f_printchar.
1220 * go-lang.c (go_language_data): Delete la_printchar initializer.
1221 * language.c (unk_lang_printchar): Delete.
1222 (language_defn::printchar): Define new member function.
1223 (unknown_language_data): Delete la_printchar initializer.
1224 (unknown_language::printchar): New member function.
1225 (auto_language_data): Delete la_printchar initializer.
1226 (auto_language::printchar): New member function.
1227 * language.h (language_data): Delete la_printchar field.
1228 (language_defn::printchar): Declare new member function.
1229 (LA_PRINT_CHAR): Update call to printchar.
1230 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1231 (m2_language::printchar): New member function.
1232 * objc-lang.c (objc_language_data): Delete la_printchar
1233 initializer.
1234 * opencl-lang.c (opencl_language_data): Likewise.
1235 * p-lang.c (pascal_language_data): Delete la_printchar
1236 initializer.
1237 (pascal_language::printchar): New member function.
1238 * rust-lang.c (rust_printchar): Rename to
1239 rust_language::printchar.
1240 (rust_language_data): Delete la_printchar initializer.
1241 (rust_language::printchar): New member function, implementation
1242 from rust_printchar.
1243
1244 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1247 (ada_language_data): Delete la_emitchar initializer.
1248 (ada_language::emitchar): New member function, implementation from
1249 emit_char.
1250 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1251 (cplus_language_data): Likewise.
1252 (asm_language_data): Likewise.
1253 (minimal_language_data): Likewise.
1254 * d-lang.c (d_language_data): Likewise.
1255 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1256 (f_language_data): Delete la_emitchar initializer.
1257 (f_language::emitchar): New member function, implementation from
1258 f_emit_char.
1259 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1260 * language.c (unk_lang_emit_char): Delete.
1261 (language_defn::emitchar): New member function definition.
1262 (unknown_language_data): Delete la_emitchar initializer.
1263 (unknown_language::emitchar): New member function.
1264 (auto_language_data): Delete la_emitchar initializer.
1265 (auto_language::emitchar): New member function.
1266 * language.h (language_data): Delete la_emitchar field.
1267 (language_defn::emitchar): New member field declaration.
1268 (LA_EMIT_CHAR): Update call to emitchar.
1269 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1270 (m2_language_data): Delete la_emitchar initializer.
1271 (m2_language::emitchar): New member function, implementation from
1272 m2_emit_char.
1273 * objc-lang.c (objc_language_data): Delete la_emitchar
1274 initializer.
1275 * opencl-lang.c (opencl_language_data): Likewise.
1276 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1277 (pascal_language_data): Delete la_emitchar initializer.
1278 (pascal_language::emitchar): New member function, implementation
1279 from pascal_emit_char.
1280 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1281 (rust_language_data): Delete la_emitchar initializer.
1282 (rust_language::emitchar): New member function, implementation
1283 from rust_emitchar.
1284
1285 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1288 (ada_language_data): Delete la_post_parser initializer.
1289 (ada_language::post_parser): New member function.
1290 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1291 (cplus_language_data): Likewise.
1292 (asm_language_data): Likewise.
1293 (minimal_language_data): Likewise.
1294 * d-lang.c (d_language_data): Likewise.
1295 * f-lang.c (f_language_data): Likewise.
1296 * go-lang.c (go_language_data): Likewise.
1297 * language.c (unknown_language_data): Likewise.
1298 (auto_language_data): Likewise.
1299 * language.h (language_data): Delete la_post_parser field.
1300 (language_defn::post_parser): New member function.
1301 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1302 * objc-lang.c (objc_language_data): Likewise.
1303 * opencl-lang.c (opencl_language_data): Likewise.
1304 * p-lang.c (pascal_language_data): Likewise.
1305 * parse.c (parse_exp_in_context): Update call to post_parser.
1306 (null_post_parser): Delete definition.
1307 * parser-defs.h (null_post_parser): Delete declaration.
1308 * rust-lang.c (rust_language_data): Delete la_post_parser
1309 initializer.
1310
1311 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * ada-lang.c (parse): Rename to ada_language::parser.
1314 (ada_language_data): Delete la_parser initializer.
1315 (ada_language::parser): New member function, implementation from
1316 parse.
1317 * c-lang.c (c_language_data): Delete la_parser initializer.
1318 (cplus_language_data): Likewise.
1319 (asm_language_data): Likewise.
1320 (minimal_language_data): Likewise.
1321 * d-lang.c (d_language_data): Likewise.
1322 (d_language::parser): New member function.
1323 * f-lang.c (f_language_data): Delete la_parser initializer.
1324 (f_language::parser): New member function.
1325 * go-lang.c (go_language_data): Delete la_parser initializer.
1326 (go_language::parser): New member function.
1327 * language.c (unk_lang_parser): Delete.
1328 (language_defn::parser): Define new member function.
1329 (unknown_language_data): Delete la_parser initializer.
1330 (unknown_language::parser): New member function.
1331 (auto_language_data): Delete la_parser initializer.
1332 (auto_language::parser): New member function.
1333 * language.h (language_data): Delete la_parser field.
1334 (language_defn::parser): Declare new member function.
1335 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1336 (m2_language::parser): New member function.
1337 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1338 * opencl-lang.c (opencl_language_data): Likewise.
1339 * p-lang.c (pascal_language_data): Likewise.
1340 (pascal_language::parser): New member function.
1341 * parse.c (parse_exp_in_context): Update call to parser.
1342 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1343 (rust_language::parser): New member function.
1344
1345 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * top.c (print_gdb_configuration): Print --with-python-libdir
1348 configuration value.
1349
1350 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1351
1352 * NEWS: Mention change to the alias command.
1353
1354 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1355
1356 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1357 (alias_command_completer)
1358 (make_alias_options_def_group): New functions.
1359 (alias_opts, alias_option_defs): New struct and array.
1360 (alias_usage_error): Update usage.
1361 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1362 Use option framework.
1363 (_initialize_cli_cmds): Update alias command help.
1364 Update aliases command help.
1365 (show_user):
1366 Add NULL for new default_args lookup_cmd argument.
1367 (valid_command_p): Rename to validate_aliased_command.
1368 Add NULL for new default_args lookup_cmd argument. Verify that the
1369 aliased_command has no default args.
1370 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1371 (lookup_cmd_1, lookup_cmd): New argument default_args.
1372 (add_alias_cmd):
1373 Add NULL for new default_args lookup_cmd argument.
1374 (print_help_for_command): Show default args under the layout
1375 alias some_alias = some_aliased_cmd some_alias_default_arg.
1376 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1377 xfree default_args in destructor.
1378 * cli/cli-script.c (process_next_line, do_define_command):
1379 Add NULL for new default_args lookup_cmd argument.
1380 * command.h: Declare new default_args argument in lookup_cmd
1381 and lookup_cmd_1.
1382 * completer.c (complete_line_internal_1):
1383 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1384 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1385 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1386 Likewise.
1387 * infcmd.c (_initialize_infcmd): Likewise.
1388 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1389 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1390 * python/py-param.c (add_setshow_generic): Likewise.
1391 * remote.c (_initialize_remote): Likewise.
1392 * top.c (execute_command): Prepend default_args if command has some.
1393 (set_verbose):
1394 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1395 * tracepoint.c (validate_actionline, encode_actions_1):
1396 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1397
1398 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1399
1400 * jit.c (jit_read_descriptor): Use bool as the return type.
1401 (jit_breakpoint_re_set_internal): Use bool as the return type.
1402 Invert the return value logic; return true if the jit breakpoint
1403 has been successfully initialized.
1404 (jit_inferior_init): Update the call to
1405 jit_breakpoint_re_set_internal.
1406
1407 2020-06-22 Pedro Alves <palves@redhat.com>
1408
1409 PR gdb/25939
1410 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1411 Use the current inferior instead. Don't return
1412 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1413 wait again.
1414 * sol-thread.c (sol_thread_target::wait): Don't reference
1415 inferior_ptid.
1416 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1417 (sol_update_thread_list_callback): Use the current inferior's pid
1418 instead of inferior_ptid.
1419
1420 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1421
1422 * procfs.c: Cleanup many comments.
1423
1424 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1425 (AFTER_WATCHFLAG): Replace by value.
1426
1427 (MAIN_PROC_NAME_FORMAT): Inline ...
1428 (create_procinfo): ... here.
1429
1430 (procfs_debug_inferior): Remove SYS_exec handling.
1431 (syscall_is_exec): Likewise.
1432 (procfs_set_exec_trap): Likewise.
1433
1434 (syscall_is_lwp_exit): Inline in callers.
1435 (syscall_is_exit): Likewise.
1436 (syscall_is_exec): Likewise.
1437 (syscall_is_lwp_create): Likewise.
1438
1439 (invalidate_cache): Remove #if 0 code.
1440
1441 (make_signal_thread_runnable): Remove.
1442 (procfs_target::resume): Remove #if 0 code.
1443
1444 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1445
1446 PR gdb/25939
1447 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1448 call ...
1449 (procfs_target::create_inferior): ... here.
1450
1451 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1452
1453 * exec.c (validate_exec_file): Ensure the build-id is up to
1454 date by calling reopen_exec_file (that checks file timestamp
1455 to decide to re-read the file).
1456
1457 2020-06-18 Pedro Alves <palves@redhat.com>
1458
1459 PR gdb/25412
1460 * gdbthread.h (delete_thread, delete_thread_silent)
1461 (find_thread_ptid): Update comments.
1462 * thread.c (current_thread_): New global.
1463 (is_current_thread): Move higher, and reimplement.
1464 (inferior_thread): Reimplement.
1465 (set_thread_exited): Use bool. Add assertions.
1466 (add_thread_silent): Simplify thread-reuse handling by always
1467 calling delete_thread.
1468 (delete_thread): Remove intro comment.
1469 (find_thread_ptid): Skip exited threads.
1470 (switch_to_thread_no_regs): Write to current_thread_.
1471 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1472 INFERIOR_PTID. Clear current_thread_.
1473
1474 2020-06-18 Pedro Alves <palves@redhat.com>
1475
1476 * aix-thread.c (pd_update): Use switch_to_thread.
1477
1478 2020-06-18 Pedro Alves <palves@redhat.com>
1479
1480 * ravenscar-thread.c (ravenscar_thread_target): Update.
1481 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1482 (ravenscar_thread_target::add_active_thread): ... this. Don't
1483 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1484 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1485
1486 2020-06-18 Pedro Alves <palves@redhat.com>
1487
1488 * nat/windows-nat.c (current_windows_thread): Remove.
1489 * nat/windows-nat.h (current_windows_thread): Remove.
1490 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1491 Adjust.
1492 (display_selectors): Adjust to fetch the current
1493 windows_thread_info based on inferior_ptid.
1494 (fake_create_process): No longer write to current_windows_thread.
1495 (windows_nat_target::get_windows_debug_event):
1496 Don't set inferior_ptid or current_windows_thread.
1497 (windows_nat_target::wait): Adjust to not rely on
1498 current_windows_thread.
1499 (do_initial_windows_stuff): Now a method of windows_nat_target.
1500 Switch to the last_ptid thread.
1501 (windows_nat_target::attach): Adjust.
1502 (windows_nat_target::detach): Use switch_to_no_thread instead of
1503 writing to inferior_ptid directly.
1504 (windows_nat_target::create_inferior): Adjust.
1505
1506 2020-06-18 Pedro Alves <palves@redhat.com>
1507
1508 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1509
1510 2020-06-18 Pedro Alves <palves@redhat.com>
1511
1512 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1513 after creating it, instead of writing to inferior_ptid. Don't
1514 write to inferior_ptid.
1515
1516 2020-06-18 Pedro Alves <palves@redhat.com>
1517
1518 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1519
1520 2020-06-18 Pedro Alves <palves@redhat.com>
1521
1522 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1523 it, instead of writing to inferior_ptid.
1524
1525 2020-06-18 Pedro Alves <palves@redhat.com>
1526
1527 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1528 to inferior_ptid.
1529
1530 2020-06-18 Pedro Alves <palves@redhat.com>
1531
1532 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1533 instead of writing to inferior_ptid directly.
1534
1535 2020-06-18 Pedro Alves <palves@redhat.com>
1536
1537 * corelow.c (core_target::close): Use switch_to_no_thread instead
1538 of writing to inferior_ptid directly.
1539 (add_to_thread_list, core_target_open): Use switch_to_thread
1540 instead of writing to inferior_ptid directly.
1541
1542 2020-06-18 Pedro Alves <palves@redhat.com>
1543
1544 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1545 inferior_ptid.
1546 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1547 inferior_ptid.
1548 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1549 inferior_ptid directly.
1550 (darwin_nat_target::init_thread_list): Switch to thread, instead
1551 of writing to inferior_ptid.
1552 (darwin_nat_target::attach): Don't write to inferior_ptid.
1553 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1554
1555 2020-06-18 Pedro Alves <palves@redhat.com>
1556
1557 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1558 thread.
1559 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1560 Instead use switch_to_thread.
1561 (gnu_nat_target::detach): Use switch_to_no_thread
1562 instead of writing to inferior_ptid directly. Used passed-in
1563 inferior instead of looking up the inferior by pid.
1564
1565 2020-06-18 Pedro Alves <palves@redhat.com>
1566
1567 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1568 inferior_ptid.
1569
1570 2020-06-18 Pedro Alves <palves@redhat.com>
1571
1572 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1573 inferior_ptid.
1574 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1575 thread.
1576 (nto_procfs_target::detach): Avoid referencing
1577 inferior_ptid. Use switch_to_no_thread instead of writing to
1578 inferior_ptid directly.
1579 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1580 instead of writing to inferior_ptid directly.
1581 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1582 to thread.
1583
1584 2020-06-18 Pedro Alves <palves@redhat.com>
1585
1586 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1587 after creating it, instead of writing to inferior_ptid.
1588 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1589 to inferior_ptid directly.
1590 (gdbsim_target::wait): Don't write to inferior_ptid.
1591
1592 2020-06-18 Pedro Alves <palves@redhat.com>
1593
1594 * remote.c (remote_target::remote_notice_new_inferior): Use
1595 switch_to_thread instead of writing to inferior_ptid directly.
1596 (remote_target::add_current_inferior_and_thread): Use
1597 switch_to_no_thread instead of writing to inferior_ptid directly.
1598 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1599 and switch_to_thread instead of using set_current_inferior or
1600 writing to inferior_ptid directly.
1601
1602 2020-06-18 Pedro Alves <palves@redhat.com>
1603
1604 * tracectf.c (ctf_target_open): Switch to added thread instead of
1605 writing to inferior_ptid directly.
1606 (ctf_target::close): Use switch_to_no_thread instead of writing to
1607 inferior_ptid directly.
1608
1609 2020-06-18 Pedro Alves <palves@redhat.com>
1610
1611 * tracefile-tfile.c (tfile_target_open): Don't write to
1612 inferior_ptid directly, instead switch to added thread.
1613 (tfile_target::close): Use switch_to_no_thread instead of writing
1614 to inferior_ptid directly.
1615
1616 2020-06-18 Pedro Alves <palves@redhat.com>
1617
1618 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1619 (procfs_target::detach): Use switch_to_no_thread
1620 instead of writing to inferior_ptid directly.
1621 (do_attach): Change return type to void. Switch to the added
1622 thread.
1623 (procfs_target::create_inferior): Switch to the added thread.
1624 (procfs_do_thread_registers): Don't write to inferior_ptid.
1625
1626 2020-06-18 Pedro Alves <palves@redhat.com>
1627
1628 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1629 of writing to inferior_ptid.
1630 (scoped_restore_exited_inferior): Delete.
1631 (handle_vfork_child_exec_or_exit): Simplify using
1632 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1633 instead of writing to inferior_ptid.
1634 (THREAD_STOPPED_BY): Delete.
1635 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1636 (thread_stopped_by_hw_breakpoint): Delete.
1637 (save_waitstatus): Use
1638 scoped_restore_current_thread+switch_to_thread, and call
1639 target_stopped_by_watchpoint instead of
1640 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1641 instead of thread_stopped_by_sw_breakpoint, and
1642 target_stopped_by_hw_breakpoint instead of
1643 thread_stopped_by_hw_breakpoint.
1644 (handle_inferior_event)
1645 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1646 inferior_ptid directly, nor
1647 set_current_inferior/set_current_program_space. Use
1648 switch_to_thread / switch_to_inferior_no_thread instead.
1649
1650 2020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1653 instead of writing to inferior_ptid.
1654
1655 2020-06-18 Pedro Alves <palves@redhat.com>
1656
1657 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1658 added thread.
1659 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1660 to the added thread.
1661 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1662 instead of writing to inferior_ptid.
1663
1664 2020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1667 (register_to_value_test): Mock a program_space too. Heap-allocate
1668 the address space. Don't write to inferior_ptid. Use
1669 switch_to_thread instead.
1670
1671 2020-06-18 Pedro Alves <palves@redhat.com>
1672
1673 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1674 Delete.
1675 (find_signalled_thread()): New, factored out from
1676 linux_make_corefile_notes and adjusted to handle exited threads.
1677 (linux_make_corefile_notes): Adjust to use the new
1678 find_signalled_thread.
1679
1680 2020-06-18 Pedro Alves <palves@redhat.com>
1681
1682 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1683 of saving/restoring inferior_ptid.
1684
1685 2020-06-17 Tom Tromey <tom@tromey.com>
1686
1687 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1688 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1689 declare.
1690 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1691
1692 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1695 of partial symtabs.
1696
1697 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * regformats/reg-arm.dat: Remove.
1700 * regformats/reg-bfin.dat: Remove.
1701 * regformats/reg-cris.dat: Remove.
1702 * regformats/reg-crisv32.dat: Remove.
1703 * regformats/reg-m32r.dat: Remove.
1704 * regformats/reg-tilegx.dat: Remove.
1705 * regformats/reg-tilegx32.dat: Remove.
1706
1707 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1708
1709 * features/Makefile (WHICH): Remove arm files.
1710 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1711 * regformats/arm/arm-with-neon.dat: Remove.
1712 * regformats/arm/arm-with-vfpv2.dat: Remove.
1713 * regformats/arm/arm-with-vfpv3.dat: Remove.
1714
1715 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * features/Makefile (XMLTOC): Remove rx.xml.
1718
1719 2020-06-17 Pedro Alves <palves@redhat.com>
1720
1721 * gdbthread.h (thread_control_state) <trap_expected> Update
1722 comments.
1723
1724 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1727 ada_language::lookup_symbol_nonlocal.
1728 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1729 (ada_language::lookup_symbol_nonlocal): New member function,
1730 implementation from ada_lookup_symbol_nonlocal.
1731 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1732 initializer.
1733 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1734 initializer.
1735 (cplus_language::lookup_symbol_nonlocal): New member function.
1736 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1737 (minimal_language_data) Likewise.
1738 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1739 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1740 initializer.
1741 (d_language::lookup_symbol_nonlocal): New member function.
1742 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1743 initializer.
1744 (f_language::lookup_symbol_nonlocal): New member function.
1745 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1746 initializer.
1747 * language.c (unknown_language_data): Likewise.
1748 (auto_language_data): Likewise.
1749 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1750 field.
1751 (language_defn::lookup_symbol_nonlocal): New member function.
1752 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1753 initializer.
1754 * objc-lang.c (objc_language_data): Likewise.
1755 * opencl-lang.c (opencl_language_data): Likewise.
1756 * p-lang.c (pascal_language_data): Likewise.
1757 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1758 rust_language::lookup_symbol_nonlocal.
1759 (rust_language_data): Delete la_lookup_symbol_nonlocal
1760 initializer.
1761 (rust_language::lookup_symbol_nonlocal): New member function,
1762 implementation from rust_lookup_symbol_nonlocal.
1763 * symtab.c (lookup_symbol_aux): Update call to
1764 lookup_symbol_nonlocal.
1765 (basic_lookup_symbol_nonlocal): Rename to...
1766 (language_defn::lookup_symbol_nonlocal): ...this, and update
1767 header comment. Remove language_defn parameter, and replace with
1768 uses of `this'.
1769 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1770
1771 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1774 initializer.
1775 (ada_language::value_print_inner): New member function.
1776 * c-lang.c (c_language_data): Delete la_value_print_inner
1777 initializer.
1778 (cplus_language_data): Likewise.
1779 (asm_language_data): Likewise.
1780 (minimal_language_data): Likewise.
1781 * d-lang.c (d_language_data): Likewise.
1782 (d_language::value_print_inner): New member function.
1783 * f-lang.c (f_language_data): Delete la_value_print_inner
1784 initializer.
1785 (f_language::value_print_inner): New member function.
1786 * f-lang.h (f_value_print_innner): Rename to...
1787 (f_value_print_inner): ...this (note spelling of 'inner').
1788 * f-valprint.c (f_value_print_innner): Rename to...
1789 (f_value_print_inner): ...this (note spelling of 'inner').
1790 * go-lang.c (go_language_data): Delete la_value_print_inner
1791 initializer.
1792 (go_language::value_print_inner): New member function.
1793 * language.c (language_defn::value_print_inner): Define new member
1794 function.
1795 (unk_lang_value_print_inner): Delete.
1796 (unknown_language_data): Delete la_value_print_inner initializer.
1797 (unknown_language::value_print_inner): New member function.
1798 (auto_language_data): Delete la_value_print_inner initializer.
1799 (auto_language::value_print_inner): New member function.
1800 * language.h (language_data): Delete la_value_print_inner field.
1801 (language_defn::value_print_inner): Delcare new member function.
1802 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1803 initializer.
1804 (m2_language::value_print_inner): New member function.
1805 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1806 initializer.
1807 * opencl-lang.c (opencl_language_data): Likewise.
1808 * p-lang.c (pascal_language_data): Likewise.
1809 (pascal_language::value_print_inner): New member function.
1810 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1811 initializer.
1812 (rust_language::value_print_inner): New member function.
1813 * valprint.c (do_val_print): Update call to value_print_inner.
1814
1815 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * ada-lang.c (ada_language_data): Delete la_value_print
1818 initializer.
1819 (ada_language::value_print): New member function.
1820 * c-lang.c (c_language_data): Delete la_value_print initializer.
1821 (cplus_language_data): Likewise.
1822 (asm_language_data): Likewise.
1823 (minimal_language_data): Likewise.
1824 * d-lang.c (d_language_data): Likewise.
1825 * f-lang.c (f_language_data): Likewise.
1826 * go-lang.c (go_language_data): Likewise.
1827 * language.c (unk_lang_value_print): Delete.
1828 (language_defn::value_print): Define new member function.
1829 (unknown_language_data): Delete la_value_print initializer.
1830 (unknown_language::value_print): New member function.
1831 (auto_language_data): Delete la_value_print initializer.
1832 (auto_language::value_print): New member function.
1833 * language.h (language_data): Delete la_value_print field.
1834 (language_defn::value_print): Declare new member function.
1835 (LA_VALUE_PRINT): Update call to value_print.
1836 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1837 * objc-lang.c (objc_language_data): Likewise.
1838 * opencl-lang.c (opencl_language_data): Likewise.
1839 * p-lang.c (pascal_language_data): Likewise.
1840 (pascal_language::value_print): New member function.
1841 * rust-lang.c (rust_language_data): Delete la_value_print
1842 initializer.
1843
1844 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * ada-lang.c (ada_watch_location_expression): Rename to
1847 ada_language::watch_location_expression.
1848 (ada_language_data): Delete la_watch_location_expression
1849 initializer.
1850 (ada_language::watch_location_expression): New member function,
1851 implementation from ada_watch_location_expression.
1852 * breakpoint.c (watch_command_1): Update call to
1853 watch_location_expression.
1854 * c-lang.c (c_watch_location_expression): Rename to
1855 language_defn::watch_location_expression.
1856 (c_language_data): Delete la_watch_location_expression
1857 initializer.
1858 (cplus_language_data): Likewise.
1859 (asm_language_data): Likewise.
1860 (minimal_language_data): Likewise.
1861 * c-lang.h (c_watch_location_expression): Delete declaration.
1862 * d-lang.c (d_language_data): Delete la_watch_location_expression
1863 initializer.
1864 * f-lang.c (f_language_data): Likewise.
1865 * go-lang.c (go_language_data): Likewise.
1866 * language.c (language_defn::watch_location_expression): Member
1867 function implementation from c_watch_location_expression.
1868 (unknown_language_data): Delete la_watch_location_expression
1869 initializer.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Delete la_watch_location_expression
1872 field.
1873 (language_defn::watch_location_expression): Declare new member
1874 function.
1875 * m2-lang.c (m2_language_data): Delete
1876 la_watch_location_expression initializer.
1877 * objc-lang.c (objc_language_data): Likewise.
1878 * opencl-lang.c (opencl_language_data): Likewise.
1879 * p-lang.c (pascal_language_data): Likewise.
1880 * rust-lang.c (rust_watch_location_expression): Rename to
1881 rust_language::watch_location_expression.
1882 (rust_language_data): Delete la_watch_location_expression
1883 initializer.
1884 (rust_language::watch_location_expression): New member function,
1885 implementation from rust_watch_location_expression.
1886
1887 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1890 ada_language::collect_symbol_completion_matches.
1891 (ada_language_data): Delete la_collect_symbol_completion_matches
1892 initializer.
1893 (ada_language::collect_symbol_completion_matches): New member
1894 function, implementation from
1895 ada_collect_symbol_completion_matches.
1896 * c-lang.c (c_language_data): Delete
1897 la_collect_symbol_completion_matches initializer.
1898 (cplus_language_data): Likewise.
1899 (asm_language_data): Likewise.
1900 (minimal_language_data): Likewise.
1901 * d-lang.c (d_language_data): Likewise.
1902 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1903 f_language::collect_symbol_completion_matches.
1904 (f_language_data): Delete la_collect_symbol_completion_matches
1905 initializer.
1906 (f_language::collect_symbol_completion_matches) New member
1907 function, implementation from f_collect_symbol_completion_matches.
1908 * go-lang.c (go_language_data): Delete
1909 la_collect_symbol_completion_matches initializer.
1910 * language.c (unknown_language_data): Likewise.
1911 (auto_language_data): Likewise.
1912 * language.h (language_data): Delete
1913 la_collect_symbol_completion_matches field.
1914 (language_defn::collect_symbol_completion_matches): New member
1915 function.
1916 * m2-lang.c (m2_language_data): Delete
1917 la_collect_symbol_completion_matches initializer.
1918 * objc-lang.c (objc_language_data): Likewise.
1919 * opencl-lang.c (opencl_language_data): Likewise.
1920 * p-lang.c (pascal_language_data): Likewise.
1921 * rust-lang.c (rust_language_data): Likewise.
1922 * symtab.c (default_collect_symbol_completion_matches): Delete.
1923 (collect_symbol_completion_matches): Update call to
1924 collect_symbol_completion_matches.
1925 (collect_symbol_completion_matches_type): Likewise.
1926 * symtab.h (default_collect_symbol_completion_matches): Delete
1927 declaration.
1928
1929 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1932 (ada_language_data): Delete la_word_break_characters initializer.
1933 (ada_language::word_break_characters): New member function.
1934 * c-lang.c (c_language_data): Delete la_word_break_characters
1935 initializer.
1936 (cplus_language_data): Likewise.
1937 (asm_language_data): Likewise.
1938 (minimal_language_data): Likewise.
1939 * completer.c: Update global comment.
1940 (advance_to_expression_complete_word_point): Update call to
1941 word_break_characters.
1942 (complete_files_symbols): Likewise.
1943 (complete_line_internal_1): Likewise.
1944 (default_completer_handle_brkchars): Likewise.
1945 (skip_quoted_chars): Likewise.
1946 * d-lang.c (d_language_data): Delete la_word_break_characters
1947 initializer.
1948 * f-lang.c (f_word_break_characters): Delete.
1949 (f_language_data): Delete la_word_break_characters initializer.
1950 (f_language::word_break_characters): New member function.
1951 * go-lang.c (go_language_data): Delete la_word_break_characters
1952 initializer.
1953 * language.c (unknown_language_data): Likewise.
1954 (auto_language_data): Likewise.
1955 * language.h (default_word_break_characters): Move declaration to
1956 earlier in the file.
1957 (language_data): Delete la_word_break_characters field.
1958 (language_defn::word_break_characters): New member function.
1959 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1960 initializer.
1961 * objc-lang.c (objc_language_data): Likewise.
1962 * opencl-lang.c (opencl_language_data): Likewise.
1963 * p-lang.c (pascal_language_data): Likewise.
1964 * rust-lang.c (rust_language_data): Likewise.
1965
1966 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1969 (ada_language_data): Delete la_get_symbol_name_matcher
1970 initializer.
1971 (language_defn::get_symbol_name_matcher_inner): New member
1972 function.
1973 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1974 initializer.
1975 (cplus_language_data): Likewise.
1976 (cplus_language::get_symbol_name_matcher_inner): New member
1977 function.
1978 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1979 (minimal_language_data): Likewise.
1980 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1981 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1982 initializer.
1983 * dictionary.c (iter_match_first_hashed): Update call to
1984 get_symbol_name_matcher.
1985 (iter_match_next_hashed): Likewise.
1986 (iter_match_next_linear): Likewise.
1987 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1988 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1989 initializer.
1990 (f_language::get_symbol_name_matcher_inner): New member function.
1991 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1992 initializer.
1993 * language.c (default_symbol_name_matcher): Update header comment,
1994 make static.
1995 (language_defn::get_symbol_name_matcher): New definition.
1996 (language_defn::get_symbol_name_matcher_inner): Likewise.
1997 (get_symbol_name_matcher): Delete.
1998 (unknown_language_data): Delete la_get_symbol_name_matcher
1999 initializer.
2000 (auto_language_data): Likewise.
2001 * language.h (language_data): Delete la_get_symbol_name_matcher
2002 field.
2003 (language_defn::get_symbol_name_matcher): New member function.
2004 (language_defn::get_symbol_name_matcher_inner): Likewise.
2005 (default_symbol_name_matcher): Delete declaration.
2006 * linespec.c (find_methods): Update call to
2007 get_symbol_name_matcher.
2008 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2009 initializer.
2010 * minsyms.c (lookup_minimal_symbol): Update call to
2011 get_symbol_name_matcher.
2012 (iterate_over_minimal_symbols): Likewise.
2013 * objc-lang.c (objc_language_data): Delete
2014 la_get_symbol_name_matcher initializer.
2015 * opencl-lang.c (opencl_language_data): Likewise.
2016 * p-lang.c (pascal_language_data): Likewise.
2017 * psymtab.c (psymbol_name_matches): Update call to
2018 get_symbol_name_matcher.
2019 * rust-lang.c (rust_language_data): Delete
2020 la_get_symbol_name_matcher initializer.
2021 * symtab.c (symbol_matches_search_name): Update call to
2022 get_symbol_name_matcher.
2023 (compare_symbol_name): Likewise.
2024
2025 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2026
2027 * ada-lang.c (ada_language_data): Delete la_compute_program
2028 initializer.
2029 * c-lang.c (c_language_data): Likewise.
2030 (c_language::compute_program): New member function.
2031 (cplus_language_data): Delete la_compute_program initializer.
2032 (cplus_language::compute_program): New member function.
2033 (asm_language_data): Delete la_compute_program initializer.
2034 (minimal_language_data): Likewise.
2035 * c-lang.h (c_compute_program): Update comment.
2036 (cplus_compute_program): Likewise.
2037 * compile/compile-c-support.c (c_compute_program): Likewise.
2038 (cplus_compute_program): Likewise.
2039 * compile/compile.c (compile_to_object): Update call to
2040 la_compute_program.
2041 * d-lang.c (d_language_data): Delete la_compute_program
2042 initializer.
2043 * f-lang.c (f_language_data): Likewise.
2044 * go-lang.c (go_language_data): Likewise.
2045 * language.c (unknown_language_data): Likewise.
2046 (auto_language_data): Likewise.
2047 * language.h (language_data): Delete la_compute_program field.
2048 (language_defn::compute_program): New member function.
2049 * m2-lang.c (m2_language_data): Delete la_compute_program
2050 initializer.
2051 * objc-lang.c (objc_language_data): Likewise.
2052 * opencl-lang.c (opencl_language_data): Likewise.
2053 * p-lang.c (pascal_language_data): Likewise.
2054 * rust-lang.c (rust_language_data): Likewise.
2055
2056 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * ada-lang.c (ada_language_data) Delete
2059 la_class_name_from_physname initializer.
2060 * c-lang.c (c_language_data): Likewise.
2061 (cplus_language_data): Likewise.
2062 (cplus_language::class_name_from_physname): New member function.
2063 (asm_language_data): Delete la_class_name_from_physname
2064 initializer.
2065 (minimal_language_data): Likewise.
2066 * d-lang.c (d_language_data): Likewise.
2067 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2068 method on language_defn class.
2069 (guess_full_die_structure_name): Likewise.
2070 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2071 initializer.
2072 * go-lang.c (go_language_data): Likewise.
2073 * language.c (language_class_name_from_physname): Delete.
2074 (unk_lang_class_name): Delete.
2075 (unknown_language_data): Delete la_class_name_from_physname
2076 initializer.
2077 (auto_language_data): Likewise.
2078 * language.h (language_data): Delete la_class_name_from_physname
2079 field.
2080 (language_defn::class_name_from_physname): New function.
2081 (language_class_name_from_physname): Delete declaration.
2082 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2083 initializer.
2084 * objc-lang.c (objc_language_data): Likewise.
2085 * opencl-lang.c (opencl_language_data): Likewise.
2086 * p-lang.c (pascal_language_data): Likewise.
2087 * rust-lang.c (rust_language_data): Likewise.
2088
2089 2020-06-16 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-data.h (STATUS_NAME): New macro.
2092 * tui/tui-layout.c (tui_remove_some_windows)
2093 (initialize_known_windows, tui_register_window)
2094 (tui_layout_split::remove_windows, initialize_layouts)
2095 (tui_new_layout_command): Don't use hard-coded window names.
2096
2097 2020-06-16 Tom Tromey <tom@tromey.com>
2098
2099 PR tui/25348:
2100 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2101 tui_initialize_readline. Only run once. Call rl_initialize.
2102 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2103 tui_initialize_readline.
2104 * tui/tui-io.c (tui_setup_io): Call
2105 tui_ensure_readline_initialized.
2106 * tui/tui-interp.c (tui_interp::init): Update.
2107
2108 2020-06-16 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2111 Also preserve the status window.
2112
2113 2020-06-16 Tom Tromey <tom@tromey.com>
2114
2115 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2116 where m_window==nullptr.
2117
2118 2020-06-15 Tom Tromey <tromey@adacore.com>
2119
2120 * windows-nat.c (windows_nat::handle_output_debug_string):
2121 Update.
2122 (windows_nat::handle_ms_vc_exception): Update.
2123 * target.h (target_read_string): Change API.
2124 * target.c (target_read_string): Change API.
2125 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2126 Update.
2127 * solib-frv.c (frv_current_sos): Update.
2128 * solib-dsbt.c (dsbt_current_sos): Update.
2129 * solib-darwin.c (darwin_current_sos): Update.
2130 * linux-thread-db.c (inferior_has_bug): Update.
2131 * expprint.c (print_subexp_standard): Update.
2132 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2133 (ada_exception_message_1): Update.
2134
2135 2020-06-15 Tom Tromey <tromey@adacore.com>
2136
2137 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2138
2139 2020-06-15 Tom Tromey <tromey@adacore.com>
2140
2141 * valprint.c (read_string): Update comment.
2142 * target.c (MIN): Remove.
2143 (target_read_string): Rewrite.
2144
2145 2020-06-15 Tom Tromey <tromey@adacore.com>
2146
2147 * corefile.c (read_memory_string): Remove.
2148 * ada-valprint.c (ada_value_print_ptr): Update.
2149 * ada-lang.h (ada_tag_name): Change return type.
2150 * ada-lang.c (type_from_tag): Update.
2151 (ada_tag_name_from_tsd): Change return type. Use
2152 target_read_string.
2153 (ada_tag_name): Likewise.
2154 * gdbcore.h (read_memory_string): Don't declare.
2155
2156 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2157
2158 * symtab.c (rbreak_command): Ignore Windows drive colon.
2159
2160 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * NEWS: Mention removed GDBserver host support.
2163
2164 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2165
2166 * features/riscv/rebuild-csr-xml.sh: Updated.
2167
2168 2020-06-11 Tom Tromey <tom@tromey.com>
2169
2170 PR gdb/18318:
2171 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2172
2173 2020-06-09 Jonny Grant <jg@jguk.org>
2174 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * main.c (captured_main_1): Don't print new line after help.
2177 (print_gdb_help): add mailing list and IRC channel information
2178 to --help. Add new lines between items in the footer. Remove
2179 quotes around bug url.
2180
2181 2020-06-11 Keith Seitz <keiths@redhat.com>
2182
2183 PR gdb/21356
2184 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2185 Resolve typedefs for type length calculations.
2186
2187 2020-06-10 Tom de Vries <tdevries@suse.de>
2188
2189 PR ada/24713
2190 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2191 (write_psymbols): Enable .gdb_index for ada.
2192 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2193 ada.
2194
2195 2020-06-10 Tom de Vries <tdevries@suse.de>
2196
2197 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2198 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2199 namei" instead of "const char *name" argument.
2200 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2201 dw2_symtab_iter_init.
2202
2203 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2204
2205 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2206 to use type::field and field::type instead.
2207
2208 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2211 to use field::type instead.
2212
2213 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2214
2215 * gdbtypes.h (struct field) <type, set_type>: New methods.
2216 Rename `type` field to...
2217 <m_type>: ... this. Change references throughout to use type or
2218 set_type methods.
2219 (FIELD_TYPE): Use field::type. Change call sites that modify
2220 the field's type to use field::set_type instead.
2221
2222 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2223
2224 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2225 to use type::index_type instead.
2226
2227 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2228
2229 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2230 methods.
2231 (TYPE_INDEX_TYPE): Use type::index_type.
2232 * gdbtypes.c (create_array_type_with_stride): Likewise.
2233
2234 2020-06-07 Tom Tromey <tom@tromey.com>
2235
2236 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2237 parameter.
2238 (generic_value_print): Update.
2239
2240 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 Revert commit 982a38f60b0.
2243 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2244
2245 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2248 avoid use after free.
2249
2250 2020-06-05 Tom de Vries <tdevries@suse.de>
2251
2252 * NEWS: Fix typos.
2253
2254 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2257 the per_bfd object.
2258 (dwarf2_read_debug_names): Likewise.
2259 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2260 object when re-using a per_bfd object with an index.
2261
2262 2020-06-03 Tom de Vries <tdevries@suse.de>
2263
2264 PR symtab/26046
2265 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2266 children for C++.
2267 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2268 DW_TAG_subprogram.
2269
2270 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * ada-lang.c (ada_language_data): Delete skip_trampoline
2273 initializer.
2274 * c-lang.c (c_language_data): Likewise.
2275 (cplus_language_data): Likewise.
2276 (cplus_language::skip_trampoline): New member function.
2277 (asm_language_data): Delete skip_trampoline initializer.
2278 (minimal_language_data): Likewise.
2279 * d-lang.c (d_language_data): Likewise.
2280 * f-lang.c (f_language_data): Likewise.
2281 * go-lang.c (go_language_data): Likewise.
2282 * language.c (unk_lang_trampoline): Delete function.
2283 (skip_language_trampoline): Update.
2284 (unknown_language_data): Delete skip_trampoline initializer.
2285 (auto_language_data): Likewise.
2286 * language.h (language_data): Delete skip_trampoline field.
2287 (language_defn::skip_trampoline): New function.
2288 * m2-lang.c (m2_language_data): Delete skip_trampoline
2289 initializer.
2290 * objc-lang.c (objc_skip_trampoline): Delete function, move
2291 implementation to objc_language::skip_trampoline.
2292 (objc_language_data): Delete skip_trampoline initializer.
2293 (objc_language::skip_trampoline): New member function with
2294 implementation from objc_skip_trampoline.
2295 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2296 initializer.
2297 * p-lang.c (pascal_language_data): Likewise.
2298 * rust-lang.c (rust_language_data): Likewise.
2299
2300 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2303 (ada_language::demangle): New member function.
2304 * c-lang.c (c_language_data): Delete la_demangle initializer.
2305 (cplus_language_data): Delete la_demangle initializer.
2306 (cplus_language::demangle): New member function.
2307 (asm_language_data): Delete la_demangle initializer.
2308 (minimal_language_data): Delete la_demangle initializer.
2309 * d-lang.c (d_language_data): Delete la_demangle initializer.
2310 (d_language::demangle): New member function.
2311 * f-lang.c (f_language_data): Delete la_demangle initializer.
2312 (f_language::demangle): New member function.
2313 * go-lang.c (go_language_data): Delete la_demangle initializer.
2314 (go_language::demangle): New member function.
2315 * language.c (language_demangle): Update.
2316 (unk_lang_demangle): Delete.
2317 (unknown_language_data): Delete la_demangle initializer.
2318 (unknown_language::demangle): New member function.
2319 (auto_language_data): Delete la_demangle initializer.
2320 (auto_language::demangle): New member function.
2321 * language.h (language_data): Delete la_demangle field.
2322 (language_defn::demangle): New function.
2323 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2324 * objc-lang.c (objc_language_data): Delete la_demangle
2325 initializer.
2326 (objc_language::demangle): New member function.
2327 * opencl-lang.c (opencl_language_data): Delete la_demangle
2328 initializer.
2329 * p-lang.c (pascal_language_data): Likewise.
2330 * rust-lang.c (rust_language_data): Likewise.
2331 (rust_language::demangle): New member function.
2332
2333 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * ada-lang.c (ada_language_data): Delete la_print_type
2336 initializer.
2337 (ada_language::print_type): New member function.
2338 * c-lang.c (c_language_data): Delete la_print_type initializer.
2339 (c_language::print_type): New member function.
2340 (cplus_language_data): Delete la_print_type initializer.
2341 (cplus_language::print_type): New member function.
2342 (asm_language_data): Delete la_print_type initializer.
2343 (asm_language::print_type): New member function.
2344 (minimal_language_data): Delete la_print_type initializer.
2345 (minimal_language::print_type): New member function.
2346 * d-lang.c (d_language_data): Delete la_print_type initializer.
2347 (d_language::print_type): New member function.
2348 * f-lang.c (f_language_data): Delete la_print_type initializer.
2349 (f_language::print_type): New member function.
2350 * go-lang.c (go_language_data): Delete la_print_type initializer.
2351 (go_language::print_type): New member function.
2352 * language.c (unk_lang_print_type): Delete.
2353 (unknown_language_data): Delete la_print_type initializer.
2354 (unknown_language::print_type): New member function.
2355 (auto_language_data): Delete la_print_type initializer.
2356 (auto_language::print_type): New member function.
2357 * language.h (language_data): Delete la_print_type field.
2358 (language_defn::print_type): New function.
2359 (LA_PRINT_TYPE): Update.
2360 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2361 (m2_language::print_type): New member function.
2362 * objc-lang.c (objc_language_data): Delete la_print_type
2363 initializer.
2364 (objc_language::print_type): New member function.
2365 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2366 to opencl_language::print_type.
2367 (opencl_language_data): Delete la_print_type initializer.
2368 (opencl_language::print_type): New member function, implementation
2369 from opencl_print_type.
2370 * p-lang.c (pascal_language_data): Delete la_print_type
2371 initializer.
2372 (pascal_language::print_type): New member function.
2373 * rust-lang.c (rust_print_type): Delete, implementation moved to
2374 rust_language::print_type.
2375 (rust_language_data): Delete la_print_type initializer.
2376 (rust_language::print_type): New member function, implementation
2377 from rust_print_type.
2378
2379 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2382 implementation moves to...
2383 (ada_language::sniff_from_mangled_name): ...here. Update return
2384 type.
2385 (ada_language_data): Delete la_sniff_from_mangled_name
2386 initializer.
2387 * c-lang.c (c_language_data): Likewise.
2388 (cplus_language_data): Likewise.
2389 (cplus_language::sniff_from_mangled_name): New member function,
2390 implementation taken from gdb_sniff_from_mangled_name.
2391 (asm_language_data): Delete la_sniff_from_mangled_name
2392 initializer.
2393 (minimal_language_data): Likewise.
2394 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2395 implementation moves to cplus_language::sniff_from_mangled_name.
2396 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2397 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2398 moves to...
2399 (d_language::sniff_from_mangled_name): ...here.
2400 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2401 * f-lang.c (f_language_data): Likewise.
2402 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2403 moves to...
2404 (go_language::sniff_from_mangled_name): ...here.
2405 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2406 * language.c (language_sniff_from_mangled_name): Delete.
2407 (unknown_language_data): Delete la_sniff_from_mangled_name
2408 initializer.
2409 (auto_language_data): Likewise.
2410 * language.h (language_data): Delete la_sniff_from_mangled_name
2411 field.
2412 (language_defn::sniff_from_mangled_name): New function.
2413 (language_sniff_from_mangled_name): Delete declaration.
2414 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2415 field.
2416 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2417 implementation moves to...
2418 (objc_language::sniff_from_mangled_name): ...here.
2419 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2420 * opencl-lang.c (opencl_language_data): Likewise.
2421 * p-lang.c (pascal_language_data): Likewise.
2422 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2423 implementation moves to...
2424 (rust_language::sniff_from_mangled_name): ...here.
2425 (rust_language_data): Delete la_sniff_from_mangled_name
2426 initializer.
2427 * symtab.c (symbol_find_demangled_name): Call
2428 sniff_from_mangled_name member function.
2429
2430 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2433 initializer.
2434 * c-lang.c (c_language_data): Likewise.
2435 (cplus_language_data): Likewise.
2436 (cplus_language::search_name_hash): New member function.
2437 (asm_language_data): Delete la_search_name_hash initializer.
2438 (minimal_language_data): Likewise.
2439 * d-lang.c (d_language_data): Likewise.
2440 * dictionary.c (default_search_name_hash): Rename to...
2441 (language_defn::search_name_hash): ...this.
2442 * f-lang.c (f_language_data): Likewise.
2443 (f_language::search_name_hash): New member function.
2444 * go-lang.c (go_language_data): Delete la_search_name_hash
2445 initializer.
2446 * language.c (unknown_language_data): Likewise.
2447 (auto_language_data): Likewise.
2448 * language.h (struct language_data): Delete la_search_name_hash
2449 field.
2450 (language_defn::search_name_hash): Declare new member function.
2451 (default_search_name_hash): Delete declaration.
2452 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2453 initializer.
2454 * objc-lang.c (objc_language_data): Likewise.
2455 * opencl-lang.c (opencl_language_data): Likewise.
2456 * p-lang.c (pascal_language_data): Likewise.
2457 * rust-lang.c (rust_language_data): Likewise.
2458 * symtab.c (search_name_hash): Update call.
2459
2460 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2463 initializer.
2464 * c-lang.c (class compile_instance): Declare.
2465 (c_language_data): Delete la_get_compile_instance initializer.
2466 (c_language::get_compile_instance): New member function.
2467 (cplus_language_data): Delete la_get_compile_instance initializer.
2468 (cplus_language::get_compile_instance): New member function.
2469 (asm_language_data): Delete la_get_compile_instance initializer.
2470 (minimal_language_data): Likewise.
2471 * c-lang.h (c_get_compile_context): Update comment.
2472 (cplus_get_compile_context): Update comment.
2473 * compile/compile.c (compile_to_object): Update calls, don't rely
2474 on function pointer being NULL.
2475 * d-lang.c (d_language_data): Delete la_get_compile_instance
2476 initializer.
2477 * f-lang.c (f_language_data): Likewise.
2478 * go-lang.c (go_language_data): Likewise.
2479 * language.c (unknown_language_data): Likewise.
2480 (auto_language_data): Likewise.
2481 * language.h (language_data): Delete la_get_compile_instance field.
2482 (language_defn::get_compile_instance): New member function.
2483 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2484 initializer.
2485 * objc-lang.c (objc_language_data): Likewise.
2486 * opencl-lang.c (opencl_language_data): Likewise.
2487 * p-lang.c (pascal_language_data): Likewise.
2488 * rust-lang.c (rust_language_data): Likewise.
2489
2490 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * ada-lang.c (ada_add_all_symbols): Update comment.
2493 (ada_iterate_over_symbols): Delete, move implementation to...
2494 (ada_language::iterate_over_symbols): ...here, a new member
2495 function, rewrite to use range based for loop.
2496 (ada_language_data): Delete la_iterate_over_symbols initializer.
2497 * c-lang.c (c_language_data): Likewise.
2498 (cplus_language_data): Likewise.
2499 (asm_language_data): Likewise.
2500 (minimal_language_data): Likewise.
2501 * d-lang.c (d_language_data): Likewise.
2502 * f-lang.c (f_language_data): Likewise.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (unknown_language_data): Likewise.
2505 (auto_language_data): Likewise.
2506 * language.h (language_data): Delete la_iterate_over_symbols field.
2507 (language_defn::iterate_over_symbols): New member function.
2508 (LA_ITERATE_OVER_SYMBOLS): Update.
2509 * linespec.c (iterate_over_all_matching_symtabs): Update.
2510 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2511 initializer.
2512 * objc-lang.c (objc_language_data): Likewise.
2513 * opencl-lang.c (opencl_language_data): Likewise.
2514 * p-lang.c (pascal_language_data): Likewise.
2515 * rust-lang.c (rust_language_data): Likewise.
2516
2517 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * ada-lang.c (ada_language_data): Delete
2520 la_lookup_transparent_type initializer.
2521 * c-lang.c (c_language_data): Likewise.
2522 (cplus_language_data): Likewise.
2523 (cplus_language::lookup_transparent_type): New member function.
2524 (asm_language_data): Delete la_lookup_transparent_type
2525 initializer.
2526 (minimal_language_data): Likewise.
2527 * d-lang.c (d_language_data): Likewise.
2528 * f-lang.c (f_language_data): Likewise.
2529 * go-lang.c (go_language_data): Likewise.
2530 * language.c (unknown_language_data): Likewise.
2531 (auto_language_data): Likewise.
2532 * language.h (struct language_data): Delete
2533 la_lookup_transparent_type field.
2534 (language_defn::lookup_transparent_type): New member function.
2535 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2536 initializer.
2537 * objc-lang.c (objc_language_data): Likewise.
2538 * opencl-lang.c (opencl_language_data): Likewise.
2539 * p-lang.c (pascal_language_data): Likewise.
2540 * rust-lang.c (rust_language_data): Likewise.
2541 * symtab.c (symbol_matches_domain): Update call.
2542
2543 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * ada-lang.c (ada_language_arch_info): Delete function, move
2546 implementation to...
2547 (ada_language::language_arch_info): ...here, a new member
2548 function.
2549 (ada_language_data): Delete la_language_arch_info.
2550 * c-lang.c (c_language_data): Likewise.
2551 (c_language::language_arch_info): New member function.
2552 (cplus_language_arch_info): Delete function, move
2553 implementation to...
2554 (cplus_language::language_arch_info): ...here, a new member
2555 function.
2556 (cplus_language_data): Delete la_language_arch_info.
2557 (asm_language_data): Likewise.
2558 (asm_language::language_arch_info): New member function.
2559 (minimal_language_data): Delete la_language_arch_info.
2560 (minimal_language::language_arch_info): New member function.
2561 * d-lang.c (d_language_arch_info): Delete function, move
2562 implementation to...
2563 (d_language::language_arch_info): ...here, a new member
2564 function.
2565 (d_language_data): Delete la_language_arch_info.
2566 * f-lang.c (f_language_arch_info): Delete function, move
2567 implementation to...
2568 (f_language::language_arch_info): ...here, a new member
2569 function.
2570 (f_language_data): Delete la_language_arch_info.
2571 * go-lang.c (go_language_arch_info): Delete function, move
2572 implementation to...
2573 (go_language::language_arch_info): ...here, a new member
2574 function.
2575 (go_language_data): Delete la_language_arch_info.
2576 * language.c (unknown_language_data): Likewise.
2577 (unknown_language::language_arch_info): New member function.
2578 (auto_language_data): Delete la_language_arch_info.
2579 (auto_language::language_arch_info): New member function.
2580 (language_gdbarch_post_init): Update call to
2581 la_language_arch_info.
2582 * language.h (language_data): Delete la_language_arch_info
2583 function pointer.
2584 (language_defn::language_arch_info): New function.
2585 * m2-lang.c (m2_language_arch_info): Delete function, move
2586 implementation to...
2587 (m2_language::language_arch_info): ...here, a new member
2588 function.
2589 (m2_language_data): Delete la_language_arch_info.
2590 * objc-lang.c (objc_language_arch_info): Delete function, move
2591 implementation to...
2592 (objc_language::language_arch_info): ...here, a new member
2593 function.
2594 (objc_language_data): Delete la_language_arch_info.
2595 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2596 implementation to...
2597 (opencl_language::language_arch_info): ...here, a new member
2598 function.
2599 (opencl_language_data): Delete la_language_arch_info.
2600 * p-lang.c (pascal_language_arch_info): Delete function, move
2601 implementation to...
2602 (pascal_language::language_arch_info): ...here, a new member
2603 function.
2604 (pascal_language_data): Delete la_language_arch_info.
2605 * rust-lang.c (rust_language_arch_info): Delete function, move
2606 implementation to...
2607 (rust_language::language_arch_info): ...here, a new member
2608 function.
2609 (rust_language_data): Delete la_language_arch_info.
2610
2611 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2614 initializer.
2615 * c-lang.c (c_language_data): Likewise.
2616 (cplus_language_data): Likewise.
2617 (cplus_language::pass_by_reference_info): New method.
2618 (asm_language_data): Delete la_pass_by_reference initializer.
2619 (minimal_language_data): Likewise.
2620 * cp-abi.c (cp_pass_by_reference): Remove use of
2621 default_pass_by_reference.
2622 * d-lang.c (d_language_data): Likewise.
2623 * f-lang.c (f_language_data): Likewise.
2624 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2625 default_pass_by_reference.
2626 * go-lang.c (go_language_data): Likewise.
2627 * language.c (language_pass_by_reference): Update.
2628 (default_pass_by_reference): Delete.
2629 (unknown_language_data): Delete la_pass_by_reference
2630 initializer.
2631 (auto_language_data): Likewise.
2632 * language.h (struct language_data): Delete la_pass_by_reference
2633 field.
2634 (language_defn::pass_by_reference_info): New member function.
2635 (default_pass_by_reference): Delete declaration.
2636 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2637 initializer.
2638 * objc-lang.c (objc_language_data): Likewise.
2639 * opencl-lang.c (opencl_language_data): Likewise.
2640 * p-lang.c (pascal_language_data): Likewise.
2641 * rust-lang.c (rust_language_data): Likewise.
2642
2643 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 * ada-lang.c (ada_read_var_value): Delete function, move
2646 implementation to...
2647 (ada_language::read_var_value): ...here.
2648 (ada_language_data): Delete la_read_var_value initializer.
2649 * c-lang.c (c_language_data): Likewise.
2650 (cplus_language_data): Likewise.
2651 (minimal_language_data): Likewise.
2652 * d-lang.c (d_language_data): Likewise.
2653 * f-lang.c (f_language_data): Likewise.
2654 * findvar.c (default_read_var_value): Rename to...
2655 (language_defn::read_var_value): ...this.
2656 * findvar.c (read_var_value): Update header comment, and change to
2657 call member function instead of function pointer.
2658 * go-lang.c (go_language_data): Likewise.
2659 * language.c (unknown_language_data): Delete la_read_var_value
2660 initializer.
2661 (auto_language_data): Likewise.
2662 * language.h (struct language_data): Delete la_read_var_value
2663 field.
2664 (language_defn::read_var_value): New member function.
2665 (default_read_var_value): Delete declaration.
2666 * m2-lang.c (m2_language_data): Delete la_read_var_value
2667 initializer.
2668 * objc-lang.c (objc_language_data): Likewise.
2669 * opencl-lang.c (opencl_language_data): Likewise.
2670 * p-lang.c (pascal_language_data): Likewise.
2671 * rust-lang.c (rust_language_data): Likewise.
2672 * value.h (default_read_var_value): Delete declaration.
2673
2674 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * ada-lang.c (ada_print_array_index): Delete function, move
2677 implementation to...
2678 (ada_language::print_array_index): ...here.
2679 (ada_language_data): Delete la_print_array_index initializer.
2680 * c-lang.c (c_language_data): Likewise.
2681 (cplus_language_data): Likewise.
2682 (minimal_language_data): Likewise.
2683 * d-lang.c (d_language_data): Likewise.
2684 * f-lang.c (f_language_data): Likewise.
2685 * go-lang.c (go_language_data): Likewise.
2686 * language.c (default_print_array_index): Delete function, move
2687 implementation to...
2688 (language_defn::print_array_index): ...here.
2689 (unknown_language_data): Delete la_print_array_index initializer.
2690 (auto_language_data): Likewise.
2691 * language.h (struct language_data): Delete la_print_array_index
2692 field.
2693 (language_defn::print_array_index): New member function.
2694 (LA_PRINT_ARRAY_INDEX): Update.
2695 (default_print_array_index): Delete declaration.
2696 * m2-lang.c (m2_language_data): Delete la_print_array_index
2697 initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 * rust-lang.c (rust_language_data): Likewise.
2702
2703 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * gdb/ada-lang.c (ada_language_defn): Convert to...
2706 (ada_language_data): ...this.
2707 (class ada_language): New class.
2708 (ada_language_defn): New static global.
2709 * gdb/c-lang.c (c_language_defn): Convert to...
2710 (c_language_data): ...this.
2711 (class c_language): New class.
2712 (c_language_defn): New static global.
2713 (cplus_language_defn): Convert to...
2714 (cplus_language_data): ...this.
2715 (class cplus_language): New class.
2716 (cplus_language_defn): New static global.
2717 (asm_language_defn): Convert to...
2718 (asm_language_data): ...this.
2719 (class asm_language): New class.
2720 (asm_language_defn): New static global.
2721 (minimal_language_defn): Convert to...
2722 (minimal_language_data): ...this.
2723 (class minimal_language): New class.
2724 (minimal_language_defn): New static global.
2725 * gdb/d-lang.c (d_language_defn): Convert to...
2726 (d_language_data): ...this.
2727 (class d_language): New class.
2728 (d_language_defn): New static global.
2729 * gdb/f-lang.c (f_language_defn): Convert to...
2730 (f_language_data): ...this.
2731 (class f_language): New class.
2732 (f_language_defn): New static global.
2733 * gdb/go-lang.c (go_language_defn): Convert to...
2734 (go_language_data): ...this.
2735 (class go_language): New class.
2736 (go_language_defn): New static global.
2737 * gdb/language.c (unknown_language_defn): Remove declaration.
2738 (current_language): Initialize to nullptr, real initialization is
2739 moved to _initialize_language.
2740 (languages): Delete global.
2741 (language_defn::languages): Define.
2742 (set_language_command): Use language_defn::languages.
2743 (set_language): Likewise.
2744 (range_error): Likewise.
2745 (language_enum): Likewise.
2746 (language_def): Likewise.
2747 (add_set_language_command): Use language_def::languages for the
2748 language list, and language_def to lookup language pointers.
2749 (skip_language_trampoline): Use language_defn::languages.
2750 (unknown_language_defn): Convert to...
2751 (unknown_language_data): ...this.
2752 (class unknown_language): New class.
2753 (unknown_language_defn): New static global.
2754 (auto_language_defn): Convert to...
2755 (auto_language_data): ...this.
2756 (class auto_language): New class.
2757 (auto_language_defn): New static global.
2758 (language_gdbarch_post_init): Use language_defn::languages.
2759 (_initialize_language): Initialize current_language.
2760 * gdb/language.h (struct language_defn): Rename to...
2761 (struct language_data): ...this.
2762 (struct language_defn): New.
2763 (auto_language_defn): Delete.
2764 (unknown_language_defn): Delete.
2765 (minimal_language_defn): Delete.
2766 (ada_language_defn): Delete.
2767 (asm_language_defn): Delete.
2768 (c_language_defn): Delete.
2769 (cplus_language_defn): Delete.
2770 (d_language_defn): Delete.
2771 (f_language_defn): Delete.
2772 (go_language_defn): Delete.
2773 (m2_language_defn): Delete.
2774 (objc_language_defn): Delete.
2775 (opencl_language_defn): Delete.
2776 (pascal_language_defn): Delete.
2777 (rust_language_defn): Delete.
2778 * gdb/m2-lang.c (m2_language_defn): Convert to...
2779 (m2_language_data): ...this.
2780 (class m2_language): New class.
2781 (m2_language_defn): New static global.
2782 * gdb/objc-lang.c (objc_language_defn): Convert to...
2783 (objc_language_data): ...this.
2784 (class objc_language): New class.
2785 (objc_language_defn): New static global.
2786 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2787 (opencl_language_data): ...this.
2788 (class opencl_language): New class.
2789 (opencl_language_defn): New static global.
2790 * gdb/p-lang.c (pascal_language_defn): Convert to...
2791 (pascal_language_data): ...this.
2792 (class pascal_language): New class.
2793 (pascal_language_defn): New static global.
2794 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2795 language pointer, update comment format.
2796 * gdb/rust-lang.c (rust_language_defn): Convert to...
2797 (rust_language_data): ...this.
2798 (class rust_language): New class.
2799 (rust_language_defn): New static global.
2800
2801 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2804 member variable.
2805 <m_stmt_at_address>: New member variable.
2806 (lnp_state_machine::record_line): Don't record some lines, update
2807 tracking of is_stmt at the same address.
2808 (lnp_state_machine::lnp_state_machine): Initialise new member
2809 variables.
2810
2811 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2812
2813 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2814 "-include gnu-nat-mig.h".
2815 * gnu-nat-mig.h: New file.
2816 * gnu-nat.c: Include "gnu-nat-mig.h".
2817 (exc_server, msg_reply_server, notify_server,
2818 process_reply_server): Remove declarations.
2819
2820 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2821
2822 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2823 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2824 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2825 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2826 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2827 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2828 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2829 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2830 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2831 to gnu_nat_target class.
2832 * gnu-nat.c: Likewise.
2833 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2834 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2835 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2836 object.
2837 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2838 instead of `gnu_target'.
2839
2840 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2841
2842 * i386-gnu-tdep.c: Include "gdbcore.h"
2843 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2844 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2845 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2846 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2847 i386_gnu_sigcontext_addr): New functions
2848 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2849 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2850 tdep.
2851
2852 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2853
2854 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2855 before fork_inferior call. Avoid calling it if target_is_pushed returns
2856 true.
2857
2858 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2859
2860 * gnu-nat.h (gnu_target): New variable declaration.
2861 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2862 gnu_target.
2863 * gnu-nat.c (gnu_target): New variable.
2864 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2865 add_thread_silent, and add_thread calls.
2866 (gnu_nat_target::create_inferior): Pass gnu_target to
2867 add_thread_silent, thread_change_ptid call.
2868 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2869 call.
2870
2871 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2872
2873 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2874 (gnu_nat_target::find_memory_regions): Remove unused
2875 `old_address' variable.
2876
2877 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2878
2879 * gnu-nat.c: Include "gdbarch.h".
2880
2881 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2882
2883 * reply_mig_hack.awk (Error return): Cast function through
2884 void *, to bypass compiler function call check.
2885
2886 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2887
2888 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2889 $(srcdir)/reply_mig_hack.awk.
2890
2891 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2892
2893 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2894
2895 2020-05-30 Jonny Grant <jg@jguk.org>
2896
2897 * configure.ac (ACX_BUGURL): change bug URL to https.
2898
2899 2020-05-30 Pedro Alves <palves@redhat.com>
2900
2901 * cp-support.c (replace_typedefs_template): New.
2902 (replace_typedefs_qualified_name): Handle
2903 DEMANGLE_COMPONENT_TEMPLATE.
2904
2905 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2908 dwarf2/index-cache.h, dwarf2/index-write.c,
2909 dwarf2/index-write.h, dwarf2/line-header.c,
2910 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2911 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2912 variables and fields from `dwarf2_per_objfile` to just
2913 `per_objfile` throughout.
2914
2915 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2918 <push_dwarf_reg_entry_value>: Add comment.
2919
2920 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2921 Keith Seitz <keiths@redhat.com>
2922
2923 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2924 instead of PyEval_ReleaseLock.
2925 (class gdbpy_gil): Move to earlier in file.
2926 (finalize_python): Set gdb_python_initialized.
2927 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2928 when not initialized.
2929
2930 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2931
2932 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2933 <push_dwarf_reg_entry_value>: Remove assert. Override
2934 per_objfile with caller_per_objfile.
2935
2936 2020-05-28 Tom de Vries <tdevries@suse.de>
2937
2938 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2939 PR gold/15646 workaround to symbol kind "type".
2940
2941 2020-05-27 Tom Tromey <tromey@adacore.com>
2942
2943 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2944
2945 2020-05-27 Tom Tromey <tromey@adacore.com>
2946
2947 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2948 Use htab_find_with_hash.
2949 <add_abbrev>: Remove "abbrev_number" parameter.
2950 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2951 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2952 (hash_abbrev): Add comment.
2953 (abbrev_table::lookup_abbrev): Move to header file.
2954 (abbrev_table::read): Update.
2955
2956 2020-05-27 Tom Tromey <tromey@adacore.com>
2957
2958 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2959 method.
2960 <canonical_name>: New member.
2961 <raw_name>: Rename from "name".
2962 (partial_die_info): Initialize canonical_name.
2963 (scan_partial_symbols): Check raw_name.
2964 (partial_die_parent_scope, partial_die_full_name)
2965 (add_partial_symbol, add_partial_subprogram)
2966 (add_partial_enumeration, load_partial_dies): Use "name" method.
2967 (partial_die_info::name): New method.
2968 (partial_die_info::read, guess_partial_die_structure_name)
2969 (partial_die_info::fixup): Update.
2970
2971 2020-05-27 Tom Tromey <tromey@adacore.com>
2972
2973 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2974 <get_ref_die_offset>: Inline.
2975 <get_ref_die_offset_complaint>: New method.
2976 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2977 (attribute::get_ref_die_offset_complaint): Rename from
2978 get_ref_die_offset. Just issue complaint.
2979
2980 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2981
2982 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2983
2984 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2985
2986 * exec.c (exec_file_attach): Use errno value of first openp failure.
2987
2988 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2989
2990 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2991 Don't close thread handle.
2992
2993 2020-05-27 Tom Tromey <tom@tromey.com>
2994 Simon Marchi <simon.marchi@efficios.com>
2995
2996 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2997 shared_ptr.
2998 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2999 member.
3000 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3001 dwarf2_per_bfd_objfile_data_key>: New globals.
3002 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3003 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3004 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3005 shared.
3006 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3007 short-circuit when sharing.
3008 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3009 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3010
3011 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3014 to...
3015 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3016 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3017
3018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3019
3020 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3021 build_name_components, find_name_components_bounds>:
3022 Add per_objfile parameter.
3023 (struct mapped_index) <symbol_name_at>: Likewise.
3024 (struct mapped_debug_names): Remove constructor.
3025 <dwarf2_per_objfile>: Remove field.
3026 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3027 (mapped_index_base::find_name_components_bounds,
3028 mapped_index_base::build_name_components,
3029 dw2_expand_symtabs_matching_symbol): Likewise.
3030 (class mock_mapped_index) <symbol_name_at>: Likewise.
3031 (check_match): Likewise.
3032 (check_find_bounds_finds): Likewise.
3033 (test_mapped_index_find_name_component_bounds): Update.
3034 (CHECK_MATCH): Update.
3035 (dw2_expand_symtabs_matching): Update.
3036 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3037 per_objfile parameter.
3038 <find_vec_in_debug_names>: Likewise.
3039 <m_per_objfile>: New field.
3040 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3041 parameter.
3042 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3043 (dw2_debug_names_iterator::next): Update.
3044 (dw2_debug_names_lookup_symbol): Update.
3045 (dw2_debug_names_expand_symtabs_for_function): Update.
3046 (dw2_debug_names_map_matching_symbols): Update.
3047 (dw2_debug_names_expand_symtabs_matching): Update.
3048 (dwarf2_read_debug_names): Update.
3049
3050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3053 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3054 move to dwarf2_per_objfile.
3055 <read_in_chain>: Remove.
3056 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3057 remove_all_cus, age_comp_units>: New methods.
3058 <m_dwarf2_cus>: New member.
3059 (struct dwarf2_per_cu_data) <cu>: Remove.
3060 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3061 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3062 moved to methods of dwarf2_per_objfile.
3063 (dwarf2_clear_marks): Remove.
3064 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3065 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3066 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3067 (dwarf2_per_objfile::remove_all_cus): New.
3068 (class free_cached_comp_units) <~free_cached_comp_units>:
3069 Update.
3070 (load_cu): Update.
3071 (dw2_do_instantiate_symtab): Adjust.
3072 (fill_in_sig_entry_from_dwo_entry): Adjust.
3073 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3074 (cutu_reader::cutu_reader): Likewise.
3075 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3076 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3077 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3078 and dwarf2_per_objfile::age_comp_units.
3079 (load_partial_comp_unit): Update.
3080 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3081 (process_queue): Likewise.
3082 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3083 backlink.
3084 (dwarf2_read_addr_index): Likewise.
3085 (follow_die_offset): Likewise.
3086 (dwarf2_fetch_die_loc_sect_off): Likewise.
3087 (dwarf2_fetch_constant_bytes): Likewise.
3088 (dwarf2_fetch_die_type_sect_off): Likewise.
3089 (follow_die_sig_1): Likewise.
3090 (load_full_type_unit): Likewise.
3091 (read_signatured_type): Likewise.
3092 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3093 (dwarf2_cu::~dwarf2_cu): Remove.
3094 (dwarf2_per_objfile::get_cu): New.
3095 (dwarf2_per_objfile::set_cu): New.
3096 (age_cached_comp_units): Rename to...
3097 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3098 to std::unordered_map.
3099 (free_one_cached_comp_unit): Rename to...
3100 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3101 to std::unordered_map.
3102 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3103 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3104 a dwarf2_per_objfile in data.
3105 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3106 (dwarf2_clear_marks): Remove.
3107
3108 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3111 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3112 (init_tu_and_read_dwo_dies): Likewise.
3113 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3114 (cutu_reader::cutu_reader): Likewise.
3115 (load_partial_comp_unit): Likewise.
3116 (process_psymtab_comp_unit): Update.
3117 (build_type_psymtabs_1): Update.
3118 (process_skeletonless_type_unit): Update.
3119 (load_full_comp_unit): Update.
3120 (find_partial_die): Update.
3121 (dwarf2_read_addr_index): Update.
3122 (read_signatured_type): Update.
3123
3124 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3127 m_header_read_in>: New fields.
3128 <get_header>: New method.
3129 * dwarf2/read.c (per_cu_header_read_in): Remove.
3130 (dwarf2_per_cu_data::get_header): New.
3131 (dwarf2_per_cu_data::addr_size): Update.
3132 (dwarf2_per_cu_data::offset_size): Update.
3133 (dwarf2_per_cu_data::ref_addr_size): Update.
3134
3135 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3136
3137 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3138 (dw2_do_instantiate_symtab): Update.
3139 (queue_and_load_all_dwo_tus): Change parameter from
3140 dwarf2_per_cu_data to dwarf2_cu.
3141 (dwarf2_fetch_die_loc_sect_off): Update.
3142 (dwarf2_fetch_constant_bytes): Update.
3143 (dwarf2_fetch_die_type_sect_off): Update.
3144
3145 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * dwarf2/read.c (process_full_comp_unit,
3148 process_full_type_unit): Remove per_cu, per_objfile paramters.
3149 Add dwarf2_cu parameter.
3150 (process_queue): Update.
3151
3152 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * dwarf2/read.c (create_cu_from_index_list): Replace
3155 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3156 (create_cus_from_index_list): Likewise.
3157 (create_cus_from_index): Likewise.
3158 (create_signatured_type_table_from_index): Likewise.
3159 (create_cus_from_debug_names_list): Likewise.
3160 (create_cus_from_debug_names): Likewise.
3161 (dwarf2_read_gdb_index): Update.
3162 (dwarf2_read_debug_names): Update.
3163
3164 2020-05-27 Tom Tromey <tom@tromey.com>
3165 Simon Marchi <simon.marchi@efficios.com>
3166
3167 * dwarf2/read.h (struct dwarf2_per_objfile)
3168 <get_type_for_signatured_type, set_type_for_signatured_type>:
3169 New methods.
3170 <m_type_map>: New member.
3171 (struct signatured_type) <type>: Remove.
3172 * dwarf2/read.c
3173 (dwarf2_per_objfile::get_type_for_signatured_type,
3174 dwarf2_per_objfile::set_type_for_signatured_type): New.
3175 (get_signatured_type): Use new methods.
3176
3177 2020-05-27 Tom Tromey <tom@tromey.com>
3178 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3181 (struct dwarf2_per_objfile) <type_units>: New member.
3182 <get_type_unit_group_unshareable>: New method.
3183 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3184 num_symtabs, symtabs>: Remove; move to
3185 type_unit_group_unshareable.
3186 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3187 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3188 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3189
3190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * dwarf2/read.h (struct dwarf2_per_cu_data):
3193 <dwarf2_per_objfile>: Remove.
3194 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3195 dwarf2_per_objfile.
3196 (create_signatured_type_table_from_index): Likewise.
3197 (create_signatured_type_table_from_debug_names): Likewise.
3198 (create_debug_type_hash_table): Likewise.
3199 (fill_in_sig_entry_from_dwo_entry): Likewise.
3200 (create_type_unit_group): Likewise.
3201 (read_comp_units_from_section): Likewise.
3202 (create_cus_hash_table): Likewise.
3203
3204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3207 dwarf2_per_cu_data::dwarf2_per_objfile.
3208 (compute_compunit_symtab_includes): Likewise.
3209 (dwarf2_cu::start_symtab): Likewise.
3210
3211 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3212
3213 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3214 parameter.
3215 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3216 (read_namespace_alias): Update.
3217 (lookup_die_type): Update.
3218 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3219 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3220 Update.
3221 (disassemble_dwarf_expression): Update.
3222
3223 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3224
3225 * dwarf2/read.h (struct dwarf2_queue_item): Add
3226 dwarf2_per_objfile parameter, assign new parameter.
3227 <per_objfile>: New field.
3228 * dwarf2/read.c (free_one_cached_comp_unit): Add
3229 dwarf2_per_objfile parameter.
3230 (queue_comp_unit): Likewise.
3231 (dw2_do_instantiate_symtab): Update.
3232 (process_psymtab_comp_unit): Update.
3233 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3234 (process_imported_unit_die): Update.
3235 (queue_and_load_dwo_tu): Update.
3236 (follow_die_offset): Update.
3237 (follow_die_sig_1): Update.
3238
3239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3242 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3243 (read_call_site_scope): Assign per_objfile.
3244 (dwarf2_per_cu_data::objfile): Remove.
3245 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3246 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3247 dwarf2_per_objfile parameter.
3248 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3249 dwarf2_per_objfile parameter.
3250 (dwarf_expr_reg_to_entry_parameter): Add output
3251 dwarf2_per_objfile parameter.
3252 (locexpr_get_frame_base): Update.
3253 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3254 <push_dwarf_reg_entry_value>: Update.
3255 <call_site_to_target_addr>: Update.
3256 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3257 parameter.
3258 (value_of_dwarf_reg_entry): Update.
3259 (rw_pieced_value): Update.
3260 (indirect_synthetic_pointer): Update.
3261 (dwarf2_evaluate_property): Update.
3262 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3263 parameter.
3264 (locexpr_read_variable): Update.
3265 (locexpr_get_symbol_read_needs): Update.
3266 (loclist_read_variable): Update.
3267
3268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3271 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3272 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3273 parameter.
3274 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3275 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3276 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3277 parameter.
3278 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3279 sect_variable_value): Add dwarf2_per_objfile parameter.
3280 (class dwarf_evaluate_loc_desc) <dwarf_call,
3281 dwarf_variable_value>: Update.
3282 (fetch_const_value_from_synthetic_pointer): Add
3283 dwarf2_per_objfile parameter.
3284 (fetch_const_value_from_synthetic_pointer): Update.
3285 (coerced_pieced_ref): Update.
3286 (class symbol_needs_eval_context) <dwarf_call,
3287 dwarf_variable_value>: Update.
3288 (dwarf2_compile_expr_to_ax): Update.
3289
3290 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3293 parameter.
3294 (dwarf2_evaluate_loc_desc_full): Update.
3295
3296 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3299 parameter.
3300 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3301 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3302 dwarf2_per_objfile parameter.
3303 (decode_debug_loc_dwo_addresses): Likewise.
3304 (dwarf2_find_location_expression): Update.
3305 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3306 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3307 parameter.
3308 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3309 parameter.
3310 (locexpr_describe_location_1): Likewise.
3311 (locexpr_describe_location): Update.
3312
3313 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3314
3315 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3316 Remove.
3317 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3318 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3319 (dwarf2_compile_property_to_c): Update.
3320 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3321 use text offset from objfile.
3322 (locexpr_tracepoint_var_ref): Update.
3323 (locexpr_generate_c_location): Update.
3324 (loclist_describe_location): Update.
3325 (loclist_tracepoint_var_ref): Update.
3326 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3327 dwarf2_per_objfile parameter.
3328 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3329 use text offset from objfile.
3330 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3331
3332 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * dwarf2/expr.h (struct dwarf_expr_context)
3335 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3336 <offset>: Remove.
3337 <per_objfile>: New member.
3338 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3339 dwarf2_per_objfile parameter. Don't set offset, set
3340 per_objfile.
3341 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3342 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3343 a dwarf2_per_objfile object instead of an offset.
3344 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3345 constructor.
3346 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3347 to dwarf2_expr_executor constructor. Don't set offset.
3348 (dwarf2_fetch_cfa_info): Update.
3349 (struct dwarf2_frame_cache) <text_offset>: Remove.
3350 <per_objfile>: New field.
3351 (dwarf2_frame_cache): Update.
3352 (dwarf2_frame_prev_register): Update.
3353 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3354 <dwarf_evaluate_loc_desc>: Add constructor.
3355 (dwarf2_evaluate_loc_desc_full): Update.
3356 (dwarf2_locexpr_baton_eval): Update.
3357 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3358 Add constructor.
3359 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3360
3361 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3364 addr_sized_int_type>: Move to dwarf2_cu.
3365 <int_type>: Move to dwarf2_per_objfile.
3366 (struct dwarf2_per_objfile) <int_type>: Move here.
3367 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3368 addr_sized_int_type>: Move here.
3369 (read_func_scope): Update.
3370 (read_array_type): Update.
3371 (read_tag_string_type): Update.
3372 (attr_to_dynamic_prop): Update.
3373 (dwarf2_per_cu_data::int_type): Rename to...
3374 (dwarf2_per_objfile::int_type): ... this.
3375 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3376 (dwarf2_cu::addr_sized_int_type): ... this.
3377 (read_subrange_type): Update.
3378 (dwarf2_per_cu_data::addr_type): Rename to...
3379 (dwarf2_cu::addr_type): ... this.
3380 (set_die_type): Update.
3381
3382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3385 data through per_cu->cu.
3386
3387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3390 dwarf2_per_cu_data parameter fo dwarf2_cu.
3391 (lookup_dwo_type_unit): Likewise.
3392 (read_cutu_die_from_dwo): Likewise.
3393 (lookup_dwo_unit): Likewise.
3394 (open_and_init_dwo_file): Likewise.
3395 (lookup_dwo_cutu): Likewise.
3396 (lookup_dwo_comp_unit): Likewise.
3397 (lookup_dwo_type_unit): Likewise.
3398 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3399 (cutu_reader::cutu_reader): Update.
3400
3401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3404 parameter.
3405 (process_full_type_unit): Likewise.
3406 (process_queue): Update.
3407
3408 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * dwarf2/read.c (recursively_compute_inclusions): Add
3411 dwarf2_per_objfile parameter.
3412 (compute_compunit_symtab_includes): Likewise.
3413 (process_cu_includes): Update.
3414
3415 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3418 parameter.
3419 (create_type_unit_group): Update.
3420 (process_psymtab_comp_unit_reader): Update.
3421 (build_type_psymtabs_reader): Update.
3422
3423 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3426 object through m_this_cu->cu.
3427
3428 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3431 the info parameter.
3432 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3433
3434 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3435
3436 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3437 per_objfile parameter.
3438 (load_full_type_unit): Add per_objfile parameter.
3439 (read_signatured_type): Likewise.
3440 (load_full_comp_unit): Likewise.
3441 (load_cu): Likewise.
3442 (dw2_do_instantiate_symtab): Likewise.
3443 (dw2_get_file_names): Likewise.
3444 (dw2_map_symtabs_matching_filename): Update.
3445 (dw_expand_symtabs_matching_file_matcher): Update.
3446 (dw2_map_symbol_filenames): Update.
3447 (process_psymtab_comp_unit): Add per_objfile parameter.
3448 (build_type_psymtabs_1): Update.
3449 (process_skeletonless_type_unit): Update.
3450 (dwarf2_build_psymtabs_hard): Update.
3451 (load_partial_comp_unit): Add per_objfile parameter.
3452 (scan_partial_symbols): Update.
3453 (load_full_comp_unit): Add per_objfile parameter.
3454 (process_imported_unit_die): Update.
3455 (create_cus_hash_table): Update.
3456 (find_partial_die): Update.
3457 (dwarf2_read_addr_index): Update.
3458 (follow_die_offset): Update.
3459 (dwarf2_fetch_die_loc_sect_off): Update.
3460 (dwarf2_fetch_constant_bytes): Update.
3461 (dwarf2_fetch_die_type_sect_off): Update.
3462 (follow_die_sig_1): Update.
3463 (load_full_type_unit): Add per_objfile parameter.
3464 (read_signatured_type): Likewise.
3465
3466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3469 of objfile_name.
3470
3471 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3474 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3475 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3476 field.
3477 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3478 (create_cus_from_index): Update.
3479 (dwarf2_read_gdb_index): Update.
3480 (create_cus_from_debug_names): Update.
3481 (dwarf2_read_debug_names): Update.
3482 (get_abbrev_section_for_cu): Update.
3483 (create_all_comp_units): Update.
3484 (read_attribute_value): Update.
3485 (get_debug_line_section): Update.
3486 * dwarf2/index-cache.c (index_cache::store): Update.
3487 * dwarf2/index-write.c (save_gdb_index_command): Update.
3488 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3489
3490 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3493 member.
3494 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3495 dwarf2_per_cu_data::per_bfd.
3496 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3497 (create_type_unit_group): Likewise.
3498 (queue_comp_unit): Remove reference to
3499 per_cu->dwarf2_per_objfile.
3500 (maybe_queue_comp_unit): Likewise.
3501 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3502 (create_cus_hash_table): Assign new field.
3503
3504 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * dwarf2/read.c: Replace
3507 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3508 dwarf2_cu->per_objfile throughout.
3509
3510 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3513 parameter, don't use per_cu->dwarf2_per_objfile.
3514 (dw2_instantiate_symtab): Likewise.
3515 (dw2_find_last_source_symtab): Update.
3516 (dw2_map_expand_apply): Update.
3517 (dw2_lookup_symbol): Update.
3518 (dw2_expand_symtabs_for_function): Update.
3519 (dw2_expand_all_symtabs): Update.
3520 (dw2_expand_symtabs_with_fullname): Update.
3521 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3522 don't use per_cu->dwarf2_per_objfile.
3523 (dw2_expand_marked_cus): Update.
3524 (dw2_find_pc_sect_compunit_symtab): Update.
3525 (dw2_debug_names_lookup_symbol): Update.
3526 (dw2_debug_names_expand_symtabs_for_function): Update.
3527 (dw2_debug_names_map_matching_symbols): Update.
3528 (dwarf2_psymtab::expand_psymtab): Update.
3529
3530 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3533 <per_objfile>: New member.
3534 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3535 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3536 call to dwarf2_cu.
3537 (cutu_reader::cutu_reader): Update.
3538 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3539
3540 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3543 struct dwarf2_per_objfile.
3544 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3545 dwarf2_per_bfd.
3546 * dwarf2/read.c (set_die_type): Update.
3547 (get_die_type_at_offset): Update.
3548
3549 2020-05-27 Tom Tromey <tom@tromey.com>
3550 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3553 method.
3554 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3555 get_symtab, set_symtab>: New methods.
3556 <m_symtabs>: New field.
3557 (struct dwarf2_psymtab): Derive from partial_symtab.
3558 <readin_p, get_compunit_symtab>: Declare methods.
3559 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3560 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3561 New methods.
3562 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3563 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3564 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3565 (dw2_symtab_iter_next, dw2_print_stats)
3566 (dw2_expand_symtabs_with_fullname)
3567 (dw2_expand_symtabs_matching_one)
3568 (dw_expand_symtabs_matching_file_matcher)
3569 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3570 (dw2_debug_names_iterator::next)
3571 (dw2_debug_names_map_matching_symbols)
3572 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3573 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3574 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3575 New methods.
3576 (get_compunit_symtab, process_full_comp_unit)
3577 (process_full_type_unit): Update.
3578 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3579
3580 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3583 then introduce a new dwarf2_per_objfile type.
3584 <read_line_string>: Move to the new dwarf2_per_objfile type.
3585 <objfile>: Likewise.
3586 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3587 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3588 dwarf2_per_objfile->per_bfd.
3589 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3590 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3591 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3592 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3593 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3594 (dwarf2_per_objfile::locate_sections): Rename to...
3595 (dwarf2_per_bfd::locate_sections): ... this.
3596 (dwarf2_per_objfile::get_cutu): Rename to...
3597 (dwarf2_per_bfd::get_cutu): ... this.
3598 (dwarf2_per_objfile::get_cu): Rename to...
3599 (dwarf2_per_bfd::get_cu): ... this.
3600 (dwarf2_per_objfile::get_tu): Rename to...
3601 (dwarf2_per_bfd::get_tu): ... this.
3602 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3603 (dwarf2_per_bfd::allocate_per_cu): ... this.
3604 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3605 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3606 (get_gdb_index_contents_ftype): Change parameter from
3607 dwarf2_per_objfile to dwarf2_per_bfd.
3608 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3609 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3610
3611 2020-05-27 Tom Tromey <tom@tromey.com>
3612 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3615 (allocate_piece_closure): Set "per_objfile" member.
3616 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3617 (locexpr_describe_location, loclist_describe_location): Use new
3618 member.
3619 * dwarf2/read.c (read_call_site_scope)
3620 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3621 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3622 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3623 handle_data_member_location): Set per_objfile member.
3624 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3625 member.
3626 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3627
3628 2020-05-27 Tom Tromey <tom@tromey.com>
3629
3630 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3631 allocate_signatured_type>: Declare new methods.
3632 <m_num_psymtabs>: New member.
3633 (struct dwarf2_per_cu_data) <index>: New member.
3634 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3635 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3636 (create_cu_from_index_list): Use allocate_per_cu.
3637 (create_signatured_type_table_from_index)
3638 (create_signatured_type_table_from_debug_names)
3639 (create_debug_type_hash_table, add_type_unit)
3640 (read_comp_units_from_section): Use allocate_signatured_type.
3641
3642 2020-05-27 Tom Tromey <tom@tromey.com>
3643
3644 * psymtab.c (partial_map_expand_apply)
3645 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3646 (psym_lookup_global_symbol_language)
3647 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3648 (psym_print_stats, psym_expand_symtabs_for_function)
3649 (psym_map_symbol_filenames, psym_map_matching_symbols)
3650 (psym_expand_symtabs_matching)
3651 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3652 (maintenance_check_psymtabs): Update.
3653 * psympriv.h (struct partial_symtab) <readin_p,
3654 get_compunit_symtab>: Add objfile parameter.
3655 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3656 Likewise.
3657 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3658 get_compunit_symtab>: Likewise.
3659 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3660
3661 2020-05-27 Tom Tromey <tom@tromey.com>
3662
3663 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3664 member.
3665 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3666 (create_cu_from_index_list)
3667 (create_signatured_type_table_from_index)
3668 (create_signatured_type_table_from_debug_names)
3669 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3670 (dwarf2_create_include_psymtab)
3671 (create_debug_type_hash_table, add_type_unit)
3672 (create_type_unit_group, read_comp_units_from_section)
3673 (dwarf2_compute_name, create_cus_hash_table)
3674 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3675 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3676 obstack.
3677 (dw2_get_real_path): Likewise. Change argument to
3678 dwarf2_per_objfile.
3679
3680 2020-05-27 Luis Machado <luis.machado@linaro.org>
3681
3682 PR tdep/26000
3683 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3684 for ldrd (immediate).
3685
3686 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3687
3688 * command.h: Add comment giving the name of class_tui.
3689 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3690 create the fake command for the help for class_tui.
3691
3692 2020-05-26 Tom Tromey <tromey@adacore.com>
3693
3694 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3695 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3696 (val_atr): New function.
3697 (value_val_atr): Use it.
3698 * ada-valprint.c (print_optional_low_bound): Change low bound
3699 handling for enums.
3700 (val_print_packed_array_elements): Don't call discrete_position.
3701 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3702 discrete_position for enum types.
3703 * language.c (default_print_array_index): Change type.
3704 * language.h (struct language_defn) <la_print_array_index>: Add
3705 index_type parameter, change type of index_value.
3706 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3707 (default_print_array_index): Update.
3708 * valprint.c (maybe_print_array_index): Don't call
3709 value_from_longest. Update.
3710 (value_print_array_elements): Don't call discrete_position.
3711
3712 2020-05-26 Tom Tromey <tromey@adacore.com>
3713
3714 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3715 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3716
3717 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3718
3719 PR gdb/13519
3720 * avr-tdep.c (avr_integer_to_address): Return data or code
3721 address accordingly to the second 'type' argument of the
3722 function.
3723
3724 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3725
3726 * infcmd.c, inferior.h: (construct_inferior_arguments):
3727 Moved function from here to gdbsupport/common-inferior.{h,cc}
3728
3729 2020-05-23 Tom Tromey <tom@tromey.com>
3730
3731 Revert commit eca1f90c:
3732 * NEWS: Remove entry for completion styling.
3733 * completer.c (_rl_completion_prefix_display_length): Move
3734 declaration later.
3735 (gdb_fnprint): Revert.
3736 (gdb_display_match_list_1): Likewise.
3737 * cli/cli-style.c (completion_prefix_style)
3738 (completion_difference_style, completion_suffix_style): Remove.
3739 (_initialize_cli_style): Revert.
3740 * cli/cli-style.h (completion_prefix_style)
3741 (completion_difference_style, completion_suffix_style): Don't
3742 declare.
3743
3744 2020-05-24 Pedro Alves <palves@redhat.com>
3745
3746 * symtab.c (completion_list_add_name): Return boolean indication
3747 of whether the symbol matched.
3748 (completion_list_add_symbol): Don't try to remove C++ aliases if
3749 the symbol didn't match in the first place.
3750 * symtab.h (completion_list_add_name): Return bool.
3751
3752 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3755 type::field.
3756
3757 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3758
3759 GDB 9.2 released.
3760
3761 2020-05-23 Tom Tromey <tom@tromey.com>
3762
3763 * NEWS: Add entry for completion styling.
3764 * completer.c (_rl_completion_prefix_display_length): Move
3765 declaration earlier.
3766 (gdb_fnprint): Use completion_style.
3767 (gdb_display_match_list_1): Likewise.
3768 * cli/cli-style.c (completion_prefix_style)
3769 (completion_difference_style, completion_suffix_style): New
3770 globals.
3771 (_initialize_cli_style): Register new globals.
3772 * cli/cli-style.h (completion_prefix_style)
3773 (completion_difference_style, completion_suffix_style): Declare.
3774
3775 2020-05-23 Pedro Alves <palves@redhat.com>
3776
3777 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3778 (parse_escape): Use ISDIGIT instead of isdigit.
3779 (puts_debug): Use gdb_isprint instead of isprint.
3780 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3781 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3782 ISSPACE instead of isspace.
3783 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3784 instead of isspace.
3785 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3786 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3787 instead of isxdigit and ISDIGIT instead of isdigit.
3788
3789 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3790
3791 * gdbtypes.h (struct type) <field>: New method.
3792 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3793 or type::field.
3794
3795 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3796
3797 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3798 (TYPE_FIELDS): Use type::fields. Change all call sites that
3799 modify the propery to use type::set_fields instead.
3800
3801 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3804 type::num_fields instead.
3805
3806 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3809 methods.
3810 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3811 that modify the number of fields to use type::set_num_fields
3812 instead.
3813
3814 2020-05-22 Tom Tromey <tromey@adacore.com>
3815
3816 * compile/compile-object-load.h (munmap_list_free): Don't
3817 declare.
3818
3819 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * annotate.c (annotate_source_line): Update return type, add call
3822 to update current symtab and line.
3823 * annotate.h (annotate_source_line): Update return type, and
3824 extend header comment.
3825 * source.c (info_line_command): Check annotation_level before
3826 calling annotate_source_line.
3827 * stack.c (print_frame_info): If calling annotate_source_line
3828 returns true, then don't print any other source line information.
3829
3830 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3833
3834 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * coffread.c (patch_type): Remove NULL check before xfree.
3837 * corefile.c (set_gnutarget): Likewise.
3838 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3839 * exec.c (build_section_table): Likewise.
3840 * remote.c (remote_target::pass_signals): Likewise.
3841 * utils.c (n_spaces): Likewise.
3842 * cli/cli-script.c (document_command): Likewise.
3843 * i386-windows-tdep.c (core_process_module_section): Likewise.
3844 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3845
3846 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * symfile.c (reread_symbols): Clear objfile's section_offsets
3849 vector and section indices, re-compute them by calling
3850 sym_offsets.
3851
3852 2020-05-20 Tom Tromey <tromey@adacore.com>
3853
3854 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3855 (desc_one_bound, desc_index_type): Compute field name.
3856
3857 2020-05-20 Tom de Vries <tdevries@suse.de>
3858
3859 PR symtab/25833
3860 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3861
3862 2020-05-20 Alan Modra <amodra@gmail.com>
3863
3864 PR 25993
3865 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3866 bfd_set_filename.
3867 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3868 passed to bfd_set_filename.
3869 * symfile-mem.c (add_vsyscall_page): Likewise for string
3870 passed to symbol_file_add_from_memory.
3871 (symbol_file_add_from_memory): Make name param a const char* and
3872 don't strdup.
3873
3874 2020-05-20 Alan Modra <amodra@gmail.com>
3875
3876 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3877 rather than accessing bfd->filename directly.
3878 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3879 and use bfd_section_name.
3880 * dwarf2/frame.c (decode_frame_entry): Likewise.
3881 * exec.c (exec_set_section_address): Likewise.
3882 * solib-aix.c (solib_aix_bfd_open): Likewise.
3883 * stap-probe.c (get_stap_base_address): Likewise.
3884 * symfile.c (reread_symbols): Likewise.
3885
3886 2020-05-19 Tom Tromey <tromey@adacore.com>
3887
3888 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3889
3890 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3893
3894 2020-05-19 Pedro Alves <palves@redhat.com>
3895
3896 * NEWS (set exec-file-mismatch): Adjust entry.
3897 * exec.c: Include "build-id.h".
3898 (validate_exec_file): Try to match build IDs instead of filenames.
3899 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3900 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3901 and pass down 'warn_if_slow'.
3902 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3903 gdb_bfd_open_closure to pass it down.
3904 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3905
3906 2020-05-19 Pedro Alves <palves@redhat.com>
3907
3908 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3909 * target.c (target_fileio_open_1): Rename to target_fileio_open
3910 and make extern. Use bool.
3911 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3912 (target_fileio_read_alloc_1): Adjust.
3913 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3914 (target_fileio_open_warn_if_slow): Delete declaration.
3915
3916 2020-05-19 Pedro Alves <palves@redhat.com>
3917
3918 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3919 Adjust all callers.
3920
3921 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3922
3923 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3924 whether disp is negative.
3925
3926 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3927
3928 * symfile.h (struct symfile_segment_data)
3929 <~symfile_segment_data>: Remove.
3930 <segment_info>: Change to std::vector.
3931 * symfile.c (default_symfile_segments): Update.
3932 * elfread.c (elf_symfile_segments): Update.
3933
3934 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3937 <segments>: New.
3938 <segment_bases, segment_sizes>: Remove.
3939 * symfile.c (default_symfile_segments): Update.
3940 * elfread.c (elf_symfile_segments): Update.
3941 * remote.c (remote_target::get_offsets): Update.
3942 * solib-target.c (solib_target_relocate_section_addresses):
3943 Update.
3944
3945 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * symfile.h (struct symfile_segment_data): Initialize fields.
3948 <~symfile_segment_data>: Add.
3949 (symfile_segment_data_up): New.
3950 (struct sym_fns) <sym_segments>: Return a
3951 symfile_segment_data_up.
3952 (default_symfile_segments): Return a symfile_segment_data_up.
3953 (free_symfile_segment_data): Remove.
3954 (get_symfile_segment_data): Return a symfile_segment_data_up.
3955 * symfile.c (default_symfile_segments): Likewise.
3956 (get_symfile_segment_data): Likewise.
3957 (free_symfile_segment_data): Remove.
3958 (symfile_find_segment_sections): Update.
3959 * elfread.c (elf_symfile_segments): Return a
3960 symfile_segment_data_up.
3961 * remote.c (remote_target::get_offsets): Update.
3962 * solib-target.c (solib_target_relocate_section_addresses):
3963 Update.
3964 * symfile-debug.c (debug_sym_segments): Return a
3965 symfile_segment_data_up.
3966
3967 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3968
3969 PR build/25981
3970 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3971 Hardcode register numbers.
3972
3973 PR build/25981
3974 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3975 procfs_find_LDT_entry): Remove.
3976 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3977 procfs_find_LDT_entry): Remove.
3978 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3979 Remove.
3980
3981 2020-05-17 Pedro Alves <palves@redhat.com>
3982 Andrew Burgess <andrew.burgess@embecosm.com>
3983 Keno Fischer <keno@juliacomputing.com>
3984
3985 PR gdb/25741
3986 * breakpoint.c (build_target_condition_list): Update comments.
3987 (build_target_command_list): Update comments and skip matching
3988 locations.
3989 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3990 a separate function. Simplify "set breakpoint auto-hw off"
3991 handling.
3992 (insert_breakpoints): Update comment.
3993 (tracepoint_locations_match): New parameter. For breakpoints,
3994 compare location types too, if the caller wants to.
3995 (handle_automatic_hardware_breakpoints): New functions.
3996 (bp_location_is_less_than): Also sort by location type and
3997 hardware breakpoint length.
3998 (update_global_location_list): Handle "set breakpoint auto-hw on"
3999 here.
4000 (update_breakpoint_locations): Ask breakpoint_locations_match to
4001 ignore location types.
4002
4003 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4006 type::name instead.
4007
4008 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * gdbtypes.h (struct type) <name, set_name>: New methods.
4011 (TYPE_CODE): Use type::name. Change all call sites used to set
4012 the name to use type::set_name instead.
4013
4014 2020-05-16 Tom Tromey <tom@tromey.com>
4015
4016 * top.c (quit_force): Update.
4017 * infrun.c (handle_no_resumed): Update.
4018 * top.h (all_uis): New function.
4019 (ALL_UIS): Remove.
4020
4021 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4024
4025 2020-05-16 Pedro Alves <palves@redhat.com>
4026
4027 * ia64-linux-nat.c
4028 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4029 Declare method.
4030 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4031
4032 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4035 (sparc64_adi_info): Likewise.
4036
4037 2020-05-15 Tom Tromey <tom@tromey.com>
4038
4039 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4040 block_objfile.
4041 (lookup_objfile_from_block): Remove.
4042 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4043 (lookup_global_symbol): Use block_objfile.
4044 * symtab.h (lookup_objfile_from_block): Don't declare.
4045 * printcmd.c (clear_dangling_display_expressions): Use
4046 block_objfile.
4047 * parse.c (operator_check_standard): Use block_objfile.
4048
4049 2020-05-15 Tom Tromey <tom@tromey.com>
4050
4051 * language.c (language_alloc_type_symbol): Set
4052 SYMBOL_SECTION.
4053 * symtab.c (initialize_objfile_symbol): Remove.
4054 (allocate_symbol): Remove.
4055 (allocate_template_symbol): Remove.
4056 * dwarf2/read.c (fixup_go_packaging): Use "new".
4057 (new_symbol): Use "new".
4058 (read_variable): Don't call initialize_objfile_symbol. Use
4059 "new".
4060 (read_func_scope): Use "new".
4061 * xcoffread.c (process_xcoff_symbol): Don't call
4062 initialize_objfile_symbol.
4063 (SYMBOL_DUP): Remove.
4064 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4065 "new".
4066 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4067 (allocate_template_symbol): Don't declare.
4068 (struct symbol): Add copy constructor. Change defaults.
4069 * jit.c (finalize_symtab): Use "new".
4070 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4071 Use "new".
4072 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4073 (common_block_end): Use "new".
4074 * mdebugread.c (parse_symbol): Use "new".
4075 (new_symbol): Likewise.
4076
4077 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4078
4079 * NEWS: Mention changes to help and apropos.
4080
4081 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4082
4083 * command.h (enum command_class): Improve comments, document
4084 that class_alias is for user-defined aliases, give the class
4085 name for each class, remove unused class_xdb.
4086 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4087 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4088 by a precise class.
4089 * infcmd.c (_initialize_infcmd): Likewise.
4090 * reverse.c (_initialize_reverse): Likewise.
4091 * stack.c (_initialize_stack): Likewise.
4092 * symfile.c (_initialize_symfile): Likewise.
4093 * tracepoint.c (_initialize_tracepoint): Likewise.
4094
4095 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4096
4097 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4098 when their aliased command is traversed.
4099 (help_cmd): Add fput_command_names_styled call to
4100 output command name and aliases when command has an alias.
4101
4102 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4103
4104 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4105 * cli/cli-decode.c (help_cmd_list): Declare as static,
4106 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4107 a command together with the command.
4108 (fput_command_name_styled, fput_command_names_styled): New functions.
4109 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4110 fput_command_name_styled.
4111 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4112 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4113
4114 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4115
4116 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4117 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4118 * command.h (cmd_show_list): Likewise.
4119 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4120 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4121
4122 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4123
4124 * unittests/command-def-selftests.c (traverse_command_structure):
4125 Verify all commands of a list have the same prefix command and
4126 that only the top cmdlist commands have a null prefix.
4127
4128 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4129
4130 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4131 as prefix, not one of its aliases.
4132 (set_cmd_prefix): Remove.
4133 (do_add_cmd): Centralize the setting of the prefix of a command, when
4134 command is defined after its full chain of prefix commands.
4135 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4136 (add_setshow_cmd_full): Likewise.
4137 (update_prefix_field_of_prefixed_commands): New function.
4138 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4139 update_prefix_field_of_prefixed_commands.
4140 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4141 addresses of remote_set_cmdlist and remote_show_cmdlist given
4142 as argument, not the address of an argument.
4143 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4144 * gdb/remote.c (_initialize_remote): Likewise.
4145
4146 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * cli/cli-cmds.c (alias_command): Check for an existing alias
4149 using lookup_cmd_composition, as valid_command_p is too strict
4150 and forbids aliases that are the prefix of an existing alias
4151 or command.
4152 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4153 command is properly recognised as a valid command.
4154
4155 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4156
4157 * unittests/help-doc-selftests.c: Rename to
4158 unittests/command-def-selftests.c
4159 * unittests/command-def-selftests.c (help_doc_tests): Update some
4160 comments.
4161 (command_structure_tests, traverse_command_structure): New namespace
4162 and function.
4163 (command_structure_invariants_tests): New function.
4164 (_initialize_command_def_selftests) Renamed from
4165 _initialize_help_doc_selftests, register command_structure_invariants
4166 selftest.
4167
4168 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4169
4170 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4171 an alias of 'show'.
4172
4173 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4174
4175 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4176 ada_is_fixed_point_type. Update all callers.
4177 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4178 all callers.
4179 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4180 Update all callers.
4181 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4182 print_fixed_point_type. Update all callers.
4183 * ada-valprint.c (ada_value_print_num): Replace call to
4184 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4185
4186 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4187
4188 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4189 processors.
4190 (cpu_supports_bts): Add CV_AMD case.
4191
4192 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4193 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * infrun.c (stop_all_threads): Collect multiple wait events at
4196 each pass.
4197
4198 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4201 type::code instead.
4202
4203 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * gdbtypes.h (struct type) <code, set_code>: New methods.
4206 (TYPE_CODE): Use type::code. Change all call sites used to set
4207 the code to use type::set_code instead.
4208
4209 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4210 Tom de Vries <tdevries@suse.de>
4211 Pedro Alves <palves@redhat.com>
4212
4213 PR threads/25478
4214 * infrun.c (stop_all_threads): Do NOT ignore
4215 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4216 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4217 received.
4218 (handle_no_resumed): Remove code handling a live inferior with no
4219 threads.
4220 * remote.c (has_single_non_exited_thread): New.
4221 (remote_target::update_thread_list): Do not delete a thread if is
4222 the last thread of the process.
4223 * thread.c (thread_select): Call delete_exited_threads instead of
4224 prune_threads.
4225
4226 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4227
4228 * infrun.c (stop_all_threads): Enable/disable thread events of all
4229 targets. Move a debug message denoting the end of the function
4230 into the SCOPED_EXIT block.
4231
4232 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4233
4234 * process-stratum-target.h: Include <set>.
4235 (all_non_exited_process_targets, switch_to_target_no_thread): New
4236 function declarations.
4237 * process-stratum-target.c (all_non_exited_process_targets)
4238 (switch_to_target_no_thread): New function implementations.
4239
4240 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4241
4242 * infrun.c (handle_inferior_event): Extract out a piece of code
4243 into...
4244 (mark_non_executing_threads): ...this new function.
4245
4246 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4247
4248 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4249 use.
4250
4251 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4252
4253 * regcache.c (regcache_read_pc_protected): New function
4254 implementation that returns 0 if the PC cannot read via
4255 'regcache_read_pc'.
4256 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4257 instead of 'regcache_read_pc'.
4258 (keep_going_pass_signal): Ditto.
4259
4260 2020-05-13 Tom Tromey <tromey@adacore.com>
4261
4262 * ada-lang.c (align_value): Remove.
4263 (ada_template_to_fixed_record_type_1): Use align_up.
4264
4265 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 * async-event.c: Update the copyright year.
4268 * async-event.h: Update the copyright year.
4269
4270 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * objfiles.h (is_addr_in_objfile,
4273 shared_objfile_contains_address_p): Return bool.
4274 * objfile.c (is_addr_in_objfile,
4275 shared_objfile_contains_address_p): Return bool.
4276
4277 2020-05-11 Tom Tromey <tromey@adacore.com>
4278
4279 * cli/cli-cmds.c (info_command): Restore.
4280 (_initialize_cli_cmds): Use add_prefix_command for "info".
4281 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4282
4283 2020-05-11 Tom Tromey <tromey@adacore.com>
4284
4285 * ada-lang.c (ada_value_primitive_field): Now public.
4286 * ada-lang.h (ada_value_primitive_field): Declare.
4287 * ada-valprint.c (print_field_values): Use
4288 ada_value_primitive_field for wrapper fields.
4289
4290 2020-05-11 Tom de Vries <tdevries@suse.de>
4291
4292 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4293 MODULE_DOMAIN.
4294
4295 2020-05-11 Tom de Vries <tdevries@suse.de>
4296
4297 PR symtab/25941
4298 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4299 with length 0, if not gdb-produced.
4300 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4301
4302 2020-05-09 Tom de Vries <tdevries@suse.de>
4303
4304 PR gdb/25955
4305 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4306 calculation.
4307
4308 2020-05-09 Tom Tromey <tom@tromey.com>
4309
4310 * top.c (server_command): Now bool.
4311 * top.h (server_command): Now bool.
4312
4313 2020-05-08 Tom Tromey <tromey@adacore.com>
4314
4315 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4316 already being processed.
4317
4318 2020-05-08 Tom Tromey <tom@tromey.com>
4319
4320 * printcmd.c (struct display) <next>: Remove.
4321 <display>: New constructor.
4322 <exp_string>: Now a std::string.
4323 <enabled_p>: Now a bool.
4324 (display_number): Move definition earlier.
4325 (displays): Rename from display_chain. Now a std::vector.
4326 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4327 (display_command): Update.
4328 (do_one_display, disable_display)
4329 (enable_disable_display_command, do_enable_disable_display):
4330 Update.
4331 (free_display): Remove.
4332 (clear_displays): Rewrite.
4333 (delete_display): Update.
4334 (map_display_numbers): Use function_view. Remove "data"
4335 parameter. Update.
4336 (do_delete_display): Remove.
4337 (undisplay_command): Update.
4338 (do_one_display, do_displays, disable_display)
4339 (info_display_command): Update.
4340 (do_enable_disable_display): Remove.
4341 (enable_disable_display_command)
4342 (clear_dangling_display_expressions): Update.
4343
4344 2020-05-08 Tom Tromey <tom@tromey.com>
4345
4346 * symtab.c (set_symbol_cache_size)
4347 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4348 (maintenance_print_symbol_cache_statistics): Update.
4349 * symmisc.c (print_symbol_bcache_statistics)
4350 (print_objfile_statistics, maintenance_print_objfiles)
4351 (maintenance_info_symtabs, maintenance_check_symtabs)
4352 (maintenance_expand_symtabs, maintenance_info_line_tables):
4353 Update.
4354 * symfile-debug.c (set_debug_symfile): Update.
4355 * source.c (forget_cached_source_info): Update.
4356 * python/python.c (gdbpy_progspaces): Update.
4357 * psymtab.c (maintenance_info_psymtabs): Update.
4358 * probe.c (parse_probes): Update.
4359 * linespec.c (iterate_over_all_matching_symtabs)
4360 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4361 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4362 * exec.c (exec_target::close): Update.
4363 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4364 * breakpoint.c (print_one_breakpoint_location)
4365 (create_longjmp_master_breakpoint)
4366 (create_std_terminate_master_breakpoint): Update.
4367 * progspace.c (program_spaces): Now a std::vector.
4368 (maybe_new_address_space): Update.
4369 (add_program_space): Remove.
4370 (program_space::program_space): Update.
4371 (remove_program_space): Update.
4372 (number_of_program_spaces): Remove.
4373 (print_program_space, update_address_spaces): Update.
4374 * progspace.h (program_spaces): Change type.
4375 (ALL_PSPACES): Remove.
4376 (number_of_program_spaces): Don't declare.
4377 (struct program_space) <next>: Remove.
4378
4379 2020-05-08 Tom Tromey <tom@tromey.com>
4380
4381 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4382 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4383 (enable_break): Update.
4384 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4385 (frv_fdpic_find_canonical_descriptor): Update.
4386 (frv_fetch_objfile_link_map): Update.
4387 * progspace.c (program_space::free_all_objfiles): Update.
4388 (program_space::solibs): New method.
4389 * progspace.h (struct program_space) <solibs>: New method.
4390 * solist.h (master_so_list): Don't declare.
4391 (ALL_SO_LIBS): Remove.
4392 * solib.h (so_list_head): Remove.
4393 (update_solib_list): Update comment.
4394 * solib.c (master_so_list): Remove.
4395 (solib_used, update_solib_list, solib_add)
4396 (info_sharedlibrary_command, clear_solib)
4397 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4398
4399 2020-05-08 Tom Tromey <tom@tromey.com>
4400
4401 * extension.c (extension_languages): Now a std::array.
4402 (ALL_EXTENSION_LANGUAGES): Remove.
4403 (get_ext_lang_defn, get_ext_lang_of_file)
4404 (eval_ext_lang_from_control_command): Update.
4405 (finish_ext_lang_initialization)
4406 (auto_load_ext_lang_scripts_for_objfile)
4407 (ext_lang_type_printers::ext_lang_type_printers)
4408 (apply_ext_lang_type_printers)
4409 (ext_lang_type_printers::~ext_lang_type_printers)
4410 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4411 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4412 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4413 (get_matching_xmethod_workers, ext_lang_colorize)
4414 (ext_lang_before_prompt): Update.
4415 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4416
4417 2020-05-08 Tom Tromey <tom@tromey.com>
4418
4419 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4420 overload.
4421 <swap_string, m_string>: Remove.
4422 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4423 Update.
4424 * stabsread.c (define_symbol, read_type): Update.
4425 * linespec.c (find_linespec_symbols): Update.
4426 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4427 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4428 * dbxread.c (read_dbx_symtab): Update.
4429 * cp-support.h (cp_canonicalize_string_full)
4430 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4431 Return unique_xmalloc_ptr.
4432 * cp-support.c (inspect_type): Update.
4433 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4434 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4435 Likewise.
4436 * c-typeprint.c (print_name_maybe_canonical): Update.
4437 * break-catch-throw.c (check_status_exception_catchpoint):
4438 Update.
4439
4440 2020-05-08 Tom de Vries <tdevries@suse.de>
4441
4442 * infrun.c (follow_fork): Copy current_line and current_symtab to
4443 child thread.
4444
4445 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * async-event.c (struct async_signal_handler, struct
4448 async_event_handler): Reformat, remove typedef.
4449
4450 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4453 access thistype->main_type->dyn_prop_list directly.
4454
4455 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4458 (remove_dyn_prop): Remove. Update all users to use
4459 type::remove_dyn_prop.
4460 * gdbtypes.c (remove_dyn_prop): Rename to...
4461 (type::remove_dyn_prop): ... this.
4462
4463 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4464
4465 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4466 (add_dyn_prop): Remove. Update all users to use
4467 type::add_dyn_prop.
4468 * gdbtypes.c (add_dyn_prop): Rename to...
4469 (type::add_dyn_prop): ... this.
4470
4471 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4474 (get_dyn_prop): Remove. Update all users to use
4475 type::dyn_prop.
4476 * gdbtypes.c (get_dyn_prop): Rename to...
4477 (type::dyn_prop): ... this.
4478
4479 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4482
4483 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4486 instruction, skip it if it's there.
4487
4488 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4491
4492 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4495 * gdbtypes.c (recursive_dump_type): Remove use of
4496 TYPE_INCOMPLETE.
4497
4498 2020-05-03 Tom Tromey <tom@tromey.com>
4499
4500 * breakpoint.c (catch_command, tcatch_command): Remove.
4501 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4502 add_show_prefix_cmd.
4503 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4504 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4505 Remove.
4506 (add_internal_problem_command): Use add_basic_prefix_cmd,
4507 add_show_prefix_cmd.
4508 * mips-tdep.c (set_mipsfpu_command): Remove.
4509 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4510 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4511 (_initialize_index_cache): Use add_basic_prefix_cmd.
4512 * memattr.c (dummy_cmd): Remove.
4513 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4514 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4515 (_initialize_tui_win): Use add_basic_prefix_cmd,
4516 add_show_prefix_cmd.
4517 * cli/cli-logging.c (set_logging_command): Remove.
4518 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4519 add_show_prefix_cmd.
4520 (show_logging_command): Remove.
4521 * target.c (target_command): Remove.
4522 (add_target): Use add_basic_prefix_cmd.
4523
4524 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4525
4526 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4527
4528 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4529
4530 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4531 info_command.
4532
4533 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4534
4535 * nbsd-nat.c (nbsd_enable_proc_events)
4536 (nbsd_nat_target::post_startup_inferior): Add.
4537 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4538 (nbsd_nat_target::update_thread_list): Rewrite.
4539 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4540 "PTRACE_LWP_CREATE".
4541 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4542
4543 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544
4545 * stack.c (_initialize_stack): Remove duplicated creation
4546 of "frame" command and "f" alias.
4547
4548 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4549
4550 PR gdb/18706
4551 * gdbtypes.c (check_typedef): Calculate size of array of
4552 stubbed type.
4553
4554 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4555
4556 PR gdb/15559
4557 * i386-tdep.c (i386_push_dummy_call): Call
4558 i386_thiscall_push_dummy_call.
4559 (i386_thiscall_push_dummy_call): New function.
4560 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4561 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4562 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4563
4564 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbarch.sh (do_read): Add shellcheck disable directive for
4567 warning SC2162.
4568
4569 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4572 "referenced but not assigned" warning.
4573
4574 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * gdbarch.sh: Remove code that sets fallbackdefault.
4577
4578 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * gdbarch.sh: Use shell operators && and || instead of
4581 -a and -o.
4582
4583 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbarch.sh: Use $(...) instead of `...`.
4586
4587 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbarch.sh: Use double quotes around variables.
4590
4591 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * gdbarch.sh: Use %s with printf, instead of variables in the
4594 format string.
4595
4596 2020-04-29 Tom Tromey <tromey@adacore.com>
4597
4598 PR ada/25875:
4599 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4600 type fields here.
4601 (read_enumeration_type): Call
4602 update_enumeration_type_from_children later. Update comments.
4603 (process_enumeration_scope): Don't create type fields.
4604
4605 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4606
4607 * nbsd-tdep.c: Include "xml-syscall.h".
4608 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4609
4610 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4611
4612 * nbsd-nat.c: Include "sys/wait.h".
4613 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4614 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4615 (nbsd_nat_target::remove_exec_catchpoint)
4616 (nbsd_nat_target::set_syscall_catchpoint): Add.
4617 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4618 (nbsd_nat_target::insert_exec_catchpoint)
4619 (nbsd_nat_target::remove_exec_catchpoint)
4620 (nbsd_nat_target::set_syscall_catchpoint): Add.
4621 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4622 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4623 `nbsd_get_syscall_number'.
4624
4625 2020-04-29 Tom Tromey <tom@tromey.com>
4626
4627 * stack.c (print_block_frame_labels): Remove.
4628
4629 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4630
4631 PR gdb/17320
4632 * ada-valprint.c (val_print_packed_array_elements): Move array
4633 end bracket to new line.
4634 (ada_val_print_string): Remove extra spaces before first array
4635 element.
4636 * c-valprint.c (c_value_print_array): Likewise.
4637 * m2-valprint.c (m2_print_array_contents): Likewise.
4638 (m2_value_print_inner): Likewise.
4639 * p-valprint.c (pascal_value_print_inner): Likewise.
4640 * valprint.c (generic_val_print_array): Likewise.
4641 (value_print_array_elements): Move first array element and array
4642 end bracket to new line.
4643
4644 2020-04-29 Tom de Vries <tdevries@suse.de>
4645
4646 PR symtab/25889
4647 * linespec.c (find_method): Fix ix calculation.
4648
4649 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4650
4651 * syscalls/update-netbsd.sh: New file.
4652 * syscalls/netbsd.xml: Regenerate.
4653 * data-directory/Makefile.in: Register `netbsd.xml' in
4654 `SYSCALLS_FILES'.
4655
4656 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * syscalls/update-freebsd.sh: Add double quotes.
4659
4660 2020-04-28 Tom Tromey <tom@tromey.com>
4661
4662 * NEWS: Update.
4663 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4664 (cmdpy_init): Allow class_tui.
4665
4666 2020-04-28 Mark Williams <mark@myosotissp.com>
4667
4668 PR gdb/24480
4669 * dwarf2read.c: Add missing assingments to list_in_scope when
4670 start_symtab was already called.
4671
4672 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4673
4674 PR gdb/25881
4675 * dwarf2/read.c (offset_map_type): Use
4676 gdb:hash_enum<sect_offset> as hash function.
4677
4678 2020-04-28 Tom de Vries <tdevries@suse.de>
4679
4680 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4681 with DW_AT_signature.
4682
4683 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * configure.ac: Remove check for fs_base/gs_base in
4686 user_regs_struct.
4687 * configure: Re-generate.
4688 * config.in: Re-generate.
4689 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4690 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4691 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4692
4693 2020-04-27 Luis Machado <luis.machado@linaro.org>
4694
4695 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4696 problematic inline frame unwinding situation.
4697 * frame.c (frame_id_computed_p): New function.
4698 * frame.h (frame_id_computed_p): New prototype.
4699
4700 2020-04-26 Tom Tromey <tom@tromey.com>
4701
4702 * command.h (enum command_class) <class_pseudo>: Remove.
4703
4704 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4705
4706 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4707 and whitespace.
4708
4709 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4710
4711 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4712 `PT_GET_PROCESS_STATE' block.
4713
4714 2020-04-24 Tom Tromey <tom@tromey.com>
4715
4716 * symtab.h (symbol_get_demangled_name): Don't declare.
4717 * symtab.c (symbol_get_demangled_name): Remove.
4718 (general_symbol_info::natural_name)
4719 (general_symbol_info::demangled_name): Update.
4720
4721 2020-04-24 Tom Tromey <tom@tromey.com>
4722
4723 PR rust/25025:
4724 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4725
4726 2020-04-24 Tom Tromey <tom@tromey.com>
4727
4728 PR symtab/12707:
4729 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4730 exists.
4731 (new_symbol): Likewise.
4732 * compile/compile-object-load.c (get_out_value_type): Use
4733 symbol_matches_search_name.
4734
4735 2020-04-24 Tom Tromey <tom@tromey.com>
4736
4737 * dwarf2/read.c (add_partial_symbol): Do not call
4738 compute_and_set_names.
4739
4740 2020-04-24 Tom Tromey <tom@tromey.com>
4741
4742 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4743 overload.
4744
4745 2020-04-24 Tom Tromey <tom@tromey.com>
4746
4747 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4748 (add_psymbol_to_list): New overload. Make old overload call new
4749 one.
4750 * psympriv.h (add_psymbol_to_list): New overload.
4751
4752 2020-04-24 Tom Tromey <tom@tromey.com>
4753
4754 * dwarf2/read.c (partial_die_info::read) <case
4755 DW_AT_linkage_name>: Use value_as_string.
4756 (dwarf2_string_attr): Use value_as_string.
4757 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4758 method.
4759 * dwarf2/attribute.c (attribute::value_as_string): New method.
4760
4761 2020-04-24 Tom Tromey <tom@tromey.com>
4762
4763 * symtab.c (general_symbol_info::natural_name)
4764 (general_symbol_info::demangled_name): Check for language_rust.
4765
4766 2020-04-24 Tom Tromey <tom@tromey.com>
4767
4768 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4769 (dwarf2_physname): ... from here.
4770 (partial_die_info::read): Add Rust "{" hack.
4771
4772 2020-04-24 Tom Tromey <tom@tromey.com>
4773
4774 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4775 method.
4776 (symbol_set_demangled_name): Don't declare.
4777 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4778 symbol_set_demangled_name.
4779 (general_symbol_info::set_language)
4780 (general_symbol_info::compute_and_set_names): Update.
4781 * minsyms.c (minimal_symbol_reader::install): Update.
4782 * dwarf2/read.c (new_symbol): Update.
4783
4784 2020-04-24 Tom Tromey <tromey@adacore.com>
4785
4786 PR python/23662:
4787 * python/py-type.c (convert_field): Handle
4788 FIELD_LOC_KIND_DWARF_BLOCK.
4789 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4790 (typy_get_dynamic): Nw function.
4791 (type_object_getset): Add "dynamic".
4792 * NEWS: Add entry.
4793
4794 2020-04-24 Tom Tromey <tromey@adacore.com>
4795
4796 * ada-typeprint.c (print_choices, print_variant_part)
4797 (print_record_field_types_dynamic): New functions.
4798 (print_record_field_types): Use print_record_field_types_dynamic.
4799
4800 2020-04-24 Tom Tromey <tromey@adacore.com>
4801
4802 * dwarf2/read.c (handle_data_member_location): New overload.
4803 (dwarf2_add_field): Use it.
4804 (decode_locdesc): Add "computed" parameter. Update comment.
4805 * gdbtypes.c (is_dynamic_type_internal): Also look for
4806 FIELD_LOC_KIND_DWARF_BLOCK.
4807 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4808 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4809 virtual base classes.
4810 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4811 FIELD_LOC_KIND_DWARF_BLOCK.
4812
4813 2020-04-24 Tom Tromey <tromey@adacore.com>
4814
4815 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4816 * gdbtypes.c (is_dynamic_type_internal): Check
4817 TYPE_HAS_DYNAMIC_LENGTH.
4818 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4819 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4820 New macros.
4821 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4822 constant.
4823
4824 2020-04-24 Tom Tromey <tromey@adacore.com>
4825
4826 * dwarf2/read.c (struct variant_field): Rewrite.
4827 (struct variant_part_builder): New.
4828 (struct nextfield): Remove "variant" field. Add "offset".
4829 (struct field_info): Add "current_variant_part" and
4830 "variant_parts".
4831 (alloc_discriminant_info): Remove.
4832 (alloc_rust_variant): New function.
4833 (quirk_rust_enum): Update.
4834 (dwarf2_add_field): Set "offset" member. Don't handle
4835 DW_TAG_variant_part.
4836 (offset_map_type): New typedef.
4837 (convert_variant_range, create_one_variant)
4838 (create_one_variant_part, create_variant_parts)
4839 (add_variant_property): New functions.
4840 (dwarf2_attach_fields_to_type): Call add_variant_property.
4841 (read_structure_type): Don't handle DW_TAG_variant_part.
4842 (handle_variant_part, handle_variant): New functions.
4843 (handle_struct_member_die): Use them.
4844 (process_structure_scope): Don't handle variant parts.
4845 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4846 (struct discriminant_info): Remove.
4847 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4848 (struct main_type) <flag_discriminated_union>: Remove.
4849 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4850 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4851 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4852 Update.
4853 * valops.c (value_union_variant): Remove.
4854 * value.h (value_union_variant): Don't declare.
4855
4856 2020-04-24 Tom Tromey <tromey@adacore.com>
4857
4858 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4859 (ada_value_primitive_packed_val): Update.
4860 * ada-valprint.c (ada_value_print_1): Update.
4861 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4862 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4863 just an address. Use evaluate_for_locexpr_baton.
4864 (dwarf2_evaluate_property): Update.
4865 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4866 array_view.
4867 * findvar.c (default_read_var_value): Update.
4868 * gdbtypes.c (compute_variant_fields_inner)
4869 (resolve_dynamic_type_internal): Update.
4870 (resolve_dynamic_type): Change type of valaddr parameter.
4871 * gdbtypes.h (resolve_dynamic_type): Update.
4872 * valarith.c (value_subscripted_rvalue): Update.
4873 * value.c (value_from_contents_and_address): Update.
4874
4875 2020-04-24 Tom Tromey <tromey@adacore.com>
4876
4877 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4878 "push_initial_value" parameter.
4879 (dwarf2_evaluate_property): Likewise.
4880 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4881
4882 2020-04-24 Tom Tromey <tromey@adacore.com>
4883
4884 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4885 (variant::matches, compute_variant_fields_recurse)
4886 (compute_variant_fields_inner, compute_variant_fields): New
4887 functions.
4888 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4889 Use resolved_type after type is made.
4890 (operator==): Add new cases.
4891 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4892 (struct discriminant_range, struct variant, struct variant_part):
4893 New.
4894 (union dynamic_prop_data) <variant_parts, original_type>: New
4895 members.
4896 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4897 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4898 constants.
4899 * value.c (unpack_bits_as_long): Now public.
4900 * value.h (unpack_bits_as_long): Declare.
4901
4902 2020-04-24 Tom Tromey <tromey@adacore.com>
4903
4904 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4905 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4906
4907 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4908
4909 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4910
4911 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4912
4913 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4914 (remove_fork_catchpoint, post_startup_inferior)
4915 (post_attach): Move...
4916 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4917 (remove_fork_catchpoint, post_startup_inferior)
4918 (post_attach): ...here.
4919 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4920 (remove_fork_catchpoint, post_startup_inferior)
4921 (post_attach): Move...
4922 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4923 (remove_fork_catchpoint, post_startup_inferior)
4924 (post_attach): ...here.
4925
4926 2020-04-24 Tom Tromey <tromey@adacore.com>
4927
4928 * nat/windows-nat.h (struct windows_thread_info)
4929 <pc_adjusted>: New member.
4930 * windows-nat.c (windows_fetch_one_register): Check
4931 pc_adjusted.
4932 (windows_nat_target::get_windows_debug_event)
4933 (windows_nat_target::wait): Set pc_adjusted.
4934
4935 2020-04-24 Tom de Vries <tdevries@suse.de>
4936
4937 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4938 Run gdb-add-index inside temp dir.
4939
4940 2020-04-23 Tom Tromey <tromey@adacore.com>
4941
4942 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4943 in loop.
4944
4945 2020-04-23 Luis Machado <luis.machado@linaro.org>
4946
4947 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4948 get_frame_register instead of gdbarch_unwind_pc.
4949
4950 2020-04-23 Tom de Vries <tdevries@suse.de>
4951
4952 * symtab.c (lookup_global_symbol): Prefer def over decl.
4953
4954 2020-04-23 Tom de Vries <tdevries@suse.de>
4955
4956 PR symtab/25807
4957 * block.c (best_symbol, better_symbol): Promote to external.
4958 * block.h (best_symbol, better_symbol): Declare.
4959 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4960 decl.
4961
4962 2020-04-23 Tom Tromey <tromey@adacore.com>
4963
4964 PR ada/25837:
4965 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4966 "const char *", not a "const std::string &".
4967 <name_and_matcher::operator==>: Update.
4968 * unittests/lookup_name_info-selftests.c: Change type of
4969 "result".
4970
4971 2020-04-23 Tom Tromey <tom@tromey.com>
4972
4973 * inferior.h (iterate_over_inferiors): Don't declare.
4974 * inferior.c (iterate_over_inferiors): Remove.
4975 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4976 Remove.
4977 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4978 use iterate_over_inferiors.
4979 (darwin_resume_inferior_it)
4980 (struct resume_inferior_threads_param)
4981 (darwin_resume_inferior_threads_it): Remove.
4982 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4983
4984 2020-04-23 Tom de Vries <tdevries@suse.de>
4985
4986 * blockframe.c (find_pc_partial_function): Use
4987 find_pc_sect_compunit_symtab rather than
4988 objfile->sf->qf->find_pc_sect_compunit_symtab.
4989
4990 2020-04-22 Tom de Vries <tdevries@suse.de>
4991
4992 PR symtab/25764
4993 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4994 in psymtabs.
4995
4996 2020-04-22 Tom de Vries <tdevries@suse.de>
4997
4998 PR symtab/25801
4999 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5000 symtabs.
5001
5002 2020-04-22 Tom de Vries <tdevries@suse.de>
5003
5004 PR symtab/25700
5005 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5006 CU if already created.
5007
5008 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5009
5010 * infrun.c (displaced_step_fixup): Switch to the event_thread
5011 before calling displaced_step_restore, not after.
5012
5013 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5014
5015 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5016 its inferior is not recorded by us.
5017 (record_btrace_target_open): Replace call to
5018 all_non_exited_threads () with call to current_inferior
5019 ()->non_exited_threads ().
5020 (record_btrace_target::stop_recording): Likewise.
5021 (record_btrace_target::close): Likewise.
5022 (record_btrace_target::wait): Likewise.
5023 (record_btrace_target::record_stop_replaying): Likewise.
5024
5025 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5026
5027 * btrace.c (btrace_enable): Throw an error on double enables and
5028 when enabling recording fails.
5029 (btrace_disable): Throw an error if the thread is not recorded.
5030
5031 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5032
5033 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5034 request if we do not have a thread_info.
5035
5036 2020-04-21 Tom de Vries <tdevries@suse.de>
5037
5038 PR gdb/25471
5039 * thread.c
5040 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5041 exception in get_frame_id.
5042
5043 2020-04-20 Tom Tromey <tromey@adacore.com>
5044
5045 * python/python.c (struct gdbpy_event): Mark move constructor as
5046 noexcept.
5047 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5048 constructor as noexcept.
5049 * completer.h (struct completion_result): Mark move constructor as
5050 noexcept.
5051 * completer.c (completion_result::completion_result): Use
5052 initialization style. Don't call reset_match_list.
5053
5054 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5055
5056 * MAINTAINERS (Write After Approval): Add myself.
5057
5058 2020-04-18 Tom Tromey <tom@tromey.com>
5059
5060 * windows-tdep.c (init_w32_command_list)
5061 (w32_prefix_command_valid): Restore.
5062 (_initialize_windows_tdep): Call init_w32_command_list.
5063
5064 2020-04-18 Tom Tromey <tom@tromey.com>
5065
5066 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5067 * value.c (value_fn_field): Update.
5068 * valops.c (find_function_in_inferior)
5069 (value_allocate_space_in_inferior): Update.
5070 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5071 Update.
5072 * tui/tui-source.c (tui_source_window::set_contents): Update.
5073 * symtab.c (lookup_global_or_static_symbol)
5074 (find_function_start_sal_1, skip_prologue_sal)
5075 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5076 * symmisc.c (dump_msymbols, dump_symtab_1)
5077 (maintenance_print_one_line_table): Update.
5078 * symfile.c (init_entry_point_info, section_is_mapped)
5079 (list_overlays_command, simple_read_overlay_table)
5080 (simple_overlay_update_1): Update.
5081 * stap-probe.c (handle_stap_probe): Update.
5082 * stabsread.c (dbx_init_float_type, define_symbol)
5083 (read_one_struct_field, read_enum_type, read_range_type): Update.
5084 * source.c (info_line_command): Update.
5085 * python/python.c (gdbpy_source_objfile_script)
5086 (gdbpy_execute_objfile_script): Update.
5087 * python/py-type.c (save_objfile_types): Update.
5088 * python/py-objfile.c (py_free_objfile): Update.
5089 * python/py-inferior.c (python_new_objfile): Update.
5090 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5091 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5092 (maintenance_check_psymtabs): Update.
5093 * printcmd.c (info_address_command): Update.
5094 * objfiles.h (struct objfile) <arch>: New method, from
5095 get_objfile_arch.
5096 (get_objfile_arch): Don't declare.
5097 * objfiles.c (get_objfile_arch): Remove.
5098 (filter_overlapping_sections): Update.
5099 * minsyms.c (msymbol_is_function): Update.
5100 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5101 (output_nondebug_symbol): Update.
5102 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5103 (mdebug_expand_psymtab): Update.
5104 * machoread.c (macho_add_oso_symfile): Update.
5105 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5106 Update.
5107 * linux-fork.c (checkpoint_command): Update.
5108 * linespec.c (convert_linespec_to_sals): Update.
5109 * jit.c (finalize_symtab): Update.
5110 * infrun.c (insert_exception_resume_from_probe): Update.
5111 * ia64-tdep.c (ia64_find_unwind_table): Update.
5112 * hppa-tdep.c (internalize_unwinds): Update.
5113 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5114 Update.
5115 * gcore.c (call_target_sbrk): Update.
5116 * elfread.c (record_minimal_symbol, elf_symtab_read)
5117 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5118 (elf_gnu_ifunc_resolve_by_got): Update.
5119 * dwarf2/read.c (create_addrmap_from_index)
5120 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5121 (read_debug_names_from_section)
5122 (process_psymtab_comp_unit_reader, add_partial_symbol)
5123 (add_partial_subprogram, process_full_comp_unit)
5124 (read_file_scope, read_func_scope, read_lexical_block_scope)
5125 (read_call_site_scope, dwarf2_ranges_read)
5126 (dwarf2_record_block_ranges, dwarf2_add_field)
5127 (mark_common_block_symbol_computed, read_tag_pointer_type)
5128 (read_tag_string_type, dwarf2_init_float_type)
5129 (dwarf2_init_complex_target_type, read_base_type)
5130 (partial_die_info::read, partial_die_info::read)
5131 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5132 (dwarf2_fetch_die_loc_sect_off): Update.
5133 * dwarf2/loc.c (dwarf2_find_location_expression)
5134 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5135 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5136 (dwarf2_loc_desc_get_symbol_read_needs)
5137 (locexpr_describe_location_piece, locexpr_describe_location_1)
5138 (loclist_describe_location): Update.
5139 * dwarf2/index-write.c (write_debug_names): Update.
5140 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5141 * dtrace-probe.c (dtrace_process_dof): Update.
5142 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5143 (process_one_symbol): Update.
5144 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5145 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5146 (coff_read_enum_type): Update.
5147 * cli/cli-cmds.c (edit_command, list_command): Update.
5148 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5149 * breakpoint.c (create_overlay_event_breakpoint)
5150 (create_longjmp_master_breakpoint)
5151 (create_std_terminate_master_breakpoint)
5152 (create_exception_master_breakpoint, get_sal_arch): Update.
5153 * block.c (block_gdbarch): Update.
5154 * annotate.c (annotate_source_line): Update.
5155
5156 2020-04-17 Tom Tromey <tromey@adacore.com>
5157
5158 * auto-load.c (show_auto_load_cmd): Remove.
5159 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5160 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5161 (maintenance_print_arc_command): Remove.
5162 * tui/tui-win.c (tui_command): Remove.
5163 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5164 * tui/tui-layout.c (tui_layout_command): Remove.
5165 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5166 * python/python.c (user_set_python, user_show_python): Remove.
5167 (_initialize_python): Use add_basic_prefix_cmd,
5168 add_show_prefix_cmd.
5169 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5170 (install_gdb_commands): Use add_basic_prefix_cmd,
5171 add_show_prefix_cmd.
5172 (info_guile_command): Remove.
5173 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5174 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5175 add_show_prefix_cmd.
5176 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5177 Remove do_set and do_show parameters.
5178 * cli/cli-style.c (set_style, show_style): Remove.
5179 (_initialize_cli_style): Use add_basic_prefix_cmd,
5180 add_show_prefix_cmd.
5181 (cli_style_option::add_setshow_commands): Remove do_set and
5182 do_show parameters.
5183 (cli_style_option::add_setshow_commands): Use
5184 add_basic_prefix_cmd, add_show_prefix_cmd.
5185 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5186 (set_style_name): Remove.
5187 * cli/cli-dump.c (dump_command, append_command): Remove.
5188 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5189 (tekhex_dump_command, binary_dump_command)
5190 (binary_append_command): Remove.
5191 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5192 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5193 (init_w32_command_list): Remove; move into ...
5194 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5195 * valprint.c (set_print, show_print, set_print_raw)
5196 (show_print_raw): Remove.
5197 (_initialize_valprint): Use add_basic_prefix_cmd,
5198 add_show_prefix_cmd.
5199 * typeprint.c (set_print_type, show_print_type): Remove.
5200 (_initialize_typeprint): Use add_basic_prefix_cmd,
5201 add_show_prefix_cmd.
5202 * record.c (set_record_command, show_record_command): Remove.
5203 (_initialize_record): Use add_basic_prefix_cmd,
5204 add_show_prefix_cmd.
5205 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5206 add_show_prefix_cmd.
5207 (info_command, show_command, set_debug, show_debug): Remove.
5208 * top.h (set_history, show_history): Don't declare.
5209 * top.c (set_history, show_history): Remove.
5210 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5211 (unset_tdesc_cmd): Remove.
5212 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5213 add_show_prefix_cmd.
5214 * symtab.c (info_module_command): Remove.
5215 (_initialize_symtab): Use add_basic_prefix_cmd.
5216 * symfile.c (overlay_command): Remove.
5217 (_initialize_symfile): Use add_basic_prefix_cmd.
5218 * sparc64-tdep.c (info_adi_command): Remove.
5219 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5220 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5221 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5222 add_show_prefix_cmd.
5223 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5224 (_initialize_serial): Use add_basic_prefix_cmd,
5225 add_show_prefix_cmd.
5226 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5227 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5228 add_show_prefix_cmd.
5229 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5230 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5231 add_show_prefix_cmd.
5232 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5233 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5234 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5235 add_show_prefix_cmd.
5236 * remote.c (remote_command, set_remote_cmd): Remove.
5237 (_initialize_remote): Use add_basic_prefix_cmd.
5238 * record-full.c (set_record_full_command)
5239 (show_record_full_command): Remove.
5240 (_initialize_record_full): Use add_basic_prefix_cmd,
5241 add_show_prefix_cmd.
5242 * record-btrace.c (cmd_set_record_btrace)
5243 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5244 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5245 (cmd_show_record_btrace_pt): Remove.
5246 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5247 add_show_prefix_cmd.
5248 * ravenscar-thread.c (set_ravenscar_command)
5249 (show_ravenscar_command): Remove.
5250 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5251 add_show_prefix_cmd.
5252 * mips-tdep.c (show_mips_command, set_mips_command)
5253 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5254 add_show_prefix_cmd.
5255 * maint.c (maintenance_command, maintenance_info_command)
5256 (maintenance_check_command, maintenance_print_command)
5257 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5258 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5259 add_show_prefix_cmd.
5260 (show_per_command_cmd): Remove.
5261 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5262 Remove.
5263 (maintenance_show_test_settings_cmd): Remove.
5264 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 * maint-test-options.c (maintenance_test_options_command):
5267 Remove.
5268 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5269 * macrocmd.c (macro_command): Remove
5270 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5271 * language.c (set_check, show_check): Remove.
5272 (_initialize_language): Use add_basic_prefix_cmd,
5273 add_show_prefix_cmd.
5274 * infcmd.c (unset_command): Remove.
5275 (_initialize_infcmd): Use add_basic_prefix_cmd.
5276 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5277 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5278 add_show_prefix_cmd.
5279 * go32-nat.c (go32_info_dos_command): Remove.
5280 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5281 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5282 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5283 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5284 (_initialize_frame): Use add_basic_prefix_cmd,
5285 add_show_prefix_cmd.
5286 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5287 (_initialize_dcache): Use add_basic_prefix_cmd,
5288 add_show_prefix_cmd.
5289 * cp-support.c (maint_cplus_command): Remove.
5290 (_initialize_cp_support): Use add_basic_prefix_cmd.
5291 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5292 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5293 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5294 add_basic_prefix_cmd, add_show_prefix_cmd.
5295 * breakpoint.c (save_command): Remove.
5296 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5297 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5298 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5299 add_show_prefix_cmd.
5300 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5301 (set_ada_command, show_ada_command): Remove.
5302 (_initialize_ada_language): Use add_basic_prefix_cmd,
5303 add_show_prefix_cmd.
5304 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5305
5306 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5307
5308 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5309 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5310
5311 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5314 warning messages.
5315
5316 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5319 import table is not at beginning of .idata section.
5320
5321 2020-04-16 Pedro Alves <palves@redhat.com>
5322
5323 * inferior.c (delete_inferior): Use delete operator directly
5324 instead of delete_program_space.
5325 * progspace.c (add_program_space): New, factored out from
5326 program_space::program_space.
5327 (remove_program_space): New, factored out from
5328 delete_program_space.
5329 (program_space::program_space): Remove intro comment. Rewrite.
5330 (program_space::~program_space): Remove intro comment. Call
5331 remove_program_space.
5332 (delete_program_space): Delete.
5333 * progspace.h (program_space::program_space): Make explicit. Move
5334 intro comment here, adjusted.
5335 (program_space::~program_space): Move intro comment here,
5336 adjusted.
5337 (delete_program_space): Remove.
5338
5339 2020-04-16 Tom Tromey <tromey@adacore.com>
5340
5341 * windows-nat.c (windows_nat::handle_access_violation): New
5342 function.
5343 * nat/windows-nat.h (handle_access_violation): Declare.
5344 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5345 windows-nat.c. Call handle_access_violation.
5346
5347 2020-04-16 Tom de Vries <tdevries@suse.de>
5348
5349 PR symtab/25791
5350 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5351 CUs without psymtab.
5352
5353 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5354
5355 * python/python.c (do_start_initialization): Don't call
5356 PyEval_InitThreads for Python 3.9 and beyond.
5357
5358 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5359
5360 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5361 thread functions.
5362 (obsd_nat_target::wait): Likewise.
5363
5364 2020-04-15 Tom Tromey <tromey@adacore.com>
5365
5366 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5367 (DEBUG_EXCEPT): Use debug_printf.
5368
5369 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5370
5371 * completer.c (class completion_tracker::completion_hash_entry)
5372 <hash_name>: New member function.
5373 (completion_tracker::discard_completions): New callback to hash a
5374 completion_hash_entry, pass this to htab_create_alloc.
5375
5376 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5377
5378 * windows-nat.c (windows_make_so): Warn rather than stopping with
5379 an error if realpath() fails.
5380
5381 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5382
5383 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5384 (nbsd_nat_target::info_proc): Add do_status.
5385
5386 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5387 Tom de Vries <tdevries@suse.de>
5388
5389 PR symtab/25718
5390 * psympriv.h (struct partial_symtab::read_symtab)
5391 (struct partial_symtab::expand_psymtab)
5392 (struct partial_symtab::read_dependencies): Update comments.
5393 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5394 read_symtab for includer.
5395 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5396 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5397 (struct dwarf2_include_psymtab::m_readin): Remove.
5398 (struct dwarf2_include_psymtab::includer): New member function.
5399 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5400
5401 2020-04-14 Tom de Vries <tdevries@suse.de>
5402
5403 PR symtab/25720
5404 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5405 with NULL symbol_matcher and lookup_name.
5406 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5407 and lookup_name.
5408 * dwarf2/read.c (dw2_expand_symtabs_matching)
5409 (dw2_debug_names_expand_symtabs_matching): Same.
5410 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5411 Make lookup_name a pointer. Update comment.
5412 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5413 lookup_name being a pointer.
5414 * symfile.c (expand_symtabs_matching): Same.
5415 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5416 * linespec.c (iterate_over_all_matching_symtabs): Same.
5417
5418 2020-04-13 Tom Tromey <tom@tromey.com>
5419
5420 * run-on-main-thread.c: Update include.
5421 * unittests/main-thread-selftests.c: Update include.
5422 * tui/tui-win.c: Update include.
5423 * tui/tui-io.c: Update include.
5424 * tui/tui-interp.c: Update include.
5425 * tui/tui-hooks.c: Update include.
5426 * top.h: Update include.
5427 * top.c: Update include.
5428 * ser-base.c: Update include.
5429 * remote.c: Update include.
5430 * remote-notif.c: Update include.
5431 * remote-fileio.c: Update include.
5432 * record-full.c: Update include.
5433 * record-btrace.c: Update include.
5434 * python/python.c: Update include.
5435 * posix-hdep.c: Update include.
5436 * mingw-hdep.c: Update include.
5437 * mi/mi-main.c: Update include.
5438 * mi/mi-interp.c: Update include.
5439 * main.c: Update include.
5440 * linux-nat.c: Update include.
5441 * interps.c: Update include.
5442 * infrun.c: Update include.
5443 * inf-loop.c: Update include.
5444 * event-top.c: Update include.
5445 * event-loop.c: Move to ../gdbsupport/.
5446 * event-loop.h: Move to ../gdbsupport/.
5447 * async-event.h: Update include.
5448 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5449
5450 2020-04-13 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-win.c: Include async-event.h.
5453 * remote.c: Include async-event.h.
5454 * remote-notif.c: Include async-event.h.
5455 * record-full.c: Include async-event.h.
5456 * record-btrace.c: Include async-event.h.
5457 * infrun.c: Include async-event.h.
5458 * event-top.c: Include async-event.h.
5459 * event-loop.h: Move some declarations to async-event.h.
5460 * event-loop.c: Don't include ser-event.h or top.h. Move some
5461 code to async-event.c.
5462 * async-event.h: New file.
5463 * async-event.c: New file.
5464 * Makefile.in (COMMON_SFILES): Add async-event.c.
5465 (HFILES_NO_SRCDIR): Add async-event.h.
5466
5467 2020-04-13 Tom Tromey <tom@tromey.com>
5468
5469 * utils.c (flush_streams): New function.
5470 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5471
5472 2020-04-13 Tom Tromey <tom@tromey.com>
5473
5474 * event-loop.c (handle_file_event): Use warning, not
5475 printf_unfiltered.
5476
5477 2020-04-13 Tom Tromey <tom@tromey.com>
5478
5479 * event-loop.c: Include <chrono>.
5480
5481 2020-04-13 Tom Tromey <tom@tromey.com>
5482
5483 * gdb_select.h: Move to ../gdbsupport/.
5484 * event-loop.c: Update include path.
5485 * top.c: Update include path.
5486 * ser-base.c: Update include path.
5487 * ui-file.c: Update include path.
5488 * ser-tcp.c: Update include path.
5489 * guile/scm-ports.c: Update include path.
5490 * posix-hdep.c: Update include path.
5491 * ser-unix.c: Update include path.
5492 * gdb_usleep.c: Update include path.
5493 * mingw-hdep.c: Update include path.
5494 * inflow.c: Update include path.
5495 * infrun.c: Update include path.
5496 * event-top.c: Update include path.
5497
5498 2020-04-13 Tom Tromey <tom@tromey.com>
5499
5500 * configure: Rebuild.
5501 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5502
5503 2020-04-13 Tom Tromey <tom@tromey.com>
5504
5505 * event-loop.h (start_event_loop): Don't declare.
5506 * event-loop.c (start_event_loop): Move...
5507 * main.c (start_event_loop): ...here. Now static.
5508
5509 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5510
5511 * MAINTAINERS: Update my email address.
5512
5513 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5514
5515 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5516 IP_ALL.
5517
5518 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5519
5520 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5521 (nbsd_nat_target::info_proc): Add do_cmdline.
5522
5523 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5524
5525 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5526 (nbsd_nat_target::info_proc): Add do_cwd.
5527
5528 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5529
5530 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5531
5532 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5533
5534 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5535 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5536 (nbsd_nat_target::info_proc): New functions.
5537 * nbsd-nat.c (kinfo_get_vmmap): New function.
5538 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5539 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5540 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5541 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5542 functions.
5543 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5544 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5545 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5546 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5547 (KINFO_VME_FLAG_GROWS_DOWN): New.
5548
5549 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5550
5551 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5552 bit shift.
5553
5554 2020-04-10 Tom Tromey <tromey@adacore.com>
5555
5556 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5557
5558 2020-04-10 Tom Tromey <tromey@adacore.com>
5559
5560 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5561 separate debug files.
5562
5563 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5564
5565 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5566 Move to...
5567 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5568 ... here.
5569 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5570 Check for STATUS_WX86_BREAKPOINT.
5571 (windows_nat_target::wait): Same.
5572
5573 2020-04-10 Tom de Vries <tdevries@suse.de>
5574
5575 PR cli/25808
5576 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5577
5578 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5579
5580 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5581 (Write After Approval): Remove Tom de Vries.
5582
5583 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5584
5585 revert partially:
5586 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5587
5588 * buildsym.c (record_line): Fix undefined behavior and preserve
5589 lines at eof.
5590
5591 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5592
5593 * auxv.h (svr4_auxv_parse): New.
5594 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5595 and generic_auxv_parse.
5596 (svr4_auxv_parse): Add.
5597 * obsd-tdep.c: Include "auxv.h".
5598 (obsd_auxv_parse): Remove.
5599 (obsd_init_abi): Remove comment.
5600 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5601 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5602 * nbsd-tdep.c: Include "auxv.h".
5603 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5604
5605 2020-04-08 Tom Tromey <tromey@adacore.com>
5606
5607 * nat/windows-nat.h (last_wait_event): Don't declare.
5608 (wait_for_debug_event): Update comment.
5609 * nat/windows-nat.c (last_wait_event): Now static.
5610
5611 2020-04-08 Tom Tromey <tromey@adacore.com>
5612
5613 * windows-nat.c (wait_for_debug_event): Move to
5614 nat/windows-nat.c.
5615 * nat/windows-nat.h (wait_for_debug_event): Declare.
5616 * nat/windows-nat.c (wait_for_debug_event): Move from
5617 windows-nat.c. No longer static.
5618
5619 2020-04-08 Tom Tromey <tromey@adacore.com>
5620
5621 * windows-nat.c (get_windows_debug_event): Use
5622 fetch_pending_stop.
5623 * nat/windows-nat.h (fetch_pending_stop): Declare.
5624 * nat/windows-nat.c (fetch_pending_stop): New function.
5625
5626 2020-04-08 Tom Tromey <tromey@adacore.com>
5627
5628 * windows-nat.c (windows_continue): Use matching_pending_stop and
5629 continue_last_debug_event.
5630 * nat/windows-nat.h (matching_pending_stop)
5631 (continue_last_debug_event): Declare.
5632 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5633 (matching_pending_stop, continue_last_debug_event): New
5634 functions.
5635
5636 2020-04-08 Tom Tromey <tromey@adacore.com>
5637
5638 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5639 (handle_exception_result): Move to nat/windows-nat.h.
5640 (DEBUG_EXCEPTION_SIMPLE): Remove.
5641 (windows_nat::handle_ms_vc_exception): New function.
5642 (handle_exception): Move to nat/windows-nat.c.
5643 (get_windows_debug_event): Update.
5644 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5645 nat/windows-nat.c.
5646 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5647 (handle_exception_result): Move from windows-nat.c.
5648 (handle_exception): Declare.
5649 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5650 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5651 windows-nat.c.
5652
5653 2020-04-08 Tom Tromey <tromey@adacore.com>
5654
5655 * windows-nat.c (exception_count, event_count): Remove.
5656 (handle_exception, get_windows_debug_event)
5657 (do_initial_windows_stuff): Update.
5658
5659 2020-04-08 Tom Tromey <tromey@adacore.com>
5660
5661 * windows-nat.c (windows_nat::handle_load_dll)
5662 (windows_nat::handle_unload_dll): Rename. No longer static.
5663 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5664 Declare.
5665
5666 2020-04-08 Tom Tromey <tromey@adacore.com>
5667
5668 * complaints.h (stop_whining): Declare at top-level.
5669 (complaint): Don't declare stop_whining.
5670
5671 2020-04-08 Tom Tromey <tromey@adacore.com>
5672
5673 * windows-nat.c (windows_nat::handle_output_debug_string):
5674 Rename. No longer static.
5675 * nat/windows-nat.h (handle_output_debug_string): Declare.
5676
5677 2020-04-08 Tom Tromey <tromey@adacore.com>
5678
5679 * windows-nat.c (current_process_handle, current_process_id)
5680 (main_thread_id, last_sig, current_event, last_wait_event)
5681 (current_windows_thread, desired_stop_thread_id, pending_stops)
5682 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5683 (display_selectors, fake_create_process)
5684 (get_windows_debug_event): Update.
5685 * nat/windows-nat.h (current_process_handle, current_process_id)
5686 (main_thread_id, last_sig, current_event, last_wait_event)
5687 (current_windows_thread, desired_stop_thread_id, pending_stops)
5688 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5689 * nat/windows-nat.c (current_process_handle, current_process_id)
5690 (main_thread_id, last_sig, current_event, last_wait_event)
5691 (current_windows_thread, desired_stop_thread_id, pending_stops)
5692 (siginfo_er): New globals. Move from windows-nat.c.
5693
5694 2020-04-08 Tom Tromey <tromey@adacore.com>
5695
5696 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5697 (handle_load_dll): Update.
5698 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5699
5700 2020-04-08 Tom Tromey <tromey@adacore.com>
5701
5702 * windows-nat.c (enum thread_disposition_type): Move to
5703 nat/windows-nat.h.
5704 (windows_nat::thread_rec): Rename from thread_rec. No longer
5705 static.
5706 (windows_add_thread, windows_nat_target::fetch_registers)
5707 (windows_nat_target::store_registers, handle_exception)
5708 (windows_nat_target::resume, get_windows_debug_event)
5709 (windows_nat_target::get_tib_address)
5710 (windows_nat_target::thread_name)
5711 (windows_nat_target::thread_alive): Update.
5712 * nat/windows-nat.h (enum thread_disposition_type): Move from
5713 windows-nat.c.
5714 (thread_rec): Declare.
5715
5716 2020-04-08 Tom Tromey <tromey@adacore.com>
5717
5718 * windows-nat.c: Add "using namespace".
5719 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5720 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5721
5722 2020-04-08 Tom Tromey <tromey@adacore.com>
5723
5724 * nat/windows-nat.h (struct windows_thread_info): Declare
5725 destructor.
5726 * nat/windows-nat.c (~windows_thread_info): New.
5727
5728 2020-04-08 Tom Tromey <tromey@adacore.com>
5729
5730 PR gdb/22992
5731 * windows-nat.c (current_event): Update comment.
5732 (last_wait_event, desired_stop_thread_id): New globals.
5733 (struct pending_stop): New.
5734 (pending_stops): New global.
5735 (windows_nat_target) <stopped_by_sw_breakpoint>
5736 <supports_stopped_by_sw_breakpoint>: New methods.
5737 (windows_fetch_one_register): Add assertions. Adjust PC.
5738 (windows_continue): Handle pending stops. Suspend other threads
5739 when stepping. Use last_wait_event
5740 (wait_for_debug_event): New function.
5741 (get_windows_debug_event): Use wait_for_debug_event. Handle
5742 pending stops. Queue spurious stops.
5743 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5744 (windows_nat_target::kill): Use wait_for_debug_event.
5745 * nat/windows-nat.h (struct windows_thread_info)
5746 <stopped_at_software_breakpoint>: New field.
5747 * nat/windows-nat.c (windows_thread_info::resume): Clear
5748 stopped_at_software_breakpoint.
5749
5750 2020-04-08 Tom Tromey <tromey@adacore.com>
5751
5752 * windows-nat.c (enum thread_disposition_type): New.
5753 (thread_rec): Replace "get_context" parameter with "disposition";
5754 change type.
5755 (windows_add_thread, windows_nat_target::fetch_registers)
5756 (windows_nat_target::store_registers, handle_exception)
5757 (windows_nat_target::resume, get_windows_debug_event)
5758 (windows_nat_target::get_tib_address)
5759 (windows_nat_target::thread_name)
5760 (windows_nat_target::thread_alive): Update.
5761
5762 2020-04-08 Tom Tromey <tromey@adacore.com>
5763
5764 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5765 (windows_continue): Use windows_continue::resume.
5766 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5767 resume>: Declare new methods.
5768 * nat/windows-nat.c: New file.
5769 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5770
5771 2020-04-08 Tom Tromey <tromey@adacore.com>
5772
5773 * windows-nat.c (windows_add_thread, windows_delete_thread)
5774 (windows_nat_target::fetch_registers)
5775 (windows_nat_target::store_registers, fake_create_process)
5776 (windows_nat_target::resume, windows_nat_target::resume)
5777 (get_windows_debug_event, windows_nat_target::wait)
5778 (windows_nat_target::pid_to_str)
5779 (windows_nat_target::get_tib_address)
5780 (windows_nat_target::get_ada_task_ptid)
5781 (windows_nat_target::thread_name)
5782 (windows_nat_target::thread_alive): Use lwp, not tid.
5783
5784 2020-04-08 Tom Tromey <tromey@adacore.com>
5785
5786 * windows-nat.c (handle_exception)
5787 (windows_nat_target::thread_name): Update.
5788 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5789 <name>: Now unique_xmalloc_ptr.
5790
5791 2020-04-08 Tom Tromey <tromey@adacore.com>
5792
5793 * windows-nat.c (thread_rec)
5794 (windows_nat_target::fetch_registers): Update.
5795 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5796 Update comment.
5797 <debug_registers_changed, reload_context>: Now bool.
5798
5799 2020-04-08 Tom Tromey <tromey@adacore.com>
5800
5801 * windows-nat.c (windows_add_thread): Use new.
5802 (windows_init_thread_list, windows_delete_thread): Use delete.
5803 (get_windows_debug_event): Update.
5804 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5805 destructor, and initializers.
5806
5807 2020-04-08 Tom Tromey <tromey@adacore.com>
5808
5809 * windows-nat.c (struct windows_thread_info): Remove.
5810 * nat/windows-nat.h: New file.
5811
5812 2020-04-08 Tom Tromey <tromey@adacore.com>
5813
5814 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5815 (thread_rec, windows_add_thread, windows_delete_thread)
5816 (windows_continue): Update.
5817
5818 2020-04-08 Tom Tromey <tromey@adacore.com>
5819
5820 * windows-nat.c (struct windows_thread_info): Remove typedef.
5821 (thread_head): Remove.
5822 (thread_list): New global.
5823 (thread_rec, windows_add_thread, windows_init_thread_list)
5824 (windows_delete_thread, windows_continue): Update.
5825
5826 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * windows-tdep.h (windows_init_abi): Add comment.
5829 (cygwin_init_abi): New declaration.
5830 * windows-tdep.c: Split signal enumeration in two, one for
5831 Windows and one for Cygwin.
5832 (windows_gdb_signal_to_target): Only deal with signal of the
5833 Windows OS ABI.
5834 (cygwin_gdb_signal_to_target): New function.
5835 (windows_init_abi): Rename to windows_init_abi_common, don't set
5836 gdb_signal_to_target gdbarch method. Add new new function with
5837 this name.
5838 (cygwin_init_abi): New function.
5839 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5840 comment. Don't call windows_init_abi.
5841 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5842 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5843 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5844 i386_windows_init_abi_common, don't call windows_init_abi. Add
5845 a new function of this name.
5846 (i386_cygwin_init_abi): New function.
5847 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5848 OS ABI Cygwin.
5849
5850 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5853 parameter.c.
5854 (dwarf2_read_gdb_index): Update.
5855
5856 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5857
5858 * nbsd-tdep.c: Include "objfiles.h".
5859 (nbsd_skip_solib_resolver): New.
5860 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5861
5862 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5863
5864 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5865 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5866 with DW_LLE_base_addressx are being emitted in DWARFv5.
5867 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5868 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5869 unsigned integer.
5870
5871 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5872
5873 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5874 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5875 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5876 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5877 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5878 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5879 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5880
5881
5882 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5883
5884 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5885 (read_loclist_index): New function definition.
5886 (lookup_loclist_base): New function definition.
5887 (read_loclist_header): New function definition.
5888 (dwarf2_cu): Add loclist_base and loclist_header field.
5889 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5890 (read_full_die_1): Read the value of DW_AT_loclists_base.
5891 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5892 (read_attribute_value): Handle DW_FORM_loclistx.
5893 (skip_one_die): Handle DW_FORM_loclistx.
5894 (loclist_header): New structure declaration.
5895 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5896
5897 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5900 constructor. Remove `addr` parameter from other constructor and
5901 add `per_cu` parameter.
5902 * dwarf2/read.c (create_partial_symtab): Update.
5903
5904 2020-04-07 Tom de Vries <tdevries@suse.de>
5905
5906 PR symtab/25796
5907 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5908 (partial_die_info::fixup): Inherit has_const_value.
5909
5910 2020-04-07 Tom de Vries <tdevries@suse.de>
5911
5912 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5913 symbols without address.
5914
5915 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5916
5917 * nbsd-nat.h (struct thread_info): Add forward declaration.
5918 (nbsd_nat_target::thread_alive): Add.
5919 (nbsd_nat_target::thread_name): Likewise.
5920 (nbsd_nat_target::update_thread_list): Likewise.
5921 (update_thread_list::post_attach): Likewise.
5922 (post_attach::pid_to_str): Likewise.
5923 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5924 (nbsd_thread_lister): Add.
5925 (nbsd_nat_target::thread_alive): Likewise.
5926 (nbsd_nat_target::thread_name): Likewise.
5927 (nbsd_add_threads): Likewise.
5928 (update_thread_list::post_attach): Likewise.
5929 (nbsd_nat_target::update_thread_list): Likewise.
5930 (post_attach::pid_to_str): Likewise.
5931
5932 2020-04-06 Tom Tromey <tromey@adacore.com>
5933
5934 * ada-valprint.c (print_variant_part): Extract the variant field.
5935 (print_field_values): Use the field as the outer value when
5936 recursing.
5937
5938 2020-04-06 Tom Tromey <tromey@adacore.com>
5939
5940 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5941 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5942 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5943 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5944 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5945
5946 2020-04-06 Tom Tromey <tromey@adacore.com>
5947
5948 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5949 TYPE_CODE_ERROR.
5950
5951 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5952
5953 * nbsd-tdep.c: Include "gdbarch.h".
5954 Define enum with NetBSD signal numbers.
5955 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5956 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5957 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5958 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5959 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5960 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5961 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5962 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5963 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5964 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5965 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5966 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5967
5968 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5969
5970 PR gdb/25325
5971 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5972
5973 2020-04-03 Tom Tromey <tromey@adacore.com>
5974
5975 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5976 Read constant block.
5977
5978 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5981 (gdb_bfd_get_full_section_contents): New declaration.
5982 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5983 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5984 gdb_bfd_get_full_section_contents.
5985
5986 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * exec.c (build_section_table): Replace internal_error with
5989 gdb_assert.
5990 (section_table_xfer_memory_partial): Likewise.
5991 * mdebugread.c (parse_partial_symbols): Likewise.
5992 * psymtab.c (lookup_partial_symbol): Likewise.
5993 * utils.c (wrap_here): Likewise.
5994
5995 2020-04-02 Tom Tromey <tromey@adacore.com>
5996
5997 * f-lang.c (build_fortran_types): Use arch_type to initialize
5998 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5999
6000 2020-04-02 Tom Tromey <tromey@adacore.com>
6001
6002 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6003 of attributes.
6004
6005 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6006 Bernd Edlinger <bernd.edlinger@hotmail.de>
6007 Tom Tromey <tromey@adacore.com>
6008
6009 * buildsym.c (buildsym_compunit::record_line): Remove
6010 deduplication code.
6011
6012 2020-04-02 Tom de Vries <tdevries@suse.de>
6013
6014 PR ada/24671
6015 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6016
6017 2020-04-02 Tom de Vries <tdevries@suse.de>
6018
6019 * dwarf2/read.c (dwarf2_gdb_index_functions,
6020 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6021 NULL.
6022 * psymtab.c (psym_lookup_global_symbol_language): New function.
6023 (psym_functions): Init psym_lookup_global_symbol_language with
6024 psym_lookup_global_symbol_language.
6025 * symfile-debug.c (debug_sym_quick_functions): Init
6026 lookup_global_symbol_language with NULL.
6027 * symfile.c (set_initial_language): Remove fixme comment.
6028 * symfile.h (struct quick_symbol_functions): Add
6029 lookup_global_symbol_language.
6030 * symtab.c (find_quick_global_symbol_language): New function.
6031 (find_main_name): Use find_quick_global_symbol_language.
6032
6033 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6034
6035 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6036
6037 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6038
6039 * buildsym.c (record_line): Fix undefined behavior and preserve
6040 lines at eof.
6041
6042 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6043
6044 * buildsym.c (record_line): Fix the resizing condition.
6045
6046 2020-04-01 Tom Tromey <tom@tromey.com>
6047
6048 * value.h (value_literal_complex): Add comment.
6049 * valops.c (value_literal_complex): Refer to value.h.
6050
6051 2020-04-01 Tom Tromey <tom@tromey.com>
6052
6053 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6054 (scalar_type): New rule, from typebase.
6055 (typebase): Use scalar_type. Recognize complex types.
6056 (field_name): Handle FLOAT_KEYWORD.
6057 (ident_tokens): Add _Complex and __complex__.
6058
6059 2020-04-01 Tom Tromey <tom@tromey.com>
6060
6061 PR exp/25299:
6062 * valarith.c (promotion_type, complex_binop): New functions.
6063 (scalar_binop): Handle complex numbers. Use promotion_type.
6064 (value_pos, value_neg, value_complement): Handle complex numbers.
6065
6066 2020-04-01 Tom Tromey <tom@tromey.com>
6067
6068 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6069 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6070 (parse_number): Handle complex numbers.
6071
6072 2020-04-01 Tom Tromey <tom@tromey.com>
6073
6074 * c-valprint.c (c_decorations): Change complex suffix to "i".
6075
6076 2020-04-01 Tom Tromey <tom@tromey.com>
6077
6078 * valprint.c (generic_value_print_complex): Use accessors.
6079 * value.h (value_real_part, value_imaginary_part): Declare.
6080 * valops.c (value_real_part, value_imaginary_part): New
6081 functions.
6082 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6083
6084 2020-04-01 Tom Tromey <tom@tromey.com>
6085
6086 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6087 (read_range_type): Update.
6088 * mdebugread.c (basic_type): Update.
6089 * go-lang.c (build_go_types): Use init_complex_type.
6090 * gdbtypes.h (struct main_type) <complex_type>: New member.
6091 (init_complex_type): Update.
6092 (arch_complex_type): Don't declare.
6093 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6094 Make name if none given. Use alloc_type_copy. Look for cached
6095 complex type.
6096 (arch_complex_type): Remove.
6097 (gdbtypes_post_init): Use init_complex_type.
6098 * f-lang.c (build_fortran_types): Use init_complex_type.
6099 * dwarf2/read.c (read_base_type): Update.
6100 * d-lang.c (build_d_types): Use init_complex_type.
6101 * ctfread.c (read_base_type): Update.
6102
6103 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6104
6105 * infrun.c (stop_all_threads): Update assertion, plus when
6106 stopping threads, take into account that we might be trying
6107 to stop an all-stop target.
6108 (stop_waiting): Call 'stop_all_threads' if there exists a
6109 non-stop target.
6110
6111 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6112
6113 * target.h (exists_non_stop_target): New function declaration.
6114 * target.c (exists_non_stop_target): New function.
6115
6116 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6117
6118 PR gdb/24789
6119 * eval.c (is_integral_or_integral_reference): New function.
6120 (evaluate_subexp_standard): Allow integer references in
6121 pointer arithmetic.
6122
6123 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6124
6125 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6126 check for no ptid in the stop reply when the target is non-stop.
6127
6128 2020-04-01 Tom Tromey <tromey@adacore.com>
6129
6130 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6131 "name" parameter to rvalue reference. Initialize m_name_holder.
6132 <lookup_name_info>: New overloads.
6133 <name>: Return gdb::string_view.
6134 <c_str>: New method.
6135 <make_ignore_params>: Update.
6136 <search_name_hash>: Update.
6137 <language_lookup_name>: Return const char *.
6138 <m_name>: Change type.
6139 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6140 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6141 (lookup_name_info::match_any): Update.
6142 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6143 Update.
6144 * minsyms.c (linkage_name_str): Update.
6145 * language.c (default_symbol_name_matcher): Update.
6146 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6147 Update.
6148 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6149 (ada_lookup_name_info::ada_lookup_name_info): Update.
6150 (literal_symbol_name_matcher): Update.
6151
6152 2020-04-01 Tom Tromey <tromey@adacore.com>
6153
6154 * psymtab.c (psymtab_search_name): Remove function.
6155 (psym_lookup_symbol): Create search name and lookup name here.
6156 (lookup_partial_symbol): Remove "name" parameter; add
6157 lookup_name.
6158 (psym_expand_symtabs_for_function): Update.
6159
6160 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6161
6162 PR tui/25597:
6163 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6164
6165 2020-03-31 Tom Tromey <tromey@adacore.com>
6166
6167 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6168 memcpy.
6169
6170 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6171
6172 * features/riscv/32bit-csr.xml: Regenerated.
6173 * features/riscv/64bit-csr.xml: Regenerated.
6174
6175 2020-03-30 Tom Tromey <tromey@adacore.com>
6176
6177 * ada-valprint.c (print_variant_part): Update.
6178 * ada-lang.h (ada_which_variant_applies): Update.
6179 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6180 outer_valaddr parameters; replace with "outer" value parameter.
6181 (to_fixed_variant_branch_type): Update.
6182
6183 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6184
6185 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6186 <list>. Remove inclusion of observable.h.
6187 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6188 (struct arch_lwp_info): New struct.
6189 (class ppc_linux_dreg_interface): New class.
6190 (struct ppc_linux_process_info): New struct.
6191 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6192 <low_new_clone, low_forget_process, low_prepare_to_resume>
6193 <copy_thread_dreg_state, mark_thread_stale>
6194 <mark_debug_registers_changed, register_hw_breakpoint>
6195 <clear_hw_breakpoint, register_wp, clear_wp>
6196 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6197 <num_memory_accesses, get_trigger_type>
6198 <create_watchpoint_request, hwdebug_point_cmp>
6199 <init_arch_lwp_info, get_arch_lwp_info>
6200 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6201 methods.
6202 <struct ptid_hash>: New inner struct.
6203 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6204 members.
6205 (saved_dabr_value, hwdebug_info, max_slots_number)
6206 (struct hw_break_tuple, struct thread_points, ppc_threads)
6207 (have_ptrace_hwdebug_interface)
6208 (hwdebug_find_thread_points_by_tid)
6209 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6210 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6211 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6212 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6213 use m_dreg_interface.
6214 (hwdebug_point_cmp): Change to...
6215 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6216 reference arguments instead of pointers.
6217 (ppc_linux_nat_target::ranged_break_num_registers): Use
6218 m_dreg_interface.
6219 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6220 m_dreg_interface. Call register_hw_breakpoint.
6221 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6222 m_dreg_interface. Call clear_hw_breakpoint.
6223 (get_trigger_type): Change to...
6224 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6225 comment.
6226 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6227 use m_dreg_interface. Call register_hw_breakpoint.
6228 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6229 use m_dreg_interface. Call clear_hw_breakpoint.
6230 (can_use_watchpoint_cond_accel): Change to...
6231 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6232 method. Update comment, use m_dreg_interface and
6233 m_process_info.
6234 (calculate_dvc): Change to...
6235 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6236 m_dreg_interface.
6237 (num_memory_accesses): Change to...
6238 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6239 (check_condition): Change to...
6240 (ppc_linux_nat_target::check_condition): ...this method.
6241 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6242 comment, use m_dreg_interface.
6243 (create_watchpoint_request): Change to...
6244 (ppc_linux_nat_target::create_watchpoint_request): ...this
6245 method. Use m_dreg_interface.
6246 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6247 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6248 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6249 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6250 (ppc_linux_nat_target::low_forget_process)
6251 (ppc_linux_nat_target::low_new_fork)
6252 (ppc_linux_nat_target::low_new_clone)
6253 (ppc_linux_nat_target::low_delete_thread)
6254 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6255 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6256 only call mark_thread_stale.
6257 (ppc_linux_thread_exit): Remove.
6258 (ppc_linux_nat_target::stopped_data_address): Change to...
6259 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6260 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6261 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6262 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6263 comment. Call low_stopped_data_address.
6264 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6265 m_dreg_interface.
6266 (ppc_linux_nat_target::masked_watch_num_registers): Use
6267 m_dreg_interface.
6268 (ppc_linux_nat_target::copy_thread_dreg_state)
6269 (ppc_linux_nat_target::mark_thread_stale)
6270 (ppc_linux_nat_target::mark_debug_registers_changed)
6271 (ppc_linux_nat_target::register_hw_breakpoint)
6272 (ppc_linux_nat_target::clear_hw_breakpoint)
6273 (ppc_linux_nat_target::register_wp)
6274 (ppc_linux_nat_target::clear_wp)
6275 (ppc_linux_nat_target::init_arch_lwp_info)
6276 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6277 (_initialize_ppc_linux_nat): Remove observer callback.
6278
6279 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6280
6281 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6282 (ppc_linux_nat_target::auxv_parse)
6283 (ppc_linux_nat_target::read_description)
6284 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6285 Move up.
6286
6287 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6288
6289 * linux-nat.h (low_new_clone): New method.
6290 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6291
6292 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6295 (dbx_expand_psymtab): ... this.
6296 (start_psymtab): Update.
6297 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6298 (mdebug_expand_psymtab): ... this.
6299 (parse_partial_symbols): Update.
6300 (new_psymtab): Update.
6301 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6302 (xcoff_expand_psymtab): ... this.
6303 (xcoff_start_psymtab): Update.
6304
6305 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6306
6307 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6308 <expand_dependencies>: ... this.
6309 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6310 (partial_symtab::expand_dependencies): ... this.
6311 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6312 Update.
6313 (dwarf2_psymtab::expand_psymtab): Update.
6314 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6315 * mdebugread.c (psymtab_to_symtab_1): Update.
6316 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6317
6318 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6319
6320 * psympriv.h (discard_psymtab): Remove.
6321 * dbxread.c (dbx_end_psymtab): Update.
6322 * xcoffread.c (xcoff_end_psymtab): Update.
6323
6324 2020-03-28 Tom Tromey <tom@tromey.com>
6325
6326 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6327 comment.
6328
6329 2020-03-28 Tom Tromey <tom@tromey.com>
6330
6331 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6332
6333 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6334
6335 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6336
6337 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6338
6339 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6340
6341 2020-03-26 Tom Tromey <tom@tromey.com>
6342
6343 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6344 (mark_common_block_symbol_computed, read_tag_string_type)
6345 (attr_to_dynamic_prop, read_subrange_type): Update.
6346 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6347 to be methods on struct attribute.
6348 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6349 (read_call_site_scope, partial_die_info::read)
6350 (partial_die_info::read, lookup_die_type, follow_die_ref):
6351 Update.
6352 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6353 from dwarf2_get_ref_die_offset.
6354 (attribute::constant_value): New method, from
6355 dwarf2_get_attr_constant_value.
6356 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6357 Declare method.
6358 <constant_value>: New method.
6359
6360 2020-03-26 Tom Tromey <tom@tromey.com>
6361
6362 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6363 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6364 (dwarf_type_encoding_name): Move to stringify.c.
6365 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6366 * dwarf2/stringify.c: New file.
6367 * dwarf2/stringify.h: New file.
6368
6369 2020-03-26 Tom Tromey <tom@tromey.com>
6370
6371 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6372 Rewrite.
6373
6374 2020-03-26 Tom Tromey <tom@tromey.com>
6375
6376 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6377 methods.
6378 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6379 (lookup_ranges_base): Likewise.
6380 (read_cutu_die_from_dwo, read_full_die_1): Update.
6381
6382 2020-03-26 Tom Tromey <tom@tromey.com>
6383
6384 * dwarf2/read.c (read_import_statement, read_file_scope)
6385 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6386 (read_lexical_block_scope, read_call_site_scope)
6387 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6388 (handle_struct_member_die, process_structure_scope)
6389 (update_enumeration_type_from_children)
6390 (process_enumeration_scope, read_array_type, read_common_block)
6391 (read_namespace, read_module, read_subroutine_type): Update.
6392 (sibling_die): Remove.
6393
6394 2020-03-26 Tom Tromey <tom@tromey.com>
6395
6396 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6397 (build_type_psymtabs_reader, read_structure_type)
6398 (read_enumeration_type, read_full_die_1): Update.
6399 (dwarf2_attr_no_follow): Move to die.h.
6400 * dwarf2/die.h (struct die_info) <attr>: New method.
6401
6402 2020-03-26 Tom Tromey <tom@tromey.com>
6403
6404 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6405 <base_address>: Now an optional.
6406 (dwarf2_find_base_address, dwarf2_rnglists_process)
6407 (dwarf2_ranges_process, fill_in_loclist_baton)
6408 (dwarf2_symbol_mark_computed): Update.
6409
6410 2020-03-26 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/read.c (struct die_info): Move to die.h.
6413 * dwarf2/die.h: New file.
6414
6415 2020-03-26 Tom Tromey <tom@tromey.com>
6416
6417 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6418 * dwarf2/read.c
6419 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6420 Move to line-header.c.
6421 (read_checked_initial_length_and_offset, read_formatted_entries):
6422 Likewise.
6423 (dwarf_decode_line_header): Split into two.
6424 * dwarf2/line-header.c
6425 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6426 Move from read.c.
6427 (read_checked_initial_length_and_offset, read_formatted_entries):
6428 Likewise.
6429 (dwarf_decode_line_header): New function, split from read.c.
6430
6431 2020-03-26 Tom Tromey <tom@tromey.com>
6432
6433 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6434 Declare method.
6435 * dwarf2/read.c (read_attribute_value): Update.
6436 (dwarf2_per_objfile::read_line_string): Rename from
6437 read_indirect_line_string.
6438 (read_formatted_entries): Update.
6439
6440 2020-03-26 Tom Tromey <tom@tromey.com>
6441
6442 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6443 variable.
6444
6445 2020-03-26 Tom Tromey <tom@tromey.com>
6446
6447 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6448 const.
6449 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6450 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6451 parameter const.
6452
6453 2020-03-26 Tom Tromey <tom@tromey.com>
6454
6455 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6456 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6457 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6458 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6459
6460 2020-03-26 Tom Tromey <tom@tromey.com>
6461
6462 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6463 file_names_size, file_full_name, file_file_name>: Use const.
6464 <file_name_at, file_names>: Add const overload.
6465 * dwarf2/line-header.c (line_header::file_file_name)
6466 (line_header::file_full_name): Update.
6467
6468 2020-03-26 Tom Tromey <tom@tromey.com>
6469
6470 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6471 (macro_start_file, consume_improper_spaces)
6472 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6473 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6474 (dwarf_decode_macros): Move to macro.c.
6475 * dwarf2/macro.c: New file.
6476 * dwarf2/macro.h: New file.
6477 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6478
6479 2020-03-26 Tom Tromey <tom@tromey.com>
6480
6481 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6482 method.
6483 * dwarf2/section.c: New method. From
6484 read_indirect_string_at_offset_from.
6485 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6486 (read_indirect_string_at_offset_from): Move to section.c.
6487 (read_indirect_string_at_offset): Rewrite.
6488 (read_indirect_line_string_at_offset): Remove.
6489 (read_indirect_string, read_indirect_line_string)
6490 (dwarf_decode_macro_bytes): Update.
6491
6492 2020-03-26 Tom Tromey <tom@tromey.com>
6493
6494 * dwarf2/section.h (struct dwarf2_section_info)
6495 <overload_complaint>: Declare.
6496 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6497 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6498 Rename from dwarf2_section_buffer_overflow_complaint.
6499 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6500 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6501
6502 2020-03-26 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6505 Declare.
6506 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6507 Move from read.c.
6508 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6509 to section.c.
6510
6511 2020-03-26 Tom Tromey <tom@tromey.com>
6512
6513 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6514
6515 2020-03-26 Tom Tromey <tom@tromey.com>
6516
6517 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6518 "builder".
6519 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6520 parameter.
6521 (dwarf_decode_macros): Update.
6522
6523 2020-03-26 Tom Tromey <tom@tromey.com>
6524
6525 * dwarf2/read.c (read_attribute_value): Update.
6526 (read_indirect_string_from_dwz): Move to dwz.c; change into
6527 method.
6528 (dwarf_decode_macro_bytes): Update.
6529 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6530 * dwarf2/dwz.c: New file.
6531 * Makefile.in (COMMON_SFILES): Add dwz.c.
6532
6533 2020-03-26 Tom Tromey <tom@tromey.com>
6534
6535 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6536 * dwarf2/read.c: Add include.
6537 * dwarf2/index-write.c: Add include.
6538 * dwarf2/index-cache.c: Add include.
6539 * dwarf2/dwz.h: New file.
6540
6541 2020-03-25 Tom Tromey <tom@tromey.com>
6542
6543 * compile/compile-object-load.c (get_out_value_type): Mention
6544 correct symbol name in error message.
6545
6546 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6547
6548 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6549
6550 2020-03-25 Tom de Vries <tdevries@suse.de>
6551
6552 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6553 * symmisc.c (dump_symtab_1): Print user and includes fields.
6554 (maintenance_info_symtabs): Same.
6555
6556 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 PR gdb/25534
6559 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6560 (riscv_regcache_cooked_write): New function.
6561 (riscv_push_dummy_call): Use new function.
6562 (riscv_return_value): Likewise.
6563
6564 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6565
6566 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6567 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6568 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6569 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6570 * infrun.c (follow_fork): Likewise.
6571 (follow_fork_inferior): Likewise.
6572 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6573 * linux-nat.h (class linux_nat_target): Likewise.
6574 * remote.c (class remote_target) <follow_fork>: Likewise.
6575 (remote_target::follow_fork): Likewise.
6576 * target-delegates.c: Re-generate.
6577 * target.c (default_follow_fork): Likewise.
6578 (target_follow_fork): Likewise.
6579 * target.h (struct target_ops) <follow_fork>: Likewise.
6580 (target_follow_fork): Likewise.
6581
6582 2020-03-24 Tom de Vries <tdevries@suse.de>
6583
6584 * psymtab.c (maintenance_info_psymtabs): Print user field.
6585
6586 2020-03-20 Tom Tromey <tromey@adacore.com>
6587
6588 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6589 const.
6590 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6591 const.
6592
6593 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6594
6595 * ptrace.m4: Don't check for ptrace declaration.
6596 * config.in: Re-generate.
6597 * configure: Re-generate.
6598 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6599 not defined.
6600
6601 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6602
6603 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6604 `PTRACE_TYPE_RET'.
6605 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6606 * sparc-nat.c (gdb_ptrace): Likewise.
6607 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6608
6609 2020-03-20 Tom Tromey <tromey@adacore.com>
6610
6611 * c-exp.y (lex_one_token): Fix assert.
6612
6613 2020-03-20 Tom Tromey <tromey@adacore.com>
6614
6615 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6616 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6617 strncpy call.
6618
6619 2020-03-20 Tom Tromey <tromey@adacore.com>
6620
6621 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6622
6623 2020-03-20 Tom Tromey <tromey@adacore.com>
6624
6625 * ada-valprint.c (print_variant_part): Remove parameters; switch
6626 to value-based API.
6627 (print_field_values): Likewise.
6628 (ada_val_print_struct_union): Likewise.
6629 (ada_value_print_1): Update.
6630
6631 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6632
6633 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6634 nbsd_nat_target instead of inf_ptrace_target.
6635 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6636 nbsd_nat_target.
6637
6638 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6639
6640 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6641 it to the ptrace call.
6642 * (store_registers): Likewise.
6643
6644 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6645
6646 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6647 it to the ptrace call.
6648 * (store_registers): Likewise.
6649
6650 2020-03-19 Luis Machado <luis.machado@linaro.org>
6651
6652 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6653 valid, fetch vg value from ptrace.
6654
6655 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6656 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6657 * inf-ptrace.c: Likewise.
6658 * (gdb_ptrace): Add.
6659 * (inf_ptrace_target::resume): Update.
6660 * (inf_ptrace_target::xfer_partial): Likewise.
6661 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6662 * (inf_ptrace_peek_poke): Update.
6663
6664 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6665
6666 * x86-bsd-nat.c (gdb_ptrace): New.
6667 * (x86bsd_dr_set): Add new argument `ptid'.
6668 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6669 x86bsd_dr_set_addr): Update.
6670
6671 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * remote.c (remote_target::process_stop_reply): Handle events for
6674 all threads differently.
6675
6676 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * completer.c (completion_tracker::remove_completion): Define new
6679 function.
6680 * completer.h (completion_tracker::remove_completion): Declare new
6681 function.
6682 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6683 when adding a C++ function symbol.
6684
6685 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * completer.c (completion_tracker::completion_hash_entry): Define
6688 new class.
6689 (advance_to_filename_complete_word_point): Call
6690 recompute_lowest_common_denominator.
6691 (completion_tracker::completion_tracker): Call discard_completions
6692 to setup the hash table.
6693 (completion_tracker::discard_completions): Allow for being called
6694 from the constructor, pass new equal function, and element deleter
6695 when constructing the hash table. Initialise new class member
6696 variables.
6697 (completion_tracker::maybe_add_completion): Remove use of
6698 m_entries_vec, and store more information into m_entries_hash.
6699 (completion_tracker::recompute_lcd_visitor): New function, most
6700 content taken from...
6701 (completion_tracker::recompute_lowest_common_denominator):
6702 ...here, this now just visits each item in the hash calling the
6703 above visitor.
6704 (completion_tracker::build_completion_result): Remove use of
6705 m_entries_vec, call recompute_lowest_common_denominator.
6706 * completer.h (completion_tracker::have_completions): Remove use
6707 of m_entries_vec.
6708 (completion_tracker::completion_hash_entry): Declare new class.
6709 (completion_tracker::recompute_lowest_common_denominator): Change
6710 function signature.
6711 (completion_tracker::recompute_lcd_visitor): Declare new function.
6712 (completion_tracker::m_entries_vec): Delete.
6713 (completion_tracker::m_entries_hash): Initialize to NULL.
6714 (completion_tracker::m_lowest_common_denominator_valid): New
6715 member variable.
6716 (completion_tracker::m_lowest_common_denominator_max_length): New
6717 member variable.
6718
6719 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6720
6721 * regformats/regdef.h: Put reg in gdb namespace.
6722
6723 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6724
6725 * i386-bsd-nat.c (gdb_ptrace): New.
6726 * (i386bsd_fetch_inferior_registers,
6727 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6728 * (i386bsd_fetch_inferior_registers,
6729 i386bsd_store_inferior_registers) Use gdb_ptrace.
6730
6731 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6732
6733 * amd64-bsd-nat.c (gdb_ptrace): New.
6734 * (amd64bsd_fetch_inferior_registers,
6735 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6736 * (amd64bsd_fetch_inferior_registers,
6737 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6738
6739 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6740
6741 * user-regs.c (user_reg::read): Rename to...
6742 (user_reg::xread): ...this.
6743 * (append_user_reg): Rename argument `read' to `xread'.
6744 * (user_reg_add_builtin): Likewise.
6745 * (user_reg_add): Likewise.
6746 * (value_of_user_reg): Likewise.
6747
6748 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6749
6750 * sparc-nat.c (gdb_ptrace): New.
6751 * sparc-nat.c (sparc_fetch_inferior_registers)
6752 (sparc_store_inferior_registers) Remove obsolete comment.
6753 * sparc-nat.c (sparc_fetch_inferior_registers)
6754 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6755 * sparc-nat.c (sparc_fetch_inferior_registers)
6756 (sparc_store_inferior_registers) Use gdb_ptrace.
6757
6758 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6759
6760 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6761 it to the ptrace call.
6762 * sh-nbsd-nat.c (store_registers): Likewise.
6763
6764 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6765
6766 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6767 nbsd_nat_target instead of inf_ptrace_target.
6768 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6769 nbsd_nat_target.
6770
6771 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6772
6773 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6774
6775 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6776
6777 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6778 <sys/sysctl.h>.
6779 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6780
6781 2020-03-17 Tom de Vries <tdevries@suse.de>
6782
6783 PR gdb/23710
6784 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6785 fields.
6786 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6787 fields.
6788 (process_imported_unit_die): Skip import of c++ CUs.
6789
6790 2020-03-16 Tom Tromey <tom@tromey.com>
6791
6792 * p-valprint.c (pascal_object_print_value): Initialize
6793 base_value.
6794
6795 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6796 Shahab Vahedi <shahab@synopsys.com>
6797
6798 * Makefile.in: Add arch/arc.o
6799 * configure.tgt: Likewise.
6800 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6801 (_initialize_arc_tdep): Don't initialize old target descriptions.
6802 (arc_read_description): New function to cache target descriptions.
6803 * arc-tdep.h (arc_read_description): Add proto type.
6804 * arch/arc.c: New file.
6805 * arch/arc.h: Likewise.
6806 * features/Makefile: Replace old target descriptions with new.
6807 * features/arc-arcompact.c: Remove.
6808 * features/arc-arcompact.xml: Likewise.
6809 * features/arc-v2.c: Likewise
6810 * features/arc-v2.xml: Likewise
6811 * features/arc/aux-arcompact.xml: New file.
6812 * features/arc/aux-v2.xml: Likewise.
6813 * features/arc/core-arcompact.xml: Likewise.
6814 * features/arc/core-v2.xml: Likewise.
6815 * features/arc/aux-arcompact.c: Generate.
6816 * features/arc/aux-v2.c: Likewise.
6817 * features/arc/core-arcompact.c: Likewise.
6818 * features/arc/core-v2.c: Likewise.
6819 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6820
6821 2020-03-16 Tom Tromey <tromey@adacore.com>
6822
6823 PR gdb/25663:
6824 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6825 putting value into bcache.
6826
6827 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6828
6829 PR gdb/21500
6830 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6831 to...
6832 (amd64_windows_init_abi_common): ... this. Don't set size of
6833 long type.
6834 (amd64_windows_init_abi): New function.
6835 (amd64_cygwin_init_abi): New function.
6836 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6837 the Cygwin OS ABI.
6838 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6839 comment.
6840
6841 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6844 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6845 (pe_import_directory_entry): New struct type.
6846 (is_linked_with_cygwin_dll): New function.
6847 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6848 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6849 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6850
6851 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6854 i386_cygwin_core_osabi_sniffer.
6855
6856 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6857
6858 * i386-cygwin-tdep.c: Rename to...
6859 * i386-windows-tdep.c: ... this.
6860 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6861 i386-windows-tdep.c.
6862 * configure.tgt: Likewise.
6863
6864 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6867 * osabi.c (gdb_osabi_names): Add "Windows".
6868 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6869 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6870 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6871 i386_cygwin_osabi_sniffer.
6872 (_initialize_i386_cygwin_tdep): Register OS ABI
6873 GDB_OSABI_WINDOWS for i386.
6874 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6875 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6876 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6877 for x86-64.
6878 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6879 when the target matches '*-*-mingw*'.
6880
6881 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * defs.h (enum gdb_osabi): Move to...
6884 * osabi.h (enum gdb_osabi): ... here.
6885 * gdbarch.sh: Include osabi.h in gdbarch.h.
6886 * gdbarch.h: Re-generate.
6887
6888 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6891 function.
6892 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6893
6894 2020-03-14 Tom Tromey <tom@tromey.com>
6895
6896 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6897 for C++.
6898 (c_type_print_modifier): Likewise. Add "language" parameter.
6899 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6900 (c_type_print_base_1): Update.
6901 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6902 constants.
6903 * type-stack.c (type_stack::insert): Handle tp_atomic and
6904 tp_restrict.
6905 (type_stack::follow_type_instance_flags): Likewise.
6906 (type_stack::follow_types): Likewise. Merge type-following code.
6907 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6908 (space_identifier, cv_with_space_id)
6909 (const_or_volatile_or_space_identifier_noopt)
6910 (const_or_volatile_or_space_identifier): Remove.
6911 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6912 rules.
6913 (ptr_operator, typebase): Update.
6914 (enum token_flag) <FLAG_C>: New constant.
6915 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6916 "_Atomic".
6917 (lex_one_token): Handle FLAG_C.
6918
6919 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6920
6921 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6922 it to the ptrace call.
6923 * m68k-bsd-nat.c (store_registers): Likewise.
6924
6925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6926
6927 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6928 gdb_byte *.
6929 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6930 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6931 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6932
6933 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6934
6935 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6936 nbsd_nat_target instead of inf_ptrace_target.
6937 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6938 nbsd_nat_target.
6939
6940 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6941
6942 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6943 register_t.
6944
6945 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6946
6947 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6948 it to the ptrace call.
6949 * alpha-bsd-nat.c (store_registers): Likewise.
6950
6951 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6952
6953 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6954 includes.
6955 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6956 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6957 fill_fpregset): Likewise.
6958
6959 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6960
6961 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6962 nbsd_nat_target instead of inf_ptrace_target.
6963 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6964 nbsd_nat_target.
6965
6966 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6967
6968 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6969 register_t.
6970
6971 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6972
6973 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6974 it to the ptrace call.
6975 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6976 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6977 * arm-nbsd-nat.c (store_register): Likewise.
6978 * arm-nbsd-nat.c (store_regs): Likewise.
6979 * arm-nbsd-nat.c (store_fp_register): Likewise.
6980 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6981
6982 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6983
6984 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6985 nbsd_nat_target instead of inf_ptrace_target.
6986 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6987 nbsd_nat_target.
6988
6989 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6990
6991 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6992 it to the ptrace call.
6993 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6994
6995 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6996
6997 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6998 it to the ptrace call.
6999 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7000
7001 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7002
7003 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7004 gdb_byte *.
7005 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7006
7007 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7008
7009 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7010 instead of inf_ptrace_target.
7011 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7012 nbsd_nat_target.
7013
7014 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7015
7016 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7017 register_t.
7018
7019 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7020
7021 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7022 register_t.
7023
7024 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7025
7026 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7027 register_t.
7028
7029 2020-03-13 Tom Tromey <tom@tromey.com>
7030
7031 * value.h (val_print): Don't declare.
7032 * valprint.h (val_print_array_elements)
7033 (val_print_scalar_formatted, generic_val_print): Don't declare.
7034 * valprint.c (generic_val_print_array): Take a struct value.
7035 (generic_val_print_ptr, generic_val_print_memberptr)
7036 (generic_val_print_bool, generic_val_print_int)
7037 (generic_val_print_char, generic_val_print_complex)
7038 (generic_val_print): Remove.
7039 (generic_value_print): Update.
7040 (do_val_print): Remove unused parameters. Don't call
7041 la_val_print.
7042 (val_print): Remove.
7043 (common_val_print): Update. Don't call value_check_printable.
7044 (val_print_scalar_formatted, val_print_array_elements): Remove.
7045 * rust-lang.c (rust_val_print): Remove.
7046 (rust_language_defn): Update.
7047 * p-valprint.c (pascal_val_print): Remove.
7048 (pascal_value_print_inner): Update.
7049 (pascal_object_print_val_fields, pascal_object_print_val):
7050 Remove.
7051 (pascal_object_print_static_field): Update.
7052 * p-lang.h (pascal_val_print): Don't declare.
7053 * p-lang.c (pascal_language_defn): Update.
7054 * opencl-lang.c (opencl_language_defn): Update.
7055 * objc-lang.c (objc_language_defn): Update.
7056 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7057 * m2-lang.h (m2_val_print): Don't declare.
7058 * m2-lang.c (m2_language_defn): Update.
7059 * language.h (struct language_defn) <la_val_print>: Remove.
7060 * language.c (unk_lang_value_print_inner): Rename. Change
7061 argument types.
7062 (unknown_language_defn, auto_language_defn): Update.
7063 * go-valprint.c (go_val_print): Remove.
7064 * go-lang.h (go_val_print): Don't declare.
7065 * go-lang.c (go_language_defn): Update.
7066 * f-valprint.c (f_val_print): Remove.
7067 * f-lang.h (f_value_print): Don't declare.
7068 * f-lang.c (f_language_defn): Update.
7069 * d-valprint.c (d_val_print): Remove.
7070 * d-lang.h (d_value_print): Don't declare.
7071 * d-lang.c (d_language_defn): Update.
7072 * cp-valprint.c (cp_print_value_fields)
7073 (cp_print_value_fields_rtti, cp_print_value): Remove.
7074 (cp_print_static_field): Update.
7075 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7076 (c_val_print_struct, c_val_print_union, c_val_print_int)
7077 (c_val_print_memberptr, c_val_print): Remove.
7078 * c-lang.h (c_val_print_array, cp_print_value_fields)
7079 (cp_print_value_fields_rtti): Don't declare.
7080 * c-lang.c (c_language_defn, cplus_language_defn)
7081 (asm_language_defn, minimal_language_defn): Update.
7082 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7083 (ada_val_print_enum): Take a struct value.
7084 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7085 (ada_val_print): Remove.
7086 (ada_value_print_1): Update.
7087 (printable_val_type): Remove.
7088 * ada-lang.h (ada_val_print): Don't declare.
7089 * ada-lang.c (ada_language_defn): Update.
7090
7091 2020-03-13 Tom Tromey <tom@tromey.com>
7092
7093 * valprint.c (do_val_print): Update.
7094 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7095 a struct value.
7096 (value_to_value_object_no_release): Declare.
7097 * python/py-value.c (value_to_value_object_no_release): New
7098 function.
7099 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7100 struct value.
7101 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7102 function.
7103 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7104 a struct value.
7105 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7106 Declare.
7107 (gdbscm_apply_val_pretty_printer): Take a struct value.
7108 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7109 value.
7110 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7111 value.
7112 * extension-priv.h (struct extension_language_ops)
7113 <apply_val_pretty_printer>: Take a struct value.
7114 * cp-valprint.c (cp_print_value): Create a struct value.
7115 (cp_print_value): Update.
7116
7117 2020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * ada-valprint.c (print_field_values): Call common_val_print.
7120
7121 2020-03-13 Tom Tromey <tom@tromey.com>
7122
7123 * ada-valprint.c (val_print_packed_array_elements): Remove
7124 bitoffset and val parameters. Call common_val_print.
7125 (ada_val_print_string): Remove offset, address, and original_value
7126 parameters.
7127 (ada_val_print_array): Update.
7128 (ada_value_print_array): New function.
7129 (ada_value_print_1): Call it.
7130
7131 2020-03-13 Tom Tromey <tom@tromey.com>
7132
7133 * ada-valprint.c (ada_value_print): Use common_val_print.
7134
7135 2020-03-13 Tom Tromey <tom@tromey.com>
7136
7137 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7138
7139 2020-03-13 Tom Tromey <tom@tromey.com>
7140
7141 * ada-valprint.c (ada_value_print_num): New function.
7142 (ada_value_print_1): Use it.
7143
7144 2020-03-13 Tom Tromey <tom@tromey.com>
7145
7146 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7147
7148 2020-03-13 Tom Tromey <tom@tromey.com>
7149
7150 * ada-valprint.c (ada_value_print_ptr): New function.
7151 (ada_value_print_1): Use it.
7152
7153 2020-03-13 Tom Tromey <tom@tromey.com>
7154
7155 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7156 call common_val_print.
7157 (ada_val_print_1): Update.
7158 (ada_value_print_1): New function.
7159 (ada_value_print_inner): Rewrite.
7160
7161 2020-03-13 Tom Tromey <tom@tromey.com>
7162
7163 * cp-valprint.c (cp_print_value_fields): Update.
7164 (cp_print_value): New function.
7165
7166 2020-03-13 Tom Tromey <tom@tromey.com>
7167
7168 * m2-valprint.c (m2_value_print_inner): Use
7169 cp_print_value_fields.
7170 * cp-valprint.c (cp_print_value_fields): New function.
7171 * c-valprint.c (c_value_print_struct): New function.
7172 (c_value_print_inner): Use c_value_print_struct.
7173 * c-lang.h (cp_print_value_fields): Declare.
7174
7175 2020-03-13 Tom Tromey <tom@tromey.com>
7176
7177 * c-valprint.c (c_value_print_array): New function.
7178 (c_value_print_inner): Use it.
7179
7180 2020-03-13 Tom Tromey <tom@tromey.com>
7181
7182 * c-valprint.c (c_value_print_memberptr): New function.
7183 (c_value_print_inner): Use it.
7184
7185 2020-03-13 Tom Tromey <tom@tromey.com>
7186
7187 * c-valprint.c (c_value_print_int): New function.
7188 (c_value_print_inner): Use it.
7189
7190 2020-03-13 Tom Tromey <tom@tromey.com>
7191
7192 * c-valprint.c (c_value_print_ptr): New function.
7193 (c_value_print_inner): Use it.
7194
7195 2020-03-13 Tom Tromey <tom@tromey.com>
7196
7197 * c-valprint.c (c_value_print_inner): Rewrite.
7198
7199 2020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * valprint.c (generic_value_print_complex): New function.
7202 (generic_value_print): Use it.
7203
7204 2020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * valprint.c (generic_val_print_float): Don't call
7207 val_print_scalar_formatted.
7208 (generic_val_print, generic_value_print): Update.
7209
7210 2020-03-13 Tom Tromey <tom@tromey.com>
7211
7212 * valprint.c (generic_value_print_char): New function
7213 (generic_value_print): Use it.
7214
7215 2020-03-13 Tom Tromey <tom@tromey.com>
7216
7217 * valprint.c (generic_value_print_int): New function.
7218 (generic_value_print): Use it.
7219
7220 2020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * valprint.c (generic_value_print_bool): New function.
7223 (generic_value_print): Use it.
7224
7225 2020-03-13 Tom Tromey <tom@tromey.com>
7226
7227 * valprint.c (generic_val_print_func): Simplify.
7228 (generic_val_print, generic_value_print): Update.
7229
7230 2020-03-13 Tom Tromey <tom@tromey.com>
7231
7232 * valprint.c (generic_val_print_flags): Remove.
7233 (generic_val_print, generic_value_print): Update.
7234 (val_print_type_code_flags): Add original_value parameter.
7235
7236 2020-03-13 Tom Tromey <tom@tromey.com>
7237
7238 * valprint.c (generic_val_print): Update.
7239 (generic_value_print): Update.
7240 * valprint.c (generic_val_print_enum): Don't call
7241 val_print_scalar_formatted.
7242
7243 2020-03-13 Tom Tromey <tom@tromey.com>
7244
7245 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7246 * valprint.c (generic_value_print_ptr): New function.
7247
7248 2020-03-13 Tom Tromey <tom@tromey.com>
7249
7250 * valprint.c (generic_value_print): Rewrite.
7251
7252 2020-03-13 Tom Tromey <tom@tromey.com>
7253
7254 * p-valprint.c (pascal_object_print_value_fields)
7255 (pascal_object_print_value): New functions.
7256
7257 2020-03-13 Tom Tromey <tom@tromey.com>
7258
7259 * p-valprint.c (pascal_value_print_inner): Rewrite.
7260
7261 2020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * f-valprint.c (f_value_print_innner): Rewrite.
7264
7265 2020-03-13 Tom Tromey <tom@tromey.com>
7266
7267 * m2-valprint.c (m2_print_unbounded_array): New overload.
7268 (m2_print_unbounded_array): Update.
7269 (m2_print_array_contents): Take a struct value.
7270 (m2_value_print_inner): Rewrite.
7271
7272 2020-03-13 Tom Tromey <tom@tromey.com>
7273
7274 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7275 (d_value_print_inner): New function.
7276 * d-lang.h (d_value_print_inner): Declare.
7277 * d-lang.c (d_language_defn): Use d_value_print_inner.
7278
7279 2020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * go-valprint.c (go_value_print_inner): New function.
7282 * go-lang.h (go_value_print_inner): Declare.
7283 * go-lang.c (go_language_defn): Use go_value_print_inner.
7284
7285 2020-03-13 Tom Tromey <tom@tromey.com>
7286
7287 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7288 API.
7289 (rust_val_print): Rewrite.
7290 (rust_value_print_inner): New function, from rust_val_print.
7291 (rust_language_defn): Use rust_value_print_inner.
7292
7293 2020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * ada-valprint.c (ada_value_print_inner): New function.
7296 * ada-lang.h (ada_value_print_inner): Declare.
7297 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7298
7299 2020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * f-valprint.c (f_value_print_innner): New function.
7302 * f-lang.h (f_value_print_innner): Declare.
7303 * f-lang.c (f_language_defn): Use f_value_print_innner.
7304
7305 2020-03-13 Tom Tromey <tom@tromey.com>
7306
7307 * p-valprint.c (pascal_value_print_inner): New function.
7308 * p-lang.h (pascal_value_print_inner): Declare.
7309 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7310
7311 2020-03-13 Tom Tromey <tom@tromey.com>
7312
7313 * m2-valprint.c (m2_value_print_inner): New function.
7314 * m2-lang.h (m2_value_print_inner): Declare.
7315 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7316
7317 2020-03-13 Tom Tromey <tom@tromey.com>
7318
7319 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7320 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7321 * c-valprint.c (c_value_print_inner): New function.
7322 * c-lang.h (c_value_print_inner): Declare.
7323 * c-lang.c (c_language_defn, cplus_language_defn)
7324 (asm_language_defn, minimal_language_defn): Use
7325 c_value_print_inner.
7326
7327 2020-03-13 Tom Tromey <tom@tromey.com>
7328
7329 * p-valprint.c (pascal_object_print_value_fields): Now static.
7330 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7331
7332 2020-03-13 Tom Tromey <tom@tromey.com>
7333
7334 * c-valprint.c (c_val_print_array): Simplify.
7335
7336 2020-03-13 Tom Tromey <tom@tromey.com>
7337
7338 * valprint.c (value_print_array_elements): New function.
7339 * valprint.h (value_print_array_elements): Declare.
7340
7341 2020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7344 * mips-tdep.c (mips_print_register): Use
7345 value_print_scalar_formatted.
7346
7347 2020-03-13 Tom Tromey <tom@tromey.com>
7348
7349 * valprint.h (value_print_scalar_formatted): Declare.
7350 * valprint.c (value_print_scalar_formatted): New function.
7351
7352 2020-03-13 Tom Tromey <tom@tromey.com>
7353
7354 * valprint.h (generic_value_print): Declare.
7355 * valprint.c (generic_value_print): New function.
7356
7357 2020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.c (do_val_print): Call la_value_print_inner, if
7360 available.
7361 * rust-lang.c (rust_language_defn): Update.
7362 * p-lang.c (pascal_language_defn): Update.
7363 * opencl-lang.c (opencl_language_defn): Update.
7364 * objc-lang.c (objc_language_defn): Update.
7365 * m2-lang.c (m2_language_defn): Update.
7366 * language.h (struct language_defn) <la_value_print_inner>: New
7367 member.
7368 * language.c (unknown_language_defn, auto_language_defn): Update.
7369 * go-lang.c (go_language_defn): Update.
7370 * f-lang.c (f_language_defn): Update.
7371 * d-lang.c (d_language_defn): Update.
7372 * c-lang.c (c_language_defn, cplus_language_defn)
7373 (asm_language_defn, minimal_language_defn): Update.
7374 * ada-lang.c (ada_language_defn): Update.
7375
7376 2020-03-13 Tom Tromey <tom@tromey.com>
7377
7378 * c-valprint.c (c_value_print): Use common_val_print.
7379
7380 2020-03-13 Tom Tromey <tom@tromey.com>
7381
7382 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7383
7384 2020-03-13 Tom Tromey <tom@tromey.com>
7385
7386 * f-valprint.c (f77_print_array_1, f_val_print): Use
7387 common_val_print.
7388
7389 2020-03-13 Tom Tromey <tom@tromey.com>
7390
7391 * riscv-tdep.c (riscv_print_one_register_info): Use
7392 common_val_print.
7393
7394 2020-03-13 Tom Tromey <tom@tromey.com>
7395
7396 * mi/mi-main.c (output_register): Use common_val_print.
7397
7398 2020-03-13 Tom Tromey <tom@tromey.com>
7399
7400 * infcmd.c (default_print_one_register_info): Use
7401 common_val_print.
7402
7403 2020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * valprint.h (common_val_print_checked): Declare.
7406 * valprint.c (common_val_print_checked): New function.
7407 * stack.c (print_frame_arg): Use common_val_print_checked.
7408
7409 2020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * valprint.c (do_val_print): New function, from val_print.
7412 (val_print): Use do_val_print.
7413 (common_val_print): Use do_val_print.
7414
7415 2020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * valprint.c (value_print): Use scoped_value_mark.
7418
7419 2020-03-13 Tom de Vries <tdevries@suse.de>
7420
7421 PR symtab/25646
7422 * psymtab.c (partial_symtab::partial_symtab): Don't set
7423 globals_offset and statics_offset. Push element onto
7424 current_global_psymbols and current_static_psymbols stacks.
7425 (concat): New function.
7426 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7427 element from current_global_psymbols and current_static_psymbols
7428 stacks. Concat popped elements to global_psymbols and
7429 static_symbols.
7430 (add_psymbol_to_list): Use current_global_psymbols and
7431 current_static_psymbols stacks.
7432 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7433 current_static_psymbols fields.
7434
7435 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7436
7437 * corelow.c (sniff_core_bfd): Remove.
7438 (class core_target) <m_core_vec>: Remove.
7439 (core_target::core_target): Update.
7440 (core_file_fns): Remove.
7441 (deprecated_add_core_fns): Remove.
7442 (default_core_sniffer): Remove.
7443 (sniff_core_bfd): Remove.
7444 (default_check_format): Remove.
7445 (gdb_check_format): Remove.
7446 (core_target_open): Update.
7447 (core_target::get_core_register_section): Update.
7448 (get_core_registers_cb): Update.
7449 (core_target::fetch_registers): Update.
7450 * gdbcore.h (struct core_fns): Remove.
7451 (deprecated_add_core_fns): Remove.
7452 (default_core_sniffer): Remove.
7453 (default_check_format): Remove.
7454
7455 2020-03-12 Tom Tromey <tom@tromey.com>
7456
7457 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7458 CORE_ADDR.
7459 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7460
7461 2020-03-12 Tom Tromey <tom@tromey.com>
7462
7463 * remote.c (remote_target::download_tracepoint)
7464 (remote_target::enable_tracepoint)
7465 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7466 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7467 sprintf_vma.
7468
7469 2020-03-12 Tom Tromey <tom@tromey.com>
7470
7471 * symfile-mem.c: Update CORE_ADDR size assert.
7472
7473 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * selftest.m4: Move to gdbsupport/.
7476 * acinclude.m4: Update path to selftest.m4.
7477
7478 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7481 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7482 gdbarch-selfselftests.c and selftest-arch.c.
7483 (SUBDIR_UNITTESTS_OBS): Rename to...
7484 (SELFTESTS_OBS): ... this.
7485 (COMMON_SFILES): Remove disasm-selftests.c and
7486 gdbarch-selftests.c.
7487 * configure.ac: Don't add selftest-arch.{c,o} to
7488 CONFIG_{SRCS,OBS}.
7489 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7490 preprocessor conditions.
7491
7492 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * configure.ac: Don't source bfd/development.sh.
7495 * selftest.m4: Modify comment.
7496 * configure: Re-generate.
7497
7498 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7499
7500 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7501 not "true" or "false".
7502 * configure: Re-generate.
7503
7504 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7505
7506 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7507 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7508 renamed to arm_nbsd_supply_gregset.
7509 (fetch_register): Update to call arm_nbsd_supply_gregset.
7510 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7511 (arm_netbsd_nat_target::fetch_registers): Update.
7512 (fetch_elfcore_registers): Removed.
7513 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7514 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7515 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7516 not require NetBSD system headers.
7517 (arm_nbsd_regset): New struct.
7518 (arm_nbsd_iterate_over_regset_sections): New function.
7519 (arm_netbsd_init_abi_common): Updated to call
7520 set_gdbarch_iterate_over_regset_sections.
7521 * arm-nbsd-tdep.h: New file.
7522
7523 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7524
7525 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7526 recursion.
7527
7528 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7529
7530 * configure: Re-generate.
7531
7532 2020-03-11 Tom Tromey <tromey@adacore.com>
7533
7534 * ada-typeprint.c (print_choices): Fix comment.
7535
7536 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7537
7538 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7539 previous item in the list, when the list has no items.
7540
7541 2020-03-11 Tom de Vries <tdevries@suse.de>
7542
7543 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7544 PROP_LOCLIST handling code.
7545
7546 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * buildsym-legacy.c (record_line): Pass extra parameter to
7549 record_line.
7550 * buildsym.c (buildsym_compunit::record_line): Take an extra
7551 parameter, reduce duplication in the line table, and record the
7552 is_stmt flag in the line table.
7553 * buildsym.h (buildsym_compunit::record_line): Add extra
7554 parameter.
7555 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7556 non-statement lines.
7557 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7558 this to the symtab builder.
7559 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7560 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7561 through to dwarf_record_line_1.
7562 * infrun.c (process_event_stop_test): When stepping, don't stop at
7563 a non-statement instruction, and only refresh the step info when
7564 we land in the middle of a line's range. Also add an extra
7565 comment.
7566 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7567 field.
7568 * record-btrace.c (btrace_find_line_range): Only record lines
7569 marked as is-statement.
7570 * stack.c (frame_show_address): Show the frame address if we are
7571 in a non-statement sal.
7572 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7573 (maintenance_print_one_line_table): Print a header for the is_stmt
7574 column, and include is_stmt information in the output.
7575 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7576 preference to non-statements.
7577 (find_pcs_for_symtab_line): Prefer is-statement entries.
7578 (find_line_common): Likewise.
7579 * symtab.h (struct linetable_entry): Add is_stmt field.
7580 (struct symtab_and_line): Likewise.
7581 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7582 arranging the line table.
7583
7584 2020-03-07 Tom de Vries <tdevries@suse.de>
7585
7586 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7587 DIE.
7588
7589 2020-03-07 Tom Tromey <tom@tromey.com>
7590
7591 * valops.c (value_literal_complex): Remove obsolete comment.
7592 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7593 comment.
7594
7595 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7596
7597 * infrun.h: Forward-declare thread_info.
7598 (set_step_info): Add thread_info parameter, add doc.
7599 * infrun.c (set_step_info): Add thread_info parameter, move doc
7600 to header.
7601 * infrun.c (process_event_stop_test): Pass thread to
7602 set_step_info call.
7603 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7604 set_step_info.
7605 (prepare_one_step): Add thread_info parameter, pass it to
7606 set_step_frame and prepare_one_step (recursive) call.
7607 (step_1): Pass thread to prepare_one_step call.
7608 (step_command_fsm::should_stop): Pass thread to
7609 prepare_one_step.
7610 (until_next_fsm): Pass thread to set_step_frame call.
7611 (finish_command): Pass thread to set_step_info call.
7612
7613 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7614
7615 * windows-tdep.c (windows_solib_create_inferior_hook):
7616 Check if inferior is running.
7617
7618 2020-03-06 Tom de Vries <tdevries@suse.de>
7619
7620 * NEWS: Fix "the the".
7621 * ctfread.c: Same.
7622
7623 2020-03-06 Tom de Vries <tdevries@suse.de>
7624
7625 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7626
7627 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * .dir-locals.el: Add a comment referencing the other copies of
7630 this file.
7631
7632 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7633
7634 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7635 psargs.
7636
7637 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7638
7639 * .gitattributes: New file.
7640
7641 2020-03-04 Tom Tromey <tom@tromey.com>
7642
7643 * symmisc.c (print_symbol_bcache_statistics)
7644 (print_objfile_statistics): Update.
7645 * symfile.c (allocate_symtab): Use intern.
7646 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7647 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7648 macro_cache>: Remove.
7649 <string_cache>: New member.
7650 (struct objfile) <intern>: New methods.
7651 * elfread.c (elf_symtab_read): Use intern.
7652 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7653 (dwarf2_compute_name, dwarf2_physname)
7654 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7655 names.
7656 (guess_partial_die_structure_name): Update.
7657 (partial_die_info::fixup): Intern name.
7658 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7659 name.
7660 (dwarf2_name): Intern name. Update.
7661 * buildsym.c (buildsym_compunit::get_macro_table): Use
7662 string_cache.
7663
7664 2020-03-04 Tom Tromey <tom@tromey.com>
7665
7666 * jit.c (bfd_open_from_target_memory): Make "target" const.
7667 * corefile.c (gnutarget): Now const.
7668 * gdbcore.h (gnutarget): Now const.
7669
7670 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7671
7672 * NEWS: Mention support for WOW64 processes.
7673 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7674 (amd64_windows_segment_register_p): Remove static.
7675 (_initialize_amd64_windows_nat): Update.
7676 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7677 * i386-windows-nat.c (context_offset): Update.
7678 (i386_mappings): Rename and remove static.
7679 (i386_windows_segment_register_p): Remove static.
7680 (_initialize_i386_windows_nat): Update.
7681 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7682 (STATUS_WX86_SINGLE_STEP): New macro.
7683 (EnumProcessModulesEx): New macro.
7684 (Wow64SuspendThread): New macro.
7685 (Wow64GetThreadContext): New macro.
7686 (Wow64SetThreadContext): New macro.
7687 (Wow64GetThreadSelectorEntry): New macro.
7688 (windows_set_context_register_offsets): Add static.
7689 (windows_set_segment_register_p): Likewise.
7690 (windows_add_thread): Adapt for WOW64 processes.
7691 (windows_fetch_one_register): Likewise.
7692 (windows_nat_target::fetch_registers): Likewise.
7693 (windows_store_one_register): Likewise.
7694 (display_selector): Likewise.
7695 (display_selectors): Likewise.
7696 (handle_exception): Likewise.
7697 (windows_continue): Likewise.
7698 (windows_nat_target::resume): Likewise.
7699 (windows_add_all_dlls): Likewise.
7700 (do_initial_windows_stuff): Likewise.
7701 (windows_nat_target::attach): Likewise.
7702 (windows_get_exec_module_filename): Likewise.
7703 (windows_nat_target::create_inferior): Likewise.
7704 (windows_xfer_siginfo): Likewise.
7705 (_initialize_loadable): Initialize Wow64SuspendThread,
7706 Wow64GetThreadContext, Wow64SetThreadContext,
7707 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7708 * windows-nat.h (windows_set_context_register_offsets):
7709 Remove declaration.
7710 (windows_set_segment_register_p): Likewise.
7711 (i386_windows_segment_register_p): Add declaration.
7712 (amd64_windows_segment_register_p): Likewise.
7713
7714 2020-03-04 Luis Machado <luis.machado@linaro.org>
7715
7716 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7717 in "info registers" for AArch64/ARM.
7718
7719 The change caused "info registers" to not print GPR's.
7720
7721 gdb/ChangeLog:
7722
7723 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7724
7725 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7726 when reg->group is empty and reggroup is not.
7727
7728 2020-03-03 Tom Tromey <tromey@adacore.com>
7729
7730 * dwarf2/frame.c (struct dwarf2_frame_cache)
7731 <checked_tailcall_bottom, entry_cfa_sp_offset,
7732 entry_cfa_sp_offset_p>: Remove members.
7733 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7734 (dwarf2_frame_prev_register): Don't call
7735 dwarf2_tailcall_sniffer_first.
7736 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7737 * frame-unwind.c (add_unwinder): New fuction.
7738 (frame_unwind_init): Use it. Add tailcall unwinder.
7739
7740 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7741 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7742
7743 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7744 value should be printed as true.
7745
7746 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7747
7748 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7749 (windows_init_abi): Set and use windows_so_ops.
7750
7751 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7752
7753 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7754 when verifying if dealing with a convenience variable.
7755
7756 2020-03-03 Luis Machado <luis.machado@linaro.org>
7757
7758 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7759
7760 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7761
7762 * infrun.c (gdbarch_supports_displaced_stepping): New.
7763 (use_displaced_stepping): Break up conditions in smaller pieces.
7764 Use gdbarch_supports_displaced_stepping.
7765 (displaced_step_prepare_throw): Use
7766 gdbarch_supports_displaced_stepping.
7767
7768 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7769
7770 * NEWS: Mention new behaviour of the history filename.
7771 * top.c (write_history_p): Add comment.
7772 (show_write_history_p): Add header comment, give a different
7773 message when history writing is on, but the history filename is
7774 empty.
7775 (history_filename): Add comment.
7776 (history_filename_empty): New function.
7777 (show_history_filename): Add header comment, give a different
7778 message when the filename is empty.
7779 (init_history): Compare history_filename against nullptr, and only
7780 read history if the filename is not empty.
7781 (set_history_filename): Add header comment, and only make
7782 non-empty filenames absolute.
7783 (init_main): Make the filename argument to 'set history filename'
7784 optional.
7785
7786 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7787
7788 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7789 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7790 (fetch_fp_register): Update.
7791 (fetch_fp_regs): Update.
7792 (store_fp_register): Update.
7793 (store_fp_regs): Update.
7794 (arm_netbsd_nat_target::read_description): New function.
7795 (fetch_elfcore_registers): Update.
7796
7797 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7800 general_thread if the stop reply is missing a thread-id.
7801 (remote_target::process_stop_reply): Use the first non-exited
7802 thread if the target didn't pass a thread-id.
7803 * infrun.c (do_target_wait): Move call to
7804 switch_to_inferior_no_thread to ....
7805 (do_target_wait_1): ... here.
7806
7807 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7808
7809 * debuginfod-support.c: Include defs.h first.
7810
7811 2020-02-28 Tom de Vries <tdevries@suse.de>
7812
7813 * symfile.c (set_initial_language): Use default language for lookup.
7814
7815 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7818 reader variable, pass `this` to read_cutu_die_from_dwo.
7819
7820 2020-02-27 Aaron Merey <amerey@redhat.com>
7821
7822 * source.c (open_source_file): Check for nullptr when computing
7823 srcpath.
7824
7825 2020-02-27 Tom Tromey <tromey@adacore.com>
7826
7827 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7828 member.
7829 (dwarf2_add_field): Don't update nfields.
7830 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7831
7832 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7833
7834 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7835 abs.
7836
7837 2020-02-26 Tom Tromey <tom@tromey.com>
7838
7839 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7840 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7841 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7842 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7843 per_cu_data.
7844
7845 2020-02-26 Tom Tromey <tom@tromey.com>
7846
7847 * dwarf2/index-write.c (psym_index_map): Change type.
7848 (add_address_entry_worker, write_one_signatured_type)
7849 (recursively_count_psymbols, recursively_write_psymbols)
7850 (class debug_names, psyms_seen_size, write_gdbindex)
7851 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7852
7853 2020-02-26 Aaron Merey <amerey@redhat.com>
7854
7855 * Makefile.in: Handle optional debuginfod support.
7856 * NEWS: Update.
7857 * README: Add --with-debuginfod summary.
7858 * config.in: Regenerate.
7859 * configure: Regenerate.
7860 * configure.ac: Handle optional debuginfod support.
7861 * debuginfod-support.c: debuginfod helper functions.
7862 * debuginfod-support.h: Ditto.
7863 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7864 summary.
7865 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7866 when a dwz file cannot be found.
7867 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7868 debuginfo file cannot be found.
7869 * source.c (open_source_file): Query debuginfod servers when a
7870 source file cannot be found.
7871 * top.c (print_gdb_configuration): Include
7872 --{with,without}-debuginfod in the output.
7873
7874 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7875
7876 * thread.c (thr_try_catch_cmd): Print thread name.
7877
7878 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7881 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7882 dwarf2_fetch_die_type_sect_off): Move to...
7883 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7884 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7885 dwarf2_fetch_die_type_sect_off): ... here.
7886 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7887 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7888 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7889
7890 2020-02-26 Tom de Vries <tdevries@suse.de>
7891
7892 PR gdb/25603
7893 * symfile.c (set_initial_language): Exit-early if
7894 language_mode == language_mode_manual.
7895
7896 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7897
7898 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7899 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7900 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7901
7902 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * gdbtypes.c (create_array_type_with_stride): Handle negative
7905 array strides.
7906 * valarith.c (value_subscripted_rvalue): Likewise.
7907
7908 2020-02-25 Luis Machado <luis.machado@linaro.org>
7909
7910 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7911
7912 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7913
7914 * loc.h (dwarf2_get_die_type): Move to...
7915 * read.h (dwarf2_get_die_type): ... here.
7916 * read.c (dwarf2_get_die_type): Move doc to header.
7917
7918 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7919
7920 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7921 'gnulib/Makefile.in' to the list.
7922
7923 2020-02-24 Tom Tromey <tom@tromey.com>
7924
7925 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7926 Remove.
7927 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7928 XOBNEWVEC.
7929
7930 2020-02-24 Tom Tromey <tom@tromey.com>
7931
7932 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7933 New method.
7934 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7935 (dw2_do_instantiate_symtab, dw2_get_file_names)
7936 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7937
7938 2020-02-24 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7941 make_scoped_restore.
7942 (dwarf2_psymtab::read_symtab): Don't clear
7943 reading_partial_symbols.
7944
7945 2020-02-24 Tom de Vries <tdevries@suse.de>
7946
7947 PR gdb/25592
7948 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7949
7950 2020-02-24 Tom de Vries <tdevries@suse.de>
7951
7952 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7953 commands layout next/prev/regs.
7954
7955 2020-02-22 Tom Tromey <tom@tromey.com>
7956
7957 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7958 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7959
7960 2020-02-22 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7963
7964 2020-02-22 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7967 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7968 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7969 * tui/tui.c (_initialize_tui): Add usage text.
7970
7971 2020-02-22 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-win.c (tui_set_focus_command)
7974 (tui_set_win_height_command): Use error_no_arg.
7975 (_initialize_tui_win): Update help text.
7976 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7977
7978 2020-02-22 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7981 * tui/tui-disasm.h (struct tui_disasm_window)
7982 <display_start_addr>: Declare.
7983 * tui/tui-source.h (struct tui_source_window)
7984 <display_start_addr>: Declare.
7985 * tui/tui-winsource.h (struct tui_source_window_base)
7986 <show_source_line, display_start_addr>: New methods.
7987 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7988 Rename and move to protected section.
7989 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7990 (tui_source_window_base::do_erase_source_content): Update.
7991 (tui_source_window_base::show_source_line): Now a method.
7992 (tui_source_window_base::show_source_content)
7993 (tui_source_window_base::tui_source_window_base)
7994 (tui_source_window_base::rerender)
7995 (tui_source_window_base::refill)
7996 (tui_source_window_base::do_scroll_horizontal)
7997 (tui_source_window_base::set_is_exec_point_at)
7998 (tui_source_window_base::update_breakpoint_info)
7999 (tui_source_window_base::update_exec_info): Update.
8000 * tui/tui-source.c (tui_source_window::set_contents)
8001 (tui_source_window::showing_source_p)
8002 (tui_source_window::do_scroll_vertical)
8003 (tui_source_window::location_matches_p)
8004 (tui_source_window::line_is_displayed): Update.
8005 (tui_source_window::display_start_addr): New method.
8006 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8007 (tui_disasm_window::do_scroll_vertical)
8008 (tui_disasm_window::location_matches_p): Update.
8009 (tui_disasm_window::display_start_addr): New method.
8010
8011 2020-02-22 Tom Tromey <tom@tromey.com>
8012
8013 * NEWS: Add entry for gdb.register_window_type.
8014 * tui/tui-layout.h (window_factory): New typedef.
8015 (tui_register_window): Declare.
8016 * tui/tui-layout.c (saved_tui_windows): New global.
8017 (tui_apply_current_layout): Use it.
8018 (tui_register_window): New function.
8019 * python/python.c (do_start_initialization): Call
8020 gdbpy_initialize_tui.
8021 (python_GdbMethods): Add "register_window_type" function.
8022 * python/python-internal.h (gdbpy_register_tui_window)
8023 (gdbpy_initialize_tui): Declare.
8024 * python/py-tui.c: New file.
8025 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8026
8027 2020-02-22 Tom Tromey <tom@tromey.com>
8028
8029 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8030
8031 2020-02-22 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8034 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8035 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8036 (tui_set_win_focus_to): Move from tui-win.c.
8037
8038 2020-02-22 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8041 functions.
8042 (known_window_types): New global.
8043 (tui_get_window_by_name): Reimplement.
8044 (initialize_known_windows): New function.
8045 (validate_window_name): Rewrite.
8046 (_initialize_tui_layout): Call initialize_known_windows.
8047
8048 2020-02-22 Tom Tromey <tom@tromey.com>
8049
8050 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8051 Remove constants.
8052 * tui/tui-winsource.h (struct tui_source_window_base)
8053 <tui_source_window_base>: Remove parameter.
8054 * tui/tui-winsource.c
8055 (tui_source_window_base::tui_source_window_base): Remove
8056 parameter.
8057 (tui_source_window_base::refill): Update.
8058 * tui/tui-stack.h (struct tui_locator_window)
8059 <tui_locator_window>: Update.
8060 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8061 Default the constructor.
8062 * tui/tui-regs.h (struct tui_data_item_window)
8063 <tui_data_item_window>: Default the constructor.
8064 (struct tui_data_window) <tui_data_window>: Likewise.
8065 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8066 Default the constructor.
8067 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8068 Default the constructor.
8069 <type>: Remove.
8070 (struct tui_win_info) <tui_win_info>: Default the constructor.
8071 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8072 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8073 Default the constructor.
8074
8075 2020-02-22 Tom Tromey <tom@tromey.com>
8076
8077 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8078 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8079 * tui/tui-win.c (tui_resize_all): Don't call
8080 tui_delete_invisible_windows.
8081 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8082 done.
8083 (tui_set_layout): Update.
8084 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8085 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8086 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8087
8088 2020-02-22 Tom Tromey <tom@tromey.com>
8089
8090 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8091 correctly.
8092
8093 2020-02-22 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8096
8097 2020-02-22 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-winsource.h (struct tui_source_window_iterator)
8100 <inner_iterator>: New etytypedef.
8101 <tui_source_window_iterator>: Take "end" parameter.
8102 <tui_source_window_iterator>: Take iterator.
8103 <operator*, advance>: Update.
8104 <m_iter>: Change type.
8105 <m_end>: New field.
8106 (struct tui_source_windows) <begin, end>: Update.
8107 * tui/tui-layout.c (tui_windows): New global.
8108 (tui_apply_current_layout): Clear tui_windows.
8109 (tui_layout_window::apply): Update tui_windows.
8110 * tui/tui-data.h (tui_windows): Declare.
8111 (all_tui_windows): Now inline function.
8112 (class tui_window_iterator, struct all_tui_windows): Remove.
8113
8114 2020-02-22 Tom Tromey <tom@tromey.com>
8115
8116 PR tui/17850:
8117 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8118 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8119 "height" argument.
8120 (class tui_layout_window) <get_sizes>: Likewise.
8121 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8122 argument.
8123 <get_sizes>: Add "height" argument.
8124 <m_vertical>: New field.
8125 * tui/tui-layout.c (tui_layout_split::clone): Update.
8126 (tui_layout_split::get_sizes): Add "height" argument.
8127 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8128 (tui_new_layout_command): Parse "-horizontal".
8129 (_initialize_tui_layout): Update help string.
8130 (tui_layout_split::specification): Add "-horizontal" when needed.
8131 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8132 argument.
8133 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8134 New methods.
8135
8136 2020-02-22 Tom Tromey <tom@tromey.com>
8137
8138 * tui/tui-layout.h (enum tui_adjust_result): New.
8139 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8140 (class tui_layout_window) <adjust_size>: Return
8141 tui_adjust_result. Rewrite.
8142 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8143 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8144
8145 2020-02-22 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8148 parameter and return types.
8149 (class tui_layout_base) <specification>: Add "depth".
8150 (class tui_layout_window) <specification>: Add "depth".
8151 (class tui_layout_split) <specification>: Add "depth".
8152 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8153 and return types.
8154 (tui_new_layout_command): Parse sub-layouts.
8155 (_initialize_tui_layout): Update help string.
8156 (tui_layout_window::specification): Add "depth".
8157 (add_layout_command): Update.
8158
8159 2020-02-22 Tom Tromey <tom@tromey.com>
8160
8161 * NEWS: Add "tui new-layout" item.
8162 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8163 Add new-layout command to help text.
8164 (validate_window_name): New function.
8165 (tui_new_layout_command): New function.
8166 (_initialize_tui_layout): Register "new-layout".
8167 (tui_layout_window::specification): New method.
8168 (tui_layout_window::specification): New method.
8169 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8170 method.
8171 (class tui_layout_window) <specification>: New method.
8172 (class tui_layout_split) <specification>: New method.
8173
8174 2020-02-22 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8177 * tui/tui-win.c (window_name_completer): Update comment.
8178 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8179 Declare method.
8180 (class tui_layout_window) <replace_window>: Likewise.
8181 (class tui_layout_split) <replace_window>: Likewise.
8182 (tui_set_layout): Don't declare.
8183 (tui_set_initial_layout): Declare function.
8184 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8185 (asm_regs_layout): New globals.
8186 (tui_current_layout, show_layout): Remove.
8187 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8188 (find_layout, tui_apply_layout): New function.
8189 (layout_completer): Remove.
8190 (tui_next_layout): Reimplement.
8191 (tui_next_layout_command): New function.
8192 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8193 (tui_regs_layout): Reimplement.
8194 (tui_regs_layout_command): New function.
8195 (extract_display_start_addr): Rewrite.
8196 (next_layout, prev_layout): Remove.
8197 (tui_layout_window::replace_window): New method.
8198 (tui_layout_split::replace_window): New method.
8199 (destroy_layout): New function.
8200 (layout_list): New global.
8201 (add_layout_command): New function.
8202 (initialize_layouts): Update.
8203 (tui_layout_command): New function.
8204 (_initialize_tui_layout): Install "layout" commands.
8205 * tui/tui-data.h (enum tui_layout_type): Remove.
8206 (tui_current_layout): Don't declare.
8207
8208 2020-02-22 Tom Tromey <tom@tromey.com>
8209
8210 * tui/tui-regs.c (tui_reg_layout): Remove.
8211 (tui_reg_command): Use tui_regs_layout.
8212 * tui/tui-layout.h (tui_reg_command): Declare.
8213 * tui/tui-layout.c (tui_reg_command): New function.
8214
8215 2020-02-22 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui.c (tui_rl_delete_other_windows): Call
8218 tui_remove_some_windows.
8219 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8220 Declare method.
8221 (class tui_layout_window) <remove_windows>: New method.
8222 (class tui_layout_split) <remove_windows>: Declare.
8223 (tui_remove_some_windows): Declare.
8224 * tui/tui-layout.c (tui_remove_some_windows): New function.
8225 (tui_layout_split::remove_windows): New method.
8226
8227 2020-02-22 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8230 * tui/tui-layout.h (tui_next_layout): Declare.
8231 * tui/tui-layout.c (tui_next_layout): New function.
8232
8233 2020-02-22 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8236 correct coordinates.
8237
8238 2020-02-22 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8241 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8242 DATA_WIN case.
8243
8244 2020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8247 TUI_DISASM_WIN, not tui_win_list.
8248
8249 2020-02-22 Tom Tromey <tom@tromey.com>
8250
8251 * valprint.c (generic_val_print_enum_1)
8252 (val_print_type_code_flags): Style member names.
8253 * rust-lang.c (val_print_struct, rust_print_enum)
8254 (rust_print_struct_def, rust_internal_print_type): Style member
8255 names.
8256 * p-valprint.c (pascal_object_print_value_fields): Style member
8257 names. Only call fprintf_symbol_filtered for static members.
8258 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8259 * f-valprint.c (f_val_print): Style member names.
8260 * f-typeprint.c (f_type_print_base): Style member names.
8261 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8262 call fprintf_symbol_filtered for static members.
8263 (cp_print_class_member): Style member names.
8264 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8265 member names.
8266 * ada-valprint.c (ada_print_scalar): Style enum names.
8267 (ada_val_print_enum): Likewise.
8268 * ada-typeprint.c (print_enum_type): Style enum names.
8269
8270 2020-02-21 Tom Tromey <tom@tromey.com>
8271
8272 * psympriv.h (struct partial_symtab): Update comment.
8273
8274 2020-02-21 Tom Tromey <tromey@adacore.com>
8275
8276 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8277 type is CORE_ADDR.
8278
8279 2020-02-21 Tom de Vries <tdevries@suse.de>
8280
8281 PR gdb/25534
8282 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8283 if dependencies[i]->user != NULL.
8284
8285 2020-02-21 Ali Tamur <tamur@google.com>
8286
8287 * dwarf2/read.c (dwarf2_name): Add null check.
8288
8289 2020-02-20 Tom Tromey <tom@tromey.com>
8290
8291 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8292 ">=", in binary search.
8293 (dwarf2_find_containing_comp_unit): New overload.
8294 (run_test): New self-test.
8295 (_initialize_dwarf2_read): Register new test.
8296
8297 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8298
8299 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8300 * riscv-tdep.h: Likewise.
8301 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8302 rv32-only CSR.
8303 * features/riscv/64bit-csr.xml: Regenerated.
8304
8305 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8306 Tom Tromey <tom@tromey.com>
8307
8308 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8309 of 'fputc_unfiltered'.
8310 (putchar_unfiltered): Call 'fputc_unfiltered'.
8311 (fputc_unfiltered): Call 'fputs_unfiltered'.
8312
8313 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8314
8315 * config.in: Regenerate.
8316 * configure: Regenerate.
8317 * configure.ac: Add --with-python-libdir option.
8318 * main.c: Use WITH_PYTHON_LIBDIR.
8319
8320 2020-02-19 Tom Tromey <tom@tromey.com>
8321
8322 * symtab.c (general_symbol_info::compute_and_set_names): Use
8323 obstack_strndup. Simplify call to symbol_set_demangled_name.
8324
8325 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8326
8327 * dwarf2/read.c (allocate_signatured_type_table,
8328 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8329 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8330 Remove objfile parameter, update all callers.
8331
8332 2020-02-19 Doug Evans <dje@google.com>
8333
8334 PR rust/25535
8335 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8336 rust_enum_variant calculation.
8337
8338 2020-02-19 Tom Tromey <tromey@adacore.com>
8339
8340 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8341
8342 2020-02-19 Tom Tromey <tromey@adacore.com>
8343
8344 * ada-lang.c (cache_symbol): Use obstack_strdup.
8345
8346 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * configure: Regenerate.
8349
8350 2020-02-19 Tom Tromey <tromey@adacore.com>
8351
8352 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8353 NULL check.
8354
8355 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8356
8357 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8358
8359 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8360
8361 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8362 if GDBSERVER is not defined.
8363 (riscv_tdesc_cache): Likewise, also store const target_desc.
8364 (STATIC_IN_GDB): Define.
8365 (riscv_create_target_description): Update declaration with
8366 STATIC_IN_GDB.
8367 (riscv_lookup_target_description): New function, only define if
8368 GDBSERVER is not defined.
8369 * arch/riscv.h (riscv_create_target_description): Declare only
8370 when GDBSERVER is defined.
8371 (riscv_lookup_target_description): New declaration when GDBSERVER
8372 is not defined.
8373 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8374 (riscv_linux_read_features): ...this, and return
8375 riscv_gdbarch_features instead of target_desc.
8376 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8377 (riscv_linux_read_description): Rename to...
8378 (riscv_linux_read_features): ...this.
8379 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8380 Update to use riscv_gdbarch_features and
8381 riscv_lookup_target_description.
8382 * riscv-tdep.c (riscv_find_default_target_description): Use
8383 riscv_lookup_target_description instead of
8384 riscv_create_target_description.
8385
8386 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8387
8388 * valprint.c (generic_val_print_enum_1): When printing a flag
8389 enum with value 0 and there is no enumerator with value 0, print
8390 just "0" instead of "(unknown: 0x0)".
8391
8392 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8393
8394 * valprint.c (generic_val_print_enum_1): Print unknown part of
8395 flag enum in hex.
8396
8397 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8398
8399 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8400 flag enums to contain duplicate enumerators.
8401 * valprint.c (generic_val_print_enum_1): Update comment.
8402
8403 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8404
8405 * dwarf2/read.c: Include "count-one-bits.h".
8406 (update_enumeration_type_from_children): If an enumerator has
8407 multiple bits set, don't treat the enumeration as a "flag enum".
8408 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8409 of flag enums have 0 or 1 bit set.
8410
8411 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8412
8413 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8414 conversion.
8415 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8416 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8417 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8418 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8419 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8420
8421 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8424
8425 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8426
8427 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8428 displaced_step_closure_up.
8429 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8430 (struct displaced_step_closure_up):
8431 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8432 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8433 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8434 Likewise.
8435 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8436 * gdbarch.c, gdbarch.h: Re-generate.
8437 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8438 displaced_step_closure_up.
8439 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8440 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8441 * infrun.h (displaced_step_closure_up): New type alias.
8442 (struct displaced_step_inferior_state) <step_closure>: Change
8443 type to displaced_step_closure_up.
8444 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8445 displaced_step_closure_up.
8446 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8447
8448 2020-02-14 Tom Tromey <tom@tromey.com>
8449
8450 * minidebug.c (gnu_debug_key): New global.
8451 (find_separate_debug_file_in_section): Use it.
8452
8453 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8456 std::unique_ptr.
8457 * gdbarch.c: Re-generate.
8458 * gdbarch.h: Re-generate.
8459 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8460 change.
8461 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8462 type to std::unique_ptr.
8463 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8464 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8465 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8466 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8467 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8468 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8469 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8470 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8471 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8472
8473 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8476 std::unique_ptr.
8477 (displaced_step_clear): Rename to...
8478 (displaced_step_reset): ... this. Just call displaced->reset ().
8479 (displaced_step_clear_cleanup): Rename to...
8480 (displaced_step_reset_cleanup): ... this.
8481 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8482 (displaced_step_fixup): Likewise.
8483 (resume_1): Likewise.
8484 (handle_inferior_event): Restore child's memory before calling
8485 displaced_step_fixup on the parent.
8486 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8487 to std::unique_ptr.
8488 <step_closure>: Change type to std::unique_ptr.
8489
8490 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * arm-tdep.c: Include count-one-bits.h.
8493 (cleanup_block_store_pc): Use count_one_bits.
8494 (cleanup_block_load_pc): Use count_one_bits.
8495 (arm_copy_block_xfer): Use count_one_bits.
8496 (thumb2_copy_block_xfer): Use count_one_bits.
8497 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8498 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8499 (thumb_get_next_pcs_raw): Use count_one_bits.
8500 (arm_get_next_pcs_raw): Use count_one_bits_l.
8501 * arch/arm.c (bitcount): Remove.
8502 * arch/arm.h (bitcount): Remove.
8503
8504 2020-02-14 Tom Tromey <tromey@adacore.com>
8505
8506 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8507 Update.
8508 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8509 * dwarf2/loc.c (call_site_find_chain_1): Return
8510 unique_xmalloc_ptr.
8511 (call_site_find_chain): Likewise.
8512
8513 2020-02-14 Richard Biener <rguenther@suse.de>
8514
8515 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8516 on expression with division operators.
8517
8518 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8519
8520 * MAINTAINERS (Write After Approval): Adding myself.
8521
8522 2020-02-12 Tom Tromey <tom@tromey.com>
8523
8524 * event-loop.c (event_data, gdb_event, event_handler_func):
8525 Remove.
8526
8527 2020-02-12 Tom Tromey <tom@tromey.com>
8528
8529 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8530 (dwarf2_frame_objfile_data): Add comment.
8531 (find_comp_unit, set_comp_unit): New functions.
8532 (dwarf2_frame_find_fde): Use find_comp_unit.
8533 (dwarf2_build_frame_info): Use set_comp_unit.
8534
8535 2020-02-12 Tom Tromey <tom@tromey.com>
8536
8537 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8538 (comp_unit): Don't initialize objfile.
8539 (execute_cfa_program): Add text_offset parameter.
8540 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8541 (dwarf2_frame_cache): Update.
8542 (dwarf2_build_frame_info): Don't set "objfile" member.
8543
8544 2020-02-12 Tom Tromey <tom@tromey.com>
8545
8546 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8547 (decode_frame_entry): Likewise.
8548 (dwarf2_build_frame_info): Update.
8549
8550 2020-02-12 Tom Tromey <tom@tromey.com>
8551
8552 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8553 (decode_frame_entry_1): Use the comp_unit obstack.
8554
8555 2020-02-12 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/frame.c (struct comp_unit): Add initializers and
8558 constructor.
8559 (dwarf2_frame_objfile_data): Store a comp_unit.
8560 (dwarf2_frame_find_fde): Update.
8561 (dwarf2_build_frame_info): Use "new".
8562
8563 2020-02-12 Tom Tromey <tom@tromey.com>
8564
8565 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8566 (dwarf2_fde_table): Typedef for std::vector.
8567 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8568 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8569 (decode_frame_entry): Update.
8570 (dwarf2_build_frame_info): Use "new".
8571
8572 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8573
8574 * arm-tdep.c (arm_gdbarch_init): Update.
8575 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8576 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8577 have_neon, is_m>: Change to bool.
8578
8579 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8580
8581 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8582
8583 2020-02-12 Tom Tromey <tom@tromey.com>
8584
8585 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8586
8587 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8588
8589 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8590 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8591
8592 2020-02-11 Tom Tromey <tom@tromey.com>
8593
8594 * psymtab.h: Update comment.
8595
8596 2020-02-11 Tom Tromey <tom@tromey.com>
8597
8598 * gdb_obstack.h (struct auto_obstack): Use
8599 DISABLE_COPY_AND_ASSIGN.
8600
8601 2020-02-11 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/frame.h (struct objfile): Don't forward declare.
8604
8605 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8606
8607 * cris-tdep.c (cris_supply_gregset): Change signature to match
8608 what struct regset expects.
8609 (cris_regset): New struct.
8610 (fetch_core_registers): Remove.
8611 (cris_iterate_over_regset_sections): New function.
8612 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8613 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8614
8615 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8616
8617 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8618 registers.
8619
8620 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8621
8622 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8623
8624 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * configure: Re-generate.
8627
8628 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * configure: Re-generate.
8631
8632 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * acinclude: Update warning.m4 path.
8635 * warning.m4: Move to gdbsupport.
8636
8637 2020-02-11 Tom Tromey <tromey@adacore.com>
8638
8639 * remote.c (remote_console_output): Update.
8640 * printcmd.c (printf_command): Update.
8641 * event-loop.c (gdb_wait_for_event): Update.
8642 * linux-nat.c (sigchld_handler): Update.
8643 * remote-sim.c (gdb_os_write_stdout): Update.
8644 (gdb_os_flush_stdout): Update.
8645 (gdb_os_flush_stderr): Update.
8646 (gdb_os_write_stderr): Update.
8647 * exceptions.c (print_exception): Update.
8648 * remote-fileio.c (remote_fileio_func_read): Update.
8649 (remote_fileio_func_write): Update.
8650 * tui/tui.c (tui_enable): Update.
8651 * tui/tui-interp.c (tui_interp::init): Update.
8652 * utils.c (init_page_info): Update.
8653 (putchar_unfiltered, fputc_unfiltered): Update.
8654 (gdb_flush): Update.
8655 (emit_style_escape): Update.
8656 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8657 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8658 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8659 (stderr_file::write): Update.
8660 (stderr_file::puts): Update.
8661 * ui-file.h (ui_file_isatty, ui_file_write)
8662 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8663 (ui_file_puts): Don't declare.
8664
8665 2020-02-10 Tom de Vries <tdevries@suse.de>
8666
8667 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8668 sentinel to char *.
8669
8670 2020-02-09 Tom de Vries <tdevries@suse.de>
8671
8672 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8673 filename if it matches "<artificial>".
8674
8675 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8676
8677 * windows-tdep.c (struct enum_value_name): New struct.
8678 (create_enum): New function.
8679 (windows_get_siginfo_type): Create and use enum types.
8680
8681 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8682
8683 * NEWS: Mention $_siginfo support for Windows.
8684 * windows-nat.c (handle_exception): Set siginfo_er.
8685 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8686 (windows_xfer_siginfo): New function.
8687 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8688 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8689 (init_windows_gdbarch_data): New function.
8690 (get_windows_gdbarch_data): New function.
8691 (windows_get_siginfo_type): New function.
8692 (windows_init_abi): Register windows_get_siginfo_type.
8693 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8694
8695 2020-02-08 Tom Tromey <tom@tromey.com>
8696
8697 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8698 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8699 <keep>: Declare method.
8700 <m_keep>: Remove member.
8701 <~cutu_reader>: Remove.
8702 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8703 (cutu_reader::cutu_reader): Update.
8704 (cutu_reader::keep): Rename from ~cutu_reader.
8705 (process_psymtab_comp_unit, build_type_psymtabs_1)
8706 (process_skeletonless_type_unit, load_partial_comp_unit)
8707 (load_full_comp_unit, dwarf2_read_addr_index)
8708 (read_signatured_type): Update.
8709
8710 2020-02-08 Tom Tromey <tom@tromey.com>
8711
8712 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8713 "want_partial_unit" parameter.
8714 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8715 Inline check for DW_TAG_partial_unit.
8716 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8717
8718 2020-02-08 Tom Tromey <tom@tromey.com>
8719
8720 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8721 read.c.
8722 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8723 read.c.
8724
8725 2020-02-08 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2/read.c (read_address): Move to comp-unit.c.
8728 (dwarf2_rnglists_process, dwarf2_ranges_process)
8729 (read_attribute_value, dwarf_decode_lines_1)
8730 (var_decode_location, decode_locdesc): Update.
8731 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8732 read.c. Remove "cu" parameter.
8733 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8734 method.
8735
8736 2020-02-08 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8739 (read_indirect_line_string): Update.
8740 * dwarf2/comp-unit.c (read_offset): Remove.
8741 (read_comp_unit_head): Update.
8742 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8743 method.
8744 (read_offset): Don't declare.
8745
8746 2020-02-08 Tom Tromey <tom@tromey.com>
8747
8748 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8749 * dwarf2/read.c (struct comp_unit_head): Move to
8750 dwarf2/comp-unit.h.
8751 (enum class rcuh_kind): Move to comp-unit.h.
8752 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8753 (read_comp_unit_head, error_check_comp_unit_head)
8754 (read_and_check_comp_unit_head): Move to comp-unit.c.
8755 (read_offset, dwarf_unit_type_name): Likewise.
8756 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8757 (cutu_reader::cutu_reader, read_call_site_scope)
8758 (find_partial_die, follow_die_offset): Update.
8759 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8760
8761 2020-02-08 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/read.c (read_offset_1): Move to leb.c.
8764 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8765 (dwarf_decode_macro_bytes): Update.
8766 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8767 * dwarf2/leb.h (read_offset): Declare.
8768
8769 2020-02-08 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/read.c (dwarf2_section_size): Remove.
8772 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8773 Update.
8774 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8775
8776 2020-02-08 Tom Tromey <tom@tromey.com>
8777
8778 * dwarf2/read.c (read_initial_length): Move to leb.c.
8779 * dwarf2/leb.h (read_initial_length): Declare.
8780 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8781 handle_nonstd parameter.
8782 * dwarf2/frame.c (read_initial_length): Remove.
8783 (decode_frame_entry_1): Update.
8784
8785 2020-02-08 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2/loc.c (dwarf2_find_location_expression)
8788 (dwarf_evaluate_loc_desc::get_tls_address)
8789 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8790 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8791 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8792 (dwarf2_compile_property_to_c)
8793 (dwarf2_loc_desc_get_symbol_read_needs)
8794 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8795 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8796 (loclist_describe_location, loclist_tracepoint_var_ref)
8797 (loclist_generate_c_location): Update.
8798 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8799 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8800 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8801 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8802 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8803 (dwarf2_per_cu_data::addr_size)
8804 (dwarf2_per_cu_data::ref_addr_size)
8805 (dwarf2_per_cu_data::text_offset)
8806 (dwarf2_per_cu_data::addr_type): Now methods.
8807 (per_cu_header_read_in): Make per_cu "const".
8808 (dwarf2_version): Remove.
8809 (dwarf2_per_cu_data::int_type): Now a method.
8810 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8811 (set_die_type, read_array_type, read_subrange_index_type)
8812 (read_tag_string_type, read_subrange_type): Update.
8813 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8814 offset_size, ref_addr_size, text_offset, addr_type, version,
8815 objfile, int_type, addr_sized_int_type>: Declare methods.
8816
8817 2020-02-08 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8820 Move earlier.
8821
8822 2020-02-08 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/read.h (dwarf_line_debug): Declare.
8825 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8826 * dwarf2/read.c: Move line_header code to new files.
8827 (dwarf_line_debug): No longer static.
8828 * dwarf2/line-header.c: New file.
8829 * dwarf2/line-header.h: New file.
8830
8831 2020-02-08 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.c (struct line_header) <file_full_name,
8834 file_file_name>: Return unique_xmalloc_ptr.
8835 (line_header::file_file_name): Update.
8836 (line_header::file_full_name): Update.
8837 (dw2_get_file_names_reader): Update.
8838 (macro_start_file): Update.
8839
8840 2020-02-08 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/read.c (struct line_header) <file_full_name,
8843 file_file_name>: Declare methods.
8844 (dw2_get_file_names_reader): Update.
8845 (file_file_name): Now a method.
8846 (file_full_name): Likewise.
8847 (macro_start_file): Update.
8848
8849 2020-02-08 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2/read.c (dwarf_always_disassemble)
8852 (show_dwarf_always_disassemble): Move to loc.c.
8853 (_initialize_dwarf2_read): Move "always-disassemble" registration
8854 to loc.c.
8855 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8856 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8857 static.
8858 (show_dwarf_always_disassemble): Move from read.c.
8859 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8860
8861 2020-02-08 Tom Tromey <tom@tromey.com>
8862
8863 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8864 (create_quick_file_names_table): Return htab_up.
8865 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8866 Update.
8867 * dwarf2/read.h (struct dwarf2_per_objfile)
8868 <quick_file_names_table>: Now htab_up.
8869
8870 2020-02-08 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8873
8874 2020-02-08 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8877 Rewrite.
8878 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8879 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8880 (abbrev_table::abbrev_table): No longer inline.
8881 (ABBREV_HASH_SIZE): Remove.
8882 (abbrev_table::m_abbrevs): Now an htab_up.
8883
8884 2020-02-08 Tom Tromey <tom@tromey.com>
8885
8886 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8887 (cutu_reader): Update.
8888 (build_type_psymtabs_1): Update.
8889 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8890 (abbrev_table::alloc_abbrev): Update.
8891 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8892 (abbrev_table::read): New static method, renamed from
8893 abbrev_table_read_table.
8894 (abbrev_table::alloc_abbrev)
8895 (abbrev_table::add_abbrev): Now private.
8896 (abbrev_table::abbrev_table): Now private.
8897 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8898
8899 2020-02-08 Tom Tromey <tom@tromey.com>
8900
8901 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8902 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8903 htab_up.
8904
8905 2020-02-08 Tom Tromey <tom@tromey.com>
8906
8907 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8908 htab_up.
8909 (lookup_dwo_unit_in_dwp): Update.
8910 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8911 on obstack.
8912
8913 2020-02-08 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8916 obstack.
8917
8918 2020-02-08 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8921 line_header_hash.
8922 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8923 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8924 Change type to htab_up.
8925
8926 2020-02-08 Tom Tromey <tom@tromey.com>
8927
8928 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8929 htab_up. Don't allocate on obstack.
8930 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8931 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8932 Change type to htab_up.
8933
8934 2020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8937 Change type to htab_up.
8938 * dwarf2/read.c (create_signatured_type_table_from_index)
8939 (create_signatured_type_table_from_debug_names)
8940 (create_all_type_units, add_type_unit)
8941 (lookup_dwo_signatured_type, lookup_signatured_type)
8942 (process_skeletonless_type_unit): Update.
8943 (create_debug_type_hash_table, create_debug_types_hash_table):
8944 Change type of types_htab.
8945 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8946 htab_up. Don't allocate on obstack.
8947 (create_cus_hash_table): Change type of cus_htab parameter.
8948 (struct dwo_file) <cus, tus>: Now htab_up.
8949 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8950 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8951 (queue_and_load_all_dwo_tus): Update.
8952 * dwarf2/index-write.c (write_gdbindex): Update.
8953 (write_debug_names): Update.
8954
8955 2020-02-08 Tom Tromey <tom@tromey.com>
8956
8957 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8958 dwarf2/read.c. Remove "next" member. Add constructor ntad
8959 destructor.
8960 (struct dwarf2_per_objfile) <queue>: New member.
8961 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8962 dwarf2/read.h.
8963 (dwarf2_queue, dwarf2_queue_tail): Remove.
8964 (class dwarf2_queue_guard): Add parameter to constructor. Use
8965 DISABLE_COPY_AND_ASSIGN.
8966 <m_per_objfile>: New member.
8967 <~dwarf2_queue_guard>: Rewrite.
8968 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8969 Update.
8970 (~dwarf2_queue_item): New.
8971
8972 2020-02-08 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2/read.c (struct die_info) <has_children>: New member.
8975 (dw2_get_file_names_reader): Remove has_children.
8976 (dw2_get_file_names): Update.
8977 (read_cutu_die_from_dwo): Remove has_children.
8978 (cutu_reader::init_tu_and_read_dwo_dies)
8979 (cutu_reader::cutu_reader): Update.
8980 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8981 Remove has_children.
8982 (build_type_psymtabs_1, process_skeletonless_type_unit)
8983 (load_partial_comp_unit, load_full_comp_unit): Update.
8984 (create_dwo_cu_reader): Remove has_children.
8985 (create_cus_hash_table, read_die_and_children): Update.
8986 (read_full_die_1,read_full_die): Remove has_children.
8987 (read_signatured_type): Update.
8988 (class cutu_reader) <has_children>: Remove.
8989
8990 2020-02-08 Tom Tromey <tom@tromey.com>
8991
8992 * dwarf2/expr.c: Rename from dwarf2expr.c.
8993 * dwarf2/expr.h: Rename from dwarf2expr.h.
8994 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8995 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8996 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8997 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8998 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8999 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9000 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9001 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9002 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9003 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9004 * dwarf2/loc.c: Rename from dwarf2loc.c.
9005 * dwarf2/loc.h: Rename from dwarf2loc.h.
9006 * dwarf2/read.c: Rename from dwarf2read.c.
9007 * dwarf2/read.h: Rename from dwarf2read.h.
9008 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9009 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9010 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9011 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9012 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9013 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9014 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9015 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9016 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9017 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9018 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9019 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9020 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9021 Update.
9022 * Makefile.in (COMMON_SFILES): Update.
9023 (HFILES_NO_SRCDIR): Update.
9024
9025 2020-02-08 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9028 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9029
9030 2020-02-08 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2read.h (struct die_info): Don't declare.
9033
9034 2020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2read.h (die_info_ptr): Remove typedef.
9037
9038 2020-02-08 Tom Tromey <tom@tromey.com>
9039
9040 * dwarf2read.c (read_call_site_scope)
9041 (handle_data_member_location, dwarf2_add_member_fn)
9042 (mark_common_block_symbol_computed, read_common_block)
9043 (attr_to_dynamic_prop, partial_die_info::read)
9044 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9045 (dwarf2_symbol_mark_computed, set_die_type): Update.
9046 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9047 method.
9048 (attr_form_is_block): Don't declare.
9049 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9050
9051 2020-02-08 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2read.c (dwarf2_find_base_address, )
9054 (read_call_site_scope, rust_containing_type)
9055 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9056 (handle_data_member_location, dwarf2_add_member_fn)
9057 (get_alignment, read_structure_type, process_structure_scope)
9058 (mark_common_block_symbol_computed, read_common_block)
9059 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9060 (partial_die_info::read, read_attribute_value, new_symbol)
9061 (lookup_die_type, dwarf2_get_ref_die_offset)
9062 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9063 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9064 (dwarf2_symbol_mark_computed): Update.
9065 * dwarf2/attribute.h (struct attribute) <value_as_address,
9066 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9067 methods.
9068 (value_as_address, attr_form_is_section_offset)
9069 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9070 * dwarf2/attribute.c (attribute::value_as_address)
9071 (attribute::form_is_section_offset, attribute::form_is_constant)
9072 (attribute::form_is_ref): Now methods.
9073
9074 2020-02-08 Tom Tromey <tom@tromey.com>
9075
9076 * dwarf2read.c (struct attribute, DW_STRING)
9077 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9078 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9079 (attr_form_is_block, attr_form_is_section_offset)
9080 (attr_form_is_constant, attr_form_is_ref): Move.
9081 * dwarf2/attribute.h: New file.
9082 * dwarf2/attribute.c: New file, from dwarf2read.c.
9083 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9084
9085 2020-02-08 Tom Tromey <tom@tromey.com>
9086
9087 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9088 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9089 Move.
9090 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9091 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9092 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9093 abbrev.c.
9094 * dwarf2/abbrev.h: New file.
9095 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9096 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9097
9098 2020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9101 (dwarf2_section_size, dwarf2_get_section_info)
9102 (create_signatured_type_table_from_debug_names)
9103 (create_addrmap_from_aranges, read_debug_names_from_section)
9104 (get_gdb_index_contents_from_section, read_comp_unit_head)
9105 (error_check_comp_unit_head, read_abbrev_offset)
9106 (create_debug_type_hash_table, init_cu_die_reader)
9107 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9108 (read_comp_units_from_section, create_cus_hash_table)
9109 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9110 (create_dwp_v2_section, dwarf2_rnglists_process)
9111 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9112 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9113 (read_indirect_string_from_dwz, read_addr_index_1)
9114 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9115 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9116 (fill_in_loclist_baton): Update.
9117 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9118 get_containing_section, get_bfd_owner, get_bfd_section,
9119 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9120 (dwarf2_read_section, get_section_name, get_section_file_name)
9121 (get_containing_section, get_section_bfd_owner)
9122 (get_section_bfd_section, get_section_name, get_section_file_name)
9123 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9124 declare.
9125 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9126 (dwarf2_section_info::get_bfd_owner)
9127 (dwarf2_section_info::get_bfd_section)
9128 (dwarf2_section_info::get_name)
9129 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9130 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9131 (dwarf2_section_info::read): Now methods.
9132 * dwarf-index-write.c (class debug_names): Update.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9137 Move to dwarf2/section.h.
9138 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9139 (get_section_bfd_section, get_section_name)
9140 (get_section_file_name, get_section_id, get_section_flags)
9141 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9142 dwarf2/section.c.
9143 * dwarf2/section.h: New file.
9144 * dwarf2/section.c: New file, from dwarf2read.c.
9145 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9146
9147 2020-02-08 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9150 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9151 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9152 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9153 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9154 * dwarf2/leb.h: New file, from dwarf2read.c.
9155 * dwarf2/leb.c: New file, from dwarf2read.c.
9156 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9157 Remove.
9158 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9159 (COMMON_SFILES): Add dwarf2/leb.c.
9160
9161 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9162
9163 GDB 9.1 released.
9164
9165 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9166
9167 PR gdb/25190:
9168 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9169 * gdb/remote.c (remote_console_output): Update.
9170 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9171 (ui_file_puts): ...this.
9172 * gdb/ui-file.h (ui_file_puts): Add declaration.
9173 * gdb/utils.c (emit_style_escape): Update.
9174 (flush_wrap_buffer): Update.
9175 (fputs_maybe_filtered): Update.
9176 (fputs_unfiltered): Add function.
9177
9178 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9179
9180 * gdb/event-loop.c (gdb_wait_for_event): Update.
9181 * gdb/printcmd.c (printf_command): Update.
9182 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9183 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9184 (gdb_os_flush_stderr): Update.
9185 * gdb/remote.c (remote_console_output): Update.
9186 * gdb/ui-file.c (gdb_flush): Rename to...
9187 (ui_file_flush): ...this.
9188 (stderr_file::write): Update.
9189 (stderr_file::puts): Update.
9190 * gdb/ui-file.h (gdb_flush): Rename to...
9191 (ui_file_flush): ...this.
9192 * gdb/utils.c (gdb_flush): Add function.
9193 * gdb/utils.h (gdb_flush): Add declaration.
9194
9195 2020-02-07 Tom Tromey <tromey@adacore.com>
9196
9197 PR breakpoints/24915:
9198 * source.c (find_and_open_source): Do not check basenames_may_differ.
9199
9200 2020-02-07 Tom Tromey <tom@tromey.com>
9201
9202 * README: Update gdbserver documentation.
9203 * gdbserver: Move to top level.
9204 * configure.tgt (build_gdbserver): Remove.
9205 * configure.ac: Remove --enable-gdbserver.
9206 * configure: Rebuild.
9207 * Makefile.in (distclean): Don't mention gdbserver.
9208
9209 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9210
9211 * source-cache.c (source_cache::ensure): Surround
9212 get_plain_source_lines with a try/catch.
9213 (source_cache::get_line_charpos): Get rid of try/catch
9214 and only check for the return value of "ensure".
9215 * tui/tui-source.c (tui_source_window::set_contents):
9216 Simplify "nlines" calculation.
9217
9218 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9219
9220 * MAINTAINERS (Write After Approval): Add myself.
9221
9222 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9223
9224 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9225 function call.
9226
9227 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9228
9229 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9230
9231 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9232
9233 * nat/riscv-linux-tdesc.h: New file.
9234 * nat/riscv-linux-tdesc.c: New file, taking code from...
9235 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9236 ... here.
9237 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9238 NATDEPFILES.
9239
9240 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9243 we don't set the fake simulator ptid to the null_ptid.
9244
9245 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9248 * gdbthread.h (class thread_info) <resumed>: Likewise.
9249 * infrun.c (resume_1): Likewise.
9250 (proceed): Likewise.
9251 (infrun_thread_stop_requested): Likewise.
9252 (stop_all_threads): Likewise.
9253 (handle_inferior_event): Likewise.
9254 (restart_threads): Likewise.
9255 (finish_step_over): Likewise.
9256 (keep_going_stepped_thread): Likewise.
9257 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9258 (linux_handle_extended_wait): Likewise.
9259 * record-btrace.c (get_thread_current_frame_id): Likewise.
9260 * record-full.c (record_full_wait_1): Likewise.
9261 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9262 * target.c (target_resume): Likewise.
9263 * thread.c (set_running_thread): Likewise.
9264
9265 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9266
9267 * f-valprint.c (f77_print_array_1): Changed datatype of index
9268 variable to LONGEST from int to enable it to contain bound
9269 values correctly.
9270
9271 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9272
9273 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9274 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9275 offsets according to FLEN determined.
9276 (riscv_linux_nat_target::read_description): Determine FLEN
9277 dynamically.
9278 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9279 according to FLEN determined.
9280 (riscv_linux_nat_target::store_registers): Likewise.
9281
9282 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9283
9284 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9285 when reg->group is empty and reggroup is not.
9286
9287 2020-01-31 Tom Tromey <tromey@adacore.com>
9288
9289 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9290 Call beneath target's mourn_inferior after unpushing.
9291
9292 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 PR tui/9765
9295 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9296 have enough lines to fill the screen, still return the lowest
9297 address we found.
9298
9299 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9300
9301 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9302 '-', '<', and '>' commands.
9303
9304 2020-01-29 Pedro Alves <palves@redhat.com>
9305 Sergio Durigan Junior <sergiodj@redhat.com>
9306
9307 * infcmd.c (construct_inferior_arguments): Assert that
9308 'argc' is greater than 0.
9309
9310 2020-01-29 Luis Machado <luis.machado@linaro.org>
9311
9312 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9313 (BRK_INSN_MASK): Define to 0xd4200000.
9314 (aarch64_program_breakpoint_here_p): New function.
9315 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9316 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9317 breakpoint.c.
9318 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9319 breakpoint.h
9320 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9321 call gdbarch_program_breakpoint_here_p.
9322 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9323 default_program_breakpoint_here_p, changed return type to bool and
9324 simplified.
9325 * breakpoint.h (program_breakpoint_here): Moved prototype to
9326 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9327 return type to bool.
9328 * gdbarch.c: Regenerate.
9329 * gdbarch.h: Regenerate.
9330 * gdbarch.sh (program_breakpoint_here_p): New method.
9331 * infrun.c (handle_signal_stop): Call
9332 gdbarch_program_breakpoint_here_p.
9333
9334 2020-01-26 Tom Tromey <tom@tromey.com>
9335
9336 * ctfread.c (struct ctf_fp_info): Reindent.
9337 (_initialize_ctfread): Remove.
9338
9339 2020-01-26 Tom Tromey <tom@tromey.com>
9340
9341 * psymtab.c (partial_map_expand_apply)
9342 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9343 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9344 (psym_print_stats, psym_expand_symtabs_for_function)
9345 (psym_map_symbol_filenames, psym_map_matching_symbols)
9346 (psym_expand_symtabs_matching)
9347 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9348 (maintenance_check_psymtabs): Use new methods.
9349 * psympriv.h (struct partial_symtab) <readin_p,
9350 get_compunit_symtab>: New methods.
9351 <readin, compunit_symtab>: Remove members.
9352 (struct standard_psymtab): New.
9353 (struct legacy_psymtab): Derive from standard_psymtab.
9354 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9355 standard_psymtab.
9356 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9357
9358 2020-01-26 Tom Tromey <tom@tromey.com>
9359
9360 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9361 read_dependencies. Add assert.
9362 * psymtab.c (partial_symtab::read_dependencies): New method.
9363 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9364 method.
9365 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9366 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9367 read_dependencies.
9368 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9369 Add assert.
9370
9371 2020-01-26 Tom Tromey <tom@tromey.com>
9372
9373 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9374 Call expand_psymtab.
9375 (xcoff_read_symtab): Call expand_psymtab.
9376 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9377 legacy_expand_psymtab.
9378 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9379 method.
9380 (struct legacy_psymtab) <expand_psymtab>: Implement.
9381 <legacy_expand_psymtab>: New member.
9382 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9383 (parse_partial_symbols): Set legacy_expand_psymtab.
9384 (psymtab_to_symtab_1): Change argument order. Call
9385 expand_psymtab.
9386 (new_psymtab): Set legacy_expand_psymtab.
9387 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9388 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9389 expand_psymtab.
9390 (dwarf2_psymtab::expand_psymtab): Rename from
9391 psymtab_to_symtab_1. Call expand_psymtab.
9392 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9393 (dbx_end_psymtab): Likewise.
9394 (dbx_psymtab_to_symtab_1): Change argument order. Call
9395 expand_psymtab.
9396 (dbx_read_symtab): Call expand_psymtab.
9397 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9398 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9399 (ctf_psymtab::read_symtab): Call expand_psymtab.
9400
9401 2020-01-26 Tom Tromey <tom@tromey.com>
9402
9403 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9404 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9405 messages.
9406 * mdebugread.c (mdebug_read_symtab): Remove prints.
9407 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9408 assert.
9409 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9410
9411 2020-01-26 Tom Tromey <tom@tromey.com>
9412
9413 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9414 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9415 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9416 legacy_symtab.
9417 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9418 * psymtab.c (psymtab_to_symtab): Call method.
9419 (dump_psymtab): Update.
9420 * psympriv.h (struct partial_symtab): Add virtual destructor.
9421 <read_symtab>: New method.
9422 (struct legacy_symtab): New.
9423 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9424 (struct pst_map) <pst>: Now a legacy_psymtab.
9425 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9426 (new_psymtab): Use legacy_psymtab.
9427 * dwarf2read.h (struct dwarf2_psymtab): New.
9428 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9429 * dwarf2read.c (dwarf2_create_include_psymtab)
9430 (dwarf2_build_include_psymtabs, create_type_unit_group)
9431 (create_partial_symtab, process_psymtab_comp_unit_reader)
9432 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9433 (set_partial_user): Use dwarf2_psymtab.
9434 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9435 (psymtab_to_symtab_1, process_full_comp_unit)
9436 (process_full_type_unit, dwarf2_ranges_read)
9437 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9438 (dwarf_decode_lines): Use dwarf2_psymtab.
9439 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9440 (add_address_entry_worker, write_one_signatured_type)
9441 (recursively_count_psymbols, recursively_write_psymbols)
9442 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9443 (write_debug_names): Likewise.
9444 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9445 <pst>: Now a legacy_psymtab.
9446 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9447 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9448 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9449 * ctfread.c (struct ctf_psymtab): New.
9450 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9451 ctf_psymtab.
9452 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9453 (create_partial_symtab): Return a ctf_psymtab.
9454 (scan_partial_symbols): Update.
9455
9456 2020-01-26 Tom Tromey <tom@tromey.com>
9457
9458 * xcoffread.c (xcoff_start_psymtab): Use new.
9459 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9460 renamed from start_psymtab_common.
9461 * psympriv.h (struct partial_symtab): Add new constructor.
9462 (start_psymtab_common): Don't declare.
9463 * mdebugread.c (parse_partial_symbols): Use new.
9464 * dwarf2read.c (create_partial_symtab): Use new.
9465 * dbxread.c (start_psymtab): Use new.
9466 * ctfread.c (create_partial_symtab): Use new.
9467
9468 2020-01-26 Tom Tromey <tom@tromey.com>
9469
9470 * xcoffread.c (xcoff_end_psymtab): Use new.
9471 * psymtab.c (start_psymtab_common): Use new.
9472 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9473 Update.
9474 * psympriv.h (struct partial_symtab): Add parameters to
9475 constructor. Don't inline.
9476 (allocate_psymtab): Don't declare.
9477 * mdebugread.c (new_psymtab): Use new.
9478 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9479 * dbxread.c (dbx_end_psymtab): Use new.
9480
9481 2020-01-26 Tom Tromey <tom@tromey.com>
9482
9483 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9484 allocate_psymtab. Update documentation.
9485 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9486 allocate_psymtab. Do not use new.
9487 (allocate_psymtab): Use new. Update.
9488
9489 2020-01-26 Tom Tromey <tom@tromey.com>
9490
9491 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9492 * psymtab.c (psym_print_stats): Update.
9493 * psympriv.h (struct partial_symtab) <readin,
9494 psymtabs_addrmap_supported, anonymous>: Now bool.
9495 * mdebugread.c (psymtab_to_symtab_1): Update.
9496 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9497 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9498 (process_full_comp_unit, process_full_type_unit): Update.
9499 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9500 * ctfread.c (psymtab_to_symtab): Update.
9501
9502 2020-01-26 Tom Tromey <tom@tromey.com>
9503
9504 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9505 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9506 * psymtab.c (psymtab_storage): Delete psymtabs.
9507 (psymtab_storage::allocate_psymtab): Use new.
9508 (psymtab_storage::discard_psymtab): Use delete.
9509 * psympriv.h (struct partial_symtab): Add constructor and
9510 initializers.
9511
9512 2020-01-26 Tom Tromey <tom@tromey.com>
9513
9514 * machoread.c: Do not include psympriv.h.
9515
9516 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9517
9518 * NEWS: Mention the new option and the set/show commands.
9519
9520 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9521
9522 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9523 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9524 (validate_exec_file): New variables, enums, functions.
9525 (exec_file_locate_attach, print_section_info): Style the filenames.
9526 (_initialize_exec): Install show_exec_file_mismatch_command and
9527 set_exec_file_mismatch_command.
9528 * gdbcore.h (validate_exec_file): Declare.
9529 * infcmd.c (attach_command): Call validate_exec_file.
9530 * remote.c ( remote_target::remote_add_inferior): Likewise.
9531
9532 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9533
9534 * frame.c (find_frame_sal): Move call to get_next_frame into more
9535 inner scope.
9536 * inline-frame.c (inilne_state) <inline_state>: Update argument
9537 types.
9538 (inilne_state) <skipped_symbol>: Rename to...
9539 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9540 (skip_inline_frames): Build vector of skipped symbols and use this
9541 to reate the inline_state.
9542 (inline_skipped_symbol): Add a comment and some assertions, fetch
9543 skipped symbol from the list.
9544
9545 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9546
9547 * buildsym.c (lte_is_less_than): Delete.
9548 (buildsym_compunit::end_symtab_with_blockvector): Create local
9549 lambda function to sort line table entries, and use
9550 std::stable_sort instead of std::sort.
9551 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9552 markers when looking for a previous line.
9553
9554 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9555
9556 * dwarf2read.c (lnp_state_machine::record_line): Include
9557 end_sequence parameter in debug print out. Record the line if we
9558 are at an end_sequence marker even if it's not the start of a
9559 statement.
9560 * symmisc.c (maintenance_print_one_line_table): Print end of
9561 sequence markers with 'END' not '0'.
9562
9563 2020-01-24 Pedro Alves <palves@redhat.com>
9564
9565 PR gdb/25410
9566 * thread.c (scoped_restore_current_thread::restore): Use
9567 switch_to_inferior_no_thread.
9568 * exec.c: Include "progspace-and-thread.h".
9569 (add_target_sections, remove_target_sections):
9570 scoped_restore_current_pspace_and_thread instead of
9571 scoped_restore_current_thread.
9572 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9573 and aspace to the inferior before calling clone_program_space.
9574 Remove stale comment.
9575
9576 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9577
9578 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9579 (arm_netbsd_nat_target::fetch_registers): ...this.
9580 (arm_nbsd_nat_target::store_registers): Rename to...
9581 (arm_netbsd_nat_target::store_registers): ...this.
9582
9583 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9584
9585 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9586 register_t.
9587
9588 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9589
9590 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9591 Update comment.
9592 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9593 Likewise.
9594 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9595 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9596 the correct replacement (iterate_over_regset_sections).
9597 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9598 Update comment.
9599
9600 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9601
9602 PR gdb/23718
9603 * gdb/python/python.c (execute_gdb_command): Call
9604 async_enable_stdin in catch block.
9605
9606 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9607
9608 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9609 SWITCH_THRU_ALL_UIS.
9610
9611 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 PR tui/9765
9614 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9615 comment, add extra parameter, and update to store previous symbol
9616 when appropriate.
9617 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9618 add extra parameter.
9619 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9620 remove unneeded parameter, add try/catch around gdb_print_insn,
9621 rewrite to add items to asm_lines vector.
9622 (tui_find_backward_disassembly_start_address): New function.
9623 (tui_find_disassembly_address): Updated throughout.
9624 (tui_disasm_window::set_contents): Update for changes to
9625 tui_disassemble.
9626 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9627 number of lines to scroll.
9628
9629 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9632 (SECT_OFF_DATA): Likewise.
9633 (SECT_OFF_RODATA): Likewise.
9634 (SECT_OFF_TEXT): Likewise.
9635 (SECT_OFF_BSS): Likewise.
9636 (struct objfile) <text_section_offset, data_section_offset>: New
9637 methods.
9638 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9639 objfile::text_section_offset.
9640 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9641 * coffread.c (coff_symtab_read): Likewise.
9642 (enter_linenos): Likewise.
9643 (process_coff_symbol): Likewise.
9644 * ctfread.c (get_objfile_text_range): Likewise.
9645 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9646 Use objfile::data_section_offset.
9647 * dwarf2-frame.c (execute_cfa_program): Use
9648 objfile::text_section_offset.
9649 (dwarf2_frame_find_fde): Likewise.
9650 * dwarf2read.c (create_addrmap_from_index): Likewise.
9651 (create_addrmap_from_aranges): Likewise.
9652 (dw2_find_pc_sect_compunit_symtab): Likewise.
9653 (process_psymtab_comp_unit_reader): Likewise.
9654 (add_partial_symbol): Likewise.
9655 (add_partial_subprogram): Likewise.
9656 (process_full_comp_unit): Likewise.
9657 (read_file_scope): Likewise.
9658 (read_func_scope): Likewise.
9659 (read_lexical_block_scope): Likewise.
9660 (read_call_site_scope): Likewise.
9661 (dwarf2_rnglists_process): Likewise.
9662 (dwarf2_ranges_process): Likewise.
9663 (dwarf2_ranges_read): Likewise.
9664 (dwarf_decode_lines_1): Likewise.
9665 (new_symbol): Likewise.
9666 (dwarf2_fetch_die_loc_sect_off): Likewise.
9667 (dwarf2_per_cu_text_offset): Likewise.
9668 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9669 * hppa-tdep.c (read_unwind_info): Likewise.
9670 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9671 * psympriv.h (struct partial_symtab): Likewise.
9672 * psymtab.c (find_pc_sect_psymtab): Likewise.
9673 * solib-svr4.c (enable_break): Likewise.
9674 * stap-probe.c (relocate_address): Use
9675 objfile::data_section_offset.
9676 * xcoffread.c (enter_line_range): Use
9677 objfile::text_section_offset.
9678 (read_xcoff_symtab): Likewise.
9679
9680 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9683 declaration to narrower scopes.
9684
9685 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * darwin-nat.h (struct darwin_exception_msg, enum
9688 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9689 Move up.
9690 (class darwin_nat_target) <wait_1, check_new_threads,
9691 decode_exception_message, decode_message, stop_inferior,
9692 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9693 * darwin-nat.c (darwin_check_new_threads): Rename to...
9694 (darwin_nat_target::check_new_threads): ... this.
9695 (darwin_suspend_inferior_it): Remove.
9696 (darwin_decode_exception_message): Rename to...
9697 (darwin_nat_target::decode_exception_message): ... this.
9698 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9699 (darwin_decode_message): Rename to...
9700 (darwin_nat_target::decode_message): ... this.
9701 (cancel_breakpoint): Rename to...
9702 (darwin_nat_target::cancel_breakpoint): ... this.
9703 (darwin_wait): Rename to...
9704 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9705 instead of iterate_over_inferiors.
9706 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9707 (darwin_stop_inferior): Rename to...
9708 (darwin_nat_target::stop_inferior): ... this.
9709 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9710 (darwin_init_thread_list): Rename to...
9711 (darwin_nat_target::init_thread_list): ... this.
9712 (darwin_ptrace_him): Rename to...
9713 (darwin_nat_target::ptrace_him): ... this.
9714 (darwin_nat_target::create_inferior): Pass lambda function to
9715 fork_inferior.
9716 (darwin_nat_target::detach): Call stop_inferior instead of
9717 darwin_stop_inferior.
9718 * fork-inferior.h (fork_inferior): Change init_trace_fun
9719 parameter to gdb::function_view.
9720 * fork-inferior.c (fork_inferior): Likewise.
9721
9722 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9723
9724 * i386-cygwin-tdep.c (core_process_module_section): Update.
9725 * windows-nat.c (struct lm_info_windows): Add text_offset.
9726 (windows_xfer_shared_libraries): Update.
9727 * windows-tdep.c (windows_xfer_shared_library):
9728 Add text_offset_cached argument.
9729 * windows-tdep.h (windows_xfer_shared_library): Update.
9730
9731 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9732
9733 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9734
9735 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9736
9737 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9738 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9739 replace with range-based for.
9740 (gdbsim_interrupt_inferior): Remove.
9741 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9742 with a range-based for. Inline code from
9743 gdbsim_interrupt_inferior.
9744
9745 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * infrun.c (proceed): Fix indentation.
9748
9749 2020-01-21 Tom Tromey <tromey@adacore.com>
9750
9751 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9752 * python/python.c (python_extension_ops): Update.
9753 (gdbpy_colorize): New function.
9754 * python/lib/gdb/__init__.py (colorize): New function.
9755 * extension.h (ext_lang_colorize): Declare.
9756 * extension.c (ext_lang_colorize): New function.
9757 * extension-priv.h (struct extension_language_ops) <colorize>: New
9758 member.
9759 * cli/cli-style.c (_initialize_cli_style): Update help text.
9760
9761 2020-01-21 Luis Machado <luis.machado@linaro.org>
9762
9763 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9764 <cond>: Change type to bool.
9765 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9766 (aarch64_displaced_step_cb): Likewise.
9767 (aarch64_displaced_step_tb): Likewise.
9768
9769 2020-01-21 Luis Machado <luis.machado@linaro.org>
9770
9771 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9772 output.
9773
9774 2020-01-21 Luis Machado <luis.machado@linaro.org>
9775
9776 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9777 <pc_adjust>: Adjust the documentation.
9778 (aarch64_displaced_step_fixup): Check if PC really moved before
9779 adjusting it.
9780
9781 2020-01-19 Tom Tromey <tom@tromey.com>
9782
9783 * disasm.c (~gdb_disassembler): New destructor.
9784 (gdb_buffered_insn_length): Call disassemble_free_target.
9785 * disasm.h (class gdb_disassembler): Declare destructor. Use
9786 DISABLE_COPY_AND_ASSIGN.
9787
9788 2020-01-19 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9791 (die_reader_func_ftype): Remove.
9792 (cutu_reader): New class.
9793 (dw2_get_file_names_reader): Remove "data" parameter.
9794 (dw2_get_file_names): Use cutu_reader.
9795 (create_debug_type_hash_table): Update.
9796 (read_cutu_die_from_dwo): Update comment.
9797 (lookup_dwo_unit): Add dwo_name parameter.
9798 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9799 die_reader_func_ftype and data parameters.
9800 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9801 Remove die_reader_func_ftype and data parameters.
9802 (~cutu_reader): New; from init_cutu_and_read_dies.
9803 (cutu_reader::cutu_reader): Rename from
9804 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9805 and data parameters.
9806 (init_cutu_and_read_dies_simple): Remove.
9807 (struct process_psymtab_comp_unit_data): Remove.
9808 (process_psymtab_comp_unit_reader): Remove data parameter; add
9809 want_partial_unit and pretend_language parameters.
9810 (process_psymtab_comp_unit): Use cutu_reader.
9811 (build_type_psymtabs_reader): Remove data parameter.
9812 (build_type_psymtabs_1): Use cutu_reader.
9813 (process_skeletonless_type_unit): Likewise.
9814 (load_partial_comp_unit_reader): Remove.
9815 (load_partial_comp_unit): Use cutu_reader.
9816 (load_full_comp_unit_reader): Remove.
9817 (load_full_comp_unit): Use cutu_reader.
9818 (struct create_dwo_cu_data): Remove.
9819 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9820 dwo_unit parameters.
9821 (create_cus_hash_table): Use cutu_reader.
9822 (struct dwarf2_read_addr_index_data): Remove.
9823 (dwarf2_read_addr_index_reader): Remove.
9824 (dwarf2_read_addr_index): Use cutu_reader.
9825 (read_signatured_type_reader): Remove.
9826 (read_signatured_type): Use cutu_reader.
9827
9828 2020-01-19 Tom Tromey <tom@tromey.com>
9829
9830 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9831 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9832 (tui_wrefresh): Declare.
9833 * tui/tui-wingeneral.c (suppress_output): New global.
9834 (tui_suppress_output, ~tui_suppress_output): New constructor and
9835 destructor.
9836 (tui_wrefresh): New function.
9837 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9838 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9839 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9840 method.
9841 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9842 tui_wrefresh.
9843 (tui_data_window::no_refresh): New method.
9844 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9845 (tui_reg_command): Use tui_suppress_output
9846 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9847 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9848 method.
9849 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9850
9851 2020-01-19 Tom Tromey <tom@tromey.com>
9852
9853 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9854 Handle case where symtab is null.
9855
9856 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * linux-fork.c (one_fork_p): Simplify.
9859
9860 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9861
9862 * top.c (struct qt_args): Remove.
9863 (kill_or_detach): Change return type to void, replace `void *`
9864 parameter with a proper one.
9865 (print_inferior_quit_action): Likewise.
9866 (quit_confirm): Use range-based for loop to iterate over inferiors.
9867 (quit_force): Likewise.
9868
9869 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9870
9871 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9872 `void *` parameter with proper parameters.
9873 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9874 (print_one_inferior): Change return type to void, replace `void *`
9875 parameter with proper parameters.
9876 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9877 inferiors.
9878 (get_other_inferior): Remove.
9879 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9880 inferiors.
9881
9882 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * mi/mi-interp.c (report_initial_inferior): Remove.
9885 (mi_interp::init): Use range-based for to iterate over inferiors.
9886
9887 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * python/py-inferior.c (build_inferior_list): Remove.
9890 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9891
9892 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9893
9894 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9895 (btrace_stitch_trace): Likewise.
9896 * charset.c (intermediate_encoding): Likewise (vaild).
9897 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9898 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9899 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9900
9901 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9902
9903 * windows-tdep.c (windows_get_tlb_type):
9904 Add rtl_user_process_parameters type.
9905
9906 2020-01-16 Pedro Alves <palves@redhat.com>
9907 Norbert Lange <nolange79@gmail.com>
9908
9909 PR build/24805
9910 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9911 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9912 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9913 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9914 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9915 (ps_plog): Redeclare exported functions with default visibility.
9916
9917 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9918
9919 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9920 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9921
9922 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9923
9924 * infcmd.c (post_create_inferior): Use get_thread_regcache
9925 instead of get_current_regcache.
9926
9927 2020-01-14 Tom Tromey <tom@tromey.com>
9928
9929 PR symtab/12535:
9930 * python/python.c (gdbpy_decode_line): Treat empty string the same
9931 as no argument.
9932
9933 2020-01-14 Tom Tromey <tom@tromey.com>
9934
9935 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9936
9937 2020-01-14 Tom Tromey <tom@tromey.com>
9938
9939 * nat/linux-btrace.c: Don't include <config.h>.
9940 * nat/linux-ptrace.c: Don't include <config.h>.
9941 * nat/x86-linux-dregs.c: Don't include <config.h>.
9942
9943 2020-01-14 Tom Tromey <tom@tromey.com>
9944
9945 * configure: Rebuild.
9946 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9947
9948 2020-01-14 Tom Tromey <tom@tromey.com>
9949
9950 * nat/x86-linux-dregs.c: Include configh.h.
9951 * nat/linux-ptrace.c: Include configh.h.
9952 * nat/linux-btrace.c: Include configh.h.
9953 * defs.h: Include config.h, bfd.h.
9954 * configure.ac: Don't source common.host.
9955 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9956 * configure: Rebuild.
9957 * acinclude.m4: Update path.
9958 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9959 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9960 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9961 (CLIBS): Add LIBSUPPORT.
9962 (CDEPS): Likewise.
9963 (COMMON_SFILES): Remove gdbsupport files.
9964 (HFILES_NO_SRCDIR): Likewise.
9965 (stamp-version): Update path to create-version.sh.
9966 (ALLDEPFILES): Remove gdbsupport files.
9967
9968 2020-01-14 Tom Tromey <tom@tromey.com>
9969
9970 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9971 USE_WIN32API when needed.
9972 * configure.ac (USE_WIN32API): Don't define.
9973 (WIN32LIBS): Use WIN32APILIBS.
9974 * configure: Rebuild.
9975
9976 2020-01-14 Tom Tromey <tom@tromey.com>
9977
9978 * configure: Rebuild.
9979 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9980
9981 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9982
9983 * skip.c (skip_function_command): Make skip w/o arguments use the
9984 name of the inlined function if pc is inside any inlined function.
9985
9986 2020-01-14 Luis Machado <luis.machado@linaro.org>
9987
9988 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9989 * infrun.c (resume_1): Likewise.
9990 (handle_inferior_event): Remove stale comment.
9991 * linux-nat.c (linux_nat_target::resume): Update comments.
9992 (save_stop_reason): Likewise.
9993 (linux_nat_filter_event): Likewise.
9994 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9995
9996 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9997
9998 * elfread.c (record_minimal_symbol): Set section index to 0 for
9999 non-allocatable sections.
10000
10001
10002 2020-01-13 Ali Tamur <tamur@google.com>
10003
10004 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10005 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10006 to gdb::optional. Update comments.
10007 (dwo_file): Update comments.
10008 (read_attribute): Update API to take an additional out parameter,
10009 need_reprocess. This is used to mark attributes that need other
10010 attributes (e.g. str_offsets_base) for correct computation which may not
10011 have been read yet.
10012 (read_attribute_reprocess): New function declaration.
10013 (read_addr_index): Likewise.
10014 (read_dwo_str_index): Likewise.
10015 (read_stub_str_index): Likewise.
10016 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10017 (lookup_addr_base): New function definition.
10018 (lookup_ranges_base): Likewise.
10019 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10020 lookup_ranges_base.
10021 (init_cutu_and_read_dies): Update comments.
10022 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10023 unit. This is used to inherit parent's str_offsets_base and addr_base.
10024 Update comments.
10025 (init_cutu_and_read_dies_simple): Reflect API changes.
10026 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10027 (create_cus_hash_table): Change API to take parent compile unit.
10028 Reflect API changes.
10029 (open_and_init_dwo_file): Reflect API changes.
10030 (dwarf2_get_pc_bounds): Update comments.
10031 (dwarf2_record_block_ranges): Likewise.
10032 (read_full_die_1): Change implementation to reprocess attributes that
10033 need str_offsets_base and addr_base.
10034 (partial_die_info::read): Likewise.
10035 (read_attribute_reprocess): New function definition.
10036 (read_attribute_value): Change API to take an additional out parameter,
10037 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10038 when a non-dwo compile unit has index based attributes.
10039 (read_attribute): Reflect API changes.
10040 (read_addr_index_1): Reflect API changes. Update comments.
10041 (dwarf2_read_addr_index_data): Reflect API changes.
10042 (dwarf2_read_addr_index): Likewise.
10043 (read_str_index): Change API and implementation. This becomes a helper
10044 to be used by the new string index related methods. Update error
10045 message and comments.
10046 (read_dwo_str_index): New function definition.
10047 (read_stub_str_index): Likewise.
10048 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10049 * symfile.h (dwarf2_debug_sections): Likewise.
10050 * xcoffread.c (dwarf2_debug_sections): Likewise.
10051
10052 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10053
10054 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10055 core_reg_sect type to gdb_byte *.
10056 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10057 * cris-tdep.c (fetch_core_registers): Likewise.
10058 * corelow.c (core_target::get_core_register_section): Change
10059 type of `contents` to gdb::byte_vector.
10060
10061 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10062
10063 * tui/tui-wingeneral.c (box_win): Position the title in the center
10064 of the border.
10065
10066 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10067
10068 * corelow.c (core_target::get_core_register_section): Use
10069 std::vector instead of alloca.
10070
10071 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * warning.m4: Add -Wmissing-declarations to build_warnings.
10074 * configure: Re-generate.
10075
10076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10077
10078 * python/python.c (init__gdb_module): Add declaration.
10079
10080 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10083 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10084 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10085 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10086 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10087 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10088 * ada-exp.y (_initialize_ada_exp): Add declaration.
10089 * ada-lang.c (_initialize_ada_language): Add declaration.
10090 * ada-tasks.c (_initialize_tasks): Add declaration.
10091 * agent.c (_initialize_agent): Add declaration.
10092 * aix-thread.c (_initialize_aix_thread): Add declaration.
10093 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10094 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10095 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10096 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10097 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10098 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10099 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10100 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10101 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10102 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10103 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10104 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10105 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10106 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10107 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10108 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10109 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10110 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10111 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10112 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10113 * annotate.c (_initialize_annotate): Add declaration.
10114 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10115 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10116 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10117 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10118 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10119 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10120 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10121 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10122 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10123 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10124 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10125 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10126 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10127 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10128 * auto-load.c (_initialize_auto_load): Add declaration.
10129 * auxv.c (_initialize_auxv): Add declaration.
10130 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10131 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10132 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10133 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10134 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10135 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10136 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10137 * breakpoint.c (_initialize_breakpoint): Add declaration.
10138 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10139 * btrace.c (_initialize_btrace): Add declaration.
10140 * charset.c (_initialize_charset): Add declaration.
10141 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10142 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10143 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10144 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10145 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10146 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10147 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10148 * coffread.c (_initialize_coffread): Add declaration.
10149 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10150 * compile/compile.c (_initialize_compile): Add declaration.
10151 * complaints.c (_initialize_complaints): Add declaration.
10152 * completer.c (_initialize_completer): Add declaration.
10153 * copying.c (_initialize_copying): Add declaration.
10154 * corefile.c (_initialize_core): Add declaration.
10155 * corelow.c (_initialize_corelow): Add declaration.
10156 * cp-abi.c (_initialize_cp_abi): Add declaration.
10157 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10158 * cp-support.c (_initialize_cp_support): Add declaration.
10159 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10160 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10161 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10162 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10163 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10164 * ctfread.c (_initialize_ctfread): Add declaration.
10165 * d-lang.c (_initialize_d_language): Add declaration.
10166 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10167 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10168 * dbxread.c (_initialize_dbxread): Add declaration.
10169 * dcache.c (_initialize_dcache): Add declaration.
10170 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10171 * disasm.c (_initialize_disasm): Add declaration.
10172 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10173 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10174 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10175 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10176 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10177 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10178 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10179 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10180 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10181 * elfread.c (_initialize_elfread): Add declaration.
10182 * exec.c (_initialize_exec): Add declaration.
10183 * extension.c (_initialize_extension): Add declaration.
10184 * f-lang.c (_initialize_f_language): Add declaration.
10185 * f-valprint.c (_initialize_f_valprint): Add declaration.
10186 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10187 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10188 * filesystem.c (_initialize_filesystem): Add declaration.
10189 * findcmd.c (_initialize_mem_search): Add declaration.
10190 * findvar.c (_initialize_findvar): Add declaration.
10191 * fork-child.c (_initialize_fork_child): Add declaration.
10192 * frame-base.c (_initialize_frame_base): Add declaration.
10193 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10194 * frame.c (_initialize_frame): Add declaration.
10195 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10196 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10197 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10198 * gcore.c (_initialize_gcore): Add declaration.
10199 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10200 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10201 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10202 * gdbarch.c (_initialize_gdbarch): Add declaration.
10203 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10204 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10205 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10206 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10207 * go-lang.c (_initialize_go_language): Add declaration.
10208 * go32-nat.c (_initialize_go32_nat): Add declaration.
10209 * guile/guile.c (_initialize_guile): Add declaration.
10210 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10211 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10212 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10213 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10214 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10215 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10216 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10217 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10218 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10219 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10220 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10221 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10222 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10223 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10224 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10225 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10226 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10227 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10228 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10229 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10230 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10231 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10232 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10233 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10234 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10235 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10236 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10237 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10238 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10239 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10240 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10241 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10242 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10243 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10244 * infcall.c (_initialize_infcall): Add declaration.
10245 * infcmd.c (_initialize_infcmd): Add declaration.
10246 * inflow.c (_initialize_inflow): Add declaration.
10247 * infrun.c (_initialize_infrun): Add declaration.
10248 * interps.c (_initialize_interpreter): Add declaration.
10249 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10250 * jit.c (_initialize_jit): Add declaration.
10251 * language.c (_initialize_language): Add declaration.
10252 * linux-fork.c (_initialize_linux_fork): Add declaration.
10253 * linux-nat.c (_initialize_linux_nat): Add declaration.
10254 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10255 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10256 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10257 * m2-lang.c (_initialize_m2_language): Add declaration.
10258 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10259 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10260 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10261 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10262 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10263 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10264 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10265 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10266 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10267 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10268 * machoread.c (_initialize_machoread): Add declaration.
10269 * macrocmd.c (_initialize_macrocmd): Add declaration.
10270 * macroscope.c (_initialize_macroscope): Add declaration.
10271 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10272 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10273 * maint.c (_initialize_maint_cmds): Add declaration.
10274 * mdebugread.c (_initialize_mdebugread): Add declaration.
10275 * memattr.c (_initialize_mem): Add declaration.
10276 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10277 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10278 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10279 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10280 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10281 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10282 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10283 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10284 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10285 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10286 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10287 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10288 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10289 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10290 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10291 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10292 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10293 * mipsread.c (_initialize_mipsread): Add declaration.
10294 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10295 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10296 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10297 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10298 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10299 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10300 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10301 * nto-procfs.c (_initialize_procfs): Add declaration.
10302 * objc-lang.c (_initialize_objc_language): Add declaration.
10303 * observable.c (_initialize_observer): Add declaration.
10304 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10305 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10306 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10307 * osabi.c (_initialize_gdb_osabi): Add declaration.
10308 * osdata.c (_initialize_osdata): Add declaration.
10309 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10310 * parse.c (_initialize_parse): Add declaration.
10311 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10312 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10313 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10314 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10315 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10316 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10317 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10318 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10319 * printcmd.c (_initialize_printcmd): Add declaration.
10320 * probe.c (_initialize_probe): Add declaration.
10321 * proc-api.c (_initialize_proc_api): Add declaration.
10322 * proc-events.c (_initialize_proc_events): Add declaration.
10323 * proc-service.c (_initialize_proc_service): Add declaration.
10324 * procfs.c (_initialize_procfs): Add declaration.
10325 * producer.c (_initialize_producer): Add declaration.
10326 * psymtab.c (_initialize_psymtab): Add declaration.
10327 * python/python.c (_initialize_python): Add declaration.
10328 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10329 * record-btrace.c (_initialize_record_btrace): Add declaration.
10330 * record-full.c (_initialize_record_full): Add declaration.
10331 * record.c (_initialize_record): Add declaration.
10332 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10333 * regcache.c (_initialize_regcache): Add declaration.
10334 * reggroups.c (_initialize_reggroup): Add declaration.
10335 * remote-notif.c (_initialize_notif): Add declaration.
10336 * remote-sim.c (_initialize_remote_sim): Add declaration.
10337 * remote.c (_initialize_remote): Add declaration.
10338 * reverse.c (_initialize_reverse): Add declaration.
10339 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10340 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10341 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10342 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10343 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10344 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10345 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10346 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10347 Add declaration.
10348 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10349 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10350 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10351 * rust-exp.y (_initialize_rust_exp): Add declaration.
10352 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10353 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10354 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10355 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10356 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10357 * score-tdep.c (_initialize_score_tdep): Add declaration.
10358 * ser-go32.c (_initialize_ser_dos): Add declaration.
10359 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10360 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10361 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10362 * ser-uds.c (_initialize_ser_socket): Add declaration.
10363 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10364 * serial.c (_initialize_serial): Add declaration.
10365 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10366 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10367 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10368 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10369 * skip.c (_initialize_step_skip): Add declaration.
10370 * sol-thread.c (_initialize_sol_thread): Add declaration.
10371 * solib-aix.c (_initialize_solib_aix): Add declaration.
10372 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10373 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10374 * solib-frv.c (_initialize_frv_solib): Add declaration.
10375 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10376 * solib-target.c (_initialize_solib_target): Add declaration.
10377 * solib.c (_initialize_solib): Add declaration.
10378 * source-cache.c (_initialize_source_cache): Add declaration.
10379 * source.c (_initialize_source): Add declaration.
10380 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10381 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10382 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10383 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10384 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10385 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10386 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10387 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10388 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10389 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10390 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10391 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10392 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10393 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10394 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10395 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10396 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10397 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10398 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10399 * stabsread.c (_initialize_stabsread): Add declaration.
10400 * stack.c (_initialize_stack): Add declaration.
10401 * stap-probe.c (_initialize_stap_probe): Add declaration.
10402 * std-regs.c (_initialize_frame_reg): Add declaration.
10403 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10404 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10405 * symfile.c (_initialize_symfile): Add declaration.
10406 * symmisc.c (_initialize_symmisc): Add declaration.
10407 * symtab.c (_initialize_symtab): Add declaration.
10408 * target.c (_initialize_target): Add declaration.
10409 * target-connection.c (_initialize_target_connection): Add
10410 declaration.
10411 * target-dcache.c (_initialize_target_dcache): Add declaration.
10412 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10413 * thread.c (_initialize_thread): Add declaration.
10414 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10415 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10416 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10417 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10418 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10419 * tracectf.c (_initialize_ctf): Add declaration.
10420 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10421 * tracefile.c (_initialize_tracefile): Add declaration.
10422 * tracepoint.c (_initialize_tracepoint): Add declaration.
10423 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10424 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10425 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10426 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10427 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10428 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10429 * tui/tui.c (_initialize_tui): Add declaration.
10430 * typeprint.c (_initialize_typeprint): Add declaration.
10431 * ui-style.c (_initialize_ui_style): Add declaration.
10432 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10433 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10434 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10435 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10436 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10437 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10438 * unittests/filtered_iterator-selftests.c
10439 (_initialize_filtered_iterator_selftests): Add declaration.
10440 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10441 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10442 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10443 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10444 * unittests/main-thread-selftests.c
10445 (_initialize_main_thread_selftests): Add declaration.
10446 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10447 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10448 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10449 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10450 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10451 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10452 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10453 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10454 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10455 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10456 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10457 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10458 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10459 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10460 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10461 declaration.
10462 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10463 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10464 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10465 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10466 * user-regs.c (_initialize_user_regs): Add declaration.
10467 * utils.c (_initialize_utils): Add declaration.
10468 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10469 * valops.c (_initialize_valops): Add declaration.
10470 * valprint.c (_initialize_valprint): Add declaration.
10471 * value.c (_initialize_values): Add declaration.
10472 * varobj.c (_initialize_varobj): Add declaration.
10473 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10474 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10475 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10476 * windows-nat.c (_initialize_windows_nat): Add declaration.
10477 (_initialize_check_for_gdb_ini): Add declaration.
10478 (_initialize_loadable): Add declaration.
10479 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10480 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10481 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10482 * xcoffread.c (_initialize_xcoffread): Add declaration.
10483 * xml-support.c (_initialize_xml_support): Add declaration.
10484 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10485 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10486 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10487 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10488
10489 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10490
10491 * regformats/regdat.sh: Generate declaration for init function.
10492
10493 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10494
10495 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10496 up.
10497 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10498 close_one_inferior>: New methods.
10499 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10500 pass down target to find_inferior_pid.
10501 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10502 Pass down target to find_inferior_ptid.
10503 (gdbsim_target::create_inferior): Pass down target to
10504 add_thread_silent.
10505 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10506 target down to find_inferior_ptid and switch_to_thread.
10507 (gdbsim_target::close): Update to call close_one_inferior.
10508 (struct resume_data): Remove.
10509 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10510 directly, rather than through a void pointer.
10511 (gdbsim_target::resume): Update to call resume_one_inferior.
10512
10513 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10514
10515 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10516
10517 2020-01-12 Pedro Alves <palves@redhat.com>
10518
10519 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10520 directly for the current inferior instead of
10521 discard_all_inferiors.
10522 (discard_all_inferiors): Delete.
10523
10524 2020-01-11 Tom Tromey <tom@tromey.com>
10525
10526 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10527 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10528 deprecated_safe_get_selected_frame.
10529
10530 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10531
10532 * inferior.c (print_inferior): Switch inferior before printing it.
10533
10534 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10535 Pedro Alves <palves@redhat.com>
10536
10537 * progspace-and-thread.c (switch_to_program_space_and_thread):
10538 Assert there's an inferior for PSPACE. Use
10539 switch_to_inferior_no_thread to switch the inferior too.
10540 * progspace.c (program_space::~program_space): Call
10541 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10542 (program_space::free_all_objfiles): Don't call clear_symtab_users
10543 here.
10544 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10545
10546 2020-01-10 Pedro Alves <palves@redhat.com>
10547
10548 * NEWS: Mention multi-target debugging, "info connections", and
10549 "add-inferior -no-connection".
10550
10551 2020-01-10 Pedro Alves <palves@redhat.com>
10552
10553 * infrun.c: Include "target-connection.h".
10554 (check_multi_target_resumption): New.
10555 (proceed): Call it.
10556 * target-connection.c (make_target_connection_string): Make
10557 extern.
10558 * target-connection.h (make_target_connection_string): Declare.
10559
10560 2020-01-10 Pedro Alves <palves@redhat.com>
10561
10562 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10563 * inferior.c (uiout_field_connection): New function.
10564 (print_inferior): Add new "connection-id" column.
10565 (add_inferior_command): Show connection number/string of added
10566 inferior.
10567 * process-stratum-target.h
10568 (process_stratum_target::connection_string): New virtual method.
10569 (process_stratum_target::connection_number): New field.
10570 * remote.c (remote_target::connection_string): New override.
10571 * target-connection.c: New file.
10572 * target-connection.h: New file.
10573 * target.c (decref_target): Remove process_stratum targets from
10574 the connection list.
10575 (target_stack::push): Add process_stratum targets to the
10576 connection list.
10577
10578 2020-01-10 Pedro Alves <palves@redhat.com>
10579
10580 Revert:
10581 2016-04-12 Pedro Alves <palves@redhat.com>
10582 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10583 Remove references to name.
10584 * serial.h (struct serial) <name>: Delete.
10585
10586 2020-01-10 Pedro Alves <palves@redhat.com>
10587
10588 * gdbarch-selftests.c (register_to_value_test): Remove "target
10589 already pushed" check.
10590
10591 2020-01-10 Pedro Alves <palves@redhat.com>
10592 John Baldwin <jhb@FreeBSD.org>
10593
10594 * aarch64-linux-nat.c
10595 (aarch64_linux_nat_target::thread_architecture): Adjust.
10596 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10597 (task_command_1): Likewise.
10598 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10599 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10600 (aix_thread_target::store_registers)
10601 (aix_thread_target::thread_alive): Adjust.
10602 * amd64-fbsd-tdep.c: Include "inferior.h".
10603 (amd64fbsd_get_thread_local_address): Pass down target.
10604 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10605 thread's gdbarch instead of target_gdbarch.
10606 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10607 get_last_target_status.
10608 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10609 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10610 inferiors.
10611 (update_inserted_breakpoint_locations): Skip if inferiors with no
10612 execution.
10613 (update_global_location_list): When handling moribund locations,
10614 find representative inferior for location's pspace, and use thread
10615 count of its process_stratum target.
10616 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10617 * bsd-uthread.c (bsd_uthread_target::wait): Use
10618 as_process_stratum_target and adjust thread_change_ptid and
10619 add_thread calls.
10620 (bsd_uthread_target::update_thread_list): Use
10621 as_process_stratum_target and adjust find_thread_ptid,
10622 thread_change_ptid and add_thread calls.
10623 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10624 find_thread_ptid call.
10625 * corelow.c (add_to_thread_list): Adjust add_thread call.
10626 (core_target_open): Adjust add_thread_silent and thread_count
10627 calls.
10628 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10629 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10630 * event-top.c (async_disconnect): Pop targets from all inferiors.
10631 * exec.c (add_target_sections): Push exec target on all inferiors
10632 sharing the program space.
10633 (remove_target_sections): Remove the exec target from all
10634 inferiors sharing the program space.
10635 (exec_on_vfork): New.
10636 * exec.h (exec_on_vfork): Declare.
10637 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10638 Pass it down.
10639 (fbsd_nat_target::update_thread_list): Adjust.
10640 (fbsd_nat_target::resume): Adjust.
10641 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10642 down.
10643 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10644 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10645 get_thread_arch_regcache call.
10646 * fork-child.c (gdb_startup_inferior): Pass target down to
10647 startup_inferior and set_executing.
10648 * gdbthread.h (struct process_stratum_target): Forward declare.
10649 (add_thread, add_thread_silent, add_thread_with_info)
10650 (in_thread_list): Add process_stratum_target parameter.
10651 (find_thread_ptid(inferior*, ptid_t)): New overload.
10652 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10653 parameter.
10654 (all_threads()): Delete overload.
10655 (all_threads, all_non_exited_threads): Add process_stratum_target
10656 parameter.
10657 (all_threads_safe): Use brace initialization.
10658 (thread_count): Add process_stratum_target parameter.
10659 (set_resumed, set_running, set_stop_requested, set_executing)
10660 (threads_are_executing, finish_thread_state): Add
10661 process_stratum_target parameter.
10662 (switch_to_thread): Use is_current_thread.
10663 * i386-fbsd-tdep.c: Include "inferior.h".
10664 (i386fbsd_get_thread_local_address): Pass down target.
10665 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10666 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10667 have_inferiors check.
10668 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10669 (inf_ptrace_target::attach): Adjust.
10670 * infcall.c (run_inferior_call): Adjust.
10671 * infcmd.c (run_command_1): Pass target to
10672 scoped_finish_thread_state.
10673 (proceed_thread_callback): Skip inferiors with no execution.
10674 (continue_command): Rename 'all_threads' local to avoid hiding
10675 'all_threads' function. Adjust get_last_target_status call.
10676 (prepare_one_step): Adjust set_running call.
10677 (signal_command): Use user_visible_resume_target. Compare thread
10678 pointers instead of inferior_ptid.
10679 (info_program_command): Adjust to pass down target.
10680 (attach_command): Mark target's 'thread_executing' flag.
10681 (stop_current_target_threads_ns): New, factored out from ...
10682 (interrupt_target_1): ... this. Switch inferior before making
10683 target calls.
10684 * inferior-iter.h
10685 (struct all_inferiors_iterator, struct all_inferiors_range)
10686 (struct all_inferiors_safe_range)
10687 (struct all_non_exited_inferiors_range): Filter on
10688 process_stratum_target too. Remove explicit.
10689 * inferior.c (inferior::inferior): Push dummy target on target
10690 stack.
10691 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10692 Add process_stratum_target parameter, and pass it down.
10693 (have_live_inferiors): Adjust.
10694 (switch_to_inferior_and_push_target): New.
10695 (add_inferior_command, clone_inferior_command): Handle
10696 "-no-connection" parameter. Use
10697 switch_to_inferior_and_push_target.
10698 (_initialize_inferior): Mention "-no-connection" option in
10699 the help of "add-inferior" and "clone-inferior" commands.
10700 * inferior.h: Include "process-stratum-target.h".
10701 (interrupt_target_1): Use bool.
10702 (struct inferior) <push_target, unpush_target, target_is_pushed,
10703 find_target_beneath, top_target, process_target, target_at,
10704 m_stack>: New.
10705 (discard_all_inferiors): Delete.
10706 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10707 (all_inferiors, all_non_exited_inferiors): Add
10708 process_stratum_target parameter.
10709 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10710 (target_last_proc_target): New global.
10711 (follow_fork_inferior): Push target on new inferior. Pass target
10712 to add_thread_silent. Call exec_on_vfork. Handle target's
10713 reference count.
10714 (follow_fork): Adjust get_last_target_status call. Also consider
10715 target.
10716 (follow_exec): Push target on new inferior.
10717 (struct execution_control_state) <target>: New field.
10718 (user_visible_resume_target): New.
10719 (do_target_resume): Call target_async.
10720 (resume_1): Set target's threads_executing flag. Consider resume
10721 target.
10722 (commit_resume_all_targets): New.
10723 (proceed): Also consider resume target. Skip threads of inferiors
10724 with no execution. Commit resumtion in all targets.
10725 (start_remote): Pass current inferior to wait_for_inferior.
10726 (infrun_thread_stop_requested): Consider target as well. Pass
10727 thread_info pointer to clear_inline_frame_state instead of ptid.
10728 (infrun_thread_thread_exit): Consider target as well.
10729 (random_pending_event_thread): New inferior parameter. Use it.
10730 (do_target_wait): Rename to ...
10731 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10732 down.
10733 (threads_are_resumed_pending_p, do_target_wait): New.
10734 (prepare_for_detach): Adjust calls.
10735 (wait_for_inferior): New inferior parameter. Handle it. Use
10736 do_target_wait_1 instead of do_target_wait.
10737 (fetch_inferior_event): Adjust. Switch to representative
10738 inferior. Pass target down.
10739 (set_last_target_status): Add process_stratum_target parameter.
10740 Save target in global.
10741 (get_last_target_status): Add process_stratum_target parameter and
10742 handle it.
10743 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10744 (context_switch): Check inferior_ptid == null_ptid before calling
10745 inferior_thread().
10746 (get_inferior_stop_soon): Pass down target.
10747 (wait_one): Rename to ...
10748 (poll_one_curr_target): ... this.
10749 (struct wait_one_event): New.
10750 (wait_one): New.
10751 (stop_all_threads): Adjust.
10752 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10753 event's target.
10754 (switch_back_to_stepped_thread): Also consider target.
10755 (print_stop_event): Update.
10756 (normal_stop): Update. Also consider the resume target.
10757 * infrun.h (wait_for_inferior): Remove declaration.
10758 (user_visible_resume_target): New declaration.
10759 (get_last_target_status, set_last_target_status): New
10760 process_stratum_target parameter.
10761 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10762 process_stratum_target parameter, and use it.
10763 (clear_inline_frame_state (thread_info*)): New.
10764 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10765 process_stratum_target parameter.
10766 (clear_inline_frame_state (thread_info*)): Declare.
10767 * linux-fork.c (delete_checkpoint_command): Pass target down to
10768 find_thread_ptid.
10769 (checkpoint_command): Adjust.
10770 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10771 instead of just tweaking inferior_ptid.
10772 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10773 (exit_lwp): Pass target down to find_thread_ptid.
10774 (attach_proc_task_lwp_callback): Pass target down to
10775 add_thread/set_running/set_executing.
10776 (linux_nat_target::attach): Pass target down to
10777 thread_change_ptid.
10778 (get_detach_signal): Pass target down to find_thread_ptid.
10779 Consider last target status's target.
10780 (linux_resume_one_lwp_throw, resume_lwp)
10781 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10782 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10783 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10784 (linux_nat_target::async_wait_fd): New.
10785 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10786 target down.
10787 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10788 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10789 * linux-thread-db.c (struct thread_db_info::process_target): New
10790 field.
10791 (add_thread_db_info): Save target.
10792 (get_thread_db_info): New process_stratum_target parameter. Also
10793 match target.
10794 (delete_thread_db_info): New process_stratum_target parameter.
10795 Also match target.
10796 (thread_from_lwp): Adjust to pass down target.
10797 (thread_db_notice_clone): Pass down target.
10798 (check_thread_db_callback): Pass down target.
10799 (try_thread_db_load_1): Always push the thread_db target.
10800 (try_thread_db_load, record_thread): Pass target down.
10801 (thread_db_target::detach): Pass target down. Always unpush the
10802 thread_db target.
10803 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10804 target down. Always unpush the thread_db target.
10805 (find_new_threads_callback, thread_db_find_new_threads_2)
10806 (thread_db_target::update_thread_list): Pass target down.
10807 (thread_db_target::pid_to_str): Pass current inferior down.
10808 (thread_db_target::get_thread_local_address): Pass target down.
10809 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10810 target down.
10811 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10812 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10813 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10814 (procfs_init_inferior): Rename to ...
10815 (procfs_target::procfs_init_inferior): ... this and adjust.
10816 (procfs_target::create_inferior, procfs_notice_thread)
10817 (procfs_do_thread_registers): Adjust.
10818 * ppc-fbsd-tdep.c: Include "inferior.h".
10819 (ppcfbsd_get_thread_local_address): Pass down target.
10820 * proc-service.c (ps_xfer_memory): Switch current inferior and
10821 program space as well.
10822 (get_ps_regcache): Pass target down.
10823 * process-stratum-target.c
10824 (process_stratum_target::thread_address_space)
10825 (process_stratum_target::thread_architecture): Pass target down.
10826 * process-stratum-target.h
10827 (process_stratum_target::threads_executing): New field.
10828 (as_process_stratum_target): New.
10829 * ravenscar-thread.c
10830 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10831 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10832 down.
10833 * record-btrace.c (record_btrace_target::info_record): Adjust.
10834 (record_btrace_target::record_method)
10835 (record_btrace_target::record_is_replaying)
10836 (record_btrace_target::fetch_registers)
10837 (get_thread_current_frame_id, record_btrace_target::resume)
10838 (record_btrace_target::wait, record_btrace_target::stop): Pass
10839 target down.
10840 * record-full.c (record_full_wait_1): Switch to event thread.
10841 Pass target down.
10842 * regcache.c (regcache::regcache)
10843 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10844 process_stratum_target parameter and handle it.
10845 (current_thread_target): New global.
10846 (get_thread_regcache): Add process_stratum_target parameter and
10847 handle it. Switch inferior before calling target method.
10848 (get_thread_regcache): Pass target down.
10849 (get_thread_regcache_for_ptid): Pass target down.
10850 (registers_changed_ptid): Add process_stratum_target parameter and
10851 handle it.
10852 (registers_changed_thread, registers_changed): Pass target down.
10853 (test_get_thread_arch_aspace_regcache): New.
10854 (current_regcache_test): Define a couple local test_target_ops
10855 instances and use them for testing.
10856 (readwrite_regcache): Pass process_stratum_target parameter.
10857 (cooked_read_test, cooked_write_test): Pass mock_target down.
10858 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10859 (get_thread_arch_aspace_regcache): Add process_stratum_target
10860 parameter.
10861 (regcache::target): New method.
10862 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10863 (regcache::registers_changed_ptid): Add process_stratum_target
10864 parameter.
10865 (regcache::m_target): New field.
10866 (registers_changed_ptid): Add process_stratum_target parameter.
10867 * remote.c (remote_state::supports_vCont_probed): New field.
10868 (remote_target::async_wait_fd): New method.
10869 (remote_unpush_and_throw): Add remote_target parameter.
10870 (get_current_remote_target): Adjust.
10871 (remote_target::remote_add_inferior): Push target.
10872 (remote_target::remote_add_thread)
10873 (remote_target::remote_notice_new_inferior)
10874 (get_remote_thread_info): Pass target down.
10875 (remote_target::update_thread_list): Skip threads of inferiors
10876 bound to other targets. (remote_target::close): Don't discard
10877 inferiors. (remote_target::add_current_inferior_and_thread)
10878 (remote_target::process_initial_stop_replies)
10879 (remote_target::start_remote)
10880 (remote_target::remote_serial_quit_handler): Pass down target.
10881 (remote_target::remote_unpush_target): New remote_target
10882 parameter. Unpush the target from all inferiors.
10883 (remote_target::remote_unpush_and_throw): New remote_target
10884 parameter. Pass it down.
10885 (remote_target::open_1): Check whether the current inferior has
10886 execution instead of checking whether any inferior is live. Pass
10887 target down.
10888 (remote_target::remote_detach_1): Pass down target. Use
10889 remote_unpush_target.
10890 (extended_remote_target::attach): Pass down target.
10891 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10892 (remote_target::append_resumption): Pass down target.
10893 (remote_target::append_pending_thread_resumptions)
10894 (remote_target::remote_resume_with_hc, remote_target::resume)
10895 (remote_target::commit_resume): Pass down target.
10896 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10897 (remote_target::interrupt_query)
10898 (remote_target::remove_new_fork_children)
10899 (remote_target::check_pending_events_prevent_wildcard_vcont)
10900 (remote_target::remote_parse_stop_reply)
10901 (remote_target::process_stop_reply): Pass down target.
10902 (first_remote_resumed_thread): New remote_target parameter. Pass
10903 it down.
10904 (remote_target::wait_as): Pass down target.
10905 (unpush_and_perror): New remote_target parameter. Pass it down.
10906 (remote_target::readchar, remote_target::remote_serial_write)
10907 (remote_target::getpkt_or_notif_sane_1)
10908 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10909 down target.
10910 (remote_target::mourn_inferior): Pass down target. Use
10911 remote_unpush_target.
10912 (remote_target::core_of_thread)
10913 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10914 (remote_target::pid_to_exec_file)
10915 (remote_target::thread_handle_to_thread_info): Pass down target.
10916 (remote_target::async_wait_fd): New.
10917 * riscv-fbsd-tdep.c: Include "inferior.h".
10918 (riscv_fbsd_get_thread_local_address): Pass down target.
10919 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10920 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10921 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10922 Adjust.
10923 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10924 * solib-svr4.c (enable_break): Pass down target.
10925 * spu-multiarch.c (parse_spufs_run): Pass down target.
10926 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10927 * target-delegates.c: Regenerate.
10928 * target.c (g_target_stack): Delete.
10929 (current_top_target): Return the current inferior's top target.
10930 (target_has_execution_1): Refer to the passed-in inferior's top
10931 target.
10932 (target_supports_terminal_ours): Check whether the initial
10933 inferior was already created.
10934 (decref_target): New.
10935 (target_stack::push): Incref/decref the target.
10936 (push_target, push_target, unpush_target): Adjust.
10937 (target_stack::unpush): Defref target.
10938 (target_is_pushed): Return bool. Adjust to refer to the current
10939 inferior's target stack.
10940 (dispose_inferior): Delete, and inline parts ...
10941 (target_preopen): ... here. Only dispose of the current inferior.
10942 (target_detach): Hold strong target reference while detaching.
10943 Pass target down.
10944 (target_thread_name): Add assertion.
10945 (target_resume): Pass down target.
10946 (target_ops::beneath, find_target_at): Adjust to refer to the
10947 current inferior's target stack.
10948 (get_dummy_target): New.
10949 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10950 has a thread running.
10951 (initialize_targets): Rename to ...
10952 (_initialize_target): ... this.
10953 * target.h: Include "gdbsupport/refcounted-object.h".
10954 (struct target_ops): Inherit refcounted_object.
10955 (target_ops::shortname, target_ops::longname): Make const.
10956 (target_ops::async_wait_fd): New method.
10957 (decref_target): Declare.
10958 (struct target_ops_ref_policy): New.
10959 (target_ops_ref): New typedef.
10960 (get_dummy_target): Declare function.
10961 (target_is_pushed): Return bool.
10962 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10963 (all_matching_threads_iterator::all_matching_threads_iterator):
10964 Handle filter target.
10965 * thread-iter.h (struct all_matching_threads_iterator, struct
10966 all_matching_threads_range, class all_non_exited_threads_range):
10967 Filter by target too. Remove explicit.
10968 * thread.c (threads_executing): Delete.
10969 (inferior_thread): Pass down current inferior.
10970 (clear_thread_inferior_resources): Pass down thread pointer
10971 instead of ptid_t.
10972 (add_thread_silent, add_thread_with_info, add_thread): Add
10973 process_stratum_target parameter. Use it for thread and inferior
10974 searches.
10975 (is_current_thread): New.
10976 (thread_info::deletable): Use it.
10977 (find_thread_ptid, thread_count, in_thread_list)
10978 (thread_change_ptid, set_resumed, set_running): New
10979 process_stratum_target parameter. Pass it down.
10980 (set_executing): New process_stratum_target parameter. Pass it
10981 down. Adjust reference to 'threads_executing'.
10982 (threads_are_executing): New process_stratum_target parameter.
10983 Adjust reference to 'threads_executing'.
10984 (set_stop_requested, finish_thread_state): New
10985 process_stratum_target parameter. Pass it down.
10986 (switch_to_thread): Also match inferior.
10987 (switch_to_thread): New process_stratum_target parameter. Pass it
10988 down.
10989 (update_threads_executing): Reimplement.
10990 * top.c (quit_force): Pop targets from all inferior.
10991 (gdb_init): Don't call initialize_targets.
10992 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10993 Declare.
10994 (windows_add_thread, windows_delete_thread): Adjust.
10995 (get_windows_debug_event): Rename to ...
10996 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10997 * tracefile-tfile.c (tfile_target_open): Pass down target.
10998 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10999 Forward declare.
11000 (switch_to_thread): Add process_stratum_target parameter.
11001 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11002 parameter. Use it.
11003 (mi_on_resume): Pass target down.
11004 * nat/fork-inferior.c (startup_inferior): Add
11005 process_stratum_target parameter. Pass it down.
11006 * nat/fork-inferior.h (startup_inferior): Add
11007 process_stratum_target parameter.
11008 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11009
11010 2020-01-10 Pedro Alves <palves@redhat.com>
11011
11012 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11013 directly. Instead find the first thread in the thread list and
11014 use switch_to_thread.
11015
11016 2020-01-10 Pedro Alves <palves@redhat.com>
11017
11018 * remote.c (remote_target::remote_add_inferior): Don't bind a
11019 process to the current inferior if the current inferior is already
11020 bound to a process.
11021
11022 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11023 Pedro Alves <palves@redhat.com>
11024
11025 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11026 If no process is specified, return null_ptid instead of
11027 inferior_ptid.
11028 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11029 TARGET_WAITKIND_SIGNALLED with no pid.
11030
11031 2020-01-10 Pedro Alves <palves@redhat.com>
11032
11033 * remote.c (first_remote_resumed_thread): New.
11034 (remote_target::wait_as): Use it as default event_ptid instead of
11035 inferior_ptid.
11036
11037 2020-01-10 Pedro Alves <palves@redhat.com>
11038
11039 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11040
11041 2020-01-10 Pedro Alves <palves@redhat.com>
11042
11043 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11044 not -1.
11045
11046 2020-01-10 Pedro Alves <palves@redhat.com>
11047
11048 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11049 ptid to get_last_target_status.
11050 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11051 ptid to get_last_target_status.
11052 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11053 get_last_target_status.
11054 (info_program_command): Don't pass a target_waitstatus to
11055 get_last_target_status.
11056 * infrun.c (init_wait_for_inferior): Use
11057 nullify_last_target_wait_ptid.
11058 (get_last_target_status): Handle nullptr arguments.
11059 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11060 (print_stop_event): Don't pass a ptid to get_last_target_status.
11061 (normal_stop): Don't pass a ptid to get_last_target_status.
11062 * infrun.h (get_last_target_status, set_last_target_status): Move
11063 comments here and update.
11064 (nullify_last_target_wait_ptid): Declare.
11065 * linux-fork.c (fork_load_infrun_state): Remove local extern
11066 declaration of nullify_last_target_wait_ptid.
11067 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11068 to get_last_target_status.
11069
11070 2020-01-10 Pedro Alves <palves@redhat.com>
11071
11072 * gdbthread.h (scoped_restore_current_thread)
11073 <dont_restore, restore, m_dont_restore>: Declare.
11074 * thread.c (thread_alive): Add assertion. Return bool.
11075 (switch_to_thread_if_alive): New.
11076 (prune_threads): Switch inferior/thread.
11077 (print_thread_info_1): Switch thread before calling target methods.
11078 (scoped_restore_current_thread::restore): New, factored out from
11079 ...
11080 (scoped_restore_current_thread::~scoped_restore_current_thread):
11081 ... this.
11082 (scoped_restore_current_thread::scoped_restore_current_thread):
11083 Add assertion.
11084 (thread_apply_all_command, thread_select): Use
11085 switch_to_thread_if_alive.
11086 * infrun.c (proceed, restart_threads, handle_signal_stop)
11087 (switch_back_to_stepped_thread): Switch current thread before
11088 calling target methods.
11089
11090 2020-01-10 Pedro Alves <palves@redhat.com>
11091
11092 * inferior.c (switch_to_inferior_no_thread): New function,
11093 factored out from ...
11094 (inferior_command): ... here.
11095 * inferior.h (switch_to_inferior_no_thread): Declare.
11096 * mi/mi-main.c (run_one_inferior): Use
11097 switch_to_inferior_no_thread.
11098
11099 2020-01-10 Pedro Alves <palves@redhat.com>
11100
11101 * infcmd.c (kill_command): Remove dead code.
11102
11103 2020-01-10 Pedro Alves <palves@redhat.com>
11104
11105 * remote.c (remote_target::mourn_inferior): No longer check
11106 whether the target is running.
11107
11108 2020-01-10 Pedro Alves <palves@redhat.com>
11109
11110 * corelow.c (core_target::has_execution): Change parameter type to
11111 inferior pointer.
11112 * inferior.c (number_of_live_inferiors): Use
11113 inferior::has_execution instead of target_has_execution_1.
11114 * inferior.h (inferior::has_execution): New.
11115 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11116 inferior::has_execution instead of target_has_execution_1.
11117 * process-stratum-target.c
11118 (process_stratum_target::has_execution): Change parameter type to
11119 inferior pointer. Check the inferior's PID instead of
11120 inferior_ptid.
11121 * process-stratum-target.h
11122 (process_stratum_target::has_execution): Change parameter type to
11123 inferior pointer.
11124 * record-full.c (record_full_core_target::has_execution): Change
11125 parameter type to inferior pointer.
11126 * target.c (target_has_execution_1): Change parameter type to
11127 inferior pointer.
11128 (target_has_execution_current): Adjust.
11129 * target.h (target_ops::has_execution): Change parameter type to
11130 inferior pointer.
11131 (target_has_execution_1): Change parameter type to inferior
11132 pointer. Change return type to bool.
11133 * tracefile.h (tracefile_target::has_execution): Change parameter
11134 type to inferior pointer.
11135
11136 2020-01-10 Pedro Alves <palves@redhat.com>
11137
11138 * exceptions.c (print_flush): Remove current_top_target() check.
11139
11140 2020-01-10 Pedro Alves <palves@redhat.com>
11141
11142 * remote.c (show_remote_exec_file): Show the current inferior's
11143 exec-file instead of the command variable's value.
11144
11145 2020-01-10 Pedro Alves <palves@redhat.com>
11146
11147 * record-full.c (record_full_resume_ptid): New global.
11148 (record_full_target::resume): Set it.
11149 (record_full_wait_1): Use record_full_resume_ptid instead of
11150 inferior_ptid.
11151
11152 2020-01-10 Pedro Alves <palves@redhat.com>
11153
11154 * gdbthread.h (scoped_restore_current_thread)
11155 <dont_restore, restore, m_dont_restore>: Declare.
11156 * thread.c (thread_alive): Add assertion. Return bool.
11157 (switch_to_thread_if_alive): New.
11158 (prune_threads): Switch inferior/thread.
11159 (print_thread_info_1): Switch thread before calling target methods.
11160 (scoped_restore_current_thread::restore): New, factored out from
11161 ...
11162 (scoped_restore_current_thread::~scoped_restore_current_thread):
11163 ... this.
11164 (scoped_restore_current_thread::scoped_restore_current_thread):
11165 Add assertion.
11166 (thread_apply_all_command, thread_select): Use
11167 switch_to_thread_if_alive.
11168
11169 2020-01-10 George Barrett <bob@bob131.so>
11170
11171 * stap-probe.c (stap_modify_semaphore): Don't check for null
11172 semaphores.
11173 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11174 for null semaphores.
11175
11176 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11179 all source windows, and maintain horizontal scroll status while
11180 doing so.
11181
11182 2020-01-09 Tom Tromey <tom@tromey.com>
11183
11184 PR tui/18932:
11185 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11186 update_source_window, not print_source_lines.
11187
11188 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11189
11190 * tui/tui.c (tui_enable): Register tui hooks after calling
11191 tui_display_main.
11192
11193 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11194
11195 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11196
11197 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * thread.c (print_thread_info_1): Fix indentation.
11200
11201 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11202
11203 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11204 unique_xmalloc_ptr outside the if to always free the demangled name.
11205
11206 2020-01-08 Tom Tromey <tromey@adacore.com>
11207
11208 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11209 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11210 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11211 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11212 Remove.
11213 (section_offsets): New typedef.
11214 * symtab.c (fixup_section, get_msymbol_address): Update.
11215 * symmisc.c (dump_msymbols): Update.
11216 * symfile.h (relative_addr_info_to_section_offsets)
11217 (symfile_map_offsets_to_segments): Update.
11218 * symfile.c (build_section_addr_info_from_objfile)
11219 (init_objfile_sect_indices): Update.
11220 (struct place_section_arg): Change type of "offsets".
11221 (place_section): Update.
11222 (relative_addr_info_to_section_offsets): Change type of
11223 "section_offsets". Remove "num_sections" parameter.
11224 (default_symfile_offsets, syms_from_objfile_1)
11225 (set_objfile_default_section_offset): Update.
11226 (reread_symbols): No need to preserve section offsets by hand.
11227 (symfile_map_offsets_to_segments): Change type of "offsets".
11228 * stap-probe.c (relocate_address): Update.
11229 * stabsread.h (process_one_symbol): Update.
11230 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11231 (solib_target_relocate_section_addresses): Update.
11232 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11233 Update.
11234 * solib-frv.c (frv_relocate_main_executable): Update.
11235 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11236 * solib-aix.c (solib_aix_get_section_offsets): Change return
11237 type.
11238 (solib_aix_solib_create_inferior_hook): Update.
11239 * remote.c (remote_target::get_offsets): Update.
11240 * psymtab.c (find_pc_sect_psymtab): Update.
11241 * psympriv.h (struct partial_symbol) <address, text_low,
11242 text_high>: Update.
11243 * objfiles.h (obj_section_offset): Update.
11244 (struct objfile) <section_offsets>: Change type.
11245 <num_sections>: Remove.
11246 (objfile_relocate): Update.
11247 * objfiles.c (entry_point_address_query): Update
11248 (relocate_one_symbol): Change type of "section_offsets".
11249 (objfile_relocate1, objfile_relocate1): Change type of
11250 "new_offsets".
11251 (objfile_rebase1): Update.
11252 * mipsread.c (mipscoff_symfile_read): Update.
11253 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11254 parameter.
11255 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11256 (parse_external, psymtab_to_symtab_1): Update.
11257 * machoread.c (macho_symfile_offsets): Update.
11258 * ia64-tdep.c (ia64_find_unwind_table): Update.
11259 * hppa-tdep.c (read_unwind_info): Update.
11260 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11261 * dwarf2read.c (create_addrmap_from_index)
11262 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11263 (process_psymtab_comp_unit_reader, add_partial_symbol)
11264 (add_partial_subprogram, process_full_comp_unit)
11265 (read_file_scope, read_func_scope, read_lexical_block_scope)
11266 (read_call_site_scope, dwarf2_rnglists_process)
11267 (dwarf2_ranges_process, dwarf2_ranges_read)
11268 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11269 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11270 Update.
11271 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11272 Update.
11273 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11274 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11275 (process_one_symbol): Change type of "section_offsets".
11276 * ctfread.c (get_objfile_text_range): Update.
11277 * coffread.c (coff_symtab_read, enter_linenos)
11278 (process_coff_symbol): Update.
11279 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11280 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11281
11282 2020-01-08 Tom Tromey <tromey@adacore.com>
11283
11284 * dwarf2read.c (parse_macro_definition): Use std::string.
11285 (parse_macro_definition): Likewise.
11286
11287 2020-01-08 Tom Tromey <tromey@adacore.com>
11288
11289 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11290 (ATTR_ALLOC_CHUNK): Remove.
11291
11292 2020-01-08 Tom Tromey <tromey@adacore.com>
11293
11294 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11295
11296 2020-01-08 Tom Tromey <tromey@adacore.com>
11297
11298 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11299 (dwarf2_compute_name, open_dwo_file): Likewise.
11300 (process_enumeration_scope): Use std::vector.
11301 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11302 (partial_die_info::fixup, dwarf2_start_subfile)
11303 (guess_full_die_structure_name, dwarf2_name): Likewise.
11304 (determine_prefix): Update.
11305 (guess_full_die_structure_name): Make return type const.
11306 (partial_die_full_name): Return unique_xmalloc_ptr.
11307 (DW_FIELD_ALLOC_CHUNK): Remove.
11308
11309 2020-01-07 Tom Tromey <tromey@adacore.com>
11310
11311 PR build/24937:
11312 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11313
11314 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11315
11316 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11317
11318 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * stack.c (print_frame_info): Move disassemble_next_line code
11321 inside source_print block.
11322
11323 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11324
11325 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11326 gdb/signals.h, as we are now using native signal symbols.
11327
11328 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11329
11330 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11331 overflow by an early check of content vs threshold.
11332 * tui/tui-source.c (tui_source_window::line_is_displayed):
11333 Likewise.
11334
11335 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11336
11337 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11338
11339 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11340
11341 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11342 export table if no section contains it's RVA.
11343
11344 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11345
11346 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11347
11348 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11349
11350 * source.c (print_source_lines_base): Set last_line_listed.
11351
11352 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11353
11354 * tui/tui-disasm.c: Remove trailing spaces.
11355
11356 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11357 Pedro Alves <palves@redhat.com>
11358
11359 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11360 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11361 (windows_gdb_signal_to_target): New function, uses the above
11362 enumeration to convert GDB internal signal codes to equivalent
11363 Windows codes.
11364 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11365 * windows-nat.c: Include "gdb_wait.h".
11366 (get_windows_debug_event): Extract the fatal exception from the
11367 exit status and convert to the equivalent Posix signal number.
11368 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11369 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11370 * gdbsupport/gdb_wait.c: New file, implements
11371 windows_status_to_termsig.
11372 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11373 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11374
11375 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11376
11377 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11378 show_layout.
11379
11380 2020-01-05 Luis Machado <luis.machado@linaro.org>
11381
11382 * aarch64-linux-nat.c
11383 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11384 and bfd_mach_aarch64.
11385
11386 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11387
11388 * ui-file.c (stdio_file::can_emit_style_escape)
11389 (tee_file::can_emit_style_escape): Ensure style is used also on
11390 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11391 to gdb_stdout.
11392 * main.c (set_gdb_data_directory): Use file style to output the
11393 warning that the given pathname is not a directory.
11394 * top.c (show_history_filename, gdb_safe_append_history)
11395 (show_gdb_datadir): Use file style.
11396
11397 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11398
11399 * solib-target.c (struct lm_info_target):
11400 Change offsets to be a unique_xmalloc_ptr.
11401 (solib_target_relocate_section_addresses): Update.
11402
11403 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11404
11405 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11406
11407 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11408
11409 * MAINTAINERS (Write After Approval): Add myself.
11410
11411 2020-01-02 Luis Machado <luis.machado@linaro.org>
11412
11413 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11414 Cell BE architecture.
11415 * target.h (struct target_ops) <thread_architecture>: Likewise.
11416
11417 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11418
11419 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11420
11421 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11422
11423 * MAINTAINERS (Write After Approval): Add myself.
11424
11425 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11426
11427 * gdbarch.sh: Update copyright year range of generated files.
11428
11429 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11430
11431 Update copyright year range in all GDB files.
11432
11433 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11434
11435 * copyright.py: Convert to Python 3.
11436
11437 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11438
11439 * copyright.py: Adapt after move of gnulib directory from gdb
11440 directory to toplevel directory.
11441
11442 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11443
11444 * copyright.py (main): Exit if run from the wrong directory.
11445
11446 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11447
11448 * top.c (print_gdb_version): Change copyright year to 2020.
11449
11450 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11451
11452 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11453
11454 For older changes see ChangeLog-2019.
11455 \f
11456 Local Variables:
11457 mode: change-log
11458 left-margin: 8
11459 fill-column: 74
11460 version-control: never
11461 coding: utf-8
11462 End:
This page took 0.258155 seconds and 5 git commands to generate.