]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/riscv: delete target descriptions when gdb exits
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0e267416
AB
12020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4 (riscv_lookup_target_description): Return pointer out of
5 unique_ptr.
6 * target-descriptions.c (allocate_target_description): Add
7 comment.
8 (target_desc_deleter::operator()): Likewise.
9 * target-descriptions.h (struct target_desc_deleter): Moved to
10 gdbsupport/tdesc.h.
11 (target_desc_up): Likewise.
12
f80c8ec4
TT
132020-07-17 Tom Tromey <tromey@adacore.com>
14
15 * linux-nat.c (linux_nat_target::supports_non_stop)
16 (linux_nat_target::always_non_stop_p): Use "true".
17 (linux_nat_target::supports_disable_randomization): Use "true" and
18 "false".
19
d0ce17d8
CT
202020-07-16 Caroline Tice <cmtice@google.com>
21
22 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
23 (RNGLIST_HEADER_SIZE64): New constant definition.
24 (struct dwop_section_names): Add rnglists_dwo.
25 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
26 (struct loclist_header): Rename to 'loclists_rnglists_header'.
27 (struct dwo_sections): Add rnglists field.
28 (read_attribut_reprocess): Add tag parameter.
29 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
30 (cu_debug_rnglists_section): New function (decl & definition).
31 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
32 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
33 die whose range is being checked; get rnglist section from
34 cu_debug_rnglists_section, to get from either objfile or dwo file as
35 appropriate. Add cases for DW_RLE_base_addressx,
36 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
37 the base address to DW_RLE_offset_pairs (not to all ranges), moving
38 test inside if-condition and updating complaint message.
39 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
40 dwarf2_rnglists_process.
41 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
42 dwarf2_ranges_process.
43 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
44 need_ranges_base and update comment appropriately. Also pass die tag
45 to dwarf2_ranges_read.
46 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
47 need_ranges_base and update comment appropriately. Also pass die tag
48 to dwarf2_ranges_process.
49 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
50 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
51 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
52 need_ranges_base and update comment appropriately. Also pass die tag
53 to read_attribute_reprocess and dwarf2_ranges_read.
54 (read_loclist_header): Rename function to read_loclists_rnglists_header,
55 and update function comment appropriately.
56 (read_loclist_index): Call read_loclists_rnglists_header instead of
57 read_loclist_header.
58 (read_rnglist_index): New function.
59 (read_attribute_reprocess): Add tag parameter. Add code for
60 DW_FORM_rnglistx, passing tag to read_rnglist_index.
61 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
62
3dcc261c
AB
632020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
66 being resolved.
67
ccb9eba6
AB
682020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 * arch-utils.c (show_architecture): Update formatting of messages.
71
cf88be68
SM
722020-07-12 Simon Marchi <simon.marchi@efficios.com>
73
74 * gdbtypes.h (struct type) <bounds>: Handle array and string
75 types.
76 * ada-lang.c (assign_aggregate): Use type::bounds on
77 array/string type.
78 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
79 * c-varobj.c (c_number_of_children): Likewise.
80 (c_describe_child): Likewise.
81 * eval.c (evaluate_subexp_for_sizeof): Likewise.
82 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
83 (f_type_print_base): Likewise.
84 * f-valprint.c (f77_array_offset_tbl): Likewise.
85 (f77_get_upperbound): Likewise.
86 (f77_print_array_1): Likewise.
87 * guile/scm-type.c (gdbscm_type_range): Likewise.
88 * m2-typeprint.c (m2_array): Likewise.
89 (m2_is_long_set_of_type): Likewise.
90 * m2-valprint.c (get_long_set_bounds): Likewise.
91 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
92 * python/py-type.c (typy_range): Likewise.
93 * rust-lang.c (rust_internal_print_type): Likewise.
94 * type-stack.c (type_stack::follow_types): Likewise.
95 * valarith.c (value_subscripted_rvalue): Likewise.
96 * valops.c (value_cast): Likewise.
97
509971ae
SM
982020-07-12 Simon Marchi <simon.marchi@efficios.com>
99
100 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
101 callers to use the equivalent accessor methods.
102
107406b7
SM
1032020-07-12 Simon Marchi <simon.marchi@efficios.com>
104
105 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
106 (struct type) <bit_stride>: New method.
107 (TYPE_BIT_STRIDE): Remove.
108 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
109
bb789949
SM
1102020-07-12 Simon Marchi <simon.marchi@efficios.com>
111
112 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
113 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
114 callers to use the equivalent accessor methods instead.
115
39498edb
SM
1162020-07-12 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
119 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
120 callers to use the equivalent accessor methods instead.
121
3b606f38
SM
1222020-07-12 Simon Marchi <simon.marchi@efficios.com>
123
124 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
125 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
126 to use dynamic_prop::kind.
127
064d9cb9
SM
1282020-07-12 Simon Marchi <simon.marchi@efficios.com>
129
130 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
131 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
132 to get the bound property's kind and check against
133 PROP_UNDEFINED.
134
5537ddd0
SM
1352020-07-12 Simon Marchi <simon.marchi@efficios.com>
136
137 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
138 all callers to use type::range_bounds followed by
139 dynamic_prop::{low,high}.
140
8c2e4e06
SM
1412020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
144 const_val, set_const_val, baton, set_locexpr, set_loclist,
145 set_addr_offset, variant_parts, set_variant_parts,
146 original_type, set_original_type>: New methods.
147 <kind>: Rename to...
148 <m_kind>: ... this. Update all users to use the new methods
149 instead.
150 <data>: Rename to...
151 <m_data>: ... this. Update all users to use the new methods
152 instead.
153
7c6f2712
SM
1542020-07-12 Simon Marchi <simon.marchi@efficios.com>
155
156 * gdbtypes.c (get_discrete_bounds): Return failure if
157 the range type's bounds are not both defined and constant
158 values.
159 (get_array_bounds): Update comment. Remove undefined bound check.
160
599088e3
SM
1612020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
164 the type::bounds method directly.
165
c4dfcb36
SM
1662020-07-12 Simon Marchi <simon.marchi@efficios.com>
167
168 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
169 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
170 are used to set the range type's bounds to use set_bounds.
171
0a278aa7
PW
1722020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
173
174 * exec.c (_initialize_exec): Update exec-file-mismatch help.
175
cce20f10
PA
1762020-07-10 Pedro Alves <pedro@palves.net>
177
178 * gdbthread.h (inferior_ref): Define.
179 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
180 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
181 * thread.c
182 (scoped_restore_current_thread::restore):
183 Adjust to gdb::ref_ptr.
184 (scoped_restore_current_thread::~scoped_restore_current_thread):
185 Remove manual decref handling.
186 (scoped_restore_current_thread::scoped_restore_current_thread):
187 Adjust to use
188 inferior_ref::new_reference/thread_info_ref::new_reference.
189 Incref the thread before calling get_frame_id instead of after.
190 Let TARGET_CLOSE_ERROR propagate.
191
6d7aa592
PA
1922020-07-10 Pedro Alves <pedro@palves.net>
193
194 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
195 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
196 NOT_AVAILABLE_ERROR.
197 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
198 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
199
b3e3a4c1
SM
2002020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
201 Pedro Alves <pedro@palves.net>
202
203 PR gdb/26199
204 * infrun.c (threads_are_resumed_pending_p): Delete.
205 (do_target_wait): Remove threads_are_executing and
206 threads_are_resumed_pending_p checks from the inferior_matches
207 lambda. Update comments.
208
d6cc5d98
PA
2092020-07-10 Pedro Alves <pedro@palves.net>
210
211 PR gdb/26199
212 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
213 executing threads.
214
7d3badc6
PA
2152020-07-10 Pedro Alves <pedro@palves.net>
216
217 PR gdb/26199
218 * infrun.c (handle_no_resumed): Handle multiple targets.
219
42bd97a6
PA
2202020-07-10 Pedro Alves <pedro@palves.net>
221
222 PR gdb/26199
223 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
224 target_is_async_p.
225
43667cc6
PA
2262020-07-10 Pedro Alves <pedro@palves.net>
227
228 PR gdb/26199
229 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
230 threads, not all threads.
231
96118d11
PA
2322020-07-10 Pedro Alves <pedro@palves.net>
233
234 PR gdb/26199
235 * remote.c (remote_target::open_1): Pass remote target pointer as
236 data to create_async_event_handler.
237 (remote_async_inferior_event_handler): Mark async event handler
238 before returning if the remote target still has either pending
239 events or unacknowledged notifications.
240
54904d81
JB
2412020-07-10 John Baldwin <jhb@FreeBSD.org>
242
243 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
244 declaration.
245 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
246 function.
247
f37e5866
JB
2482020-07-09 John Baldwin <jhb@FreeBSD.org>
249
250 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
251 inferior_ptid.
252
fc238d4a
JB
2532020-07-09 John Baldwin <jhb@FreeBSD.org>
254
255 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
256 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
257 AT_FREEBSD_PS_STRINGS.
258
6e2469ff
HD
2592020-07-08 Hannes Domani <ssbssa@yahoo.de>
260
261 * auto-load.c (auto_load_objfile_script_1): Convert drive part
262 of debugfile path on Windows.
263
d1076c41
JB
2642020-07-08 John Baldwin <jhb@FreeBSD.org>
265
266 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
267 argument to 'data'.
268
15f3b077
TT
2692020-07-08 Tom Tromey <tromey@adacore.com>
270
271 * ada-lang.c (ada_exception_message_1): Use read_memory.
272
9fc501fd
AB
2732020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 PR python/22748
276 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
277 special handling for inline frames.
278 * findvar.c (value_of_register_lazy): Skip inline frames when
279 creating lazy register values.
280 * frame.c (frame_id_computed_p): Delete definition.
281 * frame.h (frame_id_computed_p): Delete declaration.
282
64cb3757
AB
2832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * NEWS: Mention additions to Python API.
286 * python/py-arch.c (archpy_register_groups): New function.
287 (arch_object_methods): Add 'register_groups' method.
288 * python/py-registers.c (reggroup_iterator_object): New struct.
289 (reggroup_object): New struct.
290 (gdbpy_new_reggroup): New function.
291 (gdbpy_reggroup_to_string): New function.
292 (gdbpy_reggroup_name): New function.
293 (gdbpy_reggroup_iter): New function.
294 (gdbpy_reggroup_iter_next): New function.
295 (gdbpy_new_reggroup_iterator): New function
296 (gdbpy_initialize_registers): Register new types.
297 (reggroup_iterator_object_type): Define new Python type.
298 (gdbpy_reggroup_getset): New static global.
299 (reggroup_object_type): Define new Python type.
300 * python/python-internal.h
301
0f767f94
AB
3022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
305 * python/py-arch.c (archpy_registers): New function.
306 (arch_object_methods): Add 'registers' method.
307 * python/py-registers.c: New file.
308 * python/python-internal.h
309 (gdbpy_new_register_descriptor_iterator): Declare.
310 (gdbpy_initialize_registers): Declare.
311 * python/python.c (do_start_initialization): Call
312 gdbpy_initialize_registers.
313 * NEWS: Mention additions to the Python API.
314
87dbc774
AB
3152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * NEWS: Mention new Python API method.
318 * python/py-unwind.c (pending_framepy_architecture): New function.
319 (pending_frame_object_methods): Add architecture method.
320
3bc98c0c
AB
3212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * gdbarch.c: Regenerate.
324 * gdbarch.h: Regenerate.
325 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
326 (gdbarch_data): Use internal_error for the case where
327 deprecated_set_gdbarch_data was originally needed.
328 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
329 and use passed in obstack.
330 (libunwind_frame_set_descr): Should no longer get back NULL from
331 gdbarch_data.
332 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
333 type.
334 * user-regs.c (user_regs_init): Update parameters, and use passed
335 in obstack.
336 (user_reg_add): Should no longer get back NULL from gdbarch_data.
337 (_initialize_user_regs): Register as a pre-init gdbarch data type.
338
d8cc8af6
TV
3392020-07-06 Tom de Vries <tdevries@suse.de>
340
341 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
342 End-Of-Sequence in lte_is_less_than.
343 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
344 "gdb: Don't reorder line table entries too much when sorting".
345
947f7597
TV
3462020-07-06 Tom de Vries <tdevries@suse.de>
347
348 PR tui/26205
349 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
350
1e7c1b22
TV
3512020-07-05 Tom de Vries <tdevries@suse.de>
352
353 PR build/26187
354 * inferior.h (struct infcall_suspend_state_deleter): If available, use
355 std::uncaught_exceptions instead of deprecated
356 std::uncaught_exception.
357
a36158ec
SM
3582020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * macroexp.h (macro_stringify): Return
361 gdb::unique_xmalloc_ptr<char>.
362 * macroexp.c (macro_stringify): Likewise.
363 * macrotab.c (fixup_definition): Update.
364
14d960c8
SM
3652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
368 (lex_one_token): Update.
369 * macroexp.c (struct macro_buffer) <release>: Return
370 gdb::unique_xmalloc_ptr<char>.
371 (macro_stringify): Update.
372 (macro_expand): Update.
373 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
374 * macroexp.h (macro_expand_next): Likewise.
375
211d5b1c
SM
3762020-07-02 Simon Marchi <simon.marchi@efficios.com>
377
378 * macroexp.h (macro_lookup_ftype): Remove.
379 (macro_expand, macro_expand_once, macro_expand_next): Remove
380 lookup function parameters, add scope parameter.
381 * macroexp.c (scan, substitute_args, expand, maybe_expand,
382 macro_expand, macro_expand_once, macro_expand_next): Likewise.
383 * macroscope.h (standard_macro_lookup): Change parameter type
384 to macro_scope.
385 * macroscope.c (standard_macro_lookup): Likewise.
386 * c-exp.y (lex_one_token): Update.
387 * macrocmd.c (macro_expand_command): Likewise.
388 (macro_expand_once_command): Likewise.
389
b1a35af2
SM
3902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * inf-loop.c (inferior_event_handler): Remove client_data param.
393 * inf-loop.h (inferior_event_handler): Likewise.
394 * infcmd.c (step_1): Adjust.
395 * infrun.c (proceed): Adjust.
396 (fetch_inferior_event): Remove client_data param.
397 (infrun_async_inferior_event_handler): Adjust.
398 * infrun.h (fetch_inferior_event): Remove `void *` param.
399 * linux-nat.c (handle_target_event): Adjust.
400 * record-btrace.c (record_btrace_handle_async_inferior_event):
401 Adjust.
402 * record-full.c (record_full_async_inferior_event_handler):
403 Adjust.
404 * remote.c (remote_async_inferior_event_handler): Adjust.
405
1cdf9e33
TT
4062020-07-01 Tom Tromey <tom@tromey.com>
407
408 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
409 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
410
32c1e210
TT
4112020-07-01 Tom Tromey <tom@tromey.com>
412
413 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
414 tui_gen_win_info.
415 (tui_win_info::make_window): Merge with
416 tui_gen_win_info::make_window.
417 (tui_win_info::make_visible): Move from tui_gen_win_info.
418 * tui/tui-win.c (tui_win_info::max_width): Move from
419 tui_gen_win_info.
420 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
421 type.
422 <window_factory>: Likewise.
423 * tui/tui-layout.c (tui_win_info::resize): Move from
424 tui_gen_win_info.
425 (make_standard_window): Change return type.
426 (get_locator_window, tui_get_window_by_name): Likewise.
427 (tui_layout_window::apply): Remove a cast.
428 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
429 (struct tui_win_info): Merge with tui_gen_win_info.
430 (struct tui_gen_win_info): Remove.
431
a30cb6da
TT
4322020-07-01 Tom Tromey <tom@tromey.com>
433
434 * tui/tui-stack.h (struct tui_locator_window): Derive from
435 tui_win_info.
436 <do_scroll_horizontal, do_scroll_vertical>: New methods.
437 <can_box>: New method.
438
1eb2161f
TT
4392020-07-01 Tom Tromey <tom@tromey.com>
440
441 * tui/tui-stack.h (struct tui_locator_window): Remove body.
442
7134f2eb
TT
4432020-07-01 Tom Tromey <tom@tromey.com>
444
445 * tui/tui-regs.c (tui_data_window::display_registers_from)
446 (tui_data_window::display_registers_from)
447 (tui_data_window::first_data_item_displayed)
448 (tui_data_window::delete_data_content_windows): Update.
449 (tui_data_window::refresh_window, tui_data_window::no_refresh):
450 Remove.
451 (tui_data_window::check_register_values): Update.
452 (tui_data_item_window::rerender): Add parameters. Update.
453 (tui_data_item_window::refresh_window): Remove.
454 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
455 virtual.
456 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
457 tui_gen_win_info.
458 <refresh_window, max_height, min_height>: Remove.
459 <rerender>: Add parameters.
460 <x, y, visible>: New members.
461 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
462 <m_item_width>: New member.
463
22b7b041
TT
4642020-07-01 Tom Tromey <tom@tromey.com>
465
466 * tui/tui-regs.c (tui_data_window::show_register_group)
467 (tui_data_window::check_register_values): Update.
468 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
469 from item_no.
470
c9753adb
TT
4712020-07-01 Tom Tromey <tom@tromey.com>
472
473 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
474 useless "if".
475
9ab26b4a
TT
4762020-07-01 Tom Tromey <tom@tromey.com>
477
478 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
479 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
480
e555083f
TT
4812020-07-01 Tom Tromey <tom@tromey.com>
482
483 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
484 * tui/tui-winsource.h (enum tui_line_or_address_kind)
485 (struct tui_line_or_address): Move from tui-data.h.
486 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
487 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
488 (tui_cmd_window, tui_source_window_base, tui_source_window)
489 (tui_disasm_window): Don't declare.
490 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
491 to tui-winsource.h.
492 (SINGLE_KEY): Move to tui-stack.c.
493
7a02bab7
TT
4942020-07-01 Tom Tromey <tom@tromey.com>
495
496 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
497 std::string.
498 * tui/tui-regs.c (class tab_expansion_file): New.
499 (tab_expansion_file::write): New method.
500 (tui_register_format): Change return type. Use
501 tab_expansion_file.
502 (tui_get_register, tui_data_window::display_registers_from)
503 (tui_data_item_window::rerender): Update.
504 * tui/tui-io.h (tui_expand_tabs): Don't declare.
505 * tui/tui-io.c (tui_expand_tabs): Remove.
506
ea68593b
TT
5072020-07-01 Tom Tromey <tom@tromey.com>
508
509 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
510
a8caed5d
FS
5112020-07-01 Fangrui Song <maskray@google.com>
512
513 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
514
9cdf9820
AKS
5152020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
516
517 * dwarf2/read.c (set_die_type): Removed conditions to restrict
518 forms for DW_AT_associated and DW_AT_allocated attributes,
519 which is already checked in function attr_to_dynamic_prop.
520
a1520ad8
TT
5212020-06-30 Tom Tromey <tromey@adacore.com>
522
523 * dwarf2/read.c (quirk_rust_enum): Correctly call
524 alloc_rust_variant for default-less enum.
525
5ac58899
TT
5262020-06-30 Tom Tromey <tromey@adacore.com>
527
528 PR build/26183:
529 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
530 gdb::to_string.
531
19b187a9
SM
5322020-06-29 Simon Marchi <simon.marchi@efficios.com>
533
534 * gdbarch.sh (displaced_step_copy_insn): Update doc.
535 * gdbarch.h: Re-generate.
536
cd4c4c07
TT
5372020-06-28 Tom Tromey <tom@tromey.com>
538
539 * command.h (cmd_types): Remove.
540 (cmd_type): Don't declare.
541 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
542 typedef.
543 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
544 * cli/cli-decode.c (cmd_type): Remove.
545
05779d57
PA
5462020-06-27 Pedro Alves <palves@redhat.com>
547
548 * fork-child.c (prefork_hook): Adjust.
549 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
550 Delete.
551 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
552 * inferior.c (inferior::set_tty, inferior::tty): New methods.
553 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
554 Remove declarations.
555 (struct inferior) <set_tty, tty>: New methods.
556 (struct inferior) <terminal>: Rename to ...
557 (struct inferior) <m_terminal>: ... this and make private.
558 * main.c (captured_main_1): Adjust.
559 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
560 (mi_cmd_inferior_tty_show): Adjust.
561 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
562 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
563
1776e3e5
NA
5642020-06-26 Nick Alcock <nick.alcock@oracle.com>
565
566 * configure.ac: Add --enable-libctf: handle --disable-static
567 properly.
568 * acinclude.m4: sinclude ../config/enable.m4.
569 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
570 (LIBCTF): Substitute in.
571 (CTF_DEPS): New, likewise.
572 (CLIBS): libctf needs symbols from libbfd: move earlier.
573 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
574 flags.
575 * ctfread.c: Surround in ENABLE_LIBCTF.
576 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
577 * configure: Regenerate.
578 * config.in: Likewise.
579
58373b80
SM
5802020-06-25 Simon Marchi <simon.marchi@efficios.com>
581
582 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
583
277474ee
SM
5842020-06-25 Simon Marchi <simon.marchi@efficios.com>
585
586 * inferior.h (struct inferior) <terminal>: Change type to
587 gdb::unique_xmalloc_ptr<char>.
588 * inferior.c (inferior::~inferior): Don't free inf->terminal.
589 * infcmd.c (set_inferior_io_terminal): Don't free terminal
590 field, adjust to unique pointer.
591 (get_inferior_io_terminal): Adjust to unique pointer.
592
6d74da72
AB
5932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * riscv-tdep.c (riscv_print_registers_info): Loop over all
596 registers, not just the known core set of registers.
597
2e52d038
AB
5982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
601 fflags, frm, and fcsr registers.
602 (riscv_register_reggroup_p): Remove unknown CSRs from save and
603 restore groups.
604 (riscv_tdesc_unknown_reg): New function.
605 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
606 tdesc_use_registers.
607 * riscv-tdep.h (struct gdbarch_tdep): Add
608 unknown_csrs_first_regnum, unknown_csrs_count,
609 duplicate_fflags_regnum, duplicate_frm_regnum, and
610 duplicate_fcsr_regnum fields.
611
be64fd07
AB
6122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * target-descriptions.c (tdesc_use_registers): Add new parameter a
615 callback, use the callback (when not null) to help number unknown
616 registers.
617 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
618 (tdesc_use_registers): Add extra parameter to declaration.
619
3b9fce96
AB
6202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
623 in the file.
624 (class riscv_pending_register_alias): Likewise.
625 (riscv_register_feature::register_info): Change 'required_p' field
626 to 'required', and change its type. Add 'check' member function.
627 (riscv_register_feature::register_info::check): Define new member
628 function.
629 (riscv_xreg_feature): Change initialisation of 'required' field.
630 (riscv_freg_feature): Likewise.
631 (riscv_virtual_feature): Likewise.
632 (riscv_csr_feature): Likewise.
633 (riscv_check_tdesc_feature): Take extra parameter, the csr
634 tdesc_feature, rewrite the function to use the new
635 riscv_register_feature::register_info::check function.
636 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
637
865bad26
AB
6382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * features/Makefile: Remove all references to the deleted files
641 below.
642 * features/riscv/32bit-csr.c: Deleted.
643 * features/riscv/32bit-csr.xml: Deleted.
644 * features/riscv/64bit-csr.c: Deleted.
645 * features/riscv/64bit-csr.xml: Deleted.
646 * features/riscv/rebuild-csr-xml.sh: Deleted.
647
ed69cbc8
AB
6482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
651 whitespace error for declaration of names member variable.
652 (struct riscv_register_feature): Add new prefer_first_name member
653 variable, and fix whitespace error in declaration of registers.
654 (riscv_xreg_feature): Initialize prefer_first_name field.
655 (riscv_freg_feature): Likewise.
656 (riscv_virtual_feature): Likewise.
657 (riscv_csr_feature): Likewise.
658 (riscv_register_name): Expand on comments. Remove register name
659 modifications for CSR and virtual registers.
660
4445e8f5
AB
6612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
664 errors.
665
767a879e
AB
6662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
669 riscv-opc.h.
670 (class riscv_pending_register_alias): New class.
671 (riscv_check_tdesc_feature): Take vector of pending aliases and
672 populate it as appropriate.
673 (riscv_setup_register_aliases): Delete.
674 (riscv_gdbarch_init): Create vector of pending aliases and pass it
675 to riscv_check_tdesc_feature in all cases. Use the vector to
676 create the register aliases.
677
bb6e55f3
RO
6782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679
680 * sol2-tdep.c (sol2_static_transform_name): Remove.
681 (sol2_init_abi): Don't register it.
682 * gdbarch.sh (static_transform_name): Remove.
683 * gdbarch.c, gdbarch.h: Regenerate.
684
685 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
686 gdbarch_static_transform_name.
687 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
688 * stabsread.c (define_symbol) <'X'>: Remove.
689 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
690 handling.
691 <'V'>: Likewise.
692 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
693 <'S'>: Remove call to gdbarch_static_transform_name.
694
c6d36836
RO
6952020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
696
697 * procfs.c (procfs_pre_trace): New function.
698 (procfs_target::create_inferior): Pass it to fork_inferior.
699
a7e6196b
RO
7002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
701
702 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
703 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
704 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
705 sol2-tdep.o, sparc-sol2-tdep.o.
706 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
707 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
708 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
709 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
710
d412e696
RO
7112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
712
713 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
714 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
715 Call sol2_init_abi.
716 Remove calls to set_gdbarch_skip_solib_resolver,
717 set_gdbarch_core_pid_to_str.
718 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
719 (i386_sol2_static_transform_name): Remove.
720 (i386_sol2_init_abi): Call sol2_init_abi.
721 Remove calls to set_gdbarch_sofun_address_maybe_missing,
722 set_gdbarch_static_transform_name,
723 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
724 Use sol2_sigtramp_p.
725 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
726 (sol2_sigtramp_p): New function.
727 (sol2_static_transform_name): New function.
728 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
729 (sol2_init_abi): New function.
730 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
731 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
732 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
733 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
734 (sparc_sol2_static_transform_name): Remove.
735 (sparc32_sol2_init_abi): Call sol2_init_abi.
736 Remove calls to set_gdbarch_sofun_address_maybe_missing,
737 set_gdbarch_static_transform_name,
738 set_gdbarch_skip_solib_resolver,
739 set_gdbarch_core_pid_to_str.
740 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
741 (sparc_sol2_static_transform_name): Remove
742 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
743 call sol2_sigtramp_p.
744 (sparc64_sol2_init_abi): Call sol2_init_abi.
745 Remove calls to set_gdbarch_sofun_address_maybe_missing,
746 set_gdbarch_static_transform_name,
747 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
748
a8654e7d
PW
7492020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
750
751 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
752 * exec.c (validate_exec_file): If from_tty, set both
753 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
754 * symfile.c (symbol_file_add_with_addrs): if always_confirm
755 and from_tty, unconditionally ask a confirmation.
756
caa7fd04
AB
7572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * target-descriptions.c (tdesc_architecture_name): Protect against
760 NULL pointer dereference.
761 (maint_print_xml_tdesc_cmd): New function.
762 (_initialize_target_descriptions): Register new 'maint print
763 xml-tdesc' command and give it the filename completer.
764 * NEWS: Mention new 'maint print xml-tdesc' command.
765
fbf42f4e
AB
7662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
767
768 * target-descriptions.c (class tdesc_compatible_info): New class.
769 (struct target_desc): Change type of compatible vector.
770 (tdesc_compatible_p): Update for change in type of
771 target_desc::compatible.
772 (tdesc_compatible_info_list): New function.
773 (tdesc_compatible_info_arch_name): New function.
774 (tdesc_add_compatible): Update for change in type of
775 target_desc::compatible.
776 (print_c_tdesc::visit_pre): Likewise.
777
20821f4e
AB
7782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
781 whitespace to underscore.
782 (maint_print_c_tdesc_cmd): Use fake filename for target
783 descriptions that came from the target.
784 (_initialize_target_descriptions): Add filename command completion
785 for 'maint print c-tdesc'.
786
1fb5ee62
SM
7872020-06-23 Simon Marchi <simon.marchi@efficios.com>
788
789 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
790 lines.
791
fc3ecb3e
SM
7922020-06-23 Simon Marchi <simon.marchi@efficios.com>
793
794 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
795 lines.
796 (dwarf2_find_location_expression): Likewise.
797 (call_site_parameter_matches): Likewise.
798 (dwarf2_compile_expr_to_ax): Likewise.
799 (disassemble_dwarf_expression): Likewise.
800 (loclist_describe_location): Likewise.
801
236ef034
PA
8022020-06-23 Pedro Alves <palves@redhat.com>
803
804 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
805 progspace-and-thread.h. Include scoped-mock-context.h instead.
806 (register_to_value_test): Use scoped_mock_context.
807 * regcache.c: Include "scoped-mock-context.h".
808 (cooked_read_test): Don't error out if a target is already pushed.
809 Use scoped_mock_context. Adjust.
810 * scoped-mock-context.h: New file.
811
39e7ecca
AB
8122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
815 initializer.
816 (ada_language::is_string_type_p): New member function.
817 * c-lang.c (c_language_data): Delete la_is_string_type_p
818 initializer.
819 (cplus_language_data): Likewise.
820 (asm_language_data): Likewise.
821 (minimal_language_data): Likewise.
822 * d-lang.c (d_language_data): Likewise.
823 * f-lang.c (f_is_string_type_p): Delete function, implementation
824 moved to f_language::is_string_type_p.
825 (f_language_data): Delete la_is_string_type_p initializer.
826 (f_language::is_string_type_p): New member function,
827 implementation from f_is_string_type_p.
828 * go-lang.c (go_is_string_type_p): Delete function, implementation
829 moved to go_language::is_string_type_p.
830 (go_language_data): Delete la_is_string_type_p initializer.
831 (go_language::is_string_type_p): New member function,
832 implementation from go_is_string_type_p.
833 * language.c (language_defn::is_string_type_p): Define new member
834 function.
835 (default_is_string_type_p): Make static, add comment copied from
836 header file.
837 (unknown_language_data): Delete la_is_string_type_p initializer.
838 (unknown_language::is_string_type_p): New member function.
839 (auto_language_data): Delete la_is_string_type_p initializer.
840 (auto_language::is_string_type_p): New member function.
841 * language.h (language_data): Delete la_is_string_type_p field.
842 (language_defn::is_string_type_p): Declare new function.
843 (default_is_string_type_p): Delete desclaration, move comment to
844 definition.
845 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
846 moved to m2_language::is_string_type_p.
847 (m2_language_data): Delete la_is_string_type_p initializer.
848 (m2_language::is_string_type_p): New member function,
849 implementation from m2_is_string_type_p.
850 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
851 initializer.
852 * opencl-lang.c (opencl_language_data): Likewise.
853 * p-lang.c (pascal_is_string_type_p): Delete function,
854 implementation moved to pascal_language::is_string_type_p.
855 (pascal_language_data): Delete la_is_string_type_p initializer.
856 (pascal_language::is_string_type_p): New member function,
857 implementation from pascal_is_string_type_p.
858 * rust-lang.c (rust_is_string_type_p): Delete function,
859 implementation moved to rust_language::is_string_type_p.
860 (rust_language_data): Delete la_is_string_type_p initializer.
861 (rust_language::is_string_type_p): New member function,
862 implementation from rust_is_string_type_p.
863 * valprint.c (val_print_scalar_or_string_type_p): Update call to
864 is_string_type_p.
865
4ffc13fb
AB
8662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * ada-lang.c (ada_language_data): Delete la_print_typedef
869 initializer.
870 (ada_language::print_typedef): New member function.
871 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
872 (cplus_language_data): Likewise.
873 (asm_language_data): Likewise.
874 (minimal_language_data): Likewise.
875 * d-lang.c (d_language_data): Likewise.
876 * f-lang.c (f_language_data): Likewise.
877 (f_language::print_typedef): New member function.
878 * go-lang.c (go_language_data): Delete la_print_typedef
879 initializer.
880 * language.c (language_defn::print_typedef): Define member
881 function.
882 (unknown_language_data): Delete la_print_typedef initializer.
883 (unknown_language::print_typedef): New member function.
884 (auto_language_data): Delete la_print_typedef initializer.
885 (auto_language::print_typedef): New member function.
886 * language.h (language_data): Delete la_print_typedef field.
887 (language_defn::print_typedef): Declare new member function.
888 (LA_PRINT_TYPEDEF): Update call to print_typedef.
889 (default_print_typedef): Delete declaration.
890 * m2-lang.c (m2_language_data): Delete la_print_typedef
891 initializer.
892 (m2_language::print_typedef): New member function.
893 * objc-lang.c (objc_language_data): Delete la_print_typedef
894 initializer.
895 * opencl-lang.c (opencl_language_data): Likewise.
896 * p-lang.c (pascal_language_data): Likewise.
897 (pascal_language::print_typedef): New member function.
898 * rust-lang.c (rust_print_typedef): Delete function,
899 implementation moved to rust_language::print_typedef.
900 (rust_language): Delete la_print_typedef initializer.
901 (rust_language::print_typedef): New member function,
902 implementation from rust_print_typedef.
903 * typeprint.c (default_print_typedef): Delete.
904
d711ee67
AB
9052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
908 (ada_language::printstr): New member function.
909 * c-lang.c (c_language_data): Delete la_printstr initializer.
910 (cplus_language_data): Likewise.
911 (asm_language_data): Likewise.
912 (minimal_language_data): Likewise.
913 * d-lang.c (d_language_data): Likewise.
914 * f-lang.c (f_printstr): Rename to f_language::printstr.
915 (f_language_data): Delete la_printstr initializer.
916 (f_language::printstr): New member function, implementation from
917 f_printstr.
918 * go-lang.c (go_language_data): Delete la_printstr initializer.
919 * language.c (language_defn::printstr): Define new member
920 function.
921 (unk_lang_printstr): Delete.
922 (unknown_language_data): Delete la_printstr initializer.
923 (unknown_language::printstr): New member function.
924 (auto_language_data): Delete la_printstr initializer.
925 (auto_language::printstr): New member function.
926 * language.h (language_data): Delete la_printstr field.
927 (language_defn::printstr): Declare new member function.
928 (LA_PRINT_STRING): Update call to printstr.
929 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
930 (m2_language_data): Delete la_printstr initializer.
931 (m2_language::printstr): New member function, implementation from
932 m2_printstr.
933 * objc-lang.c (objc_language_data): Delete la_printstr
934 initializer.
935 * opencl-lang.c (opencl_language_data): Likewise.
936 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
937 (pascal_language_data): Delete la_printstr initializer.
938 (pascal_language::printstr): New member function, implementation
939 from pascal_printstr.
940 * p-lang.h (pascal_printstr): Delete declaration.
941 * rust-lang.c (rust_printstr): Update header comment.
942 (rust_language_data): Delete la_printstr initializer.
943 (rust_language::printstr): New member function.
944
52b50f2c
AB
9452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
948 (ada_language::printchar): New member function.
949 * c-lang.c (c_language_data): Delete la_printchar initializer.
950 (cplus_language_data): Likewise.
951 (asm_language_data): Likewise.
952 (minimal_language_data): Likewise.
953 * d-lang.c (d_language_data): Likewise.
954 * f-lang.c (f_printchar): Rename to f_language::printchar.
955 (f_language_data): Delete la_printchar initializer.
956 (f_language::printchar): New member function, implementation from
957 f_printchar.
958 * go-lang.c (go_language_data): Delete la_printchar initializer.
959 * language.c (unk_lang_printchar): Delete.
960 (language_defn::printchar): Define new member function.
961 (unknown_language_data): Delete la_printchar initializer.
962 (unknown_language::printchar): New member function.
963 (auto_language_data): Delete la_printchar initializer.
964 (auto_language::printchar): New member function.
965 * language.h (language_data): Delete la_printchar field.
966 (language_defn::printchar): Declare new member function.
967 (LA_PRINT_CHAR): Update call to printchar.
968 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
969 (m2_language::printchar): New member function.
970 * objc-lang.c (objc_language_data): Delete la_printchar
971 initializer.
972 * opencl-lang.c (opencl_language_data): Likewise.
973 * p-lang.c (pascal_language_data): Delete la_printchar
974 initializer.
975 (pascal_language::printchar): New member function.
976 * rust-lang.c (rust_printchar): Rename to
977 rust_language::printchar.
978 (rust_language_data): Delete la_printchar initializer.
979 (rust_language::printchar): New member function, implementation
980 from rust_printchar.
981
ec8cec5b
AB
9822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
985 (ada_language_data): Delete la_emitchar initializer.
986 (ada_language::emitchar): New member function, implementation from
987 emit_char.
988 * c-lang.c (c_language_data): Delete la_emitchar initializer.
989 (cplus_language_data): Likewise.
990 (asm_language_data): Likewise.
991 (minimal_language_data): Likewise.
992 * d-lang.c (d_language_data): Likewise.
993 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
994 (f_language_data): Delete la_emitchar initializer.
995 (f_language::emitchar): New member function, implementation from
996 f_emit_char.
997 * go-lang.c (go_language_data): Delete la_emitchar initializer.
998 * language.c (unk_lang_emit_char): Delete.
999 (language_defn::emitchar): New member function definition.
1000 (unknown_language_data): Delete la_emitchar initializer.
1001 (unknown_language::emitchar): New member function.
1002 (auto_language_data): Delete la_emitchar initializer.
1003 (auto_language::emitchar): New member function.
1004 * language.h (language_data): Delete la_emitchar field.
1005 (language_defn::emitchar): New member field declaration.
1006 (LA_EMIT_CHAR): Update call to emitchar.
1007 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1008 (m2_language_data): Delete la_emitchar initializer.
1009 (m2_language::emitchar): New member function, implementation from
1010 m2_emit_char.
1011 * objc-lang.c (objc_language_data): Delete la_emitchar
1012 initializer.
1013 * opencl-lang.c (opencl_language_data): Likewise.
1014 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1015 (pascal_language_data): Delete la_emitchar initializer.
1016 (pascal_language::emitchar): New member function, implementation
1017 from pascal_emit_char.
1018 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1019 (rust_language_data): Delete la_emitchar initializer.
1020 (rust_language::emitchar): New member function, implementation
1021 from rust_emitchar.
1022
1bf9c363
AB
10232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1026 (ada_language_data): Delete la_post_parser initializer.
1027 (ada_language::post_parser): New member function.
1028 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1029 (cplus_language_data): Likewise.
1030 (asm_language_data): Likewise.
1031 (minimal_language_data): Likewise.
1032 * d-lang.c (d_language_data): Likewise.
1033 * f-lang.c (f_language_data): Likewise.
1034 * go-lang.c (go_language_data): Likewise.
1035 * language.c (unknown_language_data): Likewise.
1036 (auto_language_data): Likewise.
1037 * language.h (language_data): Delete la_post_parser field.
1038 (language_defn::post_parser): New member function.
1039 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1040 * objc-lang.c (objc_language_data): Likewise.
1041 * opencl-lang.c (opencl_language_data): Likewise.
1042 * p-lang.c (pascal_language_data): Likewise.
1043 * parse.c (parse_exp_in_context): Update call to post_parser.
1044 (null_post_parser): Delete definition.
1045 * parser-defs.h (null_post_parser): Delete declaration.
1046 * rust-lang.c (rust_language_data): Delete la_post_parser
1047 initializer.
1048
87afa652
AB
10492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * ada-lang.c (parse): Rename to ada_language::parser.
1052 (ada_language_data): Delete la_parser initializer.
1053 (ada_language::parser): New member function, implementation from
1054 parse.
1055 * c-lang.c (c_language_data): Delete la_parser initializer.
1056 (cplus_language_data): Likewise.
1057 (asm_language_data): Likewise.
1058 (minimal_language_data): Likewise.
1059 * d-lang.c (d_language_data): Likewise.
1060 (d_language::parser): New member function.
1061 * f-lang.c (f_language_data): Delete la_parser initializer.
1062 (f_language::parser): New member function.
1063 * go-lang.c (go_language_data): Delete la_parser initializer.
1064 (go_language::parser): New member function.
1065 * language.c (unk_lang_parser): Delete.
1066 (language_defn::parser): Define new member function.
1067 (unknown_language_data): Delete la_parser initializer.
1068 (unknown_language::parser): New member function.
1069 (auto_language_data): Delete la_parser initializer.
1070 (auto_language::parser): New member function.
1071 * language.h (language_data): Delete la_parser field.
1072 (language_defn::parser): Declare new member function.
1073 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1074 (m2_language::parser): New member function.
1075 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1076 * opencl-lang.c (opencl_language_data): Likewise.
1077 * p-lang.c (pascal_language_data): Likewise.
1078 (pascal_language::parser): New member function.
1079 * parse.c (parse_exp_in_context): Update call to parser.
1080 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1081 (rust_language::parser): New member function.
1082
37825800
AB
10832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * top.c (print_gdb_configuration): Print --with-python-libdir
1086 configuration value.
1087
5b860c93
PW
10882020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1089
1090 * NEWS: Mention change to the alias command.
1091
cf00cd6f
PW
10922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1093
1094 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1095 (alias_command_completer)
1096 (make_alias_options_def_group): New functions.
1097 (alias_opts, alias_option_defs): New struct and array.
1098 (alias_usage_error): Update usage.
1099 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1100 Use option framework.
1101 (_initialize_cli_cmds): Update alias command help.
1102 Update aliases command help.
1103 (show_user):
1104 Add NULL for new default_args lookup_cmd argument.
1105 (valid_command_p): Rename to validate_aliased_command.
1106 Add NULL for new default_args lookup_cmd argument. Verify that the
1107 aliased_command has no default args.
1108 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1109 (lookup_cmd_1, lookup_cmd): New argument default_args.
1110 (add_alias_cmd):
1111 Add NULL for new default_args lookup_cmd argument.
1112 (print_help_for_command): Show default args under the layout
1113 alias some_alias = some_aliased_cmd some_alias_default_arg.
1114 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1115 xfree default_args in destructor.
1116 * cli/cli-script.c (process_next_line, do_define_command):
1117 Add NULL for new default_args lookup_cmd argument.
1118 * command.h: Declare new default_args argument in lookup_cmd
1119 and lookup_cmd_1.
1120 * completer.c (complete_line_internal_1):
1121 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1122 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1123 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1124 Likewise.
1125 * infcmd.c (_initialize_infcmd): Likewise.
1126 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1127 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1128 * python/py-param.c (add_setshow_generic): Likewise.
1129 * remote.c (_initialize_remote): Likewise.
1130 * top.c (execute_command): Prepend default_args if command has some.
1131 (set_verbose):
1132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1133 * tracepoint.c (validate_actionline, encode_actions_1):
1134 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1135
bd920864
TBA
11362020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1137
1138 * jit.c (jit_read_descriptor): Use bool as the return type.
1139 (jit_breakpoint_re_set_internal): Use bool as the return type.
1140 Invert the return value logic; return true if the jit breakpoint
1141 has been successfully initialized.
1142 (jit_inferior_init): Update the call to
1143 jit_breakpoint_re_set_internal.
1144
f8098322
PA
11452020-06-22 Pedro Alves <palves@redhat.com>
1146
1147 PR gdb/25939
1148 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1149 Use the current inferior instead. Don't return
1150 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1151 wait again.
1152 * sol-thread.c (sol_thread_target::wait): Don't reference
1153 inferior_ptid.
1154 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1155 (sol_update_thread_list_callback): Use the current inferior's pid
1156 instead of inferior_ptid.
1157
196535a6
RO
11582020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1159
1160 * procfs.c: Cleanup many comments.
1161
1162 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1163 (AFTER_WATCHFLAG): Replace by value.
1164
1165 (MAIN_PROC_NAME_FORMAT): Inline ...
1166 (create_procinfo): ... here.
1167
1168 (procfs_debug_inferior): Remove SYS_exec handling.
1169 (syscall_is_exec): Likewise.
1170 (procfs_set_exec_trap): Likewise.
1171
1172 (syscall_is_lwp_exit): Inline in callers.
1173 (syscall_is_exit): Likewise.
1174 (syscall_is_exec): Likewise.
1175 (syscall_is_lwp_create): Likewise.
1176
1177 (invalidate_cache): Remove #if 0 code.
1178
1179 (make_signal_thread_runnable): Remove.
1180 (procfs_target::resume): Remove #if 0 code.
1181
cf6f3e86
RO
11822020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183
1184 PR gdb/25939
1185 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1186 call ...
1187 (procfs_target::create_inferior): ... here.
1188
48e9cc84
PW
11892020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1190
1191 * exec.c (validate_exec_file): Ensure the build-id is up to
1192 date by calling reopen_exec_file (that checks file timestamp
1193 to decide to re-read the file).
1194
3922b302
PA
11952020-06-18 Pedro Alves <palves@redhat.com>
1196
1197 PR gdb/25412
1198 * gdbthread.h (delete_thread, delete_thread_silent)
1199 (find_thread_ptid): Update comments.
1200 * thread.c (current_thread_): New global.
1201 (is_current_thread): Move higher, and reimplement.
1202 (inferior_thread): Reimplement.
1203 (set_thread_exited): Use bool. Add assertions.
1204 (add_thread_silent): Simplify thread-reuse handling by always
1205 calling delete_thread.
1206 (delete_thread): Remove intro comment.
1207 (find_thread_ptid): Skip exited threads.
1208 (switch_to_thread_no_regs): Write to current_thread_.
1209 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1210 INFERIOR_PTID. Clear current_thread_.
1211
6dbdab44
PA
12122020-06-18 Pedro Alves <palves@redhat.com>
1213
1214 * aix-thread.c (pd_update): Use switch_to_thread.
1215
2da4b788
PA
12162020-06-18 Pedro Alves <palves@redhat.com>
1217
1218 * ravenscar-thread.c (ravenscar_thread_target): Update.
1219 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1220 (ravenscar_thread_target::add_active_thread): ... this. Don't
1221 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1222 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1223
50838d1b
PA
12242020-06-18 Pedro Alves <palves@redhat.com>
1225
1226 * nat/windows-nat.c (current_windows_thread): Remove.
1227 * nat/windows-nat.h (current_windows_thread): Remove.
1228 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1229 Adjust.
1230 (display_selectors): Adjust to fetch the current
1231 windows_thread_info based on inferior_ptid.
1232 (fake_create_process): No longer write to current_windows_thread.
1233 (windows_nat_target::get_windows_debug_event):
1234 Don't set inferior_ptid or current_windows_thread.
1235 (windows_nat_target::wait): Adjust to not rely on
1236 current_windows_thread.
1237 (do_initial_windows_stuff): Now a method of windows_nat_target.
1238 Switch to the last_ptid thread.
1239 (windows_nat_target::attach): Adjust.
1240 (windows_nat_target::detach): Use switch_to_no_thread instead of
1241 writing to inferior_ptid directly.
1242 (windows_nat_target::create_inferior): Adjust.
1243
31ce04e9
PA
12442020-06-18 Pedro Alves <palves@redhat.com>
1245
1246 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1247
1ee1a363
PA
12482020-06-18 Pedro Alves <palves@redhat.com>
1249
1250 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1251 after creating it, instead of writing to inferior_ptid. Don't
1252 write to inferior_ptid.
1253
6d350754
PA
12542020-06-18 Pedro Alves <palves@redhat.com>
1255
1256 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1257
5d971d48
PA
12582020-06-18 Pedro Alves <palves@redhat.com>
1259
1260 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1261 it, instead of writing to inferior_ptid.
1262
86e57d1b
PA
12632020-06-18 Pedro Alves <palves@redhat.com>
1264
1265 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1266 to inferior_ptid.
1267
f2e1c129
PA
12682020-06-18 Pedro Alves <palves@redhat.com>
1269
1270 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1271 instead of writing to inferior_ptid directly.
1272
60db1b85
PA
12732020-06-18 Pedro Alves <palves@redhat.com>
1274
1275 * corelow.c (core_target::close): Use switch_to_no_thread instead
1276 of writing to inferior_ptid directly.
1277 (add_to_thread_list, core_target_open): Use switch_to_thread
1278 instead of writing to inferior_ptid directly.
1279
fe7d6a8d
PA
12802020-06-18 Pedro Alves <palves@redhat.com>
1281
1282 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1283 inferior_ptid.
1284 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1285 inferior_ptid.
1286 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1287 inferior_ptid directly.
1288 (darwin_nat_target::init_thread_list): Switch to thread, instead
1289 of writing to inferior_ptid.
1290 (darwin_nat_target::attach): Don't write to inferior_ptid.
1291 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1292
975f8708
PA
12932020-06-18 Pedro Alves <palves@redhat.com>
1294
1295 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1296 thread.
1297 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1298 Instead use switch_to_thread.
1299 (gnu_nat_target::detach): Use switch_to_no_thread
1300 instead of writing to inferior_ptid directly. Used passed-in
1301 inferior instead of looking up the inferior by pid.
1302
1a204730
PA
13032020-06-18 Pedro Alves <palves@redhat.com>
1304
1305 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1306 inferior_ptid.
1307
ebe84f23
PA
13082020-06-18 Pedro Alves <palves@redhat.com>
1309
1310 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1311 inferior_ptid.
1312 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1313 thread.
1314 (nto_procfs_target::detach): Avoid referencing
1315 inferior_ptid. Use switch_to_no_thread instead of writing to
1316 inferior_ptid directly.
1317 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1318 instead of writing to inferior_ptid directly.
1319 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1320 to thread.
1321
191f02e5
PA
13222020-06-18 Pedro Alves <palves@redhat.com>
1323
1324 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1325 after creating it, instead of writing to inferior_ptid.
1326 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1327 to inferior_ptid directly.
1328 (gdbsim_target::wait): Don't write to inferior_ptid.
1329
0ac55310
PA
13302020-06-18 Pedro Alves <palves@redhat.com>
1331
1332 * remote.c (remote_target::remote_notice_new_inferior): Use
1333 switch_to_thread instead of writing to inferior_ptid directly.
1334 (remote_target::add_current_inferior_and_thread): Use
1335 switch_to_no_thread instead of writing to inferior_ptid directly.
1336 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1337 and switch_to_thread instead of using set_current_inferior or
1338 writing to inferior_ptid directly.
1339
5233f39b
PA
13402020-06-18 Pedro Alves <palves@redhat.com>
1341
1342 * tracectf.c (ctf_target_open): Switch to added thread instead of
1343 writing to inferior_ptid directly.
1344 (ctf_target::close): Use switch_to_no_thread instead of writing to
1345 inferior_ptid directly.
1346
087e161b
PA
13472020-06-18 Pedro Alves <palves@redhat.com>
1348
1349 * tracefile-tfile.c (tfile_target_open): Don't write to
1350 inferior_ptid directly, instead switch to added thread.
1351 (tfile_target::close): Use switch_to_no_thread instead of writing
1352 to inferior_ptid directly.
1353
7fb43e53
PA
13542020-06-18 Pedro Alves <palves@redhat.com>
1355
1356 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1357 (procfs_target::detach): Use switch_to_no_thread
1358 instead of writing to inferior_ptid directly.
1359 (do_attach): Change return type to void. Switch to the added
1360 thread.
1361 (procfs_target::create_inferior): Switch to the added thread.
1362 (procfs_do_thread_registers): Don't write to inferior_ptid.
1363
18493a00
PA
13642020-06-18 Pedro Alves <palves@redhat.com>
1365
1366 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1367 of writing to inferior_ptid.
1368 (scoped_restore_exited_inferior): Delete.
1369 (handle_vfork_child_exec_or_exit): Simplify using
1370 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1371 instead of writing to inferior_ptid.
1372 (THREAD_STOPPED_BY): Delete.
1373 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1374 (thread_stopped_by_hw_breakpoint): Delete.
1375 (save_waitstatus): Use
1376 scoped_restore_current_thread+switch_to_thread, and call
1377 target_stopped_by_watchpoint instead of
1378 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1379 instead of thread_stopped_by_sw_breakpoint, and
1380 target_stopped_by_hw_breakpoint instead of
1381 thread_stopped_by_hw_breakpoint.
1382 (handle_inferior_event)
1383 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1384 inferior_ptid directly, nor
1385 set_current_inferior/set_current_program_space. Use
1386 switch_to_thread / switch_to_inferior_no_thread instead.
1387
a0776b13
PA
13882020-06-18 Pedro Alves <palves@redhat.com>
1389
1390 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1391 instead of writing to inferior_ptid.
1392
6155c136
PA
13932020-06-18 Pedro Alves <palves@redhat.com>
1394
1395 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1396 added thread.
1397 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1398 to the added thread.
1399 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1400 instead of writing to inferior_ptid.
1401
c5316fc6
PA
14022020-06-18 Pedro Alves <palves@redhat.com>
1403
1404 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1405 (register_to_value_test): Mock a program_space too. Heap-allocate
1406 the address space. Don't write to inferior_ptid. Use
1407 switch_to_thread instead.
1408
8df01799
PA
14092020-06-18 Pedro Alves <palves@redhat.com>
1410
1411 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1412 Delete.
1413 (find_signalled_thread()): New, factored out from
1414 linux_make_corefile_notes and adjusted to handle exited threads.
1415 (linux_make_corefile_notes): Adjust to use the new
1416 find_signalled_thread.
1417
41792d68
PA
14182020-06-18 Pedro Alves <palves@redhat.com>
1419
1420 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1421 of saving/restoring inferior_ptid.
1422
612f258a
TT
14232020-06-17 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1426 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1427 declare.
1428 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1429
efb763a5
SM
14302020-06-15 Simon Marchi <simon.marchi@efficios.com>
1431
1432 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1433 of partial symtabs.
1434
2951f6c0
SM
14352020-06-17 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * regformats/reg-arm.dat: Remove.
1438 * regformats/reg-bfin.dat: Remove.
1439 * regformats/reg-cris.dat: Remove.
1440 * regformats/reg-crisv32.dat: Remove.
1441 * regformats/reg-m32r.dat: Remove.
1442 * regformats/reg-tilegx.dat: Remove.
1443 * regformats/reg-tilegx32.dat: Remove.
1444
7d458ea5
SM
14452020-06-17 Simon Marchi <simon.marchi@efficios.com>
1446
1447 * features/Makefile (WHICH): Remove arm files.
1448 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1449 * regformats/arm/arm-with-neon.dat: Remove.
1450 * regformats/arm/arm-with-vfpv2.dat: Remove.
1451 * regformats/arm/arm-with-vfpv3.dat: Remove.
1452
3af96c0d
SM
14532020-06-17 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * features/Makefile (XMLTOC): Remove rx.xml.
1456
b25e22fd
PA
14572020-06-17 Pedro Alves <palves@redhat.com>
1458
1459 * gdbthread.h (thread_control_state) <trap_expected> Update
1460 comments.
1461
a78a19b1
AB
14622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1465 ada_language::lookup_symbol_nonlocal.
1466 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1467 (ada_language::lookup_symbol_nonlocal): New member function,
1468 implementation from ada_lookup_symbol_nonlocal.
1469 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1470 initializer.
1471 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1472 initializer.
1473 (cplus_language::lookup_symbol_nonlocal): New member function.
1474 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1475 (minimal_language_data) Likewise.
1476 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1477 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1478 initializer.
1479 (d_language::lookup_symbol_nonlocal): New member function.
1480 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1481 initializer.
1482 (f_language::lookup_symbol_nonlocal): New member function.
1483 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1484 initializer.
1485 * language.c (unknown_language_data): Likewise.
1486 (auto_language_data): Likewise.
1487 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1488 field.
1489 (language_defn::lookup_symbol_nonlocal): New member function.
1490 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1491 initializer.
1492 * objc-lang.c (objc_language_data): Likewise.
1493 * opencl-lang.c (opencl_language_data): Likewise.
1494 * p-lang.c (pascal_language_data): Likewise.
1495 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1496 rust_language::lookup_symbol_nonlocal.
1497 (rust_language_data): Delete la_lookup_symbol_nonlocal
1498 initializer.
1499 (rust_language::lookup_symbol_nonlocal): New member function,
1500 implementation from rust_lookup_symbol_nonlocal.
1501 * symtab.c (lookup_symbol_aux): Update call to
1502 lookup_symbol_nonlocal.
1503 (basic_lookup_symbol_nonlocal): Rename to...
1504 (language_defn::lookup_symbol_nonlocal): ...this, and update
1505 header comment. Remove language_defn parameter, and replace with
1506 uses of `this'.
1507 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1508
ebe2334e
AB
15092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1512 initializer.
1513 (ada_language::value_print_inner): New member function.
1514 * c-lang.c (c_language_data): Delete la_value_print_inner
1515 initializer.
1516 (cplus_language_data): Likewise.
1517 (asm_language_data): Likewise.
1518 (minimal_language_data): Likewise.
1519 * d-lang.c (d_language_data): Likewise.
1520 (d_language::value_print_inner): New member function.
1521 * f-lang.c (f_language_data): Delete la_value_print_inner
1522 initializer.
1523 (f_language::value_print_inner): New member function.
1524 * f-lang.h (f_value_print_innner): Rename to...
1525 (f_value_print_inner): ...this (note spelling of 'inner').
1526 * f-valprint.c (f_value_print_innner): Rename to...
1527 (f_value_print_inner): ...this (note spelling of 'inner').
1528 * go-lang.c (go_language_data): Delete la_value_print_inner
1529 initializer.
1530 (go_language::value_print_inner): New member function.
1531 * language.c (language_defn::value_print_inner): Define new member
1532 function.
1533 (unk_lang_value_print_inner): Delete.
1534 (unknown_language_data): Delete la_value_print_inner initializer.
1535 (unknown_language::value_print_inner): New member function.
1536 (auto_language_data): Delete la_value_print_inner initializer.
1537 (auto_language::value_print_inner): New member function.
1538 * language.h (language_data): Delete la_value_print_inner field.
1539 (language_defn::value_print_inner): Delcare new member function.
1540 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1541 initializer.
1542 (m2_language::value_print_inner): New member function.
1543 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1544 initializer.
1545 * opencl-lang.c (opencl_language_data): Likewise.
1546 * p-lang.c (pascal_language_data): Likewise.
1547 (pascal_language::value_print_inner): New member function.
1548 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1549 initializer.
1550 (rust_language::value_print_inner): New member function.
1551 * valprint.c (do_val_print): Update call to value_print_inner.
1552
a1d1fa3e
AB
15532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * ada-lang.c (ada_language_data): Delete la_value_print
1556 initializer.
1557 (ada_language::value_print): New member function.
1558 * c-lang.c (c_language_data): Delete la_value_print initializer.
1559 (cplus_language_data): Likewise.
1560 (asm_language_data): Likewise.
1561 (minimal_language_data): Likewise.
1562 * d-lang.c (d_language_data): Likewise.
1563 * f-lang.c (f_language_data): Likewise.
1564 * go-lang.c (go_language_data): Likewise.
1565 * language.c (unk_lang_value_print): Delete.
1566 (language_defn::value_print): Define new member function.
1567 (unknown_language_data): Delete la_value_print initializer.
1568 (unknown_language::value_print): New member function.
1569 (auto_language_data): Delete la_value_print initializer.
1570 (auto_language::value_print): New member function.
1571 * language.h (language_data): Delete la_value_print field.
1572 (language_defn::value_print): Declare new member function.
1573 (LA_VALUE_PRINT): Update call to value_print.
1574 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1575 * objc-lang.c (objc_language_data): Likewise.
1576 * opencl-lang.c (opencl_language_data): Likewise.
1577 * p-lang.c (pascal_language_data): Likewise.
1578 (pascal_language::value_print): New member function.
1579 * rust-lang.c (rust_language_data): Delete la_value_print
1580 initializer.
1581
f16a9f57
AB
15822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * ada-lang.c (ada_watch_location_expression): Rename to
1585 ada_language::watch_location_expression.
1586 (ada_language_data): Delete la_watch_location_expression
1587 initializer.
1588 (ada_language::watch_location_expression): New member function,
1589 implementation from ada_watch_location_expression.
1590 * breakpoint.c (watch_command_1): Update call to
1591 watch_location_expression.
1592 * c-lang.c (c_watch_location_expression): Rename to
1593 language_defn::watch_location_expression.
1594 (c_language_data): Delete la_watch_location_expression
1595 initializer.
1596 (cplus_language_data): Likewise.
1597 (asm_language_data): Likewise.
1598 (minimal_language_data): Likewise.
1599 * c-lang.h (c_watch_location_expression): Delete declaration.
1600 * d-lang.c (d_language_data): Delete la_watch_location_expression
1601 initializer.
1602 * f-lang.c (f_language_data): Likewise.
1603 * go-lang.c (go_language_data): Likewise.
1604 * language.c (language_defn::watch_location_expression): Member
1605 function implementation from c_watch_location_expression.
1606 (unknown_language_data): Delete la_watch_location_expression
1607 initializer.
1608 (auto_language_data): Likewise.
1609 * language.h (language_data): Delete la_watch_location_expression
1610 field.
1611 (language_defn::watch_location_expression): Declare new member
1612 function.
1613 * m2-lang.c (m2_language_data): Delete
1614 la_watch_location_expression initializer.
1615 * objc-lang.c (objc_language_data): Likewise.
1616 * opencl-lang.c (opencl_language_data): Likewise.
1617 * p-lang.c (pascal_language_data): Likewise.
1618 * rust-lang.c (rust_watch_location_expression): Rename to
1619 rust_language::watch_location_expression.
1620 (rust_language_data): Delete la_watch_location_expression
1621 initializer.
1622 (rust_language::watch_location_expression): New member function,
1623 implementation from rust_watch_location_expression.
1624
7e56227d
AB
16252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1626
1627 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1628 ada_language::collect_symbol_completion_matches.
1629 (ada_language_data): Delete la_collect_symbol_completion_matches
1630 initializer.
1631 (ada_language::collect_symbol_completion_matches): New member
1632 function, implementation from
1633 ada_collect_symbol_completion_matches.
1634 * c-lang.c (c_language_data): Delete
1635 la_collect_symbol_completion_matches initializer.
1636 (cplus_language_data): Likewise.
1637 (asm_language_data): Likewise.
1638 (minimal_language_data): Likewise.
1639 * d-lang.c (d_language_data): Likewise.
1640 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1641 f_language::collect_symbol_completion_matches.
1642 (f_language_data): Delete la_collect_symbol_completion_matches
1643 initializer.
1644 (f_language::collect_symbol_completion_matches) New member
1645 function, implementation from f_collect_symbol_completion_matches.
1646 * go-lang.c (go_language_data): Delete
1647 la_collect_symbol_completion_matches initializer.
1648 * language.c (unknown_language_data): Likewise.
1649 (auto_language_data): Likewise.
1650 * language.h (language_data): Delete
1651 la_collect_symbol_completion_matches field.
1652 (language_defn::collect_symbol_completion_matches): New member
1653 function.
1654 * m2-lang.c (m2_language_data): Delete
1655 la_collect_symbol_completion_matches initializer.
1656 * objc-lang.c (objc_language_data): Likewise.
1657 * opencl-lang.c (opencl_language_data): Likewise.
1658 * p-lang.c (pascal_language_data): Likewise.
1659 * rust-lang.c (rust_language_data): Likewise.
1660 * symtab.c (default_collect_symbol_completion_matches): Delete.
1661 (collect_symbol_completion_matches): Update call to
1662 collect_symbol_completion_matches.
1663 (collect_symbol_completion_matches_type): Likewise.
1664 * symtab.h (default_collect_symbol_completion_matches): Delete
1665 declaration.
1666
53fc67f8
AB
16672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1670 (ada_language_data): Delete la_word_break_characters initializer.
1671 (ada_language::word_break_characters): New member function.
1672 * c-lang.c (c_language_data): Delete la_word_break_characters
1673 initializer.
1674 (cplus_language_data): Likewise.
1675 (asm_language_data): Likewise.
1676 (minimal_language_data): Likewise.
1677 * completer.c: Update global comment.
1678 (advance_to_expression_complete_word_point): Update call to
1679 word_break_characters.
1680 (complete_files_symbols): Likewise.
1681 (complete_line_internal_1): Likewise.
1682 (default_completer_handle_brkchars): Likewise.
1683 (skip_quoted_chars): Likewise.
1684 * d-lang.c (d_language_data): Delete la_word_break_characters
1685 initializer.
1686 * f-lang.c (f_word_break_characters): Delete.
1687 (f_language_data): Delete la_word_break_characters initializer.
1688 (f_language::word_break_characters): New member function.
1689 * go-lang.c (go_language_data): Delete la_word_break_characters
1690 initializer.
1691 * language.c (unknown_language_data): Likewise.
1692 (auto_language_data): Likewise.
1693 * language.h (default_word_break_characters): Move declaration to
1694 earlier in the file.
1695 (language_data): Delete la_word_break_characters field.
1696 (language_defn::word_break_characters): New member function.
1697 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1698 initializer.
1699 * objc-lang.c (objc_language_data): Likewise.
1700 * opencl-lang.c (opencl_language_data): Likewise.
1701 * p-lang.c (pascal_language_data): Likewise.
1702 * rust-lang.c (rust_language_data): Likewise.
1703
c9debfb9
AB
17042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1707 (ada_language_data): Delete la_get_symbol_name_matcher
1708 initializer.
1709 (language_defn::get_symbol_name_matcher_inner): New member
1710 function.
1711 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1712 initializer.
1713 (cplus_language_data): Likewise.
1714 (cplus_language::get_symbol_name_matcher_inner): New member
1715 function.
1716 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1717 (minimal_language_data): Likewise.
1718 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1719 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1720 initializer.
1721 * dictionary.c (iter_match_first_hashed): Update call to
1722 get_symbol_name_matcher.
1723 (iter_match_next_hashed): Likewise.
1724 (iter_match_next_linear): Likewise.
1725 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1726 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1727 initializer.
1728 (f_language::get_symbol_name_matcher_inner): New member function.
1729 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1730 initializer.
1731 * language.c (default_symbol_name_matcher): Update header comment,
1732 make static.
1733 (language_defn::get_symbol_name_matcher): New definition.
1734 (language_defn::get_symbol_name_matcher_inner): Likewise.
1735 (get_symbol_name_matcher): Delete.
1736 (unknown_language_data): Delete la_get_symbol_name_matcher
1737 initializer.
1738 (auto_language_data): Likewise.
1739 * language.h (language_data): Delete la_get_symbol_name_matcher
1740 field.
1741 (language_defn::get_symbol_name_matcher): New member function.
1742 (language_defn::get_symbol_name_matcher_inner): Likewise.
1743 (default_symbol_name_matcher): Delete declaration.
1744 * linespec.c (find_methods): Update call to
1745 get_symbol_name_matcher.
1746 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1747 initializer.
1748 * minsyms.c (lookup_minimal_symbol): Update call to
1749 get_symbol_name_matcher.
1750 (iterate_over_minimal_symbols): Likewise.
1751 * objc-lang.c (objc_language_data): Delete
1752 la_get_symbol_name_matcher initializer.
1753 * opencl-lang.c (opencl_language_data): Likewise.
1754 * p-lang.c (pascal_language_data): Likewise.
1755 * psymtab.c (psymbol_name_matches): Update call to
1756 get_symbol_name_matcher.
1757 * rust-lang.c (rust_language_data): Delete
1758 la_get_symbol_name_matcher initializer.
1759 * symtab.c (symbol_matches_search_name): Update call to
1760 get_symbol_name_matcher.
1761 (compare_symbol_name): Likewise.
1762
9a49ad8c
AB
17632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * ada-lang.c (ada_language_data): Delete la_compute_program
1766 initializer.
1767 * c-lang.c (c_language_data): Likewise.
1768 (c_language::compute_program): New member function.
1769 (cplus_language_data): Delete la_compute_program initializer.
1770 (cplus_language::compute_program): New member function.
1771 (asm_language_data): Delete la_compute_program initializer.
1772 (minimal_language_data): Likewise.
1773 * c-lang.h (c_compute_program): Update comment.
1774 (cplus_compute_program): Likewise.
1775 * compile/compile-c-support.c (c_compute_program): Likewise.
1776 (cplus_compute_program): Likewise.
1777 * compile/compile.c (compile_to_object): Update call to
1778 la_compute_program.
1779 * d-lang.c (d_language_data): Delete la_compute_program
1780 initializer.
1781 * f-lang.c (f_language_data): Likewise.
1782 * go-lang.c (go_language_data): Likewise.
1783 * language.c (unknown_language_data): Likewise.
1784 (auto_language_data): Likewise.
1785 * language.h (language_data): Delete la_compute_program field.
1786 (language_defn::compute_program): New member function.
1787 * m2-lang.c (m2_language_data): Delete la_compute_program
1788 initializer.
1789 * objc-lang.c (objc_language_data): Likewise.
1790 * opencl-lang.c (opencl_language_data): Likewise.
1791 * p-lang.c (pascal_language_data): Likewise.
1792 * rust-lang.c (rust_language_data): Likewise.
1793
eff93b4d
AB
17942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * ada-lang.c (ada_language_data) Delete
1797 la_class_name_from_physname initializer.
1798 * c-lang.c (c_language_data): Likewise.
1799 (cplus_language_data): Likewise.
1800 (cplus_language::class_name_from_physname): New member function.
1801 (asm_language_data): Delete la_class_name_from_physname
1802 initializer.
1803 (minimal_language_data): Likewise.
1804 * d-lang.c (d_language_data): Likewise.
1805 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1806 method on language_defn class.
1807 (guess_full_die_structure_name): Likewise.
1808 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1809 initializer.
1810 * go-lang.c (go_language_data): Likewise.
1811 * language.c (language_class_name_from_physname): Delete.
1812 (unk_lang_class_name): Delete.
1813 (unknown_language_data): Delete la_class_name_from_physname
1814 initializer.
1815 (auto_language_data): Likewise.
1816 * language.h (language_data): Delete la_class_name_from_physname
1817 field.
1818 (language_defn::class_name_from_physname): New function.
1819 (language_class_name_from_physname): Delete declaration.
1820 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1821 initializer.
1822 * objc-lang.c (objc_language_data): Likewise.
1823 * opencl-lang.c (opencl_language_data): Likewise.
1824 * p-lang.c (pascal_language_data): Likewise.
1825 * rust-lang.c (rust_language_data): Likewise.
1826
de543742
TT
18272020-06-16 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-data.h (STATUS_NAME): New macro.
1830 * tui/tui-layout.c (tui_remove_some_windows)
1831 (initialize_known_windows, tui_register_window)
1832 (tui_layout_split::remove_windows, initialize_layouts)
1833 (tui_new_layout_command): Don't use hard-coded window names.
1834
a350efd4
TT
18352020-06-16 Tom Tromey <tom@tromey.com>
1836
1837 PR tui/25348:
1838 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1839 tui_initialize_readline. Only run once. Call rl_initialize.
1840 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1841 tui_initialize_readline.
1842 * tui/tui-io.c (tui_setup_io): Call
1843 tui_ensure_readline_initialized.
1844 * tui/tui-interp.c (tui_interp::init): Update.
1845
39ec0490
TT
18462020-06-16 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1849 Also preserve the status window.
1850
d2d1ea20
TT
18512020-06-16 Tom Tromey <tom@tromey.com>
1852
1853 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1854 where m_window==nullptr.
1855
66920317
TT
18562020-06-15 Tom Tromey <tromey@adacore.com>
1857
1858 * windows-nat.c (windows_nat::handle_output_debug_string):
1859 Update.
1860 (windows_nat::handle_ms_vc_exception): Update.
1861 * target.h (target_read_string): Change API.
1862 * target.c (target_read_string): Change API.
1863 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1864 Update.
1865 * solib-frv.c (frv_current_sos): Update.
1866 * solib-dsbt.c (dsbt_current_sos): Update.
1867 * solib-darwin.c (darwin_current_sos): Update.
1868 * linux-thread-db.c (inferior_has_bug): Update.
1869 * expprint.c (print_subexp_standard): Update.
1870 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1871 (ada_exception_message_1): Update.
1872
a5d871dd
TT
18732020-06-15 Tom Tromey <tromey@adacore.com>
1874
1875 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1876
670e35fa
TT
18772020-06-15 Tom Tromey <tromey@adacore.com>
1878
1879 * valprint.c (read_string): Update comment.
1880 * target.c (MIN): Remove.
1881 (target_read_string): Rewrite.
1882
f5272a3b
TT
18832020-06-15 Tom Tromey <tromey@adacore.com>
1884
1885 * corefile.c (read_memory_string): Remove.
1886 * ada-valprint.c (ada_value_print_ptr): Update.
1887 * ada-lang.h (ada_tag_name): Change return type.
1888 * ada-lang.c (type_from_tag): Update.
1889 (ada_tag_name_from_tsd): Change return type. Use
1890 target_read_string.
1891 (ada_tag_name): Likewise.
1892 * gdbcore.h (read_memory_string): Don't declare.
1893
2c074f49
HD
18942020-06-14 Hannes Domani <ssbssa@yahoo.de>
1895
1896 * symtab.c (rbreak_command): Ignore Windows drive colon.
1897
6a17d503
SM
18982020-06-12 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * NEWS: Mention removed GDBserver host support.
1901
453c733f
NC
19022020-06-12 Nelson Chu <nelson.chu@sifive.com>
1903
1904 * features/riscv/rebuild-csr-xml.sh: Updated.
1905
2b4e6a3f
TT
19062020-06-11 Tom Tromey <tom@tromey.com>
1907
1908 PR gdb/18318:
1909 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1910
4412332f
JG
19112020-06-09 Jonny Grant <jg@jguk.org>
19122020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * main.c (captured_main_1): Don't print new line after help.
1915 (print_gdb_help): add mailing list and IRC channel information
1916 to --help. Add new lines between items in the footer. Remove
1917 quotes around bug url.
1918
2f33032a
KS
19192020-06-11 Keith Seitz <keiths@redhat.com>
1920
1921 PR gdb/21356
1922 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1923 Resolve typedefs for type length calculations.
1924
7ab96794
TV
19252020-06-10 Tom de Vries <tdevries@suse.de>
1926
1927 PR ada/24713
1928 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1929 (write_psymbols): Enable .gdb_index for ada.
1930 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1931 ada.
1932
e5f3ece2
TV
19332020-06-10 Tom de Vries <tdevries@suse.de>
1934
1935 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1936 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1937 namei" instead of "const char *name" argument.
1938 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1939 dw2_symtab_iter_init.
1940
940da03e
SM
19412020-06-08 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1944 to use type::field and field::type instead.
1945
b6cdac4b
SM
19462020-06-08 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1949 to use field::type instead.
1950
5d14b6e5
SM
19512020-06-08 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (struct field) <type, set_type>: New methods.
1954 Rename `type` field to...
1955 <m_type>: ... this. Change references throughout to use type or
1956 set_type methods.
1957 (FIELD_TYPE): Use field::type. Change call sites that modify
1958 the field's type to use field::set_type instead.
1959
3d967001
SM
19602020-06-08 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1963 to use type::index_type instead.
1964
262abc0d
SM
19652020-06-08 Simon Marchi <simon.marchi@efficios.com>
1966
1967 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1968 methods.
1969 (TYPE_INDEX_TYPE): Use type::index_type.
1970 * gdbtypes.c (create_array_type_with_stride): Likewise.
1971
82836c92
TT
19722020-06-07 Tom Tromey <tom@tromey.com>
1973
1974 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1975 parameter.
1976 (generic_value_print): Update.
1977
940dace9
AB
19782020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 Revert commit 982a38f60b0.
1981 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1982
982a38f6
AB
19832020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1986 avoid use after free.
1987
82f06518
TV
19882020-06-05 Tom de Vries <tdevries@suse.de>
1989
1990 * NEWS: Fix typos.
1991
f8c41851
SM
19922020-06-04 Simon Marchi <simon.marchi@efficios.com>
1993
1994 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1995 the per_bfd object.
1996 (dwarf2_read_debug_names): Likewise.
1997 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1998 object when re-using a per_bfd object with an index.
1999
f9b5d5ea
TV
20002020-06-03 Tom de Vries <tdevries@suse.de>
2001
2002 PR symtab/26046
2003 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2004 children for C++.
2005 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2006 DW_TAG_subprogram.
2007
f6eee2d0
AB
20082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_language_data): Delete skip_trampoline
2011 initializer.
2012 * c-lang.c (c_language_data): Likewise.
2013 (cplus_language_data): Likewise.
2014 (cplus_language::skip_trampoline): New member function.
2015 (asm_language_data): Delete skip_trampoline initializer.
2016 (minimal_language_data): Likewise.
2017 * d-lang.c (d_language_data): Likewise.
2018 * f-lang.c (f_language_data): Likewise.
2019 * go-lang.c (go_language_data): Likewise.
2020 * language.c (unk_lang_trampoline): Delete function.
2021 (skip_language_trampoline): Update.
2022 (unknown_language_data): Delete skip_trampoline initializer.
2023 (auto_language_data): Likewise.
2024 * language.h (language_data): Delete skip_trampoline field.
2025 (language_defn::skip_trampoline): New function.
2026 * m2-lang.c (m2_language_data): Delete skip_trampoline
2027 initializer.
2028 * objc-lang.c (objc_skip_trampoline): Delete function, move
2029 implementation to objc_language::skip_trampoline.
2030 (objc_language_data): Delete skip_trampoline initializer.
2031 (objc_language::skip_trampoline): New member function with
2032 implementation from objc_skip_trampoline.
2033 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2034 initializer.
2035 * p-lang.c (pascal_language_data): Likewise.
2036 * rust-lang.c (rust_language_data): Likewise.
2037
0a50df5d
AB
20382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2041 (ada_language::demangle): New member function.
2042 * c-lang.c (c_language_data): Delete la_demangle initializer.
2043 (cplus_language_data): Delete la_demangle initializer.
2044 (cplus_language::demangle): New member function.
2045 (asm_language_data): Delete la_demangle initializer.
2046 (minimal_language_data): Delete la_demangle initializer.
2047 * d-lang.c (d_language_data): Delete la_demangle initializer.
2048 (d_language::demangle): New member function.
2049 * f-lang.c (f_language_data): Delete la_demangle initializer.
2050 (f_language::demangle): New member function.
2051 * go-lang.c (go_language_data): Delete la_demangle initializer.
2052 (go_language::demangle): New member function.
2053 * language.c (language_demangle): Update.
2054 (unk_lang_demangle): Delete.
2055 (unknown_language_data): Delete la_demangle initializer.
2056 (unknown_language::demangle): New member function.
2057 (auto_language_data): Delete la_demangle initializer.
2058 (auto_language::demangle): New member function.
2059 * language.h (language_data): Delete la_demangle field.
2060 (language_defn::demangle): New function.
2061 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2062 * objc-lang.c (objc_language_data): Delete la_demangle
2063 initializer.
2064 (objc_language::demangle): New member function.
2065 * opencl-lang.c (opencl_language_data): Delete la_demangle
2066 initializer.
2067 * p-lang.c (pascal_language_data): Likewise.
2068 * rust-lang.c (rust_language_data): Likewise.
2069 (rust_language::demangle): New member function.
2070
fbfb0a46
AB
20712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2072
2073 * ada-lang.c (ada_language_data): Delete la_print_type
2074 initializer.
2075 (ada_language::print_type): New member function.
2076 * c-lang.c (c_language_data): Delete la_print_type initializer.
2077 (c_language::print_type): New member function.
2078 (cplus_language_data): Delete la_print_type initializer.
2079 (cplus_language::print_type): New member function.
2080 (asm_language_data): Delete la_print_type initializer.
2081 (asm_language::print_type): New member function.
2082 (minimal_language_data): Delete la_print_type initializer.
2083 (minimal_language::print_type): New member function.
2084 * d-lang.c (d_language_data): Delete la_print_type initializer.
2085 (d_language::print_type): New member function.
2086 * f-lang.c (f_language_data): Delete la_print_type initializer.
2087 (f_language::print_type): New member function.
2088 * go-lang.c (go_language_data): Delete la_print_type initializer.
2089 (go_language::print_type): New member function.
2090 * language.c (unk_lang_print_type): Delete.
2091 (unknown_language_data): Delete la_print_type initializer.
2092 (unknown_language::print_type): New member function.
2093 (auto_language_data): Delete la_print_type initializer.
2094 (auto_language::print_type): New member function.
2095 * language.h (language_data): Delete la_print_type field.
2096 (language_defn::print_type): New function.
2097 (LA_PRINT_TYPE): Update.
2098 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2099 (m2_language::print_type): New member function.
2100 * objc-lang.c (objc_language_data): Delete la_print_type
2101 initializer.
2102 (objc_language::print_type): New member function.
2103 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2104 to opencl_language::print_type.
2105 (opencl_language_data): Delete la_print_type initializer.
2106 (opencl_language::print_type): New member function, implementation
2107 from opencl_print_type.
2108 * p-lang.c (pascal_language_data): Delete la_print_type
2109 initializer.
2110 (pascal_language::print_type): New member function.
2111 * rust-lang.c (rust_print_type): Delete, implementation moved to
2112 rust_language::print_type.
2113 (rust_language_data): Delete la_print_type initializer.
2114 (rust_language::print_type): New member function, implementation
2115 from rust_print_type.
2116
6f827019
AB
21172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2120 implementation moves to...
2121 (ada_language::sniff_from_mangled_name): ...here. Update return
2122 type.
2123 (ada_language_data): Delete la_sniff_from_mangled_name
2124 initializer.
2125 * c-lang.c (c_language_data): Likewise.
2126 (cplus_language_data): Likewise.
2127 (cplus_language::sniff_from_mangled_name): New member function,
2128 implementation taken from gdb_sniff_from_mangled_name.
2129 (asm_language_data): Delete la_sniff_from_mangled_name
2130 initializer.
2131 (minimal_language_data): Likewise.
2132 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2133 implementation moves to cplus_language::sniff_from_mangled_name.
2134 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2135 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2136 moves to...
2137 (d_language::sniff_from_mangled_name): ...here.
2138 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2139 * f-lang.c (f_language_data): Likewise.
2140 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2141 moves to...
2142 (go_language::sniff_from_mangled_name): ...here.
2143 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2144 * language.c (language_sniff_from_mangled_name): Delete.
2145 (unknown_language_data): Delete la_sniff_from_mangled_name
2146 initializer.
2147 (auto_language_data): Likewise.
2148 * language.h (language_data): Delete la_sniff_from_mangled_name
2149 field.
2150 (language_defn::sniff_from_mangled_name): New function.
2151 (language_sniff_from_mangled_name): Delete declaration.
2152 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2153 field.
2154 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2155 implementation moves to...
2156 (objc_language::sniff_from_mangled_name): ...here.
2157 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2158 * opencl-lang.c (opencl_language_data): Likewise.
2159 * p-lang.c (pascal_language_data): Likewise.
2160 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2161 implementation moves to...
2162 (rust_language::sniff_from_mangled_name): ...here.
2163 (rust_language_data): Delete la_sniff_from_mangled_name
2164 initializer.
2165 * symtab.c (symbol_find_demangled_name): Call
2166 sniff_from_mangled_name member function.
2167
fb8006fd
AB
21682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2171 initializer.
2172 * c-lang.c (c_language_data): Likewise.
2173 (cplus_language_data): Likewise.
2174 (cplus_language::search_name_hash): New member function.
2175 (asm_language_data): Delete la_search_name_hash initializer.
2176 (minimal_language_data): Likewise.
2177 * d-lang.c (d_language_data): Likewise.
2178 * dictionary.c (default_search_name_hash): Rename to...
2179 (language_defn::search_name_hash): ...this.
2180 * f-lang.c (f_language_data): Likewise.
2181 (f_language::search_name_hash): New member function.
2182 * go-lang.c (go_language_data): Delete la_search_name_hash
2183 initializer.
2184 * language.c (unknown_language_data): Likewise.
2185 (auto_language_data): Likewise.
2186 * language.h (struct language_data): Delete la_search_name_hash
2187 field.
2188 (language_defn::search_name_hash): Declare new member function.
2189 (default_search_name_hash): Delete declaration.
2190 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2191 initializer.
2192 * objc-lang.c (objc_language_data): Likewise.
2193 * opencl-lang.c (opencl_language_data): Likewise.
2194 * p-lang.c (pascal_language_data): Likewise.
2195 * rust-lang.c (rust_language_data): Likewise.
2196 * symtab.c (search_name_hash): Update call.
2197
8e25bafe
AB
21982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2201 initializer.
2202 * c-lang.c (class compile_instance): Declare.
2203 (c_language_data): Delete la_get_compile_instance initializer.
2204 (c_language::get_compile_instance): New member function.
2205 (cplus_language_data): Delete la_get_compile_instance initializer.
2206 (cplus_language::get_compile_instance): New member function.
2207 (asm_language_data): Delete la_get_compile_instance initializer.
2208 (minimal_language_data): Likewise.
2209 * c-lang.h (c_get_compile_context): Update comment.
2210 (cplus_get_compile_context): Update comment.
2211 * compile/compile.c (compile_to_object): Update calls, don't rely
2212 on function pointer being NULL.
2213 * d-lang.c (d_language_data): Delete la_get_compile_instance
2214 initializer.
2215 * f-lang.c (f_language_data): Likewise.
2216 * go-lang.c (go_language_data): Likewise.
2217 * language.c (unknown_language_data): Likewise.
2218 (auto_language_data): Likewise.
2219 * language.h (language_data): Delete la_get_compile_instance field.
2220 (language_defn::get_compile_instance): New member function.
2221 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2222 initializer.
2223 * objc-lang.c (objc_language_data): Likewise.
2224 * opencl-lang.c (opencl_language_data): Likewise.
2225 * p-lang.c (pascal_language_data): Likewise.
2226 * rust-lang.c (rust_language_data): Likewise.
2227
4009ee92
AB
22282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * ada-lang.c (ada_add_all_symbols): Update comment.
2231 (ada_iterate_over_symbols): Delete, move implementation to...
2232 (ada_language::iterate_over_symbols): ...here, a new member
2233 function, rewrite to use range based for loop.
2234 (ada_language_data): Delete la_iterate_over_symbols initializer.
2235 * c-lang.c (c_language_data): Likewise.
2236 (cplus_language_data): Likewise.
2237 (asm_language_data): Likewise.
2238 (minimal_language_data): Likewise.
2239 * d-lang.c (d_language_data): Likewise.
2240 * f-lang.c (f_language_data): Likewise.
2241 * go-lang.c (go_language_data): Likewise.
2242 * language.c (unknown_language_data): Likewise.
2243 (auto_language_data): Likewise.
2244 * language.h (language_data): Delete la_iterate_over_symbols field.
2245 (language_defn::iterate_over_symbols): New member function.
2246 (LA_ITERATE_OVER_SYMBOLS): Update.
2247 * linespec.c (iterate_over_all_matching_symtabs): Update.
2248 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2249 initializer.
2250 * objc-lang.c (objc_language_data): Likewise.
2251 * opencl-lang.c (opencl_language_data): Likewise.
2252 * p-lang.c (pascal_language_data): Likewise.
2253 * rust-lang.c (rust_language_data): Likewise.
2254
54f4ca46
AB
22552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * ada-lang.c (ada_language_data): Delete
2258 la_lookup_transparent_type initializer.
2259 * c-lang.c (c_language_data): Likewise.
2260 (cplus_language_data): Likewise.
2261 (cplus_language::lookup_transparent_type): New member function.
2262 (asm_language_data): Delete la_lookup_transparent_type
2263 initializer.
2264 (minimal_language_data): Likewise.
2265 * d-lang.c (d_language_data): Likewise.
2266 * f-lang.c (f_language_data): Likewise.
2267 * go-lang.c (go_language_data): Likewise.
2268 * language.c (unknown_language_data): Likewise.
2269 (auto_language_data): Likewise.
2270 * language.h (struct language_data): Delete
2271 la_lookup_transparent_type field.
2272 (language_defn::lookup_transparent_type): New member function.
2273 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2274 initializer.
2275 * objc-lang.c (objc_language_data): Likewise.
2276 * opencl-lang.c (opencl_language_data): Likewise.
2277 * p-lang.c (pascal_language_data): Likewise.
2278 * rust-lang.c (rust_language_data): Likewise.
2279 * symtab.c (symbol_matches_domain): Update call.
2280
1fb314aa
AB
22812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * ada-lang.c (ada_language_arch_info): Delete function, move
2284 implementation to...
2285 (ada_language::language_arch_info): ...here, a new member
2286 function.
2287 (ada_language_data): Delete la_language_arch_info.
2288 * c-lang.c (c_language_data): Likewise.
2289 (c_language::language_arch_info): New member function.
2290 (cplus_language_arch_info): Delete function, move
2291 implementation to...
2292 (cplus_language::language_arch_info): ...here, a new member
2293 function.
2294 (cplus_language_data): Delete la_language_arch_info.
2295 (asm_language_data): Likewise.
2296 (asm_language::language_arch_info): New member function.
2297 (minimal_language_data): Delete la_language_arch_info.
2298 (minimal_language::language_arch_info): New member function.
2299 * d-lang.c (d_language_arch_info): Delete function, move
2300 implementation to...
2301 (d_language::language_arch_info): ...here, a new member
2302 function.
2303 (d_language_data): Delete la_language_arch_info.
2304 * f-lang.c (f_language_arch_info): Delete function, move
2305 implementation to...
2306 (f_language::language_arch_info): ...here, a new member
2307 function.
2308 (f_language_data): Delete la_language_arch_info.
2309 * go-lang.c (go_language_arch_info): Delete function, move
2310 implementation to...
2311 (go_language::language_arch_info): ...here, a new member
2312 function.
2313 (go_language_data): Delete la_language_arch_info.
2314 * language.c (unknown_language_data): Likewise.
2315 (unknown_language::language_arch_info): New member function.
2316 (auto_language_data): Delete la_language_arch_info.
2317 (auto_language::language_arch_info): New member function.
2318 (language_gdbarch_post_init): Update call to
2319 la_language_arch_info.
2320 * language.h (language_data): Delete la_language_arch_info
2321 function pointer.
2322 (language_defn::language_arch_info): New function.
2323 * m2-lang.c (m2_language_arch_info): Delete function, move
2324 implementation to...
2325 (m2_language::language_arch_info): ...here, a new member
2326 function.
2327 (m2_language_data): Delete la_language_arch_info.
2328 * objc-lang.c (objc_language_arch_info): Delete function, move
2329 implementation to...
2330 (objc_language::language_arch_info): ...here, a new member
2331 function.
2332 (objc_language_data): Delete la_language_arch_info.
2333 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2334 implementation to...
2335 (opencl_language::language_arch_info): ...here, a new member
2336 function.
2337 (opencl_language_data): Delete la_language_arch_info.
2338 * p-lang.c (pascal_language_arch_info): Delete function, move
2339 implementation to...
2340 (pascal_language::language_arch_info): ...here, a new member
2341 function.
2342 (pascal_language_data): Delete la_language_arch_info.
2343 * rust-lang.c (rust_language_arch_info): Delete function, move
2344 implementation to...
2345 (rust_language::language_arch_info): ...here, a new member
2346 function.
2347 (rust_language_data): Delete la_language_arch_info.
2348
48448202
AB
23492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2352 initializer.
2353 * c-lang.c (c_language_data): Likewise.
2354 (cplus_language_data): Likewise.
2355 (cplus_language::pass_by_reference_info): New method.
2356 (asm_language_data): Delete la_pass_by_reference initializer.
2357 (minimal_language_data): Likewise.
2358 * cp-abi.c (cp_pass_by_reference): Remove use of
2359 default_pass_by_reference.
2360 * d-lang.c (d_language_data): Likewise.
2361 * f-lang.c (f_language_data): Likewise.
2362 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2363 default_pass_by_reference.
2364 * go-lang.c (go_language_data): Likewise.
2365 * language.c (language_pass_by_reference): Update.
2366 (default_pass_by_reference): Delete.
2367 (unknown_language_data): Delete la_pass_by_reference
2368 initializer.
2369 (auto_language_data): Likewise.
2370 * language.h (struct language_data): Delete la_pass_by_reference
2371 field.
2372 (language_defn::pass_by_reference_info): New member function.
2373 (default_pass_by_reference): Delete declaration.
2374 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2375 initializer.
2376 * objc-lang.c (objc_language_data): Likewise.
2377 * opencl-lang.c (opencl_language_data): Likewise.
2378 * p-lang.c (pascal_language_data): Likewise.
2379 * rust-lang.c (rust_language_data): Likewise.
2380
15e5fd35
AB
23812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * ada-lang.c (ada_read_var_value): Delete function, move
2384 implementation to...
2385 (ada_language::read_var_value): ...here.
2386 (ada_language_data): Delete la_read_var_value initializer.
2387 * c-lang.c (c_language_data): Likewise.
2388 (cplus_language_data): Likewise.
2389 (minimal_language_data): Likewise.
2390 * d-lang.c (d_language_data): Likewise.
2391 * f-lang.c (f_language_data): Likewise.
2392 * findvar.c (default_read_var_value): Rename to...
2393 (language_defn::read_var_value): ...this.
2394 * findvar.c (read_var_value): Update header comment, and change to
2395 call member function instead of function pointer.
2396 * go-lang.c (go_language_data): Likewise.
2397 * language.c (unknown_language_data): Delete la_read_var_value
2398 initializer.
2399 (auto_language_data): Likewise.
2400 * language.h (struct language_data): Delete la_read_var_value
2401 field.
2402 (language_defn::read_var_value): New member function.
2403 (default_read_var_value): Delete declaration.
2404 * m2-lang.c (m2_language_data): Delete la_read_var_value
2405 initializer.
2406 * objc-lang.c (objc_language_data): Likewise.
2407 * opencl-lang.c (opencl_language_data): Likewise.
2408 * p-lang.c (pascal_language_data): Likewise.
2409 * rust-lang.c (rust_language_data): Likewise.
2410 * value.h (default_read_var_value): Delete declaration.
2411
5bd40f2a
AB
24122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * ada-lang.c (ada_print_array_index): Delete function, move
2415 implementation to...
2416 (ada_language::print_array_index): ...here.
2417 (ada_language_data): Delete la_print_array_index initializer.
2418 * c-lang.c (c_language_data): Likewise.
2419 (cplus_language_data): Likewise.
2420 (minimal_language_data): Likewise.
2421 * d-lang.c (d_language_data): Likewise.
2422 * f-lang.c (f_language_data): Likewise.
2423 * go-lang.c (go_language_data): Likewise.
2424 * language.c (default_print_array_index): Delete function, move
2425 implementation to...
2426 (language_defn::print_array_index): ...here.
2427 (unknown_language_data): Delete la_print_array_index initializer.
2428 (auto_language_data): Likewise.
2429 * language.h (struct language_data): Delete la_print_array_index
2430 field.
2431 (language_defn::print_array_index): New member function.
2432 (LA_PRINT_ARRAY_INDEX): Update.
2433 (default_print_array_index): Delete declaration.
2434 * m2-lang.c (m2_language_data): Delete la_print_array_index
2435 initializer.
2436 * objc-lang.c (objc_language_data): Likewise.
2437 * opencl-lang.c (opencl_language_data): Likewise.
2438 * p-lang.c (pascal_language_data): Likewise.
2439 * rust-lang.c (rust_language_data): Likewise.
2440
0874fd07
AB
24412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * gdb/ada-lang.c (ada_language_defn): Convert to...
2444 (ada_language_data): ...this.
2445 (class ada_language): New class.
2446 (ada_language_defn): New static global.
2447 * gdb/c-lang.c (c_language_defn): Convert to...
2448 (c_language_data): ...this.
2449 (class c_language): New class.
2450 (c_language_defn): New static global.
2451 (cplus_language_defn): Convert to...
2452 (cplus_language_data): ...this.
2453 (class cplus_language): New class.
2454 (cplus_language_defn): New static global.
2455 (asm_language_defn): Convert to...
2456 (asm_language_data): ...this.
2457 (class asm_language): New class.
2458 (asm_language_defn): New static global.
2459 (minimal_language_defn): Convert to...
2460 (minimal_language_data): ...this.
2461 (class minimal_language): New class.
2462 (minimal_language_defn): New static global.
2463 * gdb/d-lang.c (d_language_defn): Convert to...
2464 (d_language_data): ...this.
2465 (class d_language): New class.
2466 (d_language_defn): New static global.
2467 * gdb/f-lang.c (f_language_defn): Convert to...
2468 (f_language_data): ...this.
2469 (class f_language): New class.
2470 (f_language_defn): New static global.
2471 * gdb/go-lang.c (go_language_defn): Convert to...
2472 (go_language_data): ...this.
2473 (class go_language): New class.
2474 (go_language_defn): New static global.
2475 * gdb/language.c (unknown_language_defn): Remove declaration.
2476 (current_language): Initialize to nullptr, real initialization is
2477 moved to _initialize_language.
2478 (languages): Delete global.
2479 (language_defn::languages): Define.
2480 (set_language_command): Use language_defn::languages.
2481 (set_language): Likewise.
2482 (range_error): Likewise.
2483 (language_enum): Likewise.
2484 (language_def): Likewise.
2485 (add_set_language_command): Use language_def::languages for the
2486 language list, and language_def to lookup language pointers.
2487 (skip_language_trampoline): Use language_defn::languages.
2488 (unknown_language_defn): Convert to...
2489 (unknown_language_data): ...this.
2490 (class unknown_language): New class.
2491 (unknown_language_defn): New static global.
2492 (auto_language_defn): Convert to...
2493 (auto_language_data): ...this.
2494 (class auto_language): New class.
2495 (auto_language_defn): New static global.
2496 (language_gdbarch_post_init): Use language_defn::languages.
2497 (_initialize_language): Initialize current_language.
2498 * gdb/language.h (struct language_defn): Rename to...
2499 (struct language_data): ...this.
2500 (struct language_defn): New.
2501 (auto_language_defn): Delete.
2502 (unknown_language_defn): Delete.
2503 (minimal_language_defn): Delete.
2504 (ada_language_defn): Delete.
2505 (asm_language_defn): Delete.
2506 (c_language_defn): Delete.
2507 (cplus_language_defn): Delete.
2508 (d_language_defn): Delete.
2509 (f_language_defn): Delete.
2510 (go_language_defn): Delete.
2511 (m2_language_defn): Delete.
2512 (objc_language_defn): Delete.
2513 (opencl_language_defn): Delete.
2514 (pascal_language_defn): Delete.
2515 (rust_language_defn): Delete.
2516 * gdb/m2-lang.c (m2_language_defn): Convert to...
2517 (m2_language_data): ...this.
2518 (class m2_language): New class.
2519 (m2_language_defn): New static global.
2520 * gdb/objc-lang.c (objc_language_defn): Convert to...
2521 (objc_language_data): ...this.
2522 (class objc_language): New class.
2523 (objc_language_defn): New static global.
2524 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2525 (opencl_language_data): ...this.
2526 (class opencl_language): New class.
2527 (opencl_language_defn): New static global.
2528 * gdb/p-lang.c (pascal_language_defn): Convert to...
2529 (pascal_language_data): ...this.
2530 (class pascal_language): New class.
2531 (pascal_language_defn): New static global.
2532 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2533 language pointer, update comment format.
2534 * gdb/rust-lang.c (rust_language_defn): Convert to...
2535 (rust_language_data): ...this.
2536 (class rust_language): New class.
2537 (rust_language_defn): New static global.
2538
1313c56e
AB
25392020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2542 member variable.
2543 <m_stmt_at_address>: New member variable.
2544 (lnp_state_machine::record_line): Don't record some lines, update
2545 tracking of is_stmt at the same address.
2546 (lnp_state_machine::lnp_state_machine): Initialise new member
2547 variables.
2548
b7ed9f3d
ST
25492020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2550
2551 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2552 "-include gnu-nat-mig.h".
2553 * gnu-nat-mig.h: New file.
2554 * gnu-nat.c: Include "gnu-nat-mig.h".
2555 (exc_server, msg_reply_server, notify_server,
2556 process_reply_server): Remove declarations.
2557
14a8ad62
ST
25582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2559
2560 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2561 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2562 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2563 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2564 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2565 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2566 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2567 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2568 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2569 to gnu_nat_target class.
2570 * gnu-nat.c: Likewise.
2571 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2572 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2573 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2574 object.
2575 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2576 instead of `gnu_target'.
2577
0af5e106
ST
25782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2579
2580 * i386-gnu-tdep.c: Include "gdbcore.h"
2581 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2582 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2583 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2584 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2585 i386_gnu_sigcontext_addr): New functions
2586 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2587 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2588 tdep.
2589
078f2fc9
ST
25902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2591
2592 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2593 before fork_inferior call. Avoid calling it if target_is_pushed returns
2594 true.
2595
53dff92c
ST
25962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2597
2598 * gnu-nat.h (gnu_target): New variable declaration.
2599 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2600 gnu_target.
2601 * gnu-nat.c (gnu_target): New variable.
2602 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2603 add_thread_silent, and add_thread calls.
2604 (gnu_nat_target::create_inferior): Pass gnu_target to
2605 add_thread_silent, thread_change_ptid call.
2606 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2607 call.
2608
5a8b8627
ST
26092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2610
2611 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2612 (gnu_nat_target::find_memory_regions): Remove unused
2613 `old_address' variable.
2614
366f550a
ST
26152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2616
2617 * gnu-nat.c: Include "gdbarch.h".
2618
f14871bf
ST
26192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2620
2621 * reply_mig_hack.awk (Error return): Cast function through
2622 void *, to bypass compiler function call check.
2623
c6887cfb
ST
26242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2625
2626 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2627 $(srcdir)/reply_mig_hack.awk.
2628
6930bffe
ST
26292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2630
2631 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2632
112c22ed
JG
26332020-05-30 Jonny Grant <jg@jguk.org>
2634
2635 * configure.ac (ACX_BUGURL): change bug URL to https.
2636
f68f85b5
PA
26372020-05-30 Pedro Alves <palves@redhat.com>
2638
2639 * cp-support.c (replace_typedefs_template): New.
2640 (replace_typedefs_qualified_name): Handle
2641 DEMANGLE_COMPONENT_TEMPLATE.
2642
976ca316
SM
26432020-05-29 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2646 dwarf2/index-cache.h, dwarf2/index-write.c,
2647 dwarf2/index-write.h, dwarf2/line-header.c,
2648 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2649 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2650 variables and fields from `dwarf2_per_objfile` to just
2651 `per_objfile` throughout.
2652
989ade05
SM
26532020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2656 <push_dwarf_reg_entry_value>: Add comment.
2657
c47bae85
KB
26582020-05-28 Kevin Buettner <kevinb@redhat.com>
2659 Keith Seitz <keiths@redhat.com>
2660
2661 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2662 instead of PyEval_ReleaseLock.
2663 (class gdbpy_gil): Move to earlier in file.
2664 (finalize_python): Set gdb_python_initialized.
2665 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2666 when not initialized.
2667
44486dcf
SM
26682020-05-28 Simon Marchi <simon.marchi@efficios.com>
2669
2670 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2671 <push_dwarf_reg_entry_value>: Remove assert. Override
2672 per_objfile with caller_per_objfile.
2673
f030440d
TV
26742020-05-28 Tom de Vries <tdevries@suse.de>
2675
2676 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2677 PR gold/15646 workaround to symbol kind "type".
2678
f0fbb768
TT
26792020-05-27 Tom Tromey <tromey@adacore.com>
2680
2681 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2682
af0b2a3e
TT
26832020-05-27 Tom Tromey <tromey@adacore.com>
2684
2685 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2686 Use htab_find_with_hash.
2687 <add_abbrev>: Remove "abbrev_number" parameter.
2688 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2689 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2690 (hash_abbrev): Add comment.
2691 (abbrev_table::lookup_abbrev): Move to header file.
2692 (abbrev_table::read): Update.
2693
7d00ffec
TT
26942020-05-27 Tom Tromey <tromey@adacore.com>
2695
2696 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2697 method.
2698 <canonical_name>: New member.
2699 <raw_name>: Rename from "name".
2700 (partial_die_info): Initialize canonical_name.
2701 (scan_partial_symbols): Check raw_name.
2702 (partial_die_parent_scope, partial_die_full_name)
2703 (add_partial_symbol, add_partial_subprogram)
2704 (add_partial_enumeration, load_partial_dies): Use "name" method.
2705 (partial_die_info::name): New method.
2706 (partial_die_info::read, guess_partial_die_structure_name)
2707 (partial_die_info::fixup): Update.
2708
697bba18
TT
27092020-05-27 Tom Tromey <tromey@adacore.com>
2710
2711 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2712 <get_ref_die_offset>: Inline.
2713 <get_ref_die_offset_complaint>: New method.
2714 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2715 (attribute::get_ref_die_offset_complaint): Rename from
2716 get_ref_die_offset. Just issue complaint.
2717
c17ace43
HD
27182020-05-27 Hannes Domani <ssbssa@yahoo.de>
2719
2720 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2721
96445f0b
HD
27222020-05-27 Hannes Domani <ssbssa@yahoo.de>
2723
2724 * exec.c (exec_file_attach): Use errno value of first openp failure.
2725
ac637ec3
HD
27262020-05-27 Hannes Domani <ssbssa@yahoo.de>
2727
2728 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2729 Don't close thread handle.
2730
17ee85fc
TT
27312020-05-27 Tom Tromey <tom@tromey.com>
2732 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2735 shared_ptr.
2736 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2737 member.
2738 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2739 dwarf2_per_bfd_objfile_data_key>: New globals.
2740 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2741 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2742 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2743 shared.
2744 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2745 short-circuit when sharing.
2746 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2747 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2748
39b16f87
SM
27492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2752 to...
2753 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2754 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2755
fcf23d5b
SM
27562020-05-27 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2759 build_name_components, find_name_components_bounds>:
2760 Add per_objfile parameter.
2761 (struct mapped_index) <symbol_name_at>: Likewise.
2762 (struct mapped_debug_names): Remove constructor.
2763 <dwarf2_per_objfile>: Remove field.
2764 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2765 (mapped_index_base::find_name_components_bounds,
2766 mapped_index_base::build_name_components,
2767 dw2_expand_symtabs_matching_symbol): Likewise.
2768 (class mock_mapped_index) <symbol_name_at>: Likewise.
2769 (check_match): Likewise.
2770 (check_find_bounds_finds): Likewise.
2771 (test_mapped_index_find_name_component_bounds): Update.
2772 (CHECK_MATCH): Update.
2773 (dw2_expand_symtabs_matching): Update.
2774 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2775 per_objfile parameter.
2776 <find_vec_in_debug_names>: Likewise.
2777 <m_per_objfile>: New field.
2778 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2779 parameter.
2780 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2781 (dw2_debug_names_iterator::next): Update.
2782 (dw2_debug_names_lookup_symbol): Update.
2783 (dw2_debug_names_expand_symtabs_for_function): Update.
2784 (dw2_debug_names_map_matching_symbols): Update.
2785 (dw2_debug_names_expand_symtabs_matching): Update.
2786 (dwarf2_read_debug_names): Update.
2787
7188ed02
SM
27882020-05-27 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2791 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2792 move to dwarf2_per_objfile.
2793 <read_in_chain>: Remove.
2794 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2795 remove_all_cus, age_comp_units>: New methods.
2796 <m_dwarf2_cus>: New member.
2797 (struct dwarf2_per_cu_data) <cu>: Remove.
2798 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2799 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2800 moved to methods of dwarf2_per_objfile.
2801 (dwarf2_clear_marks): Remove.
2802 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2803 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2804 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2805 (dwarf2_per_objfile::remove_all_cus): New.
2806 (class free_cached_comp_units) <~free_cached_comp_units>:
2807 Update.
2808 (load_cu): Update.
2809 (dw2_do_instantiate_symtab): Adjust.
2810 (fill_in_sig_entry_from_dwo_entry): Adjust.
2811 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2812 (cutu_reader::cutu_reader): Likewise.
2813 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2814 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2815 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2816 and dwarf2_per_objfile::age_comp_units.
2817 (load_partial_comp_unit): Update.
2818 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2819 (process_queue): Likewise.
2820 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2821 backlink.
2822 (dwarf2_read_addr_index): Likewise.
2823 (follow_die_offset): Likewise.
2824 (dwarf2_fetch_die_loc_sect_off): Likewise.
2825 (dwarf2_fetch_constant_bytes): Likewise.
2826 (dwarf2_fetch_die_type_sect_off): Likewise.
2827 (follow_die_sig_1): Likewise.
2828 (load_full_type_unit): Likewise.
2829 (read_signatured_type): Likewise.
2830 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2831 (dwarf2_cu::~dwarf2_cu): Remove.
2832 (dwarf2_per_objfile::get_cu): New.
2833 (dwarf2_per_objfile::set_cu): New.
2834 (age_cached_comp_units): Rename to...
2835 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2836 to std::unordered_map.
2837 (free_one_cached_comp_unit): Rename to...
2838 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2839 to std::unordered_map.
2840 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2841 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2842 a dwarf2_per_objfile in data.
2843 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2844 (dwarf2_clear_marks): Remove.
2845
2e671100
SM
28462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2849 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2850 (init_tu_and_read_dwo_dies): Likewise.
2851 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2852 (cutu_reader::cutu_reader): Likewise.
2853 (load_partial_comp_unit): Likewise.
2854 (process_psymtab_comp_unit): Update.
2855 (build_type_psymtabs_1): Update.
2856 (process_skeletonless_type_unit): Update.
2857 (load_full_comp_unit): Update.
2858 (find_partial_die): Update.
2859 (dwarf2_read_addr_index): Update.
2860 (read_signatured_type): Update.
2861
2e6a9f79
SM
28622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2865 m_header_read_in>: New fields.
2866 <get_header>: New method.
2867 * dwarf2/read.c (per_cu_header_read_in): Remove.
2868 (dwarf2_per_cu_data::get_header): New.
2869 (dwarf2_per_cu_data::addr_size): Update.
2870 (dwarf2_per_cu_data::offset_size): Update.
2871 (dwarf2_per_cu_data::ref_addr_size): Update.
2872
1b555f17
SM
28732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2876 (dw2_do_instantiate_symtab): Update.
2877 (queue_and_load_all_dwo_tus): Change parameter from
2878 dwarf2_per_cu_data to dwarf2_cu.
2879 (dwarf2_fetch_die_loc_sect_off): Update.
2880 (dwarf2_fetch_constant_bytes): Update.
2881 (dwarf2_fetch_die_type_sect_off): Update.
2882
8fc0b21d
SM
28832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * dwarf2/read.c (process_full_comp_unit,
2886 process_full_type_unit): Remove per_cu, per_objfile paramters.
2887 Add dwarf2_cu parameter.
2888 (process_queue): Update.
2889
168c9250
SM
28902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2891
2892 * dwarf2/read.c (create_cu_from_index_list): Replace
2893 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2894 (create_cus_from_index_list): Likewise.
2895 (create_cus_from_index): Likewise.
2896 (create_signatured_type_table_from_index): Likewise.
2897 (create_cus_from_debug_names_list): Likewise.
2898 (create_cus_from_debug_names): Likewise.
2899 (dwarf2_read_gdb_index): Update.
2900 (dwarf2_read_debug_names): Update.
2901
e286671b
TT
29022020-05-27 Tom Tromey <tom@tromey.com>
2903 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * dwarf2/read.h (struct dwarf2_per_objfile)
2906 <get_type_for_signatured_type, set_type_for_signatured_type>:
2907 New methods.
2908 <m_type_map>: New member.
2909 (struct signatured_type) <type>: Remove.
2910 * dwarf2/read.c
2911 (dwarf2_per_objfile::get_type_for_signatured_type,
2912 dwarf2_per_objfile::set_type_for_signatured_type): New.
2913 (get_signatured_type): Use new methods.
2914
8adb8487
TT
29152020-05-27 Tom Tromey <tom@tromey.com>
2916 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2919 (struct dwarf2_per_objfile) <type_units>: New member.
2920 <get_type_unit_group_unshareable>: New method.
2921 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2922 num_symtabs, symtabs>: Remove; move to
2923 type_unit_group_unshareable.
2924 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2925 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2926 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2927
127bbf4b
SM
29282020-05-27 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * dwarf2/read.h (struct dwarf2_per_cu_data):
2931 <dwarf2_per_objfile>: Remove.
2932 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2933 dwarf2_per_objfile.
2934 (create_signatured_type_table_from_index): Likewise.
2935 (create_signatured_type_table_from_debug_names): Likewise.
2936 (create_debug_type_hash_table): Likewise.
2937 (fill_in_sig_entry_from_dwo_entry): Likewise.
2938 (create_type_unit_group): Likewise.
2939 (read_comp_units_from_section): Likewise.
2940 (create_cus_hash_table): Likewise.
2941
f6e649dd
SM
29422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2945 dwarf2_per_cu_data::dwarf2_per_objfile.
2946 (compute_compunit_symtab_includes): Likewise.
2947 (dwarf2_cu::start_symtab): Likewise.
2948
aa66c379
SM
29492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2950
2951 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2952 parameter.
2953 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2954 (read_namespace_alias): Update.
2955 (lookup_die_type): Update.
2956 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2958 Update.
2959 (disassemble_dwarf_expression): Update.
2960
120ce1b5
SM
29612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * dwarf2/read.h (struct dwarf2_queue_item): Add
2964 dwarf2_per_objfile parameter, assign new parameter.
2965 <per_objfile>: New field.
2966 * dwarf2/read.c (free_one_cached_comp_unit): Add
2967 dwarf2_per_objfile parameter.
2968 (queue_comp_unit): Likewise.
2969 (dw2_do_instantiate_symtab): Update.
2970 (process_psymtab_comp_unit): Update.
2971 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2972 (process_imported_unit_die): Update.
2973 (queue_and_load_dwo_tu): Update.
2974 (follow_die_offset): Update.
2975 (follow_die_sig_1): Update.
2976
9f47c707
SM
29772020-05-27 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2980 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2981 (read_call_site_scope): Assign per_objfile.
2982 (dwarf2_per_cu_data::objfile): Remove.
2983 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2984 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2985 dwarf2_per_objfile parameter.
2986 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2987 dwarf2_per_objfile parameter.
2988 (dwarf_expr_reg_to_entry_parameter): Add output
2989 dwarf2_per_objfile parameter.
2990 (locexpr_get_frame_base): Update.
2991 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2992 <push_dwarf_reg_entry_value>: Update.
2993 <call_site_to_target_addr>: Update.
2994 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2995 parameter.
2996 (value_of_dwarf_reg_entry): Update.
2997 (rw_pieced_value): Update.
2998 (indirect_synthetic_pointer): Update.
2999 (dwarf2_evaluate_property): Update.
3000 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3001 parameter.
3002 (locexpr_read_variable): Update.
3003 (locexpr_get_symbol_read_needs): Update.
3004 (loclist_read_variable): Update.
3005
14095eb3
SM
30062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3009 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3010 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3011 parameter.
3012 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3013 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3014 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3015 parameter.
3016 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3017 sect_variable_value): Add dwarf2_per_objfile parameter.
3018 (class dwarf_evaluate_loc_desc) <dwarf_call,
3019 dwarf_variable_value>: Update.
3020 (fetch_const_value_from_synthetic_pointer): Add
3021 dwarf2_per_objfile parameter.
3022 (fetch_const_value_from_synthetic_pointer): Update.
3023 (coerced_pieced_ref): Update.
3024 (class symbol_needs_eval_context) <dwarf_call,
3025 dwarf_variable_value>: Update.
3026 (dwarf2_compile_expr_to_ax): Update.
3027
3c3cd3d4
SM
30282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3031 parameter.
3032 (dwarf2_evaluate_loc_desc_full): Update.
3033
82ca3f51
SM
30342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3037 parameter.
3038 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3039 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3040 dwarf2_per_objfile parameter.
3041 (decode_debug_loc_dwo_addresses): Likewise.
3042 (dwarf2_find_location_expression): Update.
3043 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3044 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3045 parameter.
3046 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3047 parameter.
3048 (locexpr_describe_location_1): Likewise.
3049 (locexpr_describe_location): Update.
3050
4b167ea1
SM
30512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3054 Remove.
3055 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3056 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3057 (dwarf2_compile_property_to_c): Update.
3058 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3059 use text offset from objfile.
3060 (locexpr_tracepoint_var_ref): Update.
3061 (locexpr_generate_c_location): Update.
3062 (loclist_describe_location): Update.
3063 (loclist_tracepoint_var_ref): Update.
3064 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3065 dwarf2_per_objfile parameter.
3066 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3067 use text offset from objfile.
3068 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3069
89b07335
SM
30702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * dwarf2/expr.h (struct dwarf_expr_context)
3073 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3074 <offset>: Remove.
3075 <per_objfile>: New member.
3076 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3077 dwarf2_per_objfile parameter. Don't set offset, set
3078 per_objfile.
3079 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3080 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3081 a dwarf2_per_objfile object instead of an offset.
3082 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3083 constructor.
3084 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3085 to dwarf2_expr_executor constructor. Don't set offset.
3086 (dwarf2_fetch_cfa_info): Update.
3087 (struct dwarf2_frame_cache) <text_offset>: Remove.
3088 <per_objfile>: New field.
3089 (dwarf2_frame_cache): Update.
3090 (dwarf2_frame_prev_register): Update.
3091 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3092 <dwarf_evaluate_loc_desc>: Add constructor.
3093 (dwarf2_evaluate_loc_desc_full): Update.
3094 (dwarf2_locexpr_baton_eval): Update.
3095 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3096 Add constructor.
3097 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3098
293e7e51
SM
30992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3100
3101 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3102 addr_sized_int_type>: Move to dwarf2_cu.
3103 <int_type>: Move to dwarf2_per_objfile.
3104 (struct dwarf2_per_objfile) <int_type>: Move here.
3105 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3106 addr_sized_int_type>: Move here.
3107 (read_func_scope): Update.
3108 (read_array_type): Update.
3109 (read_tag_string_type): Update.
3110 (attr_to_dynamic_prop): Update.
3111 (dwarf2_per_cu_data::int_type): Rename to...
3112 (dwarf2_per_objfile::int_type): ... this.
3113 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3114 (dwarf2_cu::addr_sized_int_type): ... this.
3115 (read_subrange_type): Update.
3116 (dwarf2_per_cu_data::addr_type): Rename to...
3117 (dwarf2_cu::addr_type): ... this.
3118 (set_die_type): Update.
3119
64874a40
SM
31202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3123 data through per_cu->cu.
3124
4ab09049
SM
31252020-05-27 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3128 dwarf2_per_cu_data parameter fo dwarf2_cu.
3129 (lookup_dwo_type_unit): Likewise.
3130 (read_cutu_die_from_dwo): Likewise.
3131 (lookup_dwo_unit): Likewise.
3132 (open_and_init_dwo_file): Likewise.
3133 (lookup_dwo_cutu): Likewise.
3134 (lookup_dwo_comp_unit): Likewise.
3135 (lookup_dwo_type_unit): Likewise.
3136 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3137 (cutu_reader::cutu_reader): Update.
3138
47b14e86
SM
31392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3142 parameter.
3143 (process_full_type_unit): Likewise.
3144 (process_queue): Update.
3145
43182c09
SM
31462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * dwarf2/read.c (recursively_compute_inclusions): Add
3149 dwarf2_per_objfile parameter.
3150 (compute_compunit_symtab_includes): Likewise.
3151 (process_cu_includes): Update.
3152
7aa104c4
SM
31532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3156 parameter.
3157 (create_type_unit_group): Update.
3158 (process_psymtab_comp_unit_reader): Update.
3159 (build_type_psymtabs_reader): Update.
3160
e3beb21d
SM
31612020-05-27 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3164 object through m_this_cu->cu.
3165
d460f660
SM
31662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3167
3168 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3169 the info parameter.
3170 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3171
ab432490
SM
31722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3173
3174 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3175 per_objfile parameter.
3176 (load_full_type_unit): Add per_objfile parameter.
3177 (read_signatured_type): Likewise.
3178 (load_full_comp_unit): Likewise.
3179 (load_cu): Likewise.
3180 (dw2_do_instantiate_symtab): Likewise.
3181 (dw2_get_file_names): Likewise.
3182 (dw2_map_symtabs_matching_filename): Update.
3183 (dw_expand_symtabs_matching_file_matcher): Update.
3184 (dw2_map_symbol_filenames): Update.
3185 (process_psymtab_comp_unit): Add per_objfile parameter.
3186 (build_type_psymtabs_1): Update.
3187 (process_skeletonless_type_unit): Update.
3188 (dwarf2_build_psymtabs_hard): Update.
3189 (load_partial_comp_unit): Add per_objfile parameter.
3190 (scan_partial_symbols): Update.
3191 (load_full_comp_unit): Add per_objfile parameter.
3192 (process_imported_unit_die): Update.
3193 (create_cus_hash_table): Update.
3194 (find_partial_die): Update.
3195 (dwarf2_read_addr_index): Update.
3196 (follow_die_offset): Update.
3197 (dwarf2_fetch_die_loc_sect_off): Update.
3198 (dwarf2_fetch_constant_bytes): Update.
3199 (dwarf2_fetch_die_type_sect_off): Update.
3200 (follow_die_sig_1): Update.
3201 (load_full_type_unit): Add per_objfile parameter.
3202 (read_signatured_type): Likewise.
3203
313bad1b
SM
32042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3207 of objfile_name.
3208
c3699833
SM
32092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3212 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3213 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3214 field.
3215 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3216 (create_cus_from_index): Update.
3217 (dwarf2_read_gdb_index): Update.
3218 (create_cus_from_debug_names): Update.
3219 (dwarf2_read_debug_names): Update.
3220 (get_abbrev_section_for_cu): Update.
3221 (create_all_comp_units): Update.
3222 (read_attribute_value): Update.
3223 (get_debug_line_section): Update.
3224 * dwarf2/index-cache.c (index_cache::store): Update.
3225 * dwarf2/index-write.c (save_gdb_index_command): Update.
3226 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3227
1859c670
SM
32282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3229
3230 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3231 member.
3232 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3233 dwarf2_per_cu_data::per_bfd.
3234 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3235 (create_type_unit_group): Likewise.
3236 (queue_comp_unit): Remove reference to
3237 per_cu->dwarf2_per_objfile.
3238 (maybe_queue_comp_unit): Likewise.
3239 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3240 (create_cus_hash_table): Assign new field.
3241
5e22e966
SM
32422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * dwarf2/read.c: Replace
3245 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3246 dwarf2_cu->per_objfile throughout.
3247
97a1449a
SM
32482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3251 parameter, don't use per_cu->dwarf2_per_objfile.
3252 (dw2_instantiate_symtab): Likewise.
3253 (dw2_find_last_source_symtab): Update.
3254 (dw2_map_expand_apply): Update.
3255 (dw2_lookup_symbol): Update.
3256 (dw2_expand_symtabs_for_function): Update.
3257 (dw2_expand_all_symtabs): Update.
3258 (dw2_expand_symtabs_with_fullname): Update.
3259 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3260 don't use per_cu->dwarf2_per_objfile.
3261 (dw2_expand_marked_cus): Update.
3262 (dw2_find_pc_sect_compunit_symtab): Update.
3263 (dw2_debug_names_lookup_symbol): Update.
3264 (dw2_debug_names_expand_symtabs_for_function): Update.
3265 (dw2_debug_names_map_matching_symbols): Update.
3266 (dwarf2_psymtab::expand_psymtab): Update.
3267
9e021579
SM
32682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3271 <per_objfile>: New member.
3272 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3273 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3274 call to dwarf2_cu.
3275 (cutu_reader::cutu_reader): Update.
3276 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3277
ae090bdb
SM
32782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3281 struct dwarf2_per_objfile.
3282 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3283 dwarf2_per_bfd.
3284 * dwarf2/read.c (set_die_type): Update.
3285 (get_die_type_at_offset): Update.
3286
af758d11
SM
32872020-05-27 Tom Tromey <tom@tromey.com>
3288 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3291 method.
3292 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3293 get_symtab, set_symtab>: New methods.
3294 <m_symtabs>: New field.
3295 (struct dwarf2_psymtab): Derive from partial_symtab.
3296 <readin_p, get_compunit_symtab>: Declare methods.
3297 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3298 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3299 New methods.
3300 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3301 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3302 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3303 (dw2_symtab_iter_next, dw2_print_stats)
3304 (dw2_expand_symtabs_with_fullname)
3305 (dw2_expand_symtabs_matching_one)
3306 (dw_expand_symtabs_matching_file_matcher)
3307 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3308 (dw2_debug_names_iterator::next)
3309 (dw2_debug_names_map_matching_symbols)
3310 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3311 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3312 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3313 New methods.
3314 (get_compunit_symtab, process_full_comp_unit)
3315 (process_full_type_unit): Update.
3316 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3317
5989a64e
SM
33182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3319
3320 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3321 then introduce a new dwarf2_per_objfile type.
3322 <read_line_string>: Move to the new dwarf2_per_objfile type.
3323 <objfile>: Likewise.
3324 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3325 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3326 dwarf2_per_objfile->per_bfd.
3327 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3328 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3329 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3330 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3331 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3332 (dwarf2_per_objfile::locate_sections): Rename to...
3333 (dwarf2_per_bfd::locate_sections): ... this.
3334 (dwarf2_per_objfile::get_cutu): Rename to...
3335 (dwarf2_per_bfd::get_cutu): ... this.
3336 (dwarf2_per_objfile::get_cu): Rename to...
3337 (dwarf2_per_bfd::get_cu): ... this.
3338 (dwarf2_per_objfile::get_tu): Rename to...
3339 (dwarf2_per_bfd::get_tu): ... this.
3340 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3341 (dwarf2_per_bfd::allocate_per_cu): ... this.
3342 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3343 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3344 (get_gdb_index_contents_ftype): Change parameter from
3345 dwarf2_per_objfile to dwarf2_per_bfd.
3346 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3347 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3348
a50264ba
TT
33492020-05-27 Tom Tromey <tom@tromey.com>
3350 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3353 (allocate_piece_closure): Set "per_objfile" member.
3354 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3355 (locexpr_describe_location, loclist_describe_location): Use new
3356 member.
3357 * dwarf2/read.c (read_call_site_scope)
3358 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3359 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3360 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3361 handle_data_member_location): Set per_objfile member.
3362 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3363 member.
3364 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3365
d3473f0c
TT
33662020-05-27 Tom Tromey <tom@tromey.com>
3367
3368 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3369 allocate_signatured_type>: Declare new methods.
3370 <m_num_psymtabs>: New member.
3371 (struct dwarf2_per_cu_data) <index>: New member.
3372 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3373 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3374 (create_cu_from_index_list): Use allocate_per_cu.
3375 (create_signatured_type_table_from_index)
3376 (create_signatured_type_table_from_debug_names)
3377 (create_debug_type_hash_table, add_type_unit)
3378 (read_comp_units_from_section): Use allocate_signatured_type.
3379
5717c425
TT
33802020-05-27 Tom Tromey <tom@tromey.com>
3381
3382 * psymtab.c (partial_map_expand_apply)
3383 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3384 (psym_lookup_global_symbol_language)
3385 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3386 (psym_print_stats, psym_expand_symtabs_for_function)
3387 (psym_map_symbol_filenames, psym_map_matching_symbols)
3388 (psym_expand_symtabs_matching)
3389 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3390 (maintenance_check_psymtabs): Update.
3391 * psympriv.h (struct partial_symtab) <readin_p,
3392 get_compunit_symtab>: Add objfile parameter.
3393 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3394 Likewise.
3395 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3396 get_compunit_symtab>: Likewise.
3397 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3398
45940949
TT
33992020-05-27 Tom Tromey <tom@tromey.com>
3400
3401 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3402 member.
3403 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3404 (create_cu_from_index_list)
3405 (create_signatured_type_table_from_index)
3406 (create_signatured_type_table_from_debug_names)
3407 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3408 (dwarf2_create_include_psymtab)
3409 (create_debug_type_hash_table, add_type_unit)
3410 (create_type_unit_group, read_comp_units_from_section)
3411 (dwarf2_compute_name, create_cus_hash_table)
3412 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3413 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3414 obstack.
3415 (dw2_get_real_path): Likewise. Change argument to
3416 dwarf2_per_objfile.
3417
f8c6d152
LM
34182020-05-27 Luis Machado <luis.machado@linaro.org>
3419
3420 PR tdep/26000
3421 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3422 for ldrd (immediate).
3423
e98d2e6d
PW
34242020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3425
3426 * command.h: Add comment giving the name of class_tui.
3427 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3428 create the fake command for the help for class_tui.
3429
53a47a3e
TT
34302020-05-26 Tom Tromey <tromey@adacore.com>
3431
3432 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3433 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3434 (val_atr): New function.
3435 (value_val_atr): Use it.
3436 * ada-valprint.c (print_optional_low_bound): Change low bound
3437 handling for enums.
3438 (val_print_packed_array_elements): Don't call discrete_position.
3439 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3440 discrete_position for enum types.
3441 * language.c (default_print_array_index): Change type.
3442 * language.h (struct language_defn) <la_print_array_index>: Add
3443 index_type parameter, change type of index_value.
3444 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3445 (default_print_array_index): Update.
3446 * valprint.c (maybe_print_array_index): Don't call
3447 value_from_longest. Update.
3448 (value_print_array_elements): Don't call discrete_position.
3449
0bc2354b
TT
34502020-05-26 Tom Tromey <tromey@adacore.com>
3451
3452 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3453 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3454
1218a4bf
CDA
34552020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3456
3457 PR gdb/13519
3458 * avr-tdep.c (avr_integer_to_address): Return data or code
3459 address accordingly to the second 'type' argument of the
3460 function.
3461
92651b1d
MW
34622020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3463
3464 * infcmd.c, inferior.h: (construct_inferior_arguments):
3465 Moved function from here to gdbsupport/common-inferior.{h,cc}
3466
0a4f5f8c
TT
34672020-05-23 Tom Tromey <tom@tromey.com>
3468
3469 Revert commit eca1f90c:
3470 * NEWS: Remove entry for completion styling.
3471 * completer.c (_rl_completion_prefix_display_length): Move
3472 declaration later.
3473 (gdb_fnprint): Revert.
3474 (gdb_display_match_list_1): Likewise.
3475 * cli/cli-style.c (completion_prefix_style)
3476 (completion_difference_style, completion_suffix_style): Remove.
3477 (_initialize_cli_style): Revert.
3478 * cli/cli-style.h (completion_prefix_style)
3479 (completion_difference_style, completion_suffix_style): Don't
3480 declare.
3481
e08bd6c5
PA
34822020-05-24 Pedro Alves <palves@redhat.com>
3483
3484 * symtab.c (completion_list_add_name): Return boolean indication
3485 of whether the symbol matched.
3486 (completion_list_add_symbol): Don't try to remove C++ aliases if
3487 the symbol didn't match in the first place.
3488 * symtab.h (completion_list_add_name): Return bool.
3489
ceacbf6e
SM
34902020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3493 type::field.
3494
26f16254
JB
34952020-05-23 Joel Brobecker <brobecker@adacore.com>
3496
3497 GDB 9.2 released.
3498
eca1f90c
TT
34992020-05-23 Tom Tromey <tom@tromey.com>
3500
3501 * NEWS: Add entry for completion styling.
3502 * completer.c (_rl_completion_prefix_display_length): Move
3503 declaration earlier.
3504 (gdb_fnprint): Use completion_style.
3505 (gdb_display_match_list_1): Likewise.
3506 * cli/cli-style.c (completion_prefix_style)
3507 (completion_difference_style, completion_suffix_style): New
3508 globals.
3509 (_initialize_cli_style): Register new globals.
3510 * cli/cli-style.h (completion_prefix_style)
3511 (completion_difference_style, completion_suffix_style): Declare.
3512
51e2cfa2
PA
35132020-05-23 Pedro Alves <palves@redhat.com>
3514
3515 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3516 (parse_escape): Use ISDIGIT instead of isdigit.
3517 (puts_debug): Use gdb_isprint instead of isprint.
3518 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3519 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3520 ISSPACE instead of isspace.
3521 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3522 instead of isspace.
3523 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3524 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3525 instead of isxdigit and ISDIGIT instead of isdigit.
3526
80fc5e77
SM
35272020-05-22 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (struct type) <field>: New method.
3530 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3531 or type::field.
3532
3cabb6b0
SM
35332020-05-22 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3536 (TYPE_FIELDS): Use type::fields. Change all call sites that
3537 modify the propery to use type::set_fields instead.
3538
1f704f76
SM
35392020-05-22 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3542 type::num_fields instead.
3543
5e33d5f4
SM
35442020-05-22 Simon Marchi <simon.marchi@efficios.com>
3545
3546 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3547 methods.
3548 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3549 that modify the number of fields to use type::set_num_fields
3550 instead.
3551
9392ebb3
TT
35522020-05-22 Tom Tromey <tromey@adacore.com>
3553
3554 * compile/compile-object-load.h (munmap_list_free): Don't
3555 declare.
3556
7c13f4e8
AB
35572020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * annotate.c (annotate_source_line): Update return type, add call
3560 to update current symtab and line.
3561 * annotate.h (annotate_source_line): Update return type, and
3562 extend header comment.
3563 * source.c (info_line_command): Check annotation_level before
3564 calling annotate_source_line.
3565 * stack.c (print_frame_info): If calling annotate_source_line
3566 returns true, then don't print any other source line information.
3567
aa370940
SM
35682020-05-21 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3571
84d53fa9
SM
35722020-05-21 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * coffread.c (patch_type): Remove NULL check before xfree.
3575 * corefile.c (set_gnutarget): Likewise.
3576 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3577 * exec.c (build_section_table): Likewise.
3578 * remote.c (remote_target::pass_signals): Likewise.
3579 * utils.c (n_spaces): Likewise.
3580 * cli/cli-script.c (document_command): Likewise.
3581 * i386-windows-tdep.c (core_process_module_section): Likewise.
3582 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3583
9d428aae
SM
35842020-05-20 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * symfile.c (reread_symbols): Clear objfile's section_offsets
3587 vector and section indices, re-compute them by calling
3588 sym_offsets.
3589
250106a7
TT
35902020-05-20 Tom Tromey <tromey@adacore.com>
3591
3592 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3593 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3594
9a0bacfb
TV
35952020-05-20 Tom de Vries <tdevries@suse.de>
3596
3597 PR symtab/25833
3598 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3599
7b958a48
AM
36002020-05-20 Alan Modra <amodra@gmail.com>
3601
3602 PR 25993
3603 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3604 bfd_set_filename.
3605 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3606 passed to bfd_set_filename.
3607 * symfile-mem.c (add_vsyscall_page): Likewise for string
3608 passed to symbol_file_add_from_memory.
3609 (symbol_file_add_from_memory): Make name param a const char* and
3610 don't strdup.
3611
c7e97679
AM
36122020-05-20 Alan Modra <amodra@gmail.com>
3613
3614 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3615 rather than accessing bfd->filename directly.
3616 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3617 and use bfd_section_name.
3618 * dwarf2/frame.c (decode_frame_entry): Likewise.
3619 * exec.c (exec_set_section_address): Likewise.
3620 * solib-aix.c (solib_aix_bfd_open): Likewise.
3621 * stap-probe.c (get_stap_base_address): Likewise.
3622 * symfile.c (reread_symbols): Likewise.
3623
563c591b
TT
36242020-05-19 Tom Tromey <tromey@adacore.com>
3625
3626 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3627
f408d82c
SM
36282020-05-19 Simon Marchi <simon.marchi@efficios.com>
3629
3630 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3631
98c59b52
PA
36322020-05-19 Pedro Alves <palves@redhat.com>
3633
3634 * NEWS (set exec-file-mismatch): Adjust entry.
3635 * exec.c: Include "build-id.h".
3636 (validate_exec_file): Try to match build IDs instead of filenames.
3637 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3638 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3639 and pass down 'warn_if_slow'.
3640 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3641 gdb_bfd_open_closure to pass it down.
3642 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3643
4111f652
PA
36442020-05-19 Pedro Alves <palves@redhat.com>
3645
3646 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3647 * target.c (target_fileio_open_1): Rename to target_fileio_open
3648 and make extern. Use bool.
3649 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3650 (target_fileio_read_alloc_1): Adjust.
3651 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3652 (target_fileio_open_warn_if_slow): Delete declaration.
3653
ad80db5b
PA
36542020-05-19 Pedro Alves <palves@redhat.com>
3655
3656 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3657 Adjust all callers.
3658
1d6ce4d3
YS
36592020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3660
3661 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3662 whether disp is negative.
3663
9005fbbb
SM
36642020-05-19 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * symfile.h (struct symfile_segment_data)
3667 <~symfile_segment_data>: Remove.
3668 <segment_info>: Change to std::vector.
3669 * symfile.c (default_symfile_segments): Update.
3670 * elfread.c (elf_symfile_segments): Update.
3671
68b888ff
SM
36722020-05-19 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3675 <segments>: New.
3676 <segment_bases, segment_sizes>: Remove.
3677 * symfile.c (default_symfile_segments): Update.
3678 * elfread.c (elf_symfile_segments): Update.
3679 * remote.c (remote_target::get_offsets): Update.
3680 * solib-target.c (solib_target_relocate_section_addresses):
3681 Update.
3682
62982abd
SM
36832020-05-19 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * symfile.h (struct symfile_segment_data): Initialize fields.
3686 <~symfile_segment_data>: Add.
3687 (symfile_segment_data_up): New.
3688 (struct sym_fns) <sym_segments>: Return a
3689 symfile_segment_data_up.
3690 (default_symfile_segments): Return a symfile_segment_data_up.
3691 (free_symfile_segment_data): Remove.
3692 (get_symfile_segment_data): Return a symfile_segment_data_up.
3693 * symfile.c (default_symfile_segments): Likewise.
3694 (get_symfile_segment_data): Likewise.
3695 (free_symfile_segment_data): Remove.
3696 (symfile_find_segment_sections): Update.
3697 * elfread.c (elf_symfile_segments): Return a
3698 symfile_segment_data_up.
3699 * remote.c (remote_target::get_offsets): Update.
3700 * solib-target.c (solib_target_relocate_section_addresses):
3701 Update.
3702 * symfile-debug.c (debug_sym_segments): Return a
3703 symfile_segment_data_up.
3704
7f204339
RO
37052020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3706
e52a0f1b
RO
3707 PR build/25981
3708 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3709 Hardcode register numbers.
3710
7f204339
RO
3711 PR build/25981
3712 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3713 procfs_find_LDT_entry): Remove.
3714 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3715 procfs_find_LDT_entry): Remove.
3716 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3717 Remove.
3718
7f32a4d5
PA
37192020-05-17 Pedro Alves <palves@redhat.com>
3720 Andrew Burgess <andrew.burgess@embecosm.com>
3721 Keno Fischer <keno@juliacomputing.com>
3722
3723 PR gdb/25741
3724 * breakpoint.c (build_target_condition_list): Update comments.
3725 (build_target_command_list): Update comments and skip matching
3726 locations.
3727 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3728 a separate function. Simplify "set breakpoint auto-hw off"
3729 handling.
3730 (insert_breakpoints): Update comment.
3731 (tracepoint_locations_match): New parameter. For breakpoints,
3732 compare location types too, if the caller wants to.
3733 (handle_automatic_hardware_breakpoints): New functions.
3734 (bp_location_is_less_than): Also sort by location type and
3735 hardware breakpoint length.
3736 (update_global_location_list): Handle "set breakpoint auto-hw on"
3737 here.
3738 (update_breakpoint_locations): Ask breakpoint_locations_match to
3739 ignore location types.
3740
7d93a1e0
SM
37412020-05-16 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3744 type::name instead.
3745
d0e39ea2
SM
37462020-05-16 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * gdbtypes.h (struct type) <name, set_name>: New methods.
3749 (TYPE_CODE): Use type::name. Change all call sites used to set
3750 the name to use type::set_name instead.
3751
2dab0c7b
TT
37522020-05-16 Tom Tromey <tom@tromey.com>
3753
3754 * top.c (quit_force): Update.
3755 * infrun.c (handle_no_resumed): Update.
3756 * top.h (all_uis): New function.
3757 (ALL_UIS): Remove.
3758
59f7bd8d
SM
37592020-05-16 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3762
9bf058f0
PA
37632020-05-16 Pedro Alves <palves@redhat.com>
3764
3765 * ia64-linux-nat.c
3766 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3767 Declare method.
3768 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3769
8f86ae1a
SM
37702020-05-15 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3773 (sparc64_adi_info): Likewise.
3774
d6bc0792
TT
37752020-05-15 Tom Tromey <tom@tromey.com>
3776
3777 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3778 block_objfile.
3779 (lookup_objfile_from_block): Remove.
3780 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3781 (lookup_global_symbol): Use block_objfile.
3782 * symtab.h (lookup_objfile_from_block): Don't declare.
3783 * printcmd.c (clear_dangling_display_expressions): Use
3784 block_objfile.
3785 * parse.c (operator_check_standard): Use block_objfile.
3786
8c14c3a3
TT
37872020-05-15 Tom Tromey <tom@tromey.com>
3788
3789 * language.c (language_alloc_type_symbol): Set
3790 SYMBOL_SECTION.
3791 * symtab.c (initialize_objfile_symbol): Remove.
3792 (allocate_symbol): Remove.
3793 (allocate_template_symbol): Remove.
3794 * dwarf2/read.c (fixup_go_packaging): Use "new".
3795 (new_symbol): Use "new".
3796 (read_variable): Don't call initialize_objfile_symbol. Use
3797 "new".
3798 (read_func_scope): Use "new".
3799 * xcoffread.c (process_xcoff_symbol): Don't call
3800 initialize_objfile_symbol.
3801 (SYMBOL_DUP): Remove.
3802 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3803 "new".
3804 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3805 (allocate_template_symbol): Don't declare.
3806 (struct symbol): Add copy constructor. Change defaults.
3807 * jit.c (finalize_symtab): Use "new".
3808 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3809 Use "new".
3810 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3811 (common_block_end): Use "new".
3812 * mdebugread.c (parse_symbol): Use "new".
3813 (new_symbol): Likewise.
3814
5b4a1a8d
PW
38152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3816
3817 * NEWS: Mention changes to help and apropos.
3818
57b4f16e
PW
38192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3820
3821 * command.h (enum command_class): Improve comments, document
3822 that class_alias is for user-defined aliases, give the class
3823 name for each class, remove unused class_xdb.
3824 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3825 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3826 by a precise class.
3827 * infcmd.c (_initialize_infcmd): Likewise.
3828 * reverse.c (_initialize_reverse): Likewise.
3829 * stack.c (_initialize_stack): Likewise.
3830 * symfile.c (_initialize_symfile): Likewise.
3831 * tracepoint.c (_initialize_tracepoint): Likewise.
3832
7c05caf7
PW
38332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3834
3835 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3836 when their aliased command is traversed.
3837 (help_cmd): Add fput_command_names_styled call to
3838 output command name and aliases when command has an alias.
3839
3b3aaacb
PW
38402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3841
3842 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3843 * cli/cli-decode.c (help_cmd_list): Declare as static,
3844 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3845 a command together with the command.
3846 (fput_command_name_styled, fput_command_names_styled): New functions.
3847 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3848 fput_command_name_styled.
3849 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3850 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3851
7aa1b46f
PW
38522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3853
3854 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3855 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3856 * command.h (cmd_show_list): Likewise.
3857 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3858 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3859
89bcba74
PW
38602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3861
3862 * unittests/command-def-selftests.c (traverse_command_structure):
3863 Verify all commands of a list have the same prefix command and
3864 that only the top cmdlist commands have a null prefix.
3865
3f4d92eb
PW
38662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3867
3868 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3869 as prefix, not one of its aliases.
3870 (set_cmd_prefix): Remove.
3871 (do_add_cmd): Centralize the setting of the prefix of a command, when
3872 command is defined after its full chain of prefix commands.
3873 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3874 (add_setshow_cmd_full): Likewise.
3875 (update_prefix_field_of_prefixed_commands): New function.
3876 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3877 update_prefix_field_of_prefixed_commands.
3878 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3879 addresses of remote_set_cmdlist and remote_show_cmdlist given
3880 as argument, not the address of an argument.
3881 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3882 * gdb/remote.c (_initialize_remote): Likewise.
3883
0605465f
PW
38842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3885
3886 * cli/cli-cmds.c (alias_command): Check for an existing alias
3887 using lookup_cmd_composition, as valid_command_p is too strict
3888 and forbids aliases that are the prefix of an existing alias
3889 or command.
3890 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3891 command is properly recognised as a valid command.
3892
58e6ac70
PW
38932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3894
3895 * unittests/help-doc-selftests.c: Rename to
3896 unittests/command-def-selftests.c
3897 * unittests/command-def-selftests.c (help_doc_tests): Update some
3898 comments.
3899 (command_structure_tests, traverse_command_structure): New namespace
3900 and function.
3901 (command_structure_invariants_tests): New function.
3902 (_initialize_command_def_selftests) Renamed from
3903 _initialize_help_doc_selftests, register command_structure_invariants
3904 selftest.
3905
a7b9ceb8
PW
39062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3907
3908 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3909 an alias of 'show'.
3910
b2188a06
JB
39112020-05-15 Joel Brobecker <brobecker@adacore.com>
3912
3913 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3914 ada_is_fixed_point_type. Update all callers.
3915 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3916 all callers.
3917 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3918 Update all callers.
3919 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3920 print_fixed_point_type. Update all callers.
3921 * ada-valprint.c (ada_value_print_num): Replace call to
3922 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3923
a51951c2
KB
39242020-05-14 Kevin Buettner <kevinb@redhat.com>
3925
3926 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3927 processors.
3928 (cpu_supports_bts): Add CV_AMD case.
3929
29d6859f
LM
39302020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3931 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * infrun.c (stop_all_threads): Collect multiple wait events at
3934 each pass.
3935
78134374
SM
39362020-05-14 Simon Marchi <simon.marchi@efficios.com>
3937
3938 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3939 type::code instead.
3940
67607e24
SM
39412020-05-14 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (struct type) <code, set_code>: New methods.
3944 (TYPE_CODE): Use type::code. Change all call sites used to set
3945 the code to use type::set_code instead.
3946
a05575d3
TBA
39472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3948 Tom de Vries <tdevries@suse.de>
3949 Pedro Alves <palves@redhat.com>
3950
3951 PR threads/25478
3952 * infrun.c (stop_all_threads): Do NOT ignore
3953 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3954 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3955 received.
3956 (handle_no_resumed): Remove code handling a live inferior with no
3957 threads.
3958 * remote.c (has_single_non_exited_thread): New.
3959 (remote_target::update_thread_list): Do not delete a thread if is
3960 the last thread of the process.
3961 * thread.c (thread_select): Call delete_exited_threads instead of
3962 prune_threads.
3963
6ad82919
TBA
39642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3965
3966 * infrun.c (stop_all_threads): Enable/disable thread events of all
3967 targets. Move a debug message denoting the end of the function
3968 into the SCOPED_EXIT block.
3969
d890404b
TBA
39702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3971
3972 * process-stratum-target.h: Include <set>.
3973 (all_non_exited_process_targets, switch_to_target_no_thread): New
3974 function declarations.
3975 * process-stratum-target.c (all_non_exited_process_targets)
3976 (switch_to_target_no_thread): New function implementations.
3977
293b3ebc
TBA
39782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979
3980 * infrun.c (handle_inferior_event): Extract out a piece of code
3981 into...
3982 (mark_non_executing_threads): ...this new function.
3983
7ca9b62a
TBA
39842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3987 use.
3988
fc75c28b
TBA
39892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3990
3991 * regcache.c (regcache_read_pc_protected): New function
3992 implementation that returns 0 if the PC cannot read via
3993 'regcache_read_pc'.
3994 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3995 instead of 'regcache_read_pc'.
3996 (keep_going_pass_signal): Ditto.
3997
a89febbd
TT
39982020-05-13 Tom Tromey <tromey@adacore.com>
3999
4000 * ada-lang.c (align_value): Remove.
4001 (ada_template_to_fixed_record_type_1): Use align_up.
4002
f7e23710
TBA
40032020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4004
4005 * async-event.c: Update the copyright year.
4006 * async-event.h: Update the copyright year.
4007
02ff80c2
SM
40082020-05-12 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * objfiles.h (is_addr_in_objfile,
4011 shared_objfile_contains_address_p): Return bool.
4012 * objfile.c (is_addr_in_objfile,
4013 shared_objfile_contains_address_p): Return bool.
4014
4fd6c7e8
TT
40152020-05-11 Tom Tromey <tromey@adacore.com>
4016
4017 * cli/cli-cmds.c (info_command): Restore.
4018 (_initialize_cli_cmds): Use add_prefix_command for "info".
4019 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4020
5eb68a39
TT
40212020-05-11 Tom Tromey <tromey@adacore.com>
4022
4023 * ada-lang.c (ada_value_primitive_field): Now public.
4024 * ada-lang.h (ada_value_primitive_field): Declare.
4025 * ada-valprint.c (print_field_values): Use
4026 ada_value_primitive_field for wrapper fields.
4027
7666722f
TV
40282020-05-11 Tom de Vries <tdevries@suse.de>
4029
4030 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4031 MODULE_DOMAIN.
4032
3ee6bb11
TV
40332020-05-11 Tom de Vries <tdevries@suse.de>
4034
4035 PR symtab/25941
4036 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4037 with length 0, if not gdb-produced.
4038 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4039
43434996
TV
40402020-05-09 Tom de Vries <tdevries@suse.de>
4041
4042 PR gdb/25955
4043 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4044 calculation.
4045
2f78cffc
TT
40462020-05-09 Tom Tromey <tom@tromey.com>
4047
4048 * top.c (server_command): Now bool.
4049 * top.h (server_command): Now bool.
4050
4f7bc5ed
TT
40512020-05-08 Tom Tromey <tromey@adacore.com>
4052
4053 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4054 already being processed.
4055
8be4b118
TT
40562020-05-08 Tom Tromey <tom@tromey.com>
4057
4058 * printcmd.c (struct display) <next>: Remove.
4059 <display>: New constructor.
4060 <exp_string>: Now a std::string.
4061 <enabled_p>: Now a bool.
4062 (display_number): Move definition earlier.
4063 (displays): Rename from display_chain. Now a std::vector.
4064 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4065 (display_command): Update.
4066 (do_one_display, disable_display)
4067 (enable_disable_display_command, do_enable_disable_display):
4068 Update.
4069 (free_display): Remove.
4070 (clear_displays): Rewrite.
4071 (delete_display): Update.
4072 (map_display_numbers): Use function_view. Remove "data"
4073 parameter. Update.
4074 (do_delete_display): Remove.
4075 (undisplay_command): Update.
4076 (do_one_display, do_displays, disable_display)
4077 (info_display_command): Update.
4078 (do_enable_disable_display): Remove.
4079 (enable_disable_display_command)
4080 (clear_dangling_display_expressions): Update.
4081
94c93c35
TT
40822020-05-08 Tom Tromey <tom@tromey.com>
4083
4084 * symtab.c (set_symbol_cache_size)
4085 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4086 (maintenance_print_symbol_cache_statistics): Update.
4087 * symmisc.c (print_symbol_bcache_statistics)
4088 (print_objfile_statistics, maintenance_print_objfiles)
4089 (maintenance_info_symtabs, maintenance_check_symtabs)
4090 (maintenance_expand_symtabs, maintenance_info_line_tables):
4091 Update.
4092 * symfile-debug.c (set_debug_symfile): Update.
4093 * source.c (forget_cached_source_info): Update.
4094 * python/python.c (gdbpy_progspaces): Update.
4095 * psymtab.c (maintenance_info_psymtabs): Update.
4096 * probe.c (parse_probes): Update.
4097 * linespec.c (iterate_over_all_matching_symtabs)
4098 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4099 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4100 * exec.c (exec_target::close): Update.
4101 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4102 * breakpoint.c (print_one_breakpoint_location)
4103 (create_longjmp_master_breakpoint)
4104 (create_std_terminate_master_breakpoint): Update.
4105 * progspace.c (program_spaces): Now a std::vector.
4106 (maybe_new_address_space): Update.
4107 (add_program_space): Remove.
4108 (program_space::program_space): Update.
4109 (remove_program_space): Update.
4110 (number_of_program_spaces): Remove.
4111 (print_program_space, update_address_spaces): Update.
4112 * progspace.h (program_spaces): Change type.
4113 (ALL_PSPACES): Remove.
4114 (number_of_program_spaces): Don't declare.
4115 (struct program_space) <next>: Remove.
4116
a1fd1ac9
TT
41172020-05-08 Tom Tromey <tom@tromey.com>
4118
4119 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4120 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4121 (enable_break): Update.
4122 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4123 (frv_fdpic_find_canonical_descriptor): Update.
4124 (frv_fetch_objfile_link_map): Update.
4125 * progspace.c (program_space::free_all_objfiles): Update.
4126 (program_space::solibs): New method.
4127 * progspace.h (struct program_space) <solibs>: New method.
4128 * solist.h (master_so_list): Don't declare.
4129 (ALL_SO_LIBS): Remove.
4130 * solib.h (so_list_head): Remove.
4131 (update_solib_list): Update comment.
4132 * solib.c (master_so_list): Remove.
4133 (solib_used, update_solib_list, solib_add)
4134 (info_sharedlibrary_command, clear_solib)
4135 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4136
38eae084
TT
41372020-05-08 Tom Tromey <tom@tromey.com>
4138
4139 * extension.c (extension_languages): Now a std::array.
4140 (ALL_EXTENSION_LANGUAGES): Remove.
4141 (get_ext_lang_defn, get_ext_lang_of_file)
4142 (eval_ext_lang_from_control_command): Update.
4143 (finish_ext_lang_initialization)
4144 (auto_load_ext_lang_scripts_for_objfile)
4145 (ext_lang_type_printers::ext_lang_type_printers)
4146 (apply_ext_lang_type_printers)
4147 (ext_lang_type_printers::~ext_lang_type_printers)
4148 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4149 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4150 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4151 (get_matching_xmethod_workers, ext_lang_colorize)
4152 (ext_lang_before_prompt): Update.
4153 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4154
596dc4ad
TT
41552020-05-08 Tom Tromey <tom@tromey.com>
4156
4157 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4158 overload.
4159 <swap_string, m_string>: Remove.
4160 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4161 Update.
4162 * stabsread.c (define_symbol, read_type): Update.
4163 * linespec.c (find_linespec_symbols): Update.
4164 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4165 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4166 * dbxread.c (read_dbx_symtab): Update.
4167 * cp-support.h (cp_canonicalize_string_full)
4168 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4169 Return unique_xmalloc_ptr.
4170 * cp-support.c (inspect_type): Update.
4171 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4172 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4173 Likewise.
4174 * c-typeprint.c (print_name_maybe_canonical): Update.
4175 * break-catch-throw.c (check_status_exception_catchpoint):
4176 Update.
4177
bf4cb9be
TV
41782020-05-08 Tom de Vries <tdevries@suse.de>
4179
4180 * infrun.c (follow_fork): Copy current_line and current_symtab to
4181 child thread.
4182
a1b68f28
SM
41832020-05-07 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * async-event.c (struct async_signal_handler, struct
4186 async_event_handler): Reformat, remove typedef.
4187
98d48915
SM
41882020-05-07 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4191 access thistype->main_type->dyn_prop_list directly.
4192
7aa91313
SM
41932020-05-07 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4196 (remove_dyn_prop): Remove. Update all users to use
4197 type::remove_dyn_prop.
4198 * gdbtypes.c (remove_dyn_prop): Rename to...
4199 (type::remove_dyn_prop): ... this.
4200
5c54719c
SM
42012020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4202
4203 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4204 (add_dyn_prop): Remove. Update all users to use
4205 type::add_dyn_prop.
4206 * gdbtypes.c (add_dyn_prop): Rename to...
4207 (type::add_dyn_prop): ... this.
4208
24e99c6c
SM
42092020-05-07 Simon Marchi <simon.marchi@efficios.com>
4210
4211 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4212 (get_dyn_prop): Remove. Update all users to use
4213 type::dyn_prop.
4214 * gdbtypes.c (get_dyn_prop): Rename to...
4215 (type::dyn_prop): ... this.
4216
0d4bf016
SM
42172020-05-06 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4220
ac4a4f1c
SM
42212020-05-06 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4224 instruction, skip it if it's there.
4225
a3bbacc1
SM
42262020-05-05 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4229
c3236f84
SM
42302020-05-04 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4233 * gdbtypes.c (recursive_dump_type): Remove use of
4234 TYPE_INCOMPLETE.
4235
3b6acaee
TT
42362020-05-03 Tom Tromey <tom@tromey.com>
4237
4238 * breakpoint.c (catch_command, tcatch_command): Remove.
4239 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4240 add_show_prefix_cmd.
4241 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4242 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4243 Remove.
4244 (add_internal_problem_command): Use add_basic_prefix_cmd,
4245 add_show_prefix_cmd.
4246 * mips-tdep.c (set_mipsfpu_command): Remove.
4247 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4248 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4249 (_initialize_index_cache): Use add_basic_prefix_cmd.
4250 * memattr.c (dummy_cmd): Remove.
4251 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4252 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4253 (_initialize_tui_win): Use add_basic_prefix_cmd,
4254 add_show_prefix_cmd.
4255 * cli/cli-logging.c (set_logging_command): Remove.
4256 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4257 add_show_prefix_cmd.
4258 (show_logging_command): Remove.
4259 * target.c (target_command): Remove.
4260 (add_target): Use add_basic_prefix_cmd.
4261
a51119cd
HD
42622020-05-02 Hannes Domani <ssbssa@yahoo.de>
4263
4264 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4265
652fc23a 42662020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4267
652fc23a
PW
4268 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4269 info_command.
4270
117539e6
KR
42712020-04-30 Kamil Rytarowski <n54@gmx.com>
4272
4273 * nbsd-nat.c (nbsd_enable_proc_events)
4274 (nbsd_nat_target::post_startup_inferior): Add.
4275 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4276 (nbsd_nat_target::update_thread_list): Rewrite.
4277 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4278 "PTRACE_LWP_CREATE".
4279 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4280
102e38eb 42812020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4282
102e38eb
PW
4283 * stack.c (_initialize_stack): Remove duplicated creation
4284 of "frame" command and "f" alias.
4285
ee9d1e5f
HD
42862020-04-30 Hannes Domani <ssbssa@yahoo.de>
4287
4288 PR gdb/18706
4289 * gdbtypes.c (check_typedef): Calculate size of array of
4290 stubbed type.
4291
627c7fb8
HD
42922020-04-30 Hannes Domani <ssbssa@yahoo.de>
4293
4294 PR gdb/15559
4295 * i386-tdep.c (i386_push_dummy_call): Call
4296 i386_thiscall_push_dummy_call.
4297 (i386_thiscall_push_dummy_call): New function.
4298 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4299 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4300 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4301
ffc2844e
SM
43022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * gdbarch.sh (do_read): Add shellcheck disable directive for
4305 warning SC2162.
4306
1207375d
SM
43072020-04-29 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4310 "referenced but not assigned" warning.
4311
9fdb2916
SM
43122020-04-29 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbarch.sh: Remove code that sets fallbackdefault.
4315
759cea5e
SM
43162020-04-29 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * gdbarch.sh: Use shell operators && and || instead of
4319 -a and -o.
4320
cb02ab24
SM
43212020-04-29 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * gdbarch.sh: Use $(...) instead of `...`.
4324
a6fc5ffc
SM
43252020-04-29 Simon Marchi <simon.marchi@efficios.com>
4326
4327 * gdbarch.sh: Use double quotes around variables.
4328
8d113d13
SM
43292020-04-29 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbarch.sh: Use %s with printf, instead of variables in the
4332 format string.
4333
ed6acedd
TT
43342020-04-29 Tom Tromey <tromey@adacore.com>
4335
4336 PR ada/25875:
4337 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4338 type fields here.
4339 (read_enumeration_type): Call
4340 update_enumeration_type_from_children later. Update comments.
4341 (process_enumeration_scope): Don't create type fields.
4342
b68b1b58
KR
43432020-04-29 Kamil Rytarowski <n54@gmx.com>
4344
4345 * nbsd-tdep.c: Include "xml-syscall.h".
4346 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4347
f94b2e03
KR
43482020-04-29 Kamil Rytarowski <n54@gmx.com>
4349
4350 * nbsd-nat.c: Include "sys/wait.h".
4351 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4352 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4353 (nbsd_nat_target::remove_exec_catchpoint)
4354 (nbsd_nat_target::set_syscall_catchpoint): Add.
4355 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4356 (nbsd_nat_target::insert_exec_catchpoint)
4357 (nbsd_nat_target::remove_exec_catchpoint)
4358 (nbsd_nat_target::set_syscall_catchpoint): Add.
4359 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4360 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4361 `nbsd_get_syscall_number'.
4362
fc49bc72
TT
43632020-04-29 Tom Tromey <tom@tromey.com>
4364
4365 * stack.c (print_block_frame_labels): Remove.
4366
d642b692
HD
43672020-04-29 Hannes Domani <ssbssa@yahoo.de>
4368
4369 PR gdb/17320
4370 * ada-valprint.c (val_print_packed_array_elements): Move array
4371 end bracket to new line.
4372 (ada_val_print_string): Remove extra spaces before first array
4373 element.
4374 * c-valprint.c (c_value_print_array): Likewise.
4375 * m2-valprint.c (m2_print_array_contents): Likewise.
4376 (m2_value_print_inner): Likewise.
4377 * p-valprint.c (pascal_value_print_inner): Likewise.
4378 * valprint.c (generic_val_print_array): Likewise.
4379 (value_print_array_elements): Move first array element and array
4380 end bracket to new line.
4381
ea90f227
TV
43822020-04-29 Tom de Vries <tdevries@suse.de>
4383
4384 PR symtab/25889
4385 * linespec.c (find_method): Fix ix calculation.
4386
4498ef4f
KR
43872020-04-28 Kamil Rytarowski <n54@gmx.com>
4388
4389 * syscalls/update-netbsd.sh: New file.
4390 * syscalls/netbsd.xml: Regenerate.
4391 * data-directory/Makefile.in: Register `netbsd.xml' in
4392 `SYSCALLS_FILES'.
4393
a55e30b5
SM
43942020-04-28 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * syscalls/update-freebsd.sh: Add double quotes.
4397
2b2fbab8
TT
43982020-04-28 Tom Tromey <tom@tromey.com>
4399
4400 * NEWS: Update.
4401 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4402 (cmdpy_init): Allow class_tui.
4403
a65189c9
TV
44042020-04-28 Mark Williams <mark@myosotissp.com>
4405
4406 PR gdb/24480
4407 * dwarf2read.c: Add missing assingments to list_in_scope when
4408 start_symtab was already called.
4409
1b95cdb7
SM
44102020-04-28 Simon Marchi <simon.marchi@efficios.com>
4411
4412 PR gdb/25881
4413 * dwarf2/read.c (offset_map_type): Use
4414 gdb:hash_enum<sect_offset> as hash function.
4415
15cd93d0
TV
44162020-04-28 Tom de Vries <tdevries@suse.de>
4417
4418 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4419 with DW_AT_signature.
4420
1eb39914
SM
44212020-04-27 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * configure.ac: Remove check for fs_base/gs_base in
4424 user_regs_struct.
4425 * configure: Re-generate.
4426 * config.in: Re-generate.
4427 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4428 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4429 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4430
991a3e2e
LM
44312020-04-27 Luis Machado <luis.machado@linaro.org>
4432
4433 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4434 problematic inline frame unwinding situation.
4435 * frame.c (frame_id_computed_p): New function.
4436 * frame.h (frame_id_computed_p): New prototype.
4437
361ba0e8
TT
44382020-04-26 Tom Tromey <tom@tromey.com>
4439
4440 * command.h (enum command_class) <class_pseudo>: Remove.
4441
bc3609fd
PW
44422020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443
4444 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4445 and whitespace.
4446
b9771db7
KR
44472020-04-25 Kamil Rytarowski <n54@gmx.com>
4448
ec16513e
SM
4449 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4450 `PT_GET_PROCESS_STATE' block.
b9771db7 4451
7151c1af
TT
44522020-04-24 Tom Tromey <tom@tromey.com>
4453
4454 * symtab.h (symbol_get_demangled_name): Don't declare.
4455 * symtab.c (symbol_get_demangled_name): Remove.
4456 (general_symbol_info::natural_name)
4457 (general_symbol_info::demangled_name): Update.
4458
906bb4c5
TT
44592020-04-24 Tom Tromey <tom@tromey.com>
4460
4461 PR rust/25025:
4462 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4463
bcfe6157
TT
44642020-04-24 Tom Tromey <tom@tromey.com>
4465
4466 PR symtab/12707:
4467 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4468 exists.
4469 (new_symbol): Likewise.
4470 * compile/compile-object-load.c (get_out_value_type): Use
4471 symbol_matches_search_name.
4472
f049a313
TT
44732020-04-24 Tom Tromey <tom@tromey.com>
4474
4475 * dwarf2/read.c (add_partial_symbol): Do not call
4476 compute_and_set_names.
4477
76e288d1
TT
44782020-04-24 Tom Tromey <tom@tromey.com>
4479
4480 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4481 overload.
4482
2467f4f6
TT
44832020-04-24 Tom Tromey <tom@tromey.com>
4484
4485 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4486 (add_psymbol_to_list): New overload. Make old overload call new
4487 one.
4488 * psympriv.h (add_psymbol_to_list): New overload.
4489
e61108c9
TT
44902020-04-24 Tom Tromey <tom@tromey.com>
4491
4492 * dwarf2/read.c (partial_die_info::read) <case
4493 DW_AT_linkage_name>: Use value_as_string.
4494 (dwarf2_string_attr): Use value_as_string.
4495 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4496 method.
4497 * dwarf2/attribute.c (attribute::value_as_string): New method.
4498
8c87a452
TT
44992020-04-24 Tom Tromey <tom@tromey.com>
4500
4501 * symtab.c (general_symbol_info::natural_name)
4502 (general_symbol_info::demangled_name): Check for language_rust.
4503
787de330
TT
45042020-04-24 Tom Tromey <tom@tromey.com>
4505
4506 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4507 (dwarf2_physname): ... from here.
4508 (partial_die_info::read): Add Rust "{" hack.
4509
ff985671
TT
45102020-04-24 Tom Tromey <tom@tromey.com>
4511
4512 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4513 method.
4514 (symbol_set_demangled_name): Don't declare.
4515 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4516 symbol_set_demangled_name.
4517 (general_symbol_info::set_language)
4518 (general_symbol_info::compute_and_set_names): Update.
4519 * minsyms.c (minimal_symbol_reader::install): Update.
4520 * dwarf2/read.c (new_symbol): Update.
4521
1acda803
TT
45222020-04-24 Tom Tromey <tromey@adacore.com>
4523
4524 PR python/23662:
4525 * python/py-type.c (convert_field): Handle
4526 FIELD_LOC_KIND_DWARF_BLOCK.
4527 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4528 (typy_get_dynamic): Nw function.
4529 (type_object_getset): Add "dynamic".
4530 * NEWS: Add entry.
4531
d656f129
TT
45322020-04-24 Tom Tromey <tromey@adacore.com>
4533
4534 * ada-typeprint.c (print_choices, print_variant_part)
4535 (print_record_field_types_dynamic): New functions.
4536 (print_record_field_types): Use print_record_field_types_dynamic.
4537
7d79de9a
TT
45382020-04-24 Tom Tromey <tromey@adacore.com>
4539
4540 * dwarf2/read.c (handle_data_member_location): New overload.
4541 (dwarf2_add_field): Use it.
4542 (decode_locdesc): Add "computed" parameter. Update comment.
4543 * gdbtypes.c (is_dynamic_type_internal): Also look for
4544 FIELD_LOC_KIND_DWARF_BLOCK.
4545 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4546 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4547 virtual base classes.
4548 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4549 FIELD_LOC_KIND_DWARF_BLOCK.
4550
f8e89861
TT
45512020-04-24 Tom Tromey <tromey@adacore.com>
4552
4553 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4554 * gdbtypes.c (is_dynamic_type_internal): Check
4555 TYPE_HAS_DYNAMIC_LENGTH.
4556 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4557 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4558 New macros.
4559 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4560 constant.
4561
9c6a1327
TT
45622020-04-24 Tom Tromey <tromey@adacore.com>
4563
4564 * dwarf2/read.c (struct variant_field): Rewrite.
4565 (struct variant_part_builder): New.
4566 (struct nextfield): Remove "variant" field. Add "offset".
4567 (struct field_info): Add "current_variant_part" and
4568 "variant_parts".
4569 (alloc_discriminant_info): Remove.
4570 (alloc_rust_variant): New function.
4571 (quirk_rust_enum): Update.
4572 (dwarf2_add_field): Set "offset" member. Don't handle
4573 DW_TAG_variant_part.
4574 (offset_map_type): New typedef.
4575 (convert_variant_range, create_one_variant)
4576 (create_one_variant_part, create_variant_parts)
4577 (add_variant_property): New functions.
4578 (dwarf2_attach_fields_to_type): Call add_variant_property.
4579 (read_structure_type): Don't handle DW_TAG_variant_part.
4580 (handle_variant_part, handle_variant): New functions.
4581 (handle_struct_member_die): Use them.
4582 (process_structure_scope): Don't handle variant parts.
4583 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4584 (struct discriminant_info): Remove.
4585 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4586 (struct main_type) <flag_discriminated_union>: Remove.
4587 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4588 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4589 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4590 Update.
4591 * valops.c (value_union_variant): Remove.
4592 * value.h (value_union_variant): Don't declare.
4593
b249d2c2
TT
45942020-04-24 Tom Tromey <tromey@adacore.com>
4595
4596 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4597 (ada_value_primitive_packed_val): Update.
4598 * ada-valprint.c (ada_value_print_1): Update.
4599 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4600 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4601 just an address. Use evaluate_for_locexpr_baton.
4602 (dwarf2_evaluate_property): Update.
4603 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4604 array_view.
4605 * findvar.c (default_read_var_value): Update.
4606 * gdbtypes.c (compute_variant_fields_inner)
4607 (resolve_dynamic_type_internal): Update.
4608 (resolve_dynamic_type): Change type of valaddr parameter.
4609 * gdbtypes.h (resolve_dynamic_type): Update.
4610 * valarith.c (value_subscripted_rvalue): Update.
4611 * value.c (value_from_contents_and_address): Update.
4612
61122aa9
TT
46132020-04-24 Tom Tromey <tromey@adacore.com>
4614
4615 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4616 "push_initial_value" parameter.
4617 (dwarf2_evaluate_property): Likewise.
4618 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4619
ef83a141
TT
46202020-04-24 Tom Tromey <tromey@adacore.com>
4621
4622 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4623 (variant::matches, compute_variant_fields_recurse)
4624 (compute_variant_fields_inner, compute_variant_fields): New
4625 functions.
4626 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4627 Use resolved_type after type is made.
4628 (operator==): Add new cases.
4629 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4630 (struct discriminant_range, struct variant, struct variant_part):
4631 New.
4632 (union dynamic_prop_data) <variant_parts, original_type>: New
4633 members.
4634 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4635 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4636 constants.
4637 * value.c (unpack_bits_as_long): Now public.
4638 * value.h (unpack_bits_as_long): Declare.
4639
675127ec
TT
46402020-04-24 Tom Tromey <tromey@adacore.com>
4641
4642 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4643 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4644
9852ceef
HD
46452020-04-24 Hannes Domani <ssbssa@yahoo.de>
4646
4647 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4648
7632c6ce
KR
46492020-04-24 Kamil Rytarowski <n54@gmx.com>
4650
4651 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4652 (remove_fork_catchpoint, post_startup_inferior)
4653 (post_attach): Move...
4654 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4655 (remove_fork_catchpoint, post_startup_inferior)
4656 (post_attach): ...here.
4657 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4658 (remove_fork_catchpoint, post_startup_inferior)
4659 (post_attach): Move...
4660 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4661 (remove_fork_catchpoint, post_startup_inferior)
4662 (post_attach): ...here.
4663
7be2bb4f
TT
46642020-04-24 Tom Tromey <tromey@adacore.com>
4665
4666 * nat/windows-nat.h (struct windows_thread_info)
4667 <pc_adjusted>: New member.
4668 * windows-nat.c (windows_fetch_one_register): Check
4669 pc_adjusted.
4670 (windows_nat_target::get_windows_debug_event)
4671 (windows_nat_target::wait): Set pc_adjusted.
4672
f80cb3b4
TV
46732020-04-24 Tom de Vries <tdevries@suse.de>
4674
4675 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4676 Run gdb-add-index inside temp dir.
4677
29514b87
TT
46782020-04-23 Tom Tromey <tromey@adacore.com>
4679
4680 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4681 in loop.
4682
5939967b
LM
46832020-04-23 Luis Machado <luis.machado@linaro.org>
4684
4685 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4686 get_frame_register instead of gdbarch_unwind_pc.
4687
70bc38f5
TV
46882020-04-23 Tom de Vries <tdevries@suse.de>
4689
4690 * symtab.c (lookup_global_symbol): Prefer def over decl.
4691
de82891c
TV
46922020-04-23 Tom de Vries <tdevries@suse.de>
4693
4694 PR symtab/25807
4695 * block.c (best_symbol, better_symbol): Promote to external.
4696 * block.h (best_symbol, better_symbol): Declare.
4697 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4698 decl.
4699
ecc6c606
TT
47002020-04-23 Tom Tromey <tromey@adacore.com>
4701
4702 PR ada/25837:
4703 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4704 "const char *", not a "const std::string &".
4705 <name_and_matcher::operator==>: Update.
4706 * unittests/lookup_name_info-selftests.c: Change type of
4707 "result".
4708
740480b8
TT
47092020-04-23 Tom Tromey <tom@tromey.com>
4710
4711 * inferior.h (iterate_over_inferiors): Don't declare.
4712 * inferior.c (iterate_over_inferiors): Remove.
4713 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4714 Remove.
4715 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4716 use iterate_over_inferiors.
4717 (darwin_resume_inferior_it)
4718 (struct resume_inferior_threads_param)
4719 (darwin_resume_inferior_threads_it): Remove.
4720 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4721
ae3ab1f0
TV
47222020-04-23 Tom de Vries <tdevries@suse.de>
4723
4724 * blockframe.c (find_pc_partial_function): Use
4725 find_pc_sect_compunit_symtab rather than
4726 objfile->sf->qf->find_pc_sect_compunit_symtab.
4727
317d2668
TV
47282020-04-22 Tom de Vries <tdevries@suse.de>
4729
4730 PR symtab/25764
4731 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4732 in psymtabs.
4733
eea9e357
TV
47342020-04-22 Tom de Vries <tdevries@suse.de>
4735
4736 PR symtab/25801
4737 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4738 symtabs.
4739
3d5afab3
TV
47402020-04-22 Tom de Vries <tdevries@suse.de>
4741
4742 PR symtab/25700
4743 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4744 CU if already created.
4745
d43b7a2d
TBA
47462020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4747
4748 * infrun.c (displaced_step_fixup): Switch to the event_thread
4749 before calling displaced_step_restore, not after.
4750
d89edf9b
MM
47512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4752
4753 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4754 its inferior is not recorded by us.
4755 (record_btrace_target_open): Replace call to
4756 all_non_exited_threads () with call to current_inferior
4757 ()->non_exited_threads ().
4758 (record_btrace_target::stop_recording): Likewise.
4759 (record_btrace_target::close): Likewise.
4760 (record_btrace_target::wait): Likewise.
4761 (record_btrace_target::record_stop_replaying): Likewise.
4762
5897fd49
MM
47632020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4764
4765 * btrace.c (btrace_enable): Throw an error on double enables and
4766 when enabling recording fails.
4767 (btrace_disable): Throw an error if the thread is not recorded.
4768
1a476b6d
MM
47692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4770
4771 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4772 request if we do not have a thread_info.
4773
4778a5f8
TV
47742020-04-21 Tom de Vries <tdevries@suse.de>
4775
4776 PR gdb/25471
4777 * thread.c
4778 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4779 exception in get_frame_id.
4780
0fa7617d
TT
47812020-04-20 Tom Tromey <tromey@adacore.com>
4782
4783 * python/python.c (struct gdbpy_event): Mark move constructor as
4784 noexcept.
4785 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4786 constructor as noexcept.
4787 * completer.h (struct completion_result): Mark move constructor as
4788 noexcept.
4789 * completer.c (completion_result::completion_result): Use
4790 initialization style. Don't call reset_match_list.
4791
ad23bda0
MS
47922020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4793
4794 * MAINTAINERS (Write After Approval): Add myself.
4795
45e1f031
TT
47962020-04-18 Tom Tromey <tom@tromey.com>
4797
4798 * windows-tdep.c (init_w32_command_list)
4799 (w32_prefix_command_valid): Restore.
4800 (_initialize_windows_tdep): Call init_w32_command_list.
4801
08feed99
TT
48022020-04-18 Tom Tromey <tom@tromey.com>
4803
4804 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4805 * value.c (value_fn_field): Update.
4806 * valops.c (find_function_in_inferior)
4807 (value_allocate_space_in_inferior): Update.
4808 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4809 Update.
4810 * tui/tui-source.c (tui_source_window::set_contents): Update.
4811 * symtab.c (lookup_global_or_static_symbol)
4812 (find_function_start_sal_1, skip_prologue_sal)
4813 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4814 * symmisc.c (dump_msymbols, dump_symtab_1)
4815 (maintenance_print_one_line_table): Update.
4816 * symfile.c (init_entry_point_info, section_is_mapped)
4817 (list_overlays_command, simple_read_overlay_table)
4818 (simple_overlay_update_1): Update.
4819 * stap-probe.c (handle_stap_probe): Update.
4820 * stabsread.c (dbx_init_float_type, define_symbol)
4821 (read_one_struct_field, read_enum_type, read_range_type): Update.
4822 * source.c (info_line_command): Update.
4823 * python/python.c (gdbpy_source_objfile_script)
4824 (gdbpy_execute_objfile_script): Update.
4825 * python/py-type.c (save_objfile_types): Update.
4826 * python/py-objfile.c (py_free_objfile): Update.
4827 * python/py-inferior.c (python_new_objfile): Update.
4828 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4829 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4830 (maintenance_check_psymtabs): Update.
4831 * printcmd.c (info_address_command): Update.
4832 * objfiles.h (struct objfile) <arch>: New method, from
4833 get_objfile_arch.
4834 (get_objfile_arch): Don't declare.
4835 * objfiles.c (get_objfile_arch): Remove.
4836 (filter_overlapping_sections): Update.
4837 * minsyms.c (msymbol_is_function): Update.
4838 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4839 (output_nondebug_symbol): Update.
4840 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4841 (mdebug_expand_psymtab): Update.
4842 * machoread.c (macho_add_oso_symfile): Update.
4843 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4844 Update.
4845 * linux-fork.c (checkpoint_command): Update.
4846 * linespec.c (convert_linespec_to_sals): Update.
4847 * jit.c (finalize_symtab): Update.
4848 * infrun.c (insert_exception_resume_from_probe): Update.
4849 * ia64-tdep.c (ia64_find_unwind_table): Update.
4850 * hppa-tdep.c (internalize_unwinds): Update.
4851 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4852 Update.
4853 * gcore.c (call_target_sbrk): Update.
4854 * elfread.c (record_minimal_symbol, elf_symtab_read)
4855 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4856 (elf_gnu_ifunc_resolve_by_got): Update.
4857 * dwarf2/read.c (create_addrmap_from_index)
4858 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4859 (read_debug_names_from_section)
4860 (process_psymtab_comp_unit_reader, add_partial_symbol)
4861 (add_partial_subprogram, process_full_comp_unit)
4862 (read_file_scope, read_func_scope, read_lexical_block_scope)
4863 (read_call_site_scope, dwarf2_ranges_read)
4864 (dwarf2_record_block_ranges, dwarf2_add_field)
4865 (mark_common_block_symbol_computed, read_tag_pointer_type)
4866 (read_tag_string_type, dwarf2_init_float_type)
4867 (dwarf2_init_complex_target_type, read_base_type)
4868 (partial_die_info::read, partial_die_info::read)
4869 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4870 (dwarf2_fetch_die_loc_sect_off): Update.
4871 * dwarf2/loc.c (dwarf2_find_location_expression)
4872 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4873 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4874 (dwarf2_loc_desc_get_symbol_read_needs)
4875 (locexpr_describe_location_piece, locexpr_describe_location_1)
4876 (loclist_describe_location): Update.
4877 * dwarf2/index-write.c (write_debug_names): Update.
4878 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4879 * dtrace-probe.c (dtrace_process_dof): Update.
4880 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4881 (process_one_symbol): Update.
4882 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4883 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4884 (coff_read_enum_type): Update.
4885 * cli/cli-cmds.c (edit_command, list_command): Update.
4886 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4887 * breakpoint.c (create_overlay_event_breakpoint)
4888 (create_longjmp_master_breakpoint)
4889 (create_std_terminate_master_breakpoint)
4890 (create_exception_master_breakpoint, get_sal_arch): Update.
4891 * block.c (block_gdbarch): Update.
4892 * annotate.c (annotate_source_line): Update.
4893
0743fc83
TT
48942020-04-17 Tom Tromey <tromey@adacore.com>
4895
4896 * auto-load.c (show_auto_load_cmd): Remove.
4897 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4898 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4899 (maintenance_print_arc_command): Remove.
4900 * tui/tui-win.c (tui_command): Remove.
4901 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4902 * tui/tui-layout.c (tui_layout_command): Remove.
4903 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4904 * python/python.c (user_set_python, user_show_python): Remove.
4905 (_initialize_python): Use add_basic_prefix_cmd,
4906 add_show_prefix_cmd.
4907 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4908 (install_gdb_commands): Use add_basic_prefix_cmd,
4909 add_show_prefix_cmd.
4910 (info_guile_command): Remove.
4911 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4912 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4913 add_show_prefix_cmd.
4914 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4915 Remove do_set and do_show parameters.
4916 * cli/cli-style.c (set_style, show_style): Remove.
4917 (_initialize_cli_style): Use add_basic_prefix_cmd,
4918 add_show_prefix_cmd.
4919 (cli_style_option::add_setshow_commands): Remove do_set and
4920 do_show parameters.
4921 (cli_style_option::add_setshow_commands): Use
4922 add_basic_prefix_cmd, add_show_prefix_cmd.
4923 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4924 (set_style_name): Remove.
4925 * cli/cli-dump.c (dump_command, append_command): Remove.
4926 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4927 (tekhex_dump_command, binary_dump_command)
4928 (binary_append_command): Remove.
4929 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4930 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4931 (init_w32_command_list): Remove; move into ...
4932 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4933 * valprint.c (set_print, show_print, set_print_raw)
4934 (show_print_raw): Remove.
4935 (_initialize_valprint): Use add_basic_prefix_cmd,
4936 add_show_prefix_cmd.
4937 * typeprint.c (set_print_type, show_print_type): Remove.
4938 (_initialize_typeprint): Use add_basic_prefix_cmd,
4939 add_show_prefix_cmd.
4940 * record.c (set_record_command, show_record_command): Remove.
4941 (_initialize_record): Use add_basic_prefix_cmd,
4942 add_show_prefix_cmd.
4943 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4944 add_show_prefix_cmd.
4945 (info_command, show_command, set_debug, show_debug): Remove.
4946 * top.h (set_history, show_history): Don't declare.
4947 * top.c (set_history, show_history): Remove.
4948 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4949 (unset_tdesc_cmd): Remove.
4950 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4951 add_show_prefix_cmd.
4952 * symtab.c (info_module_command): Remove.
4953 (_initialize_symtab): Use add_basic_prefix_cmd.
4954 * symfile.c (overlay_command): Remove.
4955 (_initialize_symfile): Use add_basic_prefix_cmd.
4956 * sparc64-tdep.c (info_adi_command): Remove.
4957 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4958 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4959 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4960 add_show_prefix_cmd.
4961 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4962 (_initialize_serial): Use add_basic_prefix_cmd,
4963 add_show_prefix_cmd.
4964 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4965 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4966 add_show_prefix_cmd.
4967 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4968 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4969 add_show_prefix_cmd.
4970 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4971 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4972 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4973 add_show_prefix_cmd.
4974 * remote.c (remote_command, set_remote_cmd): Remove.
4975 (_initialize_remote): Use add_basic_prefix_cmd.
4976 * record-full.c (set_record_full_command)
4977 (show_record_full_command): Remove.
4978 (_initialize_record_full): Use add_basic_prefix_cmd,
4979 add_show_prefix_cmd.
4980 * record-btrace.c (cmd_set_record_btrace)
4981 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4982 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4983 (cmd_show_record_btrace_pt): Remove.
4984 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4985 add_show_prefix_cmd.
4986 * ravenscar-thread.c (set_ravenscar_command)
4987 (show_ravenscar_command): Remove.
4988 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4989 add_show_prefix_cmd.
4990 * mips-tdep.c (show_mips_command, set_mips_command)
4991 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4992 add_show_prefix_cmd.
4993 * maint.c (maintenance_command, maintenance_info_command)
4994 (maintenance_check_command, maintenance_print_command)
4995 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4996 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4997 add_show_prefix_cmd.
4998 (show_per_command_cmd): Remove.
4999 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5000 Remove.
5001 (maintenance_show_test_settings_cmd): Remove.
5002 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5003 add_show_prefix_cmd.
5004 * maint-test-options.c (maintenance_test_options_command):
5005 Remove.
5006 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5007 * macrocmd.c (macro_command): Remove
5008 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5009 * language.c (set_check, show_check): Remove.
5010 (_initialize_language): Use add_basic_prefix_cmd,
5011 add_show_prefix_cmd.
5012 * infcmd.c (unset_command): Remove.
5013 (_initialize_infcmd): Use add_basic_prefix_cmd.
5014 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5015 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5016 add_show_prefix_cmd.
5017 * go32-nat.c (go32_info_dos_command): Remove.
5018 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5019 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5020 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5021 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5022 (_initialize_frame): Use add_basic_prefix_cmd,
5023 add_show_prefix_cmd.
5024 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5025 (_initialize_dcache): Use add_basic_prefix_cmd,
5026 add_show_prefix_cmd.
5027 * cp-support.c (maint_cplus_command): Remove.
5028 (_initialize_cp_support): Use add_basic_prefix_cmd.
5029 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5030 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5031 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5032 add_basic_prefix_cmd, add_show_prefix_cmd.
5033 * breakpoint.c (save_command): Remove.
5034 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5035 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5036 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5037 add_show_prefix_cmd.
5038 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5039 (set_ada_command, show_ada_command): Remove.
5040 (_initialize_ada_language): Use add_basic_prefix_cmd,
5041 add_show_prefix_cmd.
5042 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5043
3557f442
KR
50442020-04-16 Kamil Rytarowski <n54@gmx.com>
5045
5046 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5047 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5048
16197208
SM
50492020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5052 warning messages.
5053
00ac85d3
SM
50542020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5057 import table is not at beginning of .idata section.
5058
381ce63f
PA
50592020-04-16 Pedro Alves <palves@redhat.com>
5060
5061 * inferior.c (delete_inferior): Use delete operator directly
5062 instead of delete_program_space.
5063 * progspace.c (add_program_space): New, factored out from
5064 program_space::program_space.
5065 (remove_program_space): New, factored out from
5066 delete_program_space.
5067 (program_space::program_space): Remove intro comment. Rewrite.
5068 (program_space::~program_space): Remove intro comment. Call
5069 remove_program_space.
5070 (delete_program_space): Delete.
5071 * progspace.h (program_space::program_space): Make explicit. Move
5072 intro comment here, adjusted.
5073 (program_space::~program_space): Move intro comment here,
5074 adjusted.
5075 (delete_program_space): Remove.
5076
a010605f
TT
50772020-04-16 Tom Tromey <tromey@adacore.com>
5078
5079 * windows-nat.c (windows_nat::handle_access_violation): New
5080 function.
5081 * nat/windows-nat.h (handle_access_violation): Declare.
5082 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5083 windows-nat.c. Call handle_access_violation.
5084
efba5c23
TV
50852020-04-16 Tom de Vries <tdevries@suse.de>
5086
5087 PR symtab/25791
5088 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5089 CUs without psymtab.
5090
97ed802d
KB
50912020-04-16 Kevin Buettner <kevinb@redhat.com>
5092
5093 * python/python.c (do_start_initialization): Don't call
5094 PyEval_InitThreads for Python 3.9 and beyond.
5095
c7d64809
KR
50962020-04-15 Kamil Rytarowski <n54@gmx.com>
5097
5098 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5099 thread functions.
5100 (obsd_nat_target::wait): Likewise.
5101
ce127a96
TT
51022020-04-15 Tom Tromey <tromey@adacore.com>
5103
5104 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5105 (DEBUG_EXCEPT): Use debug_printf.
5106
99f1bc6a
AB
51072020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * completer.c (class completion_tracker::completion_hash_entry)
5110 <hash_name>: New member function.
5111 (completion_tracker::discard_completions): New callback to hash a
5112 completion_hash_entry, pass this to htab_create_alloc.
5113
a0e9b532
JT
51142016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5115
5116 * windows-nat.c (windows_make_so): Warn rather than stopping with
5117 an error if realpath() fails.
5118
06ca5dd4
KR
51192020-04-14 Kamil Rytarowski <n54@gmx.com>
5120
5121 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5122 (nbsd_nat_target::info_proc): Add do_status.
5123
194d088f
TV
51242020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5125 Tom de Vries <tdevries@suse.de>
5126
5127 PR symtab/25718
5128 * psympriv.h (struct partial_symtab::read_symtab)
5129 (struct partial_symtab::expand_psymtab)
5130 (struct partial_symtab::read_dependencies): Update comments.
5131 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5132 read_symtab for includer.
5133 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5134 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5135 (struct dwarf2_include_psymtab::m_readin): Remove.
5136 (struct dwarf2_include_psymtab::includer): New member function.
5137 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5138
c1a66c06
TV
51392020-04-14 Tom de Vries <tdevries@suse.de>
5140
5141 PR symtab/25720
5142 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5143 with NULL symbol_matcher and lookup_name.
5144 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5145 and lookup_name.
5146 * dwarf2/read.c (dw2_expand_symtabs_matching)
5147 (dw2_debug_names_expand_symtabs_matching): Same.
5148 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5149 Make lookup_name a pointer. Update comment.
5150 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5151 lookup_name being a pointer.
5152 * symfile.c (expand_symtabs_matching): Same.
5153 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5154 * linespec.c (iterate_over_all_matching_symtabs): Same.
5155
400b5eca
TT
51562020-04-13 Tom Tromey <tom@tromey.com>
5157
5158 * run-on-main-thread.c: Update include.
5159 * unittests/main-thread-selftests.c: Update include.
5160 * tui/tui-win.c: Update include.
5161 * tui/tui-io.c: Update include.
5162 * tui/tui-interp.c: Update include.
5163 * tui/tui-hooks.c: Update include.
5164 * top.h: Update include.
5165 * top.c: Update include.
5166 * ser-base.c: Update include.
5167 * remote.c: Update include.
5168 * remote-notif.c: Update include.
5169 * remote-fileio.c: Update include.
5170 * record-full.c: Update include.
5171 * record-btrace.c: Update include.
5172 * python/python.c: Update include.
5173 * posix-hdep.c: Update include.
5174 * mingw-hdep.c: Update include.
5175 * mi/mi-main.c: Update include.
5176 * mi/mi-interp.c: Update include.
5177 * main.c: Update include.
5178 * linux-nat.c: Update include.
5179 * interps.c: Update include.
5180 * infrun.c: Update include.
5181 * inf-loop.c: Update include.
5182 * event-top.c: Update include.
5183 * event-loop.c: Move to ../gdbsupport/.
5184 * event-loop.h: Move to ../gdbsupport/.
5185 * async-event.h: Update include.
5186 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5187
93b54c8e
TT
51882020-04-13 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-win.c: Include async-event.h.
5191 * remote.c: Include async-event.h.
5192 * remote-notif.c: Include async-event.h.
5193 * record-full.c: Include async-event.h.
5194 * record-btrace.c: Include async-event.h.
5195 * infrun.c: Include async-event.h.
5196 * event-top.c: Include async-event.h.
5197 * event-loop.h: Move some declarations to async-event.h.
5198 * event-loop.c: Don't include ser-event.h or top.h. Move some
5199 code to async-event.c.
5200 * async-event.h: New file.
5201 * async-event.c: New file.
5202 * Makefile.in (COMMON_SFILES): Add async-event.c.
5203 (HFILES_NO_SRCDIR): Add async-event.h.
5204
c1cd3163
TT
52052020-04-13 Tom Tromey <tom@tromey.com>
5206
5207 * utils.c (flush_streams): New function.
5208 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5209
29f2bf4f
TT
52102020-04-13 Tom Tromey <tom@tromey.com>
5211
5212 * event-loop.c (handle_file_event): Use warning, not
5213 printf_unfiltered.
5214
98029d02
TT
52152020-04-13 Tom Tromey <tom@tromey.com>
5216
5217 * event-loop.c: Include <chrono>.
5218
06cc9596
TT
52192020-04-13 Tom Tromey <tom@tromey.com>
5220
5221 * gdb_select.h: Move to ../gdbsupport/.
5222 * event-loop.c: Update include path.
5223 * top.c: Update include path.
5224 * ser-base.c: Update include path.
5225 * ui-file.c: Update include path.
5226 * ser-tcp.c: Update include path.
5227 * guile/scm-ports.c: Update include path.
5228 * posix-hdep.c: Update include path.
5229 * ser-unix.c: Update include path.
5230 * gdb_usleep.c: Update include path.
5231 * mingw-hdep.c: Update include path.
5232 * inflow.c: Update include path.
5233 * infrun.c: Update include path.
5234 * event-top.c: Update include path.
5235
8ae8e197
TT
52362020-04-13 Tom Tromey <tom@tromey.com>
5237
5238 * configure: Rebuild.
5239 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5240
58cf28e8
TT
52412020-04-13 Tom Tromey <tom@tromey.com>
5242
5243 * event-loop.h (start_event_loop): Don't declare.
5244 * event-loop.c (start_event_loop): Move...
5245 * main.c (start_event_loop): ...here. Now static.
5246
b7f999ae
SDJ
52472020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5248
5249 * MAINTAINERS: Update my email address.
5250
1085dfd4
KR
52512020-04-12 Kamil Rytarowski <n54@gmx.com>
5252
5253 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5254 IP_ALL.
5255
49d1d1f5
KR
52562020-04-12 Kamil Rytarowski <n54@gmx.com>
5257
5258 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5259 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5260
b4848d2a
KR
52612020-04-12 Kamil Rytarowski <n54@gmx.com>
5262
5263 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5264 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5265
51c133d5
KR
52662020-04-12 Kamil Rytarowski <n54@gmx.com>
5267
5268 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5269
54b8cbd0
KR
52702020-04-11 Kamil Rytarowski <n54@gmx.com>
5271
5272 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5273 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5274 (nbsd_nat_target::info_proc): New functions.
5275 * nbsd-nat.c (kinfo_get_vmmap): New function.
5276 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5277 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5278 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5279 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5280 functions.
5281 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5282 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5283 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5284 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5285 (KINFO_VME_FLAG_GROWS_DOWN): New.
5286
cf83625d
AS
52872020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5288
5289 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5290 bit shift.
5291
0c4311ab
TT
52922020-04-10 Tom Tromey <tromey@adacore.com>
5293
5294 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5295
3e65b3e9
TT
52962020-04-10 Tom Tromey <tromey@adacore.com>
5297
5298 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5299 separate debug files.
5300
13302e95
HD
53012020-04-10 Hannes Domani <ssbssa@yahoo.de>
5302
5303 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5304 Move to...
5305 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5306 ... here.
5307 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5308 Check for STATUS_WX86_BREAKPOINT.
5309 (windows_nat_target::wait): Same.
5310
bdfc1e8a
TV
53112020-04-10 Tom de Vries <tdevries@suse.de>
5312
5313 PR cli/25808
5314 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5315
f4460aec
SM
53162020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5319 (Write After Approval): Remove Tom de Vries.
5320
a25198bb
BE
53212020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5322
5323 revert partially:
5324 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5325
aac66a4c
SM
5326 * buildsym.c (record_line): Fix undefined behavior and preserve
5327 lines at eof.
a25198bb 5328
206c98a6
KR
53292020-04-09 Kamil Rytarowski <n54@gmx.com>
5330
5331 * auxv.h (svr4_auxv_parse): New.
5332 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5333 and generic_auxv_parse.
5334 (svr4_auxv_parse): Add.
5335 * obsd-tdep.c: Include "auxv.h".
5336 (obsd_auxv_parse): Remove.
5337 (obsd_init_abi): Remove comment.
5338 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5339 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5340 * nbsd-tdep.c: Include "auxv.h".
5341 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5342
71fbdbaf
TT
53432020-04-08 Tom Tromey <tromey@adacore.com>
5344
5345 * nat/windows-nat.h (last_wait_event): Don't declare.
5346 (wait_for_debug_event): Update comment.
5347 * nat/windows-nat.c (last_wait_event): Now static.
5348
2c1d95e8
TT
53492020-04-08 Tom Tromey <tromey@adacore.com>
5350
5351 * windows-nat.c (wait_for_debug_event): Move to
5352 nat/windows-nat.c.
5353 * nat/windows-nat.h (wait_for_debug_event): Declare.
5354 * nat/windows-nat.c (wait_for_debug_event): Move from
5355 windows-nat.c. No longer static.
5356
d2977bc4
TT
53572020-04-08 Tom Tromey <tromey@adacore.com>
5358
5359 * windows-nat.c (get_windows_debug_event): Use
5360 fetch_pending_stop.
5361 * nat/windows-nat.h (fetch_pending_stop): Declare.
5362 * nat/windows-nat.c (fetch_pending_stop): New function.
5363
e758e19c
TT
53642020-04-08 Tom Tromey <tromey@adacore.com>
5365
5366 * windows-nat.c (windows_continue): Use matching_pending_stop and
5367 continue_last_debug_event.
5368 * nat/windows-nat.h (matching_pending_stop)
5369 (continue_last_debug_event): Declare.
5370 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5371 (matching_pending_stop, continue_last_debug_event): New
5372 functions.
5373
8d30e395
TT
53742020-04-08 Tom Tromey <tromey@adacore.com>
5375
5376 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5377 (handle_exception_result): Move to nat/windows-nat.h.
5378 (DEBUG_EXCEPTION_SIMPLE): Remove.
5379 (windows_nat::handle_ms_vc_exception): New function.
5380 (handle_exception): Move to nat/windows-nat.c.
5381 (get_windows_debug_event): Update.
5382 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5383 nat/windows-nat.c.
5384 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5385 (handle_exception_result): Move from windows-nat.c.
5386 (handle_exception): Declare.
5387 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5388 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5389 windows-nat.c.
5390
29de418d
TT
53912020-04-08 Tom Tromey <tromey@adacore.com>
5392
5393 * windows-nat.c (exception_count, event_count): Remove.
5394 (handle_exception, get_windows_debug_event)
5395 (do_initial_windows_stuff): Update.
5396
a816ba18
TT
53972020-04-08 Tom Tromey <tromey@adacore.com>
5398
5399 * windows-nat.c (windows_nat::handle_load_dll)
5400 (windows_nat::handle_unload_dll): Rename. No longer static.
5401 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5402 Declare.
5403
a00caa12
TT
54042020-04-08 Tom Tromey <tromey@adacore.com>
5405
5406 * complaints.h (stop_whining): Declare at top-level.
5407 (complaint): Don't declare stop_whining.
5408
d41b524f
TT
54092020-04-08 Tom Tromey <tromey@adacore.com>
5410
5411 * windows-nat.c (windows_nat::handle_output_debug_string):
5412 Rename. No longer static.
5413 * nat/windows-nat.h (handle_output_debug_string): Declare.
5414
3c76026d
TT
54152020-04-08 Tom Tromey <tromey@adacore.com>
5416
5417 * windows-nat.c (current_process_handle, current_process_id)
5418 (main_thread_id, last_sig, current_event, last_wait_event)
5419 (current_windows_thread, desired_stop_thread_id, pending_stops)
5420 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5421 (display_selectors, fake_create_process)
5422 (get_windows_debug_event): Update.
5423 * nat/windows-nat.h (current_process_handle, current_process_id)
5424 (main_thread_id, last_sig, current_event, last_wait_event)
5425 (current_windows_thread, desired_stop_thread_id, pending_stops)
5426 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5427 * nat/windows-nat.c (current_process_handle, current_process_id)
5428 (main_thread_id, last_sig, current_event, last_wait_event)
5429 (current_windows_thread, desired_stop_thread_id, pending_stops)
5430 (siginfo_er): New globals. Move from windows-nat.c.
5431
9d8679cc
TT
54322020-04-08 Tom Tromey <tromey@adacore.com>
5433
5434 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5435 (handle_load_dll): Update.
5436 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5437
28688adf
TT
54382020-04-08 Tom Tromey <tromey@adacore.com>
5439
5440 * windows-nat.c (enum thread_disposition_type): Move to
5441 nat/windows-nat.h.
5442 (windows_nat::thread_rec): Rename from thread_rec. No longer
5443 static.
5444 (windows_add_thread, windows_nat_target::fetch_registers)
5445 (windows_nat_target::store_registers, handle_exception)
5446 (windows_nat_target::resume, get_windows_debug_event)
5447 (windows_nat_target::get_tib_address)
5448 (windows_nat_target::thread_name)
5449 (windows_nat_target::thread_alive): Update.
5450 * nat/windows-nat.h (enum thread_disposition_type): Move from
5451 windows-nat.c.
5452 (thread_rec): Declare.
5453
4834dad0
TT
54542020-04-08 Tom Tromey <tromey@adacore.com>
5455
5456 * windows-nat.c: Add "using namespace".
5457 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5458 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5459
65bafd5b
TT
54602020-04-08 Tom Tromey <tromey@adacore.com>
5461
5462 * nat/windows-nat.h (struct windows_thread_info): Declare
5463 destructor.
5464 * nat/windows-nat.c (~windows_thread_info): New.
5465
0a4afda3
TT
54662020-04-08 Tom Tromey <tromey@adacore.com>
5467
5468 PR gdb/22992
5469 * windows-nat.c (current_event): Update comment.
5470 (last_wait_event, desired_stop_thread_id): New globals.
5471 (struct pending_stop): New.
5472 (pending_stops): New global.
5473 (windows_nat_target) <stopped_by_sw_breakpoint>
5474 <supports_stopped_by_sw_breakpoint>: New methods.
5475 (windows_fetch_one_register): Add assertions. Adjust PC.
5476 (windows_continue): Handle pending stops. Suspend other threads
5477 when stepping. Use last_wait_event
5478 (wait_for_debug_event): New function.
5479 (get_windows_debug_event): Use wait_for_debug_event. Handle
5480 pending stops. Queue spurious stops.
5481 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5482 (windows_nat_target::kill): Use wait_for_debug_event.
5483 * nat/windows-nat.h (struct windows_thread_info)
5484 <stopped_at_software_breakpoint>: New field.
5485 * nat/windows-nat.c (windows_thread_info::resume): Clear
5486 stopped_at_software_breakpoint.
5487
8e61ebec
TT
54882020-04-08 Tom Tromey <tromey@adacore.com>
5489
5490 * windows-nat.c (enum thread_disposition_type): New.
5491 (thread_rec): Replace "get_context" parameter with "disposition";
5492 change type.
5493 (windows_add_thread, windows_nat_target::fetch_registers)
5494 (windows_nat_target::store_registers, handle_exception)
5495 (windows_nat_target::resume, get_windows_debug_event)
5496 (windows_nat_target::get_tib_address)
5497 (windows_nat_target::thread_name)
5498 (windows_nat_target::thread_alive): Update.
5499
98a03287
TT
55002020-04-08 Tom Tromey <tromey@adacore.com>
5501
5502 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5503 (windows_continue): Use windows_continue::resume.
5504 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5505 resume>: Declare new methods.
5506 * nat/windows-nat.c: New file.
5507 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5508
7c7411bc
TT
55092020-04-08 Tom Tromey <tromey@adacore.com>
5510
5511 * windows-nat.c (windows_add_thread, windows_delete_thread)
5512 (windows_nat_target::fetch_registers)
5513 (windows_nat_target::store_registers, fake_create_process)
5514 (windows_nat_target::resume, windows_nat_target::resume)
5515 (get_windows_debug_event, windows_nat_target::wait)
5516 (windows_nat_target::pid_to_str)
5517 (windows_nat_target::get_tib_address)
5518 (windows_nat_target::get_ada_task_ptid)
5519 (windows_nat_target::thread_name)
5520 (windows_nat_target::thread_alive): Use lwp, not tid.
5521
2950fdf7
TT
55222020-04-08 Tom Tromey <tromey@adacore.com>
5523
5524 * windows-nat.c (handle_exception)
5525 (windows_nat_target::thread_name): Update.
5526 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5527 <name>: Now unique_xmalloc_ptr.
5528
62fe396b
TT
55292020-04-08 Tom Tromey <tromey@adacore.com>
5530
5531 * windows-nat.c (thread_rec)
5532 (windows_nat_target::fetch_registers): Update.
5533 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5534 Update comment.
5535 <debug_registers_changed, reload_context>: Now bool.
5536
e9534bd2
TT
55372020-04-08 Tom Tromey <tromey@adacore.com>
5538
5539 * windows-nat.c (windows_add_thread): Use new.
5540 (windows_init_thread_list, windows_delete_thread): Use delete.
5541 (get_windows_debug_event): Update.
5542 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5543 destructor, and initializers.
5544
ae1f8880
TT
55452020-04-08 Tom Tromey <tromey@adacore.com>
5546
5547 * windows-nat.c (struct windows_thread_info): Remove.
5548 * nat/windows-nat.h: New file.
5549
55a1e039
TT
55502020-04-08 Tom Tromey <tromey@adacore.com>
5551
5552 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5553 (thread_rec, windows_add_thread, windows_delete_thread)
5554 (windows_continue): Update.
5555
93366324
TT
55562020-04-08 Tom Tromey <tromey@adacore.com>
5557
5558 * windows-nat.c (struct windows_thread_info): Remove typedef.
5559 (thread_head): Remove.
5560 (thread_list): New global.
5561 (thread_rec, windows_add_thread, windows_init_thread_list)
5562 (windows_delete_thread, windows_continue): Update.
5563
0f2265e2
SM
55642020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * windows-tdep.h (windows_init_abi): Add comment.
5567 (cygwin_init_abi): New declaration.
5568 * windows-tdep.c: Split signal enumeration in two, one for
5569 Windows and one for Cygwin.
5570 (windows_gdb_signal_to_target): Only deal with signal of the
5571 Windows OS ABI.
5572 (cygwin_gdb_signal_to_target): New function.
5573 (windows_init_abi): Rename to windows_init_abi_common, don't set
5574 gdb_signal_to_target gdbarch method. Add new new function with
5575 this name.
5576 (cygwin_init_abi): New function.
5577 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5578 comment. Don't call windows_init_abi.
5579 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5580 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5581 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5582 i386_windows_init_abi_common, don't call windows_init_abi. Add
5583 a new function of this name.
5584 (i386_cygwin_init_abi): New function.
5585 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5586 OS ABI Cygwin.
5587
3810f182
SM
55882020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5589
5590 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5591 parameter.c.
5592 (dwarf2_read_gdb_index): Update.
5593
063f8e80
KR
55942020-04-07 Kamil Rytarowski <n54@gmx.com>
5595
5596 * nbsd-tdep.c: Include "objfiles.h".
5597 (nbsd_skip_solib_resolver): New.
5598 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5599
85a9510c 56002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5601
5602 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5603 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5604 with DW_LLE_base_addressx are being emitted in DWARFv5.
5605 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5606 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5607 unsigned integer.
5608
9fc3eaae 56092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5610
5611 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5612 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5613 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5614 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5615 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5616 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5617 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5618
5619
41144253 56202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5621
5622 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5623 (read_loclist_index): New function definition.
5624 (lookup_loclist_base): New function definition.
5625 (read_loclist_header): New function definition.
5626 (dwarf2_cu): Add loclist_base and loclist_header field.
5627 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5628 (read_full_die_1): Read the value of DW_AT_loclists_base.
5629 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5630 (read_attribute_value): Handle DW_FORM_loclistx.
5631 (skip_one_die): Handle DW_FORM_loclistx.
5632 (loclist_header): New structure declaration.
5633 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5634
9f4e76a4
SM
56352020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5636
5637 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5638 constructor. Remove `addr` parameter from other constructor and
5639 add `per_cu` parameter.
5640 * dwarf2/read.c (create_partial_symtab): Update.
5641
25c11aca
TV
56422020-04-07 Tom de Vries <tdevries@suse.de>
5643
5644 PR symtab/25796
5645 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5646 (partial_die_info::fixup): Inherit has_const_value.
5647
5707e24b
TV
56482020-04-07 Tom de Vries <tdevries@suse.de>
5649
5650 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5651 symbols without address.
5652
05f00e22
KR
56532020-04-06 Kamil Rytarowski <n54@gmx.com>
5654
5655 * nbsd-nat.h (struct thread_info): Add forward declaration.
5656 (nbsd_nat_target::thread_alive): Add.
5657 (nbsd_nat_target::thread_name): Likewise.
5658 (nbsd_nat_target::update_thread_list): Likewise.
5659 (update_thread_list::post_attach): Likewise.
5660 (post_attach::pid_to_str): Likewise.
5661 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5662 (nbsd_thread_lister): Add.
5663 (nbsd_nat_target::thread_alive): Likewise.
5664 (nbsd_nat_target::thread_name): Likewise.
5665 (nbsd_add_threads): Likewise.
5666 (update_thread_list::post_attach): Likewise.
5667 (nbsd_nat_target::update_thread_list): Likewise.
5668 (post_attach::pid_to_str): Likewise.
5669
6ee448cc
TT
56702020-04-06 Tom Tromey <tromey@adacore.com>
5671
5672 * ada-valprint.c (print_variant_part): Extract the variant field.
5673 (print_field_values): Use the field as the outer value when
5674 recursing.
5675
dea34e8c
TT
56762020-04-06 Tom Tromey <tromey@adacore.com>
5677
5678 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5679 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5680 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5681 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5682 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5683
93689ce9
TT
56842020-04-06 Tom Tromey <tromey@adacore.com>
5685
5686 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5687 TYPE_CODE_ERROR.
5688
79743962
KR
56892020-04-06 Kamil Rytarowski <n54@gmx.com>
5690
5691 * nbsd-tdep.c: Include "gdbarch.h".
5692 Define enum with NetBSD signal numbers.
5693 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5694 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5695 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5696 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5697 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5698 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5699 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5700 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5701 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5702 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5703 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5704 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5705
9e7c9a03
HD
57062020-04-03 Hannes Domani <ssbssa@yahoo.de>
5707
5708 PR gdb/25325
5709 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5710
d9e49b61
TT
57112020-04-03 Tom Tromey <tromey@adacore.com>
5712
5713 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5714 Read constant block.
5715
e0fc5c3f
SM
57162020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5719 (gdb_bfd_get_full_section_contents): New declaration.
5720 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5721 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5722 gdb_bfd_get_full_section_contents.
5723
e2ff18a0
SM
57242020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * exec.c (build_section_table): Replace internal_error with
5727 gdb_assert.
5728 (section_table_xfer_memory_partial): Likewise.
5729 * mdebugread.c (parse_partial_symbols): Likewise.
5730 * psymtab.c (lookup_partial_symbol): Likewise.
5731 * utils.c (wrap_here): Likewise.
5732
0830d301
TT
57332020-04-02 Tom Tromey <tromey@adacore.com>
5734
5735 * f-lang.c (build_fortran_types): Use arch_type to initialize
5736 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5737
e7da7f8f
TT
57382020-04-02 Tom Tromey <tromey@adacore.com>
5739
5740 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5741 of attributes.
5742
c90d28ac
AB
57432020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5744 Bernd Edlinger <bernd.edlinger@hotmail.de>
5745 Tom Tromey <tromey@adacore.com>
5746
5747 * buildsym.c (buildsym_compunit::record_line): Remove
5748 deduplication code.
5749
1aa98955
TV
57502020-04-02 Tom de Vries <tdevries@suse.de>
5751
5752 PR ada/24671
5753 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5754
d3214198
TV
57552020-04-02 Tom de Vries <tdevries@suse.de>
5756
5757 * dwarf2/read.c (dwarf2_gdb_index_functions,
5758 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5759 NULL.
5760 * psymtab.c (psym_lookup_global_symbol_language): New function.
5761 (psym_functions): Init psym_lookup_global_symbol_language with
5762 psym_lookup_global_symbol_language.
5763 * symfile-debug.c (debug_sym_quick_functions): Init
5764 lookup_global_symbol_language with NULL.
5765 * symfile.c (set_initial_language): Remove fixme comment.
5766 * symfile.h (struct quick_symbol_functions): Add
5767 lookup_global_symbol_language.
5768 * symtab.c (find_quick_global_symbol_language): New function.
5769 (find_main_name): Use find_quick_global_symbol_language.
5770
2836752f
SM
57712020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5774
64dc2d4b
BE
57752020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5776
5777 * buildsym.c (record_line): Fix undefined behavior and preserve
5778 lines at eof.
5779
bbe3dc41
BE
57802020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5781
5782 * buildsym.c (record_line): Fix the resizing condition.
5783
6b4a335b
TT
57842020-04-01 Tom Tromey <tom@tromey.com>
5785
5786 * value.h (value_literal_complex): Add comment.
5787 * valops.c (value_literal_complex): Refer to value.h.
5788
3638a098
TT
57892020-04-01 Tom Tromey <tom@tromey.com>
5790
5791 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5792 (scalar_type): New rule, from typebase.
5793 (typebase): Use scalar_type. Recognize complex types.
5794 (field_name): Handle FLOAT_KEYWORD.
5795 (ident_tokens): Add _Complex and __complex__.
5796
c34e8714
TT
57972020-04-01 Tom Tromey <tom@tromey.com>
5798
5799 PR exp/25299:
5800 * valarith.c (promotion_type, complex_binop): New functions.
5801 (scalar_binop): Handle complex numbers. Use promotion_type.
5802 (value_pos, value_neg, value_complement): Handle complex numbers.
5803
fa649bb7
TT
58042020-04-01 Tom Tromey <tom@tromey.com>
5805
5806 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5807 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5808 (parse_number): Handle complex numbers.
5809
981c08ce
TT
58102020-04-01 Tom Tromey <tom@tromey.com>
5811
5812 * c-valprint.c (c_decorations): Change complex suffix to "i".
5813
4c99290d
TT
58142020-04-01 Tom Tromey <tom@tromey.com>
5815
5816 * valprint.c (generic_value_print_complex): Use accessors.
5817 * value.h (value_real_part, value_imaginary_part): Declare.
5818 * valops.c (value_real_part, value_imaginary_part): New
5819 functions.
5820 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5821
5b930b45
TT
58222020-04-01 Tom Tromey <tom@tromey.com>
5823
5824 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5825 (read_range_type): Update.
5826 * mdebugread.c (basic_type): Update.
5827 * go-lang.c (build_go_types): Use init_complex_type.
5828 * gdbtypes.h (struct main_type) <complex_type>: New member.
5829 (init_complex_type): Update.
5830 (arch_complex_type): Don't declare.
5831 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5832 Make name if none given. Use alloc_type_copy. Look for cached
5833 complex type.
5834 (arch_complex_type): Remove.
5835 (gdbtypes_post_init): Use init_complex_type.
5836 * f-lang.c (build_fortran_types): Use init_complex_type.
5837 * dwarf2/read.c (read_base_type): Update.
5838 * d-lang.c (build_d_types): Use init_complex_type.
5839 * ctfread.c (read_base_type): Update.
5840
53cccef1
TBA
58412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5842
5843 * infrun.c (stop_all_threads): Update assertion, plus when
5844 stopping threads, take into account that we might be trying
5845 to stop an all-stop target.
5846 (stop_waiting): Call 'stop_all_threads' if there exists a
5847 non-stop target.
5848
a0714d30
TBA
58492020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850
5851 * target.h (exists_non_stop_target): New function declaration.
5852 * target.c (exists_non_stop_target): New function.
5853
60e22c1e
HD
58542020-04-01 Hannes Domani <ssbssa@yahoo.de>
5855
5856 PR gdb/24789
5857 * eval.c (is_integral_or_integral_reference): New function.
5858 (evaluate_subexp_standard): Allow integer references in
5859 pointer arithmetic.
5860
e139a727
TBA
58612020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5862
5863 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5864 check for no ptid in the stop reply when the target is non-stop.
5865
e0802d59
TT
58662020-04-01 Tom Tromey <tromey@adacore.com>
5867
5868 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5869 "name" parameter to rvalue reference. Initialize m_name_holder.
5870 <lookup_name_info>: New overloads.
5871 <name>: Return gdb::string_view.
5872 <c_str>: New method.
5873 <make_ignore_params>: Update.
5874 <search_name_hash>: Update.
5875 <language_lookup_name>: Return const char *.
5876 <m_name>: Change type.
5877 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5878 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5879 (lookup_name_info::match_any): Update.
5880 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5881 Update.
5882 * minsyms.c (linkage_name_str): Update.
5883 * language.c (default_symbol_name_matcher): Update.
5884 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5885 Update.
5886 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5887 (ada_lookup_name_info::ada_lookup_name_info): Update.
5888 (literal_symbol_name_matcher): Update.
5889
8c072cb6
TT
58902020-04-01 Tom Tromey <tromey@adacore.com>
5891
5892 * psymtab.c (psymtab_search_name): Remove function.
5893 (psym_lookup_symbol): Create search name and lookup name here.
5894 (lookup_partial_symbol): Remove "name" parameter; add
5895 lookup_name.
5896 (psym_expand_symtabs_for_function): Update.
5897
6f29a534
TT
58982020-03-31 Joel Jones <joelkevinjones@gmail.com>
5899
5900 PR tui/25597:
5901 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5902
af62665e
TT
59032020-03-31 Tom Tromey <tromey@adacore.com>
5904
5905 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5906 memcpy.
5907
d1a89da5
NC
59082020-03-30 Nelson Chu <nelson.chu@sifive.com>
5909
5910 * features/riscv/32bit-csr.xml: Regenerated.
5911 * features/riscv/64bit-csr.xml: Regenerated.
5912
d8af9068
TT
59132020-03-30 Tom Tromey <tromey@adacore.com>
5914
5915 * ada-valprint.c (print_variant_part): Update.
5916 * ada-lang.h (ada_which_variant_applies): Update.
5917 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5918 outer_valaddr parameters; replace with "outer" value parameter.
5919 (to_fixed_variant_branch_type): Update.
5920
227c0bf4
PFC
59212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5922
5923 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5924 <list>. Remove inclusion of observable.h.
5925 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5926 (struct arch_lwp_info): New struct.
5927 (class ppc_linux_dreg_interface): New class.
5928 (struct ppc_linux_process_info): New struct.
5929 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5930 <low_new_clone, low_forget_process, low_prepare_to_resume>
5931 <copy_thread_dreg_state, mark_thread_stale>
5932 <mark_debug_registers_changed, register_hw_breakpoint>
5933 <clear_hw_breakpoint, register_wp, clear_wp>
5934 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5935 <num_memory_accesses, get_trigger_type>
5936 <create_watchpoint_request, hwdebug_point_cmp>
5937 <init_arch_lwp_info, get_arch_lwp_info>
5938 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5939 methods.
5940 <struct ptid_hash>: New inner struct.
5941 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5942 members.
5943 (saved_dabr_value, hwdebug_info, max_slots_number)
5944 (struct hw_break_tuple, struct thread_points, ppc_threads)
5945 (have_ptrace_hwdebug_interface)
5946 (hwdebug_find_thread_points_by_tid)
5947 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5948 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5949 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5950 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5951 use m_dreg_interface.
5952 (hwdebug_point_cmp): Change to...
5953 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5954 reference arguments instead of pointers.
5955 (ppc_linux_nat_target::ranged_break_num_registers): Use
5956 m_dreg_interface.
5957 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5958 m_dreg_interface. Call register_hw_breakpoint.
5959 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5960 m_dreg_interface. Call clear_hw_breakpoint.
5961 (get_trigger_type): Change to...
5962 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5963 comment.
5964 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5965 use m_dreg_interface. Call register_hw_breakpoint.
5966 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5967 use m_dreg_interface. Call clear_hw_breakpoint.
5968 (can_use_watchpoint_cond_accel): Change to...
5969 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5970 method. Update comment, use m_dreg_interface and
5971 m_process_info.
5972 (calculate_dvc): Change to...
5973 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5974 m_dreg_interface.
5975 (num_memory_accesses): Change to...
5976 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5977 (check_condition): Change to...
5978 (ppc_linux_nat_target::check_condition): ...this method.
5979 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5980 comment, use m_dreg_interface.
5981 (create_watchpoint_request): Change to...
5982 (ppc_linux_nat_target::create_watchpoint_request): ...this
5983 method. Use m_dreg_interface.
5984 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5985 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5986 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5987 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5988 (ppc_linux_nat_target::low_forget_process)
5989 (ppc_linux_nat_target::low_new_fork)
5990 (ppc_linux_nat_target::low_new_clone)
5991 (ppc_linux_nat_target::low_delete_thread)
5992 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5993 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5994 only call mark_thread_stale.
5995 (ppc_linux_thread_exit): Remove.
5996 (ppc_linux_nat_target::stopped_data_address): Change to...
5997 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5998 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5999 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6000 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6001 comment. Call low_stopped_data_address.
6002 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6003 m_dreg_interface.
6004 (ppc_linux_nat_target::masked_watch_num_registers): Use
6005 m_dreg_interface.
6006 (ppc_linux_nat_target::copy_thread_dreg_state)
6007 (ppc_linux_nat_target::mark_thread_stale)
6008 (ppc_linux_nat_target::mark_debug_registers_changed)
6009 (ppc_linux_nat_target::register_hw_breakpoint)
6010 (ppc_linux_nat_target::clear_hw_breakpoint)
6011 (ppc_linux_nat_target::register_wp)
6012 (ppc_linux_nat_target::clear_wp)
6013 (ppc_linux_nat_target::init_arch_lwp_info)
6014 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6015 (_initialize_ppc_linux_nat): Remove observer callback.
6016
4db10d8f
PFC
60172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6018
6019 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6020 (ppc_linux_nat_target::auxv_parse)
6021 (ppc_linux_nat_target::read_description)
6022 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6023 Move up.
6024
1310c1b0
PFC
60252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6026
6027 * linux-nat.h (low_new_clone): New method.
6028 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6029
69b037c3
SM
60302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6031
6032 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6033 (dbx_expand_psymtab): ... this.
6034 (start_psymtab): Update.
6035 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6036 (mdebug_expand_psymtab): ... this.
6037 (parse_partial_symbols): Update.
6038 (new_psymtab): Update.
6039 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6040 (xcoff_expand_psymtab): ... this.
6041 (xcoff_start_psymtab): Update.
6042
48993951
SM
60432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6046 <expand_dependencies>: ... this.
6047 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6048 (partial_symtab::expand_dependencies): ... this.
6049 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6050 Update.
6051 (dwarf2_psymtab::expand_psymtab): Update.
6052 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6053 * mdebugread.c (psymtab_to_symtab_1): Update.
6054 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6055
3ad83046
SM
60562020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * psympriv.h (discard_psymtab): Remove.
6059 * dbxread.c (dbx_end_psymtab): Update.
6060 * xcoffread.c (xcoff_end_psymtab): Update.
6061
4d1b9ab6
TT
60622020-03-28 Tom Tromey <tom@tromey.com>
6063
6064 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6065 comment.
6066
f1749218
TT
60672020-03-28 Tom Tromey <tom@tromey.com>
6068
6069 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6070
ebea7626
HD
60712020-03-27 Hannes Domani <ssbssa@yahoo.de>
6072
6073 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6074
a879b4d5
JB
60752020-03-26 John Baldwin <jhb@FreeBSD.org>
6076
6077 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6078
0826b30a
TT
60792020-03-26 Tom Tromey <tom@tromey.com>
6080
6081 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6082 (mark_common_block_symbol_computed, read_tag_string_type)
6083 (attr_to_dynamic_prop, read_subrange_type): Update.
6084 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6085 to be methods on struct attribute.
6086 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6087 (read_call_site_scope, partial_die_info::read)
6088 (partial_die_info::read, lookup_die_type, follow_die_ref):
6089 Update.
6090 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6091 from dwarf2_get_ref_die_offset.
6092 (attribute::constant_value): New method, from
6093 dwarf2_get_attr_constant_value.
6094 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6095 Declare method.
6096 <constant_value>: New method.
6097
2b2558bf
TT
60982020-03-26 Tom Tromey <tom@tromey.com>
6099
6100 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6101 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6102 (dwarf_type_encoding_name): Move to stringify.c.
6103 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6104 * dwarf2/stringify.c: New file.
6105 * dwarf2/stringify.h: New file.
6106
eeb64781
TT
61072020-03-26 Tom Tromey <tom@tromey.com>
6108
6109 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6110 Rewrite.
6111
a39fdb41
TT
61122020-03-26 Tom Tromey <tom@tromey.com>
6113
6114 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6115 methods.
6116 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6117 (lookup_ranges_base): Likewise.
6118 (read_cutu_die_from_dwo, read_full_die_1): Update.
6119
436c571c
TT
61202020-03-26 Tom Tromey <tom@tromey.com>
6121
6122 * dwarf2/read.c (read_import_statement, read_file_scope)
6123 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6124 (read_lexical_block_scope, read_call_site_scope)
6125 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6126 (handle_struct_member_die, process_structure_scope)
6127 (update_enumeration_type_from_children)
6128 (process_enumeration_scope, read_array_type, read_common_block)
6129 (read_namespace, read_module, read_subroutine_type): Update.
6130 (sibling_die): Remove.
6131
052c8bb8
TT
61322020-03-26 Tom Tromey <tom@tromey.com>
6133
6134 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6135 (build_type_psymtabs_reader, read_structure_type)
6136 (read_enumeration_type, read_full_die_1): Update.
6137 (dwarf2_attr_no_follow): Move to die.h.
6138 * dwarf2/die.h (struct die_info) <attr>: New method.
6139
2b24b6e4
TT
61402020-03-26 Tom Tromey <tom@tromey.com>
6141
6142 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6143 <base_address>: Now an optional.
6144 (dwarf2_find_base_address, dwarf2_rnglists_process)
6145 (dwarf2_ranges_process, fill_in_loclist_baton)
6146 (dwarf2_symbol_mark_computed): Update.
6147
c2d50fd0
TT
61482020-03-26 Tom Tromey <tom@tromey.com>
6149
6150 * dwarf2/read.c (struct die_info): Move to die.h.
6151 * dwarf2/die.h: New file.
6152
0df7ad3a
TT
61532020-03-26 Tom Tromey <tom@tromey.com>
6154
6155 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6156 * dwarf2/read.c
6157 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6158 Move to line-header.c.
6159 (read_checked_initial_length_and_offset, read_formatted_entries):
6160 Likewise.
6161 (dwarf_decode_line_header): Split into two.
6162 * dwarf2/line-header.c
6163 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6164 Move from read.c.
6165 (read_checked_initial_length_and_offset, read_formatted_entries):
6166 Likewise.
6167 (dwarf_decode_line_header): New function, split from read.c.
6168
86c0bb4c
TT
61692020-03-26 Tom Tromey <tom@tromey.com>
6170
6171 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6172 Declare method.
6173 * dwarf2/read.c (read_attribute_value): Update.
6174 (dwarf2_per_objfile::read_line_string): Rename from
6175 read_indirect_line_string.
6176 (read_formatted_entries): Update.
6177
2ef46c2f
TT
61782020-03-26 Tom Tromey <tom@tromey.com>
6179
6180 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6181 variable.
6182
4f9c1eda
TT
61832020-03-26 Tom Tromey <tom@tromey.com>
6184
6185 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6186 const.
6187 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6188 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6189 parameter const.
6190
5a0e026f
TT
61912020-03-26 Tom Tromey <tom@tromey.com>
6192
6193 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6194 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6195 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6196 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6197
8844c11b
TT
61982020-03-26 Tom Tromey <tom@tromey.com>
6199
6200 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6201 file_names_size, file_full_name, file_file_name>: Use const.
6202 <file_name_at, file_names>: Add const overload.
6203 * dwarf2/line-header.c (line_header::file_file_name)
6204 (line_header::file_full_name): Update.
6205
c90ec28a
TT
62062020-03-26 Tom Tromey <tom@tromey.com>
6207
6208 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6209 (macro_start_file, consume_improper_spaces)
6210 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6211 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6212 (dwarf_decode_macros): Move to macro.c.
6213 * dwarf2/macro.c: New file.
6214 * dwarf2/macro.h: New file.
6215 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6216
4f44ae6c
TT
62172020-03-26 Tom Tromey <tom@tromey.com>
6218
6219 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6220 method.
6221 * dwarf2/section.c: New method. From
6222 read_indirect_string_at_offset_from.
6223 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6224 (read_indirect_string_at_offset_from): Move to section.c.
6225 (read_indirect_string_at_offset): Rewrite.
6226 (read_indirect_line_string_at_offset): Remove.
6227 (read_indirect_string, read_indirect_line_string)
6228 (dwarf_decode_macro_bytes): Update.
6229
a0194fa8
TT
62302020-03-26 Tom Tromey <tom@tromey.com>
6231
6232 * dwarf2/section.h (struct dwarf2_section_info)
6233 <overload_complaint>: Declare.
6234 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6235 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6236 Rename from dwarf2_section_buffer_overflow_complaint.
6237 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6238 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6239
3d27bbdb
TT
62402020-03-26 Tom Tromey <tom@tromey.com>
6241
6242 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6243 Declare.
6244 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6245 Move from read.c.
6246 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6247 to section.c.
6248
9eac9650
TT
62492020-03-26 Tom Tromey <tom@tromey.com>
6250
6251 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6252
bf80d710
TT
62532020-03-26 Tom Tromey <tom@tromey.com>
6254
6255 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6256 "builder".
6257 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6258 parameter.
6259 (dwarf_decode_macros): Update.
6260
0314b390
TT
62612020-03-26 Tom Tromey <tom@tromey.com>
6262
6263 * dwarf2/read.c (read_attribute_value): Update.
6264 (read_indirect_string_from_dwz): Move to dwz.c; change into
6265 method.
6266 (dwarf_decode_macro_bytes): Update.
6267 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6268 * dwarf2/dwz.c: New file.
6269 * Makefile.in (COMMON_SFILES): Add dwz.c.
6270
9fda78b6
TT
62712020-03-26 Tom Tromey <tom@tromey.com>
6272
6273 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6274 * dwarf2/read.c: Add include.
6275 * dwarf2/index-write.c: Add include.
6276 * dwarf2/index-cache.c: Add include.
6277 * dwarf2/dwz.h: New file.
6278
33aa3c10
TT
62792020-03-25 Tom Tromey <tom@tromey.com>
6280
6281 * compile/compile-object-load.c (get_out_value_type): Mention
6282 correct symbol name in error message.
6283
d503b685
HD
62842020-03-25 Hannes Domani <ssbssa@yahoo.de>
6285
6286 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6287
7b1eff95
TV
62882020-03-25 Tom de Vries <tdevries@suse.de>
6289
6290 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6291 * symmisc.c (dump_symtab_1): Print user and includes fields.
6292 (maintenance_info_symtabs): Same.
6293
dd895392
AB
62942020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 PR gdb/25534
6297 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6298 (riscv_regcache_cooked_write): New function.
6299 (riscv_push_dummy_call): Use new function.
6300 (riscv_return_value): Likewise.
6301
5ab2fbf1
SM
63022020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6303
6304 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6305 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6306 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6307 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6308 * infrun.c (follow_fork): Likewise.
6309 (follow_fork_inferior): Likewise.
6310 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6311 * linux-nat.h (class linux_nat_target): Likewise.
6312 * remote.c (class remote_target) <follow_fork>: Likewise.
6313 (remote_target::follow_fork): Likewise.
6314 * target-delegates.c: Re-generate.
6315 * target.c (default_follow_fork): Likewise.
6316 (target_follow_fork): Likewise.
6317 * target.h (struct target_ops) <follow_fork>: Likewise.
6318 (target_follow_fork): Likewise.
6319
a64fafb5
TV
63202020-03-24 Tom de Vries <tdevries@suse.de>
6321
6322 * psymtab.c (maintenance_info_psymtabs): Print user field.
6323
fe26d3a3
TT
63242020-03-20 Tom Tromey <tromey@adacore.com>
6325
6326 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6327 const.
6328 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6329 const.
6330
c884cc46
SM
63312020-03-20 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * ptrace.m4: Don't check for ptrace declaration.
6334 * config.in: Re-generate.
6335 * configure: Re-generate.
6336 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6337 not defined.
6338
1ff700c2
KR
63392020-03-20 Kamil Rytarowski <n54@gmx.com>
6340
6341 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6342 `PTRACE_TYPE_RET'.
6343 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6344 * sparc-nat.c (gdb_ptrace): Likewise.
6345 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6346
f7d4f0b1
TT
63472020-03-20 Tom Tromey <tromey@adacore.com>
6348
6349 * c-exp.y (lex_one_token): Fix assert.
6350
f67210ff
TT
63512020-03-20 Tom Tromey <tromey@adacore.com>
6352
6353 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6354 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6355 strncpy call.
6356
1773be9e
TT
63572020-03-20 Tom Tromey <tromey@adacore.com>
6358
6359 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6360
70304be9
TT
63612020-03-20 Tom Tromey <tromey@adacore.com>
6362
6363 * ada-valprint.c (print_variant_part): Remove parameters; switch
6364 to value-based API.
6365 (print_field_values): Likewise.
6366 (ada_val_print_struct_union): Likewise.
6367 (ada_value_print_1): Update.
6368
9faa006d
KR
63692020-03-20 Kamil Rytarowski <n54@gmx.com>
6370
6371 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6372 nbsd_nat_target instead of inf_ptrace_target.
6373 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6374 nbsd_nat_target.
6375
4a90f062
KR
63762020-03-20 Kamil Rytarowski <n54@gmx.com>
6377
6378 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6379 it to the ptrace call.
6380 * (store_registers): Likewise.
6381
63822020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6383
6384 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6385 it to the ptrace call.
6386 * (store_registers): Likewise.
6387
2d07da27
LM
63882020-03-19 Luis Machado <luis.machado@linaro.org>
6389
6390 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6391 valid, fetch vg value from ptrace.
6392
f09db380
KR
63932020-03-19 Kamil Rytarowski <n54@gmx.com>
6394 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6395 * inf-ptrace.c: Likewise.
6396 * (gdb_ptrace): Add.
6397 * (inf_ptrace_target::resume): Update.
6398 * (inf_ptrace_target::xfer_partial): Likewise.
6399 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6400 * (inf_ptrace_peek_poke): Update.
6401
fcc7376e
KR
64022020-03-19 Kamil Rytarowski <n54@gmx.com>
6403
6404 * x86-bsd-nat.c (gdb_ptrace): New.
6405 * (x86bsd_dr_set): Add new argument `ptid'.
6406 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6407 x86bsd_dr_set_addr): Update.
6408
cada5fc9
AB
64092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * remote.c (remote_target::process_stop_reply): Handle events for
6412 all threads differently.
6413
19a2740f
AB
64142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6415
6416 * completer.c (completion_tracker::remove_completion): Define new
6417 function.
6418 * completer.h (completion_tracker::remove_completion): Declare new
6419 function.
6420 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6421 when adding a C++ function symbol.
6422
724fd9ba
AB
64232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * completer.c (completion_tracker::completion_hash_entry): Define
6426 new class.
6427 (advance_to_filename_complete_word_point): Call
6428 recompute_lowest_common_denominator.
6429 (completion_tracker::completion_tracker): Call discard_completions
6430 to setup the hash table.
6431 (completion_tracker::discard_completions): Allow for being called
6432 from the constructor, pass new equal function, and element deleter
6433 when constructing the hash table. Initialise new class member
6434 variables.
6435 (completion_tracker::maybe_add_completion): Remove use of
6436 m_entries_vec, and store more information into m_entries_hash.
6437 (completion_tracker::recompute_lcd_visitor): New function, most
6438 content taken from...
6439 (completion_tracker::recompute_lowest_common_denominator):
6440 ...here, this now just visits each item in the hash calling the
6441 above visitor.
6442 (completion_tracker::build_completion_result): Remove use of
6443 m_entries_vec, call recompute_lowest_common_denominator.
6444 * completer.h (completion_tracker::have_completions): Remove use
6445 of m_entries_vec.
6446 (completion_tracker::completion_hash_entry): Declare new class.
6447 (completion_tracker::recompute_lowest_common_denominator): Change
6448 function signature.
6449 (completion_tracker::recompute_lcd_visitor): Declare new function.
6450 (completion_tracker::m_entries_vec): Delete.
6451 (completion_tracker::m_entries_hash): Initialize to NULL.
6452 (completion_tracker::m_lowest_common_denominator_valid): New
6453 member variable.
6454 (completion_tracker::m_lowest_common_denominator_max_length): New
6455 member variable.
6456
5a82b8a1
KR
64572020-03-17 Kamil Rytarowski <n54@gmx.com>
6458
6459 * regformats/regdef.h: Put reg in gdb namespace.
6460
fb516a69
KR
64612020-03-17 Kamil Rytarowski <n54@gmx.com>
6462
6463 * i386-bsd-nat.c (gdb_ptrace): New.
6464 * (i386bsd_fetch_inferior_registers,
6465 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6466 * (i386bsd_fetch_inferior_registers,
6467 i386bsd_store_inferior_registers) Use gdb_ptrace.
6468
1c0aa1fb
KR
64692020-03-17 Kamil Rytarowski <n54@gmx.com>
6470
6471 * amd64-bsd-nat.c (gdb_ptrace): New.
6472 * (amd64bsd_fetch_inferior_registers,
6473 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6474 * (amd64bsd_fetch_inferior_registers,
6475 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6476
5ccd2fb7
KR
64772020-03-17 Kamil Rytarowski <n54@gmx.com>
6478
6479 * user-regs.c (user_reg::read): Rename to...
6480 (user_reg::xread): ...this.
6481 * (append_user_reg): Rename argument `read' to `xread'.
6482 * (user_reg_add_builtin): Likewise.
6483 * (user_reg_add): Likewise.
6484 * (value_of_user_reg): Likewise.
6485
2108a63a
KR
64862020-03-17 Kamil Rytarowski <n54@gmx.com>
6487
6488 * sparc-nat.c (gdb_ptrace): New.
6489 * sparc-nat.c (sparc_fetch_inferior_registers)
6490 (sparc_store_inferior_registers) Remove obsolete comment.
6491 * sparc-nat.c (sparc_fetch_inferior_registers)
6492 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6493 * sparc-nat.c (sparc_fetch_inferior_registers)
6494 (sparc_store_inferior_registers) Use gdb_ptrace.
6495
a225c9a8
KR
64962020-03-17 Kamil Rytarowski <n54@gmx.com>
6497
6498 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6499 it to the ptrace call.
6500 * sh-nbsd-nat.c (store_registers): Likewise.
6501
98097623
KR
65022020-03-17 Kamil Rytarowski <n54@gmx.com>
6503
6504 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6505 nbsd_nat_target instead of inf_ptrace_target.
6506 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6507 nbsd_nat_target.
6508
9e38d619
KR
65092020-03-17 Kamil Rytarowski <n54@gmx.com>
6510
6511 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6512
a2ecbe9f
KR
65132020-03-17 Kamil Rytarowski <n54@gmx.com>
6514
6515 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6516 <sys/sysctl.h>.
6517 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6518
58990295
TV
65192020-03-17 Tom de Vries <tdevries@suse.de>
6520
6521 PR gdb/23710
6522 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6523 fields.
6524 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6525 fields.
6526 (process_imported_unit_die): Skip import of c++ CUs.
6527
771dd3a8
TT
65282020-03-16 Tom Tromey <tom@tromey.com>
6529
6530 * p-valprint.c (pascal_object_print_value): Initialize
6531 base_value.
6532
817a7585
AK
65332020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6534 Shahab Vahedi <shahab@synopsys.com>
6535
6536 * Makefile.in: Add arch/arc.o
6537 * configure.tgt: Likewise.
6538 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6539 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6540 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6541 * arc-tdep.h (arc_read_description): Add proto type.
6542 * arch/arc.c: New file.
6543 * arch/arc.h: Likewise.
6544 * features/Makefile: Replace old target descriptions with new.
6545 * features/arc-arcompact.c: Remove.
6546 * features/arc-arcompact.xml: Likewise.
6547 * features/arc-v2.c: Likewise
6548 * features/arc-v2.xml: Likewise
6549 * features/arc/aux-arcompact.xml: New file.
6550 * features/arc/aux-v2.xml: Likewise.
6551 * features/arc/core-arcompact.xml: Likewise.
6552 * features/arc/core-v2.xml: Likewise.
6553 * features/arc/aux-arcompact.c: Generate.
6554 * features/arc/aux-v2.c: Likewise.
6555 * features/arc/core-arcompact.c: Likewise.
6556 * features/arc/core-v2.c: Likewise.
6557 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6558
67430cd0
TT
65592020-03-16 Tom Tromey <tromey@adacore.com>
6560
6561 PR gdb/25663:
6562 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6563 putting value into bcache.
6564
30efb6c7
SM
65652020-03-16 Simon Marchi <simon.marchi@efficios.com>
6566
6567 PR gdb/21500
6568 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6569 to...
6570 (amd64_windows_init_abi_common): ... this. Don't set size of
6571 long type.
6572 (amd64_windows_init_abi): New function.
6573 (amd64_cygwin_init_abi): New function.
6574 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6575 the Cygwin OS ABI.
6576 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6577 comment.
6578
8db52437
SM
65792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6580
6581 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6582 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6583 (pe_import_directory_entry): New struct type.
6584 (is_linked_with_cygwin_dll): New function.
6585 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6586 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6587 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6588
5982a56a
SM
65892020-03-16 Simon Marchi <simon.marchi@efficios.com>
6590
6591 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6592 i386_cygwin_core_osabi_sniffer.
6593
7a1998df
SM
65942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * i386-cygwin-tdep.c: Rename to...
6597 * i386-windows-tdep.c: ... this.
6598 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6599 i386-windows-tdep.c.
6600 * configure.tgt: Likewise.
6601
053205cc
SM
66022020-03-16 Simon Marchi <simon.marchi@efficios.com>
6603
6604 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6605 * osabi.c (gdb_osabi_names): Add "Windows".
6606 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6607 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6608 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6609 i386_cygwin_osabi_sniffer.
6610 (_initialize_i386_cygwin_tdep): Register OS ABI
6611 GDB_OSABI_WINDOWS for i386.
6612 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6613 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6614 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6615 for x86-64.
6616 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6617 when the target matches '*-*-mingw*'.
6618
fe4b2ee6
SM
66192020-03-16 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * defs.h (enum gdb_osabi): Move to...
6622 * osabi.h (enum gdb_osabi): ... here.
6623 * gdbarch.sh: Include osabi.h in gdbarch.h.
6624 * gdbarch.h: Re-generate.
6625
cb9b645d
SM
66262020-03-16 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6629 function.
6630 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6631
3293bbaf
TT
66322020-03-14 Tom Tromey <tom@tromey.com>
6633
6634 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6635 for C++.
6636 (c_type_print_modifier): Likewise. Add "language" parameter.
6637 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6638 (c_type_print_base_1): Update.
6639 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6640 constants.
6641 * type-stack.c (type_stack::insert): Handle tp_atomic and
6642 tp_restrict.
6643 (type_stack::follow_type_instance_flags): Likewise.
6644 (type_stack::follow_types): Likewise. Merge type-following code.
6645 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6646 (space_identifier, cv_with_space_id)
6647 (const_or_volatile_or_space_identifier_noopt)
6648 (const_or_volatile_or_space_identifier): Remove.
6649 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6650 rules.
6651 (ptr_operator, typebase): Update.
6652 (enum token_flag) <FLAG_C>: New constant.
6653 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6654 "_Atomic".
6655 (lex_one_token): Handle FLAG_C.
6656
154151a6
KR
66572020-03-14 Kamil Rytarowski <n54@gmx.com>
6658
6659 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6660 it to the ptrace call.
6661 * m68k-bsd-nat.c (store_registers): Likewise.
6662
bc107784
KR
66632020-03-14 Kamil Rytarowski <n54@gmx.com>
6664
6665 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6666 gdb_byte *.
6667 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6668 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6669 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6670
01a80117
KR
66712020-03-14 Kamil Rytarowski <n54@gmx.com>
6672
6673 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6674 nbsd_nat_target instead of inf_ptrace_target.
6675 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6676 nbsd_nat_target.
6677
f90280ca
KR
66782020-03-14 Kamil Rytarowski <n54@gmx.com>
6679
6680 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6681 register_t.
6682
6def66f1
KR
66832020-03-14 Kamil Rytarowski <n54@gmx.com>
6684
6685 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6686 it to the ptrace call.
6687 * alpha-bsd-nat.c (store_registers): Likewise.
6688
66eaca97
KR
66892020-03-14 Kamil Rytarowski <n54@gmx.com>
6690
6691 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6692 includes.
6693 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6694 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6695 fill_fpregset): Likewise.
6696
4fed520b
KR
66972020-03-14 Kamil Rytarowski <n54@gmx.com>
6698
6699 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6700 nbsd_nat_target instead of inf_ptrace_target.
6701 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6702 nbsd_nat_target.
6703
2190cf06
KR
67042020-03-14 Kamil Rytarowski <n54@gmx.com>
6705
6706 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6707 register_t.
6708
75c56d3d
KR
67092020-03-14 Kamil Rytarowski <n54@gmx.com>
6710
6711 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6712 it to the ptrace call.
6713 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6714 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6715 * arm-nbsd-nat.c (store_register): Likewise.
6716 * arm-nbsd-nat.c (store_regs): Likewise.
6717 * arm-nbsd-nat.c (store_fp_register): Likewise.
6718 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6719
6018d381
KR
67202020-03-14 Kamil Rytarowski <n54@gmx.com>
6721
6722 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6723 nbsd_nat_target instead of inf_ptrace_target.
6724 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6725 nbsd_nat_target.
6726
013f99f0
KR
67272020-03-14 Kamil Rytarowski <n54@gmx.com>
6728
6729 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6730 it to the ptrace call.
6731 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6732
12753073
KR
67332020-03-14 Kamil Rytarowski <n54@gmx.com>
6734
6227b330
KR
6735 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6736 it to the ptrace call.
6737 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6738
67392020-03-14 Kamil Rytarowski <n54@gmx.com>
6740
6741 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6742 gdb_byte *.
12753073
KR
6743 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6744
d5be5fa4
KR
67452020-03-14 Kamil Rytarowski <n54@gmx.com>
6746
6747 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6748 instead of inf_ptrace_target.
6749 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6750 nbsd_nat_target.
6751
8110f842
KR
67522020-03-14 Kamil Rytarowski <n54@gmx.com>
6753
6754 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6755 register_t.
6756
52feded7
KR
67572020-03-14 Kamil Rytarowski <n54@gmx.com>
6758
6759 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6760 register_t.
6761
25567eee
KR
67622020-03-14 Kamil Rytarowski <n54@gmx.com>
6763
6764 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6765 register_t.
6766
426a9c18
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * value.h (val_print): Don't declare.
6770 * valprint.h (val_print_array_elements)
6771 (val_print_scalar_formatted, generic_val_print): Don't declare.
6772 * valprint.c (generic_val_print_array): Take a struct value.
6773 (generic_val_print_ptr, generic_val_print_memberptr)
6774 (generic_val_print_bool, generic_val_print_int)
6775 (generic_val_print_char, generic_val_print_complex)
6776 (generic_val_print): Remove.
6777 (generic_value_print): Update.
6778 (do_val_print): Remove unused parameters. Don't call
6779 la_val_print.
6780 (val_print): Remove.
6781 (common_val_print): Update. Don't call value_check_printable.
6782 (val_print_scalar_formatted, val_print_array_elements): Remove.
6783 * rust-lang.c (rust_val_print): Remove.
6784 (rust_language_defn): Update.
6785 * p-valprint.c (pascal_val_print): Remove.
6786 (pascal_value_print_inner): Update.
6787 (pascal_object_print_val_fields, pascal_object_print_val):
6788 Remove.
6789 (pascal_object_print_static_field): Update.
6790 * p-lang.h (pascal_val_print): Don't declare.
6791 * p-lang.c (pascal_language_defn): Update.
6792 * opencl-lang.c (opencl_language_defn): Update.
6793 * objc-lang.c (objc_language_defn): Update.
6794 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6795 * m2-lang.h (m2_val_print): Don't declare.
6796 * m2-lang.c (m2_language_defn): Update.
6797 * language.h (struct language_defn) <la_val_print>: Remove.
6798 * language.c (unk_lang_value_print_inner): Rename. Change
6799 argument types.
6800 (unknown_language_defn, auto_language_defn): Update.
6801 * go-valprint.c (go_val_print): Remove.
6802 * go-lang.h (go_val_print): Don't declare.
6803 * go-lang.c (go_language_defn): Update.
6804 * f-valprint.c (f_val_print): Remove.
6805 * f-lang.h (f_value_print): Don't declare.
6806 * f-lang.c (f_language_defn): Update.
6807 * d-valprint.c (d_val_print): Remove.
6808 * d-lang.h (d_value_print): Don't declare.
6809 * d-lang.c (d_language_defn): Update.
6810 * cp-valprint.c (cp_print_value_fields)
6811 (cp_print_value_fields_rtti, cp_print_value): Remove.
6812 (cp_print_static_field): Update.
6813 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6814 (c_val_print_struct, c_val_print_union, c_val_print_int)
6815 (c_val_print_memberptr, c_val_print): Remove.
6816 * c-lang.h (c_val_print_array, cp_print_value_fields)
6817 (cp_print_value_fields_rtti): Don't declare.
6818 * c-lang.c (c_language_defn, cplus_language_defn)
6819 (asm_language_defn, minimal_language_defn): Update.
6820 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6821 (ada_val_print_enum): Take a struct value.
6822 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6823 (ada_val_print): Remove.
6824 (ada_value_print_1): Update.
6825 (printable_val_type): Remove.
6826 * ada-lang.h (ada_val_print): Don't declare.
6827 * ada-lang.c (ada_language_defn): Update.
6828
42331a1e
TT
68292020-03-13 Tom Tromey <tom@tromey.com>
6830
6831 * valprint.c (do_val_print): Update.
6832 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6833 a struct value.
6834 (value_to_value_object_no_release): Declare.
6835 * python/py-value.c (value_to_value_object_no_release): New
6836 function.
6837 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6838 struct value.
6839 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6840 function.
6841 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6842 a struct value.
6843 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6844 Declare.
6845 (gdbscm_apply_val_pretty_printer): Take a struct value.
6846 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6847 value.
6848 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6849 value.
6850 * extension-priv.h (struct extension_language_ops)
6851 <apply_val_pretty_printer>: Take a struct value.
6852 * cp-valprint.c (cp_print_value): Create a struct value.
6853 (cp_print_value): Update.
6854
3a916a97
TT
68552020-03-13 Tom Tromey <tom@tromey.com>
6856
6857 * ada-valprint.c (print_field_values): Call common_val_print.
6858
b59eac37
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * ada-valprint.c (val_print_packed_array_elements): Remove
6862 bitoffset and val parameters. Call common_val_print.
6863 (ada_val_print_string): Remove offset, address, and original_value
6864 parameters.
6865 (ada_val_print_array): Update.
6866 (ada_value_print_array): New function.
6867 (ada_value_print_1): Call it.
6868
03371129
TT
68692020-03-13 Tom Tromey <tom@tromey.com>
6870
6871 * ada-valprint.c (ada_value_print): Use common_val_print.
6872
2e088f8b
TT
68732020-03-13 Tom Tromey <tom@tromey.com>
6874
6875 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6876
39ef85a8
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * ada-valprint.c (ada_value_print_num): New function.
6880 (ada_value_print_1): Use it.
6881
b9fa6e07
TT
68822020-03-13 Tom Tromey <tom@tromey.com>
6883
6884 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6885
416595d6
TT
68862020-03-13 Tom Tromey <tom@tromey.com>
6887
6888 * ada-valprint.c (ada_value_print_ptr): New function.
6889 (ada_value_print_1): Use it.
6890
5b5e15ec
TT
68912020-03-13 Tom Tromey <tom@tromey.com>
6892
6893 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6894 call common_val_print.
6895 (ada_val_print_1): Update.
6896 (ada_value_print_1): New function.
6897 (ada_value_print_inner): Rewrite.
6898
fbf54e75
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * cp-valprint.c (cp_print_value_fields): Update.
6902 (cp_print_value): New function.
6903
64b653ca
TT
69042020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * m2-valprint.c (m2_value_print_inner): Use
6907 cp_print_value_fields.
6908 * cp-valprint.c (cp_print_value_fields): New function.
6909 * c-valprint.c (c_value_print_struct): New function.
6910 (c_value_print_inner): Use c_value_print_struct.
6911 * c-lang.h (cp_print_value_fields): Declare.
6912
6999f067
TT
69132020-03-13 Tom Tromey <tom@tromey.com>
6914
6915 * c-valprint.c (c_value_print_array): New function.
6916 (c_value_print_inner): Use it.
6917
ce80b8bd
TT
69182020-03-13 Tom Tromey <tom@tromey.com>
6919
6920 * c-valprint.c (c_value_print_memberptr): New function.
6921 (c_value_print_inner): Use it.
6922
2faac269
TT
69232020-03-13 Tom Tromey <tom@tromey.com>
6924
6925 * c-valprint.c (c_value_print_int): New function.
6926 (c_value_print_inner): Use it.
6927
da3e2c29
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * c-valprint.c (c_value_print_ptr): New function.
6931 (c_value_print_inner): Use it.
6932
50836231
TT
69332020-03-13 Tom Tromey <tom@tromey.com>
6934
6935 * c-valprint.c (c_value_print_inner): Rewrite.
6936
4f412b6e
TT
69372020-03-13 Tom Tromey <tom@tromey.com>
6938
6939 * valprint.c (generic_value_print_complex): New function.
6940 (generic_value_print): Use it.
6941
f5354008
TT
69422020-03-13 Tom Tromey <tom@tromey.com>
6943
6944 * valprint.c (generic_val_print_float): Don't call
6945 val_print_scalar_formatted.
6946 (generic_val_print, generic_value_print): Update.
6947
3eec3b05
TT
69482020-03-13 Tom Tromey <tom@tromey.com>
6949
6950 * valprint.c (generic_value_print_char): New function
6951 (generic_value_print): Use it.
6952
fdddfccb
TT
69532020-03-13 Tom Tromey <tom@tromey.com>
6954
6955 * valprint.c (generic_value_print_int): New function.
6956 (generic_value_print): Use it.
6957
6dde7521
TT
69582020-03-13 Tom Tromey <tom@tromey.com>
6959
6960 * valprint.c (generic_value_print_bool): New function.
6961 (generic_value_print): Use it.
6962
4112d2e6
TT
69632020-03-13 Tom Tromey <tom@tromey.com>
6964
6965 * valprint.c (generic_val_print_func): Simplify.
6966 (generic_val_print, generic_value_print): Update.
6967
65786af6
TT
69682020-03-13 Tom Tromey <tom@tromey.com>
6969
6970 * valprint.c (generic_val_print_flags): Remove.
6971 (generic_val_print, generic_value_print): Update.
6972 (val_print_type_code_flags): Add original_value parameter.
6973
40f3ce18
TT
69742020-03-13 Tom Tromey <tom@tromey.com>
6975
6976 * valprint.c (generic_val_print): Update.
6977 (generic_value_print): Update.
6978 * valprint.c (generic_val_print_enum): Don't call
6979 val_print_scalar_formatted.
6980
2a5b130b
TT
69812020-03-13 Tom Tromey <tom@tromey.com>
6982
6983 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6984 * valprint.c (generic_value_print_ptr): New function.
6985
abc66ce9
TT
69862020-03-13 Tom Tromey <tom@tromey.com>
6987
6988 * valprint.c (generic_value_print): Rewrite.
6989
07a32858
TT
69902020-03-13 Tom Tromey <tom@tromey.com>
6991
6992 * p-valprint.c (pascal_object_print_value_fields)
6993 (pascal_object_print_value): New functions.
6994
64d64d3a
TT
69952020-03-13 Tom Tromey <tom@tromey.com>
6996
6997 * p-valprint.c (pascal_value_print_inner): Rewrite.
6998
6a95a1f5
TT
69992020-03-13 Tom Tromey <tom@tromey.com>
7000
7001 * f-valprint.c (f_value_print_innner): Rewrite.
7002
59fcdac6
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * m2-valprint.c (m2_print_unbounded_array): New overload.
7006 (m2_print_unbounded_array): Update.
7007 (m2_print_array_contents): Take a struct value.
7008 (m2_value_print_inner): Rewrite.
7009
d133c3e1
TT
70102020-03-13 Tom Tromey <tom@tromey.com>
7011
7012 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7013 (d_value_print_inner): New function.
7014 * d-lang.h (d_value_print_inner): Declare.
7015 * d-lang.c (d_language_defn): Use d_value_print_inner.
7016
23b0f06b
TT
70172020-03-13 Tom Tromey <tom@tromey.com>
7018
7019 * go-valprint.c (go_value_print_inner): New function.
7020 * go-lang.h (go_value_print_inner): Declare.
7021 * go-lang.c (go_language_defn): Use go_value_print_inner.
7022
5f56f7cb
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7026 API.
7027 (rust_val_print): Rewrite.
7028 (rust_value_print_inner): New function, from rust_val_print.
7029 (rust_language_defn): Use rust_value_print_inner.
7030
26792ee0
TT
70312020-03-13 Tom Tromey <tom@tromey.com>
7032
7033 * ada-valprint.c (ada_value_print_inner): New function.
7034 * ada-lang.h (ada_value_print_inner): Declare.
7035 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7036
24051bbe
TT
70372020-03-13 Tom Tromey <tom@tromey.com>
7038
7039 * f-valprint.c (f_value_print_innner): New function.
7040 * f-lang.h (f_value_print_innner): Declare.
7041 * f-lang.c (f_language_defn): Use f_value_print_innner.
7042
c0941be6
TT
70432020-03-13 Tom Tromey <tom@tromey.com>
7044
7045 * p-valprint.c (pascal_value_print_inner): New function.
7046 * p-lang.h (pascal_value_print_inner): Declare.
7047 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7048
62c4663d
TT
70492020-03-13 Tom Tromey <tom@tromey.com>
7050
7051 * m2-valprint.c (m2_value_print_inner): New function.
7052 * m2-lang.h (m2_value_print_inner): Declare.
7053 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7054
62182190
TT
70552020-03-13 Tom Tromey <tom@tromey.com>
7056
7057 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7058 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7059 * c-valprint.c (c_value_print_inner): New function.
7060 * c-lang.h (c_value_print_inner): Declare.
7061 * c-lang.c (c_language_defn, cplus_language_defn)
7062 (asm_language_defn, minimal_language_defn): Use
7063 c_value_print_inner.
7064
1e592a8a
TT
70652020-03-13 Tom Tromey <tom@tromey.com>
7066
7067 * p-valprint.c (pascal_object_print_value_fields): Now static.
7068 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7069
7fe471e9
TT
70702020-03-13 Tom Tromey <tom@tromey.com>
7071
7072 * c-valprint.c (c_val_print_array): Simplify.
7073
d121c6ce
TT
70742020-03-13 Tom Tromey <tom@tromey.com>
7075
7076 * valprint.c (value_print_array_elements): New function.
7077 * valprint.h (value_print_array_elements): Declare.
7078
4dba70ee
TT
70792020-03-13 Tom Tromey <tom@tromey.com>
7080
7081 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7082 * mips-tdep.c (mips_print_register): Use
7083 value_print_scalar_formatted.
7084
4f9ae810
TT
70852020-03-13 Tom Tromey <tom@tromey.com>
7086
7087 * valprint.h (value_print_scalar_formatted): Declare.
7088 * valprint.c (value_print_scalar_formatted): New function.
7089
156bfec9
TT
70902020-03-13 Tom Tromey <tom@tromey.com>
7091
7092 * valprint.h (generic_value_print): Declare.
7093 * valprint.c (generic_value_print): New function.
7094
2b4e573d
TT
70952020-03-13 Tom Tromey <tom@tromey.com>
7096
7097 * valprint.c (do_val_print): Call la_value_print_inner, if
7098 available.
7099 * rust-lang.c (rust_language_defn): Update.
7100 * p-lang.c (pascal_language_defn): Update.
7101 * opencl-lang.c (opencl_language_defn): Update.
7102 * objc-lang.c (objc_language_defn): Update.
7103 * m2-lang.c (m2_language_defn): Update.
7104 * language.h (struct language_defn) <la_value_print_inner>: New
7105 member.
7106 * language.c (unknown_language_defn, auto_language_defn): Update.
7107 * go-lang.c (go_language_defn): Update.
7108 * f-lang.c (f_language_defn): Update.
7109 * d-lang.c (d_language_defn): Update.
7110 * c-lang.c (c_language_defn, cplus_language_defn)
7111 (asm_language_defn, minimal_language_defn): Update.
7112 * ada-lang.c (ada_language_defn): Update.
7113
a1f6a07c
TT
71142020-03-13 Tom Tromey <tom@tromey.com>
7115
7116 * c-valprint.c (c_value_print): Use common_val_print.
7117
410cf315
TT
71182020-03-13 Tom Tromey <tom@tromey.com>
7119
7120 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7121
72a45c93
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * f-valprint.c (f77_print_array_1, f_val_print): Use
7125 common_val_print.
7126
040f66bd
TT
71272020-03-13 Tom Tromey <tom@tromey.com>
7128
7129 * riscv-tdep.c (riscv_print_one_register_info): Use
7130 common_val_print.
7131
a6e05a6c
TT
71322020-03-13 Tom Tromey <tom@tromey.com>
7133
7134 * mi/mi-main.c (output_register): Use common_val_print.
7135
3444c526
TT
71362020-03-13 Tom Tromey <tom@tromey.com>
7137
7138 * infcmd.c (default_print_one_register_info): Use
7139 common_val_print.
7140
c2a44efe
TT
71412020-03-13 Tom Tromey <tom@tromey.com>
7142
7143 * valprint.h (common_val_print_checked): Declare.
7144 * valprint.c (common_val_print_checked): New function.
7145 * stack.c (print_frame_arg): Use common_val_print_checked.
7146
b0c26e99
TT
71472020-03-13 Tom Tromey <tom@tromey.com>
7148
7149 * valprint.c (do_val_print): New function, from val_print.
7150 (val_print): Use do_val_print.
7151 (common_val_print): Use do_val_print.
7152
ce3acbe9
TT
71532020-03-13 Tom Tromey <tom@tromey.com>
7154
7155 * valprint.c (value_print): Use scoped_value_mark.
7156
96c7f873
TV
71572020-03-13 Tom de Vries <tdevries@suse.de>
7158
7159 PR symtab/25646
7160 * psymtab.c (partial_symtab::partial_symtab): Don't set
7161 globals_offset and statics_offset. Push element onto
7162 current_global_psymbols and current_static_psymbols stacks.
7163 (concat): New function.
7164 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7165 element from current_global_psymbols and current_static_psymbols
7166 stacks. Concat popped elements to global_psymbols and
7167 static_symbols.
7168 (add_psymbol_to_list): Use current_global_psymbols and
7169 current_static_psymbols stacks.
7170 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7171 current_static_psymbols fields.
7172
6ba0a321
CB
71732020-03-12 Christian Biesinger <cbiesinger@google.com>
7174
7175 * corelow.c (sniff_core_bfd): Remove.
7176 (class core_target) <m_core_vec>: Remove.
7177 (core_target::core_target): Update.
7178 (core_file_fns): Remove.
7179 (deprecated_add_core_fns): Remove.
7180 (default_core_sniffer): Remove.
7181 (sniff_core_bfd): Remove.
7182 (default_check_format): Remove.
7183 (gdb_check_format): Remove.
7184 (core_target_open): Update.
7185 (core_target::get_core_register_section): Update.
7186 (get_core_registers_cb): Update.
7187 (core_target::fetch_registers): Update.
7188 * gdbcore.h (struct core_fns): Remove.
7189 (deprecated_add_core_fns): Remove.
7190 (default_core_sniffer): Remove.
7191 (default_check_format): Remove.
7192
227031b2
TT
71932020-03-12 Tom Tromey <tom@tromey.com>
7194
7195 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7196 CORE_ADDR.
7197 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7198
53807e9f
TT
71992020-03-12 Tom Tromey <tom@tromey.com>
7200
7201 * remote.c (remote_target::download_tracepoint)
7202 (remote_target::enable_tracepoint)
7203 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7204 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7205 sprintf_vma.
7206
64f25102
TT
72072020-03-12 Tom Tromey <tom@tromey.com>
7208
7209 * symfile-mem.c: Update CORE_ADDR size assert.
7210
272cd5a3
SM
72112020-03-12 Simon Marchi <simon.marchi@efficios.com>
7212
7213 * selftest.m4: Move to gdbsupport/.
7214 * acinclude.m4: Update path to selftest.m4.
7215
74cd3f9d
SM
72162020-03-12 Simon Marchi <simon.marchi@efficios.com>
7217
7218 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7219 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7220 gdbarch-selfselftests.c and selftest-arch.c.
7221 (SUBDIR_UNITTESTS_OBS): Rename to...
7222 (SELFTESTS_OBS): ... this.
7223 (COMMON_SFILES): Remove disasm-selftests.c and
7224 gdbarch-selftests.c.
7225 * configure.ac: Don't add selftest-arch.{c,o} to
7226 CONFIG_{SRCS,OBS}.
7227 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7228 preprocessor conditions.
7229
db6878ac
SM
72302020-03-12 Simon Marchi <simon.marchi@efficios.com>
7231
7232 * configure.ac: Don't source bfd/development.sh.
7233 * selftest.m4: Modify comment.
7234 * configure: Re-generate.
7235
4d696a5c
SM
72362020-03-12 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7239 not "true" or "false".
7240 * configure: Re-generate.
7241
8dd8e1c7
CB
72422020-03-12 Christian Biesinger <cbiesinger@google.com>
7243
7244 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7245 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7246 renamed to arm_nbsd_supply_gregset.
7247 (fetch_register): Update to call arm_nbsd_supply_gregset.
7248 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7249 (arm_netbsd_nat_target::fetch_registers): Update.
7250 (fetch_elfcore_registers): Removed.
7251 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7252 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7253 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7254 not require NetBSD system headers.
7255 (arm_nbsd_regset): New struct.
7256 (arm_nbsd_iterate_over_regset_sections): New function.
7257 (arm_netbsd_init_abi_common): Updated to call
7258 set_gdbarch_iterate_over_regset_sections.
7259 * arm-nbsd-tdep.h: New file.
7260
dd69bf7a
KB
72612020-03-11 Kevin Buettner <kevinb@redhat.com>
7262
7263 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7264 recursion.
7265
a0761e34
SM
72662020-03-11 Simon Marchi <simon.marchi@efficios.com>
7267
7268 * configure: Re-generate.
7269
e7a82140
TT
72702020-03-11 Tom Tromey <tromey@adacore.com>
7271
7272 * ada-typeprint.c (print_choices): Fix comment.
7273
dcc050c8
AB
72742020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7277 previous item in the list, when the list has no items.
7278
1c33af77
TV
72792020-03-11 Tom de Vries <tdevries@suse.de>
7280
7281 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7282 PROP_LOCLIST handling code.
7283
8c95582d
AB
72842020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * buildsym-legacy.c (record_line): Pass extra parameter to
7287 record_line.
7288 * buildsym.c (buildsym_compunit::record_line): Take an extra
7289 parameter, reduce duplication in the line table, and record the
7290 is_stmt flag in the line table.
7291 * buildsym.h (buildsym_compunit::record_line): Add extra
7292 parameter.
7293 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7294 non-statement lines.
7295 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7296 this to the symtab builder.
7297 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7298 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7299 through to dwarf_record_line_1.
7300 * infrun.c (process_event_stop_test): When stepping, don't stop at
7301 a non-statement instruction, and only refresh the step info when
7302 we land in the middle of a line's range. Also add an extra
7303 comment.
7304 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7305 field.
7306 * record-btrace.c (btrace_find_line_range): Only record lines
7307 marked as is-statement.
7308 * stack.c (frame_show_address): Show the frame address if we are
7309 in a non-statement sal.
7310 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7311 (maintenance_print_one_line_table): Print a header for the is_stmt
7312 column, and include is_stmt information in the output.
7313 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7314 preference to non-statements.
7315 (find_pcs_for_symtab_line): Prefer is-statement entries.
7316 (find_line_common): Likewise.
7317 * symtab.h (struct linetable_entry): Add is_stmt field.
7318 (struct symtab_and_line): Likewise.
7319 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7320 arranging the line table.
7321
e4003a34
TV
73222020-03-07 Tom de Vries <tdevries@suse.de>
7323
7324 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7325 DIE.
7326
e8932576
TT
73272020-03-07 Tom Tromey <tom@tromey.com>
7328
7329 * valops.c (value_literal_complex): Remove obsolete comment.
7330 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7331 comment.
7332
29734269
SM
73332020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7334
7335 * infrun.h: Forward-declare thread_info.
7336 (set_step_info): Add thread_info parameter, add doc.
7337 * infrun.c (set_step_info): Add thread_info parameter, move doc
7338 to header.
7339 * infrun.c (process_event_stop_test): Pass thread to
7340 set_step_info call.
7341 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7342 set_step_info.
7343 (prepare_one_step): Add thread_info parameter, pass it to
7344 set_step_frame and prepare_one_step (recursive) call.
7345 (step_1): Pass thread to prepare_one_step call.
7346 (step_command_fsm::should_stop): Pass thread to
7347 prepare_one_step.
7348 (until_next_fsm): Pass thread to set_step_frame call.
7349 (finish_command): Pass thread to set_step_info call.
7350
b7d64b29
HD
73512020-03-06 Hannes Domani <ssbssa@yahoo.de>
7352
7353 * windows-tdep.c (windows_solib_create_inferior_hook):
7354 Check if inferior is running.
7355
09f2921c
TV
73562020-03-06 Tom de Vries <tdevries@suse.de>
7357
7358 * NEWS: Fix "the the".
7359 * ctfread.c: Same.
7360
fd760e79
TV
73612020-03-06 Tom de Vries <tdevries@suse.de>
7362
7363 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7364
20ea4a60
AB
73652020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7366
7367 * .dir-locals.el: Add a comment referencing the other copies of
7368 this file.
7369
0afbabf0
JB
73702020-03-05 John Baldwin <jhb@FreeBSD.org>
7371
7372 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7373 psargs.
7374
842806cb
TBA
73752020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7376
7377 * .gitattributes: New file.
7378
be1e3d3e
TT
73792020-03-04 Tom Tromey <tom@tromey.com>
7380
7381 * symmisc.c (print_symbol_bcache_statistics)
7382 (print_objfile_statistics): Update.
7383 * symfile.c (allocate_symtab): Use intern.
7384 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7385 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7386 macro_cache>: Remove.
7387 <string_cache>: New member.
7388 (struct objfile) <intern>: New methods.
7389 * elfread.c (elf_symtab_read): Use intern.
7390 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7391 (dwarf2_compute_name, dwarf2_physname)
7392 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7393 names.
7394 (guess_partial_die_structure_name): Update.
7395 (partial_die_info::fixup): Intern name.
7396 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7397 name.
7398 (dwarf2_name): Intern name. Update.
7399 * buildsym.c (buildsym_compunit::get_macro_table): Use
7400 string_cache.
7401
4e7625fd
TT
74022020-03-04 Tom Tromey <tom@tromey.com>
7403
7404 * jit.c (bfd_open_from_target_memory): Make "target" const.
7405 * corefile.c (gnutarget): Now const.
7406 * gdbcore.h (gnutarget): Now const.
7407
46f9f931
HD
74082020-03-04 Hannes Domani <ssbssa@yahoo.de>
7409
7410 * NEWS: Mention support for WOW64 processes.
7411 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7412 (amd64_windows_segment_register_p): Remove static.
7413 (_initialize_amd64_windows_nat): Update.
7414 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7415 * i386-windows-nat.c (context_offset): Update.
7416 (i386_mappings): Rename and remove static.
7417 (i386_windows_segment_register_p): Remove static.
7418 (_initialize_i386_windows_nat): Update.
7419 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7420 (STATUS_WX86_SINGLE_STEP): New macro.
7421 (EnumProcessModulesEx): New macro.
7422 (Wow64SuspendThread): New macro.
7423 (Wow64GetThreadContext): New macro.
7424 (Wow64SetThreadContext): New macro.
7425 (Wow64GetThreadSelectorEntry): New macro.
7426 (windows_set_context_register_offsets): Add static.
7427 (windows_set_segment_register_p): Likewise.
7428 (windows_add_thread): Adapt for WOW64 processes.
7429 (windows_fetch_one_register): Likewise.
7430 (windows_nat_target::fetch_registers): Likewise.
7431 (windows_store_one_register): Likewise.
7432 (display_selector): Likewise.
7433 (display_selectors): Likewise.
7434 (handle_exception): Likewise.
7435 (windows_continue): Likewise.
7436 (windows_nat_target::resume): Likewise.
7437 (windows_add_all_dlls): Likewise.
7438 (do_initial_windows_stuff): Likewise.
7439 (windows_nat_target::attach): Likewise.
7440 (windows_get_exec_module_filename): Likewise.
7441 (windows_nat_target::create_inferior): Likewise.
7442 (windows_xfer_siginfo): Likewise.
7443 (_initialize_loadable): Initialize Wow64SuspendThread,
7444 Wow64GetThreadContext, Wow64SetThreadContext,
7445 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7446 * windows-nat.h (windows_set_context_register_offsets):
7447 Remove declaration.
7448 (windows_set_segment_register_p): Likewise.
7449 (i386_windows_segment_register_p): Add declaration.
7450 (amd64_windows_segment_register_p): Likewise.
7451
440cf44e
LM
74522020-03-04 Luis Machado <luis.machado@linaro.org>
7453
7454 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7455 in "info registers" for AArch64/ARM.
7456
7457 The change caused "info registers" to not print GPR's.
7458
7459 gdb/ChangeLog:
7460
7461 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7462
7463 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7464 when reg->group is empty and reggroup is not.
7465
1009d92f
TT
74662020-03-03 Tom Tromey <tromey@adacore.com>
7467
7468 * dwarf2/frame.c (struct dwarf2_frame_cache)
7469 <checked_tailcall_bottom, entry_cfa_sp_offset,
7470 entry_cfa_sp_offset_p>: Remove members.
7471 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7472 (dwarf2_frame_prev_register): Don't call
7473 dwarf2_tailcall_sniffer_first.
7474 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7475 * frame-unwind.c (add_unwinder): New fuction.
7476 (frame_unwind_init): Use it. Add tailcall unwinder.
7477
5e5d66b6
AB
74782020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7479 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7480
7481 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7482 value should be printed as true.
7483
584cf46d
HD
74842020-03-03 Hannes Domani <ssbssa@yahoo.de>
7485
7486 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7487 (windows_init_abi): Set and use windows_so_ops.
7488
7b973adc
SDJ
74892020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7490
7491 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7492 when verifying if dealing with a convenience variable.
7493
bb7b70ab
LM
74942020-03-03 Luis Machado <luis.machado@linaro.org>
7495
7496 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7497
9822cb57
SM
74982020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7499
7500 * infrun.c (gdbarch_supports_displaced_stepping): New.
7501 (use_displaced_stepping): Break up conditions in smaller pieces.
7502 Use gdbarch_supports_displaced_stepping.
7503 (displaced_step_prepare_throw): Use
7504 gdbarch_supports_displaced_stepping.
7505
63e163f2
AB
75062020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7507
7508 * NEWS: Mention new behaviour of the history filename.
7509 * top.c (write_history_p): Add comment.
7510 (show_write_history_p): Add header comment, give a different
7511 message when history writing is on, but the history filename is
7512 empty.
7513 (history_filename): Add comment.
7514 (history_filename_empty): New function.
7515 (show_history_filename): Add header comment, give a different
7516 message when the filename is empty.
7517 (init_history): Compare history_filename against nullptr, and only
7518 read history if the filename is not empty.
7519 (set_history_filename): Add header comment, and only make
7520 non-empty filenames absolute.
7521 (init_main): Make the filename argument to 'set history filename'
7522 optional.
7523
81b86b97
CB
75242020-03-02 Christian Biesinger <cbiesinger@google.com>
7525
7526 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7527 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7528 (fetch_fp_register): Update.
7529 (fetch_fp_regs): Update.
7530 (store_fp_register): Update.
7531 (store_fp_regs): Update.
7532 (arm_netbsd_nat_target::read_description): New function.
7533 (fetch_elfcore_registers): Update.
7534
24ed6739
AB
75352020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7538 general_thread if the stop reply is missing a thread-id.
7539 (remote_target::process_stop_reply): Use the first non-exited
7540 thread if the target didn't pass a thread-id.
7541 * infrun.c (do_target_wait): Move call to
7542 switch_to_inferior_no_thread to ....
7543 (do_target_wait_1): ... here.
7544
a84bb2a0
JT
75452020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7546
7547 * debuginfod-support.c: Include defs.h first.
7548
658dadf0
TV
75492020-02-28 Tom de Vries <tdevries@suse.de>
7550
7551 * symfile.c (set_initial_language): Use default language for lookup.
7552
4ebe4877
SM
75532020-02-28 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7556 reader variable, pass `this` to read_cutu_die_from_dwo.
7557
e5da1139
AM
75582020-02-27 Aaron Merey <amerey@redhat.com>
7559
7560 * source.c (open_source_file): Check for nullptr when computing
7561 srcpath.
7562
317f7127
TT
75632020-02-27 Tom Tromey <tromey@adacore.com>
7564
7565 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7566 member.
7567 (dwarf2_add_field): Don't update nfields.
7568 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7569
3104d9ee
AB
75702020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7571
7572 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7573 abs.
7574
b83470bf
TT
75752020-02-26 Tom Tromey <tom@tromey.com>
7576
7577 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7578 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7579 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7580 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7581 per_cu_data.
7582
edfe0a0c
TT
75832020-02-26 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/index-write.c (psym_index_map): Change type.
7586 (add_address_entry_worker, write_one_signatured_type)
7587 (recursively_count_psymbols, recursively_write_psymbols)
7588 (class debug_names, psyms_seen_size, write_gdbindex)
7589 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7590
0d79cdc4
AM
75912020-02-26 Aaron Merey <amerey@redhat.com>
7592
7593 * Makefile.in: Handle optional debuginfod support.
7594 * NEWS: Update.
7595 * README: Add --with-debuginfod summary.
7596 * config.in: Regenerate.
7597 * configure: Regenerate.
7598 * configure.ac: Handle optional debuginfod support.
7599 * debuginfod-support.c: debuginfod helper functions.
7600 * debuginfod-support.h: Ditto.
7601 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7602 summary.
7603 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7604 when a dwz file cannot be found.
7605 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7606 debuginfo file cannot be found.
7607 * source.c (open_source_file): Query debuginfod servers when a
7608 source file cannot be found.
7609 * top.c (print_gdb_configuration): Include
7610 --{with,without}-debuginfod in the output.
7611
b65ce565
JG
76122020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7613
7614 * thread.c (thr_try_catch_cmd): Print thread name.
7615
d4c9a4f8
SM
76162020-02-26 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7619 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7620 dwarf2_fetch_die_type_sect_off): Move to...
7621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7623 dwarf2_fetch_die_type_sect_off): ... here.
7624 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7625 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7626 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7627
0dce4280
TV
76282020-02-26 Tom de Vries <tdevries@suse.de>
7629
7630 PR gdb/25603
7631 * symfile.c (set_initial_language): Exit-early if
7632 language_mode == language_mode_manual.
7633
450a1bfc
SM
76342020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7635
7636 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7637 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7638 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7639
9e80cfa1
AB
76402020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * gdbtypes.c (create_array_type_with_stride): Handle negative
7643 array strides.
7644 * valarith.c (value_subscripted_rvalue): Likewise.
7645
09624f1f
LM
76462020-02-25 Luis Machado <luis.machado@linaro.org>
7647
7648 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7649
8cb5117c
SM
76502020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7651
7652 * loc.h (dwarf2_get_die_type): Move to...
7653 * read.h (dwarf2_get_die_type): ... here.
7654 * read.c (dwarf2_get_die_type): Move doc to header.
7655
c325c44e
JB
76562020-02-25 Joel Brobecker <brobecker@adacore.com>
7657
7658 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7659 'gnulib/Makefile.in' to the list.
7660
4ac93832
TT
76612020-02-24 Tom Tromey <tom@tromey.com>
7662
7663 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7664 Remove.
7665 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7666 XOBNEWVEC.
7667
197400e8
TT
76682020-02-24 Tom Tromey <tom@tromey.com>
7669
7670 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7671 New method.
7672 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7673 (dw2_do_instantiate_symtab, dw2_get_file_names)
7674 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7675
76935768
TT
76762020-02-24 Tom Tromey <tom@tromey.com>
7677
7678 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7679 make_scoped_restore.
7680 (dwarf2_psymtab::read_symtab): Don't clear
7681 reading_partial_symbols.
7682
a88ef40d
TV
76832020-02-24 Tom de Vries <tdevries@suse.de>
7684
7685 PR gdb/25592
7686 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7687
c9af6521
TV
76882020-02-24 Tom de Vries <tdevries@suse.de>
7689
7690 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7691 commands layout next/prev/regs.
7692
5707a07a
TT
76932020-02-22 Tom Tromey <tom@tromey.com>
7694
7695 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7696 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7697
3b0fb49e
TT
76982020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7701
283be8bf
TT
77022020-02-22 Tom Tromey <tom@tromey.com>
7703
7704 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7705 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7706 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7707 * tui/tui.c (_initialize_tui): Add usage text.
7708
ca793b96
TT
77092020-02-22 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-win.c (tui_set_focus_command)
7712 (tui_set_win_height_command): Use error_no_arg.
7713 (_initialize_tui_win): Update help text.
7714 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7715
432b5c40
TT
77162020-02-22 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7719 * tui/tui-disasm.h (struct tui_disasm_window)
7720 <display_start_addr>: Declare.
7721 * tui/tui-source.h (struct tui_source_window)
7722 <display_start_addr>: Declare.
7723 * tui/tui-winsource.h (struct tui_source_window_base)
7724 <show_source_line, display_start_addr>: New methods.
7725 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7726 Rename and move to protected section.
7727 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7728 (tui_source_window_base::do_erase_source_content): Update.
7729 (tui_source_window_base::show_source_line): Now a method.
7730 (tui_source_window_base::show_source_content)
7731 (tui_source_window_base::tui_source_window_base)
7732 (tui_source_window_base::rerender)
7733 (tui_source_window_base::refill)
7734 (tui_source_window_base::do_scroll_horizontal)
7735 (tui_source_window_base::set_is_exec_point_at)
7736 (tui_source_window_base::update_breakpoint_info)
7737 (tui_source_window_base::update_exec_info): Update.
7738 * tui/tui-source.c (tui_source_window::set_contents)
7739 (tui_source_window::showing_source_p)
7740 (tui_source_window::do_scroll_vertical)
7741 (tui_source_window::location_matches_p)
7742 (tui_source_window::line_is_displayed): Update.
7743 (tui_source_window::display_start_addr): New method.
7744 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7745 (tui_disasm_window::do_scroll_vertical)
7746 (tui_disasm_window::location_matches_p): Update.
7747 (tui_disasm_window::display_start_addr): New method.
7748
01b1af32
TT
77492020-02-22 Tom Tromey <tom@tromey.com>
7750
7751 * NEWS: Add entry for gdb.register_window_type.
7752 * tui/tui-layout.h (window_factory): New typedef.
7753 (tui_register_window): Declare.
7754 * tui/tui-layout.c (saved_tui_windows): New global.
7755 (tui_apply_current_layout): Use it.
7756 (tui_register_window): New function.
7757 * python/python.c (do_start_initialization): Call
7758 gdbpy_initialize_tui.
7759 (python_GdbMethods): Add "register_window_type" function.
7760 * python/python-internal.h (gdbpy_register_tui_window)
7761 (gdbpy_initialize_tui): Declare.
7762 * python/py-tui.c: New file.
7763 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7764
fc96d20b
TT
77652020-02-22 Tom Tromey <tom@tromey.com>
7766
7767 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7768
935c78c0
TT
77692020-02-22 Tom Tromey <tom@tromey.com>
7770
7771 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7772 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7773 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7774 (tui_set_win_focus_to): Move from tui-win.c.
7775
0240c8f1
TT
77762020-02-22 Tom Tromey <tom@tromey.com>
7777
7778 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7779 functions.
7780 (known_window_types): New global.
7781 (tui_get_window_by_name): Reimplement.
7782 (initialize_known_windows): New function.
7783 (validate_window_name): Rewrite.
7784 (_initialize_tui_layout): Call initialize_known_windows.
7785
fdb01f0c
TT
77862020-02-22 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7789 Remove constants.
7790 * tui/tui-winsource.h (struct tui_source_window_base)
7791 <tui_source_window_base>: Remove parameter.
7792 * tui/tui-winsource.c
7793 (tui_source_window_base::tui_source_window_base): Remove
7794 parameter.
7795 (tui_source_window_base::refill): Update.
7796 * tui/tui-stack.h (struct tui_locator_window)
7797 <tui_locator_window>: Update.
7798 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7799 Default the constructor.
7800 * tui/tui-regs.h (struct tui_data_item_window)
7801 <tui_data_item_window>: Default the constructor.
7802 (struct tui_data_window) <tui_data_window>: Likewise.
7803 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7804 Default the constructor.
7805 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7806 Default the constructor.
7807 <type>: Remove.
7808 (struct tui_win_info) <tui_win_info>: Default the constructor.
7809 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7810 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7811 Default the constructor.
7812
865a5aec
TT
78132020-02-22 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7816 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7817 * tui/tui-win.c (tui_resize_all): Don't call
7818 tui_delete_invisible_windows.
7819 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7820 done.
7821 (tui_set_layout): Update.
7822 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7823 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7824 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7825
e098d18c
TT
78262020-02-22 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7829 correctly.
7830
eb9c8874
TT
78312020-02-22 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7834
7eed1a8e
TT
78352020-02-22 Tom Tromey <tom@tromey.com>
7836
7837 * tui/tui-winsource.h (struct tui_source_window_iterator)
7838 <inner_iterator>: New etytypedef.
7839 <tui_source_window_iterator>: Take "end" parameter.
7840 <tui_source_window_iterator>: Take iterator.
7841 <operator*, advance>: Update.
7842 <m_iter>: Change type.
7843 <m_end>: New field.
7844 (struct tui_source_windows) <begin, end>: Update.
7845 * tui/tui-layout.c (tui_windows): New global.
7846 (tui_apply_current_layout): Clear tui_windows.
7847 (tui_layout_window::apply): Update tui_windows.
7848 * tui/tui-data.h (tui_windows): Declare.
7849 (all_tui_windows): Now inline function.
7850 (class tui_window_iterator, struct all_tui_windows): Remove.
7851
7c043ba6
TT
78522020-02-22 Tom Tromey <tom@tromey.com>
7853
7854 PR tui/17850:
7855 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7856 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7857 "height" argument.
7858 (class tui_layout_window) <get_sizes>: Likewise.
7859 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7860 argument.
7861 <get_sizes>: Add "height" argument.
7862 <m_vertical>: New field.
7863 * tui/tui-layout.c (tui_layout_split::clone): Update.
7864 (tui_layout_split::get_sizes): Add "height" argument.
7865 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7866 (tui_new_layout_command): Parse "-horizontal".
7867 (_initialize_tui_layout): Update help string.
7868 (tui_layout_split::specification): Add "-horizontal" when needed.
7869 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7870 argument.
7871 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7872 New methods.
7873
6bc56648
TT
78742020-02-22 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-layout.h (enum tui_adjust_result): New.
7877 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7878 (class tui_layout_window) <adjust_size>: Return
7879 tui_adjust_result. Rewrite.
7880 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7881 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7882
c22fef7e
TT
78832020-02-22 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7886 parameter and return types.
7887 (class tui_layout_base) <specification>: Add "depth".
7888 (class tui_layout_window) <specification>: Add "depth".
7889 (class tui_layout_split) <specification>: Add "depth".
7890 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7891 and return types.
7892 (tui_new_layout_command): Parse sub-layouts.
7893 (_initialize_tui_layout): Update help string.
7894 (tui_layout_window::specification): Add "depth".
7895 (add_layout_command): Update.
7896
ee325b61
TT
78972020-02-22 Tom Tromey <tom@tromey.com>
7898
7899 * NEWS: Add "tui new-layout" item.
7900 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7901 Add new-layout command to help text.
7902 (validate_window_name): New function.
7903 (tui_new_layout_command): New function.
7904 (_initialize_tui_layout): Register "new-layout".
7905 (tui_layout_window::specification): New method.
7906 (tui_layout_window::specification): New method.
7907 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7908 method.
7909 (class tui_layout_window) <specification>: New method.
7910 (class tui_layout_split) <specification>: New method.
7911
416eb92d
TT
79122020-02-22 Tom Tromey <tom@tromey.com>
7913
7914 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7915 * tui/tui-win.c (window_name_completer): Update comment.
7916 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7917 Declare method.
7918 (class tui_layout_window) <replace_window>: Likewise.
7919 (class tui_layout_split) <replace_window>: Likewise.
7920 (tui_set_layout): Don't declare.
7921 (tui_set_initial_layout): Declare function.
7922 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7923 (asm_regs_layout): New globals.
7924 (tui_current_layout, show_layout): Remove.
7925 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7926 (find_layout, tui_apply_layout): New function.
7927 (layout_completer): Remove.
7928 (tui_next_layout): Reimplement.
7929 (tui_next_layout_command): New function.
7930 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7931 (tui_regs_layout): Reimplement.
7932 (tui_regs_layout_command): New function.
7933 (extract_display_start_addr): Rewrite.
7934 (next_layout, prev_layout): Remove.
7935 (tui_layout_window::replace_window): New method.
7936 (tui_layout_split::replace_window): New method.
7937 (destroy_layout): New function.
7938 (layout_list): New global.
7939 (add_layout_command): New function.
7940 (initialize_layouts): Update.
7941 (tui_layout_command): New function.
7942 (_initialize_tui_layout): Install "layout" commands.
7943 * tui/tui-data.h (enum tui_layout_type): Remove.
7944 (tui_current_layout): Don't declare.
7945
0dbc2fc7
TT
79462020-02-22 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui-regs.c (tui_reg_layout): Remove.
7949 (tui_reg_command): Use tui_regs_layout.
7950 * tui/tui-layout.h (tui_reg_command): Declare.
7951 * tui/tui-layout.c (tui_reg_command): New function.
7952
5afe342e
TT
79532020-02-22 Tom Tromey <tom@tromey.com>
7954
7955 * tui/tui.c (tui_rl_delete_other_windows): Call
7956 tui_remove_some_windows.
7957 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7958 Declare method.
7959 (class tui_layout_window) <remove_windows>: New method.
7960 (class tui_layout_split) <remove_windows>: Declare.
7961 (tui_remove_some_windows): Declare.
7962 * tui/tui-layout.c (tui_remove_some_windows): New function.
7963 (tui_layout_split::remove_windows): New method.
7964
427326a8
TT
79652020-02-22 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7968 * tui/tui-layout.h (tui_next_layout): Declare.
7969 * tui/tui-layout.c (tui_next_layout): New function.
7970
3fe12b6d
TT
79712020-02-22 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7974 correct coordinates.
7975
59b8b5d2
TT
79762020-02-22 Tom Tromey <tom@tromey.com>
7977
7978 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7979 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7980 DATA_WIN case.
7981
2a3d458b
TT
79822020-02-22 Tom Tromey <tom@tromey.com>
7983
7984 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7985 TUI_DISASM_WIN, not tui_win_list.
7986
3f0cbb04
TT
79872020-02-22 Tom Tromey <tom@tromey.com>
7988
7989 * valprint.c (generic_val_print_enum_1)
7990 (val_print_type_code_flags): Style member names.
7991 * rust-lang.c (val_print_struct, rust_print_enum)
7992 (rust_print_struct_def, rust_internal_print_type): Style member
7993 names.
7994 * p-valprint.c (pascal_object_print_value_fields): Style member
7995 names. Only call fprintf_symbol_filtered for static members.
7996 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7997 * f-valprint.c (f_val_print): Style member names.
7998 * f-typeprint.c (f_type_print_base): Style member names.
7999 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8000 call fprintf_symbol_filtered for static members.
8001 (cp_print_class_member): Style member names.
8002 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8003 member names.
8004 * ada-valprint.c (ada_print_scalar): Style enum names.
8005 (ada_val_print_enum): Likewise.
8006 * ada-typeprint.c (print_enum_type): Style enum names.
8007
d4d947ae
TT
80082020-02-21 Tom Tromey <tom@tromey.com>
8009
8010 * psympriv.h (struct partial_symtab): Update comment.
8011
e94e944b
TT
80122020-02-21 Tom Tromey <tromey@adacore.com>
8013
8014 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8015 type is CORE_ADDR.
8016
1eb73179
TV
80172020-02-21 Tom de Vries <tdevries@suse.de>
8018
8019 PR gdb/25534
8020 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8021 if dependencies[i]->user != NULL.
8022
4f180d53
AT
80232020-02-21 Ali Tamur <tamur@google.com>
8024
8025 * dwarf2/read.c (dwarf2_name): Add null check.
8026
22b6cd70
TT
80272020-02-20 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8030 ">=", in binary search.
8031 (dwarf2_find_containing_comp_unit): New overload.
8032 (run_test): New self-test.
8033 (_initialize_dwarf2_read): Register new test.
8034
bd0cf5a6
NC
80352020-02-20 Nelson Chu <nelson.chu@sifive.com>
8036
8037 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8038 * riscv-tdep.h: Likewise.
8039 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8040 rv32-only CSR.
8041 * features/riscv/64bit-csr.xml: Regenerated.
8042
3f702acd
SDJ
80432020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8044 Tom Tromey <tom@tromey.com>
8045
8046 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8047 of 'fputc_unfiltered'.
8048 (putchar_unfiltered): Call 'fputc_unfiltered'.
8049 (fputc_unfiltered): Call 'fputs_unfiltered'.
8050
d13c7322
AB
80512020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * config.in: Regenerate.
8054 * configure: Regenerate.
8055 * configure.ac: Add --with-python-libdir option.
8056 * main.c: Use WITH_PYTHON_LIBDIR.
8057
869d8950
TT
80582020-02-19 Tom Tromey <tom@tromey.com>
8059
8060 * symtab.c (general_symbol_info::compute_and_set_names): Use
8061 obstack_strndup. Simplify call to symbol_set_demangled_name.
8062
298e9637
SM
80632020-02-19 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * dwarf2/read.c (allocate_signatured_type_table,
8066 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8067 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8068 Remove objfile parameter, update all callers.
8069
08410482
DE
80702020-02-19 Doug Evans <dje@google.com>
8071
8072 PR rust/25535
8073 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8074 rust_enum_variant calculation.
8075
dfdeeca1
TT
80762020-02-19 Tom Tromey <tromey@adacore.com>
8077
8078 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8079
2ef5453b
TT
80802020-02-19 Tom Tromey <tromey@adacore.com>
8081
8082 * ada-lang.c (cache_symbol): Use obstack_strdup.
8083
9f1528a1
AB
80842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8085
8086 * configure: Regenerate.
8087
d3c22fa8
TT
80882020-02-19 Tom Tromey <tromey@adacore.com>
8089
8090 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8091 NULL check.
8092
bf84f706
MR
80932020-02-19 Maciej W. Rozycki <macro@wdc.com>
8094
8095 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8096
d1c9b20f
AB
80972020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8100 if GDBSERVER is not defined.
8101 (riscv_tdesc_cache): Likewise, also store const target_desc.
8102 (STATIC_IN_GDB): Define.
8103 (riscv_create_target_description): Update declaration with
8104 STATIC_IN_GDB.
8105 (riscv_lookup_target_description): New function, only define if
8106 GDBSERVER is not defined.
8107 * arch/riscv.h (riscv_create_target_description): Declare only
8108 when GDBSERVER is defined.
8109 (riscv_lookup_target_description): New declaration when GDBSERVER
8110 is not defined.
8111 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8112 (riscv_linux_read_features): ...this, and return
8113 riscv_gdbarch_features instead of target_desc.
8114 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8115 (riscv_linux_read_description): Rename to...
8116 (riscv_linux_read_features): ...this.
8117 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8118 Update to use riscv_gdbarch_features and
8119 riscv_lookup_target_description.
8120 * riscv-tdep.c (riscv_find_default_target_description): Use
8121 riscv_lookup_target_description instead of
8122 riscv_create_target_description.
8123
373d7ac0
SM
81242020-02-18 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * valprint.c (generic_val_print_enum_1): When printing a flag
8127 enum with value 0 and there is no enumerator with value 0, print
8128 just "0" instead of "(unknown: 0x0)".
8129
b29a2df0
SM
81302020-02-18 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * valprint.c (generic_val_print_enum_1): Print unknown part of
8133 flag enum in hex.
8134
6740f0cc
SM
81352020-02-18 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8138 flag enums to contain duplicate enumerators.
8139 * valprint.c (generic_val_print_enum_1): Update comment.
8140
edd45eb0
SM
81412020-02-18 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * dwarf2/read.c: Include "count-one-bits.h".
8144 (update_enumeration_type_from_children): If an enumerator has
8145 multiple bits set, don't treat the enumeration as a "flag enum".
8146 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8147 of flag enums have 0 or 1 bit set.
8148
6d0cf446
BE
81492020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8150
8151 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8152 conversion.
8153 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8154 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8155 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8157 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8158
7001c1b7
SM
81592020-02-18 Simon Marchi <simon.marchi@efficios.com>
8160
8161 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8162
fdb61c6c
SM
81632020-02-14 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8166 displaced_step_closure_up.
8167 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8168 (struct displaced_step_closure_up):
8169 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8170 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8171 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8172 Likewise.
8173 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8174 * gdbarch.c, gdbarch.h: Re-generate.
8175 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8176 displaced_step_closure_up.
8177 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8178 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8179 * infrun.h (displaced_step_closure_up): New type alias.
8180 (struct displaced_step_inferior_state) <step_closure>: Change
8181 type to displaced_step_closure_up.
8182 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8183 displaced_step_closure_up.
8184 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8185
a4a38eb4
TT
81862020-02-14 Tom Tromey <tom@tromey.com>
8187
8188 * minidebug.c (gnu_debug_key): New global.
8189 (find_separate_debug_file_in_section): Use it.
8190
e8217e61
SM
81912020-02-14 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8194 std::unique_ptr.
8195 * gdbarch.c: Re-generate.
8196 * gdbarch.h: Re-generate.
8197 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8198 change.
8199 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8200 type to std::unique_ptr.
8201 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8202 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8203 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8204 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8205 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8206 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8207 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8208 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8209 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8210
d8d83535
SM
82112020-02-14 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8214 std::unique_ptr.
8215 (displaced_step_clear): Rename to...
8216 (displaced_step_reset): ... this. Just call displaced->reset ().
8217 (displaced_step_clear_cleanup): Rename to...
8218 (displaced_step_reset_cleanup): ... this.
8219 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8220 (displaced_step_fixup): Likewise.
8221 (resume_1): Likewise.
8222 (handle_inferior_event): Restore child's memory before calling
8223 displaced_step_fixup on the parent.
8224 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8225 to std::unique_ptr.
8226 <step_closure>: Change type to std::unique_ptr.
8227
5f661e03
SM
82282020-02-14 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * arm-tdep.c: Include count-one-bits.h.
8231 (cleanup_block_store_pc): Use count_one_bits.
8232 (cleanup_block_load_pc): Use count_one_bits.
8233 (arm_copy_block_xfer): Use count_one_bits.
8234 (thumb2_copy_block_xfer): Use count_one_bits.
8235 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8236 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8237 (thumb_get_next_pcs_raw): Use count_one_bits.
8238 (arm_get_next_pcs_raw): Use count_one_bits_l.
8239 * arch/arm.c (bitcount): Remove.
8240 * arch/arm.h (bitcount): Remove.
8241
8084e579
TT
82422020-02-14 Tom Tromey <tromey@adacore.com>
8243
8244 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8245 Update.
8246 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8247 * dwarf2/loc.c (call_site_find_chain_1): Return
8248 unique_xmalloc_ptr.
8249 (call_site_find_chain): Likewise.
8250
258bf0ee
RB
82512020-02-14 Richard Biener <rguenther@suse.de>
8252
8253 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8254 on expression with division operators.
8255
f98a8458
AKS
82562020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8257
8258 * MAINTAINERS (Write After Approval): Adding myself.
8259
d1437c0e
TT
82602020-02-12 Tom Tromey <tom@tromey.com>
8261
8262 * event-loop.c (event_data, gdb_event, event_handler_func):
8263 Remove.
8264
3d4560f7
TT
82652020-02-12 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8268 (dwarf2_frame_objfile_data): Add comment.
8269 (find_comp_unit, set_comp_unit): New functions.
8270 (dwarf2_frame_find_fde): Use find_comp_unit.
8271 (dwarf2_build_frame_info): Use set_comp_unit.
8272
21982304
TT
82732020-02-12 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8276 (comp_unit): Don't initialize objfile.
8277 (execute_cfa_program): Add text_offset parameter.
8278 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8279 (dwarf2_frame_cache): Update.
8280 (dwarf2_build_frame_info): Don't set "objfile" member.
8281
4debb237
TT
82822020-02-12 Tom Tromey <tom@tromey.com>
8283
8284 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8285 (decode_frame_entry): Likewise.
8286 (dwarf2_build_frame_info): Update.
8287
0d404d44
TT
82882020-02-12 Tom Tromey <tom@tromey.com>
8289
8290 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8291 (decode_frame_entry_1): Use the comp_unit obstack.
8292
a7a3ae5c
TT
82932020-02-12 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2/frame.c (struct comp_unit): Add initializers and
8296 constructor.
8297 (dwarf2_frame_objfile_data): Store a comp_unit.
8298 (dwarf2_frame_find_fde): Update.
8299 (dwarf2_build_frame_info): Use "new".
8300
a9d65418
TT
83012020-02-12 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8304 (dwarf2_fde_table): Typedef for std::vector.
8305 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8306 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8307 (decode_frame_entry): Update.
8308 (dwarf2_build_frame_info): Use "new".
8309
7559c217
CB
83102020-02-12 Christian Biesinger <cbiesinger@google.com>
8311
8312 * arm-tdep.c (arm_gdbarch_init): Update.
8313 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8314 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8315 have_neon, is_m>: Change to bool.
8316
aeefc73c
CB
83172020-02-12 Christian Biesinger <cbiesinger@google.com>
8318
8319 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8320
d27b8e5f
TT
83212020-02-12 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8324
cd5900f3
HD
83252020-02-12 Hannes Domani <ssbssa@yahoo.de>
8326
8327 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8328 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8329
f056b22b
TT
83302020-02-11 Tom Tromey <tom@tromey.com>
8331
8332 * psymtab.h: Update comment.
8333
f92ff6b5
TT
83342020-02-11 Tom Tromey <tom@tromey.com>
8335
8336 * gdb_obstack.h (struct auto_obstack): Use
8337 DISABLE_COPY_AND_ASSIGN.
8338
3fd6912b
TT
83392020-02-11 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/frame.h (struct objfile): Don't forward declare.
8342
69ed9b74
CB
83432020-02-11 Christian Biesinger <cbiesinger@google.com>
8344
8345 * cris-tdep.c (cris_supply_gregset): Change signature to match
8346 what struct regset expects.
8347 (cris_regset): New struct.
8348 (fetch_core_registers): Remove.
8349 (cris_iterate_over_regset_sections): New function.
8350 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8351 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8352
bda874f6
CB
83532020-02-11 Christian Biesinger <cbiesinger@google.com>
8354
8355 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8356 registers.
8357
754e1564
CB
83582020-02-11 Christian Biesinger <cbiesinger@google.com>
8359
8360 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8361
8ddd8e0e
SM
83622020-02-11 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * configure: Re-generate.
8365
898e7f60
SM
83662020-02-11 Simon Marchi <simon.marchi@efficios.com>
8367
8368 * configure: Re-generate.
8369
58df732b
SM
83702020-02-11 Simon Marchi <simon.marchi@efficios.com>
8371
8372 * acinclude: Update warning.m4 path.
8373 * warning.m4: Move to gdbsupport.
8374
da5bd37e
TT
83752020-02-11 Tom Tromey <tromey@adacore.com>
8376
8377 * remote.c (remote_console_output): Update.
8378 * printcmd.c (printf_command): Update.
8379 * event-loop.c (gdb_wait_for_event): Update.
8380 * linux-nat.c (sigchld_handler): Update.
8381 * remote-sim.c (gdb_os_write_stdout): Update.
8382 (gdb_os_flush_stdout): Update.
8383 (gdb_os_flush_stderr): Update.
8384 (gdb_os_write_stderr): Update.
8385 * exceptions.c (print_exception): Update.
8386 * remote-fileio.c (remote_fileio_func_read): Update.
8387 (remote_fileio_func_write): Update.
8388 * tui/tui.c (tui_enable): Update.
8389 * tui/tui-interp.c (tui_interp::init): Update.
8390 * utils.c (init_page_info): Update.
8391 (putchar_unfiltered, fputc_unfiltered): Update.
8392 (gdb_flush): Update.
8393 (emit_style_escape): Update.
8394 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8395 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8396 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8397 (stderr_file::write): Update.
8398 (stderr_file::puts): Update.
8399 * ui-file.h (ui_file_isatty, ui_file_write)
8400 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8401 (ui_file_puts): Don't declare.
8402
85f0dd3c
TV
84032020-02-10 Tom de Vries <tdevries@suse.de>
8404
8405 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8406 sentinel to char *.
8407
2e927613
TV
84082020-02-09 Tom de Vries <tdevries@suse.de>
8409
8410 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8411 filename if it matches "<artificial>".
8412
6bafc845
HD
84132020-02-09 Hannes Domani <ssbssa@yahoo.de>
8414
8415 * windows-tdep.c (struct enum_value_name): New struct.
8416 (create_enum): New function.
8417 (windows_get_siginfo_type): Create and use enum types.
8418
7928d571
HD
84192020-02-09 Hannes Domani <ssbssa@yahoo.de>
8420
8421 * NEWS: Mention $_siginfo support for Windows.
8422 * windows-nat.c (handle_exception): Set siginfo_er.
8423 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8424 (windows_xfer_siginfo): New function.
8425 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8426 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8427 (init_windows_gdbarch_data): New function.
8428 (get_windows_gdbarch_data): New function.
8429 (windows_get_siginfo_type): New function.
8430 (windows_init_abi): Register windows_get_siginfo_type.
8431 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8432
6751ebae
TT
84332020-02-08 Tom Tromey <tom@tromey.com>
8434
8435 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8436 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8437 <keep>: Declare method.
8438 <m_keep>: Remove member.
8439 <~cutu_reader>: Remove.
8440 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8441 (cutu_reader::cutu_reader): Update.
8442 (cutu_reader::keep): Rename from ~cutu_reader.
8443 (process_psymtab_comp_unit, build_type_psymtabs_1)
8444 (process_skeletonless_type_unit, load_partial_comp_unit)
8445 (load_full_comp_unit, dwarf2_read_addr_index)
8446 (read_signatured_type): Update.
8447
135f5437
TT
84482020-02-08 Tom Tromey <tom@tromey.com>
8449
8450 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8451 "want_partial_unit" parameter.
8452 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8453 Inline check for DW_TAG_partial_unit.
8454 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8455
9f66ff1c
TT
84562020-02-08 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8459 read.c.
8460 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8461 read.c.
8462
c8a7a66f
TT
84632020-02-08 Tom Tromey <tom@tromey.com>
8464
8465 * dwarf2/read.c (read_address): Move to comp-unit.c.
8466 (dwarf2_rnglists_process, dwarf2_ranges_process)
8467 (read_attribute_value, dwarf_decode_lines_1)
8468 (var_decode_location, decode_locdesc): Update.
8469 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8470 read.c. Remove "cu" parameter.
8471 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8472 method.
8473
8266302d
TT
84742020-02-08 Tom Tromey <tom@tromey.com>
8475
8476 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8477 (read_indirect_line_string): Update.
8478 * dwarf2/comp-unit.c (read_offset): Remove.
8479 (read_comp_unit_head): Update.
8480 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8481 method.
8482 (read_offset): Don't declare.
8483
4057dfde
TT
84842020-02-08 Tom Tromey <tom@tromey.com>
8485
8486 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8487 * dwarf2/read.c (struct comp_unit_head): Move to
8488 dwarf2/comp-unit.h.
8489 (enum class rcuh_kind): Move to comp-unit.h.
8490 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8491 (read_comp_unit_head, error_check_comp_unit_head)
8492 (read_and_check_comp_unit_head): Move to comp-unit.c.
8493 (read_offset, dwarf_unit_type_name): Likewise.
8494 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8495 (cutu_reader::cutu_reader, read_call_site_scope)
8496 (find_partial_die, follow_die_offset): Update.
8497 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8498
24aa364d
TT
84992020-02-08 Tom Tromey <tom@tromey.com>
8500
8501 * dwarf2/read.c (read_offset_1): Move to leb.c.
8502 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8503 (dwarf_decode_macro_bytes): Update.
8504 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8505 * dwarf2/leb.h (read_offset): Declare.
8506
2c7d5afc
TT
85072020-02-08 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.c (dwarf2_section_size): Remove.
8510 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8511 Update.
8512 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8513
4075cb26
TT
85142020-02-08 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2/read.c (read_initial_length): Move to leb.c.
8517 * dwarf2/leb.h (read_initial_length): Declare.
8518 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8519 handle_nonstd parameter.
8520 * dwarf2/frame.c (read_initial_length): Remove.
8521 (decode_frame_entry_1): Update.
8522
09ba997f
TT
85232020-02-08 Tom Tromey <tom@tromey.com>
8524
8525 * dwarf2/loc.c (dwarf2_find_location_expression)
8526 (dwarf_evaluate_loc_desc::get_tls_address)
8527 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8528 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8529 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8530 (dwarf2_compile_property_to_c)
8531 (dwarf2_loc_desc_get_symbol_read_needs)
8532 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8533 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8534 (loclist_describe_location, loclist_tracepoint_var_ref)
8535 (loclist_generate_c_location): Update.
8536 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8537 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8538 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8539 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8540 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8541 (dwarf2_per_cu_data::addr_size)
8542 (dwarf2_per_cu_data::ref_addr_size)
8543 (dwarf2_per_cu_data::text_offset)
8544 (dwarf2_per_cu_data::addr_type): Now methods.
8545 (per_cu_header_read_in): Make per_cu "const".
8546 (dwarf2_version): Remove.
8547 (dwarf2_per_cu_data::int_type): Now a method.
8548 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8549 (set_die_type, read_array_type, read_subrange_index_type)
8550 (read_tag_string_type, read_subrange_type): Update.
8551 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8552 offset_size, ref_addr_size, text_offset, addr_type, version,
8553 objfile, int_type, addr_sized_int_type>: Declare methods.
8554
96c738c0
TT
85552020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8558 Move earlier.
8559
8fdd972c
TT
85602020-02-08 Tom Tromey <tom@tromey.com>
8561
8562 * dwarf2/read.h (dwarf_line_debug): Declare.
8563 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8564 * dwarf2/read.c: Move line_header code to new files.
8565 (dwarf_line_debug): No longer static.
8566 * dwarf2/line-header.c: New file.
8567 * dwarf2/line-header.h: New file.
8568
03075812
TT
85692020-02-08 Tom Tromey <tom@tromey.com>
8570
8571 * dwarf2/read.c (struct line_header) <file_full_name,
8572 file_file_name>: Return unique_xmalloc_ptr.
8573 (line_header::file_file_name): Update.
8574 (line_header::file_full_name): Update.
8575 (dw2_get_file_names_reader): Update.
8576 (macro_start_file): Update.
8577
bb822404
TT
85782020-02-08 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/read.c (struct line_header) <file_full_name,
8581 file_file_name>: Declare methods.
8582 (dw2_get_file_names_reader): Update.
8583 (file_file_name): Now a method.
8584 (file_full_name): Likewise.
8585 (macro_start_file): Update.
8586
009b64fc
TT
85872020-02-08 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/read.c (dwarf_always_disassemble)
8590 (show_dwarf_always_disassemble): Move to loc.c.
8591 (_initialize_dwarf2_read): Move "always-disassemble" registration
8592 to loc.c.
8593 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8594 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8595 static.
8596 (show_dwarf_always_disassemble): Move from read.c.
8597 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8598
5895093f
TT
85992020-02-08 Tom Tromey <tom@tromey.com>
8600
8601 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8602 (create_quick_file_names_table): Return htab_up.
8603 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8604 Update.
8605 * dwarf2/read.h (struct dwarf2_per_objfile)
8606 <quick_file_names_table>: Now htab_up.
8607
b3b32279
TT
86082020-02-08 Tom Tromey <tom@tromey.com>
8609
8610 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8611
1d33d811
TT
86122020-02-08 Tom Tromey <tom@tromey.com>
8613
8614 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8615 Rewrite.
8616 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8617 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8618 (abbrev_table::abbrev_table): No longer inline.
8619 (ABBREV_HASH_SIZE): Remove.
8620 (abbrev_table::m_abbrevs): Now an htab_up.
8621
86de1d91
TT
86222020-02-08 Tom Tromey <tom@tromey.com>
8623
8624 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8625 (cutu_reader): Update.
8626 (build_type_psymtabs_1): Update.
8627 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8628 (abbrev_table::alloc_abbrev): Update.
8629 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8630 (abbrev_table::read): New static method, renamed from
8631 abbrev_table_read_table.
8632 (abbrev_table::alloc_abbrev)
8633 (abbrev_table::add_abbrev): Now private.
8634 (abbrev_table::abbrev_table): Now private.
8635 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8636
0335378b
TT
86372020-02-08 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8640 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8641 htab_up.
8642
48b490f2
TT
86432020-02-08 Tom Tromey <tom@tromey.com>
8644
8645 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8646 htab_up.
8647 (lookup_dwo_unit_in_dwp): Update.
8648 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8649 on obstack.
8650
bc68fb19
TT
86512020-02-08 Tom Tromey <tom@tromey.com>
8652
8653 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8654 obstack.
8655
d15acc42
TT
86562020-02-08 Tom Tromey <tom@tromey.com>
8657
8658 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8659 line_header_hash.
8660 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8661 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8662 Change type to htab_up.
8663
eaa5fa8b
TT
86642020-02-08 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8667 htab_up. Don't allocate on obstack.
8668 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8669 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8670 Change type to htab_up.
8671
b0b6a987
TT
86722020-02-08 Tom Tromey <tom@tromey.com>
8673
8674 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8675 Change type to htab_up.
8676 * dwarf2/read.c (create_signatured_type_table_from_index)
8677 (create_signatured_type_table_from_debug_names)
8678 (create_all_type_units, add_type_unit)
8679 (lookup_dwo_signatured_type, lookup_signatured_type)
8680 (process_skeletonless_type_unit): Update.
8681 (create_debug_type_hash_table, create_debug_types_hash_table):
8682 Change type of types_htab.
8683 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8684 htab_up. Don't allocate on obstack.
8685 (create_cus_hash_table): Change type of cus_htab parameter.
8686 (struct dwo_file) <cus, tus>: Now htab_up.
8687 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8688 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8689 (queue_and_load_all_dwo_tus): Update.
8690 * dwarf2/index-write.c (write_gdbindex): Update.
8691 (write_debug_names): Update.
8692
39856def
TT
86932020-02-08 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8696 dwarf2/read.c. Remove "next" member. Add constructor ntad
8697 destructor.
8698 (struct dwarf2_per_objfile) <queue>: New member.
8699 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8700 dwarf2/read.h.
8701 (dwarf2_queue, dwarf2_queue_tail): Remove.
8702 (class dwarf2_queue_guard): Add parameter to constructor. Use
8703 DISABLE_COPY_AND_ASSIGN.
8704 <m_per_objfile>: New member.
8705 <~dwarf2_queue_guard>: Rewrite.
8706 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8707 Update.
8708 (~dwarf2_queue_item): New.
8709
3e225074
TT
87102020-02-08 Tom Tromey <tom@tromey.com>
8711
8712 * dwarf2/read.c (struct die_info) <has_children>: New member.
8713 (dw2_get_file_names_reader): Remove has_children.
8714 (dw2_get_file_names): Update.
8715 (read_cutu_die_from_dwo): Remove has_children.
8716 (cutu_reader::init_tu_and_read_dwo_dies)
8717 (cutu_reader::cutu_reader): Update.
8718 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8719 Remove has_children.
8720 (build_type_psymtabs_1, process_skeletonless_type_unit)
8721 (load_partial_comp_unit, load_full_comp_unit): Update.
8722 (create_dwo_cu_reader): Remove has_children.
8723 (create_cus_hash_table, read_die_and_children): Update.
8724 (read_full_die_1,read_full_die): Remove has_children.
8725 (read_signatured_type): Update.
8726 (class cutu_reader) <has_children>: Remove.
8727
82ca8957
TT
87282020-02-08 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/expr.c: Rename from dwarf2expr.c.
8731 * dwarf2/expr.h: Rename from dwarf2expr.h.
8732 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8733 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8734 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8735 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8736 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8737 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8738 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8739 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8740 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8741 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8742 * dwarf2/loc.c: Rename from dwarf2loc.c.
8743 * dwarf2/loc.h: Rename from dwarf2loc.h.
8744 * dwarf2/read.c: Rename from dwarf2read.c.
8745 * dwarf2/read.h: Rename from dwarf2read.h.
8746 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8747 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8748 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8749 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8750 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8751 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8752 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8753 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8754 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8755 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8756 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8757 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8758 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8759 Update.
8760 * Makefile.in (COMMON_SFILES): Update.
8761 (HFILES_NO_SRCDIR): Update.
8762
9e35d499
TT
87632020-02-08 Tom Tromey <tom@tromey.com>
8764
8765 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8766 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8767
1eba2311
TT
87682020-02-08 Tom Tromey <tom@tromey.com>
8769
8770 * dwarf2read.h (struct die_info): Don't declare.
8771
e41c2da2
TT
87722020-02-08 Tom Tromey <tom@tromey.com>
8773
8774 * dwarf2read.h (die_info_ptr): Remove typedef.
8775
4fc6c0d5
TT
87762020-02-08 Tom Tromey <tom@tromey.com>
8777
8778 * dwarf2read.c (read_call_site_scope)
8779 (handle_data_member_location, dwarf2_add_member_fn)
8780 (mark_common_block_symbol_computed, read_common_block)
8781 (attr_to_dynamic_prop, partial_die_info::read)
8782 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8783 (dwarf2_symbol_mark_computed, set_die_type): Update.
8784 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8785 method.
8786 (attr_form_is_block): Don't declare.
8787 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8788
cd6c91b4
TT
87892020-02-08 Tom Tromey <tom@tromey.com>
8790
8791 * dwarf2read.c (dwarf2_find_base_address, )
8792 (read_call_site_scope, rust_containing_type)
8793 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8794 (handle_data_member_location, dwarf2_add_member_fn)
8795 (get_alignment, read_structure_type, process_structure_scope)
8796 (mark_common_block_symbol_computed, read_common_block)
8797 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8798 (partial_die_info::read, read_attribute_value, new_symbol)
8799 (lookup_die_type, dwarf2_get_ref_die_offset)
8800 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8801 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8802 (dwarf2_symbol_mark_computed): Update.
8803 * dwarf2/attribute.h (struct attribute) <value_as_address,
8804 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8805 methods.
8806 (value_as_address, attr_form_is_section_offset)
8807 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8808 * dwarf2/attribute.c (attribute::value_as_address)
8809 (attribute::form_is_section_offset, attribute::form_is_constant)
8810 (attribute::form_is_ref): Now methods.
8811
162dce55
TT
88122020-02-08 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2read.c (struct attribute, DW_STRING)
8815 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8816 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8817 (attr_form_is_block, attr_form_is_section_offset)
8818 (attr_form_is_constant, attr_form_is_ref): Move.
8819 * dwarf2/attribute.h: New file.
8820 * dwarf2/attribute.c: New file, from dwarf2read.c.
8821 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8822
3054dd54
TT
88232020-02-08 Tom Tromey <tom@tromey.com>
8824
8825 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8826 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8827 Move.
8828 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8829 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8830 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8831 abbrev.c.
8832 * dwarf2/abbrev.h: New file.
8833 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8834 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8835
96b79293
TT
88362020-02-08 Tom Tromey <tom@tromey.com>
8837
8838 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8839 (dwarf2_section_size, dwarf2_get_section_info)
8840 (create_signatured_type_table_from_debug_names)
8841 (create_addrmap_from_aranges, read_debug_names_from_section)
8842 (get_gdb_index_contents_from_section, read_comp_unit_head)
8843 (error_check_comp_unit_head, read_abbrev_offset)
8844 (create_debug_type_hash_table, init_cu_die_reader)
8845 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8846 (read_comp_units_from_section, create_cus_hash_table)
8847 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8848 (create_dwp_v2_section, dwarf2_rnglists_process)
8849 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8850 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8851 (read_indirect_string_from_dwz, read_addr_index_1)
8852 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8853 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8854 (fill_in_loclist_baton): Update.
8855 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8856 get_containing_section, get_bfd_owner, get_bfd_section,
8857 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8858 (dwarf2_read_section, get_section_name, get_section_file_name)
8859 (get_containing_section, get_section_bfd_owner)
8860 (get_section_bfd_section, get_section_name, get_section_file_name)
8861 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8862 declare.
8863 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8864 (dwarf2_section_info::get_bfd_owner)
8865 (dwarf2_section_info::get_bfd_section)
8866 (dwarf2_section_info::get_name)
8867 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8868 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8869 (dwarf2_section_info::read): Now methods.
8870 * dwarf-index-write.c (class debug_names): Update.
8871
2c86cff9
TT
88722020-02-08 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8875 Move to dwarf2/section.h.
8876 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8877 (get_section_bfd_section, get_section_name)
8878 (get_section_file_name, get_section_id, get_section_flags)
8879 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8880 dwarf2/section.c.
8881 * dwarf2/section.h: New file.
8882 * dwarf2/section.c: New file, from dwarf2read.c.
8883 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8884
f4382c45
TT
88852020-02-08 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8888 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8889 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8890 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8891 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8892 * dwarf2/leb.h: New file, from dwarf2read.c.
8893 * dwarf2/leb.c: New file, from dwarf2read.c.
8894 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8895 Remove.
8896 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8897 (COMMON_SFILES): Add dwarf2/leb.c.
8898
01840b7a
JB
88992020-02-08 Joel Brobecker <brobecker@adacore.com>
8900
8901 GDB 9.1 released.
8902
dfcb27e4
IB
89032020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8904
8905 PR gdb/25190:
aac66a4c
SM
8906 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8907 * gdb/remote.c (remote_console_output): Update.
8908 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8909 (ui_file_puts): ...this.
8910 * gdb/ui-file.h (ui_file_puts): Add declaration.
8911 * gdb/utils.c (emit_style_escape): Update.
8912 (flush_wrap_buffer): Update.
8913 (fputs_maybe_filtered): Update.
8914 (fputs_unfiltered): Add function.
dfcb27e4 8915
faa17681
IB
89162020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8917
aac66a4c
SM
8918 * gdb/event-loop.c (gdb_wait_for_event): Update.
8919 * gdb/printcmd.c (printf_command): Update.
8920 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8921 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8922 (gdb_os_flush_stderr): Update.
8923 * gdb/remote.c (remote_console_output): Update.
8924 * gdb/ui-file.c (gdb_flush): Rename to...
8925 (ui_file_flush): ...this.
8926 (stderr_file::write): Update.
8927 (stderr_file::puts): Update.
8928 * gdb/ui-file.h (gdb_flush): Rename to...
8929 (ui_file_flush): ...this.
8930 * gdb/utils.c (gdb_flush): Add function.
8931 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8932
5abbbe1d
TT
89332020-02-07 Tom Tromey <tromey@adacore.com>
8934
8935 PR breakpoints/24915:
8936 * source.c (find_and_open_source): Do not check basenames_may_differ.
8937
919adfe8
TT
89382020-02-07 Tom Tromey <tom@tromey.com>
8939
8940 * README: Update gdbserver documentation.
8941 * gdbserver: Move to top level.
8942 * configure.tgt (build_gdbserver): Remove.
8943 * configure.ac: Remove --enable-gdbserver.
8944 * configure: Rebuild.
8945 * Makefile.in (distclean): Don't mention gdbserver.
8946
1d5d29e7
SV
89472020-02-06 Shahab Vahedi <shahab@synopsys.com>
8948
8949 * source-cache.c (source_cache::ensure): Surround
8950 get_plain_source_lines with a try/catch.
8951 (source_cache::get_line_charpos): Get rid of try/catch
8952 and only check for the return value of "ensure".
8953 * tui/tui-source.c (tui_source_window::set_contents):
8954 Simplify "nlines" calculation.
8955
6eb1129c
SV
89562020-02-06 Shahab Vahedi <shahab@synopsys.com>
8957
8958 * MAINTAINERS (Write After Approval): Add myself.
8959
c6a42d11
CB
89602020-02-05 Christian Biesinger <cbiesinger@google.com>
8961
8962 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8963 function call.
8964
c8ecdda6
CB
89652020-02-05 Christian Biesinger <cbiesinger@google.com>
8966
8967 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8968
f6480e70
MR
89692020-02-05 Maciej W. Rozycki <macro@wdc.com>
8970
8971 * nat/riscv-linux-tdesc.h: New file.
8972 * nat/riscv-linux-tdesc.c: New file, taking code from...
8973 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8974 ... here.
8975 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8976 NATDEPFILES.
8977
dcc9fbc6
AB
89782020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8979
8980 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8981 we don't set the fake simulator ptid to the null_ptid.
8982
719546c4
SM
89832020-02-03 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8986 * gdbthread.h (class thread_info) <resumed>: Likewise.
8987 * infrun.c (resume_1): Likewise.
8988 (proceed): Likewise.
8989 (infrun_thread_stop_requested): Likewise.
8990 (stop_all_threads): Likewise.
8991 (handle_inferior_event): Likewise.
8992 (restart_threads): Likewise.
8993 (finish_step_over): Likewise.
8994 (keep_going_stepped_thread): Likewise.
8995 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8996 (linux_handle_extended_wait): Likewise.
8997 * record-btrace.c (get_thread_current_frame_id): Likewise.
8998 * record-full.c (record_full_wait_1): Likewise.
8999 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9000 * target.c (target_resume): Likewise.
9001 * thread.c (set_running_thread): Likewise.
9002
e409c542
AKS
90032020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9004
9005 * f-valprint.c (f77_print_array_1): Changed datatype of index
9006 variable to LONGEST from int to enable it to contain bound
9007 values correctly.
9008
ee98c0da
MR
90092020-02-03 Maciej W. Rozycki <macro@wdc.com>
9010
9011 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9012 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9013 offsets according to FLEN determined.
9014 (riscv_linux_nat_target::read_description): Determine FLEN
9015 dynamically.
9016 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9017 according to FLEN determined.
9018 (riscv_linux_nat_target::store_registers): Likewise.
9019
aa66aac4
SV
90202020-02-01 Shahab Vahedi <shahab@synopsys.com>
9021
9022 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9023 when reg->group is empty and reggroup is not.
9024
fd9faca8
TT
90252020-01-31 Tom Tromey <tromey@adacore.com>
9026
9027 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9028 Call beneath target's mourn_inferior after unpushing.
9029
42330a68
AB
90302020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 PR tui/9765
9033 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9034 have enough lines to fill the screen, still return the lowest
9035 address we found.
9036
7a27a45b
AB
90372020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9038
9039 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9040 '-', '<', and '>' commands.
9041
c47f70e2
PA
90422020-01-29 Pedro Alves <palves@redhat.com>
9043 Sergio Durigan Junior <sergiodj@redhat.com>
9044
9045 * infcmd.c (construct_inferior_arguments): Assert that
9046 'argc' is greater than 0.
9047
5133a315
LM
90482020-01-29 Luis Machado <luis.machado@linaro.org>
9049
9050 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9051 (BRK_INSN_MASK): Define to 0xd4200000.
9052 (aarch64_program_breakpoint_here_p): New function.
9053 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9054 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9055 breakpoint.c.
9056 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9057 breakpoint.h
9058 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9059 call gdbarch_program_breakpoint_here_p.
9060 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9061 default_program_breakpoint_here_p, changed return type to bool and
9062 simplified.
9063 * breakpoint.h (program_breakpoint_here): Moved prototype to
9064 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9065 return type to bool.
9066 * gdbarch.c: Regenerate.
9067 * gdbarch.h: Regenerate.
9068 * gdbarch.sh (program_breakpoint_here_p): New method.
9069 * infrun.c (handle_signal_stop): Call
9070 gdbarch_program_breakpoint_here_p.
9071
168f8c6b
TT
90722020-01-26 Tom Tromey <tom@tromey.com>
9073
9074 * ctfread.c (struct ctf_fp_info): Reindent.
9075 (_initialize_ctfread): Remove.
9076
128a391f
TT
90772020-01-26 Tom Tromey <tom@tromey.com>
9078
9079 * psymtab.c (partial_map_expand_apply)
9080 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9081 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9082 (psym_print_stats, psym_expand_symtabs_for_function)
9083 (psym_map_symbol_filenames, psym_map_matching_symbols)
9084 (psym_expand_symtabs_matching)
9085 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9086 (maintenance_check_psymtabs): Use new methods.
9087 * psympriv.h (struct partial_symtab) <readin_p,
9088 get_compunit_symtab>: New methods.
9089 <readin, compunit_symtab>: Remove members.
9090 (struct standard_psymtab): New.
9091 (struct legacy_psymtab): Derive from standard_psymtab.
9092 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9093 standard_psymtab.
9094 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9095
0494dbec
TT
90962020-01-26 Tom Tromey <tom@tromey.com>
9097
9098 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9099 read_dependencies. Add assert.
9100 * psymtab.c (partial_symtab::read_dependencies): New method.
9101 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9102 method.
9103 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9104 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9105 read_dependencies.
9106 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9107 Add assert.
9108
8566b89b
TT
91092020-01-26 Tom Tromey <tom@tromey.com>
9110
9111 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9112 Call expand_psymtab.
9113 (xcoff_read_symtab): Call expand_psymtab.
9114 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9115 legacy_expand_psymtab.
9116 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9117 method.
9118 (struct legacy_psymtab) <expand_psymtab>: Implement.
9119 <legacy_expand_psymtab>: New member.
9120 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9121 (parse_partial_symbols): Set legacy_expand_psymtab.
9122 (psymtab_to_symtab_1): Change argument order. Call
9123 expand_psymtab.
9124 (new_psymtab): Set legacy_expand_psymtab.
9125 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9126 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9127 expand_psymtab.
9128 (dwarf2_psymtab::expand_psymtab): Rename from
9129 psymtab_to_symtab_1. Call expand_psymtab.
9130 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9131 (dbx_end_psymtab): Likewise.
9132 (dbx_psymtab_to_symtab_1): Change argument order. Call
9133 expand_psymtab.
9134 (dbx_read_symtab): Call expand_psymtab.
9135 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9136 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9137 (ctf_psymtab::read_symtab): Call expand_psymtab.
9138
077cbab2
TT
91392020-01-26 Tom Tromey <tom@tromey.com>
9140
9141 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9142 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9143 messages.
9144 * mdebugread.c (mdebug_read_symtab): Remove prints.
9145 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9146 assert.
9147 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9148
891813be
TT
91492020-01-26 Tom Tromey <tom@tromey.com>
9150
9151 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9152 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9153 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9154 legacy_symtab.
9155 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9156 * psymtab.c (psymtab_to_symtab): Call method.
9157 (dump_psymtab): Update.
9158 * psympriv.h (struct partial_symtab): Add virtual destructor.
9159 <read_symtab>: New method.
9160 (struct legacy_symtab): New.
9161 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9162 (struct pst_map) <pst>: Now a legacy_psymtab.
9163 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9164 (new_psymtab): Use legacy_psymtab.
9165 * dwarf2read.h (struct dwarf2_psymtab): New.
9166 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9167 * dwarf2read.c (dwarf2_create_include_psymtab)
9168 (dwarf2_build_include_psymtabs, create_type_unit_group)
9169 (create_partial_symtab, process_psymtab_comp_unit_reader)
9170 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9171 (set_partial_user): Use dwarf2_psymtab.
9172 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9173 (psymtab_to_symtab_1, process_full_comp_unit)
9174 (process_full_type_unit, dwarf2_ranges_read)
9175 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9176 (dwarf_decode_lines): Use dwarf2_psymtab.
9177 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9178 (add_address_entry_worker, write_one_signatured_type)
9179 (recursively_count_psymbols, recursively_write_psymbols)
9180 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9181 (write_debug_names): Likewise.
9182 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9183 <pst>: Now a legacy_psymtab.
9184 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9185 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9186 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9187 * ctfread.c (struct ctf_psymtab): New.
9188 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9189 ctf_psymtab.
9190 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9191 (create_partial_symtab): Return a ctf_psymtab.
9192 (scan_partial_symbols): Update.
9193
c3693a1d
TT
91942020-01-26 Tom Tromey <tom@tromey.com>
9195
9196 * xcoffread.c (xcoff_start_psymtab): Use new.
9197 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9198 renamed from start_psymtab_common.
9199 * psympriv.h (struct partial_symtab): Add new constructor.
9200 (start_psymtab_common): Don't declare.
9201 * mdebugread.c (parse_partial_symbols): Use new.
9202 * dwarf2read.c (create_partial_symtab): Use new.
9203 * dbxread.c (start_psymtab): Use new.
9204 * ctfread.c (create_partial_symtab): Use new.
9205
32caafd0
TT
92062020-01-26 Tom Tromey <tom@tromey.com>
9207
9208 * xcoffread.c (xcoff_end_psymtab): Use new.
9209 * psymtab.c (start_psymtab_common): Use new.
9210 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9211 Update.
9212 * psympriv.h (struct partial_symtab): Add parameters to
9213 constructor. Don't inline.
9214 (allocate_psymtab): Don't declare.
9215 * mdebugread.c (new_psymtab): Use new.
9216 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9217 * dbxread.c (dbx_end_psymtab): Use new.
9218
abaa2f23
TT
92192020-01-26 Tom Tromey <tom@tromey.com>
9220
9221 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9222 allocate_psymtab. Update documentation.
9223 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9224 allocate_psymtab. Do not use new.
9225 (allocate_psymtab): Use new. Update.
9226
6d94535f
TT
92272020-01-26 Tom Tromey <tom@tromey.com>
9228
9229 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9230 * psymtab.c (psym_print_stats): Update.
9231 * psympriv.h (struct partial_symtab) <readin,
9232 psymtabs_addrmap_supported, anonymous>: Now bool.
9233 * mdebugread.c (psymtab_to_symtab_1): Update.
9234 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9235 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9236 (process_full_comp_unit, process_full_type_unit): Update.
9237 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9238 * ctfread.c (psymtab_to_symtab): Update.
9239
6f17252b
TT
92402020-01-26 Tom Tromey <tom@tromey.com>
9241
9242 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9243 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9244 * psymtab.c (psymtab_storage): Delete psymtabs.
9245 (psymtab_storage::allocate_psymtab): Use new.
9246 (psymtab_storage::discard_psymtab): Use delete.
9247 * psympriv.h (struct partial_symtab): Add constructor and
9248 initializers.
9249
f6f1cebc
TT
92502020-01-26 Tom Tromey <tom@tromey.com>
9251
9252 * machoread.c: Do not include psympriv.h.
9253
e47e48f6
PW
92542020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9255
9256 * NEWS: Mention the new option and the set/show commands.
9257
a2fedca9
PW
92582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9259
9260 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9261 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9262 (validate_exec_file): New variables, enums, functions.
9263 (exec_file_locate_attach, print_section_info): Style the filenames.
9264 (_initialize_exec): Install show_exec_file_mismatch_command and
9265 set_exec_file_mismatch_command.
9266 * gdbcore.h (validate_exec_file): Declare.
9267 * infcmd.c (attach_command): Call validate_exec_file.
9268 * remote.c ( remote_target::remote_add_inferior): Likewise.
9269
7ffa82e1
AB
92702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9271
9272 * frame.c (find_frame_sal): Move call to get_next_frame into more
9273 inner scope.
9274 * inline-frame.c (inilne_state) <inline_state>: Update argument
9275 types.
9276 (inilne_state) <skipped_symbol>: Rename to...
9277 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9278 (skip_inline_frames): Build vector of skipped symbols and use this
9279 to reate the inline_state.
9280 (inline_skipped_symbol): Add a comment and some assertions, fetch
9281 skipped symbol from the list.
9282
3d92a3e3
AB
92832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9284
9285 * buildsym.c (lte_is_less_than): Delete.
9286 (buildsym_compunit::end_symtab_with_blockvector): Create local
9287 lambda function to sort line table entries, and use
9288 std::stable_sort instead of std::sort.
9289 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9290 markers when looking for a previous line.
9291
94a72be7
AB
92922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * dwarf2read.c (lnp_state_machine::record_line): Include
9295 end_sequence parameter in debug print out. Record the line if we
9296 are at an end_sequence marker even if it's not the start of a
9297 statement.
9298 * symmisc.c (maintenance_print_one_line_table): Print end of
9299 sequence markers with 'END' not '0'.
9300
53af73bf
PA
93012020-01-24 Pedro Alves <palves@redhat.com>
9302
9303 PR gdb/25410
9304 * thread.c (scoped_restore_current_thread::restore): Use
9305 switch_to_inferior_no_thread.
9306 * exec.c: Include "progspace-and-thread.h".
9307 (add_target_sections, remove_target_sections):
9308 scoped_restore_current_pspace_and_thread instead of
9309 scoped_restore_current_thread.
9310 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9311 and aspace to the inferior before calling clone_program_space.
9312 Remove stale comment.
9313
3050c6f4
CB
93142020-01-24 Christian Biesinger <cbiesinger@google.com>
9315
9316 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9317 (arm_netbsd_nat_target::fetch_registers): ...this.
9318 (arm_nbsd_nat_target::store_registers): Rename to...
9319 (arm_netbsd_nat_target::store_registers): ...this.
9320
73685c7e
CB
93212020-01-24 Christian Biesinger <cbiesinger@google.com>
9322
9323 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9324 register_t.
9325
89203d40
CB
93262020-01-24 Christian Biesinger <cbiesinger@google.com>
9327
9328 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9329 Update comment.
9330 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9331 Likewise.
9332 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9333 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9334 the correct replacement (iterate_over_regset_sections).
9335 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9336 Update comment.
9337
1ba1ac88
AB
93382020-01-24 Graham Markall <graham.markall@embecosm.com>
9339
9340 PR gdb/23718
9341 * gdb/python/python.c (execute_gdb_command): Call
9342 async_enable_stdin in catch block.
9343
f3364a6d
AB
93442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9345
9346 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9347 SWITCH_THRU_ALL_UIS.
9348
733d0a67
AB
93492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9350
9351 PR tui/9765
9352 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9353 comment, add extra parameter, and update to store previous symbol
9354 when appropriate.
9355 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9356 add extra parameter.
9357 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9358 remove unneeded parameter, add try/catch around gdb_print_insn,
9359 rewrite to add items to asm_lines vector.
9360 (tui_find_backward_disassembly_start_address): New function.
9361 (tui_find_disassembly_address): Updated throughout.
9362 (tui_disasm_window::set_contents): Update for changes to
9363 tui_disassemble.
9364 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9365 number of lines to scroll.
9366
b3b3bada
SM
93672020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9370 (SECT_OFF_DATA): Likewise.
9371 (SECT_OFF_RODATA): Likewise.
9372 (SECT_OFF_TEXT): Likewise.
9373 (SECT_OFF_BSS): Likewise.
9374 (struct objfile) <text_section_offset, data_section_offset>: New
9375 methods.
9376 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9377 objfile::text_section_offset.
9378 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9379 * coffread.c (coff_symtab_read): Likewise.
9380 (enter_linenos): Likewise.
9381 (process_coff_symbol): Likewise.
9382 * ctfread.c (get_objfile_text_range): Likewise.
9383 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9384 Use objfile::data_section_offset.
9385 * dwarf2-frame.c (execute_cfa_program): Use
9386 objfile::text_section_offset.
9387 (dwarf2_frame_find_fde): Likewise.
9388 * dwarf2read.c (create_addrmap_from_index): Likewise.
9389 (create_addrmap_from_aranges): Likewise.
9390 (dw2_find_pc_sect_compunit_symtab): Likewise.
9391 (process_psymtab_comp_unit_reader): Likewise.
9392 (add_partial_symbol): Likewise.
9393 (add_partial_subprogram): Likewise.
9394 (process_full_comp_unit): Likewise.
9395 (read_file_scope): Likewise.
9396 (read_func_scope): Likewise.
9397 (read_lexical_block_scope): Likewise.
9398 (read_call_site_scope): Likewise.
9399 (dwarf2_rnglists_process): Likewise.
9400 (dwarf2_ranges_process): Likewise.
9401 (dwarf2_ranges_read): Likewise.
9402 (dwarf_decode_lines_1): Likewise.
9403 (new_symbol): Likewise.
9404 (dwarf2_fetch_die_loc_sect_off): Likewise.
9405 (dwarf2_per_cu_text_offset): Likewise.
9406 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9407 * hppa-tdep.c (read_unwind_info): Likewise.
9408 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9409 * psympriv.h (struct partial_symtab): Likewise.
9410 * psymtab.c (find_pc_sect_psymtab): Likewise.
9411 * solib-svr4.c (enable_break): Likewise.
9412 * stap-probe.c (relocate_address): Use
9413 objfile::data_section_offset.
9414 * xcoffread.c (enter_line_range): Use
9415 objfile::text_section_offset.
9416 (read_xcoff_symtab): Likewise.
9417
ab53f382
SM
94182020-01-23 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9421 declaration to narrower scopes.
9422
e7eee665
SM
94232020-01-23 Simon Marchi <simon.marchi@efficios.com>
9424
9425 * darwin-nat.h (struct darwin_exception_msg, enum
9426 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9427 Move up.
9428 (class darwin_nat_target) <wait_1, check_new_threads,
9429 decode_exception_message, decode_message, stop_inferior,
9430 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9431 * darwin-nat.c (darwin_check_new_threads): Rename to...
9432 (darwin_nat_target::check_new_threads): ... this.
9433 (darwin_suspend_inferior_it): Remove.
9434 (darwin_decode_exception_message): Rename to...
9435 (darwin_nat_target::decode_exception_message): ... this.
9436 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9437 (darwin_decode_message): Rename to...
9438 (darwin_nat_target::decode_message): ... this.
9439 (cancel_breakpoint): Rename to...
9440 (darwin_nat_target::cancel_breakpoint): ... this.
9441 (darwin_wait): Rename to...
9442 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9443 instead of iterate_over_inferiors.
9444 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9445 (darwin_stop_inferior): Rename to...
9446 (darwin_nat_target::stop_inferior): ... this.
9447 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9448 (darwin_init_thread_list): Rename to...
9449 (darwin_nat_target::init_thread_list): ... this.
9450 (darwin_ptrace_him): Rename to...
9451 (darwin_nat_target::ptrace_him): ... this.
9452 (darwin_nat_target::create_inferior): Pass lambda function to
9453 fork_inferior.
9454 (darwin_nat_target::detach): Call stop_inferior instead of
9455 darwin_stop_inferior.
9456 * fork-inferior.h (fork_inferior): Change init_trace_fun
9457 parameter to gdb::function_view.
9458 * fork-inferior.c (fork_inferior): Likewise.
9459
c162ed3e
HD
94602020-01-23 Hannes Domani <ssbssa@yahoo.de>
9461
9462 * i386-cygwin-tdep.c (core_process_module_section): Update.
9463 * windows-nat.c (struct lm_info_windows): Add text_offset.
9464 (windows_xfer_shared_libraries): Update.
9465 * windows-tdep.c (windows_xfer_shared_library):
9466 Add text_offset_cached argument.
9467 * windows-tdep.h (windows_xfer_shared_library): Update.
9468
a1237872
SM
94692020-01-21 Simon Marchi <simon.marchi@efficios.com>
9470
9471 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9472
b3ee6dd9
SM
94732020-01-21 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9476 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9477 replace with range-based for.
9478 (gdbsim_interrupt_inferior): Remove.
9479 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9480 with a range-based for. Inline code from
9481 gdbsim_interrupt_inferior.
9482
f9fac3c8
SM
94832020-01-21 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * infrun.c (proceed): Fix indentation.
9486
f6474de9
TT
94872020-01-21 Tom Tromey <tromey@adacore.com>
9488
9489 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9490 * python/python.c (python_extension_ops): Update.
9491 (gdbpy_colorize): New function.
9492 * python/lib/gdb/__init__.py (colorize): New function.
9493 * extension.h (ext_lang_colorize): Declare.
9494 * extension.c (ext_lang_colorize): New function.
9495 * extension-priv.h (struct extension_language_ops) <colorize>: New
9496 member.
9497 * cli/cli-style.c (_initialize_cli_style): Update help text.
9498
f0c702d4
LM
94992020-01-21 Luis Machado <luis.machado@linaro.org>
9500
9501 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9502 <cond>: Change type to bool.
9503 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9504 (aarch64_displaced_step_cb): Likewise.
9505 (aarch64_displaced_step_tb): Likewise.
9506
1ab139e5
LM
95072020-01-21 Luis Machado <luis.machado@linaro.org>
9508
9509 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9510 output.
9511
0c271889
LM
95122020-01-21 Luis Machado <luis.machado@linaro.org>
9513
9514 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9515 <pc_adjust>: Adjust the documentation.
9516 (aarch64_displaced_step_fixup): Check if PC really moved before
9517 adjusting it.
9518
4d89c1c7
TT
95192020-01-19 Tom Tromey <tom@tromey.com>
9520
9521 * disasm.c (~gdb_disassembler): New destructor.
9522 (gdb_buffered_insn_length): Call disassemble_free_target.
9523 * disasm.h (class gdb_disassembler): Declare destructor. Use
9524 DISABLE_COPY_AND_ASSIGN.
9525
c0ab21c2
TT
95262020-01-19 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9529 (die_reader_func_ftype): Remove.
9530 (cutu_reader): New class.
9531 (dw2_get_file_names_reader): Remove "data" parameter.
9532 (dw2_get_file_names): Use cutu_reader.
9533 (create_debug_type_hash_table): Update.
9534 (read_cutu_die_from_dwo): Update comment.
9535 (lookup_dwo_unit): Add dwo_name parameter.
9536 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9537 die_reader_func_ftype and data parameters.
9538 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9539 Remove die_reader_func_ftype and data parameters.
9540 (~cutu_reader): New; from init_cutu_and_read_dies.
9541 (cutu_reader::cutu_reader): Rename from
9542 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9543 and data parameters.
9544 (init_cutu_and_read_dies_simple): Remove.
9545 (struct process_psymtab_comp_unit_data): Remove.
9546 (process_psymtab_comp_unit_reader): Remove data parameter; add
9547 want_partial_unit and pretend_language parameters.
9548 (process_psymtab_comp_unit): Use cutu_reader.
9549 (build_type_psymtabs_reader): Remove data parameter.
9550 (build_type_psymtabs_1): Use cutu_reader.
9551 (process_skeletonless_type_unit): Likewise.
9552 (load_partial_comp_unit_reader): Remove.
9553 (load_partial_comp_unit): Use cutu_reader.
9554 (load_full_comp_unit_reader): Remove.
9555 (load_full_comp_unit): Use cutu_reader.
9556 (struct create_dwo_cu_data): Remove.
9557 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9558 dwo_unit parameters.
9559 (create_cus_hash_table): Use cutu_reader.
9560 (struct dwarf2_read_addr_index_data): Remove.
9561 (dwarf2_read_addr_index_reader): Remove.
9562 (dwarf2_read_addr_index): Use cutu_reader.
9563 (read_signatured_type_reader): Remove.
9564 (read_signatured_type): Use cutu_reader.
9565
45bbae5c
TT
95662020-01-19 Tom Tromey <tom@tromey.com>
9567
9568 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9569 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9570 (tui_wrefresh): Declare.
9571 * tui/tui-wingeneral.c (suppress_output): New global.
9572 (tui_suppress_output, ~tui_suppress_output): New constructor and
9573 destructor.
9574 (tui_wrefresh): New function.
9575 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9576 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9577 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9578 method.
9579 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9580 tui_wrefresh.
9581 (tui_data_window::no_refresh): New method.
9582 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9583 (tui_reg_command): Use tui_suppress_output
9584 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9585 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9586 method.
9587 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9588
4f13c1c0
TT
95892020-01-19 Tom Tromey <tom@tromey.com>
9590
9591 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9592 Handle case where symtab is null.
9593
fa47e446
SM
95942020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9595
9596 * linux-fork.c (one_fork_p): Simplify.
9597
26f42329
SM
95982020-01-17 Simon Marchi <simon.marchi@efficios.com>
9599
9600 * top.c (struct qt_args): Remove.
9601 (kill_or_detach): Change return type to void, replace `void *`
9602 parameter with a proper one.
9603 (print_inferior_quit_action): Likewise.
9604 (quit_confirm): Use range-based for loop to iterate over inferiors.
9605 (quit_force): Likewise.
9606
a9ac81b1
SM
96072020-01-17 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9610 `void *` parameter with proper parameters.
9611 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9612 (print_one_inferior): Change return type to void, replace `void *`
9613 parameter with proper parameters.
9614 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9615 inferiors.
9616 (get_other_inferior): Remove.
9617 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9618 inferiors.
9619
788eca49
SM
96202020-01-17 Simon Marchi <simon.marchi@efficios.com>
9621
9622 * mi/mi-interp.c (report_initial_inferior): Remove.
9623 (mi_interp::init): Use range-based for to iterate over inferiors.
9624
d9bc85b6
SM
96252020-01-17 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * python/py-inferior.c (build_inferior_list): Remove.
9628 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9629
40c94099
CB
96302020-01-16 Christian Biesinger <cbiesinger@google.com>
9631
9632 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9633 (btrace_stitch_trace): Likewise.
9634 * charset.c (intermediate_encoding): Likewise (vaild).
9635 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9636 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9637 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9638
e0cdfe3c
HD
96392020-01-16 Hannes Domani <ssbssa@yahoo.de>
9640
9641 * windows-tdep.c (windows_get_tlb_type):
9642 Add rtl_user_process_parameters type.
9643
790f1718 96442020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9645 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9646
9647 PR build/24805
9648 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9649 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9650 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9651 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9652 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9653 (ps_plog): Redeclare exported functions with default visibility.
9654
3112ed97
NA
96552020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9656
9657 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9658 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9659
8dc3273e
SM
96602020-01-15 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * infcmd.c (post_create_inferior): Use get_thread_regcache
9663 instead of get_current_regcache.
9664
ff47f4f0
TT
96652020-01-14 Tom Tromey <tom@tromey.com>
9666
9667 PR symtab/12535:
9668 * python/python.c (gdbpy_decode_line): Treat empty string the same
9669 as no argument.
9670
975f45b7
TT
96712020-01-14 Tom Tromey <tom@tromey.com>
9672
9673 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9674
25e57356
TT
96752020-01-14 Tom Tromey <tom@tromey.com>
9676
9677 * nat/linux-btrace.c: Don't include <config.h>.
9678 * nat/linux-ptrace.c: Don't include <config.h>.
9679 * nat/x86-linux-dregs.c: Don't include <config.h>.
9680
05ea2a05
TT
96812020-01-14 Tom Tromey <tom@tromey.com>
9682
9683 * configure: Rebuild.
9684 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9685
01027315
TT
96862020-01-14 Tom Tromey <tom@tromey.com>
9687
9688 * nat/x86-linux-dregs.c: Include configh.h.
9689 * nat/linux-ptrace.c: Include configh.h.
9690 * nat/linux-btrace.c: Include configh.h.
9691 * defs.h: Include config.h, bfd.h.
9692 * configure.ac: Don't source common.host.
9693 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9694 * configure: Rebuild.
9695 * acinclude.m4: Update path.
9696 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9697 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9698 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9699 (CLIBS): Add LIBSUPPORT.
9700 (CDEPS): Likewise.
9701 (COMMON_SFILES): Remove gdbsupport files.
9702 (HFILES_NO_SRCDIR): Likewise.
9703 (stamp-version): Update path to create-version.sh.
9704 (ALLDEPFILES): Remove gdbsupport files.
9705
b2ceabe8
TT
97062020-01-14 Tom Tromey <tom@tromey.com>
9707
9708 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9709 USE_WIN32API when needed.
9710 * configure.ac (USE_WIN32API): Don't define.
9711 (WIN32LIBS): Use WIN32APILIBS.
9712 * configure: Rebuild.
9713
25c51f71
TT
97142020-01-14 Tom Tromey <tom@tromey.com>
9715
9716 * configure: Rebuild.
9717 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9718
717c684d
BE
97192020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9720
9721 * skip.c (skip_function_command): Make skip w/o arguments use the
9722 name of the inlined function if pc is inside any inlined function.
9723
7da6a5b9
LM
97242020-01-14 Luis Machado <luis.machado@linaro.org>
9725
9726 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9727 * infrun.c (resume_1): Likewise.
9728 (handle_inferior_event): Remove stale comment.
9729 * linux-nat.c (linux_nat_target::resume): Update comments.
9730 (save_stop_reason): Likewise.
9731 (linux_nat_filter_event): Likewise.
9732 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9733
44e4c775
AB
97342020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * elfread.c (record_minimal_symbol): Set section index to 0 for
9737 non-allocatable sections.
9738
18a8505e
AT
9739
97402020-01-13 Ali Tamur <tamur@google.com>
9741
9742 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9743 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9744 to gdb::optional. Update comments.
9745 (dwo_file): Update comments.
9746 (read_attribute): Update API to take an additional out parameter,
9747 need_reprocess. This is used to mark attributes that need other
9748 attributes (e.g. str_offsets_base) for correct computation which may not
9749 have been read yet.
9750 (read_attribute_reprocess): New function declaration.
9751 (read_addr_index): Likewise.
9752 (read_dwo_str_index): Likewise.
9753 (read_stub_str_index): Likewise.
9754 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9755 (lookup_addr_base): New function definition.
9756 (lookup_ranges_base): Likewise.
9757 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9758 lookup_ranges_base.
9759 (init_cutu_and_read_dies): Update comments.
9760 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9761 unit. This is used to inherit parent's str_offsets_base and addr_base.
9762 Update comments.
9763 (init_cutu_and_read_dies_simple): Reflect API changes.
9764 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9765 (create_cus_hash_table): Change API to take parent compile unit.
9766 Reflect API changes.
9767 (open_and_init_dwo_file): Reflect API changes.
9768 (dwarf2_get_pc_bounds): Update comments.
9769 (dwarf2_record_block_ranges): Likewise.
9770 (read_full_die_1): Change implementation to reprocess attributes that
9771 need str_offsets_base and addr_base.
9772 (partial_die_info::read): Likewise.
9773 (read_attribute_reprocess): New function definition.
9774 (read_attribute_value): Change API to take an additional out parameter,
9775 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9776 when a non-dwo compile unit has index based attributes.
9777 (read_attribute): Reflect API changes.
9778 (read_addr_index_1): Reflect API changes. Update comments.
9779 (dwarf2_read_addr_index_data): Reflect API changes.
9780 (dwarf2_read_addr_index): Likewise.
9781 (read_str_index): Change API and implementation. This becomes a helper
9782 to be used by the new string index related methods. Update error
9783 message and comments.
9784 (read_dwo_str_index): New function definition.
9785 (read_stub_str_index): Likewise.
9786 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9787 * symfile.h (dwarf2_debug_sections): Likewise.
9788 * xcoffread.c (dwarf2_debug_sections): Likewise.
9789
0cac9354
SM
97902020-01-13 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9793 core_reg_sect type to gdb_byte *.
9794 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9795 * cris-tdep.c (fetch_core_registers): Likewise.
9796 * corelow.c (core_target::get_core_register_section): Change
9797 type of `contents` to gdb::byte_vector.
9798
9a6d629c
AB
97992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9800
9801 * tui/tui-wingeneral.c (box_win): Position the title in the center
9802 of the border.
9803
d8b2f9e3
SM
98042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9805
9806 * corelow.c (core_target::get_core_register_section): Use
9807 std::vector instead of alloca.
9808
bb564c58
SM
98092020-01-13 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * warning.m4: Add -Wmissing-declarations to build_warnings.
9812 * configure: Re-generate.
9813
6b366111
SM
98142020-01-13 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * python/python.c (init__gdb_module): Add declaration.
9817
6c265988
SM
98182020-01-13 Simon Marchi <simon.marchi@efficios.com>
9819
9820 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9821 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9822 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9823 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9824 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9825 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9826 * ada-exp.y (_initialize_ada_exp): Add declaration.
9827 * ada-lang.c (_initialize_ada_language): Add declaration.
9828 * ada-tasks.c (_initialize_tasks): Add declaration.
9829 * agent.c (_initialize_agent): Add declaration.
9830 * aix-thread.c (_initialize_aix_thread): Add declaration.
9831 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9832 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9833 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9834 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9835 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9836 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9837 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9838 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9839 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9840 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9841 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9842 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9843 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9844 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9845 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9846 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9847 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9848 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9849 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9850 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9851 * annotate.c (_initialize_annotate): Add declaration.
9852 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9853 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9854 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9855 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9856 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9857 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9858 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9859 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9860 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9861 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9862 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9863 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9864 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9865 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9866 * auto-load.c (_initialize_auto_load): Add declaration.
9867 * auxv.c (_initialize_auxv): Add declaration.
9868 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9869 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9870 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9871 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9872 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9873 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9874 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9875 * breakpoint.c (_initialize_breakpoint): Add declaration.
9876 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9877 * btrace.c (_initialize_btrace): Add declaration.
9878 * charset.c (_initialize_charset): Add declaration.
9879 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9880 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9881 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9882 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9883 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9884 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9885 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9886 * coffread.c (_initialize_coffread): Add declaration.
9887 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9888 * compile/compile.c (_initialize_compile): Add declaration.
9889 * complaints.c (_initialize_complaints): Add declaration.
9890 * completer.c (_initialize_completer): Add declaration.
9891 * copying.c (_initialize_copying): Add declaration.
9892 * corefile.c (_initialize_core): Add declaration.
9893 * corelow.c (_initialize_corelow): Add declaration.
9894 * cp-abi.c (_initialize_cp_abi): Add declaration.
9895 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9896 * cp-support.c (_initialize_cp_support): Add declaration.
9897 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9898 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9899 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9900 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9901 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9902 * ctfread.c (_initialize_ctfread): Add declaration.
9903 * d-lang.c (_initialize_d_language): Add declaration.
9904 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9905 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9906 * dbxread.c (_initialize_dbxread): Add declaration.
9907 * dcache.c (_initialize_dcache): Add declaration.
9908 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9909 * disasm.c (_initialize_disasm): Add declaration.
9910 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9911 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9912 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9913 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9914 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9915 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9916 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9917 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9918 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9919 * elfread.c (_initialize_elfread): Add declaration.
9920 * exec.c (_initialize_exec): Add declaration.
9921 * extension.c (_initialize_extension): Add declaration.
9922 * f-lang.c (_initialize_f_language): Add declaration.
9923 * f-valprint.c (_initialize_f_valprint): Add declaration.
9924 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9925 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9926 * filesystem.c (_initialize_filesystem): Add declaration.
9927 * findcmd.c (_initialize_mem_search): Add declaration.
9928 * findvar.c (_initialize_findvar): Add declaration.
9929 * fork-child.c (_initialize_fork_child): Add declaration.
9930 * frame-base.c (_initialize_frame_base): Add declaration.
9931 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9932 * frame.c (_initialize_frame): Add declaration.
9933 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9934 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9935 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9936 * gcore.c (_initialize_gcore): Add declaration.
9937 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9938 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9939 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9940 * gdbarch.c (_initialize_gdbarch): Add declaration.
9941 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9942 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9943 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9944 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9945 * go-lang.c (_initialize_go_language): Add declaration.
9946 * go32-nat.c (_initialize_go32_nat): Add declaration.
9947 * guile/guile.c (_initialize_guile): Add declaration.
9948 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9949 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9950 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9951 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9952 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9953 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9954 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9955 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9956 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9957 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9958 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9959 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9960 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9961 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9962 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9963 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9964 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9965 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9966 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9967 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9968 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9969 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9970 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9971 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9972 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9973 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9974 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9975 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9976 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9977 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9978 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9979 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9980 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9981 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9982 * infcall.c (_initialize_infcall): Add declaration.
9983 * infcmd.c (_initialize_infcmd): Add declaration.
9984 * inflow.c (_initialize_inflow): Add declaration.
9985 * infrun.c (_initialize_infrun): Add declaration.
9986 * interps.c (_initialize_interpreter): Add declaration.
9987 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9988 * jit.c (_initialize_jit): Add declaration.
9989 * language.c (_initialize_language): Add declaration.
9990 * linux-fork.c (_initialize_linux_fork): Add declaration.
9991 * linux-nat.c (_initialize_linux_nat): Add declaration.
9992 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9993 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9994 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9995 * m2-lang.c (_initialize_m2_language): Add declaration.
9996 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9997 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9998 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9999 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10000 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10001 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10002 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10003 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10004 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10005 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10006 * machoread.c (_initialize_machoread): Add declaration.
10007 * macrocmd.c (_initialize_macrocmd): Add declaration.
10008 * macroscope.c (_initialize_macroscope): Add declaration.
10009 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10010 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10011 * maint.c (_initialize_maint_cmds): Add declaration.
10012 * mdebugread.c (_initialize_mdebugread): Add declaration.
10013 * memattr.c (_initialize_mem): Add declaration.
10014 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10015 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10016 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10017 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10018 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10019 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10020 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10021 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10022 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10023 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10024 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10025 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10026 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10027 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10028 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10029 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10030 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10031 * mipsread.c (_initialize_mipsread): Add declaration.
10032 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10033 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10034 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10035 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10036 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10037 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10038 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10039 * nto-procfs.c (_initialize_procfs): Add declaration.
10040 * objc-lang.c (_initialize_objc_language): Add declaration.
10041 * observable.c (_initialize_observer): Add declaration.
10042 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10043 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10044 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10045 * osabi.c (_initialize_gdb_osabi): Add declaration.
10046 * osdata.c (_initialize_osdata): Add declaration.
10047 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10048 * parse.c (_initialize_parse): Add declaration.
10049 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10050 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10051 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10052 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10053 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10054 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10055 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10056 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10057 * printcmd.c (_initialize_printcmd): Add declaration.
10058 * probe.c (_initialize_probe): Add declaration.
10059 * proc-api.c (_initialize_proc_api): Add declaration.
10060 * proc-events.c (_initialize_proc_events): Add declaration.
10061 * proc-service.c (_initialize_proc_service): Add declaration.
10062 * procfs.c (_initialize_procfs): Add declaration.
10063 * producer.c (_initialize_producer): Add declaration.
10064 * psymtab.c (_initialize_psymtab): Add declaration.
10065 * python/python.c (_initialize_python): Add declaration.
10066 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10067 * record-btrace.c (_initialize_record_btrace): Add declaration.
10068 * record-full.c (_initialize_record_full): Add declaration.
10069 * record.c (_initialize_record): Add declaration.
10070 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10071 * regcache.c (_initialize_regcache): Add declaration.
10072 * reggroups.c (_initialize_reggroup): Add declaration.
10073 * remote-notif.c (_initialize_notif): Add declaration.
10074 * remote-sim.c (_initialize_remote_sim): Add declaration.
10075 * remote.c (_initialize_remote): Add declaration.
10076 * reverse.c (_initialize_reverse): Add declaration.
10077 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10078 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10079 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10080 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10081 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10082 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10083 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10084 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10085 Add declaration.
10086 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10087 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10088 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10089 * rust-exp.y (_initialize_rust_exp): Add declaration.
10090 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10091 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10092 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10093 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10094 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10095 * score-tdep.c (_initialize_score_tdep): Add declaration.
10096 * ser-go32.c (_initialize_ser_dos): Add declaration.
10097 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10098 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10099 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10100 * ser-uds.c (_initialize_ser_socket): Add declaration.
10101 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10102 * serial.c (_initialize_serial): Add declaration.
10103 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10104 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10105 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10106 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10107 * skip.c (_initialize_step_skip): Add declaration.
10108 * sol-thread.c (_initialize_sol_thread): Add declaration.
10109 * solib-aix.c (_initialize_solib_aix): Add declaration.
10110 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10111 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10112 * solib-frv.c (_initialize_frv_solib): Add declaration.
10113 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10114 * solib-target.c (_initialize_solib_target): Add declaration.
10115 * solib.c (_initialize_solib): Add declaration.
10116 * source-cache.c (_initialize_source_cache): Add declaration.
10117 * source.c (_initialize_source): Add declaration.
10118 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10119 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10120 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10121 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10122 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10123 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10124 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10125 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10126 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10127 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10128 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10129 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10130 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10131 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10132 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10133 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10134 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10135 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10136 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10137 * stabsread.c (_initialize_stabsread): Add declaration.
10138 * stack.c (_initialize_stack): Add declaration.
10139 * stap-probe.c (_initialize_stap_probe): Add declaration.
10140 * std-regs.c (_initialize_frame_reg): Add declaration.
10141 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10142 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10143 * symfile.c (_initialize_symfile): Add declaration.
10144 * symmisc.c (_initialize_symmisc): Add declaration.
10145 * symtab.c (_initialize_symtab): Add declaration.
10146 * target.c (_initialize_target): Add declaration.
10147 * target-connection.c (_initialize_target_connection): Add
10148 declaration.
10149 * target-dcache.c (_initialize_target_dcache): Add declaration.
10150 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10151 * thread.c (_initialize_thread): Add declaration.
10152 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10153 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10154 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10155 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10156 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10157 * tracectf.c (_initialize_ctf): Add declaration.
10158 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10159 * tracefile.c (_initialize_tracefile): Add declaration.
10160 * tracepoint.c (_initialize_tracepoint): Add declaration.
10161 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10162 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10163 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10164 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10165 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10166 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10167 * tui/tui.c (_initialize_tui): Add declaration.
10168 * typeprint.c (_initialize_typeprint): Add declaration.
10169 * ui-style.c (_initialize_ui_style): Add declaration.
10170 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10171 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10172 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10173 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10174 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10175 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10176 * unittests/filtered_iterator-selftests.c
10177 (_initialize_filtered_iterator_selftests): Add declaration.
10178 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10179 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10180 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10181 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10182 * unittests/main-thread-selftests.c
10183 (_initialize_main_thread_selftests): Add declaration.
10184 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10185 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10186 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10187 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10188 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10189 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10190 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10191 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10192 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10193 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10194 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10195 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10196 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10197 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10198 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10199 declaration.
10200 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10201 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10202 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10203 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10204 * user-regs.c (_initialize_user_regs): Add declaration.
10205 * utils.c (_initialize_utils): Add declaration.
10206 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10207 * valops.c (_initialize_valops): Add declaration.
10208 * valprint.c (_initialize_valprint): Add declaration.
10209 * value.c (_initialize_values): Add declaration.
10210 * varobj.c (_initialize_varobj): Add declaration.
10211 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10212 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10213 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10214 * windows-nat.c (_initialize_windows_nat): Add declaration.
10215 (_initialize_check_for_gdb_ini): Add declaration.
10216 (_initialize_loadable): Add declaration.
10217 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10218 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10219 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10220 * xcoffread.c (_initialize_xcoffread): Add declaration.
10221 * xml-support.c (_initialize_xml_support): Add declaration.
10222 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10223 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10224 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10225 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10226
e2de1eec
SM
102272020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10228
10229 * regformats/regdat.sh: Generate declaration for init function.
10230
e0037b4c
SM
102312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10234 up.
10235 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10236 close_one_inferior>: New methods.
10237 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10238 pass down target to find_inferior_pid.
10239 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10240 Pass down target to find_inferior_ptid.
10241 (gdbsim_target::create_inferior): Pass down target to
10242 add_thread_silent.
10243 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10244 target down to find_inferior_ptid and switch_to_thread.
10245 (gdbsim_target::close): Update to call close_one_inferior.
10246 (struct resume_data): Remove.
10247 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10248 directly, rather than through a void pointer.
10249 (gdbsim_target::resume): Update to call resume_one_inferior.
10250
58920b5b
SM
102512020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10254
4ec89149
PA
102552020-01-12 Pedro Alves <palves@redhat.com>
10256
10257 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10258 directly for the current inferior instead of
10259 discard_all_inferiors.
10260 (discard_all_inferiors): Delete.
10261
7c392d1d
TT
102622020-01-11 Tom Tromey <tom@tromey.com>
10263
10264 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10265 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10266 deprecated_safe_get_selected_frame.
10267
d9ebdab7
TBA
102682020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10269
10270 * inferior.c (print_inferior): Switch inferior before printing it.
10271
f3c469b9
PA
102722020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10273 Pedro Alves <palves@redhat.com>
10274
10275 * progspace-and-thread.c (switch_to_program_space_and_thread):
10276 Assert there's an inferior for PSPACE. Use
10277 switch_to_inferior_no_thread to switch the inferior too.
10278 * progspace.c (program_space::~program_space): Call
10279 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10280 (program_space::free_all_objfiles): Don't call clear_symtab_users
10281 here.
10282 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10283
65c574f6
PA
102842020-01-10 Pedro Alves <palves@redhat.com>
10285
10286 * NEWS: Mention multi-target debugging, "info connections", and
10287 "add-inferior -no-connection".
10288
2f4fcf00
PA
102892020-01-10 Pedro Alves <palves@redhat.com>
10290
10291 * infrun.c: Include "target-connection.h".
10292 (check_multi_target_resumption): New.
10293 (proceed): Call it.
10294 * target-connection.c (make_target_connection_string): Make
10295 extern.
10296 * target-connection.h (make_target_connection_string): Declare.
10297
121b3efd
PA
102982020-01-10 Pedro Alves <palves@redhat.com>
10299
10300 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10301 * inferior.c (uiout_field_connection): New function.
10302 (print_inferior): Add new "connection-id" column.
10303 (add_inferior_command): Show connection number/string of added
10304 inferior.
10305 * process-stratum-target.h
10306 (process_stratum_target::connection_string): New virtual method.
10307 (process_stratum_target::connection_number): New field.
10308 * remote.c (remote_target::connection_string): New override.
10309 * target-connection.c: New file.
10310 * target-connection.h: New file.
10311 * target.c (decref_target): Remove process_stratum targets from
10312 the connection list.
10313 (target_stack::push): Add process_stratum targets to the
10314 connection list.
10315
4f837581
PA
103162020-01-10 Pedro Alves <palves@redhat.com>
10317
10318 Revert:
10319 2016-04-12 Pedro Alves <palves@redhat.com>
10320 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10321 Remove references to name.
10322 * serial.h (struct serial) <name>: Delete.
10323
f4ec508e
PA
103242020-01-10 Pedro Alves <palves@redhat.com>
10325
10326 * gdbarch-selftests.c (register_to_value_test): Remove "target
10327 already pushed" check.
10328
5b6d1e4f
PA
103292020-01-10 Pedro Alves <palves@redhat.com>
10330 John Baldwin <jhb@FreeBSD.org>
10331
10332 * aarch64-linux-nat.c
10333 (aarch64_linux_nat_target::thread_architecture): Adjust.
10334 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10335 (task_command_1): Likewise.
10336 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10337 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10338 (aix_thread_target::store_registers)
10339 (aix_thread_target::thread_alive): Adjust.
10340 * amd64-fbsd-tdep.c: Include "inferior.h".
10341 (amd64fbsd_get_thread_local_address): Pass down target.
10342 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10343 thread's gdbarch instead of target_gdbarch.
10344 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10345 get_last_target_status.
10346 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10347 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10348 inferiors.
10349 (update_inserted_breakpoint_locations): Skip if inferiors with no
10350 execution.
10351 (update_global_location_list): When handling moribund locations,
10352 find representative inferior for location's pspace, and use thread
10353 count of its process_stratum target.
10354 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10355 * bsd-uthread.c (bsd_uthread_target::wait): Use
10356 as_process_stratum_target and adjust thread_change_ptid and
10357 add_thread calls.
10358 (bsd_uthread_target::update_thread_list): Use
10359 as_process_stratum_target and adjust find_thread_ptid,
10360 thread_change_ptid and add_thread calls.
10361 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10362 find_thread_ptid call.
10363 * corelow.c (add_to_thread_list): Adjust add_thread call.
10364 (core_target_open): Adjust add_thread_silent and thread_count
10365 calls.
10366 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10367 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10368 * event-top.c (async_disconnect): Pop targets from all inferiors.
10369 * exec.c (add_target_sections): Push exec target on all inferiors
10370 sharing the program space.
10371 (remove_target_sections): Remove the exec target from all
10372 inferiors sharing the program space.
10373 (exec_on_vfork): New.
10374 * exec.h (exec_on_vfork): Declare.
10375 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10376 Pass it down.
10377 (fbsd_nat_target::update_thread_list): Adjust.
10378 (fbsd_nat_target::resume): Adjust.
10379 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10380 down.
10381 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10382 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10383 get_thread_arch_regcache call.
10384 * fork-child.c (gdb_startup_inferior): Pass target down to
10385 startup_inferior and set_executing.
10386 * gdbthread.h (struct process_stratum_target): Forward declare.
10387 (add_thread, add_thread_silent, add_thread_with_info)
10388 (in_thread_list): Add process_stratum_target parameter.
10389 (find_thread_ptid(inferior*, ptid_t)): New overload.
10390 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10391 parameter.
10392 (all_threads()): Delete overload.
10393 (all_threads, all_non_exited_threads): Add process_stratum_target
10394 parameter.
10395 (all_threads_safe): Use brace initialization.
10396 (thread_count): Add process_stratum_target parameter.
10397 (set_resumed, set_running, set_stop_requested, set_executing)
10398 (threads_are_executing, finish_thread_state): Add
10399 process_stratum_target parameter.
10400 (switch_to_thread): Use is_current_thread.
10401 * i386-fbsd-tdep.c: Include "inferior.h".
10402 (i386fbsd_get_thread_local_address): Pass down target.
10403 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10404 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10405 have_inferiors check.
10406 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10407 (inf_ptrace_target::attach): Adjust.
10408 * infcall.c (run_inferior_call): Adjust.
10409 * infcmd.c (run_command_1): Pass target to
10410 scoped_finish_thread_state.
10411 (proceed_thread_callback): Skip inferiors with no execution.
10412 (continue_command): Rename 'all_threads' local to avoid hiding
10413 'all_threads' function. Adjust get_last_target_status call.
10414 (prepare_one_step): Adjust set_running call.
10415 (signal_command): Use user_visible_resume_target. Compare thread
10416 pointers instead of inferior_ptid.
10417 (info_program_command): Adjust to pass down target.
10418 (attach_command): Mark target's 'thread_executing' flag.
10419 (stop_current_target_threads_ns): New, factored out from ...
10420 (interrupt_target_1): ... this. Switch inferior before making
10421 target calls.
10422 * inferior-iter.h
10423 (struct all_inferiors_iterator, struct all_inferiors_range)
10424 (struct all_inferiors_safe_range)
10425 (struct all_non_exited_inferiors_range): Filter on
10426 process_stratum_target too. Remove explicit.
10427 * inferior.c (inferior::inferior): Push dummy target on target
10428 stack.
10429 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10430 Add process_stratum_target parameter, and pass it down.
10431 (have_live_inferiors): Adjust.
10432 (switch_to_inferior_and_push_target): New.
10433 (add_inferior_command, clone_inferior_command): Handle
10434 "-no-connection" parameter. Use
10435 switch_to_inferior_and_push_target.
10436 (_initialize_inferior): Mention "-no-connection" option in
10437 the help of "add-inferior" and "clone-inferior" commands.
10438 * inferior.h: Include "process-stratum-target.h".
10439 (interrupt_target_1): Use bool.
10440 (struct inferior) <push_target, unpush_target, target_is_pushed,
10441 find_target_beneath, top_target, process_target, target_at,
10442 m_stack>: New.
10443 (discard_all_inferiors): Delete.
10444 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10445 (all_inferiors, all_non_exited_inferiors): Add
10446 process_stratum_target parameter.
10447 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10448 (target_last_proc_target): New global.
10449 (follow_fork_inferior): Push target on new inferior. Pass target
10450 to add_thread_silent. Call exec_on_vfork. Handle target's
10451 reference count.
10452 (follow_fork): Adjust get_last_target_status call. Also consider
10453 target.
10454 (follow_exec): Push target on new inferior.
10455 (struct execution_control_state) <target>: New field.
10456 (user_visible_resume_target): New.
10457 (do_target_resume): Call target_async.
10458 (resume_1): Set target's threads_executing flag. Consider resume
10459 target.
10460 (commit_resume_all_targets): New.
10461 (proceed): Also consider resume target. Skip threads of inferiors
10462 with no execution. Commit resumtion in all targets.
10463 (start_remote): Pass current inferior to wait_for_inferior.
10464 (infrun_thread_stop_requested): Consider target as well. Pass
10465 thread_info pointer to clear_inline_frame_state instead of ptid.
10466 (infrun_thread_thread_exit): Consider target as well.
10467 (random_pending_event_thread): New inferior parameter. Use it.
10468 (do_target_wait): Rename to ...
10469 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10470 down.
10471 (threads_are_resumed_pending_p, do_target_wait): New.
10472 (prepare_for_detach): Adjust calls.
10473 (wait_for_inferior): New inferior parameter. Handle it. Use
10474 do_target_wait_1 instead of do_target_wait.
10475 (fetch_inferior_event): Adjust. Switch to representative
10476 inferior. Pass target down.
10477 (set_last_target_status): Add process_stratum_target parameter.
10478 Save target in global.
10479 (get_last_target_status): Add process_stratum_target parameter and
10480 handle it.
10481 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10482 (context_switch): Check inferior_ptid == null_ptid before calling
10483 inferior_thread().
10484 (get_inferior_stop_soon): Pass down target.
10485 (wait_one): Rename to ...
10486 (poll_one_curr_target): ... this.
10487 (struct wait_one_event): New.
10488 (wait_one): New.
10489 (stop_all_threads): Adjust.
10490 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10491 event's target.
10492 (switch_back_to_stepped_thread): Also consider target.
10493 (print_stop_event): Update.
10494 (normal_stop): Update. Also consider the resume target.
10495 * infrun.h (wait_for_inferior): Remove declaration.
10496 (user_visible_resume_target): New declaration.
10497 (get_last_target_status, set_last_target_status): New
10498 process_stratum_target parameter.
10499 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10500 process_stratum_target parameter, and use it.
10501 (clear_inline_frame_state (thread_info*)): New.
10502 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10503 process_stratum_target parameter.
10504 (clear_inline_frame_state (thread_info*)): Declare.
10505 * linux-fork.c (delete_checkpoint_command): Pass target down to
10506 find_thread_ptid.
10507 (checkpoint_command): Adjust.
10508 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10509 instead of just tweaking inferior_ptid.
10510 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10511 (exit_lwp): Pass target down to find_thread_ptid.
10512 (attach_proc_task_lwp_callback): Pass target down to
10513 add_thread/set_running/set_executing.
10514 (linux_nat_target::attach): Pass target down to
10515 thread_change_ptid.
10516 (get_detach_signal): Pass target down to find_thread_ptid.
10517 Consider last target status's target.
10518 (linux_resume_one_lwp_throw, resume_lwp)
10519 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10520 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10521 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10522 (linux_nat_target::async_wait_fd): New.
10523 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10524 target down.
10525 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10526 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10527 * linux-thread-db.c (struct thread_db_info::process_target): New
10528 field.
10529 (add_thread_db_info): Save target.
10530 (get_thread_db_info): New process_stratum_target parameter. Also
10531 match target.
10532 (delete_thread_db_info): New process_stratum_target parameter.
10533 Also match target.
10534 (thread_from_lwp): Adjust to pass down target.
10535 (thread_db_notice_clone): Pass down target.
10536 (check_thread_db_callback): Pass down target.
10537 (try_thread_db_load_1): Always push the thread_db target.
10538 (try_thread_db_load, record_thread): Pass target down.
10539 (thread_db_target::detach): Pass target down. Always unpush the
10540 thread_db target.
10541 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10542 target down. Always unpush the thread_db target.
10543 (find_new_threads_callback, thread_db_find_new_threads_2)
10544 (thread_db_target::update_thread_list): Pass target down.
10545 (thread_db_target::pid_to_str): Pass current inferior down.
10546 (thread_db_target::get_thread_local_address): Pass target down.
10547 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10548 target down.
10549 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10550 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10551 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10552 (procfs_init_inferior): Rename to ...
10553 (procfs_target::procfs_init_inferior): ... this and adjust.
10554 (procfs_target::create_inferior, procfs_notice_thread)
10555 (procfs_do_thread_registers): Adjust.
10556 * ppc-fbsd-tdep.c: Include "inferior.h".
10557 (ppcfbsd_get_thread_local_address): Pass down target.
10558 * proc-service.c (ps_xfer_memory): Switch current inferior and
10559 program space as well.
10560 (get_ps_regcache): Pass target down.
10561 * process-stratum-target.c
10562 (process_stratum_target::thread_address_space)
10563 (process_stratum_target::thread_architecture): Pass target down.
10564 * process-stratum-target.h
10565 (process_stratum_target::threads_executing): New field.
10566 (as_process_stratum_target): New.
10567 * ravenscar-thread.c
10568 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10569 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10570 down.
10571 * record-btrace.c (record_btrace_target::info_record): Adjust.
10572 (record_btrace_target::record_method)
10573 (record_btrace_target::record_is_replaying)
10574 (record_btrace_target::fetch_registers)
10575 (get_thread_current_frame_id, record_btrace_target::resume)
10576 (record_btrace_target::wait, record_btrace_target::stop): Pass
10577 target down.
10578 * record-full.c (record_full_wait_1): Switch to event thread.
10579 Pass target down.
10580 * regcache.c (regcache::regcache)
10581 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10582 process_stratum_target parameter and handle it.
10583 (current_thread_target): New global.
10584 (get_thread_regcache): Add process_stratum_target parameter and
10585 handle it. Switch inferior before calling target method.
10586 (get_thread_regcache): Pass target down.
10587 (get_thread_regcache_for_ptid): Pass target down.
10588 (registers_changed_ptid): Add process_stratum_target parameter and
10589 handle it.
10590 (registers_changed_thread, registers_changed): Pass target down.
10591 (test_get_thread_arch_aspace_regcache): New.
10592 (current_regcache_test): Define a couple local test_target_ops
10593 instances and use them for testing.
10594 (readwrite_regcache): Pass process_stratum_target parameter.
10595 (cooked_read_test, cooked_write_test): Pass mock_target down.
10596 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10597 (get_thread_arch_aspace_regcache): Add process_stratum_target
10598 parameter.
10599 (regcache::target): New method.
10600 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10601 (regcache::registers_changed_ptid): Add process_stratum_target
10602 parameter.
10603 (regcache::m_target): New field.
10604 (registers_changed_ptid): Add process_stratum_target parameter.
10605 * remote.c (remote_state::supports_vCont_probed): New field.
10606 (remote_target::async_wait_fd): New method.
10607 (remote_unpush_and_throw): Add remote_target parameter.
10608 (get_current_remote_target): Adjust.
10609 (remote_target::remote_add_inferior): Push target.
10610 (remote_target::remote_add_thread)
10611 (remote_target::remote_notice_new_inferior)
10612 (get_remote_thread_info): Pass target down.
10613 (remote_target::update_thread_list): Skip threads of inferiors
10614 bound to other targets. (remote_target::close): Don't discard
10615 inferiors. (remote_target::add_current_inferior_and_thread)
10616 (remote_target::process_initial_stop_replies)
10617 (remote_target::start_remote)
10618 (remote_target::remote_serial_quit_handler): Pass down target.
10619 (remote_target::remote_unpush_target): New remote_target
10620 parameter. Unpush the target from all inferiors.
10621 (remote_target::remote_unpush_and_throw): New remote_target
10622 parameter. Pass it down.
10623 (remote_target::open_1): Check whether the current inferior has
10624 execution instead of checking whether any inferior is live. Pass
10625 target down.
10626 (remote_target::remote_detach_1): Pass down target. Use
10627 remote_unpush_target.
10628 (extended_remote_target::attach): Pass down target.
10629 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10630 (remote_target::append_resumption): Pass down target.
10631 (remote_target::append_pending_thread_resumptions)
10632 (remote_target::remote_resume_with_hc, remote_target::resume)
10633 (remote_target::commit_resume): Pass down target.
10634 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10635 (remote_target::interrupt_query)
10636 (remote_target::remove_new_fork_children)
10637 (remote_target::check_pending_events_prevent_wildcard_vcont)
10638 (remote_target::remote_parse_stop_reply)
10639 (remote_target::process_stop_reply): Pass down target.
10640 (first_remote_resumed_thread): New remote_target parameter. Pass
10641 it down.
10642 (remote_target::wait_as): Pass down target.
10643 (unpush_and_perror): New remote_target parameter. Pass it down.
10644 (remote_target::readchar, remote_target::remote_serial_write)
10645 (remote_target::getpkt_or_notif_sane_1)
10646 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10647 down target.
10648 (remote_target::mourn_inferior): Pass down target. Use
10649 remote_unpush_target.
10650 (remote_target::core_of_thread)
10651 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10652 (remote_target::pid_to_exec_file)
10653 (remote_target::thread_handle_to_thread_info): Pass down target.
10654 (remote_target::async_wait_fd): New.
10655 * riscv-fbsd-tdep.c: Include "inferior.h".
10656 (riscv_fbsd_get_thread_local_address): Pass down target.
10657 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10658 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10659 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10660 Adjust.
10661 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10662 * solib-svr4.c (enable_break): Pass down target.
10663 * spu-multiarch.c (parse_spufs_run): Pass down target.
10664 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10665 * target-delegates.c: Regenerate.
10666 * target.c (g_target_stack): Delete.
10667 (current_top_target): Return the current inferior's top target.
10668 (target_has_execution_1): Refer to the passed-in inferior's top
10669 target.
10670 (target_supports_terminal_ours): Check whether the initial
10671 inferior was already created.
10672 (decref_target): New.
10673 (target_stack::push): Incref/decref the target.
10674 (push_target, push_target, unpush_target): Adjust.
10675 (target_stack::unpush): Defref target.
10676 (target_is_pushed): Return bool. Adjust to refer to the current
10677 inferior's target stack.
10678 (dispose_inferior): Delete, and inline parts ...
10679 (target_preopen): ... here. Only dispose of the current inferior.
10680 (target_detach): Hold strong target reference while detaching.
10681 Pass target down.
10682 (target_thread_name): Add assertion.
10683 (target_resume): Pass down target.
10684 (target_ops::beneath, find_target_at): Adjust to refer to the
10685 current inferior's target stack.
10686 (get_dummy_target): New.
10687 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10688 has a thread running.
10689 (initialize_targets): Rename to ...
10690 (_initialize_target): ... this.
10691 * target.h: Include "gdbsupport/refcounted-object.h".
10692 (struct target_ops): Inherit refcounted_object.
10693 (target_ops::shortname, target_ops::longname): Make const.
10694 (target_ops::async_wait_fd): New method.
10695 (decref_target): Declare.
10696 (struct target_ops_ref_policy): New.
10697 (target_ops_ref): New typedef.
10698 (get_dummy_target): Declare function.
10699 (target_is_pushed): Return bool.
10700 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10701 (all_matching_threads_iterator::all_matching_threads_iterator):
10702 Handle filter target.
10703 * thread-iter.h (struct all_matching_threads_iterator, struct
10704 all_matching_threads_range, class all_non_exited_threads_range):
10705 Filter by target too. Remove explicit.
10706 * thread.c (threads_executing): Delete.
10707 (inferior_thread): Pass down current inferior.
10708 (clear_thread_inferior_resources): Pass down thread pointer
10709 instead of ptid_t.
10710 (add_thread_silent, add_thread_with_info, add_thread): Add
10711 process_stratum_target parameter. Use it for thread and inferior
10712 searches.
10713 (is_current_thread): New.
10714 (thread_info::deletable): Use it.
10715 (find_thread_ptid, thread_count, in_thread_list)
10716 (thread_change_ptid, set_resumed, set_running): New
10717 process_stratum_target parameter. Pass it down.
10718 (set_executing): New process_stratum_target parameter. Pass it
10719 down. Adjust reference to 'threads_executing'.
10720 (threads_are_executing): New process_stratum_target parameter.
10721 Adjust reference to 'threads_executing'.
10722 (set_stop_requested, finish_thread_state): New
10723 process_stratum_target parameter. Pass it down.
10724 (switch_to_thread): Also match inferior.
10725 (switch_to_thread): New process_stratum_target parameter. Pass it
10726 down.
10727 (update_threads_executing): Reimplement.
10728 * top.c (quit_force): Pop targets from all inferior.
10729 (gdb_init): Don't call initialize_targets.
10730 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10731 Declare.
10732 (windows_add_thread, windows_delete_thread): Adjust.
10733 (get_windows_debug_event): Rename to ...
10734 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10735 * tracefile-tfile.c (tfile_target_open): Pass down target.
10736 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10737 Forward declare.
10738 (switch_to_thread): Add process_stratum_target parameter.
10739 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10740 parameter. Use it.
10741 (mi_on_resume): Pass target down.
10742 * nat/fork-inferior.c (startup_inferior): Add
10743 process_stratum_target parameter. Pass it down.
10744 * nat/fork-inferior.h (startup_inferior): Add
10745 process_stratum_target parameter.
10746 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10747
75c6c844
PA
107482020-01-10 Pedro Alves <palves@redhat.com>
10749
10750 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10751 directly. Instead find the first thread in the thread list and
10752 use switch_to_thread.
10753
78f2c40a
PA
107542020-01-10 Pedro Alves <palves@redhat.com>
10755
10756 * remote.c (remote_target::remote_add_inferior): Don't bind a
10757 process to the current inferior if the current inferior is already
10758 bound to a process.
10759
e7af6c70
TBA
107602020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10761 Pedro Alves <palves@redhat.com>
10762
10763 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10764 If no process is specified, return null_ptid instead of
10765 inferior_ptid.
10766 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10767 TARGET_WAITKIND_SIGNALLED with no pid.
10768
31ba933e
PA
107692020-01-10 Pedro Alves <palves@redhat.com>
10770
10771 * remote.c (first_remote_resumed_thread): New.
10772 (remote_target::wait_as): Use it as default event_ptid instead of
10773 inferior_ptid.
10774
735fc2ca
PA
107752020-01-10 Pedro Alves <palves@redhat.com>
10776
10777 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10778
c17e02e1
PA
107792020-01-10 Pedro Alves <palves@redhat.com>
10780
10781 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10782 not -1.
10783
ab1ddbcf
PA
107842020-01-10 Pedro Alves <palves@redhat.com>
10785
10786 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10787 ptid to get_last_target_status.
10788 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10789 ptid to get_last_target_status.
10790 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10791 get_last_target_status.
10792 (info_program_command): Don't pass a target_waitstatus to
10793 get_last_target_status.
10794 * infrun.c (init_wait_for_inferior): Use
10795 nullify_last_target_wait_ptid.
10796 (get_last_target_status): Handle nullptr arguments.
10797 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10798 (print_stop_event): Don't pass a ptid to get_last_target_status.
10799 (normal_stop): Don't pass a ptid to get_last_target_status.
10800 * infrun.h (get_last_target_status, set_last_target_status): Move
10801 comments here and update.
10802 (nullify_last_target_wait_ptid): Declare.
10803 * linux-fork.c (fork_load_infrun_state): Remove local extern
10804 declaration of nullify_last_target_wait_ptid.
10805 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10806 to get_last_target_status.
10807
f3f8ece4
PA
108082020-01-10 Pedro Alves <palves@redhat.com>
10809
10810 * gdbthread.h (scoped_restore_current_thread)
10811 <dont_restore, restore, m_dont_restore>: Declare.
10812 * thread.c (thread_alive): Add assertion. Return bool.
10813 (switch_to_thread_if_alive): New.
10814 (prune_threads): Switch inferior/thread.
10815 (print_thread_info_1): Switch thread before calling target methods.
10816 (scoped_restore_current_thread::restore): New, factored out from
10817 ...
10818 (scoped_restore_current_thread::~scoped_restore_current_thread):
10819 ... this.
10820 (scoped_restore_current_thread::scoped_restore_current_thread):
10821 Add assertion.
10822 (thread_apply_all_command, thread_select): Use
10823 switch_to_thread_if_alive.
10824 * infrun.c (proceed, restart_threads, handle_signal_stop)
10825 (switch_back_to_stepped_thread): Switch current thread before
10826 calling target methods.
10827
db2d40f7
PA
108282020-01-10 Pedro Alves <palves@redhat.com>
10829
10830 * inferior.c (switch_to_inferior_no_thread): New function,
10831 factored out from ...
10832 (inferior_command): ... here.
10833 * inferior.h (switch_to_inferior_no_thread): Declare.
10834 * mi/mi-main.c (run_one_inferior): Use
10835 switch_to_inferior_no_thread.
10836
bd420a2d
PA
108372020-01-10 Pedro Alves <palves@redhat.com>
10838
10839 * infcmd.c (kill_command): Remove dead code.
10840
ddf5db90
PA
108412020-01-10 Pedro Alves <palves@redhat.com>
10842
10843 * remote.c (remote_target::mourn_inferior): No longer check
10844 whether the target is running.
10845
5018ce90
PA
108462020-01-10 Pedro Alves <palves@redhat.com>
10847
10848 * corelow.c (core_target::has_execution): Change parameter type to
10849 inferior pointer.
10850 * inferior.c (number_of_live_inferiors): Use
10851 inferior::has_execution instead of target_has_execution_1.
10852 * inferior.h (inferior::has_execution): New.
10853 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10854 inferior::has_execution instead of target_has_execution_1.
10855 * process-stratum-target.c
10856 (process_stratum_target::has_execution): Change parameter type to
10857 inferior pointer. Check the inferior's PID instead of
10858 inferior_ptid.
10859 * process-stratum-target.h
10860 (process_stratum_target::has_execution): Change parameter type to
10861 inferior pointer.
10862 * record-full.c (record_full_core_target::has_execution): Change
10863 parameter type to inferior pointer.
10864 * target.c (target_has_execution_1): Change parameter type to
10865 inferior pointer.
10866 (target_has_execution_current): Adjust.
10867 * target.h (target_ops::has_execution): Change parameter type to
10868 inferior pointer.
10869 (target_has_execution_1): Change parameter type to inferior
10870 pointer. Change return type to bool.
10871 * tracefile.h (tracefile_target::has_execution): Change parameter
10872 type to inferior pointer.
10873
74375d18
PA
108742020-01-10 Pedro Alves <palves@redhat.com>
10875
10876 * exceptions.c (print_flush): Remove current_top_target() check.
10877
acdf84a6
PA
108782020-01-10 Pedro Alves <palves@redhat.com>
10879
10880 * remote.c (show_remote_exec_file): Show the current inferior's
10881 exec-file instead of the command variable's value.
10882
ec506636
PA
108832020-01-10 Pedro Alves <palves@redhat.com>
10884
10885 * record-full.c (record_full_resume_ptid): New global.
10886 (record_full_target::resume): Set it.
10887 (record_full_wait_1): Use record_full_resume_ptid instead of
10888 inferior_ptid.
10889
873657b9
PA
108902020-01-10 Pedro Alves <palves@redhat.com>
10891
10892 * gdbthread.h (scoped_restore_current_thread)
10893 <dont_restore, restore, m_dont_restore>: Declare.
10894 * thread.c (thread_alive): Add assertion. Return bool.
10895 (switch_to_thread_if_alive): New.
10896 (prune_threads): Switch inferior/thread.
10897 (print_thread_info_1): Switch thread before calling target methods.
10898 (scoped_restore_current_thread::restore): New, factored out from
10899 ...
10900 (scoped_restore_current_thread::~scoped_restore_current_thread):
10901 ... this.
10902 (scoped_restore_current_thread::scoped_restore_current_thread):
10903 Add assertion.
10904 (thread_apply_all_command, thread_select): Use
10905 switch_to_thread_if_alive.
10906
7f0ae84c
GB
109072020-01-10 George Barrett <bob@bob131.so>
10908
10909 * stap-probe.c (stap_modify_semaphore): Don't check for null
10910 semaphores.
10911 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10912 for null semaphores.
10913
f5a7c406
AB
109142020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10917 all source windows, and maintain horizontal scroll status while
10918 doing so.
10919
9ae6bf64
TT
109202020-01-09 Tom Tromey <tom@tromey.com>
10921
10922 PR tui/18932:
10923 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10924 update_source_window, not print_source_lines.
10925
b2efe70c
AB
109262020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * tui/tui.c (tui_enable): Register tui hooks after calling
10929 tui_display_main.
10930
5f23a082
CB
109312020-01-09 Christian Biesinger <cbiesinger@google.com>
10932
10933 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10934
3061113b
SM
109352020-01-08 Simon Marchi <simon.marchi@efficios.com>
10936
10937 * thread.c (print_thread_info_1): Fix indentation.
10938
57d75002
CB
109392020-01-09 Christian Biesinger <cbiesinger@google.com>
10940
10941 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10942 unique_xmalloc_ptr outside the if to always free the demangled name.
10943
6a053cb1
TT
109442020-01-08 Tom Tromey <tromey@adacore.com>
10945
10946 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10947 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10948 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10949 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10950 Remove.
10951 (section_offsets): New typedef.
10952 * symtab.c (fixup_section, get_msymbol_address): Update.
10953 * symmisc.c (dump_msymbols): Update.
10954 * symfile.h (relative_addr_info_to_section_offsets)
10955 (symfile_map_offsets_to_segments): Update.
10956 * symfile.c (build_section_addr_info_from_objfile)
10957 (init_objfile_sect_indices): Update.
10958 (struct place_section_arg): Change type of "offsets".
10959 (place_section): Update.
10960 (relative_addr_info_to_section_offsets): Change type of
10961 "section_offsets". Remove "num_sections" parameter.
10962 (default_symfile_offsets, syms_from_objfile_1)
10963 (set_objfile_default_section_offset): Update.
10964 (reread_symbols): No need to preserve section offsets by hand.
10965 (symfile_map_offsets_to_segments): Change type of "offsets".
10966 * stap-probe.c (relocate_address): Update.
10967 * stabsread.h (process_one_symbol): Update.
10968 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10969 (solib_target_relocate_section_addresses): Update.
10970 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10971 Update.
10972 * solib-frv.c (frv_relocate_main_executable): Update.
10973 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10974 * solib-aix.c (solib_aix_get_section_offsets): Change return
10975 type.
10976 (solib_aix_solib_create_inferior_hook): Update.
10977 * remote.c (remote_target::get_offsets): Update.
10978 * psymtab.c (find_pc_sect_psymtab): Update.
10979 * psympriv.h (struct partial_symbol) <address, text_low,
10980 text_high>: Update.
10981 * objfiles.h (obj_section_offset): Update.
10982 (struct objfile) <section_offsets>: Change type.
10983 <num_sections>: Remove.
10984 (objfile_relocate): Update.
10985 * objfiles.c (entry_point_address_query): Update
10986 (relocate_one_symbol): Change type of "section_offsets".
10987 (objfile_relocate1, objfile_relocate1): Change type of
10988 "new_offsets".
10989 (objfile_rebase1): Update.
10990 * mipsread.c (mipscoff_symfile_read): Update.
10991 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10992 parameter.
10993 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10994 (parse_external, psymtab_to_symtab_1): Update.
10995 * machoread.c (macho_symfile_offsets): Update.
10996 * ia64-tdep.c (ia64_find_unwind_table): Update.
10997 * hppa-tdep.c (read_unwind_info): Update.
10998 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10999 * dwarf2read.c (create_addrmap_from_index)
11000 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11001 (process_psymtab_comp_unit_reader, add_partial_symbol)
11002 (add_partial_subprogram, process_full_comp_unit)
11003 (read_file_scope, read_func_scope, read_lexical_block_scope)
11004 (read_call_site_scope, dwarf2_rnglists_process)
11005 (dwarf2_ranges_process, dwarf2_ranges_read)
11006 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11007 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11008 Update.
11009 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11010 Update.
11011 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11012 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11013 (process_one_symbol): Change type of "section_offsets".
11014 * ctfread.c (get_objfile_text_range): Update.
11015 * coffread.c (coff_symtab_read, enter_linenos)
11016 (process_coff_symbol): Update.
11017 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11018 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11019
456e800a
TT
110202020-01-08 Tom Tromey <tromey@adacore.com>
11021
11022 * dwarf2read.c (parse_macro_definition): Use std::string.
11023 (parse_macro_definition): Likewise.
11024
6dfa2fc2
TT
110252020-01-08 Tom Tromey <tromey@adacore.com>
11026
11027 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11028 (ATTR_ALLOC_CHUNK): Remove.
11029
421d1616
TT
110302020-01-08 Tom Tromey <tromey@adacore.com>
11031
11032 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11033
43816ebc
TT
110342020-01-08 Tom Tromey <tromey@adacore.com>
11035
11036 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11037 (dwarf2_compute_name, open_dwo_file): Likewise.
11038 (process_enumeration_scope): Use std::vector.
11039 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11040 (partial_die_info::fixup, dwarf2_start_subfile)
11041 (guess_full_die_structure_name, dwarf2_name): Likewise.
11042 (determine_prefix): Update.
11043 (guess_full_die_structure_name): Make return type const.
11044 (partial_die_full_name): Return unique_xmalloc_ptr.
11045 (DW_FIELD_ALLOC_CHUNK): Remove.
11046
4212d509
TT
110472020-01-07 Tom Tromey <tromey@adacore.com>
11048
11049 PR build/24937:
11050 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11051
06a6207a
JT
110522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11053
11054 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11055
153d79c4
AB
110562020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * stack.c (print_frame_info): Move disassemble_next_line code
11059 inside source_print block.
11060
66182876
EZ
110612020-01-06 Eli Zaretskii <eliz@gnu.org>
11062
11063 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11064 gdb/signals.h, as we are now using native signal symbols.
11065
cbfa8581
SV
110662020-01-06 Shahab Vahedi <shahab@synopsys.com>
11067
11068 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11069 overflow by an early check of content vs threshold.
aac66a4c 11070 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11071 Likewise.
11072
3f602821
EZ
110732020-01-06 Eli Zaretskii <eliz@gnu.org>
11074
11075 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11076
a08c904d
JT
110772020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11078
11079 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11080 export table if no section contains it's RVA.
11081
89a65580
EZ
110822020-01-06 Eli Zaretskii <eliz@gnu.org>
11083
11084 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11085
8b7fcda2
HD
110862020-01-06 Hannes Domani <ssbssa@yahoo.de>
11087
11088 * source.c (print_source_lines_base): Set last_line_listed.
11089
a61b4f69
SV
110902020-01-06 Shahab Vahedi <shahab@synopsys.com>
11091
11092 * tui/tui-disasm.c: Remove trailing spaces.
11093
559e7e50
EZ
110942020-01-06 Eli Zaretskii <eliz@gnu.org>
11095 Pedro Alves <palves@redhat.com>
11096
11097 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11098 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11099 (windows_gdb_signal_to_target): New function, uses the above
11100 enumeration to convert GDB internal signal codes to equivalent
11101 Windows codes.
11102 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11103 * windows-nat.c: Include "gdb_wait.h".
11104 (get_windows_debug_event): Extract the fatal exception from the
11105 exit status and convert to the equivalent Posix signal number.
11106 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11107 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11108 * gdbsupport/gdb_wait.c: New file, implements
11109 windows_status_to_termsig.
11110 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11111 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11112
f2302a34
AB
111132020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11116 show_layout.
11117
6a5206eb
LM
111182020-01-05 Luis Machado <luis.machado@linaro.org>
11119
11120 * aarch64-linux-nat.c
11121 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11122 and bfd_mach_aarch64.
11123
6ec1d75e
PW
111242020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11125
11126 * ui-file.c (stdio_file::can_emit_style_escape)
11127 (tee_file::can_emit_style_escape): Ensure style is used also on
11128 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11129 to gdb_stdout.
11130 * main.c (set_gdb_data_directory): Use file style to output the
11131 warning that the given pathname is not a directory.
11132 * top.c (show_history_filename, gdb_safe_append_history)
11133 (show_gdb_datadir): Use file style.
11134
44f81a76
HD
111352020-01-03 Hannes Domani <ssbssa@yahoo.de>
11136
11137 * solib-target.c (struct lm_info_target):
11138 Change offsets to be a unique_xmalloc_ptr.
11139 (solib_target_relocate_section_addresses): Update.
11140
25057eb0
HD
111412020-01-03 Hannes Domani <ssbssa@yahoo.de>
11142
11143 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11144
6e2118f5
BE
111452020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11146
11147 * MAINTAINERS (Write After Approval): Add myself.
11148
8133c7dc
LM
111492020-01-02 Luis Machado <luis.machado@linaro.org>
11150
11151 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11152 Cell BE architecture.
11153 * target.h (struct target_ops) <thread_architecture>: Likewise.
11154
48189bec
HD
111552020-01-01 Hannes Domani <ssbssa@yahoo.de>
11156
11157 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11158
ead1063b
HD
111592020-01-01 Hannes Domani <ssbssa@yahoo.de>
11160
11161 * MAINTAINERS (Write After Approval): Add myself.
11162
e5d78223
JB
111632020-01-01 Joel Brobecker <brobecker@adacore.com>
11164
11165 * gdbarch.sh: Update copyright year range of generated files.
11166
b811d2c2
JB
111672020-01-01 Joel Brobecker <brobecker@adacore.com>
11168
11169 Update copyright year range in all GDB files.
11170
5f4def5c
JB
111712020-01-01 Joel Brobecker <brobecker@adacore.com>
11172
11173 * copyright.py: Convert to Python 3.
11174
51fd4002
JB
111752020-01-01 Joel Brobecker <brobecker@adacore.com>
11176
11177 * copyright.py: Adapt after move of gnulib directory from gdb
11178 directory to toplevel directory.
11179
5fb651f2
JB
111802020-01-01 Joel Brobecker <brobecker@adacore.com>
11181
11182 * copyright.py (main): Exit if run from the wrong directory.
11183
5dd8bf88
JB
111842020-01-01 Joel Brobecker <brobecker@adacore.com>
11185
11186 * top.c (print_gdb_version): Change copyright year to 2020.
11187
9f71dacb 111882020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11189
9f71dacb 11190 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11191
9f71dacb 11192For older changes see ChangeLog-2019.
c906108c
SS
11193\f
11194Local Variables:
11195mode: change-log
11196left-margin: 8
11197fill-column: 74
11198version-control: never
57da7796 11199coding: utf-8
c906108c 11200End: