]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Revert "x86: Don't display eiz with no scale"
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ed810cc7
JB
12020-07-20 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
8 method.
9
ae5369e7
LC
102020-07-20 Ludovic Courtès <ludo@gnu.org>
11
12 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
13 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
14 which are deprecated in Guile 3.0.
15 * configure.ac (try_guile_versions): Add "guile-3.0".
16 * configure (try_guile_versions): Regenerate.
17 * NEWS: Update entry.
18
68cf161c
LC
192020-07-20 Ludovic Courtès <ludo@gnu.org>
20 Doug Evans <dje@google.com>
21
22 PR gdb/21104
23 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
24 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
25 USING_GUILE_BEFORE_2_2.
26 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
27 Change type to 'scm_t_port_type *'.
28 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
29 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
30 parameter and honor it. Update callers.
31 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
32 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
33 functions.
34 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
35 USING_GUILE_BEFORE_2_2.
36 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
37 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
38 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
39 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
40 and 'SCM_PORT_TYPE'.
41 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
42 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
43 (gdbscm_memory_port_read, gdbscm_memory_port_write)
44 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
45 [!USING_GUILE_BEFORE_2_2]: New functions.
46 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
47 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
48 'gdbscm_memory_port_read'.
49 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
50 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
51 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
52 function.
53 (ioscm_init_memory_port): Remove.
54 (ioscm_init_memory_port_stream): New function
55 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
56 function.
57 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
58 Return scm_from_uint (0).
59 (gdbscm_set_memory_port_read_buffer_size_x)
60 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
61 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
62 Return scm_from_uint (0).
63 (gdbscm_set_memory_port_write_buffer_size_x)
64 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
65 * configure.ac (try_guile_versions): Add "guile-2.2".
66 * configure: Regenerate.
67 * NEWS: Add entry.
68
aee91db3
TT
692020-07-18 Tom Tromey <tom@tromey.com>
70
71 * linux-nat.c (linux_multi_process): Remove.
72 (linux_nat_target::supports_multi_process): Return true.
73
0e267416
AB
742020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * arch/riscv.c (riscv_tdesc_cache): Change map type.
77 (riscv_lookup_target_description): Return pointer out of
78 unique_ptr.
79 * target-descriptions.c (allocate_target_description): Add
80 comment.
81 (target_desc_deleter::operator()): Likewise.
82 * target-descriptions.h (struct target_desc_deleter): Moved to
83 gdbsupport/tdesc.h.
84 (target_desc_up): Likewise.
85
f80c8ec4
TT
862020-07-17 Tom Tromey <tromey@adacore.com>
87
88 * linux-nat.c (linux_nat_target::supports_non_stop)
89 (linux_nat_target::always_non_stop_p): Use "true".
90 (linux_nat_target::supports_disable_randomization): Use "true" and
91 "false".
92
d0ce17d8
CT
932020-07-16 Caroline Tice <cmtice@google.com>
94
95 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
96 (RNGLIST_HEADER_SIZE64): New constant definition.
97 (struct dwop_section_names): Add rnglists_dwo.
98 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
99 (struct loclist_header): Rename to 'loclists_rnglists_header'.
100 (struct dwo_sections): Add rnglists field.
101 (read_attribut_reprocess): Add tag parameter.
102 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
103 (cu_debug_rnglists_section): New function (decl & definition).
104 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
105 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
106 die whose range is being checked; get rnglist section from
107 cu_debug_rnglists_section, to get from either objfile or dwo file as
108 appropriate. Add cases for DW_RLE_base_addressx,
109 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
110 the base address to DW_RLE_offset_pairs (not to all ranges), moving
111 test inside if-condition and updating complaint message.
112 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
113 dwarf2_rnglists_process.
114 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
115 dwarf2_ranges_process.
116 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
117 need_ranges_base and update comment appropriately. Also pass die tag
118 to dwarf2_ranges_read.
119 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
120 need_ranges_base and update comment appropriately. Also pass die tag
121 to dwarf2_ranges_process.
122 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
123 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
124 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
125 need_ranges_base and update comment appropriately. Also pass die tag
126 to read_attribute_reprocess and dwarf2_ranges_read.
127 (read_loclist_header): Rename function to read_loclists_rnglists_header,
128 and update function comment appropriately.
129 (read_loclist_index): Call read_loclists_rnglists_header instead of
130 read_loclist_header.
131 (read_rnglist_index): New function.
132 (read_attribute_reprocess): Add tag parameter. Add code for
133 DW_FORM_rnglistx, passing tag to read_rnglist_index.
134 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
135
3dcc261c
AB
1362020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
139 being resolved.
140
ccb9eba6
AB
1412020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * arch-utils.c (show_architecture): Update formatting of messages.
144
cf88be68
SM
1452020-07-12 Simon Marchi <simon.marchi@efficios.com>
146
147 * gdbtypes.h (struct type) <bounds>: Handle array and string
148 types.
149 * ada-lang.c (assign_aggregate): Use type::bounds on
150 array/string type.
151 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
152 * c-varobj.c (c_number_of_children): Likewise.
153 (c_describe_child): Likewise.
154 * eval.c (evaluate_subexp_for_sizeof): Likewise.
155 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
156 (f_type_print_base): Likewise.
157 * f-valprint.c (f77_array_offset_tbl): Likewise.
158 (f77_get_upperbound): Likewise.
159 (f77_print_array_1): Likewise.
160 * guile/scm-type.c (gdbscm_type_range): Likewise.
161 * m2-typeprint.c (m2_array): Likewise.
162 (m2_is_long_set_of_type): Likewise.
163 * m2-valprint.c (get_long_set_bounds): Likewise.
164 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
165 * python/py-type.c (typy_range): Likewise.
166 * rust-lang.c (rust_internal_print_type): Likewise.
167 * type-stack.c (type_stack::follow_types): Likewise.
168 * valarith.c (value_subscripted_rvalue): Likewise.
169 * valops.c (value_cast): Likewise.
170
509971ae
SM
1712020-07-12 Simon Marchi <simon.marchi@efficios.com>
172
173 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
174 callers to use the equivalent accessor methods.
175
107406b7
SM
1762020-07-12 Simon Marchi <simon.marchi@efficios.com>
177
178 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
179 (struct type) <bit_stride>: New method.
180 (TYPE_BIT_STRIDE): Remove.
181 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
182
bb789949
SM
1832020-07-12 Simon Marchi <simon.marchi@efficios.com>
184
185 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
186 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
187 callers to use the equivalent accessor methods instead.
188
39498edb
SM
1892020-07-12 Simon Marchi <simon.marchi@efficios.com>
190
191 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
192 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
193 callers to use the equivalent accessor methods instead.
194
3b606f38
SM
1952020-07-12 Simon Marchi <simon.marchi@efficios.com>
196
197 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
198 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
199 to use dynamic_prop::kind.
200
064d9cb9
SM
2012020-07-12 Simon Marchi <simon.marchi@efficios.com>
202
203 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
204 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
205 to get the bound property's kind and check against
206 PROP_UNDEFINED.
207
5537ddd0
SM
2082020-07-12 Simon Marchi <simon.marchi@efficios.com>
209
210 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
211 all callers to use type::range_bounds followed by
212 dynamic_prop::{low,high}.
213
8c2e4e06
SM
2142020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
217 const_val, set_const_val, baton, set_locexpr, set_loclist,
218 set_addr_offset, variant_parts, set_variant_parts,
219 original_type, set_original_type>: New methods.
220 <kind>: Rename to...
221 <m_kind>: ... this. Update all users to use the new methods
222 instead.
223 <data>: Rename to...
224 <m_data>: ... this. Update all users to use the new methods
225 instead.
226
7c6f2712
SM
2272020-07-12 Simon Marchi <simon.marchi@efficios.com>
228
229 * gdbtypes.c (get_discrete_bounds): Return failure if
230 the range type's bounds are not both defined and constant
231 values.
232 (get_array_bounds): Update comment. Remove undefined bound check.
233
599088e3
SM
2342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
237 the type::bounds method directly.
238
c4dfcb36
SM
2392020-07-12 Simon Marchi <simon.marchi@efficios.com>
240
241 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
242 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
243 are used to set the range type's bounds to use set_bounds.
244
0a278aa7
PW
2452020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
246
247 * exec.c (_initialize_exec): Update exec-file-mismatch help.
248
cce20f10
PA
2492020-07-10 Pedro Alves <pedro@palves.net>
250
251 * gdbthread.h (inferior_ref): Define.
252 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
253 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
254 * thread.c
255 (scoped_restore_current_thread::restore):
256 Adjust to gdb::ref_ptr.
257 (scoped_restore_current_thread::~scoped_restore_current_thread):
258 Remove manual decref handling.
259 (scoped_restore_current_thread::scoped_restore_current_thread):
260 Adjust to use
261 inferior_ref::new_reference/thread_info_ref::new_reference.
262 Incref the thread before calling get_frame_id instead of after.
263 Let TARGET_CLOSE_ERROR propagate.
264
6d7aa592
PA
2652020-07-10 Pedro Alves <pedro@palves.net>
266
267 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
268 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
269 NOT_AVAILABLE_ERROR.
270 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
271 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
272
b3e3a4c1
SM
2732020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
274 Pedro Alves <pedro@palves.net>
275
276 PR gdb/26199
277 * infrun.c (threads_are_resumed_pending_p): Delete.
278 (do_target_wait): Remove threads_are_executing and
279 threads_are_resumed_pending_p checks from the inferior_matches
280 lambda. Update comments.
281
d6cc5d98
PA
2822020-07-10 Pedro Alves <pedro@palves.net>
283
284 PR gdb/26199
285 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
286 executing threads.
287
7d3badc6
PA
2882020-07-10 Pedro Alves <pedro@palves.net>
289
290 PR gdb/26199
291 * infrun.c (handle_no_resumed): Handle multiple targets.
292
42bd97a6
PA
2932020-07-10 Pedro Alves <pedro@palves.net>
294
295 PR gdb/26199
296 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
297 target_is_async_p.
298
43667cc6
PA
2992020-07-10 Pedro Alves <pedro@palves.net>
300
301 PR gdb/26199
302 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
303 threads, not all threads.
304
96118d11
PA
3052020-07-10 Pedro Alves <pedro@palves.net>
306
307 PR gdb/26199
308 * remote.c (remote_target::open_1): Pass remote target pointer as
309 data to create_async_event_handler.
310 (remote_async_inferior_event_handler): Mark async event handler
311 before returning if the remote target still has either pending
312 events or unacknowledged notifications.
313
54904d81
JB
3142020-07-10 John Baldwin <jhb@FreeBSD.org>
315
316 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
317 declaration.
318 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
319 function.
320
f37e5866
JB
3212020-07-09 John Baldwin <jhb@FreeBSD.org>
322
323 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
324 inferior_ptid.
325
fc238d4a
JB
3262020-07-09 John Baldwin <jhb@FreeBSD.org>
327
328 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
329 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
330 AT_FREEBSD_PS_STRINGS.
331
6e2469ff
HD
3322020-07-08 Hannes Domani <ssbssa@yahoo.de>
333
334 * auto-load.c (auto_load_objfile_script_1): Convert drive part
335 of debugfile path on Windows.
336
d1076c41
JB
3372020-07-08 John Baldwin <jhb@FreeBSD.org>
338
339 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
340 argument to 'data'.
341
15f3b077
TT
3422020-07-08 Tom Tromey <tromey@adacore.com>
343
344 * ada-lang.c (ada_exception_message_1): Use read_memory.
345
9fc501fd
AB
3462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 PR python/22748
349 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
350 special handling for inline frames.
351 * findvar.c (value_of_register_lazy): Skip inline frames when
352 creating lazy register values.
353 * frame.c (frame_id_computed_p): Delete definition.
354 * frame.h (frame_id_computed_p): Delete declaration.
355
64cb3757
AB
3562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * NEWS: Mention additions to Python API.
359 * python/py-arch.c (archpy_register_groups): New function.
360 (arch_object_methods): Add 'register_groups' method.
361 * python/py-registers.c (reggroup_iterator_object): New struct.
362 (reggroup_object): New struct.
363 (gdbpy_new_reggroup): New function.
364 (gdbpy_reggroup_to_string): New function.
365 (gdbpy_reggroup_name): New function.
366 (gdbpy_reggroup_iter): New function.
367 (gdbpy_reggroup_iter_next): New function.
368 (gdbpy_new_reggroup_iterator): New function
369 (gdbpy_initialize_registers): Register new types.
370 (reggroup_iterator_object_type): Define new Python type.
371 (gdbpy_reggroup_getset): New static global.
372 (reggroup_object_type): Define new Python type.
373 * python/python-internal.h
374
0f767f94
AB
3752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
376
377 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
378 * python/py-arch.c (archpy_registers): New function.
379 (arch_object_methods): Add 'registers' method.
380 * python/py-registers.c: New file.
381 * python/python-internal.h
382 (gdbpy_new_register_descriptor_iterator): Declare.
383 (gdbpy_initialize_registers): Declare.
384 * python/python.c (do_start_initialization): Call
385 gdbpy_initialize_registers.
386 * NEWS: Mention additions to the Python API.
387
87dbc774
AB
3882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * NEWS: Mention new Python API method.
391 * python/py-unwind.c (pending_framepy_architecture): New function.
392 (pending_frame_object_methods): Add architecture method.
393
3bc98c0c
AB
3942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * gdbarch.c: Regenerate.
397 * gdbarch.h: Regenerate.
398 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
399 (gdbarch_data): Use internal_error for the case where
400 deprecated_set_gdbarch_data was originally needed.
401 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
402 and use passed in obstack.
403 (libunwind_frame_set_descr): Should no longer get back NULL from
404 gdbarch_data.
405 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
406 type.
407 * user-regs.c (user_regs_init): Update parameters, and use passed
408 in obstack.
409 (user_reg_add): Should no longer get back NULL from gdbarch_data.
410 (_initialize_user_regs): Register as a pre-init gdbarch data type.
411
d8cc8af6
TV
4122020-07-06 Tom de Vries <tdevries@suse.de>
413
414 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
415 End-Of-Sequence in lte_is_less_than.
416 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
417 "gdb: Don't reorder line table entries too much when sorting".
418
947f7597
TV
4192020-07-06 Tom de Vries <tdevries@suse.de>
420
421 PR tui/26205
422 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
423
1e7c1b22
TV
4242020-07-05 Tom de Vries <tdevries@suse.de>
425
426 PR build/26187
427 * inferior.h (struct infcall_suspend_state_deleter): If available, use
428 std::uncaught_exceptions instead of deprecated
429 std::uncaught_exception.
430
a36158ec
SM
4312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
432
433 * macroexp.h (macro_stringify): Return
434 gdb::unique_xmalloc_ptr<char>.
435 * macroexp.c (macro_stringify): Likewise.
436 * macrotab.c (fixup_definition): Update.
437
14d960c8
SM
4382020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
439
440 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
441 (lex_one_token): Update.
442 * macroexp.c (struct macro_buffer) <release>: Return
443 gdb::unique_xmalloc_ptr<char>.
444 (macro_stringify): Update.
445 (macro_expand): Update.
446 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
447 * macroexp.h (macro_expand_next): Likewise.
448
211d5b1c
SM
4492020-07-02 Simon Marchi <simon.marchi@efficios.com>
450
451 * macroexp.h (macro_lookup_ftype): Remove.
452 (macro_expand, macro_expand_once, macro_expand_next): Remove
453 lookup function parameters, add scope parameter.
454 * macroexp.c (scan, substitute_args, expand, maybe_expand,
455 macro_expand, macro_expand_once, macro_expand_next): Likewise.
456 * macroscope.h (standard_macro_lookup): Change parameter type
457 to macro_scope.
458 * macroscope.c (standard_macro_lookup): Likewise.
459 * c-exp.y (lex_one_token): Update.
460 * macrocmd.c (macro_expand_command): Likewise.
461 (macro_expand_once_command): Likewise.
462
b1a35af2
SM
4632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * inf-loop.c (inferior_event_handler): Remove client_data param.
466 * inf-loop.h (inferior_event_handler): Likewise.
467 * infcmd.c (step_1): Adjust.
468 * infrun.c (proceed): Adjust.
469 (fetch_inferior_event): Remove client_data param.
470 (infrun_async_inferior_event_handler): Adjust.
471 * infrun.h (fetch_inferior_event): Remove `void *` param.
472 * linux-nat.c (handle_target_event): Adjust.
473 * record-btrace.c (record_btrace_handle_async_inferior_event):
474 Adjust.
475 * record-full.c (record_full_async_inferior_event_handler):
476 Adjust.
477 * remote.c (remote_async_inferior_event_handler): Adjust.
478
1cdf9e33
TT
4792020-07-01 Tom Tromey <tom@tromey.com>
480
481 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
482 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
483
32c1e210
TT
4842020-07-01 Tom Tromey <tom@tromey.com>
485
486 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
487 tui_gen_win_info.
488 (tui_win_info::make_window): Merge with
489 tui_gen_win_info::make_window.
490 (tui_win_info::make_visible): Move from tui_gen_win_info.
491 * tui/tui-win.c (tui_win_info::max_width): Move from
492 tui_gen_win_info.
493 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
494 type.
495 <window_factory>: Likewise.
496 * tui/tui-layout.c (tui_win_info::resize): Move from
497 tui_gen_win_info.
498 (make_standard_window): Change return type.
499 (get_locator_window, tui_get_window_by_name): Likewise.
500 (tui_layout_window::apply): Remove a cast.
501 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
502 (struct tui_win_info): Merge with tui_gen_win_info.
503 (struct tui_gen_win_info): Remove.
504
a30cb6da
TT
5052020-07-01 Tom Tromey <tom@tromey.com>
506
507 * tui/tui-stack.h (struct tui_locator_window): Derive from
508 tui_win_info.
509 <do_scroll_horizontal, do_scroll_vertical>: New methods.
510 <can_box>: New method.
511
1eb2161f
TT
5122020-07-01 Tom Tromey <tom@tromey.com>
513
514 * tui/tui-stack.h (struct tui_locator_window): Remove body.
515
7134f2eb
TT
5162020-07-01 Tom Tromey <tom@tromey.com>
517
518 * tui/tui-regs.c (tui_data_window::display_registers_from)
519 (tui_data_window::display_registers_from)
520 (tui_data_window::first_data_item_displayed)
521 (tui_data_window::delete_data_content_windows): Update.
522 (tui_data_window::refresh_window, tui_data_window::no_refresh):
523 Remove.
524 (tui_data_window::check_register_values): Update.
525 (tui_data_item_window::rerender): Add parameters. Update.
526 (tui_data_item_window::refresh_window): Remove.
527 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
528 virtual.
529 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
530 tui_gen_win_info.
531 <refresh_window, max_height, min_height>: Remove.
532 <rerender>: Add parameters.
533 <x, y, visible>: New members.
534 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
535 <m_item_width>: New member.
536
22b7b041
TT
5372020-07-01 Tom Tromey <tom@tromey.com>
538
539 * tui/tui-regs.c (tui_data_window::show_register_group)
540 (tui_data_window::check_register_values): Update.
541 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
542 from item_no.
543
c9753adb
TT
5442020-07-01 Tom Tromey <tom@tromey.com>
545
546 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
547 useless "if".
548
9ab26b4a
TT
5492020-07-01 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
552 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
553
e555083f
TT
5542020-07-01 Tom Tromey <tom@tromey.com>
555
556 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
557 * tui/tui-winsource.h (enum tui_line_or_address_kind)
558 (struct tui_line_or_address): Move from tui-data.h.
559 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
560 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
561 (tui_cmd_window, tui_source_window_base, tui_source_window)
562 (tui_disasm_window): Don't declare.
563 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
564 to tui-winsource.h.
565 (SINGLE_KEY): Move to tui-stack.c.
566
7a02bab7
TT
5672020-07-01 Tom Tromey <tom@tromey.com>
568
569 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
570 std::string.
571 * tui/tui-regs.c (class tab_expansion_file): New.
572 (tab_expansion_file::write): New method.
573 (tui_register_format): Change return type. Use
574 tab_expansion_file.
575 (tui_get_register, tui_data_window::display_registers_from)
576 (tui_data_item_window::rerender): Update.
577 * tui/tui-io.h (tui_expand_tabs): Don't declare.
578 * tui/tui-io.c (tui_expand_tabs): Remove.
579
ea68593b
TT
5802020-07-01 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
583
a8caed5d
FS
5842020-07-01 Fangrui Song <maskray@google.com>
585
586 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
587
9cdf9820
AKS
5882020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
589
590 * dwarf2/read.c (set_die_type): Removed conditions to restrict
591 forms for DW_AT_associated and DW_AT_allocated attributes,
592 which is already checked in function attr_to_dynamic_prop.
593
a1520ad8
TT
5942020-06-30 Tom Tromey <tromey@adacore.com>
595
596 * dwarf2/read.c (quirk_rust_enum): Correctly call
597 alloc_rust_variant for default-less enum.
598
5ac58899
TT
5992020-06-30 Tom Tromey <tromey@adacore.com>
600
601 PR build/26183:
602 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
603 gdb::to_string.
604
19b187a9
SM
6052020-06-29 Simon Marchi <simon.marchi@efficios.com>
606
607 * gdbarch.sh (displaced_step_copy_insn): Update doc.
608 * gdbarch.h: Re-generate.
609
cd4c4c07
TT
6102020-06-28 Tom Tromey <tom@tromey.com>
611
612 * command.h (cmd_types): Remove.
613 (cmd_type): Don't declare.
614 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
615 typedef.
616 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
617 * cli/cli-decode.c (cmd_type): Remove.
618
05779d57
PA
6192020-06-27 Pedro Alves <palves@redhat.com>
620
621 * fork-child.c (prefork_hook): Adjust.
622 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
623 Delete.
624 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
625 * inferior.c (inferior::set_tty, inferior::tty): New methods.
626 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
627 Remove declarations.
628 (struct inferior) <set_tty, tty>: New methods.
629 (struct inferior) <terminal>: Rename to ...
630 (struct inferior) <m_terminal>: ... this and make private.
631 * main.c (captured_main_1): Adjust.
632 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
633 (mi_cmd_inferior_tty_show): Adjust.
634 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
635 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
636
1776e3e5
NA
6372020-06-26 Nick Alcock <nick.alcock@oracle.com>
638
639 * configure.ac: Add --enable-libctf: handle --disable-static
640 properly.
641 * acinclude.m4: sinclude ../config/enable.m4.
642 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
643 (LIBCTF): Substitute in.
644 (CTF_DEPS): New, likewise.
645 (CLIBS): libctf needs symbols from libbfd: move earlier.
646 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
647 flags.
648 * ctfread.c: Surround in ENABLE_LIBCTF.
649 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
650 * configure: Regenerate.
651 * config.in: Likewise.
652
58373b80
SM
6532020-06-25 Simon Marchi <simon.marchi@efficios.com>
654
655 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
656
277474ee
SM
6572020-06-25 Simon Marchi <simon.marchi@efficios.com>
658
659 * inferior.h (struct inferior) <terminal>: Change type to
660 gdb::unique_xmalloc_ptr<char>.
661 * inferior.c (inferior::~inferior): Don't free inf->terminal.
662 * infcmd.c (set_inferior_io_terminal): Don't free terminal
663 field, adjust to unique pointer.
664 (get_inferior_io_terminal): Adjust to unique pointer.
665
6d74da72
AB
6662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * riscv-tdep.c (riscv_print_registers_info): Loop over all
669 registers, not just the known core set of registers.
670
2e52d038
AB
6712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
674 fflags, frm, and fcsr registers.
675 (riscv_register_reggroup_p): Remove unknown CSRs from save and
676 restore groups.
677 (riscv_tdesc_unknown_reg): New function.
678 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
679 tdesc_use_registers.
680 * riscv-tdep.h (struct gdbarch_tdep): Add
681 unknown_csrs_first_regnum, unknown_csrs_count,
682 duplicate_fflags_regnum, duplicate_frm_regnum, and
683 duplicate_fcsr_regnum fields.
684
be64fd07
AB
6852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * target-descriptions.c (tdesc_use_registers): Add new parameter a
688 callback, use the callback (when not null) to help number unknown
689 registers.
690 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
691 (tdesc_use_registers): Add extra parameter to declaration.
692
3b9fce96
AB
6932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
696 in the file.
697 (class riscv_pending_register_alias): Likewise.
698 (riscv_register_feature::register_info): Change 'required_p' field
699 to 'required', and change its type. Add 'check' member function.
700 (riscv_register_feature::register_info::check): Define new member
701 function.
702 (riscv_xreg_feature): Change initialisation of 'required' field.
703 (riscv_freg_feature): Likewise.
704 (riscv_virtual_feature): Likewise.
705 (riscv_csr_feature): Likewise.
706 (riscv_check_tdesc_feature): Take extra parameter, the csr
707 tdesc_feature, rewrite the function to use the new
708 riscv_register_feature::register_info::check function.
709 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
710
865bad26
AB
7112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * features/Makefile: Remove all references to the deleted files
714 below.
715 * features/riscv/32bit-csr.c: Deleted.
716 * features/riscv/32bit-csr.xml: Deleted.
717 * features/riscv/64bit-csr.c: Deleted.
718 * features/riscv/64bit-csr.xml: Deleted.
719 * features/riscv/rebuild-csr-xml.sh: Deleted.
720
ed69cbc8
AB
7212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
724 whitespace error for declaration of names member variable.
725 (struct riscv_register_feature): Add new prefer_first_name member
726 variable, and fix whitespace error in declaration of registers.
727 (riscv_xreg_feature): Initialize prefer_first_name field.
728 (riscv_freg_feature): Likewise.
729 (riscv_virtual_feature): Likewise.
730 (riscv_csr_feature): Likewise.
731 (riscv_register_name): Expand on comments. Remove register name
732 modifications for CSR and virtual registers.
733
4445e8f5
AB
7342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
737 errors.
738
767a879e
AB
7392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
742 riscv-opc.h.
743 (class riscv_pending_register_alias): New class.
744 (riscv_check_tdesc_feature): Take vector of pending aliases and
745 populate it as appropriate.
746 (riscv_setup_register_aliases): Delete.
747 (riscv_gdbarch_init): Create vector of pending aliases and pass it
748 to riscv_check_tdesc_feature in all cases. Use the vector to
749 create the register aliases.
750
bb6e55f3
RO
7512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
752
753 * sol2-tdep.c (sol2_static_transform_name): Remove.
754 (sol2_init_abi): Don't register it.
755 * gdbarch.sh (static_transform_name): Remove.
756 * gdbarch.c, gdbarch.h: Regenerate.
757
758 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
759 gdbarch_static_transform_name.
760 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
761 * stabsread.c (define_symbol) <'X'>: Remove.
762 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
763 handling.
764 <'V'>: Likewise.
765 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
766 <'S'>: Remove call to gdbarch_static_transform_name.
767
c6d36836
RO
7682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
769
770 * procfs.c (procfs_pre_trace): New function.
771 (procfs_target::create_inferior): Pass it to fork_inferior.
772
a7e6196b
RO
7732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
774
775 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
776 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
777 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
778 sol2-tdep.o, sparc-sol2-tdep.o.
779 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
780 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
781 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
782 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
783
d412e696
RO
7842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
785
786 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
787 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
788 Call sol2_init_abi.
789 Remove calls to set_gdbarch_skip_solib_resolver,
790 set_gdbarch_core_pid_to_str.
791 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
792 (i386_sol2_static_transform_name): Remove.
793 (i386_sol2_init_abi): Call sol2_init_abi.
794 Remove calls to set_gdbarch_sofun_address_maybe_missing,
795 set_gdbarch_static_transform_name,
796 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
797 Use sol2_sigtramp_p.
798 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
799 (sol2_sigtramp_p): New function.
800 (sol2_static_transform_name): New function.
801 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
802 (sol2_init_abi): New function.
803 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
804 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
805 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
806 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
807 (sparc_sol2_static_transform_name): Remove.
808 (sparc32_sol2_init_abi): Call sol2_init_abi.
809 Remove calls to set_gdbarch_sofun_address_maybe_missing,
810 set_gdbarch_static_transform_name,
811 set_gdbarch_skip_solib_resolver,
812 set_gdbarch_core_pid_to_str.
813 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
814 (sparc_sol2_static_transform_name): Remove
815 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
816 call sol2_sigtramp_p.
817 (sparc64_sol2_init_abi): Call sol2_init_abi.
818 Remove calls to set_gdbarch_sofun_address_maybe_missing,
819 set_gdbarch_static_transform_name,
820 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
821
a8654e7d
PW
8222020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
823
824 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
825 * exec.c (validate_exec_file): If from_tty, set both
826 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
827 * symfile.c (symbol_file_add_with_addrs): if always_confirm
828 and from_tty, unconditionally ask a confirmation.
829
caa7fd04
AB
8302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * target-descriptions.c (tdesc_architecture_name): Protect against
833 NULL pointer dereference.
834 (maint_print_xml_tdesc_cmd): New function.
835 (_initialize_target_descriptions): Register new 'maint print
836 xml-tdesc' command and give it the filename completer.
837 * NEWS: Mention new 'maint print xml-tdesc' command.
838
fbf42f4e
AB
8392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * target-descriptions.c (class tdesc_compatible_info): New class.
842 (struct target_desc): Change type of compatible vector.
843 (tdesc_compatible_p): Update for change in type of
844 target_desc::compatible.
845 (tdesc_compatible_info_list): New function.
846 (tdesc_compatible_info_arch_name): New function.
847 (tdesc_add_compatible): Update for change in type of
848 target_desc::compatible.
849 (print_c_tdesc::visit_pre): Likewise.
850
20821f4e
AB
8512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
854 whitespace to underscore.
855 (maint_print_c_tdesc_cmd): Use fake filename for target
856 descriptions that came from the target.
857 (_initialize_target_descriptions): Add filename command completion
858 for 'maint print c-tdesc'.
859
1fb5ee62
SM
8602020-06-23 Simon Marchi <simon.marchi@efficios.com>
861
862 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
863 lines.
864
fc3ecb3e
SM
8652020-06-23 Simon Marchi <simon.marchi@efficios.com>
866
867 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
868 lines.
869 (dwarf2_find_location_expression): Likewise.
870 (call_site_parameter_matches): Likewise.
871 (dwarf2_compile_expr_to_ax): Likewise.
872 (disassemble_dwarf_expression): Likewise.
873 (loclist_describe_location): Likewise.
874
236ef034
PA
8752020-06-23 Pedro Alves <palves@redhat.com>
876
877 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
878 progspace-and-thread.h. Include scoped-mock-context.h instead.
879 (register_to_value_test): Use scoped_mock_context.
880 * regcache.c: Include "scoped-mock-context.h".
881 (cooked_read_test): Don't error out if a target is already pushed.
882 Use scoped_mock_context. Adjust.
883 * scoped-mock-context.h: New file.
884
39e7ecca
AB
8852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
888 initializer.
889 (ada_language::is_string_type_p): New member function.
890 * c-lang.c (c_language_data): Delete la_is_string_type_p
891 initializer.
892 (cplus_language_data): Likewise.
893 (asm_language_data): Likewise.
894 (minimal_language_data): Likewise.
895 * d-lang.c (d_language_data): Likewise.
896 * f-lang.c (f_is_string_type_p): Delete function, implementation
897 moved to f_language::is_string_type_p.
898 (f_language_data): Delete la_is_string_type_p initializer.
899 (f_language::is_string_type_p): New member function,
900 implementation from f_is_string_type_p.
901 * go-lang.c (go_is_string_type_p): Delete function, implementation
902 moved to go_language::is_string_type_p.
903 (go_language_data): Delete la_is_string_type_p initializer.
904 (go_language::is_string_type_p): New member function,
905 implementation from go_is_string_type_p.
906 * language.c (language_defn::is_string_type_p): Define new member
907 function.
908 (default_is_string_type_p): Make static, add comment copied from
909 header file.
910 (unknown_language_data): Delete la_is_string_type_p initializer.
911 (unknown_language::is_string_type_p): New member function.
912 (auto_language_data): Delete la_is_string_type_p initializer.
913 (auto_language::is_string_type_p): New member function.
914 * language.h (language_data): Delete la_is_string_type_p field.
915 (language_defn::is_string_type_p): Declare new function.
916 (default_is_string_type_p): Delete desclaration, move comment to
917 definition.
918 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
919 moved to m2_language::is_string_type_p.
920 (m2_language_data): Delete la_is_string_type_p initializer.
921 (m2_language::is_string_type_p): New member function,
922 implementation from m2_is_string_type_p.
923 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
924 initializer.
925 * opencl-lang.c (opencl_language_data): Likewise.
926 * p-lang.c (pascal_is_string_type_p): Delete function,
927 implementation moved to pascal_language::is_string_type_p.
928 (pascal_language_data): Delete la_is_string_type_p initializer.
929 (pascal_language::is_string_type_p): New member function,
930 implementation from pascal_is_string_type_p.
931 * rust-lang.c (rust_is_string_type_p): Delete function,
932 implementation moved to rust_language::is_string_type_p.
933 (rust_language_data): Delete la_is_string_type_p initializer.
934 (rust_language::is_string_type_p): New member function,
935 implementation from rust_is_string_type_p.
936 * valprint.c (val_print_scalar_or_string_type_p): Update call to
937 is_string_type_p.
938
4ffc13fb
AB
9392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * ada-lang.c (ada_language_data): Delete la_print_typedef
942 initializer.
943 (ada_language::print_typedef): New member function.
944 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
945 (cplus_language_data): Likewise.
946 (asm_language_data): Likewise.
947 (minimal_language_data): Likewise.
948 * d-lang.c (d_language_data): Likewise.
949 * f-lang.c (f_language_data): Likewise.
950 (f_language::print_typedef): New member function.
951 * go-lang.c (go_language_data): Delete la_print_typedef
952 initializer.
953 * language.c (language_defn::print_typedef): Define member
954 function.
955 (unknown_language_data): Delete la_print_typedef initializer.
956 (unknown_language::print_typedef): New member function.
957 (auto_language_data): Delete la_print_typedef initializer.
958 (auto_language::print_typedef): New member function.
959 * language.h (language_data): Delete la_print_typedef field.
960 (language_defn::print_typedef): Declare new member function.
961 (LA_PRINT_TYPEDEF): Update call to print_typedef.
962 (default_print_typedef): Delete declaration.
963 * m2-lang.c (m2_language_data): Delete la_print_typedef
964 initializer.
965 (m2_language::print_typedef): New member function.
966 * objc-lang.c (objc_language_data): Delete la_print_typedef
967 initializer.
968 * opencl-lang.c (opencl_language_data): Likewise.
969 * p-lang.c (pascal_language_data): Likewise.
970 (pascal_language::print_typedef): New member function.
971 * rust-lang.c (rust_print_typedef): Delete function,
972 implementation moved to rust_language::print_typedef.
973 (rust_language): Delete la_print_typedef initializer.
974 (rust_language::print_typedef): New member function,
975 implementation from rust_print_typedef.
976 * typeprint.c (default_print_typedef): Delete.
977
d711ee67
AB
9782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
981 (ada_language::printstr): New member function.
982 * c-lang.c (c_language_data): Delete la_printstr initializer.
983 (cplus_language_data): Likewise.
984 (asm_language_data): Likewise.
985 (minimal_language_data): Likewise.
986 * d-lang.c (d_language_data): Likewise.
987 * f-lang.c (f_printstr): Rename to f_language::printstr.
988 (f_language_data): Delete la_printstr initializer.
989 (f_language::printstr): New member function, implementation from
990 f_printstr.
991 * go-lang.c (go_language_data): Delete la_printstr initializer.
992 * language.c (language_defn::printstr): Define new member
993 function.
994 (unk_lang_printstr): Delete.
995 (unknown_language_data): Delete la_printstr initializer.
996 (unknown_language::printstr): New member function.
997 (auto_language_data): Delete la_printstr initializer.
998 (auto_language::printstr): New member function.
999 * language.h (language_data): Delete la_printstr field.
1000 (language_defn::printstr): Declare new member function.
1001 (LA_PRINT_STRING): Update call to printstr.
1002 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1003 (m2_language_data): Delete la_printstr initializer.
1004 (m2_language::printstr): New member function, implementation from
1005 m2_printstr.
1006 * objc-lang.c (objc_language_data): Delete la_printstr
1007 initializer.
1008 * opencl-lang.c (opencl_language_data): Likewise.
1009 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1010 (pascal_language_data): Delete la_printstr initializer.
1011 (pascal_language::printstr): New member function, implementation
1012 from pascal_printstr.
1013 * p-lang.h (pascal_printstr): Delete declaration.
1014 * rust-lang.c (rust_printstr): Update header comment.
1015 (rust_language_data): Delete la_printstr initializer.
1016 (rust_language::printstr): New member function.
1017
52b50f2c
AB
10182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1021 (ada_language::printchar): New member function.
1022 * c-lang.c (c_language_data): Delete la_printchar initializer.
1023 (cplus_language_data): Likewise.
1024 (asm_language_data): Likewise.
1025 (minimal_language_data): Likewise.
1026 * d-lang.c (d_language_data): Likewise.
1027 * f-lang.c (f_printchar): Rename to f_language::printchar.
1028 (f_language_data): Delete la_printchar initializer.
1029 (f_language::printchar): New member function, implementation from
1030 f_printchar.
1031 * go-lang.c (go_language_data): Delete la_printchar initializer.
1032 * language.c (unk_lang_printchar): Delete.
1033 (language_defn::printchar): Define new member function.
1034 (unknown_language_data): Delete la_printchar initializer.
1035 (unknown_language::printchar): New member function.
1036 (auto_language_data): Delete la_printchar initializer.
1037 (auto_language::printchar): New member function.
1038 * language.h (language_data): Delete la_printchar field.
1039 (language_defn::printchar): Declare new member function.
1040 (LA_PRINT_CHAR): Update call to printchar.
1041 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1042 (m2_language::printchar): New member function.
1043 * objc-lang.c (objc_language_data): Delete la_printchar
1044 initializer.
1045 * opencl-lang.c (opencl_language_data): Likewise.
1046 * p-lang.c (pascal_language_data): Delete la_printchar
1047 initializer.
1048 (pascal_language::printchar): New member function.
1049 * rust-lang.c (rust_printchar): Rename to
1050 rust_language::printchar.
1051 (rust_language_data): Delete la_printchar initializer.
1052 (rust_language::printchar): New member function, implementation
1053 from rust_printchar.
1054
ec8cec5b
AB
10552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1058 (ada_language_data): Delete la_emitchar initializer.
1059 (ada_language::emitchar): New member function, implementation from
1060 emit_char.
1061 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1062 (cplus_language_data): Likewise.
1063 (asm_language_data): Likewise.
1064 (minimal_language_data): Likewise.
1065 * d-lang.c (d_language_data): Likewise.
1066 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1067 (f_language_data): Delete la_emitchar initializer.
1068 (f_language::emitchar): New member function, implementation from
1069 f_emit_char.
1070 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1071 * language.c (unk_lang_emit_char): Delete.
1072 (language_defn::emitchar): New member function definition.
1073 (unknown_language_data): Delete la_emitchar initializer.
1074 (unknown_language::emitchar): New member function.
1075 (auto_language_data): Delete la_emitchar initializer.
1076 (auto_language::emitchar): New member function.
1077 * language.h (language_data): Delete la_emitchar field.
1078 (language_defn::emitchar): New member field declaration.
1079 (LA_EMIT_CHAR): Update call to emitchar.
1080 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1081 (m2_language_data): Delete la_emitchar initializer.
1082 (m2_language::emitchar): New member function, implementation from
1083 m2_emit_char.
1084 * objc-lang.c (objc_language_data): Delete la_emitchar
1085 initializer.
1086 * opencl-lang.c (opencl_language_data): Likewise.
1087 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1088 (pascal_language_data): Delete la_emitchar initializer.
1089 (pascal_language::emitchar): New member function, implementation
1090 from pascal_emit_char.
1091 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1092 (rust_language_data): Delete la_emitchar initializer.
1093 (rust_language::emitchar): New member function, implementation
1094 from rust_emitchar.
1095
1bf9c363
AB
10962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1099 (ada_language_data): Delete la_post_parser initializer.
1100 (ada_language::post_parser): New member function.
1101 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1102 (cplus_language_data): Likewise.
1103 (asm_language_data): Likewise.
1104 (minimal_language_data): Likewise.
1105 * d-lang.c (d_language_data): Likewise.
1106 * f-lang.c (f_language_data): Likewise.
1107 * go-lang.c (go_language_data): Likewise.
1108 * language.c (unknown_language_data): Likewise.
1109 (auto_language_data): Likewise.
1110 * language.h (language_data): Delete la_post_parser field.
1111 (language_defn::post_parser): New member function.
1112 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1113 * objc-lang.c (objc_language_data): Likewise.
1114 * opencl-lang.c (opencl_language_data): Likewise.
1115 * p-lang.c (pascal_language_data): Likewise.
1116 * parse.c (parse_exp_in_context): Update call to post_parser.
1117 (null_post_parser): Delete definition.
1118 * parser-defs.h (null_post_parser): Delete declaration.
1119 * rust-lang.c (rust_language_data): Delete la_post_parser
1120 initializer.
1121
87afa652
AB
11222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * ada-lang.c (parse): Rename to ada_language::parser.
1125 (ada_language_data): Delete la_parser initializer.
1126 (ada_language::parser): New member function, implementation from
1127 parse.
1128 * c-lang.c (c_language_data): Delete la_parser initializer.
1129 (cplus_language_data): Likewise.
1130 (asm_language_data): Likewise.
1131 (minimal_language_data): Likewise.
1132 * d-lang.c (d_language_data): Likewise.
1133 (d_language::parser): New member function.
1134 * f-lang.c (f_language_data): Delete la_parser initializer.
1135 (f_language::parser): New member function.
1136 * go-lang.c (go_language_data): Delete la_parser initializer.
1137 (go_language::parser): New member function.
1138 * language.c (unk_lang_parser): Delete.
1139 (language_defn::parser): Define new member function.
1140 (unknown_language_data): Delete la_parser initializer.
1141 (unknown_language::parser): New member function.
1142 (auto_language_data): Delete la_parser initializer.
1143 (auto_language::parser): New member function.
1144 * language.h (language_data): Delete la_parser field.
1145 (language_defn::parser): Declare new member function.
1146 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1147 (m2_language::parser): New member function.
1148 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1149 * opencl-lang.c (opencl_language_data): Likewise.
1150 * p-lang.c (pascal_language_data): Likewise.
1151 (pascal_language::parser): New member function.
1152 * parse.c (parse_exp_in_context): Update call to parser.
1153 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1154 (rust_language::parser): New member function.
1155
37825800
AB
11562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * top.c (print_gdb_configuration): Print --with-python-libdir
1159 configuration value.
1160
5b860c93
PW
11612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1162
1163 * NEWS: Mention change to the alias command.
1164
cf00cd6f
PW
11652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1166
1167 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1168 (alias_command_completer)
1169 (make_alias_options_def_group): New functions.
1170 (alias_opts, alias_option_defs): New struct and array.
1171 (alias_usage_error): Update usage.
1172 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1173 Use option framework.
1174 (_initialize_cli_cmds): Update alias command help.
1175 Update aliases command help.
1176 (show_user):
1177 Add NULL for new default_args lookup_cmd argument.
1178 (valid_command_p): Rename to validate_aliased_command.
1179 Add NULL for new default_args lookup_cmd argument. Verify that the
1180 aliased_command has no default args.
1181 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1182 (lookup_cmd_1, lookup_cmd): New argument default_args.
1183 (add_alias_cmd):
1184 Add NULL for new default_args lookup_cmd argument.
1185 (print_help_for_command): Show default args under the layout
1186 alias some_alias = some_aliased_cmd some_alias_default_arg.
1187 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1188 xfree default_args in destructor.
1189 * cli/cli-script.c (process_next_line, do_define_command):
1190 Add NULL for new default_args lookup_cmd argument.
1191 * command.h: Declare new default_args argument in lookup_cmd
1192 and lookup_cmd_1.
1193 * completer.c (complete_line_internal_1):
1194 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1195 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1196 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1197 Likewise.
1198 * infcmd.c (_initialize_infcmd): Likewise.
1199 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1200 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1201 * python/py-param.c (add_setshow_generic): Likewise.
1202 * remote.c (_initialize_remote): Likewise.
1203 * top.c (execute_command): Prepend default_args if command has some.
1204 (set_verbose):
1205 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1206 * tracepoint.c (validate_actionline, encode_actions_1):
1207 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1208
bd920864
TBA
12092020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1210
1211 * jit.c (jit_read_descriptor): Use bool as the return type.
1212 (jit_breakpoint_re_set_internal): Use bool as the return type.
1213 Invert the return value logic; return true if the jit breakpoint
1214 has been successfully initialized.
1215 (jit_inferior_init): Update the call to
1216 jit_breakpoint_re_set_internal.
1217
f8098322
PA
12182020-06-22 Pedro Alves <palves@redhat.com>
1219
1220 PR gdb/25939
1221 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1222 Use the current inferior instead. Don't return
1223 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1224 wait again.
1225 * sol-thread.c (sol_thread_target::wait): Don't reference
1226 inferior_ptid.
1227 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1228 (sol_update_thread_list_callback): Use the current inferior's pid
1229 instead of inferior_ptid.
1230
196535a6
RO
12312020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232
1233 * procfs.c: Cleanup many comments.
1234
1235 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1236 (AFTER_WATCHFLAG): Replace by value.
1237
1238 (MAIN_PROC_NAME_FORMAT): Inline ...
1239 (create_procinfo): ... here.
1240
1241 (procfs_debug_inferior): Remove SYS_exec handling.
1242 (syscall_is_exec): Likewise.
1243 (procfs_set_exec_trap): Likewise.
1244
1245 (syscall_is_lwp_exit): Inline in callers.
1246 (syscall_is_exit): Likewise.
1247 (syscall_is_exec): Likewise.
1248 (syscall_is_lwp_create): Likewise.
1249
1250 (invalidate_cache): Remove #if 0 code.
1251
1252 (make_signal_thread_runnable): Remove.
1253 (procfs_target::resume): Remove #if 0 code.
1254
cf6f3e86
RO
12552020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1256
1257 PR gdb/25939
1258 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1259 call ...
1260 (procfs_target::create_inferior): ... here.
1261
48e9cc84
PW
12622020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1263
1264 * exec.c (validate_exec_file): Ensure the build-id is up to
1265 date by calling reopen_exec_file (that checks file timestamp
1266 to decide to re-read the file).
1267
3922b302
PA
12682020-06-18 Pedro Alves <palves@redhat.com>
1269
1270 PR gdb/25412
1271 * gdbthread.h (delete_thread, delete_thread_silent)
1272 (find_thread_ptid): Update comments.
1273 * thread.c (current_thread_): New global.
1274 (is_current_thread): Move higher, and reimplement.
1275 (inferior_thread): Reimplement.
1276 (set_thread_exited): Use bool. Add assertions.
1277 (add_thread_silent): Simplify thread-reuse handling by always
1278 calling delete_thread.
1279 (delete_thread): Remove intro comment.
1280 (find_thread_ptid): Skip exited threads.
1281 (switch_to_thread_no_regs): Write to current_thread_.
1282 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1283 INFERIOR_PTID. Clear current_thread_.
1284
6dbdab44
PA
12852020-06-18 Pedro Alves <palves@redhat.com>
1286
1287 * aix-thread.c (pd_update): Use switch_to_thread.
1288
2da4b788
PA
12892020-06-18 Pedro Alves <palves@redhat.com>
1290
1291 * ravenscar-thread.c (ravenscar_thread_target): Update.
1292 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1293 (ravenscar_thread_target::add_active_thread): ... this. Don't
1294 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1295 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1296
50838d1b
PA
12972020-06-18 Pedro Alves <palves@redhat.com>
1298
1299 * nat/windows-nat.c (current_windows_thread): Remove.
1300 * nat/windows-nat.h (current_windows_thread): Remove.
1301 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1302 Adjust.
1303 (display_selectors): Adjust to fetch the current
1304 windows_thread_info based on inferior_ptid.
1305 (fake_create_process): No longer write to current_windows_thread.
1306 (windows_nat_target::get_windows_debug_event):
1307 Don't set inferior_ptid or current_windows_thread.
1308 (windows_nat_target::wait): Adjust to not rely on
1309 current_windows_thread.
1310 (do_initial_windows_stuff): Now a method of windows_nat_target.
1311 Switch to the last_ptid thread.
1312 (windows_nat_target::attach): Adjust.
1313 (windows_nat_target::detach): Use switch_to_no_thread instead of
1314 writing to inferior_ptid directly.
1315 (windows_nat_target::create_inferior): Adjust.
1316
31ce04e9
PA
13172020-06-18 Pedro Alves <palves@redhat.com>
1318
1319 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1320
1ee1a363
PA
13212020-06-18 Pedro Alves <palves@redhat.com>
1322
1323 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1324 after creating it, instead of writing to inferior_ptid. Don't
1325 write to inferior_ptid.
1326
6d350754
PA
13272020-06-18 Pedro Alves <palves@redhat.com>
1328
1329 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1330
5d971d48
PA
13312020-06-18 Pedro Alves <palves@redhat.com>
1332
1333 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1334 it, instead of writing to inferior_ptid.
1335
86e57d1b
PA
13362020-06-18 Pedro Alves <palves@redhat.com>
1337
1338 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1339 to inferior_ptid.
1340
f2e1c129
PA
13412020-06-18 Pedro Alves <palves@redhat.com>
1342
1343 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1344 instead of writing to inferior_ptid directly.
1345
60db1b85
PA
13462020-06-18 Pedro Alves <palves@redhat.com>
1347
1348 * corelow.c (core_target::close): Use switch_to_no_thread instead
1349 of writing to inferior_ptid directly.
1350 (add_to_thread_list, core_target_open): Use switch_to_thread
1351 instead of writing to inferior_ptid directly.
1352
fe7d6a8d
PA
13532020-06-18 Pedro Alves <palves@redhat.com>
1354
1355 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1356 inferior_ptid.
1357 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1358 inferior_ptid.
1359 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1360 inferior_ptid directly.
1361 (darwin_nat_target::init_thread_list): Switch to thread, instead
1362 of writing to inferior_ptid.
1363 (darwin_nat_target::attach): Don't write to inferior_ptid.
1364 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1365
975f8708
PA
13662020-06-18 Pedro Alves <palves@redhat.com>
1367
1368 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1369 thread.
1370 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1371 Instead use switch_to_thread.
1372 (gnu_nat_target::detach): Use switch_to_no_thread
1373 instead of writing to inferior_ptid directly. Used passed-in
1374 inferior instead of looking up the inferior by pid.
1375
1a204730
PA
13762020-06-18 Pedro Alves <palves@redhat.com>
1377
1378 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1379 inferior_ptid.
1380
ebe84f23
PA
13812020-06-18 Pedro Alves <palves@redhat.com>
1382
1383 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1384 inferior_ptid.
1385 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1386 thread.
1387 (nto_procfs_target::detach): Avoid referencing
1388 inferior_ptid. Use switch_to_no_thread instead of writing to
1389 inferior_ptid directly.
1390 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1391 instead of writing to inferior_ptid directly.
1392 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1393 to thread.
1394
191f02e5
PA
13952020-06-18 Pedro Alves <palves@redhat.com>
1396
1397 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1398 after creating it, instead of writing to inferior_ptid.
1399 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1400 to inferior_ptid directly.
1401 (gdbsim_target::wait): Don't write to inferior_ptid.
1402
0ac55310
PA
14032020-06-18 Pedro Alves <palves@redhat.com>
1404
1405 * remote.c (remote_target::remote_notice_new_inferior): Use
1406 switch_to_thread instead of writing to inferior_ptid directly.
1407 (remote_target::add_current_inferior_and_thread): Use
1408 switch_to_no_thread instead of writing to inferior_ptid directly.
1409 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1410 and switch_to_thread instead of using set_current_inferior or
1411 writing to inferior_ptid directly.
1412
5233f39b
PA
14132020-06-18 Pedro Alves <palves@redhat.com>
1414
1415 * tracectf.c (ctf_target_open): Switch to added thread instead of
1416 writing to inferior_ptid directly.
1417 (ctf_target::close): Use switch_to_no_thread instead of writing to
1418 inferior_ptid directly.
1419
087e161b
PA
14202020-06-18 Pedro Alves <palves@redhat.com>
1421
1422 * tracefile-tfile.c (tfile_target_open): Don't write to
1423 inferior_ptid directly, instead switch to added thread.
1424 (tfile_target::close): Use switch_to_no_thread instead of writing
1425 to inferior_ptid directly.
1426
7fb43e53
PA
14272020-06-18 Pedro Alves <palves@redhat.com>
1428
1429 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1430 (procfs_target::detach): Use switch_to_no_thread
1431 instead of writing to inferior_ptid directly.
1432 (do_attach): Change return type to void. Switch to the added
1433 thread.
1434 (procfs_target::create_inferior): Switch to the added thread.
1435 (procfs_do_thread_registers): Don't write to inferior_ptid.
1436
18493a00
PA
14372020-06-18 Pedro Alves <palves@redhat.com>
1438
1439 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1440 of writing to inferior_ptid.
1441 (scoped_restore_exited_inferior): Delete.
1442 (handle_vfork_child_exec_or_exit): Simplify using
1443 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1444 instead of writing to inferior_ptid.
1445 (THREAD_STOPPED_BY): Delete.
1446 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1447 (thread_stopped_by_hw_breakpoint): Delete.
1448 (save_waitstatus): Use
1449 scoped_restore_current_thread+switch_to_thread, and call
1450 target_stopped_by_watchpoint instead of
1451 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1452 instead of thread_stopped_by_sw_breakpoint, and
1453 target_stopped_by_hw_breakpoint instead of
1454 thread_stopped_by_hw_breakpoint.
1455 (handle_inferior_event)
1456 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1457 inferior_ptid directly, nor
1458 set_current_inferior/set_current_program_space. Use
1459 switch_to_thread / switch_to_inferior_no_thread instead.
1460
a0776b13
PA
14612020-06-18 Pedro Alves <palves@redhat.com>
1462
1463 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1464 instead of writing to inferior_ptid.
1465
6155c136
PA
14662020-06-18 Pedro Alves <palves@redhat.com>
1467
1468 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1469 added thread.
1470 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1471 to the added thread.
1472 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1473 instead of writing to inferior_ptid.
1474
c5316fc6
PA
14752020-06-18 Pedro Alves <palves@redhat.com>
1476
1477 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1478 (register_to_value_test): Mock a program_space too. Heap-allocate
1479 the address space. Don't write to inferior_ptid. Use
1480 switch_to_thread instead.
1481
8df01799
PA
14822020-06-18 Pedro Alves <palves@redhat.com>
1483
1484 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1485 Delete.
1486 (find_signalled_thread()): New, factored out from
1487 linux_make_corefile_notes and adjusted to handle exited threads.
1488 (linux_make_corefile_notes): Adjust to use the new
1489 find_signalled_thread.
1490
41792d68
PA
14912020-06-18 Pedro Alves <palves@redhat.com>
1492
1493 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1494 of saving/restoring inferior_ptid.
1495
612f258a
TT
14962020-06-17 Tom Tromey <tom@tromey.com>
1497
1498 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1499 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1500 declare.
1501 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1502
efb763a5
SM
15032020-06-15 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1506 of partial symtabs.
1507
2951f6c0
SM
15082020-06-17 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * regformats/reg-arm.dat: Remove.
1511 * regformats/reg-bfin.dat: Remove.
1512 * regformats/reg-cris.dat: Remove.
1513 * regformats/reg-crisv32.dat: Remove.
1514 * regformats/reg-m32r.dat: Remove.
1515 * regformats/reg-tilegx.dat: Remove.
1516 * regformats/reg-tilegx32.dat: Remove.
1517
7d458ea5
SM
15182020-06-17 Simon Marchi <simon.marchi@efficios.com>
1519
1520 * features/Makefile (WHICH): Remove arm files.
1521 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1522 * regformats/arm/arm-with-neon.dat: Remove.
1523 * regformats/arm/arm-with-vfpv2.dat: Remove.
1524 * regformats/arm/arm-with-vfpv3.dat: Remove.
1525
3af96c0d
SM
15262020-06-17 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * features/Makefile (XMLTOC): Remove rx.xml.
1529
b25e22fd
PA
15302020-06-17 Pedro Alves <palves@redhat.com>
1531
1532 * gdbthread.h (thread_control_state) <trap_expected> Update
1533 comments.
1534
a78a19b1
AB
15352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1538 ada_language::lookup_symbol_nonlocal.
1539 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1540 (ada_language::lookup_symbol_nonlocal): New member function,
1541 implementation from ada_lookup_symbol_nonlocal.
1542 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1543 initializer.
1544 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1545 initializer.
1546 (cplus_language::lookup_symbol_nonlocal): New member function.
1547 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1548 (minimal_language_data) Likewise.
1549 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1550 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1551 initializer.
1552 (d_language::lookup_symbol_nonlocal): New member function.
1553 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1554 initializer.
1555 (f_language::lookup_symbol_nonlocal): New member function.
1556 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1557 initializer.
1558 * language.c (unknown_language_data): Likewise.
1559 (auto_language_data): Likewise.
1560 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1561 field.
1562 (language_defn::lookup_symbol_nonlocal): New member function.
1563 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1564 initializer.
1565 * objc-lang.c (objc_language_data): Likewise.
1566 * opencl-lang.c (opencl_language_data): Likewise.
1567 * p-lang.c (pascal_language_data): Likewise.
1568 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1569 rust_language::lookup_symbol_nonlocal.
1570 (rust_language_data): Delete la_lookup_symbol_nonlocal
1571 initializer.
1572 (rust_language::lookup_symbol_nonlocal): New member function,
1573 implementation from rust_lookup_symbol_nonlocal.
1574 * symtab.c (lookup_symbol_aux): Update call to
1575 lookup_symbol_nonlocal.
1576 (basic_lookup_symbol_nonlocal): Rename to...
1577 (language_defn::lookup_symbol_nonlocal): ...this, and update
1578 header comment. Remove language_defn parameter, and replace with
1579 uses of `this'.
1580 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1581
ebe2334e
AB
15822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1585 initializer.
1586 (ada_language::value_print_inner): New member function.
1587 * c-lang.c (c_language_data): Delete la_value_print_inner
1588 initializer.
1589 (cplus_language_data): Likewise.
1590 (asm_language_data): Likewise.
1591 (minimal_language_data): Likewise.
1592 * d-lang.c (d_language_data): Likewise.
1593 (d_language::value_print_inner): New member function.
1594 * f-lang.c (f_language_data): Delete la_value_print_inner
1595 initializer.
1596 (f_language::value_print_inner): New member function.
1597 * f-lang.h (f_value_print_innner): Rename to...
1598 (f_value_print_inner): ...this (note spelling of 'inner').
1599 * f-valprint.c (f_value_print_innner): Rename to...
1600 (f_value_print_inner): ...this (note spelling of 'inner').
1601 * go-lang.c (go_language_data): Delete la_value_print_inner
1602 initializer.
1603 (go_language::value_print_inner): New member function.
1604 * language.c (language_defn::value_print_inner): Define new member
1605 function.
1606 (unk_lang_value_print_inner): Delete.
1607 (unknown_language_data): Delete la_value_print_inner initializer.
1608 (unknown_language::value_print_inner): New member function.
1609 (auto_language_data): Delete la_value_print_inner initializer.
1610 (auto_language::value_print_inner): New member function.
1611 * language.h (language_data): Delete la_value_print_inner field.
1612 (language_defn::value_print_inner): Delcare new member function.
1613 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1614 initializer.
1615 (m2_language::value_print_inner): New member function.
1616 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1617 initializer.
1618 * opencl-lang.c (opencl_language_data): Likewise.
1619 * p-lang.c (pascal_language_data): Likewise.
1620 (pascal_language::value_print_inner): New member function.
1621 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1622 initializer.
1623 (rust_language::value_print_inner): New member function.
1624 * valprint.c (do_val_print): Update call to value_print_inner.
1625
a1d1fa3e
AB
16262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1627
1628 * ada-lang.c (ada_language_data): Delete la_value_print
1629 initializer.
1630 (ada_language::value_print): New member function.
1631 * c-lang.c (c_language_data): Delete la_value_print initializer.
1632 (cplus_language_data): Likewise.
1633 (asm_language_data): Likewise.
1634 (minimal_language_data): Likewise.
1635 * d-lang.c (d_language_data): Likewise.
1636 * f-lang.c (f_language_data): Likewise.
1637 * go-lang.c (go_language_data): Likewise.
1638 * language.c (unk_lang_value_print): Delete.
1639 (language_defn::value_print): Define new member function.
1640 (unknown_language_data): Delete la_value_print initializer.
1641 (unknown_language::value_print): New member function.
1642 (auto_language_data): Delete la_value_print initializer.
1643 (auto_language::value_print): New member function.
1644 * language.h (language_data): Delete la_value_print field.
1645 (language_defn::value_print): Declare new member function.
1646 (LA_VALUE_PRINT): Update call to value_print.
1647 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1648 * objc-lang.c (objc_language_data): Likewise.
1649 * opencl-lang.c (opencl_language_data): Likewise.
1650 * p-lang.c (pascal_language_data): Likewise.
1651 (pascal_language::value_print): New member function.
1652 * rust-lang.c (rust_language_data): Delete la_value_print
1653 initializer.
1654
f16a9f57
AB
16552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * ada-lang.c (ada_watch_location_expression): Rename to
1658 ada_language::watch_location_expression.
1659 (ada_language_data): Delete la_watch_location_expression
1660 initializer.
1661 (ada_language::watch_location_expression): New member function,
1662 implementation from ada_watch_location_expression.
1663 * breakpoint.c (watch_command_1): Update call to
1664 watch_location_expression.
1665 * c-lang.c (c_watch_location_expression): Rename to
1666 language_defn::watch_location_expression.
1667 (c_language_data): Delete la_watch_location_expression
1668 initializer.
1669 (cplus_language_data): Likewise.
1670 (asm_language_data): Likewise.
1671 (minimal_language_data): Likewise.
1672 * c-lang.h (c_watch_location_expression): Delete declaration.
1673 * d-lang.c (d_language_data): Delete la_watch_location_expression
1674 initializer.
1675 * f-lang.c (f_language_data): Likewise.
1676 * go-lang.c (go_language_data): Likewise.
1677 * language.c (language_defn::watch_location_expression): Member
1678 function implementation from c_watch_location_expression.
1679 (unknown_language_data): Delete la_watch_location_expression
1680 initializer.
1681 (auto_language_data): Likewise.
1682 * language.h (language_data): Delete la_watch_location_expression
1683 field.
1684 (language_defn::watch_location_expression): Declare new member
1685 function.
1686 * m2-lang.c (m2_language_data): Delete
1687 la_watch_location_expression initializer.
1688 * objc-lang.c (objc_language_data): Likewise.
1689 * opencl-lang.c (opencl_language_data): Likewise.
1690 * p-lang.c (pascal_language_data): Likewise.
1691 * rust-lang.c (rust_watch_location_expression): Rename to
1692 rust_language::watch_location_expression.
1693 (rust_language_data): Delete la_watch_location_expression
1694 initializer.
1695 (rust_language::watch_location_expression): New member function,
1696 implementation from rust_watch_location_expression.
1697
7e56227d
AB
16982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1701 ada_language::collect_symbol_completion_matches.
1702 (ada_language_data): Delete la_collect_symbol_completion_matches
1703 initializer.
1704 (ada_language::collect_symbol_completion_matches): New member
1705 function, implementation from
1706 ada_collect_symbol_completion_matches.
1707 * c-lang.c (c_language_data): Delete
1708 la_collect_symbol_completion_matches initializer.
1709 (cplus_language_data): Likewise.
1710 (asm_language_data): Likewise.
1711 (minimal_language_data): Likewise.
1712 * d-lang.c (d_language_data): Likewise.
1713 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1714 f_language::collect_symbol_completion_matches.
1715 (f_language_data): Delete la_collect_symbol_completion_matches
1716 initializer.
1717 (f_language::collect_symbol_completion_matches) New member
1718 function, implementation from f_collect_symbol_completion_matches.
1719 * go-lang.c (go_language_data): Delete
1720 la_collect_symbol_completion_matches initializer.
1721 * language.c (unknown_language_data): Likewise.
1722 (auto_language_data): Likewise.
1723 * language.h (language_data): Delete
1724 la_collect_symbol_completion_matches field.
1725 (language_defn::collect_symbol_completion_matches): New member
1726 function.
1727 * m2-lang.c (m2_language_data): Delete
1728 la_collect_symbol_completion_matches initializer.
1729 * objc-lang.c (objc_language_data): Likewise.
1730 * opencl-lang.c (opencl_language_data): Likewise.
1731 * p-lang.c (pascal_language_data): Likewise.
1732 * rust-lang.c (rust_language_data): Likewise.
1733 * symtab.c (default_collect_symbol_completion_matches): Delete.
1734 (collect_symbol_completion_matches): Update call to
1735 collect_symbol_completion_matches.
1736 (collect_symbol_completion_matches_type): Likewise.
1737 * symtab.h (default_collect_symbol_completion_matches): Delete
1738 declaration.
1739
53fc67f8
AB
17402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1743 (ada_language_data): Delete la_word_break_characters initializer.
1744 (ada_language::word_break_characters): New member function.
1745 * c-lang.c (c_language_data): Delete la_word_break_characters
1746 initializer.
1747 (cplus_language_data): Likewise.
1748 (asm_language_data): Likewise.
1749 (minimal_language_data): Likewise.
1750 * completer.c: Update global comment.
1751 (advance_to_expression_complete_word_point): Update call to
1752 word_break_characters.
1753 (complete_files_symbols): Likewise.
1754 (complete_line_internal_1): Likewise.
1755 (default_completer_handle_brkchars): Likewise.
1756 (skip_quoted_chars): Likewise.
1757 * d-lang.c (d_language_data): Delete la_word_break_characters
1758 initializer.
1759 * f-lang.c (f_word_break_characters): Delete.
1760 (f_language_data): Delete la_word_break_characters initializer.
1761 (f_language::word_break_characters): New member function.
1762 * go-lang.c (go_language_data): Delete la_word_break_characters
1763 initializer.
1764 * language.c (unknown_language_data): Likewise.
1765 (auto_language_data): Likewise.
1766 * language.h (default_word_break_characters): Move declaration to
1767 earlier in the file.
1768 (language_data): Delete la_word_break_characters field.
1769 (language_defn::word_break_characters): New member function.
1770 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1771 initializer.
1772 * objc-lang.c (objc_language_data): Likewise.
1773 * opencl-lang.c (opencl_language_data): Likewise.
1774 * p-lang.c (pascal_language_data): Likewise.
1775 * rust-lang.c (rust_language_data): Likewise.
1776
c9debfb9
AB
17772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1780 (ada_language_data): Delete la_get_symbol_name_matcher
1781 initializer.
1782 (language_defn::get_symbol_name_matcher_inner): New member
1783 function.
1784 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1785 initializer.
1786 (cplus_language_data): Likewise.
1787 (cplus_language::get_symbol_name_matcher_inner): New member
1788 function.
1789 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1790 (minimal_language_data): Likewise.
1791 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1792 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1793 initializer.
1794 * dictionary.c (iter_match_first_hashed): Update call to
1795 get_symbol_name_matcher.
1796 (iter_match_next_hashed): Likewise.
1797 (iter_match_next_linear): Likewise.
1798 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1799 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1800 initializer.
1801 (f_language::get_symbol_name_matcher_inner): New member function.
1802 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1803 initializer.
1804 * language.c (default_symbol_name_matcher): Update header comment,
1805 make static.
1806 (language_defn::get_symbol_name_matcher): New definition.
1807 (language_defn::get_symbol_name_matcher_inner): Likewise.
1808 (get_symbol_name_matcher): Delete.
1809 (unknown_language_data): Delete la_get_symbol_name_matcher
1810 initializer.
1811 (auto_language_data): Likewise.
1812 * language.h (language_data): Delete la_get_symbol_name_matcher
1813 field.
1814 (language_defn::get_symbol_name_matcher): New member function.
1815 (language_defn::get_symbol_name_matcher_inner): Likewise.
1816 (default_symbol_name_matcher): Delete declaration.
1817 * linespec.c (find_methods): Update call to
1818 get_symbol_name_matcher.
1819 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1820 initializer.
1821 * minsyms.c (lookup_minimal_symbol): Update call to
1822 get_symbol_name_matcher.
1823 (iterate_over_minimal_symbols): Likewise.
1824 * objc-lang.c (objc_language_data): Delete
1825 la_get_symbol_name_matcher initializer.
1826 * opencl-lang.c (opencl_language_data): Likewise.
1827 * p-lang.c (pascal_language_data): Likewise.
1828 * psymtab.c (psymbol_name_matches): Update call to
1829 get_symbol_name_matcher.
1830 * rust-lang.c (rust_language_data): Delete
1831 la_get_symbol_name_matcher initializer.
1832 * symtab.c (symbol_matches_search_name): Update call to
1833 get_symbol_name_matcher.
1834 (compare_symbol_name): Likewise.
1835
9a49ad8c
AB
18362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * ada-lang.c (ada_language_data): Delete la_compute_program
1839 initializer.
1840 * c-lang.c (c_language_data): Likewise.
1841 (c_language::compute_program): New member function.
1842 (cplus_language_data): Delete la_compute_program initializer.
1843 (cplus_language::compute_program): New member function.
1844 (asm_language_data): Delete la_compute_program initializer.
1845 (minimal_language_data): Likewise.
1846 * c-lang.h (c_compute_program): Update comment.
1847 (cplus_compute_program): Likewise.
1848 * compile/compile-c-support.c (c_compute_program): Likewise.
1849 (cplus_compute_program): Likewise.
1850 * compile/compile.c (compile_to_object): Update call to
1851 la_compute_program.
1852 * d-lang.c (d_language_data): Delete la_compute_program
1853 initializer.
1854 * f-lang.c (f_language_data): Likewise.
1855 * go-lang.c (go_language_data): Likewise.
1856 * language.c (unknown_language_data): Likewise.
1857 (auto_language_data): Likewise.
1858 * language.h (language_data): Delete la_compute_program field.
1859 (language_defn::compute_program): New member function.
1860 * m2-lang.c (m2_language_data): Delete la_compute_program
1861 initializer.
1862 * objc-lang.c (objc_language_data): Likewise.
1863 * opencl-lang.c (opencl_language_data): Likewise.
1864 * p-lang.c (pascal_language_data): Likewise.
1865 * rust-lang.c (rust_language_data): Likewise.
1866
eff93b4d
AB
18672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * ada-lang.c (ada_language_data) Delete
1870 la_class_name_from_physname initializer.
1871 * c-lang.c (c_language_data): Likewise.
1872 (cplus_language_data): Likewise.
1873 (cplus_language::class_name_from_physname): New member function.
1874 (asm_language_data): Delete la_class_name_from_physname
1875 initializer.
1876 (minimal_language_data): Likewise.
1877 * d-lang.c (d_language_data): Likewise.
1878 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1879 method on language_defn class.
1880 (guess_full_die_structure_name): Likewise.
1881 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1882 initializer.
1883 * go-lang.c (go_language_data): Likewise.
1884 * language.c (language_class_name_from_physname): Delete.
1885 (unk_lang_class_name): Delete.
1886 (unknown_language_data): Delete la_class_name_from_physname
1887 initializer.
1888 (auto_language_data): Likewise.
1889 * language.h (language_data): Delete la_class_name_from_physname
1890 field.
1891 (language_defn::class_name_from_physname): New function.
1892 (language_class_name_from_physname): Delete declaration.
1893 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1894 initializer.
1895 * objc-lang.c (objc_language_data): Likewise.
1896 * opencl-lang.c (opencl_language_data): Likewise.
1897 * p-lang.c (pascal_language_data): Likewise.
1898 * rust-lang.c (rust_language_data): Likewise.
1899
de543742
TT
19002020-06-16 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-data.h (STATUS_NAME): New macro.
1903 * tui/tui-layout.c (tui_remove_some_windows)
1904 (initialize_known_windows, tui_register_window)
1905 (tui_layout_split::remove_windows, initialize_layouts)
1906 (tui_new_layout_command): Don't use hard-coded window names.
1907
a350efd4
TT
19082020-06-16 Tom Tromey <tom@tromey.com>
1909
1910 PR tui/25348:
1911 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1912 tui_initialize_readline. Only run once. Call rl_initialize.
1913 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1914 tui_initialize_readline.
1915 * tui/tui-io.c (tui_setup_io): Call
1916 tui_ensure_readline_initialized.
1917 * tui/tui-interp.c (tui_interp::init): Update.
1918
39ec0490
TT
19192020-06-16 Tom Tromey <tom@tromey.com>
1920
1921 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1922 Also preserve the status window.
1923
d2d1ea20
TT
19242020-06-16 Tom Tromey <tom@tromey.com>
1925
1926 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1927 where m_window==nullptr.
1928
66920317
TT
19292020-06-15 Tom Tromey <tromey@adacore.com>
1930
1931 * windows-nat.c (windows_nat::handle_output_debug_string):
1932 Update.
1933 (windows_nat::handle_ms_vc_exception): Update.
1934 * target.h (target_read_string): Change API.
1935 * target.c (target_read_string): Change API.
1936 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1937 Update.
1938 * solib-frv.c (frv_current_sos): Update.
1939 * solib-dsbt.c (dsbt_current_sos): Update.
1940 * solib-darwin.c (darwin_current_sos): Update.
1941 * linux-thread-db.c (inferior_has_bug): Update.
1942 * expprint.c (print_subexp_standard): Update.
1943 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1944 (ada_exception_message_1): Update.
1945
a5d871dd
TT
19462020-06-15 Tom Tromey <tromey@adacore.com>
1947
1948 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1949
670e35fa
TT
19502020-06-15 Tom Tromey <tromey@adacore.com>
1951
1952 * valprint.c (read_string): Update comment.
1953 * target.c (MIN): Remove.
1954 (target_read_string): Rewrite.
1955
f5272a3b
TT
19562020-06-15 Tom Tromey <tromey@adacore.com>
1957
1958 * corefile.c (read_memory_string): Remove.
1959 * ada-valprint.c (ada_value_print_ptr): Update.
1960 * ada-lang.h (ada_tag_name): Change return type.
1961 * ada-lang.c (type_from_tag): Update.
1962 (ada_tag_name_from_tsd): Change return type. Use
1963 target_read_string.
1964 (ada_tag_name): Likewise.
1965 * gdbcore.h (read_memory_string): Don't declare.
1966
2c074f49
HD
19672020-06-14 Hannes Domani <ssbssa@yahoo.de>
1968
1969 * symtab.c (rbreak_command): Ignore Windows drive colon.
1970
6a17d503
SM
19712020-06-12 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * NEWS: Mention removed GDBserver host support.
1974
453c733f
NC
19752020-06-12 Nelson Chu <nelson.chu@sifive.com>
1976
1977 * features/riscv/rebuild-csr-xml.sh: Updated.
1978
2b4e6a3f
TT
19792020-06-11 Tom Tromey <tom@tromey.com>
1980
1981 PR gdb/18318:
1982 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1983
4412332f
JG
19842020-06-09 Jonny Grant <jg@jguk.org>
19852020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * main.c (captured_main_1): Don't print new line after help.
1988 (print_gdb_help): add mailing list and IRC channel information
1989 to --help. Add new lines between items in the footer. Remove
1990 quotes around bug url.
1991
2f33032a
KS
19922020-06-11 Keith Seitz <keiths@redhat.com>
1993
1994 PR gdb/21356
1995 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1996 Resolve typedefs for type length calculations.
1997
7ab96794
TV
19982020-06-10 Tom de Vries <tdevries@suse.de>
1999
2000 PR ada/24713
2001 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2002 (write_psymbols): Enable .gdb_index for ada.
2003 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2004 ada.
2005
e5f3ece2
TV
20062020-06-10 Tom de Vries <tdevries@suse.de>
2007
2008 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2009 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2010 namei" instead of "const char *name" argument.
2011 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2012 dw2_symtab_iter_init.
2013
940da03e
SM
20142020-06-08 Simon Marchi <simon.marchi@efficios.com>
2015
2016 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2017 to use type::field and field::type instead.
2018
b6cdac4b
SM
20192020-06-08 Simon Marchi <simon.marchi@efficios.com>
2020
2021 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2022 to use field::type instead.
2023
5d14b6e5
SM
20242020-06-08 Simon Marchi <simon.marchi@efficios.com>
2025
2026 * gdbtypes.h (struct field) <type, set_type>: New methods.
2027 Rename `type` field to...
2028 <m_type>: ... this. Change references throughout to use type or
2029 set_type methods.
2030 (FIELD_TYPE): Use field::type. Change call sites that modify
2031 the field's type to use field::set_type instead.
2032
3d967001
SM
20332020-06-08 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2036 to use type::index_type instead.
2037
262abc0d
SM
20382020-06-08 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2041 methods.
2042 (TYPE_INDEX_TYPE): Use type::index_type.
2043 * gdbtypes.c (create_array_type_with_stride): Likewise.
2044
82836c92
TT
20452020-06-07 Tom Tromey <tom@tromey.com>
2046
2047 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2048 parameter.
2049 (generic_value_print): Update.
2050
940dace9
AB
20512020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 Revert commit 982a38f60b0.
2054 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2055
982a38f6
AB
20562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2059 avoid use after free.
2060
82f06518
TV
20612020-06-05 Tom de Vries <tdevries@suse.de>
2062
2063 * NEWS: Fix typos.
2064
f8c41851
SM
20652020-06-04 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2068 the per_bfd object.
2069 (dwarf2_read_debug_names): Likewise.
2070 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2071 object when re-using a per_bfd object with an index.
2072
f9b5d5ea
TV
20732020-06-03 Tom de Vries <tdevries@suse.de>
2074
2075 PR symtab/26046
2076 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2077 children for C++.
2078 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2079 DW_TAG_subprogram.
2080
f6eee2d0
AB
20812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * ada-lang.c (ada_language_data): Delete skip_trampoline
2084 initializer.
2085 * c-lang.c (c_language_data): Likewise.
2086 (cplus_language_data): Likewise.
2087 (cplus_language::skip_trampoline): New member function.
2088 (asm_language_data): Delete skip_trampoline initializer.
2089 (minimal_language_data): Likewise.
2090 * d-lang.c (d_language_data): Likewise.
2091 * f-lang.c (f_language_data): Likewise.
2092 * go-lang.c (go_language_data): Likewise.
2093 * language.c (unk_lang_trampoline): Delete function.
2094 (skip_language_trampoline): Update.
2095 (unknown_language_data): Delete skip_trampoline initializer.
2096 (auto_language_data): Likewise.
2097 * language.h (language_data): Delete skip_trampoline field.
2098 (language_defn::skip_trampoline): New function.
2099 * m2-lang.c (m2_language_data): Delete skip_trampoline
2100 initializer.
2101 * objc-lang.c (objc_skip_trampoline): Delete function, move
2102 implementation to objc_language::skip_trampoline.
2103 (objc_language_data): Delete skip_trampoline initializer.
2104 (objc_language::skip_trampoline): New member function with
2105 implementation from objc_skip_trampoline.
2106 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2107 initializer.
2108 * p-lang.c (pascal_language_data): Likewise.
2109 * rust-lang.c (rust_language_data): Likewise.
2110
0a50df5d
AB
21112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2112
2113 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2114 (ada_language::demangle): New member function.
2115 * c-lang.c (c_language_data): Delete la_demangle initializer.
2116 (cplus_language_data): Delete la_demangle initializer.
2117 (cplus_language::demangle): New member function.
2118 (asm_language_data): Delete la_demangle initializer.
2119 (minimal_language_data): Delete la_demangle initializer.
2120 * d-lang.c (d_language_data): Delete la_demangle initializer.
2121 (d_language::demangle): New member function.
2122 * f-lang.c (f_language_data): Delete la_demangle initializer.
2123 (f_language::demangle): New member function.
2124 * go-lang.c (go_language_data): Delete la_demangle initializer.
2125 (go_language::demangle): New member function.
2126 * language.c (language_demangle): Update.
2127 (unk_lang_demangle): Delete.
2128 (unknown_language_data): Delete la_demangle initializer.
2129 (unknown_language::demangle): New member function.
2130 (auto_language_data): Delete la_demangle initializer.
2131 (auto_language::demangle): New member function.
2132 * language.h (language_data): Delete la_demangle field.
2133 (language_defn::demangle): New function.
2134 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2135 * objc-lang.c (objc_language_data): Delete la_demangle
2136 initializer.
2137 (objc_language::demangle): New member function.
2138 * opencl-lang.c (opencl_language_data): Delete la_demangle
2139 initializer.
2140 * p-lang.c (pascal_language_data): Likewise.
2141 * rust-lang.c (rust_language_data): Likewise.
2142 (rust_language::demangle): New member function.
2143
fbfb0a46
AB
21442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * ada-lang.c (ada_language_data): Delete la_print_type
2147 initializer.
2148 (ada_language::print_type): New member function.
2149 * c-lang.c (c_language_data): Delete la_print_type initializer.
2150 (c_language::print_type): New member function.
2151 (cplus_language_data): Delete la_print_type initializer.
2152 (cplus_language::print_type): New member function.
2153 (asm_language_data): Delete la_print_type initializer.
2154 (asm_language::print_type): New member function.
2155 (minimal_language_data): Delete la_print_type initializer.
2156 (minimal_language::print_type): New member function.
2157 * d-lang.c (d_language_data): Delete la_print_type initializer.
2158 (d_language::print_type): New member function.
2159 * f-lang.c (f_language_data): Delete la_print_type initializer.
2160 (f_language::print_type): New member function.
2161 * go-lang.c (go_language_data): Delete la_print_type initializer.
2162 (go_language::print_type): New member function.
2163 * language.c (unk_lang_print_type): Delete.
2164 (unknown_language_data): Delete la_print_type initializer.
2165 (unknown_language::print_type): New member function.
2166 (auto_language_data): Delete la_print_type initializer.
2167 (auto_language::print_type): New member function.
2168 * language.h (language_data): Delete la_print_type field.
2169 (language_defn::print_type): New function.
2170 (LA_PRINT_TYPE): Update.
2171 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2172 (m2_language::print_type): New member function.
2173 * objc-lang.c (objc_language_data): Delete la_print_type
2174 initializer.
2175 (objc_language::print_type): New member function.
2176 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2177 to opencl_language::print_type.
2178 (opencl_language_data): Delete la_print_type initializer.
2179 (opencl_language::print_type): New member function, implementation
2180 from opencl_print_type.
2181 * p-lang.c (pascal_language_data): Delete la_print_type
2182 initializer.
2183 (pascal_language::print_type): New member function.
2184 * rust-lang.c (rust_print_type): Delete, implementation moved to
2185 rust_language::print_type.
2186 (rust_language_data): Delete la_print_type initializer.
2187 (rust_language::print_type): New member function, implementation
2188 from rust_print_type.
2189
6f827019
AB
21902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2193 implementation moves to...
2194 (ada_language::sniff_from_mangled_name): ...here. Update return
2195 type.
2196 (ada_language_data): Delete la_sniff_from_mangled_name
2197 initializer.
2198 * c-lang.c (c_language_data): Likewise.
2199 (cplus_language_data): Likewise.
2200 (cplus_language::sniff_from_mangled_name): New member function,
2201 implementation taken from gdb_sniff_from_mangled_name.
2202 (asm_language_data): Delete la_sniff_from_mangled_name
2203 initializer.
2204 (minimal_language_data): Likewise.
2205 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2206 implementation moves to cplus_language::sniff_from_mangled_name.
2207 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2208 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2209 moves to...
2210 (d_language::sniff_from_mangled_name): ...here.
2211 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2212 * f-lang.c (f_language_data): Likewise.
2213 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2214 moves to...
2215 (go_language::sniff_from_mangled_name): ...here.
2216 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2217 * language.c (language_sniff_from_mangled_name): Delete.
2218 (unknown_language_data): Delete la_sniff_from_mangled_name
2219 initializer.
2220 (auto_language_data): Likewise.
2221 * language.h (language_data): Delete la_sniff_from_mangled_name
2222 field.
2223 (language_defn::sniff_from_mangled_name): New function.
2224 (language_sniff_from_mangled_name): Delete declaration.
2225 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2226 field.
2227 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2228 implementation moves to...
2229 (objc_language::sniff_from_mangled_name): ...here.
2230 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2231 * opencl-lang.c (opencl_language_data): Likewise.
2232 * p-lang.c (pascal_language_data): Likewise.
2233 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2234 implementation moves to...
2235 (rust_language::sniff_from_mangled_name): ...here.
2236 (rust_language_data): Delete la_sniff_from_mangled_name
2237 initializer.
2238 * symtab.c (symbol_find_demangled_name): Call
2239 sniff_from_mangled_name member function.
2240
fb8006fd
AB
22412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2244 initializer.
2245 * c-lang.c (c_language_data): Likewise.
2246 (cplus_language_data): Likewise.
2247 (cplus_language::search_name_hash): New member function.
2248 (asm_language_data): Delete la_search_name_hash initializer.
2249 (minimal_language_data): Likewise.
2250 * d-lang.c (d_language_data): Likewise.
2251 * dictionary.c (default_search_name_hash): Rename to...
2252 (language_defn::search_name_hash): ...this.
2253 * f-lang.c (f_language_data): Likewise.
2254 (f_language::search_name_hash): New member function.
2255 * go-lang.c (go_language_data): Delete la_search_name_hash
2256 initializer.
2257 * language.c (unknown_language_data): Likewise.
2258 (auto_language_data): Likewise.
2259 * language.h (struct language_data): Delete la_search_name_hash
2260 field.
2261 (language_defn::search_name_hash): Declare new member function.
2262 (default_search_name_hash): Delete declaration.
2263 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2264 initializer.
2265 * objc-lang.c (objc_language_data): Likewise.
2266 * opencl-lang.c (opencl_language_data): Likewise.
2267 * p-lang.c (pascal_language_data): Likewise.
2268 * rust-lang.c (rust_language_data): Likewise.
2269 * symtab.c (search_name_hash): Update call.
2270
8e25bafe
AB
22712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2274 initializer.
2275 * c-lang.c (class compile_instance): Declare.
2276 (c_language_data): Delete la_get_compile_instance initializer.
2277 (c_language::get_compile_instance): New member function.
2278 (cplus_language_data): Delete la_get_compile_instance initializer.
2279 (cplus_language::get_compile_instance): New member function.
2280 (asm_language_data): Delete la_get_compile_instance initializer.
2281 (minimal_language_data): Likewise.
2282 * c-lang.h (c_get_compile_context): Update comment.
2283 (cplus_get_compile_context): Update comment.
2284 * compile/compile.c (compile_to_object): Update calls, don't rely
2285 on function pointer being NULL.
2286 * d-lang.c (d_language_data): Delete la_get_compile_instance
2287 initializer.
2288 * f-lang.c (f_language_data): Likewise.
2289 * go-lang.c (go_language_data): Likewise.
2290 * language.c (unknown_language_data): Likewise.
2291 (auto_language_data): Likewise.
2292 * language.h (language_data): Delete la_get_compile_instance field.
2293 (language_defn::get_compile_instance): New member function.
2294 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2295 initializer.
2296 * objc-lang.c (objc_language_data): Likewise.
2297 * opencl-lang.c (opencl_language_data): Likewise.
2298 * p-lang.c (pascal_language_data): Likewise.
2299 * rust-lang.c (rust_language_data): Likewise.
2300
4009ee92
AB
23012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * ada-lang.c (ada_add_all_symbols): Update comment.
2304 (ada_iterate_over_symbols): Delete, move implementation to...
2305 (ada_language::iterate_over_symbols): ...here, a new member
2306 function, rewrite to use range based for loop.
2307 (ada_language_data): Delete la_iterate_over_symbols initializer.
2308 * c-lang.c (c_language_data): Likewise.
2309 (cplus_language_data): Likewise.
2310 (asm_language_data): Likewise.
2311 (minimal_language_data): Likewise.
2312 * d-lang.c (d_language_data): Likewise.
2313 * f-lang.c (f_language_data): Likewise.
2314 * go-lang.c (go_language_data): Likewise.
2315 * language.c (unknown_language_data): Likewise.
2316 (auto_language_data): Likewise.
2317 * language.h (language_data): Delete la_iterate_over_symbols field.
2318 (language_defn::iterate_over_symbols): New member function.
2319 (LA_ITERATE_OVER_SYMBOLS): Update.
2320 * linespec.c (iterate_over_all_matching_symtabs): Update.
2321 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2322 initializer.
2323 * objc-lang.c (objc_language_data): Likewise.
2324 * opencl-lang.c (opencl_language_data): Likewise.
2325 * p-lang.c (pascal_language_data): Likewise.
2326 * rust-lang.c (rust_language_data): Likewise.
2327
54f4ca46
AB
23282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * ada-lang.c (ada_language_data): Delete
2331 la_lookup_transparent_type initializer.
2332 * c-lang.c (c_language_data): Likewise.
2333 (cplus_language_data): Likewise.
2334 (cplus_language::lookup_transparent_type): New member function.
2335 (asm_language_data): Delete la_lookup_transparent_type
2336 initializer.
2337 (minimal_language_data): Likewise.
2338 * d-lang.c (d_language_data): Likewise.
2339 * f-lang.c (f_language_data): Likewise.
2340 * go-lang.c (go_language_data): Likewise.
2341 * language.c (unknown_language_data): Likewise.
2342 (auto_language_data): Likewise.
2343 * language.h (struct language_data): Delete
2344 la_lookup_transparent_type field.
2345 (language_defn::lookup_transparent_type): New member function.
2346 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2347 initializer.
2348 * objc-lang.c (objc_language_data): Likewise.
2349 * opencl-lang.c (opencl_language_data): Likewise.
2350 * p-lang.c (pascal_language_data): Likewise.
2351 * rust-lang.c (rust_language_data): Likewise.
2352 * symtab.c (symbol_matches_domain): Update call.
2353
1fb314aa
AB
23542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 * ada-lang.c (ada_language_arch_info): Delete function, move
2357 implementation to...
2358 (ada_language::language_arch_info): ...here, a new member
2359 function.
2360 (ada_language_data): Delete la_language_arch_info.
2361 * c-lang.c (c_language_data): Likewise.
2362 (c_language::language_arch_info): New member function.
2363 (cplus_language_arch_info): Delete function, move
2364 implementation to...
2365 (cplus_language::language_arch_info): ...here, a new member
2366 function.
2367 (cplus_language_data): Delete la_language_arch_info.
2368 (asm_language_data): Likewise.
2369 (asm_language::language_arch_info): New member function.
2370 (minimal_language_data): Delete la_language_arch_info.
2371 (minimal_language::language_arch_info): New member function.
2372 * d-lang.c (d_language_arch_info): Delete function, move
2373 implementation to...
2374 (d_language::language_arch_info): ...here, a new member
2375 function.
2376 (d_language_data): Delete la_language_arch_info.
2377 * f-lang.c (f_language_arch_info): Delete function, move
2378 implementation to...
2379 (f_language::language_arch_info): ...here, a new member
2380 function.
2381 (f_language_data): Delete la_language_arch_info.
2382 * go-lang.c (go_language_arch_info): Delete function, move
2383 implementation to...
2384 (go_language::language_arch_info): ...here, a new member
2385 function.
2386 (go_language_data): Delete la_language_arch_info.
2387 * language.c (unknown_language_data): Likewise.
2388 (unknown_language::language_arch_info): New member function.
2389 (auto_language_data): Delete la_language_arch_info.
2390 (auto_language::language_arch_info): New member function.
2391 (language_gdbarch_post_init): Update call to
2392 la_language_arch_info.
2393 * language.h (language_data): Delete la_language_arch_info
2394 function pointer.
2395 (language_defn::language_arch_info): New function.
2396 * m2-lang.c (m2_language_arch_info): Delete function, move
2397 implementation to...
2398 (m2_language::language_arch_info): ...here, a new member
2399 function.
2400 (m2_language_data): Delete la_language_arch_info.
2401 * objc-lang.c (objc_language_arch_info): Delete function, move
2402 implementation to...
2403 (objc_language::language_arch_info): ...here, a new member
2404 function.
2405 (objc_language_data): Delete la_language_arch_info.
2406 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2407 implementation to...
2408 (opencl_language::language_arch_info): ...here, a new member
2409 function.
2410 (opencl_language_data): Delete la_language_arch_info.
2411 * p-lang.c (pascal_language_arch_info): Delete function, move
2412 implementation to...
2413 (pascal_language::language_arch_info): ...here, a new member
2414 function.
2415 (pascal_language_data): Delete la_language_arch_info.
2416 * rust-lang.c (rust_language_arch_info): Delete function, move
2417 implementation to...
2418 (rust_language::language_arch_info): ...here, a new member
2419 function.
2420 (rust_language_data): Delete la_language_arch_info.
2421
48448202
AB
24222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2425 initializer.
2426 * c-lang.c (c_language_data): Likewise.
2427 (cplus_language_data): Likewise.
2428 (cplus_language::pass_by_reference_info): New method.
2429 (asm_language_data): Delete la_pass_by_reference initializer.
2430 (minimal_language_data): Likewise.
2431 * cp-abi.c (cp_pass_by_reference): Remove use of
2432 default_pass_by_reference.
2433 * d-lang.c (d_language_data): Likewise.
2434 * f-lang.c (f_language_data): Likewise.
2435 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2436 default_pass_by_reference.
2437 * go-lang.c (go_language_data): Likewise.
2438 * language.c (language_pass_by_reference): Update.
2439 (default_pass_by_reference): Delete.
2440 (unknown_language_data): Delete la_pass_by_reference
2441 initializer.
2442 (auto_language_data): Likewise.
2443 * language.h (struct language_data): Delete la_pass_by_reference
2444 field.
2445 (language_defn::pass_by_reference_info): New member function.
2446 (default_pass_by_reference): Delete declaration.
2447 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2448 initializer.
2449 * objc-lang.c (objc_language_data): Likewise.
2450 * opencl-lang.c (opencl_language_data): Likewise.
2451 * p-lang.c (pascal_language_data): Likewise.
2452 * rust-lang.c (rust_language_data): Likewise.
2453
15e5fd35
AB
24542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * ada-lang.c (ada_read_var_value): Delete function, move
2457 implementation to...
2458 (ada_language::read_var_value): ...here.
2459 (ada_language_data): Delete la_read_var_value initializer.
2460 * c-lang.c (c_language_data): Likewise.
2461 (cplus_language_data): Likewise.
2462 (minimal_language_data): Likewise.
2463 * d-lang.c (d_language_data): Likewise.
2464 * f-lang.c (f_language_data): Likewise.
2465 * findvar.c (default_read_var_value): Rename to...
2466 (language_defn::read_var_value): ...this.
2467 * findvar.c (read_var_value): Update header comment, and change to
2468 call member function instead of function pointer.
2469 * go-lang.c (go_language_data): Likewise.
2470 * language.c (unknown_language_data): Delete la_read_var_value
2471 initializer.
2472 (auto_language_data): Likewise.
2473 * language.h (struct language_data): Delete la_read_var_value
2474 field.
2475 (language_defn::read_var_value): New member function.
2476 (default_read_var_value): Delete declaration.
2477 * m2-lang.c (m2_language_data): Delete la_read_var_value
2478 initializer.
2479 * objc-lang.c (objc_language_data): Likewise.
2480 * opencl-lang.c (opencl_language_data): Likewise.
2481 * p-lang.c (pascal_language_data): Likewise.
2482 * rust-lang.c (rust_language_data): Likewise.
2483 * value.h (default_read_var_value): Delete declaration.
2484
5bd40f2a
AB
24852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * ada-lang.c (ada_print_array_index): Delete function, move
2488 implementation to...
2489 (ada_language::print_array_index): ...here.
2490 (ada_language_data): Delete la_print_array_index initializer.
2491 * c-lang.c (c_language_data): Likewise.
2492 (cplus_language_data): Likewise.
2493 (minimal_language_data): Likewise.
2494 * d-lang.c (d_language_data): Likewise.
2495 * f-lang.c (f_language_data): Likewise.
2496 * go-lang.c (go_language_data): Likewise.
2497 * language.c (default_print_array_index): Delete function, move
2498 implementation to...
2499 (language_defn::print_array_index): ...here.
2500 (unknown_language_data): Delete la_print_array_index initializer.
2501 (auto_language_data): Likewise.
2502 * language.h (struct language_data): Delete la_print_array_index
2503 field.
2504 (language_defn::print_array_index): New member function.
2505 (LA_PRINT_ARRAY_INDEX): Update.
2506 (default_print_array_index): Delete declaration.
2507 * m2-lang.c (m2_language_data): Delete la_print_array_index
2508 initializer.
2509 * objc-lang.c (objc_language_data): Likewise.
2510 * opencl-lang.c (opencl_language_data): Likewise.
2511 * p-lang.c (pascal_language_data): Likewise.
2512 * rust-lang.c (rust_language_data): Likewise.
2513
0874fd07
AB
25142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * gdb/ada-lang.c (ada_language_defn): Convert to...
2517 (ada_language_data): ...this.
2518 (class ada_language): New class.
2519 (ada_language_defn): New static global.
2520 * gdb/c-lang.c (c_language_defn): Convert to...
2521 (c_language_data): ...this.
2522 (class c_language): New class.
2523 (c_language_defn): New static global.
2524 (cplus_language_defn): Convert to...
2525 (cplus_language_data): ...this.
2526 (class cplus_language): New class.
2527 (cplus_language_defn): New static global.
2528 (asm_language_defn): Convert to...
2529 (asm_language_data): ...this.
2530 (class asm_language): New class.
2531 (asm_language_defn): New static global.
2532 (minimal_language_defn): Convert to...
2533 (minimal_language_data): ...this.
2534 (class minimal_language): New class.
2535 (minimal_language_defn): New static global.
2536 * gdb/d-lang.c (d_language_defn): Convert to...
2537 (d_language_data): ...this.
2538 (class d_language): New class.
2539 (d_language_defn): New static global.
2540 * gdb/f-lang.c (f_language_defn): Convert to...
2541 (f_language_data): ...this.
2542 (class f_language): New class.
2543 (f_language_defn): New static global.
2544 * gdb/go-lang.c (go_language_defn): Convert to...
2545 (go_language_data): ...this.
2546 (class go_language): New class.
2547 (go_language_defn): New static global.
2548 * gdb/language.c (unknown_language_defn): Remove declaration.
2549 (current_language): Initialize to nullptr, real initialization is
2550 moved to _initialize_language.
2551 (languages): Delete global.
2552 (language_defn::languages): Define.
2553 (set_language_command): Use language_defn::languages.
2554 (set_language): Likewise.
2555 (range_error): Likewise.
2556 (language_enum): Likewise.
2557 (language_def): Likewise.
2558 (add_set_language_command): Use language_def::languages for the
2559 language list, and language_def to lookup language pointers.
2560 (skip_language_trampoline): Use language_defn::languages.
2561 (unknown_language_defn): Convert to...
2562 (unknown_language_data): ...this.
2563 (class unknown_language): New class.
2564 (unknown_language_defn): New static global.
2565 (auto_language_defn): Convert to...
2566 (auto_language_data): ...this.
2567 (class auto_language): New class.
2568 (auto_language_defn): New static global.
2569 (language_gdbarch_post_init): Use language_defn::languages.
2570 (_initialize_language): Initialize current_language.
2571 * gdb/language.h (struct language_defn): Rename to...
2572 (struct language_data): ...this.
2573 (struct language_defn): New.
2574 (auto_language_defn): Delete.
2575 (unknown_language_defn): Delete.
2576 (minimal_language_defn): Delete.
2577 (ada_language_defn): Delete.
2578 (asm_language_defn): Delete.
2579 (c_language_defn): Delete.
2580 (cplus_language_defn): Delete.
2581 (d_language_defn): Delete.
2582 (f_language_defn): Delete.
2583 (go_language_defn): Delete.
2584 (m2_language_defn): Delete.
2585 (objc_language_defn): Delete.
2586 (opencl_language_defn): Delete.
2587 (pascal_language_defn): Delete.
2588 (rust_language_defn): Delete.
2589 * gdb/m2-lang.c (m2_language_defn): Convert to...
2590 (m2_language_data): ...this.
2591 (class m2_language): New class.
2592 (m2_language_defn): New static global.
2593 * gdb/objc-lang.c (objc_language_defn): Convert to...
2594 (objc_language_data): ...this.
2595 (class objc_language): New class.
2596 (objc_language_defn): New static global.
2597 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2598 (opencl_language_data): ...this.
2599 (class opencl_language): New class.
2600 (opencl_language_defn): New static global.
2601 * gdb/p-lang.c (pascal_language_defn): Convert to...
2602 (pascal_language_data): ...this.
2603 (class pascal_language): New class.
2604 (pascal_language_defn): New static global.
2605 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2606 language pointer, update comment format.
2607 * gdb/rust-lang.c (rust_language_defn): Convert to...
2608 (rust_language_data): ...this.
2609 (class rust_language): New class.
2610 (rust_language_defn): New static global.
2611
1313c56e
AB
26122020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2615 member variable.
2616 <m_stmt_at_address>: New member variable.
2617 (lnp_state_machine::record_line): Don't record some lines, update
2618 tracking of is_stmt at the same address.
2619 (lnp_state_machine::lnp_state_machine): Initialise new member
2620 variables.
2621
b7ed9f3d
ST
26222020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2623
2624 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2625 "-include gnu-nat-mig.h".
2626 * gnu-nat-mig.h: New file.
2627 * gnu-nat.c: Include "gnu-nat-mig.h".
2628 (exc_server, msg_reply_server, notify_server,
2629 process_reply_server): Remove declarations.
2630
14a8ad62
ST
26312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2632
2633 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2634 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2635 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2636 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2637 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2638 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2639 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2640 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2641 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2642 to gnu_nat_target class.
2643 * gnu-nat.c: Likewise.
2644 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2645 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2646 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2647 object.
2648 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2649 instead of `gnu_target'.
2650
0af5e106
ST
26512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2652
2653 * i386-gnu-tdep.c: Include "gdbcore.h"
2654 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2655 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2656 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2657 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2658 i386_gnu_sigcontext_addr): New functions
2659 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2660 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2661 tdep.
2662
078f2fc9
ST
26632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2664
2665 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2666 before fork_inferior call. Avoid calling it if target_is_pushed returns
2667 true.
2668
53dff92c
ST
26692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2670
2671 * gnu-nat.h (gnu_target): New variable declaration.
2672 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2673 gnu_target.
2674 * gnu-nat.c (gnu_target): New variable.
2675 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2676 add_thread_silent, and add_thread calls.
2677 (gnu_nat_target::create_inferior): Pass gnu_target to
2678 add_thread_silent, thread_change_ptid call.
2679 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2680 call.
2681
5a8b8627
ST
26822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2683
2684 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2685 (gnu_nat_target::find_memory_regions): Remove unused
2686 `old_address' variable.
2687
366f550a
ST
26882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2689
2690 * gnu-nat.c: Include "gdbarch.h".
2691
f14871bf
ST
26922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2693
2694 * reply_mig_hack.awk (Error return): Cast function through
2695 void *, to bypass compiler function call check.
2696
c6887cfb
ST
26972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2698
2699 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2700 $(srcdir)/reply_mig_hack.awk.
2701
6930bffe
ST
27022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2703
2704 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2705
112c22ed
JG
27062020-05-30 Jonny Grant <jg@jguk.org>
2707
2708 * configure.ac (ACX_BUGURL): change bug URL to https.
2709
f68f85b5
PA
27102020-05-30 Pedro Alves <palves@redhat.com>
2711
2712 * cp-support.c (replace_typedefs_template): New.
2713 (replace_typedefs_qualified_name): Handle
2714 DEMANGLE_COMPONENT_TEMPLATE.
2715
976ca316
SM
27162020-05-29 Simon Marchi <simon.marchi@efficios.com>
2717
2718 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2719 dwarf2/index-cache.h, dwarf2/index-write.c,
2720 dwarf2/index-write.h, dwarf2/line-header.c,
2721 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2722 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2723 variables and fields from `dwarf2_per_objfile` to just
2724 `per_objfile` throughout.
2725
989ade05
SM
27262020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2729 <push_dwarf_reg_entry_value>: Add comment.
2730
c47bae85
KB
27312020-05-28 Kevin Buettner <kevinb@redhat.com>
2732 Keith Seitz <keiths@redhat.com>
2733
2734 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2735 instead of PyEval_ReleaseLock.
2736 (class gdbpy_gil): Move to earlier in file.
2737 (finalize_python): Set gdb_python_initialized.
2738 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2739 when not initialized.
2740
44486dcf
SM
27412020-05-28 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2744 <push_dwarf_reg_entry_value>: Remove assert. Override
2745 per_objfile with caller_per_objfile.
2746
f030440d
TV
27472020-05-28 Tom de Vries <tdevries@suse.de>
2748
2749 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2750 PR gold/15646 workaround to symbol kind "type".
2751
f0fbb768
TT
27522020-05-27 Tom Tromey <tromey@adacore.com>
2753
2754 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2755
af0b2a3e
TT
27562020-05-27 Tom Tromey <tromey@adacore.com>
2757
2758 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2759 Use htab_find_with_hash.
2760 <add_abbrev>: Remove "abbrev_number" parameter.
2761 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2762 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2763 (hash_abbrev): Add comment.
2764 (abbrev_table::lookup_abbrev): Move to header file.
2765 (abbrev_table::read): Update.
2766
7d00ffec
TT
27672020-05-27 Tom Tromey <tromey@adacore.com>
2768
2769 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2770 method.
2771 <canonical_name>: New member.
2772 <raw_name>: Rename from "name".
2773 (partial_die_info): Initialize canonical_name.
2774 (scan_partial_symbols): Check raw_name.
2775 (partial_die_parent_scope, partial_die_full_name)
2776 (add_partial_symbol, add_partial_subprogram)
2777 (add_partial_enumeration, load_partial_dies): Use "name" method.
2778 (partial_die_info::name): New method.
2779 (partial_die_info::read, guess_partial_die_structure_name)
2780 (partial_die_info::fixup): Update.
2781
697bba18
TT
27822020-05-27 Tom Tromey <tromey@adacore.com>
2783
2784 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2785 <get_ref_die_offset>: Inline.
2786 <get_ref_die_offset_complaint>: New method.
2787 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2788 (attribute::get_ref_die_offset_complaint): Rename from
2789 get_ref_die_offset. Just issue complaint.
2790
c17ace43
HD
27912020-05-27 Hannes Domani <ssbssa@yahoo.de>
2792
2793 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2794
96445f0b
HD
27952020-05-27 Hannes Domani <ssbssa@yahoo.de>
2796
2797 * exec.c (exec_file_attach): Use errno value of first openp failure.
2798
ac637ec3
HD
27992020-05-27 Hannes Domani <ssbssa@yahoo.de>
2800
2801 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2802 Don't close thread handle.
2803
17ee85fc
TT
28042020-05-27 Tom Tromey <tom@tromey.com>
2805 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2808 shared_ptr.
2809 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2810 member.
2811 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2812 dwarf2_per_bfd_objfile_data_key>: New globals.
2813 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2814 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2815 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2816 shared.
2817 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2818 short-circuit when sharing.
2819 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2820 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2821
39b16f87
SM
28222020-05-27 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2825 to...
2826 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2827 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2828
fcf23d5b
SM
28292020-05-27 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2832 build_name_components, find_name_components_bounds>:
2833 Add per_objfile parameter.
2834 (struct mapped_index) <symbol_name_at>: Likewise.
2835 (struct mapped_debug_names): Remove constructor.
2836 <dwarf2_per_objfile>: Remove field.
2837 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2838 (mapped_index_base::find_name_components_bounds,
2839 mapped_index_base::build_name_components,
2840 dw2_expand_symtabs_matching_symbol): Likewise.
2841 (class mock_mapped_index) <symbol_name_at>: Likewise.
2842 (check_match): Likewise.
2843 (check_find_bounds_finds): Likewise.
2844 (test_mapped_index_find_name_component_bounds): Update.
2845 (CHECK_MATCH): Update.
2846 (dw2_expand_symtabs_matching): Update.
2847 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2848 per_objfile parameter.
2849 <find_vec_in_debug_names>: Likewise.
2850 <m_per_objfile>: New field.
2851 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2852 parameter.
2853 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2854 (dw2_debug_names_iterator::next): Update.
2855 (dw2_debug_names_lookup_symbol): Update.
2856 (dw2_debug_names_expand_symtabs_for_function): Update.
2857 (dw2_debug_names_map_matching_symbols): Update.
2858 (dw2_debug_names_expand_symtabs_matching): Update.
2859 (dwarf2_read_debug_names): Update.
2860
7188ed02
SM
28612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2864 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2865 move to dwarf2_per_objfile.
2866 <read_in_chain>: Remove.
2867 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2868 remove_all_cus, age_comp_units>: New methods.
2869 <m_dwarf2_cus>: New member.
2870 (struct dwarf2_per_cu_data) <cu>: Remove.
2871 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2872 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2873 moved to methods of dwarf2_per_objfile.
2874 (dwarf2_clear_marks): Remove.
2875 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2876 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2877 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2878 (dwarf2_per_objfile::remove_all_cus): New.
2879 (class free_cached_comp_units) <~free_cached_comp_units>:
2880 Update.
2881 (load_cu): Update.
2882 (dw2_do_instantiate_symtab): Adjust.
2883 (fill_in_sig_entry_from_dwo_entry): Adjust.
2884 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2885 (cutu_reader::cutu_reader): Likewise.
2886 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2887 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2888 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2889 and dwarf2_per_objfile::age_comp_units.
2890 (load_partial_comp_unit): Update.
2891 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2892 (process_queue): Likewise.
2893 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2894 backlink.
2895 (dwarf2_read_addr_index): Likewise.
2896 (follow_die_offset): Likewise.
2897 (dwarf2_fetch_die_loc_sect_off): Likewise.
2898 (dwarf2_fetch_constant_bytes): Likewise.
2899 (dwarf2_fetch_die_type_sect_off): Likewise.
2900 (follow_die_sig_1): Likewise.
2901 (load_full_type_unit): Likewise.
2902 (read_signatured_type): Likewise.
2903 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2904 (dwarf2_cu::~dwarf2_cu): Remove.
2905 (dwarf2_per_objfile::get_cu): New.
2906 (dwarf2_per_objfile::set_cu): New.
2907 (age_cached_comp_units): Rename to...
2908 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2909 to std::unordered_map.
2910 (free_one_cached_comp_unit): Rename to...
2911 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2912 to std::unordered_map.
2913 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2914 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2915 a dwarf2_per_objfile in data.
2916 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2917 (dwarf2_clear_marks): Remove.
2918
2e671100
SM
29192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2922 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2923 (init_tu_and_read_dwo_dies): Likewise.
2924 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2925 (cutu_reader::cutu_reader): Likewise.
2926 (load_partial_comp_unit): Likewise.
2927 (process_psymtab_comp_unit): Update.
2928 (build_type_psymtabs_1): Update.
2929 (process_skeletonless_type_unit): Update.
2930 (load_full_comp_unit): Update.
2931 (find_partial_die): Update.
2932 (dwarf2_read_addr_index): Update.
2933 (read_signatured_type): Update.
2934
2e6a9f79
SM
29352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2938 m_header_read_in>: New fields.
2939 <get_header>: New method.
2940 * dwarf2/read.c (per_cu_header_read_in): Remove.
2941 (dwarf2_per_cu_data::get_header): New.
2942 (dwarf2_per_cu_data::addr_size): Update.
2943 (dwarf2_per_cu_data::offset_size): Update.
2944 (dwarf2_per_cu_data::ref_addr_size): Update.
2945
1b555f17
SM
29462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2949 (dw2_do_instantiate_symtab): Update.
2950 (queue_and_load_all_dwo_tus): Change parameter from
2951 dwarf2_per_cu_data to dwarf2_cu.
2952 (dwarf2_fetch_die_loc_sect_off): Update.
2953 (dwarf2_fetch_constant_bytes): Update.
2954 (dwarf2_fetch_die_type_sect_off): Update.
2955
8fc0b21d
SM
29562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * dwarf2/read.c (process_full_comp_unit,
2959 process_full_type_unit): Remove per_cu, per_objfile paramters.
2960 Add dwarf2_cu parameter.
2961 (process_queue): Update.
2962
168c9250
SM
29632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * dwarf2/read.c (create_cu_from_index_list): Replace
2966 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2967 (create_cus_from_index_list): Likewise.
2968 (create_cus_from_index): Likewise.
2969 (create_signatured_type_table_from_index): Likewise.
2970 (create_cus_from_debug_names_list): Likewise.
2971 (create_cus_from_debug_names): Likewise.
2972 (dwarf2_read_gdb_index): Update.
2973 (dwarf2_read_debug_names): Update.
2974
e286671b
TT
29752020-05-27 Tom Tromey <tom@tromey.com>
2976 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * dwarf2/read.h (struct dwarf2_per_objfile)
2979 <get_type_for_signatured_type, set_type_for_signatured_type>:
2980 New methods.
2981 <m_type_map>: New member.
2982 (struct signatured_type) <type>: Remove.
2983 * dwarf2/read.c
2984 (dwarf2_per_objfile::get_type_for_signatured_type,
2985 dwarf2_per_objfile::set_type_for_signatured_type): New.
2986 (get_signatured_type): Use new methods.
2987
8adb8487
TT
29882020-05-27 Tom Tromey <tom@tromey.com>
2989 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2992 (struct dwarf2_per_objfile) <type_units>: New member.
2993 <get_type_unit_group_unshareable>: New method.
2994 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2995 num_symtabs, symtabs>: Remove; move to
2996 type_unit_group_unshareable.
2997 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2998 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2999 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3000
127bbf4b
SM
30012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * dwarf2/read.h (struct dwarf2_per_cu_data):
3004 <dwarf2_per_objfile>: Remove.
3005 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3006 dwarf2_per_objfile.
3007 (create_signatured_type_table_from_index): Likewise.
3008 (create_signatured_type_table_from_debug_names): Likewise.
3009 (create_debug_type_hash_table): Likewise.
3010 (fill_in_sig_entry_from_dwo_entry): Likewise.
3011 (create_type_unit_group): Likewise.
3012 (read_comp_units_from_section): Likewise.
3013 (create_cus_hash_table): Likewise.
3014
f6e649dd
SM
30152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3018 dwarf2_per_cu_data::dwarf2_per_objfile.
3019 (compute_compunit_symtab_includes): Likewise.
3020 (dwarf2_cu::start_symtab): Likewise.
3021
aa66c379
SM
30222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3025 parameter.
3026 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3027 (read_namespace_alias): Update.
3028 (lookup_die_type): Update.
3029 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3030 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3031 Update.
3032 (disassemble_dwarf_expression): Update.
3033
120ce1b5
SM
30342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * dwarf2/read.h (struct dwarf2_queue_item): Add
3037 dwarf2_per_objfile parameter, assign new parameter.
3038 <per_objfile>: New field.
3039 * dwarf2/read.c (free_one_cached_comp_unit): Add
3040 dwarf2_per_objfile parameter.
3041 (queue_comp_unit): Likewise.
3042 (dw2_do_instantiate_symtab): Update.
3043 (process_psymtab_comp_unit): Update.
3044 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3045 (process_imported_unit_die): Update.
3046 (queue_and_load_dwo_tu): Update.
3047 (follow_die_offset): Update.
3048 (follow_die_sig_1): Update.
3049
9f47c707
SM
30502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3053 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3054 (read_call_site_scope): Assign per_objfile.
3055 (dwarf2_per_cu_data::objfile): Remove.
3056 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3057 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3058 dwarf2_per_objfile parameter.
3059 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3060 dwarf2_per_objfile parameter.
3061 (dwarf_expr_reg_to_entry_parameter): Add output
3062 dwarf2_per_objfile parameter.
3063 (locexpr_get_frame_base): Update.
3064 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3065 <push_dwarf_reg_entry_value>: Update.
3066 <call_site_to_target_addr>: Update.
3067 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3068 parameter.
3069 (value_of_dwarf_reg_entry): Update.
3070 (rw_pieced_value): Update.
3071 (indirect_synthetic_pointer): Update.
3072 (dwarf2_evaluate_property): Update.
3073 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3074 parameter.
3075 (locexpr_read_variable): Update.
3076 (locexpr_get_symbol_read_needs): Update.
3077 (loclist_read_variable): Update.
3078
14095eb3
SM
30792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3083 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3084 parameter.
3085 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3086 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3087 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3088 parameter.
3089 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3090 sect_variable_value): Add dwarf2_per_objfile parameter.
3091 (class dwarf_evaluate_loc_desc) <dwarf_call,
3092 dwarf_variable_value>: Update.
3093 (fetch_const_value_from_synthetic_pointer): Add
3094 dwarf2_per_objfile parameter.
3095 (fetch_const_value_from_synthetic_pointer): Update.
3096 (coerced_pieced_ref): Update.
3097 (class symbol_needs_eval_context) <dwarf_call,
3098 dwarf_variable_value>: Update.
3099 (dwarf2_compile_expr_to_ax): Update.
3100
3c3cd3d4
SM
31012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3104 parameter.
3105 (dwarf2_evaluate_loc_desc_full): Update.
3106
82ca3f51
SM
31072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3110 parameter.
3111 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3112 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3113 dwarf2_per_objfile parameter.
3114 (decode_debug_loc_dwo_addresses): Likewise.
3115 (dwarf2_find_location_expression): Update.
3116 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3117 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3118 parameter.
3119 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3120 parameter.
3121 (locexpr_describe_location_1): Likewise.
3122 (locexpr_describe_location): Update.
3123
4b167ea1
SM
31242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3127 Remove.
3128 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3129 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3130 (dwarf2_compile_property_to_c): Update.
3131 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3132 use text offset from objfile.
3133 (locexpr_tracepoint_var_ref): Update.
3134 (locexpr_generate_c_location): Update.
3135 (loclist_describe_location): Update.
3136 (loclist_tracepoint_var_ref): Update.
3137 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3138 dwarf2_per_objfile parameter.
3139 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3140 use text offset from objfile.
3141 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3142
89b07335
SM
31432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3144
3145 * dwarf2/expr.h (struct dwarf_expr_context)
3146 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3147 <offset>: Remove.
3148 <per_objfile>: New member.
3149 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3150 dwarf2_per_objfile parameter. Don't set offset, set
3151 per_objfile.
3152 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3153 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3154 a dwarf2_per_objfile object instead of an offset.
3155 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3156 constructor.
3157 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3158 to dwarf2_expr_executor constructor. Don't set offset.
3159 (dwarf2_fetch_cfa_info): Update.
3160 (struct dwarf2_frame_cache) <text_offset>: Remove.
3161 <per_objfile>: New field.
3162 (dwarf2_frame_cache): Update.
3163 (dwarf2_frame_prev_register): Update.
3164 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3165 <dwarf_evaluate_loc_desc>: Add constructor.
3166 (dwarf2_evaluate_loc_desc_full): Update.
3167 (dwarf2_locexpr_baton_eval): Update.
3168 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3169 Add constructor.
3170 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3171
293e7e51
SM
31722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3175 addr_sized_int_type>: Move to dwarf2_cu.
3176 <int_type>: Move to dwarf2_per_objfile.
3177 (struct dwarf2_per_objfile) <int_type>: Move here.
3178 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3179 addr_sized_int_type>: Move here.
3180 (read_func_scope): Update.
3181 (read_array_type): Update.
3182 (read_tag_string_type): Update.
3183 (attr_to_dynamic_prop): Update.
3184 (dwarf2_per_cu_data::int_type): Rename to...
3185 (dwarf2_per_objfile::int_type): ... this.
3186 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3187 (dwarf2_cu::addr_sized_int_type): ... this.
3188 (read_subrange_type): Update.
3189 (dwarf2_per_cu_data::addr_type): Rename to...
3190 (dwarf2_cu::addr_type): ... this.
3191 (set_die_type): Update.
3192
64874a40
SM
31932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3196 data through per_cu->cu.
3197
4ab09049
SM
31982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3201 dwarf2_per_cu_data parameter fo dwarf2_cu.
3202 (lookup_dwo_type_unit): Likewise.
3203 (read_cutu_die_from_dwo): Likewise.
3204 (lookup_dwo_unit): Likewise.
3205 (open_and_init_dwo_file): Likewise.
3206 (lookup_dwo_cutu): Likewise.
3207 (lookup_dwo_comp_unit): Likewise.
3208 (lookup_dwo_type_unit): Likewise.
3209 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3210 (cutu_reader::cutu_reader): Update.
3211
47b14e86
SM
32122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3213
3214 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3215 parameter.
3216 (process_full_type_unit): Likewise.
3217 (process_queue): Update.
3218
43182c09
SM
32192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * dwarf2/read.c (recursively_compute_inclusions): Add
3222 dwarf2_per_objfile parameter.
3223 (compute_compunit_symtab_includes): Likewise.
3224 (process_cu_includes): Update.
3225
7aa104c4
SM
32262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3229 parameter.
3230 (create_type_unit_group): Update.
3231 (process_psymtab_comp_unit_reader): Update.
3232 (build_type_psymtabs_reader): Update.
3233
e3beb21d
SM
32342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3237 object through m_this_cu->cu.
3238
d460f660
SM
32392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3242 the info parameter.
3243 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3244
ab432490
SM
32452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3248 per_objfile parameter.
3249 (load_full_type_unit): Add per_objfile parameter.
3250 (read_signatured_type): Likewise.
3251 (load_full_comp_unit): Likewise.
3252 (load_cu): Likewise.
3253 (dw2_do_instantiate_symtab): Likewise.
3254 (dw2_get_file_names): Likewise.
3255 (dw2_map_symtabs_matching_filename): Update.
3256 (dw_expand_symtabs_matching_file_matcher): Update.
3257 (dw2_map_symbol_filenames): Update.
3258 (process_psymtab_comp_unit): Add per_objfile parameter.
3259 (build_type_psymtabs_1): Update.
3260 (process_skeletonless_type_unit): Update.
3261 (dwarf2_build_psymtabs_hard): Update.
3262 (load_partial_comp_unit): Add per_objfile parameter.
3263 (scan_partial_symbols): Update.
3264 (load_full_comp_unit): Add per_objfile parameter.
3265 (process_imported_unit_die): Update.
3266 (create_cus_hash_table): Update.
3267 (find_partial_die): Update.
3268 (dwarf2_read_addr_index): Update.
3269 (follow_die_offset): Update.
3270 (dwarf2_fetch_die_loc_sect_off): Update.
3271 (dwarf2_fetch_constant_bytes): Update.
3272 (dwarf2_fetch_die_type_sect_off): Update.
3273 (follow_die_sig_1): Update.
3274 (load_full_type_unit): Add per_objfile parameter.
3275 (read_signatured_type): Likewise.
3276
313bad1b
SM
32772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3280 of objfile_name.
3281
c3699833
SM
32822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3285 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3286 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3287 field.
3288 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3289 (create_cus_from_index): Update.
3290 (dwarf2_read_gdb_index): Update.
3291 (create_cus_from_debug_names): Update.
3292 (dwarf2_read_debug_names): Update.
3293 (get_abbrev_section_for_cu): Update.
3294 (create_all_comp_units): Update.
3295 (read_attribute_value): Update.
3296 (get_debug_line_section): Update.
3297 * dwarf2/index-cache.c (index_cache::store): Update.
3298 * dwarf2/index-write.c (save_gdb_index_command): Update.
3299 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3300
1859c670
SM
33012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3304 member.
3305 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3306 dwarf2_per_cu_data::per_bfd.
3307 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3308 (create_type_unit_group): Likewise.
3309 (queue_comp_unit): Remove reference to
3310 per_cu->dwarf2_per_objfile.
3311 (maybe_queue_comp_unit): Likewise.
3312 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3313 (create_cus_hash_table): Assign new field.
3314
5e22e966
SM
33152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * dwarf2/read.c: Replace
3318 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3319 dwarf2_cu->per_objfile throughout.
3320
97a1449a
SM
33212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3324 parameter, don't use per_cu->dwarf2_per_objfile.
3325 (dw2_instantiate_symtab): Likewise.
3326 (dw2_find_last_source_symtab): Update.
3327 (dw2_map_expand_apply): Update.
3328 (dw2_lookup_symbol): Update.
3329 (dw2_expand_symtabs_for_function): Update.
3330 (dw2_expand_all_symtabs): Update.
3331 (dw2_expand_symtabs_with_fullname): Update.
3332 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3333 don't use per_cu->dwarf2_per_objfile.
3334 (dw2_expand_marked_cus): Update.
3335 (dw2_find_pc_sect_compunit_symtab): Update.
3336 (dw2_debug_names_lookup_symbol): Update.
3337 (dw2_debug_names_expand_symtabs_for_function): Update.
3338 (dw2_debug_names_map_matching_symbols): Update.
3339 (dwarf2_psymtab::expand_psymtab): Update.
3340
9e021579
SM
33412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3342
3343 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3344 <per_objfile>: New member.
3345 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3346 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3347 call to dwarf2_cu.
3348 (cutu_reader::cutu_reader): Update.
3349 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3350
ae090bdb
SM
33512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3354 struct dwarf2_per_objfile.
3355 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3356 dwarf2_per_bfd.
3357 * dwarf2/read.c (set_die_type): Update.
3358 (get_die_type_at_offset): Update.
3359
af758d11
SM
33602020-05-27 Tom Tromey <tom@tromey.com>
3361 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3364 method.
3365 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3366 get_symtab, set_symtab>: New methods.
3367 <m_symtabs>: New field.
3368 (struct dwarf2_psymtab): Derive from partial_symtab.
3369 <readin_p, get_compunit_symtab>: Declare methods.
3370 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3371 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3372 New methods.
3373 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3374 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3375 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3376 (dw2_symtab_iter_next, dw2_print_stats)
3377 (dw2_expand_symtabs_with_fullname)
3378 (dw2_expand_symtabs_matching_one)
3379 (dw_expand_symtabs_matching_file_matcher)
3380 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3381 (dw2_debug_names_iterator::next)
3382 (dw2_debug_names_map_matching_symbols)
3383 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3384 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3385 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3386 New methods.
3387 (get_compunit_symtab, process_full_comp_unit)
3388 (process_full_type_unit): Update.
3389 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3390
5989a64e
SM
33912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3394 then introduce a new dwarf2_per_objfile type.
3395 <read_line_string>: Move to the new dwarf2_per_objfile type.
3396 <objfile>: Likewise.
3397 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3398 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3399 dwarf2_per_objfile->per_bfd.
3400 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3401 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3402 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3403 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3404 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3405 (dwarf2_per_objfile::locate_sections): Rename to...
3406 (dwarf2_per_bfd::locate_sections): ... this.
3407 (dwarf2_per_objfile::get_cutu): Rename to...
3408 (dwarf2_per_bfd::get_cutu): ... this.
3409 (dwarf2_per_objfile::get_cu): Rename to...
3410 (dwarf2_per_bfd::get_cu): ... this.
3411 (dwarf2_per_objfile::get_tu): Rename to...
3412 (dwarf2_per_bfd::get_tu): ... this.
3413 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3414 (dwarf2_per_bfd::allocate_per_cu): ... this.
3415 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3416 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3417 (get_gdb_index_contents_ftype): Change parameter from
3418 dwarf2_per_objfile to dwarf2_per_bfd.
3419 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3420 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3421
a50264ba
TT
34222020-05-27 Tom Tromey <tom@tromey.com>
3423 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3426 (allocate_piece_closure): Set "per_objfile" member.
3427 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3428 (locexpr_describe_location, loclist_describe_location): Use new
3429 member.
3430 * dwarf2/read.c (read_call_site_scope)
3431 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3432 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3433 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3434 handle_data_member_location): Set per_objfile member.
3435 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3436 member.
3437 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3438
d3473f0c
TT
34392020-05-27 Tom Tromey <tom@tromey.com>
3440
3441 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3442 allocate_signatured_type>: Declare new methods.
3443 <m_num_psymtabs>: New member.
3444 (struct dwarf2_per_cu_data) <index>: New member.
3445 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3446 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3447 (create_cu_from_index_list): Use allocate_per_cu.
3448 (create_signatured_type_table_from_index)
3449 (create_signatured_type_table_from_debug_names)
3450 (create_debug_type_hash_table, add_type_unit)
3451 (read_comp_units_from_section): Use allocate_signatured_type.
3452
5717c425
TT
34532020-05-27 Tom Tromey <tom@tromey.com>
3454
3455 * psymtab.c (partial_map_expand_apply)
3456 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3457 (psym_lookup_global_symbol_language)
3458 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3459 (psym_print_stats, psym_expand_symtabs_for_function)
3460 (psym_map_symbol_filenames, psym_map_matching_symbols)
3461 (psym_expand_symtabs_matching)
3462 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3463 (maintenance_check_psymtabs): Update.
3464 * psympriv.h (struct partial_symtab) <readin_p,
3465 get_compunit_symtab>: Add objfile parameter.
3466 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3467 Likewise.
3468 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3469 get_compunit_symtab>: Likewise.
3470 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3471
45940949
TT
34722020-05-27 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3475 member.
3476 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3477 (create_cu_from_index_list)
3478 (create_signatured_type_table_from_index)
3479 (create_signatured_type_table_from_debug_names)
3480 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3481 (dwarf2_create_include_psymtab)
3482 (create_debug_type_hash_table, add_type_unit)
3483 (create_type_unit_group, read_comp_units_from_section)
3484 (dwarf2_compute_name, create_cus_hash_table)
3485 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3486 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3487 obstack.
3488 (dw2_get_real_path): Likewise. Change argument to
3489 dwarf2_per_objfile.
3490
f8c6d152
LM
34912020-05-27 Luis Machado <luis.machado@linaro.org>
3492
3493 PR tdep/26000
3494 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3495 for ldrd (immediate).
3496
e98d2e6d
PW
34972020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3498
3499 * command.h: Add comment giving the name of class_tui.
3500 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3501 create the fake command for the help for class_tui.
3502
53a47a3e
TT
35032020-05-26 Tom Tromey <tromey@adacore.com>
3504
3505 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3506 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3507 (val_atr): New function.
3508 (value_val_atr): Use it.
3509 * ada-valprint.c (print_optional_low_bound): Change low bound
3510 handling for enums.
3511 (val_print_packed_array_elements): Don't call discrete_position.
3512 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3513 discrete_position for enum types.
3514 * language.c (default_print_array_index): Change type.
3515 * language.h (struct language_defn) <la_print_array_index>: Add
3516 index_type parameter, change type of index_value.
3517 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3518 (default_print_array_index): Update.
3519 * valprint.c (maybe_print_array_index): Don't call
3520 value_from_longest. Update.
3521 (value_print_array_elements): Don't call discrete_position.
3522
0bc2354b
TT
35232020-05-26 Tom Tromey <tromey@adacore.com>
3524
3525 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3526 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3527
1218a4bf
CDA
35282020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3529
3530 PR gdb/13519
3531 * avr-tdep.c (avr_integer_to_address): Return data or code
3532 address accordingly to the second 'type' argument of the
3533 function.
3534
92651b1d
MW
35352020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3536
3537 * infcmd.c, inferior.h: (construct_inferior_arguments):
3538 Moved function from here to gdbsupport/common-inferior.{h,cc}
3539
0a4f5f8c
TT
35402020-05-23 Tom Tromey <tom@tromey.com>
3541
3542 Revert commit eca1f90c:
3543 * NEWS: Remove entry for completion styling.
3544 * completer.c (_rl_completion_prefix_display_length): Move
3545 declaration later.
3546 (gdb_fnprint): Revert.
3547 (gdb_display_match_list_1): Likewise.
3548 * cli/cli-style.c (completion_prefix_style)
3549 (completion_difference_style, completion_suffix_style): Remove.
3550 (_initialize_cli_style): Revert.
3551 * cli/cli-style.h (completion_prefix_style)
3552 (completion_difference_style, completion_suffix_style): Don't
3553 declare.
3554
e08bd6c5
PA
35552020-05-24 Pedro Alves <palves@redhat.com>
3556
3557 * symtab.c (completion_list_add_name): Return boolean indication
3558 of whether the symbol matched.
3559 (completion_list_add_symbol): Don't try to remove C++ aliases if
3560 the symbol didn't match in the first place.
3561 * symtab.h (completion_list_add_name): Return bool.
3562
ceacbf6e
SM
35632020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3564
3565 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3566 type::field.
3567
26f16254
JB
35682020-05-23 Joel Brobecker <brobecker@adacore.com>
3569
3570 GDB 9.2 released.
3571
eca1f90c
TT
35722020-05-23 Tom Tromey <tom@tromey.com>
3573
3574 * NEWS: Add entry for completion styling.
3575 * completer.c (_rl_completion_prefix_display_length): Move
3576 declaration earlier.
3577 (gdb_fnprint): Use completion_style.
3578 (gdb_display_match_list_1): Likewise.
3579 * cli/cli-style.c (completion_prefix_style)
3580 (completion_difference_style, completion_suffix_style): New
3581 globals.
3582 (_initialize_cli_style): Register new globals.
3583 * cli/cli-style.h (completion_prefix_style)
3584 (completion_difference_style, completion_suffix_style): Declare.
3585
51e2cfa2
PA
35862020-05-23 Pedro Alves <palves@redhat.com>
3587
3588 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3589 (parse_escape): Use ISDIGIT instead of isdigit.
3590 (puts_debug): Use gdb_isprint instead of isprint.
3591 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3592 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3593 ISSPACE instead of isspace.
3594 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3595 instead of isspace.
3596 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3597 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3598 instead of isxdigit and ISDIGIT instead of isdigit.
3599
80fc5e77
SM
36002020-05-22 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * gdbtypes.h (struct type) <field>: New method.
3603 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3604 or type::field.
3605
3cabb6b0
SM
36062020-05-22 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3609 (TYPE_FIELDS): Use type::fields. Change all call sites that
3610 modify the propery to use type::set_fields instead.
3611
1f704f76
SM
36122020-05-22 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3615 type::num_fields instead.
3616
5e33d5f4
SM
36172020-05-22 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3620 methods.
3621 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3622 that modify the number of fields to use type::set_num_fields
3623 instead.
3624
9392ebb3
TT
36252020-05-22 Tom Tromey <tromey@adacore.com>
3626
3627 * compile/compile-object-load.h (munmap_list_free): Don't
3628 declare.
3629
7c13f4e8
AB
36302020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3631
3632 * annotate.c (annotate_source_line): Update return type, add call
3633 to update current symtab and line.
3634 * annotate.h (annotate_source_line): Update return type, and
3635 extend header comment.
3636 * source.c (info_line_command): Check annotation_level before
3637 calling annotate_source_line.
3638 * stack.c (print_frame_info): If calling annotate_source_line
3639 returns true, then don't print any other source line information.
3640
aa370940
SM
36412020-05-21 Simon Marchi <simon.marchi@efficios.com>
3642
3643 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3644
84d53fa9
SM
36452020-05-21 Simon Marchi <simon.marchi@efficios.com>
3646
3647 * coffread.c (patch_type): Remove NULL check before xfree.
3648 * corefile.c (set_gnutarget): Likewise.
3649 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3650 * exec.c (build_section_table): Likewise.
3651 * remote.c (remote_target::pass_signals): Likewise.
3652 * utils.c (n_spaces): Likewise.
3653 * cli/cli-script.c (document_command): Likewise.
3654 * i386-windows-tdep.c (core_process_module_section): Likewise.
3655 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3656
9d428aae
SM
36572020-05-20 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * symfile.c (reread_symbols): Clear objfile's section_offsets
3660 vector and section indices, re-compute them by calling
3661 sym_offsets.
3662
250106a7
TT
36632020-05-20 Tom Tromey <tromey@adacore.com>
3664
3665 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3666 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3667
9a0bacfb
TV
36682020-05-20 Tom de Vries <tdevries@suse.de>
3669
3670 PR symtab/25833
3671 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3672
7b958a48
AM
36732020-05-20 Alan Modra <amodra@gmail.com>
3674
3675 PR 25993
3676 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3677 bfd_set_filename.
3678 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3679 passed to bfd_set_filename.
3680 * symfile-mem.c (add_vsyscall_page): Likewise for string
3681 passed to symbol_file_add_from_memory.
3682 (symbol_file_add_from_memory): Make name param a const char* and
3683 don't strdup.
3684
c7e97679
AM
36852020-05-20 Alan Modra <amodra@gmail.com>
3686
3687 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3688 rather than accessing bfd->filename directly.
3689 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3690 and use bfd_section_name.
3691 * dwarf2/frame.c (decode_frame_entry): Likewise.
3692 * exec.c (exec_set_section_address): Likewise.
3693 * solib-aix.c (solib_aix_bfd_open): Likewise.
3694 * stap-probe.c (get_stap_base_address): Likewise.
3695 * symfile.c (reread_symbols): Likewise.
3696
563c591b
TT
36972020-05-19 Tom Tromey <tromey@adacore.com>
3698
3699 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3700
f408d82c
SM
37012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3704
98c59b52
PA
37052020-05-19 Pedro Alves <palves@redhat.com>
3706
3707 * NEWS (set exec-file-mismatch): Adjust entry.
3708 * exec.c: Include "build-id.h".
3709 (validate_exec_file): Try to match build IDs instead of filenames.
3710 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3711 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3712 and pass down 'warn_if_slow'.
3713 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3714 gdb_bfd_open_closure to pass it down.
3715 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3716
4111f652
PA
37172020-05-19 Pedro Alves <palves@redhat.com>
3718
3719 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3720 * target.c (target_fileio_open_1): Rename to target_fileio_open
3721 and make extern. Use bool.
3722 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3723 (target_fileio_read_alloc_1): Adjust.
3724 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3725 (target_fileio_open_warn_if_slow): Delete declaration.
3726
ad80db5b
PA
37272020-05-19 Pedro Alves <palves@redhat.com>
3728
3729 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3730 Adjust all callers.
3731
1d6ce4d3
YS
37322020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3733
3734 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3735 whether disp is negative.
3736
9005fbbb
SM
37372020-05-19 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * symfile.h (struct symfile_segment_data)
3740 <~symfile_segment_data>: Remove.
3741 <segment_info>: Change to std::vector.
3742 * symfile.c (default_symfile_segments): Update.
3743 * elfread.c (elf_symfile_segments): Update.
3744
68b888ff
SM
37452020-05-19 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3748 <segments>: New.
3749 <segment_bases, segment_sizes>: Remove.
3750 * symfile.c (default_symfile_segments): Update.
3751 * elfread.c (elf_symfile_segments): Update.
3752 * remote.c (remote_target::get_offsets): Update.
3753 * solib-target.c (solib_target_relocate_section_addresses):
3754 Update.
3755
62982abd
SM
37562020-05-19 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * symfile.h (struct symfile_segment_data): Initialize fields.
3759 <~symfile_segment_data>: Add.
3760 (symfile_segment_data_up): New.
3761 (struct sym_fns) <sym_segments>: Return a
3762 symfile_segment_data_up.
3763 (default_symfile_segments): Return a symfile_segment_data_up.
3764 (free_symfile_segment_data): Remove.
3765 (get_symfile_segment_data): Return a symfile_segment_data_up.
3766 * symfile.c (default_symfile_segments): Likewise.
3767 (get_symfile_segment_data): Likewise.
3768 (free_symfile_segment_data): Remove.
3769 (symfile_find_segment_sections): Update.
3770 * elfread.c (elf_symfile_segments): Return a
3771 symfile_segment_data_up.
3772 * remote.c (remote_target::get_offsets): Update.
3773 * solib-target.c (solib_target_relocate_section_addresses):
3774 Update.
3775 * symfile-debug.c (debug_sym_segments): Return a
3776 symfile_segment_data_up.
3777
7f204339
RO
37782020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3779
e52a0f1b
RO
3780 PR build/25981
3781 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3782 Hardcode register numbers.
3783
7f204339
RO
3784 PR build/25981
3785 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3786 procfs_find_LDT_entry): Remove.
3787 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3788 procfs_find_LDT_entry): Remove.
3789 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3790 Remove.
3791
7f32a4d5
PA
37922020-05-17 Pedro Alves <palves@redhat.com>
3793 Andrew Burgess <andrew.burgess@embecosm.com>
3794 Keno Fischer <keno@juliacomputing.com>
3795
3796 PR gdb/25741
3797 * breakpoint.c (build_target_condition_list): Update comments.
3798 (build_target_command_list): Update comments and skip matching
3799 locations.
3800 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3801 a separate function. Simplify "set breakpoint auto-hw off"
3802 handling.
3803 (insert_breakpoints): Update comment.
3804 (tracepoint_locations_match): New parameter. For breakpoints,
3805 compare location types too, if the caller wants to.
3806 (handle_automatic_hardware_breakpoints): New functions.
3807 (bp_location_is_less_than): Also sort by location type and
3808 hardware breakpoint length.
3809 (update_global_location_list): Handle "set breakpoint auto-hw on"
3810 here.
3811 (update_breakpoint_locations): Ask breakpoint_locations_match to
3812 ignore location types.
3813
7d93a1e0
SM
38142020-05-16 Simon Marchi <simon.marchi@efficios.com>
3815
3816 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3817 type::name instead.
3818
d0e39ea2
SM
38192020-05-16 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * gdbtypes.h (struct type) <name, set_name>: New methods.
3822 (TYPE_CODE): Use type::name. Change all call sites used to set
3823 the name to use type::set_name instead.
3824
2dab0c7b
TT
38252020-05-16 Tom Tromey <tom@tromey.com>
3826
3827 * top.c (quit_force): Update.
3828 * infrun.c (handle_no_resumed): Update.
3829 * top.h (all_uis): New function.
3830 (ALL_UIS): Remove.
3831
59f7bd8d
SM
38322020-05-16 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3835
9bf058f0
PA
38362020-05-16 Pedro Alves <palves@redhat.com>
3837
3838 * ia64-linux-nat.c
3839 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3840 Declare method.
3841 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3842
8f86ae1a
SM
38432020-05-15 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3846 (sparc64_adi_info): Likewise.
3847
d6bc0792
TT
38482020-05-15 Tom Tromey <tom@tromey.com>
3849
3850 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3851 block_objfile.
3852 (lookup_objfile_from_block): Remove.
3853 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3854 (lookup_global_symbol): Use block_objfile.
3855 * symtab.h (lookup_objfile_from_block): Don't declare.
3856 * printcmd.c (clear_dangling_display_expressions): Use
3857 block_objfile.
3858 * parse.c (operator_check_standard): Use block_objfile.
3859
8c14c3a3
TT
38602020-05-15 Tom Tromey <tom@tromey.com>
3861
3862 * language.c (language_alloc_type_symbol): Set
3863 SYMBOL_SECTION.
3864 * symtab.c (initialize_objfile_symbol): Remove.
3865 (allocate_symbol): Remove.
3866 (allocate_template_symbol): Remove.
3867 * dwarf2/read.c (fixup_go_packaging): Use "new".
3868 (new_symbol): Use "new".
3869 (read_variable): Don't call initialize_objfile_symbol. Use
3870 "new".
3871 (read_func_scope): Use "new".
3872 * xcoffread.c (process_xcoff_symbol): Don't call
3873 initialize_objfile_symbol.
3874 (SYMBOL_DUP): Remove.
3875 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3876 "new".
3877 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3878 (allocate_template_symbol): Don't declare.
3879 (struct symbol): Add copy constructor. Change defaults.
3880 * jit.c (finalize_symtab): Use "new".
3881 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3882 Use "new".
3883 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3884 (common_block_end): Use "new".
3885 * mdebugread.c (parse_symbol): Use "new".
3886 (new_symbol): Likewise.
3887
5b4a1a8d
PW
38882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3889
3890 * NEWS: Mention changes to help and apropos.
3891
57b4f16e
PW
38922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3893
3894 * command.h (enum command_class): Improve comments, document
3895 that class_alias is for user-defined aliases, give the class
3896 name for each class, remove unused class_xdb.
3897 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3898 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3899 by a precise class.
3900 * infcmd.c (_initialize_infcmd): Likewise.
3901 * reverse.c (_initialize_reverse): Likewise.
3902 * stack.c (_initialize_stack): Likewise.
3903 * symfile.c (_initialize_symfile): Likewise.
3904 * tracepoint.c (_initialize_tracepoint): Likewise.
3905
7c05caf7
PW
39062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3907
3908 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3909 when their aliased command is traversed.
3910 (help_cmd): Add fput_command_names_styled call to
3911 output command name and aliases when command has an alias.
3912
3b3aaacb
PW
39132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3914
3915 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3916 * cli/cli-decode.c (help_cmd_list): Declare as static,
3917 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3918 a command together with the command.
3919 (fput_command_name_styled, fput_command_names_styled): New functions.
3920 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3921 fput_command_name_styled.
3922 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3923 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3924
7aa1b46f
PW
39252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3926
3927 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3928 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3929 * command.h (cmd_show_list): Likewise.
3930 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3931 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3932
89bcba74
PW
39332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3934
3935 * unittests/command-def-selftests.c (traverse_command_structure):
3936 Verify all commands of a list have the same prefix command and
3937 that only the top cmdlist commands have a null prefix.
3938
3f4d92eb
PW
39392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3940
3941 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3942 as prefix, not one of its aliases.
3943 (set_cmd_prefix): Remove.
3944 (do_add_cmd): Centralize the setting of the prefix of a command, when
3945 command is defined after its full chain of prefix commands.
3946 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3947 (add_setshow_cmd_full): Likewise.
3948 (update_prefix_field_of_prefixed_commands): New function.
3949 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3950 update_prefix_field_of_prefixed_commands.
3951 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3952 addresses of remote_set_cmdlist and remote_show_cmdlist given
3953 as argument, not the address of an argument.
3954 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3955 * gdb/remote.c (_initialize_remote): Likewise.
3956
0605465f
PW
39572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3958
3959 * cli/cli-cmds.c (alias_command): Check for an existing alias
3960 using lookup_cmd_composition, as valid_command_p is too strict
3961 and forbids aliases that are the prefix of an existing alias
3962 or command.
3963 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3964 command is properly recognised as a valid command.
3965
58e6ac70
PW
39662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3967
3968 * unittests/help-doc-selftests.c: Rename to
3969 unittests/command-def-selftests.c
3970 * unittests/command-def-selftests.c (help_doc_tests): Update some
3971 comments.
3972 (command_structure_tests, traverse_command_structure): New namespace
3973 and function.
3974 (command_structure_invariants_tests): New function.
3975 (_initialize_command_def_selftests) Renamed from
3976 _initialize_help_doc_selftests, register command_structure_invariants
3977 selftest.
3978
a7b9ceb8
PW
39792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3980
3981 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3982 an alias of 'show'.
3983
b2188a06
JB
39842020-05-15 Joel Brobecker <brobecker@adacore.com>
3985
3986 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3987 ada_is_fixed_point_type. Update all callers.
3988 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3989 all callers.
3990 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3991 Update all callers.
3992 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3993 print_fixed_point_type. Update all callers.
3994 * ada-valprint.c (ada_value_print_num): Replace call to
3995 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3996
a51951c2
KB
39972020-05-14 Kevin Buettner <kevinb@redhat.com>
3998
3999 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4000 processors.
4001 (cpu_supports_bts): Add CV_AMD case.
4002
29d6859f
LM
40032020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4004 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * infrun.c (stop_all_threads): Collect multiple wait events at
4007 each pass.
4008
78134374
SM
40092020-05-14 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4012 type::code instead.
4013
67607e24
SM
40142020-05-14 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * gdbtypes.h (struct type) <code, set_code>: New methods.
4017 (TYPE_CODE): Use type::code. Change all call sites used to set
4018 the code to use type::set_code instead.
4019
a05575d3
TBA
40202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4021 Tom de Vries <tdevries@suse.de>
4022 Pedro Alves <palves@redhat.com>
4023
4024 PR threads/25478
4025 * infrun.c (stop_all_threads): Do NOT ignore
4026 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4027 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4028 received.
4029 (handle_no_resumed): Remove code handling a live inferior with no
4030 threads.
4031 * remote.c (has_single_non_exited_thread): New.
4032 (remote_target::update_thread_list): Do not delete a thread if is
4033 the last thread of the process.
4034 * thread.c (thread_select): Call delete_exited_threads instead of
4035 prune_threads.
4036
6ad82919
TBA
40372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4038
4039 * infrun.c (stop_all_threads): Enable/disable thread events of all
4040 targets. Move a debug message denoting the end of the function
4041 into the SCOPED_EXIT block.
4042
d890404b
TBA
40432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4044
4045 * process-stratum-target.h: Include <set>.
4046 (all_non_exited_process_targets, switch_to_target_no_thread): New
4047 function declarations.
4048 * process-stratum-target.c (all_non_exited_process_targets)
4049 (switch_to_target_no_thread): New function implementations.
4050
293b3ebc
TBA
40512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4052
4053 * infrun.c (handle_inferior_event): Extract out a piece of code
4054 into...
4055 (mark_non_executing_threads): ...this new function.
4056
7ca9b62a
TBA
40572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4058
4059 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4060 use.
4061
fc75c28b
TBA
40622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4063
4064 * regcache.c (regcache_read_pc_protected): New function
4065 implementation that returns 0 if the PC cannot read via
4066 'regcache_read_pc'.
4067 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4068 instead of 'regcache_read_pc'.
4069 (keep_going_pass_signal): Ditto.
4070
a89febbd
TT
40712020-05-13 Tom Tromey <tromey@adacore.com>
4072
4073 * ada-lang.c (align_value): Remove.
4074 (ada_template_to_fixed_record_type_1): Use align_up.
4075
f7e23710
TBA
40762020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4077
4078 * async-event.c: Update the copyright year.
4079 * async-event.h: Update the copyright year.
4080
02ff80c2
SM
40812020-05-12 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * objfiles.h (is_addr_in_objfile,
4084 shared_objfile_contains_address_p): Return bool.
4085 * objfile.c (is_addr_in_objfile,
4086 shared_objfile_contains_address_p): Return bool.
4087
4fd6c7e8
TT
40882020-05-11 Tom Tromey <tromey@adacore.com>
4089
4090 * cli/cli-cmds.c (info_command): Restore.
4091 (_initialize_cli_cmds): Use add_prefix_command for "info".
4092 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4093
5eb68a39
TT
40942020-05-11 Tom Tromey <tromey@adacore.com>
4095
4096 * ada-lang.c (ada_value_primitive_field): Now public.
4097 * ada-lang.h (ada_value_primitive_field): Declare.
4098 * ada-valprint.c (print_field_values): Use
4099 ada_value_primitive_field for wrapper fields.
4100
7666722f
TV
41012020-05-11 Tom de Vries <tdevries@suse.de>
4102
4103 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4104 MODULE_DOMAIN.
4105
3ee6bb11
TV
41062020-05-11 Tom de Vries <tdevries@suse.de>
4107
4108 PR symtab/25941
4109 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4110 with length 0, if not gdb-produced.
4111 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4112
43434996
TV
41132020-05-09 Tom de Vries <tdevries@suse.de>
4114
4115 PR gdb/25955
4116 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4117 calculation.
4118
2f78cffc
TT
41192020-05-09 Tom Tromey <tom@tromey.com>
4120
4121 * top.c (server_command): Now bool.
4122 * top.h (server_command): Now bool.
4123
4f7bc5ed
TT
41242020-05-08 Tom Tromey <tromey@adacore.com>
4125
4126 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4127 already being processed.
4128
8be4b118
TT
41292020-05-08 Tom Tromey <tom@tromey.com>
4130
4131 * printcmd.c (struct display) <next>: Remove.
4132 <display>: New constructor.
4133 <exp_string>: Now a std::string.
4134 <enabled_p>: Now a bool.
4135 (display_number): Move definition earlier.
4136 (displays): Rename from display_chain. Now a std::vector.
4137 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4138 (display_command): Update.
4139 (do_one_display, disable_display)
4140 (enable_disable_display_command, do_enable_disable_display):
4141 Update.
4142 (free_display): Remove.
4143 (clear_displays): Rewrite.
4144 (delete_display): Update.
4145 (map_display_numbers): Use function_view. Remove "data"
4146 parameter. Update.
4147 (do_delete_display): Remove.
4148 (undisplay_command): Update.
4149 (do_one_display, do_displays, disable_display)
4150 (info_display_command): Update.
4151 (do_enable_disable_display): Remove.
4152 (enable_disable_display_command)
4153 (clear_dangling_display_expressions): Update.
4154
94c93c35
TT
41552020-05-08 Tom Tromey <tom@tromey.com>
4156
4157 * symtab.c (set_symbol_cache_size)
4158 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4159 (maintenance_print_symbol_cache_statistics): Update.
4160 * symmisc.c (print_symbol_bcache_statistics)
4161 (print_objfile_statistics, maintenance_print_objfiles)
4162 (maintenance_info_symtabs, maintenance_check_symtabs)
4163 (maintenance_expand_symtabs, maintenance_info_line_tables):
4164 Update.
4165 * symfile-debug.c (set_debug_symfile): Update.
4166 * source.c (forget_cached_source_info): Update.
4167 * python/python.c (gdbpy_progspaces): Update.
4168 * psymtab.c (maintenance_info_psymtabs): Update.
4169 * probe.c (parse_probes): Update.
4170 * linespec.c (iterate_over_all_matching_symtabs)
4171 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4172 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4173 * exec.c (exec_target::close): Update.
4174 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4175 * breakpoint.c (print_one_breakpoint_location)
4176 (create_longjmp_master_breakpoint)
4177 (create_std_terminate_master_breakpoint): Update.
4178 * progspace.c (program_spaces): Now a std::vector.
4179 (maybe_new_address_space): Update.
4180 (add_program_space): Remove.
4181 (program_space::program_space): Update.
4182 (remove_program_space): Update.
4183 (number_of_program_spaces): Remove.
4184 (print_program_space, update_address_spaces): Update.
4185 * progspace.h (program_spaces): Change type.
4186 (ALL_PSPACES): Remove.
4187 (number_of_program_spaces): Don't declare.
4188 (struct program_space) <next>: Remove.
4189
a1fd1ac9
TT
41902020-05-08 Tom Tromey <tom@tromey.com>
4191
4192 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4193 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4194 (enable_break): Update.
4195 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4196 (frv_fdpic_find_canonical_descriptor): Update.
4197 (frv_fetch_objfile_link_map): Update.
4198 * progspace.c (program_space::free_all_objfiles): Update.
4199 (program_space::solibs): New method.
4200 * progspace.h (struct program_space) <solibs>: New method.
4201 * solist.h (master_so_list): Don't declare.
4202 (ALL_SO_LIBS): Remove.
4203 * solib.h (so_list_head): Remove.
4204 (update_solib_list): Update comment.
4205 * solib.c (master_so_list): Remove.
4206 (solib_used, update_solib_list, solib_add)
4207 (info_sharedlibrary_command, clear_solib)
4208 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4209
38eae084
TT
42102020-05-08 Tom Tromey <tom@tromey.com>
4211
4212 * extension.c (extension_languages): Now a std::array.
4213 (ALL_EXTENSION_LANGUAGES): Remove.
4214 (get_ext_lang_defn, get_ext_lang_of_file)
4215 (eval_ext_lang_from_control_command): Update.
4216 (finish_ext_lang_initialization)
4217 (auto_load_ext_lang_scripts_for_objfile)
4218 (ext_lang_type_printers::ext_lang_type_printers)
4219 (apply_ext_lang_type_printers)
4220 (ext_lang_type_printers::~ext_lang_type_printers)
4221 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4222 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4223 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4224 (get_matching_xmethod_workers, ext_lang_colorize)
4225 (ext_lang_before_prompt): Update.
4226 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4227
596dc4ad
TT
42282020-05-08 Tom Tromey <tom@tromey.com>
4229
4230 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4231 overload.
4232 <swap_string, m_string>: Remove.
4233 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4234 Update.
4235 * stabsread.c (define_symbol, read_type): Update.
4236 * linespec.c (find_linespec_symbols): Update.
4237 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4238 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4239 * dbxread.c (read_dbx_symtab): Update.
4240 * cp-support.h (cp_canonicalize_string_full)
4241 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4242 Return unique_xmalloc_ptr.
4243 * cp-support.c (inspect_type): Update.
4244 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4245 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4246 Likewise.
4247 * c-typeprint.c (print_name_maybe_canonical): Update.
4248 * break-catch-throw.c (check_status_exception_catchpoint):
4249 Update.
4250
bf4cb9be
TV
42512020-05-08 Tom de Vries <tdevries@suse.de>
4252
4253 * infrun.c (follow_fork): Copy current_line and current_symtab to
4254 child thread.
4255
a1b68f28
SM
42562020-05-07 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * async-event.c (struct async_signal_handler, struct
4259 async_event_handler): Reformat, remove typedef.
4260
98d48915
SM
42612020-05-07 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4264 access thistype->main_type->dyn_prop_list directly.
4265
7aa91313
SM
42662020-05-07 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4269 (remove_dyn_prop): Remove. Update all users to use
4270 type::remove_dyn_prop.
4271 * gdbtypes.c (remove_dyn_prop): Rename to...
4272 (type::remove_dyn_prop): ... this.
4273
5c54719c
SM
42742020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4275
4276 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4277 (add_dyn_prop): Remove. Update all users to use
4278 type::add_dyn_prop.
4279 * gdbtypes.c (add_dyn_prop): Rename to...
4280 (type::add_dyn_prop): ... this.
4281
24e99c6c
SM
42822020-05-07 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4285 (get_dyn_prop): Remove. Update all users to use
4286 type::dyn_prop.
4287 * gdbtypes.c (get_dyn_prop): Rename to...
4288 (type::dyn_prop): ... this.
4289
0d4bf016
SM
42902020-05-06 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4293
ac4a4f1c
SM
42942020-05-06 Simon Marchi <simon.marchi@efficios.com>
4295
4296 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4297 instruction, skip it if it's there.
4298
a3bbacc1
SM
42992020-05-05 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4302
c3236f84
SM
43032020-05-04 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4306 * gdbtypes.c (recursive_dump_type): Remove use of
4307 TYPE_INCOMPLETE.
4308
3b6acaee
TT
43092020-05-03 Tom Tromey <tom@tromey.com>
4310
4311 * breakpoint.c (catch_command, tcatch_command): Remove.
4312 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4313 add_show_prefix_cmd.
4314 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4315 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4316 Remove.
4317 (add_internal_problem_command): Use add_basic_prefix_cmd,
4318 add_show_prefix_cmd.
4319 * mips-tdep.c (set_mipsfpu_command): Remove.
4320 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4321 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4322 (_initialize_index_cache): Use add_basic_prefix_cmd.
4323 * memattr.c (dummy_cmd): Remove.
4324 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4325 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4326 (_initialize_tui_win): Use add_basic_prefix_cmd,
4327 add_show_prefix_cmd.
4328 * cli/cli-logging.c (set_logging_command): Remove.
4329 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4330 add_show_prefix_cmd.
4331 (show_logging_command): Remove.
4332 * target.c (target_command): Remove.
4333 (add_target): Use add_basic_prefix_cmd.
4334
a51119cd
HD
43352020-05-02 Hannes Domani <ssbssa@yahoo.de>
4336
4337 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4338
652fc23a 43392020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4340
652fc23a
PW
4341 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4342 info_command.
4343
117539e6
KR
43442020-04-30 Kamil Rytarowski <n54@gmx.com>
4345
4346 * nbsd-nat.c (nbsd_enable_proc_events)
4347 (nbsd_nat_target::post_startup_inferior): Add.
4348 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4349 (nbsd_nat_target::update_thread_list): Rewrite.
4350 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4351 "PTRACE_LWP_CREATE".
4352 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4353
102e38eb 43542020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4355
102e38eb
PW
4356 * stack.c (_initialize_stack): Remove duplicated creation
4357 of "frame" command and "f" alias.
4358
ee9d1e5f
HD
43592020-04-30 Hannes Domani <ssbssa@yahoo.de>
4360
4361 PR gdb/18706
4362 * gdbtypes.c (check_typedef): Calculate size of array of
4363 stubbed type.
4364
627c7fb8
HD
43652020-04-30 Hannes Domani <ssbssa@yahoo.de>
4366
4367 PR gdb/15559
4368 * i386-tdep.c (i386_push_dummy_call): Call
4369 i386_thiscall_push_dummy_call.
4370 (i386_thiscall_push_dummy_call): New function.
4371 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4372 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4373 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4374
ffc2844e
SM
43752020-04-29 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * gdbarch.sh (do_read): Add shellcheck disable directive for
4378 warning SC2162.
4379
1207375d
SM
43802020-04-29 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4383 "referenced but not assigned" warning.
4384
9fdb2916
SM
43852020-04-29 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbarch.sh: Remove code that sets fallbackdefault.
4388
759cea5e
SM
43892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * gdbarch.sh: Use shell operators && and || instead of
4392 -a and -o.
4393
cb02ab24
SM
43942020-04-29 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * gdbarch.sh: Use $(...) instead of `...`.
4397
a6fc5ffc
SM
43982020-04-29 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * gdbarch.sh: Use double quotes around variables.
4401
8d113d13
SM
44022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * gdbarch.sh: Use %s with printf, instead of variables in the
4405 format string.
4406
ed6acedd
TT
44072020-04-29 Tom Tromey <tromey@adacore.com>
4408
4409 PR ada/25875:
4410 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4411 type fields here.
4412 (read_enumeration_type): Call
4413 update_enumeration_type_from_children later. Update comments.
4414 (process_enumeration_scope): Don't create type fields.
4415
b68b1b58
KR
44162020-04-29 Kamil Rytarowski <n54@gmx.com>
4417
4418 * nbsd-tdep.c: Include "xml-syscall.h".
4419 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4420
f94b2e03
KR
44212020-04-29 Kamil Rytarowski <n54@gmx.com>
4422
4423 * nbsd-nat.c: Include "sys/wait.h".
4424 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4425 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4426 (nbsd_nat_target::remove_exec_catchpoint)
4427 (nbsd_nat_target::set_syscall_catchpoint): Add.
4428 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4429 (nbsd_nat_target::insert_exec_catchpoint)
4430 (nbsd_nat_target::remove_exec_catchpoint)
4431 (nbsd_nat_target::set_syscall_catchpoint): Add.
4432 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4433 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4434 `nbsd_get_syscall_number'.
4435
fc49bc72
TT
44362020-04-29 Tom Tromey <tom@tromey.com>
4437
4438 * stack.c (print_block_frame_labels): Remove.
4439
d642b692
HD
44402020-04-29 Hannes Domani <ssbssa@yahoo.de>
4441
4442 PR gdb/17320
4443 * ada-valprint.c (val_print_packed_array_elements): Move array
4444 end bracket to new line.
4445 (ada_val_print_string): Remove extra spaces before first array
4446 element.
4447 * c-valprint.c (c_value_print_array): Likewise.
4448 * m2-valprint.c (m2_print_array_contents): Likewise.
4449 (m2_value_print_inner): Likewise.
4450 * p-valprint.c (pascal_value_print_inner): Likewise.
4451 * valprint.c (generic_val_print_array): Likewise.
4452 (value_print_array_elements): Move first array element and array
4453 end bracket to new line.
4454
ea90f227
TV
44552020-04-29 Tom de Vries <tdevries@suse.de>
4456
4457 PR symtab/25889
4458 * linespec.c (find_method): Fix ix calculation.
4459
4498ef4f
KR
44602020-04-28 Kamil Rytarowski <n54@gmx.com>
4461
4462 * syscalls/update-netbsd.sh: New file.
4463 * syscalls/netbsd.xml: Regenerate.
4464 * data-directory/Makefile.in: Register `netbsd.xml' in
4465 `SYSCALLS_FILES'.
4466
a55e30b5
SM
44672020-04-28 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * syscalls/update-freebsd.sh: Add double quotes.
4470
2b2fbab8
TT
44712020-04-28 Tom Tromey <tom@tromey.com>
4472
4473 * NEWS: Update.
4474 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4475 (cmdpy_init): Allow class_tui.
4476
a65189c9
TV
44772020-04-28 Mark Williams <mark@myosotissp.com>
4478
4479 PR gdb/24480
4480 * dwarf2read.c: Add missing assingments to list_in_scope when
4481 start_symtab was already called.
4482
1b95cdb7
SM
44832020-04-28 Simon Marchi <simon.marchi@efficios.com>
4484
4485 PR gdb/25881
4486 * dwarf2/read.c (offset_map_type): Use
4487 gdb:hash_enum<sect_offset> as hash function.
4488
15cd93d0
TV
44892020-04-28 Tom de Vries <tdevries@suse.de>
4490
4491 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4492 with DW_AT_signature.
4493
1eb39914
SM
44942020-04-27 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * configure.ac: Remove check for fs_base/gs_base in
4497 user_regs_struct.
4498 * configure: Re-generate.
4499 * config.in: Re-generate.
4500 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4501 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4502 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4503
991a3e2e
LM
45042020-04-27 Luis Machado <luis.machado@linaro.org>
4505
4506 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4507 problematic inline frame unwinding situation.
4508 * frame.c (frame_id_computed_p): New function.
4509 * frame.h (frame_id_computed_p): New prototype.
4510
361ba0e8
TT
45112020-04-26 Tom Tromey <tom@tromey.com>
4512
4513 * command.h (enum command_class) <class_pseudo>: Remove.
4514
bc3609fd
PW
45152020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4516
4517 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4518 and whitespace.
4519
b9771db7
KR
45202020-04-25 Kamil Rytarowski <n54@gmx.com>
4521
ec16513e
SM
4522 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4523 `PT_GET_PROCESS_STATE' block.
b9771db7 4524
7151c1af
TT
45252020-04-24 Tom Tromey <tom@tromey.com>
4526
4527 * symtab.h (symbol_get_demangled_name): Don't declare.
4528 * symtab.c (symbol_get_demangled_name): Remove.
4529 (general_symbol_info::natural_name)
4530 (general_symbol_info::demangled_name): Update.
4531
906bb4c5
TT
45322020-04-24 Tom Tromey <tom@tromey.com>
4533
4534 PR rust/25025:
4535 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4536
bcfe6157
TT
45372020-04-24 Tom Tromey <tom@tromey.com>
4538
4539 PR symtab/12707:
4540 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4541 exists.
4542 (new_symbol): Likewise.
4543 * compile/compile-object-load.c (get_out_value_type): Use
4544 symbol_matches_search_name.
4545
f049a313
TT
45462020-04-24 Tom Tromey <tom@tromey.com>
4547
4548 * dwarf2/read.c (add_partial_symbol): Do not call
4549 compute_and_set_names.
4550
76e288d1
TT
45512020-04-24 Tom Tromey <tom@tromey.com>
4552
4553 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4554 overload.
4555
2467f4f6
TT
45562020-04-24 Tom Tromey <tom@tromey.com>
4557
4558 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4559 (add_psymbol_to_list): New overload. Make old overload call new
4560 one.
4561 * psympriv.h (add_psymbol_to_list): New overload.
4562
e61108c9
TT
45632020-04-24 Tom Tromey <tom@tromey.com>
4564
4565 * dwarf2/read.c (partial_die_info::read) <case
4566 DW_AT_linkage_name>: Use value_as_string.
4567 (dwarf2_string_attr): Use value_as_string.
4568 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4569 method.
4570 * dwarf2/attribute.c (attribute::value_as_string): New method.
4571
8c87a452
TT
45722020-04-24 Tom Tromey <tom@tromey.com>
4573
4574 * symtab.c (general_symbol_info::natural_name)
4575 (general_symbol_info::demangled_name): Check for language_rust.
4576
787de330
TT
45772020-04-24 Tom Tromey <tom@tromey.com>
4578
4579 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4580 (dwarf2_physname): ... from here.
4581 (partial_die_info::read): Add Rust "{" hack.
4582
ff985671
TT
45832020-04-24 Tom Tromey <tom@tromey.com>
4584
4585 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4586 method.
4587 (symbol_set_demangled_name): Don't declare.
4588 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4589 symbol_set_demangled_name.
4590 (general_symbol_info::set_language)
4591 (general_symbol_info::compute_and_set_names): Update.
4592 * minsyms.c (minimal_symbol_reader::install): Update.
4593 * dwarf2/read.c (new_symbol): Update.
4594
1acda803
TT
45952020-04-24 Tom Tromey <tromey@adacore.com>
4596
4597 PR python/23662:
4598 * python/py-type.c (convert_field): Handle
4599 FIELD_LOC_KIND_DWARF_BLOCK.
4600 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4601 (typy_get_dynamic): Nw function.
4602 (type_object_getset): Add "dynamic".
4603 * NEWS: Add entry.
4604
d656f129
TT
46052020-04-24 Tom Tromey <tromey@adacore.com>
4606
4607 * ada-typeprint.c (print_choices, print_variant_part)
4608 (print_record_field_types_dynamic): New functions.
4609 (print_record_field_types): Use print_record_field_types_dynamic.
4610
7d79de9a
TT
46112020-04-24 Tom Tromey <tromey@adacore.com>
4612
4613 * dwarf2/read.c (handle_data_member_location): New overload.
4614 (dwarf2_add_field): Use it.
4615 (decode_locdesc): Add "computed" parameter. Update comment.
4616 * gdbtypes.c (is_dynamic_type_internal): Also look for
4617 FIELD_LOC_KIND_DWARF_BLOCK.
4618 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4619 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4620 virtual base classes.
4621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4622 FIELD_LOC_KIND_DWARF_BLOCK.
4623
f8e89861
TT
46242020-04-24 Tom Tromey <tromey@adacore.com>
4625
4626 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4627 * gdbtypes.c (is_dynamic_type_internal): Check
4628 TYPE_HAS_DYNAMIC_LENGTH.
4629 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4630 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4631 New macros.
4632 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4633 constant.
4634
9c6a1327
TT
46352020-04-24 Tom Tromey <tromey@adacore.com>
4636
4637 * dwarf2/read.c (struct variant_field): Rewrite.
4638 (struct variant_part_builder): New.
4639 (struct nextfield): Remove "variant" field. Add "offset".
4640 (struct field_info): Add "current_variant_part" and
4641 "variant_parts".
4642 (alloc_discriminant_info): Remove.
4643 (alloc_rust_variant): New function.
4644 (quirk_rust_enum): Update.
4645 (dwarf2_add_field): Set "offset" member. Don't handle
4646 DW_TAG_variant_part.
4647 (offset_map_type): New typedef.
4648 (convert_variant_range, create_one_variant)
4649 (create_one_variant_part, create_variant_parts)
4650 (add_variant_property): New functions.
4651 (dwarf2_attach_fields_to_type): Call add_variant_property.
4652 (read_structure_type): Don't handle DW_TAG_variant_part.
4653 (handle_variant_part, handle_variant): New functions.
4654 (handle_struct_member_die): Use them.
4655 (process_structure_scope): Don't handle variant parts.
4656 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4657 (struct discriminant_info): Remove.
4658 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4659 (struct main_type) <flag_discriminated_union>: Remove.
4660 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4661 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4662 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4663 Update.
4664 * valops.c (value_union_variant): Remove.
4665 * value.h (value_union_variant): Don't declare.
4666
b249d2c2
TT
46672020-04-24 Tom Tromey <tromey@adacore.com>
4668
4669 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4670 (ada_value_primitive_packed_val): Update.
4671 * ada-valprint.c (ada_value_print_1): Update.
4672 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4673 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4674 just an address. Use evaluate_for_locexpr_baton.
4675 (dwarf2_evaluate_property): Update.
4676 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4677 array_view.
4678 * findvar.c (default_read_var_value): Update.
4679 * gdbtypes.c (compute_variant_fields_inner)
4680 (resolve_dynamic_type_internal): Update.
4681 (resolve_dynamic_type): Change type of valaddr parameter.
4682 * gdbtypes.h (resolve_dynamic_type): Update.
4683 * valarith.c (value_subscripted_rvalue): Update.
4684 * value.c (value_from_contents_and_address): Update.
4685
61122aa9
TT
46862020-04-24 Tom Tromey <tromey@adacore.com>
4687
4688 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4689 "push_initial_value" parameter.
4690 (dwarf2_evaluate_property): Likewise.
4691 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4692
ef83a141
TT
46932020-04-24 Tom Tromey <tromey@adacore.com>
4694
4695 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4696 (variant::matches, compute_variant_fields_recurse)
4697 (compute_variant_fields_inner, compute_variant_fields): New
4698 functions.
4699 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4700 Use resolved_type after type is made.
4701 (operator==): Add new cases.
4702 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4703 (struct discriminant_range, struct variant, struct variant_part):
4704 New.
4705 (union dynamic_prop_data) <variant_parts, original_type>: New
4706 members.
4707 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4708 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4709 constants.
4710 * value.c (unpack_bits_as_long): Now public.
4711 * value.h (unpack_bits_as_long): Declare.
4712
675127ec
TT
47132020-04-24 Tom Tromey <tromey@adacore.com>
4714
4715 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4716 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4717
9852ceef
HD
47182020-04-24 Hannes Domani <ssbssa@yahoo.de>
4719
4720 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4721
7632c6ce
KR
47222020-04-24 Kamil Rytarowski <n54@gmx.com>
4723
4724 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4725 (remove_fork_catchpoint, post_startup_inferior)
4726 (post_attach): Move...
4727 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4728 (remove_fork_catchpoint, post_startup_inferior)
4729 (post_attach): ...here.
4730 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4731 (remove_fork_catchpoint, post_startup_inferior)
4732 (post_attach): Move...
4733 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4734 (remove_fork_catchpoint, post_startup_inferior)
4735 (post_attach): ...here.
4736
7be2bb4f
TT
47372020-04-24 Tom Tromey <tromey@adacore.com>
4738
4739 * nat/windows-nat.h (struct windows_thread_info)
4740 <pc_adjusted>: New member.
4741 * windows-nat.c (windows_fetch_one_register): Check
4742 pc_adjusted.
4743 (windows_nat_target::get_windows_debug_event)
4744 (windows_nat_target::wait): Set pc_adjusted.
4745
f80cb3b4
TV
47462020-04-24 Tom de Vries <tdevries@suse.de>
4747
4748 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4749 Run gdb-add-index inside temp dir.
4750
29514b87
TT
47512020-04-23 Tom Tromey <tromey@adacore.com>
4752
4753 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4754 in loop.
4755
5939967b
LM
47562020-04-23 Luis Machado <luis.machado@linaro.org>
4757
4758 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4759 get_frame_register instead of gdbarch_unwind_pc.
4760
70bc38f5
TV
47612020-04-23 Tom de Vries <tdevries@suse.de>
4762
4763 * symtab.c (lookup_global_symbol): Prefer def over decl.
4764
de82891c
TV
47652020-04-23 Tom de Vries <tdevries@suse.de>
4766
4767 PR symtab/25807
4768 * block.c (best_symbol, better_symbol): Promote to external.
4769 * block.h (best_symbol, better_symbol): Declare.
4770 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4771 decl.
4772
ecc6c606
TT
47732020-04-23 Tom Tromey <tromey@adacore.com>
4774
4775 PR ada/25837:
4776 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4777 "const char *", not a "const std::string &".
4778 <name_and_matcher::operator==>: Update.
4779 * unittests/lookup_name_info-selftests.c: Change type of
4780 "result".
4781
740480b8
TT
47822020-04-23 Tom Tromey <tom@tromey.com>
4783
4784 * inferior.h (iterate_over_inferiors): Don't declare.
4785 * inferior.c (iterate_over_inferiors): Remove.
4786 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4787 Remove.
4788 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4789 use iterate_over_inferiors.
4790 (darwin_resume_inferior_it)
4791 (struct resume_inferior_threads_param)
4792 (darwin_resume_inferior_threads_it): Remove.
4793 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4794
ae3ab1f0
TV
47952020-04-23 Tom de Vries <tdevries@suse.de>
4796
4797 * blockframe.c (find_pc_partial_function): Use
4798 find_pc_sect_compunit_symtab rather than
4799 objfile->sf->qf->find_pc_sect_compunit_symtab.
4800
317d2668
TV
48012020-04-22 Tom de Vries <tdevries@suse.de>
4802
4803 PR symtab/25764
4804 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4805 in psymtabs.
4806
eea9e357
TV
48072020-04-22 Tom de Vries <tdevries@suse.de>
4808
4809 PR symtab/25801
4810 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4811 symtabs.
4812
3d5afab3
TV
48132020-04-22 Tom de Vries <tdevries@suse.de>
4814
4815 PR symtab/25700
4816 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4817 CU if already created.
4818
d43b7a2d
TBA
48192020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4820
4821 * infrun.c (displaced_step_fixup): Switch to the event_thread
4822 before calling displaced_step_restore, not after.
4823
d89edf9b
MM
48242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4825
4826 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4827 its inferior is not recorded by us.
4828 (record_btrace_target_open): Replace call to
4829 all_non_exited_threads () with call to current_inferior
4830 ()->non_exited_threads ().
4831 (record_btrace_target::stop_recording): Likewise.
4832 (record_btrace_target::close): Likewise.
4833 (record_btrace_target::wait): Likewise.
4834 (record_btrace_target::record_stop_replaying): Likewise.
4835
5897fd49
MM
48362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4837
4838 * btrace.c (btrace_enable): Throw an error on double enables and
4839 when enabling recording fails.
4840 (btrace_disable): Throw an error if the thread is not recorded.
4841
1a476b6d
MM
48422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4843
4844 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4845 request if we do not have a thread_info.
4846
4778a5f8
TV
48472020-04-21 Tom de Vries <tdevries@suse.de>
4848
4849 PR gdb/25471
4850 * thread.c
4851 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4852 exception in get_frame_id.
4853
0fa7617d
TT
48542020-04-20 Tom Tromey <tromey@adacore.com>
4855
4856 * python/python.c (struct gdbpy_event): Mark move constructor as
4857 noexcept.
4858 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4859 constructor as noexcept.
4860 * completer.h (struct completion_result): Mark move constructor as
4861 noexcept.
4862 * completer.c (completion_result::completion_result): Use
4863 initialization style. Don't call reset_match_list.
4864
ad23bda0
MS
48652020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4866
4867 * MAINTAINERS (Write After Approval): Add myself.
4868
45e1f031
TT
48692020-04-18 Tom Tromey <tom@tromey.com>
4870
4871 * windows-tdep.c (init_w32_command_list)
4872 (w32_prefix_command_valid): Restore.
4873 (_initialize_windows_tdep): Call init_w32_command_list.
4874
08feed99
TT
48752020-04-18 Tom Tromey <tom@tromey.com>
4876
4877 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4878 * value.c (value_fn_field): Update.
4879 * valops.c (find_function_in_inferior)
4880 (value_allocate_space_in_inferior): Update.
4881 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4882 Update.
4883 * tui/tui-source.c (tui_source_window::set_contents): Update.
4884 * symtab.c (lookup_global_or_static_symbol)
4885 (find_function_start_sal_1, skip_prologue_sal)
4886 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4887 * symmisc.c (dump_msymbols, dump_symtab_1)
4888 (maintenance_print_one_line_table): Update.
4889 * symfile.c (init_entry_point_info, section_is_mapped)
4890 (list_overlays_command, simple_read_overlay_table)
4891 (simple_overlay_update_1): Update.
4892 * stap-probe.c (handle_stap_probe): Update.
4893 * stabsread.c (dbx_init_float_type, define_symbol)
4894 (read_one_struct_field, read_enum_type, read_range_type): Update.
4895 * source.c (info_line_command): Update.
4896 * python/python.c (gdbpy_source_objfile_script)
4897 (gdbpy_execute_objfile_script): Update.
4898 * python/py-type.c (save_objfile_types): Update.
4899 * python/py-objfile.c (py_free_objfile): Update.
4900 * python/py-inferior.c (python_new_objfile): Update.
4901 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4902 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4903 (maintenance_check_psymtabs): Update.
4904 * printcmd.c (info_address_command): Update.
4905 * objfiles.h (struct objfile) <arch>: New method, from
4906 get_objfile_arch.
4907 (get_objfile_arch): Don't declare.
4908 * objfiles.c (get_objfile_arch): Remove.
4909 (filter_overlapping_sections): Update.
4910 * minsyms.c (msymbol_is_function): Update.
4911 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4912 (output_nondebug_symbol): Update.
4913 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4914 (mdebug_expand_psymtab): Update.
4915 * machoread.c (macho_add_oso_symfile): Update.
4916 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4917 Update.
4918 * linux-fork.c (checkpoint_command): Update.
4919 * linespec.c (convert_linespec_to_sals): Update.
4920 * jit.c (finalize_symtab): Update.
4921 * infrun.c (insert_exception_resume_from_probe): Update.
4922 * ia64-tdep.c (ia64_find_unwind_table): Update.
4923 * hppa-tdep.c (internalize_unwinds): Update.
4924 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4925 Update.
4926 * gcore.c (call_target_sbrk): Update.
4927 * elfread.c (record_minimal_symbol, elf_symtab_read)
4928 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4929 (elf_gnu_ifunc_resolve_by_got): Update.
4930 * dwarf2/read.c (create_addrmap_from_index)
4931 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4932 (read_debug_names_from_section)
4933 (process_psymtab_comp_unit_reader, add_partial_symbol)
4934 (add_partial_subprogram, process_full_comp_unit)
4935 (read_file_scope, read_func_scope, read_lexical_block_scope)
4936 (read_call_site_scope, dwarf2_ranges_read)
4937 (dwarf2_record_block_ranges, dwarf2_add_field)
4938 (mark_common_block_symbol_computed, read_tag_pointer_type)
4939 (read_tag_string_type, dwarf2_init_float_type)
4940 (dwarf2_init_complex_target_type, read_base_type)
4941 (partial_die_info::read, partial_die_info::read)
4942 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4943 (dwarf2_fetch_die_loc_sect_off): Update.
4944 * dwarf2/loc.c (dwarf2_find_location_expression)
4945 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4946 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4947 (dwarf2_loc_desc_get_symbol_read_needs)
4948 (locexpr_describe_location_piece, locexpr_describe_location_1)
4949 (loclist_describe_location): Update.
4950 * dwarf2/index-write.c (write_debug_names): Update.
4951 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4952 * dtrace-probe.c (dtrace_process_dof): Update.
4953 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4954 (process_one_symbol): Update.
4955 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4956 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4957 (coff_read_enum_type): Update.
4958 * cli/cli-cmds.c (edit_command, list_command): Update.
4959 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4960 * breakpoint.c (create_overlay_event_breakpoint)
4961 (create_longjmp_master_breakpoint)
4962 (create_std_terminate_master_breakpoint)
4963 (create_exception_master_breakpoint, get_sal_arch): Update.
4964 * block.c (block_gdbarch): Update.
4965 * annotate.c (annotate_source_line): Update.
4966
0743fc83
TT
49672020-04-17 Tom Tromey <tromey@adacore.com>
4968
4969 * auto-load.c (show_auto_load_cmd): Remove.
4970 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4971 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4972 (maintenance_print_arc_command): Remove.
4973 * tui/tui-win.c (tui_command): Remove.
4974 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4975 * tui/tui-layout.c (tui_layout_command): Remove.
4976 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4977 * python/python.c (user_set_python, user_show_python): Remove.
4978 (_initialize_python): Use add_basic_prefix_cmd,
4979 add_show_prefix_cmd.
4980 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4981 (install_gdb_commands): Use add_basic_prefix_cmd,
4982 add_show_prefix_cmd.
4983 (info_guile_command): Remove.
4984 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4985 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4986 add_show_prefix_cmd.
4987 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4988 Remove do_set and do_show parameters.
4989 * cli/cli-style.c (set_style, show_style): Remove.
4990 (_initialize_cli_style): Use add_basic_prefix_cmd,
4991 add_show_prefix_cmd.
4992 (cli_style_option::add_setshow_commands): Remove do_set and
4993 do_show parameters.
4994 (cli_style_option::add_setshow_commands): Use
4995 add_basic_prefix_cmd, add_show_prefix_cmd.
4996 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4997 (set_style_name): Remove.
4998 * cli/cli-dump.c (dump_command, append_command): Remove.
4999 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5000 (tekhex_dump_command, binary_dump_command)
5001 (binary_append_command): Remove.
5002 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5003 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5004 (init_w32_command_list): Remove; move into ...
5005 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5006 * valprint.c (set_print, show_print, set_print_raw)
5007 (show_print_raw): Remove.
5008 (_initialize_valprint): Use add_basic_prefix_cmd,
5009 add_show_prefix_cmd.
5010 * typeprint.c (set_print_type, show_print_type): Remove.
5011 (_initialize_typeprint): Use add_basic_prefix_cmd,
5012 add_show_prefix_cmd.
5013 * record.c (set_record_command, show_record_command): Remove.
5014 (_initialize_record): Use add_basic_prefix_cmd,
5015 add_show_prefix_cmd.
5016 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5017 add_show_prefix_cmd.
5018 (info_command, show_command, set_debug, show_debug): Remove.
5019 * top.h (set_history, show_history): Don't declare.
5020 * top.c (set_history, show_history): Remove.
5021 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5022 (unset_tdesc_cmd): Remove.
5023 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5024 add_show_prefix_cmd.
5025 * symtab.c (info_module_command): Remove.
5026 (_initialize_symtab): Use add_basic_prefix_cmd.
5027 * symfile.c (overlay_command): Remove.
5028 (_initialize_symfile): Use add_basic_prefix_cmd.
5029 * sparc64-tdep.c (info_adi_command): Remove.
5030 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5031 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5032 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5033 add_show_prefix_cmd.
5034 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5035 (_initialize_serial): Use add_basic_prefix_cmd,
5036 add_show_prefix_cmd.
5037 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5038 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5039 add_show_prefix_cmd.
5040 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5041 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5042 add_show_prefix_cmd.
5043 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5044 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5045 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5046 add_show_prefix_cmd.
5047 * remote.c (remote_command, set_remote_cmd): Remove.
5048 (_initialize_remote): Use add_basic_prefix_cmd.
5049 * record-full.c (set_record_full_command)
5050 (show_record_full_command): Remove.
5051 (_initialize_record_full): Use add_basic_prefix_cmd,
5052 add_show_prefix_cmd.
5053 * record-btrace.c (cmd_set_record_btrace)
5054 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5055 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5056 (cmd_show_record_btrace_pt): Remove.
5057 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5058 add_show_prefix_cmd.
5059 * ravenscar-thread.c (set_ravenscar_command)
5060 (show_ravenscar_command): Remove.
5061 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5062 add_show_prefix_cmd.
5063 * mips-tdep.c (show_mips_command, set_mips_command)
5064 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5065 add_show_prefix_cmd.
5066 * maint.c (maintenance_command, maintenance_info_command)
5067 (maintenance_check_command, maintenance_print_command)
5068 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5069 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5070 add_show_prefix_cmd.
5071 (show_per_command_cmd): Remove.
5072 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5073 Remove.
5074 (maintenance_show_test_settings_cmd): Remove.
5075 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5076 add_show_prefix_cmd.
5077 * maint-test-options.c (maintenance_test_options_command):
5078 Remove.
5079 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5080 * macrocmd.c (macro_command): Remove
5081 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5082 * language.c (set_check, show_check): Remove.
5083 (_initialize_language): Use add_basic_prefix_cmd,
5084 add_show_prefix_cmd.
5085 * infcmd.c (unset_command): Remove.
5086 (_initialize_infcmd): Use add_basic_prefix_cmd.
5087 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5088 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5089 add_show_prefix_cmd.
5090 * go32-nat.c (go32_info_dos_command): Remove.
5091 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5092 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5093 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5094 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5095 (_initialize_frame): Use add_basic_prefix_cmd,
5096 add_show_prefix_cmd.
5097 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5098 (_initialize_dcache): Use add_basic_prefix_cmd,
5099 add_show_prefix_cmd.
5100 * cp-support.c (maint_cplus_command): Remove.
5101 (_initialize_cp_support): Use add_basic_prefix_cmd.
5102 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5103 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5104 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5105 add_basic_prefix_cmd, add_show_prefix_cmd.
5106 * breakpoint.c (save_command): Remove.
5107 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5108 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5109 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5110 add_show_prefix_cmd.
5111 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5112 (set_ada_command, show_ada_command): Remove.
5113 (_initialize_ada_language): Use add_basic_prefix_cmd,
5114 add_show_prefix_cmd.
5115 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5116
3557f442
KR
51172020-04-16 Kamil Rytarowski <n54@gmx.com>
5118
5119 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5120 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5121
16197208
SM
51222020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5125 warning messages.
5126
00ac85d3
SM
51272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5130 import table is not at beginning of .idata section.
5131
381ce63f
PA
51322020-04-16 Pedro Alves <palves@redhat.com>
5133
5134 * inferior.c (delete_inferior): Use delete operator directly
5135 instead of delete_program_space.
5136 * progspace.c (add_program_space): New, factored out from
5137 program_space::program_space.
5138 (remove_program_space): New, factored out from
5139 delete_program_space.
5140 (program_space::program_space): Remove intro comment. Rewrite.
5141 (program_space::~program_space): Remove intro comment. Call
5142 remove_program_space.
5143 (delete_program_space): Delete.
5144 * progspace.h (program_space::program_space): Make explicit. Move
5145 intro comment here, adjusted.
5146 (program_space::~program_space): Move intro comment here,
5147 adjusted.
5148 (delete_program_space): Remove.
5149
a010605f
TT
51502020-04-16 Tom Tromey <tromey@adacore.com>
5151
5152 * windows-nat.c (windows_nat::handle_access_violation): New
5153 function.
5154 * nat/windows-nat.h (handle_access_violation): Declare.
5155 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5156 windows-nat.c. Call handle_access_violation.
5157
efba5c23
TV
51582020-04-16 Tom de Vries <tdevries@suse.de>
5159
5160 PR symtab/25791
5161 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5162 CUs without psymtab.
5163
97ed802d
KB
51642020-04-16 Kevin Buettner <kevinb@redhat.com>
5165
5166 * python/python.c (do_start_initialization): Don't call
5167 PyEval_InitThreads for Python 3.9 and beyond.
5168
c7d64809
KR
51692020-04-15 Kamil Rytarowski <n54@gmx.com>
5170
5171 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5172 thread functions.
5173 (obsd_nat_target::wait): Likewise.
5174
ce127a96
TT
51752020-04-15 Tom Tromey <tromey@adacore.com>
5176
5177 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5178 (DEBUG_EXCEPT): Use debug_printf.
5179
99f1bc6a
AB
51802020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5181
5182 * completer.c (class completion_tracker::completion_hash_entry)
5183 <hash_name>: New member function.
5184 (completion_tracker::discard_completions): New callback to hash a
5185 completion_hash_entry, pass this to htab_create_alloc.
5186
a0e9b532
JT
51872016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5188
5189 * windows-nat.c (windows_make_so): Warn rather than stopping with
5190 an error if realpath() fails.
5191
06ca5dd4
KR
51922020-04-14 Kamil Rytarowski <n54@gmx.com>
5193
5194 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5195 (nbsd_nat_target::info_proc): Add do_status.
5196
194d088f
TV
51972020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5198 Tom de Vries <tdevries@suse.de>
5199
5200 PR symtab/25718
5201 * psympriv.h (struct partial_symtab::read_symtab)
5202 (struct partial_symtab::expand_psymtab)
5203 (struct partial_symtab::read_dependencies): Update comments.
5204 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5205 read_symtab for includer.
5206 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5207 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5208 (struct dwarf2_include_psymtab::m_readin): Remove.
5209 (struct dwarf2_include_psymtab::includer): New member function.
5210 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5211
c1a66c06
TV
52122020-04-14 Tom de Vries <tdevries@suse.de>
5213
5214 PR symtab/25720
5215 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5216 with NULL symbol_matcher and lookup_name.
5217 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5218 and lookup_name.
5219 * dwarf2/read.c (dw2_expand_symtabs_matching)
5220 (dw2_debug_names_expand_symtabs_matching): Same.
5221 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5222 Make lookup_name a pointer. Update comment.
5223 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5224 lookup_name being a pointer.
5225 * symfile.c (expand_symtabs_matching): Same.
5226 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5227 * linespec.c (iterate_over_all_matching_symtabs): Same.
5228
400b5eca
TT
52292020-04-13 Tom Tromey <tom@tromey.com>
5230
5231 * run-on-main-thread.c: Update include.
5232 * unittests/main-thread-selftests.c: Update include.
5233 * tui/tui-win.c: Update include.
5234 * tui/tui-io.c: Update include.
5235 * tui/tui-interp.c: Update include.
5236 * tui/tui-hooks.c: Update include.
5237 * top.h: Update include.
5238 * top.c: Update include.
5239 * ser-base.c: Update include.
5240 * remote.c: Update include.
5241 * remote-notif.c: Update include.
5242 * remote-fileio.c: Update include.
5243 * record-full.c: Update include.
5244 * record-btrace.c: Update include.
5245 * python/python.c: Update include.
5246 * posix-hdep.c: Update include.
5247 * mingw-hdep.c: Update include.
5248 * mi/mi-main.c: Update include.
5249 * mi/mi-interp.c: Update include.
5250 * main.c: Update include.
5251 * linux-nat.c: Update include.
5252 * interps.c: Update include.
5253 * infrun.c: Update include.
5254 * inf-loop.c: Update include.
5255 * event-top.c: Update include.
5256 * event-loop.c: Move to ../gdbsupport/.
5257 * event-loop.h: Move to ../gdbsupport/.
5258 * async-event.h: Update include.
5259 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5260
93b54c8e
TT
52612020-04-13 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-win.c: Include async-event.h.
5264 * remote.c: Include async-event.h.
5265 * remote-notif.c: Include async-event.h.
5266 * record-full.c: Include async-event.h.
5267 * record-btrace.c: Include async-event.h.
5268 * infrun.c: Include async-event.h.
5269 * event-top.c: Include async-event.h.
5270 * event-loop.h: Move some declarations to async-event.h.
5271 * event-loop.c: Don't include ser-event.h or top.h. Move some
5272 code to async-event.c.
5273 * async-event.h: New file.
5274 * async-event.c: New file.
5275 * Makefile.in (COMMON_SFILES): Add async-event.c.
5276 (HFILES_NO_SRCDIR): Add async-event.h.
5277
c1cd3163
TT
52782020-04-13 Tom Tromey <tom@tromey.com>
5279
5280 * utils.c (flush_streams): New function.
5281 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5282
29f2bf4f
TT
52832020-04-13 Tom Tromey <tom@tromey.com>
5284
5285 * event-loop.c (handle_file_event): Use warning, not
5286 printf_unfiltered.
5287
98029d02
TT
52882020-04-13 Tom Tromey <tom@tromey.com>
5289
5290 * event-loop.c: Include <chrono>.
5291
06cc9596
TT
52922020-04-13 Tom Tromey <tom@tromey.com>
5293
5294 * gdb_select.h: Move to ../gdbsupport/.
5295 * event-loop.c: Update include path.
5296 * top.c: Update include path.
5297 * ser-base.c: Update include path.
5298 * ui-file.c: Update include path.
5299 * ser-tcp.c: Update include path.
5300 * guile/scm-ports.c: Update include path.
5301 * posix-hdep.c: Update include path.
5302 * ser-unix.c: Update include path.
5303 * gdb_usleep.c: Update include path.
5304 * mingw-hdep.c: Update include path.
5305 * inflow.c: Update include path.
5306 * infrun.c: Update include path.
5307 * event-top.c: Update include path.
5308
8ae8e197
TT
53092020-04-13 Tom Tromey <tom@tromey.com>
5310
5311 * configure: Rebuild.
5312 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5313
58cf28e8
TT
53142020-04-13 Tom Tromey <tom@tromey.com>
5315
5316 * event-loop.h (start_event_loop): Don't declare.
5317 * event-loop.c (start_event_loop): Move...
5318 * main.c (start_event_loop): ...here. Now static.
5319
b7f999ae
SDJ
53202020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5321
5322 * MAINTAINERS: Update my email address.
5323
1085dfd4
KR
53242020-04-12 Kamil Rytarowski <n54@gmx.com>
5325
5326 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5327 IP_ALL.
5328
49d1d1f5
KR
53292020-04-12 Kamil Rytarowski <n54@gmx.com>
5330
5331 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5332 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5333
b4848d2a
KR
53342020-04-12 Kamil Rytarowski <n54@gmx.com>
5335
5336 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5337 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5338
51c133d5
KR
53392020-04-12 Kamil Rytarowski <n54@gmx.com>
5340
5341 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5342
54b8cbd0
KR
53432020-04-11 Kamil Rytarowski <n54@gmx.com>
5344
5345 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5346 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5347 (nbsd_nat_target::info_proc): New functions.
5348 * nbsd-nat.c (kinfo_get_vmmap): New function.
5349 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5350 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5351 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5352 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5353 functions.
5354 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5355 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5356 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5357 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5358 (KINFO_VME_FLAG_GROWS_DOWN): New.
5359
cf83625d
AS
53602020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5361
5362 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5363 bit shift.
5364
0c4311ab
TT
53652020-04-10 Tom Tromey <tromey@adacore.com>
5366
5367 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5368
3e65b3e9
TT
53692020-04-10 Tom Tromey <tromey@adacore.com>
5370
5371 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5372 separate debug files.
5373
13302e95
HD
53742020-04-10 Hannes Domani <ssbssa@yahoo.de>
5375
5376 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5377 Move to...
5378 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5379 ... here.
5380 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5381 Check for STATUS_WX86_BREAKPOINT.
5382 (windows_nat_target::wait): Same.
5383
bdfc1e8a
TV
53842020-04-10 Tom de Vries <tdevries@suse.de>
5385
5386 PR cli/25808
5387 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5388
f4460aec
SM
53892020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5390
5391 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5392 (Write After Approval): Remove Tom de Vries.
5393
a25198bb
BE
53942020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5395
5396 revert partially:
5397 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5398
aac66a4c
SM
5399 * buildsym.c (record_line): Fix undefined behavior and preserve
5400 lines at eof.
a25198bb 5401
206c98a6
KR
54022020-04-09 Kamil Rytarowski <n54@gmx.com>
5403
5404 * auxv.h (svr4_auxv_parse): New.
5405 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5406 and generic_auxv_parse.
5407 (svr4_auxv_parse): Add.
5408 * obsd-tdep.c: Include "auxv.h".
5409 (obsd_auxv_parse): Remove.
5410 (obsd_init_abi): Remove comment.
5411 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5412 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5413 * nbsd-tdep.c: Include "auxv.h".
5414 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5415
71fbdbaf
TT
54162020-04-08 Tom Tromey <tromey@adacore.com>
5417
5418 * nat/windows-nat.h (last_wait_event): Don't declare.
5419 (wait_for_debug_event): Update comment.
5420 * nat/windows-nat.c (last_wait_event): Now static.
5421
2c1d95e8
TT
54222020-04-08 Tom Tromey <tromey@adacore.com>
5423
5424 * windows-nat.c (wait_for_debug_event): Move to
5425 nat/windows-nat.c.
5426 * nat/windows-nat.h (wait_for_debug_event): Declare.
5427 * nat/windows-nat.c (wait_for_debug_event): Move from
5428 windows-nat.c. No longer static.
5429
d2977bc4
TT
54302020-04-08 Tom Tromey <tromey@adacore.com>
5431
5432 * windows-nat.c (get_windows_debug_event): Use
5433 fetch_pending_stop.
5434 * nat/windows-nat.h (fetch_pending_stop): Declare.
5435 * nat/windows-nat.c (fetch_pending_stop): New function.
5436
e758e19c
TT
54372020-04-08 Tom Tromey <tromey@adacore.com>
5438
5439 * windows-nat.c (windows_continue): Use matching_pending_stop and
5440 continue_last_debug_event.
5441 * nat/windows-nat.h (matching_pending_stop)
5442 (continue_last_debug_event): Declare.
5443 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5444 (matching_pending_stop, continue_last_debug_event): New
5445 functions.
5446
8d30e395
TT
54472020-04-08 Tom Tromey <tromey@adacore.com>
5448
5449 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5450 (handle_exception_result): Move to nat/windows-nat.h.
5451 (DEBUG_EXCEPTION_SIMPLE): Remove.
5452 (windows_nat::handle_ms_vc_exception): New function.
5453 (handle_exception): Move to nat/windows-nat.c.
5454 (get_windows_debug_event): Update.
5455 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5456 nat/windows-nat.c.
5457 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5458 (handle_exception_result): Move from windows-nat.c.
5459 (handle_exception): Declare.
5460 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5461 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5462 windows-nat.c.
5463
29de418d
TT
54642020-04-08 Tom Tromey <tromey@adacore.com>
5465
5466 * windows-nat.c (exception_count, event_count): Remove.
5467 (handle_exception, get_windows_debug_event)
5468 (do_initial_windows_stuff): Update.
5469
a816ba18
TT
54702020-04-08 Tom Tromey <tromey@adacore.com>
5471
5472 * windows-nat.c (windows_nat::handle_load_dll)
5473 (windows_nat::handle_unload_dll): Rename. No longer static.
5474 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5475 Declare.
5476
a00caa12
TT
54772020-04-08 Tom Tromey <tromey@adacore.com>
5478
5479 * complaints.h (stop_whining): Declare at top-level.
5480 (complaint): Don't declare stop_whining.
5481
d41b524f
TT
54822020-04-08 Tom Tromey <tromey@adacore.com>
5483
5484 * windows-nat.c (windows_nat::handle_output_debug_string):
5485 Rename. No longer static.
5486 * nat/windows-nat.h (handle_output_debug_string): Declare.
5487
3c76026d
TT
54882020-04-08 Tom Tromey <tromey@adacore.com>
5489
5490 * windows-nat.c (current_process_handle, current_process_id)
5491 (main_thread_id, last_sig, current_event, last_wait_event)
5492 (current_windows_thread, desired_stop_thread_id, pending_stops)
5493 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5494 (display_selectors, fake_create_process)
5495 (get_windows_debug_event): Update.
5496 * nat/windows-nat.h (current_process_handle, current_process_id)
5497 (main_thread_id, last_sig, current_event, last_wait_event)
5498 (current_windows_thread, desired_stop_thread_id, pending_stops)
5499 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5500 * nat/windows-nat.c (current_process_handle, current_process_id)
5501 (main_thread_id, last_sig, current_event, last_wait_event)
5502 (current_windows_thread, desired_stop_thread_id, pending_stops)
5503 (siginfo_er): New globals. Move from windows-nat.c.
5504
9d8679cc
TT
55052020-04-08 Tom Tromey <tromey@adacore.com>
5506
5507 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5508 (handle_load_dll): Update.
5509 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5510
28688adf
TT
55112020-04-08 Tom Tromey <tromey@adacore.com>
5512
5513 * windows-nat.c (enum thread_disposition_type): Move to
5514 nat/windows-nat.h.
5515 (windows_nat::thread_rec): Rename from thread_rec. No longer
5516 static.
5517 (windows_add_thread, windows_nat_target::fetch_registers)
5518 (windows_nat_target::store_registers, handle_exception)
5519 (windows_nat_target::resume, get_windows_debug_event)
5520 (windows_nat_target::get_tib_address)
5521 (windows_nat_target::thread_name)
5522 (windows_nat_target::thread_alive): Update.
5523 * nat/windows-nat.h (enum thread_disposition_type): Move from
5524 windows-nat.c.
5525 (thread_rec): Declare.
5526
4834dad0
TT
55272020-04-08 Tom Tromey <tromey@adacore.com>
5528
5529 * windows-nat.c: Add "using namespace".
5530 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5531 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5532
65bafd5b
TT
55332020-04-08 Tom Tromey <tromey@adacore.com>
5534
5535 * nat/windows-nat.h (struct windows_thread_info): Declare
5536 destructor.
5537 * nat/windows-nat.c (~windows_thread_info): New.
5538
0a4afda3
TT
55392020-04-08 Tom Tromey <tromey@adacore.com>
5540
5541 PR gdb/22992
5542 * windows-nat.c (current_event): Update comment.
5543 (last_wait_event, desired_stop_thread_id): New globals.
5544 (struct pending_stop): New.
5545 (pending_stops): New global.
5546 (windows_nat_target) <stopped_by_sw_breakpoint>
5547 <supports_stopped_by_sw_breakpoint>: New methods.
5548 (windows_fetch_one_register): Add assertions. Adjust PC.
5549 (windows_continue): Handle pending stops. Suspend other threads
5550 when stepping. Use last_wait_event
5551 (wait_for_debug_event): New function.
5552 (get_windows_debug_event): Use wait_for_debug_event. Handle
5553 pending stops. Queue spurious stops.
5554 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5555 (windows_nat_target::kill): Use wait_for_debug_event.
5556 * nat/windows-nat.h (struct windows_thread_info)
5557 <stopped_at_software_breakpoint>: New field.
5558 * nat/windows-nat.c (windows_thread_info::resume): Clear
5559 stopped_at_software_breakpoint.
5560
8e61ebec
TT
55612020-04-08 Tom Tromey <tromey@adacore.com>
5562
5563 * windows-nat.c (enum thread_disposition_type): New.
5564 (thread_rec): Replace "get_context" parameter with "disposition";
5565 change type.
5566 (windows_add_thread, windows_nat_target::fetch_registers)
5567 (windows_nat_target::store_registers, handle_exception)
5568 (windows_nat_target::resume, get_windows_debug_event)
5569 (windows_nat_target::get_tib_address)
5570 (windows_nat_target::thread_name)
5571 (windows_nat_target::thread_alive): Update.
5572
98a03287
TT
55732020-04-08 Tom Tromey <tromey@adacore.com>
5574
5575 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5576 (windows_continue): Use windows_continue::resume.
5577 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5578 resume>: Declare new methods.
5579 * nat/windows-nat.c: New file.
5580 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5581
7c7411bc
TT
55822020-04-08 Tom Tromey <tromey@adacore.com>
5583
5584 * windows-nat.c (windows_add_thread, windows_delete_thread)
5585 (windows_nat_target::fetch_registers)
5586 (windows_nat_target::store_registers, fake_create_process)
5587 (windows_nat_target::resume, windows_nat_target::resume)
5588 (get_windows_debug_event, windows_nat_target::wait)
5589 (windows_nat_target::pid_to_str)
5590 (windows_nat_target::get_tib_address)
5591 (windows_nat_target::get_ada_task_ptid)
5592 (windows_nat_target::thread_name)
5593 (windows_nat_target::thread_alive): Use lwp, not tid.
5594
2950fdf7
TT
55952020-04-08 Tom Tromey <tromey@adacore.com>
5596
5597 * windows-nat.c (handle_exception)
5598 (windows_nat_target::thread_name): Update.
5599 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5600 <name>: Now unique_xmalloc_ptr.
5601
62fe396b
TT
56022020-04-08 Tom Tromey <tromey@adacore.com>
5603
5604 * windows-nat.c (thread_rec)
5605 (windows_nat_target::fetch_registers): Update.
5606 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5607 Update comment.
5608 <debug_registers_changed, reload_context>: Now bool.
5609
e9534bd2
TT
56102020-04-08 Tom Tromey <tromey@adacore.com>
5611
5612 * windows-nat.c (windows_add_thread): Use new.
5613 (windows_init_thread_list, windows_delete_thread): Use delete.
5614 (get_windows_debug_event): Update.
5615 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5616 destructor, and initializers.
5617
ae1f8880
TT
56182020-04-08 Tom Tromey <tromey@adacore.com>
5619
5620 * windows-nat.c (struct windows_thread_info): Remove.
5621 * nat/windows-nat.h: New file.
5622
55a1e039
TT
56232020-04-08 Tom Tromey <tromey@adacore.com>
5624
5625 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5626 (thread_rec, windows_add_thread, windows_delete_thread)
5627 (windows_continue): Update.
5628
93366324
TT
56292020-04-08 Tom Tromey <tromey@adacore.com>
5630
5631 * windows-nat.c (struct windows_thread_info): Remove typedef.
5632 (thread_head): Remove.
5633 (thread_list): New global.
5634 (thread_rec, windows_add_thread, windows_init_thread_list)
5635 (windows_delete_thread, windows_continue): Update.
5636
0f2265e2
SM
56372020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * windows-tdep.h (windows_init_abi): Add comment.
5640 (cygwin_init_abi): New declaration.
5641 * windows-tdep.c: Split signal enumeration in two, one for
5642 Windows and one for Cygwin.
5643 (windows_gdb_signal_to_target): Only deal with signal of the
5644 Windows OS ABI.
5645 (cygwin_gdb_signal_to_target): New function.
5646 (windows_init_abi): Rename to windows_init_abi_common, don't set
5647 gdb_signal_to_target gdbarch method. Add new new function with
5648 this name.
5649 (cygwin_init_abi): New function.
5650 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5651 comment. Don't call windows_init_abi.
5652 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5653 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5654 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5655 i386_windows_init_abi_common, don't call windows_init_abi. Add
5656 a new function of this name.
5657 (i386_cygwin_init_abi): New function.
5658 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5659 OS ABI Cygwin.
5660
3810f182
SM
56612020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5662
5663 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5664 parameter.c.
5665 (dwarf2_read_gdb_index): Update.
5666
063f8e80
KR
56672020-04-07 Kamil Rytarowski <n54@gmx.com>
5668
5669 * nbsd-tdep.c: Include "objfiles.h".
5670 (nbsd_skip_solib_resolver): New.
5671 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5672
85a9510c 56732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5674
5675 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5676 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5677 with DW_LLE_base_addressx are being emitted in DWARFv5.
5678 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5679 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5680 unsigned integer.
5681
9fc3eaae 56822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5683
5684 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5685 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5686 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5687 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5688 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5689 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5690 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5691
5692
41144253 56932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5694
5695 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5696 (read_loclist_index): New function definition.
5697 (lookup_loclist_base): New function definition.
5698 (read_loclist_header): New function definition.
5699 (dwarf2_cu): Add loclist_base and loclist_header field.
5700 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5701 (read_full_die_1): Read the value of DW_AT_loclists_base.
5702 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5703 (read_attribute_value): Handle DW_FORM_loclistx.
5704 (skip_one_die): Handle DW_FORM_loclistx.
5705 (loclist_header): New structure declaration.
5706 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5707
9f4e76a4
SM
57082020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5709
5710 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5711 constructor. Remove `addr` parameter from other constructor and
5712 add `per_cu` parameter.
5713 * dwarf2/read.c (create_partial_symtab): Update.
5714
25c11aca
TV
57152020-04-07 Tom de Vries <tdevries@suse.de>
5716
5717 PR symtab/25796
5718 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5719 (partial_die_info::fixup): Inherit has_const_value.
5720
5707e24b
TV
57212020-04-07 Tom de Vries <tdevries@suse.de>
5722
5723 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5724 symbols without address.
5725
05f00e22
KR
57262020-04-06 Kamil Rytarowski <n54@gmx.com>
5727
5728 * nbsd-nat.h (struct thread_info): Add forward declaration.
5729 (nbsd_nat_target::thread_alive): Add.
5730 (nbsd_nat_target::thread_name): Likewise.
5731 (nbsd_nat_target::update_thread_list): Likewise.
5732 (update_thread_list::post_attach): Likewise.
5733 (post_attach::pid_to_str): Likewise.
5734 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5735 (nbsd_thread_lister): Add.
5736 (nbsd_nat_target::thread_alive): Likewise.
5737 (nbsd_nat_target::thread_name): Likewise.
5738 (nbsd_add_threads): Likewise.
5739 (update_thread_list::post_attach): Likewise.
5740 (nbsd_nat_target::update_thread_list): Likewise.
5741 (post_attach::pid_to_str): Likewise.
5742
6ee448cc
TT
57432020-04-06 Tom Tromey <tromey@adacore.com>
5744
5745 * ada-valprint.c (print_variant_part): Extract the variant field.
5746 (print_field_values): Use the field as the outer value when
5747 recursing.
5748
dea34e8c
TT
57492020-04-06 Tom Tromey <tromey@adacore.com>
5750
5751 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5752 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5753 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5754 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5755 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5756
93689ce9
TT
57572020-04-06 Tom Tromey <tromey@adacore.com>
5758
5759 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5760 TYPE_CODE_ERROR.
5761
79743962
KR
57622020-04-06 Kamil Rytarowski <n54@gmx.com>
5763
5764 * nbsd-tdep.c: Include "gdbarch.h".
5765 Define enum with NetBSD signal numbers.
5766 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5767 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5768 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5769 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5770 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5771 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5772 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5773 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5774 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5775 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5776 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5777 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5778
9e7c9a03
HD
57792020-04-03 Hannes Domani <ssbssa@yahoo.de>
5780
5781 PR gdb/25325
5782 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5783
d9e49b61
TT
57842020-04-03 Tom Tromey <tromey@adacore.com>
5785
5786 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5787 Read constant block.
5788
e0fc5c3f
SM
57892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5792 (gdb_bfd_get_full_section_contents): New declaration.
5793 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5794 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5795 gdb_bfd_get_full_section_contents.
5796
e2ff18a0
SM
57972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * exec.c (build_section_table): Replace internal_error with
5800 gdb_assert.
5801 (section_table_xfer_memory_partial): Likewise.
5802 * mdebugread.c (parse_partial_symbols): Likewise.
5803 * psymtab.c (lookup_partial_symbol): Likewise.
5804 * utils.c (wrap_here): Likewise.
5805
0830d301
TT
58062020-04-02 Tom Tromey <tromey@adacore.com>
5807
5808 * f-lang.c (build_fortran_types): Use arch_type to initialize
5809 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5810
e7da7f8f
TT
58112020-04-02 Tom Tromey <tromey@adacore.com>
5812
5813 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5814 of attributes.
5815
c90d28ac
AB
58162020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5817 Bernd Edlinger <bernd.edlinger@hotmail.de>
5818 Tom Tromey <tromey@adacore.com>
5819
5820 * buildsym.c (buildsym_compunit::record_line): Remove
5821 deduplication code.
5822
1aa98955
TV
58232020-04-02 Tom de Vries <tdevries@suse.de>
5824
5825 PR ada/24671
5826 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5827
d3214198
TV
58282020-04-02 Tom de Vries <tdevries@suse.de>
5829
5830 * dwarf2/read.c (dwarf2_gdb_index_functions,
5831 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5832 NULL.
5833 * psymtab.c (psym_lookup_global_symbol_language): New function.
5834 (psym_functions): Init psym_lookup_global_symbol_language with
5835 psym_lookup_global_symbol_language.
5836 * symfile-debug.c (debug_sym_quick_functions): Init
5837 lookup_global_symbol_language with NULL.
5838 * symfile.c (set_initial_language): Remove fixme comment.
5839 * symfile.h (struct quick_symbol_functions): Add
5840 lookup_global_symbol_language.
5841 * symtab.c (find_quick_global_symbol_language): New function.
5842 (find_main_name): Use find_quick_global_symbol_language.
5843
2836752f
SM
58442020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5847
64dc2d4b
BE
58482020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5849
5850 * buildsym.c (record_line): Fix undefined behavior and preserve
5851 lines at eof.
5852
bbe3dc41
BE
58532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5854
5855 * buildsym.c (record_line): Fix the resizing condition.
5856
6b4a335b
TT
58572020-04-01 Tom Tromey <tom@tromey.com>
5858
5859 * value.h (value_literal_complex): Add comment.
5860 * valops.c (value_literal_complex): Refer to value.h.
5861
3638a098
TT
58622020-04-01 Tom Tromey <tom@tromey.com>
5863
5864 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5865 (scalar_type): New rule, from typebase.
5866 (typebase): Use scalar_type. Recognize complex types.
5867 (field_name): Handle FLOAT_KEYWORD.
5868 (ident_tokens): Add _Complex and __complex__.
5869
c34e8714
TT
58702020-04-01 Tom Tromey <tom@tromey.com>
5871
5872 PR exp/25299:
5873 * valarith.c (promotion_type, complex_binop): New functions.
5874 (scalar_binop): Handle complex numbers. Use promotion_type.
5875 (value_pos, value_neg, value_complement): Handle complex numbers.
5876
fa649bb7
TT
58772020-04-01 Tom Tromey <tom@tromey.com>
5878
5879 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5880 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5881 (parse_number): Handle complex numbers.
5882
981c08ce
TT
58832020-04-01 Tom Tromey <tom@tromey.com>
5884
5885 * c-valprint.c (c_decorations): Change complex suffix to "i".
5886
4c99290d
TT
58872020-04-01 Tom Tromey <tom@tromey.com>
5888
5889 * valprint.c (generic_value_print_complex): Use accessors.
5890 * value.h (value_real_part, value_imaginary_part): Declare.
5891 * valops.c (value_real_part, value_imaginary_part): New
5892 functions.
5893 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5894
5b930b45
TT
58952020-04-01 Tom Tromey <tom@tromey.com>
5896
5897 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5898 (read_range_type): Update.
5899 * mdebugread.c (basic_type): Update.
5900 * go-lang.c (build_go_types): Use init_complex_type.
5901 * gdbtypes.h (struct main_type) <complex_type>: New member.
5902 (init_complex_type): Update.
5903 (arch_complex_type): Don't declare.
5904 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5905 Make name if none given. Use alloc_type_copy. Look for cached
5906 complex type.
5907 (arch_complex_type): Remove.
5908 (gdbtypes_post_init): Use init_complex_type.
5909 * f-lang.c (build_fortran_types): Use init_complex_type.
5910 * dwarf2/read.c (read_base_type): Update.
5911 * d-lang.c (build_d_types): Use init_complex_type.
5912 * ctfread.c (read_base_type): Update.
5913
53cccef1
TBA
59142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5915
5916 * infrun.c (stop_all_threads): Update assertion, plus when
5917 stopping threads, take into account that we might be trying
5918 to stop an all-stop target.
5919 (stop_waiting): Call 'stop_all_threads' if there exists a
5920 non-stop target.
5921
a0714d30
TBA
59222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5923
5924 * target.h (exists_non_stop_target): New function declaration.
5925 * target.c (exists_non_stop_target): New function.
5926
60e22c1e
HD
59272020-04-01 Hannes Domani <ssbssa@yahoo.de>
5928
5929 PR gdb/24789
5930 * eval.c (is_integral_or_integral_reference): New function.
5931 (evaluate_subexp_standard): Allow integer references in
5932 pointer arithmetic.
5933
e139a727
TBA
59342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5935
5936 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5937 check for no ptid in the stop reply when the target is non-stop.
5938
e0802d59
TT
59392020-04-01 Tom Tromey <tromey@adacore.com>
5940
5941 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5942 "name" parameter to rvalue reference. Initialize m_name_holder.
5943 <lookup_name_info>: New overloads.
5944 <name>: Return gdb::string_view.
5945 <c_str>: New method.
5946 <make_ignore_params>: Update.
5947 <search_name_hash>: Update.
5948 <language_lookup_name>: Return const char *.
5949 <m_name>: Change type.
5950 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5951 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5952 (lookup_name_info::match_any): Update.
5953 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5954 Update.
5955 * minsyms.c (linkage_name_str): Update.
5956 * language.c (default_symbol_name_matcher): Update.
5957 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5958 Update.
5959 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5960 (ada_lookup_name_info::ada_lookup_name_info): Update.
5961 (literal_symbol_name_matcher): Update.
5962
8c072cb6
TT
59632020-04-01 Tom Tromey <tromey@adacore.com>
5964
5965 * psymtab.c (psymtab_search_name): Remove function.
5966 (psym_lookup_symbol): Create search name and lookup name here.
5967 (lookup_partial_symbol): Remove "name" parameter; add
5968 lookup_name.
5969 (psym_expand_symtabs_for_function): Update.
5970
6f29a534
TT
59712020-03-31 Joel Jones <joelkevinjones@gmail.com>
5972
5973 PR tui/25597:
5974 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5975
af62665e
TT
59762020-03-31 Tom Tromey <tromey@adacore.com>
5977
5978 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5979 memcpy.
5980
d1a89da5
NC
59812020-03-30 Nelson Chu <nelson.chu@sifive.com>
5982
5983 * features/riscv/32bit-csr.xml: Regenerated.
5984 * features/riscv/64bit-csr.xml: Regenerated.
5985
d8af9068
TT
59862020-03-30 Tom Tromey <tromey@adacore.com>
5987
5988 * ada-valprint.c (print_variant_part): Update.
5989 * ada-lang.h (ada_which_variant_applies): Update.
5990 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5991 outer_valaddr parameters; replace with "outer" value parameter.
5992 (to_fixed_variant_branch_type): Update.
5993
227c0bf4
PFC
59942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5995
5996 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5997 <list>. Remove inclusion of observable.h.
5998 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5999 (struct arch_lwp_info): New struct.
6000 (class ppc_linux_dreg_interface): New class.
6001 (struct ppc_linux_process_info): New struct.
6002 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6003 <low_new_clone, low_forget_process, low_prepare_to_resume>
6004 <copy_thread_dreg_state, mark_thread_stale>
6005 <mark_debug_registers_changed, register_hw_breakpoint>
6006 <clear_hw_breakpoint, register_wp, clear_wp>
6007 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6008 <num_memory_accesses, get_trigger_type>
6009 <create_watchpoint_request, hwdebug_point_cmp>
6010 <init_arch_lwp_info, get_arch_lwp_info>
6011 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6012 methods.
6013 <struct ptid_hash>: New inner struct.
6014 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6015 members.
6016 (saved_dabr_value, hwdebug_info, max_slots_number)
6017 (struct hw_break_tuple, struct thread_points, ppc_threads)
6018 (have_ptrace_hwdebug_interface)
6019 (hwdebug_find_thread_points_by_tid)
6020 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6021 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6022 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6023 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6024 use m_dreg_interface.
6025 (hwdebug_point_cmp): Change to...
6026 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6027 reference arguments instead of pointers.
6028 (ppc_linux_nat_target::ranged_break_num_registers): Use
6029 m_dreg_interface.
6030 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6031 m_dreg_interface. Call register_hw_breakpoint.
6032 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6033 m_dreg_interface. Call clear_hw_breakpoint.
6034 (get_trigger_type): Change to...
6035 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6036 comment.
6037 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6038 use m_dreg_interface. Call register_hw_breakpoint.
6039 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6040 use m_dreg_interface. Call clear_hw_breakpoint.
6041 (can_use_watchpoint_cond_accel): Change to...
6042 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6043 method. Update comment, use m_dreg_interface and
6044 m_process_info.
6045 (calculate_dvc): Change to...
6046 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6047 m_dreg_interface.
6048 (num_memory_accesses): Change to...
6049 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6050 (check_condition): Change to...
6051 (ppc_linux_nat_target::check_condition): ...this method.
6052 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6053 comment, use m_dreg_interface.
6054 (create_watchpoint_request): Change to...
6055 (ppc_linux_nat_target::create_watchpoint_request): ...this
6056 method. Use m_dreg_interface.
6057 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6058 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6059 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6060 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6061 (ppc_linux_nat_target::low_forget_process)
6062 (ppc_linux_nat_target::low_new_fork)
6063 (ppc_linux_nat_target::low_new_clone)
6064 (ppc_linux_nat_target::low_delete_thread)
6065 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6066 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6067 only call mark_thread_stale.
6068 (ppc_linux_thread_exit): Remove.
6069 (ppc_linux_nat_target::stopped_data_address): Change to...
6070 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6071 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6072 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6073 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6074 comment. Call low_stopped_data_address.
6075 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6076 m_dreg_interface.
6077 (ppc_linux_nat_target::masked_watch_num_registers): Use
6078 m_dreg_interface.
6079 (ppc_linux_nat_target::copy_thread_dreg_state)
6080 (ppc_linux_nat_target::mark_thread_stale)
6081 (ppc_linux_nat_target::mark_debug_registers_changed)
6082 (ppc_linux_nat_target::register_hw_breakpoint)
6083 (ppc_linux_nat_target::clear_hw_breakpoint)
6084 (ppc_linux_nat_target::register_wp)
6085 (ppc_linux_nat_target::clear_wp)
6086 (ppc_linux_nat_target::init_arch_lwp_info)
6087 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6088 (_initialize_ppc_linux_nat): Remove observer callback.
6089
4db10d8f
PFC
60902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6091
6092 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6093 (ppc_linux_nat_target::auxv_parse)
6094 (ppc_linux_nat_target::read_description)
6095 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6096 Move up.
6097
1310c1b0
PFC
60982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6099
6100 * linux-nat.h (low_new_clone): New method.
6101 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6102
69b037c3
SM
61032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6106 (dbx_expand_psymtab): ... this.
6107 (start_psymtab): Update.
6108 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6109 (mdebug_expand_psymtab): ... this.
6110 (parse_partial_symbols): Update.
6111 (new_psymtab): Update.
6112 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6113 (xcoff_expand_psymtab): ... this.
6114 (xcoff_start_psymtab): Update.
6115
48993951
SM
61162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6119 <expand_dependencies>: ... this.
6120 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6121 (partial_symtab::expand_dependencies): ... this.
6122 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6123 Update.
6124 (dwarf2_psymtab::expand_psymtab): Update.
6125 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6126 * mdebugread.c (psymtab_to_symtab_1): Update.
6127 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6128
3ad83046
SM
61292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * psympriv.h (discard_psymtab): Remove.
6132 * dbxread.c (dbx_end_psymtab): Update.
6133 * xcoffread.c (xcoff_end_psymtab): Update.
6134
4d1b9ab6
TT
61352020-03-28 Tom Tromey <tom@tromey.com>
6136
6137 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6138 comment.
6139
f1749218
TT
61402020-03-28 Tom Tromey <tom@tromey.com>
6141
6142 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6143
ebea7626
HD
61442020-03-27 Hannes Domani <ssbssa@yahoo.de>
6145
6146 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6147
a879b4d5
JB
61482020-03-26 John Baldwin <jhb@FreeBSD.org>
6149
6150 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6151
0826b30a
TT
61522020-03-26 Tom Tromey <tom@tromey.com>
6153
6154 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6155 (mark_common_block_symbol_computed, read_tag_string_type)
6156 (attr_to_dynamic_prop, read_subrange_type): Update.
6157 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6158 to be methods on struct attribute.
6159 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6160 (read_call_site_scope, partial_die_info::read)
6161 (partial_die_info::read, lookup_die_type, follow_die_ref):
6162 Update.
6163 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6164 from dwarf2_get_ref_die_offset.
6165 (attribute::constant_value): New method, from
6166 dwarf2_get_attr_constant_value.
6167 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6168 Declare method.
6169 <constant_value>: New method.
6170
2b2558bf
TT
61712020-03-26 Tom Tromey <tom@tromey.com>
6172
6173 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6174 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6175 (dwarf_type_encoding_name): Move to stringify.c.
6176 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6177 * dwarf2/stringify.c: New file.
6178 * dwarf2/stringify.h: New file.
6179
eeb64781
TT
61802020-03-26 Tom Tromey <tom@tromey.com>
6181
6182 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6183 Rewrite.
6184
a39fdb41
TT
61852020-03-26 Tom Tromey <tom@tromey.com>
6186
6187 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6188 methods.
6189 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6190 (lookup_ranges_base): Likewise.
6191 (read_cutu_die_from_dwo, read_full_die_1): Update.
6192
436c571c
TT
61932020-03-26 Tom Tromey <tom@tromey.com>
6194
6195 * dwarf2/read.c (read_import_statement, read_file_scope)
6196 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6197 (read_lexical_block_scope, read_call_site_scope)
6198 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6199 (handle_struct_member_die, process_structure_scope)
6200 (update_enumeration_type_from_children)
6201 (process_enumeration_scope, read_array_type, read_common_block)
6202 (read_namespace, read_module, read_subroutine_type): Update.
6203 (sibling_die): Remove.
6204
052c8bb8
TT
62052020-03-26 Tom Tromey <tom@tromey.com>
6206
6207 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6208 (build_type_psymtabs_reader, read_structure_type)
6209 (read_enumeration_type, read_full_die_1): Update.
6210 (dwarf2_attr_no_follow): Move to die.h.
6211 * dwarf2/die.h (struct die_info) <attr>: New method.
6212
2b24b6e4
TT
62132020-03-26 Tom Tromey <tom@tromey.com>
6214
6215 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6216 <base_address>: Now an optional.
6217 (dwarf2_find_base_address, dwarf2_rnglists_process)
6218 (dwarf2_ranges_process, fill_in_loclist_baton)
6219 (dwarf2_symbol_mark_computed): Update.
6220
c2d50fd0
TT
62212020-03-26 Tom Tromey <tom@tromey.com>
6222
6223 * dwarf2/read.c (struct die_info): Move to die.h.
6224 * dwarf2/die.h: New file.
6225
0df7ad3a
TT
62262020-03-26 Tom Tromey <tom@tromey.com>
6227
6228 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6229 * dwarf2/read.c
6230 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6231 Move to line-header.c.
6232 (read_checked_initial_length_and_offset, read_formatted_entries):
6233 Likewise.
6234 (dwarf_decode_line_header): Split into two.
6235 * dwarf2/line-header.c
6236 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6237 Move from read.c.
6238 (read_checked_initial_length_and_offset, read_formatted_entries):
6239 Likewise.
6240 (dwarf_decode_line_header): New function, split from read.c.
6241
86c0bb4c
TT
62422020-03-26 Tom Tromey <tom@tromey.com>
6243
6244 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6245 Declare method.
6246 * dwarf2/read.c (read_attribute_value): Update.
6247 (dwarf2_per_objfile::read_line_string): Rename from
6248 read_indirect_line_string.
6249 (read_formatted_entries): Update.
6250
2ef46c2f
TT
62512020-03-26 Tom Tromey <tom@tromey.com>
6252
6253 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6254 variable.
6255
4f9c1eda
TT
62562020-03-26 Tom Tromey <tom@tromey.com>
6257
6258 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6259 const.
6260 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6261 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6262 parameter const.
6263
5a0e026f
TT
62642020-03-26 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6267 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6268 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6269 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6270
8844c11b
TT
62712020-03-26 Tom Tromey <tom@tromey.com>
6272
6273 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6274 file_names_size, file_full_name, file_file_name>: Use const.
6275 <file_name_at, file_names>: Add const overload.
6276 * dwarf2/line-header.c (line_header::file_file_name)
6277 (line_header::file_full_name): Update.
6278
c90ec28a
TT
62792020-03-26 Tom Tromey <tom@tromey.com>
6280
6281 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6282 (macro_start_file, consume_improper_spaces)
6283 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6284 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6285 (dwarf_decode_macros): Move to macro.c.
6286 * dwarf2/macro.c: New file.
6287 * dwarf2/macro.h: New file.
6288 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6289
4f44ae6c
TT
62902020-03-26 Tom Tromey <tom@tromey.com>
6291
6292 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6293 method.
6294 * dwarf2/section.c: New method. From
6295 read_indirect_string_at_offset_from.
6296 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6297 (read_indirect_string_at_offset_from): Move to section.c.
6298 (read_indirect_string_at_offset): Rewrite.
6299 (read_indirect_line_string_at_offset): Remove.
6300 (read_indirect_string, read_indirect_line_string)
6301 (dwarf_decode_macro_bytes): Update.
6302
a0194fa8
TT
63032020-03-26 Tom Tromey <tom@tromey.com>
6304
6305 * dwarf2/section.h (struct dwarf2_section_info)
6306 <overload_complaint>: Declare.
6307 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6308 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6309 Rename from dwarf2_section_buffer_overflow_complaint.
6310 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6311 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6312
3d27bbdb
TT
63132020-03-26 Tom Tromey <tom@tromey.com>
6314
6315 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6316 Declare.
6317 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6318 Move from read.c.
6319 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6320 to section.c.
6321
9eac9650
TT
63222020-03-26 Tom Tromey <tom@tromey.com>
6323
6324 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6325
bf80d710
TT
63262020-03-26 Tom Tromey <tom@tromey.com>
6327
6328 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6329 "builder".
6330 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6331 parameter.
6332 (dwarf_decode_macros): Update.
6333
0314b390
TT
63342020-03-26 Tom Tromey <tom@tromey.com>
6335
6336 * dwarf2/read.c (read_attribute_value): Update.
6337 (read_indirect_string_from_dwz): Move to dwz.c; change into
6338 method.
6339 (dwarf_decode_macro_bytes): Update.
6340 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6341 * dwarf2/dwz.c: New file.
6342 * Makefile.in (COMMON_SFILES): Add dwz.c.
6343
9fda78b6
TT
63442020-03-26 Tom Tromey <tom@tromey.com>
6345
6346 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6347 * dwarf2/read.c: Add include.
6348 * dwarf2/index-write.c: Add include.
6349 * dwarf2/index-cache.c: Add include.
6350 * dwarf2/dwz.h: New file.
6351
33aa3c10
TT
63522020-03-25 Tom Tromey <tom@tromey.com>
6353
6354 * compile/compile-object-load.c (get_out_value_type): Mention
6355 correct symbol name in error message.
6356
d503b685
HD
63572020-03-25 Hannes Domani <ssbssa@yahoo.de>
6358
6359 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6360
7b1eff95
TV
63612020-03-25 Tom de Vries <tdevries@suse.de>
6362
6363 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6364 * symmisc.c (dump_symtab_1): Print user and includes fields.
6365 (maintenance_info_symtabs): Same.
6366
dd895392
AB
63672020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6368
6369 PR gdb/25534
6370 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6371 (riscv_regcache_cooked_write): New function.
6372 (riscv_push_dummy_call): Use new function.
6373 (riscv_return_value): Likewise.
6374
5ab2fbf1
SM
63752020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6378 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6379 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6380 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6381 * infrun.c (follow_fork): Likewise.
6382 (follow_fork_inferior): Likewise.
6383 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6384 * linux-nat.h (class linux_nat_target): Likewise.
6385 * remote.c (class remote_target) <follow_fork>: Likewise.
6386 (remote_target::follow_fork): Likewise.
6387 * target-delegates.c: Re-generate.
6388 * target.c (default_follow_fork): Likewise.
6389 (target_follow_fork): Likewise.
6390 * target.h (struct target_ops) <follow_fork>: Likewise.
6391 (target_follow_fork): Likewise.
6392
a64fafb5
TV
63932020-03-24 Tom de Vries <tdevries@suse.de>
6394
6395 * psymtab.c (maintenance_info_psymtabs): Print user field.
6396
fe26d3a3
TT
63972020-03-20 Tom Tromey <tromey@adacore.com>
6398
6399 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6400 const.
6401 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6402 const.
6403
c884cc46
SM
64042020-03-20 Simon Marchi <simon.marchi@efficios.com>
6405
6406 * ptrace.m4: Don't check for ptrace declaration.
6407 * config.in: Re-generate.
6408 * configure: Re-generate.
6409 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6410 not defined.
6411
1ff700c2
KR
64122020-03-20 Kamil Rytarowski <n54@gmx.com>
6413
6414 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6415 `PTRACE_TYPE_RET'.
6416 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6417 * sparc-nat.c (gdb_ptrace): Likewise.
6418 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6419
f7d4f0b1
TT
64202020-03-20 Tom Tromey <tromey@adacore.com>
6421
6422 * c-exp.y (lex_one_token): Fix assert.
6423
f67210ff
TT
64242020-03-20 Tom Tromey <tromey@adacore.com>
6425
6426 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6427 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6428 strncpy call.
6429
1773be9e
TT
64302020-03-20 Tom Tromey <tromey@adacore.com>
6431
6432 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6433
70304be9
TT
64342020-03-20 Tom Tromey <tromey@adacore.com>
6435
6436 * ada-valprint.c (print_variant_part): Remove parameters; switch
6437 to value-based API.
6438 (print_field_values): Likewise.
6439 (ada_val_print_struct_union): Likewise.
6440 (ada_value_print_1): Update.
6441
9faa006d
KR
64422020-03-20 Kamil Rytarowski <n54@gmx.com>
6443
6444 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6445 nbsd_nat_target instead of inf_ptrace_target.
6446 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6447 nbsd_nat_target.
6448
4a90f062
KR
64492020-03-20 Kamil Rytarowski <n54@gmx.com>
6450
6451 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6452 it to the ptrace call.
6453 * (store_registers): Likewise.
6454
64552020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6456
6457 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6458 it to the ptrace call.
6459 * (store_registers): Likewise.
6460
2d07da27
LM
64612020-03-19 Luis Machado <luis.machado@linaro.org>
6462
6463 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6464 valid, fetch vg value from ptrace.
6465
f09db380
KR
64662020-03-19 Kamil Rytarowski <n54@gmx.com>
6467 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6468 * inf-ptrace.c: Likewise.
6469 * (gdb_ptrace): Add.
6470 * (inf_ptrace_target::resume): Update.
6471 * (inf_ptrace_target::xfer_partial): Likewise.
6472 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6473 * (inf_ptrace_peek_poke): Update.
6474
fcc7376e
KR
64752020-03-19 Kamil Rytarowski <n54@gmx.com>
6476
6477 * x86-bsd-nat.c (gdb_ptrace): New.
6478 * (x86bsd_dr_set): Add new argument `ptid'.
6479 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6480 x86bsd_dr_set_addr): Update.
6481
cada5fc9
AB
64822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * remote.c (remote_target::process_stop_reply): Handle events for
6485 all threads differently.
6486
19a2740f
AB
64872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * completer.c (completion_tracker::remove_completion): Define new
6490 function.
6491 * completer.h (completion_tracker::remove_completion): Declare new
6492 function.
6493 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6494 when adding a C++ function symbol.
6495
724fd9ba
AB
64962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6497
6498 * completer.c (completion_tracker::completion_hash_entry): Define
6499 new class.
6500 (advance_to_filename_complete_word_point): Call
6501 recompute_lowest_common_denominator.
6502 (completion_tracker::completion_tracker): Call discard_completions
6503 to setup the hash table.
6504 (completion_tracker::discard_completions): Allow for being called
6505 from the constructor, pass new equal function, and element deleter
6506 when constructing the hash table. Initialise new class member
6507 variables.
6508 (completion_tracker::maybe_add_completion): Remove use of
6509 m_entries_vec, and store more information into m_entries_hash.
6510 (completion_tracker::recompute_lcd_visitor): New function, most
6511 content taken from...
6512 (completion_tracker::recompute_lowest_common_denominator):
6513 ...here, this now just visits each item in the hash calling the
6514 above visitor.
6515 (completion_tracker::build_completion_result): Remove use of
6516 m_entries_vec, call recompute_lowest_common_denominator.
6517 * completer.h (completion_tracker::have_completions): Remove use
6518 of m_entries_vec.
6519 (completion_tracker::completion_hash_entry): Declare new class.
6520 (completion_tracker::recompute_lowest_common_denominator): Change
6521 function signature.
6522 (completion_tracker::recompute_lcd_visitor): Declare new function.
6523 (completion_tracker::m_entries_vec): Delete.
6524 (completion_tracker::m_entries_hash): Initialize to NULL.
6525 (completion_tracker::m_lowest_common_denominator_valid): New
6526 member variable.
6527 (completion_tracker::m_lowest_common_denominator_max_length): New
6528 member variable.
6529
5a82b8a1
KR
65302020-03-17 Kamil Rytarowski <n54@gmx.com>
6531
6532 * regformats/regdef.h: Put reg in gdb namespace.
6533
fb516a69
KR
65342020-03-17 Kamil Rytarowski <n54@gmx.com>
6535
6536 * i386-bsd-nat.c (gdb_ptrace): New.
6537 * (i386bsd_fetch_inferior_registers,
6538 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6539 * (i386bsd_fetch_inferior_registers,
6540 i386bsd_store_inferior_registers) Use gdb_ptrace.
6541
1c0aa1fb
KR
65422020-03-17 Kamil Rytarowski <n54@gmx.com>
6543
6544 * amd64-bsd-nat.c (gdb_ptrace): New.
6545 * (amd64bsd_fetch_inferior_registers,
6546 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6547 * (amd64bsd_fetch_inferior_registers,
6548 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6549
5ccd2fb7
KR
65502020-03-17 Kamil Rytarowski <n54@gmx.com>
6551
6552 * user-regs.c (user_reg::read): Rename to...
6553 (user_reg::xread): ...this.
6554 * (append_user_reg): Rename argument `read' to `xread'.
6555 * (user_reg_add_builtin): Likewise.
6556 * (user_reg_add): Likewise.
6557 * (value_of_user_reg): Likewise.
6558
2108a63a
KR
65592020-03-17 Kamil Rytarowski <n54@gmx.com>
6560
6561 * sparc-nat.c (gdb_ptrace): New.
6562 * sparc-nat.c (sparc_fetch_inferior_registers)
6563 (sparc_store_inferior_registers) Remove obsolete comment.
6564 * sparc-nat.c (sparc_fetch_inferior_registers)
6565 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6566 * sparc-nat.c (sparc_fetch_inferior_registers)
6567 (sparc_store_inferior_registers) Use gdb_ptrace.
6568
a225c9a8
KR
65692020-03-17 Kamil Rytarowski <n54@gmx.com>
6570
6571 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6572 it to the ptrace call.
6573 * sh-nbsd-nat.c (store_registers): Likewise.
6574
98097623
KR
65752020-03-17 Kamil Rytarowski <n54@gmx.com>
6576
6577 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6578 nbsd_nat_target instead of inf_ptrace_target.
6579 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6580 nbsd_nat_target.
6581
9e38d619
KR
65822020-03-17 Kamil Rytarowski <n54@gmx.com>
6583
6584 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6585
a2ecbe9f
KR
65862020-03-17 Kamil Rytarowski <n54@gmx.com>
6587
6588 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6589 <sys/sysctl.h>.
6590 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6591
58990295
TV
65922020-03-17 Tom de Vries <tdevries@suse.de>
6593
6594 PR gdb/23710
6595 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6596 fields.
6597 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6598 fields.
6599 (process_imported_unit_die): Skip import of c++ CUs.
6600
771dd3a8
TT
66012020-03-16 Tom Tromey <tom@tromey.com>
6602
6603 * p-valprint.c (pascal_object_print_value): Initialize
6604 base_value.
6605
817a7585
AK
66062020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6607 Shahab Vahedi <shahab@synopsys.com>
6608
6609 * Makefile.in: Add arch/arc.o
6610 * configure.tgt: Likewise.
6611 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6612 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6613 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6614 * arc-tdep.h (arc_read_description): Add proto type.
6615 * arch/arc.c: New file.
6616 * arch/arc.h: Likewise.
6617 * features/Makefile: Replace old target descriptions with new.
6618 * features/arc-arcompact.c: Remove.
6619 * features/arc-arcompact.xml: Likewise.
6620 * features/arc-v2.c: Likewise
6621 * features/arc-v2.xml: Likewise
6622 * features/arc/aux-arcompact.xml: New file.
6623 * features/arc/aux-v2.xml: Likewise.
6624 * features/arc/core-arcompact.xml: Likewise.
6625 * features/arc/core-v2.xml: Likewise.
6626 * features/arc/aux-arcompact.c: Generate.
6627 * features/arc/aux-v2.c: Likewise.
6628 * features/arc/core-arcompact.c: Likewise.
6629 * features/arc/core-v2.c: Likewise.
6630 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6631
67430cd0
TT
66322020-03-16 Tom Tromey <tromey@adacore.com>
6633
6634 PR gdb/25663:
6635 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6636 putting value into bcache.
6637
30efb6c7
SM
66382020-03-16 Simon Marchi <simon.marchi@efficios.com>
6639
6640 PR gdb/21500
6641 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6642 to...
6643 (amd64_windows_init_abi_common): ... this. Don't set size of
6644 long type.
6645 (amd64_windows_init_abi): New function.
6646 (amd64_cygwin_init_abi): New function.
6647 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6648 the Cygwin OS ABI.
6649 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6650 comment.
6651
8db52437
SM
66522020-03-16 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6655 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6656 (pe_import_directory_entry): New struct type.
6657 (is_linked_with_cygwin_dll): New function.
6658 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6659 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6660 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6661
5982a56a
SM
66622020-03-16 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6665 i386_cygwin_core_osabi_sniffer.
6666
7a1998df
SM
66672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6668
6669 * i386-cygwin-tdep.c: Rename to...
6670 * i386-windows-tdep.c: ... this.
6671 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6672 i386-windows-tdep.c.
6673 * configure.tgt: Likewise.
6674
053205cc
SM
66752020-03-16 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6678 * osabi.c (gdb_osabi_names): Add "Windows".
6679 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6680 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6681 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6682 i386_cygwin_osabi_sniffer.
6683 (_initialize_i386_cygwin_tdep): Register OS ABI
6684 GDB_OSABI_WINDOWS for i386.
6685 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6686 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6687 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6688 for x86-64.
6689 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6690 when the target matches '*-*-mingw*'.
6691
fe4b2ee6
SM
66922020-03-16 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * defs.h (enum gdb_osabi): Move to...
6695 * osabi.h (enum gdb_osabi): ... here.
6696 * gdbarch.sh: Include osabi.h in gdbarch.h.
6697 * gdbarch.h: Re-generate.
6698
cb9b645d
SM
66992020-03-16 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6702 function.
6703 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6704
3293bbaf
TT
67052020-03-14 Tom Tromey <tom@tromey.com>
6706
6707 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6708 for C++.
6709 (c_type_print_modifier): Likewise. Add "language" parameter.
6710 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6711 (c_type_print_base_1): Update.
6712 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6713 constants.
6714 * type-stack.c (type_stack::insert): Handle tp_atomic and
6715 tp_restrict.
6716 (type_stack::follow_type_instance_flags): Likewise.
6717 (type_stack::follow_types): Likewise. Merge type-following code.
6718 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6719 (space_identifier, cv_with_space_id)
6720 (const_or_volatile_or_space_identifier_noopt)
6721 (const_or_volatile_or_space_identifier): Remove.
6722 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6723 rules.
6724 (ptr_operator, typebase): Update.
6725 (enum token_flag) <FLAG_C>: New constant.
6726 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6727 "_Atomic".
6728 (lex_one_token): Handle FLAG_C.
6729
154151a6
KR
67302020-03-14 Kamil Rytarowski <n54@gmx.com>
6731
6732 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6733 it to the ptrace call.
6734 * m68k-bsd-nat.c (store_registers): Likewise.
6735
bc107784
KR
67362020-03-14 Kamil Rytarowski <n54@gmx.com>
6737
6738 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6739 gdb_byte *.
6740 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6741 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6742 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6743
01a80117
KR
67442020-03-14 Kamil Rytarowski <n54@gmx.com>
6745
6746 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6747 nbsd_nat_target instead of inf_ptrace_target.
6748 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6749 nbsd_nat_target.
6750
f90280ca
KR
67512020-03-14 Kamil Rytarowski <n54@gmx.com>
6752
6753 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6754 register_t.
6755
6def66f1
KR
67562020-03-14 Kamil Rytarowski <n54@gmx.com>
6757
6758 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6759 it to the ptrace call.
6760 * alpha-bsd-nat.c (store_registers): Likewise.
6761
66eaca97
KR
67622020-03-14 Kamil Rytarowski <n54@gmx.com>
6763
6764 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6765 includes.
6766 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6767 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6768 fill_fpregset): Likewise.
6769
4fed520b
KR
67702020-03-14 Kamil Rytarowski <n54@gmx.com>
6771
6772 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6773 nbsd_nat_target instead of inf_ptrace_target.
6774 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6775 nbsd_nat_target.
6776
2190cf06
KR
67772020-03-14 Kamil Rytarowski <n54@gmx.com>
6778
6779 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6780 register_t.
6781
75c56d3d
KR
67822020-03-14 Kamil Rytarowski <n54@gmx.com>
6783
6784 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6785 it to the ptrace call.
6786 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6787 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6788 * arm-nbsd-nat.c (store_register): Likewise.
6789 * arm-nbsd-nat.c (store_regs): Likewise.
6790 * arm-nbsd-nat.c (store_fp_register): Likewise.
6791 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6792
6018d381
KR
67932020-03-14 Kamil Rytarowski <n54@gmx.com>
6794
6795 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6796 nbsd_nat_target instead of inf_ptrace_target.
6797 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6798 nbsd_nat_target.
6799
013f99f0
KR
68002020-03-14 Kamil Rytarowski <n54@gmx.com>
6801
6802 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6803 it to the ptrace call.
6804 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6805
12753073
KR
68062020-03-14 Kamil Rytarowski <n54@gmx.com>
6807
6227b330
KR
6808 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6809 it to the ptrace call.
6810 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6811
68122020-03-14 Kamil Rytarowski <n54@gmx.com>
6813
6814 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6815 gdb_byte *.
12753073
KR
6816 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6817
d5be5fa4
KR
68182020-03-14 Kamil Rytarowski <n54@gmx.com>
6819
6820 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6821 instead of inf_ptrace_target.
6822 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6823 nbsd_nat_target.
6824
8110f842
KR
68252020-03-14 Kamil Rytarowski <n54@gmx.com>
6826
6827 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6828 register_t.
6829
52feded7
KR
68302020-03-14 Kamil Rytarowski <n54@gmx.com>
6831
6832 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6833 register_t.
6834
25567eee
KR
68352020-03-14 Kamil Rytarowski <n54@gmx.com>
6836
6837 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6838 register_t.
6839
426a9c18
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * value.h (val_print): Don't declare.
6843 * valprint.h (val_print_array_elements)
6844 (val_print_scalar_formatted, generic_val_print): Don't declare.
6845 * valprint.c (generic_val_print_array): Take a struct value.
6846 (generic_val_print_ptr, generic_val_print_memberptr)
6847 (generic_val_print_bool, generic_val_print_int)
6848 (generic_val_print_char, generic_val_print_complex)
6849 (generic_val_print): Remove.
6850 (generic_value_print): Update.
6851 (do_val_print): Remove unused parameters. Don't call
6852 la_val_print.
6853 (val_print): Remove.
6854 (common_val_print): Update. Don't call value_check_printable.
6855 (val_print_scalar_formatted, val_print_array_elements): Remove.
6856 * rust-lang.c (rust_val_print): Remove.
6857 (rust_language_defn): Update.
6858 * p-valprint.c (pascal_val_print): Remove.
6859 (pascal_value_print_inner): Update.
6860 (pascal_object_print_val_fields, pascal_object_print_val):
6861 Remove.
6862 (pascal_object_print_static_field): Update.
6863 * p-lang.h (pascal_val_print): Don't declare.
6864 * p-lang.c (pascal_language_defn): Update.
6865 * opencl-lang.c (opencl_language_defn): Update.
6866 * objc-lang.c (objc_language_defn): Update.
6867 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6868 * m2-lang.h (m2_val_print): Don't declare.
6869 * m2-lang.c (m2_language_defn): Update.
6870 * language.h (struct language_defn) <la_val_print>: Remove.
6871 * language.c (unk_lang_value_print_inner): Rename. Change
6872 argument types.
6873 (unknown_language_defn, auto_language_defn): Update.
6874 * go-valprint.c (go_val_print): Remove.
6875 * go-lang.h (go_val_print): Don't declare.
6876 * go-lang.c (go_language_defn): Update.
6877 * f-valprint.c (f_val_print): Remove.
6878 * f-lang.h (f_value_print): Don't declare.
6879 * f-lang.c (f_language_defn): Update.
6880 * d-valprint.c (d_val_print): Remove.
6881 * d-lang.h (d_value_print): Don't declare.
6882 * d-lang.c (d_language_defn): Update.
6883 * cp-valprint.c (cp_print_value_fields)
6884 (cp_print_value_fields_rtti, cp_print_value): Remove.
6885 (cp_print_static_field): Update.
6886 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6887 (c_val_print_struct, c_val_print_union, c_val_print_int)
6888 (c_val_print_memberptr, c_val_print): Remove.
6889 * c-lang.h (c_val_print_array, cp_print_value_fields)
6890 (cp_print_value_fields_rtti): Don't declare.
6891 * c-lang.c (c_language_defn, cplus_language_defn)
6892 (asm_language_defn, minimal_language_defn): Update.
6893 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6894 (ada_val_print_enum): Take a struct value.
6895 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6896 (ada_val_print): Remove.
6897 (ada_value_print_1): Update.
6898 (printable_val_type): Remove.
6899 * ada-lang.h (ada_val_print): Don't declare.
6900 * ada-lang.c (ada_language_defn): Update.
6901
42331a1e
TT
69022020-03-13 Tom Tromey <tom@tromey.com>
6903
6904 * valprint.c (do_val_print): Update.
6905 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6906 a struct value.
6907 (value_to_value_object_no_release): Declare.
6908 * python/py-value.c (value_to_value_object_no_release): New
6909 function.
6910 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6911 struct value.
6912 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6913 function.
6914 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6915 a struct value.
6916 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6917 Declare.
6918 (gdbscm_apply_val_pretty_printer): Take a struct value.
6919 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6920 value.
6921 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6922 value.
6923 * extension-priv.h (struct extension_language_ops)
6924 <apply_val_pretty_printer>: Take a struct value.
6925 * cp-valprint.c (cp_print_value): Create a struct value.
6926 (cp_print_value): Update.
6927
3a916a97
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * ada-valprint.c (print_field_values): Call common_val_print.
6931
b59eac37
TT
69322020-03-13 Tom Tromey <tom@tromey.com>
6933
6934 * ada-valprint.c (val_print_packed_array_elements): Remove
6935 bitoffset and val parameters. Call common_val_print.
6936 (ada_val_print_string): Remove offset, address, and original_value
6937 parameters.
6938 (ada_val_print_array): Update.
6939 (ada_value_print_array): New function.
6940 (ada_value_print_1): Call it.
6941
03371129
TT
69422020-03-13 Tom Tromey <tom@tromey.com>
6943
6944 * ada-valprint.c (ada_value_print): Use common_val_print.
6945
2e088f8b
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6949
39ef85a8
TT
69502020-03-13 Tom Tromey <tom@tromey.com>
6951
6952 * ada-valprint.c (ada_value_print_num): New function.
6953 (ada_value_print_1): Use it.
6954
b9fa6e07
TT
69552020-03-13 Tom Tromey <tom@tromey.com>
6956
6957 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6958
416595d6
TT
69592020-03-13 Tom Tromey <tom@tromey.com>
6960
6961 * ada-valprint.c (ada_value_print_ptr): New function.
6962 (ada_value_print_1): Use it.
6963
5b5e15ec
TT
69642020-03-13 Tom Tromey <tom@tromey.com>
6965
6966 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6967 call common_val_print.
6968 (ada_val_print_1): Update.
6969 (ada_value_print_1): New function.
6970 (ada_value_print_inner): Rewrite.
6971
fbf54e75
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * cp-valprint.c (cp_print_value_fields): Update.
6975 (cp_print_value): New function.
6976
64b653ca
TT
69772020-03-13 Tom Tromey <tom@tromey.com>
6978
6979 * m2-valprint.c (m2_value_print_inner): Use
6980 cp_print_value_fields.
6981 * cp-valprint.c (cp_print_value_fields): New function.
6982 * c-valprint.c (c_value_print_struct): New function.
6983 (c_value_print_inner): Use c_value_print_struct.
6984 * c-lang.h (cp_print_value_fields): Declare.
6985
6999f067
TT
69862020-03-13 Tom Tromey <tom@tromey.com>
6987
6988 * c-valprint.c (c_value_print_array): New function.
6989 (c_value_print_inner): Use it.
6990
ce80b8bd
TT
69912020-03-13 Tom Tromey <tom@tromey.com>
6992
6993 * c-valprint.c (c_value_print_memberptr): New function.
6994 (c_value_print_inner): Use it.
6995
2faac269
TT
69962020-03-13 Tom Tromey <tom@tromey.com>
6997
6998 * c-valprint.c (c_value_print_int): New function.
6999 (c_value_print_inner): Use it.
7000
da3e2c29
TT
70012020-03-13 Tom Tromey <tom@tromey.com>
7002
7003 * c-valprint.c (c_value_print_ptr): New function.
7004 (c_value_print_inner): Use it.
7005
50836231
TT
70062020-03-13 Tom Tromey <tom@tromey.com>
7007
7008 * c-valprint.c (c_value_print_inner): Rewrite.
7009
4f412b6e
TT
70102020-03-13 Tom Tromey <tom@tromey.com>
7011
7012 * valprint.c (generic_value_print_complex): New function.
7013 (generic_value_print): Use it.
7014
f5354008
TT
70152020-03-13 Tom Tromey <tom@tromey.com>
7016
7017 * valprint.c (generic_val_print_float): Don't call
7018 val_print_scalar_formatted.
7019 (generic_val_print, generic_value_print): Update.
7020
3eec3b05
TT
70212020-03-13 Tom Tromey <tom@tromey.com>
7022
7023 * valprint.c (generic_value_print_char): New function
7024 (generic_value_print): Use it.
7025
fdddfccb
TT
70262020-03-13 Tom Tromey <tom@tromey.com>
7027
7028 * valprint.c (generic_value_print_int): New function.
7029 (generic_value_print): Use it.
7030
6dde7521
TT
70312020-03-13 Tom Tromey <tom@tromey.com>
7032
7033 * valprint.c (generic_value_print_bool): New function.
7034 (generic_value_print): Use it.
7035
4112d2e6
TT
70362020-03-13 Tom Tromey <tom@tromey.com>
7037
7038 * valprint.c (generic_val_print_func): Simplify.
7039 (generic_val_print, generic_value_print): Update.
7040
65786af6
TT
70412020-03-13 Tom Tromey <tom@tromey.com>
7042
7043 * valprint.c (generic_val_print_flags): Remove.
7044 (generic_val_print, generic_value_print): Update.
7045 (val_print_type_code_flags): Add original_value parameter.
7046
40f3ce18
TT
70472020-03-13 Tom Tromey <tom@tromey.com>
7048
7049 * valprint.c (generic_val_print): Update.
7050 (generic_value_print): Update.
7051 * valprint.c (generic_val_print_enum): Don't call
7052 val_print_scalar_formatted.
7053
2a5b130b
TT
70542020-03-13 Tom Tromey <tom@tromey.com>
7055
7056 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7057 * valprint.c (generic_value_print_ptr): New function.
7058
abc66ce9
TT
70592020-03-13 Tom Tromey <tom@tromey.com>
7060
7061 * valprint.c (generic_value_print): Rewrite.
7062
07a32858
TT
70632020-03-13 Tom Tromey <tom@tromey.com>
7064
7065 * p-valprint.c (pascal_object_print_value_fields)
7066 (pascal_object_print_value): New functions.
7067
64d64d3a
TT
70682020-03-13 Tom Tromey <tom@tromey.com>
7069
7070 * p-valprint.c (pascal_value_print_inner): Rewrite.
7071
6a95a1f5
TT
70722020-03-13 Tom Tromey <tom@tromey.com>
7073
7074 * f-valprint.c (f_value_print_innner): Rewrite.
7075
59fcdac6
TT
70762020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * m2-valprint.c (m2_print_unbounded_array): New overload.
7079 (m2_print_unbounded_array): Update.
7080 (m2_print_array_contents): Take a struct value.
7081 (m2_value_print_inner): Rewrite.
7082
d133c3e1
TT
70832020-03-13 Tom Tromey <tom@tromey.com>
7084
7085 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7086 (d_value_print_inner): New function.
7087 * d-lang.h (d_value_print_inner): Declare.
7088 * d-lang.c (d_language_defn): Use d_value_print_inner.
7089
23b0f06b
TT
70902020-03-13 Tom Tromey <tom@tromey.com>
7091
7092 * go-valprint.c (go_value_print_inner): New function.
7093 * go-lang.h (go_value_print_inner): Declare.
7094 * go-lang.c (go_language_defn): Use go_value_print_inner.
7095
5f56f7cb
TT
70962020-03-13 Tom Tromey <tom@tromey.com>
7097
7098 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7099 API.
7100 (rust_val_print): Rewrite.
7101 (rust_value_print_inner): New function, from rust_val_print.
7102 (rust_language_defn): Use rust_value_print_inner.
7103
26792ee0
TT
71042020-03-13 Tom Tromey <tom@tromey.com>
7105
7106 * ada-valprint.c (ada_value_print_inner): New function.
7107 * ada-lang.h (ada_value_print_inner): Declare.
7108 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7109
24051bbe
TT
71102020-03-13 Tom Tromey <tom@tromey.com>
7111
7112 * f-valprint.c (f_value_print_innner): New function.
7113 * f-lang.h (f_value_print_innner): Declare.
7114 * f-lang.c (f_language_defn): Use f_value_print_innner.
7115
c0941be6
TT
71162020-03-13 Tom Tromey <tom@tromey.com>
7117
7118 * p-valprint.c (pascal_value_print_inner): New function.
7119 * p-lang.h (pascal_value_print_inner): Declare.
7120 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7121
62c4663d
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * m2-valprint.c (m2_value_print_inner): New function.
7125 * m2-lang.h (m2_value_print_inner): Declare.
7126 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7127
62182190
TT
71282020-03-13 Tom Tromey <tom@tromey.com>
7129
7130 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7131 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7132 * c-valprint.c (c_value_print_inner): New function.
7133 * c-lang.h (c_value_print_inner): Declare.
7134 * c-lang.c (c_language_defn, cplus_language_defn)
7135 (asm_language_defn, minimal_language_defn): Use
7136 c_value_print_inner.
7137
1e592a8a
TT
71382020-03-13 Tom Tromey <tom@tromey.com>
7139
7140 * p-valprint.c (pascal_object_print_value_fields): Now static.
7141 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7142
7fe471e9
TT
71432020-03-13 Tom Tromey <tom@tromey.com>
7144
7145 * c-valprint.c (c_val_print_array): Simplify.
7146
d121c6ce
TT
71472020-03-13 Tom Tromey <tom@tromey.com>
7148
7149 * valprint.c (value_print_array_elements): New function.
7150 * valprint.h (value_print_array_elements): Declare.
7151
4dba70ee
TT
71522020-03-13 Tom Tromey <tom@tromey.com>
7153
7154 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7155 * mips-tdep.c (mips_print_register): Use
7156 value_print_scalar_formatted.
7157
4f9ae810
TT
71582020-03-13 Tom Tromey <tom@tromey.com>
7159
7160 * valprint.h (value_print_scalar_formatted): Declare.
7161 * valprint.c (value_print_scalar_formatted): New function.
7162
156bfec9
TT
71632020-03-13 Tom Tromey <tom@tromey.com>
7164
7165 * valprint.h (generic_value_print): Declare.
7166 * valprint.c (generic_value_print): New function.
7167
2b4e573d
TT
71682020-03-13 Tom Tromey <tom@tromey.com>
7169
7170 * valprint.c (do_val_print): Call la_value_print_inner, if
7171 available.
7172 * rust-lang.c (rust_language_defn): Update.
7173 * p-lang.c (pascal_language_defn): Update.
7174 * opencl-lang.c (opencl_language_defn): Update.
7175 * objc-lang.c (objc_language_defn): Update.
7176 * m2-lang.c (m2_language_defn): Update.
7177 * language.h (struct language_defn) <la_value_print_inner>: New
7178 member.
7179 * language.c (unknown_language_defn, auto_language_defn): Update.
7180 * go-lang.c (go_language_defn): Update.
7181 * f-lang.c (f_language_defn): Update.
7182 * d-lang.c (d_language_defn): Update.
7183 * c-lang.c (c_language_defn, cplus_language_defn)
7184 (asm_language_defn, minimal_language_defn): Update.
7185 * ada-lang.c (ada_language_defn): Update.
7186
a1f6a07c
TT
71872020-03-13 Tom Tromey <tom@tromey.com>
7188
7189 * c-valprint.c (c_value_print): Use common_val_print.
7190
410cf315
TT
71912020-03-13 Tom Tromey <tom@tromey.com>
7192
7193 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7194
72a45c93
TT
71952020-03-13 Tom Tromey <tom@tromey.com>
7196
7197 * f-valprint.c (f77_print_array_1, f_val_print): Use
7198 common_val_print.
7199
040f66bd
TT
72002020-03-13 Tom Tromey <tom@tromey.com>
7201
7202 * riscv-tdep.c (riscv_print_one_register_info): Use
7203 common_val_print.
7204
a6e05a6c
TT
72052020-03-13 Tom Tromey <tom@tromey.com>
7206
7207 * mi/mi-main.c (output_register): Use common_val_print.
7208
3444c526
TT
72092020-03-13 Tom Tromey <tom@tromey.com>
7210
7211 * infcmd.c (default_print_one_register_info): Use
7212 common_val_print.
7213
c2a44efe
TT
72142020-03-13 Tom Tromey <tom@tromey.com>
7215
7216 * valprint.h (common_val_print_checked): Declare.
7217 * valprint.c (common_val_print_checked): New function.
7218 * stack.c (print_frame_arg): Use common_val_print_checked.
7219
b0c26e99
TT
72202020-03-13 Tom Tromey <tom@tromey.com>
7221
7222 * valprint.c (do_val_print): New function, from val_print.
7223 (val_print): Use do_val_print.
7224 (common_val_print): Use do_val_print.
7225
ce3acbe9
TT
72262020-03-13 Tom Tromey <tom@tromey.com>
7227
7228 * valprint.c (value_print): Use scoped_value_mark.
7229
96c7f873
TV
72302020-03-13 Tom de Vries <tdevries@suse.de>
7231
7232 PR symtab/25646
7233 * psymtab.c (partial_symtab::partial_symtab): Don't set
7234 globals_offset and statics_offset. Push element onto
7235 current_global_psymbols and current_static_psymbols stacks.
7236 (concat): New function.
7237 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7238 element from current_global_psymbols and current_static_psymbols
7239 stacks. Concat popped elements to global_psymbols and
7240 static_symbols.
7241 (add_psymbol_to_list): Use current_global_psymbols and
7242 current_static_psymbols stacks.
7243 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7244 current_static_psymbols fields.
7245
6ba0a321
CB
72462020-03-12 Christian Biesinger <cbiesinger@google.com>
7247
7248 * corelow.c (sniff_core_bfd): Remove.
7249 (class core_target) <m_core_vec>: Remove.
7250 (core_target::core_target): Update.
7251 (core_file_fns): Remove.
7252 (deprecated_add_core_fns): Remove.
7253 (default_core_sniffer): Remove.
7254 (sniff_core_bfd): Remove.
7255 (default_check_format): Remove.
7256 (gdb_check_format): Remove.
7257 (core_target_open): Update.
7258 (core_target::get_core_register_section): Update.
7259 (get_core_registers_cb): Update.
7260 (core_target::fetch_registers): Update.
7261 * gdbcore.h (struct core_fns): Remove.
7262 (deprecated_add_core_fns): Remove.
7263 (default_core_sniffer): Remove.
7264 (default_check_format): Remove.
7265
227031b2
TT
72662020-03-12 Tom Tromey <tom@tromey.com>
7267
7268 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7269 CORE_ADDR.
7270 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7271
53807e9f
TT
72722020-03-12 Tom Tromey <tom@tromey.com>
7273
7274 * remote.c (remote_target::download_tracepoint)
7275 (remote_target::enable_tracepoint)
7276 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7277 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7278 sprintf_vma.
7279
64f25102
TT
72802020-03-12 Tom Tromey <tom@tromey.com>
7281
7282 * symfile-mem.c: Update CORE_ADDR size assert.
7283
272cd5a3
SM
72842020-03-12 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * selftest.m4: Move to gdbsupport/.
7287 * acinclude.m4: Update path to selftest.m4.
7288
74cd3f9d
SM
72892020-03-12 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7292 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7293 gdbarch-selfselftests.c and selftest-arch.c.
7294 (SUBDIR_UNITTESTS_OBS): Rename to...
7295 (SELFTESTS_OBS): ... this.
7296 (COMMON_SFILES): Remove disasm-selftests.c and
7297 gdbarch-selftests.c.
7298 * configure.ac: Don't add selftest-arch.{c,o} to
7299 CONFIG_{SRCS,OBS}.
7300 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7301 preprocessor conditions.
7302
db6878ac
SM
73032020-03-12 Simon Marchi <simon.marchi@efficios.com>
7304
7305 * configure.ac: Don't source bfd/development.sh.
7306 * selftest.m4: Modify comment.
7307 * configure: Re-generate.
7308
4d696a5c
SM
73092020-03-12 Simon Marchi <simon.marchi@efficios.com>
7310
7311 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7312 not "true" or "false".
7313 * configure: Re-generate.
7314
8dd8e1c7
CB
73152020-03-12 Christian Biesinger <cbiesinger@google.com>
7316
7317 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7318 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7319 renamed to arm_nbsd_supply_gregset.
7320 (fetch_register): Update to call arm_nbsd_supply_gregset.
7321 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7322 (arm_netbsd_nat_target::fetch_registers): Update.
7323 (fetch_elfcore_registers): Removed.
7324 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7325 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7326 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7327 not require NetBSD system headers.
7328 (arm_nbsd_regset): New struct.
7329 (arm_nbsd_iterate_over_regset_sections): New function.
7330 (arm_netbsd_init_abi_common): Updated to call
7331 set_gdbarch_iterate_over_regset_sections.
7332 * arm-nbsd-tdep.h: New file.
7333
dd69bf7a
KB
73342020-03-11 Kevin Buettner <kevinb@redhat.com>
7335
7336 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7337 recursion.
7338
a0761e34
SM
73392020-03-11 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * configure: Re-generate.
7342
e7a82140
TT
73432020-03-11 Tom Tromey <tromey@adacore.com>
7344
7345 * ada-typeprint.c (print_choices): Fix comment.
7346
dcc050c8
AB
73472020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7348
7349 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7350 previous item in the list, when the list has no items.
7351
1c33af77
TV
73522020-03-11 Tom de Vries <tdevries@suse.de>
7353
7354 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7355 PROP_LOCLIST handling code.
7356
8c95582d
AB
73572020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7358
7359 * buildsym-legacy.c (record_line): Pass extra parameter to
7360 record_line.
7361 * buildsym.c (buildsym_compunit::record_line): Take an extra
7362 parameter, reduce duplication in the line table, and record the
7363 is_stmt flag in the line table.
7364 * buildsym.h (buildsym_compunit::record_line): Add extra
7365 parameter.
7366 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7367 non-statement lines.
7368 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7369 this to the symtab builder.
7370 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7371 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7372 through to dwarf_record_line_1.
7373 * infrun.c (process_event_stop_test): When stepping, don't stop at
7374 a non-statement instruction, and only refresh the step info when
7375 we land in the middle of a line's range. Also add an extra
7376 comment.
7377 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7378 field.
7379 * record-btrace.c (btrace_find_line_range): Only record lines
7380 marked as is-statement.
7381 * stack.c (frame_show_address): Show the frame address if we are
7382 in a non-statement sal.
7383 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7384 (maintenance_print_one_line_table): Print a header for the is_stmt
7385 column, and include is_stmt information in the output.
7386 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7387 preference to non-statements.
7388 (find_pcs_for_symtab_line): Prefer is-statement entries.
7389 (find_line_common): Likewise.
7390 * symtab.h (struct linetable_entry): Add is_stmt field.
7391 (struct symtab_and_line): Likewise.
7392 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7393 arranging the line table.
7394
e4003a34
TV
73952020-03-07 Tom de Vries <tdevries@suse.de>
7396
7397 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7398 DIE.
7399
e8932576
TT
74002020-03-07 Tom Tromey <tom@tromey.com>
7401
7402 * valops.c (value_literal_complex): Remove obsolete comment.
7403 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7404 comment.
7405
29734269
SM
74062020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7407
7408 * infrun.h: Forward-declare thread_info.
7409 (set_step_info): Add thread_info parameter, add doc.
7410 * infrun.c (set_step_info): Add thread_info parameter, move doc
7411 to header.
7412 * infrun.c (process_event_stop_test): Pass thread to
7413 set_step_info call.
7414 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7415 set_step_info.
7416 (prepare_one_step): Add thread_info parameter, pass it to
7417 set_step_frame and prepare_one_step (recursive) call.
7418 (step_1): Pass thread to prepare_one_step call.
7419 (step_command_fsm::should_stop): Pass thread to
7420 prepare_one_step.
7421 (until_next_fsm): Pass thread to set_step_frame call.
7422 (finish_command): Pass thread to set_step_info call.
7423
b7d64b29
HD
74242020-03-06 Hannes Domani <ssbssa@yahoo.de>
7425
7426 * windows-tdep.c (windows_solib_create_inferior_hook):
7427 Check if inferior is running.
7428
09f2921c
TV
74292020-03-06 Tom de Vries <tdevries@suse.de>
7430
7431 * NEWS: Fix "the the".
7432 * ctfread.c: Same.
7433
fd760e79
TV
74342020-03-06 Tom de Vries <tdevries@suse.de>
7435
7436 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7437
20ea4a60
AB
74382020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * .dir-locals.el: Add a comment referencing the other copies of
7441 this file.
7442
0afbabf0
JB
74432020-03-05 John Baldwin <jhb@FreeBSD.org>
7444
7445 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7446 psargs.
7447
842806cb
TBA
74482020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7449
7450 * .gitattributes: New file.
7451
be1e3d3e
TT
74522020-03-04 Tom Tromey <tom@tromey.com>
7453
7454 * symmisc.c (print_symbol_bcache_statistics)
7455 (print_objfile_statistics): Update.
7456 * symfile.c (allocate_symtab): Use intern.
7457 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7458 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7459 macro_cache>: Remove.
7460 <string_cache>: New member.
7461 (struct objfile) <intern>: New methods.
7462 * elfread.c (elf_symtab_read): Use intern.
7463 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7464 (dwarf2_compute_name, dwarf2_physname)
7465 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7466 names.
7467 (guess_partial_die_structure_name): Update.
7468 (partial_die_info::fixup): Intern name.
7469 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7470 name.
7471 (dwarf2_name): Intern name. Update.
7472 * buildsym.c (buildsym_compunit::get_macro_table): Use
7473 string_cache.
7474
4e7625fd
TT
74752020-03-04 Tom Tromey <tom@tromey.com>
7476
7477 * jit.c (bfd_open_from_target_memory): Make "target" const.
7478 * corefile.c (gnutarget): Now const.
7479 * gdbcore.h (gnutarget): Now const.
7480
46f9f931
HD
74812020-03-04 Hannes Domani <ssbssa@yahoo.de>
7482
7483 * NEWS: Mention support for WOW64 processes.
7484 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7485 (amd64_windows_segment_register_p): Remove static.
7486 (_initialize_amd64_windows_nat): Update.
7487 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7488 * i386-windows-nat.c (context_offset): Update.
7489 (i386_mappings): Rename and remove static.
7490 (i386_windows_segment_register_p): Remove static.
7491 (_initialize_i386_windows_nat): Update.
7492 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7493 (STATUS_WX86_SINGLE_STEP): New macro.
7494 (EnumProcessModulesEx): New macro.
7495 (Wow64SuspendThread): New macro.
7496 (Wow64GetThreadContext): New macro.
7497 (Wow64SetThreadContext): New macro.
7498 (Wow64GetThreadSelectorEntry): New macro.
7499 (windows_set_context_register_offsets): Add static.
7500 (windows_set_segment_register_p): Likewise.
7501 (windows_add_thread): Adapt for WOW64 processes.
7502 (windows_fetch_one_register): Likewise.
7503 (windows_nat_target::fetch_registers): Likewise.
7504 (windows_store_one_register): Likewise.
7505 (display_selector): Likewise.
7506 (display_selectors): Likewise.
7507 (handle_exception): Likewise.
7508 (windows_continue): Likewise.
7509 (windows_nat_target::resume): Likewise.
7510 (windows_add_all_dlls): Likewise.
7511 (do_initial_windows_stuff): Likewise.
7512 (windows_nat_target::attach): Likewise.
7513 (windows_get_exec_module_filename): Likewise.
7514 (windows_nat_target::create_inferior): Likewise.
7515 (windows_xfer_siginfo): Likewise.
7516 (_initialize_loadable): Initialize Wow64SuspendThread,
7517 Wow64GetThreadContext, Wow64SetThreadContext,
7518 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7519 * windows-nat.h (windows_set_context_register_offsets):
7520 Remove declaration.
7521 (windows_set_segment_register_p): Likewise.
7522 (i386_windows_segment_register_p): Add declaration.
7523 (amd64_windows_segment_register_p): Likewise.
7524
440cf44e
LM
75252020-03-04 Luis Machado <luis.machado@linaro.org>
7526
7527 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7528 in "info registers" for AArch64/ARM.
7529
7530 The change caused "info registers" to not print GPR's.
7531
7532 gdb/ChangeLog:
7533
7534 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7535
7536 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7537 when reg->group is empty and reggroup is not.
7538
1009d92f
TT
75392020-03-03 Tom Tromey <tromey@adacore.com>
7540
7541 * dwarf2/frame.c (struct dwarf2_frame_cache)
7542 <checked_tailcall_bottom, entry_cfa_sp_offset,
7543 entry_cfa_sp_offset_p>: Remove members.
7544 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7545 (dwarf2_frame_prev_register): Don't call
7546 dwarf2_tailcall_sniffer_first.
7547 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7548 * frame-unwind.c (add_unwinder): New fuction.
7549 (frame_unwind_init): Use it. Add tailcall unwinder.
7550
5e5d66b6
AB
75512020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7552 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7553
7554 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7555 value should be printed as true.
7556
584cf46d
HD
75572020-03-03 Hannes Domani <ssbssa@yahoo.de>
7558
7559 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7560 (windows_init_abi): Set and use windows_so_ops.
7561
7b973adc
SDJ
75622020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7563
7564 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7565 when verifying if dealing with a convenience variable.
7566
bb7b70ab
LM
75672020-03-03 Luis Machado <luis.machado@linaro.org>
7568
7569 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7570
9822cb57
SM
75712020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7572
7573 * infrun.c (gdbarch_supports_displaced_stepping): New.
7574 (use_displaced_stepping): Break up conditions in smaller pieces.
7575 Use gdbarch_supports_displaced_stepping.
7576 (displaced_step_prepare_throw): Use
7577 gdbarch_supports_displaced_stepping.
7578
63e163f2
AB
75792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * NEWS: Mention new behaviour of the history filename.
7582 * top.c (write_history_p): Add comment.
7583 (show_write_history_p): Add header comment, give a different
7584 message when history writing is on, but the history filename is
7585 empty.
7586 (history_filename): Add comment.
7587 (history_filename_empty): New function.
7588 (show_history_filename): Add header comment, give a different
7589 message when the filename is empty.
7590 (init_history): Compare history_filename against nullptr, and only
7591 read history if the filename is not empty.
7592 (set_history_filename): Add header comment, and only make
7593 non-empty filenames absolute.
7594 (init_main): Make the filename argument to 'set history filename'
7595 optional.
7596
81b86b97
CB
75972020-03-02 Christian Biesinger <cbiesinger@google.com>
7598
7599 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7600 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7601 (fetch_fp_register): Update.
7602 (fetch_fp_regs): Update.
7603 (store_fp_register): Update.
7604 (store_fp_regs): Update.
7605 (arm_netbsd_nat_target::read_description): New function.
7606 (fetch_elfcore_registers): Update.
7607
24ed6739
AB
76082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7611 general_thread if the stop reply is missing a thread-id.
7612 (remote_target::process_stop_reply): Use the first non-exited
7613 thread if the target didn't pass a thread-id.
7614 * infrun.c (do_target_wait): Move call to
7615 switch_to_inferior_no_thread to ....
7616 (do_target_wait_1): ... here.
7617
a84bb2a0
JT
76182020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7619
7620 * debuginfod-support.c: Include defs.h first.
7621
658dadf0
TV
76222020-02-28 Tom de Vries <tdevries@suse.de>
7623
7624 * symfile.c (set_initial_language): Use default language for lookup.
7625
4ebe4877
SM
76262020-02-28 Simon Marchi <simon.marchi@efficios.com>
7627
7628 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7629 reader variable, pass `this` to read_cutu_die_from_dwo.
7630
e5da1139
AM
76312020-02-27 Aaron Merey <amerey@redhat.com>
7632
7633 * source.c (open_source_file): Check for nullptr when computing
7634 srcpath.
7635
317f7127
TT
76362020-02-27 Tom Tromey <tromey@adacore.com>
7637
7638 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7639 member.
7640 (dwarf2_add_field): Don't update nfields.
7641 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7642
3104d9ee
AB
76432020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7646 abs.
7647
b83470bf
TT
76482020-02-26 Tom Tromey <tom@tromey.com>
7649
7650 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7651 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7652 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7653 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7654 per_cu_data.
7655
edfe0a0c
TT
76562020-02-26 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/index-write.c (psym_index_map): Change type.
7659 (add_address_entry_worker, write_one_signatured_type)
7660 (recursively_count_psymbols, recursively_write_psymbols)
7661 (class debug_names, psyms_seen_size, write_gdbindex)
7662 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7663
0d79cdc4
AM
76642020-02-26 Aaron Merey <amerey@redhat.com>
7665
7666 * Makefile.in: Handle optional debuginfod support.
7667 * NEWS: Update.
7668 * README: Add --with-debuginfod summary.
7669 * config.in: Regenerate.
7670 * configure: Regenerate.
7671 * configure.ac: Handle optional debuginfod support.
7672 * debuginfod-support.c: debuginfod helper functions.
7673 * debuginfod-support.h: Ditto.
7674 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7675 summary.
7676 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7677 when a dwz file cannot be found.
7678 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7679 debuginfo file cannot be found.
7680 * source.c (open_source_file): Query debuginfod servers when a
7681 source file cannot be found.
7682 * top.c (print_gdb_configuration): Include
7683 --{with,without}-debuginfod in the output.
7684
b65ce565
JG
76852020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7686
7687 * thread.c (thr_try_catch_cmd): Print thread name.
7688
d4c9a4f8
SM
76892020-02-26 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7692 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7693 dwarf2_fetch_die_type_sect_off): Move to...
7694 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7695 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7696 dwarf2_fetch_die_type_sect_off): ... here.
7697 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7698 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7699 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7700
0dce4280
TV
77012020-02-26 Tom de Vries <tdevries@suse.de>
7702
7703 PR gdb/25603
7704 * symfile.c (set_initial_language): Exit-early if
7705 language_mode == language_mode_manual.
7706
450a1bfc
SM
77072020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7708
7709 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7710 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7711 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7712
9e80cfa1
AB
77132020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7714
7715 * gdbtypes.c (create_array_type_with_stride): Handle negative
7716 array strides.
7717 * valarith.c (value_subscripted_rvalue): Likewise.
7718
09624f1f
LM
77192020-02-25 Luis Machado <luis.machado@linaro.org>
7720
7721 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7722
8cb5117c
SM
77232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7724
7725 * loc.h (dwarf2_get_die_type): Move to...
7726 * read.h (dwarf2_get_die_type): ... here.
7727 * read.c (dwarf2_get_die_type): Move doc to header.
7728
c325c44e
JB
77292020-02-25 Joel Brobecker <brobecker@adacore.com>
7730
7731 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7732 'gnulib/Makefile.in' to the list.
7733
4ac93832
TT
77342020-02-24 Tom Tromey <tom@tromey.com>
7735
7736 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7737 Remove.
7738 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7739 XOBNEWVEC.
7740
197400e8
TT
77412020-02-24 Tom Tromey <tom@tromey.com>
7742
7743 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7744 New method.
7745 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7746 (dw2_do_instantiate_symtab, dw2_get_file_names)
7747 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7748
76935768
TT
77492020-02-24 Tom Tromey <tom@tromey.com>
7750
7751 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7752 make_scoped_restore.
7753 (dwarf2_psymtab::read_symtab): Don't clear
7754 reading_partial_symbols.
7755
a88ef40d
TV
77562020-02-24 Tom de Vries <tdevries@suse.de>
7757
7758 PR gdb/25592
7759 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7760
c9af6521
TV
77612020-02-24 Tom de Vries <tdevries@suse.de>
7762
7763 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7764 commands layout next/prev/regs.
7765
5707a07a
TT
77662020-02-22 Tom Tromey <tom@tromey.com>
7767
7768 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7769 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7770
3b0fb49e
TT
77712020-02-22 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7774
283be8bf
TT
77752020-02-22 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7778 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7779 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7780 * tui/tui.c (_initialize_tui): Add usage text.
7781
ca793b96
TT
77822020-02-22 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui-win.c (tui_set_focus_command)
7785 (tui_set_win_height_command): Use error_no_arg.
7786 (_initialize_tui_win): Update help text.
7787 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7788
432b5c40
TT
77892020-02-22 Tom Tromey <tom@tromey.com>
7790
7791 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7792 * tui/tui-disasm.h (struct tui_disasm_window)
7793 <display_start_addr>: Declare.
7794 * tui/tui-source.h (struct tui_source_window)
7795 <display_start_addr>: Declare.
7796 * tui/tui-winsource.h (struct tui_source_window_base)
7797 <show_source_line, display_start_addr>: New methods.
7798 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7799 Rename and move to protected section.
7800 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7801 (tui_source_window_base::do_erase_source_content): Update.
7802 (tui_source_window_base::show_source_line): Now a method.
7803 (tui_source_window_base::show_source_content)
7804 (tui_source_window_base::tui_source_window_base)
7805 (tui_source_window_base::rerender)
7806 (tui_source_window_base::refill)
7807 (tui_source_window_base::do_scroll_horizontal)
7808 (tui_source_window_base::set_is_exec_point_at)
7809 (tui_source_window_base::update_breakpoint_info)
7810 (tui_source_window_base::update_exec_info): Update.
7811 * tui/tui-source.c (tui_source_window::set_contents)
7812 (tui_source_window::showing_source_p)
7813 (tui_source_window::do_scroll_vertical)
7814 (tui_source_window::location_matches_p)
7815 (tui_source_window::line_is_displayed): Update.
7816 (tui_source_window::display_start_addr): New method.
7817 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7818 (tui_disasm_window::do_scroll_vertical)
7819 (tui_disasm_window::location_matches_p): Update.
7820 (tui_disasm_window::display_start_addr): New method.
7821
01b1af32
TT
78222020-02-22 Tom Tromey <tom@tromey.com>
7823
7824 * NEWS: Add entry for gdb.register_window_type.
7825 * tui/tui-layout.h (window_factory): New typedef.
7826 (tui_register_window): Declare.
7827 * tui/tui-layout.c (saved_tui_windows): New global.
7828 (tui_apply_current_layout): Use it.
7829 (tui_register_window): New function.
7830 * python/python.c (do_start_initialization): Call
7831 gdbpy_initialize_tui.
7832 (python_GdbMethods): Add "register_window_type" function.
7833 * python/python-internal.h (gdbpy_register_tui_window)
7834 (gdbpy_initialize_tui): Declare.
7835 * python/py-tui.c: New file.
7836 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7837
fc96d20b
TT
78382020-02-22 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7841
935c78c0
TT
78422020-02-22 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7845 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7846 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7847 (tui_set_win_focus_to): Move from tui-win.c.
7848
0240c8f1
TT
78492020-02-22 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7852 functions.
7853 (known_window_types): New global.
7854 (tui_get_window_by_name): Reimplement.
7855 (initialize_known_windows): New function.
7856 (validate_window_name): Rewrite.
7857 (_initialize_tui_layout): Call initialize_known_windows.
7858
fdb01f0c
TT
78592020-02-22 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7862 Remove constants.
7863 * tui/tui-winsource.h (struct tui_source_window_base)
7864 <tui_source_window_base>: Remove parameter.
7865 * tui/tui-winsource.c
7866 (tui_source_window_base::tui_source_window_base): Remove
7867 parameter.
7868 (tui_source_window_base::refill): Update.
7869 * tui/tui-stack.h (struct tui_locator_window)
7870 <tui_locator_window>: Update.
7871 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7872 Default the constructor.
7873 * tui/tui-regs.h (struct tui_data_item_window)
7874 <tui_data_item_window>: Default the constructor.
7875 (struct tui_data_window) <tui_data_window>: Likewise.
7876 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7877 Default the constructor.
7878 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7879 Default the constructor.
7880 <type>: Remove.
7881 (struct tui_win_info) <tui_win_info>: Default the constructor.
7882 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7883 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7884 Default the constructor.
7885
865a5aec
TT
78862020-02-22 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7889 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7890 * tui/tui-win.c (tui_resize_all): Don't call
7891 tui_delete_invisible_windows.
7892 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7893 done.
7894 (tui_set_layout): Update.
7895 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7896 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7897 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7898
e098d18c
TT
78992020-02-22 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7902 correctly.
7903
eb9c8874
TT
79042020-02-22 Tom Tromey <tom@tromey.com>
7905
7906 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7907
7eed1a8e
TT
79082020-02-22 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui-winsource.h (struct tui_source_window_iterator)
7911 <inner_iterator>: New etytypedef.
7912 <tui_source_window_iterator>: Take "end" parameter.
7913 <tui_source_window_iterator>: Take iterator.
7914 <operator*, advance>: Update.
7915 <m_iter>: Change type.
7916 <m_end>: New field.
7917 (struct tui_source_windows) <begin, end>: Update.
7918 * tui/tui-layout.c (tui_windows): New global.
7919 (tui_apply_current_layout): Clear tui_windows.
7920 (tui_layout_window::apply): Update tui_windows.
7921 * tui/tui-data.h (tui_windows): Declare.
7922 (all_tui_windows): Now inline function.
7923 (class tui_window_iterator, struct all_tui_windows): Remove.
7924
7c043ba6
TT
79252020-02-22 Tom Tromey <tom@tromey.com>
7926
7927 PR tui/17850:
7928 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7929 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7930 "height" argument.
7931 (class tui_layout_window) <get_sizes>: Likewise.
7932 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7933 argument.
7934 <get_sizes>: Add "height" argument.
7935 <m_vertical>: New field.
7936 * tui/tui-layout.c (tui_layout_split::clone): Update.
7937 (tui_layout_split::get_sizes): Add "height" argument.
7938 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7939 (tui_new_layout_command): Parse "-horizontal".
7940 (_initialize_tui_layout): Update help string.
7941 (tui_layout_split::specification): Add "-horizontal" when needed.
7942 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7943 argument.
7944 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7945 New methods.
7946
6bc56648
TT
79472020-02-22 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-layout.h (enum tui_adjust_result): New.
7950 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7951 (class tui_layout_window) <adjust_size>: Return
7952 tui_adjust_result. Rewrite.
7953 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7954 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7955
c22fef7e
TT
79562020-02-22 Tom Tromey <tom@tromey.com>
7957
7958 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7959 parameter and return types.
7960 (class tui_layout_base) <specification>: Add "depth".
7961 (class tui_layout_window) <specification>: Add "depth".
7962 (class tui_layout_split) <specification>: Add "depth".
7963 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7964 and return types.
7965 (tui_new_layout_command): Parse sub-layouts.
7966 (_initialize_tui_layout): Update help string.
7967 (tui_layout_window::specification): Add "depth".
7968 (add_layout_command): Update.
7969
ee325b61
TT
79702020-02-22 Tom Tromey <tom@tromey.com>
7971
7972 * NEWS: Add "tui new-layout" item.
7973 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7974 Add new-layout command to help text.
7975 (validate_window_name): New function.
7976 (tui_new_layout_command): New function.
7977 (_initialize_tui_layout): Register "new-layout".
7978 (tui_layout_window::specification): New method.
7979 (tui_layout_window::specification): New method.
7980 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7981 method.
7982 (class tui_layout_window) <specification>: New method.
7983 (class tui_layout_split) <specification>: New method.
7984
416eb92d
TT
79852020-02-22 Tom Tromey <tom@tromey.com>
7986
7987 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7988 * tui/tui-win.c (window_name_completer): Update comment.
7989 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7990 Declare method.
7991 (class tui_layout_window) <replace_window>: Likewise.
7992 (class tui_layout_split) <replace_window>: Likewise.
7993 (tui_set_layout): Don't declare.
7994 (tui_set_initial_layout): Declare function.
7995 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7996 (asm_regs_layout): New globals.
7997 (tui_current_layout, show_layout): Remove.
7998 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7999 (find_layout, tui_apply_layout): New function.
8000 (layout_completer): Remove.
8001 (tui_next_layout): Reimplement.
8002 (tui_next_layout_command): New function.
8003 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8004 (tui_regs_layout): Reimplement.
8005 (tui_regs_layout_command): New function.
8006 (extract_display_start_addr): Rewrite.
8007 (next_layout, prev_layout): Remove.
8008 (tui_layout_window::replace_window): New method.
8009 (tui_layout_split::replace_window): New method.
8010 (destroy_layout): New function.
8011 (layout_list): New global.
8012 (add_layout_command): New function.
8013 (initialize_layouts): Update.
8014 (tui_layout_command): New function.
8015 (_initialize_tui_layout): Install "layout" commands.
8016 * tui/tui-data.h (enum tui_layout_type): Remove.
8017 (tui_current_layout): Don't declare.
8018
0dbc2fc7
TT
80192020-02-22 Tom Tromey <tom@tromey.com>
8020
8021 * tui/tui-regs.c (tui_reg_layout): Remove.
8022 (tui_reg_command): Use tui_regs_layout.
8023 * tui/tui-layout.h (tui_reg_command): Declare.
8024 * tui/tui-layout.c (tui_reg_command): New function.
8025
5afe342e
TT
80262020-02-22 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui.c (tui_rl_delete_other_windows): Call
8029 tui_remove_some_windows.
8030 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8031 Declare method.
8032 (class tui_layout_window) <remove_windows>: New method.
8033 (class tui_layout_split) <remove_windows>: Declare.
8034 (tui_remove_some_windows): Declare.
8035 * tui/tui-layout.c (tui_remove_some_windows): New function.
8036 (tui_layout_split::remove_windows): New method.
8037
427326a8
TT
80382020-02-22 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8041 * tui/tui-layout.h (tui_next_layout): Declare.
8042 * tui/tui-layout.c (tui_next_layout): New function.
8043
3fe12b6d
TT
80442020-02-22 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8047 correct coordinates.
8048
59b8b5d2
TT
80492020-02-22 Tom Tromey <tom@tromey.com>
8050
8051 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8052 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8053 DATA_WIN case.
8054
2a3d458b
TT
80552020-02-22 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8058 TUI_DISASM_WIN, not tui_win_list.
8059
3f0cbb04
TT
80602020-02-22 Tom Tromey <tom@tromey.com>
8061
8062 * valprint.c (generic_val_print_enum_1)
8063 (val_print_type_code_flags): Style member names.
8064 * rust-lang.c (val_print_struct, rust_print_enum)
8065 (rust_print_struct_def, rust_internal_print_type): Style member
8066 names.
8067 * p-valprint.c (pascal_object_print_value_fields): Style member
8068 names. Only call fprintf_symbol_filtered for static members.
8069 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8070 * f-valprint.c (f_val_print): Style member names.
8071 * f-typeprint.c (f_type_print_base): Style member names.
8072 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8073 call fprintf_symbol_filtered for static members.
8074 (cp_print_class_member): Style member names.
8075 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8076 member names.
8077 * ada-valprint.c (ada_print_scalar): Style enum names.
8078 (ada_val_print_enum): Likewise.
8079 * ada-typeprint.c (print_enum_type): Style enum names.
8080
d4d947ae
TT
80812020-02-21 Tom Tromey <tom@tromey.com>
8082
8083 * psympriv.h (struct partial_symtab): Update comment.
8084
e94e944b
TT
80852020-02-21 Tom Tromey <tromey@adacore.com>
8086
8087 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8088 type is CORE_ADDR.
8089
1eb73179
TV
80902020-02-21 Tom de Vries <tdevries@suse.de>
8091
8092 PR gdb/25534
8093 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8094 if dependencies[i]->user != NULL.
8095
4f180d53
AT
80962020-02-21 Ali Tamur <tamur@google.com>
8097
8098 * dwarf2/read.c (dwarf2_name): Add null check.
8099
22b6cd70
TT
81002020-02-20 Tom Tromey <tom@tromey.com>
8101
8102 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8103 ">=", in binary search.
8104 (dwarf2_find_containing_comp_unit): New overload.
8105 (run_test): New self-test.
8106 (_initialize_dwarf2_read): Register new test.
8107
bd0cf5a6
NC
81082020-02-20 Nelson Chu <nelson.chu@sifive.com>
8109
8110 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8111 * riscv-tdep.h: Likewise.
8112 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8113 rv32-only CSR.
8114 * features/riscv/64bit-csr.xml: Regenerated.
8115
3f702acd
SDJ
81162020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8117 Tom Tromey <tom@tromey.com>
8118
8119 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8120 of 'fputc_unfiltered'.
8121 (putchar_unfiltered): Call 'fputc_unfiltered'.
8122 (fputc_unfiltered): Call 'fputs_unfiltered'.
8123
d13c7322
AB
81242020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * config.in: Regenerate.
8127 * configure: Regenerate.
8128 * configure.ac: Add --with-python-libdir option.
8129 * main.c: Use WITH_PYTHON_LIBDIR.
8130
869d8950
TT
81312020-02-19 Tom Tromey <tom@tromey.com>
8132
8133 * symtab.c (general_symbol_info::compute_and_set_names): Use
8134 obstack_strndup. Simplify call to symbol_set_demangled_name.
8135
298e9637
SM
81362020-02-19 Simon Marchi <simon.marchi@efficios.com>
8137
8138 * dwarf2/read.c (allocate_signatured_type_table,
8139 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8140 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8141 Remove objfile parameter, update all callers.
8142
08410482
DE
81432020-02-19 Doug Evans <dje@google.com>
8144
8145 PR rust/25535
8146 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8147 rust_enum_variant calculation.
8148
dfdeeca1
TT
81492020-02-19 Tom Tromey <tromey@adacore.com>
8150
8151 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8152
2ef5453b
TT
81532020-02-19 Tom Tromey <tromey@adacore.com>
8154
8155 * ada-lang.c (cache_symbol): Use obstack_strdup.
8156
9f1528a1
AB
81572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * configure: Regenerate.
8160
d3c22fa8
TT
81612020-02-19 Tom Tromey <tromey@adacore.com>
8162
8163 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8164 NULL check.
8165
bf84f706
MR
81662020-02-19 Maciej W. Rozycki <macro@wdc.com>
8167
8168 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8169
d1c9b20f
AB
81702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8173 if GDBSERVER is not defined.
8174 (riscv_tdesc_cache): Likewise, also store const target_desc.
8175 (STATIC_IN_GDB): Define.
8176 (riscv_create_target_description): Update declaration with
8177 STATIC_IN_GDB.
8178 (riscv_lookup_target_description): New function, only define if
8179 GDBSERVER is not defined.
8180 * arch/riscv.h (riscv_create_target_description): Declare only
8181 when GDBSERVER is defined.
8182 (riscv_lookup_target_description): New declaration when GDBSERVER
8183 is not defined.
8184 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8185 (riscv_linux_read_features): ...this, and return
8186 riscv_gdbarch_features instead of target_desc.
8187 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8188 (riscv_linux_read_description): Rename to...
8189 (riscv_linux_read_features): ...this.
8190 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8191 Update to use riscv_gdbarch_features and
8192 riscv_lookup_target_description.
8193 * riscv-tdep.c (riscv_find_default_target_description): Use
8194 riscv_lookup_target_description instead of
8195 riscv_create_target_description.
8196
373d7ac0
SM
81972020-02-18 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * valprint.c (generic_val_print_enum_1): When printing a flag
8200 enum with value 0 and there is no enumerator with value 0, print
8201 just "0" instead of "(unknown: 0x0)".
8202
b29a2df0
SM
82032020-02-18 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * valprint.c (generic_val_print_enum_1): Print unknown part of
8206 flag enum in hex.
8207
6740f0cc
SM
82082020-02-18 Simon Marchi <simon.marchi@efficios.com>
8209
8210 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8211 flag enums to contain duplicate enumerators.
8212 * valprint.c (generic_val_print_enum_1): Update comment.
8213
edd45eb0
SM
82142020-02-18 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * dwarf2/read.c: Include "count-one-bits.h".
8217 (update_enumeration_type_from_children): If an enumerator has
8218 multiple bits set, don't treat the enumeration as a "flag enum".
8219 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8220 of flag enums have 0 or 1 bit set.
8221
6d0cf446
BE
82222020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8223
8224 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8225 conversion.
8226 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8227 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8228 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8229 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8230 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8231
7001c1b7
SM
82322020-02-18 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8235
fdb61c6c
SM
82362020-02-14 Simon Marchi <simon.marchi@efficios.com>
8237
8238 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8239 displaced_step_closure_up.
8240 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8241 (struct displaced_step_closure_up):
8242 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8243 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8244 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8245 Likewise.
8246 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8247 * gdbarch.c, gdbarch.h: Re-generate.
8248 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8249 displaced_step_closure_up.
8250 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8251 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8252 * infrun.h (displaced_step_closure_up): New type alias.
8253 (struct displaced_step_inferior_state) <step_closure>: Change
8254 type to displaced_step_closure_up.
8255 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8256 displaced_step_closure_up.
8257 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8258
a4a38eb4
TT
82592020-02-14 Tom Tromey <tom@tromey.com>
8260
8261 * minidebug.c (gnu_debug_key): New global.
8262 (find_separate_debug_file_in_section): Use it.
8263
e8217e61
SM
82642020-02-14 Simon Marchi <simon.marchi@efficios.com>
8265
8266 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8267 std::unique_ptr.
8268 * gdbarch.c: Re-generate.
8269 * gdbarch.h: Re-generate.
8270 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8271 change.
8272 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8273 type to std::unique_ptr.
8274 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8275 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8276 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8277 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8278 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8279 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8280 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8281 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8282 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8283
d8d83535
SM
82842020-02-14 Simon Marchi <simon.marchi@efficios.com>
8285
8286 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8287 std::unique_ptr.
8288 (displaced_step_clear): Rename to...
8289 (displaced_step_reset): ... this. Just call displaced->reset ().
8290 (displaced_step_clear_cleanup): Rename to...
8291 (displaced_step_reset_cleanup): ... this.
8292 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8293 (displaced_step_fixup): Likewise.
8294 (resume_1): Likewise.
8295 (handle_inferior_event): Restore child's memory before calling
8296 displaced_step_fixup on the parent.
8297 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8298 to std::unique_ptr.
8299 <step_closure>: Change type to std::unique_ptr.
8300
5f661e03
SM
83012020-02-14 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * arm-tdep.c: Include count-one-bits.h.
8304 (cleanup_block_store_pc): Use count_one_bits.
8305 (cleanup_block_load_pc): Use count_one_bits.
8306 (arm_copy_block_xfer): Use count_one_bits.
8307 (thumb2_copy_block_xfer): Use count_one_bits.
8308 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8309 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8310 (thumb_get_next_pcs_raw): Use count_one_bits.
8311 (arm_get_next_pcs_raw): Use count_one_bits_l.
8312 * arch/arm.c (bitcount): Remove.
8313 * arch/arm.h (bitcount): Remove.
8314
8084e579
TT
83152020-02-14 Tom Tromey <tromey@adacore.com>
8316
8317 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8318 Update.
8319 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8320 * dwarf2/loc.c (call_site_find_chain_1): Return
8321 unique_xmalloc_ptr.
8322 (call_site_find_chain): Likewise.
8323
258bf0ee
RB
83242020-02-14 Richard Biener <rguenther@suse.de>
8325
8326 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8327 on expression with division operators.
8328
f98a8458
AKS
83292020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8330
8331 * MAINTAINERS (Write After Approval): Adding myself.
8332
d1437c0e
TT
83332020-02-12 Tom Tromey <tom@tromey.com>
8334
8335 * event-loop.c (event_data, gdb_event, event_handler_func):
8336 Remove.
8337
3d4560f7
TT
83382020-02-12 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8341 (dwarf2_frame_objfile_data): Add comment.
8342 (find_comp_unit, set_comp_unit): New functions.
8343 (dwarf2_frame_find_fde): Use find_comp_unit.
8344 (dwarf2_build_frame_info): Use set_comp_unit.
8345
21982304
TT
83462020-02-12 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8349 (comp_unit): Don't initialize objfile.
8350 (execute_cfa_program): Add text_offset parameter.
8351 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8352 (dwarf2_frame_cache): Update.
8353 (dwarf2_build_frame_info): Don't set "objfile" member.
8354
4debb237
TT
83552020-02-12 Tom Tromey <tom@tromey.com>
8356
8357 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8358 (decode_frame_entry): Likewise.
8359 (dwarf2_build_frame_info): Update.
8360
0d404d44
TT
83612020-02-12 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8364 (decode_frame_entry_1): Use the comp_unit obstack.
8365
a7a3ae5c
TT
83662020-02-12 Tom Tromey <tom@tromey.com>
8367
8368 * dwarf2/frame.c (struct comp_unit): Add initializers and
8369 constructor.
8370 (dwarf2_frame_objfile_data): Store a comp_unit.
8371 (dwarf2_frame_find_fde): Update.
8372 (dwarf2_build_frame_info): Use "new".
8373
a9d65418
TT
83742020-02-12 Tom Tromey <tom@tromey.com>
8375
8376 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8377 (dwarf2_fde_table): Typedef for std::vector.
8378 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8379 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8380 (decode_frame_entry): Update.
8381 (dwarf2_build_frame_info): Use "new".
8382
7559c217
CB
83832020-02-12 Christian Biesinger <cbiesinger@google.com>
8384
8385 * arm-tdep.c (arm_gdbarch_init): Update.
8386 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8387 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8388 have_neon, is_m>: Change to bool.
8389
aeefc73c
CB
83902020-02-12 Christian Biesinger <cbiesinger@google.com>
8391
8392 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8393
d27b8e5f
TT
83942020-02-12 Tom Tromey <tom@tromey.com>
8395
8396 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8397
cd5900f3
HD
83982020-02-12 Hannes Domani <ssbssa@yahoo.de>
8399
8400 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8401 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8402
f056b22b
TT
84032020-02-11 Tom Tromey <tom@tromey.com>
8404
8405 * psymtab.h: Update comment.
8406
f92ff6b5
TT
84072020-02-11 Tom Tromey <tom@tromey.com>
8408
8409 * gdb_obstack.h (struct auto_obstack): Use
8410 DISABLE_COPY_AND_ASSIGN.
8411
3fd6912b
TT
84122020-02-11 Tom Tromey <tom@tromey.com>
8413
8414 * dwarf2/frame.h (struct objfile): Don't forward declare.
8415
69ed9b74
CB
84162020-02-11 Christian Biesinger <cbiesinger@google.com>
8417
8418 * cris-tdep.c (cris_supply_gregset): Change signature to match
8419 what struct regset expects.
8420 (cris_regset): New struct.
8421 (fetch_core_registers): Remove.
8422 (cris_iterate_over_regset_sections): New function.
8423 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8424 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8425
bda874f6
CB
84262020-02-11 Christian Biesinger <cbiesinger@google.com>
8427
8428 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8429 registers.
8430
754e1564
CB
84312020-02-11 Christian Biesinger <cbiesinger@google.com>
8432
8433 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8434
8ddd8e0e
SM
84352020-02-11 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * configure: Re-generate.
8438
898e7f60
SM
84392020-02-11 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * configure: Re-generate.
8442
58df732b
SM
84432020-02-11 Simon Marchi <simon.marchi@efficios.com>
8444
8445 * acinclude: Update warning.m4 path.
8446 * warning.m4: Move to gdbsupport.
8447
da5bd37e
TT
84482020-02-11 Tom Tromey <tromey@adacore.com>
8449
8450 * remote.c (remote_console_output): Update.
8451 * printcmd.c (printf_command): Update.
8452 * event-loop.c (gdb_wait_for_event): Update.
8453 * linux-nat.c (sigchld_handler): Update.
8454 * remote-sim.c (gdb_os_write_stdout): Update.
8455 (gdb_os_flush_stdout): Update.
8456 (gdb_os_flush_stderr): Update.
8457 (gdb_os_write_stderr): Update.
8458 * exceptions.c (print_exception): Update.
8459 * remote-fileio.c (remote_fileio_func_read): Update.
8460 (remote_fileio_func_write): Update.
8461 * tui/tui.c (tui_enable): Update.
8462 * tui/tui-interp.c (tui_interp::init): Update.
8463 * utils.c (init_page_info): Update.
8464 (putchar_unfiltered, fputc_unfiltered): Update.
8465 (gdb_flush): Update.
8466 (emit_style_escape): Update.
8467 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8468 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8469 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8470 (stderr_file::write): Update.
8471 (stderr_file::puts): Update.
8472 * ui-file.h (ui_file_isatty, ui_file_write)
8473 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8474 (ui_file_puts): Don't declare.
8475
85f0dd3c
TV
84762020-02-10 Tom de Vries <tdevries@suse.de>
8477
8478 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8479 sentinel to char *.
8480
2e927613
TV
84812020-02-09 Tom de Vries <tdevries@suse.de>
8482
8483 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8484 filename if it matches "<artificial>".
8485
6bafc845
HD
84862020-02-09 Hannes Domani <ssbssa@yahoo.de>
8487
8488 * windows-tdep.c (struct enum_value_name): New struct.
8489 (create_enum): New function.
8490 (windows_get_siginfo_type): Create and use enum types.
8491
7928d571
HD
84922020-02-09 Hannes Domani <ssbssa@yahoo.de>
8493
8494 * NEWS: Mention $_siginfo support for Windows.
8495 * windows-nat.c (handle_exception): Set siginfo_er.
8496 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8497 (windows_xfer_siginfo): New function.
8498 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8499 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8500 (init_windows_gdbarch_data): New function.
8501 (get_windows_gdbarch_data): New function.
8502 (windows_get_siginfo_type): New function.
8503 (windows_init_abi): Register windows_get_siginfo_type.
8504 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8505
6751ebae
TT
85062020-02-08 Tom Tromey <tom@tromey.com>
8507
8508 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8509 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8510 <keep>: Declare method.
8511 <m_keep>: Remove member.
8512 <~cutu_reader>: Remove.
8513 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8514 (cutu_reader::cutu_reader): Update.
8515 (cutu_reader::keep): Rename from ~cutu_reader.
8516 (process_psymtab_comp_unit, build_type_psymtabs_1)
8517 (process_skeletonless_type_unit, load_partial_comp_unit)
8518 (load_full_comp_unit, dwarf2_read_addr_index)
8519 (read_signatured_type): Update.
8520
135f5437
TT
85212020-02-08 Tom Tromey <tom@tromey.com>
8522
8523 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8524 "want_partial_unit" parameter.
8525 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8526 Inline check for DW_TAG_partial_unit.
8527 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8528
9f66ff1c
TT
85292020-02-08 Tom Tromey <tom@tromey.com>
8530
8531 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8532 read.c.
8533 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8534 read.c.
8535
c8a7a66f
TT
85362020-02-08 Tom Tromey <tom@tromey.com>
8537
8538 * dwarf2/read.c (read_address): Move to comp-unit.c.
8539 (dwarf2_rnglists_process, dwarf2_ranges_process)
8540 (read_attribute_value, dwarf_decode_lines_1)
8541 (var_decode_location, decode_locdesc): Update.
8542 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8543 read.c. Remove "cu" parameter.
8544 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8545 method.
8546
8266302d
TT
85472020-02-08 Tom Tromey <tom@tromey.com>
8548
8549 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8550 (read_indirect_line_string): Update.
8551 * dwarf2/comp-unit.c (read_offset): Remove.
8552 (read_comp_unit_head): Update.
8553 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8554 method.
8555 (read_offset): Don't declare.
8556
4057dfde
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8560 * dwarf2/read.c (struct comp_unit_head): Move to
8561 dwarf2/comp-unit.h.
8562 (enum class rcuh_kind): Move to comp-unit.h.
8563 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8564 (read_comp_unit_head, error_check_comp_unit_head)
8565 (read_and_check_comp_unit_head): Move to comp-unit.c.
8566 (read_offset, dwarf_unit_type_name): Likewise.
8567 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8568 (cutu_reader::cutu_reader, read_call_site_scope)
8569 (find_partial_die, follow_die_offset): Update.
8570 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8571
24aa364d
TT
85722020-02-08 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2/read.c (read_offset_1): Move to leb.c.
8575 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8576 (dwarf_decode_macro_bytes): Update.
8577 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8578 * dwarf2/leb.h (read_offset): Declare.
8579
2c7d5afc
TT
85802020-02-08 Tom Tromey <tom@tromey.com>
8581
8582 * dwarf2/read.c (dwarf2_section_size): Remove.
8583 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8584 Update.
8585 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8586
4075cb26
TT
85872020-02-08 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/read.c (read_initial_length): Move to leb.c.
8590 * dwarf2/leb.h (read_initial_length): Declare.
8591 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8592 handle_nonstd parameter.
8593 * dwarf2/frame.c (read_initial_length): Remove.
8594 (decode_frame_entry_1): Update.
8595
09ba997f
TT
85962020-02-08 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/loc.c (dwarf2_find_location_expression)
8599 (dwarf_evaluate_loc_desc::get_tls_address)
8600 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8601 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8602 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8603 (dwarf2_compile_property_to_c)
8604 (dwarf2_loc_desc_get_symbol_read_needs)
8605 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8606 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8607 (loclist_describe_location, loclist_tracepoint_var_ref)
8608 (loclist_generate_c_location): Update.
8609 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8610 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8611 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8612 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8613 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8614 (dwarf2_per_cu_data::addr_size)
8615 (dwarf2_per_cu_data::ref_addr_size)
8616 (dwarf2_per_cu_data::text_offset)
8617 (dwarf2_per_cu_data::addr_type): Now methods.
8618 (per_cu_header_read_in): Make per_cu "const".
8619 (dwarf2_version): Remove.
8620 (dwarf2_per_cu_data::int_type): Now a method.
8621 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8622 (set_die_type, read_array_type, read_subrange_index_type)
8623 (read_tag_string_type, read_subrange_type): Update.
8624 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8625 offset_size, ref_addr_size, text_offset, addr_type, version,
8626 objfile, int_type, addr_sized_int_type>: Declare methods.
8627
96c738c0
TT
86282020-02-08 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8631 Move earlier.
8632
8fdd972c
TT
86332020-02-08 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/read.h (dwarf_line_debug): Declare.
8636 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8637 * dwarf2/read.c: Move line_header code to new files.
8638 (dwarf_line_debug): No longer static.
8639 * dwarf2/line-header.c: New file.
8640 * dwarf2/line-header.h: New file.
8641
03075812
TT
86422020-02-08 Tom Tromey <tom@tromey.com>
8643
8644 * dwarf2/read.c (struct line_header) <file_full_name,
8645 file_file_name>: Return unique_xmalloc_ptr.
8646 (line_header::file_file_name): Update.
8647 (line_header::file_full_name): Update.
8648 (dw2_get_file_names_reader): Update.
8649 (macro_start_file): Update.
8650
bb822404
TT
86512020-02-08 Tom Tromey <tom@tromey.com>
8652
8653 * dwarf2/read.c (struct line_header) <file_full_name,
8654 file_file_name>: Declare methods.
8655 (dw2_get_file_names_reader): Update.
8656 (file_file_name): Now a method.
8657 (file_full_name): Likewise.
8658 (macro_start_file): Update.
8659
009b64fc
TT
86602020-02-08 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/read.c (dwarf_always_disassemble)
8663 (show_dwarf_always_disassemble): Move to loc.c.
8664 (_initialize_dwarf2_read): Move "always-disassemble" registration
8665 to loc.c.
8666 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8667 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8668 static.
8669 (show_dwarf_always_disassemble): Move from read.c.
8670 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8671
5895093f
TT
86722020-02-08 Tom Tromey <tom@tromey.com>
8673
8674 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8675 (create_quick_file_names_table): Return htab_up.
8676 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8677 Update.
8678 * dwarf2/read.h (struct dwarf2_per_objfile)
8679 <quick_file_names_table>: Now htab_up.
8680
b3b32279
TT
86812020-02-08 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8684
1d33d811
TT
86852020-02-08 Tom Tromey <tom@tromey.com>
8686
8687 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8688 Rewrite.
8689 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8690 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8691 (abbrev_table::abbrev_table): No longer inline.
8692 (ABBREV_HASH_SIZE): Remove.
8693 (abbrev_table::m_abbrevs): Now an htab_up.
8694
86de1d91
TT
86952020-02-08 Tom Tromey <tom@tromey.com>
8696
8697 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8698 (cutu_reader): Update.
8699 (build_type_psymtabs_1): Update.
8700 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8701 (abbrev_table::alloc_abbrev): Update.
8702 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8703 (abbrev_table::read): New static method, renamed from
8704 abbrev_table_read_table.
8705 (abbrev_table::alloc_abbrev)
8706 (abbrev_table::add_abbrev): Now private.
8707 (abbrev_table::abbrev_table): Now private.
8708 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8709
0335378b
TT
87102020-02-08 Tom Tromey <tom@tromey.com>
8711
8712 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8713 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8714 htab_up.
8715
48b490f2
TT
87162020-02-08 Tom Tromey <tom@tromey.com>
8717
8718 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8719 htab_up.
8720 (lookup_dwo_unit_in_dwp): Update.
8721 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8722 on obstack.
8723
bc68fb19
TT
87242020-02-08 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8727 obstack.
8728
d15acc42
TT
87292020-02-08 Tom Tromey <tom@tromey.com>
8730
8731 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8732 line_header_hash.
8733 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8734 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8735 Change type to htab_up.
8736
eaa5fa8b
TT
87372020-02-08 Tom Tromey <tom@tromey.com>
8738
8739 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8740 htab_up. Don't allocate on obstack.
8741 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8742 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8743 Change type to htab_up.
8744
b0b6a987
TT
87452020-02-08 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8748 Change type to htab_up.
8749 * dwarf2/read.c (create_signatured_type_table_from_index)
8750 (create_signatured_type_table_from_debug_names)
8751 (create_all_type_units, add_type_unit)
8752 (lookup_dwo_signatured_type, lookup_signatured_type)
8753 (process_skeletonless_type_unit): Update.
8754 (create_debug_type_hash_table, create_debug_types_hash_table):
8755 Change type of types_htab.
8756 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8757 htab_up. Don't allocate on obstack.
8758 (create_cus_hash_table): Change type of cus_htab parameter.
8759 (struct dwo_file) <cus, tus>: Now htab_up.
8760 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8761 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8762 (queue_and_load_all_dwo_tus): Update.
8763 * dwarf2/index-write.c (write_gdbindex): Update.
8764 (write_debug_names): Update.
8765
39856def
TT
87662020-02-08 Tom Tromey <tom@tromey.com>
8767
8768 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8769 dwarf2/read.c. Remove "next" member. Add constructor ntad
8770 destructor.
8771 (struct dwarf2_per_objfile) <queue>: New member.
8772 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8773 dwarf2/read.h.
8774 (dwarf2_queue, dwarf2_queue_tail): Remove.
8775 (class dwarf2_queue_guard): Add parameter to constructor. Use
8776 DISABLE_COPY_AND_ASSIGN.
8777 <m_per_objfile>: New member.
8778 <~dwarf2_queue_guard>: Rewrite.
8779 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8780 Update.
8781 (~dwarf2_queue_item): New.
8782
3e225074
TT
87832020-02-08 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/read.c (struct die_info) <has_children>: New member.
8786 (dw2_get_file_names_reader): Remove has_children.
8787 (dw2_get_file_names): Update.
8788 (read_cutu_die_from_dwo): Remove has_children.
8789 (cutu_reader::init_tu_and_read_dwo_dies)
8790 (cutu_reader::cutu_reader): Update.
8791 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8792 Remove has_children.
8793 (build_type_psymtabs_1, process_skeletonless_type_unit)
8794 (load_partial_comp_unit, load_full_comp_unit): Update.
8795 (create_dwo_cu_reader): Remove has_children.
8796 (create_cus_hash_table, read_die_and_children): Update.
8797 (read_full_die_1,read_full_die): Remove has_children.
8798 (read_signatured_type): Update.
8799 (class cutu_reader) <has_children>: Remove.
8800
82ca8957
TT
88012020-02-08 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/expr.c: Rename from dwarf2expr.c.
8804 * dwarf2/expr.h: Rename from dwarf2expr.h.
8805 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8806 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8807 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8808 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8809 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8810 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8811 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8812 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8813 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8814 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8815 * dwarf2/loc.c: Rename from dwarf2loc.c.
8816 * dwarf2/loc.h: Rename from dwarf2loc.h.
8817 * dwarf2/read.c: Rename from dwarf2read.c.
8818 * dwarf2/read.h: Rename from dwarf2read.h.
8819 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8820 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8821 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8822 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8823 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8824 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8825 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8826 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8827 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8828 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8829 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8830 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8831 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8832 Update.
8833 * Makefile.in (COMMON_SFILES): Update.
8834 (HFILES_NO_SRCDIR): Update.
8835
9e35d499
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8839 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8840
1eba2311
TT
88412020-02-08 Tom Tromey <tom@tromey.com>
8842
8843 * dwarf2read.h (struct die_info): Don't declare.
8844
e41c2da2
TT
88452020-02-08 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2read.h (die_info_ptr): Remove typedef.
8848
4fc6c0d5
TT
88492020-02-08 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2read.c (read_call_site_scope)
8852 (handle_data_member_location, dwarf2_add_member_fn)
8853 (mark_common_block_symbol_computed, read_common_block)
8854 (attr_to_dynamic_prop, partial_die_info::read)
8855 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8856 (dwarf2_symbol_mark_computed, set_die_type): Update.
8857 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8858 method.
8859 (attr_form_is_block): Don't declare.
8860 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8861
cd6c91b4
TT
88622020-02-08 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2read.c (dwarf2_find_base_address, )
8865 (read_call_site_scope, rust_containing_type)
8866 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8867 (handle_data_member_location, dwarf2_add_member_fn)
8868 (get_alignment, read_structure_type, process_structure_scope)
8869 (mark_common_block_symbol_computed, read_common_block)
8870 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8871 (partial_die_info::read, read_attribute_value, new_symbol)
8872 (lookup_die_type, dwarf2_get_ref_die_offset)
8873 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8874 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8875 (dwarf2_symbol_mark_computed): Update.
8876 * dwarf2/attribute.h (struct attribute) <value_as_address,
8877 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8878 methods.
8879 (value_as_address, attr_form_is_section_offset)
8880 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8881 * dwarf2/attribute.c (attribute::value_as_address)
8882 (attribute::form_is_section_offset, attribute::form_is_constant)
8883 (attribute::form_is_ref): Now methods.
8884
162dce55
TT
88852020-02-08 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2read.c (struct attribute, DW_STRING)
8888 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8889 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8890 (attr_form_is_block, attr_form_is_section_offset)
8891 (attr_form_is_constant, attr_form_is_ref): Move.
8892 * dwarf2/attribute.h: New file.
8893 * dwarf2/attribute.c: New file, from dwarf2read.c.
8894 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8895
3054dd54
TT
88962020-02-08 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8899 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8900 Move.
8901 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8902 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8903 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8904 abbrev.c.
8905 * dwarf2/abbrev.h: New file.
8906 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8907 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8908
96b79293
TT
89092020-02-08 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8912 (dwarf2_section_size, dwarf2_get_section_info)
8913 (create_signatured_type_table_from_debug_names)
8914 (create_addrmap_from_aranges, read_debug_names_from_section)
8915 (get_gdb_index_contents_from_section, read_comp_unit_head)
8916 (error_check_comp_unit_head, read_abbrev_offset)
8917 (create_debug_type_hash_table, init_cu_die_reader)
8918 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8919 (read_comp_units_from_section, create_cus_hash_table)
8920 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8921 (create_dwp_v2_section, dwarf2_rnglists_process)
8922 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8923 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8924 (read_indirect_string_from_dwz, read_addr_index_1)
8925 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8926 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8927 (fill_in_loclist_baton): Update.
8928 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8929 get_containing_section, get_bfd_owner, get_bfd_section,
8930 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8931 (dwarf2_read_section, get_section_name, get_section_file_name)
8932 (get_containing_section, get_section_bfd_owner)
8933 (get_section_bfd_section, get_section_name, get_section_file_name)
8934 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8935 declare.
8936 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8937 (dwarf2_section_info::get_bfd_owner)
8938 (dwarf2_section_info::get_bfd_section)
8939 (dwarf2_section_info::get_name)
8940 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8941 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8942 (dwarf2_section_info::read): Now methods.
8943 * dwarf-index-write.c (class debug_names): Update.
8944
2c86cff9
TT
89452020-02-08 Tom Tromey <tom@tromey.com>
8946
8947 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8948 Move to dwarf2/section.h.
8949 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8950 (get_section_bfd_section, get_section_name)
8951 (get_section_file_name, get_section_id, get_section_flags)
8952 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8953 dwarf2/section.c.
8954 * dwarf2/section.h: New file.
8955 * dwarf2/section.c: New file, from dwarf2read.c.
8956 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8957
f4382c45
TT
89582020-02-08 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8961 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8962 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8963 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8964 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8965 * dwarf2/leb.h: New file, from dwarf2read.c.
8966 * dwarf2/leb.c: New file, from dwarf2read.c.
8967 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8968 Remove.
8969 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8970 (COMMON_SFILES): Add dwarf2/leb.c.
8971
01840b7a
JB
89722020-02-08 Joel Brobecker <brobecker@adacore.com>
8973
8974 GDB 9.1 released.
8975
dfcb27e4
IB
89762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8977
8978 PR gdb/25190:
aac66a4c
SM
8979 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8980 * gdb/remote.c (remote_console_output): Update.
8981 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8982 (ui_file_puts): ...this.
8983 * gdb/ui-file.h (ui_file_puts): Add declaration.
8984 * gdb/utils.c (emit_style_escape): Update.
8985 (flush_wrap_buffer): Update.
8986 (fputs_maybe_filtered): Update.
8987 (fputs_unfiltered): Add function.
dfcb27e4 8988
faa17681
IB
89892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8990
aac66a4c
SM
8991 * gdb/event-loop.c (gdb_wait_for_event): Update.
8992 * gdb/printcmd.c (printf_command): Update.
8993 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8994 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8995 (gdb_os_flush_stderr): Update.
8996 * gdb/remote.c (remote_console_output): Update.
8997 * gdb/ui-file.c (gdb_flush): Rename to...
8998 (ui_file_flush): ...this.
8999 (stderr_file::write): Update.
9000 (stderr_file::puts): Update.
9001 * gdb/ui-file.h (gdb_flush): Rename to...
9002 (ui_file_flush): ...this.
9003 * gdb/utils.c (gdb_flush): Add function.
9004 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9005
5abbbe1d
TT
90062020-02-07 Tom Tromey <tromey@adacore.com>
9007
9008 PR breakpoints/24915:
9009 * source.c (find_and_open_source): Do not check basenames_may_differ.
9010
919adfe8
TT
90112020-02-07 Tom Tromey <tom@tromey.com>
9012
9013 * README: Update gdbserver documentation.
9014 * gdbserver: Move to top level.
9015 * configure.tgt (build_gdbserver): Remove.
9016 * configure.ac: Remove --enable-gdbserver.
9017 * configure: Rebuild.
9018 * Makefile.in (distclean): Don't mention gdbserver.
9019
1d5d29e7
SV
90202020-02-06 Shahab Vahedi <shahab@synopsys.com>
9021
9022 * source-cache.c (source_cache::ensure): Surround
9023 get_plain_source_lines with a try/catch.
9024 (source_cache::get_line_charpos): Get rid of try/catch
9025 and only check for the return value of "ensure".
9026 * tui/tui-source.c (tui_source_window::set_contents):
9027 Simplify "nlines" calculation.
9028
6eb1129c
SV
90292020-02-06 Shahab Vahedi <shahab@synopsys.com>
9030
9031 * MAINTAINERS (Write After Approval): Add myself.
9032
c6a42d11
CB
90332020-02-05 Christian Biesinger <cbiesinger@google.com>
9034
9035 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9036 function call.
9037
c8ecdda6
CB
90382020-02-05 Christian Biesinger <cbiesinger@google.com>
9039
9040 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9041
f6480e70
MR
90422020-02-05 Maciej W. Rozycki <macro@wdc.com>
9043
9044 * nat/riscv-linux-tdesc.h: New file.
9045 * nat/riscv-linux-tdesc.c: New file, taking code from...
9046 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9047 ... here.
9048 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9049 NATDEPFILES.
9050
dcc9fbc6
AB
90512020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9054 we don't set the fake simulator ptid to the null_ptid.
9055
719546c4
SM
90562020-02-03 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9059 * gdbthread.h (class thread_info) <resumed>: Likewise.
9060 * infrun.c (resume_1): Likewise.
9061 (proceed): Likewise.
9062 (infrun_thread_stop_requested): Likewise.
9063 (stop_all_threads): Likewise.
9064 (handle_inferior_event): Likewise.
9065 (restart_threads): Likewise.
9066 (finish_step_over): Likewise.
9067 (keep_going_stepped_thread): Likewise.
9068 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9069 (linux_handle_extended_wait): Likewise.
9070 * record-btrace.c (get_thread_current_frame_id): Likewise.
9071 * record-full.c (record_full_wait_1): Likewise.
9072 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9073 * target.c (target_resume): Likewise.
9074 * thread.c (set_running_thread): Likewise.
9075
e409c542
AKS
90762020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9077
9078 * f-valprint.c (f77_print_array_1): Changed datatype of index
9079 variable to LONGEST from int to enable it to contain bound
9080 values correctly.
9081
ee98c0da
MR
90822020-02-03 Maciej W. Rozycki <macro@wdc.com>
9083
9084 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9085 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9086 offsets according to FLEN determined.
9087 (riscv_linux_nat_target::read_description): Determine FLEN
9088 dynamically.
9089 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9090 according to FLEN determined.
9091 (riscv_linux_nat_target::store_registers): Likewise.
9092
aa66aac4
SV
90932020-02-01 Shahab Vahedi <shahab@synopsys.com>
9094
9095 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9096 when reg->group is empty and reggroup is not.
9097
fd9faca8
TT
90982020-01-31 Tom Tromey <tromey@adacore.com>
9099
9100 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9101 Call beneath target's mourn_inferior after unpushing.
9102
42330a68
AB
91032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 PR tui/9765
9106 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9107 have enough lines to fill the screen, still return the lowest
9108 address we found.
9109
7a27a45b
AB
91102020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9113 '-', '<', and '>' commands.
9114
c47f70e2
PA
91152020-01-29 Pedro Alves <palves@redhat.com>
9116 Sergio Durigan Junior <sergiodj@redhat.com>
9117
9118 * infcmd.c (construct_inferior_arguments): Assert that
9119 'argc' is greater than 0.
9120
5133a315
LM
91212020-01-29 Luis Machado <luis.machado@linaro.org>
9122
9123 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9124 (BRK_INSN_MASK): Define to 0xd4200000.
9125 (aarch64_program_breakpoint_here_p): New function.
9126 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9127 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9128 breakpoint.c.
9129 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9130 breakpoint.h
9131 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9132 call gdbarch_program_breakpoint_here_p.
9133 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9134 default_program_breakpoint_here_p, changed return type to bool and
9135 simplified.
9136 * breakpoint.h (program_breakpoint_here): Moved prototype to
9137 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9138 return type to bool.
9139 * gdbarch.c: Regenerate.
9140 * gdbarch.h: Regenerate.
9141 * gdbarch.sh (program_breakpoint_here_p): New method.
9142 * infrun.c (handle_signal_stop): Call
9143 gdbarch_program_breakpoint_here_p.
9144
168f8c6b
TT
91452020-01-26 Tom Tromey <tom@tromey.com>
9146
9147 * ctfread.c (struct ctf_fp_info): Reindent.
9148 (_initialize_ctfread): Remove.
9149
128a391f
TT
91502020-01-26 Tom Tromey <tom@tromey.com>
9151
9152 * psymtab.c (partial_map_expand_apply)
9153 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9154 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9155 (psym_print_stats, psym_expand_symtabs_for_function)
9156 (psym_map_symbol_filenames, psym_map_matching_symbols)
9157 (psym_expand_symtabs_matching)
9158 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9159 (maintenance_check_psymtabs): Use new methods.
9160 * psympriv.h (struct partial_symtab) <readin_p,
9161 get_compunit_symtab>: New methods.
9162 <readin, compunit_symtab>: Remove members.
9163 (struct standard_psymtab): New.
9164 (struct legacy_psymtab): Derive from standard_psymtab.
9165 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9166 standard_psymtab.
9167 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9168
0494dbec
TT
91692020-01-26 Tom Tromey <tom@tromey.com>
9170
9171 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9172 read_dependencies. Add assert.
9173 * psymtab.c (partial_symtab::read_dependencies): New method.
9174 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9175 method.
9176 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9177 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9178 read_dependencies.
9179 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9180 Add assert.
9181
8566b89b
TT
91822020-01-26 Tom Tromey <tom@tromey.com>
9183
9184 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9185 Call expand_psymtab.
9186 (xcoff_read_symtab): Call expand_psymtab.
9187 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9188 legacy_expand_psymtab.
9189 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9190 method.
9191 (struct legacy_psymtab) <expand_psymtab>: Implement.
9192 <legacy_expand_psymtab>: New member.
9193 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9194 (parse_partial_symbols): Set legacy_expand_psymtab.
9195 (psymtab_to_symtab_1): Change argument order. Call
9196 expand_psymtab.
9197 (new_psymtab): Set legacy_expand_psymtab.
9198 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9199 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9200 expand_psymtab.
9201 (dwarf2_psymtab::expand_psymtab): Rename from
9202 psymtab_to_symtab_1. Call expand_psymtab.
9203 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9204 (dbx_end_psymtab): Likewise.
9205 (dbx_psymtab_to_symtab_1): Change argument order. Call
9206 expand_psymtab.
9207 (dbx_read_symtab): Call expand_psymtab.
9208 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9209 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9210 (ctf_psymtab::read_symtab): Call expand_psymtab.
9211
077cbab2
TT
92122020-01-26 Tom Tromey <tom@tromey.com>
9213
9214 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9215 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9216 messages.
9217 * mdebugread.c (mdebug_read_symtab): Remove prints.
9218 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9219 assert.
9220 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9221
891813be
TT
92222020-01-26 Tom Tromey <tom@tromey.com>
9223
9224 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9225 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9226 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9227 legacy_symtab.
9228 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9229 * psymtab.c (psymtab_to_symtab): Call method.
9230 (dump_psymtab): Update.
9231 * psympriv.h (struct partial_symtab): Add virtual destructor.
9232 <read_symtab>: New method.
9233 (struct legacy_symtab): New.
9234 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9235 (struct pst_map) <pst>: Now a legacy_psymtab.
9236 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9237 (new_psymtab): Use legacy_psymtab.
9238 * dwarf2read.h (struct dwarf2_psymtab): New.
9239 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9240 * dwarf2read.c (dwarf2_create_include_psymtab)
9241 (dwarf2_build_include_psymtabs, create_type_unit_group)
9242 (create_partial_symtab, process_psymtab_comp_unit_reader)
9243 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9244 (set_partial_user): Use dwarf2_psymtab.
9245 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9246 (psymtab_to_symtab_1, process_full_comp_unit)
9247 (process_full_type_unit, dwarf2_ranges_read)
9248 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9249 (dwarf_decode_lines): Use dwarf2_psymtab.
9250 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9251 (add_address_entry_worker, write_one_signatured_type)
9252 (recursively_count_psymbols, recursively_write_psymbols)
9253 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9254 (write_debug_names): Likewise.
9255 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9256 <pst>: Now a legacy_psymtab.
9257 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9258 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9259 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9260 * ctfread.c (struct ctf_psymtab): New.
9261 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9262 ctf_psymtab.
9263 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9264 (create_partial_symtab): Return a ctf_psymtab.
9265 (scan_partial_symbols): Update.
9266
c3693a1d
TT
92672020-01-26 Tom Tromey <tom@tromey.com>
9268
9269 * xcoffread.c (xcoff_start_psymtab): Use new.
9270 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9271 renamed from start_psymtab_common.
9272 * psympriv.h (struct partial_symtab): Add new constructor.
9273 (start_psymtab_common): Don't declare.
9274 * mdebugread.c (parse_partial_symbols): Use new.
9275 * dwarf2read.c (create_partial_symtab): Use new.
9276 * dbxread.c (start_psymtab): Use new.
9277 * ctfread.c (create_partial_symtab): Use new.
9278
32caafd0
TT
92792020-01-26 Tom Tromey <tom@tromey.com>
9280
9281 * xcoffread.c (xcoff_end_psymtab): Use new.
9282 * psymtab.c (start_psymtab_common): Use new.
9283 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9284 Update.
9285 * psympriv.h (struct partial_symtab): Add parameters to
9286 constructor. Don't inline.
9287 (allocate_psymtab): Don't declare.
9288 * mdebugread.c (new_psymtab): Use new.
9289 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9290 * dbxread.c (dbx_end_psymtab): Use new.
9291
abaa2f23
TT
92922020-01-26 Tom Tromey <tom@tromey.com>
9293
9294 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9295 allocate_psymtab. Update documentation.
9296 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9297 allocate_psymtab. Do not use new.
9298 (allocate_psymtab): Use new. Update.
9299
6d94535f
TT
93002020-01-26 Tom Tromey <tom@tromey.com>
9301
9302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9303 * psymtab.c (psym_print_stats): Update.
9304 * psympriv.h (struct partial_symtab) <readin,
9305 psymtabs_addrmap_supported, anonymous>: Now bool.
9306 * mdebugread.c (psymtab_to_symtab_1): Update.
9307 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9308 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9309 (process_full_comp_unit, process_full_type_unit): Update.
9310 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9311 * ctfread.c (psymtab_to_symtab): Update.
9312
6f17252b
TT
93132020-01-26 Tom Tromey <tom@tromey.com>
9314
9315 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9316 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9317 * psymtab.c (psymtab_storage): Delete psymtabs.
9318 (psymtab_storage::allocate_psymtab): Use new.
9319 (psymtab_storage::discard_psymtab): Use delete.
9320 * psympriv.h (struct partial_symtab): Add constructor and
9321 initializers.
9322
f6f1cebc
TT
93232020-01-26 Tom Tromey <tom@tromey.com>
9324
9325 * machoread.c: Do not include psympriv.h.
9326
e47e48f6
PW
93272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9328
9329 * NEWS: Mention the new option and the set/show commands.
9330
a2fedca9
PW
93312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9332
9333 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9334 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9335 (validate_exec_file): New variables, enums, functions.
9336 (exec_file_locate_attach, print_section_info): Style the filenames.
9337 (_initialize_exec): Install show_exec_file_mismatch_command and
9338 set_exec_file_mismatch_command.
9339 * gdbcore.h (validate_exec_file): Declare.
9340 * infcmd.c (attach_command): Call validate_exec_file.
9341 * remote.c ( remote_target::remote_add_inferior): Likewise.
9342
7ffa82e1
AB
93432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * frame.c (find_frame_sal): Move call to get_next_frame into more
9346 inner scope.
9347 * inline-frame.c (inilne_state) <inline_state>: Update argument
9348 types.
9349 (inilne_state) <skipped_symbol>: Rename to...
9350 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9351 (skip_inline_frames): Build vector of skipped symbols and use this
9352 to reate the inline_state.
9353 (inline_skipped_symbol): Add a comment and some assertions, fetch
9354 skipped symbol from the list.
9355
3d92a3e3
AB
93562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * buildsym.c (lte_is_less_than): Delete.
9359 (buildsym_compunit::end_symtab_with_blockvector): Create local
9360 lambda function to sort line table entries, and use
9361 std::stable_sort instead of std::sort.
9362 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9363 markers when looking for a previous line.
9364
94a72be7
AB
93652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9366
9367 * dwarf2read.c (lnp_state_machine::record_line): Include
9368 end_sequence parameter in debug print out. Record the line if we
9369 are at an end_sequence marker even if it's not the start of a
9370 statement.
9371 * symmisc.c (maintenance_print_one_line_table): Print end of
9372 sequence markers with 'END' not '0'.
9373
53af73bf
PA
93742020-01-24 Pedro Alves <palves@redhat.com>
9375
9376 PR gdb/25410
9377 * thread.c (scoped_restore_current_thread::restore): Use
9378 switch_to_inferior_no_thread.
9379 * exec.c: Include "progspace-and-thread.h".
9380 (add_target_sections, remove_target_sections):
9381 scoped_restore_current_pspace_and_thread instead of
9382 scoped_restore_current_thread.
9383 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9384 and aspace to the inferior before calling clone_program_space.
9385 Remove stale comment.
9386
3050c6f4
CB
93872020-01-24 Christian Biesinger <cbiesinger@google.com>
9388
9389 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9390 (arm_netbsd_nat_target::fetch_registers): ...this.
9391 (arm_nbsd_nat_target::store_registers): Rename to...
9392 (arm_netbsd_nat_target::store_registers): ...this.
9393
73685c7e
CB
93942020-01-24 Christian Biesinger <cbiesinger@google.com>
9395
9396 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9397 register_t.
9398
89203d40
CB
93992020-01-24 Christian Biesinger <cbiesinger@google.com>
9400
9401 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9402 Update comment.
9403 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9404 Likewise.
9405 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9406 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9407 the correct replacement (iterate_over_regset_sections).
9408 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9409 Update comment.
9410
1ba1ac88
AB
94112020-01-24 Graham Markall <graham.markall@embecosm.com>
9412
9413 PR gdb/23718
9414 * gdb/python/python.c (execute_gdb_command): Call
9415 async_enable_stdin in catch block.
9416
f3364a6d
AB
94172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9418
9419 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9420 SWITCH_THRU_ALL_UIS.
9421
733d0a67
AB
94222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9423
9424 PR tui/9765
9425 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9426 comment, add extra parameter, and update to store previous symbol
9427 when appropriate.
9428 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9429 add extra parameter.
9430 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9431 remove unneeded parameter, add try/catch around gdb_print_insn,
9432 rewrite to add items to asm_lines vector.
9433 (tui_find_backward_disassembly_start_address): New function.
9434 (tui_find_disassembly_address): Updated throughout.
9435 (tui_disasm_window::set_contents): Update for changes to
9436 tui_disassemble.
9437 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9438 number of lines to scroll.
9439
b3b3bada
SM
94402020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9441
9442 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9443 (SECT_OFF_DATA): Likewise.
9444 (SECT_OFF_RODATA): Likewise.
9445 (SECT_OFF_TEXT): Likewise.
9446 (SECT_OFF_BSS): Likewise.
9447 (struct objfile) <text_section_offset, data_section_offset>: New
9448 methods.
9449 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9450 objfile::text_section_offset.
9451 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9452 * coffread.c (coff_symtab_read): Likewise.
9453 (enter_linenos): Likewise.
9454 (process_coff_symbol): Likewise.
9455 * ctfread.c (get_objfile_text_range): Likewise.
9456 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9457 Use objfile::data_section_offset.
9458 * dwarf2-frame.c (execute_cfa_program): Use
9459 objfile::text_section_offset.
9460 (dwarf2_frame_find_fde): Likewise.
9461 * dwarf2read.c (create_addrmap_from_index): Likewise.
9462 (create_addrmap_from_aranges): Likewise.
9463 (dw2_find_pc_sect_compunit_symtab): Likewise.
9464 (process_psymtab_comp_unit_reader): Likewise.
9465 (add_partial_symbol): Likewise.
9466 (add_partial_subprogram): Likewise.
9467 (process_full_comp_unit): Likewise.
9468 (read_file_scope): Likewise.
9469 (read_func_scope): Likewise.
9470 (read_lexical_block_scope): Likewise.
9471 (read_call_site_scope): Likewise.
9472 (dwarf2_rnglists_process): Likewise.
9473 (dwarf2_ranges_process): Likewise.
9474 (dwarf2_ranges_read): Likewise.
9475 (dwarf_decode_lines_1): Likewise.
9476 (new_symbol): Likewise.
9477 (dwarf2_fetch_die_loc_sect_off): Likewise.
9478 (dwarf2_per_cu_text_offset): Likewise.
9479 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9480 * hppa-tdep.c (read_unwind_info): Likewise.
9481 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9482 * psympriv.h (struct partial_symtab): Likewise.
9483 * psymtab.c (find_pc_sect_psymtab): Likewise.
9484 * solib-svr4.c (enable_break): Likewise.
9485 * stap-probe.c (relocate_address): Use
9486 objfile::data_section_offset.
9487 * xcoffread.c (enter_line_range): Use
9488 objfile::text_section_offset.
9489 (read_xcoff_symtab): Likewise.
9490
ab53f382
SM
94912020-01-23 Simon Marchi <simon.marchi@efficios.com>
9492
9493 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9494 declaration to narrower scopes.
9495
e7eee665
SM
94962020-01-23 Simon Marchi <simon.marchi@efficios.com>
9497
9498 * darwin-nat.h (struct darwin_exception_msg, enum
9499 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9500 Move up.
9501 (class darwin_nat_target) <wait_1, check_new_threads,
9502 decode_exception_message, decode_message, stop_inferior,
9503 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9504 * darwin-nat.c (darwin_check_new_threads): Rename to...
9505 (darwin_nat_target::check_new_threads): ... this.
9506 (darwin_suspend_inferior_it): Remove.
9507 (darwin_decode_exception_message): Rename to...
9508 (darwin_nat_target::decode_exception_message): ... this.
9509 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9510 (darwin_decode_message): Rename to...
9511 (darwin_nat_target::decode_message): ... this.
9512 (cancel_breakpoint): Rename to...
9513 (darwin_nat_target::cancel_breakpoint): ... this.
9514 (darwin_wait): Rename to...
9515 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9516 instead of iterate_over_inferiors.
9517 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9518 (darwin_stop_inferior): Rename to...
9519 (darwin_nat_target::stop_inferior): ... this.
9520 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9521 (darwin_init_thread_list): Rename to...
9522 (darwin_nat_target::init_thread_list): ... this.
9523 (darwin_ptrace_him): Rename to...
9524 (darwin_nat_target::ptrace_him): ... this.
9525 (darwin_nat_target::create_inferior): Pass lambda function to
9526 fork_inferior.
9527 (darwin_nat_target::detach): Call stop_inferior instead of
9528 darwin_stop_inferior.
9529 * fork-inferior.h (fork_inferior): Change init_trace_fun
9530 parameter to gdb::function_view.
9531 * fork-inferior.c (fork_inferior): Likewise.
9532
c162ed3e
HD
95332020-01-23 Hannes Domani <ssbssa@yahoo.de>
9534
9535 * i386-cygwin-tdep.c (core_process_module_section): Update.
9536 * windows-nat.c (struct lm_info_windows): Add text_offset.
9537 (windows_xfer_shared_libraries): Update.
9538 * windows-tdep.c (windows_xfer_shared_library):
9539 Add text_offset_cached argument.
9540 * windows-tdep.h (windows_xfer_shared_library): Update.
9541
a1237872
SM
95422020-01-21 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9545
b3ee6dd9
SM
95462020-01-21 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9549 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9550 replace with range-based for.
9551 (gdbsim_interrupt_inferior): Remove.
9552 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9553 with a range-based for. Inline code from
9554 gdbsim_interrupt_inferior.
9555
f9fac3c8
SM
95562020-01-21 Simon Marchi <simon.marchi@efficios.com>
9557
9558 * infrun.c (proceed): Fix indentation.
9559
f6474de9
TT
95602020-01-21 Tom Tromey <tromey@adacore.com>
9561
9562 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9563 * python/python.c (python_extension_ops): Update.
9564 (gdbpy_colorize): New function.
9565 * python/lib/gdb/__init__.py (colorize): New function.
9566 * extension.h (ext_lang_colorize): Declare.
9567 * extension.c (ext_lang_colorize): New function.
9568 * extension-priv.h (struct extension_language_ops) <colorize>: New
9569 member.
9570 * cli/cli-style.c (_initialize_cli_style): Update help text.
9571
f0c702d4
LM
95722020-01-21 Luis Machado <luis.machado@linaro.org>
9573
9574 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9575 <cond>: Change type to bool.
9576 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9577 (aarch64_displaced_step_cb): Likewise.
9578 (aarch64_displaced_step_tb): Likewise.
9579
1ab139e5
LM
95802020-01-21 Luis Machado <luis.machado@linaro.org>
9581
9582 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9583 output.
9584
0c271889
LM
95852020-01-21 Luis Machado <luis.machado@linaro.org>
9586
9587 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9588 <pc_adjust>: Adjust the documentation.
9589 (aarch64_displaced_step_fixup): Check if PC really moved before
9590 adjusting it.
9591
4d89c1c7
TT
95922020-01-19 Tom Tromey <tom@tromey.com>
9593
9594 * disasm.c (~gdb_disassembler): New destructor.
9595 (gdb_buffered_insn_length): Call disassemble_free_target.
9596 * disasm.h (class gdb_disassembler): Declare destructor. Use
9597 DISABLE_COPY_AND_ASSIGN.
9598
c0ab21c2
TT
95992020-01-19 Tom Tromey <tom@tromey.com>
9600
9601 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9602 (die_reader_func_ftype): Remove.
9603 (cutu_reader): New class.
9604 (dw2_get_file_names_reader): Remove "data" parameter.
9605 (dw2_get_file_names): Use cutu_reader.
9606 (create_debug_type_hash_table): Update.
9607 (read_cutu_die_from_dwo): Update comment.
9608 (lookup_dwo_unit): Add dwo_name parameter.
9609 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9610 die_reader_func_ftype and data parameters.
9611 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9612 Remove die_reader_func_ftype and data parameters.
9613 (~cutu_reader): New; from init_cutu_and_read_dies.
9614 (cutu_reader::cutu_reader): Rename from
9615 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9616 and data parameters.
9617 (init_cutu_and_read_dies_simple): Remove.
9618 (struct process_psymtab_comp_unit_data): Remove.
9619 (process_psymtab_comp_unit_reader): Remove data parameter; add
9620 want_partial_unit and pretend_language parameters.
9621 (process_psymtab_comp_unit): Use cutu_reader.
9622 (build_type_psymtabs_reader): Remove data parameter.
9623 (build_type_psymtabs_1): Use cutu_reader.
9624 (process_skeletonless_type_unit): Likewise.
9625 (load_partial_comp_unit_reader): Remove.
9626 (load_partial_comp_unit): Use cutu_reader.
9627 (load_full_comp_unit_reader): Remove.
9628 (load_full_comp_unit): Use cutu_reader.
9629 (struct create_dwo_cu_data): Remove.
9630 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9631 dwo_unit parameters.
9632 (create_cus_hash_table): Use cutu_reader.
9633 (struct dwarf2_read_addr_index_data): Remove.
9634 (dwarf2_read_addr_index_reader): Remove.
9635 (dwarf2_read_addr_index): Use cutu_reader.
9636 (read_signatured_type_reader): Remove.
9637 (read_signatured_type): Use cutu_reader.
9638
45bbae5c
TT
96392020-01-19 Tom Tromey <tom@tromey.com>
9640
9641 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9642 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9643 (tui_wrefresh): Declare.
9644 * tui/tui-wingeneral.c (suppress_output): New global.
9645 (tui_suppress_output, ~tui_suppress_output): New constructor and
9646 destructor.
9647 (tui_wrefresh): New function.
9648 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9649 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9650 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9651 method.
9652 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9653 tui_wrefresh.
9654 (tui_data_window::no_refresh): New method.
9655 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9656 (tui_reg_command): Use tui_suppress_output
9657 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9658 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9659 method.
9660 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9661
4f13c1c0
TT
96622020-01-19 Tom Tromey <tom@tromey.com>
9663
9664 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9665 Handle case where symtab is null.
9666
fa47e446
SM
96672020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9668
9669 * linux-fork.c (one_fork_p): Simplify.
9670
26f42329
SM
96712020-01-17 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * top.c (struct qt_args): Remove.
9674 (kill_or_detach): Change return type to void, replace `void *`
9675 parameter with a proper one.
9676 (print_inferior_quit_action): Likewise.
9677 (quit_confirm): Use range-based for loop to iterate over inferiors.
9678 (quit_force): Likewise.
9679
a9ac81b1
SM
96802020-01-17 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9683 `void *` parameter with proper parameters.
9684 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9685 (print_one_inferior): Change return type to void, replace `void *`
9686 parameter with proper parameters.
9687 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9688 inferiors.
9689 (get_other_inferior): Remove.
9690 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9691 inferiors.
9692
788eca49
SM
96932020-01-17 Simon Marchi <simon.marchi@efficios.com>
9694
9695 * mi/mi-interp.c (report_initial_inferior): Remove.
9696 (mi_interp::init): Use range-based for to iterate over inferiors.
9697
d9bc85b6
SM
96982020-01-17 Simon Marchi <simon.marchi@efficios.com>
9699
9700 * python/py-inferior.c (build_inferior_list): Remove.
9701 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9702
40c94099
CB
97032020-01-16 Christian Biesinger <cbiesinger@google.com>
9704
9705 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9706 (btrace_stitch_trace): Likewise.
9707 * charset.c (intermediate_encoding): Likewise (vaild).
9708 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9709 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9710 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9711
e0cdfe3c
HD
97122020-01-16 Hannes Domani <ssbssa@yahoo.de>
9713
9714 * windows-tdep.c (windows_get_tlb_type):
9715 Add rtl_user_process_parameters type.
9716
790f1718 97172020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9718 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9719
9720 PR build/24805
9721 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9722 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9723 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9724 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9725 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9726 (ps_plog): Redeclare exported functions with default visibility.
9727
3112ed97
NA
97282020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9729
9730 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9731 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9732
8dc3273e
SM
97332020-01-15 Simon Marchi <simon.marchi@efficios.com>
9734
9735 * infcmd.c (post_create_inferior): Use get_thread_regcache
9736 instead of get_current_regcache.
9737
ff47f4f0
TT
97382020-01-14 Tom Tromey <tom@tromey.com>
9739
9740 PR symtab/12535:
9741 * python/python.c (gdbpy_decode_line): Treat empty string the same
9742 as no argument.
9743
975f45b7
TT
97442020-01-14 Tom Tromey <tom@tromey.com>
9745
9746 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9747
25e57356
TT
97482020-01-14 Tom Tromey <tom@tromey.com>
9749
9750 * nat/linux-btrace.c: Don't include <config.h>.
9751 * nat/linux-ptrace.c: Don't include <config.h>.
9752 * nat/x86-linux-dregs.c: Don't include <config.h>.
9753
05ea2a05
TT
97542020-01-14 Tom Tromey <tom@tromey.com>
9755
9756 * configure: Rebuild.
9757 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9758
01027315
TT
97592020-01-14 Tom Tromey <tom@tromey.com>
9760
9761 * nat/x86-linux-dregs.c: Include configh.h.
9762 * nat/linux-ptrace.c: Include configh.h.
9763 * nat/linux-btrace.c: Include configh.h.
9764 * defs.h: Include config.h, bfd.h.
9765 * configure.ac: Don't source common.host.
9766 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9767 * configure: Rebuild.
9768 * acinclude.m4: Update path.
9769 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9770 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9771 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9772 (CLIBS): Add LIBSUPPORT.
9773 (CDEPS): Likewise.
9774 (COMMON_SFILES): Remove gdbsupport files.
9775 (HFILES_NO_SRCDIR): Likewise.
9776 (stamp-version): Update path to create-version.sh.
9777 (ALLDEPFILES): Remove gdbsupport files.
9778
b2ceabe8
TT
97792020-01-14 Tom Tromey <tom@tromey.com>
9780
9781 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9782 USE_WIN32API when needed.
9783 * configure.ac (USE_WIN32API): Don't define.
9784 (WIN32LIBS): Use WIN32APILIBS.
9785 * configure: Rebuild.
9786
25c51f71
TT
97872020-01-14 Tom Tromey <tom@tromey.com>
9788
9789 * configure: Rebuild.
9790 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9791
717c684d
BE
97922020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9793
9794 * skip.c (skip_function_command): Make skip w/o arguments use the
9795 name of the inlined function if pc is inside any inlined function.
9796
7da6a5b9
LM
97972020-01-14 Luis Machado <luis.machado@linaro.org>
9798
9799 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9800 * infrun.c (resume_1): Likewise.
9801 (handle_inferior_event): Remove stale comment.
9802 * linux-nat.c (linux_nat_target::resume): Update comments.
9803 (save_stop_reason): Likewise.
9804 (linux_nat_filter_event): Likewise.
9805 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9806
44e4c775
AB
98072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 * elfread.c (record_minimal_symbol): Set section index to 0 for
9810 non-allocatable sections.
9811
18a8505e
AT
9812
98132020-01-13 Ali Tamur <tamur@google.com>
9814
9815 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9816 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9817 to gdb::optional. Update comments.
9818 (dwo_file): Update comments.
9819 (read_attribute): Update API to take an additional out parameter,
9820 need_reprocess. This is used to mark attributes that need other
9821 attributes (e.g. str_offsets_base) for correct computation which may not
9822 have been read yet.
9823 (read_attribute_reprocess): New function declaration.
9824 (read_addr_index): Likewise.
9825 (read_dwo_str_index): Likewise.
9826 (read_stub_str_index): Likewise.
9827 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9828 (lookup_addr_base): New function definition.
9829 (lookup_ranges_base): Likewise.
9830 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9831 lookup_ranges_base.
9832 (init_cutu_and_read_dies): Update comments.
9833 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9834 unit. This is used to inherit parent's str_offsets_base and addr_base.
9835 Update comments.
9836 (init_cutu_and_read_dies_simple): Reflect API changes.
9837 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9838 (create_cus_hash_table): Change API to take parent compile unit.
9839 Reflect API changes.
9840 (open_and_init_dwo_file): Reflect API changes.
9841 (dwarf2_get_pc_bounds): Update comments.
9842 (dwarf2_record_block_ranges): Likewise.
9843 (read_full_die_1): Change implementation to reprocess attributes that
9844 need str_offsets_base and addr_base.
9845 (partial_die_info::read): Likewise.
9846 (read_attribute_reprocess): New function definition.
9847 (read_attribute_value): Change API to take an additional out parameter,
9848 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9849 when a non-dwo compile unit has index based attributes.
9850 (read_attribute): Reflect API changes.
9851 (read_addr_index_1): Reflect API changes. Update comments.
9852 (dwarf2_read_addr_index_data): Reflect API changes.
9853 (dwarf2_read_addr_index): Likewise.
9854 (read_str_index): Change API and implementation. This becomes a helper
9855 to be used by the new string index related methods. Update error
9856 message and comments.
9857 (read_dwo_str_index): New function definition.
9858 (read_stub_str_index): Likewise.
9859 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9860 * symfile.h (dwarf2_debug_sections): Likewise.
9861 * xcoffread.c (dwarf2_debug_sections): Likewise.
9862
0cac9354
SM
98632020-01-13 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9866 core_reg_sect type to gdb_byte *.
9867 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9868 * cris-tdep.c (fetch_core_registers): Likewise.
9869 * corelow.c (core_target::get_core_register_section): Change
9870 type of `contents` to gdb::byte_vector.
9871
9a6d629c
AB
98722020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9873
9874 * tui/tui-wingeneral.c (box_win): Position the title in the center
9875 of the border.
9876
d8b2f9e3
SM
98772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9878
9879 * corelow.c (core_target::get_core_register_section): Use
9880 std::vector instead of alloca.
9881
bb564c58
SM
98822020-01-13 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * warning.m4: Add -Wmissing-declarations to build_warnings.
9885 * configure: Re-generate.
9886
6b366111
SM
98872020-01-13 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * python/python.c (init__gdb_module): Add declaration.
9890
6c265988
SM
98912020-01-13 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9894 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9895 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9896 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9897 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9898 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9899 * ada-exp.y (_initialize_ada_exp): Add declaration.
9900 * ada-lang.c (_initialize_ada_language): Add declaration.
9901 * ada-tasks.c (_initialize_tasks): Add declaration.
9902 * agent.c (_initialize_agent): Add declaration.
9903 * aix-thread.c (_initialize_aix_thread): Add declaration.
9904 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9905 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9906 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9907 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9908 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9909 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9910 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9911 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9912 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9913 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9914 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9915 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9916 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9917 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9918 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9919 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9920 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9921 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9922 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9923 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9924 * annotate.c (_initialize_annotate): Add declaration.
9925 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9926 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9927 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9928 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9929 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9930 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9931 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9932 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9933 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9934 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9935 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9936 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9937 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9938 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9939 * auto-load.c (_initialize_auto_load): Add declaration.
9940 * auxv.c (_initialize_auxv): Add declaration.
9941 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9942 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9943 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9944 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9945 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9946 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9947 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9948 * breakpoint.c (_initialize_breakpoint): Add declaration.
9949 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9950 * btrace.c (_initialize_btrace): Add declaration.
9951 * charset.c (_initialize_charset): Add declaration.
9952 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9953 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9954 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9955 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9956 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9957 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9958 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9959 * coffread.c (_initialize_coffread): Add declaration.
9960 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9961 * compile/compile.c (_initialize_compile): Add declaration.
9962 * complaints.c (_initialize_complaints): Add declaration.
9963 * completer.c (_initialize_completer): Add declaration.
9964 * copying.c (_initialize_copying): Add declaration.
9965 * corefile.c (_initialize_core): Add declaration.
9966 * corelow.c (_initialize_corelow): Add declaration.
9967 * cp-abi.c (_initialize_cp_abi): Add declaration.
9968 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9969 * cp-support.c (_initialize_cp_support): Add declaration.
9970 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9971 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9972 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9973 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9974 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9975 * ctfread.c (_initialize_ctfread): Add declaration.
9976 * d-lang.c (_initialize_d_language): Add declaration.
9977 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9978 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9979 * dbxread.c (_initialize_dbxread): Add declaration.
9980 * dcache.c (_initialize_dcache): Add declaration.
9981 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9982 * disasm.c (_initialize_disasm): Add declaration.
9983 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9984 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9985 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9986 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9987 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9988 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9989 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9990 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9991 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9992 * elfread.c (_initialize_elfread): Add declaration.
9993 * exec.c (_initialize_exec): Add declaration.
9994 * extension.c (_initialize_extension): Add declaration.
9995 * f-lang.c (_initialize_f_language): Add declaration.
9996 * f-valprint.c (_initialize_f_valprint): Add declaration.
9997 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9998 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9999 * filesystem.c (_initialize_filesystem): Add declaration.
10000 * findcmd.c (_initialize_mem_search): Add declaration.
10001 * findvar.c (_initialize_findvar): Add declaration.
10002 * fork-child.c (_initialize_fork_child): Add declaration.
10003 * frame-base.c (_initialize_frame_base): Add declaration.
10004 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10005 * frame.c (_initialize_frame): Add declaration.
10006 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10007 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10008 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10009 * gcore.c (_initialize_gcore): Add declaration.
10010 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10011 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10012 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10013 * gdbarch.c (_initialize_gdbarch): Add declaration.
10014 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10015 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10016 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10017 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10018 * go-lang.c (_initialize_go_language): Add declaration.
10019 * go32-nat.c (_initialize_go32_nat): Add declaration.
10020 * guile/guile.c (_initialize_guile): Add declaration.
10021 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10022 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10023 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10024 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10025 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10026 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10027 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10028 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10029 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10030 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10031 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10032 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10033 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10034 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10035 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10036 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10037 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10038 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10039 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10040 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10041 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10042 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10043 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10044 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10045 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10046 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10047 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10048 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10049 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10050 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10051 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10052 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10053 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10054 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10055 * infcall.c (_initialize_infcall): Add declaration.
10056 * infcmd.c (_initialize_infcmd): Add declaration.
10057 * inflow.c (_initialize_inflow): Add declaration.
10058 * infrun.c (_initialize_infrun): Add declaration.
10059 * interps.c (_initialize_interpreter): Add declaration.
10060 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10061 * jit.c (_initialize_jit): Add declaration.
10062 * language.c (_initialize_language): Add declaration.
10063 * linux-fork.c (_initialize_linux_fork): Add declaration.
10064 * linux-nat.c (_initialize_linux_nat): Add declaration.
10065 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10066 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10067 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10068 * m2-lang.c (_initialize_m2_language): Add declaration.
10069 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10070 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10071 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10072 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10073 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10074 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10075 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10076 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10077 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10078 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10079 * machoread.c (_initialize_machoread): Add declaration.
10080 * macrocmd.c (_initialize_macrocmd): Add declaration.
10081 * macroscope.c (_initialize_macroscope): Add declaration.
10082 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10083 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10084 * maint.c (_initialize_maint_cmds): Add declaration.
10085 * mdebugread.c (_initialize_mdebugread): Add declaration.
10086 * memattr.c (_initialize_mem): Add declaration.
10087 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10088 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10089 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10090 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10091 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10092 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10093 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10094 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10095 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10096 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10097 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10098 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10099 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10100 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10101 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10102 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10103 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10104 * mipsread.c (_initialize_mipsread): Add declaration.
10105 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10106 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10107 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10108 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10109 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10110 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10111 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10112 * nto-procfs.c (_initialize_procfs): Add declaration.
10113 * objc-lang.c (_initialize_objc_language): Add declaration.
10114 * observable.c (_initialize_observer): Add declaration.
10115 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10116 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10117 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10118 * osabi.c (_initialize_gdb_osabi): Add declaration.
10119 * osdata.c (_initialize_osdata): Add declaration.
10120 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10121 * parse.c (_initialize_parse): Add declaration.
10122 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10123 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10124 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10125 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10126 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10127 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10128 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10129 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10130 * printcmd.c (_initialize_printcmd): Add declaration.
10131 * probe.c (_initialize_probe): Add declaration.
10132 * proc-api.c (_initialize_proc_api): Add declaration.
10133 * proc-events.c (_initialize_proc_events): Add declaration.
10134 * proc-service.c (_initialize_proc_service): Add declaration.
10135 * procfs.c (_initialize_procfs): Add declaration.
10136 * producer.c (_initialize_producer): Add declaration.
10137 * psymtab.c (_initialize_psymtab): Add declaration.
10138 * python/python.c (_initialize_python): Add declaration.
10139 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10140 * record-btrace.c (_initialize_record_btrace): Add declaration.
10141 * record-full.c (_initialize_record_full): Add declaration.
10142 * record.c (_initialize_record): Add declaration.
10143 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10144 * regcache.c (_initialize_regcache): Add declaration.
10145 * reggroups.c (_initialize_reggroup): Add declaration.
10146 * remote-notif.c (_initialize_notif): Add declaration.
10147 * remote-sim.c (_initialize_remote_sim): Add declaration.
10148 * remote.c (_initialize_remote): Add declaration.
10149 * reverse.c (_initialize_reverse): Add declaration.
10150 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10151 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10152 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10153 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10154 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10155 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10156 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10157 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10158 Add declaration.
10159 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10160 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10161 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10162 * rust-exp.y (_initialize_rust_exp): Add declaration.
10163 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10164 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10165 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10166 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10167 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10168 * score-tdep.c (_initialize_score_tdep): Add declaration.
10169 * ser-go32.c (_initialize_ser_dos): Add declaration.
10170 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10171 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10172 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10173 * ser-uds.c (_initialize_ser_socket): Add declaration.
10174 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10175 * serial.c (_initialize_serial): Add declaration.
10176 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10177 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10178 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10179 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10180 * skip.c (_initialize_step_skip): Add declaration.
10181 * sol-thread.c (_initialize_sol_thread): Add declaration.
10182 * solib-aix.c (_initialize_solib_aix): Add declaration.
10183 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10184 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10185 * solib-frv.c (_initialize_frv_solib): Add declaration.
10186 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10187 * solib-target.c (_initialize_solib_target): Add declaration.
10188 * solib.c (_initialize_solib): Add declaration.
10189 * source-cache.c (_initialize_source_cache): Add declaration.
10190 * source.c (_initialize_source): Add declaration.
10191 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10192 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10193 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10194 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10195 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10196 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10197 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10198 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10199 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10200 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10201 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10202 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10203 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10204 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10205 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10206 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10207 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10208 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10209 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10210 * stabsread.c (_initialize_stabsread): Add declaration.
10211 * stack.c (_initialize_stack): Add declaration.
10212 * stap-probe.c (_initialize_stap_probe): Add declaration.
10213 * std-regs.c (_initialize_frame_reg): Add declaration.
10214 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10215 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10216 * symfile.c (_initialize_symfile): Add declaration.
10217 * symmisc.c (_initialize_symmisc): Add declaration.
10218 * symtab.c (_initialize_symtab): Add declaration.
10219 * target.c (_initialize_target): Add declaration.
10220 * target-connection.c (_initialize_target_connection): Add
10221 declaration.
10222 * target-dcache.c (_initialize_target_dcache): Add declaration.
10223 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10224 * thread.c (_initialize_thread): Add declaration.
10225 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10226 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10227 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10228 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10229 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10230 * tracectf.c (_initialize_ctf): Add declaration.
10231 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10232 * tracefile.c (_initialize_tracefile): Add declaration.
10233 * tracepoint.c (_initialize_tracepoint): Add declaration.
10234 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10235 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10236 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10237 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10238 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10239 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10240 * tui/tui.c (_initialize_tui): Add declaration.
10241 * typeprint.c (_initialize_typeprint): Add declaration.
10242 * ui-style.c (_initialize_ui_style): Add declaration.
10243 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10244 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10245 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10246 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10247 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10248 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10249 * unittests/filtered_iterator-selftests.c
10250 (_initialize_filtered_iterator_selftests): Add declaration.
10251 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10252 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10253 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10254 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10255 * unittests/main-thread-selftests.c
10256 (_initialize_main_thread_selftests): Add declaration.
10257 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10258 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10259 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10260 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10261 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10262 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10263 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10264 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10265 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10266 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10267 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10268 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10269 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10270 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10271 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10272 declaration.
10273 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10274 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10275 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10276 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10277 * user-regs.c (_initialize_user_regs): Add declaration.
10278 * utils.c (_initialize_utils): Add declaration.
10279 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10280 * valops.c (_initialize_valops): Add declaration.
10281 * valprint.c (_initialize_valprint): Add declaration.
10282 * value.c (_initialize_values): Add declaration.
10283 * varobj.c (_initialize_varobj): Add declaration.
10284 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10285 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10286 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10287 * windows-nat.c (_initialize_windows_nat): Add declaration.
10288 (_initialize_check_for_gdb_ini): Add declaration.
10289 (_initialize_loadable): Add declaration.
10290 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10291 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10292 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10293 * xcoffread.c (_initialize_xcoffread): Add declaration.
10294 * xml-support.c (_initialize_xml_support): Add declaration.
10295 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10296 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10297 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10298 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10299
e2de1eec
SM
103002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * regformats/regdat.sh: Generate declaration for init function.
10303
e0037b4c
SM
103042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10305
10306 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10307 up.
10308 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10309 close_one_inferior>: New methods.
10310 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10311 pass down target to find_inferior_pid.
10312 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10313 Pass down target to find_inferior_ptid.
10314 (gdbsim_target::create_inferior): Pass down target to
10315 add_thread_silent.
10316 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10317 target down to find_inferior_ptid and switch_to_thread.
10318 (gdbsim_target::close): Update to call close_one_inferior.
10319 (struct resume_data): Remove.
10320 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10321 directly, rather than through a void pointer.
10322 (gdbsim_target::resume): Update to call resume_one_inferior.
10323
58920b5b
SM
103242020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10325
10326 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10327
4ec89149
PA
103282020-01-12 Pedro Alves <palves@redhat.com>
10329
10330 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10331 directly for the current inferior instead of
10332 discard_all_inferiors.
10333 (discard_all_inferiors): Delete.
10334
7c392d1d
TT
103352020-01-11 Tom Tromey <tom@tromey.com>
10336
10337 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10338 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10339 deprecated_safe_get_selected_frame.
10340
d9ebdab7
TBA
103412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10342
10343 * inferior.c (print_inferior): Switch inferior before printing it.
10344
f3c469b9
PA
103452020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10346 Pedro Alves <palves@redhat.com>
10347
10348 * progspace-and-thread.c (switch_to_program_space_and_thread):
10349 Assert there's an inferior for PSPACE. Use
10350 switch_to_inferior_no_thread to switch the inferior too.
10351 * progspace.c (program_space::~program_space): Call
10352 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10353 (program_space::free_all_objfiles): Don't call clear_symtab_users
10354 here.
10355 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10356
65c574f6
PA
103572020-01-10 Pedro Alves <palves@redhat.com>
10358
10359 * NEWS: Mention multi-target debugging, "info connections", and
10360 "add-inferior -no-connection".
10361
2f4fcf00
PA
103622020-01-10 Pedro Alves <palves@redhat.com>
10363
10364 * infrun.c: Include "target-connection.h".
10365 (check_multi_target_resumption): New.
10366 (proceed): Call it.
10367 * target-connection.c (make_target_connection_string): Make
10368 extern.
10369 * target-connection.h (make_target_connection_string): Declare.
10370
121b3efd
PA
103712020-01-10 Pedro Alves <palves@redhat.com>
10372
10373 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10374 * inferior.c (uiout_field_connection): New function.
10375 (print_inferior): Add new "connection-id" column.
10376 (add_inferior_command): Show connection number/string of added
10377 inferior.
10378 * process-stratum-target.h
10379 (process_stratum_target::connection_string): New virtual method.
10380 (process_stratum_target::connection_number): New field.
10381 * remote.c (remote_target::connection_string): New override.
10382 * target-connection.c: New file.
10383 * target-connection.h: New file.
10384 * target.c (decref_target): Remove process_stratum targets from
10385 the connection list.
10386 (target_stack::push): Add process_stratum targets to the
10387 connection list.
10388
4f837581
PA
103892020-01-10 Pedro Alves <palves@redhat.com>
10390
10391 Revert:
10392 2016-04-12 Pedro Alves <palves@redhat.com>
10393 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10394 Remove references to name.
10395 * serial.h (struct serial) <name>: Delete.
10396
f4ec508e
PA
103972020-01-10 Pedro Alves <palves@redhat.com>
10398
10399 * gdbarch-selftests.c (register_to_value_test): Remove "target
10400 already pushed" check.
10401
5b6d1e4f
PA
104022020-01-10 Pedro Alves <palves@redhat.com>
10403 John Baldwin <jhb@FreeBSD.org>
10404
10405 * aarch64-linux-nat.c
10406 (aarch64_linux_nat_target::thread_architecture): Adjust.
10407 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10408 (task_command_1): Likewise.
10409 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10410 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10411 (aix_thread_target::store_registers)
10412 (aix_thread_target::thread_alive): Adjust.
10413 * amd64-fbsd-tdep.c: Include "inferior.h".
10414 (amd64fbsd_get_thread_local_address): Pass down target.
10415 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10416 thread's gdbarch instead of target_gdbarch.
10417 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10418 get_last_target_status.
10419 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10420 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10421 inferiors.
10422 (update_inserted_breakpoint_locations): Skip if inferiors with no
10423 execution.
10424 (update_global_location_list): When handling moribund locations,
10425 find representative inferior for location's pspace, and use thread
10426 count of its process_stratum target.
10427 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10428 * bsd-uthread.c (bsd_uthread_target::wait): Use
10429 as_process_stratum_target and adjust thread_change_ptid and
10430 add_thread calls.
10431 (bsd_uthread_target::update_thread_list): Use
10432 as_process_stratum_target and adjust find_thread_ptid,
10433 thread_change_ptid and add_thread calls.
10434 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10435 find_thread_ptid call.
10436 * corelow.c (add_to_thread_list): Adjust add_thread call.
10437 (core_target_open): Adjust add_thread_silent and thread_count
10438 calls.
10439 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10440 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10441 * event-top.c (async_disconnect): Pop targets from all inferiors.
10442 * exec.c (add_target_sections): Push exec target on all inferiors
10443 sharing the program space.
10444 (remove_target_sections): Remove the exec target from all
10445 inferiors sharing the program space.
10446 (exec_on_vfork): New.
10447 * exec.h (exec_on_vfork): Declare.
10448 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10449 Pass it down.
10450 (fbsd_nat_target::update_thread_list): Adjust.
10451 (fbsd_nat_target::resume): Adjust.
10452 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10453 down.
10454 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10455 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10456 get_thread_arch_regcache call.
10457 * fork-child.c (gdb_startup_inferior): Pass target down to
10458 startup_inferior and set_executing.
10459 * gdbthread.h (struct process_stratum_target): Forward declare.
10460 (add_thread, add_thread_silent, add_thread_with_info)
10461 (in_thread_list): Add process_stratum_target parameter.
10462 (find_thread_ptid(inferior*, ptid_t)): New overload.
10463 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10464 parameter.
10465 (all_threads()): Delete overload.
10466 (all_threads, all_non_exited_threads): Add process_stratum_target
10467 parameter.
10468 (all_threads_safe): Use brace initialization.
10469 (thread_count): Add process_stratum_target parameter.
10470 (set_resumed, set_running, set_stop_requested, set_executing)
10471 (threads_are_executing, finish_thread_state): Add
10472 process_stratum_target parameter.
10473 (switch_to_thread): Use is_current_thread.
10474 * i386-fbsd-tdep.c: Include "inferior.h".
10475 (i386fbsd_get_thread_local_address): Pass down target.
10476 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10477 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10478 have_inferiors check.
10479 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10480 (inf_ptrace_target::attach): Adjust.
10481 * infcall.c (run_inferior_call): Adjust.
10482 * infcmd.c (run_command_1): Pass target to
10483 scoped_finish_thread_state.
10484 (proceed_thread_callback): Skip inferiors with no execution.
10485 (continue_command): Rename 'all_threads' local to avoid hiding
10486 'all_threads' function. Adjust get_last_target_status call.
10487 (prepare_one_step): Adjust set_running call.
10488 (signal_command): Use user_visible_resume_target. Compare thread
10489 pointers instead of inferior_ptid.
10490 (info_program_command): Adjust to pass down target.
10491 (attach_command): Mark target's 'thread_executing' flag.
10492 (stop_current_target_threads_ns): New, factored out from ...
10493 (interrupt_target_1): ... this. Switch inferior before making
10494 target calls.
10495 * inferior-iter.h
10496 (struct all_inferiors_iterator, struct all_inferiors_range)
10497 (struct all_inferiors_safe_range)
10498 (struct all_non_exited_inferiors_range): Filter on
10499 process_stratum_target too. Remove explicit.
10500 * inferior.c (inferior::inferior): Push dummy target on target
10501 stack.
10502 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10503 Add process_stratum_target parameter, and pass it down.
10504 (have_live_inferiors): Adjust.
10505 (switch_to_inferior_and_push_target): New.
10506 (add_inferior_command, clone_inferior_command): Handle
10507 "-no-connection" parameter. Use
10508 switch_to_inferior_and_push_target.
10509 (_initialize_inferior): Mention "-no-connection" option in
10510 the help of "add-inferior" and "clone-inferior" commands.
10511 * inferior.h: Include "process-stratum-target.h".
10512 (interrupt_target_1): Use bool.
10513 (struct inferior) <push_target, unpush_target, target_is_pushed,
10514 find_target_beneath, top_target, process_target, target_at,
10515 m_stack>: New.
10516 (discard_all_inferiors): Delete.
10517 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10518 (all_inferiors, all_non_exited_inferiors): Add
10519 process_stratum_target parameter.
10520 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10521 (target_last_proc_target): New global.
10522 (follow_fork_inferior): Push target on new inferior. Pass target
10523 to add_thread_silent. Call exec_on_vfork. Handle target's
10524 reference count.
10525 (follow_fork): Adjust get_last_target_status call. Also consider
10526 target.
10527 (follow_exec): Push target on new inferior.
10528 (struct execution_control_state) <target>: New field.
10529 (user_visible_resume_target): New.
10530 (do_target_resume): Call target_async.
10531 (resume_1): Set target's threads_executing flag. Consider resume
10532 target.
10533 (commit_resume_all_targets): New.
10534 (proceed): Also consider resume target. Skip threads of inferiors
10535 with no execution. Commit resumtion in all targets.
10536 (start_remote): Pass current inferior to wait_for_inferior.
10537 (infrun_thread_stop_requested): Consider target as well. Pass
10538 thread_info pointer to clear_inline_frame_state instead of ptid.
10539 (infrun_thread_thread_exit): Consider target as well.
10540 (random_pending_event_thread): New inferior parameter. Use it.
10541 (do_target_wait): Rename to ...
10542 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10543 down.
10544 (threads_are_resumed_pending_p, do_target_wait): New.
10545 (prepare_for_detach): Adjust calls.
10546 (wait_for_inferior): New inferior parameter. Handle it. Use
10547 do_target_wait_1 instead of do_target_wait.
10548 (fetch_inferior_event): Adjust. Switch to representative
10549 inferior. Pass target down.
10550 (set_last_target_status): Add process_stratum_target parameter.
10551 Save target in global.
10552 (get_last_target_status): Add process_stratum_target parameter and
10553 handle it.
10554 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10555 (context_switch): Check inferior_ptid == null_ptid before calling
10556 inferior_thread().
10557 (get_inferior_stop_soon): Pass down target.
10558 (wait_one): Rename to ...
10559 (poll_one_curr_target): ... this.
10560 (struct wait_one_event): New.
10561 (wait_one): New.
10562 (stop_all_threads): Adjust.
10563 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10564 event's target.
10565 (switch_back_to_stepped_thread): Also consider target.
10566 (print_stop_event): Update.
10567 (normal_stop): Update. Also consider the resume target.
10568 * infrun.h (wait_for_inferior): Remove declaration.
10569 (user_visible_resume_target): New declaration.
10570 (get_last_target_status, set_last_target_status): New
10571 process_stratum_target parameter.
10572 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10573 process_stratum_target parameter, and use it.
10574 (clear_inline_frame_state (thread_info*)): New.
10575 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10576 process_stratum_target parameter.
10577 (clear_inline_frame_state (thread_info*)): Declare.
10578 * linux-fork.c (delete_checkpoint_command): Pass target down to
10579 find_thread_ptid.
10580 (checkpoint_command): Adjust.
10581 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10582 instead of just tweaking inferior_ptid.
10583 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10584 (exit_lwp): Pass target down to find_thread_ptid.
10585 (attach_proc_task_lwp_callback): Pass target down to
10586 add_thread/set_running/set_executing.
10587 (linux_nat_target::attach): Pass target down to
10588 thread_change_ptid.
10589 (get_detach_signal): Pass target down to find_thread_ptid.
10590 Consider last target status's target.
10591 (linux_resume_one_lwp_throw, resume_lwp)
10592 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10593 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10594 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10595 (linux_nat_target::async_wait_fd): New.
10596 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10597 target down.
10598 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10599 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10600 * linux-thread-db.c (struct thread_db_info::process_target): New
10601 field.
10602 (add_thread_db_info): Save target.
10603 (get_thread_db_info): New process_stratum_target parameter. Also
10604 match target.
10605 (delete_thread_db_info): New process_stratum_target parameter.
10606 Also match target.
10607 (thread_from_lwp): Adjust to pass down target.
10608 (thread_db_notice_clone): Pass down target.
10609 (check_thread_db_callback): Pass down target.
10610 (try_thread_db_load_1): Always push the thread_db target.
10611 (try_thread_db_load, record_thread): Pass target down.
10612 (thread_db_target::detach): Pass target down. Always unpush the
10613 thread_db target.
10614 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10615 target down. Always unpush the thread_db target.
10616 (find_new_threads_callback, thread_db_find_new_threads_2)
10617 (thread_db_target::update_thread_list): Pass target down.
10618 (thread_db_target::pid_to_str): Pass current inferior down.
10619 (thread_db_target::get_thread_local_address): Pass target down.
10620 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10621 target down.
10622 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10623 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10624 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10625 (procfs_init_inferior): Rename to ...
10626 (procfs_target::procfs_init_inferior): ... this and adjust.
10627 (procfs_target::create_inferior, procfs_notice_thread)
10628 (procfs_do_thread_registers): Adjust.
10629 * ppc-fbsd-tdep.c: Include "inferior.h".
10630 (ppcfbsd_get_thread_local_address): Pass down target.
10631 * proc-service.c (ps_xfer_memory): Switch current inferior and
10632 program space as well.
10633 (get_ps_regcache): Pass target down.
10634 * process-stratum-target.c
10635 (process_stratum_target::thread_address_space)
10636 (process_stratum_target::thread_architecture): Pass target down.
10637 * process-stratum-target.h
10638 (process_stratum_target::threads_executing): New field.
10639 (as_process_stratum_target): New.
10640 * ravenscar-thread.c
10641 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10642 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10643 down.
10644 * record-btrace.c (record_btrace_target::info_record): Adjust.
10645 (record_btrace_target::record_method)
10646 (record_btrace_target::record_is_replaying)
10647 (record_btrace_target::fetch_registers)
10648 (get_thread_current_frame_id, record_btrace_target::resume)
10649 (record_btrace_target::wait, record_btrace_target::stop): Pass
10650 target down.
10651 * record-full.c (record_full_wait_1): Switch to event thread.
10652 Pass target down.
10653 * regcache.c (regcache::regcache)
10654 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10655 process_stratum_target parameter and handle it.
10656 (current_thread_target): New global.
10657 (get_thread_regcache): Add process_stratum_target parameter and
10658 handle it. Switch inferior before calling target method.
10659 (get_thread_regcache): Pass target down.
10660 (get_thread_regcache_for_ptid): Pass target down.
10661 (registers_changed_ptid): Add process_stratum_target parameter and
10662 handle it.
10663 (registers_changed_thread, registers_changed): Pass target down.
10664 (test_get_thread_arch_aspace_regcache): New.
10665 (current_regcache_test): Define a couple local test_target_ops
10666 instances and use them for testing.
10667 (readwrite_regcache): Pass process_stratum_target parameter.
10668 (cooked_read_test, cooked_write_test): Pass mock_target down.
10669 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10670 (get_thread_arch_aspace_regcache): Add process_stratum_target
10671 parameter.
10672 (regcache::target): New method.
10673 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10674 (regcache::registers_changed_ptid): Add process_stratum_target
10675 parameter.
10676 (regcache::m_target): New field.
10677 (registers_changed_ptid): Add process_stratum_target parameter.
10678 * remote.c (remote_state::supports_vCont_probed): New field.
10679 (remote_target::async_wait_fd): New method.
10680 (remote_unpush_and_throw): Add remote_target parameter.
10681 (get_current_remote_target): Adjust.
10682 (remote_target::remote_add_inferior): Push target.
10683 (remote_target::remote_add_thread)
10684 (remote_target::remote_notice_new_inferior)
10685 (get_remote_thread_info): Pass target down.
10686 (remote_target::update_thread_list): Skip threads of inferiors
10687 bound to other targets. (remote_target::close): Don't discard
10688 inferiors. (remote_target::add_current_inferior_and_thread)
10689 (remote_target::process_initial_stop_replies)
10690 (remote_target::start_remote)
10691 (remote_target::remote_serial_quit_handler): Pass down target.
10692 (remote_target::remote_unpush_target): New remote_target
10693 parameter. Unpush the target from all inferiors.
10694 (remote_target::remote_unpush_and_throw): New remote_target
10695 parameter. Pass it down.
10696 (remote_target::open_1): Check whether the current inferior has
10697 execution instead of checking whether any inferior is live. Pass
10698 target down.
10699 (remote_target::remote_detach_1): Pass down target. Use
10700 remote_unpush_target.
10701 (extended_remote_target::attach): Pass down target.
10702 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10703 (remote_target::append_resumption): Pass down target.
10704 (remote_target::append_pending_thread_resumptions)
10705 (remote_target::remote_resume_with_hc, remote_target::resume)
10706 (remote_target::commit_resume): Pass down target.
10707 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10708 (remote_target::interrupt_query)
10709 (remote_target::remove_new_fork_children)
10710 (remote_target::check_pending_events_prevent_wildcard_vcont)
10711 (remote_target::remote_parse_stop_reply)
10712 (remote_target::process_stop_reply): Pass down target.
10713 (first_remote_resumed_thread): New remote_target parameter. Pass
10714 it down.
10715 (remote_target::wait_as): Pass down target.
10716 (unpush_and_perror): New remote_target parameter. Pass it down.
10717 (remote_target::readchar, remote_target::remote_serial_write)
10718 (remote_target::getpkt_or_notif_sane_1)
10719 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10720 down target.
10721 (remote_target::mourn_inferior): Pass down target. Use
10722 remote_unpush_target.
10723 (remote_target::core_of_thread)
10724 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10725 (remote_target::pid_to_exec_file)
10726 (remote_target::thread_handle_to_thread_info): Pass down target.
10727 (remote_target::async_wait_fd): New.
10728 * riscv-fbsd-tdep.c: Include "inferior.h".
10729 (riscv_fbsd_get_thread_local_address): Pass down target.
10730 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10731 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10732 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10733 Adjust.
10734 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10735 * solib-svr4.c (enable_break): Pass down target.
10736 * spu-multiarch.c (parse_spufs_run): Pass down target.
10737 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10738 * target-delegates.c: Regenerate.
10739 * target.c (g_target_stack): Delete.
10740 (current_top_target): Return the current inferior's top target.
10741 (target_has_execution_1): Refer to the passed-in inferior's top
10742 target.
10743 (target_supports_terminal_ours): Check whether the initial
10744 inferior was already created.
10745 (decref_target): New.
10746 (target_stack::push): Incref/decref the target.
10747 (push_target, push_target, unpush_target): Adjust.
10748 (target_stack::unpush): Defref target.
10749 (target_is_pushed): Return bool. Adjust to refer to the current
10750 inferior's target stack.
10751 (dispose_inferior): Delete, and inline parts ...
10752 (target_preopen): ... here. Only dispose of the current inferior.
10753 (target_detach): Hold strong target reference while detaching.
10754 Pass target down.
10755 (target_thread_name): Add assertion.
10756 (target_resume): Pass down target.
10757 (target_ops::beneath, find_target_at): Adjust to refer to the
10758 current inferior's target stack.
10759 (get_dummy_target): New.
10760 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10761 has a thread running.
10762 (initialize_targets): Rename to ...
10763 (_initialize_target): ... this.
10764 * target.h: Include "gdbsupport/refcounted-object.h".
10765 (struct target_ops): Inherit refcounted_object.
10766 (target_ops::shortname, target_ops::longname): Make const.
10767 (target_ops::async_wait_fd): New method.
10768 (decref_target): Declare.
10769 (struct target_ops_ref_policy): New.
10770 (target_ops_ref): New typedef.
10771 (get_dummy_target): Declare function.
10772 (target_is_pushed): Return bool.
10773 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10774 (all_matching_threads_iterator::all_matching_threads_iterator):
10775 Handle filter target.
10776 * thread-iter.h (struct all_matching_threads_iterator, struct
10777 all_matching_threads_range, class all_non_exited_threads_range):
10778 Filter by target too. Remove explicit.
10779 * thread.c (threads_executing): Delete.
10780 (inferior_thread): Pass down current inferior.
10781 (clear_thread_inferior_resources): Pass down thread pointer
10782 instead of ptid_t.
10783 (add_thread_silent, add_thread_with_info, add_thread): Add
10784 process_stratum_target parameter. Use it for thread and inferior
10785 searches.
10786 (is_current_thread): New.
10787 (thread_info::deletable): Use it.
10788 (find_thread_ptid, thread_count, in_thread_list)
10789 (thread_change_ptid, set_resumed, set_running): New
10790 process_stratum_target parameter. Pass it down.
10791 (set_executing): New process_stratum_target parameter. Pass it
10792 down. Adjust reference to 'threads_executing'.
10793 (threads_are_executing): New process_stratum_target parameter.
10794 Adjust reference to 'threads_executing'.
10795 (set_stop_requested, finish_thread_state): New
10796 process_stratum_target parameter. Pass it down.
10797 (switch_to_thread): Also match inferior.
10798 (switch_to_thread): New process_stratum_target parameter. Pass it
10799 down.
10800 (update_threads_executing): Reimplement.
10801 * top.c (quit_force): Pop targets from all inferior.
10802 (gdb_init): Don't call initialize_targets.
10803 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10804 Declare.
10805 (windows_add_thread, windows_delete_thread): Adjust.
10806 (get_windows_debug_event): Rename to ...
10807 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10808 * tracefile-tfile.c (tfile_target_open): Pass down target.
10809 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10810 Forward declare.
10811 (switch_to_thread): Add process_stratum_target parameter.
10812 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10813 parameter. Use it.
10814 (mi_on_resume): Pass target down.
10815 * nat/fork-inferior.c (startup_inferior): Add
10816 process_stratum_target parameter. Pass it down.
10817 * nat/fork-inferior.h (startup_inferior): Add
10818 process_stratum_target parameter.
10819 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10820
75c6c844
PA
108212020-01-10 Pedro Alves <palves@redhat.com>
10822
10823 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10824 directly. Instead find the first thread in the thread list and
10825 use switch_to_thread.
10826
78f2c40a
PA
108272020-01-10 Pedro Alves <palves@redhat.com>
10828
10829 * remote.c (remote_target::remote_add_inferior): Don't bind a
10830 process to the current inferior if the current inferior is already
10831 bound to a process.
10832
e7af6c70
TBA
108332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10834 Pedro Alves <palves@redhat.com>
10835
10836 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10837 If no process is specified, return null_ptid instead of
10838 inferior_ptid.
10839 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10840 TARGET_WAITKIND_SIGNALLED with no pid.
10841
31ba933e
PA
108422020-01-10 Pedro Alves <palves@redhat.com>
10843
10844 * remote.c (first_remote_resumed_thread): New.
10845 (remote_target::wait_as): Use it as default event_ptid instead of
10846 inferior_ptid.
10847
735fc2ca
PA
108482020-01-10 Pedro Alves <palves@redhat.com>
10849
10850 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10851
c17e02e1
PA
108522020-01-10 Pedro Alves <palves@redhat.com>
10853
10854 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10855 not -1.
10856
ab1ddbcf
PA
108572020-01-10 Pedro Alves <palves@redhat.com>
10858
10859 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10860 ptid to get_last_target_status.
10861 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10862 ptid to get_last_target_status.
10863 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10864 get_last_target_status.
10865 (info_program_command): Don't pass a target_waitstatus to
10866 get_last_target_status.
10867 * infrun.c (init_wait_for_inferior): Use
10868 nullify_last_target_wait_ptid.
10869 (get_last_target_status): Handle nullptr arguments.
10870 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10871 (print_stop_event): Don't pass a ptid to get_last_target_status.
10872 (normal_stop): Don't pass a ptid to get_last_target_status.
10873 * infrun.h (get_last_target_status, set_last_target_status): Move
10874 comments here and update.
10875 (nullify_last_target_wait_ptid): Declare.
10876 * linux-fork.c (fork_load_infrun_state): Remove local extern
10877 declaration of nullify_last_target_wait_ptid.
10878 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10879 to get_last_target_status.
10880
f3f8ece4
PA
108812020-01-10 Pedro Alves <palves@redhat.com>
10882
10883 * gdbthread.h (scoped_restore_current_thread)
10884 <dont_restore, restore, m_dont_restore>: Declare.
10885 * thread.c (thread_alive): Add assertion. Return bool.
10886 (switch_to_thread_if_alive): New.
10887 (prune_threads): Switch inferior/thread.
10888 (print_thread_info_1): Switch thread before calling target methods.
10889 (scoped_restore_current_thread::restore): New, factored out from
10890 ...
10891 (scoped_restore_current_thread::~scoped_restore_current_thread):
10892 ... this.
10893 (scoped_restore_current_thread::scoped_restore_current_thread):
10894 Add assertion.
10895 (thread_apply_all_command, thread_select): Use
10896 switch_to_thread_if_alive.
10897 * infrun.c (proceed, restart_threads, handle_signal_stop)
10898 (switch_back_to_stepped_thread): Switch current thread before
10899 calling target methods.
10900
db2d40f7
PA
109012020-01-10 Pedro Alves <palves@redhat.com>
10902
10903 * inferior.c (switch_to_inferior_no_thread): New function,
10904 factored out from ...
10905 (inferior_command): ... here.
10906 * inferior.h (switch_to_inferior_no_thread): Declare.
10907 * mi/mi-main.c (run_one_inferior): Use
10908 switch_to_inferior_no_thread.
10909
bd420a2d
PA
109102020-01-10 Pedro Alves <palves@redhat.com>
10911
10912 * infcmd.c (kill_command): Remove dead code.
10913
ddf5db90
PA
109142020-01-10 Pedro Alves <palves@redhat.com>
10915
10916 * remote.c (remote_target::mourn_inferior): No longer check
10917 whether the target is running.
10918
5018ce90
PA
109192020-01-10 Pedro Alves <palves@redhat.com>
10920
10921 * corelow.c (core_target::has_execution): Change parameter type to
10922 inferior pointer.
10923 * inferior.c (number_of_live_inferiors): Use
10924 inferior::has_execution instead of target_has_execution_1.
10925 * inferior.h (inferior::has_execution): New.
10926 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10927 inferior::has_execution instead of target_has_execution_1.
10928 * process-stratum-target.c
10929 (process_stratum_target::has_execution): Change parameter type to
10930 inferior pointer. Check the inferior's PID instead of
10931 inferior_ptid.
10932 * process-stratum-target.h
10933 (process_stratum_target::has_execution): Change parameter type to
10934 inferior pointer.
10935 * record-full.c (record_full_core_target::has_execution): Change
10936 parameter type to inferior pointer.
10937 * target.c (target_has_execution_1): Change parameter type to
10938 inferior pointer.
10939 (target_has_execution_current): Adjust.
10940 * target.h (target_ops::has_execution): Change parameter type to
10941 inferior pointer.
10942 (target_has_execution_1): Change parameter type to inferior
10943 pointer. Change return type to bool.
10944 * tracefile.h (tracefile_target::has_execution): Change parameter
10945 type to inferior pointer.
10946
74375d18
PA
109472020-01-10 Pedro Alves <palves@redhat.com>
10948
10949 * exceptions.c (print_flush): Remove current_top_target() check.
10950
acdf84a6
PA
109512020-01-10 Pedro Alves <palves@redhat.com>
10952
10953 * remote.c (show_remote_exec_file): Show the current inferior's
10954 exec-file instead of the command variable's value.
10955
ec506636
PA
109562020-01-10 Pedro Alves <palves@redhat.com>
10957
10958 * record-full.c (record_full_resume_ptid): New global.
10959 (record_full_target::resume): Set it.
10960 (record_full_wait_1): Use record_full_resume_ptid instead of
10961 inferior_ptid.
10962
873657b9
PA
109632020-01-10 Pedro Alves <palves@redhat.com>
10964
10965 * gdbthread.h (scoped_restore_current_thread)
10966 <dont_restore, restore, m_dont_restore>: Declare.
10967 * thread.c (thread_alive): Add assertion. Return bool.
10968 (switch_to_thread_if_alive): New.
10969 (prune_threads): Switch inferior/thread.
10970 (print_thread_info_1): Switch thread before calling target methods.
10971 (scoped_restore_current_thread::restore): New, factored out from
10972 ...
10973 (scoped_restore_current_thread::~scoped_restore_current_thread):
10974 ... this.
10975 (scoped_restore_current_thread::scoped_restore_current_thread):
10976 Add assertion.
10977 (thread_apply_all_command, thread_select): Use
10978 switch_to_thread_if_alive.
10979
7f0ae84c
GB
109802020-01-10 George Barrett <bob@bob131.so>
10981
10982 * stap-probe.c (stap_modify_semaphore): Don't check for null
10983 semaphores.
10984 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10985 for null semaphores.
10986
f5a7c406
AB
109872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10988
10989 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10990 all source windows, and maintain horizontal scroll status while
10991 doing so.
10992
9ae6bf64
TT
109932020-01-09 Tom Tromey <tom@tromey.com>
10994
10995 PR tui/18932:
10996 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10997 update_source_window, not print_source_lines.
10998
b2efe70c
AB
109992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11000
11001 * tui/tui.c (tui_enable): Register tui hooks after calling
11002 tui_display_main.
11003
5f23a082
CB
110042020-01-09 Christian Biesinger <cbiesinger@google.com>
11005
11006 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11007
3061113b
SM
110082020-01-08 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * thread.c (print_thread_info_1): Fix indentation.
11011
57d75002
CB
110122020-01-09 Christian Biesinger <cbiesinger@google.com>
11013
11014 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11015 unique_xmalloc_ptr outside the if to always free the demangled name.
11016
6a053cb1
TT
110172020-01-08 Tom Tromey <tromey@adacore.com>
11018
11019 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11020 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11021 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11022 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11023 Remove.
11024 (section_offsets): New typedef.
11025 * symtab.c (fixup_section, get_msymbol_address): Update.
11026 * symmisc.c (dump_msymbols): Update.
11027 * symfile.h (relative_addr_info_to_section_offsets)
11028 (symfile_map_offsets_to_segments): Update.
11029 * symfile.c (build_section_addr_info_from_objfile)
11030 (init_objfile_sect_indices): Update.
11031 (struct place_section_arg): Change type of "offsets".
11032 (place_section): Update.
11033 (relative_addr_info_to_section_offsets): Change type of
11034 "section_offsets". Remove "num_sections" parameter.
11035 (default_symfile_offsets, syms_from_objfile_1)
11036 (set_objfile_default_section_offset): Update.
11037 (reread_symbols): No need to preserve section offsets by hand.
11038 (symfile_map_offsets_to_segments): Change type of "offsets".
11039 * stap-probe.c (relocate_address): Update.
11040 * stabsread.h (process_one_symbol): Update.
11041 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11042 (solib_target_relocate_section_addresses): Update.
11043 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11044 Update.
11045 * solib-frv.c (frv_relocate_main_executable): Update.
11046 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11047 * solib-aix.c (solib_aix_get_section_offsets): Change return
11048 type.
11049 (solib_aix_solib_create_inferior_hook): Update.
11050 * remote.c (remote_target::get_offsets): Update.
11051 * psymtab.c (find_pc_sect_psymtab): Update.
11052 * psympriv.h (struct partial_symbol) <address, text_low,
11053 text_high>: Update.
11054 * objfiles.h (obj_section_offset): Update.
11055 (struct objfile) <section_offsets>: Change type.
11056 <num_sections>: Remove.
11057 (objfile_relocate): Update.
11058 * objfiles.c (entry_point_address_query): Update
11059 (relocate_one_symbol): Change type of "section_offsets".
11060 (objfile_relocate1, objfile_relocate1): Change type of
11061 "new_offsets".
11062 (objfile_rebase1): Update.
11063 * mipsread.c (mipscoff_symfile_read): Update.
11064 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11065 parameter.
11066 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11067 (parse_external, psymtab_to_symtab_1): Update.
11068 * machoread.c (macho_symfile_offsets): Update.
11069 * ia64-tdep.c (ia64_find_unwind_table): Update.
11070 * hppa-tdep.c (read_unwind_info): Update.
11071 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11072 * dwarf2read.c (create_addrmap_from_index)
11073 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11074 (process_psymtab_comp_unit_reader, add_partial_symbol)
11075 (add_partial_subprogram, process_full_comp_unit)
11076 (read_file_scope, read_func_scope, read_lexical_block_scope)
11077 (read_call_site_scope, dwarf2_rnglists_process)
11078 (dwarf2_ranges_process, dwarf2_ranges_read)
11079 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11080 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11081 Update.
11082 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11083 Update.
11084 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11085 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11086 (process_one_symbol): Change type of "section_offsets".
11087 * ctfread.c (get_objfile_text_range): Update.
11088 * coffread.c (coff_symtab_read, enter_linenos)
11089 (process_coff_symbol): Update.
11090 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11091 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11092
456e800a
TT
110932020-01-08 Tom Tromey <tromey@adacore.com>
11094
11095 * dwarf2read.c (parse_macro_definition): Use std::string.
11096 (parse_macro_definition): Likewise.
11097
6dfa2fc2
TT
110982020-01-08 Tom Tromey <tromey@adacore.com>
11099
11100 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11101 (ATTR_ALLOC_CHUNK): Remove.
11102
421d1616
TT
111032020-01-08 Tom Tromey <tromey@adacore.com>
11104
11105 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11106
43816ebc
TT
111072020-01-08 Tom Tromey <tromey@adacore.com>
11108
11109 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11110 (dwarf2_compute_name, open_dwo_file): Likewise.
11111 (process_enumeration_scope): Use std::vector.
11112 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11113 (partial_die_info::fixup, dwarf2_start_subfile)
11114 (guess_full_die_structure_name, dwarf2_name): Likewise.
11115 (determine_prefix): Update.
11116 (guess_full_die_structure_name): Make return type const.
11117 (partial_die_full_name): Return unique_xmalloc_ptr.
11118 (DW_FIELD_ALLOC_CHUNK): Remove.
11119
4212d509
TT
111202020-01-07 Tom Tromey <tromey@adacore.com>
11121
11122 PR build/24937:
11123 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11124
06a6207a
JT
111252020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11126
11127 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11128
153d79c4
AB
111292020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11130
11131 * stack.c (print_frame_info): Move disassemble_next_line code
11132 inside source_print block.
11133
66182876
EZ
111342020-01-06 Eli Zaretskii <eliz@gnu.org>
11135
11136 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11137 gdb/signals.h, as we are now using native signal symbols.
11138
cbfa8581
SV
111392020-01-06 Shahab Vahedi <shahab@synopsys.com>
11140
11141 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11142 overflow by an early check of content vs threshold.
aac66a4c 11143 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11144 Likewise.
11145
3f602821
EZ
111462020-01-06 Eli Zaretskii <eliz@gnu.org>
11147
11148 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11149
a08c904d
JT
111502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11151
11152 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11153 export table if no section contains it's RVA.
11154
89a65580
EZ
111552020-01-06 Eli Zaretskii <eliz@gnu.org>
11156
11157 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11158
8b7fcda2
HD
111592020-01-06 Hannes Domani <ssbssa@yahoo.de>
11160
11161 * source.c (print_source_lines_base): Set last_line_listed.
11162
a61b4f69
SV
111632020-01-06 Shahab Vahedi <shahab@synopsys.com>
11164
11165 * tui/tui-disasm.c: Remove trailing spaces.
11166
559e7e50
EZ
111672020-01-06 Eli Zaretskii <eliz@gnu.org>
11168 Pedro Alves <palves@redhat.com>
11169
11170 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11171 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11172 (windows_gdb_signal_to_target): New function, uses the above
11173 enumeration to convert GDB internal signal codes to equivalent
11174 Windows codes.
11175 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11176 * windows-nat.c: Include "gdb_wait.h".
11177 (get_windows_debug_event): Extract the fatal exception from the
11178 exit status and convert to the equivalent Posix signal number.
11179 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11180 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11181 * gdbsupport/gdb_wait.c: New file, implements
11182 windows_status_to_termsig.
11183 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11184 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11185
f2302a34
AB
111862020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11189 show_layout.
11190
6a5206eb
LM
111912020-01-05 Luis Machado <luis.machado@linaro.org>
11192
11193 * aarch64-linux-nat.c
11194 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11195 and bfd_mach_aarch64.
11196
6ec1d75e
PW
111972020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11198
11199 * ui-file.c (stdio_file::can_emit_style_escape)
11200 (tee_file::can_emit_style_escape): Ensure style is used also on
11201 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11202 to gdb_stdout.
11203 * main.c (set_gdb_data_directory): Use file style to output the
11204 warning that the given pathname is not a directory.
11205 * top.c (show_history_filename, gdb_safe_append_history)
11206 (show_gdb_datadir): Use file style.
11207
44f81a76
HD
112082020-01-03 Hannes Domani <ssbssa@yahoo.de>
11209
11210 * solib-target.c (struct lm_info_target):
11211 Change offsets to be a unique_xmalloc_ptr.
11212 (solib_target_relocate_section_addresses): Update.
11213
25057eb0
HD
112142020-01-03 Hannes Domani <ssbssa@yahoo.de>
11215
11216 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11217
6e2118f5
BE
112182020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11219
11220 * MAINTAINERS (Write After Approval): Add myself.
11221
8133c7dc
LM
112222020-01-02 Luis Machado <luis.machado@linaro.org>
11223
11224 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11225 Cell BE architecture.
11226 * target.h (struct target_ops) <thread_architecture>: Likewise.
11227
48189bec
HD
112282020-01-01 Hannes Domani <ssbssa@yahoo.de>
11229
11230 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11231
ead1063b
HD
112322020-01-01 Hannes Domani <ssbssa@yahoo.de>
11233
11234 * MAINTAINERS (Write After Approval): Add myself.
11235
e5d78223
JB
112362020-01-01 Joel Brobecker <brobecker@adacore.com>
11237
11238 * gdbarch.sh: Update copyright year range of generated files.
11239
b811d2c2
JB
112402020-01-01 Joel Brobecker <brobecker@adacore.com>
11241
11242 Update copyright year range in all GDB files.
11243
5f4def5c
JB
112442020-01-01 Joel Brobecker <brobecker@adacore.com>
11245
11246 * copyright.py: Convert to Python 3.
11247
51fd4002
JB
112482020-01-01 Joel Brobecker <brobecker@adacore.com>
11249
11250 * copyright.py: Adapt after move of gnulib directory from gdb
11251 directory to toplevel directory.
11252
5fb651f2
JB
112532020-01-01 Joel Brobecker <brobecker@adacore.com>
11254
11255 * copyright.py (main): Exit if run from the wrong directory.
11256
5dd8bf88
JB
112572020-01-01 Joel Brobecker <brobecker@adacore.com>
11258
11259 * top.c (print_gdb_version): Change copyright year to 2020.
11260
9f71dacb 112612020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11262
9f71dacb 11263 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11264
9f71dacb 11265For older changes see ChangeLog-2019.
c906108c
SS
11266\f
11267Local Variables:
11268mode: change-log
11269left-margin: 8
11270fill-column: 74
11271version-control: never
57da7796 11272coding: utf-8
c906108c 11273End: