]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
edb2cb72685a0fb7cc67a6b49d3c4e8a828e0f6a
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2
3 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4 i386_linux_report_signal_info instead of
5 i386_linux_handle_segmentation_fault.
6 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7 to i386_linux_report_signal_info and add siggnal argument.
8 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
9 of i386_linux_handle_segmentation_fault.
10 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
11 to i386_linux_report_signal_info and add siggnal argument.
12
13 2020-07-21 John Baldwin <jhb@FreeBSD.org>
14
15 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
16 hook if present.
17
18 2020-07-21 John Baldwin <jhb@FreeBSD.org>
19
20 * gdbarch.c: Regenerate.
21 * gdbarch.h: Regenerate.
22 * gdbarch.sh (report_signal_info): New method.
23 * infrun.c (print_signal_received_reason): Invoke gdbarch
24 report_signal_info hook if present.
25
26 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * python/py-registers.c : Add 'unordered_map' include.
29 (gdbpy_new_reggroup): Renamed to...
30 (gdbpy_get_reggroup): ...this. Update to only create register
31 group descriptors when needed.
32 (gdbpy_reggroup_iter_next): Update.
33
34 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * python/py-registers.c (gdbpy_register_object_data): New static
37 global.
38 (gdbpy_register_object_data_init): New function.
39 (gdbpy_new_register_descriptor): Renamed to...
40 (gdbpy_get_register_descriptor): ...this, and update to reuse
41 existing register descriptors where possible.
42 (gdbpy_register_descriptor_iter_next): Update.
43 (gdbpy_initialize_registers): Register new gdbarch data.
44
45 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
46
47 * linux-nat.c (stopped_pids): Make static.
48
49 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
50
51 PR ada/26235
52 * gdbtypes.c (ada_discrete_type_low_bound,
53 ada_discrete_type_high_bound): Handle undefined bounds.
54
55 2020-07-21 Kamil Rytarowski <n54@gmx.com>
56
57 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
58 declaration.
59 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
60 function.
61
62 2020-07-20 John Baldwin <jhb@FreeBSD.org>
63
64 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
65 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
66 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
67 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
68 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
69 method.
70
71 2020-07-20 Ludovic Courtès <ludo@gnu.org>
72
73 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
74 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
75 which are deprecated in Guile 3.0.
76 * configure.ac (try_guile_versions): Add "guile-3.0".
77 * configure (try_guile_versions): Regenerate.
78 * NEWS: Update entry.
79
80 2020-07-20 Ludovic Courtès <ludo@gnu.org>
81 Doug Evans <dje@google.com>
82
83 PR gdb/21104
84 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
85 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
86 USING_GUILE_BEFORE_2_2.
87 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
88 Change type to 'scm_t_port_type *'.
89 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
90 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
91 parameter and honor it. Update callers.
92 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
93 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
94 functions.
95 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
96 USING_GUILE_BEFORE_2_2.
97 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
98 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
99 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
100 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
101 and 'SCM_PORT_TYPE'.
102 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
103 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
104 (gdbscm_memory_port_read, gdbscm_memory_port_write)
105 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
106 [!USING_GUILE_BEFORE_2_2]: New functions.
107 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
108 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
109 'gdbscm_memory_port_read'.
110 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
111 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
112 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
113 function.
114 (ioscm_init_memory_port): Remove.
115 (ioscm_init_memory_port_stream): New function
116 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
117 function.
118 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
119 Return scm_from_uint (0).
120 (gdbscm_set_memory_port_read_buffer_size_x)
121 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
122 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
123 Return scm_from_uint (0).
124 (gdbscm_set_memory_port_write_buffer_size_x)
125 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
126 * configure.ac (try_guile_versions): Add "guile-2.2".
127 * configure: Regenerate.
128 * NEWS: Add entry.
129
130 2020-07-18 Tom Tromey <tom@tromey.com>
131
132 * linux-nat.c (linux_multi_process): Remove.
133 (linux_nat_target::supports_multi_process): Return true.
134
135 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * arch/riscv.c (riscv_tdesc_cache): Change map type.
138 (riscv_lookup_target_description): Return pointer out of
139 unique_ptr.
140 * target-descriptions.c (allocate_target_description): Add
141 comment.
142 (target_desc_deleter::operator()): Likewise.
143 * target-descriptions.h (struct target_desc_deleter): Moved to
144 gdbsupport/tdesc.h.
145 (target_desc_up): Likewise.
146
147 2020-07-17 Tom Tromey <tromey@adacore.com>
148
149 * linux-nat.c (linux_nat_target::supports_non_stop)
150 (linux_nat_target::always_non_stop_p): Use "true".
151 (linux_nat_target::supports_disable_randomization): Use "true" and
152 "false".
153
154 2020-07-16 Caroline Tice <cmtice@google.com>
155
156 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
157 (RNGLIST_HEADER_SIZE64): New constant definition.
158 (struct dwop_section_names): Add rnglists_dwo.
159 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
160 (struct loclist_header): Rename to 'loclists_rnglists_header'.
161 (struct dwo_sections): Add rnglists field.
162 (read_attribut_reprocess): Add tag parameter.
163 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
164 (cu_debug_rnglists_section): New function (decl & definition).
165 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
166 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
167 die whose range is being checked; get rnglist section from
168 cu_debug_rnglists_section, to get from either objfile or dwo file as
169 appropriate. Add cases for DW_RLE_base_addressx,
170 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
171 the base address to DW_RLE_offset_pairs (not to all ranges), moving
172 test inside if-condition and updating complaint message.
173 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
174 dwarf2_rnglists_process.
175 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
176 dwarf2_ranges_process.
177 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
178 need_ranges_base and update comment appropriately. Also pass die tag
179 to dwarf2_ranges_read.
180 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
181 need_ranges_base and update comment appropriately. Also pass die tag
182 to dwarf2_ranges_process.
183 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
184 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
185 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
186 need_ranges_base and update comment appropriately. Also pass die tag
187 to read_attribute_reprocess and dwarf2_ranges_read.
188 (read_loclist_header): Rename function to read_loclists_rnglists_header,
189 and update function comment appropriately.
190 (read_loclist_index): Call read_loclists_rnglists_header instead of
191 read_loclist_header.
192 (read_rnglist_index): New function.
193 (read_attribute_reprocess): Add tag parameter. Add code for
194 DW_FORM_rnglistx, passing tag to read_rnglist_index.
195 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
196
197 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
200 being resolved.
201
202 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * arch-utils.c (show_architecture): Update formatting of messages.
205
206 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
207
208 * gdbtypes.h (struct type) <bounds>: Handle array and string
209 types.
210 * ada-lang.c (assign_aggregate): Use type::bounds on
211 array/string type.
212 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
213 * c-varobj.c (c_number_of_children): Likewise.
214 (c_describe_child): Likewise.
215 * eval.c (evaluate_subexp_for_sizeof): Likewise.
216 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
217 (f_type_print_base): Likewise.
218 * f-valprint.c (f77_array_offset_tbl): Likewise.
219 (f77_get_upperbound): Likewise.
220 (f77_print_array_1): Likewise.
221 * guile/scm-type.c (gdbscm_type_range): Likewise.
222 * m2-typeprint.c (m2_array): Likewise.
223 (m2_is_long_set_of_type): Likewise.
224 * m2-valprint.c (get_long_set_bounds): Likewise.
225 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
226 * python/py-type.c (typy_range): Likewise.
227 * rust-lang.c (rust_internal_print_type): Likewise.
228 * type-stack.c (type_stack::follow_types): Likewise.
229 * valarith.c (value_subscripted_rvalue): Likewise.
230 * valops.c (value_cast): Likewise.
231
232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
233
234 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
235 callers to use the equivalent accessor methods.
236
237 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
238
239 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
240 (struct type) <bit_stride>: New method.
241 (TYPE_BIT_STRIDE): Remove.
242 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
243
244 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
245
246 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
247 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
248 callers to use the equivalent accessor methods instead.
249
250 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
251
252 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
253 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
254 callers to use the equivalent accessor methods instead.
255
256 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
257
258 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
259 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
260 to use dynamic_prop::kind.
261
262 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
263
264 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
265 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
266 to get the bound property's kind and check against
267 PROP_UNDEFINED.
268
269 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
270
271 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
272 all callers to use type::range_bounds followed by
273 dynamic_prop::{low,high}.
274
275 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
278 const_val, set_const_val, baton, set_locexpr, set_loclist,
279 set_addr_offset, variant_parts, set_variant_parts,
280 original_type, set_original_type>: New methods.
281 <kind>: Rename to...
282 <m_kind>: ... this. Update all users to use the new methods
283 instead.
284 <data>: Rename to...
285 <m_data>: ... this. Update all users to use the new methods
286 instead.
287
288 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.c (get_discrete_bounds): Return failure if
291 the range type's bounds are not both defined and constant
292 values.
293 (get_array_bounds): Update comment. Remove undefined bound check.
294
295 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
298 the type::bounds method directly.
299
300 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
301
302 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
303 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
304 are used to set the range type's bounds to use set_bounds.
305
306 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
307
308 * exec.c (_initialize_exec): Update exec-file-mismatch help.
309
310 2020-07-10 Pedro Alves <pedro@palves.net>
311
312 * gdbthread.h (inferior_ref): Define.
313 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
314 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
315 * thread.c
316 (scoped_restore_current_thread::restore):
317 Adjust to gdb::ref_ptr.
318 (scoped_restore_current_thread::~scoped_restore_current_thread):
319 Remove manual decref handling.
320 (scoped_restore_current_thread::scoped_restore_current_thread):
321 Adjust to use
322 inferior_ref::new_reference/thread_info_ref::new_reference.
323 Incref the thread before calling get_frame_id instead of after.
324 Let TARGET_CLOSE_ERROR propagate.
325
326 2020-07-10 Pedro Alves <pedro@palves.net>
327
328 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
329 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
330 NOT_AVAILABLE_ERROR.
331 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
332 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
333
334 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
335 Pedro Alves <pedro@palves.net>
336
337 PR gdb/26199
338 * infrun.c (threads_are_resumed_pending_p): Delete.
339 (do_target_wait): Remove threads_are_executing and
340 threads_are_resumed_pending_p checks from the inferior_matches
341 lambda. Update comments.
342
343 2020-07-10 Pedro Alves <pedro@palves.net>
344
345 PR gdb/26199
346 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
347 executing threads.
348
349 2020-07-10 Pedro Alves <pedro@palves.net>
350
351 PR gdb/26199
352 * infrun.c (handle_no_resumed): Handle multiple targets.
353
354 2020-07-10 Pedro Alves <pedro@palves.net>
355
356 PR gdb/26199
357 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
358 target_is_async_p.
359
360 2020-07-10 Pedro Alves <pedro@palves.net>
361
362 PR gdb/26199
363 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
364 threads, not all threads.
365
366 2020-07-10 Pedro Alves <pedro@palves.net>
367
368 PR gdb/26199
369 * remote.c (remote_target::open_1): Pass remote target pointer as
370 data to create_async_event_handler.
371 (remote_async_inferior_event_handler): Mark async event handler
372 before returning if the remote target still has either pending
373 events or unacknowledged notifications.
374
375 2020-07-10 John Baldwin <jhb@FreeBSD.org>
376
377 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
378 declaration.
379 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
380 function.
381
382 2020-07-09 John Baldwin <jhb@FreeBSD.org>
383
384 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
385 inferior_ptid.
386
387 2020-07-09 John Baldwin <jhb@FreeBSD.org>
388
389 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
390 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
391 AT_FREEBSD_PS_STRINGS.
392
393 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
394
395 * auto-load.c (auto_load_objfile_script_1): Convert drive part
396 of debugfile path on Windows.
397
398 2020-07-08 John Baldwin <jhb@FreeBSD.org>
399
400 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
401 argument to 'data'.
402
403 2020-07-08 Tom Tromey <tromey@adacore.com>
404
405 * ada-lang.c (ada_exception_message_1): Use read_memory.
406
407 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 PR python/22748
410 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
411 special handling for inline frames.
412 * findvar.c (value_of_register_lazy): Skip inline frames when
413 creating lazy register values.
414 * frame.c (frame_id_computed_p): Delete definition.
415 * frame.h (frame_id_computed_p): Delete declaration.
416
417 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
418
419 * NEWS: Mention additions to Python API.
420 * python/py-arch.c (archpy_register_groups): New function.
421 (arch_object_methods): Add 'register_groups' method.
422 * python/py-registers.c (reggroup_iterator_object): New struct.
423 (reggroup_object): New struct.
424 (gdbpy_new_reggroup): New function.
425 (gdbpy_reggroup_to_string): New function.
426 (gdbpy_reggroup_name): New function.
427 (gdbpy_reggroup_iter): New function.
428 (gdbpy_reggroup_iter_next): New function.
429 (gdbpy_new_reggroup_iterator): New function
430 (gdbpy_initialize_registers): Register new types.
431 (reggroup_iterator_object_type): Define new Python type.
432 (gdbpy_reggroup_getset): New static global.
433 (reggroup_object_type): Define new Python type.
434 * python/python-internal.h
435
436 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
439 * python/py-arch.c (archpy_registers): New function.
440 (arch_object_methods): Add 'registers' method.
441 * python/py-registers.c: New file.
442 * python/python-internal.h
443 (gdbpy_new_register_descriptor_iterator): Declare.
444 (gdbpy_initialize_registers): Declare.
445 * python/python.c (do_start_initialization): Call
446 gdbpy_initialize_registers.
447 * NEWS: Mention additions to the Python API.
448
449 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * NEWS: Mention new Python API method.
452 * python/py-unwind.c (pending_framepy_architecture): New function.
453 (pending_frame_object_methods): Add architecture method.
454
455 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * gdbarch.c: Regenerate.
458 * gdbarch.h: Regenerate.
459 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
460 (gdbarch_data): Use internal_error for the case where
461 deprecated_set_gdbarch_data was originally needed.
462 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
463 and use passed in obstack.
464 (libunwind_frame_set_descr): Should no longer get back NULL from
465 gdbarch_data.
466 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
467 type.
468 * user-regs.c (user_regs_init): Update parameters, and use passed
469 in obstack.
470 (user_reg_add): Should no longer get back NULL from gdbarch_data.
471 (_initialize_user_regs): Register as a pre-init gdbarch data type.
472
473 2020-07-06 Tom de Vries <tdevries@suse.de>
474
475 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
476 End-Of-Sequence in lte_is_less_than.
477 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
478 "gdb: Don't reorder line table entries too much when sorting".
479
480 2020-07-06 Tom de Vries <tdevries@suse.de>
481
482 PR tui/26205
483 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
484
485 2020-07-05 Tom de Vries <tdevries@suse.de>
486
487 PR build/26187
488 * inferior.h (struct infcall_suspend_state_deleter): If available, use
489 std::uncaught_exceptions instead of deprecated
490 std::uncaught_exception.
491
492 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * macroexp.h (macro_stringify): Return
495 gdb::unique_xmalloc_ptr<char>.
496 * macroexp.c (macro_stringify): Likewise.
497 * macrotab.c (fixup_definition): Update.
498
499 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
502 (lex_one_token): Update.
503 * macroexp.c (struct macro_buffer) <release>: Return
504 gdb::unique_xmalloc_ptr<char>.
505 (macro_stringify): Update.
506 (macro_expand): Update.
507 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
508 * macroexp.h (macro_expand_next): Likewise.
509
510 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
511
512 * macroexp.h (macro_lookup_ftype): Remove.
513 (macro_expand, macro_expand_once, macro_expand_next): Remove
514 lookup function parameters, add scope parameter.
515 * macroexp.c (scan, substitute_args, expand, maybe_expand,
516 macro_expand, macro_expand_once, macro_expand_next): Likewise.
517 * macroscope.h (standard_macro_lookup): Change parameter type
518 to macro_scope.
519 * macroscope.c (standard_macro_lookup): Likewise.
520 * c-exp.y (lex_one_token): Update.
521 * macrocmd.c (macro_expand_command): Likewise.
522 (macro_expand_once_command): Likewise.
523
524 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * inf-loop.c (inferior_event_handler): Remove client_data param.
527 * inf-loop.h (inferior_event_handler): Likewise.
528 * infcmd.c (step_1): Adjust.
529 * infrun.c (proceed): Adjust.
530 (fetch_inferior_event): Remove client_data param.
531 (infrun_async_inferior_event_handler): Adjust.
532 * infrun.h (fetch_inferior_event): Remove `void *` param.
533 * linux-nat.c (handle_target_event): Adjust.
534 * record-btrace.c (record_btrace_handle_async_inferior_event):
535 Adjust.
536 * record-full.c (record_full_async_inferior_event_handler):
537 Adjust.
538 * remote.c (remote_async_inferior_event_handler): Adjust.
539
540 2020-07-01 Tom Tromey <tom@tromey.com>
541
542 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
543 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
544
545 2020-07-01 Tom Tromey <tom@tromey.com>
546
547 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
548 tui_gen_win_info.
549 (tui_win_info::make_window): Merge with
550 tui_gen_win_info::make_window.
551 (tui_win_info::make_visible): Move from tui_gen_win_info.
552 * tui/tui-win.c (tui_win_info::max_width): Move from
553 tui_gen_win_info.
554 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
555 type.
556 <window_factory>: Likewise.
557 * tui/tui-layout.c (tui_win_info::resize): Move from
558 tui_gen_win_info.
559 (make_standard_window): Change return type.
560 (get_locator_window, tui_get_window_by_name): Likewise.
561 (tui_layout_window::apply): Remove a cast.
562 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
563 (struct tui_win_info): Merge with tui_gen_win_info.
564 (struct tui_gen_win_info): Remove.
565
566 2020-07-01 Tom Tromey <tom@tromey.com>
567
568 * tui/tui-stack.h (struct tui_locator_window): Derive from
569 tui_win_info.
570 <do_scroll_horizontal, do_scroll_vertical>: New methods.
571 <can_box>: New method.
572
573 2020-07-01 Tom Tromey <tom@tromey.com>
574
575 * tui/tui-stack.h (struct tui_locator_window): Remove body.
576
577 2020-07-01 Tom Tromey <tom@tromey.com>
578
579 * tui/tui-regs.c (tui_data_window::display_registers_from)
580 (tui_data_window::display_registers_from)
581 (tui_data_window::first_data_item_displayed)
582 (tui_data_window::delete_data_content_windows): Update.
583 (tui_data_window::refresh_window, tui_data_window::no_refresh):
584 Remove.
585 (tui_data_window::check_register_values): Update.
586 (tui_data_item_window::rerender): Add parameters. Update.
587 (tui_data_item_window::refresh_window): Remove.
588 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
589 virtual.
590 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
591 tui_gen_win_info.
592 <refresh_window, max_height, min_height>: Remove.
593 <rerender>: Add parameters.
594 <x, y, visible>: New members.
595 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
596 <m_item_width>: New member.
597
598 2020-07-01 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-regs.c (tui_data_window::show_register_group)
601 (tui_data_window::check_register_values): Update.
602 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
603 from item_no.
604
605 2020-07-01 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
608 useless "if".
609
610 2020-07-01 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
613 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
614
615 2020-07-01 Tom Tromey <tom@tromey.com>
616
617 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
618 * tui/tui-winsource.h (enum tui_line_or_address_kind)
619 (struct tui_line_or_address): Move from tui-data.h.
620 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
621 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
622 (tui_cmd_window, tui_source_window_base, tui_source_window)
623 (tui_disasm_window): Don't declare.
624 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
625 to tui-winsource.h.
626 (SINGLE_KEY): Move to tui-stack.c.
627
628 2020-07-01 Tom Tromey <tom@tromey.com>
629
630 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
631 std::string.
632 * tui/tui-regs.c (class tab_expansion_file): New.
633 (tab_expansion_file::write): New method.
634 (tui_register_format): Change return type. Use
635 tab_expansion_file.
636 (tui_get_register, tui_data_window::display_registers_from)
637 (tui_data_item_window::rerender): Update.
638 * tui/tui-io.h (tui_expand_tabs): Don't declare.
639 * tui/tui-io.c (tui_expand_tabs): Remove.
640
641 2020-07-01 Tom Tromey <tom@tromey.com>
642
643 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
644
645 2020-07-01 Fangrui Song <maskray@google.com>
646
647 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
648
649 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
650
651 * dwarf2/read.c (set_die_type): Removed conditions to restrict
652 forms for DW_AT_associated and DW_AT_allocated attributes,
653 which is already checked in function attr_to_dynamic_prop.
654
655 2020-06-30 Tom Tromey <tromey@adacore.com>
656
657 * dwarf2/read.c (quirk_rust_enum): Correctly call
658 alloc_rust_variant for default-less enum.
659
660 2020-06-30 Tom Tromey <tromey@adacore.com>
661
662 PR build/26183:
663 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
664 gdb::to_string.
665
666 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
667
668 * gdbarch.sh (displaced_step_copy_insn): Update doc.
669 * gdbarch.h: Re-generate.
670
671 2020-06-28 Tom Tromey <tom@tromey.com>
672
673 * command.h (cmd_types): Remove.
674 (cmd_type): Don't declare.
675 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
676 typedef.
677 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
678 * cli/cli-decode.c (cmd_type): Remove.
679
680 2020-06-27 Pedro Alves <palves@redhat.com>
681
682 * fork-child.c (prefork_hook): Adjust.
683 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
684 Delete.
685 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
686 * inferior.c (inferior::set_tty, inferior::tty): New methods.
687 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
688 Remove declarations.
689 (struct inferior) <set_tty, tty>: New methods.
690 (struct inferior) <terminal>: Rename to ...
691 (struct inferior) <m_terminal>: ... this and make private.
692 * main.c (captured_main_1): Adjust.
693 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
694 (mi_cmd_inferior_tty_show): Adjust.
695 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
696 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
697
698 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
699
700 * configure.ac: Add --enable-libctf: handle --disable-static
701 properly.
702 * acinclude.m4: sinclude ../config/enable.m4.
703 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
704 (LIBCTF): Substitute in.
705 (CTF_DEPS): New, likewise.
706 (CLIBS): libctf needs symbols from libbfd: move earlier.
707 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
708 flags.
709 * ctfread.c: Surround in ENABLE_LIBCTF.
710 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
711 * configure: Regenerate.
712 * config.in: Likewise.
713
714 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
715
716 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
717
718 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
719
720 * inferior.h (struct inferior) <terminal>: Change type to
721 gdb::unique_xmalloc_ptr<char>.
722 * inferior.c (inferior::~inferior): Don't free inf->terminal.
723 * infcmd.c (set_inferior_io_terminal): Don't free terminal
724 field, adjust to unique pointer.
725 (get_inferior_io_terminal): Adjust to unique pointer.
726
727 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * riscv-tdep.c (riscv_print_registers_info): Loop over all
730 registers, not just the known core set of registers.
731
732 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
735 fflags, frm, and fcsr registers.
736 (riscv_register_reggroup_p): Remove unknown CSRs from save and
737 restore groups.
738 (riscv_tdesc_unknown_reg): New function.
739 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
740 tdesc_use_registers.
741 * riscv-tdep.h (struct gdbarch_tdep): Add
742 unknown_csrs_first_regnum, unknown_csrs_count,
743 duplicate_fflags_regnum, duplicate_frm_regnum, and
744 duplicate_fcsr_regnum fields.
745
746 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * target-descriptions.c (tdesc_use_registers): Add new parameter a
749 callback, use the callback (when not null) to help number unknown
750 registers.
751 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
752 (tdesc_use_registers): Add extra parameter to declaration.
753
754 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
757 in the file.
758 (class riscv_pending_register_alias): Likewise.
759 (riscv_register_feature::register_info): Change 'required_p' field
760 to 'required', and change its type. Add 'check' member function.
761 (riscv_register_feature::register_info::check): Define new member
762 function.
763 (riscv_xreg_feature): Change initialisation of 'required' field.
764 (riscv_freg_feature): Likewise.
765 (riscv_virtual_feature): Likewise.
766 (riscv_csr_feature): Likewise.
767 (riscv_check_tdesc_feature): Take extra parameter, the csr
768 tdesc_feature, rewrite the function to use the new
769 riscv_register_feature::register_info::check function.
770 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
771
772 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * features/Makefile: Remove all references to the deleted files
775 below.
776 * features/riscv/32bit-csr.c: Deleted.
777 * features/riscv/32bit-csr.xml: Deleted.
778 * features/riscv/64bit-csr.c: Deleted.
779 * features/riscv/64bit-csr.xml: Deleted.
780 * features/riscv/rebuild-csr-xml.sh: Deleted.
781
782 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
785 whitespace error for declaration of names member variable.
786 (struct riscv_register_feature): Add new prefer_first_name member
787 variable, and fix whitespace error in declaration of registers.
788 (riscv_xreg_feature): Initialize prefer_first_name field.
789 (riscv_freg_feature): Likewise.
790 (riscv_virtual_feature): Likewise.
791 (riscv_csr_feature): Likewise.
792 (riscv_register_name): Expand on comments. Remove register name
793 modifications for CSR and virtual registers.
794
795 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
798 errors.
799
800 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
803 riscv-opc.h.
804 (class riscv_pending_register_alias): New class.
805 (riscv_check_tdesc_feature): Take vector of pending aliases and
806 populate it as appropriate.
807 (riscv_setup_register_aliases): Delete.
808 (riscv_gdbarch_init): Create vector of pending aliases and pass it
809 to riscv_check_tdesc_feature in all cases. Use the vector to
810 create the register aliases.
811
812 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
813
814 * sol2-tdep.c (sol2_static_transform_name): Remove.
815 (sol2_init_abi): Don't register it.
816 * gdbarch.sh (static_transform_name): Remove.
817 * gdbarch.c, gdbarch.h: Regenerate.
818
819 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
820 gdbarch_static_transform_name.
821 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
822 * stabsread.c (define_symbol) <'X'>: Remove.
823 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
824 handling.
825 <'V'>: Likewise.
826 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
827 <'S'>: Remove call to gdbarch_static_transform_name.
828
829 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
830
831 * procfs.c (procfs_pre_trace): New function.
832 (procfs_target::create_inferior): Pass it to fork_inferior.
833
834 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
835
836 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
837 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
838 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
839 sol2-tdep.o, sparc-sol2-tdep.o.
840 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
841 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
842 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
843 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
844
845 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
846
847 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
848 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
849 Call sol2_init_abi.
850 Remove calls to set_gdbarch_skip_solib_resolver,
851 set_gdbarch_core_pid_to_str.
852 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
853 (i386_sol2_static_transform_name): Remove.
854 (i386_sol2_init_abi): Call sol2_init_abi.
855 Remove calls to set_gdbarch_sofun_address_maybe_missing,
856 set_gdbarch_static_transform_name,
857 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
858 Use sol2_sigtramp_p.
859 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
860 (sol2_sigtramp_p): New function.
861 (sol2_static_transform_name): New function.
862 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
863 (sol2_init_abi): New function.
864 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
865 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
866 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
867 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
868 (sparc_sol2_static_transform_name): Remove.
869 (sparc32_sol2_init_abi): Call sol2_init_abi.
870 Remove calls to set_gdbarch_sofun_address_maybe_missing,
871 set_gdbarch_static_transform_name,
872 set_gdbarch_skip_solib_resolver,
873 set_gdbarch_core_pid_to_str.
874 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
875 (sparc_sol2_static_transform_name): Remove
876 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
877 call sol2_sigtramp_p.
878 (sparc64_sol2_init_abi): Call sol2_init_abi.
879 Remove calls to set_gdbarch_sofun_address_maybe_missing,
880 set_gdbarch_static_transform_name,
881 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
882
883 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
884
885 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
886 * exec.c (validate_exec_file): If from_tty, set both
887 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
888 * symfile.c (symbol_file_add_with_addrs): if always_confirm
889 and from_tty, unconditionally ask a confirmation.
890
891 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * target-descriptions.c (tdesc_architecture_name): Protect against
894 NULL pointer dereference.
895 (maint_print_xml_tdesc_cmd): New function.
896 (_initialize_target_descriptions): Register new 'maint print
897 xml-tdesc' command and give it the filename completer.
898 * NEWS: Mention new 'maint print xml-tdesc' command.
899
900 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * target-descriptions.c (class tdesc_compatible_info): New class.
903 (struct target_desc): Change type of compatible vector.
904 (tdesc_compatible_p): Update for change in type of
905 target_desc::compatible.
906 (tdesc_compatible_info_list): New function.
907 (tdesc_compatible_info_arch_name): New function.
908 (tdesc_add_compatible): Update for change in type of
909 target_desc::compatible.
910 (print_c_tdesc::visit_pre): Likewise.
911
912 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
913
914 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
915 whitespace to underscore.
916 (maint_print_c_tdesc_cmd): Use fake filename for target
917 descriptions that came from the target.
918 (_initialize_target_descriptions): Add filename command completion
919 for 'maint print c-tdesc'.
920
921 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
922
923 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
924 lines.
925
926 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
927
928 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
929 lines.
930 (dwarf2_find_location_expression): Likewise.
931 (call_site_parameter_matches): Likewise.
932 (dwarf2_compile_expr_to_ax): Likewise.
933 (disassemble_dwarf_expression): Likewise.
934 (loclist_describe_location): Likewise.
935
936 2020-06-23 Pedro Alves <palves@redhat.com>
937
938 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
939 progspace-and-thread.h. Include scoped-mock-context.h instead.
940 (register_to_value_test): Use scoped_mock_context.
941 * regcache.c: Include "scoped-mock-context.h".
942 (cooked_read_test): Don't error out if a target is already pushed.
943 Use scoped_mock_context. Adjust.
944 * scoped-mock-context.h: New file.
945
946 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
949 initializer.
950 (ada_language::is_string_type_p): New member function.
951 * c-lang.c (c_language_data): Delete la_is_string_type_p
952 initializer.
953 (cplus_language_data): Likewise.
954 (asm_language_data): Likewise.
955 (minimal_language_data): Likewise.
956 * d-lang.c (d_language_data): Likewise.
957 * f-lang.c (f_is_string_type_p): Delete function, implementation
958 moved to f_language::is_string_type_p.
959 (f_language_data): Delete la_is_string_type_p initializer.
960 (f_language::is_string_type_p): New member function,
961 implementation from f_is_string_type_p.
962 * go-lang.c (go_is_string_type_p): Delete function, implementation
963 moved to go_language::is_string_type_p.
964 (go_language_data): Delete la_is_string_type_p initializer.
965 (go_language::is_string_type_p): New member function,
966 implementation from go_is_string_type_p.
967 * language.c (language_defn::is_string_type_p): Define new member
968 function.
969 (default_is_string_type_p): Make static, add comment copied from
970 header file.
971 (unknown_language_data): Delete la_is_string_type_p initializer.
972 (unknown_language::is_string_type_p): New member function.
973 (auto_language_data): Delete la_is_string_type_p initializer.
974 (auto_language::is_string_type_p): New member function.
975 * language.h (language_data): Delete la_is_string_type_p field.
976 (language_defn::is_string_type_p): Declare new function.
977 (default_is_string_type_p): Delete desclaration, move comment to
978 definition.
979 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
980 moved to m2_language::is_string_type_p.
981 (m2_language_data): Delete la_is_string_type_p initializer.
982 (m2_language::is_string_type_p): New member function,
983 implementation from m2_is_string_type_p.
984 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
985 initializer.
986 * opencl-lang.c (opencl_language_data): Likewise.
987 * p-lang.c (pascal_is_string_type_p): Delete function,
988 implementation moved to pascal_language::is_string_type_p.
989 (pascal_language_data): Delete la_is_string_type_p initializer.
990 (pascal_language::is_string_type_p): New member function,
991 implementation from pascal_is_string_type_p.
992 * rust-lang.c (rust_is_string_type_p): Delete function,
993 implementation moved to rust_language::is_string_type_p.
994 (rust_language_data): Delete la_is_string_type_p initializer.
995 (rust_language::is_string_type_p): New member function,
996 implementation from rust_is_string_type_p.
997 * valprint.c (val_print_scalar_or_string_type_p): Update call to
998 is_string_type_p.
999
1000 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * ada-lang.c (ada_language_data): Delete la_print_typedef
1003 initializer.
1004 (ada_language::print_typedef): New member function.
1005 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1006 (cplus_language_data): Likewise.
1007 (asm_language_data): Likewise.
1008 (minimal_language_data): Likewise.
1009 * d-lang.c (d_language_data): Likewise.
1010 * f-lang.c (f_language_data): Likewise.
1011 (f_language::print_typedef): New member function.
1012 * go-lang.c (go_language_data): Delete la_print_typedef
1013 initializer.
1014 * language.c (language_defn::print_typedef): Define member
1015 function.
1016 (unknown_language_data): Delete la_print_typedef initializer.
1017 (unknown_language::print_typedef): New member function.
1018 (auto_language_data): Delete la_print_typedef initializer.
1019 (auto_language::print_typedef): New member function.
1020 * language.h (language_data): Delete la_print_typedef field.
1021 (language_defn::print_typedef): Declare new member function.
1022 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1023 (default_print_typedef): Delete declaration.
1024 * m2-lang.c (m2_language_data): Delete la_print_typedef
1025 initializer.
1026 (m2_language::print_typedef): New member function.
1027 * objc-lang.c (objc_language_data): Delete la_print_typedef
1028 initializer.
1029 * opencl-lang.c (opencl_language_data): Likewise.
1030 * p-lang.c (pascal_language_data): Likewise.
1031 (pascal_language::print_typedef): New member function.
1032 * rust-lang.c (rust_print_typedef): Delete function,
1033 implementation moved to rust_language::print_typedef.
1034 (rust_language): Delete la_print_typedef initializer.
1035 (rust_language::print_typedef): New member function,
1036 implementation from rust_print_typedef.
1037 * typeprint.c (default_print_typedef): Delete.
1038
1039 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1040
1041 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1042 (ada_language::printstr): New member function.
1043 * c-lang.c (c_language_data): Delete la_printstr initializer.
1044 (cplus_language_data): Likewise.
1045 (asm_language_data): Likewise.
1046 (minimal_language_data): Likewise.
1047 * d-lang.c (d_language_data): Likewise.
1048 * f-lang.c (f_printstr): Rename to f_language::printstr.
1049 (f_language_data): Delete la_printstr initializer.
1050 (f_language::printstr): New member function, implementation from
1051 f_printstr.
1052 * go-lang.c (go_language_data): Delete la_printstr initializer.
1053 * language.c (language_defn::printstr): Define new member
1054 function.
1055 (unk_lang_printstr): Delete.
1056 (unknown_language_data): Delete la_printstr initializer.
1057 (unknown_language::printstr): New member function.
1058 (auto_language_data): Delete la_printstr initializer.
1059 (auto_language::printstr): New member function.
1060 * language.h (language_data): Delete la_printstr field.
1061 (language_defn::printstr): Declare new member function.
1062 (LA_PRINT_STRING): Update call to printstr.
1063 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1064 (m2_language_data): Delete la_printstr initializer.
1065 (m2_language::printstr): New member function, implementation from
1066 m2_printstr.
1067 * objc-lang.c (objc_language_data): Delete la_printstr
1068 initializer.
1069 * opencl-lang.c (opencl_language_data): Likewise.
1070 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1071 (pascal_language_data): Delete la_printstr initializer.
1072 (pascal_language::printstr): New member function, implementation
1073 from pascal_printstr.
1074 * p-lang.h (pascal_printstr): Delete declaration.
1075 * rust-lang.c (rust_printstr): Update header comment.
1076 (rust_language_data): Delete la_printstr initializer.
1077 (rust_language::printstr): New member function.
1078
1079 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1082 (ada_language::printchar): New member function.
1083 * c-lang.c (c_language_data): Delete la_printchar initializer.
1084 (cplus_language_data): Likewise.
1085 (asm_language_data): Likewise.
1086 (minimal_language_data): Likewise.
1087 * d-lang.c (d_language_data): Likewise.
1088 * f-lang.c (f_printchar): Rename to f_language::printchar.
1089 (f_language_data): Delete la_printchar initializer.
1090 (f_language::printchar): New member function, implementation from
1091 f_printchar.
1092 * go-lang.c (go_language_data): Delete la_printchar initializer.
1093 * language.c (unk_lang_printchar): Delete.
1094 (language_defn::printchar): Define new member function.
1095 (unknown_language_data): Delete la_printchar initializer.
1096 (unknown_language::printchar): New member function.
1097 (auto_language_data): Delete la_printchar initializer.
1098 (auto_language::printchar): New member function.
1099 * language.h (language_data): Delete la_printchar field.
1100 (language_defn::printchar): Declare new member function.
1101 (LA_PRINT_CHAR): Update call to printchar.
1102 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1103 (m2_language::printchar): New member function.
1104 * objc-lang.c (objc_language_data): Delete la_printchar
1105 initializer.
1106 * opencl-lang.c (opencl_language_data): Likewise.
1107 * p-lang.c (pascal_language_data): Delete la_printchar
1108 initializer.
1109 (pascal_language::printchar): New member function.
1110 * rust-lang.c (rust_printchar): Rename to
1111 rust_language::printchar.
1112 (rust_language_data): Delete la_printchar initializer.
1113 (rust_language::printchar): New member function, implementation
1114 from rust_printchar.
1115
1116 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1119 (ada_language_data): Delete la_emitchar initializer.
1120 (ada_language::emitchar): New member function, implementation from
1121 emit_char.
1122 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1123 (cplus_language_data): Likewise.
1124 (asm_language_data): Likewise.
1125 (minimal_language_data): Likewise.
1126 * d-lang.c (d_language_data): Likewise.
1127 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1128 (f_language_data): Delete la_emitchar initializer.
1129 (f_language::emitchar): New member function, implementation from
1130 f_emit_char.
1131 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1132 * language.c (unk_lang_emit_char): Delete.
1133 (language_defn::emitchar): New member function definition.
1134 (unknown_language_data): Delete la_emitchar initializer.
1135 (unknown_language::emitchar): New member function.
1136 (auto_language_data): Delete la_emitchar initializer.
1137 (auto_language::emitchar): New member function.
1138 * language.h (language_data): Delete la_emitchar field.
1139 (language_defn::emitchar): New member field declaration.
1140 (LA_EMIT_CHAR): Update call to emitchar.
1141 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1142 (m2_language_data): Delete la_emitchar initializer.
1143 (m2_language::emitchar): New member function, implementation from
1144 m2_emit_char.
1145 * objc-lang.c (objc_language_data): Delete la_emitchar
1146 initializer.
1147 * opencl-lang.c (opencl_language_data): Likewise.
1148 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1149 (pascal_language_data): Delete la_emitchar initializer.
1150 (pascal_language::emitchar): New member function, implementation
1151 from pascal_emit_char.
1152 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1153 (rust_language_data): Delete la_emitchar initializer.
1154 (rust_language::emitchar): New member function, implementation
1155 from rust_emitchar.
1156
1157 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1160 (ada_language_data): Delete la_post_parser initializer.
1161 (ada_language::post_parser): New member function.
1162 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1163 (cplus_language_data): Likewise.
1164 (asm_language_data): Likewise.
1165 (minimal_language_data): Likewise.
1166 * d-lang.c (d_language_data): Likewise.
1167 * f-lang.c (f_language_data): Likewise.
1168 * go-lang.c (go_language_data): Likewise.
1169 * language.c (unknown_language_data): Likewise.
1170 (auto_language_data): Likewise.
1171 * language.h (language_data): Delete la_post_parser field.
1172 (language_defn::post_parser): New member function.
1173 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1174 * objc-lang.c (objc_language_data): Likewise.
1175 * opencl-lang.c (opencl_language_data): Likewise.
1176 * p-lang.c (pascal_language_data): Likewise.
1177 * parse.c (parse_exp_in_context): Update call to post_parser.
1178 (null_post_parser): Delete definition.
1179 * parser-defs.h (null_post_parser): Delete declaration.
1180 * rust-lang.c (rust_language_data): Delete la_post_parser
1181 initializer.
1182
1183 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * ada-lang.c (parse): Rename to ada_language::parser.
1186 (ada_language_data): Delete la_parser initializer.
1187 (ada_language::parser): New member function, implementation from
1188 parse.
1189 * c-lang.c (c_language_data): Delete la_parser initializer.
1190 (cplus_language_data): Likewise.
1191 (asm_language_data): Likewise.
1192 (minimal_language_data): Likewise.
1193 * d-lang.c (d_language_data): Likewise.
1194 (d_language::parser): New member function.
1195 * f-lang.c (f_language_data): Delete la_parser initializer.
1196 (f_language::parser): New member function.
1197 * go-lang.c (go_language_data): Delete la_parser initializer.
1198 (go_language::parser): New member function.
1199 * language.c (unk_lang_parser): Delete.
1200 (language_defn::parser): Define new member function.
1201 (unknown_language_data): Delete la_parser initializer.
1202 (unknown_language::parser): New member function.
1203 (auto_language_data): Delete la_parser initializer.
1204 (auto_language::parser): New member function.
1205 * language.h (language_data): Delete la_parser field.
1206 (language_defn::parser): Declare new member function.
1207 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1208 (m2_language::parser): New member function.
1209 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1210 * opencl-lang.c (opencl_language_data): Likewise.
1211 * p-lang.c (pascal_language_data): Likewise.
1212 (pascal_language::parser): New member function.
1213 * parse.c (parse_exp_in_context): Update call to parser.
1214 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1215 (rust_language::parser): New member function.
1216
1217 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * top.c (print_gdb_configuration): Print --with-python-libdir
1220 configuration value.
1221
1222 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1223
1224 * NEWS: Mention change to the alias command.
1225
1226 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1227
1228 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1229 (alias_command_completer)
1230 (make_alias_options_def_group): New functions.
1231 (alias_opts, alias_option_defs): New struct and array.
1232 (alias_usage_error): Update usage.
1233 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1234 Use option framework.
1235 (_initialize_cli_cmds): Update alias command help.
1236 Update aliases command help.
1237 (show_user):
1238 Add NULL for new default_args lookup_cmd argument.
1239 (valid_command_p): Rename to validate_aliased_command.
1240 Add NULL for new default_args lookup_cmd argument. Verify that the
1241 aliased_command has no default args.
1242 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1243 (lookup_cmd_1, lookup_cmd): New argument default_args.
1244 (add_alias_cmd):
1245 Add NULL for new default_args lookup_cmd argument.
1246 (print_help_for_command): Show default args under the layout
1247 alias some_alias = some_aliased_cmd some_alias_default_arg.
1248 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1249 xfree default_args in destructor.
1250 * cli/cli-script.c (process_next_line, do_define_command):
1251 Add NULL for new default_args lookup_cmd argument.
1252 * command.h: Declare new default_args argument in lookup_cmd
1253 and lookup_cmd_1.
1254 * completer.c (complete_line_internal_1):
1255 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1256 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1257 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1258 Likewise.
1259 * infcmd.c (_initialize_infcmd): Likewise.
1260 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1261 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1262 * python/py-param.c (add_setshow_generic): Likewise.
1263 * remote.c (_initialize_remote): Likewise.
1264 * top.c (execute_command): Prepend default_args if command has some.
1265 (set_verbose):
1266 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1267 * tracepoint.c (validate_actionline, encode_actions_1):
1268 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1269
1270 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 * jit.c (jit_read_descriptor): Use bool as the return type.
1273 (jit_breakpoint_re_set_internal): Use bool as the return type.
1274 Invert the return value logic; return true if the jit breakpoint
1275 has been successfully initialized.
1276 (jit_inferior_init): Update the call to
1277 jit_breakpoint_re_set_internal.
1278
1279 2020-06-22 Pedro Alves <palves@redhat.com>
1280
1281 PR gdb/25939
1282 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1283 Use the current inferior instead. Don't return
1284 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1285 wait again.
1286 * sol-thread.c (sol_thread_target::wait): Don't reference
1287 inferior_ptid.
1288 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1289 (sol_update_thread_list_callback): Use the current inferior's pid
1290 instead of inferior_ptid.
1291
1292 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293
1294 * procfs.c: Cleanup many comments.
1295
1296 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1297 (AFTER_WATCHFLAG): Replace by value.
1298
1299 (MAIN_PROC_NAME_FORMAT): Inline ...
1300 (create_procinfo): ... here.
1301
1302 (procfs_debug_inferior): Remove SYS_exec handling.
1303 (syscall_is_exec): Likewise.
1304 (procfs_set_exec_trap): Likewise.
1305
1306 (syscall_is_lwp_exit): Inline in callers.
1307 (syscall_is_exit): Likewise.
1308 (syscall_is_exec): Likewise.
1309 (syscall_is_lwp_create): Likewise.
1310
1311 (invalidate_cache): Remove #if 0 code.
1312
1313 (make_signal_thread_runnable): Remove.
1314 (procfs_target::resume): Remove #if 0 code.
1315
1316 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1317
1318 PR gdb/25939
1319 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1320 call ...
1321 (procfs_target::create_inferior): ... here.
1322
1323 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1324
1325 * exec.c (validate_exec_file): Ensure the build-id is up to
1326 date by calling reopen_exec_file (that checks file timestamp
1327 to decide to re-read the file).
1328
1329 2020-06-18 Pedro Alves <palves@redhat.com>
1330
1331 PR gdb/25412
1332 * gdbthread.h (delete_thread, delete_thread_silent)
1333 (find_thread_ptid): Update comments.
1334 * thread.c (current_thread_): New global.
1335 (is_current_thread): Move higher, and reimplement.
1336 (inferior_thread): Reimplement.
1337 (set_thread_exited): Use bool. Add assertions.
1338 (add_thread_silent): Simplify thread-reuse handling by always
1339 calling delete_thread.
1340 (delete_thread): Remove intro comment.
1341 (find_thread_ptid): Skip exited threads.
1342 (switch_to_thread_no_regs): Write to current_thread_.
1343 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1344 INFERIOR_PTID. Clear current_thread_.
1345
1346 2020-06-18 Pedro Alves <palves@redhat.com>
1347
1348 * aix-thread.c (pd_update): Use switch_to_thread.
1349
1350 2020-06-18 Pedro Alves <palves@redhat.com>
1351
1352 * ravenscar-thread.c (ravenscar_thread_target): Update.
1353 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1354 (ravenscar_thread_target::add_active_thread): ... this. Don't
1355 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1356 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1357
1358 2020-06-18 Pedro Alves <palves@redhat.com>
1359
1360 * nat/windows-nat.c (current_windows_thread): Remove.
1361 * nat/windows-nat.h (current_windows_thread): Remove.
1362 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1363 Adjust.
1364 (display_selectors): Adjust to fetch the current
1365 windows_thread_info based on inferior_ptid.
1366 (fake_create_process): No longer write to current_windows_thread.
1367 (windows_nat_target::get_windows_debug_event):
1368 Don't set inferior_ptid or current_windows_thread.
1369 (windows_nat_target::wait): Adjust to not rely on
1370 current_windows_thread.
1371 (do_initial_windows_stuff): Now a method of windows_nat_target.
1372 Switch to the last_ptid thread.
1373 (windows_nat_target::attach): Adjust.
1374 (windows_nat_target::detach): Use switch_to_no_thread instead of
1375 writing to inferior_ptid directly.
1376 (windows_nat_target::create_inferior): Adjust.
1377
1378 2020-06-18 Pedro Alves <palves@redhat.com>
1379
1380 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1381
1382 2020-06-18 Pedro Alves <palves@redhat.com>
1383
1384 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1385 after creating it, instead of writing to inferior_ptid. Don't
1386 write to inferior_ptid.
1387
1388 2020-06-18 Pedro Alves <palves@redhat.com>
1389
1390 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1391
1392 2020-06-18 Pedro Alves <palves@redhat.com>
1393
1394 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1395 it, instead of writing to inferior_ptid.
1396
1397 2020-06-18 Pedro Alves <palves@redhat.com>
1398
1399 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1400 to inferior_ptid.
1401
1402 2020-06-18 Pedro Alves <palves@redhat.com>
1403
1404 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1405 instead of writing to inferior_ptid directly.
1406
1407 2020-06-18 Pedro Alves <palves@redhat.com>
1408
1409 * corelow.c (core_target::close): Use switch_to_no_thread instead
1410 of writing to inferior_ptid directly.
1411 (add_to_thread_list, core_target_open): Use switch_to_thread
1412 instead of writing to inferior_ptid directly.
1413
1414 2020-06-18 Pedro Alves <palves@redhat.com>
1415
1416 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1417 inferior_ptid.
1418 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1419 inferior_ptid.
1420 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1421 inferior_ptid directly.
1422 (darwin_nat_target::init_thread_list): Switch to thread, instead
1423 of writing to inferior_ptid.
1424 (darwin_nat_target::attach): Don't write to inferior_ptid.
1425 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1426
1427 2020-06-18 Pedro Alves <palves@redhat.com>
1428
1429 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1430 thread.
1431 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1432 Instead use switch_to_thread.
1433 (gnu_nat_target::detach): Use switch_to_no_thread
1434 instead of writing to inferior_ptid directly. Used passed-in
1435 inferior instead of looking up the inferior by pid.
1436
1437 2020-06-18 Pedro Alves <palves@redhat.com>
1438
1439 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1440 inferior_ptid.
1441
1442 2020-06-18 Pedro Alves <palves@redhat.com>
1443
1444 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1445 inferior_ptid.
1446 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1447 thread.
1448 (nto_procfs_target::detach): Avoid referencing
1449 inferior_ptid. Use switch_to_no_thread instead of writing to
1450 inferior_ptid directly.
1451 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1452 instead of writing to inferior_ptid directly.
1453 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1454 to thread.
1455
1456 2020-06-18 Pedro Alves <palves@redhat.com>
1457
1458 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1459 after creating it, instead of writing to inferior_ptid.
1460 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1461 to inferior_ptid directly.
1462 (gdbsim_target::wait): Don't write to inferior_ptid.
1463
1464 2020-06-18 Pedro Alves <palves@redhat.com>
1465
1466 * remote.c (remote_target::remote_notice_new_inferior): Use
1467 switch_to_thread instead of writing to inferior_ptid directly.
1468 (remote_target::add_current_inferior_and_thread): Use
1469 switch_to_no_thread instead of writing to inferior_ptid directly.
1470 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1471 and switch_to_thread instead of using set_current_inferior or
1472 writing to inferior_ptid directly.
1473
1474 2020-06-18 Pedro Alves <palves@redhat.com>
1475
1476 * tracectf.c (ctf_target_open): Switch to added thread instead of
1477 writing to inferior_ptid directly.
1478 (ctf_target::close): Use switch_to_no_thread instead of writing to
1479 inferior_ptid directly.
1480
1481 2020-06-18 Pedro Alves <palves@redhat.com>
1482
1483 * tracefile-tfile.c (tfile_target_open): Don't write to
1484 inferior_ptid directly, instead switch to added thread.
1485 (tfile_target::close): Use switch_to_no_thread instead of writing
1486 to inferior_ptid directly.
1487
1488 2020-06-18 Pedro Alves <palves@redhat.com>
1489
1490 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1491 (procfs_target::detach): Use switch_to_no_thread
1492 instead of writing to inferior_ptid directly.
1493 (do_attach): Change return type to void. Switch to the added
1494 thread.
1495 (procfs_target::create_inferior): Switch to the added thread.
1496 (procfs_do_thread_registers): Don't write to inferior_ptid.
1497
1498 2020-06-18 Pedro Alves <palves@redhat.com>
1499
1500 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1501 of writing to inferior_ptid.
1502 (scoped_restore_exited_inferior): Delete.
1503 (handle_vfork_child_exec_or_exit): Simplify using
1504 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1505 instead of writing to inferior_ptid.
1506 (THREAD_STOPPED_BY): Delete.
1507 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1508 (thread_stopped_by_hw_breakpoint): Delete.
1509 (save_waitstatus): Use
1510 scoped_restore_current_thread+switch_to_thread, and call
1511 target_stopped_by_watchpoint instead of
1512 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1513 instead of thread_stopped_by_sw_breakpoint, and
1514 target_stopped_by_hw_breakpoint instead of
1515 thread_stopped_by_hw_breakpoint.
1516 (handle_inferior_event)
1517 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1518 inferior_ptid directly, nor
1519 set_current_inferior/set_current_program_space. Use
1520 switch_to_thread / switch_to_inferior_no_thread instead.
1521
1522 2020-06-18 Pedro Alves <palves@redhat.com>
1523
1524 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1525 instead of writing to inferior_ptid.
1526
1527 2020-06-18 Pedro Alves <palves@redhat.com>
1528
1529 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1530 added thread.
1531 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1532 to the added thread.
1533 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1534 instead of writing to inferior_ptid.
1535
1536 2020-06-18 Pedro Alves <palves@redhat.com>
1537
1538 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1539 (register_to_value_test): Mock a program_space too. Heap-allocate
1540 the address space. Don't write to inferior_ptid. Use
1541 switch_to_thread instead.
1542
1543 2020-06-18 Pedro Alves <palves@redhat.com>
1544
1545 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1546 Delete.
1547 (find_signalled_thread()): New, factored out from
1548 linux_make_corefile_notes and adjusted to handle exited threads.
1549 (linux_make_corefile_notes): Adjust to use the new
1550 find_signalled_thread.
1551
1552 2020-06-18 Pedro Alves <palves@redhat.com>
1553
1554 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1555 of saving/restoring inferior_ptid.
1556
1557 2020-06-17 Tom Tromey <tom@tromey.com>
1558
1559 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1560 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1561 declare.
1562 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1563
1564 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1565
1566 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1567 of partial symtabs.
1568
1569 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * regformats/reg-arm.dat: Remove.
1572 * regformats/reg-bfin.dat: Remove.
1573 * regformats/reg-cris.dat: Remove.
1574 * regformats/reg-crisv32.dat: Remove.
1575 * regformats/reg-m32r.dat: Remove.
1576 * regformats/reg-tilegx.dat: Remove.
1577 * regformats/reg-tilegx32.dat: Remove.
1578
1579 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * features/Makefile (WHICH): Remove arm files.
1582 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1583 * regformats/arm/arm-with-neon.dat: Remove.
1584 * regformats/arm/arm-with-vfpv2.dat: Remove.
1585 * regformats/arm/arm-with-vfpv3.dat: Remove.
1586
1587 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * features/Makefile (XMLTOC): Remove rx.xml.
1590
1591 2020-06-17 Pedro Alves <palves@redhat.com>
1592
1593 * gdbthread.h (thread_control_state) <trap_expected> Update
1594 comments.
1595
1596 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1599 ada_language::lookup_symbol_nonlocal.
1600 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1601 (ada_language::lookup_symbol_nonlocal): New member function,
1602 implementation from ada_lookup_symbol_nonlocal.
1603 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1604 initializer.
1605 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1606 initializer.
1607 (cplus_language::lookup_symbol_nonlocal): New member function.
1608 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1609 (minimal_language_data) Likewise.
1610 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1611 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1612 initializer.
1613 (d_language::lookup_symbol_nonlocal): New member function.
1614 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1615 initializer.
1616 (f_language::lookup_symbol_nonlocal): New member function.
1617 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1618 initializer.
1619 * language.c (unknown_language_data): Likewise.
1620 (auto_language_data): Likewise.
1621 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1622 field.
1623 (language_defn::lookup_symbol_nonlocal): New member function.
1624 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1625 initializer.
1626 * objc-lang.c (objc_language_data): Likewise.
1627 * opencl-lang.c (opencl_language_data): Likewise.
1628 * p-lang.c (pascal_language_data): Likewise.
1629 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1630 rust_language::lookup_symbol_nonlocal.
1631 (rust_language_data): Delete la_lookup_symbol_nonlocal
1632 initializer.
1633 (rust_language::lookup_symbol_nonlocal): New member function,
1634 implementation from rust_lookup_symbol_nonlocal.
1635 * symtab.c (lookup_symbol_aux): Update call to
1636 lookup_symbol_nonlocal.
1637 (basic_lookup_symbol_nonlocal): Rename to...
1638 (language_defn::lookup_symbol_nonlocal): ...this, and update
1639 header comment. Remove language_defn parameter, and replace with
1640 uses of `this'.
1641 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1642
1643 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1646 initializer.
1647 (ada_language::value_print_inner): New member function.
1648 * c-lang.c (c_language_data): Delete la_value_print_inner
1649 initializer.
1650 (cplus_language_data): Likewise.
1651 (asm_language_data): Likewise.
1652 (minimal_language_data): Likewise.
1653 * d-lang.c (d_language_data): Likewise.
1654 (d_language::value_print_inner): New member function.
1655 * f-lang.c (f_language_data): Delete la_value_print_inner
1656 initializer.
1657 (f_language::value_print_inner): New member function.
1658 * f-lang.h (f_value_print_innner): Rename to...
1659 (f_value_print_inner): ...this (note spelling of 'inner').
1660 * f-valprint.c (f_value_print_innner): Rename to...
1661 (f_value_print_inner): ...this (note spelling of 'inner').
1662 * go-lang.c (go_language_data): Delete la_value_print_inner
1663 initializer.
1664 (go_language::value_print_inner): New member function.
1665 * language.c (language_defn::value_print_inner): Define new member
1666 function.
1667 (unk_lang_value_print_inner): Delete.
1668 (unknown_language_data): Delete la_value_print_inner initializer.
1669 (unknown_language::value_print_inner): New member function.
1670 (auto_language_data): Delete la_value_print_inner initializer.
1671 (auto_language::value_print_inner): New member function.
1672 * language.h (language_data): Delete la_value_print_inner field.
1673 (language_defn::value_print_inner): Delcare new member function.
1674 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1675 initializer.
1676 (m2_language::value_print_inner): New member function.
1677 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1678 initializer.
1679 * opencl-lang.c (opencl_language_data): Likewise.
1680 * p-lang.c (pascal_language_data): Likewise.
1681 (pascal_language::value_print_inner): New member function.
1682 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1683 initializer.
1684 (rust_language::value_print_inner): New member function.
1685 * valprint.c (do_val_print): Update call to value_print_inner.
1686
1687 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * ada-lang.c (ada_language_data): Delete la_value_print
1690 initializer.
1691 (ada_language::value_print): New member function.
1692 * c-lang.c (c_language_data): Delete la_value_print initializer.
1693 (cplus_language_data): Likewise.
1694 (asm_language_data): Likewise.
1695 (minimal_language_data): Likewise.
1696 * d-lang.c (d_language_data): Likewise.
1697 * f-lang.c (f_language_data): Likewise.
1698 * go-lang.c (go_language_data): Likewise.
1699 * language.c (unk_lang_value_print): Delete.
1700 (language_defn::value_print): Define new member function.
1701 (unknown_language_data): Delete la_value_print initializer.
1702 (unknown_language::value_print): New member function.
1703 (auto_language_data): Delete la_value_print initializer.
1704 (auto_language::value_print): New member function.
1705 * language.h (language_data): Delete la_value_print field.
1706 (language_defn::value_print): Declare new member function.
1707 (LA_VALUE_PRINT): Update call to value_print.
1708 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1709 * objc-lang.c (objc_language_data): Likewise.
1710 * opencl-lang.c (opencl_language_data): Likewise.
1711 * p-lang.c (pascal_language_data): Likewise.
1712 (pascal_language::value_print): New member function.
1713 * rust-lang.c (rust_language_data): Delete la_value_print
1714 initializer.
1715
1716 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * ada-lang.c (ada_watch_location_expression): Rename to
1719 ada_language::watch_location_expression.
1720 (ada_language_data): Delete la_watch_location_expression
1721 initializer.
1722 (ada_language::watch_location_expression): New member function,
1723 implementation from ada_watch_location_expression.
1724 * breakpoint.c (watch_command_1): Update call to
1725 watch_location_expression.
1726 * c-lang.c (c_watch_location_expression): Rename to
1727 language_defn::watch_location_expression.
1728 (c_language_data): Delete la_watch_location_expression
1729 initializer.
1730 (cplus_language_data): Likewise.
1731 (asm_language_data): Likewise.
1732 (minimal_language_data): Likewise.
1733 * c-lang.h (c_watch_location_expression): Delete declaration.
1734 * d-lang.c (d_language_data): Delete la_watch_location_expression
1735 initializer.
1736 * f-lang.c (f_language_data): Likewise.
1737 * go-lang.c (go_language_data): Likewise.
1738 * language.c (language_defn::watch_location_expression): Member
1739 function implementation from c_watch_location_expression.
1740 (unknown_language_data): Delete la_watch_location_expression
1741 initializer.
1742 (auto_language_data): Likewise.
1743 * language.h (language_data): Delete la_watch_location_expression
1744 field.
1745 (language_defn::watch_location_expression): Declare new member
1746 function.
1747 * m2-lang.c (m2_language_data): Delete
1748 la_watch_location_expression initializer.
1749 * objc-lang.c (objc_language_data): Likewise.
1750 * opencl-lang.c (opencl_language_data): Likewise.
1751 * p-lang.c (pascal_language_data): Likewise.
1752 * rust-lang.c (rust_watch_location_expression): Rename to
1753 rust_language::watch_location_expression.
1754 (rust_language_data): Delete la_watch_location_expression
1755 initializer.
1756 (rust_language::watch_location_expression): New member function,
1757 implementation from rust_watch_location_expression.
1758
1759 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1762 ada_language::collect_symbol_completion_matches.
1763 (ada_language_data): Delete la_collect_symbol_completion_matches
1764 initializer.
1765 (ada_language::collect_symbol_completion_matches): New member
1766 function, implementation from
1767 ada_collect_symbol_completion_matches.
1768 * c-lang.c (c_language_data): Delete
1769 la_collect_symbol_completion_matches initializer.
1770 (cplus_language_data): Likewise.
1771 (asm_language_data): Likewise.
1772 (minimal_language_data): Likewise.
1773 * d-lang.c (d_language_data): Likewise.
1774 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1775 f_language::collect_symbol_completion_matches.
1776 (f_language_data): Delete la_collect_symbol_completion_matches
1777 initializer.
1778 (f_language::collect_symbol_completion_matches) New member
1779 function, implementation from f_collect_symbol_completion_matches.
1780 * go-lang.c (go_language_data): Delete
1781 la_collect_symbol_completion_matches initializer.
1782 * language.c (unknown_language_data): Likewise.
1783 (auto_language_data): Likewise.
1784 * language.h (language_data): Delete
1785 la_collect_symbol_completion_matches field.
1786 (language_defn::collect_symbol_completion_matches): New member
1787 function.
1788 * m2-lang.c (m2_language_data): Delete
1789 la_collect_symbol_completion_matches initializer.
1790 * objc-lang.c (objc_language_data): Likewise.
1791 * opencl-lang.c (opencl_language_data): Likewise.
1792 * p-lang.c (pascal_language_data): Likewise.
1793 * rust-lang.c (rust_language_data): Likewise.
1794 * symtab.c (default_collect_symbol_completion_matches): Delete.
1795 (collect_symbol_completion_matches): Update call to
1796 collect_symbol_completion_matches.
1797 (collect_symbol_completion_matches_type): Likewise.
1798 * symtab.h (default_collect_symbol_completion_matches): Delete
1799 declaration.
1800
1801 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1804 (ada_language_data): Delete la_word_break_characters initializer.
1805 (ada_language::word_break_characters): New member function.
1806 * c-lang.c (c_language_data): Delete la_word_break_characters
1807 initializer.
1808 (cplus_language_data): Likewise.
1809 (asm_language_data): Likewise.
1810 (minimal_language_data): Likewise.
1811 * completer.c: Update global comment.
1812 (advance_to_expression_complete_word_point): Update call to
1813 word_break_characters.
1814 (complete_files_symbols): Likewise.
1815 (complete_line_internal_1): Likewise.
1816 (default_completer_handle_brkchars): Likewise.
1817 (skip_quoted_chars): Likewise.
1818 * d-lang.c (d_language_data): Delete la_word_break_characters
1819 initializer.
1820 * f-lang.c (f_word_break_characters): Delete.
1821 (f_language_data): Delete la_word_break_characters initializer.
1822 (f_language::word_break_characters): New member function.
1823 * go-lang.c (go_language_data): Delete la_word_break_characters
1824 initializer.
1825 * language.c (unknown_language_data): Likewise.
1826 (auto_language_data): Likewise.
1827 * language.h (default_word_break_characters): Move declaration to
1828 earlier in the file.
1829 (language_data): Delete la_word_break_characters field.
1830 (language_defn::word_break_characters): New member function.
1831 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1832 initializer.
1833 * objc-lang.c (objc_language_data): Likewise.
1834 * opencl-lang.c (opencl_language_data): Likewise.
1835 * p-lang.c (pascal_language_data): Likewise.
1836 * rust-lang.c (rust_language_data): Likewise.
1837
1838 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1841 (ada_language_data): Delete la_get_symbol_name_matcher
1842 initializer.
1843 (language_defn::get_symbol_name_matcher_inner): New member
1844 function.
1845 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1846 initializer.
1847 (cplus_language_data): Likewise.
1848 (cplus_language::get_symbol_name_matcher_inner): New member
1849 function.
1850 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1851 (minimal_language_data): Likewise.
1852 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1853 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1854 initializer.
1855 * dictionary.c (iter_match_first_hashed): Update call to
1856 get_symbol_name_matcher.
1857 (iter_match_next_hashed): Likewise.
1858 (iter_match_next_linear): Likewise.
1859 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1860 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1861 initializer.
1862 (f_language::get_symbol_name_matcher_inner): New member function.
1863 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1864 initializer.
1865 * language.c (default_symbol_name_matcher): Update header comment,
1866 make static.
1867 (language_defn::get_symbol_name_matcher): New definition.
1868 (language_defn::get_symbol_name_matcher_inner): Likewise.
1869 (get_symbol_name_matcher): Delete.
1870 (unknown_language_data): Delete la_get_symbol_name_matcher
1871 initializer.
1872 (auto_language_data): Likewise.
1873 * language.h (language_data): Delete la_get_symbol_name_matcher
1874 field.
1875 (language_defn::get_symbol_name_matcher): New member function.
1876 (language_defn::get_symbol_name_matcher_inner): Likewise.
1877 (default_symbol_name_matcher): Delete declaration.
1878 * linespec.c (find_methods): Update call to
1879 get_symbol_name_matcher.
1880 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1881 initializer.
1882 * minsyms.c (lookup_minimal_symbol): Update call to
1883 get_symbol_name_matcher.
1884 (iterate_over_minimal_symbols): Likewise.
1885 * objc-lang.c (objc_language_data): Delete
1886 la_get_symbol_name_matcher initializer.
1887 * opencl-lang.c (opencl_language_data): Likewise.
1888 * p-lang.c (pascal_language_data): Likewise.
1889 * psymtab.c (psymbol_name_matches): Update call to
1890 get_symbol_name_matcher.
1891 * rust-lang.c (rust_language_data): Delete
1892 la_get_symbol_name_matcher initializer.
1893 * symtab.c (symbol_matches_search_name): Update call to
1894 get_symbol_name_matcher.
1895 (compare_symbol_name): Likewise.
1896
1897 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * ada-lang.c (ada_language_data): Delete la_compute_program
1900 initializer.
1901 * c-lang.c (c_language_data): Likewise.
1902 (c_language::compute_program): New member function.
1903 (cplus_language_data): Delete la_compute_program initializer.
1904 (cplus_language::compute_program): New member function.
1905 (asm_language_data): Delete la_compute_program initializer.
1906 (minimal_language_data): Likewise.
1907 * c-lang.h (c_compute_program): Update comment.
1908 (cplus_compute_program): Likewise.
1909 * compile/compile-c-support.c (c_compute_program): Likewise.
1910 (cplus_compute_program): Likewise.
1911 * compile/compile.c (compile_to_object): Update call to
1912 la_compute_program.
1913 * d-lang.c (d_language_data): Delete la_compute_program
1914 initializer.
1915 * f-lang.c (f_language_data): Likewise.
1916 * go-lang.c (go_language_data): Likewise.
1917 * language.c (unknown_language_data): Likewise.
1918 (auto_language_data): Likewise.
1919 * language.h (language_data): Delete la_compute_program field.
1920 (language_defn::compute_program): New member function.
1921 * m2-lang.c (m2_language_data): Delete la_compute_program
1922 initializer.
1923 * objc-lang.c (objc_language_data): Likewise.
1924 * opencl-lang.c (opencl_language_data): Likewise.
1925 * p-lang.c (pascal_language_data): Likewise.
1926 * rust-lang.c (rust_language_data): Likewise.
1927
1928 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * ada-lang.c (ada_language_data) Delete
1931 la_class_name_from_physname initializer.
1932 * c-lang.c (c_language_data): Likewise.
1933 (cplus_language_data): Likewise.
1934 (cplus_language::class_name_from_physname): New member function.
1935 (asm_language_data): Delete la_class_name_from_physname
1936 initializer.
1937 (minimal_language_data): Likewise.
1938 * d-lang.c (d_language_data): Likewise.
1939 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1940 method on language_defn class.
1941 (guess_full_die_structure_name): Likewise.
1942 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1943 initializer.
1944 * go-lang.c (go_language_data): Likewise.
1945 * language.c (language_class_name_from_physname): Delete.
1946 (unk_lang_class_name): Delete.
1947 (unknown_language_data): Delete la_class_name_from_physname
1948 initializer.
1949 (auto_language_data): Likewise.
1950 * language.h (language_data): Delete la_class_name_from_physname
1951 field.
1952 (language_defn::class_name_from_physname): New function.
1953 (language_class_name_from_physname): Delete declaration.
1954 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1955 initializer.
1956 * objc-lang.c (objc_language_data): Likewise.
1957 * opencl-lang.c (opencl_language_data): Likewise.
1958 * p-lang.c (pascal_language_data): Likewise.
1959 * rust-lang.c (rust_language_data): Likewise.
1960
1961 2020-06-16 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-data.h (STATUS_NAME): New macro.
1964 * tui/tui-layout.c (tui_remove_some_windows)
1965 (initialize_known_windows, tui_register_window)
1966 (tui_layout_split::remove_windows, initialize_layouts)
1967 (tui_new_layout_command): Don't use hard-coded window names.
1968
1969 2020-06-16 Tom Tromey <tom@tromey.com>
1970
1971 PR tui/25348:
1972 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1973 tui_initialize_readline. Only run once. Call rl_initialize.
1974 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1975 tui_initialize_readline.
1976 * tui/tui-io.c (tui_setup_io): Call
1977 tui_ensure_readline_initialized.
1978 * tui/tui-interp.c (tui_interp::init): Update.
1979
1980 2020-06-16 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1983 Also preserve the status window.
1984
1985 2020-06-16 Tom Tromey <tom@tromey.com>
1986
1987 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1988 where m_window==nullptr.
1989
1990 2020-06-15 Tom Tromey <tromey@adacore.com>
1991
1992 * windows-nat.c (windows_nat::handle_output_debug_string):
1993 Update.
1994 (windows_nat::handle_ms_vc_exception): Update.
1995 * target.h (target_read_string): Change API.
1996 * target.c (target_read_string): Change API.
1997 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1998 Update.
1999 * solib-frv.c (frv_current_sos): Update.
2000 * solib-dsbt.c (dsbt_current_sos): Update.
2001 * solib-darwin.c (darwin_current_sos): Update.
2002 * linux-thread-db.c (inferior_has_bug): Update.
2003 * expprint.c (print_subexp_standard): Update.
2004 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2005 (ada_exception_message_1): Update.
2006
2007 2020-06-15 Tom Tromey <tromey@adacore.com>
2008
2009 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2010
2011 2020-06-15 Tom Tromey <tromey@adacore.com>
2012
2013 * valprint.c (read_string): Update comment.
2014 * target.c (MIN): Remove.
2015 (target_read_string): Rewrite.
2016
2017 2020-06-15 Tom Tromey <tromey@adacore.com>
2018
2019 * corefile.c (read_memory_string): Remove.
2020 * ada-valprint.c (ada_value_print_ptr): Update.
2021 * ada-lang.h (ada_tag_name): Change return type.
2022 * ada-lang.c (type_from_tag): Update.
2023 (ada_tag_name_from_tsd): Change return type. Use
2024 target_read_string.
2025 (ada_tag_name): Likewise.
2026 * gdbcore.h (read_memory_string): Don't declare.
2027
2028 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2029
2030 * symtab.c (rbreak_command): Ignore Windows drive colon.
2031
2032 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2033
2034 * NEWS: Mention removed GDBserver host support.
2035
2036 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2037
2038 * features/riscv/rebuild-csr-xml.sh: Updated.
2039
2040 2020-06-11 Tom Tromey <tom@tromey.com>
2041
2042 PR gdb/18318:
2043 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2044
2045 2020-06-09 Jonny Grant <jg@jguk.org>
2046 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * main.c (captured_main_1): Don't print new line after help.
2049 (print_gdb_help): add mailing list and IRC channel information
2050 to --help. Add new lines between items in the footer. Remove
2051 quotes around bug url.
2052
2053 2020-06-11 Keith Seitz <keiths@redhat.com>
2054
2055 PR gdb/21356
2056 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2057 Resolve typedefs for type length calculations.
2058
2059 2020-06-10 Tom de Vries <tdevries@suse.de>
2060
2061 PR ada/24713
2062 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2063 (write_psymbols): Enable .gdb_index for ada.
2064 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2065 ada.
2066
2067 2020-06-10 Tom de Vries <tdevries@suse.de>
2068
2069 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2070 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2071 namei" instead of "const char *name" argument.
2072 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2073 dw2_symtab_iter_init.
2074
2075 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2078 to use type::field and field::type instead.
2079
2080 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2083 to use field::type instead.
2084
2085 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2086
2087 * gdbtypes.h (struct field) <type, set_type>: New methods.
2088 Rename `type` field to...
2089 <m_type>: ... this. Change references throughout to use type or
2090 set_type methods.
2091 (FIELD_TYPE): Use field::type. Change call sites that modify
2092 the field's type to use field::set_type instead.
2093
2094 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2095
2096 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2097 to use type::index_type instead.
2098
2099 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2100
2101 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2102 methods.
2103 (TYPE_INDEX_TYPE): Use type::index_type.
2104 * gdbtypes.c (create_array_type_with_stride): Likewise.
2105
2106 2020-06-07 Tom Tromey <tom@tromey.com>
2107
2108 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2109 parameter.
2110 (generic_value_print): Update.
2111
2112 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 Revert commit 982a38f60b0.
2115 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2116
2117 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2120 avoid use after free.
2121
2122 2020-06-05 Tom de Vries <tdevries@suse.de>
2123
2124 * NEWS: Fix typos.
2125
2126 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2129 the per_bfd object.
2130 (dwarf2_read_debug_names): Likewise.
2131 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2132 object when re-using a per_bfd object with an index.
2133
2134 2020-06-03 Tom de Vries <tdevries@suse.de>
2135
2136 PR symtab/26046
2137 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2138 children for C++.
2139 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2140 DW_TAG_subprogram.
2141
2142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * ada-lang.c (ada_language_data): Delete skip_trampoline
2145 initializer.
2146 * c-lang.c (c_language_data): Likewise.
2147 (cplus_language_data): Likewise.
2148 (cplus_language::skip_trampoline): New member function.
2149 (asm_language_data): Delete skip_trampoline initializer.
2150 (minimal_language_data): Likewise.
2151 * d-lang.c (d_language_data): Likewise.
2152 * f-lang.c (f_language_data): Likewise.
2153 * go-lang.c (go_language_data): Likewise.
2154 * language.c (unk_lang_trampoline): Delete function.
2155 (skip_language_trampoline): Update.
2156 (unknown_language_data): Delete skip_trampoline initializer.
2157 (auto_language_data): Likewise.
2158 * language.h (language_data): Delete skip_trampoline field.
2159 (language_defn::skip_trampoline): New function.
2160 * m2-lang.c (m2_language_data): Delete skip_trampoline
2161 initializer.
2162 * objc-lang.c (objc_skip_trampoline): Delete function, move
2163 implementation to objc_language::skip_trampoline.
2164 (objc_language_data): Delete skip_trampoline initializer.
2165 (objc_language::skip_trampoline): New member function with
2166 implementation from objc_skip_trampoline.
2167 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2168 initializer.
2169 * p-lang.c (pascal_language_data): Likewise.
2170 * rust-lang.c (rust_language_data): Likewise.
2171
2172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2175 (ada_language::demangle): New member function.
2176 * c-lang.c (c_language_data): Delete la_demangle initializer.
2177 (cplus_language_data): Delete la_demangle initializer.
2178 (cplus_language::demangle): New member function.
2179 (asm_language_data): Delete la_demangle initializer.
2180 (minimal_language_data): Delete la_demangle initializer.
2181 * d-lang.c (d_language_data): Delete la_demangle initializer.
2182 (d_language::demangle): New member function.
2183 * f-lang.c (f_language_data): Delete la_demangle initializer.
2184 (f_language::demangle): New member function.
2185 * go-lang.c (go_language_data): Delete la_demangle initializer.
2186 (go_language::demangle): New member function.
2187 * language.c (language_demangle): Update.
2188 (unk_lang_demangle): Delete.
2189 (unknown_language_data): Delete la_demangle initializer.
2190 (unknown_language::demangle): New member function.
2191 (auto_language_data): Delete la_demangle initializer.
2192 (auto_language::demangle): New member function.
2193 * language.h (language_data): Delete la_demangle field.
2194 (language_defn::demangle): New function.
2195 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2196 * objc-lang.c (objc_language_data): Delete la_demangle
2197 initializer.
2198 (objc_language::demangle): New member function.
2199 * opencl-lang.c (opencl_language_data): Delete la_demangle
2200 initializer.
2201 * p-lang.c (pascal_language_data): Likewise.
2202 * rust-lang.c (rust_language_data): Likewise.
2203 (rust_language::demangle): New member function.
2204
2205 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_language_data): Delete la_print_type
2208 initializer.
2209 (ada_language::print_type): New member function.
2210 * c-lang.c (c_language_data): Delete la_print_type initializer.
2211 (c_language::print_type): New member function.
2212 (cplus_language_data): Delete la_print_type initializer.
2213 (cplus_language::print_type): New member function.
2214 (asm_language_data): Delete la_print_type initializer.
2215 (asm_language::print_type): New member function.
2216 (minimal_language_data): Delete la_print_type initializer.
2217 (minimal_language::print_type): New member function.
2218 * d-lang.c (d_language_data): Delete la_print_type initializer.
2219 (d_language::print_type): New member function.
2220 * f-lang.c (f_language_data): Delete la_print_type initializer.
2221 (f_language::print_type): New member function.
2222 * go-lang.c (go_language_data): Delete la_print_type initializer.
2223 (go_language::print_type): New member function.
2224 * language.c (unk_lang_print_type): Delete.
2225 (unknown_language_data): Delete la_print_type initializer.
2226 (unknown_language::print_type): New member function.
2227 (auto_language_data): Delete la_print_type initializer.
2228 (auto_language::print_type): New member function.
2229 * language.h (language_data): Delete la_print_type field.
2230 (language_defn::print_type): New function.
2231 (LA_PRINT_TYPE): Update.
2232 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2233 (m2_language::print_type): New member function.
2234 * objc-lang.c (objc_language_data): Delete la_print_type
2235 initializer.
2236 (objc_language::print_type): New member function.
2237 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2238 to opencl_language::print_type.
2239 (opencl_language_data): Delete la_print_type initializer.
2240 (opencl_language::print_type): New member function, implementation
2241 from opencl_print_type.
2242 * p-lang.c (pascal_language_data): Delete la_print_type
2243 initializer.
2244 (pascal_language::print_type): New member function.
2245 * rust-lang.c (rust_print_type): Delete, implementation moved to
2246 rust_language::print_type.
2247 (rust_language_data): Delete la_print_type initializer.
2248 (rust_language::print_type): New member function, implementation
2249 from rust_print_type.
2250
2251 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2254 implementation moves to...
2255 (ada_language::sniff_from_mangled_name): ...here. Update return
2256 type.
2257 (ada_language_data): Delete la_sniff_from_mangled_name
2258 initializer.
2259 * c-lang.c (c_language_data): Likewise.
2260 (cplus_language_data): Likewise.
2261 (cplus_language::sniff_from_mangled_name): New member function,
2262 implementation taken from gdb_sniff_from_mangled_name.
2263 (asm_language_data): Delete la_sniff_from_mangled_name
2264 initializer.
2265 (minimal_language_data): Likewise.
2266 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2267 implementation moves to cplus_language::sniff_from_mangled_name.
2268 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2269 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2270 moves to...
2271 (d_language::sniff_from_mangled_name): ...here.
2272 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2273 * f-lang.c (f_language_data): Likewise.
2274 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2275 moves to...
2276 (go_language::sniff_from_mangled_name): ...here.
2277 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2278 * language.c (language_sniff_from_mangled_name): Delete.
2279 (unknown_language_data): Delete la_sniff_from_mangled_name
2280 initializer.
2281 (auto_language_data): Likewise.
2282 * language.h (language_data): Delete la_sniff_from_mangled_name
2283 field.
2284 (language_defn::sniff_from_mangled_name): New function.
2285 (language_sniff_from_mangled_name): Delete declaration.
2286 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2287 field.
2288 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2289 implementation moves to...
2290 (objc_language::sniff_from_mangled_name): ...here.
2291 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2292 * opencl-lang.c (opencl_language_data): Likewise.
2293 * p-lang.c (pascal_language_data): Likewise.
2294 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2295 implementation moves to...
2296 (rust_language::sniff_from_mangled_name): ...here.
2297 (rust_language_data): Delete la_sniff_from_mangled_name
2298 initializer.
2299 * symtab.c (symbol_find_demangled_name): Call
2300 sniff_from_mangled_name member function.
2301
2302 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2305 initializer.
2306 * c-lang.c (c_language_data): Likewise.
2307 (cplus_language_data): Likewise.
2308 (cplus_language::search_name_hash): New member function.
2309 (asm_language_data): Delete la_search_name_hash initializer.
2310 (minimal_language_data): Likewise.
2311 * d-lang.c (d_language_data): Likewise.
2312 * dictionary.c (default_search_name_hash): Rename to...
2313 (language_defn::search_name_hash): ...this.
2314 * f-lang.c (f_language_data): Likewise.
2315 (f_language::search_name_hash): New member function.
2316 * go-lang.c (go_language_data): Delete la_search_name_hash
2317 initializer.
2318 * language.c (unknown_language_data): Likewise.
2319 (auto_language_data): Likewise.
2320 * language.h (struct language_data): Delete la_search_name_hash
2321 field.
2322 (language_defn::search_name_hash): Declare new member function.
2323 (default_search_name_hash): Delete declaration.
2324 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2325 initializer.
2326 * objc-lang.c (objc_language_data): Likewise.
2327 * opencl-lang.c (opencl_language_data): Likewise.
2328 * p-lang.c (pascal_language_data): Likewise.
2329 * rust-lang.c (rust_language_data): Likewise.
2330 * symtab.c (search_name_hash): Update call.
2331
2332 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2335 initializer.
2336 * c-lang.c (class compile_instance): Declare.
2337 (c_language_data): Delete la_get_compile_instance initializer.
2338 (c_language::get_compile_instance): New member function.
2339 (cplus_language_data): Delete la_get_compile_instance initializer.
2340 (cplus_language::get_compile_instance): New member function.
2341 (asm_language_data): Delete la_get_compile_instance initializer.
2342 (minimal_language_data): Likewise.
2343 * c-lang.h (c_get_compile_context): Update comment.
2344 (cplus_get_compile_context): Update comment.
2345 * compile/compile.c (compile_to_object): Update calls, don't rely
2346 on function pointer being NULL.
2347 * d-lang.c (d_language_data): Delete la_get_compile_instance
2348 initializer.
2349 * f-lang.c (f_language_data): Likewise.
2350 * go-lang.c (go_language_data): Likewise.
2351 * language.c (unknown_language_data): Likewise.
2352 (auto_language_data): Likewise.
2353 * language.h (language_data): Delete la_get_compile_instance field.
2354 (language_defn::get_compile_instance): New member function.
2355 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2356 initializer.
2357 * objc-lang.c (objc_language_data): Likewise.
2358 * opencl-lang.c (opencl_language_data): Likewise.
2359 * p-lang.c (pascal_language_data): Likewise.
2360 * rust-lang.c (rust_language_data): Likewise.
2361
2362 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * ada-lang.c (ada_add_all_symbols): Update comment.
2365 (ada_iterate_over_symbols): Delete, move implementation to...
2366 (ada_language::iterate_over_symbols): ...here, a new member
2367 function, rewrite to use range based for loop.
2368 (ada_language_data): Delete la_iterate_over_symbols initializer.
2369 * c-lang.c (c_language_data): Likewise.
2370 (cplus_language_data): Likewise.
2371 (asm_language_data): Likewise.
2372 (minimal_language_data): Likewise.
2373 * d-lang.c (d_language_data): Likewise.
2374 * f-lang.c (f_language_data): Likewise.
2375 * go-lang.c (go_language_data): Likewise.
2376 * language.c (unknown_language_data): Likewise.
2377 (auto_language_data): Likewise.
2378 * language.h (language_data): Delete la_iterate_over_symbols field.
2379 (language_defn::iterate_over_symbols): New member function.
2380 (LA_ITERATE_OVER_SYMBOLS): Update.
2381 * linespec.c (iterate_over_all_matching_symtabs): Update.
2382 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2383 initializer.
2384 * objc-lang.c (objc_language_data): Likewise.
2385 * opencl-lang.c (opencl_language_data): Likewise.
2386 * p-lang.c (pascal_language_data): Likewise.
2387 * rust-lang.c (rust_language_data): Likewise.
2388
2389 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 * ada-lang.c (ada_language_data): Delete
2392 la_lookup_transparent_type initializer.
2393 * c-lang.c (c_language_data): Likewise.
2394 (cplus_language_data): Likewise.
2395 (cplus_language::lookup_transparent_type): New member function.
2396 (asm_language_data): Delete la_lookup_transparent_type
2397 initializer.
2398 (minimal_language_data): Likewise.
2399 * d-lang.c (d_language_data): Likewise.
2400 * f-lang.c (f_language_data): Likewise.
2401 * go-lang.c (go_language_data): Likewise.
2402 * language.c (unknown_language_data): Likewise.
2403 (auto_language_data): Likewise.
2404 * language.h (struct language_data): Delete
2405 la_lookup_transparent_type field.
2406 (language_defn::lookup_transparent_type): New member function.
2407 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2408 initializer.
2409 * objc-lang.c (objc_language_data): Likewise.
2410 * opencl-lang.c (opencl_language_data): Likewise.
2411 * p-lang.c (pascal_language_data): Likewise.
2412 * rust-lang.c (rust_language_data): Likewise.
2413 * symtab.c (symbol_matches_domain): Update call.
2414
2415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * ada-lang.c (ada_language_arch_info): Delete function, move
2418 implementation to...
2419 (ada_language::language_arch_info): ...here, a new member
2420 function.
2421 (ada_language_data): Delete la_language_arch_info.
2422 * c-lang.c (c_language_data): Likewise.
2423 (c_language::language_arch_info): New member function.
2424 (cplus_language_arch_info): Delete function, move
2425 implementation to...
2426 (cplus_language::language_arch_info): ...here, a new member
2427 function.
2428 (cplus_language_data): Delete la_language_arch_info.
2429 (asm_language_data): Likewise.
2430 (asm_language::language_arch_info): New member function.
2431 (minimal_language_data): Delete la_language_arch_info.
2432 (minimal_language::language_arch_info): New member function.
2433 * d-lang.c (d_language_arch_info): Delete function, move
2434 implementation to...
2435 (d_language::language_arch_info): ...here, a new member
2436 function.
2437 (d_language_data): Delete la_language_arch_info.
2438 * f-lang.c (f_language_arch_info): Delete function, move
2439 implementation to...
2440 (f_language::language_arch_info): ...here, a new member
2441 function.
2442 (f_language_data): Delete la_language_arch_info.
2443 * go-lang.c (go_language_arch_info): Delete function, move
2444 implementation to...
2445 (go_language::language_arch_info): ...here, a new member
2446 function.
2447 (go_language_data): Delete la_language_arch_info.
2448 * language.c (unknown_language_data): Likewise.
2449 (unknown_language::language_arch_info): New member function.
2450 (auto_language_data): Delete la_language_arch_info.
2451 (auto_language::language_arch_info): New member function.
2452 (language_gdbarch_post_init): Update call to
2453 la_language_arch_info.
2454 * language.h (language_data): Delete la_language_arch_info
2455 function pointer.
2456 (language_defn::language_arch_info): New function.
2457 * m2-lang.c (m2_language_arch_info): Delete function, move
2458 implementation to...
2459 (m2_language::language_arch_info): ...here, a new member
2460 function.
2461 (m2_language_data): Delete la_language_arch_info.
2462 * objc-lang.c (objc_language_arch_info): Delete function, move
2463 implementation to...
2464 (objc_language::language_arch_info): ...here, a new member
2465 function.
2466 (objc_language_data): Delete la_language_arch_info.
2467 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2468 implementation to...
2469 (opencl_language::language_arch_info): ...here, a new member
2470 function.
2471 (opencl_language_data): Delete la_language_arch_info.
2472 * p-lang.c (pascal_language_arch_info): Delete function, move
2473 implementation to...
2474 (pascal_language::language_arch_info): ...here, a new member
2475 function.
2476 (pascal_language_data): Delete la_language_arch_info.
2477 * rust-lang.c (rust_language_arch_info): Delete function, move
2478 implementation to...
2479 (rust_language::language_arch_info): ...here, a new member
2480 function.
2481 (rust_language_data): Delete la_language_arch_info.
2482
2483 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2486 initializer.
2487 * c-lang.c (c_language_data): Likewise.
2488 (cplus_language_data): Likewise.
2489 (cplus_language::pass_by_reference_info): New method.
2490 (asm_language_data): Delete la_pass_by_reference initializer.
2491 (minimal_language_data): Likewise.
2492 * cp-abi.c (cp_pass_by_reference): Remove use of
2493 default_pass_by_reference.
2494 * d-lang.c (d_language_data): Likewise.
2495 * f-lang.c (f_language_data): Likewise.
2496 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2497 default_pass_by_reference.
2498 * go-lang.c (go_language_data): Likewise.
2499 * language.c (language_pass_by_reference): Update.
2500 (default_pass_by_reference): Delete.
2501 (unknown_language_data): Delete la_pass_by_reference
2502 initializer.
2503 (auto_language_data): Likewise.
2504 * language.h (struct language_data): Delete la_pass_by_reference
2505 field.
2506 (language_defn::pass_by_reference_info): New member function.
2507 (default_pass_by_reference): Delete declaration.
2508 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2509 initializer.
2510 * objc-lang.c (objc_language_data): Likewise.
2511 * opencl-lang.c (opencl_language_data): Likewise.
2512 * p-lang.c (pascal_language_data): Likewise.
2513 * rust-lang.c (rust_language_data): Likewise.
2514
2515 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * ada-lang.c (ada_read_var_value): Delete function, move
2518 implementation to...
2519 (ada_language::read_var_value): ...here.
2520 (ada_language_data): Delete la_read_var_value initializer.
2521 * c-lang.c (c_language_data): Likewise.
2522 (cplus_language_data): Likewise.
2523 (minimal_language_data): Likewise.
2524 * d-lang.c (d_language_data): Likewise.
2525 * f-lang.c (f_language_data): Likewise.
2526 * findvar.c (default_read_var_value): Rename to...
2527 (language_defn::read_var_value): ...this.
2528 * findvar.c (read_var_value): Update header comment, and change to
2529 call member function instead of function pointer.
2530 * go-lang.c (go_language_data): Likewise.
2531 * language.c (unknown_language_data): Delete la_read_var_value
2532 initializer.
2533 (auto_language_data): Likewise.
2534 * language.h (struct language_data): Delete la_read_var_value
2535 field.
2536 (language_defn::read_var_value): New member function.
2537 (default_read_var_value): Delete declaration.
2538 * m2-lang.c (m2_language_data): Delete la_read_var_value
2539 initializer.
2540 * objc-lang.c (objc_language_data): Likewise.
2541 * opencl-lang.c (opencl_language_data): Likewise.
2542 * p-lang.c (pascal_language_data): Likewise.
2543 * rust-lang.c (rust_language_data): Likewise.
2544 * value.h (default_read_var_value): Delete declaration.
2545
2546 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * ada-lang.c (ada_print_array_index): Delete function, move
2549 implementation to...
2550 (ada_language::print_array_index): ...here.
2551 (ada_language_data): Delete la_print_array_index initializer.
2552 * c-lang.c (c_language_data): Likewise.
2553 (cplus_language_data): Likewise.
2554 (minimal_language_data): Likewise.
2555 * d-lang.c (d_language_data): Likewise.
2556 * f-lang.c (f_language_data): Likewise.
2557 * go-lang.c (go_language_data): Likewise.
2558 * language.c (default_print_array_index): Delete function, move
2559 implementation to...
2560 (language_defn::print_array_index): ...here.
2561 (unknown_language_data): Delete la_print_array_index initializer.
2562 (auto_language_data): Likewise.
2563 * language.h (struct language_data): Delete la_print_array_index
2564 field.
2565 (language_defn::print_array_index): New member function.
2566 (LA_PRINT_ARRAY_INDEX): Update.
2567 (default_print_array_index): Delete declaration.
2568 * m2-lang.c (m2_language_data): Delete la_print_array_index
2569 initializer.
2570 * objc-lang.c (objc_language_data): Likewise.
2571 * opencl-lang.c (opencl_language_data): Likewise.
2572 * p-lang.c (pascal_language_data): Likewise.
2573 * rust-lang.c (rust_language_data): Likewise.
2574
2575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * gdb/ada-lang.c (ada_language_defn): Convert to...
2578 (ada_language_data): ...this.
2579 (class ada_language): New class.
2580 (ada_language_defn): New static global.
2581 * gdb/c-lang.c (c_language_defn): Convert to...
2582 (c_language_data): ...this.
2583 (class c_language): New class.
2584 (c_language_defn): New static global.
2585 (cplus_language_defn): Convert to...
2586 (cplus_language_data): ...this.
2587 (class cplus_language): New class.
2588 (cplus_language_defn): New static global.
2589 (asm_language_defn): Convert to...
2590 (asm_language_data): ...this.
2591 (class asm_language): New class.
2592 (asm_language_defn): New static global.
2593 (minimal_language_defn): Convert to...
2594 (minimal_language_data): ...this.
2595 (class minimal_language): New class.
2596 (minimal_language_defn): New static global.
2597 * gdb/d-lang.c (d_language_defn): Convert to...
2598 (d_language_data): ...this.
2599 (class d_language): New class.
2600 (d_language_defn): New static global.
2601 * gdb/f-lang.c (f_language_defn): Convert to...
2602 (f_language_data): ...this.
2603 (class f_language): New class.
2604 (f_language_defn): New static global.
2605 * gdb/go-lang.c (go_language_defn): Convert to...
2606 (go_language_data): ...this.
2607 (class go_language): New class.
2608 (go_language_defn): New static global.
2609 * gdb/language.c (unknown_language_defn): Remove declaration.
2610 (current_language): Initialize to nullptr, real initialization is
2611 moved to _initialize_language.
2612 (languages): Delete global.
2613 (language_defn::languages): Define.
2614 (set_language_command): Use language_defn::languages.
2615 (set_language): Likewise.
2616 (range_error): Likewise.
2617 (language_enum): Likewise.
2618 (language_def): Likewise.
2619 (add_set_language_command): Use language_def::languages for the
2620 language list, and language_def to lookup language pointers.
2621 (skip_language_trampoline): Use language_defn::languages.
2622 (unknown_language_defn): Convert to...
2623 (unknown_language_data): ...this.
2624 (class unknown_language): New class.
2625 (unknown_language_defn): New static global.
2626 (auto_language_defn): Convert to...
2627 (auto_language_data): ...this.
2628 (class auto_language): New class.
2629 (auto_language_defn): New static global.
2630 (language_gdbarch_post_init): Use language_defn::languages.
2631 (_initialize_language): Initialize current_language.
2632 * gdb/language.h (struct language_defn): Rename to...
2633 (struct language_data): ...this.
2634 (struct language_defn): New.
2635 (auto_language_defn): Delete.
2636 (unknown_language_defn): Delete.
2637 (minimal_language_defn): Delete.
2638 (ada_language_defn): Delete.
2639 (asm_language_defn): Delete.
2640 (c_language_defn): Delete.
2641 (cplus_language_defn): Delete.
2642 (d_language_defn): Delete.
2643 (f_language_defn): Delete.
2644 (go_language_defn): Delete.
2645 (m2_language_defn): Delete.
2646 (objc_language_defn): Delete.
2647 (opencl_language_defn): Delete.
2648 (pascal_language_defn): Delete.
2649 (rust_language_defn): Delete.
2650 * gdb/m2-lang.c (m2_language_defn): Convert to...
2651 (m2_language_data): ...this.
2652 (class m2_language): New class.
2653 (m2_language_defn): New static global.
2654 * gdb/objc-lang.c (objc_language_defn): Convert to...
2655 (objc_language_data): ...this.
2656 (class objc_language): New class.
2657 (objc_language_defn): New static global.
2658 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2659 (opencl_language_data): ...this.
2660 (class opencl_language): New class.
2661 (opencl_language_defn): New static global.
2662 * gdb/p-lang.c (pascal_language_defn): Convert to...
2663 (pascal_language_data): ...this.
2664 (class pascal_language): New class.
2665 (pascal_language_defn): New static global.
2666 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2667 language pointer, update comment format.
2668 * gdb/rust-lang.c (rust_language_defn): Convert to...
2669 (rust_language_data): ...this.
2670 (class rust_language): New class.
2671 (rust_language_defn): New static global.
2672
2673 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2676 member variable.
2677 <m_stmt_at_address>: New member variable.
2678 (lnp_state_machine::record_line): Don't record some lines, update
2679 tracking of is_stmt at the same address.
2680 (lnp_state_machine::lnp_state_machine): Initialise new member
2681 variables.
2682
2683 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2684
2685 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2686 "-include gnu-nat-mig.h".
2687 * gnu-nat-mig.h: New file.
2688 * gnu-nat.c: Include "gnu-nat-mig.h".
2689 (exc_server, msg_reply_server, notify_server,
2690 process_reply_server): Remove declarations.
2691
2692 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2693
2694 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2695 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2696 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2697 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2698 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2699 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2700 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2701 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2702 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2703 to gnu_nat_target class.
2704 * gnu-nat.c: Likewise.
2705 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2706 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2707 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2708 object.
2709 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2710 instead of `gnu_target'.
2711
2712 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2713
2714 * i386-gnu-tdep.c: Include "gdbcore.h"
2715 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2716 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2717 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2718 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2719 i386_gnu_sigcontext_addr): New functions
2720 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2721 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2722 tdep.
2723
2724 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2725
2726 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2727 before fork_inferior call. Avoid calling it if target_is_pushed returns
2728 true.
2729
2730 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2731
2732 * gnu-nat.h (gnu_target): New variable declaration.
2733 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2734 gnu_target.
2735 * gnu-nat.c (gnu_target): New variable.
2736 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2737 add_thread_silent, and add_thread calls.
2738 (gnu_nat_target::create_inferior): Pass gnu_target to
2739 add_thread_silent, thread_change_ptid call.
2740 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2741 call.
2742
2743 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2744
2745 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2746 (gnu_nat_target::find_memory_regions): Remove unused
2747 `old_address' variable.
2748
2749 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2750
2751 * gnu-nat.c: Include "gdbarch.h".
2752
2753 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2754
2755 * reply_mig_hack.awk (Error return): Cast function through
2756 void *, to bypass compiler function call check.
2757
2758 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2759
2760 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2761 $(srcdir)/reply_mig_hack.awk.
2762
2763 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2764
2765 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2766
2767 2020-05-30 Jonny Grant <jg@jguk.org>
2768
2769 * configure.ac (ACX_BUGURL): change bug URL to https.
2770
2771 2020-05-30 Pedro Alves <palves@redhat.com>
2772
2773 * cp-support.c (replace_typedefs_template): New.
2774 (replace_typedefs_qualified_name): Handle
2775 DEMANGLE_COMPONENT_TEMPLATE.
2776
2777 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
2778
2779 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2780 dwarf2/index-cache.h, dwarf2/index-write.c,
2781 dwarf2/index-write.h, dwarf2/line-header.c,
2782 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2783 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2784 variables and fields from `dwarf2_per_objfile` to just
2785 `per_objfile` throughout.
2786
2787 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2790 <push_dwarf_reg_entry_value>: Add comment.
2791
2792 2020-05-28 Kevin Buettner <kevinb@redhat.com>
2793 Keith Seitz <keiths@redhat.com>
2794
2795 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2796 instead of PyEval_ReleaseLock.
2797 (class gdbpy_gil): Move to earlier in file.
2798 (finalize_python): Set gdb_python_initialized.
2799 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2800 when not initialized.
2801
2802 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
2803
2804 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2805 <push_dwarf_reg_entry_value>: Remove assert. Override
2806 per_objfile with caller_per_objfile.
2807
2808 2020-05-28 Tom de Vries <tdevries@suse.de>
2809
2810 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2811 PR gold/15646 workaround to symbol kind "type".
2812
2813 2020-05-27 Tom Tromey <tromey@adacore.com>
2814
2815 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2816
2817 2020-05-27 Tom Tromey <tromey@adacore.com>
2818
2819 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2820 Use htab_find_with_hash.
2821 <add_abbrev>: Remove "abbrev_number" parameter.
2822 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2823 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2824 (hash_abbrev): Add comment.
2825 (abbrev_table::lookup_abbrev): Move to header file.
2826 (abbrev_table::read): Update.
2827
2828 2020-05-27 Tom Tromey <tromey@adacore.com>
2829
2830 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2831 method.
2832 <canonical_name>: New member.
2833 <raw_name>: Rename from "name".
2834 (partial_die_info): Initialize canonical_name.
2835 (scan_partial_symbols): Check raw_name.
2836 (partial_die_parent_scope, partial_die_full_name)
2837 (add_partial_symbol, add_partial_subprogram)
2838 (add_partial_enumeration, load_partial_dies): Use "name" method.
2839 (partial_die_info::name): New method.
2840 (partial_die_info::read, guess_partial_die_structure_name)
2841 (partial_die_info::fixup): Update.
2842
2843 2020-05-27 Tom Tromey <tromey@adacore.com>
2844
2845 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2846 <get_ref_die_offset>: Inline.
2847 <get_ref_die_offset_complaint>: New method.
2848 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2849 (attribute::get_ref_die_offset_complaint): Rename from
2850 get_ref_die_offset. Just issue complaint.
2851
2852 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2853
2854 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2855
2856 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2857
2858 * exec.c (exec_file_attach): Use errno value of first openp failure.
2859
2860 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
2861
2862 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2863 Don't close thread handle.
2864
2865 2020-05-27 Tom Tromey <tom@tromey.com>
2866 Simon Marchi <simon.marchi@efficios.com>
2867
2868 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2869 shared_ptr.
2870 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2871 member.
2872 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2873 dwarf2_per_bfd_objfile_data_key>: New globals.
2874 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2875 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2876 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2877 shared.
2878 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2879 short-circuit when sharing.
2880 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2881 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2882
2883 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2886 to...
2887 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2888 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2889
2890 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2893 build_name_components, find_name_components_bounds>:
2894 Add per_objfile parameter.
2895 (struct mapped_index) <symbol_name_at>: Likewise.
2896 (struct mapped_debug_names): Remove constructor.
2897 <dwarf2_per_objfile>: Remove field.
2898 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2899 (mapped_index_base::find_name_components_bounds,
2900 mapped_index_base::build_name_components,
2901 dw2_expand_symtabs_matching_symbol): Likewise.
2902 (class mock_mapped_index) <symbol_name_at>: Likewise.
2903 (check_match): Likewise.
2904 (check_find_bounds_finds): Likewise.
2905 (test_mapped_index_find_name_component_bounds): Update.
2906 (CHECK_MATCH): Update.
2907 (dw2_expand_symtabs_matching): Update.
2908 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2909 per_objfile parameter.
2910 <find_vec_in_debug_names>: Likewise.
2911 <m_per_objfile>: New field.
2912 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2913 parameter.
2914 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2915 (dw2_debug_names_iterator::next): Update.
2916 (dw2_debug_names_lookup_symbol): Update.
2917 (dw2_debug_names_expand_symtabs_for_function): Update.
2918 (dw2_debug_names_map_matching_symbols): Update.
2919 (dw2_debug_names_expand_symtabs_matching): Update.
2920 (dwarf2_read_debug_names): Update.
2921
2922 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2925 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2926 move to dwarf2_per_objfile.
2927 <read_in_chain>: Remove.
2928 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2929 remove_all_cus, age_comp_units>: New methods.
2930 <m_dwarf2_cus>: New member.
2931 (struct dwarf2_per_cu_data) <cu>: Remove.
2932 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2933 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2934 moved to methods of dwarf2_per_objfile.
2935 (dwarf2_clear_marks): Remove.
2936 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2937 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2938 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2939 (dwarf2_per_objfile::remove_all_cus): New.
2940 (class free_cached_comp_units) <~free_cached_comp_units>:
2941 Update.
2942 (load_cu): Update.
2943 (dw2_do_instantiate_symtab): Adjust.
2944 (fill_in_sig_entry_from_dwo_entry): Adjust.
2945 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2946 (cutu_reader::cutu_reader): Likewise.
2947 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2948 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2949 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2950 and dwarf2_per_objfile::age_comp_units.
2951 (load_partial_comp_unit): Update.
2952 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2953 (process_queue): Likewise.
2954 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2955 backlink.
2956 (dwarf2_read_addr_index): Likewise.
2957 (follow_die_offset): Likewise.
2958 (dwarf2_fetch_die_loc_sect_off): Likewise.
2959 (dwarf2_fetch_constant_bytes): Likewise.
2960 (dwarf2_fetch_die_type_sect_off): Likewise.
2961 (follow_die_sig_1): Likewise.
2962 (load_full_type_unit): Likewise.
2963 (read_signatured_type): Likewise.
2964 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2965 (dwarf2_cu::~dwarf2_cu): Remove.
2966 (dwarf2_per_objfile::get_cu): New.
2967 (dwarf2_per_objfile::set_cu): New.
2968 (age_cached_comp_units): Rename to...
2969 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2970 to std::unordered_map.
2971 (free_one_cached_comp_unit): Rename to...
2972 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2973 to std::unordered_map.
2974 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2975 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2976 a dwarf2_per_objfile in data.
2977 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2978 (dwarf2_clear_marks): Remove.
2979
2980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2983 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2984 (init_tu_and_read_dwo_dies): Likewise.
2985 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2986 (cutu_reader::cutu_reader): Likewise.
2987 (load_partial_comp_unit): Likewise.
2988 (process_psymtab_comp_unit): Update.
2989 (build_type_psymtabs_1): Update.
2990 (process_skeletonless_type_unit): Update.
2991 (load_full_comp_unit): Update.
2992 (find_partial_die): Update.
2993 (dwarf2_read_addr_index): Update.
2994 (read_signatured_type): Update.
2995
2996 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2997
2998 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2999 m_header_read_in>: New fields.
3000 <get_header>: New method.
3001 * dwarf2/read.c (per_cu_header_read_in): Remove.
3002 (dwarf2_per_cu_data::get_header): New.
3003 (dwarf2_per_cu_data::addr_size): Update.
3004 (dwarf2_per_cu_data::offset_size): Update.
3005 (dwarf2_per_cu_data::ref_addr_size): Update.
3006
3007 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3010 (dw2_do_instantiate_symtab): Update.
3011 (queue_and_load_all_dwo_tus): Change parameter from
3012 dwarf2_per_cu_data to dwarf2_cu.
3013 (dwarf2_fetch_die_loc_sect_off): Update.
3014 (dwarf2_fetch_constant_bytes): Update.
3015 (dwarf2_fetch_die_type_sect_off): Update.
3016
3017 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 * dwarf2/read.c (process_full_comp_unit,
3020 process_full_type_unit): Remove per_cu, per_objfile paramters.
3021 Add dwarf2_cu parameter.
3022 (process_queue): Update.
3023
3024 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * dwarf2/read.c (create_cu_from_index_list): Replace
3027 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3028 (create_cus_from_index_list): Likewise.
3029 (create_cus_from_index): Likewise.
3030 (create_signatured_type_table_from_index): Likewise.
3031 (create_cus_from_debug_names_list): Likewise.
3032 (create_cus_from_debug_names): Likewise.
3033 (dwarf2_read_gdb_index): Update.
3034 (dwarf2_read_debug_names): Update.
3035
3036 2020-05-27 Tom Tromey <tom@tromey.com>
3037 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * dwarf2/read.h (struct dwarf2_per_objfile)
3040 <get_type_for_signatured_type, set_type_for_signatured_type>:
3041 New methods.
3042 <m_type_map>: New member.
3043 (struct signatured_type) <type>: Remove.
3044 * dwarf2/read.c
3045 (dwarf2_per_objfile::get_type_for_signatured_type,
3046 dwarf2_per_objfile::set_type_for_signatured_type): New.
3047 (get_signatured_type): Use new methods.
3048
3049 2020-05-27 Tom Tromey <tom@tromey.com>
3050 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3053 (struct dwarf2_per_objfile) <type_units>: New member.
3054 <get_type_unit_group_unshareable>: New method.
3055 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3056 num_symtabs, symtabs>: Remove; move to
3057 type_unit_group_unshareable.
3058 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3059 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3060 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3061
3062 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3063
3064 * dwarf2/read.h (struct dwarf2_per_cu_data):
3065 <dwarf2_per_objfile>: Remove.
3066 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3067 dwarf2_per_objfile.
3068 (create_signatured_type_table_from_index): Likewise.
3069 (create_signatured_type_table_from_debug_names): Likewise.
3070 (create_debug_type_hash_table): Likewise.
3071 (fill_in_sig_entry_from_dwo_entry): Likewise.
3072 (create_type_unit_group): Likewise.
3073 (read_comp_units_from_section): Likewise.
3074 (create_cus_hash_table): Likewise.
3075
3076 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3079 dwarf2_per_cu_data::dwarf2_per_objfile.
3080 (compute_compunit_symtab_includes): Likewise.
3081 (dwarf2_cu::start_symtab): Likewise.
3082
3083 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3084
3085 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3086 parameter.
3087 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3088 (read_namespace_alias): Update.
3089 (lookup_die_type): Update.
3090 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3091 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3092 Update.
3093 (disassemble_dwarf_expression): Update.
3094
3095 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * dwarf2/read.h (struct dwarf2_queue_item): Add
3098 dwarf2_per_objfile parameter, assign new parameter.
3099 <per_objfile>: New field.
3100 * dwarf2/read.c (free_one_cached_comp_unit): Add
3101 dwarf2_per_objfile parameter.
3102 (queue_comp_unit): Likewise.
3103 (dw2_do_instantiate_symtab): Update.
3104 (process_psymtab_comp_unit): Update.
3105 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3106 (process_imported_unit_die): Update.
3107 (queue_and_load_dwo_tu): Update.
3108 (follow_die_offset): Update.
3109 (follow_die_sig_1): Update.
3110
3111 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3112
3113 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3114 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3115 (read_call_site_scope): Assign per_objfile.
3116 (dwarf2_per_cu_data::objfile): Remove.
3117 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3118 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3119 dwarf2_per_objfile parameter.
3120 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3121 dwarf2_per_objfile parameter.
3122 (dwarf_expr_reg_to_entry_parameter): Add output
3123 dwarf2_per_objfile parameter.
3124 (locexpr_get_frame_base): Update.
3125 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3126 <push_dwarf_reg_entry_value>: Update.
3127 <call_site_to_target_addr>: Update.
3128 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3129 parameter.
3130 (value_of_dwarf_reg_entry): Update.
3131 (rw_pieced_value): Update.
3132 (indirect_synthetic_pointer): Update.
3133 (dwarf2_evaluate_property): Update.
3134 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3135 parameter.
3136 (locexpr_read_variable): Update.
3137 (locexpr_get_symbol_read_needs): Update.
3138 (loclist_read_variable): Update.
3139
3140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3141
3142 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3143 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3144 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3145 parameter.
3146 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3147 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3148 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3149 parameter.
3150 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3151 sect_variable_value): Add dwarf2_per_objfile parameter.
3152 (class dwarf_evaluate_loc_desc) <dwarf_call,
3153 dwarf_variable_value>: Update.
3154 (fetch_const_value_from_synthetic_pointer): Add
3155 dwarf2_per_objfile parameter.
3156 (fetch_const_value_from_synthetic_pointer): Update.
3157 (coerced_pieced_ref): Update.
3158 (class symbol_needs_eval_context) <dwarf_call,
3159 dwarf_variable_value>: Update.
3160 (dwarf2_compile_expr_to_ax): Update.
3161
3162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3163
3164 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3165 parameter.
3166 (dwarf2_evaluate_loc_desc_full): Update.
3167
3168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3171 parameter.
3172 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3173 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3174 dwarf2_per_objfile parameter.
3175 (decode_debug_loc_dwo_addresses): Likewise.
3176 (dwarf2_find_location_expression): Update.
3177 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3178 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3179 parameter.
3180 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3181 parameter.
3182 (locexpr_describe_location_1): Likewise.
3183 (locexpr_describe_location): Update.
3184
3185 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3188 Remove.
3189 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3190 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3191 (dwarf2_compile_property_to_c): Update.
3192 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3193 use text offset from objfile.
3194 (locexpr_tracepoint_var_ref): Update.
3195 (locexpr_generate_c_location): Update.
3196 (loclist_describe_location): Update.
3197 (loclist_tracepoint_var_ref): Update.
3198 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3199 dwarf2_per_objfile parameter.
3200 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3201 use text offset from objfile.
3202 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3203
3204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/expr.h (struct dwarf_expr_context)
3207 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3208 <offset>: Remove.
3209 <per_objfile>: New member.
3210 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3211 dwarf2_per_objfile parameter. Don't set offset, set
3212 per_objfile.
3213 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3214 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3215 a dwarf2_per_objfile object instead of an offset.
3216 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3217 constructor.
3218 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3219 to dwarf2_expr_executor constructor. Don't set offset.
3220 (dwarf2_fetch_cfa_info): Update.
3221 (struct dwarf2_frame_cache) <text_offset>: Remove.
3222 <per_objfile>: New field.
3223 (dwarf2_frame_cache): Update.
3224 (dwarf2_frame_prev_register): Update.
3225 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3226 <dwarf_evaluate_loc_desc>: Add constructor.
3227 (dwarf2_evaluate_loc_desc_full): Update.
3228 (dwarf2_locexpr_baton_eval): Update.
3229 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3230 Add constructor.
3231 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3232
3233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3236 addr_sized_int_type>: Move to dwarf2_cu.
3237 <int_type>: Move to dwarf2_per_objfile.
3238 (struct dwarf2_per_objfile) <int_type>: Move here.
3239 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3240 addr_sized_int_type>: Move here.
3241 (read_func_scope): Update.
3242 (read_array_type): Update.
3243 (read_tag_string_type): Update.
3244 (attr_to_dynamic_prop): Update.
3245 (dwarf2_per_cu_data::int_type): Rename to...
3246 (dwarf2_per_objfile::int_type): ... this.
3247 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3248 (dwarf2_cu::addr_sized_int_type): ... this.
3249 (read_subrange_type): Update.
3250 (dwarf2_per_cu_data::addr_type): Rename to...
3251 (dwarf2_cu::addr_type): ... this.
3252 (set_die_type): Update.
3253
3254 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3257 data through per_cu->cu.
3258
3259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3262 dwarf2_per_cu_data parameter fo dwarf2_cu.
3263 (lookup_dwo_type_unit): Likewise.
3264 (read_cutu_die_from_dwo): Likewise.
3265 (lookup_dwo_unit): Likewise.
3266 (open_and_init_dwo_file): Likewise.
3267 (lookup_dwo_cutu): Likewise.
3268 (lookup_dwo_comp_unit): Likewise.
3269 (lookup_dwo_type_unit): Likewise.
3270 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3271 (cutu_reader::cutu_reader): Update.
3272
3273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3276 parameter.
3277 (process_full_type_unit): Likewise.
3278 (process_queue): Update.
3279
3280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * dwarf2/read.c (recursively_compute_inclusions): Add
3283 dwarf2_per_objfile parameter.
3284 (compute_compunit_symtab_includes): Likewise.
3285 (process_cu_includes): Update.
3286
3287 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3290 parameter.
3291 (create_type_unit_group): Update.
3292 (process_psymtab_comp_unit_reader): Update.
3293 (build_type_psymtabs_reader): Update.
3294
3295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3298 object through m_this_cu->cu.
3299
3300 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3303 the info parameter.
3304 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3305
3306 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3309 per_objfile parameter.
3310 (load_full_type_unit): Add per_objfile parameter.
3311 (read_signatured_type): Likewise.
3312 (load_full_comp_unit): Likewise.
3313 (load_cu): Likewise.
3314 (dw2_do_instantiate_symtab): Likewise.
3315 (dw2_get_file_names): Likewise.
3316 (dw2_map_symtabs_matching_filename): Update.
3317 (dw_expand_symtabs_matching_file_matcher): Update.
3318 (dw2_map_symbol_filenames): Update.
3319 (process_psymtab_comp_unit): Add per_objfile parameter.
3320 (build_type_psymtabs_1): Update.
3321 (process_skeletonless_type_unit): Update.
3322 (dwarf2_build_psymtabs_hard): Update.
3323 (load_partial_comp_unit): Add per_objfile parameter.
3324 (scan_partial_symbols): Update.
3325 (load_full_comp_unit): Add per_objfile parameter.
3326 (process_imported_unit_die): Update.
3327 (create_cus_hash_table): Update.
3328 (find_partial_die): Update.
3329 (dwarf2_read_addr_index): Update.
3330 (follow_die_offset): Update.
3331 (dwarf2_fetch_die_loc_sect_off): Update.
3332 (dwarf2_fetch_constant_bytes): Update.
3333 (dwarf2_fetch_die_type_sect_off): Update.
3334 (follow_die_sig_1): Update.
3335 (load_full_type_unit): Add per_objfile parameter.
3336 (read_signatured_type): Likewise.
3337
3338 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3341 of objfile_name.
3342
3343 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3344
3345 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3346 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3347 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3348 field.
3349 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3350 (create_cus_from_index): Update.
3351 (dwarf2_read_gdb_index): Update.
3352 (create_cus_from_debug_names): Update.
3353 (dwarf2_read_debug_names): Update.
3354 (get_abbrev_section_for_cu): Update.
3355 (create_all_comp_units): Update.
3356 (read_attribute_value): Update.
3357 (get_debug_line_section): Update.
3358 * dwarf2/index-cache.c (index_cache::store): Update.
3359 * dwarf2/index-write.c (save_gdb_index_command): Update.
3360 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3361
3362 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3363
3364 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3365 member.
3366 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3367 dwarf2_per_cu_data::per_bfd.
3368 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3369 (create_type_unit_group): Likewise.
3370 (queue_comp_unit): Remove reference to
3371 per_cu->dwarf2_per_objfile.
3372 (maybe_queue_comp_unit): Likewise.
3373 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3374 (create_cus_hash_table): Assign new field.
3375
3376 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * dwarf2/read.c: Replace
3379 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3380 dwarf2_cu->per_objfile throughout.
3381
3382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3385 parameter, don't use per_cu->dwarf2_per_objfile.
3386 (dw2_instantiate_symtab): Likewise.
3387 (dw2_find_last_source_symtab): Update.
3388 (dw2_map_expand_apply): Update.
3389 (dw2_lookup_symbol): Update.
3390 (dw2_expand_symtabs_for_function): Update.
3391 (dw2_expand_all_symtabs): Update.
3392 (dw2_expand_symtabs_with_fullname): Update.
3393 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3394 don't use per_cu->dwarf2_per_objfile.
3395 (dw2_expand_marked_cus): Update.
3396 (dw2_find_pc_sect_compunit_symtab): Update.
3397 (dw2_debug_names_lookup_symbol): Update.
3398 (dw2_debug_names_expand_symtabs_for_function): Update.
3399 (dw2_debug_names_map_matching_symbols): Update.
3400 (dwarf2_psymtab::expand_psymtab): Update.
3401
3402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3405 <per_objfile>: New member.
3406 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3407 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3408 call to dwarf2_cu.
3409 (cutu_reader::cutu_reader): Update.
3410 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3411
3412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3415 struct dwarf2_per_objfile.
3416 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3417 dwarf2_per_bfd.
3418 * dwarf2/read.c (set_die_type): Update.
3419 (get_die_type_at_offset): Update.
3420
3421 2020-05-27 Tom Tromey <tom@tromey.com>
3422 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3425 method.
3426 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3427 get_symtab, set_symtab>: New methods.
3428 <m_symtabs>: New field.
3429 (struct dwarf2_psymtab): Derive from partial_symtab.
3430 <readin_p, get_compunit_symtab>: Declare methods.
3431 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3432 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3433 New methods.
3434 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3435 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3436 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3437 (dw2_symtab_iter_next, dw2_print_stats)
3438 (dw2_expand_symtabs_with_fullname)
3439 (dw2_expand_symtabs_matching_one)
3440 (dw_expand_symtabs_matching_file_matcher)
3441 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3442 (dw2_debug_names_iterator::next)
3443 (dw2_debug_names_map_matching_symbols)
3444 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3445 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3446 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3447 New methods.
3448 (get_compunit_symtab, process_full_comp_unit)
3449 (process_full_type_unit): Update.
3450 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3451
3452 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3453
3454 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3455 then introduce a new dwarf2_per_objfile type.
3456 <read_line_string>: Move to the new dwarf2_per_objfile type.
3457 <objfile>: Likewise.
3458 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3459 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3460 dwarf2_per_objfile->per_bfd.
3461 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3462 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3463 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3464 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3465 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3466 (dwarf2_per_objfile::locate_sections): Rename to...
3467 (dwarf2_per_bfd::locate_sections): ... this.
3468 (dwarf2_per_objfile::get_cutu): Rename to...
3469 (dwarf2_per_bfd::get_cutu): ... this.
3470 (dwarf2_per_objfile::get_cu): Rename to...
3471 (dwarf2_per_bfd::get_cu): ... this.
3472 (dwarf2_per_objfile::get_tu): Rename to...
3473 (dwarf2_per_bfd::get_tu): ... this.
3474 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3475 (dwarf2_per_bfd::allocate_per_cu): ... this.
3476 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3477 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3478 (get_gdb_index_contents_ftype): Change parameter from
3479 dwarf2_per_objfile to dwarf2_per_bfd.
3480 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3481 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3482
3483 2020-05-27 Tom Tromey <tom@tromey.com>
3484 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3487 (allocate_piece_closure): Set "per_objfile" member.
3488 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3489 (locexpr_describe_location, loclist_describe_location): Use new
3490 member.
3491 * dwarf2/read.c (read_call_site_scope)
3492 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3493 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3494 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3495 handle_data_member_location): Set per_objfile member.
3496 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3497 member.
3498 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3499
3500 2020-05-27 Tom Tromey <tom@tromey.com>
3501
3502 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3503 allocate_signatured_type>: Declare new methods.
3504 <m_num_psymtabs>: New member.
3505 (struct dwarf2_per_cu_data) <index>: New member.
3506 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3507 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3508 (create_cu_from_index_list): Use allocate_per_cu.
3509 (create_signatured_type_table_from_index)
3510 (create_signatured_type_table_from_debug_names)
3511 (create_debug_type_hash_table, add_type_unit)
3512 (read_comp_units_from_section): Use allocate_signatured_type.
3513
3514 2020-05-27 Tom Tromey <tom@tromey.com>
3515
3516 * psymtab.c (partial_map_expand_apply)
3517 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3518 (psym_lookup_global_symbol_language)
3519 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3520 (psym_print_stats, psym_expand_symtabs_for_function)
3521 (psym_map_symbol_filenames, psym_map_matching_symbols)
3522 (psym_expand_symtabs_matching)
3523 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3524 (maintenance_check_psymtabs): Update.
3525 * psympriv.h (struct partial_symtab) <readin_p,
3526 get_compunit_symtab>: Add objfile parameter.
3527 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3528 Likewise.
3529 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3530 get_compunit_symtab>: Likewise.
3531 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3532
3533 2020-05-27 Tom Tromey <tom@tromey.com>
3534
3535 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3536 member.
3537 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3538 (create_cu_from_index_list)
3539 (create_signatured_type_table_from_index)
3540 (create_signatured_type_table_from_debug_names)
3541 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3542 (dwarf2_create_include_psymtab)
3543 (create_debug_type_hash_table, add_type_unit)
3544 (create_type_unit_group, read_comp_units_from_section)
3545 (dwarf2_compute_name, create_cus_hash_table)
3546 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3547 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3548 obstack.
3549 (dw2_get_real_path): Likewise. Change argument to
3550 dwarf2_per_objfile.
3551
3552 2020-05-27 Luis Machado <luis.machado@linaro.org>
3553
3554 PR tdep/26000
3555 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3556 for ldrd (immediate).
3557
3558 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3559
3560 * command.h: Add comment giving the name of class_tui.
3561 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3562 create the fake command for the help for class_tui.
3563
3564 2020-05-26 Tom Tromey <tromey@adacore.com>
3565
3566 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3567 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3568 (val_atr): New function.
3569 (value_val_atr): Use it.
3570 * ada-valprint.c (print_optional_low_bound): Change low bound
3571 handling for enums.
3572 (val_print_packed_array_elements): Don't call discrete_position.
3573 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3574 discrete_position for enum types.
3575 * language.c (default_print_array_index): Change type.
3576 * language.h (struct language_defn) <la_print_array_index>: Add
3577 index_type parameter, change type of index_value.
3578 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3579 (default_print_array_index): Update.
3580 * valprint.c (maybe_print_array_index): Don't call
3581 value_from_longest. Update.
3582 (value_print_array_elements): Don't call discrete_position.
3583
3584 2020-05-26 Tom Tromey <tromey@adacore.com>
3585
3586 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3587 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3588
3589 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3590
3591 PR gdb/13519
3592 * avr-tdep.c (avr_integer_to_address): Return data or code
3593 address accordingly to the second 'type' argument of the
3594 function.
3595
3596 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3597
3598 * infcmd.c, inferior.h: (construct_inferior_arguments):
3599 Moved function from here to gdbsupport/common-inferior.{h,cc}
3600
3601 2020-05-23 Tom Tromey <tom@tromey.com>
3602
3603 Revert commit eca1f90c:
3604 * NEWS: Remove entry for completion styling.
3605 * completer.c (_rl_completion_prefix_display_length): Move
3606 declaration later.
3607 (gdb_fnprint): Revert.
3608 (gdb_display_match_list_1): Likewise.
3609 * cli/cli-style.c (completion_prefix_style)
3610 (completion_difference_style, completion_suffix_style): Remove.
3611 (_initialize_cli_style): Revert.
3612 * cli/cli-style.h (completion_prefix_style)
3613 (completion_difference_style, completion_suffix_style): Don't
3614 declare.
3615
3616 2020-05-24 Pedro Alves <palves@redhat.com>
3617
3618 * symtab.c (completion_list_add_name): Return boolean indication
3619 of whether the symbol matched.
3620 (completion_list_add_symbol): Don't try to remove C++ aliases if
3621 the symbol didn't match in the first place.
3622 * symtab.h (completion_list_add_name): Return bool.
3623
3624 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3627 type::field.
3628
3629 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3630
3631 GDB 9.2 released.
3632
3633 2020-05-23 Tom Tromey <tom@tromey.com>
3634
3635 * NEWS: Add entry for completion styling.
3636 * completer.c (_rl_completion_prefix_display_length): Move
3637 declaration earlier.
3638 (gdb_fnprint): Use completion_style.
3639 (gdb_display_match_list_1): Likewise.
3640 * cli/cli-style.c (completion_prefix_style)
3641 (completion_difference_style, completion_suffix_style): New
3642 globals.
3643 (_initialize_cli_style): Register new globals.
3644 * cli/cli-style.h (completion_prefix_style)
3645 (completion_difference_style, completion_suffix_style): Declare.
3646
3647 2020-05-23 Pedro Alves <palves@redhat.com>
3648
3649 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3650 (parse_escape): Use ISDIGIT instead of isdigit.
3651 (puts_debug): Use gdb_isprint instead of isprint.
3652 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3653 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3654 ISSPACE instead of isspace.
3655 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3656 instead of isspace.
3657 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3658 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3659 instead of isxdigit and ISDIGIT instead of isdigit.
3660
3661 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * gdbtypes.h (struct type) <field>: New method.
3664 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3665 or type::field.
3666
3667 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3670 (TYPE_FIELDS): Use type::fields. Change all call sites that
3671 modify the propery to use type::set_fields instead.
3672
3673 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3676 type::num_fields instead.
3677
3678 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3681 methods.
3682 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3683 that modify the number of fields to use type::set_num_fields
3684 instead.
3685
3686 2020-05-22 Tom Tromey <tromey@adacore.com>
3687
3688 * compile/compile-object-load.h (munmap_list_free): Don't
3689 declare.
3690
3691 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3692
3693 * annotate.c (annotate_source_line): Update return type, add call
3694 to update current symtab and line.
3695 * annotate.h (annotate_source_line): Update return type, and
3696 extend header comment.
3697 * source.c (info_line_command): Check annotation_level before
3698 calling annotate_source_line.
3699 * stack.c (print_frame_info): If calling annotate_source_line
3700 returns true, then don't print any other source line information.
3701
3702 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3705
3706 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * coffread.c (patch_type): Remove NULL check before xfree.
3709 * corefile.c (set_gnutarget): Likewise.
3710 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3711 * exec.c (build_section_table): Likewise.
3712 * remote.c (remote_target::pass_signals): Likewise.
3713 * utils.c (n_spaces): Likewise.
3714 * cli/cli-script.c (document_command): Likewise.
3715 * i386-windows-tdep.c (core_process_module_section): Likewise.
3716 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3717
3718 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * symfile.c (reread_symbols): Clear objfile's section_offsets
3721 vector and section indices, re-compute them by calling
3722 sym_offsets.
3723
3724 2020-05-20 Tom Tromey <tromey@adacore.com>
3725
3726 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3727 (desc_one_bound, desc_index_type): Compute field name.
3728
3729 2020-05-20 Tom de Vries <tdevries@suse.de>
3730
3731 PR symtab/25833
3732 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3733
3734 2020-05-20 Alan Modra <amodra@gmail.com>
3735
3736 PR 25993
3737 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3738 bfd_set_filename.
3739 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3740 passed to bfd_set_filename.
3741 * symfile-mem.c (add_vsyscall_page): Likewise for string
3742 passed to symbol_file_add_from_memory.
3743 (symbol_file_add_from_memory): Make name param a const char* and
3744 don't strdup.
3745
3746 2020-05-20 Alan Modra <amodra@gmail.com>
3747
3748 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3749 rather than accessing bfd->filename directly.
3750 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3751 and use bfd_section_name.
3752 * dwarf2/frame.c (decode_frame_entry): Likewise.
3753 * exec.c (exec_set_section_address): Likewise.
3754 * solib-aix.c (solib_aix_bfd_open): Likewise.
3755 * stap-probe.c (get_stap_base_address): Likewise.
3756 * symfile.c (reread_symbols): Likewise.
3757
3758 2020-05-19 Tom Tromey <tromey@adacore.com>
3759
3760 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3761
3762 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3765
3766 2020-05-19 Pedro Alves <palves@redhat.com>
3767
3768 * NEWS (set exec-file-mismatch): Adjust entry.
3769 * exec.c: Include "build-id.h".
3770 (validate_exec_file): Try to match build IDs instead of filenames.
3771 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3772 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3773 and pass down 'warn_if_slow'.
3774 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3775 gdb_bfd_open_closure to pass it down.
3776 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3777
3778 2020-05-19 Pedro Alves <palves@redhat.com>
3779
3780 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3781 * target.c (target_fileio_open_1): Rename to target_fileio_open
3782 and make extern. Use bool.
3783 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3784 (target_fileio_read_alloc_1): Adjust.
3785 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3786 (target_fileio_open_warn_if_slow): Delete declaration.
3787
3788 2020-05-19 Pedro Alves <palves@redhat.com>
3789
3790 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3791 Adjust all callers.
3792
3793 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3794
3795 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3796 whether disp is negative.
3797
3798 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3799
3800 * symfile.h (struct symfile_segment_data)
3801 <~symfile_segment_data>: Remove.
3802 <segment_info>: Change to std::vector.
3803 * symfile.c (default_symfile_segments): Update.
3804 * elfread.c (elf_symfile_segments): Update.
3805
3806 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3809 <segments>: New.
3810 <segment_bases, segment_sizes>: Remove.
3811 * symfile.c (default_symfile_segments): Update.
3812 * elfread.c (elf_symfile_segments): Update.
3813 * remote.c (remote_target::get_offsets): Update.
3814 * solib-target.c (solib_target_relocate_section_addresses):
3815 Update.
3816
3817 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * symfile.h (struct symfile_segment_data): Initialize fields.
3820 <~symfile_segment_data>: Add.
3821 (symfile_segment_data_up): New.
3822 (struct sym_fns) <sym_segments>: Return a
3823 symfile_segment_data_up.
3824 (default_symfile_segments): Return a symfile_segment_data_up.
3825 (free_symfile_segment_data): Remove.
3826 (get_symfile_segment_data): Return a symfile_segment_data_up.
3827 * symfile.c (default_symfile_segments): Likewise.
3828 (get_symfile_segment_data): Likewise.
3829 (free_symfile_segment_data): Remove.
3830 (symfile_find_segment_sections): Update.
3831 * elfread.c (elf_symfile_segments): Return a
3832 symfile_segment_data_up.
3833 * remote.c (remote_target::get_offsets): Update.
3834 * solib-target.c (solib_target_relocate_section_addresses):
3835 Update.
3836 * symfile-debug.c (debug_sym_segments): Return a
3837 symfile_segment_data_up.
3838
3839 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3840
3841 PR build/25981
3842 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3843 Hardcode register numbers.
3844
3845 PR build/25981
3846 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3847 procfs_find_LDT_entry): Remove.
3848 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3849 procfs_find_LDT_entry): Remove.
3850 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3851 Remove.
3852
3853 2020-05-17 Pedro Alves <palves@redhat.com>
3854 Andrew Burgess <andrew.burgess@embecosm.com>
3855 Keno Fischer <keno@juliacomputing.com>
3856
3857 PR gdb/25741
3858 * breakpoint.c (build_target_condition_list): Update comments.
3859 (build_target_command_list): Update comments and skip matching
3860 locations.
3861 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3862 a separate function. Simplify "set breakpoint auto-hw off"
3863 handling.
3864 (insert_breakpoints): Update comment.
3865 (tracepoint_locations_match): New parameter. For breakpoints,
3866 compare location types too, if the caller wants to.
3867 (handle_automatic_hardware_breakpoints): New functions.
3868 (bp_location_is_less_than): Also sort by location type and
3869 hardware breakpoint length.
3870 (update_global_location_list): Handle "set breakpoint auto-hw on"
3871 here.
3872 (update_breakpoint_locations): Ask breakpoint_locations_match to
3873 ignore location types.
3874
3875 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3878 type::name instead.
3879
3880 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * gdbtypes.h (struct type) <name, set_name>: New methods.
3883 (TYPE_CODE): Use type::name. Change all call sites used to set
3884 the name to use type::set_name instead.
3885
3886 2020-05-16 Tom Tromey <tom@tromey.com>
3887
3888 * top.c (quit_force): Update.
3889 * infrun.c (handle_no_resumed): Update.
3890 * top.h (all_uis): New function.
3891 (ALL_UIS): Remove.
3892
3893 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3896
3897 2020-05-16 Pedro Alves <palves@redhat.com>
3898
3899 * ia64-linux-nat.c
3900 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3901 Declare method.
3902 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3903
3904 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3907 (sparc64_adi_info): Likewise.
3908
3909 2020-05-15 Tom Tromey <tom@tromey.com>
3910
3911 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3912 block_objfile.
3913 (lookup_objfile_from_block): Remove.
3914 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3915 (lookup_global_symbol): Use block_objfile.
3916 * symtab.h (lookup_objfile_from_block): Don't declare.
3917 * printcmd.c (clear_dangling_display_expressions): Use
3918 block_objfile.
3919 * parse.c (operator_check_standard): Use block_objfile.
3920
3921 2020-05-15 Tom Tromey <tom@tromey.com>
3922
3923 * language.c (language_alloc_type_symbol): Set
3924 SYMBOL_SECTION.
3925 * symtab.c (initialize_objfile_symbol): Remove.
3926 (allocate_symbol): Remove.
3927 (allocate_template_symbol): Remove.
3928 * dwarf2/read.c (fixup_go_packaging): Use "new".
3929 (new_symbol): Use "new".
3930 (read_variable): Don't call initialize_objfile_symbol. Use
3931 "new".
3932 (read_func_scope): Use "new".
3933 * xcoffread.c (process_xcoff_symbol): Don't call
3934 initialize_objfile_symbol.
3935 (SYMBOL_DUP): Remove.
3936 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3937 "new".
3938 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3939 (allocate_template_symbol): Don't declare.
3940 (struct symbol): Add copy constructor. Change defaults.
3941 * jit.c (finalize_symtab): Use "new".
3942 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3943 Use "new".
3944 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3945 (common_block_end): Use "new".
3946 * mdebugread.c (parse_symbol): Use "new".
3947 (new_symbol): Likewise.
3948
3949 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3950
3951 * NEWS: Mention changes to help and apropos.
3952
3953 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3954
3955 * command.h (enum command_class): Improve comments, document
3956 that class_alias is for user-defined aliases, give the class
3957 name for each class, remove unused class_xdb.
3958 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3959 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3960 by a precise class.
3961 * infcmd.c (_initialize_infcmd): Likewise.
3962 * reverse.c (_initialize_reverse): Likewise.
3963 * stack.c (_initialize_stack): Likewise.
3964 * symfile.c (_initialize_symfile): Likewise.
3965 * tracepoint.c (_initialize_tracepoint): Likewise.
3966
3967 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3968
3969 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3970 when their aliased command is traversed.
3971 (help_cmd): Add fput_command_names_styled call to
3972 output command name and aliases when command has an alias.
3973
3974 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3975
3976 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3977 * cli/cli-decode.c (help_cmd_list): Declare as static,
3978 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3979 a command together with the command.
3980 (fput_command_name_styled, fput_command_names_styled): New functions.
3981 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3982 fput_command_name_styled.
3983 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3984 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3985
3986 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3987
3988 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3989 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3990 * command.h (cmd_show_list): Likewise.
3991 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3992 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3993
3994 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3995
3996 * unittests/command-def-selftests.c (traverse_command_structure):
3997 Verify all commands of a list have the same prefix command and
3998 that only the top cmdlist commands have a null prefix.
3999
4000 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4001
4002 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4003 as prefix, not one of its aliases.
4004 (set_cmd_prefix): Remove.
4005 (do_add_cmd): Centralize the setting of the prefix of a command, when
4006 command is defined after its full chain of prefix commands.
4007 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4008 (add_setshow_cmd_full): Likewise.
4009 (update_prefix_field_of_prefixed_commands): New function.
4010 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4011 update_prefix_field_of_prefixed_commands.
4012 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4013 addresses of remote_set_cmdlist and remote_show_cmdlist given
4014 as argument, not the address of an argument.
4015 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4016 * gdb/remote.c (_initialize_remote): Likewise.
4017
4018 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4019
4020 * cli/cli-cmds.c (alias_command): Check for an existing alias
4021 using lookup_cmd_composition, as valid_command_p is too strict
4022 and forbids aliases that are the prefix of an existing alias
4023 or command.
4024 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4025 command is properly recognised as a valid command.
4026
4027 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4028
4029 * unittests/help-doc-selftests.c: Rename to
4030 unittests/command-def-selftests.c
4031 * unittests/command-def-selftests.c (help_doc_tests): Update some
4032 comments.
4033 (command_structure_tests, traverse_command_structure): New namespace
4034 and function.
4035 (command_structure_invariants_tests): New function.
4036 (_initialize_command_def_selftests) Renamed from
4037 _initialize_help_doc_selftests, register command_structure_invariants
4038 selftest.
4039
4040 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4041
4042 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4043 an alias of 'show'.
4044
4045 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4046
4047 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4048 ada_is_fixed_point_type. Update all callers.
4049 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4050 all callers.
4051 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4052 Update all callers.
4053 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4054 print_fixed_point_type. Update all callers.
4055 * ada-valprint.c (ada_value_print_num): Replace call to
4056 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4057
4058 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4059
4060 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4061 processors.
4062 (cpu_supports_bts): Add CV_AMD case.
4063
4064 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4065 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * infrun.c (stop_all_threads): Collect multiple wait events at
4068 each pass.
4069
4070 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4073 type::code instead.
4074
4075 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * gdbtypes.h (struct type) <code, set_code>: New methods.
4078 (TYPE_CODE): Use type::code. Change all call sites used to set
4079 the code to use type::set_code instead.
4080
4081 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4082 Tom de Vries <tdevries@suse.de>
4083 Pedro Alves <palves@redhat.com>
4084
4085 PR threads/25478
4086 * infrun.c (stop_all_threads): Do NOT ignore
4087 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4088 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4089 received.
4090 (handle_no_resumed): Remove code handling a live inferior with no
4091 threads.
4092 * remote.c (has_single_non_exited_thread): New.
4093 (remote_target::update_thread_list): Do not delete a thread if is
4094 the last thread of the process.
4095 * thread.c (thread_select): Call delete_exited_threads instead of
4096 prune_threads.
4097
4098 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4099
4100 * infrun.c (stop_all_threads): Enable/disable thread events of all
4101 targets. Move a debug message denoting the end of the function
4102 into the SCOPED_EXIT block.
4103
4104 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4105
4106 * process-stratum-target.h: Include <set>.
4107 (all_non_exited_process_targets, switch_to_target_no_thread): New
4108 function declarations.
4109 * process-stratum-target.c (all_non_exited_process_targets)
4110 (switch_to_target_no_thread): New function implementations.
4111
4112 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4113
4114 * infrun.c (handle_inferior_event): Extract out a piece of code
4115 into...
4116 (mark_non_executing_threads): ...this new function.
4117
4118 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4119
4120 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4121 use.
4122
4123 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4124
4125 * regcache.c (regcache_read_pc_protected): New function
4126 implementation that returns 0 if the PC cannot read via
4127 'regcache_read_pc'.
4128 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4129 instead of 'regcache_read_pc'.
4130 (keep_going_pass_signal): Ditto.
4131
4132 2020-05-13 Tom Tromey <tromey@adacore.com>
4133
4134 * ada-lang.c (align_value): Remove.
4135 (ada_template_to_fixed_record_type_1): Use align_up.
4136
4137 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4138
4139 * async-event.c: Update the copyright year.
4140 * async-event.h: Update the copyright year.
4141
4142 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * objfiles.h (is_addr_in_objfile,
4145 shared_objfile_contains_address_p): Return bool.
4146 * objfile.c (is_addr_in_objfile,
4147 shared_objfile_contains_address_p): Return bool.
4148
4149 2020-05-11 Tom Tromey <tromey@adacore.com>
4150
4151 * cli/cli-cmds.c (info_command): Restore.
4152 (_initialize_cli_cmds): Use add_prefix_command for "info".
4153 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4154
4155 2020-05-11 Tom Tromey <tromey@adacore.com>
4156
4157 * ada-lang.c (ada_value_primitive_field): Now public.
4158 * ada-lang.h (ada_value_primitive_field): Declare.
4159 * ada-valprint.c (print_field_values): Use
4160 ada_value_primitive_field for wrapper fields.
4161
4162 2020-05-11 Tom de Vries <tdevries@suse.de>
4163
4164 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4165 MODULE_DOMAIN.
4166
4167 2020-05-11 Tom de Vries <tdevries@suse.de>
4168
4169 PR symtab/25941
4170 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4171 with length 0, if not gdb-produced.
4172 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4173
4174 2020-05-09 Tom de Vries <tdevries@suse.de>
4175
4176 PR gdb/25955
4177 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4178 calculation.
4179
4180 2020-05-09 Tom Tromey <tom@tromey.com>
4181
4182 * top.c (server_command): Now bool.
4183 * top.h (server_command): Now bool.
4184
4185 2020-05-08 Tom Tromey <tromey@adacore.com>
4186
4187 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4188 already being processed.
4189
4190 2020-05-08 Tom Tromey <tom@tromey.com>
4191
4192 * printcmd.c (struct display) <next>: Remove.
4193 <display>: New constructor.
4194 <exp_string>: Now a std::string.
4195 <enabled_p>: Now a bool.
4196 (display_number): Move definition earlier.
4197 (displays): Rename from display_chain. Now a std::vector.
4198 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4199 (display_command): Update.
4200 (do_one_display, disable_display)
4201 (enable_disable_display_command, do_enable_disable_display):
4202 Update.
4203 (free_display): Remove.
4204 (clear_displays): Rewrite.
4205 (delete_display): Update.
4206 (map_display_numbers): Use function_view. Remove "data"
4207 parameter. Update.
4208 (do_delete_display): Remove.
4209 (undisplay_command): Update.
4210 (do_one_display, do_displays, disable_display)
4211 (info_display_command): Update.
4212 (do_enable_disable_display): Remove.
4213 (enable_disable_display_command)
4214 (clear_dangling_display_expressions): Update.
4215
4216 2020-05-08 Tom Tromey <tom@tromey.com>
4217
4218 * symtab.c (set_symbol_cache_size)
4219 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4220 (maintenance_print_symbol_cache_statistics): Update.
4221 * symmisc.c (print_symbol_bcache_statistics)
4222 (print_objfile_statistics, maintenance_print_objfiles)
4223 (maintenance_info_symtabs, maintenance_check_symtabs)
4224 (maintenance_expand_symtabs, maintenance_info_line_tables):
4225 Update.
4226 * symfile-debug.c (set_debug_symfile): Update.
4227 * source.c (forget_cached_source_info): Update.
4228 * python/python.c (gdbpy_progspaces): Update.
4229 * psymtab.c (maintenance_info_psymtabs): Update.
4230 * probe.c (parse_probes): Update.
4231 * linespec.c (iterate_over_all_matching_symtabs)
4232 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4233 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4234 * exec.c (exec_target::close): Update.
4235 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4236 * breakpoint.c (print_one_breakpoint_location)
4237 (create_longjmp_master_breakpoint)
4238 (create_std_terminate_master_breakpoint): Update.
4239 * progspace.c (program_spaces): Now a std::vector.
4240 (maybe_new_address_space): Update.
4241 (add_program_space): Remove.
4242 (program_space::program_space): Update.
4243 (remove_program_space): Update.
4244 (number_of_program_spaces): Remove.
4245 (print_program_space, update_address_spaces): Update.
4246 * progspace.h (program_spaces): Change type.
4247 (ALL_PSPACES): Remove.
4248 (number_of_program_spaces): Don't declare.
4249 (struct program_space) <next>: Remove.
4250
4251 2020-05-08 Tom Tromey <tom@tromey.com>
4252
4253 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4254 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4255 (enable_break): Update.
4256 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4257 (frv_fdpic_find_canonical_descriptor): Update.
4258 (frv_fetch_objfile_link_map): Update.
4259 * progspace.c (program_space::free_all_objfiles): Update.
4260 (program_space::solibs): New method.
4261 * progspace.h (struct program_space) <solibs>: New method.
4262 * solist.h (master_so_list): Don't declare.
4263 (ALL_SO_LIBS): Remove.
4264 * solib.h (so_list_head): Remove.
4265 (update_solib_list): Update comment.
4266 * solib.c (master_so_list): Remove.
4267 (solib_used, update_solib_list, solib_add)
4268 (info_sharedlibrary_command, clear_solib)
4269 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4270
4271 2020-05-08 Tom Tromey <tom@tromey.com>
4272
4273 * extension.c (extension_languages): Now a std::array.
4274 (ALL_EXTENSION_LANGUAGES): Remove.
4275 (get_ext_lang_defn, get_ext_lang_of_file)
4276 (eval_ext_lang_from_control_command): Update.
4277 (finish_ext_lang_initialization)
4278 (auto_load_ext_lang_scripts_for_objfile)
4279 (ext_lang_type_printers::ext_lang_type_printers)
4280 (apply_ext_lang_type_printers)
4281 (ext_lang_type_printers::~ext_lang_type_printers)
4282 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4283 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4284 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4285 (get_matching_xmethod_workers, ext_lang_colorize)
4286 (ext_lang_before_prompt): Update.
4287 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4288
4289 2020-05-08 Tom Tromey <tom@tromey.com>
4290
4291 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4292 overload.
4293 <swap_string, m_string>: Remove.
4294 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4295 Update.
4296 * stabsread.c (define_symbol, read_type): Update.
4297 * linespec.c (find_linespec_symbols): Update.
4298 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4299 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4300 * dbxread.c (read_dbx_symtab): Update.
4301 * cp-support.h (cp_canonicalize_string_full)
4302 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4303 Return unique_xmalloc_ptr.
4304 * cp-support.c (inspect_type): Update.
4305 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4306 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4307 Likewise.
4308 * c-typeprint.c (print_name_maybe_canonical): Update.
4309 * break-catch-throw.c (check_status_exception_catchpoint):
4310 Update.
4311
4312 2020-05-08 Tom de Vries <tdevries@suse.de>
4313
4314 * infrun.c (follow_fork): Copy current_line and current_symtab to
4315 child thread.
4316
4317 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * async-event.c (struct async_signal_handler, struct
4320 async_event_handler): Reformat, remove typedef.
4321
4322 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4325 access thistype->main_type->dyn_prop_list directly.
4326
4327 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4330 (remove_dyn_prop): Remove. Update all users to use
4331 type::remove_dyn_prop.
4332 * gdbtypes.c (remove_dyn_prop): Rename to...
4333 (type::remove_dyn_prop): ... this.
4334
4335 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4336
4337 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4338 (add_dyn_prop): Remove. Update all users to use
4339 type::add_dyn_prop.
4340 * gdbtypes.c (add_dyn_prop): Rename to...
4341 (type::add_dyn_prop): ... this.
4342
4343 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4346 (get_dyn_prop): Remove. Update all users to use
4347 type::dyn_prop.
4348 * gdbtypes.c (get_dyn_prop): Rename to...
4349 (type::dyn_prop): ... this.
4350
4351 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4354
4355 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4356
4357 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4358 instruction, skip it if it's there.
4359
4360 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4361
4362 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4363
4364 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4367 * gdbtypes.c (recursive_dump_type): Remove use of
4368 TYPE_INCOMPLETE.
4369
4370 2020-05-03 Tom Tromey <tom@tromey.com>
4371
4372 * breakpoint.c (catch_command, tcatch_command): Remove.
4373 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4374 add_show_prefix_cmd.
4375 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4376 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4377 Remove.
4378 (add_internal_problem_command): Use add_basic_prefix_cmd,
4379 add_show_prefix_cmd.
4380 * mips-tdep.c (set_mipsfpu_command): Remove.
4381 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4382 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4383 (_initialize_index_cache): Use add_basic_prefix_cmd.
4384 * memattr.c (dummy_cmd): Remove.
4385 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4386 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4387 (_initialize_tui_win): Use add_basic_prefix_cmd,
4388 add_show_prefix_cmd.
4389 * cli/cli-logging.c (set_logging_command): Remove.
4390 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4391 add_show_prefix_cmd.
4392 (show_logging_command): Remove.
4393 * target.c (target_command): Remove.
4394 (add_target): Use add_basic_prefix_cmd.
4395
4396 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4397
4398 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4399
4400 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4401
4402 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4403 info_command.
4404
4405 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4406
4407 * nbsd-nat.c (nbsd_enable_proc_events)
4408 (nbsd_nat_target::post_startup_inferior): Add.
4409 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4410 (nbsd_nat_target::update_thread_list): Rewrite.
4411 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4412 "PTRACE_LWP_CREATE".
4413 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4414
4415 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4416
4417 * stack.c (_initialize_stack): Remove duplicated creation
4418 of "frame" command and "f" alias.
4419
4420 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4421
4422 PR gdb/18706
4423 * gdbtypes.c (check_typedef): Calculate size of array of
4424 stubbed type.
4425
4426 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4427
4428 PR gdb/15559
4429 * i386-tdep.c (i386_push_dummy_call): Call
4430 i386_thiscall_push_dummy_call.
4431 (i386_thiscall_push_dummy_call): New function.
4432 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4433 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4434 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4435
4436 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * gdbarch.sh (do_read): Add shellcheck disable directive for
4439 warning SC2162.
4440
4441 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4444 "referenced but not assigned" warning.
4445
4446 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbarch.sh: Remove code that sets fallbackdefault.
4449
4450 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * gdbarch.sh: Use shell operators && and || instead of
4453 -a and -o.
4454
4455 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbarch.sh: Use $(...) instead of `...`.
4458
4459 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * gdbarch.sh: Use double quotes around variables.
4462
4463 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * gdbarch.sh: Use %s with printf, instead of variables in the
4466 format string.
4467
4468 2020-04-29 Tom Tromey <tromey@adacore.com>
4469
4470 PR ada/25875:
4471 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4472 type fields here.
4473 (read_enumeration_type): Call
4474 update_enumeration_type_from_children later. Update comments.
4475 (process_enumeration_scope): Don't create type fields.
4476
4477 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4478
4479 * nbsd-tdep.c: Include "xml-syscall.h".
4480 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4481
4482 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4483
4484 * nbsd-nat.c: Include "sys/wait.h".
4485 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4486 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4487 (nbsd_nat_target::remove_exec_catchpoint)
4488 (nbsd_nat_target::set_syscall_catchpoint): Add.
4489 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4490 (nbsd_nat_target::insert_exec_catchpoint)
4491 (nbsd_nat_target::remove_exec_catchpoint)
4492 (nbsd_nat_target::set_syscall_catchpoint): Add.
4493 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4494 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4495 `nbsd_get_syscall_number'.
4496
4497 2020-04-29 Tom Tromey <tom@tromey.com>
4498
4499 * stack.c (print_block_frame_labels): Remove.
4500
4501 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4502
4503 PR gdb/17320
4504 * ada-valprint.c (val_print_packed_array_elements): Move array
4505 end bracket to new line.
4506 (ada_val_print_string): Remove extra spaces before first array
4507 element.
4508 * c-valprint.c (c_value_print_array): Likewise.
4509 * m2-valprint.c (m2_print_array_contents): Likewise.
4510 (m2_value_print_inner): Likewise.
4511 * p-valprint.c (pascal_value_print_inner): Likewise.
4512 * valprint.c (generic_val_print_array): Likewise.
4513 (value_print_array_elements): Move first array element and array
4514 end bracket to new line.
4515
4516 2020-04-29 Tom de Vries <tdevries@suse.de>
4517
4518 PR symtab/25889
4519 * linespec.c (find_method): Fix ix calculation.
4520
4521 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4522
4523 * syscalls/update-netbsd.sh: New file.
4524 * syscalls/netbsd.xml: Regenerate.
4525 * data-directory/Makefile.in: Register `netbsd.xml' in
4526 `SYSCALLS_FILES'.
4527
4528 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * syscalls/update-freebsd.sh: Add double quotes.
4531
4532 2020-04-28 Tom Tromey <tom@tromey.com>
4533
4534 * NEWS: Update.
4535 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4536 (cmdpy_init): Allow class_tui.
4537
4538 2020-04-28 Mark Williams <mark@myosotissp.com>
4539
4540 PR gdb/24480
4541 * dwarf2read.c: Add missing assingments to list_in_scope when
4542 start_symtab was already called.
4543
4544 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4545
4546 PR gdb/25881
4547 * dwarf2/read.c (offset_map_type): Use
4548 gdb:hash_enum<sect_offset> as hash function.
4549
4550 2020-04-28 Tom de Vries <tdevries@suse.de>
4551
4552 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4553 with DW_AT_signature.
4554
4555 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * configure.ac: Remove check for fs_base/gs_base in
4558 user_regs_struct.
4559 * configure: Re-generate.
4560 * config.in: Re-generate.
4561 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4562 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4563 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4564
4565 2020-04-27 Luis Machado <luis.machado@linaro.org>
4566
4567 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4568 problematic inline frame unwinding situation.
4569 * frame.c (frame_id_computed_p): New function.
4570 * frame.h (frame_id_computed_p): New prototype.
4571
4572 2020-04-26 Tom Tromey <tom@tromey.com>
4573
4574 * command.h (enum command_class) <class_pseudo>: Remove.
4575
4576 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4577
4578 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4579 and whitespace.
4580
4581 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4582
4583 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4584 `PT_GET_PROCESS_STATE' block.
4585
4586 2020-04-24 Tom Tromey <tom@tromey.com>
4587
4588 * symtab.h (symbol_get_demangled_name): Don't declare.
4589 * symtab.c (symbol_get_demangled_name): Remove.
4590 (general_symbol_info::natural_name)
4591 (general_symbol_info::demangled_name): Update.
4592
4593 2020-04-24 Tom Tromey <tom@tromey.com>
4594
4595 PR rust/25025:
4596 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4597
4598 2020-04-24 Tom Tromey <tom@tromey.com>
4599
4600 PR symtab/12707:
4601 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4602 exists.
4603 (new_symbol): Likewise.
4604 * compile/compile-object-load.c (get_out_value_type): Use
4605 symbol_matches_search_name.
4606
4607 2020-04-24 Tom Tromey <tom@tromey.com>
4608
4609 * dwarf2/read.c (add_partial_symbol): Do not call
4610 compute_and_set_names.
4611
4612 2020-04-24 Tom Tromey <tom@tromey.com>
4613
4614 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4615 overload.
4616
4617 2020-04-24 Tom Tromey <tom@tromey.com>
4618
4619 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4620 (add_psymbol_to_list): New overload. Make old overload call new
4621 one.
4622 * psympriv.h (add_psymbol_to_list): New overload.
4623
4624 2020-04-24 Tom Tromey <tom@tromey.com>
4625
4626 * dwarf2/read.c (partial_die_info::read) <case
4627 DW_AT_linkage_name>: Use value_as_string.
4628 (dwarf2_string_attr): Use value_as_string.
4629 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4630 method.
4631 * dwarf2/attribute.c (attribute::value_as_string): New method.
4632
4633 2020-04-24 Tom Tromey <tom@tromey.com>
4634
4635 * symtab.c (general_symbol_info::natural_name)
4636 (general_symbol_info::demangled_name): Check for language_rust.
4637
4638 2020-04-24 Tom Tromey <tom@tromey.com>
4639
4640 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4641 (dwarf2_physname): ... from here.
4642 (partial_die_info::read): Add Rust "{" hack.
4643
4644 2020-04-24 Tom Tromey <tom@tromey.com>
4645
4646 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4647 method.
4648 (symbol_set_demangled_name): Don't declare.
4649 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4650 symbol_set_demangled_name.
4651 (general_symbol_info::set_language)
4652 (general_symbol_info::compute_and_set_names): Update.
4653 * minsyms.c (minimal_symbol_reader::install): Update.
4654 * dwarf2/read.c (new_symbol): Update.
4655
4656 2020-04-24 Tom Tromey <tromey@adacore.com>
4657
4658 PR python/23662:
4659 * python/py-type.c (convert_field): Handle
4660 FIELD_LOC_KIND_DWARF_BLOCK.
4661 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4662 (typy_get_dynamic): Nw function.
4663 (type_object_getset): Add "dynamic".
4664 * NEWS: Add entry.
4665
4666 2020-04-24 Tom Tromey <tromey@adacore.com>
4667
4668 * ada-typeprint.c (print_choices, print_variant_part)
4669 (print_record_field_types_dynamic): New functions.
4670 (print_record_field_types): Use print_record_field_types_dynamic.
4671
4672 2020-04-24 Tom Tromey <tromey@adacore.com>
4673
4674 * dwarf2/read.c (handle_data_member_location): New overload.
4675 (dwarf2_add_field): Use it.
4676 (decode_locdesc): Add "computed" parameter. Update comment.
4677 * gdbtypes.c (is_dynamic_type_internal): Also look for
4678 FIELD_LOC_KIND_DWARF_BLOCK.
4679 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4680 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4681 virtual base classes.
4682 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4683 FIELD_LOC_KIND_DWARF_BLOCK.
4684
4685 2020-04-24 Tom Tromey <tromey@adacore.com>
4686
4687 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4688 * gdbtypes.c (is_dynamic_type_internal): Check
4689 TYPE_HAS_DYNAMIC_LENGTH.
4690 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4691 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4692 New macros.
4693 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4694 constant.
4695
4696 2020-04-24 Tom Tromey <tromey@adacore.com>
4697
4698 * dwarf2/read.c (struct variant_field): Rewrite.
4699 (struct variant_part_builder): New.
4700 (struct nextfield): Remove "variant" field. Add "offset".
4701 (struct field_info): Add "current_variant_part" and
4702 "variant_parts".
4703 (alloc_discriminant_info): Remove.
4704 (alloc_rust_variant): New function.
4705 (quirk_rust_enum): Update.
4706 (dwarf2_add_field): Set "offset" member. Don't handle
4707 DW_TAG_variant_part.
4708 (offset_map_type): New typedef.
4709 (convert_variant_range, create_one_variant)
4710 (create_one_variant_part, create_variant_parts)
4711 (add_variant_property): New functions.
4712 (dwarf2_attach_fields_to_type): Call add_variant_property.
4713 (read_structure_type): Don't handle DW_TAG_variant_part.
4714 (handle_variant_part, handle_variant): New functions.
4715 (handle_struct_member_die): Use them.
4716 (process_structure_scope): Don't handle variant parts.
4717 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4718 (struct discriminant_info): Remove.
4719 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4720 (struct main_type) <flag_discriminated_union>: Remove.
4721 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4722 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4723 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4724 Update.
4725 * valops.c (value_union_variant): Remove.
4726 * value.h (value_union_variant): Don't declare.
4727
4728 2020-04-24 Tom Tromey <tromey@adacore.com>
4729
4730 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4731 (ada_value_primitive_packed_val): Update.
4732 * ada-valprint.c (ada_value_print_1): Update.
4733 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4734 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4735 just an address. Use evaluate_for_locexpr_baton.
4736 (dwarf2_evaluate_property): Update.
4737 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4738 array_view.
4739 * findvar.c (default_read_var_value): Update.
4740 * gdbtypes.c (compute_variant_fields_inner)
4741 (resolve_dynamic_type_internal): Update.
4742 (resolve_dynamic_type): Change type of valaddr parameter.
4743 * gdbtypes.h (resolve_dynamic_type): Update.
4744 * valarith.c (value_subscripted_rvalue): Update.
4745 * value.c (value_from_contents_and_address): Update.
4746
4747 2020-04-24 Tom Tromey <tromey@adacore.com>
4748
4749 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4750 "push_initial_value" parameter.
4751 (dwarf2_evaluate_property): Likewise.
4752 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4753
4754 2020-04-24 Tom Tromey <tromey@adacore.com>
4755
4756 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4757 (variant::matches, compute_variant_fields_recurse)
4758 (compute_variant_fields_inner, compute_variant_fields): New
4759 functions.
4760 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4761 Use resolved_type after type is made.
4762 (operator==): Add new cases.
4763 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4764 (struct discriminant_range, struct variant, struct variant_part):
4765 New.
4766 (union dynamic_prop_data) <variant_parts, original_type>: New
4767 members.
4768 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4769 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4770 constants.
4771 * value.c (unpack_bits_as_long): Now public.
4772 * value.h (unpack_bits_as_long): Declare.
4773
4774 2020-04-24 Tom Tromey <tromey@adacore.com>
4775
4776 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4777 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4778
4779 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
4780
4781 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4782
4783 2020-04-24 Kamil Rytarowski <n54@gmx.com>
4784
4785 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4786 (remove_fork_catchpoint, post_startup_inferior)
4787 (post_attach): Move...
4788 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4789 (remove_fork_catchpoint, post_startup_inferior)
4790 (post_attach): ...here.
4791 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4792 (remove_fork_catchpoint, post_startup_inferior)
4793 (post_attach): Move...
4794 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4795 (remove_fork_catchpoint, post_startup_inferior)
4796 (post_attach): ...here.
4797
4798 2020-04-24 Tom Tromey <tromey@adacore.com>
4799
4800 * nat/windows-nat.h (struct windows_thread_info)
4801 <pc_adjusted>: New member.
4802 * windows-nat.c (windows_fetch_one_register): Check
4803 pc_adjusted.
4804 (windows_nat_target::get_windows_debug_event)
4805 (windows_nat_target::wait): Set pc_adjusted.
4806
4807 2020-04-24 Tom de Vries <tdevries@suse.de>
4808
4809 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4810 Run gdb-add-index inside temp dir.
4811
4812 2020-04-23 Tom Tromey <tromey@adacore.com>
4813
4814 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4815 in loop.
4816
4817 2020-04-23 Luis Machado <luis.machado@linaro.org>
4818
4819 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4820 get_frame_register instead of gdbarch_unwind_pc.
4821
4822 2020-04-23 Tom de Vries <tdevries@suse.de>
4823
4824 * symtab.c (lookup_global_symbol): Prefer def over decl.
4825
4826 2020-04-23 Tom de Vries <tdevries@suse.de>
4827
4828 PR symtab/25807
4829 * block.c (best_symbol, better_symbol): Promote to external.
4830 * block.h (best_symbol, better_symbol): Declare.
4831 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4832 decl.
4833
4834 2020-04-23 Tom Tromey <tromey@adacore.com>
4835
4836 PR ada/25837:
4837 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4838 "const char *", not a "const std::string &".
4839 <name_and_matcher::operator==>: Update.
4840 * unittests/lookup_name_info-selftests.c: Change type of
4841 "result".
4842
4843 2020-04-23 Tom Tromey <tom@tromey.com>
4844
4845 * inferior.h (iterate_over_inferiors): Don't declare.
4846 * inferior.c (iterate_over_inferiors): Remove.
4847 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4848 Remove.
4849 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4850 use iterate_over_inferiors.
4851 (darwin_resume_inferior_it)
4852 (struct resume_inferior_threads_param)
4853 (darwin_resume_inferior_threads_it): Remove.
4854 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4855
4856 2020-04-23 Tom de Vries <tdevries@suse.de>
4857
4858 * blockframe.c (find_pc_partial_function): Use
4859 find_pc_sect_compunit_symtab rather than
4860 objfile->sf->qf->find_pc_sect_compunit_symtab.
4861
4862 2020-04-22 Tom de Vries <tdevries@suse.de>
4863
4864 PR symtab/25764
4865 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4866 in psymtabs.
4867
4868 2020-04-22 Tom de Vries <tdevries@suse.de>
4869
4870 PR symtab/25801
4871 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4872 symtabs.
4873
4874 2020-04-22 Tom de Vries <tdevries@suse.de>
4875
4876 PR symtab/25700
4877 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4878 CU if already created.
4879
4880 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4881
4882 * infrun.c (displaced_step_fixup): Switch to the event_thread
4883 before calling displaced_step_restore, not after.
4884
4885 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4886
4887 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4888 its inferior is not recorded by us.
4889 (record_btrace_target_open): Replace call to
4890 all_non_exited_threads () with call to current_inferior
4891 ()->non_exited_threads ().
4892 (record_btrace_target::stop_recording): Likewise.
4893 (record_btrace_target::close): Likewise.
4894 (record_btrace_target::wait): Likewise.
4895 (record_btrace_target::record_stop_replaying): Likewise.
4896
4897 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4898
4899 * btrace.c (btrace_enable): Throw an error on double enables and
4900 when enabling recording fails.
4901 (btrace_disable): Throw an error if the thread is not recorded.
4902
4903 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4904
4905 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4906 request if we do not have a thread_info.
4907
4908 2020-04-21 Tom de Vries <tdevries@suse.de>
4909
4910 PR gdb/25471
4911 * thread.c
4912 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4913 exception in get_frame_id.
4914
4915 2020-04-20 Tom Tromey <tromey@adacore.com>
4916
4917 * python/python.c (struct gdbpy_event): Mark move constructor as
4918 noexcept.
4919 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4920 constructor as noexcept.
4921 * completer.h (struct completion_result): Mark move constructor as
4922 noexcept.
4923 * completer.c (completion_result::completion_result): Use
4924 initialization style. Don't call reset_match_list.
4925
4926 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4927
4928 * MAINTAINERS (Write After Approval): Add myself.
4929
4930 2020-04-18 Tom Tromey <tom@tromey.com>
4931
4932 * windows-tdep.c (init_w32_command_list)
4933 (w32_prefix_command_valid): Restore.
4934 (_initialize_windows_tdep): Call init_w32_command_list.
4935
4936 2020-04-18 Tom Tromey <tom@tromey.com>
4937
4938 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4939 * value.c (value_fn_field): Update.
4940 * valops.c (find_function_in_inferior)
4941 (value_allocate_space_in_inferior): Update.
4942 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4943 Update.
4944 * tui/tui-source.c (tui_source_window::set_contents): Update.
4945 * symtab.c (lookup_global_or_static_symbol)
4946 (find_function_start_sal_1, skip_prologue_sal)
4947 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4948 * symmisc.c (dump_msymbols, dump_symtab_1)
4949 (maintenance_print_one_line_table): Update.
4950 * symfile.c (init_entry_point_info, section_is_mapped)
4951 (list_overlays_command, simple_read_overlay_table)
4952 (simple_overlay_update_1): Update.
4953 * stap-probe.c (handle_stap_probe): Update.
4954 * stabsread.c (dbx_init_float_type, define_symbol)
4955 (read_one_struct_field, read_enum_type, read_range_type): Update.
4956 * source.c (info_line_command): Update.
4957 * python/python.c (gdbpy_source_objfile_script)
4958 (gdbpy_execute_objfile_script): Update.
4959 * python/py-type.c (save_objfile_types): Update.
4960 * python/py-objfile.c (py_free_objfile): Update.
4961 * python/py-inferior.c (python_new_objfile): Update.
4962 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4963 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4964 (maintenance_check_psymtabs): Update.
4965 * printcmd.c (info_address_command): Update.
4966 * objfiles.h (struct objfile) <arch>: New method, from
4967 get_objfile_arch.
4968 (get_objfile_arch): Don't declare.
4969 * objfiles.c (get_objfile_arch): Remove.
4970 (filter_overlapping_sections): Update.
4971 * minsyms.c (msymbol_is_function): Update.
4972 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4973 (output_nondebug_symbol): Update.
4974 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4975 (mdebug_expand_psymtab): Update.
4976 * machoread.c (macho_add_oso_symfile): Update.
4977 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4978 Update.
4979 * linux-fork.c (checkpoint_command): Update.
4980 * linespec.c (convert_linespec_to_sals): Update.
4981 * jit.c (finalize_symtab): Update.
4982 * infrun.c (insert_exception_resume_from_probe): Update.
4983 * ia64-tdep.c (ia64_find_unwind_table): Update.
4984 * hppa-tdep.c (internalize_unwinds): Update.
4985 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4986 Update.
4987 * gcore.c (call_target_sbrk): Update.
4988 * elfread.c (record_minimal_symbol, elf_symtab_read)
4989 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4990 (elf_gnu_ifunc_resolve_by_got): Update.
4991 * dwarf2/read.c (create_addrmap_from_index)
4992 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4993 (read_debug_names_from_section)
4994 (process_psymtab_comp_unit_reader, add_partial_symbol)
4995 (add_partial_subprogram, process_full_comp_unit)
4996 (read_file_scope, read_func_scope, read_lexical_block_scope)
4997 (read_call_site_scope, dwarf2_ranges_read)
4998 (dwarf2_record_block_ranges, dwarf2_add_field)
4999 (mark_common_block_symbol_computed, read_tag_pointer_type)
5000 (read_tag_string_type, dwarf2_init_float_type)
5001 (dwarf2_init_complex_target_type, read_base_type)
5002 (partial_die_info::read, partial_die_info::read)
5003 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5004 (dwarf2_fetch_die_loc_sect_off): Update.
5005 * dwarf2/loc.c (dwarf2_find_location_expression)
5006 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5007 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5008 (dwarf2_loc_desc_get_symbol_read_needs)
5009 (locexpr_describe_location_piece, locexpr_describe_location_1)
5010 (loclist_describe_location): Update.
5011 * dwarf2/index-write.c (write_debug_names): Update.
5012 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5013 * dtrace-probe.c (dtrace_process_dof): Update.
5014 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5015 (process_one_symbol): Update.
5016 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5017 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5018 (coff_read_enum_type): Update.
5019 * cli/cli-cmds.c (edit_command, list_command): Update.
5020 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5021 * breakpoint.c (create_overlay_event_breakpoint)
5022 (create_longjmp_master_breakpoint)
5023 (create_std_terminate_master_breakpoint)
5024 (create_exception_master_breakpoint, get_sal_arch): Update.
5025 * block.c (block_gdbarch): Update.
5026 * annotate.c (annotate_source_line): Update.
5027
5028 2020-04-17 Tom Tromey <tromey@adacore.com>
5029
5030 * auto-load.c (show_auto_load_cmd): Remove.
5031 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5032 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5033 (maintenance_print_arc_command): Remove.
5034 * tui/tui-win.c (tui_command): Remove.
5035 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5036 * tui/tui-layout.c (tui_layout_command): Remove.
5037 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5038 * python/python.c (user_set_python, user_show_python): Remove.
5039 (_initialize_python): Use add_basic_prefix_cmd,
5040 add_show_prefix_cmd.
5041 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5042 (install_gdb_commands): Use add_basic_prefix_cmd,
5043 add_show_prefix_cmd.
5044 (info_guile_command): Remove.
5045 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5046 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5047 add_show_prefix_cmd.
5048 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5049 Remove do_set and do_show parameters.
5050 * cli/cli-style.c (set_style, show_style): Remove.
5051 (_initialize_cli_style): Use add_basic_prefix_cmd,
5052 add_show_prefix_cmd.
5053 (cli_style_option::add_setshow_commands): Remove do_set and
5054 do_show parameters.
5055 (cli_style_option::add_setshow_commands): Use
5056 add_basic_prefix_cmd, add_show_prefix_cmd.
5057 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5058 (set_style_name): Remove.
5059 * cli/cli-dump.c (dump_command, append_command): Remove.
5060 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5061 (tekhex_dump_command, binary_dump_command)
5062 (binary_append_command): Remove.
5063 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5064 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5065 (init_w32_command_list): Remove; move into ...
5066 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5067 * valprint.c (set_print, show_print, set_print_raw)
5068 (show_print_raw): Remove.
5069 (_initialize_valprint): Use add_basic_prefix_cmd,
5070 add_show_prefix_cmd.
5071 * typeprint.c (set_print_type, show_print_type): Remove.
5072 (_initialize_typeprint): Use add_basic_prefix_cmd,
5073 add_show_prefix_cmd.
5074 * record.c (set_record_command, show_record_command): Remove.
5075 (_initialize_record): Use add_basic_prefix_cmd,
5076 add_show_prefix_cmd.
5077 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5078 add_show_prefix_cmd.
5079 (info_command, show_command, set_debug, show_debug): Remove.
5080 * top.h (set_history, show_history): Don't declare.
5081 * top.c (set_history, show_history): Remove.
5082 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5083 (unset_tdesc_cmd): Remove.
5084 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5085 add_show_prefix_cmd.
5086 * symtab.c (info_module_command): Remove.
5087 (_initialize_symtab): Use add_basic_prefix_cmd.
5088 * symfile.c (overlay_command): Remove.
5089 (_initialize_symfile): Use add_basic_prefix_cmd.
5090 * sparc64-tdep.c (info_adi_command): Remove.
5091 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5092 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5093 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5094 add_show_prefix_cmd.
5095 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5096 (_initialize_serial): Use add_basic_prefix_cmd,
5097 add_show_prefix_cmd.
5098 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5099 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5100 add_show_prefix_cmd.
5101 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5102 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5103 add_show_prefix_cmd.
5104 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5105 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5106 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5107 add_show_prefix_cmd.
5108 * remote.c (remote_command, set_remote_cmd): Remove.
5109 (_initialize_remote): Use add_basic_prefix_cmd.
5110 * record-full.c (set_record_full_command)
5111 (show_record_full_command): Remove.
5112 (_initialize_record_full): Use add_basic_prefix_cmd,
5113 add_show_prefix_cmd.
5114 * record-btrace.c (cmd_set_record_btrace)
5115 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5116 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5117 (cmd_show_record_btrace_pt): Remove.
5118 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5119 add_show_prefix_cmd.
5120 * ravenscar-thread.c (set_ravenscar_command)
5121 (show_ravenscar_command): Remove.
5122 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5123 add_show_prefix_cmd.
5124 * mips-tdep.c (show_mips_command, set_mips_command)
5125 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5126 add_show_prefix_cmd.
5127 * maint.c (maintenance_command, maintenance_info_command)
5128 (maintenance_check_command, maintenance_print_command)
5129 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5130 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5131 add_show_prefix_cmd.
5132 (show_per_command_cmd): Remove.
5133 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5134 Remove.
5135 (maintenance_show_test_settings_cmd): Remove.
5136 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5137 add_show_prefix_cmd.
5138 * maint-test-options.c (maintenance_test_options_command):
5139 Remove.
5140 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5141 * macrocmd.c (macro_command): Remove
5142 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5143 * language.c (set_check, show_check): Remove.
5144 (_initialize_language): Use add_basic_prefix_cmd,
5145 add_show_prefix_cmd.
5146 * infcmd.c (unset_command): Remove.
5147 (_initialize_infcmd): Use add_basic_prefix_cmd.
5148 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5149 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5150 add_show_prefix_cmd.
5151 * go32-nat.c (go32_info_dos_command): Remove.
5152 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5153 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5154 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5155 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5156 (_initialize_frame): Use add_basic_prefix_cmd,
5157 add_show_prefix_cmd.
5158 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5159 (_initialize_dcache): Use add_basic_prefix_cmd,
5160 add_show_prefix_cmd.
5161 * cp-support.c (maint_cplus_command): Remove.
5162 (_initialize_cp_support): Use add_basic_prefix_cmd.
5163 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5164 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5165 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5166 add_basic_prefix_cmd, add_show_prefix_cmd.
5167 * breakpoint.c (save_command): Remove.
5168 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5169 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5170 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5171 add_show_prefix_cmd.
5172 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5173 (set_ada_command, show_ada_command): Remove.
5174 (_initialize_ada_language): Use add_basic_prefix_cmd,
5175 add_show_prefix_cmd.
5176 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5177
5178 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5179
5180 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5181 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5182
5183 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5186 warning messages.
5187
5188 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5189
5190 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5191 import table is not at beginning of .idata section.
5192
5193 2020-04-16 Pedro Alves <palves@redhat.com>
5194
5195 * inferior.c (delete_inferior): Use delete operator directly
5196 instead of delete_program_space.
5197 * progspace.c (add_program_space): New, factored out from
5198 program_space::program_space.
5199 (remove_program_space): New, factored out from
5200 delete_program_space.
5201 (program_space::program_space): Remove intro comment. Rewrite.
5202 (program_space::~program_space): Remove intro comment. Call
5203 remove_program_space.
5204 (delete_program_space): Delete.
5205 * progspace.h (program_space::program_space): Make explicit. Move
5206 intro comment here, adjusted.
5207 (program_space::~program_space): Move intro comment here,
5208 adjusted.
5209 (delete_program_space): Remove.
5210
5211 2020-04-16 Tom Tromey <tromey@adacore.com>
5212
5213 * windows-nat.c (windows_nat::handle_access_violation): New
5214 function.
5215 * nat/windows-nat.h (handle_access_violation): Declare.
5216 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5217 windows-nat.c. Call handle_access_violation.
5218
5219 2020-04-16 Tom de Vries <tdevries@suse.de>
5220
5221 PR symtab/25791
5222 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5223 CUs without psymtab.
5224
5225 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5226
5227 * python/python.c (do_start_initialization): Don't call
5228 PyEval_InitThreads for Python 3.9 and beyond.
5229
5230 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5231
5232 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5233 thread functions.
5234 (obsd_nat_target::wait): Likewise.
5235
5236 2020-04-15 Tom Tromey <tromey@adacore.com>
5237
5238 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5239 (DEBUG_EXCEPT): Use debug_printf.
5240
5241 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * completer.c (class completion_tracker::completion_hash_entry)
5244 <hash_name>: New member function.
5245 (completion_tracker::discard_completions): New callback to hash a
5246 completion_hash_entry, pass this to htab_create_alloc.
5247
5248 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5249
5250 * windows-nat.c (windows_make_so): Warn rather than stopping with
5251 an error if realpath() fails.
5252
5253 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5254
5255 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5256 (nbsd_nat_target::info_proc): Add do_status.
5257
5258 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5259 Tom de Vries <tdevries@suse.de>
5260
5261 PR symtab/25718
5262 * psympriv.h (struct partial_symtab::read_symtab)
5263 (struct partial_symtab::expand_psymtab)
5264 (struct partial_symtab::read_dependencies): Update comments.
5265 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5266 read_symtab for includer.
5267 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5268 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5269 (struct dwarf2_include_psymtab::m_readin): Remove.
5270 (struct dwarf2_include_psymtab::includer): New member function.
5271 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5272
5273 2020-04-14 Tom de Vries <tdevries@suse.de>
5274
5275 PR symtab/25720
5276 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5277 with NULL symbol_matcher and lookup_name.
5278 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5279 and lookup_name.
5280 * dwarf2/read.c (dw2_expand_symtabs_matching)
5281 (dw2_debug_names_expand_symtabs_matching): Same.
5282 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5283 Make lookup_name a pointer. Update comment.
5284 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5285 lookup_name being a pointer.
5286 * symfile.c (expand_symtabs_matching): Same.
5287 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5288 * linespec.c (iterate_over_all_matching_symtabs): Same.
5289
5290 2020-04-13 Tom Tromey <tom@tromey.com>
5291
5292 * run-on-main-thread.c: Update include.
5293 * unittests/main-thread-selftests.c: Update include.
5294 * tui/tui-win.c: Update include.
5295 * tui/tui-io.c: Update include.
5296 * tui/tui-interp.c: Update include.
5297 * tui/tui-hooks.c: Update include.
5298 * top.h: Update include.
5299 * top.c: Update include.
5300 * ser-base.c: Update include.
5301 * remote.c: Update include.
5302 * remote-notif.c: Update include.
5303 * remote-fileio.c: Update include.
5304 * record-full.c: Update include.
5305 * record-btrace.c: Update include.
5306 * python/python.c: Update include.
5307 * posix-hdep.c: Update include.
5308 * mingw-hdep.c: Update include.
5309 * mi/mi-main.c: Update include.
5310 * mi/mi-interp.c: Update include.
5311 * main.c: Update include.
5312 * linux-nat.c: Update include.
5313 * interps.c: Update include.
5314 * infrun.c: Update include.
5315 * inf-loop.c: Update include.
5316 * event-top.c: Update include.
5317 * event-loop.c: Move to ../gdbsupport/.
5318 * event-loop.h: Move to ../gdbsupport/.
5319 * async-event.h: Update include.
5320 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5321
5322 2020-04-13 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-win.c: Include async-event.h.
5325 * remote.c: Include async-event.h.
5326 * remote-notif.c: Include async-event.h.
5327 * record-full.c: Include async-event.h.
5328 * record-btrace.c: Include async-event.h.
5329 * infrun.c: Include async-event.h.
5330 * event-top.c: Include async-event.h.
5331 * event-loop.h: Move some declarations to async-event.h.
5332 * event-loop.c: Don't include ser-event.h or top.h. Move some
5333 code to async-event.c.
5334 * async-event.h: New file.
5335 * async-event.c: New file.
5336 * Makefile.in (COMMON_SFILES): Add async-event.c.
5337 (HFILES_NO_SRCDIR): Add async-event.h.
5338
5339 2020-04-13 Tom Tromey <tom@tromey.com>
5340
5341 * utils.c (flush_streams): New function.
5342 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5343
5344 2020-04-13 Tom Tromey <tom@tromey.com>
5345
5346 * event-loop.c (handle_file_event): Use warning, not
5347 printf_unfiltered.
5348
5349 2020-04-13 Tom Tromey <tom@tromey.com>
5350
5351 * event-loop.c: Include <chrono>.
5352
5353 2020-04-13 Tom Tromey <tom@tromey.com>
5354
5355 * gdb_select.h: Move to ../gdbsupport/.
5356 * event-loop.c: Update include path.
5357 * top.c: Update include path.
5358 * ser-base.c: Update include path.
5359 * ui-file.c: Update include path.
5360 * ser-tcp.c: Update include path.
5361 * guile/scm-ports.c: Update include path.
5362 * posix-hdep.c: Update include path.
5363 * ser-unix.c: Update include path.
5364 * gdb_usleep.c: Update include path.
5365 * mingw-hdep.c: Update include path.
5366 * inflow.c: Update include path.
5367 * infrun.c: Update include path.
5368 * event-top.c: Update include path.
5369
5370 2020-04-13 Tom Tromey <tom@tromey.com>
5371
5372 * configure: Rebuild.
5373 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5374
5375 2020-04-13 Tom Tromey <tom@tromey.com>
5376
5377 * event-loop.h (start_event_loop): Don't declare.
5378 * event-loop.c (start_event_loop): Move...
5379 * main.c (start_event_loop): ...here. Now static.
5380
5381 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5382
5383 * MAINTAINERS: Update my email address.
5384
5385 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5386
5387 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5388 IP_ALL.
5389
5390 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5391
5392 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5393 (nbsd_nat_target::info_proc): Add do_cmdline.
5394
5395 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5396
5397 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5398 (nbsd_nat_target::info_proc): Add do_cwd.
5399
5400 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5401
5402 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5403
5404 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5405
5406 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5407 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5408 (nbsd_nat_target::info_proc): New functions.
5409 * nbsd-nat.c (kinfo_get_vmmap): New function.
5410 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5411 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5412 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5413 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5414 functions.
5415 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5416 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5417 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5418 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5419 (KINFO_VME_FLAG_GROWS_DOWN): New.
5420
5421 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5422
5423 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5424 bit shift.
5425
5426 2020-04-10 Tom Tromey <tromey@adacore.com>
5427
5428 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5429
5430 2020-04-10 Tom Tromey <tromey@adacore.com>
5431
5432 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5433 separate debug files.
5434
5435 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5436
5437 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5438 Move to...
5439 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5440 ... here.
5441 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5442 Check for STATUS_WX86_BREAKPOINT.
5443 (windows_nat_target::wait): Same.
5444
5445 2020-04-10 Tom de Vries <tdevries@suse.de>
5446
5447 PR cli/25808
5448 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5449
5450 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5451
5452 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5453 (Write After Approval): Remove Tom de Vries.
5454
5455 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5456
5457 revert partially:
5458 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5459
5460 * buildsym.c (record_line): Fix undefined behavior and preserve
5461 lines at eof.
5462
5463 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5464
5465 * auxv.h (svr4_auxv_parse): New.
5466 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5467 and generic_auxv_parse.
5468 (svr4_auxv_parse): Add.
5469 * obsd-tdep.c: Include "auxv.h".
5470 (obsd_auxv_parse): Remove.
5471 (obsd_init_abi): Remove comment.
5472 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5473 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5474 * nbsd-tdep.c: Include "auxv.h".
5475 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5476
5477 2020-04-08 Tom Tromey <tromey@adacore.com>
5478
5479 * nat/windows-nat.h (last_wait_event): Don't declare.
5480 (wait_for_debug_event): Update comment.
5481 * nat/windows-nat.c (last_wait_event): Now static.
5482
5483 2020-04-08 Tom Tromey <tromey@adacore.com>
5484
5485 * windows-nat.c (wait_for_debug_event): Move to
5486 nat/windows-nat.c.
5487 * nat/windows-nat.h (wait_for_debug_event): Declare.
5488 * nat/windows-nat.c (wait_for_debug_event): Move from
5489 windows-nat.c. No longer static.
5490
5491 2020-04-08 Tom Tromey <tromey@adacore.com>
5492
5493 * windows-nat.c (get_windows_debug_event): Use
5494 fetch_pending_stop.
5495 * nat/windows-nat.h (fetch_pending_stop): Declare.
5496 * nat/windows-nat.c (fetch_pending_stop): New function.
5497
5498 2020-04-08 Tom Tromey <tromey@adacore.com>
5499
5500 * windows-nat.c (windows_continue): Use matching_pending_stop and
5501 continue_last_debug_event.
5502 * nat/windows-nat.h (matching_pending_stop)
5503 (continue_last_debug_event): Declare.
5504 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5505 (matching_pending_stop, continue_last_debug_event): New
5506 functions.
5507
5508 2020-04-08 Tom Tromey <tromey@adacore.com>
5509
5510 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5511 (handle_exception_result): Move to nat/windows-nat.h.
5512 (DEBUG_EXCEPTION_SIMPLE): Remove.
5513 (windows_nat::handle_ms_vc_exception): New function.
5514 (handle_exception): Move to nat/windows-nat.c.
5515 (get_windows_debug_event): Update.
5516 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5517 nat/windows-nat.c.
5518 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5519 (handle_exception_result): Move from windows-nat.c.
5520 (handle_exception): Declare.
5521 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5522 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5523 windows-nat.c.
5524
5525 2020-04-08 Tom Tromey <tromey@adacore.com>
5526
5527 * windows-nat.c (exception_count, event_count): Remove.
5528 (handle_exception, get_windows_debug_event)
5529 (do_initial_windows_stuff): Update.
5530
5531 2020-04-08 Tom Tromey <tromey@adacore.com>
5532
5533 * windows-nat.c (windows_nat::handle_load_dll)
5534 (windows_nat::handle_unload_dll): Rename. No longer static.
5535 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5536 Declare.
5537
5538 2020-04-08 Tom Tromey <tromey@adacore.com>
5539
5540 * complaints.h (stop_whining): Declare at top-level.
5541 (complaint): Don't declare stop_whining.
5542
5543 2020-04-08 Tom Tromey <tromey@adacore.com>
5544
5545 * windows-nat.c (windows_nat::handle_output_debug_string):
5546 Rename. No longer static.
5547 * nat/windows-nat.h (handle_output_debug_string): Declare.
5548
5549 2020-04-08 Tom Tromey <tromey@adacore.com>
5550
5551 * windows-nat.c (current_process_handle, current_process_id)
5552 (main_thread_id, last_sig, current_event, last_wait_event)
5553 (current_windows_thread, desired_stop_thread_id, pending_stops)
5554 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5555 (display_selectors, fake_create_process)
5556 (get_windows_debug_event): Update.
5557 * nat/windows-nat.h (current_process_handle, current_process_id)
5558 (main_thread_id, last_sig, current_event, last_wait_event)
5559 (current_windows_thread, desired_stop_thread_id, pending_stops)
5560 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5561 * nat/windows-nat.c (current_process_handle, current_process_id)
5562 (main_thread_id, last_sig, current_event, last_wait_event)
5563 (current_windows_thread, desired_stop_thread_id, pending_stops)
5564 (siginfo_er): New globals. Move from windows-nat.c.
5565
5566 2020-04-08 Tom Tromey <tromey@adacore.com>
5567
5568 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5569 (handle_load_dll): Update.
5570 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5571
5572 2020-04-08 Tom Tromey <tromey@adacore.com>
5573
5574 * windows-nat.c (enum thread_disposition_type): Move to
5575 nat/windows-nat.h.
5576 (windows_nat::thread_rec): Rename from thread_rec. No longer
5577 static.
5578 (windows_add_thread, windows_nat_target::fetch_registers)
5579 (windows_nat_target::store_registers, handle_exception)
5580 (windows_nat_target::resume, get_windows_debug_event)
5581 (windows_nat_target::get_tib_address)
5582 (windows_nat_target::thread_name)
5583 (windows_nat_target::thread_alive): Update.
5584 * nat/windows-nat.h (enum thread_disposition_type): Move from
5585 windows-nat.c.
5586 (thread_rec): Declare.
5587
5588 2020-04-08 Tom Tromey <tromey@adacore.com>
5589
5590 * windows-nat.c: Add "using namespace".
5591 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5592 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5593
5594 2020-04-08 Tom Tromey <tromey@adacore.com>
5595
5596 * nat/windows-nat.h (struct windows_thread_info): Declare
5597 destructor.
5598 * nat/windows-nat.c (~windows_thread_info): New.
5599
5600 2020-04-08 Tom Tromey <tromey@adacore.com>
5601
5602 PR gdb/22992
5603 * windows-nat.c (current_event): Update comment.
5604 (last_wait_event, desired_stop_thread_id): New globals.
5605 (struct pending_stop): New.
5606 (pending_stops): New global.
5607 (windows_nat_target) <stopped_by_sw_breakpoint>
5608 <supports_stopped_by_sw_breakpoint>: New methods.
5609 (windows_fetch_one_register): Add assertions. Adjust PC.
5610 (windows_continue): Handle pending stops. Suspend other threads
5611 when stepping. Use last_wait_event
5612 (wait_for_debug_event): New function.
5613 (get_windows_debug_event): Use wait_for_debug_event. Handle
5614 pending stops. Queue spurious stops.
5615 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5616 (windows_nat_target::kill): Use wait_for_debug_event.
5617 * nat/windows-nat.h (struct windows_thread_info)
5618 <stopped_at_software_breakpoint>: New field.
5619 * nat/windows-nat.c (windows_thread_info::resume): Clear
5620 stopped_at_software_breakpoint.
5621
5622 2020-04-08 Tom Tromey <tromey@adacore.com>
5623
5624 * windows-nat.c (enum thread_disposition_type): New.
5625 (thread_rec): Replace "get_context" parameter with "disposition";
5626 change type.
5627 (windows_add_thread, windows_nat_target::fetch_registers)
5628 (windows_nat_target::store_registers, handle_exception)
5629 (windows_nat_target::resume, get_windows_debug_event)
5630 (windows_nat_target::get_tib_address)
5631 (windows_nat_target::thread_name)
5632 (windows_nat_target::thread_alive): Update.
5633
5634 2020-04-08 Tom Tromey <tromey@adacore.com>
5635
5636 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5637 (windows_continue): Use windows_continue::resume.
5638 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5639 resume>: Declare new methods.
5640 * nat/windows-nat.c: New file.
5641 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5642
5643 2020-04-08 Tom Tromey <tromey@adacore.com>
5644
5645 * windows-nat.c (windows_add_thread, windows_delete_thread)
5646 (windows_nat_target::fetch_registers)
5647 (windows_nat_target::store_registers, fake_create_process)
5648 (windows_nat_target::resume, windows_nat_target::resume)
5649 (get_windows_debug_event, windows_nat_target::wait)
5650 (windows_nat_target::pid_to_str)
5651 (windows_nat_target::get_tib_address)
5652 (windows_nat_target::get_ada_task_ptid)
5653 (windows_nat_target::thread_name)
5654 (windows_nat_target::thread_alive): Use lwp, not tid.
5655
5656 2020-04-08 Tom Tromey <tromey@adacore.com>
5657
5658 * windows-nat.c (handle_exception)
5659 (windows_nat_target::thread_name): Update.
5660 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5661 <name>: Now unique_xmalloc_ptr.
5662
5663 2020-04-08 Tom Tromey <tromey@adacore.com>
5664
5665 * windows-nat.c (thread_rec)
5666 (windows_nat_target::fetch_registers): Update.
5667 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5668 Update comment.
5669 <debug_registers_changed, reload_context>: Now bool.
5670
5671 2020-04-08 Tom Tromey <tromey@adacore.com>
5672
5673 * windows-nat.c (windows_add_thread): Use new.
5674 (windows_init_thread_list, windows_delete_thread): Use delete.
5675 (get_windows_debug_event): Update.
5676 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5677 destructor, and initializers.
5678
5679 2020-04-08 Tom Tromey <tromey@adacore.com>
5680
5681 * windows-nat.c (struct windows_thread_info): Remove.
5682 * nat/windows-nat.h: New file.
5683
5684 2020-04-08 Tom Tromey <tromey@adacore.com>
5685
5686 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5687 (thread_rec, windows_add_thread, windows_delete_thread)
5688 (windows_continue): Update.
5689
5690 2020-04-08 Tom Tromey <tromey@adacore.com>
5691
5692 * windows-nat.c (struct windows_thread_info): Remove typedef.
5693 (thread_head): Remove.
5694 (thread_list): New global.
5695 (thread_rec, windows_add_thread, windows_init_thread_list)
5696 (windows_delete_thread, windows_continue): Update.
5697
5698 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * windows-tdep.h (windows_init_abi): Add comment.
5701 (cygwin_init_abi): New declaration.
5702 * windows-tdep.c: Split signal enumeration in two, one for
5703 Windows and one for Cygwin.
5704 (windows_gdb_signal_to_target): Only deal with signal of the
5705 Windows OS ABI.
5706 (cygwin_gdb_signal_to_target): New function.
5707 (windows_init_abi): Rename to windows_init_abi_common, don't set
5708 gdb_signal_to_target gdbarch method. Add new new function with
5709 this name.
5710 (cygwin_init_abi): New function.
5711 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5712 comment. Don't call windows_init_abi.
5713 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5714 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5715 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5716 i386_windows_init_abi_common, don't call windows_init_abi. Add
5717 a new function of this name.
5718 (i386_cygwin_init_abi): New function.
5719 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5720 OS ABI Cygwin.
5721
5722 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5723
5724 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5725 parameter.c.
5726 (dwarf2_read_gdb_index): Update.
5727
5728 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5729
5730 * nbsd-tdep.c: Include "objfiles.h".
5731 (nbsd_skip_solib_resolver): New.
5732 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5733
5734 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5735
5736 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5737 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5738 with DW_LLE_base_addressx are being emitted in DWARFv5.
5739 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5740 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5741 unsigned integer.
5742
5743 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5744
5745 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5746 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5747 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5748 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5749 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5750 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5751 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5752
5753
5754 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5755
5756 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5757 (read_loclist_index): New function definition.
5758 (lookup_loclist_base): New function definition.
5759 (read_loclist_header): New function definition.
5760 (dwarf2_cu): Add loclist_base and loclist_header field.
5761 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5762 (read_full_die_1): Read the value of DW_AT_loclists_base.
5763 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5764 (read_attribute_value): Handle DW_FORM_loclistx.
5765 (skip_one_die): Handle DW_FORM_loclistx.
5766 (loclist_header): New structure declaration.
5767 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5768
5769 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5772 constructor. Remove `addr` parameter from other constructor and
5773 add `per_cu` parameter.
5774 * dwarf2/read.c (create_partial_symtab): Update.
5775
5776 2020-04-07 Tom de Vries <tdevries@suse.de>
5777
5778 PR symtab/25796
5779 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5780 (partial_die_info::fixup): Inherit has_const_value.
5781
5782 2020-04-07 Tom de Vries <tdevries@suse.de>
5783
5784 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5785 symbols without address.
5786
5787 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5788
5789 * nbsd-nat.h (struct thread_info): Add forward declaration.
5790 (nbsd_nat_target::thread_alive): Add.
5791 (nbsd_nat_target::thread_name): Likewise.
5792 (nbsd_nat_target::update_thread_list): Likewise.
5793 (update_thread_list::post_attach): Likewise.
5794 (post_attach::pid_to_str): Likewise.
5795 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5796 (nbsd_thread_lister): Add.
5797 (nbsd_nat_target::thread_alive): Likewise.
5798 (nbsd_nat_target::thread_name): Likewise.
5799 (nbsd_add_threads): Likewise.
5800 (update_thread_list::post_attach): Likewise.
5801 (nbsd_nat_target::update_thread_list): Likewise.
5802 (post_attach::pid_to_str): Likewise.
5803
5804 2020-04-06 Tom Tromey <tromey@adacore.com>
5805
5806 * ada-valprint.c (print_variant_part): Extract the variant field.
5807 (print_field_values): Use the field as the outer value when
5808 recursing.
5809
5810 2020-04-06 Tom Tromey <tromey@adacore.com>
5811
5812 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5813 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5814 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5815 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5816 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5817
5818 2020-04-06 Tom Tromey <tromey@adacore.com>
5819
5820 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5821 TYPE_CODE_ERROR.
5822
5823 2020-04-06 Kamil Rytarowski <n54@gmx.com>
5824
5825 * nbsd-tdep.c: Include "gdbarch.h".
5826 Define enum with NetBSD signal numbers.
5827 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5828 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5829 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5830 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5831 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5832 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5833 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5834 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5835 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5836 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5837 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5838 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5839
5840 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
5841
5842 PR gdb/25325
5843 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5844
5845 2020-04-03 Tom Tromey <tromey@adacore.com>
5846
5847 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5848 Read constant block.
5849
5850 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5851
5852 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5853 (gdb_bfd_get_full_section_contents): New declaration.
5854 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5855 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5856 gdb_bfd_get_full_section_contents.
5857
5858 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * exec.c (build_section_table): Replace internal_error with
5861 gdb_assert.
5862 (section_table_xfer_memory_partial): Likewise.
5863 * mdebugread.c (parse_partial_symbols): Likewise.
5864 * psymtab.c (lookup_partial_symbol): Likewise.
5865 * utils.c (wrap_here): Likewise.
5866
5867 2020-04-02 Tom Tromey <tromey@adacore.com>
5868
5869 * f-lang.c (build_fortran_types): Use arch_type to initialize
5870 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5871
5872 2020-04-02 Tom Tromey <tromey@adacore.com>
5873
5874 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5875 of attributes.
5876
5877 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5878 Bernd Edlinger <bernd.edlinger@hotmail.de>
5879 Tom Tromey <tromey@adacore.com>
5880
5881 * buildsym.c (buildsym_compunit::record_line): Remove
5882 deduplication code.
5883
5884 2020-04-02 Tom de Vries <tdevries@suse.de>
5885
5886 PR ada/24671
5887 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5888
5889 2020-04-02 Tom de Vries <tdevries@suse.de>
5890
5891 * dwarf2/read.c (dwarf2_gdb_index_functions,
5892 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5893 NULL.
5894 * psymtab.c (psym_lookup_global_symbol_language): New function.
5895 (psym_functions): Init psym_lookup_global_symbol_language with
5896 psym_lookup_global_symbol_language.
5897 * symfile-debug.c (debug_sym_quick_functions): Init
5898 lookup_global_symbol_language with NULL.
5899 * symfile.c (set_initial_language): Remove fixme comment.
5900 * symfile.h (struct quick_symbol_functions): Add
5901 lookup_global_symbol_language.
5902 * symtab.c (find_quick_global_symbol_language): New function.
5903 (find_main_name): Use find_quick_global_symbol_language.
5904
5905 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5908
5909 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5910
5911 * buildsym.c (record_line): Fix undefined behavior and preserve
5912 lines at eof.
5913
5914 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5915
5916 * buildsym.c (record_line): Fix the resizing condition.
5917
5918 2020-04-01 Tom Tromey <tom@tromey.com>
5919
5920 * value.h (value_literal_complex): Add comment.
5921 * valops.c (value_literal_complex): Refer to value.h.
5922
5923 2020-04-01 Tom Tromey <tom@tromey.com>
5924
5925 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5926 (scalar_type): New rule, from typebase.
5927 (typebase): Use scalar_type. Recognize complex types.
5928 (field_name): Handle FLOAT_KEYWORD.
5929 (ident_tokens): Add _Complex and __complex__.
5930
5931 2020-04-01 Tom Tromey <tom@tromey.com>
5932
5933 PR exp/25299:
5934 * valarith.c (promotion_type, complex_binop): New functions.
5935 (scalar_binop): Handle complex numbers. Use promotion_type.
5936 (value_pos, value_neg, value_complement): Handle complex numbers.
5937
5938 2020-04-01 Tom Tromey <tom@tromey.com>
5939
5940 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5941 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5942 (parse_number): Handle complex numbers.
5943
5944 2020-04-01 Tom Tromey <tom@tromey.com>
5945
5946 * c-valprint.c (c_decorations): Change complex suffix to "i".
5947
5948 2020-04-01 Tom Tromey <tom@tromey.com>
5949
5950 * valprint.c (generic_value_print_complex): Use accessors.
5951 * value.h (value_real_part, value_imaginary_part): Declare.
5952 * valops.c (value_real_part, value_imaginary_part): New
5953 functions.
5954 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5955
5956 2020-04-01 Tom Tromey <tom@tromey.com>
5957
5958 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5959 (read_range_type): Update.
5960 * mdebugread.c (basic_type): Update.
5961 * go-lang.c (build_go_types): Use init_complex_type.
5962 * gdbtypes.h (struct main_type) <complex_type>: New member.
5963 (init_complex_type): Update.
5964 (arch_complex_type): Don't declare.
5965 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5966 Make name if none given. Use alloc_type_copy. Look for cached
5967 complex type.
5968 (arch_complex_type): Remove.
5969 (gdbtypes_post_init): Use init_complex_type.
5970 * f-lang.c (build_fortran_types): Use init_complex_type.
5971 * dwarf2/read.c (read_base_type): Update.
5972 * d-lang.c (build_d_types): Use init_complex_type.
5973 * ctfread.c (read_base_type): Update.
5974
5975 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5976
5977 * infrun.c (stop_all_threads): Update assertion, plus when
5978 stopping threads, take into account that we might be trying
5979 to stop an all-stop target.
5980 (stop_waiting): Call 'stop_all_threads' if there exists a
5981 non-stop target.
5982
5983 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5984
5985 * target.h (exists_non_stop_target): New function declaration.
5986 * target.c (exists_non_stop_target): New function.
5987
5988 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
5989
5990 PR gdb/24789
5991 * eval.c (is_integral_or_integral_reference): New function.
5992 (evaluate_subexp_standard): Allow integer references in
5993 pointer arithmetic.
5994
5995 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5996
5997 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5998 check for no ptid in the stop reply when the target is non-stop.
5999
6000 2020-04-01 Tom Tromey <tromey@adacore.com>
6001
6002 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6003 "name" parameter to rvalue reference. Initialize m_name_holder.
6004 <lookup_name_info>: New overloads.
6005 <name>: Return gdb::string_view.
6006 <c_str>: New method.
6007 <make_ignore_params>: Update.
6008 <search_name_hash>: Update.
6009 <language_lookup_name>: Return const char *.
6010 <m_name>: Change type.
6011 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6012 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6013 (lookup_name_info::match_any): Update.
6014 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6015 Update.
6016 * minsyms.c (linkage_name_str): Update.
6017 * language.c (default_symbol_name_matcher): Update.
6018 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6019 Update.
6020 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6021 (ada_lookup_name_info::ada_lookup_name_info): Update.
6022 (literal_symbol_name_matcher): Update.
6023
6024 2020-04-01 Tom Tromey <tromey@adacore.com>
6025
6026 * psymtab.c (psymtab_search_name): Remove function.
6027 (psym_lookup_symbol): Create search name and lookup name here.
6028 (lookup_partial_symbol): Remove "name" parameter; add
6029 lookup_name.
6030 (psym_expand_symtabs_for_function): Update.
6031
6032 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6033
6034 PR tui/25597:
6035 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6036
6037 2020-03-31 Tom Tromey <tromey@adacore.com>
6038
6039 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6040 memcpy.
6041
6042 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6043
6044 * features/riscv/32bit-csr.xml: Regenerated.
6045 * features/riscv/64bit-csr.xml: Regenerated.
6046
6047 2020-03-30 Tom Tromey <tromey@adacore.com>
6048
6049 * ada-valprint.c (print_variant_part): Update.
6050 * ada-lang.h (ada_which_variant_applies): Update.
6051 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6052 outer_valaddr parameters; replace with "outer" value parameter.
6053 (to_fixed_variant_branch_type): Update.
6054
6055 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6056
6057 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6058 <list>. Remove inclusion of observable.h.
6059 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6060 (struct arch_lwp_info): New struct.
6061 (class ppc_linux_dreg_interface): New class.
6062 (struct ppc_linux_process_info): New struct.
6063 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6064 <low_new_clone, low_forget_process, low_prepare_to_resume>
6065 <copy_thread_dreg_state, mark_thread_stale>
6066 <mark_debug_registers_changed, register_hw_breakpoint>
6067 <clear_hw_breakpoint, register_wp, clear_wp>
6068 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6069 <num_memory_accesses, get_trigger_type>
6070 <create_watchpoint_request, hwdebug_point_cmp>
6071 <init_arch_lwp_info, get_arch_lwp_info>
6072 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6073 methods.
6074 <struct ptid_hash>: New inner struct.
6075 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6076 members.
6077 (saved_dabr_value, hwdebug_info, max_slots_number)
6078 (struct hw_break_tuple, struct thread_points, ppc_threads)
6079 (have_ptrace_hwdebug_interface)
6080 (hwdebug_find_thread_points_by_tid)
6081 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6082 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6083 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6084 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6085 use m_dreg_interface.
6086 (hwdebug_point_cmp): Change to...
6087 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6088 reference arguments instead of pointers.
6089 (ppc_linux_nat_target::ranged_break_num_registers): Use
6090 m_dreg_interface.
6091 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6092 m_dreg_interface. Call register_hw_breakpoint.
6093 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6094 m_dreg_interface. Call clear_hw_breakpoint.
6095 (get_trigger_type): Change to...
6096 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6097 comment.
6098 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6099 use m_dreg_interface. Call register_hw_breakpoint.
6100 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6101 use m_dreg_interface. Call clear_hw_breakpoint.
6102 (can_use_watchpoint_cond_accel): Change to...
6103 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6104 method. Update comment, use m_dreg_interface and
6105 m_process_info.
6106 (calculate_dvc): Change to...
6107 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6108 m_dreg_interface.
6109 (num_memory_accesses): Change to...
6110 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6111 (check_condition): Change to...
6112 (ppc_linux_nat_target::check_condition): ...this method.
6113 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6114 comment, use m_dreg_interface.
6115 (create_watchpoint_request): Change to...
6116 (ppc_linux_nat_target::create_watchpoint_request): ...this
6117 method. Use m_dreg_interface.
6118 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6119 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6120 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6121 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6122 (ppc_linux_nat_target::low_forget_process)
6123 (ppc_linux_nat_target::low_new_fork)
6124 (ppc_linux_nat_target::low_new_clone)
6125 (ppc_linux_nat_target::low_delete_thread)
6126 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6127 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6128 only call mark_thread_stale.
6129 (ppc_linux_thread_exit): Remove.
6130 (ppc_linux_nat_target::stopped_data_address): Change to...
6131 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6132 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6133 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6134 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6135 comment. Call low_stopped_data_address.
6136 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6137 m_dreg_interface.
6138 (ppc_linux_nat_target::masked_watch_num_registers): Use
6139 m_dreg_interface.
6140 (ppc_linux_nat_target::copy_thread_dreg_state)
6141 (ppc_linux_nat_target::mark_thread_stale)
6142 (ppc_linux_nat_target::mark_debug_registers_changed)
6143 (ppc_linux_nat_target::register_hw_breakpoint)
6144 (ppc_linux_nat_target::clear_hw_breakpoint)
6145 (ppc_linux_nat_target::register_wp)
6146 (ppc_linux_nat_target::clear_wp)
6147 (ppc_linux_nat_target::init_arch_lwp_info)
6148 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6149 (_initialize_ppc_linux_nat): Remove observer callback.
6150
6151 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6152
6153 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6154 (ppc_linux_nat_target::auxv_parse)
6155 (ppc_linux_nat_target::read_description)
6156 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6157 Move up.
6158
6159 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6160
6161 * linux-nat.h (low_new_clone): New method.
6162 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6163
6164 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6165
6166 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6167 (dbx_expand_psymtab): ... this.
6168 (start_psymtab): Update.
6169 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6170 (mdebug_expand_psymtab): ... this.
6171 (parse_partial_symbols): Update.
6172 (new_psymtab): Update.
6173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6174 (xcoff_expand_psymtab): ... this.
6175 (xcoff_start_psymtab): Update.
6176
6177 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6178
6179 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6180 <expand_dependencies>: ... this.
6181 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6182 (partial_symtab::expand_dependencies): ... this.
6183 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6184 Update.
6185 (dwarf2_psymtab::expand_psymtab): Update.
6186 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6187 * mdebugread.c (psymtab_to_symtab_1): Update.
6188 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6189
6190 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * psympriv.h (discard_psymtab): Remove.
6193 * dbxread.c (dbx_end_psymtab): Update.
6194 * xcoffread.c (xcoff_end_psymtab): Update.
6195
6196 2020-03-28 Tom Tromey <tom@tromey.com>
6197
6198 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6199 comment.
6200
6201 2020-03-28 Tom Tromey <tom@tromey.com>
6202
6203 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6204
6205 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6206
6207 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6208
6209 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6210
6211 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6212
6213 2020-03-26 Tom Tromey <tom@tromey.com>
6214
6215 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6216 (mark_common_block_symbol_computed, read_tag_string_type)
6217 (attr_to_dynamic_prop, read_subrange_type): Update.
6218 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6219 to be methods on struct attribute.
6220 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6221 (read_call_site_scope, partial_die_info::read)
6222 (partial_die_info::read, lookup_die_type, follow_die_ref):
6223 Update.
6224 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6225 from dwarf2_get_ref_die_offset.
6226 (attribute::constant_value): New method, from
6227 dwarf2_get_attr_constant_value.
6228 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6229 Declare method.
6230 <constant_value>: New method.
6231
6232 2020-03-26 Tom Tromey <tom@tromey.com>
6233
6234 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6235 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6236 (dwarf_type_encoding_name): Move to stringify.c.
6237 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6238 * dwarf2/stringify.c: New file.
6239 * dwarf2/stringify.h: New file.
6240
6241 2020-03-26 Tom Tromey <tom@tromey.com>
6242
6243 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6244 Rewrite.
6245
6246 2020-03-26 Tom Tromey <tom@tromey.com>
6247
6248 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6249 methods.
6250 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6251 (lookup_ranges_base): Likewise.
6252 (read_cutu_die_from_dwo, read_full_die_1): Update.
6253
6254 2020-03-26 Tom Tromey <tom@tromey.com>
6255
6256 * dwarf2/read.c (read_import_statement, read_file_scope)
6257 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6258 (read_lexical_block_scope, read_call_site_scope)
6259 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6260 (handle_struct_member_die, process_structure_scope)
6261 (update_enumeration_type_from_children)
6262 (process_enumeration_scope, read_array_type, read_common_block)
6263 (read_namespace, read_module, read_subroutine_type): Update.
6264 (sibling_die): Remove.
6265
6266 2020-03-26 Tom Tromey <tom@tromey.com>
6267
6268 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6269 (build_type_psymtabs_reader, read_structure_type)
6270 (read_enumeration_type, read_full_die_1): Update.
6271 (dwarf2_attr_no_follow): Move to die.h.
6272 * dwarf2/die.h (struct die_info) <attr>: New method.
6273
6274 2020-03-26 Tom Tromey <tom@tromey.com>
6275
6276 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6277 <base_address>: Now an optional.
6278 (dwarf2_find_base_address, dwarf2_rnglists_process)
6279 (dwarf2_ranges_process, fill_in_loclist_baton)
6280 (dwarf2_symbol_mark_computed): Update.
6281
6282 2020-03-26 Tom Tromey <tom@tromey.com>
6283
6284 * dwarf2/read.c (struct die_info): Move to die.h.
6285 * dwarf2/die.h: New file.
6286
6287 2020-03-26 Tom Tromey <tom@tromey.com>
6288
6289 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6290 * dwarf2/read.c
6291 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6292 Move to line-header.c.
6293 (read_checked_initial_length_and_offset, read_formatted_entries):
6294 Likewise.
6295 (dwarf_decode_line_header): Split into two.
6296 * dwarf2/line-header.c
6297 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6298 Move from read.c.
6299 (read_checked_initial_length_and_offset, read_formatted_entries):
6300 Likewise.
6301 (dwarf_decode_line_header): New function, split from read.c.
6302
6303 2020-03-26 Tom Tromey <tom@tromey.com>
6304
6305 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6306 Declare method.
6307 * dwarf2/read.c (read_attribute_value): Update.
6308 (dwarf2_per_objfile::read_line_string): Rename from
6309 read_indirect_line_string.
6310 (read_formatted_entries): Update.
6311
6312 2020-03-26 Tom Tromey <tom@tromey.com>
6313
6314 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6315 variable.
6316
6317 2020-03-26 Tom Tromey <tom@tromey.com>
6318
6319 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6320 const.
6321 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6322 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6323 parameter const.
6324
6325 2020-03-26 Tom Tromey <tom@tromey.com>
6326
6327 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6328 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6329 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6330 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6331
6332 2020-03-26 Tom Tromey <tom@tromey.com>
6333
6334 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6335 file_names_size, file_full_name, file_file_name>: Use const.
6336 <file_name_at, file_names>: Add const overload.
6337 * dwarf2/line-header.c (line_header::file_file_name)
6338 (line_header::file_full_name): Update.
6339
6340 2020-03-26 Tom Tromey <tom@tromey.com>
6341
6342 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6343 (macro_start_file, consume_improper_spaces)
6344 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6345 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6346 (dwarf_decode_macros): Move to macro.c.
6347 * dwarf2/macro.c: New file.
6348 * dwarf2/macro.h: New file.
6349 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6350
6351 2020-03-26 Tom Tromey <tom@tromey.com>
6352
6353 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6354 method.
6355 * dwarf2/section.c: New method. From
6356 read_indirect_string_at_offset_from.
6357 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6358 (read_indirect_string_at_offset_from): Move to section.c.
6359 (read_indirect_string_at_offset): Rewrite.
6360 (read_indirect_line_string_at_offset): Remove.
6361 (read_indirect_string, read_indirect_line_string)
6362 (dwarf_decode_macro_bytes): Update.
6363
6364 2020-03-26 Tom Tromey <tom@tromey.com>
6365
6366 * dwarf2/section.h (struct dwarf2_section_info)
6367 <overload_complaint>: Declare.
6368 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6369 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6370 Rename from dwarf2_section_buffer_overflow_complaint.
6371 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6372 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6373
6374 2020-03-26 Tom Tromey <tom@tromey.com>
6375
6376 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6377 Declare.
6378 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6379 Move from read.c.
6380 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6381 to section.c.
6382
6383 2020-03-26 Tom Tromey <tom@tromey.com>
6384
6385 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6386
6387 2020-03-26 Tom Tromey <tom@tromey.com>
6388
6389 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6390 "builder".
6391 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6392 parameter.
6393 (dwarf_decode_macros): Update.
6394
6395 2020-03-26 Tom Tromey <tom@tromey.com>
6396
6397 * dwarf2/read.c (read_attribute_value): Update.
6398 (read_indirect_string_from_dwz): Move to dwz.c; change into
6399 method.
6400 (dwarf_decode_macro_bytes): Update.
6401 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6402 * dwarf2/dwz.c: New file.
6403 * Makefile.in (COMMON_SFILES): Add dwz.c.
6404
6405 2020-03-26 Tom Tromey <tom@tromey.com>
6406
6407 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6408 * dwarf2/read.c: Add include.
6409 * dwarf2/index-write.c: Add include.
6410 * dwarf2/index-cache.c: Add include.
6411 * dwarf2/dwz.h: New file.
6412
6413 2020-03-25 Tom Tromey <tom@tromey.com>
6414
6415 * compile/compile-object-load.c (get_out_value_type): Mention
6416 correct symbol name in error message.
6417
6418 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6419
6420 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6421
6422 2020-03-25 Tom de Vries <tdevries@suse.de>
6423
6424 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6425 * symmisc.c (dump_symtab_1): Print user and includes fields.
6426 (maintenance_info_symtabs): Same.
6427
6428 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 PR gdb/25534
6431 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6432 (riscv_regcache_cooked_write): New function.
6433 (riscv_push_dummy_call): Use new function.
6434 (riscv_return_value): Likewise.
6435
6436 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6439 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6440 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6441 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6442 * infrun.c (follow_fork): Likewise.
6443 (follow_fork_inferior): Likewise.
6444 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6445 * linux-nat.h (class linux_nat_target): Likewise.
6446 * remote.c (class remote_target) <follow_fork>: Likewise.
6447 (remote_target::follow_fork): Likewise.
6448 * target-delegates.c: Re-generate.
6449 * target.c (default_follow_fork): Likewise.
6450 (target_follow_fork): Likewise.
6451 * target.h (struct target_ops) <follow_fork>: Likewise.
6452 (target_follow_fork): Likewise.
6453
6454 2020-03-24 Tom de Vries <tdevries@suse.de>
6455
6456 * psymtab.c (maintenance_info_psymtabs): Print user field.
6457
6458 2020-03-20 Tom Tromey <tromey@adacore.com>
6459
6460 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6461 const.
6462 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6463 const.
6464
6465 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * ptrace.m4: Don't check for ptrace declaration.
6468 * config.in: Re-generate.
6469 * configure: Re-generate.
6470 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6471 not defined.
6472
6473 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6474
6475 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6476 `PTRACE_TYPE_RET'.
6477 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6478 * sparc-nat.c (gdb_ptrace): Likewise.
6479 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6480
6481 2020-03-20 Tom Tromey <tromey@adacore.com>
6482
6483 * c-exp.y (lex_one_token): Fix assert.
6484
6485 2020-03-20 Tom Tromey <tromey@adacore.com>
6486
6487 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6488 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6489 strncpy call.
6490
6491 2020-03-20 Tom Tromey <tromey@adacore.com>
6492
6493 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6494
6495 2020-03-20 Tom Tromey <tromey@adacore.com>
6496
6497 * ada-valprint.c (print_variant_part): Remove parameters; switch
6498 to value-based API.
6499 (print_field_values): Likewise.
6500 (ada_val_print_struct_union): Likewise.
6501 (ada_value_print_1): Update.
6502
6503 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6504
6505 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6506 nbsd_nat_target instead of inf_ptrace_target.
6507 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6508 nbsd_nat_target.
6509
6510 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6511
6512 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6513 it to the ptrace call.
6514 * (store_registers): Likewise.
6515
6516 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6517
6518 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6519 it to the ptrace call.
6520 * (store_registers): Likewise.
6521
6522 2020-03-19 Luis Machado <luis.machado@linaro.org>
6523
6524 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6525 valid, fetch vg value from ptrace.
6526
6527 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6528 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6529 * inf-ptrace.c: Likewise.
6530 * (gdb_ptrace): Add.
6531 * (inf_ptrace_target::resume): Update.
6532 * (inf_ptrace_target::xfer_partial): Likewise.
6533 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6534 * (inf_ptrace_peek_poke): Update.
6535
6536 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6537
6538 * x86-bsd-nat.c (gdb_ptrace): New.
6539 * (x86bsd_dr_set): Add new argument `ptid'.
6540 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6541 x86bsd_dr_set_addr): Update.
6542
6543 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * remote.c (remote_target::process_stop_reply): Handle events for
6546 all threads differently.
6547
6548 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * completer.c (completion_tracker::remove_completion): Define new
6551 function.
6552 * completer.h (completion_tracker::remove_completion): Declare new
6553 function.
6554 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6555 when adding a C++ function symbol.
6556
6557 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * completer.c (completion_tracker::completion_hash_entry): Define
6560 new class.
6561 (advance_to_filename_complete_word_point): Call
6562 recompute_lowest_common_denominator.
6563 (completion_tracker::completion_tracker): Call discard_completions
6564 to setup the hash table.
6565 (completion_tracker::discard_completions): Allow for being called
6566 from the constructor, pass new equal function, and element deleter
6567 when constructing the hash table. Initialise new class member
6568 variables.
6569 (completion_tracker::maybe_add_completion): Remove use of
6570 m_entries_vec, and store more information into m_entries_hash.
6571 (completion_tracker::recompute_lcd_visitor): New function, most
6572 content taken from...
6573 (completion_tracker::recompute_lowest_common_denominator):
6574 ...here, this now just visits each item in the hash calling the
6575 above visitor.
6576 (completion_tracker::build_completion_result): Remove use of
6577 m_entries_vec, call recompute_lowest_common_denominator.
6578 * completer.h (completion_tracker::have_completions): Remove use
6579 of m_entries_vec.
6580 (completion_tracker::completion_hash_entry): Declare new class.
6581 (completion_tracker::recompute_lowest_common_denominator): Change
6582 function signature.
6583 (completion_tracker::recompute_lcd_visitor): Declare new function.
6584 (completion_tracker::m_entries_vec): Delete.
6585 (completion_tracker::m_entries_hash): Initialize to NULL.
6586 (completion_tracker::m_lowest_common_denominator_valid): New
6587 member variable.
6588 (completion_tracker::m_lowest_common_denominator_max_length): New
6589 member variable.
6590
6591 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6592
6593 * regformats/regdef.h: Put reg in gdb namespace.
6594
6595 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6596
6597 * i386-bsd-nat.c (gdb_ptrace): New.
6598 * (i386bsd_fetch_inferior_registers,
6599 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6600 * (i386bsd_fetch_inferior_registers,
6601 i386bsd_store_inferior_registers) Use gdb_ptrace.
6602
6603 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6604
6605 * amd64-bsd-nat.c (gdb_ptrace): New.
6606 * (amd64bsd_fetch_inferior_registers,
6607 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6608 * (amd64bsd_fetch_inferior_registers,
6609 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6610
6611 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6612
6613 * user-regs.c (user_reg::read): Rename to...
6614 (user_reg::xread): ...this.
6615 * (append_user_reg): Rename argument `read' to `xread'.
6616 * (user_reg_add_builtin): Likewise.
6617 * (user_reg_add): Likewise.
6618 * (value_of_user_reg): Likewise.
6619
6620 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6621
6622 * sparc-nat.c (gdb_ptrace): New.
6623 * sparc-nat.c (sparc_fetch_inferior_registers)
6624 (sparc_store_inferior_registers) Remove obsolete comment.
6625 * sparc-nat.c (sparc_fetch_inferior_registers)
6626 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6627 * sparc-nat.c (sparc_fetch_inferior_registers)
6628 (sparc_store_inferior_registers) Use gdb_ptrace.
6629
6630 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6631
6632 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6633 it to the ptrace call.
6634 * sh-nbsd-nat.c (store_registers): Likewise.
6635
6636 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6637
6638 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6639 nbsd_nat_target instead of inf_ptrace_target.
6640 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6641 nbsd_nat_target.
6642
6643 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6644
6645 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6646
6647 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6648
6649 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6650 <sys/sysctl.h>.
6651 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6652
6653 2020-03-17 Tom de Vries <tdevries@suse.de>
6654
6655 PR gdb/23710
6656 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6657 fields.
6658 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6659 fields.
6660 (process_imported_unit_die): Skip import of c++ CUs.
6661
6662 2020-03-16 Tom Tromey <tom@tromey.com>
6663
6664 * p-valprint.c (pascal_object_print_value): Initialize
6665 base_value.
6666
6667 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6668 Shahab Vahedi <shahab@synopsys.com>
6669
6670 * Makefile.in: Add arch/arc.o
6671 * configure.tgt: Likewise.
6672 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6673 (_initialize_arc_tdep): Don't initialize old target descriptions.
6674 (arc_read_description): New function to cache target descriptions.
6675 * arc-tdep.h (arc_read_description): Add proto type.
6676 * arch/arc.c: New file.
6677 * arch/arc.h: Likewise.
6678 * features/Makefile: Replace old target descriptions with new.
6679 * features/arc-arcompact.c: Remove.
6680 * features/arc-arcompact.xml: Likewise.
6681 * features/arc-v2.c: Likewise
6682 * features/arc-v2.xml: Likewise
6683 * features/arc/aux-arcompact.xml: New file.
6684 * features/arc/aux-v2.xml: Likewise.
6685 * features/arc/core-arcompact.xml: Likewise.
6686 * features/arc/core-v2.xml: Likewise.
6687 * features/arc/aux-arcompact.c: Generate.
6688 * features/arc/aux-v2.c: Likewise.
6689 * features/arc/core-arcompact.c: Likewise.
6690 * features/arc/core-v2.c: Likewise.
6691 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6692
6693 2020-03-16 Tom Tromey <tromey@adacore.com>
6694
6695 PR gdb/25663:
6696 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6697 putting value into bcache.
6698
6699 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6700
6701 PR gdb/21500
6702 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6703 to...
6704 (amd64_windows_init_abi_common): ... this. Don't set size of
6705 long type.
6706 (amd64_windows_init_abi): New function.
6707 (amd64_cygwin_init_abi): New function.
6708 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6709 the Cygwin OS ABI.
6710 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6711 comment.
6712
6713 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6716 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6717 (pe_import_directory_entry): New struct type.
6718 (is_linked_with_cygwin_dll): New function.
6719 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6720 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6721 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6722
6723 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6726 i386_cygwin_core_osabi_sniffer.
6727
6728 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6729
6730 * i386-cygwin-tdep.c: Rename to...
6731 * i386-windows-tdep.c: ... this.
6732 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6733 i386-windows-tdep.c.
6734 * configure.tgt: Likewise.
6735
6736 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6739 * osabi.c (gdb_osabi_names): Add "Windows".
6740 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6741 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6742 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6743 i386_cygwin_osabi_sniffer.
6744 (_initialize_i386_cygwin_tdep): Register OS ABI
6745 GDB_OSABI_WINDOWS for i386.
6746 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6747 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6748 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6749 for x86-64.
6750 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6751 when the target matches '*-*-mingw*'.
6752
6753 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * defs.h (enum gdb_osabi): Move to...
6756 * osabi.h (enum gdb_osabi): ... here.
6757 * gdbarch.sh: Include osabi.h in gdbarch.h.
6758 * gdbarch.h: Re-generate.
6759
6760 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6761
6762 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6763 function.
6764 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6765
6766 2020-03-14 Tom Tromey <tom@tromey.com>
6767
6768 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6769 for C++.
6770 (c_type_print_modifier): Likewise. Add "language" parameter.
6771 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6772 (c_type_print_base_1): Update.
6773 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6774 constants.
6775 * type-stack.c (type_stack::insert): Handle tp_atomic and
6776 tp_restrict.
6777 (type_stack::follow_type_instance_flags): Likewise.
6778 (type_stack::follow_types): Likewise. Merge type-following code.
6779 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6780 (space_identifier, cv_with_space_id)
6781 (const_or_volatile_or_space_identifier_noopt)
6782 (const_or_volatile_or_space_identifier): Remove.
6783 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6784 rules.
6785 (ptr_operator, typebase): Update.
6786 (enum token_flag) <FLAG_C>: New constant.
6787 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6788 "_Atomic".
6789 (lex_one_token): Handle FLAG_C.
6790
6791 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6792
6793 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6794 it to the ptrace call.
6795 * m68k-bsd-nat.c (store_registers): Likewise.
6796
6797 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6798
6799 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6800 gdb_byte *.
6801 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6802 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6803 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6804
6805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6806
6807 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6808 nbsd_nat_target instead of inf_ptrace_target.
6809 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6810 nbsd_nat_target.
6811
6812 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6813
6814 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6815 register_t.
6816
6817 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6818
6819 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6820 it to the ptrace call.
6821 * alpha-bsd-nat.c (store_registers): Likewise.
6822
6823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6824
6825 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6826 includes.
6827 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6828 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6829 fill_fpregset): Likewise.
6830
6831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6832
6833 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6834 nbsd_nat_target instead of inf_ptrace_target.
6835 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6836 nbsd_nat_target.
6837
6838 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6839
6840 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6841 register_t.
6842
6843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6844
6845 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6846 it to the ptrace call.
6847 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6848 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6849 * arm-nbsd-nat.c (store_register): Likewise.
6850 * arm-nbsd-nat.c (store_regs): Likewise.
6851 * arm-nbsd-nat.c (store_fp_register): Likewise.
6852 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6853
6854 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6855
6856 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6857 nbsd_nat_target instead of inf_ptrace_target.
6858 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6859 nbsd_nat_target.
6860
6861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6862
6863 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6864 it to the ptrace call.
6865 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6866
6867 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6868
6869 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6870 it to the ptrace call.
6871 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6872
6873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6874
6875 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6876 gdb_byte *.
6877 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6878
6879 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6880
6881 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6882 instead of inf_ptrace_target.
6883 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6884 nbsd_nat_target.
6885
6886 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6887
6888 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6889 register_t.
6890
6891 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6892
6893 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6894 register_t.
6895
6896 2020-03-14 Kamil Rytarowski <n54@gmx.com>
6897
6898 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6899 register_t.
6900
6901 2020-03-13 Tom Tromey <tom@tromey.com>
6902
6903 * value.h (val_print): Don't declare.
6904 * valprint.h (val_print_array_elements)
6905 (val_print_scalar_formatted, generic_val_print): Don't declare.
6906 * valprint.c (generic_val_print_array): Take a struct value.
6907 (generic_val_print_ptr, generic_val_print_memberptr)
6908 (generic_val_print_bool, generic_val_print_int)
6909 (generic_val_print_char, generic_val_print_complex)
6910 (generic_val_print): Remove.
6911 (generic_value_print): Update.
6912 (do_val_print): Remove unused parameters. Don't call
6913 la_val_print.
6914 (val_print): Remove.
6915 (common_val_print): Update. Don't call value_check_printable.
6916 (val_print_scalar_formatted, val_print_array_elements): Remove.
6917 * rust-lang.c (rust_val_print): Remove.
6918 (rust_language_defn): Update.
6919 * p-valprint.c (pascal_val_print): Remove.
6920 (pascal_value_print_inner): Update.
6921 (pascal_object_print_val_fields, pascal_object_print_val):
6922 Remove.
6923 (pascal_object_print_static_field): Update.
6924 * p-lang.h (pascal_val_print): Don't declare.
6925 * p-lang.c (pascal_language_defn): Update.
6926 * opencl-lang.c (opencl_language_defn): Update.
6927 * objc-lang.c (objc_language_defn): Update.
6928 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6929 * m2-lang.h (m2_val_print): Don't declare.
6930 * m2-lang.c (m2_language_defn): Update.
6931 * language.h (struct language_defn) <la_val_print>: Remove.
6932 * language.c (unk_lang_value_print_inner): Rename. Change
6933 argument types.
6934 (unknown_language_defn, auto_language_defn): Update.
6935 * go-valprint.c (go_val_print): Remove.
6936 * go-lang.h (go_val_print): Don't declare.
6937 * go-lang.c (go_language_defn): Update.
6938 * f-valprint.c (f_val_print): Remove.
6939 * f-lang.h (f_value_print): Don't declare.
6940 * f-lang.c (f_language_defn): Update.
6941 * d-valprint.c (d_val_print): Remove.
6942 * d-lang.h (d_value_print): Don't declare.
6943 * d-lang.c (d_language_defn): Update.
6944 * cp-valprint.c (cp_print_value_fields)
6945 (cp_print_value_fields_rtti, cp_print_value): Remove.
6946 (cp_print_static_field): Update.
6947 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6948 (c_val_print_struct, c_val_print_union, c_val_print_int)
6949 (c_val_print_memberptr, c_val_print): Remove.
6950 * c-lang.h (c_val_print_array, cp_print_value_fields)
6951 (cp_print_value_fields_rtti): Don't declare.
6952 * c-lang.c (c_language_defn, cplus_language_defn)
6953 (asm_language_defn, minimal_language_defn): Update.
6954 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6955 (ada_val_print_enum): Take a struct value.
6956 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6957 (ada_val_print): Remove.
6958 (ada_value_print_1): Update.
6959 (printable_val_type): Remove.
6960 * ada-lang.h (ada_val_print): Don't declare.
6961 * ada-lang.c (ada_language_defn): Update.
6962
6963 2020-03-13 Tom Tromey <tom@tromey.com>
6964
6965 * valprint.c (do_val_print): Update.
6966 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6967 a struct value.
6968 (value_to_value_object_no_release): Declare.
6969 * python/py-value.c (value_to_value_object_no_release): New
6970 function.
6971 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6972 struct value.
6973 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6974 function.
6975 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6976 a struct value.
6977 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6978 Declare.
6979 (gdbscm_apply_val_pretty_printer): Take a struct value.
6980 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6981 value.
6982 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6983 value.
6984 * extension-priv.h (struct extension_language_ops)
6985 <apply_val_pretty_printer>: Take a struct value.
6986 * cp-valprint.c (cp_print_value): Create a struct value.
6987 (cp_print_value): Update.
6988
6989 2020-03-13 Tom Tromey <tom@tromey.com>
6990
6991 * ada-valprint.c (print_field_values): Call common_val_print.
6992
6993 2020-03-13 Tom Tromey <tom@tromey.com>
6994
6995 * ada-valprint.c (val_print_packed_array_elements): Remove
6996 bitoffset and val parameters. Call common_val_print.
6997 (ada_val_print_string): Remove offset, address, and original_value
6998 parameters.
6999 (ada_val_print_array): Update.
7000 (ada_value_print_array): New function.
7001 (ada_value_print_1): Call it.
7002
7003 2020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * ada-valprint.c (ada_value_print): Use common_val_print.
7006
7007 2020-03-13 Tom Tromey <tom@tromey.com>
7008
7009 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7010
7011 2020-03-13 Tom Tromey <tom@tromey.com>
7012
7013 * ada-valprint.c (ada_value_print_num): New function.
7014 (ada_value_print_1): Use it.
7015
7016 2020-03-13 Tom Tromey <tom@tromey.com>
7017
7018 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7019
7020 2020-03-13 Tom Tromey <tom@tromey.com>
7021
7022 * ada-valprint.c (ada_value_print_ptr): New function.
7023 (ada_value_print_1): Use it.
7024
7025 2020-03-13 Tom Tromey <tom@tromey.com>
7026
7027 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7028 call common_val_print.
7029 (ada_val_print_1): Update.
7030 (ada_value_print_1): New function.
7031 (ada_value_print_inner): Rewrite.
7032
7033 2020-03-13 Tom Tromey <tom@tromey.com>
7034
7035 * cp-valprint.c (cp_print_value_fields): Update.
7036 (cp_print_value): New function.
7037
7038 2020-03-13 Tom Tromey <tom@tromey.com>
7039
7040 * m2-valprint.c (m2_value_print_inner): Use
7041 cp_print_value_fields.
7042 * cp-valprint.c (cp_print_value_fields): New function.
7043 * c-valprint.c (c_value_print_struct): New function.
7044 (c_value_print_inner): Use c_value_print_struct.
7045 * c-lang.h (cp_print_value_fields): Declare.
7046
7047 2020-03-13 Tom Tromey <tom@tromey.com>
7048
7049 * c-valprint.c (c_value_print_array): New function.
7050 (c_value_print_inner): Use it.
7051
7052 2020-03-13 Tom Tromey <tom@tromey.com>
7053
7054 * c-valprint.c (c_value_print_memberptr): New function.
7055 (c_value_print_inner): Use it.
7056
7057 2020-03-13 Tom Tromey <tom@tromey.com>
7058
7059 * c-valprint.c (c_value_print_int): New function.
7060 (c_value_print_inner): Use it.
7061
7062 2020-03-13 Tom Tromey <tom@tromey.com>
7063
7064 * c-valprint.c (c_value_print_ptr): New function.
7065 (c_value_print_inner): Use it.
7066
7067 2020-03-13 Tom Tromey <tom@tromey.com>
7068
7069 * c-valprint.c (c_value_print_inner): Rewrite.
7070
7071 2020-03-13 Tom Tromey <tom@tromey.com>
7072
7073 * valprint.c (generic_value_print_complex): New function.
7074 (generic_value_print): Use it.
7075
7076 2020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * valprint.c (generic_val_print_float): Don't call
7079 val_print_scalar_formatted.
7080 (generic_val_print, generic_value_print): Update.
7081
7082 2020-03-13 Tom Tromey <tom@tromey.com>
7083
7084 * valprint.c (generic_value_print_char): New function
7085 (generic_value_print): Use it.
7086
7087 2020-03-13 Tom Tromey <tom@tromey.com>
7088
7089 * valprint.c (generic_value_print_int): New function.
7090 (generic_value_print): Use it.
7091
7092 2020-03-13 Tom Tromey <tom@tromey.com>
7093
7094 * valprint.c (generic_value_print_bool): New function.
7095 (generic_value_print): Use it.
7096
7097 2020-03-13 Tom Tromey <tom@tromey.com>
7098
7099 * valprint.c (generic_val_print_func): Simplify.
7100 (generic_val_print, generic_value_print): Update.
7101
7102 2020-03-13 Tom Tromey <tom@tromey.com>
7103
7104 * valprint.c (generic_val_print_flags): Remove.
7105 (generic_val_print, generic_value_print): Update.
7106 (val_print_type_code_flags): Add original_value parameter.
7107
7108 2020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * valprint.c (generic_val_print): Update.
7111 (generic_value_print): Update.
7112 * valprint.c (generic_val_print_enum): Don't call
7113 val_print_scalar_formatted.
7114
7115 2020-03-13 Tom Tromey <tom@tromey.com>
7116
7117 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7118 * valprint.c (generic_value_print_ptr): New function.
7119
7120 2020-03-13 Tom Tromey <tom@tromey.com>
7121
7122 * valprint.c (generic_value_print): Rewrite.
7123
7124 2020-03-13 Tom Tromey <tom@tromey.com>
7125
7126 * p-valprint.c (pascal_object_print_value_fields)
7127 (pascal_object_print_value): New functions.
7128
7129 2020-03-13 Tom Tromey <tom@tromey.com>
7130
7131 * p-valprint.c (pascal_value_print_inner): Rewrite.
7132
7133 2020-03-13 Tom Tromey <tom@tromey.com>
7134
7135 * f-valprint.c (f_value_print_innner): Rewrite.
7136
7137 2020-03-13 Tom Tromey <tom@tromey.com>
7138
7139 * m2-valprint.c (m2_print_unbounded_array): New overload.
7140 (m2_print_unbounded_array): Update.
7141 (m2_print_array_contents): Take a struct value.
7142 (m2_value_print_inner): Rewrite.
7143
7144 2020-03-13 Tom Tromey <tom@tromey.com>
7145
7146 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7147 (d_value_print_inner): New function.
7148 * d-lang.h (d_value_print_inner): Declare.
7149 * d-lang.c (d_language_defn): Use d_value_print_inner.
7150
7151 2020-03-13 Tom Tromey <tom@tromey.com>
7152
7153 * go-valprint.c (go_value_print_inner): New function.
7154 * go-lang.h (go_value_print_inner): Declare.
7155 * go-lang.c (go_language_defn): Use go_value_print_inner.
7156
7157 2020-03-13 Tom Tromey <tom@tromey.com>
7158
7159 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7160 API.
7161 (rust_val_print): Rewrite.
7162 (rust_value_print_inner): New function, from rust_val_print.
7163 (rust_language_defn): Use rust_value_print_inner.
7164
7165 2020-03-13 Tom Tromey <tom@tromey.com>
7166
7167 * ada-valprint.c (ada_value_print_inner): New function.
7168 * ada-lang.h (ada_value_print_inner): Declare.
7169 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7170
7171 2020-03-13 Tom Tromey <tom@tromey.com>
7172
7173 * f-valprint.c (f_value_print_innner): New function.
7174 * f-lang.h (f_value_print_innner): Declare.
7175 * f-lang.c (f_language_defn): Use f_value_print_innner.
7176
7177 2020-03-13 Tom Tromey <tom@tromey.com>
7178
7179 * p-valprint.c (pascal_value_print_inner): New function.
7180 * p-lang.h (pascal_value_print_inner): Declare.
7181 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7182
7183 2020-03-13 Tom Tromey <tom@tromey.com>
7184
7185 * m2-valprint.c (m2_value_print_inner): New function.
7186 * m2-lang.h (m2_value_print_inner): Declare.
7187 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7188
7189 2020-03-13 Tom Tromey <tom@tromey.com>
7190
7191 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7192 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7193 * c-valprint.c (c_value_print_inner): New function.
7194 * c-lang.h (c_value_print_inner): Declare.
7195 * c-lang.c (c_language_defn, cplus_language_defn)
7196 (asm_language_defn, minimal_language_defn): Use
7197 c_value_print_inner.
7198
7199 2020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * p-valprint.c (pascal_object_print_value_fields): Now static.
7202 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7203
7204 2020-03-13 Tom Tromey <tom@tromey.com>
7205
7206 * c-valprint.c (c_val_print_array): Simplify.
7207
7208 2020-03-13 Tom Tromey <tom@tromey.com>
7209
7210 * valprint.c (value_print_array_elements): New function.
7211 * valprint.h (value_print_array_elements): Declare.
7212
7213 2020-03-13 Tom Tromey <tom@tromey.com>
7214
7215 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7216 * mips-tdep.c (mips_print_register): Use
7217 value_print_scalar_formatted.
7218
7219 2020-03-13 Tom Tromey <tom@tromey.com>
7220
7221 * valprint.h (value_print_scalar_formatted): Declare.
7222 * valprint.c (value_print_scalar_formatted): New function.
7223
7224 2020-03-13 Tom Tromey <tom@tromey.com>
7225
7226 * valprint.h (generic_value_print): Declare.
7227 * valprint.c (generic_value_print): New function.
7228
7229 2020-03-13 Tom Tromey <tom@tromey.com>
7230
7231 * valprint.c (do_val_print): Call la_value_print_inner, if
7232 available.
7233 * rust-lang.c (rust_language_defn): Update.
7234 * p-lang.c (pascal_language_defn): Update.
7235 * opencl-lang.c (opencl_language_defn): Update.
7236 * objc-lang.c (objc_language_defn): Update.
7237 * m2-lang.c (m2_language_defn): Update.
7238 * language.h (struct language_defn) <la_value_print_inner>: New
7239 member.
7240 * language.c (unknown_language_defn, auto_language_defn): Update.
7241 * go-lang.c (go_language_defn): Update.
7242 * f-lang.c (f_language_defn): Update.
7243 * d-lang.c (d_language_defn): Update.
7244 * c-lang.c (c_language_defn, cplus_language_defn)
7245 (asm_language_defn, minimal_language_defn): Update.
7246 * ada-lang.c (ada_language_defn): Update.
7247
7248 2020-03-13 Tom Tromey <tom@tromey.com>
7249
7250 * c-valprint.c (c_value_print): Use common_val_print.
7251
7252 2020-03-13 Tom Tromey <tom@tromey.com>
7253
7254 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7255
7256 2020-03-13 Tom Tromey <tom@tromey.com>
7257
7258 * f-valprint.c (f77_print_array_1, f_val_print): Use
7259 common_val_print.
7260
7261 2020-03-13 Tom Tromey <tom@tromey.com>
7262
7263 * riscv-tdep.c (riscv_print_one_register_info): Use
7264 common_val_print.
7265
7266 2020-03-13 Tom Tromey <tom@tromey.com>
7267
7268 * mi/mi-main.c (output_register): Use common_val_print.
7269
7270 2020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * infcmd.c (default_print_one_register_info): Use
7273 common_val_print.
7274
7275 2020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * valprint.h (common_val_print_checked): Declare.
7278 * valprint.c (common_val_print_checked): New function.
7279 * stack.c (print_frame_arg): Use common_val_print_checked.
7280
7281 2020-03-13 Tom Tromey <tom@tromey.com>
7282
7283 * valprint.c (do_val_print): New function, from val_print.
7284 (val_print): Use do_val_print.
7285 (common_val_print): Use do_val_print.
7286
7287 2020-03-13 Tom Tromey <tom@tromey.com>
7288
7289 * valprint.c (value_print): Use scoped_value_mark.
7290
7291 2020-03-13 Tom de Vries <tdevries@suse.de>
7292
7293 PR symtab/25646
7294 * psymtab.c (partial_symtab::partial_symtab): Don't set
7295 globals_offset and statics_offset. Push element onto
7296 current_global_psymbols and current_static_psymbols stacks.
7297 (concat): New function.
7298 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7299 element from current_global_psymbols and current_static_psymbols
7300 stacks. Concat popped elements to global_psymbols and
7301 static_symbols.
7302 (add_psymbol_to_list): Use current_global_psymbols and
7303 current_static_psymbols stacks.
7304 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7305 current_static_psymbols fields.
7306
7307 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7308
7309 * corelow.c (sniff_core_bfd): Remove.
7310 (class core_target) <m_core_vec>: Remove.
7311 (core_target::core_target): Update.
7312 (core_file_fns): Remove.
7313 (deprecated_add_core_fns): Remove.
7314 (default_core_sniffer): Remove.
7315 (sniff_core_bfd): Remove.
7316 (default_check_format): Remove.
7317 (gdb_check_format): Remove.
7318 (core_target_open): Update.
7319 (core_target::get_core_register_section): Update.
7320 (get_core_registers_cb): Update.
7321 (core_target::fetch_registers): Update.
7322 * gdbcore.h (struct core_fns): Remove.
7323 (deprecated_add_core_fns): Remove.
7324 (default_core_sniffer): Remove.
7325 (default_check_format): Remove.
7326
7327 2020-03-12 Tom Tromey <tom@tromey.com>
7328
7329 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7330 CORE_ADDR.
7331 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7332
7333 2020-03-12 Tom Tromey <tom@tromey.com>
7334
7335 * remote.c (remote_target::download_tracepoint)
7336 (remote_target::enable_tracepoint)
7337 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7338 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7339 sprintf_vma.
7340
7341 2020-03-12 Tom Tromey <tom@tromey.com>
7342
7343 * symfile-mem.c: Update CORE_ADDR size assert.
7344
7345 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * selftest.m4: Move to gdbsupport/.
7348 * acinclude.m4: Update path to selftest.m4.
7349
7350 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7351
7352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7353 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7354 gdbarch-selfselftests.c and selftest-arch.c.
7355 (SUBDIR_UNITTESTS_OBS): Rename to...
7356 (SELFTESTS_OBS): ... this.
7357 (COMMON_SFILES): Remove disasm-selftests.c and
7358 gdbarch-selftests.c.
7359 * configure.ac: Don't add selftest-arch.{c,o} to
7360 CONFIG_{SRCS,OBS}.
7361 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7362 preprocessor conditions.
7363
7364 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7365
7366 * configure.ac: Don't source bfd/development.sh.
7367 * selftest.m4: Modify comment.
7368 * configure: Re-generate.
7369
7370 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7371
7372 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7373 not "true" or "false".
7374 * configure: Re-generate.
7375
7376 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7377
7378 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7379 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7380 renamed to arm_nbsd_supply_gregset.
7381 (fetch_register): Update to call arm_nbsd_supply_gregset.
7382 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7383 (arm_netbsd_nat_target::fetch_registers): Update.
7384 (fetch_elfcore_registers): Removed.
7385 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7386 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7387 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7388 not require NetBSD system headers.
7389 (arm_nbsd_regset): New struct.
7390 (arm_nbsd_iterate_over_regset_sections): New function.
7391 (arm_netbsd_init_abi_common): Updated to call
7392 set_gdbarch_iterate_over_regset_sections.
7393 * arm-nbsd-tdep.h: New file.
7394
7395 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7396
7397 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7398 recursion.
7399
7400 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * configure: Re-generate.
7403
7404 2020-03-11 Tom Tromey <tromey@adacore.com>
7405
7406 * ada-typeprint.c (print_choices): Fix comment.
7407
7408 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7411 previous item in the list, when the list has no items.
7412
7413 2020-03-11 Tom de Vries <tdevries@suse.de>
7414
7415 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7416 PROP_LOCLIST handling code.
7417
7418 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7419
7420 * buildsym-legacy.c (record_line): Pass extra parameter to
7421 record_line.
7422 * buildsym.c (buildsym_compunit::record_line): Take an extra
7423 parameter, reduce duplication in the line table, and record the
7424 is_stmt flag in the line table.
7425 * buildsym.h (buildsym_compunit::record_line): Add extra
7426 parameter.
7427 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7428 non-statement lines.
7429 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7430 this to the symtab builder.
7431 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7432 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7433 through to dwarf_record_line_1.
7434 * infrun.c (process_event_stop_test): When stepping, don't stop at
7435 a non-statement instruction, and only refresh the step info when
7436 we land in the middle of a line's range. Also add an extra
7437 comment.
7438 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7439 field.
7440 * record-btrace.c (btrace_find_line_range): Only record lines
7441 marked as is-statement.
7442 * stack.c (frame_show_address): Show the frame address if we are
7443 in a non-statement sal.
7444 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7445 (maintenance_print_one_line_table): Print a header for the is_stmt
7446 column, and include is_stmt information in the output.
7447 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7448 preference to non-statements.
7449 (find_pcs_for_symtab_line): Prefer is-statement entries.
7450 (find_line_common): Likewise.
7451 * symtab.h (struct linetable_entry): Add is_stmt field.
7452 (struct symtab_and_line): Likewise.
7453 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7454 arranging the line table.
7455
7456 2020-03-07 Tom de Vries <tdevries@suse.de>
7457
7458 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7459 DIE.
7460
7461 2020-03-07 Tom Tromey <tom@tromey.com>
7462
7463 * valops.c (value_literal_complex): Remove obsolete comment.
7464 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7465 comment.
7466
7467 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * infrun.h: Forward-declare thread_info.
7470 (set_step_info): Add thread_info parameter, add doc.
7471 * infrun.c (set_step_info): Add thread_info parameter, move doc
7472 to header.
7473 * infrun.c (process_event_stop_test): Pass thread to
7474 set_step_info call.
7475 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7476 set_step_info.
7477 (prepare_one_step): Add thread_info parameter, pass it to
7478 set_step_frame and prepare_one_step (recursive) call.
7479 (step_1): Pass thread to prepare_one_step call.
7480 (step_command_fsm::should_stop): Pass thread to
7481 prepare_one_step.
7482 (until_next_fsm): Pass thread to set_step_frame call.
7483 (finish_command): Pass thread to set_step_info call.
7484
7485 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7486
7487 * windows-tdep.c (windows_solib_create_inferior_hook):
7488 Check if inferior is running.
7489
7490 2020-03-06 Tom de Vries <tdevries@suse.de>
7491
7492 * NEWS: Fix "the the".
7493 * ctfread.c: Same.
7494
7495 2020-03-06 Tom de Vries <tdevries@suse.de>
7496
7497 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7498
7499 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * .dir-locals.el: Add a comment referencing the other copies of
7502 this file.
7503
7504 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7505
7506 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7507 psargs.
7508
7509 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7510
7511 * .gitattributes: New file.
7512
7513 2020-03-04 Tom Tromey <tom@tromey.com>
7514
7515 * symmisc.c (print_symbol_bcache_statistics)
7516 (print_objfile_statistics): Update.
7517 * symfile.c (allocate_symtab): Use intern.
7518 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7519 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7520 macro_cache>: Remove.
7521 <string_cache>: New member.
7522 (struct objfile) <intern>: New methods.
7523 * elfread.c (elf_symtab_read): Use intern.
7524 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7525 (dwarf2_compute_name, dwarf2_physname)
7526 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7527 names.
7528 (guess_partial_die_structure_name): Update.
7529 (partial_die_info::fixup): Intern name.
7530 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7531 name.
7532 (dwarf2_name): Intern name. Update.
7533 * buildsym.c (buildsym_compunit::get_macro_table): Use
7534 string_cache.
7535
7536 2020-03-04 Tom Tromey <tom@tromey.com>
7537
7538 * jit.c (bfd_open_from_target_memory): Make "target" const.
7539 * corefile.c (gnutarget): Now const.
7540 * gdbcore.h (gnutarget): Now const.
7541
7542 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7543
7544 * NEWS: Mention support for WOW64 processes.
7545 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7546 (amd64_windows_segment_register_p): Remove static.
7547 (_initialize_amd64_windows_nat): Update.
7548 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7549 * i386-windows-nat.c (context_offset): Update.
7550 (i386_mappings): Rename and remove static.
7551 (i386_windows_segment_register_p): Remove static.
7552 (_initialize_i386_windows_nat): Update.
7553 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7554 (STATUS_WX86_SINGLE_STEP): New macro.
7555 (EnumProcessModulesEx): New macro.
7556 (Wow64SuspendThread): New macro.
7557 (Wow64GetThreadContext): New macro.
7558 (Wow64SetThreadContext): New macro.
7559 (Wow64GetThreadSelectorEntry): New macro.
7560 (windows_set_context_register_offsets): Add static.
7561 (windows_set_segment_register_p): Likewise.
7562 (windows_add_thread): Adapt for WOW64 processes.
7563 (windows_fetch_one_register): Likewise.
7564 (windows_nat_target::fetch_registers): Likewise.
7565 (windows_store_one_register): Likewise.
7566 (display_selector): Likewise.
7567 (display_selectors): Likewise.
7568 (handle_exception): Likewise.
7569 (windows_continue): Likewise.
7570 (windows_nat_target::resume): Likewise.
7571 (windows_add_all_dlls): Likewise.
7572 (do_initial_windows_stuff): Likewise.
7573 (windows_nat_target::attach): Likewise.
7574 (windows_get_exec_module_filename): Likewise.
7575 (windows_nat_target::create_inferior): Likewise.
7576 (windows_xfer_siginfo): Likewise.
7577 (_initialize_loadable): Initialize Wow64SuspendThread,
7578 Wow64GetThreadContext, Wow64SetThreadContext,
7579 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7580 * windows-nat.h (windows_set_context_register_offsets):
7581 Remove declaration.
7582 (windows_set_segment_register_p): Likewise.
7583 (i386_windows_segment_register_p): Add declaration.
7584 (amd64_windows_segment_register_p): Likewise.
7585
7586 2020-03-04 Luis Machado <luis.machado@linaro.org>
7587
7588 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7589 in "info registers" for AArch64/ARM.
7590
7591 The change caused "info registers" to not print GPR's.
7592
7593 gdb/ChangeLog:
7594
7595 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7596
7597 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7598 when reg->group is empty and reggroup is not.
7599
7600 2020-03-03 Tom Tromey <tromey@adacore.com>
7601
7602 * dwarf2/frame.c (struct dwarf2_frame_cache)
7603 <checked_tailcall_bottom, entry_cfa_sp_offset,
7604 entry_cfa_sp_offset_p>: Remove members.
7605 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7606 (dwarf2_frame_prev_register): Don't call
7607 dwarf2_tailcall_sniffer_first.
7608 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7609 * frame-unwind.c (add_unwinder): New fuction.
7610 (frame_unwind_init): Use it. Add tailcall unwinder.
7611
7612 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7613 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7614
7615 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7616 value should be printed as true.
7617
7618 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7619
7620 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7621 (windows_init_abi): Set and use windows_so_ops.
7622
7623 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7624
7625 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7626 when verifying if dealing with a convenience variable.
7627
7628 2020-03-03 Luis Machado <luis.machado@linaro.org>
7629
7630 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7631
7632 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7633
7634 * infrun.c (gdbarch_supports_displaced_stepping): New.
7635 (use_displaced_stepping): Break up conditions in smaller pieces.
7636 Use gdbarch_supports_displaced_stepping.
7637 (displaced_step_prepare_throw): Use
7638 gdbarch_supports_displaced_stepping.
7639
7640 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * NEWS: Mention new behaviour of the history filename.
7643 * top.c (write_history_p): Add comment.
7644 (show_write_history_p): Add header comment, give a different
7645 message when history writing is on, but the history filename is
7646 empty.
7647 (history_filename): Add comment.
7648 (history_filename_empty): New function.
7649 (show_history_filename): Add header comment, give a different
7650 message when the filename is empty.
7651 (init_history): Compare history_filename against nullptr, and only
7652 read history if the filename is not empty.
7653 (set_history_filename): Add header comment, and only make
7654 non-empty filenames absolute.
7655 (init_main): Make the filename argument to 'set history filename'
7656 optional.
7657
7658 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7659
7660 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7661 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7662 (fetch_fp_register): Update.
7663 (fetch_fp_regs): Update.
7664 (store_fp_register): Update.
7665 (store_fp_regs): Update.
7666 (arm_netbsd_nat_target::read_description): New function.
7667 (fetch_elfcore_registers): Update.
7668
7669 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7670
7671 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7672 general_thread if the stop reply is missing a thread-id.
7673 (remote_target::process_stop_reply): Use the first non-exited
7674 thread if the target didn't pass a thread-id.
7675 * infrun.c (do_target_wait): Move call to
7676 switch_to_inferior_no_thread to ....
7677 (do_target_wait_1): ... here.
7678
7679 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7680
7681 * debuginfod-support.c: Include defs.h first.
7682
7683 2020-02-28 Tom de Vries <tdevries@suse.de>
7684
7685 * symfile.c (set_initial_language): Use default language for lookup.
7686
7687 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7690 reader variable, pass `this` to read_cutu_die_from_dwo.
7691
7692 2020-02-27 Aaron Merey <amerey@redhat.com>
7693
7694 * source.c (open_source_file): Check for nullptr when computing
7695 srcpath.
7696
7697 2020-02-27 Tom Tromey <tromey@adacore.com>
7698
7699 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7700 member.
7701 (dwarf2_add_field): Don't update nfields.
7702 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7703
7704 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7707 abs.
7708
7709 2020-02-26 Tom Tromey <tom@tromey.com>
7710
7711 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7712 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7713 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7714 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7715 per_cu_data.
7716
7717 2020-02-26 Tom Tromey <tom@tromey.com>
7718
7719 * dwarf2/index-write.c (psym_index_map): Change type.
7720 (add_address_entry_worker, write_one_signatured_type)
7721 (recursively_count_psymbols, recursively_write_psymbols)
7722 (class debug_names, psyms_seen_size, write_gdbindex)
7723 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7724
7725 2020-02-26 Aaron Merey <amerey@redhat.com>
7726
7727 * Makefile.in: Handle optional debuginfod support.
7728 * NEWS: Update.
7729 * README: Add --with-debuginfod summary.
7730 * config.in: Regenerate.
7731 * configure: Regenerate.
7732 * configure.ac: Handle optional debuginfod support.
7733 * debuginfod-support.c: debuginfod helper functions.
7734 * debuginfod-support.h: Ditto.
7735 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7736 summary.
7737 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7738 when a dwz file cannot be found.
7739 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7740 debuginfo file cannot be found.
7741 * source.c (open_source_file): Query debuginfod servers when a
7742 source file cannot be found.
7743 * top.c (print_gdb_configuration): Include
7744 --{with,without}-debuginfod in the output.
7745
7746 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7747
7748 * thread.c (thr_try_catch_cmd): Print thread name.
7749
7750 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7751
7752 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7753 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7754 dwarf2_fetch_die_type_sect_off): Move to...
7755 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7756 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7757 dwarf2_fetch_die_type_sect_off): ... here.
7758 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7759 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7760 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7761
7762 2020-02-26 Tom de Vries <tdevries@suse.de>
7763
7764 PR gdb/25603
7765 * symfile.c (set_initial_language): Exit-early if
7766 language_mode == language_mode_manual.
7767
7768 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7769
7770 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7771 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7772 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7773
7774 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * gdbtypes.c (create_array_type_with_stride): Handle negative
7777 array strides.
7778 * valarith.c (value_subscripted_rvalue): Likewise.
7779
7780 2020-02-25 Luis Machado <luis.machado@linaro.org>
7781
7782 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7783
7784 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7785
7786 * loc.h (dwarf2_get_die_type): Move to...
7787 * read.h (dwarf2_get_die_type): ... here.
7788 * read.c (dwarf2_get_die_type): Move doc to header.
7789
7790 2020-02-25 Joel Brobecker <brobecker@adacore.com>
7791
7792 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7793 'gnulib/Makefile.in' to the list.
7794
7795 2020-02-24 Tom Tromey <tom@tromey.com>
7796
7797 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7798 Remove.
7799 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7800 XOBNEWVEC.
7801
7802 2020-02-24 Tom Tromey <tom@tromey.com>
7803
7804 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7805 New method.
7806 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7807 (dw2_do_instantiate_symtab, dw2_get_file_names)
7808 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7809
7810 2020-02-24 Tom Tromey <tom@tromey.com>
7811
7812 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7813 make_scoped_restore.
7814 (dwarf2_psymtab::read_symtab): Don't clear
7815 reading_partial_symbols.
7816
7817 2020-02-24 Tom de Vries <tdevries@suse.de>
7818
7819 PR gdb/25592
7820 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7821
7822 2020-02-24 Tom de Vries <tdevries@suse.de>
7823
7824 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7825 commands layout next/prev/regs.
7826
7827 2020-02-22 Tom Tromey <tom@tromey.com>
7828
7829 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7830 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7831
7832 2020-02-22 Tom Tromey <tom@tromey.com>
7833
7834 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7835
7836 2020-02-22 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7839 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7840 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7841 * tui/tui.c (_initialize_tui): Add usage text.
7842
7843 2020-02-22 Tom Tromey <tom@tromey.com>
7844
7845 * tui/tui-win.c (tui_set_focus_command)
7846 (tui_set_win_height_command): Use error_no_arg.
7847 (_initialize_tui_win): Update help text.
7848 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7849
7850 2020-02-22 Tom Tromey <tom@tromey.com>
7851
7852 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7853 * tui/tui-disasm.h (struct tui_disasm_window)
7854 <display_start_addr>: Declare.
7855 * tui/tui-source.h (struct tui_source_window)
7856 <display_start_addr>: Declare.
7857 * tui/tui-winsource.h (struct tui_source_window_base)
7858 <show_source_line, display_start_addr>: New methods.
7859 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7860 Rename and move to protected section.
7861 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7862 (tui_source_window_base::do_erase_source_content): Update.
7863 (tui_source_window_base::show_source_line): Now a method.
7864 (tui_source_window_base::show_source_content)
7865 (tui_source_window_base::tui_source_window_base)
7866 (tui_source_window_base::rerender)
7867 (tui_source_window_base::refill)
7868 (tui_source_window_base::do_scroll_horizontal)
7869 (tui_source_window_base::set_is_exec_point_at)
7870 (tui_source_window_base::update_breakpoint_info)
7871 (tui_source_window_base::update_exec_info): Update.
7872 * tui/tui-source.c (tui_source_window::set_contents)
7873 (tui_source_window::showing_source_p)
7874 (tui_source_window::do_scroll_vertical)
7875 (tui_source_window::location_matches_p)
7876 (tui_source_window::line_is_displayed): Update.
7877 (tui_source_window::display_start_addr): New method.
7878 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7879 (tui_disasm_window::do_scroll_vertical)
7880 (tui_disasm_window::location_matches_p): Update.
7881 (tui_disasm_window::display_start_addr): New method.
7882
7883 2020-02-22 Tom Tromey <tom@tromey.com>
7884
7885 * NEWS: Add entry for gdb.register_window_type.
7886 * tui/tui-layout.h (window_factory): New typedef.
7887 (tui_register_window): Declare.
7888 * tui/tui-layout.c (saved_tui_windows): New global.
7889 (tui_apply_current_layout): Use it.
7890 (tui_register_window): New function.
7891 * python/python.c (do_start_initialization): Call
7892 gdbpy_initialize_tui.
7893 (python_GdbMethods): Add "register_window_type" function.
7894 * python/python-internal.h (gdbpy_register_tui_window)
7895 (gdbpy_initialize_tui): Declare.
7896 * python/py-tui.c: New file.
7897 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7898
7899 2020-02-22 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7902
7903 2020-02-22 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7906 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7907 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7908 (tui_set_win_focus_to): Move from tui-win.c.
7909
7910 2020-02-22 Tom Tromey <tom@tromey.com>
7911
7912 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7913 functions.
7914 (known_window_types): New global.
7915 (tui_get_window_by_name): Reimplement.
7916 (initialize_known_windows): New function.
7917 (validate_window_name): Rewrite.
7918 (_initialize_tui_layout): Call initialize_known_windows.
7919
7920 2020-02-22 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7923 Remove constants.
7924 * tui/tui-winsource.h (struct tui_source_window_base)
7925 <tui_source_window_base>: Remove parameter.
7926 * tui/tui-winsource.c
7927 (tui_source_window_base::tui_source_window_base): Remove
7928 parameter.
7929 (tui_source_window_base::refill): Update.
7930 * tui/tui-stack.h (struct tui_locator_window)
7931 <tui_locator_window>: Update.
7932 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7933 Default the constructor.
7934 * tui/tui-regs.h (struct tui_data_item_window)
7935 <tui_data_item_window>: Default the constructor.
7936 (struct tui_data_window) <tui_data_window>: Likewise.
7937 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7938 Default the constructor.
7939 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7940 Default the constructor.
7941 <type>: Remove.
7942 (struct tui_win_info) <tui_win_info>: Default the constructor.
7943 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7944 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7945 Default the constructor.
7946
7947 2020-02-22 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7950 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7951 * tui/tui-win.c (tui_resize_all): Don't call
7952 tui_delete_invisible_windows.
7953 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7954 done.
7955 (tui_set_layout): Update.
7956 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7957 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7958 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7959
7960 2020-02-22 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7963 correctly.
7964
7965 2020-02-22 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7968
7969 2020-02-22 Tom Tromey <tom@tromey.com>
7970
7971 * tui/tui-winsource.h (struct tui_source_window_iterator)
7972 <inner_iterator>: New etytypedef.
7973 <tui_source_window_iterator>: Take "end" parameter.
7974 <tui_source_window_iterator>: Take iterator.
7975 <operator*, advance>: Update.
7976 <m_iter>: Change type.
7977 <m_end>: New field.
7978 (struct tui_source_windows) <begin, end>: Update.
7979 * tui/tui-layout.c (tui_windows): New global.
7980 (tui_apply_current_layout): Clear tui_windows.
7981 (tui_layout_window::apply): Update tui_windows.
7982 * tui/tui-data.h (tui_windows): Declare.
7983 (all_tui_windows): Now inline function.
7984 (class tui_window_iterator, struct all_tui_windows): Remove.
7985
7986 2020-02-22 Tom Tromey <tom@tromey.com>
7987
7988 PR tui/17850:
7989 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7990 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7991 "height" argument.
7992 (class tui_layout_window) <get_sizes>: Likewise.
7993 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7994 argument.
7995 <get_sizes>: Add "height" argument.
7996 <m_vertical>: New field.
7997 * tui/tui-layout.c (tui_layout_split::clone): Update.
7998 (tui_layout_split::get_sizes): Add "height" argument.
7999 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8000 (tui_new_layout_command): Parse "-horizontal".
8001 (_initialize_tui_layout): Update help string.
8002 (tui_layout_split::specification): Add "-horizontal" when needed.
8003 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8004 argument.
8005 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8006 New methods.
8007
8008 2020-02-22 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-layout.h (enum tui_adjust_result): New.
8011 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8012 (class tui_layout_window) <adjust_size>: Return
8013 tui_adjust_result. Rewrite.
8014 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8015 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8016
8017 2020-02-22 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8020 parameter and return types.
8021 (class tui_layout_base) <specification>: Add "depth".
8022 (class tui_layout_window) <specification>: Add "depth".
8023 (class tui_layout_split) <specification>: Add "depth".
8024 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8025 and return types.
8026 (tui_new_layout_command): Parse sub-layouts.
8027 (_initialize_tui_layout): Update help string.
8028 (tui_layout_window::specification): Add "depth".
8029 (add_layout_command): Update.
8030
8031 2020-02-22 Tom Tromey <tom@tromey.com>
8032
8033 * NEWS: Add "tui new-layout" item.
8034 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8035 Add new-layout command to help text.
8036 (validate_window_name): New function.
8037 (tui_new_layout_command): New function.
8038 (_initialize_tui_layout): Register "new-layout".
8039 (tui_layout_window::specification): New method.
8040 (tui_layout_window::specification): New method.
8041 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8042 method.
8043 (class tui_layout_window) <specification>: New method.
8044 (class tui_layout_split) <specification>: New method.
8045
8046 2020-02-22 Tom Tromey <tom@tromey.com>
8047
8048 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8049 * tui/tui-win.c (window_name_completer): Update comment.
8050 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8051 Declare method.
8052 (class tui_layout_window) <replace_window>: Likewise.
8053 (class tui_layout_split) <replace_window>: Likewise.
8054 (tui_set_layout): Don't declare.
8055 (tui_set_initial_layout): Declare function.
8056 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8057 (asm_regs_layout): New globals.
8058 (tui_current_layout, show_layout): Remove.
8059 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8060 (find_layout, tui_apply_layout): New function.
8061 (layout_completer): Remove.
8062 (tui_next_layout): Reimplement.
8063 (tui_next_layout_command): New function.
8064 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8065 (tui_regs_layout): Reimplement.
8066 (tui_regs_layout_command): New function.
8067 (extract_display_start_addr): Rewrite.
8068 (next_layout, prev_layout): Remove.
8069 (tui_layout_window::replace_window): New method.
8070 (tui_layout_split::replace_window): New method.
8071 (destroy_layout): New function.
8072 (layout_list): New global.
8073 (add_layout_command): New function.
8074 (initialize_layouts): Update.
8075 (tui_layout_command): New function.
8076 (_initialize_tui_layout): Install "layout" commands.
8077 * tui/tui-data.h (enum tui_layout_type): Remove.
8078 (tui_current_layout): Don't declare.
8079
8080 2020-02-22 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-regs.c (tui_reg_layout): Remove.
8083 (tui_reg_command): Use tui_regs_layout.
8084 * tui/tui-layout.h (tui_reg_command): Declare.
8085 * tui/tui-layout.c (tui_reg_command): New function.
8086
8087 2020-02-22 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui.c (tui_rl_delete_other_windows): Call
8090 tui_remove_some_windows.
8091 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8092 Declare method.
8093 (class tui_layout_window) <remove_windows>: New method.
8094 (class tui_layout_split) <remove_windows>: Declare.
8095 (tui_remove_some_windows): Declare.
8096 * tui/tui-layout.c (tui_remove_some_windows): New function.
8097 (tui_layout_split::remove_windows): New method.
8098
8099 2020-02-22 Tom Tromey <tom@tromey.com>
8100
8101 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8102 * tui/tui-layout.h (tui_next_layout): Declare.
8103 * tui/tui-layout.c (tui_next_layout): New function.
8104
8105 2020-02-22 Tom Tromey <tom@tromey.com>
8106
8107 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8108 correct coordinates.
8109
8110 2020-02-22 Tom Tromey <tom@tromey.com>
8111
8112 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8113 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8114 DATA_WIN case.
8115
8116 2020-02-22 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8119 TUI_DISASM_WIN, not tui_win_list.
8120
8121 2020-02-22 Tom Tromey <tom@tromey.com>
8122
8123 * valprint.c (generic_val_print_enum_1)
8124 (val_print_type_code_flags): Style member names.
8125 * rust-lang.c (val_print_struct, rust_print_enum)
8126 (rust_print_struct_def, rust_internal_print_type): Style member
8127 names.
8128 * p-valprint.c (pascal_object_print_value_fields): Style member
8129 names. Only call fprintf_symbol_filtered for static members.
8130 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8131 * f-valprint.c (f_val_print): Style member names.
8132 * f-typeprint.c (f_type_print_base): Style member names.
8133 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8134 call fprintf_symbol_filtered for static members.
8135 (cp_print_class_member): Style member names.
8136 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8137 member names.
8138 * ada-valprint.c (ada_print_scalar): Style enum names.
8139 (ada_val_print_enum): Likewise.
8140 * ada-typeprint.c (print_enum_type): Style enum names.
8141
8142 2020-02-21 Tom Tromey <tom@tromey.com>
8143
8144 * psympriv.h (struct partial_symtab): Update comment.
8145
8146 2020-02-21 Tom Tromey <tromey@adacore.com>
8147
8148 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8149 type is CORE_ADDR.
8150
8151 2020-02-21 Tom de Vries <tdevries@suse.de>
8152
8153 PR gdb/25534
8154 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8155 if dependencies[i]->user != NULL.
8156
8157 2020-02-21 Ali Tamur <tamur@google.com>
8158
8159 * dwarf2/read.c (dwarf2_name): Add null check.
8160
8161 2020-02-20 Tom Tromey <tom@tromey.com>
8162
8163 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8164 ">=", in binary search.
8165 (dwarf2_find_containing_comp_unit): New overload.
8166 (run_test): New self-test.
8167 (_initialize_dwarf2_read): Register new test.
8168
8169 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8170
8171 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8172 * riscv-tdep.h: Likewise.
8173 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8174 rv32-only CSR.
8175 * features/riscv/64bit-csr.xml: Regenerated.
8176
8177 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8178 Tom Tromey <tom@tromey.com>
8179
8180 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8181 of 'fputc_unfiltered'.
8182 (putchar_unfiltered): Call 'fputc_unfiltered'.
8183 (fputc_unfiltered): Call 'fputs_unfiltered'.
8184
8185 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8186
8187 * config.in: Regenerate.
8188 * configure: Regenerate.
8189 * configure.ac: Add --with-python-libdir option.
8190 * main.c: Use WITH_PYTHON_LIBDIR.
8191
8192 2020-02-19 Tom Tromey <tom@tromey.com>
8193
8194 * symtab.c (general_symbol_info::compute_and_set_names): Use
8195 obstack_strndup. Simplify call to symbol_set_demangled_name.
8196
8197 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * dwarf2/read.c (allocate_signatured_type_table,
8200 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8201 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8202 Remove objfile parameter, update all callers.
8203
8204 2020-02-19 Doug Evans <dje@google.com>
8205
8206 PR rust/25535
8207 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8208 rust_enum_variant calculation.
8209
8210 2020-02-19 Tom Tromey <tromey@adacore.com>
8211
8212 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8213
8214 2020-02-19 Tom Tromey <tromey@adacore.com>
8215
8216 * ada-lang.c (cache_symbol): Use obstack_strdup.
8217
8218 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8219
8220 * configure: Regenerate.
8221
8222 2020-02-19 Tom Tromey <tromey@adacore.com>
8223
8224 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8225 NULL check.
8226
8227 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8228
8229 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8230
8231 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8232
8233 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8234 if GDBSERVER is not defined.
8235 (riscv_tdesc_cache): Likewise, also store const target_desc.
8236 (STATIC_IN_GDB): Define.
8237 (riscv_create_target_description): Update declaration with
8238 STATIC_IN_GDB.
8239 (riscv_lookup_target_description): New function, only define if
8240 GDBSERVER is not defined.
8241 * arch/riscv.h (riscv_create_target_description): Declare only
8242 when GDBSERVER is defined.
8243 (riscv_lookup_target_description): New declaration when GDBSERVER
8244 is not defined.
8245 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8246 (riscv_linux_read_features): ...this, and return
8247 riscv_gdbarch_features instead of target_desc.
8248 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8249 (riscv_linux_read_description): Rename to...
8250 (riscv_linux_read_features): ...this.
8251 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8252 Update to use riscv_gdbarch_features and
8253 riscv_lookup_target_description.
8254 * riscv-tdep.c (riscv_find_default_target_description): Use
8255 riscv_lookup_target_description instead of
8256 riscv_create_target_description.
8257
8258 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8259
8260 * valprint.c (generic_val_print_enum_1): When printing a flag
8261 enum with value 0 and there is no enumerator with value 0, print
8262 just "0" instead of "(unknown: 0x0)".
8263
8264 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8265
8266 * valprint.c (generic_val_print_enum_1): Print unknown part of
8267 flag enum in hex.
8268
8269 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8272 flag enums to contain duplicate enumerators.
8273 * valprint.c (generic_val_print_enum_1): Update comment.
8274
8275 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * dwarf2/read.c: Include "count-one-bits.h".
8278 (update_enumeration_type_from_children): If an enumerator has
8279 multiple bits set, don't treat the enumeration as a "flag enum".
8280 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8281 of flag enums have 0 or 1 bit set.
8282
8283 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8284
8285 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8286 conversion.
8287 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8288 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8289 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8290 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8291 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8292
8293 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8294
8295 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8296
8297 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8298
8299 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8300 displaced_step_closure_up.
8301 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8302 (struct displaced_step_closure_up):
8303 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8304 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8305 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8306 Likewise.
8307 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8308 * gdbarch.c, gdbarch.h: Re-generate.
8309 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8310 displaced_step_closure_up.
8311 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8312 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8313 * infrun.h (displaced_step_closure_up): New type alias.
8314 (struct displaced_step_inferior_state) <step_closure>: Change
8315 type to displaced_step_closure_up.
8316 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8317 displaced_step_closure_up.
8318 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8319
8320 2020-02-14 Tom Tromey <tom@tromey.com>
8321
8322 * minidebug.c (gnu_debug_key): New global.
8323 (find_separate_debug_file_in_section): Use it.
8324
8325 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8326
8327 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8328 std::unique_ptr.
8329 * gdbarch.c: Re-generate.
8330 * gdbarch.h: Re-generate.
8331 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8332 change.
8333 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8334 type to std::unique_ptr.
8335 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8336 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8337 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8338 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8339 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8340 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8341 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8342 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8343 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8344
8345 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8348 std::unique_ptr.
8349 (displaced_step_clear): Rename to...
8350 (displaced_step_reset): ... this. Just call displaced->reset ().
8351 (displaced_step_clear_cleanup): Rename to...
8352 (displaced_step_reset_cleanup): ... this.
8353 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8354 (displaced_step_fixup): Likewise.
8355 (resume_1): Likewise.
8356 (handle_inferior_event): Restore child's memory before calling
8357 displaced_step_fixup on the parent.
8358 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8359 to std::unique_ptr.
8360 <step_closure>: Change type to std::unique_ptr.
8361
8362 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * arm-tdep.c: Include count-one-bits.h.
8365 (cleanup_block_store_pc): Use count_one_bits.
8366 (cleanup_block_load_pc): Use count_one_bits.
8367 (arm_copy_block_xfer): Use count_one_bits.
8368 (thumb2_copy_block_xfer): Use count_one_bits.
8369 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8370 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8371 (thumb_get_next_pcs_raw): Use count_one_bits.
8372 (arm_get_next_pcs_raw): Use count_one_bits_l.
8373 * arch/arm.c (bitcount): Remove.
8374 * arch/arm.h (bitcount): Remove.
8375
8376 2020-02-14 Tom Tromey <tromey@adacore.com>
8377
8378 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8379 Update.
8380 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8381 * dwarf2/loc.c (call_site_find_chain_1): Return
8382 unique_xmalloc_ptr.
8383 (call_site_find_chain): Likewise.
8384
8385 2020-02-14 Richard Biener <rguenther@suse.de>
8386
8387 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8388 on expression with division operators.
8389
8390 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8391
8392 * MAINTAINERS (Write After Approval): Adding myself.
8393
8394 2020-02-12 Tom Tromey <tom@tromey.com>
8395
8396 * event-loop.c (event_data, gdb_event, event_handler_func):
8397 Remove.
8398
8399 2020-02-12 Tom Tromey <tom@tromey.com>
8400
8401 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8402 (dwarf2_frame_objfile_data): Add comment.
8403 (find_comp_unit, set_comp_unit): New functions.
8404 (dwarf2_frame_find_fde): Use find_comp_unit.
8405 (dwarf2_build_frame_info): Use set_comp_unit.
8406
8407 2020-02-12 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8410 (comp_unit): Don't initialize objfile.
8411 (execute_cfa_program): Add text_offset parameter.
8412 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8413 (dwarf2_frame_cache): Update.
8414 (dwarf2_build_frame_info): Don't set "objfile" member.
8415
8416 2020-02-12 Tom Tromey <tom@tromey.com>
8417
8418 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8419 (decode_frame_entry): Likewise.
8420 (dwarf2_build_frame_info): Update.
8421
8422 2020-02-12 Tom Tromey <tom@tromey.com>
8423
8424 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8425 (decode_frame_entry_1): Use the comp_unit obstack.
8426
8427 2020-02-12 Tom Tromey <tom@tromey.com>
8428
8429 * dwarf2/frame.c (struct comp_unit): Add initializers and
8430 constructor.
8431 (dwarf2_frame_objfile_data): Store a comp_unit.
8432 (dwarf2_frame_find_fde): Update.
8433 (dwarf2_build_frame_info): Use "new".
8434
8435 2020-02-12 Tom Tromey <tom@tromey.com>
8436
8437 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8438 (dwarf2_fde_table): Typedef for std::vector.
8439 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8440 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8441 (decode_frame_entry): Update.
8442 (dwarf2_build_frame_info): Use "new".
8443
8444 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8445
8446 * arm-tdep.c (arm_gdbarch_init): Update.
8447 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8448 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8449 have_neon, is_m>: Change to bool.
8450
8451 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8452
8453 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8454
8455 2020-02-12 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8458
8459 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8460
8461 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8462 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8463
8464 2020-02-11 Tom Tromey <tom@tromey.com>
8465
8466 * psymtab.h: Update comment.
8467
8468 2020-02-11 Tom Tromey <tom@tromey.com>
8469
8470 * gdb_obstack.h (struct auto_obstack): Use
8471 DISABLE_COPY_AND_ASSIGN.
8472
8473 2020-02-11 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2/frame.h (struct objfile): Don't forward declare.
8476
8477 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8478
8479 * cris-tdep.c (cris_supply_gregset): Change signature to match
8480 what struct regset expects.
8481 (cris_regset): New struct.
8482 (fetch_core_registers): Remove.
8483 (cris_iterate_over_regset_sections): New function.
8484 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8485 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8486
8487 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8488
8489 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8490 registers.
8491
8492 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8493
8494 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8495
8496 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8497
8498 * configure: Re-generate.
8499
8500 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * configure: Re-generate.
8503
8504 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * acinclude: Update warning.m4 path.
8507 * warning.m4: Move to gdbsupport.
8508
8509 2020-02-11 Tom Tromey <tromey@adacore.com>
8510
8511 * remote.c (remote_console_output): Update.
8512 * printcmd.c (printf_command): Update.
8513 * event-loop.c (gdb_wait_for_event): Update.
8514 * linux-nat.c (sigchld_handler): Update.
8515 * remote-sim.c (gdb_os_write_stdout): Update.
8516 (gdb_os_flush_stdout): Update.
8517 (gdb_os_flush_stderr): Update.
8518 (gdb_os_write_stderr): Update.
8519 * exceptions.c (print_exception): Update.
8520 * remote-fileio.c (remote_fileio_func_read): Update.
8521 (remote_fileio_func_write): Update.
8522 * tui/tui.c (tui_enable): Update.
8523 * tui/tui-interp.c (tui_interp::init): Update.
8524 * utils.c (init_page_info): Update.
8525 (putchar_unfiltered, fputc_unfiltered): Update.
8526 (gdb_flush): Update.
8527 (emit_style_escape): Update.
8528 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8529 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8530 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8531 (stderr_file::write): Update.
8532 (stderr_file::puts): Update.
8533 * ui-file.h (ui_file_isatty, ui_file_write)
8534 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8535 (ui_file_puts): Don't declare.
8536
8537 2020-02-10 Tom de Vries <tdevries@suse.de>
8538
8539 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8540 sentinel to char *.
8541
8542 2020-02-09 Tom de Vries <tdevries@suse.de>
8543
8544 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8545 filename if it matches "<artificial>".
8546
8547 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8548
8549 * windows-tdep.c (struct enum_value_name): New struct.
8550 (create_enum): New function.
8551 (windows_get_siginfo_type): Create and use enum types.
8552
8553 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8554
8555 * NEWS: Mention $_siginfo support for Windows.
8556 * windows-nat.c (handle_exception): Set siginfo_er.
8557 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8558 (windows_xfer_siginfo): New function.
8559 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8560 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8561 (init_windows_gdbarch_data): New function.
8562 (get_windows_gdbarch_data): New function.
8563 (windows_get_siginfo_type): New function.
8564 (windows_init_abi): Register windows_get_siginfo_type.
8565 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8566
8567 2020-02-08 Tom Tromey <tom@tromey.com>
8568
8569 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8570 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8571 <keep>: Declare method.
8572 <m_keep>: Remove member.
8573 <~cutu_reader>: Remove.
8574 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8575 (cutu_reader::cutu_reader): Update.
8576 (cutu_reader::keep): Rename from ~cutu_reader.
8577 (process_psymtab_comp_unit, build_type_psymtabs_1)
8578 (process_skeletonless_type_unit, load_partial_comp_unit)
8579 (load_full_comp_unit, dwarf2_read_addr_index)
8580 (read_signatured_type): Update.
8581
8582 2020-02-08 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8585 "want_partial_unit" parameter.
8586 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8587 Inline check for DW_TAG_partial_unit.
8588 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8589
8590 2020-02-08 Tom Tromey <tom@tromey.com>
8591
8592 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8593 read.c.
8594 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8595 read.c.
8596
8597 2020-02-08 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/read.c (read_address): Move to comp-unit.c.
8600 (dwarf2_rnglists_process, dwarf2_ranges_process)
8601 (read_attribute_value, dwarf_decode_lines_1)
8602 (var_decode_location, decode_locdesc): Update.
8603 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8604 read.c. Remove "cu" parameter.
8605 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8606 method.
8607
8608 2020-02-08 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8611 (read_indirect_line_string): Update.
8612 * dwarf2/comp-unit.c (read_offset): Remove.
8613 (read_comp_unit_head): Update.
8614 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8615 method.
8616 (read_offset): Don't declare.
8617
8618 2020-02-08 Tom Tromey <tom@tromey.com>
8619
8620 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8621 * dwarf2/read.c (struct comp_unit_head): Move to
8622 dwarf2/comp-unit.h.
8623 (enum class rcuh_kind): Move to comp-unit.h.
8624 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8625 (read_comp_unit_head, error_check_comp_unit_head)
8626 (read_and_check_comp_unit_head): Move to comp-unit.c.
8627 (read_offset, dwarf_unit_type_name): Likewise.
8628 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8629 (cutu_reader::cutu_reader, read_call_site_scope)
8630 (find_partial_die, follow_die_offset): Update.
8631 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8632
8633 2020-02-08 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/read.c (read_offset_1): Move to leb.c.
8636 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8637 (dwarf_decode_macro_bytes): Update.
8638 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8639 * dwarf2/leb.h (read_offset): Declare.
8640
8641 2020-02-08 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2/read.c (dwarf2_section_size): Remove.
8644 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8645 Update.
8646 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8647
8648 2020-02-08 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2/read.c (read_initial_length): Move to leb.c.
8651 * dwarf2/leb.h (read_initial_length): Declare.
8652 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8653 handle_nonstd parameter.
8654 * dwarf2/frame.c (read_initial_length): Remove.
8655 (decode_frame_entry_1): Update.
8656
8657 2020-02-08 Tom Tromey <tom@tromey.com>
8658
8659 * dwarf2/loc.c (dwarf2_find_location_expression)
8660 (dwarf_evaluate_loc_desc::get_tls_address)
8661 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8662 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8663 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8664 (dwarf2_compile_property_to_c)
8665 (dwarf2_loc_desc_get_symbol_read_needs)
8666 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8667 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8668 (loclist_describe_location, loclist_tracepoint_var_ref)
8669 (loclist_generate_c_location): Update.
8670 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8671 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8672 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8673 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8674 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8675 (dwarf2_per_cu_data::addr_size)
8676 (dwarf2_per_cu_data::ref_addr_size)
8677 (dwarf2_per_cu_data::text_offset)
8678 (dwarf2_per_cu_data::addr_type): Now methods.
8679 (per_cu_header_read_in): Make per_cu "const".
8680 (dwarf2_version): Remove.
8681 (dwarf2_per_cu_data::int_type): Now a method.
8682 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8683 (set_die_type, read_array_type, read_subrange_index_type)
8684 (read_tag_string_type, read_subrange_type): Update.
8685 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8686 offset_size, ref_addr_size, text_offset, addr_type, version,
8687 objfile, int_type, addr_sized_int_type>: Declare methods.
8688
8689 2020-02-08 Tom Tromey <tom@tromey.com>
8690
8691 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8692 Move earlier.
8693
8694 2020-02-08 Tom Tromey <tom@tromey.com>
8695
8696 * dwarf2/read.h (dwarf_line_debug): Declare.
8697 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8698 * dwarf2/read.c: Move line_header code to new files.
8699 (dwarf_line_debug): No longer static.
8700 * dwarf2/line-header.c: New file.
8701 * dwarf2/line-header.h: New file.
8702
8703 2020-02-08 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/read.c (struct line_header) <file_full_name,
8706 file_file_name>: Return unique_xmalloc_ptr.
8707 (line_header::file_file_name): Update.
8708 (line_header::file_full_name): Update.
8709 (dw2_get_file_names_reader): Update.
8710 (macro_start_file): Update.
8711
8712 2020-02-08 Tom Tromey <tom@tromey.com>
8713
8714 * dwarf2/read.c (struct line_header) <file_full_name,
8715 file_file_name>: Declare methods.
8716 (dw2_get_file_names_reader): Update.
8717 (file_file_name): Now a method.
8718 (file_full_name): Likewise.
8719 (macro_start_file): Update.
8720
8721 2020-02-08 Tom Tromey <tom@tromey.com>
8722
8723 * dwarf2/read.c (dwarf_always_disassemble)
8724 (show_dwarf_always_disassemble): Move to loc.c.
8725 (_initialize_dwarf2_read): Move "always-disassemble" registration
8726 to loc.c.
8727 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8728 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8729 static.
8730 (show_dwarf_always_disassemble): Move from read.c.
8731 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8732
8733 2020-02-08 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8736 (create_quick_file_names_table): Return htab_up.
8737 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8738 Update.
8739 * dwarf2/read.h (struct dwarf2_per_objfile)
8740 <quick_file_names_table>: Now htab_up.
8741
8742 2020-02-08 Tom Tromey <tom@tromey.com>
8743
8744 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8745
8746 2020-02-08 Tom Tromey <tom@tromey.com>
8747
8748 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8749 Rewrite.
8750 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8751 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8752 (abbrev_table::abbrev_table): No longer inline.
8753 (ABBREV_HASH_SIZE): Remove.
8754 (abbrev_table::m_abbrevs): Now an htab_up.
8755
8756 2020-02-08 Tom Tromey <tom@tromey.com>
8757
8758 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8759 (cutu_reader): Update.
8760 (build_type_psymtabs_1): Update.
8761 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8762 (abbrev_table::alloc_abbrev): Update.
8763 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8764 (abbrev_table::read): New static method, renamed from
8765 abbrev_table_read_table.
8766 (abbrev_table::alloc_abbrev)
8767 (abbrev_table::add_abbrev): Now private.
8768 (abbrev_table::abbrev_table): Now private.
8769 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8770
8771 2020-02-08 Tom Tromey <tom@tromey.com>
8772
8773 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8774 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8775 htab_up.
8776
8777 2020-02-08 Tom Tromey <tom@tromey.com>
8778
8779 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8780 htab_up.
8781 (lookup_dwo_unit_in_dwp): Update.
8782 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8783 on obstack.
8784
8785 2020-02-08 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8788 obstack.
8789
8790 2020-02-08 Tom Tromey <tom@tromey.com>
8791
8792 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8793 line_header_hash.
8794 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8795 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8796 Change type to htab_up.
8797
8798 2020-02-08 Tom Tromey <tom@tromey.com>
8799
8800 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8801 htab_up. Don't allocate on obstack.
8802 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8803 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8804 Change type to htab_up.
8805
8806 2020-02-08 Tom Tromey <tom@tromey.com>
8807
8808 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8809 Change type to htab_up.
8810 * dwarf2/read.c (create_signatured_type_table_from_index)
8811 (create_signatured_type_table_from_debug_names)
8812 (create_all_type_units, add_type_unit)
8813 (lookup_dwo_signatured_type, lookup_signatured_type)
8814 (process_skeletonless_type_unit): Update.
8815 (create_debug_type_hash_table, create_debug_types_hash_table):
8816 Change type of types_htab.
8817 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8818 htab_up. Don't allocate on obstack.
8819 (create_cus_hash_table): Change type of cus_htab parameter.
8820 (struct dwo_file) <cus, tus>: Now htab_up.
8821 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8822 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8823 (queue_and_load_all_dwo_tus): Update.
8824 * dwarf2/index-write.c (write_gdbindex): Update.
8825 (write_debug_names): Update.
8826
8827 2020-02-08 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8830 dwarf2/read.c. Remove "next" member. Add constructor ntad
8831 destructor.
8832 (struct dwarf2_per_objfile) <queue>: New member.
8833 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8834 dwarf2/read.h.
8835 (dwarf2_queue, dwarf2_queue_tail): Remove.
8836 (class dwarf2_queue_guard): Add parameter to constructor. Use
8837 DISABLE_COPY_AND_ASSIGN.
8838 <m_per_objfile>: New member.
8839 <~dwarf2_queue_guard>: Rewrite.
8840 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8841 Update.
8842 (~dwarf2_queue_item): New.
8843
8844 2020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (struct die_info) <has_children>: New member.
8847 (dw2_get_file_names_reader): Remove has_children.
8848 (dw2_get_file_names): Update.
8849 (read_cutu_die_from_dwo): Remove has_children.
8850 (cutu_reader::init_tu_and_read_dwo_dies)
8851 (cutu_reader::cutu_reader): Update.
8852 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8853 Remove has_children.
8854 (build_type_psymtabs_1, process_skeletonless_type_unit)
8855 (load_partial_comp_unit, load_full_comp_unit): Update.
8856 (create_dwo_cu_reader): Remove has_children.
8857 (create_cus_hash_table, read_die_and_children): Update.
8858 (read_full_die_1,read_full_die): Remove has_children.
8859 (read_signatured_type): Update.
8860 (class cutu_reader) <has_children>: Remove.
8861
8862 2020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/expr.c: Rename from dwarf2expr.c.
8865 * dwarf2/expr.h: Rename from dwarf2expr.h.
8866 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8867 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8868 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8869 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8870 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8871 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8872 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8873 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8874 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8875 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8876 * dwarf2/loc.c: Rename from dwarf2loc.c.
8877 * dwarf2/loc.h: Rename from dwarf2loc.h.
8878 * dwarf2/read.c: Rename from dwarf2read.c.
8879 * dwarf2/read.h: Rename from dwarf2read.h.
8880 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8881 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8882 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8883 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8884 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8885 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8886 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8887 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8888 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8889 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8890 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8891 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8892 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8893 Update.
8894 * Makefile.in (COMMON_SFILES): Update.
8895 (HFILES_NO_SRCDIR): Update.
8896
8897 2020-02-08 Tom Tromey <tom@tromey.com>
8898
8899 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8900 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8901
8902 2020-02-08 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2read.h (struct die_info): Don't declare.
8905
8906 2020-02-08 Tom Tromey <tom@tromey.com>
8907
8908 * dwarf2read.h (die_info_ptr): Remove typedef.
8909
8910 2020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2read.c (read_call_site_scope)
8913 (handle_data_member_location, dwarf2_add_member_fn)
8914 (mark_common_block_symbol_computed, read_common_block)
8915 (attr_to_dynamic_prop, partial_die_info::read)
8916 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8917 (dwarf2_symbol_mark_computed, set_die_type): Update.
8918 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8919 method.
8920 (attr_form_is_block): Don't declare.
8921 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8922
8923 2020-02-08 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2read.c (dwarf2_find_base_address, )
8926 (read_call_site_scope, rust_containing_type)
8927 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8928 (handle_data_member_location, dwarf2_add_member_fn)
8929 (get_alignment, read_structure_type, process_structure_scope)
8930 (mark_common_block_symbol_computed, read_common_block)
8931 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8932 (partial_die_info::read, read_attribute_value, new_symbol)
8933 (lookup_die_type, dwarf2_get_ref_die_offset)
8934 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8935 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8936 (dwarf2_symbol_mark_computed): Update.
8937 * dwarf2/attribute.h (struct attribute) <value_as_address,
8938 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8939 methods.
8940 (value_as_address, attr_form_is_section_offset)
8941 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8942 * dwarf2/attribute.c (attribute::value_as_address)
8943 (attribute::form_is_section_offset, attribute::form_is_constant)
8944 (attribute::form_is_ref): Now methods.
8945
8946 2020-02-08 Tom Tromey <tom@tromey.com>
8947
8948 * dwarf2read.c (struct attribute, DW_STRING)
8949 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8950 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8951 (attr_form_is_block, attr_form_is_section_offset)
8952 (attr_form_is_constant, attr_form_is_ref): Move.
8953 * dwarf2/attribute.h: New file.
8954 * dwarf2/attribute.c: New file, from dwarf2read.c.
8955 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8956
8957 2020-02-08 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8960 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8961 Move.
8962 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8963 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8964 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8965 abbrev.c.
8966 * dwarf2/abbrev.h: New file.
8967 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8968 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8969
8970 2020-02-08 Tom Tromey <tom@tromey.com>
8971
8972 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8973 (dwarf2_section_size, dwarf2_get_section_info)
8974 (create_signatured_type_table_from_debug_names)
8975 (create_addrmap_from_aranges, read_debug_names_from_section)
8976 (get_gdb_index_contents_from_section, read_comp_unit_head)
8977 (error_check_comp_unit_head, read_abbrev_offset)
8978 (create_debug_type_hash_table, init_cu_die_reader)
8979 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8980 (read_comp_units_from_section, create_cus_hash_table)
8981 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8982 (create_dwp_v2_section, dwarf2_rnglists_process)
8983 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8984 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8985 (read_indirect_string_from_dwz, read_addr_index_1)
8986 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8987 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8988 (fill_in_loclist_baton): Update.
8989 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8990 get_containing_section, get_bfd_owner, get_bfd_section,
8991 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8992 (dwarf2_read_section, get_section_name, get_section_file_name)
8993 (get_containing_section, get_section_bfd_owner)
8994 (get_section_bfd_section, get_section_name, get_section_file_name)
8995 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8996 declare.
8997 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8998 (dwarf2_section_info::get_bfd_owner)
8999 (dwarf2_section_info::get_bfd_section)
9000 (dwarf2_section_info::get_name)
9001 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9002 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9003 (dwarf2_section_info::read): Now methods.
9004 * dwarf-index-write.c (class debug_names): Update.
9005
9006 2020-02-08 Tom Tromey <tom@tromey.com>
9007
9008 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9009 Move to dwarf2/section.h.
9010 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9011 (get_section_bfd_section, get_section_name)
9012 (get_section_file_name, get_section_id, get_section_flags)
9013 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9014 dwarf2/section.c.
9015 * dwarf2/section.h: New file.
9016 * dwarf2/section.c: New file, from dwarf2read.c.
9017 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9018
9019 2020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9022 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9023 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9024 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9025 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9026 * dwarf2/leb.h: New file, from dwarf2read.c.
9027 * dwarf2/leb.c: New file, from dwarf2read.c.
9028 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9029 Remove.
9030 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9031 (COMMON_SFILES): Add dwarf2/leb.c.
9032
9033 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9034
9035 GDB 9.1 released.
9036
9037 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9038
9039 PR gdb/25190:
9040 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9041 * gdb/remote.c (remote_console_output): Update.
9042 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9043 (ui_file_puts): ...this.
9044 * gdb/ui-file.h (ui_file_puts): Add declaration.
9045 * gdb/utils.c (emit_style_escape): Update.
9046 (flush_wrap_buffer): Update.
9047 (fputs_maybe_filtered): Update.
9048 (fputs_unfiltered): Add function.
9049
9050 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9051
9052 * gdb/event-loop.c (gdb_wait_for_event): Update.
9053 * gdb/printcmd.c (printf_command): Update.
9054 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9055 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9056 (gdb_os_flush_stderr): Update.
9057 * gdb/remote.c (remote_console_output): Update.
9058 * gdb/ui-file.c (gdb_flush): Rename to...
9059 (ui_file_flush): ...this.
9060 (stderr_file::write): Update.
9061 (stderr_file::puts): Update.
9062 * gdb/ui-file.h (gdb_flush): Rename to...
9063 (ui_file_flush): ...this.
9064 * gdb/utils.c (gdb_flush): Add function.
9065 * gdb/utils.h (gdb_flush): Add declaration.
9066
9067 2020-02-07 Tom Tromey <tromey@adacore.com>
9068
9069 PR breakpoints/24915:
9070 * source.c (find_and_open_source): Do not check basenames_may_differ.
9071
9072 2020-02-07 Tom Tromey <tom@tromey.com>
9073
9074 * README: Update gdbserver documentation.
9075 * gdbserver: Move to top level.
9076 * configure.tgt (build_gdbserver): Remove.
9077 * configure.ac: Remove --enable-gdbserver.
9078 * configure: Rebuild.
9079 * Makefile.in (distclean): Don't mention gdbserver.
9080
9081 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9082
9083 * source-cache.c (source_cache::ensure): Surround
9084 get_plain_source_lines with a try/catch.
9085 (source_cache::get_line_charpos): Get rid of try/catch
9086 and only check for the return value of "ensure".
9087 * tui/tui-source.c (tui_source_window::set_contents):
9088 Simplify "nlines" calculation.
9089
9090 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9091
9092 * MAINTAINERS (Write After Approval): Add myself.
9093
9094 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9095
9096 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9097 function call.
9098
9099 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9100
9101 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9102
9103 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9104
9105 * nat/riscv-linux-tdesc.h: New file.
9106 * nat/riscv-linux-tdesc.c: New file, taking code from...
9107 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9108 ... here.
9109 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9110 NATDEPFILES.
9111
9112 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9115 we don't set the fake simulator ptid to the null_ptid.
9116
9117 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9120 * gdbthread.h (class thread_info) <resumed>: Likewise.
9121 * infrun.c (resume_1): Likewise.
9122 (proceed): Likewise.
9123 (infrun_thread_stop_requested): Likewise.
9124 (stop_all_threads): Likewise.
9125 (handle_inferior_event): Likewise.
9126 (restart_threads): Likewise.
9127 (finish_step_over): Likewise.
9128 (keep_going_stepped_thread): Likewise.
9129 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9130 (linux_handle_extended_wait): Likewise.
9131 * record-btrace.c (get_thread_current_frame_id): Likewise.
9132 * record-full.c (record_full_wait_1): Likewise.
9133 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9134 * target.c (target_resume): Likewise.
9135 * thread.c (set_running_thread): Likewise.
9136
9137 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9138
9139 * f-valprint.c (f77_print_array_1): Changed datatype of index
9140 variable to LONGEST from int to enable it to contain bound
9141 values correctly.
9142
9143 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9144
9145 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9146 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9147 offsets according to FLEN determined.
9148 (riscv_linux_nat_target::read_description): Determine FLEN
9149 dynamically.
9150 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9151 according to FLEN determined.
9152 (riscv_linux_nat_target::store_registers): Likewise.
9153
9154 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9155
9156 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9157 when reg->group is empty and reggroup is not.
9158
9159 2020-01-31 Tom Tromey <tromey@adacore.com>
9160
9161 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9162 Call beneath target's mourn_inferior after unpushing.
9163
9164 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9165
9166 PR tui/9765
9167 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9168 have enough lines to fill the screen, still return the lowest
9169 address we found.
9170
9171 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9174 '-', '<', and '>' commands.
9175
9176 2020-01-29 Pedro Alves <palves@redhat.com>
9177 Sergio Durigan Junior <sergiodj@redhat.com>
9178
9179 * infcmd.c (construct_inferior_arguments): Assert that
9180 'argc' is greater than 0.
9181
9182 2020-01-29 Luis Machado <luis.machado@linaro.org>
9183
9184 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9185 (BRK_INSN_MASK): Define to 0xd4200000.
9186 (aarch64_program_breakpoint_here_p): New function.
9187 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9188 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9189 breakpoint.c.
9190 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9191 breakpoint.h
9192 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9193 call gdbarch_program_breakpoint_here_p.
9194 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9195 default_program_breakpoint_here_p, changed return type to bool and
9196 simplified.
9197 * breakpoint.h (program_breakpoint_here): Moved prototype to
9198 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9199 return type to bool.
9200 * gdbarch.c: Regenerate.
9201 * gdbarch.h: Regenerate.
9202 * gdbarch.sh (program_breakpoint_here_p): New method.
9203 * infrun.c (handle_signal_stop): Call
9204 gdbarch_program_breakpoint_here_p.
9205
9206 2020-01-26 Tom Tromey <tom@tromey.com>
9207
9208 * ctfread.c (struct ctf_fp_info): Reindent.
9209 (_initialize_ctfread): Remove.
9210
9211 2020-01-26 Tom Tromey <tom@tromey.com>
9212
9213 * psymtab.c (partial_map_expand_apply)
9214 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9215 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9216 (psym_print_stats, psym_expand_symtabs_for_function)
9217 (psym_map_symbol_filenames, psym_map_matching_symbols)
9218 (psym_expand_symtabs_matching)
9219 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9220 (maintenance_check_psymtabs): Use new methods.
9221 * psympriv.h (struct partial_symtab) <readin_p,
9222 get_compunit_symtab>: New methods.
9223 <readin, compunit_symtab>: Remove members.
9224 (struct standard_psymtab): New.
9225 (struct legacy_psymtab): Derive from standard_psymtab.
9226 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9227 standard_psymtab.
9228 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9229
9230 2020-01-26 Tom Tromey <tom@tromey.com>
9231
9232 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9233 read_dependencies. Add assert.
9234 * psymtab.c (partial_symtab::read_dependencies): New method.
9235 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9236 method.
9237 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9238 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9239 read_dependencies.
9240 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9241 Add assert.
9242
9243 2020-01-26 Tom Tromey <tom@tromey.com>
9244
9245 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9246 Call expand_psymtab.
9247 (xcoff_read_symtab): Call expand_psymtab.
9248 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9249 legacy_expand_psymtab.
9250 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9251 method.
9252 (struct legacy_psymtab) <expand_psymtab>: Implement.
9253 <legacy_expand_psymtab>: New member.
9254 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9255 (parse_partial_symbols): Set legacy_expand_psymtab.
9256 (psymtab_to_symtab_1): Change argument order. Call
9257 expand_psymtab.
9258 (new_psymtab): Set legacy_expand_psymtab.
9259 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9260 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9261 expand_psymtab.
9262 (dwarf2_psymtab::expand_psymtab): Rename from
9263 psymtab_to_symtab_1. Call expand_psymtab.
9264 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9265 (dbx_end_psymtab): Likewise.
9266 (dbx_psymtab_to_symtab_1): Change argument order. Call
9267 expand_psymtab.
9268 (dbx_read_symtab): Call expand_psymtab.
9269 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9270 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9271 (ctf_psymtab::read_symtab): Call expand_psymtab.
9272
9273 2020-01-26 Tom Tromey <tom@tromey.com>
9274
9275 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9276 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9277 messages.
9278 * mdebugread.c (mdebug_read_symtab): Remove prints.
9279 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9280 assert.
9281 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9282
9283 2020-01-26 Tom Tromey <tom@tromey.com>
9284
9285 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9286 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9287 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9288 legacy_symtab.
9289 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9290 * psymtab.c (psymtab_to_symtab): Call method.
9291 (dump_psymtab): Update.
9292 * psympriv.h (struct partial_symtab): Add virtual destructor.
9293 <read_symtab>: New method.
9294 (struct legacy_symtab): New.
9295 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9296 (struct pst_map) <pst>: Now a legacy_psymtab.
9297 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9298 (new_psymtab): Use legacy_psymtab.
9299 * dwarf2read.h (struct dwarf2_psymtab): New.
9300 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9301 * dwarf2read.c (dwarf2_create_include_psymtab)
9302 (dwarf2_build_include_psymtabs, create_type_unit_group)
9303 (create_partial_symtab, process_psymtab_comp_unit_reader)
9304 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9305 (set_partial_user): Use dwarf2_psymtab.
9306 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9307 (psymtab_to_symtab_1, process_full_comp_unit)
9308 (process_full_type_unit, dwarf2_ranges_read)
9309 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9310 (dwarf_decode_lines): Use dwarf2_psymtab.
9311 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9312 (add_address_entry_worker, write_one_signatured_type)
9313 (recursively_count_psymbols, recursively_write_psymbols)
9314 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9315 (write_debug_names): Likewise.
9316 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9317 <pst>: Now a legacy_psymtab.
9318 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9319 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9320 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9321 * ctfread.c (struct ctf_psymtab): New.
9322 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9323 ctf_psymtab.
9324 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9325 (create_partial_symtab): Return a ctf_psymtab.
9326 (scan_partial_symbols): Update.
9327
9328 2020-01-26 Tom Tromey <tom@tromey.com>
9329
9330 * xcoffread.c (xcoff_start_psymtab): Use new.
9331 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9332 renamed from start_psymtab_common.
9333 * psympriv.h (struct partial_symtab): Add new constructor.
9334 (start_psymtab_common): Don't declare.
9335 * mdebugread.c (parse_partial_symbols): Use new.
9336 * dwarf2read.c (create_partial_symtab): Use new.
9337 * dbxread.c (start_psymtab): Use new.
9338 * ctfread.c (create_partial_symtab): Use new.
9339
9340 2020-01-26 Tom Tromey <tom@tromey.com>
9341
9342 * xcoffread.c (xcoff_end_psymtab): Use new.
9343 * psymtab.c (start_psymtab_common): Use new.
9344 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9345 Update.
9346 * psympriv.h (struct partial_symtab): Add parameters to
9347 constructor. Don't inline.
9348 (allocate_psymtab): Don't declare.
9349 * mdebugread.c (new_psymtab): Use new.
9350 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9351 * dbxread.c (dbx_end_psymtab): Use new.
9352
9353 2020-01-26 Tom Tromey <tom@tromey.com>
9354
9355 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9356 allocate_psymtab. Update documentation.
9357 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9358 allocate_psymtab. Do not use new.
9359 (allocate_psymtab): Use new. Update.
9360
9361 2020-01-26 Tom Tromey <tom@tromey.com>
9362
9363 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9364 * psymtab.c (psym_print_stats): Update.
9365 * psympriv.h (struct partial_symtab) <readin,
9366 psymtabs_addrmap_supported, anonymous>: Now bool.
9367 * mdebugread.c (psymtab_to_symtab_1): Update.
9368 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9369 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9370 (process_full_comp_unit, process_full_type_unit): Update.
9371 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9372 * ctfread.c (psymtab_to_symtab): Update.
9373
9374 2020-01-26 Tom Tromey <tom@tromey.com>
9375
9376 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9377 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9378 * psymtab.c (psymtab_storage): Delete psymtabs.
9379 (psymtab_storage::allocate_psymtab): Use new.
9380 (psymtab_storage::discard_psymtab): Use delete.
9381 * psympriv.h (struct partial_symtab): Add constructor and
9382 initializers.
9383
9384 2020-01-26 Tom Tromey <tom@tromey.com>
9385
9386 * machoread.c: Do not include psympriv.h.
9387
9388 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9389
9390 * NEWS: Mention the new option and the set/show commands.
9391
9392 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9393
9394 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9395 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9396 (validate_exec_file): New variables, enums, functions.
9397 (exec_file_locate_attach, print_section_info): Style the filenames.
9398 (_initialize_exec): Install show_exec_file_mismatch_command and
9399 set_exec_file_mismatch_command.
9400 * gdbcore.h (validate_exec_file): Declare.
9401 * infcmd.c (attach_command): Call validate_exec_file.
9402 * remote.c ( remote_target::remote_add_inferior): Likewise.
9403
9404 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * frame.c (find_frame_sal): Move call to get_next_frame into more
9407 inner scope.
9408 * inline-frame.c (inilne_state) <inline_state>: Update argument
9409 types.
9410 (inilne_state) <skipped_symbol>: Rename to...
9411 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9412 (skip_inline_frames): Build vector of skipped symbols and use this
9413 to reate the inline_state.
9414 (inline_skipped_symbol): Add a comment and some assertions, fetch
9415 skipped symbol from the list.
9416
9417 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9418
9419 * buildsym.c (lte_is_less_than): Delete.
9420 (buildsym_compunit::end_symtab_with_blockvector): Create local
9421 lambda function to sort line table entries, and use
9422 std::stable_sort instead of std::sort.
9423 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9424 markers when looking for a previous line.
9425
9426 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 * dwarf2read.c (lnp_state_machine::record_line): Include
9429 end_sequence parameter in debug print out. Record the line if we
9430 are at an end_sequence marker even if it's not the start of a
9431 statement.
9432 * symmisc.c (maintenance_print_one_line_table): Print end of
9433 sequence markers with 'END' not '0'.
9434
9435 2020-01-24 Pedro Alves <palves@redhat.com>
9436
9437 PR gdb/25410
9438 * thread.c (scoped_restore_current_thread::restore): Use
9439 switch_to_inferior_no_thread.
9440 * exec.c: Include "progspace-and-thread.h".
9441 (add_target_sections, remove_target_sections):
9442 scoped_restore_current_pspace_and_thread instead of
9443 scoped_restore_current_thread.
9444 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9445 and aspace to the inferior before calling clone_program_space.
9446 Remove stale comment.
9447
9448 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9449
9450 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9451 (arm_netbsd_nat_target::fetch_registers): ...this.
9452 (arm_nbsd_nat_target::store_registers): Rename to...
9453 (arm_netbsd_nat_target::store_registers): ...this.
9454
9455 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9456
9457 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9458 register_t.
9459
9460 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9461
9462 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9463 Update comment.
9464 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9465 Likewise.
9466 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9467 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9468 the correct replacement (iterate_over_regset_sections).
9469 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9470 Update comment.
9471
9472 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9473
9474 PR gdb/23718
9475 * gdb/python/python.c (execute_gdb_command): Call
9476 async_enable_stdin in catch block.
9477
9478 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9479
9480 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9481 SWITCH_THRU_ALL_UIS.
9482
9483 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9484
9485 PR tui/9765
9486 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9487 comment, add extra parameter, and update to store previous symbol
9488 when appropriate.
9489 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9490 add extra parameter.
9491 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9492 remove unneeded parameter, add try/catch around gdb_print_insn,
9493 rewrite to add items to asm_lines vector.
9494 (tui_find_backward_disassembly_start_address): New function.
9495 (tui_find_disassembly_address): Updated throughout.
9496 (tui_disasm_window::set_contents): Update for changes to
9497 tui_disassemble.
9498 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9499 number of lines to scroll.
9500
9501 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9502
9503 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9504 (SECT_OFF_DATA): Likewise.
9505 (SECT_OFF_RODATA): Likewise.
9506 (SECT_OFF_TEXT): Likewise.
9507 (SECT_OFF_BSS): Likewise.
9508 (struct objfile) <text_section_offset, data_section_offset>: New
9509 methods.
9510 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9511 objfile::text_section_offset.
9512 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9513 * coffread.c (coff_symtab_read): Likewise.
9514 (enter_linenos): Likewise.
9515 (process_coff_symbol): Likewise.
9516 * ctfread.c (get_objfile_text_range): Likewise.
9517 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9518 Use objfile::data_section_offset.
9519 * dwarf2-frame.c (execute_cfa_program): Use
9520 objfile::text_section_offset.
9521 (dwarf2_frame_find_fde): Likewise.
9522 * dwarf2read.c (create_addrmap_from_index): Likewise.
9523 (create_addrmap_from_aranges): Likewise.
9524 (dw2_find_pc_sect_compunit_symtab): Likewise.
9525 (process_psymtab_comp_unit_reader): Likewise.
9526 (add_partial_symbol): Likewise.
9527 (add_partial_subprogram): Likewise.
9528 (process_full_comp_unit): Likewise.
9529 (read_file_scope): Likewise.
9530 (read_func_scope): Likewise.
9531 (read_lexical_block_scope): Likewise.
9532 (read_call_site_scope): Likewise.
9533 (dwarf2_rnglists_process): Likewise.
9534 (dwarf2_ranges_process): Likewise.
9535 (dwarf2_ranges_read): Likewise.
9536 (dwarf_decode_lines_1): Likewise.
9537 (new_symbol): Likewise.
9538 (dwarf2_fetch_die_loc_sect_off): Likewise.
9539 (dwarf2_per_cu_text_offset): Likewise.
9540 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9541 * hppa-tdep.c (read_unwind_info): Likewise.
9542 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9543 * psympriv.h (struct partial_symtab): Likewise.
9544 * psymtab.c (find_pc_sect_psymtab): Likewise.
9545 * solib-svr4.c (enable_break): Likewise.
9546 * stap-probe.c (relocate_address): Use
9547 objfile::data_section_offset.
9548 * xcoffread.c (enter_line_range): Use
9549 objfile::text_section_offset.
9550 (read_xcoff_symtab): Likewise.
9551
9552 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9553
9554 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9555 declaration to narrower scopes.
9556
9557 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9558
9559 * darwin-nat.h (struct darwin_exception_msg, enum
9560 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9561 Move up.
9562 (class darwin_nat_target) <wait_1, check_new_threads,
9563 decode_exception_message, decode_message, stop_inferior,
9564 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9565 * darwin-nat.c (darwin_check_new_threads): Rename to...
9566 (darwin_nat_target::check_new_threads): ... this.
9567 (darwin_suspend_inferior_it): Remove.
9568 (darwin_decode_exception_message): Rename to...
9569 (darwin_nat_target::decode_exception_message): ... this.
9570 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9571 (darwin_decode_message): Rename to...
9572 (darwin_nat_target::decode_message): ... this.
9573 (cancel_breakpoint): Rename to...
9574 (darwin_nat_target::cancel_breakpoint): ... this.
9575 (darwin_wait): Rename to...
9576 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9577 instead of iterate_over_inferiors.
9578 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9579 (darwin_stop_inferior): Rename to...
9580 (darwin_nat_target::stop_inferior): ... this.
9581 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9582 (darwin_init_thread_list): Rename to...
9583 (darwin_nat_target::init_thread_list): ... this.
9584 (darwin_ptrace_him): Rename to...
9585 (darwin_nat_target::ptrace_him): ... this.
9586 (darwin_nat_target::create_inferior): Pass lambda function to
9587 fork_inferior.
9588 (darwin_nat_target::detach): Call stop_inferior instead of
9589 darwin_stop_inferior.
9590 * fork-inferior.h (fork_inferior): Change init_trace_fun
9591 parameter to gdb::function_view.
9592 * fork-inferior.c (fork_inferior): Likewise.
9593
9594 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9595
9596 * i386-cygwin-tdep.c (core_process_module_section): Update.
9597 * windows-nat.c (struct lm_info_windows): Add text_offset.
9598 (windows_xfer_shared_libraries): Update.
9599 * windows-tdep.c (windows_xfer_shared_library):
9600 Add text_offset_cached argument.
9601 * windows-tdep.h (windows_xfer_shared_library): Update.
9602
9603 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9606
9607 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9610 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9611 replace with range-based for.
9612 (gdbsim_interrupt_inferior): Remove.
9613 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9614 with a range-based for. Inline code from
9615 gdbsim_interrupt_inferior.
9616
9617 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * infrun.c (proceed): Fix indentation.
9620
9621 2020-01-21 Tom Tromey <tromey@adacore.com>
9622
9623 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9624 * python/python.c (python_extension_ops): Update.
9625 (gdbpy_colorize): New function.
9626 * python/lib/gdb/__init__.py (colorize): New function.
9627 * extension.h (ext_lang_colorize): Declare.
9628 * extension.c (ext_lang_colorize): New function.
9629 * extension-priv.h (struct extension_language_ops) <colorize>: New
9630 member.
9631 * cli/cli-style.c (_initialize_cli_style): Update help text.
9632
9633 2020-01-21 Luis Machado <luis.machado@linaro.org>
9634
9635 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9636 <cond>: Change type to bool.
9637 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9638 (aarch64_displaced_step_cb): Likewise.
9639 (aarch64_displaced_step_tb): Likewise.
9640
9641 2020-01-21 Luis Machado <luis.machado@linaro.org>
9642
9643 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9644 output.
9645
9646 2020-01-21 Luis Machado <luis.machado@linaro.org>
9647
9648 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9649 <pc_adjust>: Adjust the documentation.
9650 (aarch64_displaced_step_fixup): Check if PC really moved before
9651 adjusting it.
9652
9653 2020-01-19 Tom Tromey <tom@tromey.com>
9654
9655 * disasm.c (~gdb_disassembler): New destructor.
9656 (gdb_buffered_insn_length): Call disassemble_free_target.
9657 * disasm.h (class gdb_disassembler): Declare destructor. Use
9658 DISABLE_COPY_AND_ASSIGN.
9659
9660 2020-01-19 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9663 (die_reader_func_ftype): Remove.
9664 (cutu_reader): New class.
9665 (dw2_get_file_names_reader): Remove "data" parameter.
9666 (dw2_get_file_names): Use cutu_reader.
9667 (create_debug_type_hash_table): Update.
9668 (read_cutu_die_from_dwo): Update comment.
9669 (lookup_dwo_unit): Add dwo_name parameter.
9670 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9671 die_reader_func_ftype and data parameters.
9672 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9673 Remove die_reader_func_ftype and data parameters.
9674 (~cutu_reader): New; from init_cutu_and_read_dies.
9675 (cutu_reader::cutu_reader): Rename from
9676 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9677 and data parameters.
9678 (init_cutu_and_read_dies_simple): Remove.
9679 (struct process_psymtab_comp_unit_data): Remove.
9680 (process_psymtab_comp_unit_reader): Remove data parameter; add
9681 want_partial_unit and pretend_language parameters.
9682 (process_psymtab_comp_unit): Use cutu_reader.
9683 (build_type_psymtabs_reader): Remove data parameter.
9684 (build_type_psymtabs_1): Use cutu_reader.
9685 (process_skeletonless_type_unit): Likewise.
9686 (load_partial_comp_unit_reader): Remove.
9687 (load_partial_comp_unit): Use cutu_reader.
9688 (load_full_comp_unit_reader): Remove.
9689 (load_full_comp_unit): Use cutu_reader.
9690 (struct create_dwo_cu_data): Remove.
9691 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9692 dwo_unit parameters.
9693 (create_cus_hash_table): Use cutu_reader.
9694 (struct dwarf2_read_addr_index_data): Remove.
9695 (dwarf2_read_addr_index_reader): Remove.
9696 (dwarf2_read_addr_index): Use cutu_reader.
9697 (read_signatured_type_reader): Remove.
9698 (read_signatured_type): Use cutu_reader.
9699
9700 2020-01-19 Tom Tromey <tom@tromey.com>
9701
9702 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9703 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9704 (tui_wrefresh): Declare.
9705 * tui/tui-wingeneral.c (suppress_output): New global.
9706 (tui_suppress_output, ~tui_suppress_output): New constructor and
9707 destructor.
9708 (tui_wrefresh): New function.
9709 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9710 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9711 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9712 method.
9713 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9714 tui_wrefresh.
9715 (tui_data_window::no_refresh): New method.
9716 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9717 (tui_reg_command): Use tui_suppress_output
9718 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9719 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9720 method.
9721 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9722
9723 2020-01-19 Tom Tromey <tom@tromey.com>
9724
9725 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9726 Handle case where symtab is null.
9727
9728 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9729
9730 * linux-fork.c (one_fork_p): Simplify.
9731
9732 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * top.c (struct qt_args): Remove.
9735 (kill_or_detach): Change return type to void, replace `void *`
9736 parameter with a proper one.
9737 (print_inferior_quit_action): Likewise.
9738 (quit_confirm): Use range-based for loop to iterate over inferiors.
9739 (quit_force): Likewise.
9740
9741 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9744 `void *` parameter with proper parameters.
9745 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9746 (print_one_inferior): Change return type to void, replace `void *`
9747 parameter with proper parameters.
9748 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9749 inferiors.
9750 (get_other_inferior): Remove.
9751 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9752 inferiors.
9753
9754 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * mi/mi-interp.c (report_initial_inferior): Remove.
9757 (mi_interp::init): Use range-based for to iterate over inferiors.
9758
9759 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * python/py-inferior.c (build_inferior_list): Remove.
9762 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9763
9764 2020-01-16 Christian Biesinger <cbiesinger@google.com>
9765
9766 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9767 (btrace_stitch_trace): Likewise.
9768 * charset.c (intermediate_encoding): Likewise (vaild).
9769 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9770 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9771 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9772
9773 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
9774
9775 * windows-tdep.c (windows_get_tlb_type):
9776 Add rtl_user_process_parameters type.
9777
9778 2020-01-16 Pedro Alves <palves@redhat.com>
9779 Norbert Lange <nolange79@gmail.com>
9780
9781 PR build/24805
9782 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9783 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9784 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9785 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9786 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9787 (ps_plog): Redeclare exported functions with default visibility.
9788
9789 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9790
9791 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9792 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9793
9794 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * infcmd.c (post_create_inferior): Use get_thread_regcache
9797 instead of get_current_regcache.
9798
9799 2020-01-14 Tom Tromey <tom@tromey.com>
9800
9801 PR symtab/12535:
9802 * python/python.c (gdbpy_decode_line): Treat empty string the same
9803 as no argument.
9804
9805 2020-01-14 Tom Tromey <tom@tromey.com>
9806
9807 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9808
9809 2020-01-14 Tom Tromey <tom@tromey.com>
9810
9811 * nat/linux-btrace.c: Don't include <config.h>.
9812 * nat/linux-ptrace.c: Don't include <config.h>.
9813 * nat/x86-linux-dregs.c: Don't include <config.h>.
9814
9815 2020-01-14 Tom Tromey <tom@tromey.com>
9816
9817 * configure: Rebuild.
9818 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9819
9820 2020-01-14 Tom Tromey <tom@tromey.com>
9821
9822 * nat/x86-linux-dregs.c: Include configh.h.
9823 * nat/linux-ptrace.c: Include configh.h.
9824 * nat/linux-btrace.c: Include configh.h.
9825 * defs.h: Include config.h, bfd.h.
9826 * configure.ac: Don't source common.host.
9827 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9828 * configure: Rebuild.
9829 * acinclude.m4: Update path.
9830 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9831 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9832 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9833 (CLIBS): Add LIBSUPPORT.
9834 (CDEPS): Likewise.
9835 (COMMON_SFILES): Remove gdbsupport files.
9836 (HFILES_NO_SRCDIR): Likewise.
9837 (stamp-version): Update path to create-version.sh.
9838 (ALLDEPFILES): Remove gdbsupport files.
9839
9840 2020-01-14 Tom Tromey <tom@tromey.com>
9841
9842 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9843 USE_WIN32API when needed.
9844 * configure.ac (USE_WIN32API): Don't define.
9845 (WIN32LIBS): Use WIN32APILIBS.
9846 * configure: Rebuild.
9847
9848 2020-01-14 Tom Tromey <tom@tromey.com>
9849
9850 * configure: Rebuild.
9851 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9852
9853 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9854
9855 * skip.c (skip_function_command): Make skip w/o arguments use the
9856 name of the inlined function if pc is inside any inlined function.
9857
9858 2020-01-14 Luis Machado <luis.machado@linaro.org>
9859
9860 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9861 * infrun.c (resume_1): Likewise.
9862 (handle_inferior_event): Remove stale comment.
9863 * linux-nat.c (linux_nat_target::resume): Update comments.
9864 (save_stop_reason): Likewise.
9865 (linux_nat_filter_event): Likewise.
9866 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9867
9868 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * elfread.c (record_minimal_symbol): Set section index to 0 for
9871 non-allocatable sections.
9872
9873
9874 2020-01-13 Ali Tamur <tamur@google.com>
9875
9876 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9877 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9878 to gdb::optional. Update comments.
9879 (dwo_file): Update comments.
9880 (read_attribute): Update API to take an additional out parameter,
9881 need_reprocess. This is used to mark attributes that need other
9882 attributes (e.g. str_offsets_base) for correct computation which may not
9883 have been read yet.
9884 (read_attribute_reprocess): New function declaration.
9885 (read_addr_index): Likewise.
9886 (read_dwo_str_index): Likewise.
9887 (read_stub_str_index): Likewise.
9888 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9889 (lookup_addr_base): New function definition.
9890 (lookup_ranges_base): Likewise.
9891 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9892 lookup_ranges_base.
9893 (init_cutu_and_read_dies): Update comments.
9894 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9895 unit. This is used to inherit parent's str_offsets_base and addr_base.
9896 Update comments.
9897 (init_cutu_and_read_dies_simple): Reflect API changes.
9898 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9899 (create_cus_hash_table): Change API to take parent compile unit.
9900 Reflect API changes.
9901 (open_and_init_dwo_file): Reflect API changes.
9902 (dwarf2_get_pc_bounds): Update comments.
9903 (dwarf2_record_block_ranges): Likewise.
9904 (read_full_die_1): Change implementation to reprocess attributes that
9905 need str_offsets_base and addr_base.
9906 (partial_die_info::read): Likewise.
9907 (read_attribute_reprocess): New function definition.
9908 (read_attribute_value): Change API to take an additional out parameter,
9909 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9910 when a non-dwo compile unit has index based attributes.
9911 (read_attribute): Reflect API changes.
9912 (read_addr_index_1): Reflect API changes. Update comments.
9913 (dwarf2_read_addr_index_data): Reflect API changes.
9914 (dwarf2_read_addr_index): Likewise.
9915 (read_str_index): Change API and implementation. This becomes a helper
9916 to be used by the new string index related methods. Update error
9917 message and comments.
9918 (read_dwo_str_index): New function definition.
9919 (read_stub_str_index): Likewise.
9920 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9921 * symfile.h (dwarf2_debug_sections): Likewise.
9922 * xcoffread.c (dwarf2_debug_sections): Likewise.
9923
9924 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9927 core_reg_sect type to gdb_byte *.
9928 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9929 * cris-tdep.c (fetch_core_registers): Likewise.
9930 * corelow.c (core_target::get_core_register_section): Change
9931 type of `contents` to gdb::byte_vector.
9932
9933 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * tui/tui-wingeneral.c (box_win): Position the title in the center
9936 of the border.
9937
9938 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9939
9940 * corelow.c (core_target::get_core_register_section): Use
9941 std::vector instead of alloca.
9942
9943 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * warning.m4: Add -Wmissing-declarations to build_warnings.
9946 * configure: Re-generate.
9947
9948 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * python/python.c (init__gdb_module): Add declaration.
9951
9952 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
9953
9954 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9955 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9956 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9957 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9958 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9959 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9960 * ada-exp.y (_initialize_ada_exp): Add declaration.
9961 * ada-lang.c (_initialize_ada_language): Add declaration.
9962 * ada-tasks.c (_initialize_tasks): Add declaration.
9963 * agent.c (_initialize_agent): Add declaration.
9964 * aix-thread.c (_initialize_aix_thread): Add declaration.
9965 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9966 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9967 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9968 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9969 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9970 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9971 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9972 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9973 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9974 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9975 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9976 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9977 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9978 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9979 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9980 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9981 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9982 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9983 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9984 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9985 * annotate.c (_initialize_annotate): Add declaration.
9986 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9987 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9988 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9989 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9990 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9991 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9992 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9993 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9994 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9995 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9996 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9997 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9998 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9999 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10000 * auto-load.c (_initialize_auto_load): Add declaration.
10001 * auxv.c (_initialize_auxv): Add declaration.
10002 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10003 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10004 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10005 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10006 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10007 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10008 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10009 * breakpoint.c (_initialize_breakpoint): Add declaration.
10010 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10011 * btrace.c (_initialize_btrace): Add declaration.
10012 * charset.c (_initialize_charset): Add declaration.
10013 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10014 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10015 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10016 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10017 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10018 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10019 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10020 * coffread.c (_initialize_coffread): Add declaration.
10021 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10022 * compile/compile.c (_initialize_compile): Add declaration.
10023 * complaints.c (_initialize_complaints): Add declaration.
10024 * completer.c (_initialize_completer): Add declaration.
10025 * copying.c (_initialize_copying): Add declaration.
10026 * corefile.c (_initialize_core): Add declaration.
10027 * corelow.c (_initialize_corelow): Add declaration.
10028 * cp-abi.c (_initialize_cp_abi): Add declaration.
10029 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10030 * cp-support.c (_initialize_cp_support): Add declaration.
10031 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10032 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10033 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10034 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10035 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10036 * ctfread.c (_initialize_ctfread): Add declaration.
10037 * d-lang.c (_initialize_d_language): Add declaration.
10038 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10039 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10040 * dbxread.c (_initialize_dbxread): Add declaration.
10041 * dcache.c (_initialize_dcache): Add declaration.
10042 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10043 * disasm.c (_initialize_disasm): Add declaration.
10044 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10045 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10046 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10047 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10048 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10049 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10050 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10051 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10052 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10053 * elfread.c (_initialize_elfread): Add declaration.
10054 * exec.c (_initialize_exec): Add declaration.
10055 * extension.c (_initialize_extension): Add declaration.
10056 * f-lang.c (_initialize_f_language): Add declaration.
10057 * f-valprint.c (_initialize_f_valprint): Add declaration.
10058 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10059 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10060 * filesystem.c (_initialize_filesystem): Add declaration.
10061 * findcmd.c (_initialize_mem_search): Add declaration.
10062 * findvar.c (_initialize_findvar): Add declaration.
10063 * fork-child.c (_initialize_fork_child): Add declaration.
10064 * frame-base.c (_initialize_frame_base): Add declaration.
10065 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10066 * frame.c (_initialize_frame): Add declaration.
10067 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10068 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10069 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10070 * gcore.c (_initialize_gcore): Add declaration.
10071 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10072 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10073 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10074 * gdbarch.c (_initialize_gdbarch): Add declaration.
10075 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10076 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10077 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10078 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10079 * go-lang.c (_initialize_go_language): Add declaration.
10080 * go32-nat.c (_initialize_go32_nat): Add declaration.
10081 * guile/guile.c (_initialize_guile): Add declaration.
10082 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10083 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10084 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10085 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10086 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10087 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10088 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10089 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10090 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10091 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10092 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10093 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10094 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10095 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10096 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10097 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10098 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10099 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10100 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10101 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10102 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10103 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10104 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10105 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10106 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10107 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10108 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10109 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10110 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10111 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10112 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10113 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10114 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10115 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10116 * infcall.c (_initialize_infcall): Add declaration.
10117 * infcmd.c (_initialize_infcmd): Add declaration.
10118 * inflow.c (_initialize_inflow): Add declaration.
10119 * infrun.c (_initialize_infrun): Add declaration.
10120 * interps.c (_initialize_interpreter): Add declaration.
10121 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10122 * jit.c (_initialize_jit): Add declaration.
10123 * language.c (_initialize_language): Add declaration.
10124 * linux-fork.c (_initialize_linux_fork): Add declaration.
10125 * linux-nat.c (_initialize_linux_nat): Add declaration.
10126 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10127 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10128 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10129 * m2-lang.c (_initialize_m2_language): Add declaration.
10130 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10131 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10132 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10133 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10134 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10135 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10136 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10137 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10138 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10139 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10140 * machoread.c (_initialize_machoread): Add declaration.
10141 * macrocmd.c (_initialize_macrocmd): Add declaration.
10142 * macroscope.c (_initialize_macroscope): Add declaration.
10143 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10144 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10145 * maint.c (_initialize_maint_cmds): Add declaration.
10146 * mdebugread.c (_initialize_mdebugread): Add declaration.
10147 * memattr.c (_initialize_mem): Add declaration.
10148 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10149 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10150 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10151 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10152 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10153 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10154 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10155 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10156 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10157 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10158 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10159 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10160 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10161 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10162 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10163 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10164 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10165 * mipsread.c (_initialize_mipsread): Add declaration.
10166 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10167 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10168 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10169 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10170 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10171 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10172 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10173 * nto-procfs.c (_initialize_procfs): Add declaration.
10174 * objc-lang.c (_initialize_objc_language): Add declaration.
10175 * observable.c (_initialize_observer): Add declaration.
10176 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10177 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10178 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10179 * osabi.c (_initialize_gdb_osabi): Add declaration.
10180 * osdata.c (_initialize_osdata): Add declaration.
10181 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10182 * parse.c (_initialize_parse): Add declaration.
10183 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10184 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10185 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10186 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10187 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10188 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10189 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10190 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10191 * printcmd.c (_initialize_printcmd): Add declaration.
10192 * probe.c (_initialize_probe): Add declaration.
10193 * proc-api.c (_initialize_proc_api): Add declaration.
10194 * proc-events.c (_initialize_proc_events): Add declaration.
10195 * proc-service.c (_initialize_proc_service): Add declaration.
10196 * procfs.c (_initialize_procfs): Add declaration.
10197 * producer.c (_initialize_producer): Add declaration.
10198 * psymtab.c (_initialize_psymtab): Add declaration.
10199 * python/python.c (_initialize_python): Add declaration.
10200 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10201 * record-btrace.c (_initialize_record_btrace): Add declaration.
10202 * record-full.c (_initialize_record_full): Add declaration.
10203 * record.c (_initialize_record): Add declaration.
10204 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10205 * regcache.c (_initialize_regcache): Add declaration.
10206 * reggroups.c (_initialize_reggroup): Add declaration.
10207 * remote-notif.c (_initialize_notif): Add declaration.
10208 * remote-sim.c (_initialize_remote_sim): Add declaration.
10209 * remote.c (_initialize_remote): Add declaration.
10210 * reverse.c (_initialize_reverse): Add declaration.
10211 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10212 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10213 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10214 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10215 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10216 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10217 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10218 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10219 Add declaration.
10220 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10221 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10222 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10223 * rust-exp.y (_initialize_rust_exp): Add declaration.
10224 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10225 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10226 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10227 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10228 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10229 * score-tdep.c (_initialize_score_tdep): Add declaration.
10230 * ser-go32.c (_initialize_ser_dos): Add declaration.
10231 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10232 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10233 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10234 * ser-uds.c (_initialize_ser_socket): Add declaration.
10235 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10236 * serial.c (_initialize_serial): Add declaration.
10237 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10238 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10239 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10240 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10241 * skip.c (_initialize_step_skip): Add declaration.
10242 * sol-thread.c (_initialize_sol_thread): Add declaration.
10243 * solib-aix.c (_initialize_solib_aix): Add declaration.
10244 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10245 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10246 * solib-frv.c (_initialize_frv_solib): Add declaration.
10247 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10248 * solib-target.c (_initialize_solib_target): Add declaration.
10249 * solib.c (_initialize_solib): Add declaration.
10250 * source-cache.c (_initialize_source_cache): Add declaration.
10251 * source.c (_initialize_source): Add declaration.
10252 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10253 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10254 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10255 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10256 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10257 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10258 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10259 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10260 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10261 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10262 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10263 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10264 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10265 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10266 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10267 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10268 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10269 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10270 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10271 * stabsread.c (_initialize_stabsread): Add declaration.
10272 * stack.c (_initialize_stack): Add declaration.
10273 * stap-probe.c (_initialize_stap_probe): Add declaration.
10274 * std-regs.c (_initialize_frame_reg): Add declaration.
10275 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10276 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10277 * symfile.c (_initialize_symfile): Add declaration.
10278 * symmisc.c (_initialize_symmisc): Add declaration.
10279 * symtab.c (_initialize_symtab): Add declaration.
10280 * target.c (_initialize_target): Add declaration.
10281 * target-connection.c (_initialize_target_connection): Add
10282 declaration.
10283 * target-dcache.c (_initialize_target_dcache): Add declaration.
10284 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10285 * thread.c (_initialize_thread): Add declaration.
10286 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10287 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10288 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10289 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10290 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10291 * tracectf.c (_initialize_ctf): Add declaration.
10292 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10293 * tracefile.c (_initialize_tracefile): Add declaration.
10294 * tracepoint.c (_initialize_tracepoint): Add declaration.
10295 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10296 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10297 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10298 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10299 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10300 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10301 * tui/tui.c (_initialize_tui): Add declaration.
10302 * typeprint.c (_initialize_typeprint): Add declaration.
10303 * ui-style.c (_initialize_ui_style): Add declaration.
10304 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10305 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10306 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10307 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10308 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10309 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10310 * unittests/filtered_iterator-selftests.c
10311 (_initialize_filtered_iterator_selftests): Add declaration.
10312 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10313 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10314 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10315 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10316 * unittests/main-thread-selftests.c
10317 (_initialize_main_thread_selftests): Add declaration.
10318 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10319 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10320 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10321 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10322 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10323 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10324 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10325 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10326 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10327 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10328 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10329 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10330 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10331 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10332 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10333 declaration.
10334 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10335 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10336 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10337 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10338 * user-regs.c (_initialize_user_regs): Add declaration.
10339 * utils.c (_initialize_utils): Add declaration.
10340 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10341 * valops.c (_initialize_valops): Add declaration.
10342 * valprint.c (_initialize_valprint): Add declaration.
10343 * value.c (_initialize_values): Add declaration.
10344 * varobj.c (_initialize_varobj): Add declaration.
10345 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10346 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10347 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10348 * windows-nat.c (_initialize_windows_nat): Add declaration.
10349 (_initialize_check_for_gdb_ini): Add declaration.
10350 (_initialize_loadable): Add declaration.
10351 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10352 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10353 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10354 * xcoffread.c (_initialize_xcoffread): Add declaration.
10355 * xml-support.c (_initialize_xml_support): Add declaration.
10356 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10357 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10358 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10359 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10360
10361 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10362
10363 * regformats/regdat.sh: Generate declaration for init function.
10364
10365 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10366
10367 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10368 up.
10369 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10370 close_one_inferior>: New methods.
10371 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10372 pass down target to find_inferior_pid.
10373 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10374 Pass down target to find_inferior_ptid.
10375 (gdbsim_target::create_inferior): Pass down target to
10376 add_thread_silent.
10377 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10378 target down to find_inferior_ptid and switch_to_thread.
10379 (gdbsim_target::close): Update to call close_one_inferior.
10380 (struct resume_data): Remove.
10381 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10382 directly, rather than through a void pointer.
10383 (gdbsim_target::resume): Update to call resume_one_inferior.
10384
10385 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10386
10387 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10388
10389 2020-01-12 Pedro Alves <palves@redhat.com>
10390
10391 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10392 directly for the current inferior instead of
10393 discard_all_inferiors.
10394 (discard_all_inferiors): Delete.
10395
10396 2020-01-11 Tom Tromey <tom@tromey.com>
10397
10398 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10399 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10400 deprecated_safe_get_selected_frame.
10401
10402 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10403
10404 * inferior.c (print_inferior): Switch inferior before printing it.
10405
10406 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10407 Pedro Alves <palves@redhat.com>
10408
10409 * progspace-and-thread.c (switch_to_program_space_and_thread):
10410 Assert there's an inferior for PSPACE. Use
10411 switch_to_inferior_no_thread to switch the inferior too.
10412 * progspace.c (program_space::~program_space): Call
10413 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10414 (program_space::free_all_objfiles): Don't call clear_symtab_users
10415 here.
10416 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10417
10418 2020-01-10 Pedro Alves <palves@redhat.com>
10419
10420 * NEWS: Mention multi-target debugging, "info connections", and
10421 "add-inferior -no-connection".
10422
10423 2020-01-10 Pedro Alves <palves@redhat.com>
10424
10425 * infrun.c: Include "target-connection.h".
10426 (check_multi_target_resumption): New.
10427 (proceed): Call it.
10428 * target-connection.c (make_target_connection_string): Make
10429 extern.
10430 * target-connection.h (make_target_connection_string): Declare.
10431
10432 2020-01-10 Pedro Alves <palves@redhat.com>
10433
10434 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10435 * inferior.c (uiout_field_connection): New function.
10436 (print_inferior): Add new "connection-id" column.
10437 (add_inferior_command): Show connection number/string of added
10438 inferior.
10439 * process-stratum-target.h
10440 (process_stratum_target::connection_string): New virtual method.
10441 (process_stratum_target::connection_number): New field.
10442 * remote.c (remote_target::connection_string): New override.
10443 * target-connection.c: New file.
10444 * target-connection.h: New file.
10445 * target.c (decref_target): Remove process_stratum targets from
10446 the connection list.
10447 (target_stack::push): Add process_stratum targets to the
10448 connection list.
10449
10450 2020-01-10 Pedro Alves <palves@redhat.com>
10451
10452 Revert:
10453 2016-04-12 Pedro Alves <palves@redhat.com>
10454 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10455 Remove references to name.
10456 * serial.h (struct serial) <name>: Delete.
10457
10458 2020-01-10 Pedro Alves <palves@redhat.com>
10459
10460 * gdbarch-selftests.c (register_to_value_test): Remove "target
10461 already pushed" check.
10462
10463 2020-01-10 Pedro Alves <palves@redhat.com>
10464 John Baldwin <jhb@FreeBSD.org>
10465
10466 * aarch64-linux-nat.c
10467 (aarch64_linux_nat_target::thread_architecture): Adjust.
10468 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10469 (task_command_1): Likewise.
10470 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10471 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10472 (aix_thread_target::store_registers)
10473 (aix_thread_target::thread_alive): Adjust.
10474 * amd64-fbsd-tdep.c: Include "inferior.h".
10475 (amd64fbsd_get_thread_local_address): Pass down target.
10476 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10477 thread's gdbarch instead of target_gdbarch.
10478 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10479 get_last_target_status.
10480 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10481 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10482 inferiors.
10483 (update_inserted_breakpoint_locations): Skip if inferiors with no
10484 execution.
10485 (update_global_location_list): When handling moribund locations,
10486 find representative inferior for location's pspace, and use thread
10487 count of its process_stratum target.
10488 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10489 * bsd-uthread.c (bsd_uthread_target::wait): Use
10490 as_process_stratum_target and adjust thread_change_ptid and
10491 add_thread calls.
10492 (bsd_uthread_target::update_thread_list): Use
10493 as_process_stratum_target and adjust find_thread_ptid,
10494 thread_change_ptid and add_thread calls.
10495 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10496 find_thread_ptid call.
10497 * corelow.c (add_to_thread_list): Adjust add_thread call.
10498 (core_target_open): Adjust add_thread_silent and thread_count
10499 calls.
10500 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10501 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10502 * event-top.c (async_disconnect): Pop targets from all inferiors.
10503 * exec.c (add_target_sections): Push exec target on all inferiors
10504 sharing the program space.
10505 (remove_target_sections): Remove the exec target from all
10506 inferiors sharing the program space.
10507 (exec_on_vfork): New.
10508 * exec.h (exec_on_vfork): Declare.
10509 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10510 Pass it down.
10511 (fbsd_nat_target::update_thread_list): Adjust.
10512 (fbsd_nat_target::resume): Adjust.
10513 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10514 down.
10515 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10516 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10517 get_thread_arch_regcache call.
10518 * fork-child.c (gdb_startup_inferior): Pass target down to
10519 startup_inferior and set_executing.
10520 * gdbthread.h (struct process_stratum_target): Forward declare.
10521 (add_thread, add_thread_silent, add_thread_with_info)
10522 (in_thread_list): Add process_stratum_target parameter.
10523 (find_thread_ptid(inferior*, ptid_t)): New overload.
10524 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10525 parameter.
10526 (all_threads()): Delete overload.
10527 (all_threads, all_non_exited_threads): Add process_stratum_target
10528 parameter.
10529 (all_threads_safe): Use brace initialization.
10530 (thread_count): Add process_stratum_target parameter.
10531 (set_resumed, set_running, set_stop_requested, set_executing)
10532 (threads_are_executing, finish_thread_state): Add
10533 process_stratum_target parameter.
10534 (switch_to_thread): Use is_current_thread.
10535 * i386-fbsd-tdep.c: Include "inferior.h".
10536 (i386fbsd_get_thread_local_address): Pass down target.
10537 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10538 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10539 have_inferiors check.
10540 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10541 (inf_ptrace_target::attach): Adjust.
10542 * infcall.c (run_inferior_call): Adjust.
10543 * infcmd.c (run_command_1): Pass target to
10544 scoped_finish_thread_state.
10545 (proceed_thread_callback): Skip inferiors with no execution.
10546 (continue_command): Rename 'all_threads' local to avoid hiding
10547 'all_threads' function. Adjust get_last_target_status call.
10548 (prepare_one_step): Adjust set_running call.
10549 (signal_command): Use user_visible_resume_target. Compare thread
10550 pointers instead of inferior_ptid.
10551 (info_program_command): Adjust to pass down target.
10552 (attach_command): Mark target's 'thread_executing' flag.
10553 (stop_current_target_threads_ns): New, factored out from ...
10554 (interrupt_target_1): ... this. Switch inferior before making
10555 target calls.
10556 * inferior-iter.h
10557 (struct all_inferiors_iterator, struct all_inferiors_range)
10558 (struct all_inferiors_safe_range)
10559 (struct all_non_exited_inferiors_range): Filter on
10560 process_stratum_target too. Remove explicit.
10561 * inferior.c (inferior::inferior): Push dummy target on target
10562 stack.
10563 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10564 Add process_stratum_target parameter, and pass it down.
10565 (have_live_inferiors): Adjust.
10566 (switch_to_inferior_and_push_target): New.
10567 (add_inferior_command, clone_inferior_command): Handle
10568 "-no-connection" parameter. Use
10569 switch_to_inferior_and_push_target.
10570 (_initialize_inferior): Mention "-no-connection" option in
10571 the help of "add-inferior" and "clone-inferior" commands.
10572 * inferior.h: Include "process-stratum-target.h".
10573 (interrupt_target_1): Use bool.
10574 (struct inferior) <push_target, unpush_target, target_is_pushed,
10575 find_target_beneath, top_target, process_target, target_at,
10576 m_stack>: New.
10577 (discard_all_inferiors): Delete.
10578 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10579 (all_inferiors, all_non_exited_inferiors): Add
10580 process_stratum_target parameter.
10581 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10582 (target_last_proc_target): New global.
10583 (follow_fork_inferior): Push target on new inferior. Pass target
10584 to add_thread_silent. Call exec_on_vfork. Handle target's
10585 reference count.
10586 (follow_fork): Adjust get_last_target_status call. Also consider
10587 target.
10588 (follow_exec): Push target on new inferior.
10589 (struct execution_control_state) <target>: New field.
10590 (user_visible_resume_target): New.
10591 (do_target_resume): Call target_async.
10592 (resume_1): Set target's threads_executing flag. Consider resume
10593 target.
10594 (commit_resume_all_targets): New.
10595 (proceed): Also consider resume target. Skip threads of inferiors
10596 with no execution. Commit resumtion in all targets.
10597 (start_remote): Pass current inferior to wait_for_inferior.
10598 (infrun_thread_stop_requested): Consider target as well. Pass
10599 thread_info pointer to clear_inline_frame_state instead of ptid.
10600 (infrun_thread_thread_exit): Consider target as well.
10601 (random_pending_event_thread): New inferior parameter. Use it.
10602 (do_target_wait): Rename to ...
10603 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10604 down.
10605 (threads_are_resumed_pending_p, do_target_wait): New.
10606 (prepare_for_detach): Adjust calls.
10607 (wait_for_inferior): New inferior parameter. Handle it. Use
10608 do_target_wait_1 instead of do_target_wait.
10609 (fetch_inferior_event): Adjust. Switch to representative
10610 inferior. Pass target down.
10611 (set_last_target_status): Add process_stratum_target parameter.
10612 Save target in global.
10613 (get_last_target_status): Add process_stratum_target parameter and
10614 handle it.
10615 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10616 (context_switch): Check inferior_ptid == null_ptid before calling
10617 inferior_thread().
10618 (get_inferior_stop_soon): Pass down target.
10619 (wait_one): Rename to ...
10620 (poll_one_curr_target): ... this.
10621 (struct wait_one_event): New.
10622 (wait_one): New.
10623 (stop_all_threads): Adjust.
10624 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10625 event's target.
10626 (switch_back_to_stepped_thread): Also consider target.
10627 (print_stop_event): Update.
10628 (normal_stop): Update. Also consider the resume target.
10629 * infrun.h (wait_for_inferior): Remove declaration.
10630 (user_visible_resume_target): New declaration.
10631 (get_last_target_status, set_last_target_status): New
10632 process_stratum_target parameter.
10633 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10634 process_stratum_target parameter, and use it.
10635 (clear_inline_frame_state (thread_info*)): New.
10636 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10637 process_stratum_target parameter.
10638 (clear_inline_frame_state (thread_info*)): Declare.
10639 * linux-fork.c (delete_checkpoint_command): Pass target down to
10640 find_thread_ptid.
10641 (checkpoint_command): Adjust.
10642 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10643 instead of just tweaking inferior_ptid.
10644 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10645 (exit_lwp): Pass target down to find_thread_ptid.
10646 (attach_proc_task_lwp_callback): Pass target down to
10647 add_thread/set_running/set_executing.
10648 (linux_nat_target::attach): Pass target down to
10649 thread_change_ptid.
10650 (get_detach_signal): Pass target down to find_thread_ptid.
10651 Consider last target status's target.
10652 (linux_resume_one_lwp_throw, resume_lwp)
10653 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10654 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10655 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10656 (linux_nat_target::async_wait_fd): New.
10657 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10658 target down.
10659 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10660 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10661 * linux-thread-db.c (struct thread_db_info::process_target): New
10662 field.
10663 (add_thread_db_info): Save target.
10664 (get_thread_db_info): New process_stratum_target parameter. Also
10665 match target.
10666 (delete_thread_db_info): New process_stratum_target parameter.
10667 Also match target.
10668 (thread_from_lwp): Adjust to pass down target.
10669 (thread_db_notice_clone): Pass down target.
10670 (check_thread_db_callback): Pass down target.
10671 (try_thread_db_load_1): Always push the thread_db target.
10672 (try_thread_db_load, record_thread): Pass target down.
10673 (thread_db_target::detach): Pass target down. Always unpush the
10674 thread_db target.
10675 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10676 target down. Always unpush the thread_db target.
10677 (find_new_threads_callback, thread_db_find_new_threads_2)
10678 (thread_db_target::update_thread_list): Pass target down.
10679 (thread_db_target::pid_to_str): Pass current inferior down.
10680 (thread_db_target::get_thread_local_address): Pass target down.
10681 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10682 target down.
10683 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10684 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10685 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10686 (procfs_init_inferior): Rename to ...
10687 (procfs_target::procfs_init_inferior): ... this and adjust.
10688 (procfs_target::create_inferior, procfs_notice_thread)
10689 (procfs_do_thread_registers): Adjust.
10690 * ppc-fbsd-tdep.c: Include "inferior.h".
10691 (ppcfbsd_get_thread_local_address): Pass down target.
10692 * proc-service.c (ps_xfer_memory): Switch current inferior and
10693 program space as well.
10694 (get_ps_regcache): Pass target down.
10695 * process-stratum-target.c
10696 (process_stratum_target::thread_address_space)
10697 (process_stratum_target::thread_architecture): Pass target down.
10698 * process-stratum-target.h
10699 (process_stratum_target::threads_executing): New field.
10700 (as_process_stratum_target): New.
10701 * ravenscar-thread.c
10702 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10703 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10704 down.
10705 * record-btrace.c (record_btrace_target::info_record): Adjust.
10706 (record_btrace_target::record_method)
10707 (record_btrace_target::record_is_replaying)
10708 (record_btrace_target::fetch_registers)
10709 (get_thread_current_frame_id, record_btrace_target::resume)
10710 (record_btrace_target::wait, record_btrace_target::stop): Pass
10711 target down.
10712 * record-full.c (record_full_wait_1): Switch to event thread.
10713 Pass target down.
10714 * regcache.c (regcache::regcache)
10715 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10716 process_stratum_target parameter and handle it.
10717 (current_thread_target): New global.
10718 (get_thread_regcache): Add process_stratum_target parameter and
10719 handle it. Switch inferior before calling target method.
10720 (get_thread_regcache): Pass target down.
10721 (get_thread_regcache_for_ptid): Pass target down.
10722 (registers_changed_ptid): Add process_stratum_target parameter and
10723 handle it.
10724 (registers_changed_thread, registers_changed): Pass target down.
10725 (test_get_thread_arch_aspace_regcache): New.
10726 (current_regcache_test): Define a couple local test_target_ops
10727 instances and use them for testing.
10728 (readwrite_regcache): Pass process_stratum_target parameter.
10729 (cooked_read_test, cooked_write_test): Pass mock_target down.
10730 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10731 (get_thread_arch_aspace_regcache): Add process_stratum_target
10732 parameter.
10733 (regcache::target): New method.
10734 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10735 (regcache::registers_changed_ptid): Add process_stratum_target
10736 parameter.
10737 (regcache::m_target): New field.
10738 (registers_changed_ptid): Add process_stratum_target parameter.
10739 * remote.c (remote_state::supports_vCont_probed): New field.
10740 (remote_target::async_wait_fd): New method.
10741 (remote_unpush_and_throw): Add remote_target parameter.
10742 (get_current_remote_target): Adjust.
10743 (remote_target::remote_add_inferior): Push target.
10744 (remote_target::remote_add_thread)
10745 (remote_target::remote_notice_new_inferior)
10746 (get_remote_thread_info): Pass target down.
10747 (remote_target::update_thread_list): Skip threads of inferiors
10748 bound to other targets. (remote_target::close): Don't discard
10749 inferiors. (remote_target::add_current_inferior_and_thread)
10750 (remote_target::process_initial_stop_replies)
10751 (remote_target::start_remote)
10752 (remote_target::remote_serial_quit_handler): Pass down target.
10753 (remote_target::remote_unpush_target): New remote_target
10754 parameter. Unpush the target from all inferiors.
10755 (remote_target::remote_unpush_and_throw): New remote_target
10756 parameter. Pass it down.
10757 (remote_target::open_1): Check whether the current inferior has
10758 execution instead of checking whether any inferior is live. Pass
10759 target down.
10760 (remote_target::remote_detach_1): Pass down target. Use
10761 remote_unpush_target.
10762 (extended_remote_target::attach): Pass down target.
10763 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10764 (remote_target::append_resumption): Pass down target.
10765 (remote_target::append_pending_thread_resumptions)
10766 (remote_target::remote_resume_with_hc, remote_target::resume)
10767 (remote_target::commit_resume): Pass down target.
10768 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10769 (remote_target::interrupt_query)
10770 (remote_target::remove_new_fork_children)
10771 (remote_target::check_pending_events_prevent_wildcard_vcont)
10772 (remote_target::remote_parse_stop_reply)
10773 (remote_target::process_stop_reply): Pass down target.
10774 (first_remote_resumed_thread): New remote_target parameter. Pass
10775 it down.
10776 (remote_target::wait_as): Pass down target.
10777 (unpush_and_perror): New remote_target parameter. Pass it down.
10778 (remote_target::readchar, remote_target::remote_serial_write)
10779 (remote_target::getpkt_or_notif_sane_1)
10780 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10781 down target.
10782 (remote_target::mourn_inferior): Pass down target. Use
10783 remote_unpush_target.
10784 (remote_target::core_of_thread)
10785 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10786 (remote_target::pid_to_exec_file)
10787 (remote_target::thread_handle_to_thread_info): Pass down target.
10788 (remote_target::async_wait_fd): New.
10789 * riscv-fbsd-tdep.c: Include "inferior.h".
10790 (riscv_fbsd_get_thread_local_address): Pass down target.
10791 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10792 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10793 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10794 Adjust.
10795 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10796 * solib-svr4.c (enable_break): Pass down target.
10797 * spu-multiarch.c (parse_spufs_run): Pass down target.
10798 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10799 * target-delegates.c: Regenerate.
10800 * target.c (g_target_stack): Delete.
10801 (current_top_target): Return the current inferior's top target.
10802 (target_has_execution_1): Refer to the passed-in inferior's top
10803 target.
10804 (target_supports_terminal_ours): Check whether the initial
10805 inferior was already created.
10806 (decref_target): New.
10807 (target_stack::push): Incref/decref the target.
10808 (push_target, push_target, unpush_target): Adjust.
10809 (target_stack::unpush): Defref target.
10810 (target_is_pushed): Return bool. Adjust to refer to the current
10811 inferior's target stack.
10812 (dispose_inferior): Delete, and inline parts ...
10813 (target_preopen): ... here. Only dispose of the current inferior.
10814 (target_detach): Hold strong target reference while detaching.
10815 Pass target down.
10816 (target_thread_name): Add assertion.
10817 (target_resume): Pass down target.
10818 (target_ops::beneath, find_target_at): Adjust to refer to the
10819 current inferior's target stack.
10820 (get_dummy_target): New.
10821 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10822 has a thread running.
10823 (initialize_targets): Rename to ...
10824 (_initialize_target): ... this.
10825 * target.h: Include "gdbsupport/refcounted-object.h".
10826 (struct target_ops): Inherit refcounted_object.
10827 (target_ops::shortname, target_ops::longname): Make const.
10828 (target_ops::async_wait_fd): New method.
10829 (decref_target): Declare.
10830 (struct target_ops_ref_policy): New.
10831 (target_ops_ref): New typedef.
10832 (get_dummy_target): Declare function.
10833 (target_is_pushed): Return bool.
10834 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10835 (all_matching_threads_iterator::all_matching_threads_iterator):
10836 Handle filter target.
10837 * thread-iter.h (struct all_matching_threads_iterator, struct
10838 all_matching_threads_range, class all_non_exited_threads_range):
10839 Filter by target too. Remove explicit.
10840 * thread.c (threads_executing): Delete.
10841 (inferior_thread): Pass down current inferior.
10842 (clear_thread_inferior_resources): Pass down thread pointer
10843 instead of ptid_t.
10844 (add_thread_silent, add_thread_with_info, add_thread): Add
10845 process_stratum_target parameter. Use it for thread and inferior
10846 searches.
10847 (is_current_thread): New.
10848 (thread_info::deletable): Use it.
10849 (find_thread_ptid, thread_count, in_thread_list)
10850 (thread_change_ptid, set_resumed, set_running): New
10851 process_stratum_target parameter. Pass it down.
10852 (set_executing): New process_stratum_target parameter. Pass it
10853 down. Adjust reference to 'threads_executing'.
10854 (threads_are_executing): New process_stratum_target parameter.
10855 Adjust reference to 'threads_executing'.
10856 (set_stop_requested, finish_thread_state): New
10857 process_stratum_target parameter. Pass it down.
10858 (switch_to_thread): Also match inferior.
10859 (switch_to_thread): New process_stratum_target parameter. Pass it
10860 down.
10861 (update_threads_executing): Reimplement.
10862 * top.c (quit_force): Pop targets from all inferior.
10863 (gdb_init): Don't call initialize_targets.
10864 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10865 Declare.
10866 (windows_add_thread, windows_delete_thread): Adjust.
10867 (get_windows_debug_event): Rename to ...
10868 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10869 * tracefile-tfile.c (tfile_target_open): Pass down target.
10870 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10871 Forward declare.
10872 (switch_to_thread): Add process_stratum_target parameter.
10873 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10874 parameter. Use it.
10875 (mi_on_resume): Pass target down.
10876 * nat/fork-inferior.c (startup_inferior): Add
10877 process_stratum_target parameter. Pass it down.
10878 * nat/fork-inferior.h (startup_inferior): Add
10879 process_stratum_target parameter.
10880 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10881
10882 2020-01-10 Pedro Alves <palves@redhat.com>
10883
10884 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10885 directly. Instead find the first thread in the thread list and
10886 use switch_to_thread.
10887
10888 2020-01-10 Pedro Alves <palves@redhat.com>
10889
10890 * remote.c (remote_target::remote_add_inferior): Don't bind a
10891 process to the current inferior if the current inferior is already
10892 bound to a process.
10893
10894 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10895 Pedro Alves <palves@redhat.com>
10896
10897 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10898 If no process is specified, return null_ptid instead of
10899 inferior_ptid.
10900 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10901 TARGET_WAITKIND_SIGNALLED with no pid.
10902
10903 2020-01-10 Pedro Alves <palves@redhat.com>
10904
10905 * remote.c (first_remote_resumed_thread): New.
10906 (remote_target::wait_as): Use it as default event_ptid instead of
10907 inferior_ptid.
10908
10909 2020-01-10 Pedro Alves <palves@redhat.com>
10910
10911 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10912
10913 2020-01-10 Pedro Alves <palves@redhat.com>
10914
10915 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10916 not -1.
10917
10918 2020-01-10 Pedro Alves <palves@redhat.com>
10919
10920 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10921 ptid to get_last_target_status.
10922 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10923 ptid to get_last_target_status.
10924 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10925 get_last_target_status.
10926 (info_program_command): Don't pass a target_waitstatus to
10927 get_last_target_status.
10928 * infrun.c (init_wait_for_inferior): Use
10929 nullify_last_target_wait_ptid.
10930 (get_last_target_status): Handle nullptr arguments.
10931 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10932 (print_stop_event): Don't pass a ptid to get_last_target_status.
10933 (normal_stop): Don't pass a ptid to get_last_target_status.
10934 * infrun.h (get_last_target_status, set_last_target_status): Move
10935 comments here and update.
10936 (nullify_last_target_wait_ptid): Declare.
10937 * linux-fork.c (fork_load_infrun_state): Remove local extern
10938 declaration of nullify_last_target_wait_ptid.
10939 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10940 to get_last_target_status.
10941
10942 2020-01-10 Pedro Alves <palves@redhat.com>
10943
10944 * gdbthread.h (scoped_restore_current_thread)
10945 <dont_restore, restore, m_dont_restore>: Declare.
10946 * thread.c (thread_alive): Add assertion. Return bool.
10947 (switch_to_thread_if_alive): New.
10948 (prune_threads): Switch inferior/thread.
10949 (print_thread_info_1): Switch thread before calling target methods.
10950 (scoped_restore_current_thread::restore): New, factored out from
10951 ...
10952 (scoped_restore_current_thread::~scoped_restore_current_thread):
10953 ... this.
10954 (scoped_restore_current_thread::scoped_restore_current_thread):
10955 Add assertion.
10956 (thread_apply_all_command, thread_select): Use
10957 switch_to_thread_if_alive.
10958 * infrun.c (proceed, restart_threads, handle_signal_stop)
10959 (switch_back_to_stepped_thread): Switch current thread before
10960 calling target methods.
10961
10962 2020-01-10 Pedro Alves <palves@redhat.com>
10963
10964 * inferior.c (switch_to_inferior_no_thread): New function,
10965 factored out from ...
10966 (inferior_command): ... here.
10967 * inferior.h (switch_to_inferior_no_thread): Declare.
10968 * mi/mi-main.c (run_one_inferior): Use
10969 switch_to_inferior_no_thread.
10970
10971 2020-01-10 Pedro Alves <palves@redhat.com>
10972
10973 * infcmd.c (kill_command): Remove dead code.
10974
10975 2020-01-10 Pedro Alves <palves@redhat.com>
10976
10977 * remote.c (remote_target::mourn_inferior): No longer check
10978 whether the target is running.
10979
10980 2020-01-10 Pedro Alves <palves@redhat.com>
10981
10982 * corelow.c (core_target::has_execution): Change parameter type to
10983 inferior pointer.
10984 * inferior.c (number_of_live_inferiors): Use
10985 inferior::has_execution instead of target_has_execution_1.
10986 * inferior.h (inferior::has_execution): New.
10987 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10988 inferior::has_execution instead of target_has_execution_1.
10989 * process-stratum-target.c
10990 (process_stratum_target::has_execution): Change parameter type to
10991 inferior pointer. Check the inferior's PID instead of
10992 inferior_ptid.
10993 * process-stratum-target.h
10994 (process_stratum_target::has_execution): Change parameter type to
10995 inferior pointer.
10996 * record-full.c (record_full_core_target::has_execution): Change
10997 parameter type to inferior pointer.
10998 * target.c (target_has_execution_1): Change parameter type to
10999 inferior pointer.
11000 (target_has_execution_current): Adjust.
11001 * target.h (target_ops::has_execution): Change parameter type to
11002 inferior pointer.
11003 (target_has_execution_1): Change parameter type to inferior
11004 pointer. Change return type to bool.
11005 * tracefile.h (tracefile_target::has_execution): Change parameter
11006 type to inferior pointer.
11007
11008 2020-01-10 Pedro Alves <palves@redhat.com>
11009
11010 * exceptions.c (print_flush): Remove current_top_target() check.
11011
11012 2020-01-10 Pedro Alves <palves@redhat.com>
11013
11014 * remote.c (show_remote_exec_file): Show the current inferior's
11015 exec-file instead of the command variable's value.
11016
11017 2020-01-10 Pedro Alves <palves@redhat.com>
11018
11019 * record-full.c (record_full_resume_ptid): New global.
11020 (record_full_target::resume): Set it.
11021 (record_full_wait_1): Use record_full_resume_ptid instead of
11022 inferior_ptid.
11023
11024 2020-01-10 Pedro Alves <palves@redhat.com>
11025
11026 * gdbthread.h (scoped_restore_current_thread)
11027 <dont_restore, restore, m_dont_restore>: Declare.
11028 * thread.c (thread_alive): Add assertion. Return bool.
11029 (switch_to_thread_if_alive): New.
11030 (prune_threads): Switch inferior/thread.
11031 (print_thread_info_1): Switch thread before calling target methods.
11032 (scoped_restore_current_thread::restore): New, factored out from
11033 ...
11034 (scoped_restore_current_thread::~scoped_restore_current_thread):
11035 ... this.
11036 (scoped_restore_current_thread::scoped_restore_current_thread):
11037 Add assertion.
11038 (thread_apply_all_command, thread_select): Use
11039 switch_to_thread_if_alive.
11040
11041 2020-01-10 George Barrett <bob@bob131.so>
11042
11043 * stap-probe.c (stap_modify_semaphore): Don't check for null
11044 semaphores.
11045 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11046 for null semaphores.
11047
11048 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11051 all source windows, and maintain horizontal scroll status while
11052 doing so.
11053
11054 2020-01-09 Tom Tromey <tom@tromey.com>
11055
11056 PR tui/18932:
11057 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11058 update_source_window, not print_source_lines.
11059
11060 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11061
11062 * tui/tui.c (tui_enable): Register tui hooks after calling
11063 tui_display_main.
11064
11065 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11066
11067 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11068
11069 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11070
11071 * thread.c (print_thread_info_1): Fix indentation.
11072
11073 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11074
11075 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11076 unique_xmalloc_ptr outside the if to always free the demangled name.
11077
11078 2020-01-08 Tom Tromey <tromey@adacore.com>
11079
11080 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11081 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11082 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11083 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11084 Remove.
11085 (section_offsets): New typedef.
11086 * symtab.c (fixup_section, get_msymbol_address): Update.
11087 * symmisc.c (dump_msymbols): Update.
11088 * symfile.h (relative_addr_info_to_section_offsets)
11089 (symfile_map_offsets_to_segments): Update.
11090 * symfile.c (build_section_addr_info_from_objfile)
11091 (init_objfile_sect_indices): Update.
11092 (struct place_section_arg): Change type of "offsets".
11093 (place_section): Update.
11094 (relative_addr_info_to_section_offsets): Change type of
11095 "section_offsets". Remove "num_sections" parameter.
11096 (default_symfile_offsets, syms_from_objfile_1)
11097 (set_objfile_default_section_offset): Update.
11098 (reread_symbols): No need to preserve section offsets by hand.
11099 (symfile_map_offsets_to_segments): Change type of "offsets".
11100 * stap-probe.c (relocate_address): Update.
11101 * stabsread.h (process_one_symbol): Update.
11102 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11103 (solib_target_relocate_section_addresses): Update.
11104 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11105 Update.
11106 * solib-frv.c (frv_relocate_main_executable): Update.
11107 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11108 * solib-aix.c (solib_aix_get_section_offsets): Change return
11109 type.
11110 (solib_aix_solib_create_inferior_hook): Update.
11111 * remote.c (remote_target::get_offsets): Update.
11112 * psymtab.c (find_pc_sect_psymtab): Update.
11113 * psympriv.h (struct partial_symbol) <address, text_low,
11114 text_high>: Update.
11115 * objfiles.h (obj_section_offset): Update.
11116 (struct objfile) <section_offsets>: Change type.
11117 <num_sections>: Remove.
11118 (objfile_relocate): Update.
11119 * objfiles.c (entry_point_address_query): Update
11120 (relocate_one_symbol): Change type of "section_offsets".
11121 (objfile_relocate1, objfile_relocate1): Change type of
11122 "new_offsets".
11123 (objfile_rebase1): Update.
11124 * mipsread.c (mipscoff_symfile_read): Update.
11125 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11126 parameter.
11127 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11128 (parse_external, psymtab_to_symtab_1): Update.
11129 * machoread.c (macho_symfile_offsets): Update.
11130 * ia64-tdep.c (ia64_find_unwind_table): Update.
11131 * hppa-tdep.c (read_unwind_info): Update.
11132 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11133 * dwarf2read.c (create_addrmap_from_index)
11134 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11135 (process_psymtab_comp_unit_reader, add_partial_symbol)
11136 (add_partial_subprogram, process_full_comp_unit)
11137 (read_file_scope, read_func_scope, read_lexical_block_scope)
11138 (read_call_site_scope, dwarf2_rnglists_process)
11139 (dwarf2_ranges_process, dwarf2_ranges_read)
11140 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11141 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11142 Update.
11143 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11144 Update.
11145 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11146 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11147 (process_one_symbol): Change type of "section_offsets".
11148 * ctfread.c (get_objfile_text_range): Update.
11149 * coffread.c (coff_symtab_read, enter_linenos)
11150 (process_coff_symbol): Update.
11151 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11152 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11153
11154 2020-01-08 Tom Tromey <tromey@adacore.com>
11155
11156 * dwarf2read.c (parse_macro_definition): Use std::string.
11157 (parse_macro_definition): Likewise.
11158
11159 2020-01-08 Tom Tromey <tromey@adacore.com>
11160
11161 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11162 (ATTR_ALLOC_CHUNK): Remove.
11163
11164 2020-01-08 Tom Tromey <tromey@adacore.com>
11165
11166 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11167
11168 2020-01-08 Tom Tromey <tromey@adacore.com>
11169
11170 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11171 (dwarf2_compute_name, open_dwo_file): Likewise.
11172 (process_enumeration_scope): Use std::vector.
11173 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11174 (partial_die_info::fixup, dwarf2_start_subfile)
11175 (guess_full_die_structure_name, dwarf2_name): Likewise.
11176 (determine_prefix): Update.
11177 (guess_full_die_structure_name): Make return type const.
11178 (partial_die_full_name): Return unique_xmalloc_ptr.
11179 (DW_FIELD_ALLOC_CHUNK): Remove.
11180
11181 2020-01-07 Tom Tromey <tromey@adacore.com>
11182
11183 PR build/24937:
11184 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11185
11186 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11187
11188 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11189
11190 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11191
11192 * stack.c (print_frame_info): Move disassemble_next_line code
11193 inside source_print block.
11194
11195 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11196
11197 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11198 gdb/signals.h, as we are now using native signal symbols.
11199
11200 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11201
11202 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11203 overflow by an early check of content vs threshold.
11204 * tui/tui-source.c (tui_source_window::line_is_displayed):
11205 Likewise.
11206
11207 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11208
11209 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11210
11211 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11212
11213 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11214 export table if no section contains it's RVA.
11215
11216 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11217
11218 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11219
11220 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11221
11222 * source.c (print_source_lines_base): Set last_line_listed.
11223
11224 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11225
11226 * tui/tui-disasm.c: Remove trailing spaces.
11227
11228 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11229 Pedro Alves <palves@redhat.com>
11230
11231 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11232 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11233 (windows_gdb_signal_to_target): New function, uses the above
11234 enumeration to convert GDB internal signal codes to equivalent
11235 Windows codes.
11236 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11237 * windows-nat.c: Include "gdb_wait.h".
11238 (get_windows_debug_event): Extract the fatal exception from the
11239 exit status and convert to the equivalent Posix signal number.
11240 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11241 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11242 * gdbsupport/gdb_wait.c: New file, implements
11243 windows_status_to_termsig.
11244 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11245 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11246
11247 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11248
11249 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11250 show_layout.
11251
11252 2020-01-05 Luis Machado <luis.machado@linaro.org>
11253
11254 * aarch64-linux-nat.c
11255 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11256 and bfd_mach_aarch64.
11257
11258 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11259
11260 * ui-file.c (stdio_file::can_emit_style_escape)
11261 (tee_file::can_emit_style_escape): Ensure style is used also on
11262 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11263 to gdb_stdout.
11264 * main.c (set_gdb_data_directory): Use file style to output the
11265 warning that the given pathname is not a directory.
11266 * top.c (show_history_filename, gdb_safe_append_history)
11267 (show_gdb_datadir): Use file style.
11268
11269 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11270
11271 * solib-target.c (struct lm_info_target):
11272 Change offsets to be a unique_xmalloc_ptr.
11273 (solib_target_relocate_section_addresses): Update.
11274
11275 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11276
11277 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11278
11279 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11280
11281 * MAINTAINERS (Write After Approval): Add myself.
11282
11283 2020-01-02 Luis Machado <luis.machado@linaro.org>
11284
11285 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11286 Cell BE architecture.
11287 * target.h (struct target_ops) <thread_architecture>: Likewise.
11288
11289 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11290
11291 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11292
11293 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11294
11295 * MAINTAINERS (Write After Approval): Add myself.
11296
11297 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11298
11299 * gdbarch.sh: Update copyright year range of generated files.
11300
11301 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11302
11303 Update copyright year range in all GDB files.
11304
11305 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11306
11307 * copyright.py: Convert to Python 3.
11308
11309 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11310
11311 * copyright.py: Adapt after move of gnulib directory from gdb
11312 directory to toplevel directory.
11313
11314 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11315
11316 * copyright.py (main): Exit if run from the wrong directory.
11317
11318 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11319
11320 * top.c (print_gdb_version): Change copyright year to 2020.
11321
11322 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11323
11324 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11325
11326 For older changes see ChangeLog-2019.
11327 \f
11328 Local Variables:
11329 mode: change-log
11330 left-margin: 8
11331 fill-column: 74
11332 version-control: never
11333 coding: utf-8
11334 End: