]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
1bd80b6762e33fd70ed38cd5a5643420cc9a7f1d
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2
3 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4 hook if present.
5
6 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7
8 * gdbarch.c: Regenerate.
9 * gdbarch.h: Regenerate.
10 * gdbarch.sh (report_signal_info): New method.
11 * infrun.c (print_signal_received_reason): Invoke gdbarch
12 report_signal_info hook if present.
13
14 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
15
16 * python/py-registers.c : Add 'unordered_map' include.
17 (gdbpy_new_reggroup): Renamed to...
18 (gdbpy_get_reggroup): ...this. Update to only create register
19 group descriptors when needed.
20 (gdbpy_reggroup_iter_next): Update.
21
22 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * python/py-registers.c (gdbpy_register_object_data): New static
25 global.
26 (gdbpy_register_object_data_init): New function.
27 (gdbpy_new_register_descriptor): Renamed to...
28 (gdbpy_get_register_descriptor): ...this, and update to reuse
29 existing register descriptors where possible.
30 (gdbpy_register_descriptor_iter_next): Update.
31 (gdbpy_initialize_registers): Register new gdbarch data.
32
33 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
34
35 * linux-nat.c (stopped_pids): Make static.
36
37 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
38
39 PR ada/26235
40 * gdbtypes.c (ada_discrete_type_low_bound,
41 ada_discrete_type_high_bound): Handle undefined bounds.
42
43 2020-07-21 Kamil Rytarowski <n54@gmx.com>
44
45 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
46 declaration.
47 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
48 function.
49
50 2020-07-20 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
53 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
54 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
55 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
56 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
57 method.
58
59 2020-07-20 Ludovic Courtès <ludo@gnu.org>
60
61 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
62 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
63 which are deprecated in Guile 3.0.
64 * configure.ac (try_guile_versions): Add "guile-3.0".
65 * configure (try_guile_versions): Regenerate.
66 * NEWS: Update entry.
67
68 2020-07-20 Ludovic Courtès <ludo@gnu.org>
69 Doug Evans <dje@google.com>
70
71 PR gdb/21104
72 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
73 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
74 USING_GUILE_BEFORE_2_2.
75 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
76 Change type to 'scm_t_port_type *'.
77 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
78 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
79 parameter and honor it. Update callers.
80 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
81 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
82 functions.
83 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
84 USING_GUILE_BEFORE_2_2.
85 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
86 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
87 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
88 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
89 and 'SCM_PORT_TYPE'.
90 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
91 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
92 (gdbscm_memory_port_read, gdbscm_memory_port_write)
93 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
94 [!USING_GUILE_BEFORE_2_2]: New functions.
95 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
96 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
97 'gdbscm_memory_port_read'.
98 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
99 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
100 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
101 function.
102 (ioscm_init_memory_port): Remove.
103 (ioscm_init_memory_port_stream): New function
104 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
105 function.
106 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
107 Return scm_from_uint (0).
108 (gdbscm_set_memory_port_read_buffer_size_x)
109 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
110 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
111 Return scm_from_uint (0).
112 (gdbscm_set_memory_port_write_buffer_size_x)
113 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
114 * configure.ac (try_guile_versions): Add "guile-2.2".
115 * configure: Regenerate.
116 * NEWS: Add entry.
117
118 2020-07-18 Tom Tromey <tom@tromey.com>
119
120 * linux-nat.c (linux_multi_process): Remove.
121 (linux_nat_target::supports_multi_process): Return true.
122
123 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * arch/riscv.c (riscv_tdesc_cache): Change map type.
126 (riscv_lookup_target_description): Return pointer out of
127 unique_ptr.
128 * target-descriptions.c (allocate_target_description): Add
129 comment.
130 (target_desc_deleter::operator()): Likewise.
131 * target-descriptions.h (struct target_desc_deleter): Moved to
132 gdbsupport/tdesc.h.
133 (target_desc_up): Likewise.
134
135 2020-07-17 Tom Tromey <tromey@adacore.com>
136
137 * linux-nat.c (linux_nat_target::supports_non_stop)
138 (linux_nat_target::always_non_stop_p): Use "true".
139 (linux_nat_target::supports_disable_randomization): Use "true" and
140 "false".
141
142 2020-07-16 Caroline Tice <cmtice@google.com>
143
144 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
145 (RNGLIST_HEADER_SIZE64): New constant definition.
146 (struct dwop_section_names): Add rnglists_dwo.
147 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
148 (struct loclist_header): Rename to 'loclists_rnglists_header'.
149 (struct dwo_sections): Add rnglists field.
150 (read_attribut_reprocess): Add tag parameter.
151 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
152 (cu_debug_rnglists_section): New function (decl & definition).
153 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
154 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
155 die whose range is being checked; get rnglist section from
156 cu_debug_rnglists_section, to get from either objfile or dwo file as
157 appropriate. Add cases for DW_RLE_base_addressx,
158 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
159 the base address to DW_RLE_offset_pairs (not to all ranges), moving
160 test inside if-condition and updating complaint message.
161 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
162 dwarf2_rnglists_process.
163 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
164 dwarf2_ranges_process.
165 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
166 need_ranges_base and update comment appropriately. Also pass die tag
167 to dwarf2_ranges_read.
168 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
169 need_ranges_base and update comment appropriately. Also pass die tag
170 to dwarf2_ranges_process.
171 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
172 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
173 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
174 need_ranges_base and update comment appropriately. Also pass die tag
175 to read_attribute_reprocess and dwarf2_ranges_read.
176 (read_loclist_header): Rename function to read_loclists_rnglists_header,
177 and update function comment appropriately.
178 (read_loclist_index): Call read_loclists_rnglists_header instead of
179 read_loclist_header.
180 (read_rnglist_index): New function.
181 (read_attribute_reprocess): Add tag parameter. Add code for
182 DW_FORM_rnglistx, passing tag to read_rnglist_index.
183 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
184
185 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
188 being resolved.
189
190 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * arch-utils.c (show_architecture): Update formatting of messages.
193
194 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
195
196 * gdbtypes.h (struct type) <bounds>: Handle array and string
197 types.
198 * ada-lang.c (assign_aggregate): Use type::bounds on
199 array/string type.
200 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
201 * c-varobj.c (c_number_of_children): Likewise.
202 (c_describe_child): Likewise.
203 * eval.c (evaluate_subexp_for_sizeof): Likewise.
204 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
205 (f_type_print_base): Likewise.
206 * f-valprint.c (f77_array_offset_tbl): Likewise.
207 (f77_get_upperbound): Likewise.
208 (f77_print_array_1): Likewise.
209 * guile/scm-type.c (gdbscm_type_range): Likewise.
210 * m2-typeprint.c (m2_array): Likewise.
211 (m2_is_long_set_of_type): Likewise.
212 * m2-valprint.c (get_long_set_bounds): Likewise.
213 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
214 * python/py-type.c (typy_range): Likewise.
215 * rust-lang.c (rust_internal_print_type): Likewise.
216 * type-stack.c (type_stack::follow_types): Likewise.
217 * valarith.c (value_subscripted_rvalue): Likewise.
218 * valops.c (value_cast): Likewise.
219
220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
221
222 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
223 callers to use the equivalent accessor methods.
224
225 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
226
227 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
228 (struct type) <bit_stride>: New method.
229 (TYPE_BIT_STRIDE): Remove.
230 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
231
232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
233
234 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
235 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
236 callers to use the equivalent accessor methods instead.
237
238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
239
240 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
241 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
242 callers to use the equivalent accessor methods instead.
243
244 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
245
246 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
247 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
248 to use dynamic_prop::kind.
249
250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
251
252 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
253 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
254 to get the bound property's kind and check against
255 PROP_UNDEFINED.
256
257 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
258
259 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
260 all callers to use type::range_bounds followed by
261 dynamic_prop::{low,high}.
262
263 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
266 const_val, set_const_val, baton, set_locexpr, set_loclist,
267 set_addr_offset, variant_parts, set_variant_parts,
268 original_type, set_original_type>: New methods.
269 <kind>: Rename to...
270 <m_kind>: ... this. Update all users to use the new methods
271 instead.
272 <data>: Rename to...
273 <m_data>: ... this. Update all users to use the new methods
274 instead.
275
276 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
277
278 * gdbtypes.c (get_discrete_bounds): Return failure if
279 the range type's bounds are not both defined and constant
280 values.
281 (get_array_bounds): Update comment. Remove undefined bound check.
282
283 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
286 the type::bounds method directly.
287
288 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
291 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
292 are used to set the range type's bounds to use set_bounds.
293
294 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
295
296 * exec.c (_initialize_exec): Update exec-file-mismatch help.
297
298 2020-07-10 Pedro Alves <pedro@palves.net>
299
300 * gdbthread.h (inferior_ref): Define.
301 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
302 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
303 * thread.c
304 (scoped_restore_current_thread::restore):
305 Adjust to gdb::ref_ptr.
306 (scoped_restore_current_thread::~scoped_restore_current_thread):
307 Remove manual decref handling.
308 (scoped_restore_current_thread::scoped_restore_current_thread):
309 Adjust to use
310 inferior_ref::new_reference/thread_info_ref::new_reference.
311 Incref the thread before calling get_frame_id instead of after.
312 Let TARGET_CLOSE_ERROR propagate.
313
314 2020-07-10 Pedro Alves <pedro@palves.net>
315
316 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
317 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
318 NOT_AVAILABLE_ERROR.
319 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
320 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
321
322 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
323 Pedro Alves <pedro@palves.net>
324
325 PR gdb/26199
326 * infrun.c (threads_are_resumed_pending_p): Delete.
327 (do_target_wait): Remove threads_are_executing and
328 threads_are_resumed_pending_p checks from the inferior_matches
329 lambda. Update comments.
330
331 2020-07-10 Pedro Alves <pedro@palves.net>
332
333 PR gdb/26199
334 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
335 executing threads.
336
337 2020-07-10 Pedro Alves <pedro@palves.net>
338
339 PR gdb/26199
340 * infrun.c (handle_no_resumed): Handle multiple targets.
341
342 2020-07-10 Pedro Alves <pedro@palves.net>
343
344 PR gdb/26199
345 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
346 target_is_async_p.
347
348 2020-07-10 Pedro Alves <pedro@palves.net>
349
350 PR gdb/26199
351 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
352 threads, not all threads.
353
354 2020-07-10 Pedro Alves <pedro@palves.net>
355
356 PR gdb/26199
357 * remote.c (remote_target::open_1): Pass remote target pointer as
358 data to create_async_event_handler.
359 (remote_async_inferior_event_handler): Mark async event handler
360 before returning if the remote target still has either pending
361 events or unacknowledged notifications.
362
363 2020-07-10 John Baldwin <jhb@FreeBSD.org>
364
365 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
366 declaration.
367 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
368 function.
369
370 2020-07-09 John Baldwin <jhb@FreeBSD.org>
371
372 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
373 inferior_ptid.
374
375 2020-07-09 John Baldwin <jhb@FreeBSD.org>
376
377 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
378 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
379 AT_FREEBSD_PS_STRINGS.
380
381 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
382
383 * auto-load.c (auto_load_objfile_script_1): Convert drive part
384 of debugfile path on Windows.
385
386 2020-07-08 John Baldwin <jhb@FreeBSD.org>
387
388 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
389 argument to 'data'.
390
391 2020-07-08 Tom Tromey <tromey@adacore.com>
392
393 * ada-lang.c (ada_exception_message_1): Use read_memory.
394
395 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 PR python/22748
398 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
399 special handling for inline frames.
400 * findvar.c (value_of_register_lazy): Skip inline frames when
401 creating lazy register values.
402 * frame.c (frame_id_computed_p): Delete definition.
403 * frame.h (frame_id_computed_p): Delete declaration.
404
405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * NEWS: Mention additions to Python API.
408 * python/py-arch.c (archpy_register_groups): New function.
409 (arch_object_methods): Add 'register_groups' method.
410 * python/py-registers.c (reggroup_iterator_object): New struct.
411 (reggroup_object): New struct.
412 (gdbpy_new_reggroup): New function.
413 (gdbpy_reggroup_to_string): New function.
414 (gdbpy_reggroup_name): New function.
415 (gdbpy_reggroup_iter): New function.
416 (gdbpy_reggroup_iter_next): New function.
417 (gdbpy_new_reggroup_iterator): New function
418 (gdbpy_initialize_registers): Register new types.
419 (reggroup_iterator_object_type): Define new Python type.
420 (gdbpy_reggroup_getset): New static global.
421 (reggroup_object_type): Define new Python type.
422 * python/python-internal.h
423
424 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
427 * python/py-arch.c (archpy_registers): New function.
428 (arch_object_methods): Add 'registers' method.
429 * python/py-registers.c: New file.
430 * python/python-internal.h
431 (gdbpy_new_register_descriptor_iterator): Declare.
432 (gdbpy_initialize_registers): Declare.
433 * python/python.c (do_start_initialization): Call
434 gdbpy_initialize_registers.
435 * NEWS: Mention additions to the Python API.
436
437 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * NEWS: Mention new Python API method.
440 * python/py-unwind.c (pending_framepy_architecture): New function.
441 (pending_frame_object_methods): Add architecture method.
442
443 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * gdbarch.c: Regenerate.
446 * gdbarch.h: Regenerate.
447 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
448 (gdbarch_data): Use internal_error for the case where
449 deprecated_set_gdbarch_data was originally needed.
450 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
451 and use passed in obstack.
452 (libunwind_frame_set_descr): Should no longer get back NULL from
453 gdbarch_data.
454 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
455 type.
456 * user-regs.c (user_regs_init): Update parameters, and use passed
457 in obstack.
458 (user_reg_add): Should no longer get back NULL from gdbarch_data.
459 (_initialize_user_regs): Register as a pre-init gdbarch data type.
460
461 2020-07-06 Tom de Vries <tdevries@suse.de>
462
463 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
464 End-Of-Sequence in lte_is_less_than.
465 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
466 "gdb: Don't reorder line table entries too much when sorting".
467
468 2020-07-06 Tom de Vries <tdevries@suse.de>
469
470 PR tui/26205
471 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
472
473 2020-07-05 Tom de Vries <tdevries@suse.de>
474
475 PR build/26187
476 * inferior.h (struct infcall_suspend_state_deleter): If available, use
477 std::uncaught_exceptions instead of deprecated
478 std::uncaught_exception.
479
480 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * macroexp.h (macro_stringify): Return
483 gdb::unique_xmalloc_ptr<char>.
484 * macroexp.c (macro_stringify): Likewise.
485 * macrotab.c (fixup_definition): Update.
486
487 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
490 (lex_one_token): Update.
491 * macroexp.c (struct macro_buffer) <release>: Return
492 gdb::unique_xmalloc_ptr<char>.
493 (macro_stringify): Update.
494 (macro_expand): Update.
495 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
496 * macroexp.h (macro_expand_next): Likewise.
497
498 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
499
500 * macroexp.h (macro_lookup_ftype): Remove.
501 (macro_expand, macro_expand_once, macro_expand_next): Remove
502 lookup function parameters, add scope parameter.
503 * macroexp.c (scan, substitute_args, expand, maybe_expand,
504 macro_expand, macro_expand_once, macro_expand_next): Likewise.
505 * macroscope.h (standard_macro_lookup): Change parameter type
506 to macro_scope.
507 * macroscope.c (standard_macro_lookup): Likewise.
508 * c-exp.y (lex_one_token): Update.
509 * macrocmd.c (macro_expand_command): Likewise.
510 (macro_expand_once_command): Likewise.
511
512 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * inf-loop.c (inferior_event_handler): Remove client_data param.
515 * inf-loop.h (inferior_event_handler): Likewise.
516 * infcmd.c (step_1): Adjust.
517 * infrun.c (proceed): Adjust.
518 (fetch_inferior_event): Remove client_data param.
519 (infrun_async_inferior_event_handler): Adjust.
520 * infrun.h (fetch_inferior_event): Remove `void *` param.
521 * linux-nat.c (handle_target_event): Adjust.
522 * record-btrace.c (record_btrace_handle_async_inferior_event):
523 Adjust.
524 * record-full.c (record_full_async_inferior_event_handler):
525 Adjust.
526 * remote.c (remote_async_inferior_event_handler): Adjust.
527
528 2020-07-01 Tom Tromey <tom@tromey.com>
529
530 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
531 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
532
533 2020-07-01 Tom Tromey <tom@tromey.com>
534
535 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
536 tui_gen_win_info.
537 (tui_win_info::make_window): Merge with
538 tui_gen_win_info::make_window.
539 (tui_win_info::make_visible): Move from tui_gen_win_info.
540 * tui/tui-win.c (tui_win_info::max_width): Move from
541 tui_gen_win_info.
542 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
543 type.
544 <window_factory>: Likewise.
545 * tui/tui-layout.c (tui_win_info::resize): Move from
546 tui_gen_win_info.
547 (make_standard_window): Change return type.
548 (get_locator_window, tui_get_window_by_name): Likewise.
549 (tui_layout_window::apply): Remove a cast.
550 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
551 (struct tui_win_info): Merge with tui_gen_win_info.
552 (struct tui_gen_win_info): Remove.
553
554 2020-07-01 Tom Tromey <tom@tromey.com>
555
556 * tui/tui-stack.h (struct tui_locator_window): Derive from
557 tui_win_info.
558 <do_scroll_horizontal, do_scroll_vertical>: New methods.
559 <can_box>: New method.
560
561 2020-07-01 Tom Tromey <tom@tromey.com>
562
563 * tui/tui-stack.h (struct tui_locator_window): Remove body.
564
565 2020-07-01 Tom Tromey <tom@tromey.com>
566
567 * tui/tui-regs.c (tui_data_window::display_registers_from)
568 (tui_data_window::display_registers_from)
569 (tui_data_window::first_data_item_displayed)
570 (tui_data_window::delete_data_content_windows): Update.
571 (tui_data_window::refresh_window, tui_data_window::no_refresh):
572 Remove.
573 (tui_data_window::check_register_values): Update.
574 (tui_data_item_window::rerender): Add parameters. Update.
575 (tui_data_item_window::refresh_window): Remove.
576 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
577 virtual.
578 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
579 tui_gen_win_info.
580 <refresh_window, max_height, min_height>: Remove.
581 <rerender>: Add parameters.
582 <x, y, visible>: New members.
583 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
584 <m_item_width>: New member.
585
586 2020-07-01 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-regs.c (tui_data_window::show_register_group)
589 (tui_data_window::check_register_values): Update.
590 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
591 from item_no.
592
593 2020-07-01 Tom Tromey <tom@tromey.com>
594
595 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
596 useless "if".
597
598 2020-07-01 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
601 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
602
603 2020-07-01 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
606 * tui/tui-winsource.h (enum tui_line_or_address_kind)
607 (struct tui_line_or_address): Move from tui-data.h.
608 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
609 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
610 (tui_cmd_window, tui_source_window_base, tui_source_window)
611 (tui_disasm_window): Don't declare.
612 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
613 to tui-winsource.h.
614 (SINGLE_KEY): Move to tui-stack.c.
615
616 2020-07-01 Tom Tromey <tom@tromey.com>
617
618 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
619 std::string.
620 * tui/tui-regs.c (class tab_expansion_file): New.
621 (tab_expansion_file::write): New method.
622 (tui_register_format): Change return type. Use
623 tab_expansion_file.
624 (tui_get_register, tui_data_window::display_registers_from)
625 (tui_data_item_window::rerender): Update.
626 * tui/tui-io.h (tui_expand_tabs): Don't declare.
627 * tui/tui-io.c (tui_expand_tabs): Remove.
628
629 2020-07-01 Tom Tromey <tom@tromey.com>
630
631 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
632
633 2020-07-01 Fangrui Song <maskray@google.com>
634
635 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
636
637 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
638
639 * dwarf2/read.c (set_die_type): Removed conditions to restrict
640 forms for DW_AT_associated and DW_AT_allocated attributes,
641 which is already checked in function attr_to_dynamic_prop.
642
643 2020-06-30 Tom Tromey <tromey@adacore.com>
644
645 * dwarf2/read.c (quirk_rust_enum): Correctly call
646 alloc_rust_variant for default-less enum.
647
648 2020-06-30 Tom Tromey <tromey@adacore.com>
649
650 PR build/26183:
651 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
652 gdb::to_string.
653
654 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
655
656 * gdbarch.sh (displaced_step_copy_insn): Update doc.
657 * gdbarch.h: Re-generate.
658
659 2020-06-28 Tom Tromey <tom@tromey.com>
660
661 * command.h (cmd_types): Remove.
662 (cmd_type): Don't declare.
663 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
664 typedef.
665 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
666 * cli/cli-decode.c (cmd_type): Remove.
667
668 2020-06-27 Pedro Alves <palves@redhat.com>
669
670 * fork-child.c (prefork_hook): Adjust.
671 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
672 Delete.
673 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
674 * inferior.c (inferior::set_tty, inferior::tty): New methods.
675 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
676 Remove declarations.
677 (struct inferior) <set_tty, tty>: New methods.
678 (struct inferior) <terminal>: Rename to ...
679 (struct inferior) <m_terminal>: ... this and make private.
680 * main.c (captured_main_1): Adjust.
681 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
682 (mi_cmd_inferior_tty_show): Adjust.
683 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
684 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
685
686 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
687
688 * configure.ac: Add --enable-libctf: handle --disable-static
689 properly.
690 * acinclude.m4: sinclude ../config/enable.m4.
691 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
692 (LIBCTF): Substitute in.
693 (CTF_DEPS): New, likewise.
694 (CLIBS): libctf needs symbols from libbfd: move earlier.
695 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
696 flags.
697 * ctfread.c: Surround in ENABLE_LIBCTF.
698 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
699 * configure: Regenerate.
700 * config.in: Likewise.
701
702 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
703
704 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
705
706 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
707
708 * inferior.h (struct inferior) <terminal>: Change type to
709 gdb::unique_xmalloc_ptr<char>.
710 * inferior.c (inferior::~inferior): Don't free inf->terminal.
711 * infcmd.c (set_inferior_io_terminal): Don't free terminal
712 field, adjust to unique pointer.
713 (get_inferior_io_terminal): Adjust to unique pointer.
714
715 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * riscv-tdep.c (riscv_print_registers_info): Loop over all
718 registers, not just the known core set of registers.
719
720 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
723 fflags, frm, and fcsr registers.
724 (riscv_register_reggroup_p): Remove unknown CSRs from save and
725 restore groups.
726 (riscv_tdesc_unknown_reg): New function.
727 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
728 tdesc_use_registers.
729 * riscv-tdep.h (struct gdbarch_tdep): Add
730 unknown_csrs_first_regnum, unknown_csrs_count,
731 duplicate_fflags_regnum, duplicate_frm_regnum, and
732 duplicate_fcsr_regnum fields.
733
734 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * target-descriptions.c (tdesc_use_registers): Add new parameter a
737 callback, use the callback (when not null) to help number unknown
738 registers.
739 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
740 (tdesc_use_registers): Add extra parameter to declaration.
741
742 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
745 in the file.
746 (class riscv_pending_register_alias): Likewise.
747 (riscv_register_feature::register_info): Change 'required_p' field
748 to 'required', and change its type. Add 'check' member function.
749 (riscv_register_feature::register_info::check): Define new member
750 function.
751 (riscv_xreg_feature): Change initialisation of 'required' field.
752 (riscv_freg_feature): Likewise.
753 (riscv_virtual_feature): Likewise.
754 (riscv_csr_feature): Likewise.
755 (riscv_check_tdesc_feature): Take extra parameter, the csr
756 tdesc_feature, rewrite the function to use the new
757 riscv_register_feature::register_info::check function.
758 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
759
760 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * features/Makefile: Remove all references to the deleted files
763 below.
764 * features/riscv/32bit-csr.c: Deleted.
765 * features/riscv/32bit-csr.xml: Deleted.
766 * features/riscv/64bit-csr.c: Deleted.
767 * features/riscv/64bit-csr.xml: Deleted.
768 * features/riscv/rebuild-csr-xml.sh: Deleted.
769
770 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
773 whitespace error for declaration of names member variable.
774 (struct riscv_register_feature): Add new prefer_first_name member
775 variable, and fix whitespace error in declaration of registers.
776 (riscv_xreg_feature): Initialize prefer_first_name field.
777 (riscv_freg_feature): Likewise.
778 (riscv_virtual_feature): Likewise.
779 (riscv_csr_feature): Likewise.
780 (riscv_register_name): Expand on comments. Remove register name
781 modifications for CSR and virtual registers.
782
783 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
786 errors.
787
788 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
791 riscv-opc.h.
792 (class riscv_pending_register_alias): New class.
793 (riscv_check_tdesc_feature): Take vector of pending aliases and
794 populate it as appropriate.
795 (riscv_setup_register_aliases): Delete.
796 (riscv_gdbarch_init): Create vector of pending aliases and pass it
797 to riscv_check_tdesc_feature in all cases. Use the vector to
798 create the register aliases.
799
800 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
801
802 * sol2-tdep.c (sol2_static_transform_name): Remove.
803 (sol2_init_abi): Don't register it.
804 * gdbarch.sh (static_transform_name): Remove.
805 * gdbarch.c, gdbarch.h: Regenerate.
806
807 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
808 gdbarch_static_transform_name.
809 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
810 * stabsread.c (define_symbol) <'X'>: Remove.
811 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
812 handling.
813 <'V'>: Likewise.
814 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
815 <'S'>: Remove call to gdbarch_static_transform_name.
816
817 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
818
819 * procfs.c (procfs_pre_trace): New function.
820 (procfs_target::create_inferior): Pass it to fork_inferior.
821
822 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
823
824 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
825 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
826 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
827 sol2-tdep.o, sparc-sol2-tdep.o.
828 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
829 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
830 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
831 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
832
833 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
834
835 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
836 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
837 Call sol2_init_abi.
838 Remove calls to set_gdbarch_skip_solib_resolver,
839 set_gdbarch_core_pid_to_str.
840 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
841 (i386_sol2_static_transform_name): Remove.
842 (i386_sol2_init_abi): Call sol2_init_abi.
843 Remove calls to set_gdbarch_sofun_address_maybe_missing,
844 set_gdbarch_static_transform_name,
845 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
846 Use sol2_sigtramp_p.
847 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
848 (sol2_sigtramp_p): New function.
849 (sol2_static_transform_name): New function.
850 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
851 (sol2_init_abi): New function.
852 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
853 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
854 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
855 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
856 (sparc_sol2_static_transform_name): Remove.
857 (sparc32_sol2_init_abi): Call sol2_init_abi.
858 Remove calls to set_gdbarch_sofun_address_maybe_missing,
859 set_gdbarch_static_transform_name,
860 set_gdbarch_skip_solib_resolver,
861 set_gdbarch_core_pid_to_str.
862 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
863 (sparc_sol2_static_transform_name): Remove
864 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
865 call sol2_sigtramp_p.
866 (sparc64_sol2_init_abi): Call sol2_init_abi.
867 Remove calls to set_gdbarch_sofun_address_maybe_missing,
868 set_gdbarch_static_transform_name,
869 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
870
871 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
872
873 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
874 * exec.c (validate_exec_file): If from_tty, set both
875 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
876 * symfile.c (symbol_file_add_with_addrs): if always_confirm
877 and from_tty, unconditionally ask a confirmation.
878
879 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * target-descriptions.c (tdesc_architecture_name): Protect against
882 NULL pointer dereference.
883 (maint_print_xml_tdesc_cmd): New function.
884 (_initialize_target_descriptions): Register new 'maint print
885 xml-tdesc' command and give it the filename completer.
886 * NEWS: Mention new 'maint print xml-tdesc' command.
887
888 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * target-descriptions.c (class tdesc_compatible_info): New class.
891 (struct target_desc): Change type of compatible vector.
892 (tdesc_compatible_p): Update for change in type of
893 target_desc::compatible.
894 (tdesc_compatible_info_list): New function.
895 (tdesc_compatible_info_arch_name): New function.
896 (tdesc_add_compatible): Update for change in type of
897 target_desc::compatible.
898 (print_c_tdesc::visit_pre): Likewise.
899
900 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
903 whitespace to underscore.
904 (maint_print_c_tdesc_cmd): Use fake filename for target
905 descriptions that came from the target.
906 (_initialize_target_descriptions): Add filename command completion
907 for 'maint print c-tdesc'.
908
909 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
910
911 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
912 lines.
913
914 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
915
916 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
917 lines.
918 (dwarf2_find_location_expression): Likewise.
919 (call_site_parameter_matches): Likewise.
920 (dwarf2_compile_expr_to_ax): Likewise.
921 (disassemble_dwarf_expression): Likewise.
922 (loclist_describe_location): Likewise.
923
924 2020-06-23 Pedro Alves <palves@redhat.com>
925
926 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
927 progspace-and-thread.h. Include scoped-mock-context.h instead.
928 (register_to_value_test): Use scoped_mock_context.
929 * regcache.c: Include "scoped-mock-context.h".
930 (cooked_read_test): Don't error out if a target is already pushed.
931 Use scoped_mock_context. Adjust.
932 * scoped-mock-context.h: New file.
933
934 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
937 initializer.
938 (ada_language::is_string_type_p): New member function.
939 * c-lang.c (c_language_data): Delete la_is_string_type_p
940 initializer.
941 (cplus_language_data): Likewise.
942 (asm_language_data): Likewise.
943 (minimal_language_data): Likewise.
944 * d-lang.c (d_language_data): Likewise.
945 * f-lang.c (f_is_string_type_p): Delete function, implementation
946 moved to f_language::is_string_type_p.
947 (f_language_data): Delete la_is_string_type_p initializer.
948 (f_language::is_string_type_p): New member function,
949 implementation from f_is_string_type_p.
950 * go-lang.c (go_is_string_type_p): Delete function, implementation
951 moved to go_language::is_string_type_p.
952 (go_language_data): Delete la_is_string_type_p initializer.
953 (go_language::is_string_type_p): New member function,
954 implementation from go_is_string_type_p.
955 * language.c (language_defn::is_string_type_p): Define new member
956 function.
957 (default_is_string_type_p): Make static, add comment copied from
958 header file.
959 (unknown_language_data): Delete la_is_string_type_p initializer.
960 (unknown_language::is_string_type_p): New member function.
961 (auto_language_data): Delete la_is_string_type_p initializer.
962 (auto_language::is_string_type_p): New member function.
963 * language.h (language_data): Delete la_is_string_type_p field.
964 (language_defn::is_string_type_p): Declare new function.
965 (default_is_string_type_p): Delete desclaration, move comment to
966 definition.
967 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
968 moved to m2_language::is_string_type_p.
969 (m2_language_data): Delete la_is_string_type_p initializer.
970 (m2_language::is_string_type_p): New member function,
971 implementation from m2_is_string_type_p.
972 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
973 initializer.
974 * opencl-lang.c (opencl_language_data): Likewise.
975 * p-lang.c (pascal_is_string_type_p): Delete function,
976 implementation moved to pascal_language::is_string_type_p.
977 (pascal_language_data): Delete la_is_string_type_p initializer.
978 (pascal_language::is_string_type_p): New member function,
979 implementation from pascal_is_string_type_p.
980 * rust-lang.c (rust_is_string_type_p): Delete function,
981 implementation moved to rust_language::is_string_type_p.
982 (rust_language_data): Delete la_is_string_type_p initializer.
983 (rust_language::is_string_type_p): New member function,
984 implementation from rust_is_string_type_p.
985 * valprint.c (val_print_scalar_or_string_type_p): Update call to
986 is_string_type_p.
987
988 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * ada-lang.c (ada_language_data): Delete la_print_typedef
991 initializer.
992 (ada_language::print_typedef): New member function.
993 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
994 (cplus_language_data): Likewise.
995 (asm_language_data): Likewise.
996 (minimal_language_data): Likewise.
997 * d-lang.c (d_language_data): Likewise.
998 * f-lang.c (f_language_data): Likewise.
999 (f_language::print_typedef): New member function.
1000 * go-lang.c (go_language_data): Delete la_print_typedef
1001 initializer.
1002 * language.c (language_defn::print_typedef): Define member
1003 function.
1004 (unknown_language_data): Delete la_print_typedef initializer.
1005 (unknown_language::print_typedef): New member function.
1006 (auto_language_data): Delete la_print_typedef initializer.
1007 (auto_language::print_typedef): New member function.
1008 * language.h (language_data): Delete la_print_typedef field.
1009 (language_defn::print_typedef): Declare new member function.
1010 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1011 (default_print_typedef): Delete declaration.
1012 * m2-lang.c (m2_language_data): Delete la_print_typedef
1013 initializer.
1014 (m2_language::print_typedef): New member function.
1015 * objc-lang.c (objc_language_data): Delete la_print_typedef
1016 initializer.
1017 * opencl-lang.c (opencl_language_data): Likewise.
1018 * p-lang.c (pascal_language_data): Likewise.
1019 (pascal_language::print_typedef): New member function.
1020 * rust-lang.c (rust_print_typedef): Delete function,
1021 implementation moved to rust_language::print_typedef.
1022 (rust_language): Delete la_print_typedef initializer.
1023 (rust_language::print_typedef): New member function,
1024 implementation from rust_print_typedef.
1025 * typeprint.c (default_print_typedef): Delete.
1026
1027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1030 (ada_language::printstr): New member function.
1031 * c-lang.c (c_language_data): Delete la_printstr initializer.
1032 (cplus_language_data): Likewise.
1033 (asm_language_data): Likewise.
1034 (minimal_language_data): Likewise.
1035 * d-lang.c (d_language_data): Likewise.
1036 * f-lang.c (f_printstr): Rename to f_language::printstr.
1037 (f_language_data): Delete la_printstr initializer.
1038 (f_language::printstr): New member function, implementation from
1039 f_printstr.
1040 * go-lang.c (go_language_data): Delete la_printstr initializer.
1041 * language.c (language_defn::printstr): Define new member
1042 function.
1043 (unk_lang_printstr): Delete.
1044 (unknown_language_data): Delete la_printstr initializer.
1045 (unknown_language::printstr): New member function.
1046 (auto_language_data): Delete la_printstr initializer.
1047 (auto_language::printstr): New member function.
1048 * language.h (language_data): Delete la_printstr field.
1049 (language_defn::printstr): Declare new member function.
1050 (LA_PRINT_STRING): Update call to printstr.
1051 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1052 (m2_language_data): Delete la_printstr initializer.
1053 (m2_language::printstr): New member function, implementation from
1054 m2_printstr.
1055 * objc-lang.c (objc_language_data): Delete la_printstr
1056 initializer.
1057 * opencl-lang.c (opencl_language_data): Likewise.
1058 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1059 (pascal_language_data): Delete la_printstr initializer.
1060 (pascal_language::printstr): New member function, implementation
1061 from pascal_printstr.
1062 * p-lang.h (pascal_printstr): Delete declaration.
1063 * rust-lang.c (rust_printstr): Update header comment.
1064 (rust_language_data): Delete la_printstr initializer.
1065 (rust_language::printstr): New member function.
1066
1067 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1070 (ada_language::printchar): New member function.
1071 * c-lang.c (c_language_data): Delete la_printchar initializer.
1072 (cplus_language_data): Likewise.
1073 (asm_language_data): Likewise.
1074 (minimal_language_data): Likewise.
1075 * d-lang.c (d_language_data): Likewise.
1076 * f-lang.c (f_printchar): Rename to f_language::printchar.
1077 (f_language_data): Delete la_printchar initializer.
1078 (f_language::printchar): New member function, implementation from
1079 f_printchar.
1080 * go-lang.c (go_language_data): Delete la_printchar initializer.
1081 * language.c (unk_lang_printchar): Delete.
1082 (language_defn::printchar): Define new member function.
1083 (unknown_language_data): Delete la_printchar initializer.
1084 (unknown_language::printchar): New member function.
1085 (auto_language_data): Delete la_printchar initializer.
1086 (auto_language::printchar): New member function.
1087 * language.h (language_data): Delete la_printchar field.
1088 (language_defn::printchar): Declare new member function.
1089 (LA_PRINT_CHAR): Update call to printchar.
1090 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1091 (m2_language::printchar): New member function.
1092 * objc-lang.c (objc_language_data): Delete la_printchar
1093 initializer.
1094 * opencl-lang.c (opencl_language_data): Likewise.
1095 * p-lang.c (pascal_language_data): Delete la_printchar
1096 initializer.
1097 (pascal_language::printchar): New member function.
1098 * rust-lang.c (rust_printchar): Rename to
1099 rust_language::printchar.
1100 (rust_language_data): Delete la_printchar initializer.
1101 (rust_language::printchar): New member function, implementation
1102 from rust_printchar.
1103
1104 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1107 (ada_language_data): Delete la_emitchar initializer.
1108 (ada_language::emitchar): New member function, implementation from
1109 emit_char.
1110 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1111 (cplus_language_data): Likewise.
1112 (asm_language_data): Likewise.
1113 (minimal_language_data): Likewise.
1114 * d-lang.c (d_language_data): Likewise.
1115 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1116 (f_language_data): Delete la_emitchar initializer.
1117 (f_language::emitchar): New member function, implementation from
1118 f_emit_char.
1119 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1120 * language.c (unk_lang_emit_char): Delete.
1121 (language_defn::emitchar): New member function definition.
1122 (unknown_language_data): Delete la_emitchar initializer.
1123 (unknown_language::emitchar): New member function.
1124 (auto_language_data): Delete la_emitchar initializer.
1125 (auto_language::emitchar): New member function.
1126 * language.h (language_data): Delete la_emitchar field.
1127 (language_defn::emitchar): New member field declaration.
1128 (LA_EMIT_CHAR): Update call to emitchar.
1129 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1130 (m2_language_data): Delete la_emitchar initializer.
1131 (m2_language::emitchar): New member function, implementation from
1132 m2_emit_char.
1133 * objc-lang.c (objc_language_data): Delete la_emitchar
1134 initializer.
1135 * opencl-lang.c (opencl_language_data): Likewise.
1136 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1137 (pascal_language_data): Delete la_emitchar initializer.
1138 (pascal_language::emitchar): New member function, implementation
1139 from pascal_emit_char.
1140 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1141 (rust_language_data): Delete la_emitchar initializer.
1142 (rust_language::emitchar): New member function, implementation
1143 from rust_emitchar.
1144
1145 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1148 (ada_language_data): Delete la_post_parser initializer.
1149 (ada_language::post_parser): New member function.
1150 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1151 (cplus_language_data): Likewise.
1152 (asm_language_data): Likewise.
1153 (minimal_language_data): Likewise.
1154 * d-lang.c (d_language_data): Likewise.
1155 * f-lang.c (f_language_data): Likewise.
1156 * go-lang.c (go_language_data): Likewise.
1157 * language.c (unknown_language_data): Likewise.
1158 (auto_language_data): Likewise.
1159 * language.h (language_data): Delete la_post_parser field.
1160 (language_defn::post_parser): New member function.
1161 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1162 * objc-lang.c (objc_language_data): Likewise.
1163 * opencl-lang.c (opencl_language_data): Likewise.
1164 * p-lang.c (pascal_language_data): Likewise.
1165 * parse.c (parse_exp_in_context): Update call to post_parser.
1166 (null_post_parser): Delete definition.
1167 * parser-defs.h (null_post_parser): Delete declaration.
1168 * rust-lang.c (rust_language_data): Delete la_post_parser
1169 initializer.
1170
1171 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * ada-lang.c (parse): Rename to ada_language::parser.
1174 (ada_language_data): Delete la_parser initializer.
1175 (ada_language::parser): New member function, implementation from
1176 parse.
1177 * c-lang.c (c_language_data): Delete la_parser initializer.
1178 (cplus_language_data): Likewise.
1179 (asm_language_data): Likewise.
1180 (minimal_language_data): Likewise.
1181 * d-lang.c (d_language_data): Likewise.
1182 (d_language::parser): New member function.
1183 * f-lang.c (f_language_data): Delete la_parser initializer.
1184 (f_language::parser): New member function.
1185 * go-lang.c (go_language_data): Delete la_parser initializer.
1186 (go_language::parser): New member function.
1187 * language.c (unk_lang_parser): Delete.
1188 (language_defn::parser): Define new member function.
1189 (unknown_language_data): Delete la_parser initializer.
1190 (unknown_language::parser): New member function.
1191 (auto_language_data): Delete la_parser initializer.
1192 (auto_language::parser): New member function.
1193 * language.h (language_data): Delete la_parser field.
1194 (language_defn::parser): Declare new member function.
1195 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1196 (m2_language::parser): New member function.
1197 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1198 * opencl-lang.c (opencl_language_data): Likewise.
1199 * p-lang.c (pascal_language_data): Likewise.
1200 (pascal_language::parser): New member function.
1201 * parse.c (parse_exp_in_context): Update call to parser.
1202 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1203 (rust_language::parser): New member function.
1204
1205 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * top.c (print_gdb_configuration): Print --with-python-libdir
1208 configuration value.
1209
1210 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1211
1212 * NEWS: Mention change to the alias command.
1213
1214 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1215
1216 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1217 (alias_command_completer)
1218 (make_alias_options_def_group): New functions.
1219 (alias_opts, alias_option_defs): New struct and array.
1220 (alias_usage_error): Update usage.
1221 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1222 Use option framework.
1223 (_initialize_cli_cmds): Update alias command help.
1224 Update aliases command help.
1225 (show_user):
1226 Add NULL for new default_args lookup_cmd argument.
1227 (valid_command_p): Rename to validate_aliased_command.
1228 Add NULL for new default_args lookup_cmd argument. Verify that the
1229 aliased_command has no default args.
1230 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1231 (lookup_cmd_1, lookup_cmd): New argument default_args.
1232 (add_alias_cmd):
1233 Add NULL for new default_args lookup_cmd argument.
1234 (print_help_for_command): Show default args under the layout
1235 alias some_alias = some_aliased_cmd some_alias_default_arg.
1236 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1237 xfree default_args in destructor.
1238 * cli/cli-script.c (process_next_line, do_define_command):
1239 Add NULL for new default_args lookup_cmd argument.
1240 * command.h: Declare new default_args argument in lookup_cmd
1241 and lookup_cmd_1.
1242 * completer.c (complete_line_internal_1):
1243 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1244 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1245 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1246 Likewise.
1247 * infcmd.c (_initialize_infcmd): Likewise.
1248 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1249 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1250 * python/py-param.c (add_setshow_generic): Likewise.
1251 * remote.c (_initialize_remote): Likewise.
1252 * top.c (execute_command): Prepend default_args if command has some.
1253 (set_verbose):
1254 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1255 * tracepoint.c (validate_actionline, encode_actions_1):
1256 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1257
1258 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1259
1260 * jit.c (jit_read_descriptor): Use bool as the return type.
1261 (jit_breakpoint_re_set_internal): Use bool as the return type.
1262 Invert the return value logic; return true if the jit breakpoint
1263 has been successfully initialized.
1264 (jit_inferior_init): Update the call to
1265 jit_breakpoint_re_set_internal.
1266
1267 2020-06-22 Pedro Alves <palves@redhat.com>
1268
1269 PR gdb/25939
1270 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1271 Use the current inferior instead. Don't return
1272 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1273 wait again.
1274 * sol-thread.c (sol_thread_target::wait): Don't reference
1275 inferior_ptid.
1276 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1277 (sol_update_thread_list_callback): Use the current inferior's pid
1278 instead of inferior_ptid.
1279
1280 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1281
1282 * procfs.c: Cleanup many comments.
1283
1284 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1285 (AFTER_WATCHFLAG): Replace by value.
1286
1287 (MAIN_PROC_NAME_FORMAT): Inline ...
1288 (create_procinfo): ... here.
1289
1290 (procfs_debug_inferior): Remove SYS_exec handling.
1291 (syscall_is_exec): Likewise.
1292 (procfs_set_exec_trap): Likewise.
1293
1294 (syscall_is_lwp_exit): Inline in callers.
1295 (syscall_is_exit): Likewise.
1296 (syscall_is_exec): Likewise.
1297 (syscall_is_lwp_create): Likewise.
1298
1299 (invalidate_cache): Remove #if 0 code.
1300
1301 (make_signal_thread_runnable): Remove.
1302 (procfs_target::resume): Remove #if 0 code.
1303
1304 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1305
1306 PR gdb/25939
1307 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1308 call ...
1309 (procfs_target::create_inferior): ... here.
1310
1311 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1312
1313 * exec.c (validate_exec_file): Ensure the build-id is up to
1314 date by calling reopen_exec_file (that checks file timestamp
1315 to decide to re-read the file).
1316
1317 2020-06-18 Pedro Alves <palves@redhat.com>
1318
1319 PR gdb/25412
1320 * gdbthread.h (delete_thread, delete_thread_silent)
1321 (find_thread_ptid): Update comments.
1322 * thread.c (current_thread_): New global.
1323 (is_current_thread): Move higher, and reimplement.
1324 (inferior_thread): Reimplement.
1325 (set_thread_exited): Use bool. Add assertions.
1326 (add_thread_silent): Simplify thread-reuse handling by always
1327 calling delete_thread.
1328 (delete_thread): Remove intro comment.
1329 (find_thread_ptid): Skip exited threads.
1330 (switch_to_thread_no_regs): Write to current_thread_.
1331 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1332 INFERIOR_PTID. Clear current_thread_.
1333
1334 2020-06-18 Pedro Alves <palves@redhat.com>
1335
1336 * aix-thread.c (pd_update): Use switch_to_thread.
1337
1338 2020-06-18 Pedro Alves <palves@redhat.com>
1339
1340 * ravenscar-thread.c (ravenscar_thread_target): Update.
1341 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1342 (ravenscar_thread_target::add_active_thread): ... this. Don't
1343 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1344 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1345
1346 2020-06-18 Pedro Alves <palves@redhat.com>
1347
1348 * nat/windows-nat.c (current_windows_thread): Remove.
1349 * nat/windows-nat.h (current_windows_thread): Remove.
1350 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1351 Adjust.
1352 (display_selectors): Adjust to fetch the current
1353 windows_thread_info based on inferior_ptid.
1354 (fake_create_process): No longer write to current_windows_thread.
1355 (windows_nat_target::get_windows_debug_event):
1356 Don't set inferior_ptid or current_windows_thread.
1357 (windows_nat_target::wait): Adjust to not rely on
1358 current_windows_thread.
1359 (do_initial_windows_stuff): Now a method of windows_nat_target.
1360 Switch to the last_ptid thread.
1361 (windows_nat_target::attach): Adjust.
1362 (windows_nat_target::detach): Use switch_to_no_thread instead of
1363 writing to inferior_ptid directly.
1364 (windows_nat_target::create_inferior): Adjust.
1365
1366 2020-06-18 Pedro Alves <palves@redhat.com>
1367
1368 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1369
1370 2020-06-18 Pedro Alves <palves@redhat.com>
1371
1372 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1373 after creating it, instead of writing to inferior_ptid. Don't
1374 write to inferior_ptid.
1375
1376 2020-06-18 Pedro Alves <palves@redhat.com>
1377
1378 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1379
1380 2020-06-18 Pedro Alves <palves@redhat.com>
1381
1382 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1383 it, instead of writing to inferior_ptid.
1384
1385 2020-06-18 Pedro Alves <palves@redhat.com>
1386
1387 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1388 to inferior_ptid.
1389
1390 2020-06-18 Pedro Alves <palves@redhat.com>
1391
1392 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1393 instead of writing to inferior_ptid directly.
1394
1395 2020-06-18 Pedro Alves <palves@redhat.com>
1396
1397 * corelow.c (core_target::close): Use switch_to_no_thread instead
1398 of writing to inferior_ptid directly.
1399 (add_to_thread_list, core_target_open): Use switch_to_thread
1400 instead of writing to inferior_ptid directly.
1401
1402 2020-06-18 Pedro Alves <palves@redhat.com>
1403
1404 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1405 inferior_ptid.
1406 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1407 inferior_ptid.
1408 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1409 inferior_ptid directly.
1410 (darwin_nat_target::init_thread_list): Switch to thread, instead
1411 of writing to inferior_ptid.
1412 (darwin_nat_target::attach): Don't write to inferior_ptid.
1413 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1414
1415 2020-06-18 Pedro Alves <palves@redhat.com>
1416
1417 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1418 thread.
1419 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1420 Instead use switch_to_thread.
1421 (gnu_nat_target::detach): Use switch_to_no_thread
1422 instead of writing to inferior_ptid directly. Used passed-in
1423 inferior instead of looking up the inferior by pid.
1424
1425 2020-06-18 Pedro Alves <palves@redhat.com>
1426
1427 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1428 inferior_ptid.
1429
1430 2020-06-18 Pedro Alves <palves@redhat.com>
1431
1432 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1433 inferior_ptid.
1434 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1435 thread.
1436 (nto_procfs_target::detach): Avoid referencing
1437 inferior_ptid. Use switch_to_no_thread instead of writing to
1438 inferior_ptid directly.
1439 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1440 instead of writing to inferior_ptid directly.
1441 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1442 to thread.
1443
1444 2020-06-18 Pedro Alves <palves@redhat.com>
1445
1446 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1447 after creating it, instead of writing to inferior_ptid.
1448 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1449 to inferior_ptid directly.
1450 (gdbsim_target::wait): Don't write to inferior_ptid.
1451
1452 2020-06-18 Pedro Alves <palves@redhat.com>
1453
1454 * remote.c (remote_target::remote_notice_new_inferior): Use
1455 switch_to_thread instead of writing to inferior_ptid directly.
1456 (remote_target::add_current_inferior_and_thread): Use
1457 switch_to_no_thread instead of writing to inferior_ptid directly.
1458 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1459 and switch_to_thread instead of using set_current_inferior or
1460 writing to inferior_ptid directly.
1461
1462 2020-06-18 Pedro Alves <palves@redhat.com>
1463
1464 * tracectf.c (ctf_target_open): Switch to added thread instead of
1465 writing to inferior_ptid directly.
1466 (ctf_target::close): Use switch_to_no_thread instead of writing to
1467 inferior_ptid directly.
1468
1469 2020-06-18 Pedro Alves <palves@redhat.com>
1470
1471 * tracefile-tfile.c (tfile_target_open): Don't write to
1472 inferior_ptid directly, instead switch to added thread.
1473 (tfile_target::close): Use switch_to_no_thread instead of writing
1474 to inferior_ptid directly.
1475
1476 2020-06-18 Pedro Alves <palves@redhat.com>
1477
1478 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1479 (procfs_target::detach): Use switch_to_no_thread
1480 instead of writing to inferior_ptid directly.
1481 (do_attach): Change return type to void. Switch to the added
1482 thread.
1483 (procfs_target::create_inferior): Switch to the added thread.
1484 (procfs_do_thread_registers): Don't write to inferior_ptid.
1485
1486 2020-06-18 Pedro Alves <palves@redhat.com>
1487
1488 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1489 of writing to inferior_ptid.
1490 (scoped_restore_exited_inferior): Delete.
1491 (handle_vfork_child_exec_or_exit): Simplify using
1492 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1493 instead of writing to inferior_ptid.
1494 (THREAD_STOPPED_BY): Delete.
1495 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1496 (thread_stopped_by_hw_breakpoint): Delete.
1497 (save_waitstatus): Use
1498 scoped_restore_current_thread+switch_to_thread, and call
1499 target_stopped_by_watchpoint instead of
1500 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1501 instead of thread_stopped_by_sw_breakpoint, and
1502 target_stopped_by_hw_breakpoint instead of
1503 thread_stopped_by_hw_breakpoint.
1504 (handle_inferior_event)
1505 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1506 inferior_ptid directly, nor
1507 set_current_inferior/set_current_program_space. Use
1508 switch_to_thread / switch_to_inferior_no_thread instead.
1509
1510 2020-06-18 Pedro Alves <palves@redhat.com>
1511
1512 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1513 instead of writing to inferior_ptid.
1514
1515 2020-06-18 Pedro Alves <palves@redhat.com>
1516
1517 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1518 added thread.
1519 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1520 to the added thread.
1521 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1522 instead of writing to inferior_ptid.
1523
1524 2020-06-18 Pedro Alves <palves@redhat.com>
1525
1526 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1527 (register_to_value_test): Mock a program_space too. Heap-allocate
1528 the address space. Don't write to inferior_ptid. Use
1529 switch_to_thread instead.
1530
1531 2020-06-18 Pedro Alves <palves@redhat.com>
1532
1533 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1534 Delete.
1535 (find_signalled_thread()): New, factored out from
1536 linux_make_corefile_notes and adjusted to handle exited threads.
1537 (linux_make_corefile_notes): Adjust to use the new
1538 find_signalled_thread.
1539
1540 2020-06-18 Pedro Alves <palves@redhat.com>
1541
1542 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1543 of saving/restoring inferior_ptid.
1544
1545 2020-06-17 Tom Tromey <tom@tromey.com>
1546
1547 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1548 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1549 declare.
1550 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1551
1552 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1555 of partial symtabs.
1556
1557 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * regformats/reg-arm.dat: Remove.
1560 * regformats/reg-bfin.dat: Remove.
1561 * regformats/reg-cris.dat: Remove.
1562 * regformats/reg-crisv32.dat: Remove.
1563 * regformats/reg-m32r.dat: Remove.
1564 * regformats/reg-tilegx.dat: Remove.
1565 * regformats/reg-tilegx32.dat: Remove.
1566
1567 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * features/Makefile (WHICH): Remove arm files.
1570 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1571 * regformats/arm/arm-with-neon.dat: Remove.
1572 * regformats/arm/arm-with-vfpv2.dat: Remove.
1573 * regformats/arm/arm-with-vfpv3.dat: Remove.
1574
1575 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1576
1577 * features/Makefile (XMLTOC): Remove rx.xml.
1578
1579 2020-06-17 Pedro Alves <palves@redhat.com>
1580
1581 * gdbthread.h (thread_control_state) <trap_expected> Update
1582 comments.
1583
1584 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1587 ada_language::lookup_symbol_nonlocal.
1588 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1589 (ada_language::lookup_symbol_nonlocal): New member function,
1590 implementation from ada_lookup_symbol_nonlocal.
1591 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1592 initializer.
1593 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1594 initializer.
1595 (cplus_language::lookup_symbol_nonlocal): New member function.
1596 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1597 (minimal_language_data) Likewise.
1598 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1599 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1600 initializer.
1601 (d_language::lookup_symbol_nonlocal): New member function.
1602 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1603 initializer.
1604 (f_language::lookup_symbol_nonlocal): New member function.
1605 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1606 initializer.
1607 * language.c (unknown_language_data): Likewise.
1608 (auto_language_data): Likewise.
1609 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1610 field.
1611 (language_defn::lookup_symbol_nonlocal): New member function.
1612 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1613 initializer.
1614 * objc-lang.c (objc_language_data): Likewise.
1615 * opencl-lang.c (opencl_language_data): Likewise.
1616 * p-lang.c (pascal_language_data): Likewise.
1617 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1618 rust_language::lookup_symbol_nonlocal.
1619 (rust_language_data): Delete la_lookup_symbol_nonlocal
1620 initializer.
1621 (rust_language::lookup_symbol_nonlocal): New member function,
1622 implementation from rust_lookup_symbol_nonlocal.
1623 * symtab.c (lookup_symbol_aux): Update call to
1624 lookup_symbol_nonlocal.
1625 (basic_lookup_symbol_nonlocal): Rename to...
1626 (language_defn::lookup_symbol_nonlocal): ...this, and update
1627 header comment. Remove language_defn parameter, and replace with
1628 uses of `this'.
1629 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1630
1631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1634 initializer.
1635 (ada_language::value_print_inner): New member function.
1636 * c-lang.c (c_language_data): Delete la_value_print_inner
1637 initializer.
1638 (cplus_language_data): Likewise.
1639 (asm_language_data): Likewise.
1640 (minimal_language_data): Likewise.
1641 * d-lang.c (d_language_data): Likewise.
1642 (d_language::value_print_inner): New member function.
1643 * f-lang.c (f_language_data): Delete la_value_print_inner
1644 initializer.
1645 (f_language::value_print_inner): New member function.
1646 * f-lang.h (f_value_print_innner): Rename to...
1647 (f_value_print_inner): ...this (note spelling of 'inner').
1648 * f-valprint.c (f_value_print_innner): Rename to...
1649 (f_value_print_inner): ...this (note spelling of 'inner').
1650 * go-lang.c (go_language_data): Delete la_value_print_inner
1651 initializer.
1652 (go_language::value_print_inner): New member function.
1653 * language.c (language_defn::value_print_inner): Define new member
1654 function.
1655 (unk_lang_value_print_inner): Delete.
1656 (unknown_language_data): Delete la_value_print_inner initializer.
1657 (unknown_language::value_print_inner): New member function.
1658 (auto_language_data): Delete la_value_print_inner initializer.
1659 (auto_language::value_print_inner): New member function.
1660 * language.h (language_data): Delete la_value_print_inner field.
1661 (language_defn::value_print_inner): Delcare new member function.
1662 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1663 initializer.
1664 (m2_language::value_print_inner): New member function.
1665 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1666 initializer.
1667 * opencl-lang.c (opencl_language_data): Likewise.
1668 * p-lang.c (pascal_language_data): Likewise.
1669 (pascal_language::value_print_inner): New member function.
1670 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1671 initializer.
1672 (rust_language::value_print_inner): New member function.
1673 * valprint.c (do_val_print): Update call to value_print_inner.
1674
1675 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * ada-lang.c (ada_language_data): Delete la_value_print
1678 initializer.
1679 (ada_language::value_print): New member function.
1680 * c-lang.c (c_language_data): Delete la_value_print initializer.
1681 (cplus_language_data): Likewise.
1682 (asm_language_data): Likewise.
1683 (minimal_language_data): Likewise.
1684 * d-lang.c (d_language_data): Likewise.
1685 * f-lang.c (f_language_data): Likewise.
1686 * go-lang.c (go_language_data): Likewise.
1687 * language.c (unk_lang_value_print): Delete.
1688 (language_defn::value_print): Define new member function.
1689 (unknown_language_data): Delete la_value_print initializer.
1690 (unknown_language::value_print): New member function.
1691 (auto_language_data): Delete la_value_print initializer.
1692 (auto_language::value_print): New member function.
1693 * language.h (language_data): Delete la_value_print field.
1694 (language_defn::value_print): Declare new member function.
1695 (LA_VALUE_PRINT): Update call to value_print.
1696 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1697 * objc-lang.c (objc_language_data): Likewise.
1698 * opencl-lang.c (opencl_language_data): Likewise.
1699 * p-lang.c (pascal_language_data): Likewise.
1700 (pascal_language::value_print): New member function.
1701 * rust-lang.c (rust_language_data): Delete la_value_print
1702 initializer.
1703
1704 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * ada-lang.c (ada_watch_location_expression): Rename to
1707 ada_language::watch_location_expression.
1708 (ada_language_data): Delete la_watch_location_expression
1709 initializer.
1710 (ada_language::watch_location_expression): New member function,
1711 implementation from ada_watch_location_expression.
1712 * breakpoint.c (watch_command_1): Update call to
1713 watch_location_expression.
1714 * c-lang.c (c_watch_location_expression): Rename to
1715 language_defn::watch_location_expression.
1716 (c_language_data): Delete la_watch_location_expression
1717 initializer.
1718 (cplus_language_data): Likewise.
1719 (asm_language_data): Likewise.
1720 (minimal_language_data): Likewise.
1721 * c-lang.h (c_watch_location_expression): Delete declaration.
1722 * d-lang.c (d_language_data): Delete la_watch_location_expression
1723 initializer.
1724 * f-lang.c (f_language_data): Likewise.
1725 * go-lang.c (go_language_data): Likewise.
1726 * language.c (language_defn::watch_location_expression): Member
1727 function implementation from c_watch_location_expression.
1728 (unknown_language_data): Delete la_watch_location_expression
1729 initializer.
1730 (auto_language_data): Likewise.
1731 * language.h (language_data): Delete la_watch_location_expression
1732 field.
1733 (language_defn::watch_location_expression): Declare new member
1734 function.
1735 * m2-lang.c (m2_language_data): Delete
1736 la_watch_location_expression initializer.
1737 * objc-lang.c (objc_language_data): Likewise.
1738 * opencl-lang.c (opencl_language_data): Likewise.
1739 * p-lang.c (pascal_language_data): Likewise.
1740 * rust-lang.c (rust_watch_location_expression): Rename to
1741 rust_language::watch_location_expression.
1742 (rust_language_data): Delete la_watch_location_expression
1743 initializer.
1744 (rust_language::watch_location_expression): New member function,
1745 implementation from rust_watch_location_expression.
1746
1747 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1750 ada_language::collect_symbol_completion_matches.
1751 (ada_language_data): Delete la_collect_symbol_completion_matches
1752 initializer.
1753 (ada_language::collect_symbol_completion_matches): New member
1754 function, implementation from
1755 ada_collect_symbol_completion_matches.
1756 * c-lang.c (c_language_data): Delete
1757 la_collect_symbol_completion_matches initializer.
1758 (cplus_language_data): Likewise.
1759 (asm_language_data): Likewise.
1760 (minimal_language_data): Likewise.
1761 * d-lang.c (d_language_data): Likewise.
1762 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1763 f_language::collect_symbol_completion_matches.
1764 (f_language_data): Delete la_collect_symbol_completion_matches
1765 initializer.
1766 (f_language::collect_symbol_completion_matches) New member
1767 function, implementation from f_collect_symbol_completion_matches.
1768 * go-lang.c (go_language_data): Delete
1769 la_collect_symbol_completion_matches initializer.
1770 * language.c (unknown_language_data): Likewise.
1771 (auto_language_data): Likewise.
1772 * language.h (language_data): Delete
1773 la_collect_symbol_completion_matches field.
1774 (language_defn::collect_symbol_completion_matches): New member
1775 function.
1776 * m2-lang.c (m2_language_data): Delete
1777 la_collect_symbol_completion_matches initializer.
1778 * objc-lang.c (objc_language_data): Likewise.
1779 * opencl-lang.c (opencl_language_data): Likewise.
1780 * p-lang.c (pascal_language_data): Likewise.
1781 * rust-lang.c (rust_language_data): Likewise.
1782 * symtab.c (default_collect_symbol_completion_matches): Delete.
1783 (collect_symbol_completion_matches): Update call to
1784 collect_symbol_completion_matches.
1785 (collect_symbol_completion_matches_type): Likewise.
1786 * symtab.h (default_collect_symbol_completion_matches): Delete
1787 declaration.
1788
1789 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1792 (ada_language_data): Delete la_word_break_characters initializer.
1793 (ada_language::word_break_characters): New member function.
1794 * c-lang.c (c_language_data): Delete la_word_break_characters
1795 initializer.
1796 (cplus_language_data): Likewise.
1797 (asm_language_data): Likewise.
1798 (minimal_language_data): Likewise.
1799 * completer.c: Update global comment.
1800 (advance_to_expression_complete_word_point): Update call to
1801 word_break_characters.
1802 (complete_files_symbols): Likewise.
1803 (complete_line_internal_1): Likewise.
1804 (default_completer_handle_brkchars): Likewise.
1805 (skip_quoted_chars): Likewise.
1806 * d-lang.c (d_language_data): Delete la_word_break_characters
1807 initializer.
1808 * f-lang.c (f_word_break_characters): Delete.
1809 (f_language_data): Delete la_word_break_characters initializer.
1810 (f_language::word_break_characters): New member function.
1811 * go-lang.c (go_language_data): Delete la_word_break_characters
1812 initializer.
1813 * language.c (unknown_language_data): Likewise.
1814 (auto_language_data): Likewise.
1815 * language.h (default_word_break_characters): Move declaration to
1816 earlier in the file.
1817 (language_data): Delete la_word_break_characters field.
1818 (language_defn::word_break_characters): New member function.
1819 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1820 initializer.
1821 * objc-lang.c (objc_language_data): Likewise.
1822 * opencl-lang.c (opencl_language_data): Likewise.
1823 * p-lang.c (pascal_language_data): Likewise.
1824 * rust-lang.c (rust_language_data): Likewise.
1825
1826 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1829 (ada_language_data): Delete la_get_symbol_name_matcher
1830 initializer.
1831 (language_defn::get_symbol_name_matcher_inner): New member
1832 function.
1833 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1834 initializer.
1835 (cplus_language_data): Likewise.
1836 (cplus_language::get_symbol_name_matcher_inner): New member
1837 function.
1838 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1839 (minimal_language_data): Likewise.
1840 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1841 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1842 initializer.
1843 * dictionary.c (iter_match_first_hashed): Update call to
1844 get_symbol_name_matcher.
1845 (iter_match_next_hashed): Likewise.
1846 (iter_match_next_linear): Likewise.
1847 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1848 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1849 initializer.
1850 (f_language::get_symbol_name_matcher_inner): New member function.
1851 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1852 initializer.
1853 * language.c (default_symbol_name_matcher): Update header comment,
1854 make static.
1855 (language_defn::get_symbol_name_matcher): New definition.
1856 (language_defn::get_symbol_name_matcher_inner): Likewise.
1857 (get_symbol_name_matcher): Delete.
1858 (unknown_language_data): Delete la_get_symbol_name_matcher
1859 initializer.
1860 (auto_language_data): Likewise.
1861 * language.h (language_data): Delete la_get_symbol_name_matcher
1862 field.
1863 (language_defn::get_symbol_name_matcher): New member function.
1864 (language_defn::get_symbol_name_matcher_inner): Likewise.
1865 (default_symbol_name_matcher): Delete declaration.
1866 * linespec.c (find_methods): Update call to
1867 get_symbol_name_matcher.
1868 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1869 initializer.
1870 * minsyms.c (lookup_minimal_symbol): Update call to
1871 get_symbol_name_matcher.
1872 (iterate_over_minimal_symbols): Likewise.
1873 * objc-lang.c (objc_language_data): Delete
1874 la_get_symbol_name_matcher initializer.
1875 * opencl-lang.c (opencl_language_data): Likewise.
1876 * p-lang.c (pascal_language_data): Likewise.
1877 * psymtab.c (psymbol_name_matches): Update call to
1878 get_symbol_name_matcher.
1879 * rust-lang.c (rust_language_data): Delete
1880 la_get_symbol_name_matcher initializer.
1881 * symtab.c (symbol_matches_search_name): Update call to
1882 get_symbol_name_matcher.
1883 (compare_symbol_name): Likewise.
1884
1885 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Delete la_compute_program
1888 initializer.
1889 * c-lang.c (c_language_data): Likewise.
1890 (c_language::compute_program): New member function.
1891 (cplus_language_data): Delete la_compute_program initializer.
1892 (cplus_language::compute_program): New member function.
1893 (asm_language_data): Delete la_compute_program initializer.
1894 (minimal_language_data): Likewise.
1895 * c-lang.h (c_compute_program): Update comment.
1896 (cplus_compute_program): Likewise.
1897 * compile/compile-c-support.c (c_compute_program): Likewise.
1898 (cplus_compute_program): Likewise.
1899 * compile/compile.c (compile_to_object): Update call to
1900 la_compute_program.
1901 * d-lang.c (d_language_data): Delete la_compute_program
1902 initializer.
1903 * f-lang.c (f_language_data): Likewise.
1904 * go-lang.c (go_language_data): Likewise.
1905 * language.c (unknown_language_data): Likewise.
1906 (auto_language_data): Likewise.
1907 * language.h (language_data): Delete la_compute_program field.
1908 (language_defn::compute_program): New member function.
1909 * m2-lang.c (m2_language_data): Delete la_compute_program
1910 initializer.
1911 * objc-lang.c (objc_language_data): Likewise.
1912 * opencl-lang.c (opencl_language_data): Likewise.
1913 * p-lang.c (pascal_language_data): Likewise.
1914 * rust-lang.c (rust_language_data): Likewise.
1915
1916 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * ada-lang.c (ada_language_data) Delete
1919 la_class_name_from_physname initializer.
1920 * c-lang.c (c_language_data): Likewise.
1921 (cplus_language_data): Likewise.
1922 (cplus_language::class_name_from_physname): New member function.
1923 (asm_language_data): Delete la_class_name_from_physname
1924 initializer.
1925 (minimal_language_data): Likewise.
1926 * d-lang.c (d_language_data): Likewise.
1927 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1928 method on language_defn class.
1929 (guess_full_die_structure_name): Likewise.
1930 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1931 initializer.
1932 * go-lang.c (go_language_data): Likewise.
1933 * language.c (language_class_name_from_physname): Delete.
1934 (unk_lang_class_name): Delete.
1935 (unknown_language_data): Delete la_class_name_from_physname
1936 initializer.
1937 (auto_language_data): Likewise.
1938 * language.h (language_data): Delete la_class_name_from_physname
1939 field.
1940 (language_defn::class_name_from_physname): New function.
1941 (language_class_name_from_physname): Delete declaration.
1942 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1943 initializer.
1944 * objc-lang.c (objc_language_data): Likewise.
1945 * opencl-lang.c (opencl_language_data): Likewise.
1946 * p-lang.c (pascal_language_data): Likewise.
1947 * rust-lang.c (rust_language_data): Likewise.
1948
1949 2020-06-16 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui-data.h (STATUS_NAME): New macro.
1952 * tui/tui-layout.c (tui_remove_some_windows)
1953 (initialize_known_windows, tui_register_window)
1954 (tui_layout_split::remove_windows, initialize_layouts)
1955 (tui_new_layout_command): Don't use hard-coded window names.
1956
1957 2020-06-16 Tom Tromey <tom@tromey.com>
1958
1959 PR tui/25348:
1960 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1961 tui_initialize_readline. Only run once. Call rl_initialize.
1962 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1963 tui_initialize_readline.
1964 * tui/tui-io.c (tui_setup_io): Call
1965 tui_ensure_readline_initialized.
1966 * tui/tui-interp.c (tui_interp::init): Update.
1967
1968 2020-06-16 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1971 Also preserve the status window.
1972
1973 2020-06-16 Tom Tromey <tom@tromey.com>
1974
1975 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1976 where m_window==nullptr.
1977
1978 2020-06-15 Tom Tromey <tromey@adacore.com>
1979
1980 * windows-nat.c (windows_nat::handle_output_debug_string):
1981 Update.
1982 (windows_nat::handle_ms_vc_exception): Update.
1983 * target.h (target_read_string): Change API.
1984 * target.c (target_read_string): Change API.
1985 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1986 Update.
1987 * solib-frv.c (frv_current_sos): Update.
1988 * solib-dsbt.c (dsbt_current_sos): Update.
1989 * solib-darwin.c (darwin_current_sos): Update.
1990 * linux-thread-db.c (inferior_has_bug): Update.
1991 * expprint.c (print_subexp_standard): Update.
1992 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1993 (ada_exception_message_1): Update.
1994
1995 2020-06-15 Tom Tromey <tromey@adacore.com>
1996
1997 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1998
1999 2020-06-15 Tom Tromey <tromey@adacore.com>
2000
2001 * valprint.c (read_string): Update comment.
2002 * target.c (MIN): Remove.
2003 (target_read_string): Rewrite.
2004
2005 2020-06-15 Tom Tromey <tromey@adacore.com>
2006
2007 * corefile.c (read_memory_string): Remove.
2008 * ada-valprint.c (ada_value_print_ptr): Update.
2009 * ada-lang.h (ada_tag_name): Change return type.
2010 * ada-lang.c (type_from_tag): Update.
2011 (ada_tag_name_from_tsd): Change return type. Use
2012 target_read_string.
2013 (ada_tag_name): Likewise.
2014 * gdbcore.h (read_memory_string): Don't declare.
2015
2016 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2017
2018 * symtab.c (rbreak_command): Ignore Windows drive colon.
2019
2020 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * NEWS: Mention removed GDBserver host support.
2023
2024 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2025
2026 * features/riscv/rebuild-csr-xml.sh: Updated.
2027
2028 2020-06-11 Tom Tromey <tom@tromey.com>
2029
2030 PR gdb/18318:
2031 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2032
2033 2020-06-09 Jonny Grant <jg@jguk.org>
2034 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2035
2036 * main.c (captured_main_1): Don't print new line after help.
2037 (print_gdb_help): add mailing list and IRC channel information
2038 to --help. Add new lines between items in the footer. Remove
2039 quotes around bug url.
2040
2041 2020-06-11 Keith Seitz <keiths@redhat.com>
2042
2043 PR gdb/21356
2044 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2045 Resolve typedefs for type length calculations.
2046
2047 2020-06-10 Tom de Vries <tdevries@suse.de>
2048
2049 PR ada/24713
2050 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2051 (write_psymbols): Enable .gdb_index for ada.
2052 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2053 ada.
2054
2055 2020-06-10 Tom de Vries <tdevries@suse.de>
2056
2057 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2058 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2059 namei" instead of "const char *name" argument.
2060 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2061 dw2_symtab_iter_init.
2062
2063 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2064
2065 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2066 to use type::field and field::type instead.
2067
2068 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2069
2070 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2071 to use field::type instead.
2072
2073 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2074
2075 * gdbtypes.h (struct field) <type, set_type>: New methods.
2076 Rename `type` field to...
2077 <m_type>: ... this. Change references throughout to use type or
2078 set_type methods.
2079 (FIELD_TYPE): Use field::type. Change call sites that modify
2080 the field's type to use field::set_type instead.
2081
2082 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2085 to use type::index_type instead.
2086
2087 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2088
2089 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2090 methods.
2091 (TYPE_INDEX_TYPE): Use type::index_type.
2092 * gdbtypes.c (create_array_type_with_stride): Likewise.
2093
2094 2020-06-07 Tom Tromey <tom@tromey.com>
2095
2096 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2097 parameter.
2098 (generic_value_print): Update.
2099
2100 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 Revert commit 982a38f60b0.
2103 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2104
2105 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2108 avoid use after free.
2109
2110 2020-06-05 Tom de Vries <tdevries@suse.de>
2111
2112 * NEWS: Fix typos.
2113
2114 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2117 the per_bfd object.
2118 (dwarf2_read_debug_names): Likewise.
2119 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2120 object when re-using a per_bfd object with an index.
2121
2122 2020-06-03 Tom de Vries <tdevries@suse.de>
2123
2124 PR symtab/26046
2125 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2126 children for C++.
2127 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2128 DW_TAG_subprogram.
2129
2130 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * ada-lang.c (ada_language_data): Delete skip_trampoline
2133 initializer.
2134 * c-lang.c (c_language_data): Likewise.
2135 (cplus_language_data): Likewise.
2136 (cplus_language::skip_trampoline): New member function.
2137 (asm_language_data): Delete skip_trampoline initializer.
2138 (minimal_language_data): Likewise.
2139 * d-lang.c (d_language_data): Likewise.
2140 * f-lang.c (f_language_data): Likewise.
2141 * go-lang.c (go_language_data): Likewise.
2142 * language.c (unk_lang_trampoline): Delete function.
2143 (skip_language_trampoline): Update.
2144 (unknown_language_data): Delete skip_trampoline initializer.
2145 (auto_language_data): Likewise.
2146 * language.h (language_data): Delete skip_trampoline field.
2147 (language_defn::skip_trampoline): New function.
2148 * m2-lang.c (m2_language_data): Delete skip_trampoline
2149 initializer.
2150 * objc-lang.c (objc_skip_trampoline): Delete function, move
2151 implementation to objc_language::skip_trampoline.
2152 (objc_language_data): Delete skip_trampoline initializer.
2153 (objc_language::skip_trampoline): New member function with
2154 implementation from objc_skip_trampoline.
2155 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2156 initializer.
2157 * p-lang.c (pascal_language_data): Likewise.
2158 * rust-lang.c (rust_language_data): Likewise.
2159
2160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2163 (ada_language::demangle): New member function.
2164 * c-lang.c (c_language_data): Delete la_demangle initializer.
2165 (cplus_language_data): Delete la_demangle initializer.
2166 (cplus_language::demangle): New member function.
2167 (asm_language_data): Delete la_demangle initializer.
2168 (minimal_language_data): Delete la_demangle initializer.
2169 * d-lang.c (d_language_data): Delete la_demangle initializer.
2170 (d_language::demangle): New member function.
2171 * f-lang.c (f_language_data): Delete la_demangle initializer.
2172 (f_language::demangle): New member function.
2173 * go-lang.c (go_language_data): Delete la_demangle initializer.
2174 (go_language::demangle): New member function.
2175 * language.c (language_demangle): Update.
2176 (unk_lang_demangle): Delete.
2177 (unknown_language_data): Delete la_demangle initializer.
2178 (unknown_language::demangle): New member function.
2179 (auto_language_data): Delete la_demangle initializer.
2180 (auto_language::demangle): New member function.
2181 * language.h (language_data): Delete la_demangle field.
2182 (language_defn::demangle): New function.
2183 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2184 * objc-lang.c (objc_language_data): Delete la_demangle
2185 initializer.
2186 (objc_language::demangle): New member function.
2187 * opencl-lang.c (opencl_language_data): Delete la_demangle
2188 initializer.
2189 * p-lang.c (pascal_language_data): Likewise.
2190 * rust-lang.c (rust_language_data): Likewise.
2191 (rust_language::demangle): New member function.
2192
2193 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * ada-lang.c (ada_language_data): Delete la_print_type
2196 initializer.
2197 (ada_language::print_type): New member function.
2198 * c-lang.c (c_language_data): Delete la_print_type initializer.
2199 (c_language::print_type): New member function.
2200 (cplus_language_data): Delete la_print_type initializer.
2201 (cplus_language::print_type): New member function.
2202 (asm_language_data): Delete la_print_type initializer.
2203 (asm_language::print_type): New member function.
2204 (minimal_language_data): Delete la_print_type initializer.
2205 (minimal_language::print_type): New member function.
2206 * d-lang.c (d_language_data): Delete la_print_type initializer.
2207 (d_language::print_type): New member function.
2208 * f-lang.c (f_language_data): Delete la_print_type initializer.
2209 (f_language::print_type): New member function.
2210 * go-lang.c (go_language_data): Delete la_print_type initializer.
2211 (go_language::print_type): New member function.
2212 * language.c (unk_lang_print_type): Delete.
2213 (unknown_language_data): Delete la_print_type initializer.
2214 (unknown_language::print_type): New member function.
2215 (auto_language_data): Delete la_print_type initializer.
2216 (auto_language::print_type): New member function.
2217 * language.h (language_data): Delete la_print_type field.
2218 (language_defn::print_type): New function.
2219 (LA_PRINT_TYPE): Update.
2220 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2221 (m2_language::print_type): New member function.
2222 * objc-lang.c (objc_language_data): Delete la_print_type
2223 initializer.
2224 (objc_language::print_type): New member function.
2225 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2226 to opencl_language::print_type.
2227 (opencl_language_data): Delete la_print_type initializer.
2228 (opencl_language::print_type): New member function, implementation
2229 from opencl_print_type.
2230 * p-lang.c (pascal_language_data): Delete la_print_type
2231 initializer.
2232 (pascal_language::print_type): New member function.
2233 * rust-lang.c (rust_print_type): Delete, implementation moved to
2234 rust_language::print_type.
2235 (rust_language_data): Delete la_print_type initializer.
2236 (rust_language::print_type): New member function, implementation
2237 from rust_print_type.
2238
2239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2242 implementation moves to...
2243 (ada_language::sniff_from_mangled_name): ...here. Update return
2244 type.
2245 (ada_language_data): Delete la_sniff_from_mangled_name
2246 initializer.
2247 * c-lang.c (c_language_data): Likewise.
2248 (cplus_language_data): Likewise.
2249 (cplus_language::sniff_from_mangled_name): New member function,
2250 implementation taken from gdb_sniff_from_mangled_name.
2251 (asm_language_data): Delete la_sniff_from_mangled_name
2252 initializer.
2253 (minimal_language_data): Likewise.
2254 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2255 implementation moves to cplus_language::sniff_from_mangled_name.
2256 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2257 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2258 moves to...
2259 (d_language::sniff_from_mangled_name): ...here.
2260 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2261 * f-lang.c (f_language_data): Likewise.
2262 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2263 moves to...
2264 (go_language::sniff_from_mangled_name): ...here.
2265 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2266 * language.c (language_sniff_from_mangled_name): Delete.
2267 (unknown_language_data): Delete la_sniff_from_mangled_name
2268 initializer.
2269 (auto_language_data): Likewise.
2270 * language.h (language_data): Delete la_sniff_from_mangled_name
2271 field.
2272 (language_defn::sniff_from_mangled_name): New function.
2273 (language_sniff_from_mangled_name): Delete declaration.
2274 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2275 field.
2276 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2277 implementation moves to...
2278 (objc_language::sniff_from_mangled_name): ...here.
2279 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_language_data): Likewise.
2282 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2283 implementation moves to...
2284 (rust_language::sniff_from_mangled_name): ...here.
2285 (rust_language_data): Delete la_sniff_from_mangled_name
2286 initializer.
2287 * symtab.c (symbol_find_demangled_name): Call
2288 sniff_from_mangled_name member function.
2289
2290 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2291
2292 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2293 initializer.
2294 * c-lang.c (c_language_data): Likewise.
2295 (cplus_language_data): Likewise.
2296 (cplus_language::search_name_hash): New member function.
2297 (asm_language_data): Delete la_search_name_hash initializer.
2298 (minimal_language_data): Likewise.
2299 * d-lang.c (d_language_data): Likewise.
2300 * dictionary.c (default_search_name_hash): Rename to...
2301 (language_defn::search_name_hash): ...this.
2302 * f-lang.c (f_language_data): Likewise.
2303 (f_language::search_name_hash): New member function.
2304 * go-lang.c (go_language_data): Delete la_search_name_hash
2305 initializer.
2306 * language.c (unknown_language_data): Likewise.
2307 (auto_language_data): Likewise.
2308 * language.h (struct language_data): Delete la_search_name_hash
2309 field.
2310 (language_defn::search_name_hash): Declare new member function.
2311 (default_search_name_hash): Delete declaration.
2312 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2313 initializer.
2314 * objc-lang.c (objc_language_data): Likewise.
2315 * opencl-lang.c (opencl_language_data): Likewise.
2316 * p-lang.c (pascal_language_data): Likewise.
2317 * rust-lang.c (rust_language_data): Likewise.
2318 * symtab.c (search_name_hash): Update call.
2319
2320 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2323 initializer.
2324 * c-lang.c (class compile_instance): Declare.
2325 (c_language_data): Delete la_get_compile_instance initializer.
2326 (c_language::get_compile_instance): New member function.
2327 (cplus_language_data): Delete la_get_compile_instance initializer.
2328 (cplus_language::get_compile_instance): New member function.
2329 (asm_language_data): Delete la_get_compile_instance initializer.
2330 (minimal_language_data): Likewise.
2331 * c-lang.h (c_get_compile_context): Update comment.
2332 (cplus_get_compile_context): Update comment.
2333 * compile/compile.c (compile_to_object): Update calls, don't rely
2334 on function pointer being NULL.
2335 * d-lang.c (d_language_data): Delete la_get_compile_instance
2336 initializer.
2337 * f-lang.c (f_language_data): Likewise.
2338 * go-lang.c (go_language_data): Likewise.
2339 * language.c (unknown_language_data): Likewise.
2340 (auto_language_data): Likewise.
2341 * language.h (language_data): Delete la_get_compile_instance field.
2342 (language_defn::get_compile_instance): New member function.
2343 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2344 initializer.
2345 * objc-lang.c (objc_language_data): Likewise.
2346 * opencl-lang.c (opencl_language_data): Likewise.
2347 * p-lang.c (pascal_language_data): Likewise.
2348 * rust-lang.c (rust_language_data): Likewise.
2349
2350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * ada-lang.c (ada_add_all_symbols): Update comment.
2353 (ada_iterate_over_symbols): Delete, move implementation to...
2354 (ada_language::iterate_over_symbols): ...here, a new member
2355 function, rewrite to use range based for loop.
2356 (ada_language_data): Delete la_iterate_over_symbols initializer.
2357 * c-lang.c (c_language_data): Likewise.
2358 (cplus_language_data): Likewise.
2359 (asm_language_data): Likewise.
2360 (minimal_language_data): Likewise.
2361 * d-lang.c (d_language_data): Likewise.
2362 * f-lang.c (f_language_data): Likewise.
2363 * go-lang.c (go_language_data): Likewise.
2364 * language.c (unknown_language_data): Likewise.
2365 (auto_language_data): Likewise.
2366 * language.h (language_data): Delete la_iterate_over_symbols field.
2367 (language_defn::iterate_over_symbols): New member function.
2368 (LA_ITERATE_OVER_SYMBOLS): Update.
2369 * linespec.c (iterate_over_all_matching_symtabs): Update.
2370 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2371 initializer.
2372 * objc-lang.c (objc_language_data): Likewise.
2373 * opencl-lang.c (opencl_language_data): Likewise.
2374 * p-lang.c (pascal_language_data): Likewise.
2375 * rust-lang.c (rust_language_data): Likewise.
2376
2377 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * ada-lang.c (ada_language_data): Delete
2380 la_lookup_transparent_type initializer.
2381 * c-lang.c (c_language_data): Likewise.
2382 (cplus_language_data): Likewise.
2383 (cplus_language::lookup_transparent_type): New member function.
2384 (asm_language_data): Delete la_lookup_transparent_type
2385 initializer.
2386 (minimal_language_data): Likewise.
2387 * d-lang.c (d_language_data): Likewise.
2388 * f-lang.c (f_language_data): Likewise.
2389 * go-lang.c (go_language_data): Likewise.
2390 * language.c (unknown_language_data): Likewise.
2391 (auto_language_data): Likewise.
2392 * language.h (struct language_data): Delete
2393 la_lookup_transparent_type field.
2394 (language_defn::lookup_transparent_type): New member function.
2395 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2396 initializer.
2397 * objc-lang.c (objc_language_data): Likewise.
2398 * opencl-lang.c (opencl_language_data): Likewise.
2399 * p-lang.c (pascal_language_data): Likewise.
2400 * rust-lang.c (rust_language_data): Likewise.
2401 * symtab.c (symbol_matches_domain): Update call.
2402
2403 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * ada-lang.c (ada_language_arch_info): Delete function, move
2406 implementation to...
2407 (ada_language::language_arch_info): ...here, a new member
2408 function.
2409 (ada_language_data): Delete la_language_arch_info.
2410 * c-lang.c (c_language_data): Likewise.
2411 (c_language::language_arch_info): New member function.
2412 (cplus_language_arch_info): Delete function, move
2413 implementation to...
2414 (cplus_language::language_arch_info): ...here, a new member
2415 function.
2416 (cplus_language_data): Delete la_language_arch_info.
2417 (asm_language_data): Likewise.
2418 (asm_language::language_arch_info): New member function.
2419 (minimal_language_data): Delete la_language_arch_info.
2420 (minimal_language::language_arch_info): New member function.
2421 * d-lang.c (d_language_arch_info): Delete function, move
2422 implementation to...
2423 (d_language::language_arch_info): ...here, a new member
2424 function.
2425 (d_language_data): Delete la_language_arch_info.
2426 * f-lang.c (f_language_arch_info): Delete function, move
2427 implementation to...
2428 (f_language::language_arch_info): ...here, a new member
2429 function.
2430 (f_language_data): Delete la_language_arch_info.
2431 * go-lang.c (go_language_arch_info): Delete function, move
2432 implementation to...
2433 (go_language::language_arch_info): ...here, a new member
2434 function.
2435 (go_language_data): Delete la_language_arch_info.
2436 * language.c (unknown_language_data): Likewise.
2437 (unknown_language::language_arch_info): New member function.
2438 (auto_language_data): Delete la_language_arch_info.
2439 (auto_language::language_arch_info): New member function.
2440 (language_gdbarch_post_init): Update call to
2441 la_language_arch_info.
2442 * language.h (language_data): Delete la_language_arch_info
2443 function pointer.
2444 (language_defn::language_arch_info): New function.
2445 * m2-lang.c (m2_language_arch_info): Delete function, move
2446 implementation to...
2447 (m2_language::language_arch_info): ...here, a new member
2448 function.
2449 (m2_language_data): Delete la_language_arch_info.
2450 * objc-lang.c (objc_language_arch_info): Delete function, move
2451 implementation to...
2452 (objc_language::language_arch_info): ...here, a new member
2453 function.
2454 (objc_language_data): Delete la_language_arch_info.
2455 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2456 implementation to...
2457 (opencl_language::language_arch_info): ...here, a new member
2458 function.
2459 (opencl_language_data): Delete la_language_arch_info.
2460 * p-lang.c (pascal_language_arch_info): Delete function, move
2461 implementation to...
2462 (pascal_language::language_arch_info): ...here, a new member
2463 function.
2464 (pascal_language_data): Delete la_language_arch_info.
2465 * rust-lang.c (rust_language_arch_info): Delete function, move
2466 implementation to...
2467 (rust_language::language_arch_info): ...here, a new member
2468 function.
2469 (rust_language_data): Delete la_language_arch_info.
2470
2471 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2474 initializer.
2475 * c-lang.c (c_language_data): Likewise.
2476 (cplus_language_data): Likewise.
2477 (cplus_language::pass_by_reference_info): New method.
2478 (asm_language_data): Delete la_pass_by_reference initializer.
2479 (minimal_language_data): Likewise.
2480 * cp-abi.c (cp_pass_by_reference): Remove use of
2481 default_pass_by_reference.
2482 * d-lang.c (d_language_data): Likewise.
2483 * f-lang.c (f_language_data): Likewise.
2484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2485 default_pass_by_reference.
2486 * go-lang.c (go_language_data): Likewise.
2487 * language.c (language_pass_by_reference): Update.
2488 (default_pass_by_reference): Delete.
2489 (unknown_language_data): Delete la_pass_by_reference
2490 initializer.
2491 (auto_language_data): Likewise.
2492 * language.h (struct language_data): Delete la_pass_by_reference
2493 field.
2494 (language_defn::pass_by_reference_info): New member function.
2495 (default_pass_by_reference): Delete declaration.
2496 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2497 initializer.
2498 * objc-lang.c (objc_language_data): Likewise.
2499 * opencl-lang.c (opencl_language_data): Likewise.
2500 * p-lang.c (pascal_language_data): Likewise.
2501 * rust-lang.c (rust_language_data): Likewise.
2502
2503 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_read_var_value): Delete function, move
2506 implementation to...
2507 (ada_language::read_var_value): ...here.
2508 (ada_language_data): Delete la_read_var_value initializer.
2509 * c-lang.c (c_language_data): Likewise.
2510 (cplus_language_data): Likewise.
2511 (minimal_language_data): Likewise.
2512 * d-lang.c (d_language_data): Likewise.
2513 * f-lang.c (f_language_data): Likewise.
2514 * findvar.c (default_read_var_value): Rename to...
2515 (language_defn::read_var_value): ...this.
2516 * findvar.c (read_var_value): Update header comment, and change to
2517 call member function instead of function pointer.
2518 * go-lang.c (go_language_data): Likewise.
2519 * language.c (unknown_language_data): Delete la_read_var_value
2520 initializer.
2521 (auto_language_data): Likewise.
2522 * language.h (struct language_data): Delete la_read_var_value
2523 field.
2524 (language_defn::read_var_value): New member function.
2525 (default_read_var_value): Delete declaration.
2526 * m2-lang.c (m2_language_data): Delete la_read_var_value
2527 initializer.
2528 * objc-lang.c (objc_language_data): Likewise.
2529 * opencl-lang.c (opencl_language_data): Likewise.
2530 * p-lang.c (pascal_language_data): Likewise.
2531 * rust-lang.c (rust_language_data): Likewise.
2532 * value.h (default_read_var_value): Delete declaration.
2533
2534 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * ada-lang.c (ada_print_array_index): Delete function, move
2537 implementation to...
2538 (ada_language::print_array_index): ...here.
2539 (ada_language_data): Delete la_print_array_index initializer.
2540 * c-lang.c (c_language_data): Likewise.
2541 (cplus_language_data): Likewise.
2542 (minimal_language_data): Likewise.
2543 * d-lang.c (d_language_data): Likewise.
2544 * f-lang.c (f_language_data): Likewise.
2545 * go-lang.c (go_language_data): Likewise.
2546 * language.c (default_print_array_index): Delete function, move
2547 implementation to...
2548 (language_defn::print_array_index): ...here.
2549 (unknown_language_data): Delete la_print_array_index initializer.
2550 (auto_language_data): Likewise.
2551 * language.h (struct language_data): Delete la_print_array_index
2552 field.
2553 (language_defn::print_array_index): New member function.
2554 (LA_PRINT_ARRAY_INDEX): Update.
2555 (default_print_array_index): Delete declaration.
2556 * m2-lang.c (m2_language_data): Delete la_print_array_index
2557 initializer.
2558 * objc-lang.c (objc_language_data): Likewise.
2559 * opencl-lang.c (opencl_language_data): Likewise.
2560 * p-lang.c (pascal_language_data): Likewise.
2561 * rust-lang.c (rust_language_data): Likewise.
2562
2563 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * gdb/ada-lang.c (ada_language_defn): Convert to...
2566 (ada_language_data): ...this.
2567 (class ada_language): New class.
2568 (ada_language_defn): New static global.
2569 * gdb/c-lang.c (c_language_defn): Convert to...
2570 (c_language_data): ...this.
2571 (class c_language): New class.
2572 (c_language_defn): New static global.
2573 (cplus_language_defn): Convert to...
2574 (cplus_language_data): ...this.
2575 (class cplus_language): New class.
2576 (cplus_language_defn): New static global.
2577 (asm_language_defn): Convert to...
2578 (asm_language_data): ...this.
2579 (class asm_language): New class.
2580 (asm_language_defn): New static global.
2581 (minimal_language_defn): Convert to...
2582 (minimal_language_data): ...this.
2583 (class minimal_language): New class.
2584 (minimal_language_defn): New static global.
2585 * gdb/d-lang.c (d_language_defn): Convert to...
2586 (d_language_data): ...this.
2587 (class d_language): New class.
2588 (d_language_defn): New static global.
2589 * gdb/f-lang.c (f_language_defn): Convert to...
2590 (f_language_data): ...this.
2591 (class f_language): New class.
2592 (f_language_defn): New static global.
2593 * gdb/go-lang.c (go_language_defn): Convert to...
2594 (go_language_data): ...this.
2595 (class go_language): New class.
2596 (go_language_defn): New static global.
2597 * gdb/language.c (unknown_language_defn): Remove declaration.
2598 (current_language): Initialize to nullptr, real initialization is
2599 moved to _initialize_language.
2600 (languages): Delete global.
2601 (language_defn::languages): Define.
2602 (set_language_command): Use language_defn::languages.
2603 (set_language): Likewise.
2604 (range_error): Likewise.
2605 (language_enum): Likewise.
2606 (language_def): Likewise.
2607 (add_set_language_command): Use language_def::languages for the
2608 language list, and language_def to lookup language pointers.
2609 (skip_language_trampoline): Use language_defn::languages.
2610 (unknown_language_defn): Convert to...
2611 (unknown_language_data): ...this.
2612 (class unknown_language): New class.
2613 (unknown_language_defn): New static global.
2614 (auto_language_defn): Convert to...
2615 (auto_language_data): ...this.
2616 (class auto_language): New class.
2617 (auto_language_defn): New static global.
2618 (language_gdbarch_post_init): Use language_defn::languages.
2619 (_initialize_language): Initialize current_language.
2620 * gdb/language.h (struct language_defn): Rename to...
2621 (struct language_data): ...this.
2622 (struct language_defn): New.
2623 (auto_language_defn): Delete.
2624 (unknown_language_defn): Delete.
2625 (minimal_language_defn): Delete.
2626 (ada_language_defn): Delete.
2627 (asm_language_defn): Delete.
2628 (c_language_defn): Delete.
2629 (cplus_language_defn): Delete.
2630 (d_language_defn): Delete.
2631 (f_language_defn): Delete.
2632 (go_language_defn): Delete.
2633 (m2_language_defn): Delete.
2634 (objc_language_defn): Delete.
2635 (opencl_language_defn): Delete.
2636 (pascal_language_defn): Delete.
2637 (rust_language_defn): Delete.
2638 * gdb/m2-lang.c (m2_language_defn): Convert to...
2639 (m2_language_data): ...this.
2640 (class m2_language): New class.
2641 (m2_language_defn): New static global.
2642 * gdb/objc-lang.c (objc_language_defn): Convert to...
2643 (objc_language_data): ...this.
2644 (class objc_language): New class.
2645 (objc_language_defn): New static global.
2646 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2647 (opencl_language_data): ...this.
2648 (class opencl_language): New class.
2649 (opencl_language_defn): New static global.
2650 * gdb/p-lang.c (pascal_language_defn): Convert to...
2651 (pascal_language_data): ...this.
2652 (class pascal_language): New class.
2653 (pascal_language_defn): New static global.
2654 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2655 language pointer, update comment format.
2656 * gdb/rust-lang.c (rust_language_defn): Convert to...
2657 (rust_language_data): ...this.
2658 (class rust_language): New class.
2659 (rust_language_defn): New static global.
2660
2661 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2662
2663 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2664 member variable.
2665 <m_stmt_at_address>: New member variable.
2666 (lnp_state_machine::record_line): Don't record some lines, update
2667 tracking of is_stmt at the same address.
2668 (lnp_state_machine::lnp_state_machine): Initialise new member
2669 variables.
2670
2671 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2672
2673 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2674 "-include gnu-nat-mig.h".
2675 * gnu-nat-mig.h: New file.
2676 * gnu-nat.c: Include "gnu-nat-mig.h".
2677 (exc_server, msg_reply_server, notify_server,
2678 process_reply_server): Remove declarations.
2679
2680 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2681
2682 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2683 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2684 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2685 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2686 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2687 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2688 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2689 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2690 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2691 to gnu_nat_target class.
2692 * gnu-nat.c: Likewise.
2693 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2694 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2695 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2696 object.
2697 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2698 instead of `gnu_target'.
2699
2700 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2701
2702 * i386-gnu-tdep.c: Include "gdbcore.h"
2703 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2704 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2705 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2706 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2707 i386_gnu_sigcontext_addr): New functions
2708 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2709 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2710 tdep.
2711
2712 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2713
2714 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2715 before fork_inferior call. Avoid calling it if target_is_pushed returns
2716 true.
2717
2718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2719
2720 * gnu-nat.h (gnu_target): New variable declaration.
2721 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2722 gnu_target.
2723 * gnu-nat.c (gnu_target): New variable.
2724 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2725 add_thread_silent, and add_thread calls.
2726 (gnu_nat_target::create_inferior): Pass gnu_target to
2727 add_thread_silent, thread_change_ptid call.
2728 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2729 call.
2730
2731 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2732
2733 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2734 (gnu_nat_target::find_memory_regions): Remove unused
2735 `old_address' variable.
2736
2737 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2738
2739 * gnu-nat.c: Include "gdbarch.h".
2740
2741 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2742
2743 * reply_mig_hack.awk (Error return): Cast function through
2744 void *, to bypass compiler function call check.
2745
2746 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2747
2748 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2749 $(srcdir)/reply_mig_hack.awk.
2750
2751 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2752
2753 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2754
2755 2020-05-30 Jonny Grant <jg@jguk.org>
2756
2757 * configure.ac (ACX_BUGURL): change bug URL to https.
2758
2759 2020-05-30 Pedro Alves <palves@redhat.com>
2760
2761 * cp-support.c (replace_typedefs_template): New.
2762 (replace_typedefs_qualified_name): Handle
2763 DEMANGLE_COMPONENT_TEMPLATE.
2764
2765 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2768 dwarf2/index-cache.h, dwarf2/index-write.c,
2769 dwarf2/index-write.h, dwarf2/line-header.c,
2770 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2771 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2772 variables and fields from `dwarf2_per_objfile` to just
2773 `per_objfile` throughout.
2774
2775 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2776
2777 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2778 <push_dwarf_reg_entry_value>: Add comment.
2779
2780 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2781 Keith Seitz <keiths@redhat.com>
2782
2783 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2784 instead of PyEval_ReleaseLock.
2785 (class gdbpy_gil): Move to earlier in file.
2786 (finalize_python): Set gdb_python_initialized.
2787 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2788 when not initialized.
2789
2790 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2793 <push_dwarf_reg_entry_value>: Remove assert. Override
2794 per_objfile with caller_per_objfile.
2795
2796 2020-05-28 Tom de Vries <tdevries@suse.de>
2797
2798 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2799 PR gold/15646 workaround to symbol kind "type".
2800
2801 2020-05-27 Tom Tromey <tromey@adacore.com>
2802
2803 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2804
2805 2020-05-27 Tom Tromey <tromey@adacore.com>
2806
2807 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2808 Use htab_find_with_hash.
2809 <add_abbrev>: Remove "abbrev_number" parameter.
2810 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2811 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2812 (hash_abbrev): Add comment.
2813 (abbrev_table::lookup_abbrev): Move to header file.
2814 (abbrev_table::read): Update.
2815
2816 2020-05-27 Tom Tromey <tromey@adacore.com>
2817
2818 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2819 method.
2820 <canonical_name>: New member.
2821 <raw_name>: Rename from "name".
2822 (partial_die_info): Initialize canonical_name.
2823 (scan_partial_symbols): Check raw_name.
2824 (partial_die_parent_scope, partial_die_full_name)
2825 (add_partial_symbol, add_partial_subprogram)
2826 (add_partial_enumeration, load_partial_dies): Use "name" method.
2827 (partial_die_info::name): New method.
2828 (partial_die_info::read, guess_partial_die_structure_name)
2829 (partial_die_info::fixup): Update.
2830
2831 2020-05-27 Tom Tromey <tromey@adacore.com>
2832
2833 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2834 <get_ref_die_offset>: Inline.
2835 <get_ref_die_offset_complaint>: New method.
2836 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2837 (attribute::get_ref_die_offset_complaint): Rename from
2838 get_ref_die_offset. Just issue complaint.
2839
2840 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2841
2842 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2843
2844 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2845
2846 * exec.c (exec_file_attach): Use errno value of first openp failure.
2847
2848 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2849
2850 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2851 Don't close thread handle.
2852
2853 2020-05-27 Tom Tromey <tom@tromey.com>
2854 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2857 shared_ptr.
2858 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2859 member.
2860 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2861 dwarf2_per_bfd_objfile_data_key>: New globals.
2862 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2863 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2864 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2865 shared.
2866 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2867 short-circuit when sharing.
2868 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2869 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2870
2871 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2874 to...
2875 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2876 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2877
2878 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2881 build_name_components, find_name_components_bounds>:
2882 Add per_objfile parameter.
2883 (struct mapped_index) <symbol_name_at>: Likewise.
2884 (struct mapped_debug_names): Remove constructor.
2885 <dwarf2_per_objfile>: Remove field.
2886 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2887 (mapped_index_base::find_name_components_bounds,
2888 mapped_index_base::build_name_components,
2889 dw2_expand_symtabs_matching_symbol): Likewise.
2890 (class mock_mapped_index) <symbol_name_at>: Likewise.
2891 (check_match): Likewise.
2892 (check_find_bounds_finds): Likewise.
2893 (test_mapped_index_find_name_component_bounds): Update.
2894 (CHECK_MATCH): Update.
2895 (dw2_expand_symtabs_matching): Update.
2896 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2897 per_objfile parameter.
2898 <find_vec_in_debug_names>: Likewise.
2899 <m_per_objfile>: New field.
2900 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2901 parameter.
2902 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2903 (dw2_debug_names_iterator::next): Update.
2904 (dw2_debug_names_lookup_symbol): Update.
2905 (dw2_debug_names_expand_symtabs_for_function): Update.
2906 (dw2_debug_names_map_matching_symbols): Update.
2907 (dw2_debug_names_expand_symtabs_matching): Update.
2908 (dwarf2_read_debug_names): Update.
2909
2910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2913 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2914 move to dwarf2_per_objfile.
2915 <read_in_chain>: Remove.
2916 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2917 remove_all_cus, age_comp_units>: New methods.
2918 <m_dwarf2_cus>: New member.
2919 (struct dwarf2_per_cu_data) <cu>: Remove.
2920 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2921 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2922 moved to methods of dwarf2_per_objfile.
2923 (dwarf2_clear_marks): Remove.
2924 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2925 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2926 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2927 (dwarf2_per_objfile::remove_all_cus): New.
2928 (class free_cached_comp_units) <~free_cached_comp_units>:
2929 Update.
2930 (load_cu): Update.
2931 (dw2_do_instantiate_symtab): Adjust.
2932 (fill_in_sig_entry_from_dwo_entry): Adjust.
2933 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2934 (cutu_reader::cutu_reader): Likewise.
2935 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2936 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2937 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2938 and dwarf2_per_objfile::age_comp_units.
2939 (load_partial_comp_unit): Update.
2940 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2941 (process_queue): Likewise.
2942 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2943 backlink.
2944 (dwarf2_read_addr_index): Likewise.
2945 (follow_die_offset): Likewise.
2946 (dwarf2_fetch_die_loc_sect_off): Likewise.
2947 (dwarf2_fetch_constant_bytes): Likewise.
2948 (dwarf2_fetch_die_type_sect_off): Likewise.
2949 (follow_die_sig_1): Likewise.
2950 (load_full_type_unit): Likewise.
2951 (read_signatured_type): Likewise.
2952 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2953 (dwarf2_cu::~dwarf2_cu): Remove.
2954 (dwarf2_per_objfile::get_cu): New.
2955 (dwarf2_per_objfile::set_cu): New.
2956 (age_cached_comp_units): Rename to...
2957 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2958 to std::unordered_map.
2959 (free_one_cached_comp_unit): Rename to...
2960 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2961 to std::unordered_map.
2962 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2963 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2964 a dwarf2_per_objfile in data.
2965 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2966 (dwarf2_clear_marks): Remove.
2967
2968 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2971 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2972 (init_tu_and_read_dwo_dies): Likewise.
2973 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2974 (cutu_reader::cutu_reader): Likewise.
2975 (load_partial_comp_unit): Likewise.
2976 (process_psymtab_comp_unit): Update.
2977 (build_type_psymtabs_1): Update.
2978 (process_skeletonless_type_unit): Update.
2979 (load_full_comp_unit): Update.
2980 (find_partial_die): Update.
2981 (dwarf2_read_addr_index): Update.
2982 (read_signatured_type): Update.
2983
2984 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2987 m_header_read_in>: New fields.
2988 <get_header>: New method.
2989 * dwarf2/read.c (per_cu_header_read_in): Remove.
2990 (dwarf2_per_cu_data::get_header): New.
2991 (dwarf2_per_cu_data::addr_size): Update.
2992 (dwarf2_per_cu_data::offset_size): Update.
2993 (dwarf2_per_cu_data::ref_addr_size): Update.
2994
2995 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2998 (dw2_do_instantiate_symtab): Update.
2999 (queue_and_load_all_dwo_tus): Change parameter from
3000 dwarf2_per_cu_data to dwarf2_cu.
3001 (dwarf2_fetch_die_loc_sect_off): Update.
3002 (dwarf2_fetch_constant_bytes): Update.
3003 (dwarf2_fetch_die_type_sect_off): Update.
3004
3005 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3006
3007 * dwarf2/read.c (process_full_comp_unit,
3008 process_full_type_unit): Remove per_cu, per_objfile paramters.
3009 Add dwarf2_cu parameter.
3010 (process_queue): Update.
3011
3012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * dwarf2/read.c (create_cu_from_index_list): Replace
3015 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3016 (create_cus_from_index_list): Likewise.
3017 (create_cus_from_index): Likewise.
3018 (create_signatured_type_table_from_index): Likewise.
3019 (create_cus_from_debug_names_list): Likewise.
3020 (create_cus_from_debug_names): Likewise.
3021 (dwarf2_read_gdb_index): Update.
3022 (dwarf2_read_debug_names): Update.
3023
3024 2020-05-27 Tom Tromey <tom@tromey.com>
3025 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * dwarf2/read.h (struct dwarf2_per_objfile)
3028 <get_type_for_signatured_type, set_type_for_signatured_type>:
3029 New methods.
3030 <m_type_map>: New member.
3031 (struct signatured_type) <type>: Remove.
3032 * dwarf2/read.c
3033 (dwarf2_per_objfile::get_type_for_signatured_type,
3034 dwarf2_per_objfile::set_type_for_signatured_type): New.
3035 (get_signatured_type): Use new methods.
3036
3037 2020-05-27 Tom Tromey <tom@tromey.com>
3038 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3041 (struct dwarf2_per_objfile) <type_units>: New member.
3042 <get_type_unit_group_unshareable>: New method.
3043 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3044 num_symtabs, symtabs>: Remove; move to
3045 type_unit_group_unshareable.
3046 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3047 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3048 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3049
3050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * dwarf2/read.h (struct dwarf2_per_cu_data):
3053 <dwarf2_per_objfile>: Remove.
3054 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3055 dwarf2_per_objfile.
3056 (create_signatured_type_table_from_index): Likewise.
3057 (create_signatured_type_table_from_debug_names): Likewise.
3058 (create_debug_type_hash_table): Likewise.
3059 (fill_in_sig_entry_from_dwo_entry): Likewise.
3060 (create_type_unit_group): Likewise.
3061 (read_comp_units_from_section): Likewise.
3062 (create_cus_hash_table): Likewise.
3063
3064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3067 dwarf2_per_cu_data::dwarf2_per_objfile.
3068 (compute_compunit_symtab_includes): Likewise.
3069 (dwarf2_cu::start_symtab): Likewise.
3070
3071 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3072
3073 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3074 parameter.
3075 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3076 (read_namespace_alias): Update.
3077 (lookup_die_type): Update.
3078 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3079 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3080 Update.
3081 (disassemble_dwarf_expression): Update.
3082
3083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * dwarf2/read.h (struct dwarf2_queue_item): Add
3086 dwarf2_per_objfile parameter, assign new parameter.
3087 <per_objfile>: New field.
3088 * dwarf2/read.c (free_one_cached_comp_unit): Add
3089 dwarf2_per_objfile parameter.
3090 (queue_comp_unit): Likewise.
3091 (dw2_do_instantiate_symtab): Update.
3092 (process_psymtab_comp_unit): Update.
3093 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3094 (process_imported_unit_die): Update.
3095 (queue_and_load_dwo_tu): Update.
3096 (follow_die_offset): Update.
3097 (follow_die_sig_1): Update.
3098
3099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3100
3101 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3102 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3103 (read_call_site_scope): Assign per_objfile.
3104 (dwarf2_per_cu_data::objfile): Remove.
3105 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3106 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3107 dwarf2_per_objfile parameter.
3108 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3109 dwarf2_per_objfile parameter.
3110 (dwarf_expr_reg_to_entry_parameter): Add output
3111 dwarf2_per_objfile parameter.
3112 (locexpr_get_frame_base): Update.
3113 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3114 <push_dwarf_reg_entry_value>: Update.
3115 <call_site_to_target_addr>: Update.
3116 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3117 parameter.
3118 (value_of_dwarf_reg_entry): Update.
3119 (rw_pieced_value): Update.
3120 (indirect_synthetic_pointer): Update.
3121 (dwarf2_evaluate_property): Update.
3122 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3123 parameter.
3124 (locexpr_read_variable): Update.
3125 (locexpr_get_symbol_read_needs): Update.
3126 (loclist_read_variable): Update.
3127
3128 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3131 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3132 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3133 parameter.
3134 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3135 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3136 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3137 parameter.
3138 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3139 sect_variable_value): Add dwarf2_per_objfile parameter.
3140 (class dwarf_evaluate_loc_desc) <dwarf_call,
3141 dwarf_variable_value>: Update.
3142 (fetch_const_value_from_synthetic_pointer): Add
3143 dwarf2_per_objfile parameter.
3144 (fetch_const_value_from_synthetic_pointer): Update.
3145 (coerced_pieced_ref): Update.
3146 (class symbol_needs_eval_context) <dwarf_call,
3147 dwarf_variable_value>: Update.
3148 (dwarf2_compile_expr_to_ax): Update.
3149
3150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3151
3152 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3153 parameter.
3154 (dwarf2_evaluate_loc_desc_full): Update.
3155
3156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3157
3158 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3159 parameter.
3160 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3161 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3162 dwarf2_per_objfile parameter.
3163 (decode_debug_loc_dwo_addresses): Likewise.
3164 (dwarf2_find_location_expression): Update.
3165 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3166 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3167 parameter.
3168 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3169 parameter.
3170 (locexpr_describe_location_1): Likewise.
3171 (locexpr_describe_location): Update.
3172
3173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3174
3175 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3176 Remove.
3177 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3178 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3179 (dwarf2_compile_property_to_c): Update.
3180 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3181 use text offset from objfile.
3182 (locexpr_tracepoint_var_ref): Update.
3183 (locexpr_generate_c_location): Update.
3184 (loclist_describe_location): Update.
3185 (loclist_tracepoint_var_ref): Update.
3186 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3187 dwarf2_per_objfile parameter.
3188 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3189 use text offset from objfile.
3190 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3191
3192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * dwarf2/expr.h (struct dwarf_expr_context)
3195 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3196 <offset>: Remove.
3197 <per_objfile>: New member.
3198 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3199 dwarf2_per_objfile parameter. Don't set offset, set
3200 per_objfile.
3201 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3202 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3203 a dwarf2_per_objfile object instead of an offset.
3204 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3205 constructor.
3206 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3207 to dwarf2_expr_executor constructor. Don't set offset.
3208 (dwarf2_fetch_cfa_info): Update.
3209 (struct dwarf2_frame_cache) <text_offset>: Remove.
3210 <per_objfile>: New field.
3211 (dwarf2_frame_cache): Update.
3212 (dwarf2_frame_prev_register): Update.
3213 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3214 <dwarf_evaluate_loc_desc>: Add constructor.
3215 (dwarf2_evaluate_loc_desc_full): Update.
3216 (dwarf2_locexpr_baton_eval): Update.
3217 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3218 Add constructor.
3219 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3220
3221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3224 addr_sized_int_type>: Move to dwarf2_cu.
3225 <int_type>: Move to dwarf2_per_objfile.
3226 (struct dwarf2_per_objfile) <int_type>: Move here.
3227 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3228 addr_sized_int_type>: Move here.
3229 (read_func_scope): Update.
3230 (read_array_type): Update.
3231 (read_tag_string_type): Update.
3232 (attr_to_dynamic_prop): Update.
3233 (dwarf2_per_cu_data::int_type): Rename to...
3234 (dwarf2_per_objfile::int_type): ... this.
3235 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3236 (dwarf2_cu::addr_sized_int_type): ... this.
3237 (read_subrange_type): Update.
3238 (dwarf2_per_cu_data::addr_type): Rename to...
3239 (dwarf2_cu::addr_type): ... this.
3240 (set_die_type): Update.
3241
3242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3245 data through per_cu->cu.
3246
3247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3250 dwarf2_per_cu_data parameter fo dwarf2_cu.
3251 (lookup_dwo_type_unit): Likewise.
3252 (read_cutu_die_from_dwo): Likewise.
3253 (lookup_dwo_unit): Likewise.
3254 (open_and_init_dwo_file): Likewise.
3255 (lookup_dwo_cutu): Likewise.
3256 (lookup_dwo_comp_unit): Likewise.
3257 (lookup_dwo_type_unit): Likewise.
3258 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3259 (cutu_reader::cutu_reader): Update.
3260
3261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3264 parameter.
3265 (process_full_type_unit): Likewise.
3266 (process_queue): Update.
3267
3268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * dwarf2/read.c (recursively_compute_inclusions): Add
3271 dwarf2_per_objfile parameter.
3272 (compute_compunit_symtab_includes): Likewise.
3273 (process_cu_includes): Update.
3274
3275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3278 parameter.
3279 (create_type_unit_group): Update.
3280 (process_psymtab_comp_unit_reader): Update.
3281 (build_type_psymtabs_reader): Update.
3282
3283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3286 object through m_this_cu->cu.
3287
3288 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3289
3290 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3291 the info parameter.
3292 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3293
3294 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3297 per_objfile parameter.
3298 (load_full_type_unit): Add per_objfile parameter.
3299 (read_signatured_type): Likewise.
3300 (load_full_comp_unit): Likewise.
3301 (load_cu): Likewise.
3302 (dw2_do_instantiate_symtab): Likewise.
3303 (dw2_get_file_names): Likewise.
3304 (dw2_map_symtabs_matching_filename): Update.
3305 (dw_expand_symtabs_matching_file_matcher): Update.
3306 (dw2_map_symbol_filenames): Update.
3307 (process_psymtab_comp_unit): Add per_objfile parameter.
3308 (build_type_psymtabs_1): Update.
3309 (process_skeletonless_type_unit): Update.
3310 (dwarf2_build_psymtabs_hard): Update.
3311 (load_partial_comp_unit): Add per_objfile parameter.
3312 (scan_partial_symbols): Update.
3313 (load_full_comp_unit): Add per_objfile parameter.
3314 (process_imported_unit_die): Update.
3315 (create_cus_hash_table): Update.
3316 (find_partial_die): Update.
3317 (dwarf2_read_addr_index): Update.
3318 (follow_die_offset): Update.
3319 (dwarf2_fetch_die_loc_sect_off): Update.
3320 (dwarf2_fetch_constant_bytes): Update.
3321 (dwarf2_fetch_die_type_sect_off): Update.
3322 (follow_die_sig_1): Update.
3323 (load_full_type_unit): Add per_objfile parameter.
3324 (read_signatured_type): Likewise.
3325
3326 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3329 of objfile_name.
3330
3331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3334 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3335 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3336 field.
3337 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3338 (create_cus_from_index): Update.
3339 (dwarf2_read_gdb_index): Update.
3340 (create_cus_from_debug_names): Update.
3341 (dwarf2_read_debug_names): Update.
3342 (get_abbrev_section_for_cu): Update.
3343 (create_all_comp_units): Update.
3344 (read_attribute_value): Update.
3345 (get_debug_line_section): Update.
3346 * dwarf2/index-cache.c (index_cache::store): Update.
3347 * dwarf2/index-write.c (save_gdb_index_command): Update.
3348 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3349
3350 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3353 member.
3354 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3355 dwarf2_per_cu_data::per_bfd.
3356 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3357 (create_type_unit_group): Likewise.
3358 (queue_comp_unit): Remove reference to
3359 per_cu->dwarf2_per_objfile.
3360 (maybe_queue_comp_unit): Likewise.
3361 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3362 (create_cus_hash_table): Assign new field.
3363
3364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * dwarf2/read.c: Replace
3367 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3368 dwarf2_cu->per_objfile throughout.
3369
3370 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3373 parameter, don't use per_cu->dwarf2_per_objfile.
3374 (dw2_instantiate_symtab): Likewise.
3375 (dw2_find_last_source_symtab): Update.
3376 (dw2_map_expand_apply): Update.
3377 (dw2_lookup_symbol): Update.
3378 (dw2_expand_symtabs_for_function): Update.
3379 (dw2_expand_all_symtabs): Update.
3380 (dw2_expand_symtabs_with_fullname): Update.
3381 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3382 don't use per_cu->dwarf2_per_objfile.
3383 (dw2_expand_marked_cus): Update.
3384 (dw2_find_pc_sect_compunit_symtab): Update.
3385 (dw2_debug_names_lookup_symbol): Update.
3386 (dw2_debug_names_expand_symtabs_for_function): Update.
3387 (dw2_debug_names_map_matching_symbols): Update.
3388 (dwarf2_psymtab::expand_psymtab): Update.
3389
3390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3393 <per_objfile>: New member.
3394 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3395 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3396 call to dwarf2_cu.
3397 (cutu_reader::cutu_reader): Update.
3398 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3399
3400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3403 struct dwarf2_per_objfile.
3404 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3405 dwarf2_per_bfd.
3406 * dwarf2/read.c (set_die_type): Update.
3407 (get_die_type_at_offset): Update.
3408
3409 2020-05-27 Tom Tromey <tom@tromey.com>
3410 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3413 method.
3414 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3415 get_symtab, set_symtab>: New methods.
3416 <m_symtabs>: New field.
3417 (struct dwarf2_psymtab): Derive from partial_symtab.
3418 <readin_p, get_compunit_symtab>: Declare methods.
3419 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3420 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3421 New methods.
3422 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3423 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3424 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3425 (dw2_symtab_iter_next, dw2_print_stats)
3426 (dw2_expand_symtabs_with_fullname)
3427 (dw2_expand_symtabs_matching_one)
3428 (dw_expand_symtabs_matching_file_matcher)
3429 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3430 (dw2_debug_names_iterator::next)
3431 (dw2_debug_names_map_matching_symbols)
3432 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3433 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3434 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3435 New methods.
3436 (get_compunit_symtab, process_full_comp_unit)
3437 (process_full_type_unit): Update.
3438 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3439
3440 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3443 then introduce a new dwarf2_per_objfile type.
3444 <read_line_string>: Move to the new dwarf2_per_objfile type.
3445 <objfile>: Likewise.
3446 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3447 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3448 dwarf2_per_objfile->per_bfd.
3449 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3450 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3451 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3452 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3453 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3454 (dwarf2_per_objfile::locate_sections): Rename to...
3455 (dwarf2_per_bfd::locate_sections): ... this.
3456 (dwarf2_per_objfile::get_cutu): Rename to...
3457 (dwarf2_per_bfd::get_cutu): ... this.
3458 (dwarf2_per_objfile::get_cu): Rename to...
3459 (dwarf2_per_bfd::get_cu): ... this.
3460 (dwarf2_per_objfile::get_tu): Rename to...
3461 (dwarf2_per_bfd::get_tu): ... this.
3462 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3463 (dwarf2_per_bfd::allocate_per_cu): ... this.
3464 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3465 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3466 (get_gdb_index_contents_ftype): Change parameter from
3467 dwarf2_per_objfile to dwarf2_per_bfd.
3468 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3469 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3470
3471 2020-05-27 Tom Tromey <tom@tromey.com>
3472 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3475 (allocate_piece_closure): Set "per_objfile" member.
3476 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3477 (locexpr_describe_location, loclist_describe_location): Use new
3478 member.
3479 * dwarf2/read.c (read_call_site_scope)
3480 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3481 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3482 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3483 handle_data_member_location): Set per_objfile member.
3484 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3485 member.
3486 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3487
3488 2020-05-27 Tom Tromey <tom@tromey.com>
3489
3490 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3491 allocate_signatured_type>: Declare new methods.
3492 <m_num_psymtabs>: New member.
3493 (struct dwarf2_per_cu_data) <index>: New member.
3494 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3495 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3496 (create_cu_from_index_list): Use allocate_per_cu.
3497 (create_signatured_type_table_from_index)
3498 (create_signatured_type_table_from_debug_names)
3499 (create_debug_type_hash_table, add_type_unit)
3500 (read_comp_units_from_section): Use allocate_signatured_type.
3501
3502 2020-05-27 Tom Tromey <tom@tromey.com>
3503
3504 * psymtab.c (partial_map_expand_apply)
3505 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3506 (psym_lookup_global_symbol_language)
3507 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3508 (psym_print_stats, psym_expand_symtabs_for_function)
3509 (psym_map_symbol_filenames, psym_map_matching_symbols)
3510 (psym_expand_symtabs_matching)
3511 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3512 (maintenance_check_psymtabs): Update.
3513 * psympriv.h (struct partial_symtab) <readin_p,
3514 get_compunit_symtab>: Add objfile parameter.
3515 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3516 Likewise.
3517 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3518 get_compunit_symtab>: Likewise.
3519 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3520
3521 2020-05-27 Tom Tromey <tom@tromey.com>
3522
3523 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3524 member.
3525 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3526 (create_cu_from_index_list)
3527 (create_signatured_type_table_from_index)
3528 (create_signatured_type_table_from_debug_names)
3529 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3530 (dwarf2_create_include_psymtab)
3531 (create_debug_type_hash_table, add_type_unit)
3532 (create_type_unit_group, read_comp_units_from_section)
3533 (dwarf2_compute_name, create_cus_hash_table)
3534 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3535 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3536 obstack.
3537 (dw2_get_real_path): Likewise. Change argument to
3538 dwarf2_per_objfile.
3539
3540 2020-05-27 Luis Machado <luis.machado@linaro.org>
3541
3542 PR tdep/26000
3543 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3544 for ldrd (immediate).
3545
3546 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3547
3548 * command.h: Add comment giving the name of class_tui.
3549 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3550 create the fake command for the help for class_tui.
3551
3552 2020-05-26 Tom Tromey <tromey@adacore.com>
3553
3554 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3555 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3556 (val_atr): New function.
3557 (value_val_atr): Use it.
3558 * ada-valprint.c (print_optional_low_bound): Change low bound
3559 handling for enums.
3560 (val_print_packed_array_elements): Don't call discrete_position.
3561 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3562 discrete_position for enum types.
3563 * language.c (default_print_array_index): Change type.
3564 * language.h (struct language_defn) <la_print_array_index>: Add
3565 index_type parameter, change type of index_value.
3566 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3567 (default_print_array_index): Update.
3568 * valprint.c (maybe_print_array_index): Don't call
3569 value_from_longest. Update.
3570 (value_print_array_elements): Don't call discrete_position.
3571
3572 2020-05-26 Tom Tromey <tromey@adacore.com>
3573
3574 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3575 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3576
3577 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3578
3579 PR gdb/13519
3580 * avr-tdep.c (avr_integer_to_address): Return data or code
3581 address accordingly to the second 'type' argument of the
3582 function.
3583
3584 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3585
3586 * infcmd.c, inferior.h: (construct_inferior_arguments):
3587 Moved function from here to gdbsupport/common-inferior.{h,cc}
3588
3589 2020-05-23 Tom Tromey <tom@tromey.com>
3590
3591 Revert commit eca1f90c:
3592 * NEWS: Remove entry for completion styling.
3593 * completer.c (_rl_completion_prefix_display_length): Move
3594 declaration later.
3595 (gdb_fnprint): Revert.
3596 (gdb_display_match_list_1): Likewise.
3597 * cli/cli-style.c (completion_prefix_style)
3598 (completion_difference_style, completion_suffix_style): Remove.
3599 (_initialize_cli_style): Revert.
3600 * cli/cli-style.h (completion_prefix_style)
3601 (completion_difference_style, completion_suffix_style): Don't
3602 declare.
3603
3604 2020-05-24 Pedro Alves <palves@redhat.com>
3605
3606 * symtab.c (completion_list_add_name): Return boolean indication
3607 of whether the symbol matched.
3608 (completion_list_add_symbol): Don't try to remove C++ aliases if
3609 the symbol didn't match in the first place.
3610 * symtab.h (completion_list_add_name): Return bool.
3611
3612 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3613
3614 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3615 type::field.
3616
3617 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3618
3619 GDB 9.2 released.
3620
3621 2020-05-23 Tom Tromey <tom@tromey.com>
3622
3623 * NEWS: Add entry for completion styling.
3624 * completer.c (_rl_completion_prefix_display_length): Move
3625 declaration earlier.
3626 (gdb_fnprint): Use completion_style.
3627 (gdb_display_match_list_1): Likewise.
3628 * cli/cli-style.c (completion_prefix_style)
3629 (completion_difference_style, completion_suffix_style): New
3630 globals.
3631 (_initialize_cli_style): Register new globals.
3632 * cli/cli-style.h (completion_prefix_style)
3633 (completion_difference_style, completion_suffix_style): Declare.
3634
3635 2020-05-23 Pedro Alves <palves@redhat.com>
3636
3637 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3638 (parse_escape): Use ISDIGIT instead of isdigit.
3639 (puts_debug): Use gdb_isprint instead of isprint.
3640 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3641 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3642 ISSPACE instead of isspace.
3643 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3644 instead of isspace.
3645 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3646 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3647 instead of isxdigit and ISDIGIT instead of isdigit.
3648
3649 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * gdbtypes.h (struct type) <field>: New method.
3652 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3653 or type::field.
3654
3655 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3656
3657 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3658 (TYPE_FIELDS): Use type::fields. Change all call sites that
3659 modify the propery to use type::set_fields instead.
3660
3661 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3664 type::num_fields instead.
3665
3666 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3669 methods.
3670 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3671 that modify the number of fields to use type::set_num_fields
3672 instead.
3673
3674 2020-05-22 Tom Tromey <tromey@adacore.com>
3675
3676 * compile/compile-object-load.h (munmap_list_free): Don't
3677 declare.
3678
3679 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * annotate.c (annotate_source_line): Update return type, add call
3682 to update current symtab and line.
3683 * annotate.h (annotate_source_line): Update return type, and
3684 extend header comment.
3685 * source.c (info_line_command): Check annotation_level before
3686 calling annotate_source_line.
3687 * stack.c (print_frame_info): If calling annotate_source_line
3688 returns true, then don't print any other source line information.
3689
3690 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3693
3694 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * coffread.c (patch_type): Remove NULL check before xfree.
3697 * corefile.c (set_gnutarget): Likewise.
3698 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3699 * exec.c (build_section_table): Likewise.
3700 * remote.c (remote_target::pass_signals): Likewise.
3701 * utils.c (n_spaces): Likewise.
3702 * cli/cli-script.c (document_command): Likewise.
3703 * i386-windows-tdep.c (core_process_module_section): Likewise.
3704 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3705
3706 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * symfile.c (reread_symbols): Clear objfile's section_offsets
3709 vector and section indices, re-compute them by calling
3710 sym_offsets.
3711
3712 2020-05-20 Tom Tromey <tromey@adacore.com>
3713
3714 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3715 (desc_one_bound, desc_index_type): Compute field name.
3716
3717 2020-05-20 Tom de Vries <tdevries@suse.de>
3718
3719 PR symtab/25833
3720 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3721
3722 2020-05-20 Alan Modra <amodra@gmail.com>
3723
3724 PR 25993
3725 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3726 bfd_set_filename.
3727 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3728 passed to bfd_set_filename.
3729 * symfile-mem.c (add_vsyscall_page): Likewise for string
3730 passed to symbol_file_add_from_memory.
3731 (symbol_file_add_from_memory): Make name param a const char* and
3732 don't strdup.
3733
3734 2020-05-20 Alan Modra <amodra@gmail.com>
3735
3736 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3737 rather than accessing bfd->filename directly.
3738 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3739 and use bfd_section_name.
3740 * dwarf2/frame.c (decode_frame_entry): Likewise.
3741 * exec.c (exec_set_section_address): Likewise.
3742 * solib-aix.c (solib_aix_bfd_open): Likewise.
3743 * stap-probe.c (get_stap_base_address): Likewise.
3744 * symfile.c (reread_symbols): Likewise.
3745
3746 2020-05-19 Tom Tromey <tromey@adacore.com>
3747
3748 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3749
3750 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3753
3754 2020-05-19 Pedro Alves <palves@redhat.com>
3755
3756 * NEWS (set exec-file-mismatch): Adjust entry.
3757 * exec.c: Include "build-id.h".
3758 (validate_exec_file): Try to match build IDs instead of filenames.
3759 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3760 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3761 and pass down 'warn_if_slow'.
3762 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3763 gdb_bfd_open_closure to pass it down.
3764 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3765
3766 2020-05-19 Pedro Alves <palves@redhat.com>
3767
3768 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3769 * target.c (target_fileio_open_1): Rename to target_fileio_open
3770 and make extern. Use bool.
3771 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3772 (target_fileio_read_alloc_1): Adjust.
3773 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3774 (target_fileio_open_warn_if_slow): Delete declaration.
3775
3776 2020-05-19 Pedro Alves <palves@redhat.com>
3777
3778 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3779 Adjust all callers.
3780
3781 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3782
3783 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3784 whether disp is negative.
3785
3786 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3787
3788 * symfile.h (struct symfile_segment_data)
3789 <~symfile_segment_data>: Remove.
3790 <segment_info>: Change to std::vector.
3791 * symfile.c (default_symfile_segments): Update.
3792 * elfread.c (elf_symfile_segments): Update.
3793
3794 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3795
3796 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3797 <segments>: New.
3798 <segment_bases, segment_sizes>: Remove.
3799 * symfile.c (default_symfile_segments): Update.
3800 * elfread.c (elf_symfile_segments): Update.
3801 * remote.c (remote_target::get_offsets): Update.
3802 * solib-target.c (solib_target_relocate_section_addresses):
3803 Update.
3804
3805 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * symfile.h (struct symfile_segment_data): Initialize fields.
3808 <~symfile_segment_data>: Add.
3809 (symfile_segment_data_up): New.
3810 (struct sym_fns) <sym_segments>: Return a
3811 symfile_segment_data_up.
3812 (default_symfile_segments): Return a symfile_segment_data_up.
3813 (free_symfile_segment_data): Remove.
3814 (get_symfile_segment_data): Return a symfile_segment_data_up.
3815 * symfile.c (default_symfile_segments): Likewise.
3816 (get_symfile_segment_data): Likewise.
3817 (free_symfile_segment_data): Remove.
3818 (symfile_find_segment_sections): Update.
3819 * elfread.c (elf_symfile_segments): Return a
3820 symfile_segment_data_up.
3821 * remote.c (remote_target::get_offsets): Update.
3822 * solib-target.c (solib_target_relocate_section_addresses):
3823 Update.
3824 * symfile-debug.c (debug_sym_segments): Return a
3825 symfile_segment_data_up.
3826
3827 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3828
3829 PR build/25981
3830 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3831 Hardcode register numbers.
3832
3833 PR build/25981
3834 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3835 procfs_find_LDT_entry): Remove.
3836 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3837 procfs_find_LDT_entry): Remove.
3838 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3839 Remove.
3840
3841 2020-05-17 Pedro Alves <palves@redhat.com>
3842 Andrew Burgess <andrew.burgess@embecosm.com>
3843 Keno Fischer <keno@juliacomputing.com>
3844
3845 PR gdb/25741
3846 * breakpoint.c (build_target_condition_list): Update comments.
3847 (build_target_command_list): Update comments and skip matching
3848 locations.
3849 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3850 a separate function. Simplify "set breakpoint auto-hw off"
3851 handling.
3852 (insert_breakpoints): Update comment.
3853 (tracepoint_locations_match): New parameter. For breakpoints,
3854 compare location types too, if the caller wants to.
3855 (handle_automatic_hardware_breakpoints): New functions.
3856 (bp_location_is_less_than): Also sort by location type and
3857 hardware breakpoint length.
3858 (update_global_location_list): Handle "set breakpoint auto-hw on"
3859 here.
3860 (update_breakpoint_locations): Ask breakpoint_locations_match to
3861 ignore location types.
3862
3863 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3866 type::name instead.
3867
3868 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * gdbtypes.h (struct type) <name, set_name>: New methods.
3871 (TYPE_CODE): Use type::name. Change all call sites used to set
3872 the name to use type::set_name instead.
3873
3874 2020-05-16 Tom Tromey <tom@tromey.com>
3875
3876 * top.c (quit_force): Update.
3877 * infrun.c (handle_no_resumed): Update.
3878 * top.h (all_uis): New function.
3879 (ALL_UIS): Remove.
3880
3881 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3884
3885 2020-05-16 Pedro Alves <palves@redhat.com>
3886
3887 * ia64-linux-nat.c
3888 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3889 Declare method.
3890 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3891
3892 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3895 (sparc64_adi_info): Likewise.
3896
3897 2020-05-15 Tom Tromey <tom@tromey.com>
3898
3899 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3900 block_objfile.
3901 (lookup_objfile_from_block): Remove.
3902 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3903 (lookup_global_symbol): Use block_objfile.
3904 * symtab.h (lookup_objfile_from_block): Don't declare.
3905 * printcmd.c (clear_dangling_display_expressions): Use
3906 block_objfile.
3907 * parse.c (operator_check_standard): Use block_objfile.
3908
3909 2020-05-15 Tom Tromey <tom@tromey.com>
3910
3911 * language.c (language_alloc_type_symbol): Set
3912 SYMBOL_SECTION.
3913 * symtab.c (initialize_objfile_symbol): Remove.
3914 (allocate_symbol): Remove.
3915 (allocate_template_symbol): Remove.
3916 * dwarf2/read.c (fixup_go_packaging): Use "new".
3917 (new_symbol): Use "new".
3918 (read_variable): Don't call initialize_objfile_symbol. Use
3919 "new".
3920 (read_func_scope): Use "new".
3921 * xcoffread.c (process_xcoff_symbol): Don't call
3922 initialize_objfile_symbol.
3923 (SYMBOL_DUP): Remove.
3924 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3925 "new".
3926 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3927 (allocate_template_symbol): Don't declare.
3928 (struct symbol): Add copy constructor. Change defaults.
3929 * jit.c (finalize_symtab): Use "new".
3930 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3931 Use "new".
3932 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3933 (common_block_end): Use "new".
3934 * mdebugread.c (parse_symbol): Use "new".
3935 (new_symbol): Likewise.
3936
3937 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3938
3939 * NEWS: Mention changes to help and apropos.
3940
3941 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3942
3943 * command.h (enum command_class): Improve comments, document
3944 that class_alias is for user-defined aliases, give the class
3945 name for each class, remove unused class_xdb.
3946 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3947 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3948 by a precise class.
3949 * infcmd.c (_initialize_infcmd): Likewise.
3950 * reverse.c (_initialize_reverse): Likewise.
3951 * stack.c (_initialize_stack): Likewise.
3952 * symfile.c (_initialize_symfile): Likewise.
3953 * tracepoint.c (_initialize_tracepoint): Likewise.
3954
3955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3956
3957 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3958 when their aliased command is traversed.
3959 (help_cmd): Add fput_command_names_styled call to
3960 output command name and aliases when command has an alias.
3961
3962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3963
3964 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3965 * cli/cli-decode.c (help_cmd_list): Declare as static,
3966 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3967 a command together with the command.
3968 (fput_command_name_styled, fput_command_names_styled): New functions.
3969 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3970 fput_command_name_styled.
3971 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3972 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3973
3974 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3975
3976 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3977 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3978 * command.h (cmd_show_list): Likewise.
3979 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3980 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3981
3982 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3983
3984 * unittests/command-def-selftests.c (traverse_command_structure):
3985 Verify all commands of a list have the same prefix command and
3986 that only the top cmdlist commands have a null prefix.
3987
3988 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3989
3990 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3991 as prefix, not one of its aliases.
3992 (set_cmd_prefix): Remove.
3993 (do_add_cmd): Centralize the setting of the prefix of a command, when
3994 command is defined after its full chain of prefix commands.
3995 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3996 (add_setshow_cmd_full): Likewise.
3997 (update_prefix_field_of_prefixed_commands): New function.
3998 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3999 update_prefix_field_of_prefixed_commands.
4000 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4001 addresses of remote_set_cmdlist and remote_show_cmdlist given
4002 as argument, not the address of an argument.
4003 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4004 * gdb/remote.c (_initialize_remote): Likewise.
4005
4006 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4007
4008 * cli/cli-cmds.c (alias_command): Check for an existing alias
4009 using lookup_cmd_composition, as valid_command_p is too strict
4010 and forbids aliases that are the prefix of an existing alias
4011 or command.
4012 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4013 command is properly recognised as a valid command.
4014
4015 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4016
4017 * unittests/help-doc-selftests.c: Rename to
4018 unittests/command-def-selftests.c
4019 * unittests/command-def-selftests.c (help_doc_tests): Update some
4020 comments.
4021 (command_structure_tests, traverse_command_structure): New namespace
4022 and function.
4023 (command_structure_invariants_tests): New function.
4024 (_initialize_command_def_selftests) Renamed from
4025 _initialize_help_doc_selftests, register command_structure_invariants
4026 selftest.
4027
4028 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4029
4030 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4031 an alias of 'show'.
4032
4033 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4034
4035 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4036 ada_is_fixed_point_type. Update all callers.
4037 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4038 all callers.
4039 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4040 Update all callers.
4041 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4042 print_fixed_point_type. Update all callers.
4043 * ada-valprint.c (ada_value_print_num): Replace call to
4044 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4045
4046 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4047
4048 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4049 processors.
4050 (cpu_supports_bts): Add CV_AMD case.
4051
4052 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4053 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * infrun.c (stop_all_threads): Collect multiple wait events at
4056 each pass.
4057
4058 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4061 type::code instead.
4062
4063 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbtypes.h (struct type) <code, set_code>: New methods.
4066 (TYPE_CODE): Use type::code. Change all call sites used to set
4067 the code to use type::set_code instead.
4068
4069 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4070 Tom de Vries <tdevries@suse.de>
4071 Pedro Alves <palves@redhat.com>
4072
4073 PR threads/25478
4074 * infrun.c (stop_all_threads): Do NOT ignore
4075 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4076 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4077 received.
4078 (handle_no_resumed): Remove code handling a live inferior with no
4079 threads.
4080 * remote.c (has_single_non_exited_thread): New.
4081 (remote_target::update_thread_list): Do not delete a thread if is
4082 the last thread of the process.
4083 * thread.c (thread_select): Call delete_exited_threads instead of
4084 prune_threads.
4085
4086 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4087
4088 * infrun.c (stop_all_threads): Enable/disable thread events of all
4089 targets. Move a debug message denoting the end of the function
4090 into the SCOPED_EXIT block.
4091
4092 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4093
4094 * process-stratum-target.h: Include <set>.
4095 (all_non_exited_process_targets, switch_to_target_no_thread): New
4096 function declarations.
4097 * process-stratum-target.c (all_non_exited_process_targets)
4098 (switch_to_target_no_thread): New function implementations.
4099
4100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4101
4102 * infrun.c (handle_inferior_event): Extract out a piece of code
4103 into...
4104 (mark_non_executing_threads): ...this new function.
4105
4106 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4107
4108 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4109 use.
4110
4111 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112
4113 * regcache.c (regcache_read_pc_protected): New function
4114 implementation that returns 0 if the PC cannot read via
4115 'regcache_read_pc'.
4116 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4117 instead of 'regcache_read_pc'.
4118 (keep_going_pass_signal): Ditto.
4119
4120 2020-05-13 Tom Tromey <tromey@adacore.com>
4121
4122 * ada-lang.c (align_value): Remove.
4123 (ada_template_to_fixed_record_type_1): Use align_up.
4124
4125 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4126
4127 * async-event.c: Update the copyright year.
4128 * async-event.h: Update the copyright year.
4129
4130 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4131
4132 * objfiles.h (is_addr_in_objfile,
4133 shared_objfile_contains_address_p): Return bool.
4134 * objfile.c (is_addr_in_objfile,
4135 shared_objfile_contains_address_p): Return bool.
4136
4137 2020-05-11 Tom Tromey <tromey@adacore.com>
4138
4139 * cli/cli-cmds.c (info_command): Restore.
4140 (_initialize_cli_cmds): Use add_prefix_command for "info".
4141 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4142
4143 2020-05-11 Tom Tromey <tromey@adacore.com>
4144
4145 * ada-lang.c (ada_value_primitive_field): Now public.
4146 * ada-lang.h (ada_value_primitive_field): Declare.
4147 * ada-valprint.c (print_field_values): Use
4148 ada_value_primitive_field for wrapper fields.
4149
4150 2020-05-11 Tom de Vries <tdevries@suse.de>
4151
4152 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4153 MODULE_DOMAIN.
4154
4155 2020-05-11 Tom de Vries <tdevries@suse.de>
4156
4157 PR symtab/25941
4158 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4159 with length 0, if not gdb-produced.
4160 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4161
4162 2020-05-09 Tom de Vries <tdevries@suse.de>
4163
4164 PR gdb/25955
4165 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4166 calculation.
4167
4168 2020-05-09 Tom Tromey <tom@tromey.com>
4169
4170 * top.c (server_command): Now bool.
4171 * top.h (server_command): Now bool.
4172
4173 2020-05-08 Tom Tromey <tromey@adacore.com>
4174
4175 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4176 already being processed.
4177
4178 2020-05-08 Tom Tromey <tom@tromey.com>
4179
4180 * printcmd.c (struct display) <next>: Remove.
4181 <display>: New constructor.
4182 <exp_string>: Now a std::string.
4183 <enabled_p>: Now a bool.
4184 (display_number): Move definition earlier.
4185 (displays): Rename from display_chain. Now a std::vector.
4186 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4187 (display_command): Update.
4188 (do_one_display, disable_display)
4189 (enable_disable_display_command, do_enable_disable_display):
4190 Update.
4191 (free_display): Remove.
4192 (clear_displays): Rewrite.
4193 (delete_display): Update.
4194 (map_display_numbers): Use function_view. Remove "data"
4195 parameter. Update.
4196 (do_delete_display): Remove.
4197 (undisplay_command): Update.
4198 (do_one_display, do_displays, disable_display)
4199 (info_display_command): Update.
4200 (do_enable_disable_display): Remove.
4201 (enable_disable_display_command)
4202 (clear_dangling_display_expressions): Update.
4203
4204 2020-05-08 Tom Tromey <tom@tromey.com>
4205
4206 * symtab.c (set_symbol_cache_size)
4207 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4208 (maintenance_print_symbol_cache_statistics): Update.
4209 * symmisc.c (print_symbol_bcache_statistics)
4210 (print_objfile_statistics, maintenance_print_objfiles)
4211 (maintenance_info_symtabs, maintenance_check_symtabs)
4212 (maintenance_expand_symtabs, maintenance_info_line_tables):
4213 Update.
4214 * symfile-debug.c (set_debug_symfile): Update.
4215 * source.c (forget_cached_source_info): Update.
4216 * python/python.c (gdbpy_progspaces): Update.
4217 * psymtab.c (maintenance_info_psymtabs): Update.
4218 * probe.c (parse_probes): Update.
4219 * linespec.c (iterate_over_all_matching_symtabs)
4220 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4221 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4222 * exec.c (exec_target::close): Update.
4223 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4224 * breakpoint.c (print_one_breakpoint_location)
4225 (create_longjmp_master_breakpoint)
4226 (create_std_terminate_master_breakpoint): Update.
4227 * progspace.c (program_spaces): Now a std::vector.
4228 (maybe_new_address_space): Update.
4229 (add_program_space): Remove.
4230 (program_space::program_space): Update.
4231 (remove_program_space): Update.
4232 (number_of_program_spaces): Remove.
4233 (print_program_space, update_address_spaces): Update.
4234 * progspace.h (program_spaces): Change type.
4235 (ALL_PSPACES): Remove.
4236 (number_of_program_spaces): Don't declare.
4237 (struct program_space) <next>: Remove.
4238
4239 2020-05-08 Tom Tromey <tom@tromey.com>
4240
4241 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4242 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4243 (enable_break): Update.
4244 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4245 (frv_fdpic_find_canonical_descriptor): Update.
4246 (frv_fetch_objfile_link_map): Update.
4247 * progspace.c (program_space::free_all_objfiles): Update.
4248 (program_space::solibs): New method.
4249 * progspace.h (struct program_space) <solibs>: New method.
4250 * solist.h (master_so_list): Don't declare.
4251 (ALL_SO_LIBS): Remove.
4252 * solib.h (so_list_head): Remove.
4253 (update_solib_list): Update comment.
4254 * solib.c (master_so_list): Remove.
4255 (solib_used, update_solib_list, solib_add)
4256 (info_sharedlibrary_command, clear_solib)
4257 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4258
4259 2020-05-08 Tom Tromey <tom@tromey.com>
4260
4261 * extension.c (extension_languages): Now a std::array.
4262 (ALL_EXTENSION_LANGUAGES): Remove.
4263 (get_ext_lang_defn, get_ext_lang_of_file)
4264 (eval_ext_lang_from_control_command): Update.
4265 (finish_ext_lang_initialization)
4266 (auto_load_ext_lang_scripts_for_objfile)
4267 (ext_lang_type_printers::ext_lang_type_printers)
4268 (apply_ext_lang_type_printers)
4269 (ext_lang_type_printers::~ext_lang_type_printers)
4270 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4271 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4272 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4273 (get_matching_xmethod_workers, ext_lang_colorize)
4274 (ext_lang_before_prompt): Update.
4275 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4276
4277 2020-05-08 Tom Tromey <tom@tromey.com>
4278
4279 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4280 overload.
4281 <swap_string, m_string>: Remove.
4282 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4283 Update.
4284 * stabsread.c (define_symbol, read_type): Update.
4285 * linespec.c (find_linespec_symbols): Update.
4286 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4287 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4288 * dbxread.c (read_dbx_symtab): Update.
4289 * cp-support.h (cp_canonicalize_string_full)
4290 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4291 Return unique_xmalloc_ptr.
4292 * cp-support.c (inspect_type): Update.
4293 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4294 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4295 Likewise.
4296 * c-typeprint.c (print_name_maybe_canonical): Update.
4297 * break-catch-throw.c (check_status_exception_catchpoint):
4298 Update.
4299
4300 2020-05-08 Tom de Vries <tdevries@suse.de>
4301
4302 * infrun.c (follow_fork): Copy current_line and current_symtab to
4303 child thread.
4304
4305 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4306
4307 * async-event.c (struct async_signal_handler, struct
4308 async_event_handler): Reformat, remove typedef.
4309
4310 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4313 access thistype->main_type->dyn_prop_list directly.
4314
4315 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4318 (remove_dyn_prop): Remove. Update all users to use
4319 type::remove_dyn_prop.
4320 * gdbtypes.c (remove_dyn_prop): Rename to...
4321 (type::remove_dyn_prop): ... this.
4322
4323 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4324
4325 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4326 (add_dyn_prop): Remove. Update all users to use
4327 type::add_dyn_prop.
4328 * gdbtypes.c (add_dyn_prop): Rename to...
4329 (type::add_dyn_prop): ... this.
4330
4331 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4334 (get_dyn_prop): Remove. Update all users to use
4335 type::dyn_prop.
4336 * gdbtypes.c (get_dyn_prop): Rename to...
4337 (type::dyn_prop): ... this.
4338
4339 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4340
4341 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4342
4343 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4346 instruction, skip it if it's there.
4347
4348 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4349
4350 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4351
4352 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4355 * gdbtypes.c (recursive_dump_type): Remove use of
4356 TYPE_INCOMPLETE.
4357
4358 2020-05-03 Tom Tromey <tom@tromey.com>
4359
4360 * breakpoint.c (catch_command, tcatch_command): Remove.
4361 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4362 add_show_prefix_cmd.
4363 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4364 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4365 Remove.
4366 (add_internal_problem_command): Use add_basic_prefix_cmd,
4367 add_show_prefix_cmd.
4368 * mips-tdep.c (set_mipsfpu_command): Remove.
4369 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4370 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4371 (_initialize_index_cache): Use add_basic_prefix_cmd.
4372 * memattr.c (dummy_cmd): Remove.
4373 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4374 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4375 (_initialize_tui_win): Use add_basic_prefix_cmd,
4376 add_show_prefix_cmd.
4377 * cli/cli-logging.c (set_logging_command): Remove.
4378 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4379 add_show_prefix_cmd.
4380 (show_logging_command): Remove.
4381 * target.c (target_command): Remove.
4382 (add_target): Use add_basic_prefix_cmd.
4383
4384 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4385
4386 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4387
4388 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389
4390 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4391 info_command.
4392
4393 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4394
4395 * nbsd-nat.c (nbsd_enable_proc_events)
4396 (nbsd_nat_target::post_startup_inferior): Add.
4397 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4398 (nbsd_nat_target::update_thread_list): Rewrite.
4399 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4400 "PTRACE_LWP_CREATE".
4401 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4402
4403 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4404
4405 * stack.c (_initialize_stack): Remove duplicated creation
4406 of "frame" command and "f" alias.
4407
4408 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4409
4410 PR gdb/18706
4411 * gdbtypes.c (check_typedef): Calculate size of array of
4412 stubbed type.
4413
4414 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4415
4416 PR gdb/15559
4417 * i386-tdep.c (i386_push_dummy_call): Call
4418 i386_thiscall_push_dummy_call.
4419 (i386_thiscall_push_dummy_call): New function.
4420 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4421 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4422 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4423
4424 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * gdbarch.sh (do_read): Add shellcheck disable directive for
4427 warning SC2162.
4428
4429 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4432 "referenced but not assigned" warning.
4433
4434 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * gdbarch.sh: Remove code that sets fallbackdefault.
4437
4438 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * gdbarch.sh: Use shell operators && and || instead of
4441 -a and -o.
4442
4443 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * gdbarch.sh: Use $(...) instead of `...`.
4446
4447 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * gdbarch.sh: Use double quotes around variables.
4450
4451 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * gdbarch.sh: Use %s with printf, instead of variables in the
4454 format string.
4455
4456 2020-04-29 Tom Tromey <tromey@adacore.com>
4457
4458 PR ada/25875:
4459 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4460 type fields here.
4461 (read_enumeration_type): Call
4462 update_enumeration_type_from_children later. Update comments.
4463 (process_enumeration_scope): Don't create type fields.
4464
4465 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4466
4467 * nbsd-tdep.c: Include "xml-syscall.h".
4468 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4469
4470 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4471
4472 * nbsd-nat.c: Include "sys/wait.h".
4473 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4474 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4475 (nbsd_nat_target::remove_exec_catchpoint)
4476 (nbsd_nat_target::set_syscall_catchpoint): Add.
4477 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4478 (nbsd_nat_target::insert_exec_catchpoint)
4479 (nbsd_nat_target::remove_exec_catchpoint)
4480 (nbsd_nat_target::set_syscall_catchpoint): Add.
4481 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4482 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4483 `nbsd_get_syscall_number'.
4484
4485 2020-04-29 Tom Tromey <tom@tromey.com>
4486
4487 * stack.c (print_block_frame_labels): Remove.
4488
4489 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4490
4491 PR gdb/17320
4492 * ada-valprint.c (val_print_packed_array_elements): Move array
4493 end bracket to new line.
4494 (ada_val_print_string): Remove extra spaces before first array
4495 element.
4496 * c-valprint.c (c_value_print_array): Likewise.
4497 * m2-valprint.c (m2_print_array_contents): Likewise.
4498 (m2_value_print_inner): Likewise.
4499 * p-valprint.c (pascal_value_print_inner): Likewise.
4500 * valprint.c (generic_val_print_array): Likewise.
4501 (value_print_array_elements): Move first array element and array
4502 end bracket to new line.
4503
4504 2020-04-29 Tom de Vries <tdevries@suse.de>
4505
4506 PR symtab/25889
4507 * linespec.c (find_method): Fix ix calculation.
4508
4509 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4510
4511 * syscalls/update-netbsd.sh: New file.
4512 * syscalls/netbsd.xml: Regenerate.
4513 * data-directory/Makefile.in: Register `netbsd.xml' in
4514 `SYSCALLS_FILES'.
4515
4516 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * syscalls/update-freebsd.sh: Add double quotes.
4519
4520 2020-04-28 Tom Tromey <tom@tromey.com>
4521
4522 * NEWS: Update.
4523 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4524 (cmdpy_init): Allow class_tui.
4525
4526 2020-04-28 Mark Williams <mark@myosotissp.com>
4527
4528 PR gdb/24480
4529 * dwarf2read.c: Add missing assingments to list_in_scope when
4530 start_symtab was already called.
4531
4532 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4533
4534 PR gdb/25881
4535 * dwarf2/read.c (offset_map_type): Use
4536 gdb:hash_enum<sect_offset> as hash function.
4537
4538 2020-04-28 Tom de Vries <tdevries@suse.de>
4539
4540 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4541 with DW_AT_signature.
4542
4543 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * configure.ac: Remove check for fs_base/gs_base in
4546 user_regs_struct.
4547 * configure: Re-generate.
4548 * config.in: Re-generate.
4549 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4550 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4551 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4552
4553 2020-04-27 Luis Machado <luis.machado@linaro.org>
4554
4555 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4556 problematic inline frame unwinding situation.
4557 * frame.c (frame_id_computed_p): New function.
4558 * frame.h (frame_id_computed_p): New prototype.
4559
4560 2020-04-26 Tom Tromey <tom@tromey.com>
4561
4562 * command.h (enum command_class) <class_pseudo>: Remove.
4563
4564 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4565
4566 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4567 and whitespace.
4568
4569 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4570
4571 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4572 `PT_GET_PROCESS_STATE' block.
4573
4574 2020-04-24 Tom Tromey <tom@tromey.com>
4575
4576 * symtab.h (symbol_get_demangled_name): Don't declare.
4577 * symtab.c (symbol_get_demangled_name): Remove.
4578 (general_symbol_info::natural_name)
4579 (general_symbol_info::demangled_name): Update.
4580
4581 2020-04-24 Tom Tromey <tom@tromey.com>
4582
4583 PR rust/25025:
4584 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4585
4586 2020-04-24 Tom Tromey <tom@tromey.com>
4587
4588 PR symtab/12707:
4589 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4590 exists.
4591 (new_symbol): Likewise.
4592 * compile/compile-object-load.c (get_out_value_type): Use
4593 symbol_matches_search_name.
4594
4595 2020-04-24 Tom Tromey <tom@tromey.com>
4596
4597 * dwarf2/read.c (add_partial_symbol): Do not call
4598 compute_and_set_names.
4599
4600 2020-04-24 Tom Tromey <tom@tromey.com>
4601
4602 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4603 overload.
4604
4605 2020-04-24 Tom Tromey <tom@tromey.com>
4606
4607 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4608 (add_psymbol_to_list): New overload. Make old overload call new
4609 one.
4610 * psympriv.h (add_psymbol_to_list): New overload.
4611
4612 2020-04-24 Tom Tromey <tom@tromey.com>
4613
4614 * dwarf2/read.c (partial_die_info::read) <case
4615 DW_AT_linkage_name>: Use value_as_string.
4616 (dwarf2_string_attr): Use value_as_string.
4617 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4618 method.
4619 * dwarf2/attribute.c (attribute::value_as_string): New method.
4620
4621 2020-04-24 Tom Tromey <tom@tromey.com>
4622
4623 * symtab.c (general_symbol_info::natural_name)
4624 (general_symbol_info::demangled_name): Check for language_rust.
4625
4626 2020-04-24 Tom Tromey <tom@tromey.com>
4627
4628 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4629 (dwarf2_physname): ... from here.
4630 (partial_die_info::read): Add Rust "{" hack.
4631
4632 2020-04-24 Tom Tromey <tom@tromey.com>
4633
4634 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4635 method.
4636 (symbol_set_demangled_name): Don't declare.
4637 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4638 symbol_set_demangled_name.
4639 (general_symbol_info::set_language)
4640 (general_symbol_info::compute_and_set_names): Update.
4641 * minsyms.c (minimal_symbol_reader::install): Update.
4642 * dwarf2/read.c (new_symbol): Update.
4643
4644 2020-04-24 Tom Tromey <tromey@adacore.com>
4645
4646 PR python/23662:
4647 * python/py-type.c (convert_field): Handle
4648 FIELD_LOC_KIND_DWARF_BLOCK.
4649 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4650 (typy_get_dynamic): Nw function.
4651 (type_object_getset): Add "dynamic".
4652 * NEWS: Add entry.
4653
4654 2020-04-24 Tom Tromey <tromey@adacore.com>
4655
4656 * ada-typeprint.c (print_choices, print_variant_part)
4657 (print_record_field_types_dynamic): New functions.
4658 (print_record_field_types): Use print_record_field_types_dynamic.
4659
4660 2020-04-24 Tom Tromey <tromey@adacore.com>
4661
4662 * dwarf2/read.c (handle_data_member_location): New overload.
4663 (dwarf2_add_field): Use it.
4664 (decode_locdesc): Add "computed" parameter. Update comment.
4665 * gdbtypes.c (is_dynamic_type_internal): Also look for
4666 FIELD_LOC_KIND_DWARF_BLOCK.
4667 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4668 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4669 virtual base classes.
4670 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4671 FIELD_LOC_KIND_DWARF_BLOCK.
4672
4673 2020-04-24 Tom Tromey <tromey@adacore.com>
4674
4675 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4676 * gdbtypes.c (is_dynamic_type_internal): Check
4677 TYPE_HAS_DYNAMIC_LENGTH.
4678 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4679 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4680 New macros.
4681 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4682 constant.
4683
4684 2020-04-24 Tom Tromey <tromey@adacore.com>
4685
4686 * dwarf2/read.c (struct variant_field): Rewrite.
4687 (struct variant_part_builder): New.
4688 (struct nextfield): Remove "variant" field. Add "offset".
4689 (struct field_info): Add "current_variant_part" and
4690 "variant_parts".
4691 (alloc_discriminant_info): Remove.
4692 (alloc_rust_variant): New function.
4693 (quirk_rust_enum): Update.
4694 (dwarf2_add_field): Set "offset" member. Don't handle
4695 DW_TAG_variant_part.
4696 (offset_map_type): New typedef.
4697 (convert_variant_range, create_one_variant)
4698 (create_one_variant_part, create_variant_parts)
4699 (add_variant_property): New functions.
4700 (dwarf2_attach_fields_to_type): Call add_variant_property.
4701 (read_structure_type): Don't handle DW_TAG_variant_part.
4702 (handle_variant_part, handle_variant): New functions.
4703 (handle_struct_member_die): Use them.
4704 (process_structure_scope): Don't handle variant parts.
4705 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4706 (struct discriminant_info): Remove.
4707 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4708 (struct main_type) <flag_discriminated_union>: Remove.
4709 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4710 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4711 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4712 Update.
4713 * valops.c (value_union_variant): Remove.
4714 * value.h (value_union_variant): Don't declare.
4715
4716 2020-04-24 Tom Tromey <tromey@adacore.com>
4717
4718 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4719 (ada_value_primitive_packed_val): Update.
4720 * ada-valprint.c (ada_value_print_1): Update.
4721 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4722 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4723 just an address. Use evaluate_for_locexpr_baton.
4724 (dwarf2_evaluate_property): Update.
4725 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4726 array_view.
4727 * findvar.c (default_read_var_value): Update.
4728 * gdbtypes.c (compute_variant_fields_inner)
4729 (resolve_dynamic_type_internal): Update.
4730 (resolve_dynamic_type): Change type of valaddr parameter.
4731 * gdbtypes.h (resolve_dynamic_type): Update.
4732 * valarith.c (value_subscripted_rvalue): Update.
4733 * value.c (value_from_contents_and_address): Update.
4734
4735 2020-04-24 Tom Tromey <tromey@adacore.com>
4736
4737 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4738 "push_initial_value" parameter.
4739 (dwarf2_evaluate_property): Likewise.
4740 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4741
4742 2020-04-24 Tom Tromey <tromey@adacore.com>
4743
4744 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4745 (variant::matches, compute_variant_fields_recurse)
4746 (compute_variant_fields_inner, compute_variant_fields): New
4747 functions.
4748 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4749 Use resolved_type after type is made.
4750 (operator==): Add new cases.
4751 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4752 (struct discriminant_range, struct variant, struct variant_part):
4753 New.
4754 (union dynamic_prop_data) <variant_parts, original_type>: New
4755 members.
4756 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4757 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4758 constants.
4759 * value.c (unpack_bits_as_long): Now public.
4760 * value.h (unpack_bits_as_long): Declare.
4761
4762 2020-04-24 Tom Tromey <tromey@adacore.com>
4763
4764 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4765 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4766
4767 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4768
4769 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4770
4771 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4772
4773 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4774 (remove_fork_catchpoint, post_startup_inferior)
4775 (post_attach): Move...
4776 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4777 (remove_fork_catchpoint, post_startup_inferior)
4778 (post_attach): ...here.
4779 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4780 (remove_fork_catchpoint, post_startup_inferior)
4781 (post_attach): Move...
4782 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4783 (remove_fork_catchpoint, post_startup_inferior)
4784 (post_attach): ...here.
4785
4786 2020-04-24 Tom Tromey <tromey@adacore.com>
4787
4788 * nat/windows-nat.h (struct windows_thread_info)
4789 <pc_adjusted>: New member.
4790 * windows-nat.c (windows_fetch_one_register): Check
4791 pc_adjusted.
4792 (windows_nat_target::get_windows_debug_event)
4793 (windows_nat_target::wait): Set pc_adjusted.
4794
4795 2020-04-24 Tom de Vries <tdevries@suse.de>
4796
4797 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4798 Run gdb-add-index inside temp dir.
4799
4800 2020-04-23 Tom Tromey <tromey@adacore.com>
4801
4802 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4803 in loop.
4804
4805 2020-04-23 Luis Machado <luis.machado@linaro.org>
4806
4807 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4808 get_frame_register instead of gdbarch_unwind_pc.
4809
4810 2020-04-23 Tom de Vries <tdevries@suse.de>
4811
4812 * symtab.c (lookup_global_symbol): Prefer def over decl.
4813
4814 2020-04-23 Tom de Vries <tdevries@suse.de>
4815
4816 PR symtab/25807
4817 * block.c (best_symbol, better_symbol): Promote to external.
4818 * block.h (best_symbol, better_symbol): Declare.
4819 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4820 decl.
4821
4822 2020-04-23 Tom Tromey <tromey@adacore.com>
4823
4824 PR ada/25837:
4825 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4826 "const char *", not a "const std::string &".
4827 <name_and_matcher::operator==>: Update.
4828 * unittests/lookup_name_info-selftests.c: Change type of
4829 "result".
4830
4831 2020-04-23 Tom Tromey <tom@tromey.com>
4832
4833 * inferior.h (iterate_over_inferiors): Don't declare.
4834 * inferior.c (iterate_over_inferiors): Remove.
4835 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4836 Remove.
4837 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4838 use iterate_over_inferiors.
4839 (darwin_resume_inferior_it)
4840 (struct resume_inferior_threads_param)
4841 (darwin_resume_inferior_threads_it): Remove.
4842 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4843
4844 2020-04-23 Tom de Vries <tdevries@suse.de>
4845
4846 * blockframe.c (find_pc_partial_function): Use
4847 find_pc_sect_compunit_symtab rather than
4848 objfile->sf->qf->find_pc_sect_compunit_symtab.
4849
4850 2020-04-22 Tom de Vries <tdevries@suse.de>
4851
4852 PR symtab/25764
4853 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4854 in psymtabs.
4855
4856 2020-04-22 Tom de Vries <tdevries@suse.de>
4857
4858 PR symtab/25801
4859 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4860 symtabs.
4861
4862 2020-04-22 Tom de Vries <tdevries@suse.de>
4863
4864 PR symtab/25700
4865 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4866 CU if already created.
4867
4868 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869
4870 * infrun.c (displaced_step_fixup): Switch to the event_thread
4871 before calling displaced_step_restore, not after.
4872
4873 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4874
4875 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4876 its inferior is not recorded by us.
4877 (record_btrace_target_open): Replace call to
4878 all_non_exited_threads () with call to current_inferior
4879 ()->non_exited_threads ().
4880 (record_btrace_target::stop_recording): Likewise.
4881 (record_btrace_target::close): Likewise.
4882 (record_btrace_target::wait): Likewise.
4883 (record_btrace_target::record_stop_replaying): Likewise.
4884
4885 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4886
4887 * btrace.c (btrace_enable): Throw an error on double enables and
4888 when enabling recording fails.
4889 (btrace_disable): Throw an error if the thread is not recorded.
4890
4891 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4892
4893 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4894 request if we do not have a thread_info.
4895
4896 2020-04-21 Tom de Vries <tdevries@suse.de>
4897
4898 PR gdb/25471
4899 * thread.c
4900 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4901 exception in get_frame_id.
4902
4903 2020-04-20 Tom Tromey <tromey@adacore.com>
4904
4905 * python/python.c (struct gdbpy_event): Mark move constructor as
4906 noexcept.
4907 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4908 constructor as noexcept.
4909 * completer.h (struct completion_result): Mark move constructor as
4910 noexcept.
4911 * completer.c (completion_result::completion_result): Use
4912 initialization style. Don't call reset_match_list.
4913
4914 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4915
4916 * MAINTAINERS (Write After Approval): Add myself.
4917
4918 2020-04-18 Tom Tromey <tom@tromey.com>
4919
4920 * windows-tdep.c (init_w32_command_list)
4921 (w32_prefix_command_valid): Restore.
4922 (_initialize_windows_tdep): Call init_w32_command_list.
4923
4924 2020-04-18 Tom Tromey <tom@tromey.com>
4925
4926 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4927 * value.c (value_fn_field): Update.
4928 * valops.c (find_function_in_inferior)
4929 (value_allocate_space_in_inferior): Update.
4930 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4931 Update.
4932 * tui/tui-source.c (tui_source_window::set_contents): Update.
4933 * symtab.c (lookup_global_or_static_symbol)
4934 (find_function_start_sal_1, skip_prologue_sal)
4935 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4936 * symmisc.c (dump_msymbols, dump_symtab_1)
4937 (maintenance_print_one_line_table): Update.
4938 * symfile.c (init_entry_point_info, section_is_mapped)
4939 (list_overlays_command, simple_read_overlay_table)
4940 (simple_overlay_update_1): Update.
4941 * stap-probe.c (handle_stap_probe): Update.
4942 * stabsread.c (dbx_init_float_type, define_symbol)
4943 (read_one_struct_field, read_enum_type, read_range_type): Update.
4944 * source.c (info_line_command): Update.
4945 * python/python.c (gdbpy_source_objfile_script)
4946 (gdbpy_execute_objfile_script): Update.
4947 * python/py-type.c (save_objfile_types): Update.
4948 * python/py-objfile.c (py_free_objfile): Update.
4949 * python/py-inferior.c (python_new_objfile): Update.
4950 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4951 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4952 (maintenance_check_psymtabs): Update.
4953 * printcmd.c (info_address_command): Update.
4954 * objfiles.h (struct objfile) <arch>: New method, from
4955 get_objfile_arch.
4956 (get_objfile_arch): Don't declare.
4957 * objfiles.c (get_objfile_arch): Remove.
4958 (filter_overlapping_sections): Update.
4959 * minsyms.c (msymbol_is_function): Update.
4960 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4961 (output_nondebug_symbol): Update.
4962 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4963 (mdebug_expand_psymtab): Update.
4964 * machoread.c (macho_add_oso_symfile): Update.
4965 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4966 Update.
4967 * linux-fork.c (checkpoint_command): Update.
4968 * linespec.c (convert_linespec_to_sals): Update.
4969 * jit.c (finalize_symtab): Update.
4970 * infrun.c (insert_exception_resume_from_probe): Update.
4971 * ia64-tdep.c (ia64_find_unwind_table): Update.
4972 * hppa-tdep.c (internalize_unwinds): Update.
4973 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4974 Update.
4975 * gcore.c (call_target_sbrk): Update.
4976 * elfread.c (record_minimal_symbol, elf_symtab_read)
4977 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4978 (elf_gnu_ifunc_resolve_by_got): Update.
4979 * dwarf2/read.c (create_addrmap_from_index)
4980 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4981 (read_debug_names_from_section)
4982 (process_psymtab_comp_unit_reader, add_partial_symbol)
4983 (add_partial_subprogram, process_full_comp_unit)
4984 (read_file_scope, read_func_scope, read_lexical_block_scope)
4985 (read_call_site_scope, dwarf2_ranges_read)
4986 (dwarf2_record_block_ranges, dwarf2_add_field)
4987 (mark_common_block_symbol_computed, read_tag_pointer_type)
4988 (read_tag_string_type, dwarf2_init_float_type)
4989 (dwarf2_init_complex_target_type, read_base_type)
4990 (partial_die_info::read, partial_die_info::read)
4991 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4992 (dwarf2_fetch_die_loc_sect_off): Update.
4993 * dwarf2/loc.c (dwarf2_find_location_expression)
4994 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4995 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4996 (dwarf2_loc_desc_get_symbol_read_needs)
4997 (locexpr_describe_location_piece, locexpr_describe_location_1)
4998 (loclist_describe_location): Update.
4999 * dwarf2/index-write.c (write_debug_names): Update.
5000 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5001 * dtrace-probe.c (dtrace_process_dof): Update.
5002 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5003 (process_one_symbol): Update.
5004 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5005 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5006 (coff_read_enum_type): Update.
5007 * cli/cli-cmds.c (edit_command, list_command): Update.
5008 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5009 * breakpoint.c (create_overlay_event_breakpoint)
5010 (create_longjmp_master_breakpoint)
5011 (create_std_terminate_master_breakpoint)
5012 (create_exception_master_breakpoint, get_sal_arch): Update.
5013 * block.c (block_gdbarch): Update.
5014 * annotate.c (annotate_source_line): Update.
5015
5016 2020-04-17 Tom Tromey <tromey@adacore.com>
5017
5018 * auto-load.c (show_auto_load_cmd): Remove.
5019 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5020 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5021 (maintenance_print_arc_command): Remove.
5022 * tui/tui-win.c (tui_command): Remove.
5023 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5024 * tui/tui-layout.c (tui_layout_command): Remove.
5025 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5026 * python/python.c (user_set_python, user_show_python): Remove.
5027 (_initialize_python): Use add_basic_prefix_cmd,
5028 add_show_prefix_cmd.
5029 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5030 (install_gdb_commands): Use add_basic_prefix_cmd,
5031 add_show_prefix_cmd.
5032 (info_guile_command): Remove.
5033 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5034 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5035 add_show_prefix_cmd.
5036 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5037 Remove do_set and do_show parameters.
5038 * cli/cli-style.c (set_style, show_style): Remove.
5039 (_initialize_cli_style): Use add_basic_prefix_cmd,
5040 add_show_prefix_cmd.
5041 (cli_style_option::add_setshow_commands): Remove do_set and
5042 do_show parameters.
5043 (cli_style_option::add_setshow_commands): Use
5044 add_basic_prefix_cmd, add_show_prefix_cmd.
5045 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5046 (set_style_name): Remove.
5047 * cli/cli-dump.c (dump_command, append_command): Remove.
5048 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5049 (tekhex_dump_command, binary_dump_command)
5050 (binary_append_command): Remove.
5051 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5052 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5053 (init_w32_command_list): Remove; move into ...
5054 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5055 * valprint.c (set_print, show_print, set_print_raw)
5056 (show_print_raw): Remove.
5057 (_initialize_valprint): Use add_basic_prefix_cmd,
5058 add_show_prefix_cmd.
5059 * typeprint.c (set_print_type, show_print_type): Remove.
5060 (_initialize_typeprint): Use add_basic_prefix_cmd,
5061 add_show_prefix_cmd.
5062 * record.c (set_record_command, show_record_command): Remove.
5063 (_initialize_record): Use add_basic_prefix_cmd,
5064 add_show_prefix_cmd.
5065 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5066 add_show_prefix_cmd.
5067 (info_command, show_command, set_debug, show_debug): Remove.
5068 * top.h (set_history, show_history): Don't declare.
5069 * top.c (set_history, show_history): Remove.
5070 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5071 (unset_tdesc_cmd): Remove.
5072 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5073 add_show_prefix_cmd.
5074 * symtab.c (info_module_command): Remove.
5075 (_initialize_symtab): Use add_basic_prefix_cmd.
5076 * symfile.c (overlay_command): Remove.
5077 (_initialize_symfile): Use add_basic_prefix_cmd.
5078 * sparc64-tdep.c (info_adi_command): Remove.
5079 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5080 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5081 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5082 add_show_prefix_cmd.
5083 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5084 (_initialize_serial): Use add_basic_prefix_cmd,
5085 add_show_prefix_cmd.
5086 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5087 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5088 add_show_prefix_cmd.
5089 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5090 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5091 add_show_prefix_cmd.
5092 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5093 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5094 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5095 add_show_prefix_cmd.
5096 * remote.c (remote_command, set_remote_cmd): Remove.
5097 (_initialize_remote): Use add_basic_prefix_cmd.
5098 * record-full.c (set_record_full_command)
5099 (show_record_full_command): Remove.
5100 (_initialize_record_full): Use add_basic_prefix_cmd,
5101 add_show_prefix_cmd.
5102 * record-btrace.c (cmd_set_record_btrace)
5103 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5104 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5105 (cmd_show_record_btrace_pt): Remove.
5106 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5107 add_show_prefix_cmd.
5108 * ravenscar-thread.c (set_ravenscar_command)
5109 (show_ravenscar_command): Remove.
5110 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5111 add_show_prefix_cmd.
5112 * mips-tdep.c (show_mips_command, set_mips_command)
5113 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5114 add_show_prefix_cmd.
5115 * maint.c (maintenance_command, maintenance_info_command)
5116 (maintenance_check_command, maintenance_print_command)
5117 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5118 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5119 add_show_prefix_cmd.
5120 (show_per_command_cmd): Remove.
5121 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5122 Remove.
5123 (maintenance_show_test_settings_cmd): Remove.
5124 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5125 add_show_prefix_cmd.
5126 * maint-test-options.c (maintenance_test_options_command):
5127 Remove.
5128 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5129 * macrocmd.c (macro_command): Remove
5130 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5131 * language.c (set_check, show_check): Remove.
5132 (_initialize_language): Use add_basic_prefix_cmd,
5133 add_show_prefix_cmd.
5134 * infcmd.c (unset_command): Remove.
5135 (_initialize_infcmd): Use add_basic_prefix_cmd.
5136 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5137 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5138 add_show_prefix_cmd.
5139 * go32-nat.c (go32_info_dos_command): Remove.
5140 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5141 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5142 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5143 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5144 (_initialize_frame): Use add_basic_prefix_cmd,
5145 add_show_prefix_cmd.
5146 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5147 (_initialize_dcache): Use add_basic_prefix_cmd,
5148 add_show_prefix_cmd.
5149 * cp-support.c (maint_cplus_command): Remove.
5150 (_initialize_cp_support): Use add_basic_prefix_cmd.
5151 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5152 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5153 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5154 add_basic_prefix_cmd, add_show_prefix_cmd.
5155 * breakpoint.c (save_command): Remove.
5156 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5157 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5158 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5159 add_show_prefix_cmd.
5160 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5161 (set_ada_command, show_ada_command): Remove.
5162 (_initialize_ada_language): Use add_basic_prefix_cmd,
5163 add_show_prefix_cmd.
5164 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5165
5166 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5167
5168 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5169 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5170
5171 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5172
5173 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5174 warning messages.
5175
5176 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5179 import table is not at beginning of .idata section.
5180
5181 2020-04-16 Pedro Alves <palves@redhat.com>
5182
5183 * inferior.c (delete_inferior): Use delete operator directly
5184 instead of delete_program_space.
5185 * progspace.c (add_program_space): New, factored out from
5186 program_space::program_space.
5187 (remove_program_space): New, factored out from
5188 delete_program_space.
5189 (program_space::program_space): Remove intro comment. Rewrite.
5190 (program_space::~program_space): Remove intro comment. Call
5191 remove_program_space.
5192 (delete_program_space): Delete.
5193 * progspace.h (program_space::program_space): Make explicit. Move
5194 intro comment here, adjusted.
5195 (program_space::~program_space): Move intro comment here,
5196 adjusted.
5197 (delete_program_space): Remove.
5198
5199 2020-04-16 Tom Tromey <tromey@adacore.com>
5200
5201 * windows-nat.c (windows_nat::handle_access_violation): New
5202 function.
5203 * nat/windows-nat.h (handle_access_violation): Declare.
5204 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5205 windows-nat.c. Call handle_access_violation.
5206
5207 2020-04-16 Tom de Vries <tdevries@suse.de>
5208
5209 PR symtab/25791
5210 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5211 CUs without psymtab.
5212
5213 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5214
5215 * python/python.c (do_start_initialization): Don't call
5216 PyEval_InitThreads for Python 3.9 and beyond.
5217
5218 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5219
5220 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5221 thread functions.
5222 (obsd_nat_target::wait): Likewise.
5223
5224 2020-04-15 Tom Tromey <tromey@adacore.com>
5225
5226 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5227 (DEBUG_EXCEPT): Use debug_printf.
5228
5229 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * completer.c (class completion_tracker::completion_hash_entry)
5232 <hash_name>: New member function.
5233 (completion_tracker::discard_completions): New callback to hash a
5234 completion_hash_entry, pass this to htab_create_alloc.
5235
5236 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5237
5238 * windows-nat.c (windows_make_so): Warn rather than stopping with
5239 an error if realpath() fails.
5240
5241 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5242
5243 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5244 (nbsd_nat_target::info_proc): Add do_status.
5245
5246 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5247 Tom de Vries <tdevries@suse.de>
5248
5249 PR symtab/25718
5250 * psympriv.h (struct partial_symtab::read_symtab)
5251 (struct partial_symtab::expand_psymtab)
5252 (struct partial_symtab::read_dependencies): Update comments.
5253 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5254 read_symtab for includer.
5255 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5256 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5257 (struct dwarf2_include_psymtab::m_readin): Remove.
5258 (struct dwarf2_include_psymtab::includer): New member function.
5259 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5260
5261 2020-04-14 Tom de Vries <tdevries@suse.de>
5262
5263 PR symtab/25720
5264 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5265 with NULL symbol_matcher and lookup_name.
5266 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5267 and lookup_name.
5268 * dwarf2/read.c (dw2_expand_symtabs_matching)
5269 (dw2_debug_names_expand_symtabs_matching): Same.
5270 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5271 Make lookup_name a pointer. Update comment.
5272 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5273 lookup_name being a pointer.
5274 * symfile.c (expand_symtabs_matching): Same.
5275 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5276 * linespec.c (iterate_over_all_matching_symtabs): Same.
5277
5278 2020-04-13 Tom Tromey <tom@tromey.com>
5279
5280 * run-on-main-thread.c: Update include.
5281 * unittests/main-thread-selftests.c: Update include.
5282 * tui/tui-win.c: Update include.
5283 * tui/tui-io.c: Update include.
5284 * tui/tui-interp.c: Update include.
5285 * tui/tui-hooks.c: Update include.
5286 * top.h: Update include.
5287 * top.c: Update include.
5288 * ser-base.c: Update include.
5289 * remote.c: Update include.
5290 * remote-notif.c: Update include.
5291 * remote-fileio.c: Update include.
5292 * record-full.c: Update include.
5293 * record-btrace.c: Update include.
5294 * python/python.c: Update include.
5295 * posix-hdep.c: Update include.
5296 * mingw-hdep.c: Update include.
5297 * mi/mi-main.c: Update include.
5298 * mi/mi-interp.c: Update include.
5299 * main.c: Update include.
5300 * linux-nat.c: Update include.
5301 * interps.c: Update include.
5302 * infrun.c: Update include.
5303 * inf-loop.c: Update include.
5304 * event-top.c: Update include.
5305 * event-loop.c: Move to ../gdbsupport/.
5306 * event-loop.h: Move to ../gdbsupport/.
5307 * async-event.h: Update include.
5308 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5309
5310 2020-04-13 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-win.c: Include async-event.h.
5313 * remote.c: Include async-event.h.
5314 * remote-notif.c: Include async-event.h.
5315 * record-full.c: Include async-event.h.
5316 * record-btrace.c: Include async-event.h.
5317 * infrun.c: Include async-event.h.
5318 * event-top.c: Include async-event.h.
5319 * event-loop.h: Move some declarations to async-event.h.
5320 * event-loop.c: Don't include ser-event.h or top.h. Move some
5321 code to async-event.c.
5322 * async-event.h: New file.
5323 * async-event.c: New file.
5324 * Makefile.in (COMMON_SFILES): Add async-event.c.
5325 (HFILES_NO_SRCDIR): Add async-event.h.
5326
5327 2020-04-13 Tom Tromey <tom@tromey.com>
5328
5329 * utils.c (flush_streams): New function.
5330 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5331
5332 2020-04-13 Tom Tromey <tom@tromey.com>
5333
5334 * event-loop.c (handle_file_event): Use warning, not
5335 printf_unfiltered.
5336
5337 2020-04-13 Tom Tromey <tom@tromey.com>
5338
5339 * event-loop.c: Include <chrono>.
5340
5341 2020-04-13 Tom Tromey <tom@tromey.com>
5342
5343 * gdb_select.h: Move to ../gdbsupport/.
5344 * event-loop.c: Update include path.
5345 * top.c: Update include path.
5346 * ser-base.c: Update include path.
5347 * ui-file.c: Update include path.
5348 * ser-tcp.c: Update include path.
5349 * guile/scm-ports.c: Update include path.
5350 * posix-hdep.c: Update include path.
5351 * ser-unix.c: Update include path.
5352 * gdb_usleep.c: Update include path.
5353 * mingw-hdep.c: Update include path.
5354 * inflow.c: Update include path.
5355 * infrun.c: Update include path.
5356 * event-top.c: Update include path.
5357
5358 2020-04-13 Tom Tromey <tom@tromey.com>
5359
5360 * configure: Rebuild.
5361 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5362
5363 2020-04-13 Tom Tromey <tom@tromey.com>
5364
5365 * event-loop.h (start_event_loop): Don't declare.
5366 * event-loop.c (start_event_loop): Move...
5367 * main.c (start_event_loop): ...here. Now static.
5368
5369 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5370
5371 * MAINTAINERS: Update my email address.
5372
5373 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5374
5375 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5376 IP_ALL.
5377
5378 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5379
5380 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5381 (nbsd_nat_target::info_proc): Add do_cmdline.
5382
5383 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5384
5385 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5386 (nbsd_nat_target::info_proc): Add do_cwd.
5387
5388 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5389
5390 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5391
5392 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5393
5394 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5395 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5396 (nbsd_nat_target::info_proc): New functions.
5397 * nbsd-nat.c (kinfo_get_vmmap): New function.
5398 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5399 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5400 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5401 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5402 functions.
5403 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5404 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5405 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5406 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5407 (KINFO_VME_FLAG_GROWS_DOWN): New.
5408
5409 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5410
5411 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5412 bit shift.
5413
5414 2020-04-10 Tom Tromey <tromey@adacore.com>
5415
5416 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5417
5418 2020-04-10 Tom Tromey <tromey@adacore.com>
5419
5420 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5421 separate debug files.
5422
5423 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5424
5425 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5426 Move to...
5427 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5428 ... here.
5429 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5430 Check for STATUS_WX86_BREAKPOINT.
5431 (windows_nat_target::wait): Same.
5432
5433 2020-04-10 Tom de Vries <tdevries@suse.de>
5434
5435 PR cli/25808
5436 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5437
5438 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5439
5440 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5441 (Write After Approval): Remove Tom de Vries.
5442
5443 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5444
5445 revert partially:
5446 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5447
5448 * buildsym.c (record_line): Fix undefined behavior and preserve
5449 lines at eof.
5450
5451 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5452
5453 * auxv.h (svr4_auxv_parse): New.
5454 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5455 and generic_auxv_parse.
5456 (svr4_auxv_parse): Add.
5457 * obsd-tdep.c: Include "auxv.h".
5458 (obsd_auxv_parse): Remove.
5459 (obsd_init_abi): Remove comment.
5460 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5461 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5462 * nbsd-tdep.c: Include "auxv.h".
5463 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5464
5465 2020-04-08 Tom Tromey <tromey@adacore.com>
5466
5467 * nat/windows-nat.h (last_wait_event): Don't declare.
5468 (wait_for_debug_event): Update comment.
5469 * nat/windows-nat.c (last_wait_event): Now static.
5470
5471 2020-04-08 Tom Tromey <tromey@adacore.com>
5472
5473 * windows-nat.c (wait_for_debug_event): Move to
5474 nat/windows-nat.c.
5475 * nat/windows-nat.h (wait_for_debug_event): Declare.
5476 * nat/windows-nat.c (wait_for_debug_event): Move from
5477 windows-nat.c. No longer static.
5478
5479 2020-04-08 Tom Tromey <tromey@adacore.com>
5480
5481 * windows-nat.c (get_windows_debug_event): Use
5482 fetch_pending_stop.
5483 * nat/windows-nat.h (fetch_pending_stop): Declare.
5484 * nat/windows-nat.c (fetch_pending_stop): New function.
5485
5486 2020-04-08 Tom Tromey <tromey@adacore.com>
5487
5488 * windows-nat.c (windows_continue): Use matching_pending_stop and
5489 continue_last_debug_event.
5490 * nat/windows-nat.h (matching_pending_stop)
5491 (continue_last_debug_event): Declare.
5492 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5493 (matching_pending_stop, continue_last_debug_event): New
5494 functions.
5495
5496 2020-04-08 Tom Tromey <tromey@adacore.com>
5497
5498 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5499 (handle_exception_result): Move to nat/windows-nat.h.
5500 (DEBUG_EXCEPTION_SIMPLE): Remove.
5501 (windows_nat::handle_ms_vc_exception): New function.
5502 (handle_exception): Move to nat/windows-nat.c.
5503 (get_windows_debug_event): Update.
5504 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5505 nat/windows-nat.c.
5506 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5507 (handle_exception_result): Move from windows-nat.c.
5508 (handle_exception): Declare.
5509 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5510 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5511 windows-nat.c.
5512
5513 2020-04-08 Tom Tromey <tromey@adacore.com>
5514
5515 * windows-nat.c (exception_count, event_count): Remove.
5516 (handle_exception, get_windows_debug_event)
5517 (do_initial_windows_stuff): Update.
5518
5519 2020-04-08 Tom Tromey <tromey@adacore.com>
5520
5521 * windows-nat.c (windows_nat::handle_load_dll)
5522 (windows_nat::handle_unload_dll): Rename. No longer static.
5523 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5524 Declare.
5525
5526 2020-04-08 Tom Tromey <tromey@adacore.com>
5527
5528 * complaints.h (stop_whining): Declare at top-level.
5529 (complaint): Don't declare stop_whining.
5530
5531 2020-04-08 Tom Tromey <tromey@adacore.com>
5532
5533 * windows-nat.c (windows_nat::handle_output_debug_string):
5534 Rename. No longer static.
5535 * nat/windows-nat.h (handle_output_debug_string): Declare.
5536
5537 2020-04-08 Tom Tromey <tromey@adacore.com>
5538
5539 * windows-nat.c (current_process_handle, current_process_id)
5540 (main_thread_id, last_sig, current_event, last_wait_event)
5541 (current_windows_thread, desired_stop_thread_id, pending_stops)
5542 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5543 (display_selectors, fake_create_process)
5544 (get_windows_debug_event): Update.
5545 * nat/windows-nat.h (current_process_handle, current_process_id)
5546 (main_thread_id, last_sig, current_event, last_wait_event)
5547 (current_windows_thread, desired_stop_thread_id, pending_stops)
5548 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5549 * nat/windows-nat.c (current_process_handle, current_process_id)
5550 (main_thread_id, last_sig, current_event, last_wait_event)
5551 (current_windows_thread, desired_stop_thread_id, pending_stops)
5552 (siginfo_er): New globals. Move from windows-nat.c.
5553
5554 2020-04-08 Tom Tromey <tromey@adacore.com>
5555
5556 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5557 (handle_load_dll): Update.
5558 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5559
5560 2020-04-08 Tom Tromey <tromey@adacore.com>
5561
5562 * windows-nat.c (enum thread_disposition_type): Move to
5563 nat/windows-nat.h.
5564 (windows_nat::thread_rec): Rename from thread_rec. No longer
5565 static.
5566 (windows_add_thread, windows_nat_target::fetch_registers)
5567 (windows_nat_target::store_registers, handle_exception)
5568 (windows_nat_target::resume, get_windows_debug_event)
5569 (windows_nat_target::get_tib_address)
5570 (windows_nat_target::thread_name)
5571 (windows_nat_target::thread_alive): Update.
5572 * nat/windows-nat.h (enum thread_disposition_type): Move from
5573 windows-nat.c.
5574 (thread_rec): Declare.
5575
5576 2020-04-08 Tom Tromey <tromey@adacore.com>
5577
5578 * windows-nat.c: Add "using namespace".
5579 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5580 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5581
5582 2020-04-08 Tom Tromey <tromey@adacore.com>
5583
5584 * nat/windows-nat.h (struct windows_thread_info): Declare
5585 destructor.
5586 * nat/windows-nat.c (~windows_thread_info): New.
5587
5588 2020-04-08 Tom Tromey <tromey@adacore.com>
5589
5590 PR gdb/22992
5591 * windows-nat.c (current_event): Update comment.
5592 (last_wait_event, desired_stop_thread_id): New globals.
5593 (struct pending_stop): New.
5594 (pending_stops): New global.
5595 (windows_nat_target) <stopped_by_sw_breakpoint>
5596 <supports_stopped_by_sw_breakpoint>: New methods.
5597 (windows_fetch_one_register): Add assertions. Adjust PC.
5598 (windows_continue): Handle pending stops. Suspend other threads
5599 when stepping. Use last_wait_event
5600 (wait_for_debug_event): New function.
5601 (get_windows_debug_event): Use wait_for_debug_event. Handle
5602 pending stops. Queue spurious stops.
5603 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5604 (windows_nat_target::kill): Use wait_for_debug_event.
5605 * nat/windows-nat.h (struct windows_thread_info)
5606 <stopped_at_software_breakpoint>: New field.
5607 * nat/windows-nat.c (windows_thread_info::resume): Clear
5608 stopped_at_software_breakpoint.
5609
5610 2020-04-08 Tom Tromey <tromey@adacore.com>
5611
5612 * windows-nat.c (enum thread_disposition_type): New.
5613 (thread_rec): Replace "get_context" parameter with "disposition";
5614 change type.
5615 (windows_add_thread, windows_nat_target::fetch_registers)
5616 (windows_nat_target::store_registers, handle_exception)
5617 (windows_nat_target::resume, get_windows_debug_event)
5618 (windows_nat_target::get_tib_address)
5619 (windows_nat_target::thread_name)
5620 (windows_nat_target::thread_alive): Update.
5621
5622 2020-04-08 Tom Tromey <tromey@adacore.com>
5623
5624 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5625 (windows_continue): Use windows_continue::resume.
5626 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5627 resume>: Declare new methods.
5628 * nat/windows-nat.c: New file.
5629 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5630
5631 2020-04-08 Tom Tromey <tromey@adacore.com>
5632
5633 * windows-nat.c (windows_add_thread, windows_delete_thread)
5634 (windows_nat_target::fetch_registers)
5635 (windows_nat_target::store_registers, fake_create_process)
5636 (windows_nat_target::resume, windows_nat_target::resume)
5637 (get_windows_debug_event, windows_nat_target::wait)
5638 (windows_nat_target::pid_to_str)
5639 (windows_nat_target::get_tib_address)
5640 (windows_nat_target::get_ada_task_ptid)
5641 (windows_nat_target::thread_name)
5642 (windows_nat_target::thread_alive): Use lwp, not tid.
5643
5644 2020-04-08 Tom Tromey <tromey@adacore.com>
5645
5646 * windows-nat.c (handle_exception)
5647 (windows_nat_target::thread_name): Update.
5648 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5649 <name>: Now unique_xmalloc_ptr.
5650
5651 2020-04-08 Tom Tromey <tromey@adacore.com>
5652
5653 * windows-nat.c (thread_rec)
5654 (windows_nat_target::fetch_registers): Update.
5655 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5656 Update comment.
5657 <debug_registers_changed, reload_context>: Now bool.
5658
5659 2020-04-08 Tom Tromey <tromey@adacore.com>
5660
5661 * windows-nat.c (windows_add_thread): Use new.
5662 (windows_init_thread_list, windows_delete_thread): Use delete.
5663 (get_windows_debug_event): Update.
5664 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5665 destructor, and initializers.
5666
5667 2020-04-08 Tom Tromey <tromey@adacore.com>
5668
5669 * windows-nat.c (struct windows_thread_info): Remove.
5670 * nat/windows-nat.h: New file.
5671
5672 2020-04-08 Tom Tromey <tromey@adacore.com>
5673
5674 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5675 (thread_rec, windows_add_thread, windows_delete_thread)
5676 (windows_continue): Update.
5677
5678 2020-04-08 Tom Tromey <tromey@adacore.com>
5679
5680 * windows-nat.c (struct windows_thread_info): Remove typedef.
5681 (thread_head): Remove.
5682 (thread_list): New global.
5683 (thread_rec, windows_add_thread, windows_init_thread_list)
5684 (windows_delete_thread, windows_continue): Update.
5685
5686 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * windows-tdep.h (windows_init_abi): Add comment.
5689 (cygwin_init_abi): New declaration.
5690 * windows-tdep.c: Split signal enumeration in two, one for
5691 Windows and one for Cygwin.
5692 (windows_gdb_signal_to_target): Only deal with signal of the
5693 Windows OS ABI.
5694 (cygwin_gdb_signal_to_target): New function.
5695 (windows_init_abi): Rename to windows_init_abi_common, don't set
5696 gdb_signal_to_target gdbarch method. Add new new function with
5697 this name.
5698 (cygwin_init_abi): New function.
5699 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5700 comment. Don't call windows_init_abi.
5701 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5702 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5703 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5704 i386_windows_init_abi_common, don't call windows_init_abi. Add
5705 a new function of this name.
5706 (i386_cygwin_init_abi): New function.
5707 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5708 OS ABI Cygwin.
5709
5710 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5711
5712 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5713 parameter.c.
5714 (dwarf2_read_gdb_index): Update.
5715
5716 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5717
5718 * nbsd-tdep.c: Include "objfiles.h".
5719 (nbsd_skip_solib_resolver): New.
5720 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5721
5722 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5723
5724 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5725 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5726 with DW_LLE_base_addressx are being emitted in DWARFv5.
5727 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5728 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5729 unsigned integer.
5730
5731 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5732
5733 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5734 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5735 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5736 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5737 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5738 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5739 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5740
5741
5742 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5743
5744 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5745 (read_loclist_index): New function definition.
5746 (lookup_loclist_base): New function definition.
5747 (read_loclist_header): New function definition.
5748 (dwarf2_cu): Add loclist_base and loclist_header field.
5749 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5750 (read_full_die_1): Read the value of DW_AT_loclists_base.
5751 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5752 (read_attribute_value): Handle DW_FORM_loclistx.
5753 (skip_one_die): Handle DW_FORM_loclistx.
5754 (loclist_header): New structure declaration.
5755 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5756
5757 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5758
5759 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5760 constructor. Remove `addr` parameter from other constructor and
5761 add `per_cu` parameter.
5762 * dwarf2/read.c (create_partial_symtab): Update.
5763
5764 2020-04-07 Tom de Vries <tdevries@suse.de>
5765
5766 PR symtab/25796
5767 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5768 (partial_die_info::fixup): Inherit has_const_value.
5769
5770 2020-04-07 Tom de Vries <tdevries@suse.de>
5771
5772 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5773 symbols without address.
5774
5775 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5776
5777 * nbsd-nat.h (struct thread_info): Add forward declaration.
5778 (nbsd_nat_target::thread_alive): Add.
5779 (nbsd_nat_target::thread_name): Likewise.
5780 (nbsd_nat_target::update_thread_list): Likewise.
5781 (update_thread_list::post_attach): Likewise.
5782 (post_attach::pid_to_str): Likewise.
5783 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5784 (nbsd_thread_lister): Add.
5785 (nbsd_nat_target::thread_alive): Likewise.
5786 (nbsd_nat_target::thread_name): Likewise.
5787 (nbsd_add_threads): Likewise.
5788 (update_thread_list::post_attach): Likewise.
5789 (nbsd_nat_target::update_thread_list): Likewise.
5790 (post_attach::pid_to_str): Likewise.
5791
5792 2020-04-06 Tom Tromey <tromey@adacore.com>
5793
5794 * ada-valprint.c (print_variant_part): Extract the variant field.
5795 (print_field_values): Use the field as the outer value when
5796 recursing.
5797
5798 2020-04-06 Tom Tromey <tromey@adacore.com>
5799
5800 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5801 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5802 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5803 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5804 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5805
5806 2020-04-06 Tom Tromey <tromey@adacore.com>
5807
5808 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5809 TYPE_CODE_ERROR.
5810
5811 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5812
5813 * nbsd-tdep.c: Include "gdbarch.h".
5814 Define enum with NetBSD signal numbers.
5815 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5816 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5817 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5818 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5819 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5820 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5821 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5822 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5823 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5824 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5825 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5826 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5827
5828 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5829
5830 PR gdb/25325
5831 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5832
5833 2020-04-03 Tom Tromey <tromey@adacore.com>
5834
5835 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5836 Read constant block.
5837
5838 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5841 (gdb_bfd_get_full_section_contents): New declaration.
5842 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5843 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5844 gdb_bfd_get_full_section_contents.
5845
5846 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5847
5848 * exec.c (build_section_table): Replace internal_error with
5849 gdb_assert.
5850 (section_table_xfer_memory_partial): Likewise.
5851 * mdebugread.c (parse_partial_symbols): Likewise.
5852 * psymtab.c (lookup_partial_symbol): Likewise.
5853 * utils.c (wrap_here): Likewise.
5854
5855 2020-04-02 Tom Tromey <tromey@adacore.com>
5856
5857 * f-lang.c (build_fortran_types): Use arch_type to initialize
5858 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5859
5860 2020-04-02 Tom Tromey <tromey@adacore.com>
5861
5862 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5863 of attributes.
5864
5865 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5866 Bernd Edlinger <bernd.edlinger@hotmail.de>
5867 Tom Tromey <tromey@adacore.com>
5868
5869 * buildsym.c (buildsym_compunit::record_line): Remove
5870 deduplication code.
5871
5872 2020-04-02 Tom de Vries <tdevries@suse.de>
5873
5874 PR ada/24671
5875 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5876
5877 2020-04-02 Tom de Vries <tdevries@suse.de>
5878
5879 * dwarf2/read.c (dwarf2_gdb_index_functions,
5880 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5881 NULL.
5882 * psymtab.c (psym_lookup_global_symbol_language): New function.
5883 (psym_functions): Init psym_lookup_global_symbol_language with
5884 psym_lookup_global_symbol_language.
5885 * symfile-debug.c (debug_sym_quick_functions): Init
5886 lookup_global_symbol_language with NULL.
5887 * symfile.c (set_initial_language): Remove fixme comment.
5888 * symfile.h (struct quick_symbol_functions): Add
5889 lookup_global_symbol_language.
5890 * symtab.c (find_quick_global_symbol_language): New function.
5891 (find_main_name): Use find_quick_global_symbol_language.
5892
5893 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5896
5897 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5898
5899 * buildsym.c (record_line): Fix undefined behavior and preserve
5900 lines at eof.
5901
5902 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5903
5904 * buildsym.c (record_line): Fix the resizing condition.
5905
5906 2020-04-01 Tom Tromey <tom@tromey.com>
5907
5908 * value.h (value_literal_complex): Add comment.
5909 * valops.c (value_literal_complex): Refer to value.h.
5910
5911 2020-04-01 Tom Tromey <tom@tromey.com>
5912
5913 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5914 (scalar_type): New rule, from typebase.
5915 (typebase): Use scalar_type. Recognize complex types.
5916 (field_name): Handle FLOAT_KEYWORD.
5917 (ident_tokens): Add _Complex and __complex__.
5918
5919 2020-04-01 Tom Tromey <tom@tromey.com>
5920
5921 PR exp/25299:
5922 * valarith.c (promotion_type, complex_binop): New functions.
5923 (scalar_binop): Handle complex numbers. Use promotion_type.
5924 (value_pos, value_neg, value_complement): Handle complex numbers.
5925
5926 2020-04-01 Tom Tromey <tom@tromey.com>
5927
5928 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5929 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5930 (parse_number): Handle complex numbers.
5931
5932 2020-04-01 Tom Tromey <tom@tromey.com>
5933
5934 * c-valprint.c (c_decorations): Change complex suffix to "i".
5935
5936 2020-04-01 Tom Tromey <tom@tromey.com>
5937
5938 * valprint.c (generic_value_print_complex): Use accessors.
5939 * value.h (value_real_part, value_imaginary_part): Declare.
5940 * valops.c (value_real_part, value_imaginary_part): New
5941 functions.
5942 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5943
5944 2020-04-01 Tom Tromey <tom@tromey.com>
5945
5946 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5947 (read_range_type): Update.
5948 * mdebugread.c (basic_type): Update.
5949 * go-lang.c (build_go_types): Use init_complex_type.
5950 * gdbtypes.h (struct main_type) <complex_type>: New member.
5951 (init_complex_type): Update.
5952 (arch_complex_type): Don't declare.
5953 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5954 Make name if none given. Use alloc_type_copy. Look for cached
5955 complex type.
5956 (arch_complex_type): Remove.
5957 (gdbtypes_post_init): Use init_complex_type.
5958 * f-lang.c (build_fortran_types): Use init_complex_type.
5959 * dwarf2/read.c (read_base_type): Update.
5960 * d-lang.c (build_d_types): Use init_complex_type.
5961 * ctfread.c (read_base_type): Update.
5962
5963 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5964
5965 * infrun.c (stop_all_threads): Update assertion, plus when
5966 stopping threads, take into account that we might be trying
5967 to stop an all-stop target.
5968 (stop_waiting): Call 'stop_all_threads' if there exists a
5969 non-stop target.
5970
5971 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5972
5973 * target.h (exists_non_stop_target): New function declaration.
5974 * target.c (exists_non_stop_target): New function.
5975
5976 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5977
5978 PR gdb/24789
5979 * eval.c (is_integral_or_integral_reference): New function.
5980 (evaluate_subexp_standard): Allow integer references in
5981 pointer arithmetic.
5982
5983 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5984
5985 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5986 check for no ptid in the stop reply when the target is non-stop.
5987
5988 2020-04-01 Tom Tromey <tromey@adacore.com>
5989
5990 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5991 "name" parameter to rvalue reference. Initialize m_name_holder.
5992 <lookup_name_info>: New overloads.
5993 <name>: Return gdb::string_view.
5994 <c_str>: New method.
5995 <make_ignore_params>: Update.
5996 <search_name_hash>: Update.
5997 <language_lookup_name>: Return const char *.
5998 <m_name>: Change type.
5999 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6000 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6001 (lookup_name_info::match_any): Update.
6002 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6003 Update.
6004 * minsyms.c (linkage_name_str): Update.
6005 * language.c (default_symbol_name_matcher): Update.
6006 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6007 Update.
6008 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6009 (ada_lookup_name_info::ada_lookup_name_info): Update.
6010 (literal_symbol_name_matcher): Update.
6011
6012 2020-04-01 Tom Tromey <tromey@adacore.com>
6013
6014 * psymtab.c (psymtab_search_name): Remove function.
6015 (psym_lookup_symbol): Create search name and lookup name here.
6016 (lookup_partial_symbol): Remove "name" parameter; add
6017 lookup_name.
6018 (psym_expand_symtabs_for_function): Update.
6019
6020 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6021
6022 PR tui/25597:
6023 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6024
6025 2020-03-31 Tom Tromey <tromey@adacore.com>
6026
6027 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6028 memcpy.
6029
6030 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6031
6032 * features/riscv/32bit-csr.xml: Regenerated.
6033 * features/riscv/64bit-csr.xml: Regenerated.
6034
6035 2020-03-30 Tom Tromey <tromey@adacore.com>
6036
6037 * ada-valprint.c (print_variant_part): Update.
6038 * ada-lang.h (ada_which_variant_applies): Update.
6039 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6040 outer_valaddr parameters; replace with "outer" value parameter.
6041 (to_fixed_variant_branch_type): Update.
6042
6043 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6044
6045 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6046 <list>. Remove inclusion of observable.h.
6047 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6048 (struct arch_lwp_info): New struct.
6049 (class ppc_linux_dreg_interface): New class.
6050 (struct ppc_linux_process_info): New struct.
6051 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6052 <low_new_clone, low_forget_process, low_prepare_to_resume>
6053 <copy_thread_dreg_state, mark_thread_stale>
6054 <mark_debug_registers_changed, register_hw_breakpoint>
6055 <clear_hw_breakpoint, register_wp, clear_wp>
6056 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6057 <num_memory_accesses, get_trigger_type>
6058 <create_watchpoint_request, hwdebug_point_cmp>
6059 <init_arch_lwp_info, get_arch_lwp_info>
6060 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6061 methods.
6062 <struct ptid_hash>: New inner struct.
6063 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6064 members.
6065 (saved_dabr_value, hwdebug_info, max_slots_number)
6066 (struct hw_break_tuple, struct thread_points, ppc_threads)
6067 (have_ptrace_hwdebug_interface)
6068 (hwdebug_find_thread_points_by_tid)
6069 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6070 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6071 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6072 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6073 use m_dreg_interface.
6074 (hwdebug_point_cmp): Change to...
6075 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6076 reference arguments instead of pointers.
6077 (ppc_linux_nat_target::ranged_break_num_registers): Use
6078 m_dreg_interface.
6079 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6080 m_dreg_interface. Call register_hw_breakpoint.
6081 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6082 m_dreg_interface. Call clear_hw_breakpoint.
6083 (get_trigger_type): Change to...
6084 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6085 comment.
6086 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6087 use m_dreg_interface. Call register_hw_breakpoint.
6088 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6089 use m_dreg_interface. Call clear_hw_breakpoint.
6090 (can_use_watchpoint_cond_accel): Change to...
6091 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6092 method. Update comment, use m_dreg_interface and
6093 m_process_info.
6094 (calculate_dvc): Change to...
6095 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6096 m_dreg_interface.
6097 (num_memory_accesses): Change to...
6098 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6099 (check_condition): Change to...
6100 (ppc_linux_nat_target::check_condition): ...this method.
6101 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6102 comment, use m_dreg_interface.
6103 (create_watchpoint_request): Change to...
6104 (ppc_linux_nat_target::create_watchpoint_request): ...this
6105 method. Use m_dreg_interface.
6106 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6107 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6108 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6109 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6110 (ppc_linux_nat_target::low_forget_process)
6111 (ppc_linux_nat_target::low_new_fork)
6112 (ppc_linux_nat_target::low_new_clone)
6113 (ppc_linux_nat_target::low_delete_thread)
6114 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6115 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6116 only call mark_thread_stale.
6117 (ppc_linux_thread_exit): Remove.
6118 (ppc_linux_nat_target::stopped_data_address): Change to...
6119 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6120 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6121 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6122 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6123 comment. Call low_stopped_data_address.
6124 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6125 m_dreg_interface.
6126 (ppc_linux_nat_target::masked_watch_num_registers): Use
6127 m_dreg_interface.
6128 (ppc_linux_nat_target::copy_thread_dreg_state)
6129 (ppc_linux_nat_target::mark_thread_stale)
6130 (ppc_linux_nat_target::mark_debug_registers_changed)
6131 (ppc_linux_nat_target::register_hw_breakpoint)
6132 (ppc_linux_nat_target::clear_hw_breakpoint)
6133 (ppc_linux_nat_target::register_wp)
6134 (ppc_linux_nat_target::clear_wp)
6135 (ppc_linux_nat_target::init_arch_lwp_info)
6136 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6137 (_initialize_ppc_linux_nat): Remove observer callback.
6138
6139 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6140
6141 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6142 (ppc_linux_nat_target::auxv_parse)
6143 (ppc_linux_nat_target::read_description)
6144 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6145 Move up.
6146
6147 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6148
6149 * linux-nat.h (low_new_clone): New method.
6150 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6151
6152 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6155 (dbx_expand_psymtab): ... this.
6156 (start_psymtab): Update.
6157 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6158 (mdebug_expand_psymtab): ... this.
6159 (parse_partial_symbols): Update.
6160 (new_psymtab): Update.
6161 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6162 (xcoff_expand_psymtab): ... this.
6163 (xcoff_start_psymtab): Update.
6164
6165 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6168 <expand_dependencies>: ... this.
6169 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6170 (partial_symtab::expand_dependencies): ... this.
6171 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6172 Update.
6173 (dwarf2_psymtab::expand_psymtab): Update.
6174 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6175 * mdebugread.c (psymtab_to_symtab_1): Update.
6176 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6177
6178 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * psympriv.h (discard_psymtab): Remove.
6181 * dbxread.c (dbx_end_psymtab): Update.
6182 * xcoffread.c (xcoff_end_psymtab): Update.
6183
6184 2020-03-28 Tom Tromey <tom@tromey.com>
6185
6186 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6187 comment.
6188
6189 2020-03-28 Tom Tromey <tom@tromey.com>
6190
6191 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6192
6193 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6194
6195 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6196
6197 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6198
6199 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6200
6201 2020-03-26 Tom Tromey <tom@tromey.com>
6202
6203 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6204 (mark_common_block_symbol_computed, read_tag_string_type)
6205 (attr_to_dynamic_prop, read_subrange_type): Update.
6206 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6207 to be methods on struct attribute.
6208 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6209 (read_call_site_scope, partial_die_info::read)
6210 (partial_die_info::read, lookup_die_type, follow_die_ref):
6211 Update.
6212 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6213 from dwarf2_get_ref_die_offset.
6214 (attribute::constant_value): New method, from
6215 dwarf2_get_attr_constant_value.
6216 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6217 Declare method.
6218 <constant_value>: New method.
6219
6220 2020-03-26 Tom Tromey <tom@tromey.com>
6221
6222 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6223 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6224 (dwarf_type_encoding_name): Move to stringify.c.
6225 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6226 * dwarf2/stringify.c: New file.
6227 * dwarf2/stringify.h: New file.
6228
6229 2020-03-26 Tom Tromey <tom@tromey.com>
6230
6231 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6232 Rewrite.
6233
6234 2020-03-26 Tom Tromey <tom@tromey.com>
6235
6236 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6237 methods.
6238 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6239 (lookup_ranges_base): Likewise.
6240 (read_cutu_die_from_dwo, read_full_die_1): Update.
6241
6242 2020-03-26 Tom Tromey <tom@tromey.com>
6243
6244 * dwarf2/read.c (read_import_statement, read_file_scope)
6245 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6246 (read_lexical_block_scope, read_call_site_scope)
6247 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6248 (handle_struct_member_die, process_structure_scope)
6249 (update_enumeration_type_from_children)
6250 (process_enumeration_scope, read_array_type, read_common_block)
6251 (read_namespace, read_module, read_subroutine_type): Update.
6252 (sibling_die): Remove.
6253
6254 2020-03-26 Tom Tromey <tom@tromey.com>
6255
6256 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6257 (build_type_psymtabs_reader, read_structure_type)
6258 (read_enumeration_type, read_full_die_1): Update.
6259 (dwarf2_attr_no_follow): Move to die.h.
6260 * dwarf2/die.h (struct die_info) <attr>: New method.
6261
6262 2020-03-26 Tom Tromey <tom@tromey.com>
6263
6264 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6265 <base_address>: Now an optional.
6266 (dwarf2_find_base_address, dwarf2_rnglists_process)
6267 (dwarf2_ranges_process, fill_in_loclist_baton)
6268 (dwarf2_symbol_mark_computed): Update.
6269
6270 2020-03-26 Tom Tromey <tom@tromey.com>
6271
6272 * dwarf2/read.c (struct die_info): Move to die.h.
6273 * dwarf2/die.h: New file.
6274
6275 2020-03-26 Tom Tromey <tom@tromey.com>
6276
6277 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6278 * dwarf2/read.c
6279 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6280 Move to line-header.c.
6281 (read_checked_initial_length_and_offset, read_formatted_entries):
6282 Likewise.
6283 (dwarf_decode_line_header): Split into two.
6284 * dwarf2/line-header.c
6285 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6286 Move from read.c.
6287 (read_checked_initial_length_and_offset, read_formatted_entries):
6288 Likewise.
6289 (dwarf_decode_line_header): New function, split from read.c.
6290
6291 2020-03-26 Tom Tromey <tom@tromey.com>
6292
6293 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6294 Declare method.
6295 * dwarf2/read.c (read_attribute_value): Update.
6296 (dwarf2_per_objfile::read_line_string): Rename from
6297 read_indirect_line_string.
6298 (read_formatted_entries): Update.
6299
6300 2020-03-26 Tom Tromey <tom@tromey.com>
6301
6302 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6303 variable.
6304
6305 2020-03-26 Tom Tromey <tom@tromey.com>
6306
6307 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6308 const.
6309 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6310 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6311 parameter const.
6312
6313 2020-03-26 Tom Tromey <tom@tromey.com>
6314
6315 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6316 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6317 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6318 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6319
6320 2020-03-26 Tom Tromey <tom@tromey.com>
6321
6322 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6323 file_names_size, file_full_name, file_file_name>: Use const.
6324 <file_name_at, file_names>: Add const overload.
6325 * dwarf2/line-header.c (line_header::file_file_name)
6326 (line_header::file_full_name): Update.
6327
6328 2020-03-26 Tom Tromey <tom@tromey.com>
6329
6330 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6331 (macro_start_file, consume_improper_spaces)
6332 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6333 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6334 (dwarf_decode_macros): Move to macro.c.
6335 * dwarf2/macro.c: New file.
6336 * dwarf2/macro.h: New file.
6337 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6338
6339 2020-03-26 Tom Tromey <tom@tromey.com>
6340
6341 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6342 method.
6343 * dwarf2/section.c: New method. From
6344 read_indirect_string_at_offset_from.
6345 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6346 (read_indirect_string_at_offset_from): Move to section.c.
6347 (read_indirect_string_at_offset): Rewrite.
6348 (read_indirect_line_string_at_offset): Remove.
6349 (read_indirect_string, read_indirect_line_string)
6350 (dwarf_decode_macro_bytes): Update.
6351
6352 2020-03-26 Tom Tromey <tom@tromey.com>
6353
6354 * dwarf2/section.h (struct dwarf2_section_info)
6355 <overload_complaint>: Declare.
6356 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6357 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6358 Rename from dwarf2_section_buffer_overflow_complaint.
6359 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6360 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6361
6362 2020-03-26 Tom Tromey <tom@tromey.com>
6363
6364 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6365 Declare.
6366 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6367 Move from read.c.
6368 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6369 to section.c.
6370
6371 2020-03-26 Tom Tromey <tom@tromey.com>
6372
6373 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6374
6375 2020-03-26 Tom Tromey <tom@tromey.com>
6376
6377 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6378 "builder".
6379 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6380 parameter.
6381 (dwarf_decode_macros): Update.
6382
6383 2020-03-26 Tom Tromey <tom@tromey.com>
6384
6385 * dwarf2/read.c (read_attribute_value): Update.
6386 (read_indirect_string_from_dwz): Move to dwz.c; change into
6387 method.
6388 (dwarf_decode_macro_bytes): Update.
6389 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6390 * dwarf2/dwz.c: New file.
6391 * Makefile.in (COMMON_SFILES): Add dwz.c.
6392
6393 2020-03-26 Tom Tromey <tom@tromey.com>
6394
6395 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6396 * dwarf2/read.c: Add include.
6397 * dwarf2/index-write.c: Add include.
6398 * dwarf2/index-cache.c: Add include.
6399 * dwarf2/dwz.h: New file.
6400
6401 2020-03-25 Tom Tromey <tom@tromey.com>
6402
6403 * compile/compile-object-load.c (get_out_value_type): Mention
6404 correct symbol name in error message.
6405
6406 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6407
6408 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6409
6410 2020-03-25 Tom de Vries <tdevries@suse.de>
6411
6412 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6413 * symmisc.c (dump_symtab_1): Print user and includes fields.
6414 (maintenance_info_symtabs): Same.
6415
6416 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 PR gdb/25534
6419 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6420 (riscv_regcache_cooked_write): New function.
6421 (riscv_push_dummy_call): Use new function.
6422 (riscv_return_value): Likewise.
6423
6424 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6425
6426 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6427 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6428 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6429 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6430 * infrun.c (follow_fork): Likewise.
6431 (follow_fork_inferior): Likewise.
6432 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6433 * linux-nat.h (class linux_nat_target): Likewise.
6434 * remote.c (class remote_target) <follow_fork>: Likewise.
6435 (remote_target::follow_fork): Likewise.
6436 * target-delegates.c: Re-generate.
6437 * target.c (default_follow_fork): Likewise.
6438 (target_follow_fork): Likewise.
6439 * target.h (struct target_ops) <follow_fork>: Likewise.
6440 (target_follow_fork): Likewise.
6441
6442 2020-03-24 Tom de Vries <tdevries@suse.de>
6443
6444 * psymtab.c (maintenance_info_psymtabs): Print user field.
6445
6446 2020-03-20 Tom Tromey <tromey@adacore.com>
6447
6448 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6449 const.
6450 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6451 const.
6452
6453 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * ptrace.m4: Don't check for ptrace declaration.
6456 * config.in: Re-generate.
6457 * configure: Re-generate.
6458 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6459 not defined.
6460
6461 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6462
6463 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6464 `PTRACE_TYPE_RET'.
6465 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6466 * sparc-nat.c (gdb_ptrace): Likewise.
6467 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6468
6469 2020-03-20 Tom Tromey <tromey@adacore.com>
6470
6471 * c-exp.y (lex_one_token): Fix assert.
6472
6473 2020-03-20 Tom Tromey <tromey@adacore.com>
6474
6475 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6476 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6477 strncpy call.
6478
6479 2020-03-20 Tom Tromey <tromey@adacore.com>
6480
6481 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6482
6483 2020-03-20 Tom Tromey <tromey@adacore.com>
6484
6485 * ada-valprint.c (print_variant_part): Remove parameters; switch
6486 to value-based API.
6487 (print_field_values): Likewise.
6488 (ada_val_print_struct_union): Likewise.
6489 (ada_value_print_1): Update.
6490
6491 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6492
6493 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6494 nbsd_nat_target instead of inf_ptrace_target.
6495 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6496 nbsd_nat_target.
6497
6498 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6499
6500 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6501 it to the ptrace call.
6502 * (store_registers): Likewise.
6503
6504 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6505
6506 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6507 it to the ptrace call.
6508 * (store_registers): Likewise.
6509
6510 2020-03-19 Luis Machado <luis.machado@linaro.org>
6511
6512 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6513 valid, fetch vg value from ptrace.
6514
6515 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6516 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6517 * inf-ptrace.c: Likewise.
6518 * (gdb_ptrace): Add.
6519 * (inf_ptrace_target::resume): Update.
6520 * (inf_ptrace_target::xfer_partial): Likewise.
6521 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6522 * (inf_ptrace_peek_poke): Update.
6523
6524 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6525
6526 * x86-bsd-nat.c (gdb_ptrace): New.
6527 * (x86bsd_dr_set): Add new argument `ptid'.
6528 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6529 x86bsd_dr_set_addr): Update.
6530
6531 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6532
6533 * remote.c (remote_target::process_stop_reply): Handle events for
6534 all threads differently.
6535
6536 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * completer.c (completion_tracker::remove_completion): Define new
6539 function.
6540 * completer.h (completion_tracker::remove_completion): Declare new
6541 function.
6542 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6543 when adding a C++ function symbol.
6544
6545 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6546
6547 * completer.c (completion_tracker::completion_hash_entry): Define
6548 new class.
6549 (advance_to_filename_complete_word_point): Call
6550 recompute_lowest_common_denominator.
6551 (completion_tracker::completion_tracker): Call discard_completions
6552 to setup the hash table.
6553 (completion_tracker::discard_completions): Allow for being called
6554 from the constructor, pass new equal function, and element deleter
6555 when constructing the hash table. Initialise new class member
6556 variables.
6557 (completion_tracker::maybe_add_completion): Remove use of
6558 m_entries_vec, and store more information into m_entries_hash.
6559 (completion_tracker::recompute_lcd_visitor): New function, most
6560 content taken from...
6561 (completion_tracker::recompute_lowest_common_denominator):
6562 ...here, this now just visits each item in the hash calling the
6563 above visitor.
6564 (completion_tracker::build_completion_result): Remove use of
6565 m_entries_vec, call recompute_lowest_common_denominator.
6566 * completer.h (completion_tracker::have_completions): Remove use
6567 of m_entries_vec.
6568 (completion_tracker::completion_hash_entry): Declare new class.
6569 (completion_tracker::recompute_lowest_common_denominator): Change
6570 function signature.
6571 (completion_tracker::recompute_lcd_visitor): Declare new function.
6572 (completion_tracker::m_entries_vec): Delete.
6573 (completion_tracker::m_entries_hash): Initialize to NULL.
6574 (completion_tracker::m_lowest_common_denominator_valid): New
6575 member variable.
6576 (completion_tracker::m_lowest_common_denominator_max_length): New
6577 member variable.
6578
6579 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6580
6581 * regformats/regdef.h: Put reg in gdb namespace.
6582
6583 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6584
6585 * i386-bsd-nat.c (gdb_ptrace): New.
6586 * (i386bsd_fetch_inferior_registers,
6587 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6588 * (i386bsd_fetch_inferior_registers,
6589 i386bsd_store_inferior_registers) Use gdb_ptrace.
6590
6591 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6592
6593 * amd64-bsd-nat.c (gdb_ptrace): New.
6594 * (amd64bsd_fetch_inferior_registers,
6595 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6596 * (amd64bsd_fetch_inferior_registers,
6597 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6598
6599 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6600
6601 * user-regs.c (user_reg::read): Rename to...
6602 (user_reg::xread): ...this.
6603 * (append_user_reg): Rename argument `read' to `xread'.
6604 * (user_reg_add_builtin): Likewise.
6605 * (user_reg_add): Likewise.
6606 * (value_of_user_reg): Likewise.
6607
6608 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6609
6610 * sparc-nat.c (gdb_ptrace): New.
6611 * sparc-nat.c (sparc_fetch_inferior_registers)
6612 (sparc_store_inferior_registers) Remove obsolete comment.
6613 * sparc-nat.c (sparc_fetch_inferior_registers)
6614 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6615 * sparc-nat.c (sparc_fetch_inferior_registers)
6616 (sparc_store_inferior_registers) Use gdb_ptrace.
6617
6618 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6619
6620 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6621 it to the ptrace call.
6622 * sh-nbsd-nat.c (store_registers): Likewise.
6623
6624 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6625
6626 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6627 nbsd_nat_target instead of inf_ptrace_target.
6628 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6629 nbsd_nat_target.
6630
6631 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6632
6633 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6634
6635 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6636
6637 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6638 <sys/sysctl.h>.
6639 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6640
6641 2020-03-17 Tom de Vries <tdevries@suse.de>
6642
6643 PR gdb/23710
6644 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6645 fields.
6646 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6647 fields.
6648 (process_imported_unit_die): Skip import of c++ CUs.
6649
6650 2020-03-16 Tom Tromey <tom@tromey.com>
6651
6652 * p-valprint.c (pascal_object_print_value): Initialize
6653 base_value.
6654
6655 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6656 Shahab Vahedi <shahab@synopsys.com>
6657
6658 * Makefile.in: Add arch/arc.o
6659 * configure.tgt: Likewise.
6660 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6661 (_initialize_arc_tdep): Don't initialize old target descriptions.
6662 (arc_read_description): New function to cache target descriptions.
6663 * arc-tdep.h (arc_read_description): Add proto type.
6664 * arch/arc.c: New file.
6665 * arch/arc.h: Likewise.
6666 * features/Makefile: Replace old target descriptions with new.
6667 * features/arc-arcompact.c: Remove.
6668 * features/arc-arcompact.xml: Likewise.
6669 * features/arc-v2.c: Likewise
6670 * features/arc-v2.xml: Likewise
6671 * features/arc/aux-arcompact.xml: New file.
6672 * features/arc/aux-v2.xml: Likewise.
6673 * features/arc/core-arcompact.xml: Likewise.
6674 * features/arc/core-v2.xml: Likewise.
6675 * features/arc/aux-arcompact.c: Generate.
6676 * features/arc/aux-v2.c: Likewise.
6677 * features/arc/core-arcompact.c: Likewise.
6678 * features/arc/core-v2.c: Likewise.
6679 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6680
6681 2020-03-16 Tom Tromey <tromey@adacore.com>
6682
6683 PR gdb/25663:
6684 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6685 putting value into bcache.
6686
6687 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6688
6689 PR gdb/21500
6690 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6691 to...
6692 (amd64_windows_init_abi_common): ... this. Don't set size of
6693 long type.
6694 (amd64_windows_init_abi): New function.
6695 (amd64_cygwin_init_abi): New function.
6696 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6697 the Cygwin OS ABI.
6698 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6699 comment.
6700
6701 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6704 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6705 (pe_import_directory_entry): New struct type.
6706 (is_linked_with_cygwin_dll): New function.
6707 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6708 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6709 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6710
6711 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6712
6713 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6714 i386_cygwin_core_osabi_sniffer.
6715
6716 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * i386-cygwin-tdep.c: Rename to...
6719 * i386-windows-tdep.c: ... this.
6720 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6721 i386-windows-tdep.c.
6722 * configure.tgt: Likewise.
6723
6724 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6725
6726 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6727 * osabi.c (gdb_osabi_names): Add "Windows".
6728 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6729 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6730 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6731 i386_cygwin_osabi_sniffer.
6732 (_initialize_i386_cygwin_tdep): Register OS ABI
6733 GDB_OSABI_WINDOWS for i386.
6734 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6735 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6736 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6737 for x86-64.
6738 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6739 when the target matches '*-*-mingw*'.
6740
6741 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6742
6743 * defs.h (enum gdb_osabi): Move to...
6744 * osabi.h (enum gdb_osabi): ... here.
6745 * gdbarch.sh: Include osabi.h in gdbarch.h.
6746 * gdbarch.h: Re-generate.
6747
6748 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6751 function.
6752 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6753
6754 2020-03-14 Tom Tromey <tom@tromey.com>
6755
6756 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6757 for C++.
6758 (c_type_print_modifier): Likewise. Add "language" parameter.
6759 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6760 (c_type_print_base_1): Update.
6761 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6762 constants.
6763 * type-stack.c (type_stack::insert): Handle tp_atomic and
6764 tp_restrict.
6765 (type_stack::follow_type_instance_flags): Likewise.
6766 (type_stack::follow_types): Likewise. Merge type-following code.
6767 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6768 (space_identifier, cv_with_space_id)
6769 (const_or_volatile_or_space_identifier_noopt)
6770 (const_or_volatile_or_space_identifier): Remove.
6771 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6772 rules.
6773 (ptr_operator, typebase): Update.
6774 (enum token_flag) <FLAG_C>: New constant.
6775 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6776 "_Atomic".
6777 (lex_one_token): Handle FLAG_C.
6778
6779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6780
6781 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6782 it to the ptrace call.
6783 * m68k-bsd-nat.c (store_registers): Likewise.
6784
6785 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6786
6787 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6788 gdb_byte *.
6789 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6790 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6791 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6792
6793 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6794
6795 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6796 nbsd_nat_target instead of inf_ptrace_target.
6797 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6798 nbsd_nat_target.
6799
6800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6801
6802 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6803 register_t.
6804
6805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6806
6807 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6808 it to the ptrace call.
6809 * alpha-bsd-nat.c (store_registers): Likewise.
6810
6811 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6812
6813 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6814 includes.
6815 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6816 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6817 fill_fpregset): Likewise.
6818
6819 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6820
6821 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6822 nbsd_nat_target instead of inf_ptrace_target.
6823 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6824 nbsd_nat_target.
6825
6826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6827
6828 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6829 register_t.
6830
6831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6832
6833 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6834 it to the ptrace call.
6835 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6836 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6837 * arm-nbsd-nat.c (store_register): Likewise.
6838 * arm-nbsd-nat.c (store_regs): Likewise.
6839 * arm-nbsd-nat.c (store_fp_register): Likewise.
6840 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6841
6842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6843
6844 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6845 nbsd_nat_target instead of inf_ptrace_target.
6846 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6847 nbsd_nat_target.
6848
6849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6850
6851 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6852 it to the ptrace call.
6853 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6854
6855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6856
6857 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6858 it to the ptrace call.
6859 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6860
6861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6862
6863 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6864 gdb_byte *.
6865 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6866
6867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6868
6869 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6870 instead of inf_ptrace_target.
6871 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6872 nbsd_nat_target.
6873
6874 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6875
6876 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6877 register_t.
6878
6879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6880
6881 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6882 register_t.
6883
6884 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6885
6886 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6887 register_t.
6888
6889 2020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * value.h (val_print): Don't declare.
6892 * valprint.h (val_print_array_elements)
6893 (val_print_scalar_formatted, generic_val_print): Don't declare.
6894 * valprint.c (generic_val_print_array): Take a struct value.
6895 (generic_val_print_ptr, generic_val_print_memberptr)
6896 (generic_val_print_bool, generic_val_print_int)
6897 (generic_val_print_char, generic_val_print_complex)
6898 (generic_val_print): Remove.
6899 (generic_value_print): Update.
6900 (do_val_print): Remove unused parameters. Don't call
6901 la_val_print.
6902 (val_print): Remove.
6903 (common_val_print): Update. Don't call value_check_printable.
6904 (val_print_scalar_formatted, val_print_array_elements): Remove.
6905 * rust-lang.c (rust_val_print): Remove.
6906 (rust_language_defn): Update.
6907 * p-valprint.c (pascal_val_print): Remove.
6908 (pascal_value_print_inner): Update.
6909 (pascal_object_print_val_fields, pascal_object_print_val):
6910 Remove.
6911 (pascal_object_print_static_field): Update.
6912 * p-lang.h (pascal_val_print): Don't declare.
6913 * p-lang.c (pascal_language_defn): Update.
6914 * opencl-lang.c (opencl_language_defn): Update.
6915 * objc-lang.c (objc_language_defn): Update.
6916 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6917 * m2-lang.h (m2_val_print): Don't declare.
6918 * m2-lang.c (m2_language_defn): Update.
6919 * language.h (struct language_defn) <la_val_print>: Remove.
6920 * language.c (unk_lang_value_print_inner): Rename. Change
6921 argument types.
6922 (unknown_language_defn, auto_language_defn): Update.
6923 * go-valprint.c (go_val_print): Remove.
6924 * go-lang.h (go_val_print): Don't declare.
6925 * go-lang.c (go_language_defn): Update.
6926 * f-valprint.c (f_val_print): Remove.
6927 * f-lang.h (f_value_print): Don't declare.
6928 * f-lang.c (f_language_defn): Update.
6929 * d-valprint.c (d_val_print): Remove.
6930 * d-lang.h (d_value_print): Don't declare.
6931 * d-lang.c (d_language_defn): Update.
6932 * cp-valprint.c (cp_print_value_fields)
6933 (cp_print_value_fields_rtti, cp_print_value): Remove.
6934 (cp_print_static_field): Update.
6935 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6936 (c_val_print_struct, c_val_print_union, c_val_print_int)
6937 (c_val_print_memberptr, c_val_print): Remove.
6938 * c-lang.h (c_val_print_array, cp_print_value_fields)
6939 (cp_print_value_fields_rtti): Don't declare.
6940 * c-lang.c (c_language_defn, cplus_language_defn)
6941 (asm_language_defn, minimal_language_defn): Update.
6942 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6943 (ada_val_print_enum): Take a struct value.
6944 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6945 (ada_val_print): Remove.
6946 (ada_value_print_1): Update.
6947 (printable_val_type): Remove.
6948 * ada-lang.h (ada_val_print): Don't declare.
6949 * ada-lang.c (ada_language_defn): Update.
6950
6951 2020-03-13 Tom Tromey <tom@tromey.com>
6952
6953 * valprint.c (do_val_print): Update.
6954 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6955 a struct value.
6956 (value_to_value_object_no_release): Declare.
6957 * python/py-value.c (value_to_value_object_no_release): New
6958 function.
6959 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6960 struct value.
6961 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6962 function.
6963 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6964 a struct value.
6965 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6966 Declare.
6967 (gdbscm_apply_val_pretty_printer): Take a struct value.
6968 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6969 value.
6970 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6971 value.
6972 * extension-priv.h (struct extension_language_ops)
6973 <apply_val_pretty_printer>: Take a struct value.
6974 * cp-valprint.c (cp_print_value): Create a struct value.
6975 (cp_print_value): Update.
6976
6977 2020-03-13 Tom Tromey <tom@tromey.com>
6978
6979 * ada-valprint.c (print_field_values): Call common_val_print.
6980
6981 2020-03-13 Tom Tromey <tom@tromey.com>
6982
6983 * ada-valprint.c (val_print_packed_array_elements): Remove
6984 bitoffset and val parameters. Call common_val_print.
6985 (ada_val_print_string): Remove offset, address, and original_value
6986 parameters.
6987 (ada_val_print_array): Update.
6988 (ada_value_print_array): New function.
6989 (ada_value_print_1): Call it.
6990
6991 2020-03-13 Tom Tromey <tom@tromey.com>
6992
6993 * ada-valprint.c (ada_value_print): Use common_val_print.
6994
6995 2020-03-13 Tom Tromey <tom@tromey.com>
6996
6997 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6998
6999 2020-03-13 Tom Tromey <tom@tromey.com>
7000
7001 * ada-valprint.c (ada_value_print_num): New function.
7002 (ada_value_print_1): Use it.
7003
7004 2020-03-13 Tom Tromey <tom@tromey.com>
7005
7006 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7007
7008 2020-03-13 Tom Tromey <tom@tromey.com>
7009
7010 * ada-valprint.c (ada_value_print_ptr): New function.
7011 (ada_value_print_1): Use it.
7012
7013 2020-03-13 Tom Tromey <tom@tromey.com>
7014
7015 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7016 call common_val_print.
7017 (ada_val_print_1): Update.
7018 (ada_value_print_1): New function.
7019 (ada_value_print_inner): Rewrite.
7020
7021 2020-03-13 Tom Tromey <tom@tromey.com>
7022
7023 * cp-valprint.c (cp_print_value_fields): Update.
7024 (cp_print_value): New function.
7025
7026 2020-03-13 Tom Tromey <tom@tromey.com>
7027
7028 * m2-valprint.c (m2_value_print_inner): Use
7029 cp_print_value_fields.
7030 * cp-valprint.c (cp_print_value_fields): New function.
7031 * c-valprint.c (c_value_print_struct): New function.
7032 (c_value_print_inner): Use c_value_print_struct.
7033 * c-lang.h (cp_print_value_fields): Declare.
7034
7035 2020-03-13 Tom Tromey <tom@tromey.com>
7036
7037 * c-valprint.c (c_value_print_array): New function.
7038 (c_value_print_inner): Use it.
7039
7040 2020-03-13 Tom Tromey <tom@tromey.com>
7041
7042 * c-valprint.c (c_value_print_memberptr): New function.
7043 (c_value_print_inner): Use it.
7044
7045 2020-03-13 Tom Tromey <tom@tromey.com>
7046
7047 * c-valprint.c (c_value_print_int): New function.
7048 (c_value_print_inner): Use it.
7049
7050 2020-03-13 Tom Tromey <tom@tromey.com>
7051
7052 * c-valprint.c (c_value_print_ptr): New function.
7053 (c_value_print_inner): Use it.
7054
7055 2020-03-13 Tom Tromey <tom@tromey.com>
7056
7057 * c-valprint.c (c_value_print_inner): Rewrite.
7058
7059 2020-03-13 Tom Tromey <tom@tromey.com>
7060
7061 * valprint.c (generic_value_print_complex): New function.
7062 (generic_value_print): Use it.
7063
7064 2020-03-13 Tom Tromey <tom@tromey.com>
7065
7066 * valprint.c (generic_val_print_float): Don't call
7067 val_print_scalar_formatted.
7068 (generic_val_print, generic_value_print): Update.
7069
7070 2020-03-13 Tom Tromey <tom@tromey.com>
7071
7072 * valprint.c (generic_value_print_char): New function
7073 (generic_value_print): Use it.
7074
7075 2020-03-13 Tom Tromey <tom@tromey.com>
7076
7077 * valprint.c (generic_value_print_int): New function.
7078 (generic_value_print): Use it.
7079
7080 2020-03-13 Tom Tromey <tom@tromey.com>
7081
7082 * valprint.c (generic_value_print_bool): New function.
7083 (generic_value_print): Use it.
7084
7085 2020-03-13 Tom Tromey <tom@tromey.com>
7086
7087 * valprint.c (generic_val_print_func): Simplify.
7088 (generic_val_print, generic_value_print): Update.
7089
7090 2020-03-13 Tom Tromey <tom@tromey.com>
7091
7092 * valprint.c (generic_val_print_flags): Remove.
7093 (generic_val_print, generic_value_print): Update.
7094 (val_print_type_code_flags): Add original_value parameter.
7095
7096 2020-03-13 Tom Tromey <tom@tromey.com>
7097
7098 * valprint.c (generic_val_print): Update.
7099 (generic_value_print): Update.
7100 * valprint.c (generic_val_print_enum): Don't call
7101 val_print_scalar_formatted.
7102
7103 2020-03-13 Tom Tromey <tom@tromey.com>
7104
7105 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7106 * valprint.c (generic_value_print_ptr): New function.
7107
7108 2020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * valprint.c (generic_value_print): Rewrite.
7111
7112 2020-03-13 Tom Tromey <tom@tromey.com>
7113
7114 * p-valprint.c (pascal_object_print_value_fields)
7115 (pascal_object_print_value): New functions.
7116
7117 2020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * p-valprint.c (pascal_value_print_inner): Rewrite.
7120
7121 2020-03-13 Tom Tromey <tom@tromey.com>
7122
7123 * f-valprint.c (f_value_print_innner): Rewrite.
7124
7125 2020-03-13 Tom Tromey <tom@tromey.com>
7126
7127 * m2-valprint.c (m2_print_unbounded_array): New overload.
7128 (m2_print_unbounded_array): Update.
7129 (m2_print_array_contents): Take a struct value.
7130 (m2_value_print_inner): Rewrite.
7131
7132 2020-03-13 Tom Tromey <tom@tromey.com>
7133
7134 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7135 (d_value_print_inner): New function.
7136 * d-lang.h (d_value_print_inner): Declare.
7137 * d-lang.c (d_language_defn): Use d_value_print_inner.
7138
7139 2020-03-13 Tom Tromey <tom@tromey.com>
7140
7141 * go-valprint.c (go_value_print_inner): New function.
7142 * go-lang.h (go_value_print_inner): Declare.
7143 * go-lang.c (go_language_defn): Use go_value_print_inner.
7144
7145 2020-03-13 Tom Tromey <tom@tromey.com>
7146
7147 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7148 API.
7149 (rust_val_print): Rewrite.
7150 (rust_value_print_inner): New function, from rust_val_print.
7151 (rust_language_defn): Use rust_value_print_inner.
7152
7153 2020-03-13 Tom Tromey <tom@tromey.com>
7154
7155 * ada-valprint.c (ada_value_print_inner): New function.
7156 * ada-lang.h (ada_value_print_inner): Declare.
7157 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7158
7159 2020-03-13 Tom Tromey <tom@tromey.com>
7160
7161 * f-valprint.c (f_value_print_innner): New function.
7162 * f-lang.h (f_value_print_innner): Declare.
7163 * f-lang.c (f_language_defn): Use f_value_print_innner.
7164
7165 2020-03-13 Tom Tromey <tom@tromey.com>
7166
7167 * p-valprint.c (pascal_value_print_inner): New function.
7168 * p-lang.h (pascal_value_print_inner): Declare.
7169 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7170
7171 2020-03-13 Tom Tromey <tom@tromey.com>
7172
7173 * m2-valprint.c (m2_value_print_inner): New function.
7174 * m2-lang.h (m2_value_print_inner): Declare.
7175 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7176
7177 2020-03-13 Tom Tromey <tom@tromey.com>
7178
7179 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7180 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7181 * c-valprint.c (c_value_print_inner): New function.
7182 * c-lang.h (c_value_print_inner): Declare.
7183 * c-lang.c (c_language_defn, cplus_language_defn)
7184 (asm_language_defn, minimal_language_defn): Use
7185 c_value_print_inner.
7186
7187 2020-03-13 Tom Tromey <tom@tromey.com>
7188
7189 * p-valprint.c (pascal_object_print_value_fields): Now static.
7190 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7191
7192 2020-03-13 Tom Tromey <tom@tromey.com>
7193
7194 * c-valprint.c (c_val_print_array): Simplify.
7195
7196 2020-03-13 Tom Tromey <tom@tromey.com>
7197
7198 * valprint.c (value_print_array_elements): New function.
7199 * valprint.h (value_print_array_elements): Declare.
7200
7201 2020-03-13 Tom Tromey <tom@tromey.com>
7202
7203 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7204 * mips-tdep.c (mips_print_register): Use
7205 value_print_scalar_formatted.
7206
7207 2020-03-13 Tom Tromey <tom@tromey.com>
7208
7209 * valprint.h (value_print_scalar_formatted): Declare.
7210 * valprint.c (value_print_scalar_formatted): New function.
7211
7212 2020-03-13 Tom Tromey <tom@tromey.com>
7213
7214 * valprint.h (generic_value_print): Declare.
7215 * valprint.c (generic_value_print): New function.
7216
7217 2020-03-13 Tom Tromey <tom@tromey.com>
7218
7219 * valprint.c (do_val_print): Call la_value_print_inner, if
7220 available.
7221 * rust-lang.c (rust_language_defn): Update.
7222 * p-lang.c (pascal_language_defn): Update.
7223 * opencl-lang.c (opencl_language_defn): Update.
7224 * objc-lang.c (objc_language_defn): Update.
7225 * m2-lang.c (m2_language_defn): Update.
7226 * language.h (struct language_defn) <la_value_print_inner>: New
7227 member.
7228 * language.c (unknown_language_defn, auto_language_defn): Update.
7229 * go-lang.c (go_language_defn): Update.
7230 * f-lang.c (f_language_defn): Update.
7231 * d-lang.c (d_language_defn): Update.
7232 * c-lang.c (c_language_defn, cplus_language_defn)
7233 (asm_language_defn, minimal_language_defn): Update.
7234 * ada-lang.c (ada_language_defn): Update.
7235
7236 2020-03-13 Tom Tromey <tom@tromey.com>
7237
7238 * c-valprint.c (c_value_print): Use common_val_print.
7239
7240 2020-03-13 Tom Tromey <tom@tromey.com>
7241
7242 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7243
7244 2020-03-13 Tom Tromey <tom@tromey.com>
7245
7246 * f-valprint.c (f77_print_array_1, f_val_print): Use
7247 common_val_print.
7248
7249 2020-03-13 Tom Tromey <tom@tromey.com>
7250
7251 * riscv-tdep.c (riscv_print_one_register_info): Use
7252 common_val_print.
7253
7254 2020-03-13 Tom Tromey <tom@tromey.com>
7255
7256 * mi/mi-main.c (output_register): Use common_val_print.
7257
7258 2020-03-13 Tom Tromey <tom@tromey.com>
7259
7260 * infcmd.c (default_print_one_register_info): Use
7261 common_val_print.
7262
7263 2020-03-13 Tom Tromey <tom@tromey.com>
7264
7265 * valprint.h (common_val_print_checked): Declare.
7266 * valprint.c (common_val_print_checked): New function.
7267 * stack.c (print_frame_arg): Use common_val_print_checked.
7268
7269 2020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * valprint.c (do_val_print): New function, from val_print.
7272 (val_print): Use do_val_print.
7273 (common_val_print): Use do_val_print.
7274
7275 2020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * valprint.c (value_print): Use scoped_value_mark.
7278
7279 2020-03-13 Tom de Vries <tdevries@suse.de>
7280
7281 PR symtab/25646
7282 * psymtab.c (partial_symtab::partial_symtab): Don't set
7283 globals_offset and statics_offset. Push element onto
7284 current_global_psymbols and current_static_psymbols stacks.
7285 (concat): New function.
7286 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7287 element from current_global_psymbols and current_static_psymbols
7288 stacks. Concat popped elements to global_psymbols and
7289 static_symbols.
7290 (add_psymbol_to_list): Use current_global_psymbols and
7291 current_static_psymbols stacks.
7292 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7293 current_static_psymbols fields.
7294
7295 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7296
7297 * corelow.c (sniff_core_bfd): Remove.
7298 (class core_target) <m_core_vec>: Remove.
7299 (core_target::core_target): Update.
7300 (core_file_fns): Remove.
7301 (deprecated_add_core_fns): Remove.
7302 (default_core_sniffer): Remove.
7303 (sniff_core_bfd): Remove.
7304 (default_check_format): Remove.
7305 (gdb_check_format): Remove.
7306 (core_target_open): Update.
7307 (core_target::get_core_register_section): Update.
7308 (get_core_registers_cb): Update.
7309 (core_target::fetch_registers): Update.
7310 * gdbcore.h (struct core_fns): Remove.
7311 (deprecated_add_core_fns): Remove.
7312 (default_core_sniffer): Remove.
7313 (default_check_format): Remove.
7314
7315 2020-03-12 Tom Tromey <tom@tromey.com>
7316
7317 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7318 CORE_ADDR.
7319 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7320
7321 2020-03-12 Tom Tromey <tom@tromey.com>
7322
7323 * remote.c (remote_target::download_tracepoint)
7324 (remote_target::enable_tracepoint)
7325 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7326 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7327 sprintf_vma.
7328
7329 2020-03-12 Tom Tromey <tom@tromey.com>
7330
7331 * symfile-mem.c: Update CORE_ADDR size assert.
7332
7333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * selftest.m4: Move to gdbsupport/.
7336 * acinclude.m4: Update path to selftest.m4.
7337
7338 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7339
7340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7341 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7342 gdbarch-selfselftests.c and selftest-arch.c.
7343 (SUBDIR_UNITTESTS_OBS): Rename to...
7344 (SELFTESTS_OBS): ... this.
7345 (COMMON_SFILES): Remove disasm-selftests.c and
7346 gdbarch-selftests.c.
7347 * configure.ac: Don't add selftest-arch.{c,o} to
7348 CONFIG_{SRCS,OBS}.
7349 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7350 preprocessor conditions.
7351
7352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * configure.ac: Don't source bfd/development.sh.
7355 * selftest.m4: Modify comment.
7356 * configure: Re-generate.
7357
7358 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7359
7360 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7361 not "true" or "false".
7362 * configure: Re-generate.
7363
7364 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7365
7366 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7367 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7368 renamed to arm_nbsd_supply_gregset.
7369 (fetch_register): Update to call arm_nbsd_supply_gregset.
7370 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7371 (arm_netbsd_nat_target::fetch_registers): Update.
7372 (fetch_elfcore_registers): Removed.
7373 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7374 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7375 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7376 not require NetBSD system headers.
7377 (arm_nbsd_regset): New struct.
7378 (arm_nbsd_iterate_over_regset_sections): New function.
7379 (arm_netbsd_init_abi_common): Updated to call
7380 set_gdbarch_iterate_over_regset_sections.
7381 * arm-nbsd-tdep.h: New file.
7382
7383 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7384
7385 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7386 recursion.
7387
7388 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * configure: Re-generate.
7391
7392 2020-03-11 Tom Tromey <tromey@adacore.com>
7393
7394 * ada-typeprint.c (print_choices): Fix comment.
7395
7396 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7397
7398 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7399 previous item in the list, when the list has no items.
7400
7401 2020-03-11 Tom de Vries <tdevries@suse.de>
7402
7403 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7404 PROP_LOCLIST handling code.
7405
7406 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * buildsym-legacy.c (record_line): Pass extra parameter to
7409 record_line.
7410 * buildsym.c (buildsym_compunit::record_line): Take an extra
7411 parameter, reduce duplication in the line table, and record the
7412 is_stmt flag in the line table.
7413 * buildsym.h (buildsym_compunit::record_line): Add extra
7414 parameter.
7415 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7416 non-statement lines.
7417 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7418 this to the symtab builder.
7419 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7420 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7421 through to dwarf_record_line_1.
7422 * infrun.c (process_event_stop_test): When stepping, don't stop at
7423 a non-statement instruction, and only refresh the step info when
7424 we land in the middle of a line's range. Also add an extra
7425 comment.
7426 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7427 field.
7428 * record-btrace.c (btrace_find_line_range): Only record lines
7429 marked as is-statement.
7430 * stack.c (frame_show_address): Show the frame address if we are
7431 in a non-statement sal.
7432 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7433 (maintenance_print_one_line_table): Print a header for the is_stmt
7434 column, and include is_stmt information in the output.
7435 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7436 preference to non-statements.
7437 (find_pcs_for_symtab_line): Prefer is-statement entries.
7438 (find_line_common): Likewise.
7439 * symtab.h (struct linetable_entry): Add is_stmt field.
7440 (struct symtab_and_line): Likewise.
7441 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7442 arranging the line table.
7443
7444 2020-03-07 Tom de Vries <tdevries@suse.de>
7445
7446 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7447 DIE.
7448
7449 2020-03-07 Tom Tromey <tom@tromey.com>
7450
7451 * valops.c (value_literal_complex): Remove obsolete comment.
7452 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7453 comment.
7454
7455 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7456
7457 * infrun.h: Forward-declare thread_info.
7458 (set_step_info): Add thread_info parameter, add doc.
7459 * infrun.c (set_step_info): Add thread_info parameter, move doc
7460 to header.
7461 * infrun.c (process_event_stop_test): Pass thread to
7462 set_step_info call.
7463 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7464 set_step_info.
7465 (prepare_one_step): Add thread_info parameter, pass it to
7466 set_step_frame and prepare_one_step (recursive) call.
7467 (step_1): Pass thread to prepare_one_step call.
7468 (step_command_fsm::should_stop): Pass thread to
7469 prepare_one_step.
7470 (until_next_fsm): Pass thread to set_step_frame call.
7471 (finish_command): Pass thread to set_step_info call.
7472
7473 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7474
7475 * windows-tdep.c (windows_solib_create_inferior_hook):
7476 Check if inferior is running.
7477
7478 2020-03-06 Tom de Vries <tdevries@suse.de>
7479
7480 * NEWS: Fix "the the".
7481 * ctfread.c: Same.
7482
7483 2020-03-06 Tom de Vries <tdevries@suse.de>
7484
7485 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7486
7487 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * .dir-locals.el: Add a comment referencing the other copies of
7490 this file.
7491
7492 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7493
7494 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7495 psargs.
7496
7497 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7498
7499 * .gitattributes: New file.
7500
7501 2020-03-04 Tom Tromey <tom@tromey.com>
7502
7503 * symmisc.c (print_symbol_bcache_statistics)
7504 (print_objfile_statistics): Update.
7505 * symfile.c (allocate_symtab): Use intern.
7506 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7507 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7508 macro_cache>: Remove.
7509 <string_cache>: New member.
7510 (struct objfile) <intern>: New methods.
7511 * elfread.c (elf_symtab_read): Use intern.
7512 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7513 (dwarf2_compute_name, dwarf2_physname)
7514 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7515 names.
7516 (guess_partial_die_structure_name): Update.
7517 (partial_die_info::fixup): Intern name.
7518 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7519 name.
7520 (dwarf2_name): Intern name. Update.
7521 * buildsym.c (buildsym_compunit::get_macro_table): Use
7522 string_cache.
7523
7524 2020-03-04 Tom Tromey <tom@tromey.com>
7525
7526 * jit.c (bfd_open_from_target_memory): Make "target" const.
7527 * corefile.c (gnutarget): Now const.
7528 * gdbcore.h (gnutarget): Now const.
7529
7530 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7531
7532 * NEWS: Mention support for WOW64 processes.
7533 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7534 (amd64_windows_segment_register_p): Remove static.
7535 (_initialize_amd64_windows_nat): Update.
7536 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7537 * i386-windows-nat.c (context_offset): Update.
7538 (i386_mappings): Rename and remove static.
7539 (i386_windows_segment_register_p): Remove static.
7540 (_initialize_i386_windows_nat): Update.
7541 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7542 (STATUS_WX86_SINGLE_STEP): New macro.
7543 (EnumProcessModulesEx): New macro.
7544 (Wow64SuspendThread): New macro.
7545 (Wow64GetThreadContext): New macro.
7546 (Wow64SetThreadContext): New macro.
7547 (Wow64GetThreadSelectorEntry): New macro.
7548 (windows_set_context_register_offsets): Add static.
7549 (windows_set_segment_register_p): Likewise.
7550 (windows_add_thread): Adapt for WOW64 processes.
7551 (windows_fetch_one_register): Likewise.
7552 (windows_nat_target::fetch_registers): Likewise.
7553 (windows_store_one_register): Likewise.
7554 (display_selector): Likewise.
7555 (display_selectors): Likewise.
7556 (handle_exception): Likewise.
7557 (windows_continue): Likewise.
7558 (windows_nat_target::resume): Likewise.
7559 (windows_add_all_dlls): Likewise.
7560 (do_initial_windows_stuff): Likewise.
7561 (windows_nat_target::attach): Likewise.
7562 (windows_get_exec_module_filename): Likewise.
7563 (windows_nat_target::create_inferior): Likewise.
7564 (windows_xfer_siginfo): Likewise.
7565 (_initialize_loadable): Initialize Wow64SuspendThread,
7566 Wow64GetThreadContext, Wow64SetThreadContext,
7567 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7568 * windows-nat.h (windows_set_context_register_offsets):
7569 Remove declaration.
7570 (windows_set_segment_register_p): Likewise.
7571 (i386_windows_segment_register_p): Add declaration.
7572 (amd64_windows_segment_register_p): Likewise.
7573
7574 2020-03-04 Luis Machado <luis.machado@linaro.org>
7575
7576 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7577 in "info registers" for AArch64/ARM.
7578
7579 The change caused "info registers" to not print GPR's.
7580
7581 gdb/ChangeLog:
7582
7583 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7584
7585 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7586 when reg->group is empty and reggroup is not.
7587
7588 2020-03-03 Tom Tromey <tromey@adacore.com>
7589
7590 * dwarf2/frame.c (struct dwarf2_frame_cache)
7591 <checked_tailcall_bottom, entry_cfa_sp_offset,
7592 entry_cfa_sp_offset_p>: Remove members.
7593 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7594 (dwarf2_frame_prev_register): Don't call
7595 dwarf2_tailcall_sniffer_first.
7596 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7597 * frame-unwind.c (add_unwinder): New fuction.
7598 (frame_unwind_init): Use it. Add tailcall unwinder.
7599
7600 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7601 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7602
7603 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7604 value should be printed as true.
7605
7606 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7607
7608 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7609 (windows_init_abi): Set and use windows_so_ops.
7610
7611 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7612
7613 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7614 when verifying if dealing with a convenience variable.
7615
7616 2020-03-03 Luis Machado <luis.machado@linaro.org>
7617
7618 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7619
7620 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7621
7622 * infrun.c (gdbarch_supports_displaced_stepping): New.
7623 (use_displaced_stepping): Break up conditions in smaller pieces.
7624 Use gdbarch_supports_displaced_stepping.
7625 (displaced_step_prepare_throw): Use
7626 gdbarch_supports_displaced_stepping.
7627
7628 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * NEWS: Mention new behaviour of the history filename.
7631 * top.c (write_history_p): Add comment.
7632 (show_write_history_p): Add header comment, give a different
7633 message when history writing is on, but the history filename is
7634 empty.
7635 (history_filename): Add comment.
7636 (history_filename_empty): New function.
7637 (show_history_filename): Add header comment, give a different
7638 message when the filename is empty.
7639 (init_history): Compare history_filename against nullptr, and only
7640 read history if the filename is not empty.
7641 (set_history_filename): Add header comment, and only make
7642 non-empty filenames absolute.
7643 (init_main): Make the filename argument to 'set history filename'
7644 optional.
7645
7646 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7647
7648 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7649 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7650 (fetch_fp_register): Update.
7651 (fetch_fp_regs): Update.
7652 (store_fp_register): Update.
7653 (store_fp_regs): Update.
7654 (arm_netbsd_nat_target::read_description): New function.
7655 (fetch_elfcore_registers): Update.
7656
7657 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7660 general_thread if the stop reply is missing a thread-id.
7661 (remote_target::process_stop_reply): Use the first non-exited
7662 thread if the target didn't pass a thread-id.
7663 * infrun.c (do_target_wait): Move call to
7664 switch_to_inferior_no_thread to ....
7665 (do_target_wait_1): ... here.
7666
7667 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7668
7669 * debuginfod-support.c: Include defs.h first.
7670
7671 2020-02-28 Tom de Vries <tdevries@suse.de>
7672
7673 * symfile.c (set_initial_language): Use default language for lookup.
7674
7675 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7678 reader variable, pass `this` to read_cutu_die_from_dwo.
7679
7680 2020-02-27 Aaron Merey <amerey@redhat.com>
7681
7682 * source.c (open_source_file): Check for nullptr when computing
7683 srcpath.
7684
7685 2020-02-27 Tom Tromey <tromey@adacore.com>
7686
7687 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7688 member.
7689 (dwarf2_add_field): Don't update nfields.
7690 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7691
7692 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7695 abs.
7696
7697 2020-02-26 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7700 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7701 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7702 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7703 per_cu_data.
7704
7705 2020-02-26 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/index-write.c (psym_index_map): Change type.
7708 (add_address_entry_worker, write_one_signatured_type)
7709 (recursively_count_psymbols, recursively_write_psymbols)
7710 (class debug_names, psyms_seen_size, write_gdbindex)
7711 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7712
7713 2020-02-26 Aaron Merey <amerey@redhat.com>
7714
7715 * Makefile.in: Handle optional debuginfod support.
7716 * NEWS: Update.
7717 * README: Add --with-debuginfod summary.
7718 * config.in: Regenerate.
7719 * configure: Regenerate.
7720 * configure.ac: Handle optional debuginfod support.
7721 * debuginfod-support.c: debuginfod helper functions.
7722 * debuginfod-support.h: Ditto.
7723 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7724 summary.
7725 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7726 when a dwz file cannot be found.
7727 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7728 debuginfo file cannot be found.
7729 * source.c (open_source_file): Query debuginfod servers when a
7730 source file cannot be found.
7731 * top.c (print_gdb_configuration): Include
7732 --{with,without}-debuginfod in the output.
7733
7734 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7735
7736 * thread.c (thr_try_catch_cmd): Print thread name.
7737
7738 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7742 dwarf2_fetch_die_type_sect_off): Move to...
7743 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7744 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7745 dwarf2_fetch_die_type_sect_off): ... here.
7746 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7748 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7749
7750 2020-02-26 Tom de Vries <tdevries@suse.de>
7751
7752 PR gdb/25603
7753 * symfile.c (set_initial_language): Exit-early if
7754 language_mode == language_mode_manual.
7755
7756 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7757
7758 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7759 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7760 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7761
7762 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7763
7764 * gdbtypes.c (create_array_type_with_stride): Handle negative
7765 array strides.
7766 * valarith.c (value_subscripted_rvalue): Likewise.
7767
7768 2020-02-25 Luis Machado <luis.machado@linaro.org>
7769
7770 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7771
7772 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * loc.h (dwarf2_get_die_type): Move to...
7775 * read.h (dwarf2_get_die_type): ... here.
7776 * read.c (dwarf2_get_die_type): Move doc to header.
7777
7778 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7779
7780 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7781 'gnulib/Makefile.in' to the list.
7782
7783 2020-02-24 Tom Tromey <tom@tromey.com>
7784
7785 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7786 Remove.
7787 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7788 XOBNEWVEC.
7789
7790 2020-02-24 Tom Tromey <tom@tromey.com>
7791
7792 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7793 New method.
7794 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7795 (dw2_do_instantiate_symtab, dw2_get_file_names)
7796 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7797
7798 2020-02-24 Tom Tromey <tom@tromey.com>
7799
7800 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7801 make_scoped_restore.
7802 (dwarf2_psymtab::read_symtab): Don't clear
7803 reading_partial_symbols.
7804
7805 2020-02-24 Tom de Vries <tdevries@suse.de>
7806
7807 PR gdb/25592
7808 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7809
7810 2020-02-24 Tom de Vries <tdevries@suse.de>
7811
7812 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7813 commands layout next/prev/regs.
7814
7815 2020-02-22 Tom Tromey <tom@tromey.com>
7816
7817 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7818 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7819
7820 2020-02-22 Tom Tromey <tom@tromey.com>
7821
7822 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7823
7824 2020-02-22 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7827 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7828 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7829 * tui/tui.c (_initialize_tui): Add usage text.
7830
7831 2020-02-22 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-win.c (tui_set_focus_command)
7834 (tui_set_win_height_command): Use error_no_arg.
7835 (_initialize_tui_win): Update help text.
7836 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7837
7838 2020-02-22 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7841 * tui/tui-disasm.h (struct tui_disasm_window)
7842 <display_start_addr>: Declare.
7843 * tui/tui-source.h (struct tui_source_window)
7844 <display_start_addr>: Declare.
7845 * tui/tui-winsource.h (struct tui_source_window_base)
7846 <show_source_line, display_start_addr>: New methods.
7847 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7848 Rename and move to protected section.
7849 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7850 (tui_source_window_base::do_erase_source_content): Update.
7851 (tui_source_window_base::show_source_line): Now a method.
7852 (tui_source_window_base::show_source_content)
7853 (tui_source_window_base::tui_source_window_base)
7854 (tui_source_window_base::rerender)
7855 (tui_source_window_base::refill)
7856 (tui_source_window_base::do_scroll_horizontal)
7857 (tui_source_window_base::set_is_exec_point_at)
7858 (tui_source_window_base::update_breakpoint_info)
7859 (tui_source_window_base::update_exec_info): Update.
7860 * tui/tui-source.c (tui_source_window::set_contents)
7861 (tui_source_window::showing_source_p)
7862 (tui_source_window::do_scroll_vertical)
7863 (tui_source_window::location_matches_p)
7864 (tui_source_window::line_is_displayed): Update.
7865 (tui_source_window::display_start_addr): New method.
7866 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7867 (tui_disasm_window::do_scroll_vertical)
7868 (tui_disasm_window::location_matches_p): Update.
7869 (tui_disasm_window::display_start_addr): New method.
7870
7871 2020-02-22 Tom Tromey <tom@tromey.com>
7872
7873 * NEWS: Add entry for gdb.register_window_type.
7874 * tui/tui-layout.h (window_factory): New typedef.
7875 (tui_register_window): Declare.
7876 * tui/tui-layout.c (saved_tui_windows): New global.
7877 (tui_apply_current_layout): Use it.
7878 (tui_register_window): New function.
7879 * python/python.c (do_start_initialization): Call
7880 gdbpy_initialize_tui.
7881 (python_GdbMethods): Add "register_window_type" function.
7882 * python/python-internal.h (gdbpy_register_tui_window)
7883 (gdbpy_initialize_tui): Declare.
7884 * python/py-tui.c: New file.
7885 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7886
7887 2020-02-22 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7890
7891 2020-02-22 Tom Tromey <tom@tromey.com>
7892
7893 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7894 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7895 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7896 (tui_set_win_focus_to): Move from tui-win.c.
7897
7898 2020-02-22 Tom Tromey <tom@tromey.com>
7899
7900 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7901 functions.
7902 (known_window_types): New global.
7903 (tui_get_window_by_name): Reimplement.
7904 (initialize_known_windows): New function.
7905 (validate_window_name): Rewrite.
7906 (_initialize_tui_layout): Call initialize_known_windows.
7907
7908 2020-02-22 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7911 Remove constants.
7912 * tui/tui-winsource.h (struct tui_source_window_base)
7913 <tui_source_window_base>: Remove parameter.
7914 * tui/tui-winsource.c
7915 (tui_source_window_base::tui_source_window_base): Remove
7916 parameter.
7917 (tui_source_window_base::refill): Update.
7918 * tui/tui-stack.h (struct tui_locator_window)
7919 <tui_locator_window>: Update.
7920 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7921 Default the constructor.
7922 * tui/tui-regs.h (struct tui_data_item_window)
7923 <tui_data_item_window>: Default the constructor.
7924 (struct tui_data_window) <tui_data_window>: Likewise.
7925 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7926 Default the constructor.
7927 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7928 Default the constructor.
7929 <type>: Remove.
7930 (struct tui_win_info) <tui_win_info>: Default the constructor.
7931 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7932 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7933 Default the constructor.
7934
7935 2020-02-22 Tom Tromey <tom@tromey.com>
7936
7937 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7938 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7939 * tui/tui-win.c (tui_resize_all): Don't call
7940 tui_delete_invisible_windows.
7941 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7942 done.
7943 (tui_set_layout): Update.
7944 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7945 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7946 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7947
7948 2020-02-22 Tom Tromey <tom@tromey.com>
7949
7950 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7951 correctly.
7952
7953 2020-02-22 Tom Tromey <tom@tromey.com>
7954
7955 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7956
7957 2020-02-22 Tom Tromey <tom@tromey.com>
7958
7959 * tui/tui-winsource.h (struct tui_source_window_iterator)
7960 <inner_iterator>: New etytypedef.
7961 <tui_source_window_iterator>: Take "end" parameter.
7962 <tui_source_window_iterator>: Take iterator.
7963 <operator*, advance>: Update.
7964 <m_iter>: Change type.
7965 <m_end>: New field.
7966 (struct tui_source_windows) <begin, end>: Update.
7967 * tui/tui-layout.c (tui_windows): New global.
7968 (tui_apply_current_layout): Clear tui_windows.
7969 (tui_layout_window::apply): Update tui_windows.
7970 * tui/tui-data.h (tui_windows): Declare.
7971 (all_tui_windows): Now inline function.
7972 (class tui_window_iterator, struct all_tui_windows): Remove.
7973
7974 2020-02-22 Tom Tromey <tom@tromey.com>
7975
7976 PR tui/17850:
7977 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7978 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7979 "height" argument.
7980 (class tui_layout_window) <get_sizes>: Likewise.
7981 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7982 argument.
7983 <get_sizes>: Add "height" argument.
7984 <m_vertical>: New field.
7985 * tui/tui-layout.c (tui_layout_split::clone): Update.
7986 (tui_layout_split::get_sizes): Add "height" argument.
7987 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7988 (tui_new_layout_command): Parse "-horizontal".
7989 (_initialize_tui_layout): Update help string.
7990 (tui_layout_split::specification): Add "-horizontal" when needed.
7991 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7992 argument.
7993 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7994 New methods.
7995
7996 2020-02-22 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-layout.h (enum tui_adjust_result): New.
7999 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8000 (class tui_layout_window) <adjust_size>: Return
8001 tui_adjust_result. Rewrite.
8002 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8003 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8004
8005 2020-02-22 Tom Tromey <tom@tromey.com>
8006
8007 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8008 parameter and return types.
8009 (class tui_layout_base) <specification>: Add "depth".
8010 (class tui_layout_window) <specification>: Add "depth".
8011 (class tui_layout_split) <specification>: Add "depth".
8012 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8013 and return types.
8014 (tui_new_layout_command): Parse sub-layouts.
8015 (_initialize_tui_layout): Update help string.
8016 (tui_layout_window::specification): Add "depth".
8017 (add_layout_command): Update.
8018
8019 2020-02-22 Tom Tromey <tom@tromey.com>
8020
8021 * NEWS: Add "tui new-layout" item.
8022 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8023 Add new-layout command to help text.
8024 (validate_window_name): New function.
8025 (tui_new_layout_command): New function.
8026 (_initialize_tui_layout): Register "new-layout".
8027 (tui_layout_window::specification): New method.
8028 (tui_layout_window::specification): New method.
8029 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8030 method.
8031 (class tui_layout_window) <specification>: New method.
8032 (class tui_layout_split) <specification>: New method.
8033
8034 2020-02-22 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8037 * tui/tui-win.c (window_name_completer): Update comment.
8038 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8039 Declare method.
8040 (class tui_layout_window) <replace_window>: Likewise.
8041 (class tui_layout_split) <replace_window>: Likewise.
8042 (tui_set_layout): Don't declare.
8043 (tui_set_initial_layout): Declare function.
8044 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8045 (asm_regs_layout): New globals.
8046 (tui_current_layout, show_layout): Remove.
8047 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8048 (find_layout, tui_apply_layout): New function.
8049 (layout_completer): Remove.
8050 (tui_next_layout): Reimplement.
8051 (tui_next_layout_command): New function.
8052 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8053 (tui_regs_layout): Reimplement.
8054 (tui_regs_layout_command): New function.
8055 (extract_display_start_addr): Rewrite.
8056 (next_layout, prev_layout): Remove.
8057 (tui_layout_window::replace_window): New method.
8058 (tui_layout_split::replace_window): New method.
8059 (destroy_layout): New function.
8060 (layout_list): New global.
8061 (add_layout_command): New function.
8062 (initialize_layouts): Update.
8063 (tui_layout_command): New function.
8064 (_initialize_tui_layout): Install "layout" commands.
8065 * tui/tui-data.h (enum tui_layout_type): Remove.
8066 (tui_current_layout): Don't declare.
8067
8068 2020-02-22 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-regs.c (tui_reg_layout): Remove.
8071 (tui_reg_command): Use tui_regs_layout.
8072 * tui/tui-layout.h (tui_reg_command): Declare.
8073 * tui/tui-layout.c (tui_reg_command): New function.
8074
8075 2020-02-22 Tom Tromey <tom@tromey.com>
8076
8077 * tui/tui.c (tui_rl_delete_other_windows): Call
8078 tui_remove_some_windows.
8079 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8080 Declare method.
8081 (class tui_layout_window) <remove_windows>: New method.
8082 (class tui_layout_split) <remove_windows>: Declare.
8083 (tui_remove_some_windows): Declare.
8084 * tui/tui-layout.c (tui_remove_some_windows): New function.
8085 (tui_layout_split::remove_windows): New method.
8086
8087 2020-02-22 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8090 * tui/tui-layout.h (tui_next_layout): Declare.
8091 * tui/tui-layout.c (tui_next_layout): New function.
8092
8093 2020-02-22 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8096 correct coordinates.
8097
8098 2020-02-22 Tom Tromey <tom@tromey.com>
8099
8100 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8101 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8102 DATA_WIN case.
8103
8104 2020-02-22 Tom Tromey <tom@tromey.com>
8105
8106 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8107 TUI_DISASM_WIN, not tui_win_list.
8108
8109 2020-02-22 Tom Tromey <tom@tromey.com>
8110
8111 * valprint.c (generic_val_print_enum_1)
8112 (val_print_type_code_flags): Style member names.
8113 * rust-lang.c (val_print_struct, rust_print_enum)
8114 (rust_print_struct_def, rust_internal_print_type): Style member
8115 names.
8116 * p-valprint.c (pascal_object_print_value_fields): Style member
8117 names. Only call fprintf_symbol_filtered for static members.
8118 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8119 * f-valprint.c (f_val_print): Style member names.
8120 * f-typeprint.c (f_type_print_base): Style member names.
8121 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8122 call fprintf_symbol_filtered for static members.
8123 (cp_print_class_member): Style member names.
8124 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8125 member names.
8126 * ada-valprint.c (ada_print_scalar): Style enum names.
8127 (ada_val_print_enum): Likewise.
8128 * ada-typeprint.c (print_enum_type): Style enum names.
8129
8130 2020-02-21 Tom Tromey <tom@tromey.com>
8131
8132 * psympriv.h (struct partial_symtab): Update comment.
8133
8134 2020-02-21 Tom Tromey <tromey@adacore.com>
8135
8136 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8137 type is CORE_ADDR.
8138
8139 2020-02-21 Tom de Vries <tdevries@suse.de>
8140
8141 PR gdb/25534
8142 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8143 if dependencies[i]->user != NULL.
8144
8145 2020-02-21 Ali Tamur <tamur@google.com>
8146
8147 * dwarf2/read.c (dwarf2_name): Add null check.
8148
8149 2020-02-20 Tom Tromey <tom@tromey.com>
8150
8151 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8152 ">=", in binary search.
8153 (dwarf2_find_containing_comp_unit): New overload.
8154 (run_test): New self-test.
8155 (_initialize_dwarf2_read): Register new test.
8156
8157 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8158
8159 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8160 * riscv-tdep.h: Likewise.
8161 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8162 rv32-only CSR.
8163 * features/riscv/64bit-csr.xml: Regenerated.
8164
8165 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8166 Tom Tromey <tom@tromey.com>
8167
8168 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8169 of 'fputc_unfiltered'.
8170 (putchar_unfiltered): Call 'fputc_unfiltered'.
8171 (fputc_unfiltered): Call 'fputs_unfiltered'.
8172
8173 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 * config.in: Regenerate.
8176 * configure: Regenerate.
8177 * configure.ac: Add --with-python-libdir option.
8178 * main.c: Use WITH_PYTHON_LIBDIR.
8179
8180 2020-02-19 Tom Tromey <tom@tromey.com>
8181
8182 * symtab.c (general_symbol_info::compute_and_set_names): Use
8183 obstack_strndup. Simplify call to symbol_set_demangled_name.
8184
8185 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * dwarf2/read.c (allocate_signatured_type_table,
8188 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8189 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8190 Remove objfile parameter, update all callers.
8191
8192 2020-02-19 Doug Evans <dje@google.com>
8193
8194 PR rust/25535
8195 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8196 rust_enum_variant calculation.
8197
8198 2020-02-19 Tom Tromey <tromey@adacore.com>
8199
8200 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8201
8202 2020-02-19 Tom Tromey <tromey@adacore.com>
8203
8204 * ada-lang.c (cache_symbol): Use obstack_strdup.
8205
8206 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8207
8208 * configure: Regenerate.
8209
8210 2020-02-19 Tom Tromey <tromey@adacore.com>
8211
8212 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8213 NULL check.
8214
8215 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8216
8217 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8218
8219 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8222 if GDBSERVER is not defined.
8223 (riscv_tdesc_cache): Likewise, also store const target_desc.
8224 (STATIC_IN_GDB): Define.
8225 (riscv_create_target_description): Update declaration with
8226 STATIC_IN_GDB.
8227 (riscv_lookup_target_description): New function, only define if
8228 GDBSERVER is not defined.
8229 * arch/riscv.h (riscv_create_target_description): Declare only
8230 when GDBSERVER is defined.
8231 (riscv_lookup_target_description): New declaration when GDBSERVER
8232 is not defined.
8233 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8234 (riscv_linux_read_features): ...this, and return
8235 riscv_gdbarch_features instead of target_desc.
8236 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8237 (riscv_linux_read_description): Rename to...
8238 (riscv_linux_read_features): ...this.
8239 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8240 Update to use riscv_gdbarch_features and
8241 riscv_lookup_target_description.
8242 * riscv-tdep.c (riscv_find_default_target_description): Use
8243 riscv_lookup_target_description instead of
8244 riscv_create_target_description.
8245
8246 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * valprint.c (generic_val_print_enum_1): When printing a flag
8249 enum with value 0 and there is no enumerator with value 0, print
8250 just "0" instead of "(unknown: 0x0)".
8251
8252 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8253
8254 * valprint.c (generic_val_print_enum_1): Print unknown part of
8255 flag enum in hex.
8256
8257 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8258
8259 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8260 flag enums to contain duplicate enumerators.
8261 * valprint.c (generic_val_print_enum_1): Update comment.
8262
8263 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8264
8265 * dwarf2/read.c: Include "count-one-bits.h".
8266 (update_enumeration_type_from_children): If an enumerator has
8267 multiple bits set, don't treat the enumeration as a "flag enum".
8268 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8269 of flag enums have 0 or 1 bit set.
8270
8271 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8272
8273 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8274 conversion.
8275 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8276 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8277 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8278 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8279 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8280
8281 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8282
8283 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8284
8285 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8288 displaced_step_closure_up.
8289 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8290 (struct displaced_step_closure_up):
8291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8292 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8293 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8294 Likewise.
8295 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8296 * gdbarch.c, gdbarch.h: Re-generate.
8297 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8298 displaced_step_closure_up.
8299 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8300 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8301 * infrun.h (displaced_step_closure_up): New type alias.
8302 (struct displaced_step_inferior_state) <step_closure>: Change
8303 type to displaced_step_closure_up.
8304 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8305 displaced_step_closure_up.
8306 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8307
8308 2020-02-14 Tom Tromey <tom@tromey.com>
8309
8310 * minidebug.c (gnu_debug_key): New global.
8311 (find_separate_debug_file_in_section): Use it.
8312
8313 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8314
8315 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8316 std::unique_ptr.
8317 * gdbarch.c: Re-generate.
8318 * gdbarch.h: Re-generate.
8319 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8320 change.
8321 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8322 type to std::unique_ptr.
8323 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8324 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8325 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8326 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8327 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8328 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8329 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8330 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8331 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8332
8333 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8334
8335 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8336 std::unique_ptr.
8337 (displaced_step_clear): Rename to...
8338 (displaced_step_reset): ... this. Just call displaced->reset ().
8339 (displaced_step_clear_cleanup): Rename to...
8340 (displaced_step_reset_cleanup): ... this.
8341 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8342 (displaced_step_fixup): Likewise.
8343 (resume_1): Likewise.
8344 (handle_inferior_event): Restore child's memory before calling
8345 displaced_step_fixup on the parent.
8346 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8347 to std::unique_ptr.
8348 <step_closure>: Change type to std::unique_ptr.
8349
8350 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8351
8352 * arm-tdep.c: Include count-one-bits.h.
8353 (cleanup_block_store_pc): Use count_one_bits.
8354 (cleanup_block_load_pc): Use count_one_bits.
8355 (arm_copy_block_xfer): Use count_one_bits.
8356 (thumb2_copy_block_xfer): Use count_one_bits.
8357 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8358 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8359 (thumb_get_next_pcs_raw): Use count_one_bits.
8360 (arm_get_next_pcs_raw): Use count_one_bits_l.
8361 * arch/arm.c (bitcount): Remove.
8362 * arch/arm.h (bitcount): Remove.
8363
8364 2020-02-14 Tom Tromey <tromey@adacore.com>
8365
8366 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8367 Update.
8368 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8369 * dwarf2/loc.c (call_site_find_chain_1): Return
8370 unique_xmalloc_ptr.
8371 (call_site_find_chain): Likewise.
8372
8373 2020-02-14 Richard Biener <rguenther@suse.de>
8374
8375 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8376 on expression with division operators.
8377
8378 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8379
8380 * MAINTAINERS (Write After Approval): Adding myself.
8381
8382 2020-02-12 Tom Tromey <tom@tromey.com>
8383
8384 * event-loop.c (event_data, gdb_event, event_handler_func):
8385 Remove.
8386
8387 2020-02-12 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8390 (dwarf2_frame_objfile_data): Add comment.
8391 (find_comp_unit, set_comp_unit): New functions.
8392 (dwarf2_frame_find_fde): Use find_comp_unit.
8393 (dwarf2_build_frame_info): Use set_comp_unit.
8394
8395 2020-02-12 Tom Tromey <tom@tromey.com>
8396
8397 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8398 (comp_unit): Don't initialize objfile.
8399 (execute_cfa_program): Add text_offset parameter.
8400 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8401 (dwarf2_frame_cache): Update.
8402 (dwarf2_build_frame_info): Don't set "objfile" member.
8403
8404 2020-02-12 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8407 (decode_frame_entry): Likewise.
8408 (dwarf2_build_frame_info): Update.
8409
8410 2020-02-12 Tom Tromey <tom@tromey.com>
8411
8412 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8413 (decode_frame_entry_1): Use the comp_unit obstack.
8414
8415 2020-02-12 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2/frame.c (struct comp_unit): Add initializers and
8418 constructor.
8419 (dwarf2_frame_objfile_data): Store a comp_unit.
8420 (dwarf2_frame_find_fde): Update.
8421 (dwarf2_build_frame_info): Use "new".
8422
8423 2020-02-12 Tom Tromey <tom@tromey.com>
8424
8425 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8426 (dwarf2_fde_table): Typedef for std::vector.
8427 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8428 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8429 (decode_frame_entry): Update.
8430 (dwarf2_build_frame_info): Use "new".
8431
8432 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8433
8434 * arm-tdep.c (arm_gdbarch_init): Update.
8435 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8436 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8437 have_neon, is_m>: Change to bool.
8438
8439 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8440
8441 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8442
8443 2020-02-12 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8446
8447 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8448
8449 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8450 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8451
8452 2020-02-11 Tom Tromey <tom@tromey.com>
8453
8454 * psymtab.h: Update comment.
8455
8456 2020-02-11 Tom Tromey <tom@tromey.com>
8457
8458 * gdb_obstack.h (struct auto_obstack): Use
8459 DISABLE_COPY_AND_ASSIGN.
8460
8461 2020-02-11 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2/frame.h (struct objfile): Don't forward declare.
8464
8465 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8466
8467 * cris-tdep.c (cris_supply_gregset): Change signature to match
8468 what struct regset expects.
8469 (cris_regset): New struct.
8470 (fetch_core_registers): Remove.
8471 (cris_iterate_over_regset_sections): New function.
8472 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8473 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8474
8475 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8476
8477 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8478 registers.
8479
8480 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8481
8482 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8483
8484 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * configure: Re-generate.
8487
8488 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8489
8490 * configure: Re-generate.
8491
8492 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8493
8494 * acinclude: Update warning.m4 path.
8495 * warning.m4: Move to gdbsupport.
8496
8497 2020-02-11 Tom Tromey <tromey@adacore.com>
8498
8499 * remote.c (remote_console_output): Update.
8500 * printcmd.c (printf_command): Update.
8501 * event-loop.c (gdb_wait_for_event): Update.
8502 * linux-nat.c (sigchld_handler): Update.
8503 * remote-sim.c (gdb_os_write_stdout): Update.
8504 (gdb_os_flush_stdout): Update.
8505 (gdb_os_flush_stderr): Update.
8506 (gdb_os_write_stderr): Update.
8507 * exceptions.c (print_exception): Update.
8508 * remote-fileio.c (remote_fileio_func_read): Update.
8509 (remote_fileio_func_write): Update.
8510 * tui/tui.c (tui_enable): Update.
8511 * tui/tui-interp.c (tui_interp::init): Update.
8512 * utils.c (init_page_info): Update.
8513 (putchar_unfiltered, fputc_unfiltered): Update.
8514 (gdb_flush): Update.
8515 (emit_style_escape): Update.
8516 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8517 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8518 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8519 (stderr_file::write): Update.
8520 (stderr_file::puts): Update.
8521 * ui-file.h (ui_file_isatty, ui_file_write)
8522 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8523 (ui_file_puts): Don't declare.
8524
8525 2020-02-10 Tom de Vries <tdevries@suse.de>
8526
8527 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8528 sentinel to char *.
8529
8530 2020-02-09 Tom de Vries <tdevries@suse.de>
8531
8532 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8533 filename if it matches "<artificial>".
8534
8535 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8536
8537 * windows-tdep.c (struct enum_value_name): New struct.
8538 (create_enum): New function.
8539 (windows_get_siginfo_type): Create and use enum types.
8540
8541 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8542
8543 * NEWS: Mention $_siginfo support for Windows.
8544 * windows-nat.c (handle_exception): Set siginfo_er.
8545 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8546 (windows_xfer_siginfo): New function.
8547 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8548 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8549 (init_windows_gdbarch_data): New function.
8550 (get_windows_gdbarch_data): New function.
8551 (windows_get_siginfo_type): New function.
8552 (windows_init_abi): Register windows_get_siginfo_type.
8553 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8554
8555 2020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8558 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8559 <keep>: Declare method.
8560 <m_keep>: Remove member.
8561 <~cutu_reader>: Remove.
8562 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8563 (cutu_reader::cutu_reader): Update.
8564 (cutu_reader::keep): Rename from ~cutu_reader.
8565 (process_psymtab_comp_unit, build_type_psymtabs_1)
8566 (process_skeletonless_type_unit, load_partial_comp_unit)
8567 (load_full_comp_unit, dwarf2_read_addr_index)
8568 (read_signatured_type): Update.
8569
8570 2020-02-08 Tom Tromey <tom@tromey.com>
8571
8572 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8573 "want_partial_unit" parameter.
8574 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8575 Inline check for DW_TAG_partial_unit.
8576 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8577
8578 2020-02-08 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8581 read.c.
8582 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8583 read.c.
8584
8585 2020-02-08 Tom Tromey <tom@tromey.com>
8586
8587 * dwarf2/read.c (read_address): Move to comp-unit.c.
8588 (dwarf2_rnglists_process, dwarf2_ranges_process)
8589 (read_attribute_value, dwarf_decode_lines_1)
8590 (var_decode_location, decode_locdesc): Update.
8591 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8592 read.c. Remove "cu" parameter.
8593 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8594 method.
8595
8596 2020-02-08 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8599 (read_indirect_line_string): Update.
8600 * dwarf2/comp-unit.c (read_offset): Remove.
8601 (read_comp_unit_head): Update.
8602 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8603 method.
8604 (read_offset): Don't declare.
8605
8606 2020-02-08 Tom Tromey <tom@tromey.com>
8607
8608 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8609 * dwarf2/read.c (struct comp_unit_head): Move to
8610 dwarf2/comp-unit.h.
8611 (enum class rcuh_kind): Move to comp-unit.h.
8612 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8613 (read_comp_unit_head, error_check_comp_unit_head)
8614 (read_and_check_comp_unit_head): Move to comp-unit.c.
8615 (read_offset, dwarf_unit_type_name): Likewise.
8616 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8617 (cutu_reader::cutu_reader, read_call_site_scope)
8618 (find_partial_die, follow_die_offset): Update.
8619 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8620
8621 2020-02-08 Tom Tromey <tom@tromey.com>
8622
8623 * dwarf2/read.c (read_offset_1): Move to leb.c.
8624 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8625 (dwarf_decode_macro_bytes): Update.
8626 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8627 * dwarf2/leb.h (read_offset): Declare.
8628
8629 2020-02-08 Tom Tromey <tom@tromey.com>
8630
8631 * dwarf2/read.c (dwarf2_section_size): Remove.
8632 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8633 Update.
8634 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8635
8636 2020-02-08 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2/read.c (read_initial_length): Move to leb.c.
8639 * dwarf2/leb.h (read_initial_length): Declare.
8640 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8641 handle_nonstd parameter.
8642 * dwarf2/frame.c (read_initial_length): Remove.
8643 (decode_frame_entry_1): Update.
8644
8645 2020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2/loc.c (dwarf2_find_location_expression)
8648 (dwarf_evaluate_loc_desc::get_tls_address)
8649 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8650 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8651 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8652 (dwarf2_compile_property_to_c)
8653 (dwarf2_loc_desc_get_symbol_read_needs)
8654 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8655 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8656 (loclist_describe_location, loclist_tracepoint_var_ref)
8657 (loclist_generate_c_location): Update.
8658 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8659 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8660 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8661 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8662 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8663 (dwarf2_per_cu_data::addr_size)
8664 (dwarf2_per_cu_data::ref_addr_size)
8665 (dwarf2_per_cu_data::text_offset)
8666 (dwarf2_per_cu_data::addr_type): Now methods.
8667 (per_cu_header_read_in): Make per_cu "const".
8668 (dwarf2_version): Remove.
8669 (dwarf2_per_cu_data::int_type): Now a method.
8670 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8671 (set_die_type, read_array_type, read_subrange_index_type)
8672 (read_tag_string_type, read_subrange_type): Update.
8673 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8674 offset_size, ref_addr_size, text_offset, addr_type, version,
8675 objfile, int_type, addr_sized_int_type>: Declare methods.
8676
8677 2020-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8680 Move earlier.
8681
8682 2020-02-08 Tom Tromey <tom@tromey.com>
8683
8684 * dwarf2/read.h (dwarf_line_debug): Declare.
8685 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8686 * dwarf2/read.c: Move line_header code to new files.
8687 (dwarf_line_debug): No longer static.
8688 * dwarf2/line-header.c: New file.
8689 * dwarf2/line-header.h: New file.
8690
8691 2020-02-08 Tom Tromey <tom@tromey.com>
8692
8693 * dwarf2/read.c (struct line_header) <file_full_name,
8694 file_file_name>: Return unique_xmalloc_ptr.
8695 (line_header::file_file_name): Update.
8696 (line_header::file_full_name): Update.
8697 (dw2_get_file_names_reader): Update.
8698 (macro_start_file): Update.
8699
8700 2020-02-08 Tom Tromey <tom@tromey.com>
8701
8702 * dwarf2/read.c (struct line_header) <file_full_name,
8703 file_file_name>: Declare methods.
8704 (dw2_get_file_names_reader): Update.
8705 (file_file_name): Now a method.
8706 (file_full_name): Likewise.
8707 (macro_start_file): Update.
8708
8709 2020-02-08 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/read.c (dwarf_always_disassemble)
8712 (show_dwarf_always_disassemble): Move to loc.c.
8713 (_initialize_dwarf2_read): Move "always-disassemble" registration
8714 to loc.c.
8715 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8716 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8717 static.
8718 (show_dwarf_always_disassemble): Move from read.c.
8719 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8720
8721 2020-02-08 Tom Tromey <tom@tromey.com>
8722
8723 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8724 (create_quick_file_names_table): Return htab_up.
8725 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8726 Update.
8727 * dwarf2/read.h (struct dwarf2_per_objfile)
8728 <quick_file_names_table>: Now htab_up.
8729
8730 2020-02-08 Tom Tromey <tom@tromey.com>
8731
8732 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8733
8734 2020-02-08 Tom Tromey <tom@tromey.com>
8735
8736 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8737 Rewrite.
8738 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8739 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8740 (abbrev_table::abbrev_table): No longer inline.
8741 (ABBREV_HASH_SIZE): Remove.
8742 (abbrev_table::m_abbrevs): Now an htab_up.
8743
8744 2020-02-08 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8747 (cutu_reader): Update.
8748 (build_type_psymtabs_1): Update.
8749 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8750 (abbrev_table::alloc_abbrev): Update.
8751 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8752 (abbrev_table::read): New static method, renamed from
8753 abbrev_table_read_table.
8754 (abbrev_table::alloc_abbrev)
8755 (abbrev_table::add_abbrev): Now private.
8756 (abbrev_table::abbrev_table): Now private.
8757 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8758
8759 2020-02-08 Tom Tromey <tom@tromey.com>
8760
8761 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8762 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8763 htab_up.
8764
8765 2020-02-08 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8768 htab_up.
8769 (lookup_dwo_unit_in_dwp): Update.
8770 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8771 on obstack.
8772
8773 2020-02-08 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8776 obstack.
8777
8778 2020-02-08 Tom Tromey <tom@tromey.com>
8779
8780 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8781 line_header_hash.
8782 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8783 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8784 Change type to htab_up.
8785
8786 2020-02-08 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8789 htab_up. Don't allocate on obstack.
8790 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8791 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8792 Change type to htab_up.
8793
8794 2020-02-08 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8797 Change type to htab_up.
8798 * dwarf2/read.c (create_signatured_type_table_from_index)
8799 (create_signatured_type_table_from_debug_names)
8800 (create_all_type_units, add_type_unit)
8801 (lookup_dwo_signatured_type, lookup_signatured_type)
8802 (process_skeletonless_type_unit): Update.
8803 (create_debug_type_hash_table, create_debug_types_hash_table):
8804 Change type of types_htab.
8805 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8806 htab_up. Don't allocate on obstack.
8807 (create_cus_hash_table): Change type of cus_htab parameter.
8808 (struct dwo_file) <cus, tus>: Now htab_up.
8809 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8810 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8811 (queue_and_load_all_dwo_tus): Update.
8812 * dwarf2/index-write.c (write_gdbindex): Update.
8813 (write_debug_names): Update.
8814
8815 2020-02-08 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8818 dwarf2/read.c. Remove "next" member. Add constructor ntad
8819 destructor.
8820 (struct dwarf2_per_objfile) <queue>: New member.
8821 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8822 dwarf2/read.h.
8823 (dwarf2_queue, dwarf2_queue_tail): Remove.
8824 (class dwarf2_queue_guard): Add parameter to constructor. Use
8825 DISABLE_COPY_AND_ASSIGN.
8826 <m_per_objfile>: New member.
8827 <~dwarf2_queue_guard>: Rewrite.
8828 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8829 Update.
8830 (~dwarf2_queue_item): New.
8831
8832 2020-02-08 Tom Tromey <tom@tromey.com>
8833
8834 * dwarf2/read.c (struct die_info) <has_children>: New member.
8835 (dw2_get_file_names_reader): Remove has_children.
8836 (dw2_get_file_names): Update.
8837 (read_cutu_die_from_dwo): Remove has_children.
8838 (cutu_reader::init_tu_and_read_dwo_dies)
8839 (cutu_reader::cutu_reader): Update.
8840 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8841 Remove has_children.
8842 (build_type_psymtabs_1, process_skeletonless_type_unit)
8843 (load_partial_comp_unit, load_full_comp_unit): Update.
8844 (create_dwo_cu_reader): Remove has_children.
8845 (create_cus_hash_table, read_die_and_children): Update.
8846 (read_full_die_1,read_full_die): Remove has_children.
8847 (read_signatured_type): Update.
8848 (class cutu_reader) <has_children>: Remove.
8849
8850 2020-02-08 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/expr.c: Rename from dwarf2expr.c.
8853 * dwarf2/expr.h: Rename from dwarf2expr.h.
8854 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8855 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8856 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8857 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8858 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8859 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8860 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8861 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8862 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8863 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8864 * dwarf2/loc.c: Rename from dwarf2loc.c.
8865 * dwarf2/loc.h: Rename from dwarf2loc.h.
8866 * dwarf2/read.c: Rename from dwarf2read.c.
8867 * dwarf2/read.h: Rename from dwarf2read.h.
8868 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8869 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8870 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8871 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8872 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8873 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8874 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8875 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8876 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8877 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8878 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8879 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8880 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8881 Update.
8882 * Makefile.in (COMMON_SFILES): Update.
8883 (HFILES_NO_SRCDIR): Update.
8884
8885 2020-02-08 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8888 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8889
8890 2020-02-08 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2read.h (struct die_info): Don't declare.
8893
8894 2020-02-08 Tom Tromey <tom@tromey.com>
8895
8896 * dwarf2read.h (die_info_ptr): Remove typedef.
8897
8898 2020-02-08 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2read.c (read_call_site_scope)
8901 (handle_data_member_location, dwarf2_add_member_fn)
8902 (mark_common_block_symbol_computed, read_common_block)
8903 (attr_to_dynamic_prop, partial_die_info::read)
8904 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8905 (dwarf2_symbol_mark_computed, set_die_type): Update.
8906 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8907 method.
8908 (attr_form_is_block): Don't declare.
8909 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8910
8911 2020-02-08 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2read.c (dwarf2_find_base_address, )
8914 (read_call_site_scope, rust_containing_type)
8915 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8916 (handle_data_member_location, dwarf2_add_member_fn)
8917 (get_alignment, read_structure_type, process_structure_scope)
8918 (mark_common_block_symbol_computed, read_common_block)
8919 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8920 (partial_die_info::read, read_attribute_value, new_symbol)
8921 (lookup_die_type, dwarf2_get_ref_die_offset)
8922 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8923 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8924 (dwarf2_symbol_mark_computed): Update.
8925 * dwarf2/attribute.h (struct attribute) <value_as_address,
8926 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8927 methods.
8928 (value_as_address, attr_form_is_section_offset)
8929 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8930 * dwarf2/attribute.c (attribute::value_as_address)
8931 (attribute::form_is_section_offset, attribute::form_is_constant)
8932 (attribute::form_is_ref): Now methods.
8933
8934 2020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2read.c (struct attribute, DW_STRING)
8937 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8938 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8939 (attr_form_is_block, attr_form_is_section_offset)
8940 (attr_form_is_constant, attr_form_is_ref): Move.
8941 * dwarf2/attribute.h: New file.
8942 * dwarf2/attribute.c: New file, from dwarf2read.c.
8943 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8944
8945 2020-02-08 Tom Tromey <tom@tromey.com>
8946
8947 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8948 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8949 Move.
8950 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8951 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8952 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8953 abbrev.c.
8954 * dwarf2/abbrev.h: New file.
8955 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8956 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8957
8958 2020-02-08 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8961 (dwarf2_section_size, dwarf2_get_section_info)
8962 (create_signatured_type_table_from_debug_names)
8963 (create_addrmap_from_aranges, read_debug_names_from_section)
8964 (get_gdb_index_contents_from_section, read_comp_unit_head)
8965 (error_check_comp_unit_head, read_abbrev_offset)
8966 (create_debug_type_hash_table, init_cu_die_reader)
8967 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8968 (read_comp_units_from_section, create_cus_hash_table)
8969 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8970 (create_dwp_v2_section, dwarf2_rnglists_process)
8971 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8972 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8973 (read_indirect_string_from_dwz, read_addr_index_1)
8974 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8975 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8976 (fill_in_loclist_baton): Update.
8977 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8978 get_containing_section, get_bfd_owner, get_bfd_section,
8979 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8980 (dwarf2_read_section, get_section_name, get_section_file_name)
8981 (get_containing_section, get_section_bfd_owner)
8982 (get_section_bfd_section, get_section_name, get_section_file_name)
8983 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8984 declare.
8985 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8986 (dwarf2_section_info::get_bfd_owner)
8987 (dwarf2_section_info::get_bfd_section)
8988 (dwarf2_section_info::get_name)
8989 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8990 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8991 (dwarf2_section_info::read): Now methods.
8992 * dwarf-index-write.c (class debug_names): Update.
8993
8994 2020-02-08 Tom Tromey <tom@tromey.com>
8995
8996 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8997 Move to dwarf2/section.h.
8998 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8999 (get_section_bfd_section, get_section_name)
9000 (get_section_file_name, get_section_id, get_section_flags)
9001 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9002 dwarf2/section.c.
9003 * dwarf2/section.h: New file.
9004 * dwarf2/section.c: New file, from dwarf2read.c.
9005 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9006
9007 2020-02-08 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9010 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9011 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9012 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9013 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9014 * dwarf2/leb.h: New file, from dwarf2read.c.
9015 * dwarf2/leb.c: New file, from dwarf2read.c.
9016 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9017 Remove.
9018 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9019 (COMMON_SFILES): Add dwarf2/leb.c.
9020
9021 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9022
9023 GDB 9.1 released.
9024
9025 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9026
9027 PR gdb/25190:
9028 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9029 * gdb/remote.c (remote_console_output): Update.
9030 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9031 (ui_file_puts): ...this.
9032 * gdb/ui-file.h (ui_file_puts): Add declaration.
9033 * gdb/utils.c (emit_style_escape): Update.
9034 (flush_wrap_buffer): Update.
9035 (fputs_maybe_filtered): Update.
9036 (fputs_unfiltered): Add function.
9037
9038 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9039
9040 * gdb/event-loop.c (gdb_wait_for_event): Update.
9041 * gdb/printcmd.c (printf_command): Update.
9042 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9043 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9044 (gdb_os_flush_stderr): Update.
9045 * gdb/remote.c (remote_console_output): Update.
9046 * gdb/ui-file.c (gdb_flush): Rename to...
9047 (ui_file_flush): ...this.
9048 (stderr_file::write): Update.
9049 (stderr_file::puts): Update.
9050 * gdb/ui-file.h (gdb_flush): Rename to...
9051 (ui_file_flush): ...this.
9052 * gdb/utils.c (gdb_flush): Add function.
9053 * gdb/utils.h (gdb_flush): Add declaration.
9054
9055 2020-02-07 Tom Tromey <tromey@adacore.com>
9056
9057 PR breakpoints/24915:
9058 * source.c (find_and_open_source): Do not check basenames_may_differ.
9059
9060 2020-02-07 Tom Tromey <tom@tromey.com>
9061
9062 * README: Update gdbserver documentation.
9063 * gdbserver: Move to top level.
9064 * configure.tgt (build_gdbserver): Remove.
9065 * configure.ac: Remove --enable-gdbserver.
9066 * configure: Rebuild.
9067 * Makefile.in (distclean): Don't mention gdbserver.
9068
9069 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9070
9071 * source-cache.c (source_cache::ensure): Surround
9072 get_plain_source_lines with a try/catch.
9073 (source_cache::get_line_charpos): Get rid of try/catch
9074 and only check for the return value of "ensure".
9075 * tui/tui-source.c (tui_source_window::set_contents):
9076 Simplify "nlines" calculation.
9077
9078 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9079
9080 * MAINTAINERS (Write After Approval): Add myself.
9081
9082 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9083
9084 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9085 function call.
9086
9087 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9088
9089 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9090
9091 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9092
9093 * nat/riscv-linux-tdesc.h: New file.
9094 * nat/riscv-linux-tdesc.c: New file, taking code from...
9095 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9096 ... here.
9097 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9098 NATDEPFILES.
9099
9100 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9103 we don't set the fake simulator ptid to the null_ptid.
9104
9105 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9108 * gdbthread.h (class thread_info) <resumed>: Likewise.
9109 * infrun.c (resume_1): Likewise.
9110 (proceed): Likewise.
9111 (infrun_thread_stop_requested): Likewise.
9112 (stop_all_threads): Likewise.
9113 (handle_inferior_event): Likewise.
9114 (restart_threads): Likewise.
9115 (finish_step_over): Likewise.
9116 (keep_going_stepped_thread): Likewise.
9117 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9118 (linux_handle_extended_wait): Likewise.
9119 * record-btrace.c (get_thread_current_frame_id): Likewise.
9120 * record-full.c (record_full_wait_1): Likewise.
9121 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9122 * target.c (target_resume): Likewise.
9123 * thread.c (set_running_thread): Likewise.
9124
9125 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9126
9127 * f-valprint.c (f77_print_array_1): Changed datatype of index
9128 variable to LONGEST from int to enable it to contain bound
9129 values correctly.
9130
9131 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9132
9133 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9134 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9135 offsets according to FLEN determined.
9136 (riscv_linux_nat_target::read_description): Determine FLEN
9137 dynamically.
9138 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9139 according to FLEN determined.
9140 (riscv_linux_nat_target::store_registers): Likewise.
9141
9142 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9143
9144 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9145 when reg->group is empty and reggroup is not.
9146
9147 2020-01-31 Tom Tromey <tromey@adacore.com>
9148
9149 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9150 Call beneath target's mourn_inferior after unpushing.
9151
9152 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9153
9154 PR tui/9765
9155 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9156 have enough lines to fill the screen, still return the lowest
9157 address we found.
9158
9159 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9160
9161 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9162 '-', '<', and '>' commands.
9163
9164 2020-01-29 Pedro Alves <palves@redhat.com>
9165 Sergio Durigan Junior <sergiodj@redhat.com>
9166
9167 * infcmd.c (construct_inferior_arguments): Assert that
9168 'argc' is greater than 0.
9169
9170 2020-01-29 Luis Machado <luis.machado@linaro.org>
9171
9172 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9173 (BRK_INSN_MASK): Define to 0xd4200000.
9174 (aarch64_program_breakpoint_here_p): New function.
9175 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9176 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9177 breakpoint.c.
9178 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9179 breakpoint.h
9180 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9181 call gdbarch_program_breakpoint_here_p.
9182 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9183 default_program_breakpoint_here_p, changed return type to bool and
9184 simplified.
9185 * breakpoint.h (program_breakpoint_here): Moved prototype to
9186 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9187 return type to bool.
9188 * gdbarch.c: Regenerate.
9189 * gdbarch.h: Regenerate.
9190 * gdbarch.sh (program_breakpoint_here_p): New method.
9191 * infrun.c (handle_signal_stop): Call
9192 gdbarch_program_breakpoint_here_p.
9193
9194 2020-01-26 Tom Tromey <tom@tromey.com>
9195
9196 * ctfread.c (struct ctf_fp_info): Reindent.
9197 (_initialize_ctfread): Remove.
9198
9199 2020-01-26 Tom Tromey <tom@tromey.com>
9200
9201 * psymtab.c (partial_map_expand_apply)
9202 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9203 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9204 (psym_print_stats, psym_expand_symtabs_for_function)
9205 (psym_map_symbol_filenames, psym_map_matching_symbols)
9206 (psym_expand_symtabs_matching)
9207 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9208 (maintenance_check_psymtabs): Use new methods.
9209 * psympriv.h (struct partial_symtab) <readin_p,
9210 get_compunit_symtab>: New methods.
9211 <readin, compunit_symtab>: Remove members.
9212 (struct standard_psymtab): New.
9213 (struct legacy_psymtab): Derive from standard_psymtab.
9214 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9215 standard_psymtab.
9216 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9217
9218 2020-01-26 Tom Tromey <tom@tromey.com>
9219
9220 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9221 read_dependencies. Add assert.
9222 * psymtab.c (partial_symtab::read_dependencies): New method.
9223 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9224 method.
9225 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9226 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9227 read_dependencies.
9228 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9229 Add assert.
9230
9231 2020-01-26 Tom Tromey <tom@tromey.com>
9232
9233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9234 Call expand_psymtab.
9235 (xcoff_read_symtab): Call expand_psymtab.
9236 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9237 legacy_expand_psymtab.
9238 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9239 method.
9240 (struct legacy_psymtab) <expand_psymtab>: Implement.
9241 <legacy_expand_psymtab>: New member.
9242 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9243 (parse_partial_symbols): Set legacy_expand_psymtab.
9244 (psymtab_to_symtab_1): Change argument order. Call
9245 expand_psymtab.
9246 (new_psymtab): Set legacy_expand_psymtab.
9247 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9248 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9249 expand_psymtab.
9250 (dwarf2_psymtab::expand_psymtab): Rename from
9251 psymtab_to_symtab_1. Call expand_psymtab.
9252 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9253 (dbx_end_psymtab): Likewise.
9254 (dbx_psymtab_to_symtab_1): Change argument order. Call
9255 expand_psymtab.
9256 (dbx_read_symtab): Call expand_psymtab.
9257 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9258 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9259 (ctf_psymtab::read_symtab): Call expand_psymtab.
9260
9261 2020-01-26 Tom Tromey <tom@tromey.com>
9262
9263 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9264 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9265 messages.
9266 * mdebugread.c (mdebug_read_symtab): Remove prints.
9267 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9268 assert.
9269 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9270
9271 2020-01-26 Tom Tromey <tom@tromey.com>
9272
9273 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9274 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9275 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9276 legacy_symtab.
9277 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9278 * psymtab.c (psymtab_to_symtab): Call method.
9279 (dump_psymtab): Update.
9280 * psympriv.h (struct partial_symtab): Add virtual destructor.
9281 <read_symtab>: New method.
9282 (struct legacy_symtab): New.
9283 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9284 (struct pst_map) <pst>: Now a legacy_psymtab.
9285 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9286 (new_psymtab): Use legacy_psymtab.
9287 * dwarf2read.h (struct dwarf2_psymtab): New.
9288 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9289 * dwarf2read.c (dwarf2_create_include_psymtab)
9290 (dwarf2_build_include_psymtabs, create_type_unit_group)
9291 (create_partial_symtab, process_psymtab_comp_unit_reader)
9292 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9293 (set_partial_user): Use dwarf2_psymtab.
9294 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9295 (psymtab_to_symtab_1, process_full_comp_unit)
9296 (process_full_type_unit, dwarf2_ranges_read)
9297 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9298 (dwarf_decode_lines): Use dwarf2_psymtab.
9299 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9300 (add_address_entry_worker, write_one_signatured_type)
9301 (recursively_count_psymbols, recursively_write_psymbols)
9302 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9303 (write_debug_names): Likewise.
9304 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9305 <pst>: Now a legacy_psymtab.
9306 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9307 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9308 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9309 * ctfread.c (struct ctf_psymtab): New.
9310 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9311 ctf_psymtab.
9312 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9313 (create_partial_symtab): Return a ctf_psymtab.
9314 (scan_partial_symbols): Update.
9315
9316 2020-01-26 Tom Tromey <tom@tromey.com>
9317
9318 * xcoffread.c (xcoff_start_psymtab): Use new.
9319 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9320 renamed from start_psymtab_common.
9321 * psympriv.h (struct partial_symtab): Add new constructor.
9322 (start_psymtab_common): Don't declare.
9323 * mdebugread.c (parse_partial_symbols): Use new.
9324 * dwarf2read.c (create_partial_symtab): Use new.
9325 * dbxread.c (start_psymtab): Use new.
9326 * ctfread.c (create_partial_symtab): Use new.
9327
9328 2020-01-26 Tom Tromey <tom@tromey.com>
9329
9330 * xcoffread.c (xcoff_end_psymtab): Use new.
9331 * psymtab.c (start_psymtab_common): Use new.
9332 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9333 Update.
9334 * psympriv.h (struct partial_symtab): Add parameters to
9335 constructor. Don't inline.
9336 (allocate_psymtab): Don't declare.
9337 * mdebugread.c (new_psymtab): Use new.
9338 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9339 * dbxread.c (dbx_end_psymtab): Use new.
9340
9341 2020-01-26 Tom Tromey <tom@tromey.com>
9342
9343 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9344 allocate_psymtab. Update documentation.
9345 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9346 allocate_psymtab. Do not use new.
9347 (allocate_psymtab): Use new. Update.
9348
9349 2020-01-26 Tom Tromey <tom@tromey.com>
9350
9351 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9352 * psymtab.c (psym_print_stats): Update.
9353 * psympriv.h (struct partial_symtab) <readin,
9354 psymtabs_addrmap_supported, anonymous>: Now bool.
9355 * mdebugread.c (psymtab_to_symtab_1): Update.
9356 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9357 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9358 (process_full_comp_unit, process_full_type_unit): Update.
9359 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9360 * ctfread.c (psymtab_to_symtab): Update.
9361
9362 2020-01-26 Tom Tromey <tom@tromey.com>
9363
9364 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9365 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9366 * psymtab.c (psymtab_storage): Delete psymtabs.
9367 (psymtab_storage::allocate_psymtab): Use new.
9368 (psymtab_storage::discard_psymtab): Use delete.
9369 * psympriv.h (struct partial_symtab): Add constructor and
9370 initializers.
9371
9372 2020-01-26 Tom Tromey <tom@tromey.com>
9373
9374 * machoread.c: Do not include psympriv.h.
9375
9376 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9377
9378 * NEWS: Mention the new option and the set/show commands.
9379
9380 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9381
9382 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9383 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9384 (validate_exec_file): New variables, enums, functions.
9385 (exec_file_locate_attach, print_section_info): Style the filenames.
9386 (_initialize_exec): Install show_exec_file_mismatch_command and
9387 set_exec_file_mismatch_command.
9388 * gdbcore.h (validate_exec_file): Declare.
9389 * infcmd.c (attach_command): Call validate_exec_file.
9390 * remote.c ( remote_target::remote_add_inferior): Likewise.
9391
9392 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 * frame.c (find_frame_sal): Move call to get_next_frame into more
9395 inner scope.
9396 * inline-frame.c (inilne_state) <inline_state>: Update argument
9397 types.
9398 (inilne_state) <skipped_symbol>: Rename to...
9399 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9400 (skip_inline_frames): Build vector of skipped symbols and use this
9401 to reate the inline_state.
9402 (inline_skipped_symbol): Add a comment and some assertions, fetch
9403 skipped symbol from the list.
9404
9405 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9406
9407 * buildsym.c (lte_is_less_than): Delete.
9408 (buildsym_compunit::end_symtab_with_blockvector): Create local
9409 lambda function to sort line table entries, and use
9410 std::stable_sort instead of std::sort.
9411 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9412 markers when looking for a previous line.
9413
9414 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * dwarf2read.c (lnp_state_machine::record_line): Include
9417 end_sequence parameter in debug print out. Record the line if we
9418 are at an end_sequence marker even if it's not the start of a
9419 statement.
9420 * symmisc.c (maintenance_print_one_line_table): Print end of
9421 sequence markers with 'END' not '0'.
9422
9423 2020-01-24 Pedro Alves <palves@redhat.com>
9424
9425 PR gdb/25410
9426 * thread.c (scoped_restore_current_thread::restore): Use
9427 switch_to_inferior_no_thread.
9428 * exec.c: Include "progspace-and-thread.h".
9429 (add_target_sections, remove_target_sections):
9430 scoped_restore_current_pspace_and_thread instead of
9431 scoped_restore_current_thread.
9432 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9433 and aspace to the inferior before calling clone_program_space.
9434 Remove stale comment.
9435
9436 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9437
9438 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9439 (arm_netbsd_nat_target::fetch_registers): ...this.
9440 (arm_nbsd_nat_target::store_registers): Rename to...
9441 (arm_netbsd_nat_target::store_registers): ...this.
9442
9443 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9444
9445 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9446 register_t.
9447
9448 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9449
9450 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9451 Update comment.
9452 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9453 Likewise.
9454 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9455 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9456 the correct replacement (iterate_over_regset_sections).
9457 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9458 Update comment.
9459
9460 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9461
9462 PR gdb/23718
9463 * gdb/python/python.c (execute_gdb_command): Call
9464 async_enable_stdin in catch block.
9465
9466 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9467
9468 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9469 SWITCH_THRU_ALL_UIS.
9470
9471 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9472
9473 PR tui/9765
9474 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9475 comment, add extra parameter, and update to store previous symbol
9476 when appropriate.
9477 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9478 add extra parameter.
9479 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9480 remove unneeded parameter, add try/catch around gdb_print_insn,
9481 rewrite to add items to asm_lines vector.
9482 (tui_find_backward_disassembly_start_address): New function.
9483 (tui_find_disassembly_address): Updated throughout.
9484 (tui_disasm_window::set_contents): Update for changes to
9485 tui_disassemble.
9486 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9487 number of lines to scroll.
9488
9489 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9490
9491 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9492 (SECT_OFF_DATA): Likewise.
9493 (SECT_OFF_RODATA): Likewise.
9494 (SECT_OFF_TEXT): Likewise.
9495 (SECT_OFF_BSS): Likewise.
9496 (struct objfile) <text_section_offset, data_section_offset>: New
9497 methods.
9498 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9499 objfile::text_section_offset.
9500 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9501 * coffread.c (coff_symtab_read): Likewise.
9502 (enter_linenos): Likewise.
9503 (process_coff_symbol): Likewise.
9504 * ctfread.c (get_objfile_text_range): Likewise.
9505 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9506 Use objfile::data_section_offset.
9507 * dwarf2-frame.c (execute_cfa_program): Use
9508 objfile::text_section_offset.
9509 (dwarf2_frame_find_fde): Likewise.
9510 * dwarf2read.c (create_addrmap_from_index): Likewise.
9511 (create_addrmap_from_aranges): Likewise.
9512 (dw2_find_pc_sect_compunit_symtab): Likewise.
9513 (process_psymtab_comp_unit_reader): Likewise.
9514 (add_partial_symbol): Likewise.
9515 (add_partial_subprogram): Likewise.
9516 (process_full_comp_unit): Likewise.
9517 (read_file_scope): Likewise.
9518 (read_func_scope): Likewise.
9519 (read_lexical_block_scope): Likewise.
9520 (read_call_site_scope): Likewise.
9521 (dwarf2_rnglists_process): Likewise.
9522 (dwarf2_ranges_process): Likewise.
9523 (dwarf2_ranges_read): Likewise.
9524 (dwarf_decode_lines_1): Likewise.
9525 (new_symbol): Likewise.
9526 (dwarf2_fetch_die_loc_sect_off): Likewise.
9527 (dwarf2_per_cu_text_offset): Likewise.
9528 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9529 * hppa-tdep.c (read_unwind_info): Likewise.
9530 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9531 * psympriv.h (struct partial_symtab): Likewise.
9532 * psymtab.c (find_pc_sect_psymtab): Likewise.
9533 * solib-svr4.c (enable_break): Likewise.
9534 * stap-probe.c (relocate_address): Use
9535 objfile::data_section_offset.
9536 * xcoffread.c (enter_line_range): Use
9537 objfile::text_section_offset.
9538 (read_xcoff_symtab): Likewise.
9539
9540 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9543 declaration to narrower scopes.
9544
9545 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * darwin-nat.h (struct darwin_exception_msg, enum
9548 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9549 Move up.
9550 (class darwin_nat_target) <wait_1, check_new_threads,
9551 decode_exception_message, decode_message, stop_inferior,
9552 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9553 * darwin-nat.c (darwin_check_new_threads): Rename to...
9554 (darwin_nat_target::check_new_threads): ... this.
9555 (darwin_suspend_inferior_it): Remove.
9556 (darwin_decode_exception_message): Rename to...
9557 (darwin_nat_target::decode_exception_message): ... this.
9558 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9559 (darwin_decode_message): Rename to...
9560 (darwin_nat_target::decode_message): ... this.
9561 (cancel_breakpoint): Rename to...
9562 (darwin_nat_target::cancel_breakpoint): ... this.
9563 (darwin_wait): Rename to...
9564 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9565 instead of iterate_over_inferiors.
9566 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9567 (darwin_stop_inferior): Rename to...
9568 (darwin_nat_target::stop_inferior): ... this.
9569 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9570 (darwin_init_thread_list): Rename to...
9571 (darwin_nat_target::init_thread_list): ... this.
9572 (darwin_ptrace_him): Rename to...
9573 (darwin_nat_target::ptrace_him): ... this.
9574 (darwin_nat_target::create_inferior): Pass lambda function to
9575 fork_inferior.
9576 (darwin_nat_target::detach): Call stop_inferior instead of
9577 darwin_stop_inferior.
9578 * fork-inferior.h (fork_inferior): Change init_trace_fun
9579 parameter to gdb::function_view.
9580 * fork-inferior.c (fork_inferior): Likewise.
9581
9582 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9583
9584 * i386-cygwin-tdep.c (core_process_module_section): Update.
9585 * windows-nat.c (struct lm_info_windows): Add text_offset.
9586 (windows_xfer_shared_libraries): Update.
9587 * windows-tdep.c (windows_xfer_shared_library):
9588 Add text_offset_cached argument.
9589 * windows-tdep.h (windows_xfer_shared_library): Update.
9590
9591 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9594
9595 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9598 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9599 replace with range-based for.
9600 (gdbsim_interrupt_inferior): Remove.
9601 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9602 with a range-based for. Inline code from
9603 gdbsim_interrupt_inferior.
9604
9605 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9606
9607 * infrun.c (proceed): Fix indentation.
9608
9609 2020-01-21 Tom Tromey <tromey@adacore.com>
9610
9611 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9612 * python/python.c (python_extension_ops): Update.
9613 (gdbpy_colorize): New function.
9614 * python/lib/gdb/__init__.py (colorize): New function.
9615 * extension.h (ext_lang_colorize): Declare.
9616 * extension.c (ext_lang_colorize): New function.
9617 * extension-priv.h (struct extension_language_ops) <colorize>: New
9618 member.
9619 * cli/cli-style.c (_initialize_cli_style): Update help text.
9620
9621 2020-01-21 Luis Machado <luis.machado@linaro.org>
9622
9623 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9624 <cond>: Change type to bool.
9625 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9626 (aarch64_displaced_step_cb): Likewise.
9627 (aarch64_displaced_step_tb): Likewise.
9628
9629 2020-01-21 Luis Machado <luis.machado@linaro.org>
9630
9631 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9632 output.
9633
9634 2020-01-21 Luis Machado <luis.machado@linaro.org>
9635
9636 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9637 <pc_adjust>: Adjust the documentation.
9638 (aarch64_displaced_step_fixup): Check if PC really moved before
9639 adjusting it.
9640
9641 2020-01-19 Tom Tromey <tom@tromey.com>
9642
9643 * disasm.c (~gdb_disassembler): New destructor.
9644 (gdb_buffered_insn_length): Call disassemble_free_target.
9645 * disasm.h (class gdb_disassembler): Declare destructor. Use
9646 DISABLE_COPY_AND_ASSIGN.
9647
9648 2020-01-19 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9651 (die_reader_func_ftype): Remove.
9652 (cutu_reader): New class.
9653 (dw2_get_file_names_reader): Remove "data" parameter.
9654 (dw2_get_file_names): Use cutu_reader.
9655 (create_debug_type_hash_table): Update.
9656 (read_cutu_die_from_dwo): Update comment.
9657 (lookup_dwo_unit): Add dwo_name parameter.
9658 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9659 die_reader_func_ftype and data parameters.
9660 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9661 Remove die_reader_func_ftype and data parameters.
9662 (~cutu_reader): New; from init_cutu_and_read_dies.
9663 (cutu_reader::cutu_reader): Rename from
9664 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9665 and data parameters.
9666 (init_cutu_and_read_dies_simple): Remove.
9667 (struct process_psymtab_comp_unit_data): Remove.
9668 (process_psymtab_comp_unit_reader): Remove data parameter; add
9669 want_partial_unit and pretend_language parameters.
9670 (process_psymtab_comp_unit): Use cutu_reader.
9671 (build_type_psymtabs_reader): Remove data parameter.
9672 (build_type_psymtabs_1): Use cutu_reader.
9673 (process_skeletonless_type_unit): Likewise.
9674 (load_partial_comp_unit_reader): Remove.
9675 (load_partial_comp_unit): Use cutu_reader.
9676 (load_full_comp_unit_reader): Remove.
9677 (load_full_comp_unit): Use cutu_reader.
9678 (struct create_dwo_cu_data): Remove.
9679 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9680 dwo_unit parameters.
9681 (create_cus_hash_table): Use cutu_reader.
9682 (struct dwarf2_read_addr_index_data): Remove.
9683 (dwarf2_read_addr_index_reader): Remove.
9684 (dwarf2_read_addr_index): Use cutu_reader.
9685 (read_signatured_type_reader): Remove.
9686 (read_signatured_type): Use cutu_reader.
9687
9688 2020-01-19 Tom Tromey <tom@tromey.com>
9689
9690 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9691 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9692 (tui_wrefresh): Declare.
9693 * tui/tui-wingeneral.c (suppress_output): New global.
9694 (tui_suppress_output, ~tui_suppress_output): New constructor and
9695 destructor.
9696 (tui_wrefresh): New function.
9697 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9698 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9699 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9700 method.
9701 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9702 tui_wrefresh.
9703 (tui_data_window::no_refresh): New method.
9704 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9705 (tui_reg_command): Use tui_suppress_output
9706 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9707 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9708 method.
9709 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9710
9711 2020-01-19 Tom Tromey <tom@tromey.com>
9712
9713 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9714 Handle case where symtab is null.
9715
9716 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9717
9718 * linux-fork.c (one_fork_p): Simplify.
9719
9720 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * top.c (struct qt_args): Remove.
9723 (kill_or_detach): Change return type to void, replace `void *`
9724 parameter with a proper one.
9725 (print_inferior_quit_action): Likewise.
9726 (quit_confirm): Use range-based for loop to iterate over inferiors.
9727 (quit_force): Likewise.
9728
9729 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9732 `void *` parameter with proper parameters.
9733 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9734 (print_one_inferior): Change return type to void, replace `void *`
9735 parameter with proper parameters.
9736 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9737 inferiors.
9738 (get_other_inferior): Remove.
9739 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9740 inferiors.
9741
9742 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * mi/mi-interp.c (report_initial_inferior): Remove.
9745 (mi_interp::init): Use range-based for to iterate over inferiors.
9746
9747 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * python/py-inferior.c (build_inferior_list): Remove.
9750 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9751
9752 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9753
9754 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9755 (btrace_stitch_trace): Likewise.
9756 * charset.c (intermediate_encoding): Likewise (vaild).
9757 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9758 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9759 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9760
9761 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9762
9763 * windows-tdep.c (windows_get_tlb_type):
9764 Add rtl_user_process_parameters type.
9765
9766 2020-01-16 Pedro Alves <palves@redhat.com>
9767 Norbert Lange <nolange79@gmail.com>
9768
9769 PR build/24805
9770 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9771 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9772 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9773 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9774 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9775 (ps_plog): Redeclare exported functions with default visibility.
9776
9777 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9778
9779 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9780 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9781
9782 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * infcmd.c (post_create_inferior): Use get_thread_regcache
9785 instead of get_current_regcache.
9786
9787 2020-01-14 Tom Tromey <tom@tromey.com>
9788
9789 PR symtab/12535:
9790 * python/python.c (gdbpy_decode_line): Treat empty string the same
9791 as no argument.
9792
9793 2020-01-14 Tom Tromey <tom@tromey.com>
9794
9795 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9796
9797 2020-01-14 Tom Tromey <tom@tromey.com>
9798
9799 * nat/linux-btrace.c: Don't include <config.h>.
9800 * nat/linux-ptrace.c: Don't include <config.h>.
9801 * nat/x86-linux-dregs.c: Don't include <config.h>.
9802
9803 2020-01-14 Tom Tromey <tom@tromey.com>
9804
9805 * configure: Rebuild.
9806 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9807
9808 2020-01-14 Tom Tromey <tom@tromey.com>
9809
9810 * nat/x86-linux-dregs.c: Include configh.h.
9811 * nat/linux-ptrace.c: Include configh.h.
9812 * nat/linux-btrace.c: Include configh.h.
9813 * defs.h: Include config.h, bfd.h.
9814 * configure.ac: Don't source common.host.
9815 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9816 * configure: Rebuild.
9817 * acinclude.m4: Update path.
9818 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9819 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9820 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9821 (CLIBS): Add LIBSUPPORT.
9822 (CDEPS): Likewise.
9823 (COMMON_SFILES): Remove gdbsupport files.
9824 (HFILES_NO_SRCDIR): Likewise.
9825 (stamp-version): Update path to create-version.sh.
9826 (ALLDEPFILES): Remove gdbsupport files.
9827
9828 2020-01-14 Tom Tromey <tom@tromey.com>
9829
9830 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9831 USE_WIN32API when needed.
9832 * configure.ac (USE_WIN32API): Don't define.
9833 (WIN32LIBS): Use WIN32APILIBS.
9834 * configure: Rebuild.
9835
9836 2020-01-14 Tom Tromey <tom@tromey.com>
9837
9838 * configure: Rebuild.
9839 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9840
9841 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9842
9843 * skip.c (skip_function_command): Make skip w/o arguments use the
9844 name of the inlined function if pc is inside any inlined function.
9845
9846 2020-01-14 Luis Machado <luis.machado@linaro.org>
9847
9848 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9849 * infrun.c (resume_1): Likewise.
9850 (handle_inferior_event): Remove stale comment.
9851 * linux-nat.c (linux_nat_target::resume): Update comments.
9852 (save_stop_reason): Likewise.
9853 (linux_nat_filter_event): Likewise.
9854 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9855
9856 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * elfread.c (record_minimal_symbol): Set section index to 0 for
9859 non-allocatable sections.
9860
9861
9862 2020-01-13 Ali Tamur <tamur@google.com>
9863
9864 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9865 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9866 to gdb::optional. Update comments.
9867 (dwo_file): Update comments.
9868 (read_attribute): Update API to take an additional out parameter,
9869 need_reprocess. This is used to mark attributes that need other
9870 attributes (e.g. str_offsets_base) for correct computation which may not
9871 have been read yet.
9872 (read_attribute_reprocess): New function declaration.
9873 (read_addr_index): Likewise.
9874 (read_dwo_str_index): Likewise.
9875 (read_stub_str_index): Likewise.
9876 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9877 (lookup_addr_base): New function definition.
9878 (lookup_ranges_base): Likewise.
9879 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9880 lookup_ranges_base.
9881 (init_cutu_and_read_dies): Update comments.
9882 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9883 unit. This is used to inherit parent's str_offsets_base and addr_base.
9884 Update comments.
9885 (init_cutu_and_read_dies_simple): Reflect API changes.
9886 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9887 (create_cus_hash_table): Change API to take parent compile unit.
9888 Reflect API changes.
9889 (open_and_init_dwo_file): Reflect API changes.
9890 (dwarf2_get_pc_bounds): Update comments.
9891 (dwarf2_record_block_ranges): Likewise.
9892 (read_full_die_1): Change implementation to reprocess attributes that
9893 need str_offsets_base and addr_base.
9894 (partial_die_info::read): Likewise.
9895 (read_attribute_reprocess): New function definition.
9896 (read_attribute_value): Change API to take an additional out parameter,
9897 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9898 when a non-dwo compile unit has index based attributes.
9899 (read_attribute): Reflect API changes.
9900 (read_addr_index_1): Reflect API changes. Update comments.
9901 (dwarf2_read_addr_index_data): Reflect API changes.
9902 (dwarf2_read_addr_index): Likewise.
9903 (read_str_index): Change API and implementation. This becomes a helper
9904 to be used by the new string index related methods. Update error
9905 message and comments.
9906 (read_dwo_str_index): New function definition.
9907 (read_stub_str_index): Likewise.
9908 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9909 * symfile.h (dwarf2_debug_sections): Likewise.
9910 * xcoffread.c (dwarf2_debug_sections): Likewise.
9911
9912 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9913
9914 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9915 core_reg_sect type to gdb_byte *.
9916 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9917 * cris-tdep.c (fetch_core_registers): Likewise.
9918 * corelow.c (core_target::get_core_register_section): Change
9919 type of `contents` to gdb::byte_vector.
9920
9921 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * tui/tui-wingeneral.c (box_win): Position the title in the center
9924 of the border.
9925
9926 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * corelow.c (core_target::get_core_register_section): Use
9929 std::vector instead of alloca.
9930
9931 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * warning.m4: Add -Wmissing-declarations to build_warnings.
9934 * configure: Re-generate.
9935
9936 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9937
9938 * python/python.c (init__gdb_module): Add declaration.
9939
9940 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9943 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9944 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9945 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9946 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9947 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9948 * ada-exp.y (_initialize_ada_exp): Add declaration.
9949 * ada-lang.c (_initialize_ada_language): Add declaration.
9950 * ada-tasks.c (_initialize_tasks): Add declaration.
9951 * agent.c (_initialize_agent): Add declaration.
9952 * aix-thread.c (_initialize_aix_thread): Add declaration.
9953 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9954 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9955 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9956 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9957 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9958 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9959 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9960 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9961 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9962 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9963 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9964 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9965 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9966 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9967 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9968 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9969 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9970 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9971 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9972 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9973 * annotate.c (_initialize_annotate): Add declaration.
9974 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9975 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9976 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9977 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9978 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9979 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9980 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9981 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9982 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9983 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9984 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9985 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9986 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9987 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9988 * auto-load.c (_initialize_auto_load): Add declaration.
9989 * auxv.c (_initialize_auxv): Add declaration.
9990 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9991 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9992 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9993 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9994 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9995 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9996 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9997 * breakpoint.c (_initialize_breakpoint): Add declaration.
9998 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9999 * btrace.c (_initialize_btrace): Add declaration.
10000 * charset.c (_initialize_charset): Add declaration.
10001 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10002 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10003 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10004 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10005 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10006 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10007 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10008 * coffread.c (_initialize_coffread): Add declaration.
10009 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10010 * compile/compile.c (_initialize_compile): Add declaration.
10011 * complaints.c (_initialize_complaints): Add declaration.
10012 * completer.c (_initialize_completer): Add declaration.
10013 * copying.c (_initialize_copying): Add declaration.
10014 * corefile.c (_initialize_core): Add declaration.
10015 * corelow.c (_initialize_corelow): Add declaration.
10016 * cp-abi.c (_initialize_cp_abi): Add declaration.
10017 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10018 * cp-support.c (_initialize_cp_support): Add declaration.
10019 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10020 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10021 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10022 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10023 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10024 * ctfread.c (_initialize_ctfread): Add declaration.
10025 * d-lang.c (_initialize_d_language): Add declaration.
10026 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10027 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10028 * dbxread.c (_initialize_dbxread): Add declaration.
10029 * dcache.c (_initialize_dcache): Add declaration.
10030 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10031 * disasm.c (_initialize_disasm): Add declaration.
10032 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10033 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10034 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10035 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10036 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10037 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10038 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10039 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10040 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10041 * elfread.c (_initialize_elfread): Add declaration.
10042 * exec.c (_initialize_exec): Add declaration.
10043 * extension.c (_initialize_extension): Add declaration.
10044 * f-lang.c (_initialize_f_language): Add declaration.
10045 * f-valprint.c (_initialize_f_valprint): Add declaration.
10046 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10047 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10048 * filesystem.c (_initialize_filesystem): Add declaration.
10049 * findcmd.c (_initialize_mem_search): Add declaration.
10050 * findvar.c (_initialize_findvar): Add declaration.
10051 * fork-child.c (_initialize_fork_child): Add declaration.
10052 * frame-base.c (_initialize_frame_base): Add declaration.
10053 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10054 * frame.c (_initialize_frame): Add declaration.
10055 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10056 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10057 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10058 * gcore.c (_initialize_gcore): Add declaration.
10059 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10060 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10061 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10062 * gdbarch.c (_initialize_gdbarch): Add declaration.
10063 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10064 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10065 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10066 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10067 * go-lang.c (_initialize_go_language): Add declaration.
10068 * go32-nat.c (_initialize_go32_nat): Add declaration.
10069 * guile/guile.c (_initialize_guile): Add declaration.
10070 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10071 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10072 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10073 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10074 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10075 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10076 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10077 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10078 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10079 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10080 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10081 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10082 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10083 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10084 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10085 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10086 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10087 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10088 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10089 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10090 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10091 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10092 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10093 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10094 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10095 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10096 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10097 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10098 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10099 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10100 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10101 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10102 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10103 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10104 * infcall.c (_initialize_infcall): Add declaration.
10105 * infcmd.c (_initialize_infcmd): Add declaration.
10106 * inflow.c (_initialize_inflow): Add declaration.
10107 * infrun.c (_initialize_infrun): Add declaration.
10108 * interps.c (_initialize_interpreter): Add declaration.
10109 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10110 * jit.c (_initialize_jit): Add declaration.
10111 * language.c (_initialize_language): Add declaration.
10112 * linux-fork.c (_initialize_linux_fork): Add declaration.
10113 * linux-nat.c (_initialize_linux_nat): Add declaration.
10114 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10115 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10116 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10117 * m2-lang.c (_initialize_m2_language): Add declaration.
10118 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10119 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10120 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10121 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10122 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10123 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10124 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10125 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10126 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10127 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10128 * machoread.c (_initialize_machoread): Add declaration.
10129 * macrocmd.c (_initialize_macrocmd): Add declaration.
10130 * macroscope.c (_initialize_macroscope): Add declaration.
10131 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10132 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10133 * maint.c (_initialize_maint_cmds): Add declaration.
10134 * mdebugread.c (_initialize_mdebugread): Add declaration.
10135 * memattr.c (_initialize_mem): Add declaration.
10136 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10137 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10138 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10139 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10140 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10141 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10142 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10143 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10144 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10145 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10146 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10147 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10148 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10149 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10150 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10151 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10152 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10153 * mipsread.c (_initialize_mipsread): Add declaration.
10154 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10155 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10156 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10157 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10158 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10159 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10160 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10161 * nto-procfs.c (_initialize_procfs): Add declaration.
10162 * objc-lang.c (_initialize_objc_language): Add declaration.
10163 * observable.c (_initialize_observer): Add declaration.
10164 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10165 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10166 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10167 * osabi.c (_initialize_gdb_osabi): Add declaration.
10168 * osdata.c (_initialize_osdata): Add declaration.
10169 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10170 * parse.c (_initialize_parse): Add declaration.
10171 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10172 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10173 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10174 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10175 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10176 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10177 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10178 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10179 * printcmd.c (_initialize_printcmd): Add declaration.
10180 * probe.c (_initialize_probe): Add declaration.
10181 * proc-api.c (_initialize_proc_api): Add declaration.
10182 * proc-events.c (_initialize_proc_events): Add declaration.
10183 * proc-service.c (_initialize_proc_service): Add declaration.
10184 * procfs.c (_initialize_procfs): Add declaration.
10185 * producer.c (_initialize_producer): Add declaration.
10186 * psymtab.c (_initialize_psymtab): Add declaration.
10187 * python/python.c (_initialize_python): Add declaration.
10188 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10189 * record-btrace.c (_initialize_record_btrace): Add declaration.
10190 * record-full.c (_initialize_record_full): Add declaration.
10191 * record.c (_initialize_record): Add declaration.
10192 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10193 * regcache.c (_initialize_regcache): Add declaration.
10194 * reggroups.c (_initialize_reggroup): Add declaration.
10195 * remote-notif.c (_initialize_notif): Add declaration.
10196 * remote-sim.c (_initialize_remote_sim): Add declaration.
10197 * remote.c (_initialize_remote): Add declaration.
10198 * reverse.c (_initialize_reverse): Add declaration.
10199 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10200 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10201 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10202 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10203 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10204 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10205 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10206 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10207 Add declaration.
10208 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10209 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10210 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10211 * rust-exp.y (_initialize_rust_exp): Add declaration.
10212 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10213 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10214 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10215 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10216 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10217 * score-tdep.c (_initialize_score_tdep): Add declaration.
10218 * ser-go32.c (_initialize_ser_dos): Add declaration.
10219 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10220 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10221 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10222 * ser-uds.c (_initialize_ser_socket): Add declaration.
10223 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10224 * serial.c (_initialize_serial): Add declaration.
10225 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10226 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10227 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10228 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10229 * skip.c (_initialize_step_skip): Add declaration.
10230 * sol-thread.c (_initialize_sol_thread): Add declaration.
10231 * solib-aix.c (_initialize_solib_aix): Add declaration.
10232 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10233 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10234 * solib-frv.c (_initialize_frv_solib): Add declaration.
10235 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10236 * solib-target.c (_initialize_solib_target): Add declaration.
10237 * solib.c (_initialize_solib): Add declaration.
10238 * source-cache.c (_initialize_source_cache): Add declaration.
10239 * source.c (_initialize_source): Add declaration.
10240 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10241 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10242 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10243 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10244 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10245 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10246 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10247 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10248 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10249 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10250 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10251 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10252 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10253 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10254 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10255 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10256 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10257 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10258 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10259 * stabsread.c (_initialize_stabsread): Add declaration.
10260 * stack.c (_initialize_stack): Add declaration.
10261 * stap-probe.c (_initialize_stap_probe): Add declaration.
10262 * std-regs.c (_initialize_frame_reg): Add declaration.
10263 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10264 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10265 * symfile.c (_initialize_symfile): Add declaration.
10266 * symmisc.c (_initialize_symmisc): Add declaration.
10267 * symtab.c (_initialize_symtab): Add declaration.
10268 * target.c (_initialize_target): Add declaration.
10269 * target-connection.c (_initialize_target_connection): Add
10270 declaration.
10271 * target-dcache.c (_initialize_target_dcache): Add declaration.
10272 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10273 * thread.c (_initialize_thread): Add declaration.
10274 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10275 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10276 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10277 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10278 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10279 * tracectf.c (_initialize_ctf): Add declaration.
10280 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10281 * tracefile.c (_initialize_tracefile): Add declaration.
10282 * tracepoint.c (_initialize_tracepoint): Add declaration.
10283 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10284 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10285 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10286 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10287 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10288 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10289 * tui/tui.c (_initialize_tui): Add declaration.
10290 * typeprint.c (_initialize_typeprint): Add declaration.
10291 * ui-style.c (_initialize_ui_style): Add declaration.
10292 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10293 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10294 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10295 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10296 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10297 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10298 * unittests/filtered_iterator-selftests.c
10299 (_initialize_filtered_iterator_selftests): Add declaration.
10300 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10301 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10302 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10303 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10304 * unittests/main-thread-selftests.c
10305 (_initialize_main_thread_selftests): Add declaration.
10306 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10307 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10308 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10309 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10310 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10311 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10312 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10313 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10314 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10315 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10316 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10317 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10318 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10319 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10320 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10321 declaration.
10322 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10323 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10324 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10325 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10326 * user-regs.c (_initialize_user_regs): Add declaration.
10327 * utils.c (_initialize_utils): Add declaration.
10328 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10329 * valops.c (_initialize_valops): Add declaration.
10330 * valprint.c (_initialize_valprint): Add declaration.
10331 * value.c (_initialize_values): Add declaration.
10332 * varobj.c (_initialize_varobj): Add declaration.
10333 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10334 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10335 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10336 * windows-nat.c (_initialize_windows_nat): Add declaration.
10337 (_initialize_check_for_gdb_ini): Add declaration.
10338 (_initialize_loadable): Add declaration.
10339 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10340 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10341 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10342 * xcoffread.c (_initialize_xcoffread): Add declaration.
10343 * xml-support.c (_initialize_xml_support): Add declaration.
10344 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10345 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10346 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10347 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10348
10349 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10350
10351 * regformats/regdat.sh: Generate declaration for init function.
10352
10353 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10354
10355 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10356 up.
10357 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10358 close_one_inferior>: New methods.
10359 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10360 pass down target to find_inferior_pid.
10361 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10362 Pass down target to find_inferior_ptid.
10363 (gdbsim_target::create_inferior): Pass down target to
10364 add_thread_silent.
10365 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10366 target down to find_inferior_ptid and switch_to_thread.
10367 (gdbsim_target::close): Update to call close_one_inferior.
10368 (struct resume_data): Remove.
10369 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10370 directly, rather than through a void pointer.
10371 (gdbsim_target::resume): Update to call resume_one_inferior.
10372
10373 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10374
10375 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10376
10377 2020-01-12 Pedro Alves <palves@redhat.com>
10378
10379 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10380 directly for the current inferior instead of
10381 discard_all_inferiors.
10382 (discard_all_inferiors): Delete.
10383
10384 2020-01-11 Tom Tromey <tom@tromey.com>
10385
10386 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10387 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10388 deprecated_safe_get_selected_frame.
10389
10390 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10391
10392 * inferior.c (print_inferior): Switch inferior before printing it.
10393
10394 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10395 Pedro Alves <palves@redhat.com>
10396
10397 * progspace-and-thread.c (switch_to_program_space_and_thread):
10398 Assert there's an inferior for PSPACE. Use
10399 switch_to_inferior_no_thread to switch the inferior too.
10400 * progspace.c (program_space::~program_space): Call
10401 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10402 (program_space::free_all_objfiles): Don't call clear_symtab_users
10403 here.
10404 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10405
10406 2020-01-10 Pedro Alves <palves@redhat.com>
10407
10408 * NEWS: Mention multi-target debugging, "info connections", and
10409 "add-inferior -no-connection".
10410
10411 2020-01-10 Pedro Alves <palves@redhat.com>
10412
10413 * infrun.c: Include "target-connection.h".
10414 (check_multi_target_resumption): New.
10415 (proceed): Call it.
10416 * target-connection.c (make_target_connection_string): Make
10417 extern.
10418 * target-connection.h (make_target_connection_string): Declare.
10419
10420 2020-01-10 Pedro Alves <palves@redhat.com>
10421
10422 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10423 * inferior.c (uiout_field_connection): New function.
10424 (print_inferior): Add new "connection-id" column.
10425 (add_inferior_command): Show connection number/string of added
10426 inferior.
10427 * process-stratum-target.h
10428 (process_stratum_target::connection_string): New virtual method.
10429 (process_stratum_target::connection_number): New field.
10430 * remote.c (remote_target::connection_string): New override.
10431 * target-connection.c: New file.
10432 * target-connection.h: New file.
10433 * target.c (decref_target): Remove process_stratum targets from
10434 the connection list.
10435 (target_stack::push): Add process_stratum targets to the
10436 connection list.
10437
10438 2020-01-10 Pedro Alves <palves@redhat.com>
10439
10440 Revert:
10441 2016-04-12 Pedro Alves <palves@redhat.com>
10442 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10443 Remove references to name.
10444 * serial.h (struct serial) <name>: Delete.
10445
10446 2020-01-10 Pedro Alves <palves@redhat.com>
10447
10448 * gdbarch-selftests.c (register_to_value_test): Remove "target
10449 already pushed" check.
10450
10451 2020-01-10 Pedro Alves <palves@redhat.com>
10452 John Baldwin <jhb@FreeBSD.org>
10453
10454 * aarch64-linux-nat.c
10455 (aarch64_linux_nat_target::thread_architecture): Adjust.
10456 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10457 (task_command_1): Likewise.
10458 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10459 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10460 (aix_thread_target::store_registers)
10461 (aix_thread_target::thread_alive): Adjust.
10462 * amd64-fbsd-tdep.c: Include "inferior.h".
10463 (amd64fbsd_get_thread_local_address): Pass down target.
10464 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10465 thread's gdbarch instead of target_gdbarch.
10466 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10467 get_last_target_status.
10468 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10469 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10470 inferiors.
10471 (update_inserted_breakpoint_locations): Skip if inferiors with no
10472 execution.
10473 (update_global_location_list): When handling moribund locations,
10474 find representative inferior for location's pspace, and use thread
10475 count of its process_stratum target.
10476 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10477 * bsd-uthread.c (bsd_uthread_target::wait): Use
10478 as_process_stratum_target and adjust thread_change_ptid and
10479 add_thread calls.
10480 (bsd_uthread_target::update_thread_list): Use
10481 as_process_stratum_target and adjust find_thread_ptid,
10482 thread_change_ptid and add_thread calls.
10483 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10484 find_thread_ptid call.
10485 * corelow.c (add_to_thread_list): Adjust add_thread call.
10486 (core_target_open): Adjust add_thread_silent and thread_count
10487 calls.
10488 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10489 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10490 * event-top.c (async_disconnect): Pop targets from all inferiors.
10491 * exec.c (add_target_sections): Push exec target on all inferiors
10492 sharing the program space.
10493 (remove_target_sections): Remove the exec target from all
10494 inferiors sharing the program space.
10495 (exec_on_vfork): New.
10496 * exec.h (exec_on_vfork): Declare.
10497 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10498 Pass it down.
10499 (fbsd_nat_target::update_thread_list): Adjust.
10500 (fbsd_nat_target::resume): Adjust.
10501 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10502 down.
10503 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10504 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10505 get_thread_arch_regcache call.
10506 * fork-child.c (gdb_startup_inferior): Pass target down to
10507 startup_inferior and set_executing.
10508 * gdbthread.h (struct process_stratum_target): Forward declare.
10509 (add_thread, add_thread_silent, add_thread_with_info)
10510 (in_thread_list): Add process_stratum_target parameter.
10511 (find_thread_ptid(inferior*, ptid_t)): New overload.
10512 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10513 parameter.
10514 (all_threads()): Delete overload.
10515 (all_threads, all_non_exited_threads): Add process_stratum_target
10516 parameter.
10517 (all_threads_safe): Use brace initialization.
10518 (thread_count): Add process_stratum_target parameter.
10519 (set_resumed, set_running, set_stop_requested, set_executing)
10520 (threads_are_executing, finish_thread_state): Add
10521 process_stratum_target parameter.
10522 (switch_to_thread): Use is_current_thread.
10523 * i386-fbsd-tdep.c: Include "inferior.h".
10524 (i386fbsd_get_thread_local_address): Pass down target.
10525 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10526 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10527 have_inferiors check.
10528 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10529 (inf_ptrace_target::attach): Adjust.
10530 * infcall.c (run_inferior_call): Adjust.
10531 * infcmd.c (run_command_1): Pass target to
10532 scoped_finish_thread_state.
10533 (proceed_thread_callback): Skip inferiors with no execution.
10534 (continue_command): Rename 'all_threads' local to avoid hiding
10535 'all_threads' function. Adjust get_last_target_status call.
10536 (prepare_one_step): Adjust set_running call.
10537 (signal_command): Use user_visible_resume_target. Compare thread
10538 pointers instead of inferior_ptid.
10539 (info_program_command): Adjust to pass down target.
10540 (attach_command): Mark target's 'thread_executing' flag.
10541 (stop_current_target_threads_ns): New, factored out from ...
10542 (interrupt_target_1): ... this. Switch inferior before making
10543 target calls.
10544 * inferior-iter.h
10545 (struct all_inferiors_iterator, struct all_inferiors_range)
10546 (struct all_inferiors_safe_range)
10547 (struct all_non_exited_inferiors_range): Filter on
10548 process_stratum_target too. Remove explicit.
10549 * inferior.c (inferior::inferior): Push dummy target on target
10550 stack.
10551 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10552 Add process_stratum_target parameter, and pass it down.
10553 (have_live_inferiors): Adjust.
10554 (switch_to_inferior_and_push_target): New.
10555 (add_inferior_command, clone_inferior_command): Handle
10556 "-no-connection" parameter. Use
10557 switch_to_inferior_and_push_target.
10558 (_initialize_inferior): Mention "-no-connection" option in
10559 the help of "add-inferior" and "clone-inferior" commands.
10560 * inferior.h: Include "process-stratum-target.h".
10561 (interrupt_target_1): Use bool.
10562 (struct inferior) <push_target, unpush_target, target_is_pushed,
10563 find_target_beneath, top_target, process_target, target_at,
10564 m_stack>: New.
10565 (discard_all_inferiors): Delete.
10566 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10567 (all_inferiors, all_non_exited_inferiors): Add
10568 process_stratum_target parameter.
10569 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10570 (target_last_proc_target): New global.
10571 (follow_fork_inferior): Push target on new inferior. Pass target
10572 to add_thread_silent. Call exec_on_vfork. Handle target's
10573 reference count.
10574 (follow_fork): Adjust get_last_target_status call. Also consider
10575 target.
10576 (follow_exec): Push target on new inferior.
10577 (struct execution_control_state) <target>: New field.
10578 (user_visible_resume_target): New.
10579 (do_target_resume): Call target_async.
10580 (resume_1): Set target's threads_executing flag. Consider resume
10581 target.
10582 (commit_resume_all_targets): New.
10583 (proceed): Also consider resume target. Skip threads of inferiors
10584 with no execution. Commit resumtion in all targets.
10585 (start_remote): Pass current inferior to wait_for_inferior.
10586 (infrun_thread_stop_requested): Consider target as well. Pass
10587 thread_info pointer to clear_inline_frame_state instead of ptid.
10588 (infrun_thread_thread_exit): Consider target as well.
10589 (random_pending_event_thread): New inferior parameter. Use it.
10590 (do_target_wait): Rename to ...
10591 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10592 down.
10593 (threads_are_resumed_pending_p, do_target_wait): New.
10594 (prepare_for_detach): Adjust calls.
10595 (wait_for_inferior): New inferior parameter. Handle it. Use
10596 do_target_wait_1 instead of do_target_wait.
10597 (fetch_inferior_event): Adjust. Switch to representative
10598 inferior. Pass target down.
10599 (set_last_target_status): Add process_stratum_target parameter.
10600 Save target in global.
10601 (get_last_target_status): Add process_stratum_target parameter and
10602 handle it.
10603 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10604 (context_switch): Check inferior_ptid == null_ptid before calling
10605 inferior_thread().
10606 (get_inferior_stop_soon): Pass down target.
10607 (wait_one): Rename to ...
10608 (poll_one_curr_target): ... this.
10609 (struct wait_one_event): New.
10610 (wait_one): New.
10611 (stop_all_threads): Adjust.
10612 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10613 event's target.
10614 (switch_back_to_stepped_thread): Also consider target.
10615 (print_stop_event): Update.
10616 (normal_stop): Update. Also consider the resume target.
10617 * infrun.h (wait_for_inferior): Remove declaration.
10618 (user_visible_resume_target): New declaration.
10619 (get_last_target_status, set_last_target_status): New
10620 process_stratum_target parameter.
10621 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10622 process_stratum_target parameter, and use it.
10623 (clear_inline_frame_state (thread_info*)): New.
10624 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10625 process_stratum_target parameter.
10626 (clear_inline_frame_state (thread_info*)): Declare.
10627 * linux-fork.c (delete_checkpoint_command): Pass target down to
10628 find_thread_ptid.
10629 (checkpoint_command): Adjust.
10630 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10631 instead of just tweaking inferior_ptid.
10632 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10633 (exit_lwp): Pass target down to find_thread_ptid.
10634 (attach_proc_task_lwp_callback): Pass target down to
10635 add_thread/set_running/set_executing.
10636 (linux_nat_target::attach): Pass target down to
10637 thread_change_ptid.
10638 (get_detach_signal): Pass target down to find_thread_ptid.
10639 Consider last target status's target.
10640 (linux_resume_one_lwp_throw, resume_lwp)
10641 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10642 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10643 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10644 (linux_nat_target::async_wait_fd): New.
10645 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10646 target down.
10647 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10648 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10649 * linux-thread-db.c (struct thread_db_info::process_target): New
10650 field.
10651 (add_thread_db_info): Save target.
10652 (get_thread_db_info): New process_stratum_target parameter. Also
10653 match target.
10654 (delete_thread_db_info): New process_stratum_target parameter.
10655 Also match target.
10656 (thread_from_lwp): Adjust to pass down target.
10657 (thread_db_notice_clone): Pass down target.
10658 (check_thread_db_callback): Pass down target.
10659 (try_thread_db_load_1): Always push the thread_db target.
10660 (try_thread_db_load, record_thread): Pass target down.
10661 (thread_db_target::detach): Pass target down. Always unpush the
10662 thread_db target.
10663 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10664 target down. Always unpush the thread_db target.
10665 (find_new_threads_callback, thread_db_find_new_threads_2)
10666 (thread_db_target::update_thread_list): Pass target down.
10667 (thread_db_target::pid_to_str): Pass current inferior down.
10668 (thread_db_target::get_thread_local_address): Pass target down.
10669 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10670 target down.
10671 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10672 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10673 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10674 (procfs_init_inferior): Rename to ...
10675 (procfs_target::procfs_init_inferior): ... this and adjust.
10676 (procfs_target::create_inferior, procfs_notice_thread)
10677 (procfs_do_thread_registers): Adjust.
10678 * ppc-fbsd-tdep.c: Include "inferior.h".
10679 (ppcfbsd_get_thread_local_address): Pass down target.
10680 * proc-service.c (ps_xfer_memory): Switch current inferior and
10681 program space as well.
10682 (get_ps_regcache): Pass target down.
10683 * process-stratum-target.c
10684 (process_stratum_target::thread_address_space)
10685 (process_stratum_target::thread_architecture): Pass target down.
10686 * process-stratum-target.h
10687 (process_stratum_target::threads_executing): New field.
10688 (as_process_stratum_target): New.
10689 * ravenscar-thread.c
10690 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10691 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10692 down.
10693 * record-btrace.c (record_btrace_target::info_record): Adjust.
10694 (record_btrace_target::record_method)
10695 (record_btrace_target::record_is_replaying)
10696 (record_btrace_target::fetch_registers)
10697 (get_thread_current_frame_id, record_btrace_target::resume)
10698 (record_btrace_target::wait, record_btrace_target::stop): Pass
10699 target down.
10700 * record-full.c (record_full_wait_1): Switch to event thread.
10701 Pass target down.
10702 * regcache.c (regcache::regcache)
10703 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10704 process_stratum_target parameter and handle it.
10705 (current_thread_target): New global.
10706 (get_thread_regcache): Add process_stratum_target parameter and
10707 handle it. Switch inferior before calling target method.
10708 (get_thread_regcache): Pass target down.
10709 (get_thread_regcache_for_ptid): Pass target down.
10710 (registers_changed_ptid): Add process_stratum_target parameter and
10711 handle it.
10712 (registers_changed_thread, registers_changed): Pass target down.
10713 (test_get_thread_arch_aspace_regcache): New.
10714 (current_regcache_test): Define a couple local test_target_ops
10715 instances and use them for testing.
10716 (readwrite_regcache): Pass process_stratum_target parameter.
10717 (cooked_read_test, cooked_write_test): Pass mock_target down.
10718 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10719 (get_thread_arch_aspace_regcache): Add process_stratum_target
10720 parameter.
10721 (regcache::target): New method.
10722 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10723 (regcache::registers_changed_ptid): Add process_stratum_target
10724 parameter.
10725 (regcache::m_target): New field.
10726 (registers_changed_ptid): Add process_stratum_target parameter.
10727 * remote.c (remote_state::supports_vCont_probed): New field.
10728 (remote_target::async_wait_fd): New method.
10729 (remote_unpush_and_throw): Add remote_target parameter.
10730 (get_current_remote_target): Adjust.
10731 (remote_target::remote_add_inferior): Push target.
10732 (remote_target::remote_add_thread)
10733 (remote_target::remote_notice_new_inferior)
10734 (get_remote_thread_info): Pass target down.
10735 (remote_target::update_thread_list): Skip threads of inferiors
10736 bound to other targets. (remote_target::close): Don't discard
10737 inferiors. (remote_target::add_current_inferior_and_thread)
10738 (remote_target::process_initial_stop_replies)
10739 (remote_target::start_remote)
10740 (remote_target::remote_serial_quit_handler): Pass down target.
10741 (remote_target::remote_unpush_target): New remote_target
10742 parameter. Unpush the target from all inferiors.
10743 (remote_target::remote_unpush_and_throw): New remote_target
10744 parameter. Pass it down.
10745 (remote_target::open_1): Check whether the current inferior has
10746 execution instead of checking whether any inferior is live. Pass
10747 target down.
10748 (remote_target::remote_detach_1): Pass down target. Use
10749 remote_unpush_target.
10750 (extended_remote_target::attach): Pass down target.
10751 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10752 (remote_target::append_resumption): Pass down target.
10753 (remote_target::append_pending_thread_resumptions)
10754 (remote_target::remote_resume_with_hc, remote_target::resume)
10755 (remote_target::commit_resume): Pass down target.
10756 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10757 (remote_target::interrupt_query)
10758 (remote_target::remove_new_fork_children)
10759 (remote_target::check_pending_events_prevent_wildcard_vcont)
10760 (remote_target::remote_parse_stop_reply)
10761 (remote_target::process_stop_reply): Pass down target.
10762 (first_remote_resumed_thread): New remote_target parameter. Pass
10763 it down.
10764 (remote_target::wait_as): Pass down target.
10765 (unpush_and_perror): New remote_target parameter. Pass it down.
10766 (remote_target::readchar, remote_target::remote_serial_write)
10767 (remote_target::getpkt_or_notif_sane_1)
10768 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10769 down target.
10770 (remote_target::mourn_inferior): Pass down target. Use
10771 remote_unpush_target.
10772 (remote_target::core_of_thread)
10773 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10774 (remote_target::pid_to_exec_file)
10775 (remote_target::thread_handle_to_thread_info): Pass down target.
10776 (remote_target::async_wait_fd): New.
10777 * riscv-fbsd-tdep.c: Include "inferior.h".
10778 (riscv_fbsd_get_thread_local_address): Pass down target.
10779 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10780 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10781 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10782 Adjust.
10783 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10784 * solib-svr4.c (enable_break): Pass down target.
10785 * spu-multiarch.c (parse_spufs_run): Pass down target.
10786 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10787 * target-delegates.c: Regenerate.
10788 * target.c (g_target_stack): Delete.
10789 (current_top_target): Return the current inferior's top target.
10790 (target_has_execution_1): Refer to the passed-in inferior's top
10791 target.
10792 (target_supports_terminal_ours): Check whether the initial
10793 inferior was already created.
10794 (decref_target): New.
10795 (target_stack::push): Incref/decref the target.
10796 (push_target, push_target, unpush_target): Adjust.
10797 (target_stack::unpush): Defref target.
10798 (target_is_pushed): Return bool. Adjust to refer to the current
10799 inferior's target stack.
10800 (dispose_inferior): Delete, and inline parts ...
10801 (target_preopen): ... here. Only dispose of the current inferior.
10802 (target_detach): Hold strong target reference while detaching.
10803 Pass target down.
10804 (target_thread_name): Add assertion.
10805 (target_resume): Pass down target.
10806 (target_ops::beneath, find_target_at): Adjust to refer to the
10807 current inferior's target stack.
10808 (get_dummy_target): New.
10809 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10810 has a thread running.
10811 (initialize_targets): Rename to ...
10812 (_initialize_target): ... this.
10813 * target.h: Include "gdbsupport/refcounted-object.h".
10814 (struct target_ops): Inherit refcounted_object.
10815 (target_ops::shortname, target_ops::longname): Make const.
10816 (target_ops::async_wait_fd): New method.
10817 (decref_target): Declare.
10818 (struct target_ops_ref_policy): New.
10819 (target_ops_ref): New typedef.
10820 (get_dummy_target): Declare function.
10821 (target_is_pushed): Return bool.
10822 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10823 (all_matching_threads_iterator::all_matching_threads_iterator):
10824 Handle filter target.
10825 * thread-iter.h (struct all_matching_threads_iterator, struct
10826 all_matching_threads_range, class all_non_exited_threads_range):
10827 Filter by target too. Remove explicit.
10828 * thread.c (threads_executing): Delete.
10829 (inferior_thread): Pass down current inferior.
10830 (clear_thread_inferior_resources): Pass down thread pointer
10831 instead of ptid_t.
10832 (add_thread_silent, add_thread_with_info, add_thread): Add
10833 process_stratum_target parameter. Use it for thread and inferior
10834 searches.
10835 (is_current_thread): New.
10836 (thread_info::deletable): Use it.
10837 (find_thread_ptid, thread_count, in_thread_list)
10838 (thread_change_ptid, set_resumed, set_running): New
10839 process_stratum_target parameter. Pass it down.
10840 (set_executing): New process_stratum_target parameter. Pass it
10841 down. Adjust reference to 'threads_executing'.
10842 (threads_are_executing): New process_stratum_target parameter.
10843 Adjust reference to 'threads_executing'.
10844 (set_stop_requested, finish_thread_state): New
10845 process_stratum_target parameter. Pass it down.
10846 (switch_to_thread): Also match inferior.
10847 (switch_to_thread): New process_stratum_target parameter. Pass it
10848 down.
10849 (update_threads_executing): Reimplement.
10850 * top.c (quit_force): Pop targets from all inferior.
10851 (gdb_init): Don't call initialize_targets.
10852 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10853 Declare.
10854 (windows_add_thread, windows_delete_thread): Adjust.
10855 (get_windows_debug_event): Rename to ...
10856 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10857 * tracefile-tfile.c (tfile_target_open): Pass down target.
10858 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10859 Forward declare.
10860 (switch_to_thread): Add process_stratum_target parameter.
10861 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10862 parameter. Use it.
10863 (mi_on_resume): Pass target down.
10864 * nat/fork-inferior.c (startup_inferior): Add
10865 process_stratum_target parameter. Pass it down.
10866 * nat/fork-inferior.h (startup_inferior): Add
10867 process_stratum_target parameter.
10868 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10869
10870 2020-01-10 Pedro Alves <palves@redhat.com>
10871
10872 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10873 directly. Instead find the first thread in the thread list and
10874 use switch_to_thread.
10875
10876 2020-01-10 Pedro Alves <palves@redhat.com>
10877
10878 * remote.c (remote_target::remote_add_inferior): Don't bind a
10879 process to the current inferior if the current inferior is already
10880 bound to a process.
10881
10882 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10883 Pedro Alves <palves@redhat.com>
10884
10885 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10886 If no process is specified, return null_ptid instead of
10887 inferior_ptid.
10888 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10889 TARGET_WAITKIND_SIGNALLED with no pid.
10890
10891 2020-01-10 Pedro Alves <palves@redhat.com>
10892
10893 * remote.c (first_remote_resumed_thread): New.
10894 (remote_target::wait_as): Use it as default event_ptid instead of
10895 inferior_ptid.
10896
10897 2020-01-10 Pedro Alves <palves@redhat.com>
10898
10899 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10900
10901 2020-01-10 Pedro Alves <palves@redhat.com>
10902
10903 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10904 not -1.
10905
10906 2020-01-10 Pedro Alves <palves@redhat.com>
10907
10908 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10909 ptid to get_last_target_status.
10910 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10911 ptid to get_last_target_status.
10912 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10913 get_last_target_status.
10914 (info_program_command): Don't pass a target_waitstatus to
10915 get_last_target_status.
10916 * infrun.c (init_wait_for_inferior): Use
10917 nullify_last_target_wait_ptid.
10918 (get_last_target_status): Handle nullptr arguments.
10919 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10920 (print_stop_event): Don't pass a ptid to get_last_target_status.
10921 (normal_stop): Don't pass a ptid to get_last_target_status.
10922 * infrun.h (get_last_target_status, set_last_target_status): Move
10923 comments here and update.
10924 (nullify_last_target_wait_ptid): Declare.
10925 * linux-fork.c (fork_load_infrun_state): Remove local extern
10926 declaration of nullify_last_target_wait_ptid.
10927 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10928 to get_last_target_status.
10929
10930 2020-01-10 Pedro Alves <palves@redhat.com>
10931
10932 * gdbthread.h (scoped_restore_current_thread)
10933 <dont_restore, restore, m_dont_restore>: Declare.
10934 * thread.c (thread_alive): Add assertion. Return bool.
10935 (switch_to_thread_if_alive): New.
10936 (prune_threads): Switch inferior/thread.
10937 (print_thread_info_1): Switch thread before calling target methods.
10938 (scoped_restore_current_thread::restore): New, factored out from
10939 ...
10940 (scoped_restore_current_thread::~scoped_restore_current_thread):
10941 ... this.
10942 (scoped_restore_current_thread::scoped_restore_current_thread):
10943 Add assertion.
10944 (thread_apply_all_command, thread_select): Use
10945 switch_to_thread_if_alive.
10946 * infrun.c (proceed, restart_threads, handle_signal_stop)
10947 (switch_back_to_stepped_thread): Switch current thread before
10948 calling target methods.
10949
10950 2020-01-10 Pedro Alves <palves@redhat.com>
10951
10952 * inferior.c (switch_to_inferior_no_thread): New function,
10953 factored out from ...
10954 (inferior_command): ... here.
10955 * inferior.h (switch_to_inferior_no_thread): Declare.
10956 * mi/mi-main.c (run_one_inferior): Use
10957 switch_to_inferior_no_thread.
10958
10959 2020-01-10 Pedro Alves <palves@redhat.com>
10960
10961 * infcmd.c (kill_command): Remove dead code.
10962
10963 2020-01-10 Pedro Alves <palves@redhat.com>
10964
10965 * remote.c (remote_target::mourn_inferior): No longer check
10966 whether the target is running.
10967
10968 2020-01-10 Pedro Alves <palves@redhat.com>
10969
10970 * corelow.c (core_target::has_execution): Change parameter type to
10971 inferior pointer.
10972 * inferior.c (number_of_live_inferiors): Use
10973 inferior::has_execution instead of target_has_execution_1.
10974 * inferior.h (inferior::has_execution): New.
10975 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10976 inferior::has_execution instead of target_has_execution_1.
10977 * process-stratum-target.c
10978 (process_stratum_target::has_execution): Change parameter type to
10979 inferior pointer. Check the inferior's PID instead of
10980 inferior_ptid.
10981 * process-stratum-target.h
10982 (process_stratum_target::has_execution): Change parameter type to
10983 inferior pointer.
10984 * record-full.c (record_full_core_target::has_execution): Change
10985 parameter type to inferior pointer.
10986 * target.c (target_has_execution_1): Change parameter type to
10987 inferior pointer.
10988 (target_has_execution_current): Adjust.
10989 * target.h (target_ops::has_execution): Change parameter type to
10990 inferior pointer.
10991 (target_has_execution_1): Change parameter type to inferior
10992 pointer. Change return type to bool.
10993 * tracefile.h (tracefile_target::has_execution): Change parameter
10994 type to inferior pointer.
10995
10996 2020-01-10 Pedro Alves <palves@redhat.com>
10997
10998 * exceptions.c (print_flush): Remove current_top_target() check.
10999
11000 2020-01-10 Pedro Alves <palves@redhat.com>
11001
11002 * remote.c (show_remote_exec_file): Show the current inferior's
11003 exec-file instead of the command variable's value.
11004
11005 2020-01-10 Pedro Alves <palves@redhat.com>
11006
11007 * record-full.c (record_full_resume_ptid): New global.
11008 (record_full_target::resume): Set it.
11009 (record_full_wait_1): Use record_full_resume_ptid instead of
11010 inferior_ptid.
11011
11012 2020-01-10 Pedro Alves <palves@redhat.com>
11013
11014 * gdbthread.h (scoped_restore_current_thread)
11015 <dont_restore, restore, m_dont_restore>: Declare.
11016 * thread.c (thread_alive): Add assertion. Return bool.
11017 (switch_to_thread_if_alive): New.
11018 (prune_threads): Switch inferior/thread.
11019 (print_thread_info_1): Switch thread before calling target methods.
11020 (scoped_restore_current_thread::restore): New, factored out from
11021 ...
11022 (scoped_restore_current_thread::~scoped_restore_current_thread):
11023 ... this.
11024 (scoped_restore_current_thread::scoped_restore_current_thread):
11025 Add assertion.
11026 (thread_apply_all_command, thread_select): Use
11027 switch_to_thread_if_alive.
11028
11029 2020-01-10 George Barrett <bob@bob131.so>
11030
11031 * stap-probe.c (stap_modify_semaphore): Don't check for null
11032 semaphores.
11033 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11034 for null semaphores.
11035
11036 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11037
11038 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11039 all source windows, and maintain horizontal scroll status while
11040 doing so.
11041
11042 2020-01-09 Tom Tromey <tom@tromey.com>
11043
11044 PR tui/18932:
11045 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11046 update_source_window, not print_source_lines.
11047
11048 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * tui/tui.c (tui_enable): Register tui hooks after calling
11051 tui_display_main.
11052
11053 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11054
11055 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11056
11057 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11058
11059 * thread.c (print_thread_info_1): Fix indentation.
11060
11061 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11062
11063 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11064 unique_xmalloc_ptr outside the if to always free the demangled name.
11065
11066 2020-01-08 Tom Tromey <tromey@adacore.com>
11067
11068 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11069 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11070 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11071 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11072 Remove.
11073 (section_offsets): New typedef.
11074 * symtab.c (fixup_section, get_msymbol_address): Update.
11075 * symmisc.c (dump_msymbols): Update.
11076 * symfile.h (relative_addr_info_to_section_offsets)
11077 (symfile_map_offsets_to_segments): Update.
11078 * symfile.c (build_section_addr_info_from_objfile)
11079 (init_objfile_sect_indices): Update.
11080 (struct place_section_arg): Change type of "offsets".
11081 (place_section): Update.
11082 (relative_addr_info_to_section_offsets): Change type of
11083 "section_offsets". Remove "num_sections" parameter.
11084 (default_symfile_offsets, syms_from_objfile_1)
11085 (set_objfile_default_section_offset): Update.
11086 (reread_symbols): No need to preserve section offsets by hand.
11087 (symfile_map_offsets_to_segments): Change type of "offsets".
11088 * stap-probe.c (relocate_address): Update.
11089 * stabsread.h (process_one_symbol): Update.
11090 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11091 (solib_target_relocate_section_addresses): Update.
11092 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11093 Update.
11094 * solib-frv.c (frv_relocate_main_executable): Update.
11095 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11096 * solib-aix.c (solib_aix_get_section_offsets): Change return
11097 type.
11098 (solib_aix_solib_create_inferior_hook): Update.
11099 * remote.c (remote_target::get_offsets): Update.
11100 * psymtab.c (find_pc_sect_psymtab): Update.
11101 * psympriv.h (struct partial_symbol) <address, text_low,
11102 text_high>: Update.
11103 * objfiles.h (obj_section_offset): Update.
11104 (struct objfile) <section_offsets>: Change type.
11105 <num_sections>: Remove.
11106 (objfile_relocate): Update.
11107 * objfiles.c (entry_point_address_query): Update
11108 (relocate_one_symbol): Change type of "section_offsets".
11109 (objfile_relocate1, objfile_relocate1): Change type of
11110 "new_offsets".
11111 (objfile_rebase1): Update.
11112 * mipsread.c (mipscoff_symfile_read): Update.
11113 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11114 parameter.
11115 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11116 (parse_external, psymtab_to_symtab_1): Update.
11117 * machoread.c (macho_symfile_offsets): Update.
11118 * ia64-tdep.c (ia64_find_unwind_table): Update.
11119 * hppa-tdep.c (read_unwind_info): Update.
11120 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11121 * dwarf2read.c (create_addrmap_from_index)
11122 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11123 (process_psymtab_comp_unit_reader, add_partial_symbol)
11124 (add_partial_subprogram, process_full_comp_unit)
11125 (read_file_scope, read_func_scope, read_lexical_block_scope)
11126 (read_call_site_scope, dwarf2_rnglists_process)
11127 (dwarf2_ranges_process, dwarf2_ranges_read)
11128 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11129 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11130 Update.
11131 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11132 Update.
11133 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11134 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11135 (process_one_symbol): Change type of "section_offsets".
11136 * ctfread.c (get_objfile_text_range): Update.
11137 * coffread.c (coff_symtab_read, enter_linenos)
11138 (process_coff_symbol): Update.
11139 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11140 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11141
11142 2020-01-08 Tom Tromey <tromey@adacore.com>
11143
11144 * dwarf2read.c (parse_macro_definition): Use std::string.
11145 (parse_macro_definition): Likewise.
11146
11147 2020-01-08 Tom Tromey <tromey@adacore.com>
11148
11149 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11150 (ATTR_ALLOC_CHUNK): Remove.
11151
11152 2020-01-08 Tom Tromey <tromey@adacore.com>
11153
11154 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11155
11156 2020-01-08 Tom Tromey <tromey@adacore.com>
11157
11158 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11159 (dwarf2_compute_name, open_dwo_file): Likewise.
11160 (process_enumeration_scope): Use std::vector.
11161 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11162 (partial_die_info::fixup, dwarf2_start_subfile)
11163 (guess_full_die_structure_name, dwarf2_name): Likewise.
11164 (determine_prefix): Update.
11165 (guess_full_die_structure_name): Make return type const.
11166 (partial_die_full_name): Return unique_xmalloc_ptr.
11167 (DW_FIELD_ALLOC_CHUNK): Remove.
11168
11169 2020-01-07 Tom Tromey <tromey@adacore.com>
11170
11171 PR build/24937:
11172 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11173
11174 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11175
11176 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11177
11178 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11179
11180 * stack.c (print_frame_info): Move disassemble_next_line code
11181 inside source_print block.
11182
11183 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11184
11185 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11186 gdb/signals.h, as we are now using native signal symbols.
11187
11188 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11189
11190 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11191 overflow by an early check of content vs threshold.
11192 * tui/tui-source.c (tui_source_window::line_is_displayed):
11193 Likewise.
11194
11195 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11196
11197 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11198
11199 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11200
11201 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11202 export table if no section contains it's RVA.
11203
11204 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11205
11206 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11207
11208 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11209
11210 * source.c (print_source_lines_base): Set last_line_listed.
11211
11212 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11213
11214 * tui/tui-disasm.c: Remove trailing spaces.
11215
11216 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11217 Pedro Alves <palves@redhat.com>
11218
11219 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11220 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11221 (windows_gdb_signal_to_target): New function, uses the above
11222 enumeration to convert GDB internal signal codes to equivalent
11223 Windows codes.
11224 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11225 * windows-nat.c: Include "gdb_wait.h".
11226 (get_windows_debug_event): Extract the fatal exception from the
11227 exit status and convert to the equivalent Posix signal number.
11228 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11229 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11230 * gdbsupport/gdb_wait.c: New file, implements
11231 windows_status_to_termsig.
11232 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11233 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11234
11235 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11238 show_layout.
11239
11240 2020-01-05 Luis Machado <luis.machado@linaro.org>
11241
11242 * aarch64-linux-nat.c
11243 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11244 and bfd_mach_aarch64.
11245
11246 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11247
11248 * ui-file.c (stdio_file::can_emit_style_escape)
11249 (tee_file::can_emit_style_escape): Ensure style is used also on
11250 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11251 to gdb_stdout.
11252 * main.c (set_gdb_data_directory): Use file style to output the
11253 warning that the given pathname is not a directory.
11254 * top.c (show_history_filename, gdb_safe_append_history)
11255 (show_gdb_datadir): Use file style.
11256
11257 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11258
11259 * solib-target.c (struct lm_info_target):
11260 Change offsets to be a unique_xmalloc_ptr.
11261 (solib_target_relocate_section_addresses): Update.
11262
11263 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11264
11265 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11266
11267 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11268
11269 * MAINTAINERS (Write After Approval): Add myself.
11270
11271 2020-01-02 Luis Machado <luis.machado@linaro.org>
11272
11273 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11274 Cell BE architecture.
11275 * target.h (struct target_ops) <thread_architecture>: Likewise.
11276
11277 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11278
11279 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11280
11281 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11282
11283 * MAINTAINERS (Write After Approval): Add myself.
11284
11285 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11286
11287 * gdbarch.sh: Update copyright year range of generated files.
11288
11289 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11290
11291 Update copyright year range in all GDB files.
11292
11293 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11294
11295 * copyright.py: Convert to Python 3.
11296
11297 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11298
11299 * copyright.py: Adapt after move of gnulib directory from gdb
11300 directory to toplevel directory.
11301
11302 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11303
11304 * copyright.py (main): Exit if run from the wrong directory.
11305
11306 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11307
11308 * top.c (print_gdb_version): Change copyright year to 2020.
11309
11310 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11311
11312 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11313
11314 For older changes see ChangeLog-2019.
11315 \f
11316 Local Variables:
11317 mode: change-log
11318 left-margin: 8
11319 fill-column: 74
11320 version-control: never
11321 coding: utf-8
11322 End: