]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/testsuite] Add gdb.base/valgrind-infcall-2.exp
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f80c8ec4
TT
12020-07-17 Tom Tromey <tromey@adacore.com>
2
3 * linux-nat.c (linux_nat_target::supports_non_stop)
4 (linux_nat_target::always_non_stop_p): Use "true".
5 (linux_nat_target::supports_disable_randomization): Use "true" and
6 "false".
7
d0ce17d8
CT
82020-07-16 Caroline Tice <cmtice@google.com>
9
10 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
11 (RNGLIST_HEADER_SIZE64): New constant definition.
12 (struct dwop_section_names): Add rnglists_dwo.
13 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
14 (struct loclist_header): Rename to 'loclists_rnglists_header'.
15 (struct dwo_sections): Add rnglists field.
16 (read_attribut_reprocess): Add tag parameter.
17 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
18 (cu_debug_rnglists_section): New function (decl & definition).
19 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
20 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
21 die whose range is being checked; get rnglist section from
22 cu_debug_rnglists_section, to get from either objfile or dwo file as
23 appropriate. Add cases for DW_RLE_base_addressx,
24 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
25 the base address to DW_RLE_offset_pairs (not to all ranges), moving
26 test inside if-condition and updating complaint message.
27 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
28 dwarf2_rnglists_process.
29 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
30 dwarf2_ranges_process.
31 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
32 need_ranges_base and update comment appropriately. Also pass die tag
33 to dwarf2_ranges_read.
34 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
35 need_ranges_base and update comment appropriately. Also pass die tag
36 to dwarf2_ranges_process.
37 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
38 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
39 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
40 need_ranges_base and update comment appropriately. Also pass die tag
41 to read_attribute_reprocess and dwarf2_ranges_read.
42 (read_loclist_header): Rename function to read_loclists_rnglists_header,
43 and update function comment appropriately.
44 (read_loclist_index): Call read_loclists_rnglists_header instead of
45 read_loclist_header.
46 (read_rnglist_index): New function.
47 (read_attribute_reprocess): Add tag parameter. Add code for
48 DW_FORM_rnglistx, passing tag to read_rnglist_index.
49 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
50
3dcc261c
AB
512020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
54 being resolved.
55
ccb9eba6
AB
562020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * arch-utils.c (show_architecture): Update formatting of messages.
59
cf88be68
SM
602020-07-12 Simon Marchi <simon.marchi@efficios.com>
61
62 * gdbtypes.h (struct type) <bounds>: Handle array and string
63 types.
64 * ada-lang.c (assign_aggregate): Use type::bounds on
65 array/string type.
66 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
67 * c-varobj.c (c_number_of_children): Likewise.
68 (c_describe_child): Likewise.
69 * eval.c (evaluate_subexp_for_sizeof): Likewise.
70 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
71 (f_type_print_base): Likewise.
72 * f-valprint.c (f77_array_offset_tbl): Likewise.
73 (f77_get_upperbound): Likewise.
74 (f77_print_array_1): Likewise.
75 * guile/scm-type.c (gdbscm_type_range): Likewise.
76 * m2-typeprint.c (m2_array): Likewise.
77 (m2_is_long_set_of_type): Likewise.
78 * m2-valprint.c (get_long_set_bounds): Likewise.
79 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
80 * python/py-type.c (typy_range): Likewise.
81 * rust-lang.c (rust_internal_print_type): Likewise.
82 * type-stack.c (type_stack::follow_types): Likewise.
83 * valarith.c (value_subscripted_rvalue): Likewise.
84 * valops.c (value_cast): Likewise.
85
509971ae
SM
862020-07-12 Simon Marchi <simon.marchi@efficios.com>
87
88 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
89 callers to use the equivalent accessor methods.
90
107406b7
SM
912020-07-12 Simon Marchi <simon.marchi@efficios.com>
92
93 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
94 (struct type) <bit_stride>: New method.
95 (TYPE_BIT_STRIDE): Remove.
96 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
97
bb789949
SM
982020-07-12 Simon Marchi <simon.marchi@efficios.com>
99
100 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
101 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
102 callers to use the equivalent accessor methods instead.
103
39498edb
SM
1042020-07-12 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
107 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
108 callers to use the equivalent accessor methods instead.
109
3b606f38
SM
1102020-07-12 Simon Marchi <simon.marchi@efficios.com>
111
112 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
113 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
114 to use dynamic_prop::kind.
115
064d9cb9
SM
1162020-07-12 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
119 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
120 to get the bound property's kind and check against
121 PROP_UNDEFINED.
122
5537ddd0
SM
1232020-07-12 Simon Marchi <simon.marchi@efficios.com>
124
125 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
126 all callers to use type::range_bounds followed by
127 dynamic_prop::{low,high}.
128
8c2e4e06
SM
1292020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
132 const_val, set_const_val, baton, set_locexpr, set_loclist,
133 set_addr_offset, variant_parts, set_variant_parts,
134 original_type, set_original_type>: New methods.
135 <kind>: Rename to...
136 <m_kind>: ... this. Update all users to use the new methods
137 instead.
138 <data>: Rename to...
139 <m_data>: ... this. Update all users to use the new methods
140 instead.
141
7c6f2712
SM
1422020-07-12 Simon Marchi <simon.marchi@efficios.com>
143
144 * gdbtypes.c (get_discrete_bounds): Return failure if
145 the range type's bounds are not both defined and constant
146 values.
147 (get_array_bounds): Update comment. Remove undefined bound check.
148
599088e3
SM
1492020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
150
151 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
152 the type::bounds method directly.
153
c4dfcb36
SM
1542020-07-12 Simon Marchi <simon.marchi@efficios.com>
155
156 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
157 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
158 are used to set the range type's bounds to use set_bounds.
159
0a278aa7
PW
1602020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
161
162 * exec.c (_initialize_exec): Update exec-file-mismatch help.
163
cce20f10
PA
1642020-07-10 Pedro Alves <pedro@palves.net>
165
166 * gdbthread.h (inferior_ref): Define.
167 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
168 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
169 * thread.c
170 (scoped_restore_current_thread::restore):
171 Adjust to gdb::ref_ptr.
172 (scoped_restore_current_thread::~scoped_restore_current_thread):
173 Remove manual decref handling.
174 (scoped_restore_current_thread::scoped_restore_current_thread):
175 Adjust to use
176 inferior_ref::new_reference/thread_info_ref::new_reference.
177 Incref the thread before calling get_frame_id instead of after.
178 Let TARGET_CLOSE_ERROR propagate.
179
6d7aa592
PA
1802020-07-10 Pedro Alves <pedro@palves.net>
181
182 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
183 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
184 NOT_AVAILABLE_ERROR.
185 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
186 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
187
b3e3a4c1
SM
1882020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
189 Pedro Alves <pedro@palves.net>
190
191 PR gdb/26199
192 * infrun.c (threads_are_resumed_pending_p): Delete.
193 (do_target_wait): Remove threads_are_executing and
194 threads_are_resumed_pending_p checks from the inferior_matches
195 lambda. Update comments.
196
d6cc5d98
PA
1972020-07-10 Pedro Alves <pedro@palves.net>
198
199 PR gdb/26199
200 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
201 executing threads.
202
7d3badc6
PA
2032020-07-10 Pedro Alves <pedro@palves.net>
204
205 PR gdb/26199
206 * infrun.c (handle_no_resumed): Handle multiple targets.
207
42bd97a6
PA
2082020-07-10 Pedro Alves <pedro@palves.net>
209
210 PR gdb/26199
211 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
212 target_is_async_p.
213
43667cc6
PA
2142020-07-10 Pedro Alves <pedro@palves.net>
215
216 PR gdb/26199
217 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
218 threads, not all threads.
219
96118d11
PA
2202020-07-10 Pedro Alves <pedro@palves.net>
221
222 PR gdb/26199
223 * remote.c (remote_target::open_1): Pass remote target pointer as
224 data to create_async_event_handler.
225 (remote_async_inferior_event_handler): Mark async event handler
226 before returning if the remote target still has either pending
227 events or unacknowledged notifications.
228
54904d81
JB
2292020-07-10 John Baldwin <jhb@FreeBSD.org>
230
231 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
232 declaration.
233 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
234 function.
235
f37e5866
JB
2362020-07-09 John Baldwin <jhb@FreeBSD.org>
237
238 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
239 inferior_ptid.
240
fc238d4a
JB
2412020-07-09 John Baldwin <jhb@FreeBSD.org>
242
243 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
244 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
245 AT_FREEBSD_PS_STRINGS.
246
6e2469ff
HD
2472020-07-08 Hannes Domani <ssbssa@yahoo.de>
248
249 * auto-load.c (auto_load_objfile_script_1): Convert drive part
250 of debugfile path on Windows.
251
d1076c41
JB
2522020-07-08 John Baldwin <jhb@FreeBSD.org>
253
254 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
255 argument to 'data'.
256
15f3b077
TT
2572020-07-08 Tom Tromey <tromey@adacore.com>
258
259 * ada-lang.c (ada_exception_message_1): Use read_memory.
260
9fc501fd
AB
2612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 PR python/22748
264 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
265 special handling for inline frames.
266 * findvar.c (value_of_register_lazy): Skip inline frames when
267 creating lazy register values.
268 * frame.c (frame_id_computed_p): Delete definition.
269 * frame.h (frame_id_computed_p): Delete declaration.
270
64cb3757
AB
2712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * NEWS: Mention additions to Python API.
274 * python/py-arch.c (archpy_register_groups): New function.
275 (arch_object_methods): Add 'register_groups' method.
276 * python/py-registers.c (reggroup_iterator_object): New struct.
277 (reggroup_object): New struct.
278 (gdbpy_new_reggroup): New function.
279 (gdbpy_reggroup_to_string): New function.
280 (gdbpy_reggroup_name): New function.
281 (gdbpy_reggroup_iter): New function.
282 (gdbpy_reggroup_iter_next): New function.
283 (gdbpy_new_reggroup_iterator): New function
284 (gdbpy_initialize_registers): Register new types.
285 (reggroup_iterator_object_type): Define new Python type.
286 (gdbpy_reggroup_getset): New static global.
287 (reggroup_object_type): Define new Python type.
288 * python/python-internal.h
289
0f767f94
AB
2902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
291
292 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
293 * python/py-arch.c (archpy_registers): New function.
294 (arch_object_methods): Add 'registers' method.
295 * python/py-registers.c: New file.
296 * python/python-internal.h
297 (gdbpy_new_register_descriptor_iterator): Declare.
298 (gdbpy_initialize_registers): Declare.
299 * python/python.c (do_start_initialization): Call
300 gdbpy_initialize_registers.
301 * NEWS: Mention additions to the Python API.
302
87dbc774
AB
3032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
304
305 * NEWS: Mention new Python API method.
306 * python/py-unwind.c (pending_framepy_architecture): New function.
307 (pending_frame_object_methods): Add architecture method.
308
3bc98c0c
AB
3092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * gdbarch.c: Regenerate.
312 * gdbarch.h: Regenerate.
313 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
314 (gdbarch_data): Use internal_error for the case where
315 deprecated_set_gdbarch_data was originally needed.
316 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
317 and use passed in obstack.
318 (libunwind_frame_set_descr): Should no longer get back NULL from
319 gdbarch_data.
320 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
321 type.
322 * user-regs.c (user_regs_init): Update parameters, and use passed
323 in obstack.
324 (user_reg_add): Should no longer get back NULL from gdbarch_data.
325 (_initialize_user_regs): Register as a pre-init gdbarch data type.
326
d8cc8af6
TV
3272020-07-06 Tom de Vries <tdevries@suse.de>
328
329 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
330 End-Of-Sequence in lte_is_less_than.
331 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
332 "gdb: Don't reorder line table entries too much when sorting".
333
947f7597
TV
3342020-07-06 Tom de Vries <tdevries@suse.de>
335
336 PR tui/26205
337 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
338
1e7c1b22
TV
3392020-07-05 Tom de Vries <tdevries@suse.de>
340
341 PR build/26187
342 * inferior.h (struct infcall_suspend_state_deleter): If available, use
343 std::uncaught_exceptions instead of deprecated
344 std::uncaught_exception.
345
a36158ec
SM
3462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * macroexp.h (macro_stringify): Return
349 gdb::unique_xmalloc_ptr<char>.
350 * macroexp.c (macro_stringify): Likewise.
351 * macrotab.c (fixup_definition): Update.
352
14d960c8
SM
3532020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
356 (lex_one_token): Update.
357 * macroexp.c (struct macro_buffer) <release>: Return
358 gdb::unique_xmalloc_ptr<char>.
359 (macro_stringify): Update.
360 (macro_expand): Update.
361 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
362 * macroexp.h (macro_expand_next): Likewise.
363
211d5b1c
SM
3642020-07-02 Simon Marchi <simon.marchi@efficios.com>
365
366 * macroexp.h (macro_lookup_ftype): Remove.
367 (macro_expand, macro_expand_once, macro_expand_next): Remove
368 lookup function parameters, add scope parameter.
369 * macroexp.c (scan, substitute_args, expand, maybe_expand,
370 macro_expand, macro_expand_once, macro_expand_next): Likewise.
371 * macroscope.h (standard_macro_lookup): Change parameter type
372 to macro_scope.
373 * macroscope.c (standard_macro_lookup): Likewise.
374 * c-exp.y (lex_one_token): Update.
375 * macrocmd.c (macro_expand_command): Likewise.
376 (macro_expand_once_command): Likewise.
377
b1a35af2
SM
3782020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * inf-loop.c (inferior_event_handler): Remove client_data param.
381 * inf-loop.h (inferior_event_handler): Likewise.
382 * infcmd.c (step_1): Adjust.
383 * infrun.c (proceed): Adjust.
384 (fetch_inferior_event): Remove client_data param.
385 (infrun_async_inferior_event_handler): Adjust.
386 * infrun.h (fetch_inferior_event): Remove `void *` param.
387 * linux-nat.c (handle_target_event): Adjust.
388 * record-btrace.c (record_btrace_handle_async_inferior_event):
389 Adjust.
390 * record-full.c (record_full_async_inferior_event_handler):
391 Adjust.
392 * remote.c (remote_async_inferior_event_handler): Adjust.
393
1cdf9e33
TT
3942020-07-01 Tom Tromey <tom@tromey.com>
395
396 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
397 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
398
32c1e210
TT
3992020-07-01 Tom Tromey <tom@tromey.com>
400
401 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
402 tui_gen_win_info.
403 (tui_win_info::make_window): Merge with
404 tui_gen_win_info::make_window.
405 (tui_win_info::make_visible): Move from tui_gen_win_info.
406 * tui/tui-win.c (tui_win_info::max_width): Move from
407 tui_gen_win_info.
408 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
409 type.
410 <window_factory>: Likewise.
411 * tui/tui-layout.c (tui_win_info::resize): Move from
412 tui_gen_win_info.
413 (make_standard_window): Change return type.
414 (get_locator_window, tui_get_window_by_name): Likewise.
415 (tui_layout_window::apply): Remove a cast.
416 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
417 (struct tui_win_info): Merge with tui_gen_win_info.
418 (struct tui_gen_win_info): Remove.
419
a30cb6da
TT
4202020-07-01 Tom Tromey <tom@tromey.com>
421
422 * tui/tui-stack.h (struct tui_locator_window): Derive from
423 tui_win_info.
424 <do_scroll_horizontal, do_scroll_vertical>: New methods.
425 <can_box>: New method.
426
1eb2161f
TT
4272020-07-01 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-stack.h (struct tui_locator_window): Remove body.
430
7134f2eb
TT
4312020-07-01 Tom Tromey <tom@tromey.com>
432
433 * tui/tui-regs.c (tui_data_window::display_registers_from)
434 (tui_data_window::display_registers_from)
435 (tui_data_window::first_data_item_displayed)
436 (tui_data_window::delete_data_content_windows): Update.
437 (tui_data_window::refresh_window, tui_data_window::no_refresh):
438 Remove.
439 (tui_data_window::check_register_values): Update.
440 (tui_data_item_window::rerender): Add parameters. Update.
441 (tui_data_item_window::refresh_window): Remove.
442 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
443 virtual.
444 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
445 tui_gen_win_info.
446 <refresh_window, max_height, min_height>: Remove.
447 <rerender>: Add parameters.
448 <x, y, visible>: New members.
449 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
450 <m_item_width>: New member.
451
22b7b041
TT
4522020-07-01 Tom Tromey <tom@tromey.com>
453
454 * tui/tui-regs.c (tui_data_window::show_register_group)
455 (tui_data_window::check_register_values): Update.
456 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
457 from item_no.
458
c9753adb
TT
4592020-07-01 Tom Tromey <tom@tromey.com>
460
461 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
462 useless "if".
463
9ab26b4a
TT
4642020-07-01 Tom Tromey <tom@tromey.com>
465
466 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
467 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
468
e555083f
TT
4692020-07-01 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
472 * tui/tui-winsource.h (enum tui_line_or_address_kind)
473 (struct tui_line_or_address): Move from tui-data.h.
474 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
475 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
476 (tui_cmd_window, tui_source_window_base, tui_source_window)
477 (tui_disasm_window): Don't declare.
478 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
479 to tui-winsource.h.
480 (SINGLE_KEY): Move to tui-stack.c.
481
7a02bab7
TT
4822020-07-01 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
485 std::string.
486 * tui/tui-regs.c (class tab_expansion_file): New.
487 (tab_expansion_file::write): New method.
488 (tui_register_format): Change return type. Use
489 tab_expansion_file.
490 (tui_get_register, tui_data_window::display_registers_from)
491 (tui_data_item_window::rerender): Update.
492 * tui/tui-io.h (tui_expand_tabs): Don't declare.
493 * tui/tui-io.c (tui_expand_tabs): Remove.
494
ea68593b
TT
4952020-07-01 Tom Tromey <tom@tromey.com>
496
497 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
498
a8caed5d
FS
4992020-07-01 Fangrui Song <maskray@google.com>
500
501 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
502
9cdf9820
AKS
5032020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
504
505 * dwarf2/read.c (set_die_type): Removed conditions to restrict
506 forms for DW_AT_associated and DW_AT_allocated attributes,
507 which is already checked in function attr_to_dynamic_prop.
508
a1520ad8
TT
5092020-06-30 Tom Tromey <tromey@adacore.com>
510
511 * dwarf2/read.c (quirk_rust_enum): Correctly call
512 alloc_rust_variant for default-less enum.
513
5ac58899
TT
5142020-06-30 Tom Tromey <tromey@adacore.com>
515
516 PR build/26183:
517 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
518 gdb::to_string.
519
19b187a9
SM
5202020-06-29 Simon Marchi <simon.marchi@efficios.com>
521
522 * gdbarch.sh (displaced_step_copy_insn): Update doc.
523 * gdbarch.h: Re-generate.
524
cd4c4c07
TT
5252020-06-28 Tom Tromey <tom@tromey.com>
526
527 * command.h (cmd_types): Remove.
528 (cmd_type): Don't declare.
529 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
530 typedef.
531 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
532 * cli/cli-decode.c (cmd_type): Remove.
533
05779d57
PA
5342020-06-27 Pedro Alves <palves@redhat.com>
535
536 * fork-child.c (prefork_hook): Adjust.
537 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
538 Delete.
539 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
540 * inferior.c (inferior::set_tty, inferior::tty): New methods.
541 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
542 Remove declarations.
543 (struct inferior) <set_tty, tty>: New methods.
544 (struct inferior) <terminal>: Rename to ...
545 (struct inferior) <m_terminal>: ... this and make private.
546 * main.c (captured_main_1): Adjust.
547 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
548 (mi_cmd_inferior_tty_show): Adjust.
549 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
550 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
551
1776e3e5
NA
5522020-06-26 Nick Alcock <nick.alcock@oracle.com>
553
554 * configure.ac: Add --enable-libctf: handle --disable-static
555 properly.
556 * acinclude.m4: sinclude ../config/enable.m4.
557 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
558 (LIBCTF): Substitute in.
559 (CTF_DEPS): New, likewise.
560 (CLIBS): libctf needs symbols from libbfd: move earlier.
561 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
562 flags.
563 * ctfread.c: Surround in ENABLE_LIBCTF.
564 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
565 * configure: Regenerate.
566 * config.in: Likewise.
567
58373b80
SM
5682020-06-25 Simon Marchi <simon.marchi@efficios.com>
569
570 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
571
277474ee
SM
5722020-06-25 Simon Marchi <simon.marchi@efficios.com>
573
574 * inferior.h (struct inferior) <terminal>: Change type to
575 gdb::unique_xmalloc_ptr<char>.
576 * inferior.c (inferior::~inferior): Don't free inf->terminal.
577 * infcmd.c (set_inferior_io_terminal): Don't free terminal
578 field, adjust to unique pointer.
579 (get_inferior_io_terminal): Adjust to unique pointer.
580
6d74da72
AB
5812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * riscv-tdep.c (riscv_print_registers_info): Loop over all
584 registers, not just the known core set of registers.
585
2e52d038
AB
5862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
589 fflags, frm, and fcsr registers.
590 (riscv_register_reggroup_p): Remove unknown CSRs from save and
591 restore groups.
592 (riscv_tdesc_unknown_reg): New function.
593 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
594 tdesc_use_registers.
595 * riscv-tdep.h (struct gdbarch_tdep): Add
596 unknown_csrs_first_regnum, unknown_csrs_count,
597 duplicate_fflags_regnum, duplicate_frm_regnum, and
598 duplicate_fcsr_regnum fields.
599
be64fd07
AB
6002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * target-descriptions.c (tdesc_use_registers): Add new parameter a
603 callback, use the callback (when not null) to help number unknown
604 registers.
605 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
606 (tdesc_use_registers): Add extra parameter to declaration.
607
3b9fce96
AB
6082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
611 in the file.
612 (class riscv_pending_register_alias): Likewise.
613 (riscv_register_feature::register_info): Change 'required_p' field
614 to 'required', and change its type. Add 'check' member function.
615 (riscv_register_feature::register_info::check): Define new member
616 function.
617 (riscv_xreg_feature): Change initialisation of 'required' field.
618 (riscv_freg_feature): Likewise.
619 (riscv_virtual_feature): Likewise.
620 (riscv_csr_feature): Likewise.
621 (riscv_check_tdesc_feature): Take extra parameter, the csr
622 tdesc_feature, rewrite the function to use the new
623 riscv_register_feature::register_info::check function.
624 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
625
865bad26
AB
6262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * features/Makefile: Remove all references to the deleted files
629 below.
630 * features/riscv/32bit-csr.c: Deleted.
631 * features/riscv/32bit-csr.xml: Deleted.
632 * features/riscv/64bit-csr.c: Deleted.
633 * features/riscv/64bit-csr.xml: Deleted.
634 * features/riscv/rebuild-csr-xml.sh: Deleted.
635
ed69cbc8
AB
6362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
637
638 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
639 whitespace error for declaration of names member variable.
640 (struct riscv_register_feature): Add new prefer_first_name member
641 variable, and fix whitespace error in declaration of registers.
642 (riscv_xreg_feature): Initialize prefer_first_name field.
643 (riscv_freg_feature): Likewise.
644 (riscv_virtual_feature): Likewise.
645 (riscv_csr_feature): Likewise.
646 (riscv_register_name): Expand on comments. Remove register name
647 modifications for CSR and virtual registers.
648
4445e8f5
AB
6492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
652 errors.
653
767a879e
AB
6542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
657 riscv-opc.h.
658 (class riscv_pending_register_alias): New class.
659 (riscv_check_tdesc_feature): Take vector of pending aliases and
660 populate it as appropriate.
661 (riscv_setup_register_aliases): Delete.
662 (riscv_gdbarch_init): Create vector of pending aliases and pass it
663 to riscv_check_tdesc_feature in all cases. Use the vector to
664 create the register aliases.
665
bb6e55f3
RO
6662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667
668 * sol2-tdep.c (sol2_static_transform_name): Remove.
669 (sol2_init_abi): Don't register it.
670 * gdbarch.sh (static_transform_name): Remove.
671 * gdbarch.c, gdbarch.h: Regenerate.
672
673 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
674 gdbarch_static_transform_name.
675 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
676 * stabsread.c (define_symbol) <'X'>: Remove.
677 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
678 handling.
679 <'V'>: Likewise.
680 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
681 <'S'>: Remove call to gdbarch_static_transform_name.
682
c6d36836
RO
6832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684
685 * procfs.c (procfs_pre_trace): New function.
686 (procfs_target::create_inferior): Pass it to fork_inferior.
687
a7e6196b
RO
6882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
689
690 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
691 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
692 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
693 sol2-tdep.o, sparc-sol2-tdep.o.
694 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
695 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
696 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
697 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
698
d412e696
RO
6992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
700
701 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
702 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
703 Call sol2_init_abi.
704 Remove calls to set_gdbarch_skip_solib_resolver,
705 set_gdbarch_core_pid_to_str.
706 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
707 (i386_sol2_static_transform_name): Remove.
708 (i386_sol2_init_abi): Call sol2_init_abi.
709 Remove calls to set_gdbarch_sofun_address_maybe_missing,
710 set_gdbarch_static_transform_name,
711 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
712 Use sol2_sigtramp_p.
713 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
714 (sol2_sigtramp_p): New function.
715 (sol2_static_transform_name): New function.
716 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
717 (sol2_init_abi): New function.
718 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
719 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
720 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
721 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
722 (sparc_sol2_static_transform_name): Remove.
723 (sparc32_sol2_init_abi): Call sol2_init_abi.
724 Remove calls to set_gdbarch_sofun_address_maybe_missing,
725 set_gdbarch_static_transform_name,
726 set_gdbarch_skip_solib_resolver,
727 set_gdbarch_core_pid_to_str.
728 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
729 (sparc_sol2_static_transform_name): Remove
730 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
731 call sol2_sigtramp_p.
732 (sparc64_sol2_init_abi): Call sol2_init_abi.
733 Remove calls to set_gdbarch_sofun_address_maybe_missing,
734 set_gdbarch_static_transform_name,
735 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
736
a8654e7d
PW
7372020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
738
739 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
740 * exec.c (validate_exec_file): If from_tty, set both
741 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
742 * symfile.c (symbol_file_add_with_addrs): if always_confirm
743 and from_tty, unconditionally ask a confirmation.
744
caa7fd04
AB
7452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * target-descriptions.c (tdesc_architecture_name): Protect against
748 NULL pointer dereference.
749 (maint_print_xml_tdesc_cmd): New function.
750 (_initialize_target_descriptions): Register new 'maint print
751 xml-tdesc' command and give it the filename completer.
752 * NEWS: Mention new 'maint print xml-tdesc' command.
753
fbf42f4e
AB
7542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * target-descriptions.c (class tdesc_compatible_info): New class.
757 (struct target_desc): Change type of compatible vector.
758 (tdesc_compatible_p): Update for change in type of
759 target_desc::compatible.
760 (tdesc_compatible_info_list): New function.
761 (tdesc_compatible_info_arch_name): New function.
762 (tdesc_add_compatible): Update for change in type of
763 target_desc::compatible.
764 (print_c_tdesc::visit_pre): Likewise.
765
20821f4e
AB
7662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
767
768 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
769 whitespace to underscore.
770 (maint_print_c_tdesc_cmd): Use fake filename for target
771 descriptions that came from the target.
772 (_initialize_target_descriptions): Add filename command completion
773 for 'maint print c-tdesc'.
774
1fb5ee62
SM
7752020-06-23 Simon Marchi <simon.marchi@efficios.com>
776
777 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
778 lines.
779
fc3ecb3e
SM
7802020-06-23 Simon Marchi <simon.marchi@efficios.com>
781
782 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
783 lines.
784 (dwarf2_find_location_expression): Likewise.
785 (call_site_parameter_matches): Likewise.
786 (dwarf2_compile_expr_to_ax): Likewise.
787 (disassemble_dwarf_expression): Likewise.
788 (loclist_describe_location): Likewise.
789
236ef034
PA
7902020-06-23 Pedro Alves <palves@redhat.com>
791
792 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
793 progspace-and-thread.h. Include scoped-mock-context.h instead.
794 (register_to_value_test): Use scoped_mock_context.
795 * regcache.c: Include "scoped-mock-context.h".
796 (cooked_read_test): Don't error out if a target is already pushed.
797 Use scoped_mock_context. Adjust.
798 * scoped-mock-context.h: New file.
799
39e7ecca
AB
8002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
803 initializer.
804 (ada_language::is_string_type_p): New member function.
805 * c-lang.c (c_language_data): Delete la_is_string_type_p
806 initializer.
807 (cplus_language_data): Likewise.
808 (asm_language_data): Likewise.
809 (minimal_language_data): Likewise.
810 * d-lang.c (d_language_data): Likewise.
811 * f-lang.c (f_is_string_type_p): Delete function, implementation
812 moved to f_language::is_string_type_p.
813 (f_language_data): Delete la_is_string_type_p initializer.
814 (f_language::is_string_type_p): New member function,
815 implementation from f_is_string_type_p.
816 * go-lang.c (go_is_string_type_p): Delete function, implementation
817 moved to go_language::is_string_type_p.
818 (go_language_data): Delete la_is_string_type_p initializer.
819 (go_language::is_string_type_p): New member function,
820 implementation from go_is_string_type_p.
821 * language.c (language_defn::is_string_type_p): Define new member
822 function.
823 (default_is_string_type_p): Make static, add comment copied from
824 header file.
825 (unknown_language_data): Delete la_is_string_type_p initializer.
826 (unknown_language::is_string_type_p): New member function.
827 (auto_language_data): Delete la_is_string_type_p initializer.
828 (auto_language::is_string_type_p): New member function.
829 * language.h (language_data): Delete la_is_string_type_p field.
830 (language_defn::is_string_type_p): Declare new function.
831 (default_is_string_type_p): Delete desclaration, move comment to
832 definition.
833 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
834 moved to m2_language::is_string_type_p.
835 (m2_language_data): Delete la_is_string_type_p initializer.
836 (m2_language::is_string_type_p): New member function,
837 implementation from m2_is_string_type_p.
838 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
839 initializer.
840 * opencl-lang.c (opencl_language_data): Likewise.
841 * p-lang.c (pascal_is_string_type_p): Delete function,
842 implementation moved to pascal_language::is_string_type_p.
843 (pascal_language_data): Delete la_is_string_type_p initializer.
844 (pascal_language::is_string_type_p): New member function,
845 implementation from pascal_is_string_type_p.
846 * rust-lang.c (rust_is_string_type_p): Delete function,
847 implementation moved to rust_language::is_string_type_p.
848 (rust_language_data): Delete la_is_string_type_p initializer.
849 (rust_language::is_string_type_p): New member function,
850 implementation from rust_is_string_type_p.
851 * valprint.c (val_print_scalar_or_string_type_p): Update call to
852 is_string_type_p.
853
4ffc13fb
AB
8542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * ada-lang.c (ada_language_data): Delete la_print_typedef
857 initializer.
858 (ada_language::print_typedef): New member function.
859 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
860 (cplus_language_data): Likewise.
861 (asm_language_data): Likewise.
862 (minimal_language_data): Likewise.
863 * d-lang.c (d_language_data): Likewise.
864 * f-lang.c (f_language_data): Likewise.
865 (f_language::print_typedef): New member function.
866 * go-lang.c (go_language_data): Delete la_print_typedef
867 initializer.
868 * language.c (language_defn::print_typedef): Define member
869 function.
870 (unknown_language_data): Delete la_print_typedef initializer.
871 (unknown_language::print_typedef): New member function.
872 (auto_language_data): Delete la_print_typedef initializer.
873 (auto_language::print_typedef): New member function.
874 * language.h (language_data): Delete la_print_typedef field.
875 (language_defn::print_typedef): Declare new member function.
876 (LA_PRINT_TYPEDEF): Update call to print_typedef.
877 (default_print_typedef): Delete declaration.
878 * m2-lang.c (m2_language_data): Delete la_print_typedef
879 initializer.
880 (m2_language::print_typedef): New member function.
881 * objc-lang.c (objc_language_data): Delete la_print_typedef
882 initializer.
883 * opencl-lang.c (opencl_language_data): Likewise.
884 * p-lang.c (pascal_language_data): Likewise.
885 (pascal_language::print_typedef): New member function.
886 * rust-lang.c (rust_print_typedef): Delete function,
887 implementation moved to rust_language::print_typedef.
888 (rust_language): Delete la_print_typedef initializer.
889 (rust_language::print_typedef): New member function,
890 implementation from rust_print_typedef.
891 * typeprint.c (default_print_typedef): Delete.
892
d711ee67
AB
8932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
896 (ada_language::printstr): New member function.
897 * c-lang.c (c_language_data): Delete la_printstr initializer.
898 (cplus_language_data): Likewise.
899 (asm_language_data): Likewise.
900 (minimal_language_data): Likewise.
901 * d-lang.c (d_language_data): Likewise.
902 * f-lang.c (f_printstr): Rename to f_language::printstr.
903 (f_language_data): Delete la_printstr initializer.
904 (f_language::printstr): New member function, implementation from
905 f_printstr.
906 * go-lang.c (go_language_data): Delete la_printstr initializer.
907 * language.c (language_defn::printstr): Define new member
908 function.
909 (unk_lang_printstr): Delete.
910 (unknown_language_data): Delete la_printstr initializer.
911 (unknown_language::printstr): New member function.
912 (auto_language_data): Delete la_printstr initializer.
913 (auto_language::printstr): New member function.
914 * language.h (language_data): Delete la_printstr field.
915 (language_defn::printstr): Declare new member function.
916 (LA_PRINT_STRING): Update call to printstr.
917 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
918 (m2_language_data): Delete la_printstr initializer.
919 (m2_language::printstr): New member function, implementation from
920 m2_printstr.
921 * objc-lang.c (objc_language_data): Delete la_printstr
922 initializer.
923 * opencl-lang.c (opencl_language_data): Likewise.
924 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
925 (pascal_language_data): Delete la_printstr initializer.
926 (pascal_language::printstr): New member function, implementation
927 from pascal_printstr.
928 * p-lang.h (pascal_printstr): Delete declaration.
929 * rust-lang.c (rust_printstr): Update header comment.
930 (rust_language_data): Delete la_printstr initializer.
931 (rust_language::printstr): New member function.
932
52b50f2c
AB
9332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
934
935 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
936 (ada_language::printchar): New member function.
937 * c-lang.c (c_language_data): Delete la_printchar initializer.
938 (cplus_language_data): Likewise.
939 (asm_language_data): Likewise.
940 (minimal_language_data): Likewise.
941 * d-lang.c (d_language_data): Likewise.
942 * f-lang.c (f_printchar): Rename to f_language::printchar.
943 (f_language_data): Delete la_printchar initializer.
944 (f_language::printchar): New member function, implementation from
945 f_printchar.
946 * go-lang.c (go_language_data): Delete la_printchar initializer.
947 * language.c (unk_lang_printchar): Delete.
948 (language_defn::printchar): Define new member function.
949 (unknown_language_data): Delete la_printchar initializer.
950 (unknown_language::printchar): New member function.
951 (auto_language_data): Delete la_printchar initializer.
952 (auto_language::printchar): New member function.
953 * language.h (language_data): Delete la_printchar field.
954 (language_defn::printchar): Declare new member function.
955 (LA_PRINT_CHAR): Update call to printchar.
956 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
957 (m2_language::printchar): New member function.
958 * objc-lang.c (objc_language_data): Delete la_printchar
959 initializer.
960 * opencl-lang.c (opencl_language_data): Likewise.
961 * p-lang.c (pascal_language_data): Delete la_printchar
962 initializer.
963 (pascal_language::printchar): New member function.
964 * rust-lang.c (rust_printchar): Rename to
965 rust_language::printchar.
966 (rust_language_data): Delete la_printchar initializer.
967 (rust_language::printchar): New member function, implementation
968 from rust_printchar.
969
ec8cec5b
AB
9702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
973 (ada_language_data): Delete la_emitchar initializer.
974 (ada_language::emitchar): New member function, implementation from
975 emit_char.
976 * c-lang.c (c_language_data): Delete la_emitchar initializer.
977 (cplus_language_data): Likewise.
978 (asm_language_data): Likewise.
979 (minimal_language_data): Likewise.
980 * d-lang.c (d_language_data): Likewise.
981 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
982 (f_language_data): Delete la_emitchar initializer.
983 (f_language::emitchar): New member function, implementation from
984 f_emit_char.
985 * go-lang.c (go_language_data): Delete la_emitchar initializer.
986 * language.c (unk_lang_emit_char): Delete.
987 (language_defn::emitchar): New member function definition.
988 (unknown_language_data): Delete la_emitchar initializer.
989 (unknown_language::emitchar): New member function.
990 (auto_language_data): Delete la_emitchar initializer.
991 (auto_language::emitchar): New member function.
992 * language.h (language_data): Delete la_emitchar field.
993 (language_defn::emitchar): New member field declaration.
994 (LA_EMIT_CHAR): Update call to emitchar.
995 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
996 (m2_language_data): Delete la_emitchar initializer.
997 (m2_language::emitchar): New member function, implementation from
998 m2_emit_char.
999 * objc-lang.c (objc_language_data): Delete la_emitchar
1000 initializer.
1001 * opencl-lang.c (opencl_language_data): Likewise.
1002 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1003 (pascal_language_data): Delete la_emitchar initializer.
1004 (pascal_language::emitchar): New member function, implementation
1005 from pascal_emit_char.
1006 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1007 (rust_language_data): Delete la_emitchar initializer.
1008 (rust_language::emitchar): New member function, implementation
1009 from rust_emitchar.
1010
1bf9c363
AB
10112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1014 (ada_language_data): Delete la_post_parser initializer.
1015 (ada_language::post_parser): New member function.
1016 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1017 (cplus_language_data): Likewise.
1018 (asm_language_data): Likewise.
1019 (minimal_language_data): Likewise.
1020 * d-lang.c (d_language_data): Likewise.
1021 * f-lang.c (f_language_data): Likewise.
1022 * go-lang.c (go_language_data): Likewise.
1023 * language.c (unknown_language_data): Likewise.
1024 (auto_language_data): Likewise.
1025 * language.h (language_data): Delete la_post_parser field.
1026 (language_defn::post_parser): New member function.
1027 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1028 * objc-lang.c (objc_language_data): Likewise.
1029 * opencl-lang.c (opencl_language_data): Likewise.
1030 * p-lang.c (pascal_language_data): Likewise.
1031 * parse.c (parse_exp_in_context): Update call to post_parser.
1032 (null_post_parser): Delete definition.
1033 * parser-defs.h (null_post_parser): Delete declaration.
1034 * rust-lang.c (rust_language_data): Delete la_post_parser
1035 initializer.
1036
87afa652
AB
10372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * ada-lang.c (parse): Rename to ada_language::parser.
1040 (ada_language_data): Delete la_parser initializer.
1041 (ada_language::parser): New member function, implementation from
1042 parse.
1043 * c-lang.c (c_language_data): Delete la_parser initializer.
1044 (cplus_language_data): Likewise.
1045 (asm_language_data): Likewise.
1046 (minimal_language_data): Likewise.
1047 * d-lang.c (d_language_data): Likewise.
1048 (d_language::parser): New member function.
1049 * f-lang.c (f_language_data): Delete la_parser initializer.
1050 (f_language::parser): New member function.
1051 * go-lang.c (go_language_data): Delete la_parser initializer.
1052 (go_language::parser): New member function.
1053 * language.c (unk_lang_parser): Delete.
1054 (language_defn::parser): Define new member function.
1055 (unknown_language_data): Delete la_parser initializer.
1056 (unknown_language::parser): New member function.
1057 (auto_language_data): Delete la_parser initializer.
1058 (auto_language::parser): New member function.
1059 * language.h (language_data): Delete la_parser field.
1060 (language_defn::parser): Declare new member function.
1061 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1062 (m2_language::parser): New member function.
1063 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1064 * opencl-lang.c (opencl_language_data): Likewise.
1065 * p-lang.c (pascal_language_data): Likewise.
1066 (pascal_language::parser): New member function.
1067 * parse.c (parse_exp_in_context): Update call to parser.
1068 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1069 (rust_language::parser): New member function.
1070
37825800
AB
10712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * top.c (print_gdb_configuration): Print --with-python-libdir
1074 configuration value.
1075
5b860c93
PW
10762020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1077
1078 * NEWS: Mention change to the alias command.
1079
cf00cd6f
PW
10802020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1081
1082 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1083 (alias_command_completer)
1084 (make_alias_options_def_group): New functions.
1085 (alias_opts, alias_option_defs): New struct and array.
1086 (alias_usage_error): Update usage.
1087 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1088 Use option framework.
1089 (_initialize_cli_cmds): Update alias command help.
1090 Update aliases command help.
1091 (show_user):
1092 Add NULL for new default_args lookup_cmd argument.
1093 (valid_command_p): Rename to validate_aliased_command.
1094 Add NULL for new default_args lookup_cmd argument. Verify that the
1095 aliased_command has no default args.
1096 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1097 (lookup_cmd_1, lookup_cmd): New argument default_args.
1098 (add_alias_cmd):
1099 Add NULL for new default_args lookup_cmd argument.
1100 (print_help_for_command): Show default args under the layout
1101 alias some_alias = some_aliased_cmd some_alias_default_arg.
1102 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1103 xfree default_args in destructor.
1104 * cli/cli-script.c (process_next_line, do_define_command):
1105 Add NULL for new default_args lookup_cmd argument.
1106 * command.h: Declare new default_args argument in lookup_cmd
1107 and lookup_cmd_1.
1108 * completer.c (complete_line_internal_1):
1109 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1110 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1111 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1112 Likewise.
1113 * infcmd.c (_initialize_infcmd): Likewise.
1114 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1115 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1116 * python/py-param.c (add_setshow_generic): Likewise.
1117 * remote.c (_initialize_remote): Likewise.
1118 * top.c (execute_command): Prepend default_args if command has some.
1119 (set_verbose):
1120 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1121 * tracepoint.c (validate_actionline, encode_actions_1):
1122 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1123
bd920864
TBA
11242020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1125
1126 * jit.c (jit_read_descriptor): Use bool as the return type.
1127 (jit_breakpoint_re_set_internal): Use bool as the return type.
1128 Invert the return value logic; return true if the jit breakpoint
1129 has been successfully initialized.
1130 (jit_inferior_init): Update the call to
1131 jit_breakpoint_re_set_internal.
1132
f8098322
PA
11332020-06-22 Pedro Alves <palves@redhat.com>
1134
1135 PR gdb/25939
1136 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1137 Use the current inferior instead. Don't return
1138 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1139 wait again.
1140 * sol-thread.c (sol_thread_target::wait): Don't reference
1141 inferior_ptid.
1142 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1143 (sol_update_thread_list_callback): Use the current inferior's pid
1144 instead of inferior_ptid.
1145
196535a6
RO
11462020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1147
1148 * procfs.c: Cleanup many comments.
1149
1150 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1151 (AFTER_WATCHFLAG): Replace by value.
1152
1153 (MAIN_PROC_NAME_FORMAT): Inline ...
1154 (create_procinfo): ... here.
1155
1156 (procfs_debug_inferior): Remove SYS_exec handling.
1157 (syscall_is_exec): Likewise.
1158 (procfs_set_exec_trap): Likewise.
1159
1160 (syscall_is_lwp_exit): Inline in callers.
1161 (syscall_is_exit): Likewise.
1162 (syscall_is_exec): Likewise.
1163 (syscall_is_lwp_create): Likewise.
1164
1165 (invalidate_cache): Remove #if 0 code.
1166
1167 (make_signal_thread_runnable): Remove.
1168 (procfs_target::resume): Remove #if 0 code.
1169
cf6f3e86
RO
11702020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1171
1172 PR gdb/25939
1173 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1174 call ...
1175 (procfs_target::create_inferior): ... here.
1176
48e9cc84
PW
11772020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1178
1179 * exec.c (validate_exec_file): Ensure the build-id is up to
1180 date by calling reopen_exec_file (that checks file timestamp
1181 to decide to re-read the file).
1182
3922b302
PA
11832020-06-18 Pedro Alves <palves@redhat.com>
1184
1185 PR gdb/25412
1186 * gdbthread.h (delete_thread, delete_thread_silent)
1187 (find_thread_ptid): Update comments.
1188 * thread.c (current_thread_): New global.
1189 (is_current_thread): Move higher, and reimplement.
1190 (inferior_thread): Reimplement.
1191 (set_thread_exited): Use bool. Add assertions.
1192 (add_thread_silent): Simplify thread-reuse handling by always
1193 calling delete_thread.
1194 (delete_thread): Remove intro comment.
1195 (find_thread_ptid): Skip exited threads.
1196 (switch_to_thread_no_regs): Write to current_thread_.
1197 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1198 INFERIOR_PTID. Clear current_thread_.
1199
6dbdab44
PA
12002020-06-18 Pedro Alves <palves@redhat.com>
1201
1202 * aix-thread.c (pd_update): Use switch_to_thread.
1203
2da4b788
PA
12042020-06-18 Pedro Alves <palves@redhat.com>
1205
1206 * ravenscar-thread.c (ravenscar_thread_target): Update.
1207 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1208 (ravenscar_thread_target::add_active_thread): ... this. Don't
1209 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1210 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1211
50838d1b
PA
12122020-06-18 Pedro Alves <palves@redhat.com>
1213
1214 * nat/windows-nat.c (current_windows_thread): Remove.
1215 * nat/windows-nat.h (current_windows_thread): Remove.
1216 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1217 Adjust.
1218 (display_selectors): Adjust to fetch the current
1219 windows_thread_info based on inferior_ptid.
1220 (fake_create_process): No longer write to current_windows_thread.
1221 (windows_nat_target::get_windows_debug_event):
1222 Don't set inferior_ptid or current_windows_thread.
1223 (windows_nat_target::wait): Adjust to not rely on
1224 current_windows_thread.
1225 (do_initial_windows_stuff): Now a method of windows_nat_target.
1226 Switch to the last_ptid thread.
1227 (windows_nat_target::attach): Adjust.
1228 (windows_nat_target::detach): Use switch_to_no_thread instead of
1229 writing to inferior_ptid directly.
1230 (windows_nat_target::create_inferior): Adjust.
1231
31ce04e9
PA
12322020-06-18 Pedro Alves <palves@redhat.com>
1233
1234 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1235
1ee1a363
PA
12362020-06-18 Pedro Alves <palves@redhat.com>
1237
1238 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1239 after creating it, instead of writing to inferior_ptid. Don't
1240 write to inferior_ptid.
1241
6d350754
PA
12422020-06-18 Pedro Alves <palves@redhat.com>
1243
1244 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1245
5d971d48
PA
12462020-06-18 Pedro Alves <palves@redhat.com>
1247
1248 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1249 it, instead of writing to inferior_ptid.
1250
86e57d1b
PA
12512020-06-18 Pedro Alves <palves@redhat.com>
1252
1253 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1254 to inferior_ptid.
1255
f2e1c129
PA
12562020-06-18 Pedro Alves <palves@redhat.com>
1257
1258 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1259 instead of writing to inferior_ptid directly.
1260
60db1b85
PA
12612020-06-18 Pedro Alves <palves@redhat.com>
1262
1263 * corelow.c (core_target::close): Use switch_to_no_thread instead
1264 of writing to inferior_ptid directly.
1265 (add_to_thread_list, core_target_open): Use switch_to_thread
1266 instead of writing to inferior_ptid directly.
1267
fe7d6a8d
PA
12682020-06-18 Pedro Alves <palves@redhat.com>
1269
1270 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1271 inferior_ptid.
1272 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1273 inferior_ptid.
1274 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1275 inferior_ptid directly.
1276 (darwin_nat_target::init_thread_list): Switch to thread, instead
1277 of writing to inferior_ptid.
1278 (darwin_nat_target::attach): Don't write to inferior_ptid.
1279 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1280
975f8708
PA
12812020-06-18 Pedro Alves <palves@redhat.com>
1282
1283 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1284 thread.
1285 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1286 Instead use switch_to_thread.
1287 (gnu_nat_target::detach): Use switch_to_no_thread
1288 instead of writing to inferior_ptid directly. Used passed-in
1289 inferior instead of looking up the inferior by pid.
1290
1a204730
PA
12912020-06-18 Pedro Alves <palves@redhat.com>
1292
1293 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1294 inferior_ptid.
1295
ebe84f23
PA
12962020-06-18 Pedro Alves <palves@redhat.com>
1297
1298 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1299 inferior_ptid.
1300 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1301 thread.
1302 (nto_procfs_target::detach): Avoid referencing
1303 inferior_ptid. Use switch_to_no_thread instead of writing to
1304 inferior_ptid directly.
1305 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1306 instead of writing to inferior_ptid directly.
1307 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1308 to thread.
1309
191f02e5
PA
13102020-06-18 Pedro Alves <palves@redhat.com>
1311
1312 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1313 after creating it, instead of writing to inferior_ptid.
1314 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1315 to inferior_ptid directly.
1316 (gdbsim_target::wait): Don't write to inferior_ptid.
1317
0ac55310
PA
13182020-06-18 Pedro Alves <palves@redhat.com>
1319
1320 * remote.c (remote_target::remote_notice_new_inferior): Use
1321 switch_to_thread instead of writing to inferior_ptid directly.
1322 (remote_target::add_current_inferior_and_thread): Use
1323 switch_to_no_thread instead of writing to inferior_ptid directly.
1324 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1325 and switch_to_thread instead of using set_current_inferior or
1326 writing to inferior_ptid directly.
1327
5233f39b
PA
13282020-06-18 Pedro Alves <palves@redhat.com>
1329
1330 * tracectf.c (ctf_target_open): Switch to added thread instead of
1331 writing to inferior_ptid directly.
1332 (ctf_target::close): Use switch_to_no_thread instead of writing to
1333 inferior_ptid directly.
1334
087e161b
PA
13352020-06-18 Pedro Alves <palves@redhat.com>
1336
1337 * tracefile-tfile.c (tfile_target_open): Don't write to
1338 inferior_ptid directly, instead switch to added thread.
1339 (tfile_target::close): Use switch_to_no_thread instead of writing
1340 to inferior_ptid directly.
1341
7fb43e53
PA
13422020-06-18 Pedro Alves <palves@redhat.com>
1343
1344 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1345 (procfs_target::detach): Use switch_to_no_thread
1346 instead of writing to inferior_ptid directly.
1347 (do_attach): Change return type to void. Switch to the added
1348 thread.
1349 (procfs_target::create_inferior): Switch to the added thread.
1350 (procfs_do_thread_registers): Don't write to inferior_ptid.
1351
18493a00
PA
13522020-06-18 Pedro Alves <palves@redhat.com>
1353
1354 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1355 of writing to inferior_ptid.
1356 (scoped_restore_exited_inferior): Delete.
1357 (handle_vfork_child_exec_or_exit): Simplify using
1358 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1359 instead of writing to inferior_ptid.
1360 (THREAD_STOPPED_BY): Delete.
1361 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1362 (thread_stopped_by_hw_breakpoint): Delete.
1363 (save_waitstatus): Use
1364 scoped_restore_current_thread+switch_to_thread, and call
1365 target_stopped_by_watchpoint instead of
1366 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1367 instead of thread_stopped_by_sw_breakpoint, and
1368 target_stopped_by_hw_breakpoint instead of
1369 thread_stopped_by_hw_breakpoint.
1370 (handle_inferior_event)
1371 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1372 inferior_ptid directly, nor
1373 set_current_inferior/set_current_program_space. Use
1374 switch_to_thread / switch_to_inferior_no_thread instead.
1375
a0776b13
PA
13762020-06-18 Pedro Alves <palves@redhat.com>
1377
1378 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1379 instead of writing to inferior_ptid.
1380
6155c136
PA
13812020-06-18 Pedro Alves <palves@redhat.com>
1382
1383 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1384 added thread.
1385 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1386 to the added thread.
1387 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1388 instead of writing to inferior_ptid.
1389
c5316fc6
PA
13902020-06-18 Pedro Alves <palves@redhat.com>
1391
1392 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1393 (register_to_value_test): Mock a program_space too. Heap-allocate
1394 the address space. Don't write to inferior_ptid. Use
1395 switch_to_thread instead.
1396
8df01799
PA
13972020-06-18 Pedro Alves <palves@redhat.com>
1398
1399 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1400 Delete.
1401 (find_signalled_thread()): New, factored out from
1402 linux_make_corefile_notes and adjusted to handle exited threads.
1403 (linux_make_corefile_notes): Adjust to use the new
1404 find_signalled_thread.
1405
41792d68
PA
14062020-06-18 Pedro Alves <palves@redhat.com>
1407
1408 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1409 of saving/restoring inferior_ptid.
1410
612f258a
TT
14112020-06-17 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1414 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1415 declare.
1416 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1417
efb763a5
SM
14182020-06-15 Simon Marchi <simon.marchi@efficios.com>
1419
1420 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1421 of partial symtabs.
1422
2951f6c0
SM
14232020-06-17 Simon Marchi <simon.marchi@efficios.com>
1424
1425 * regformats/reg-arm.dat: Remove.
1426 * regformats/reg-bfin.dat: Remove.
1427 * regformats/reg-cris.dat: Remove.
1428 * regformats/reg-crisv32.dat: Remove.
1429 * regformats/reg-m32r.dat: Remove.
1430 * regformats/reg-tilegx.dat: Remove.
1431 * regformats/reg-tilegx32.dat: Remove.
1432
7d458ea5
SM
14332020-06-17 Simon Marchi <simon.marchi@efficios.com>
1434
1435 * features/Makefile (WHICH): Remove arm files.
1436 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1437 * regformats/arm/arm-with-neon.dat: Remove.
1438 * regformats/arm/arm-with-vfpv2.dat: Remove.
1439 * regformats/arm/arm-with-vfpv3.dat: Remove.
1440
3af96c0d
SM
14412020-06-17 Simon Marchi <simon.marchi@efficios.com>
1442
1443 * features/Makefile (XMLTOC): Remove rx.xml.
1444
b25e22fd
PA
14452020-06-17 Pedro Alves <palves@redhat.com>
1446
1447 * gdbthread.h (thread_control_state) <trap_expected> Update
1448 comments.
1449
a78a19b1
AB
14502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1453 ada_language::lookup_symbol_nonlocal.
1454 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1455 (ada_language::lookup_symbol_nonlocal): New member function,
1456 implementation from ada_lookup_symbol_nonlocal.
1457 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1458 initializer.
1459 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1460 initializer.
1461 (cplus_language::lookup_symbol_nonlocal): New member function.
1462 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1463 (minimal_language_data) Likewise.
1464 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1465 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1466 initializer.
1467 (d_language::lookup_symbol_nonlocal): New member function.
1468 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1469 initializer.
1470 (f_language::lookup_symbol_nonlocal): New member function.
1471 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1472 initializer.
1473 * language.c (unknown_language_data): Likewise.
1474 (auto_language_data): Likewise.
1475 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1476 field.
1477 (language_defn::lookup_symbol_nonlocal): New member function.
1478 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1479 initializer.
1480 * objc-lang.c (objc_language_data): Likewise.
1481 * opencl-lang.c (opencl_language_data): Likewise.
1482 * p-lang.c (pascal_language_data): Likewise.
1483 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1484 rust_language::lookup_symbol_nonlocal.
1485 (rust_language_data): Delete la_lookup_symbol_nonlocal
1486 initializer.
1487 (rust_language::lookup_symbol_nonlocal): New member function,
1488 implementation from rust_lookup_symbol_nonlocal.
1489 * symtab.c (lookup_symbol_aux): Update call to
1490 lookup_symbol_nonlocal.
1491 (basic_lookup_symbol_nonlocal): Rename to...
1492 (language_defn::lookup_symbol_nonlocal): ...this, and update
1493 header comment. Remove language_defn parameter, and replace with
1494 uses of `this'.
1495 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1496
ebe2334e
AB
14972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1500 initializer.
1501 (ada_language::value_print_inner): New member function.
1502 * c-lang.c (c_language_data): Delete la_value_print_inner
1503 initializer.
1504 (cplus_language_data): Likewise.
1505 (asm_language_data): Likewise.
1506 (minimal_language_data): Likewise.
1507 * d-lang.c (d_language_data): Likewise.
1508 (d_language::value_print_inner): New member function.
1509 * f-lang.c (f_language_data): Delete la_value_print_inner
1510 initializer.
1511 (f_language::value_print_inner): New member function.
1512 * f-lang.h (f_value_print_innner): Rename to...
1513 (f_value_print_inner): ...this (note spelling of 'inner').
1514 * f-valprint.c (f_value_print_innner): Rename to...
1515 (f_value_print_inner): ...this (note spelling of 'inner').
1516 * go-lang.c (go_language_data): Delete la_value_print_inner
1517 initializer.
1518 (go_language::value_print_inner): New member function.
1519 * language.c (language_defn::value_print_inner): Define new member
1520 function.
1521 (unk_lang_value_print_inner): Delete.
1522 (unknown_language_data): Delete la_value_print_inner initializer.
1523 (unknown_language::value_print_inner): New member function.
1524 (auto_language_data): Delete la_value_print_inner initializer.
1525 (auto_language::value_print_inner): New member function.
1526 * language.h (language_data): Delete la_value_print_inner field.
1527 (language_defn::value_print_inner): Delcare new member function.
1528 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1529 initializer.
1530 (m2_language::value_print_inner): New member function.
1531 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1532 initializer.
1533 * opencl-lang.c (opencl_language_data): Likewise.
1534 * p-lang.c (pascal_language_data): Likewise.
1535 (pascal_language::value_print_inner): New member function.
1536 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1537 initializer.
1538 (rust_language::value_print_inner): New member function.
1539 * valprint.c (do_val_print): Update call to value_print_inner.
1540
a1d1fa3e
AB
15412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1542
1543 * ada-lang.c (ada_language_data): Delete la_value_print
1544 initializer.
1545 (ada_language::value_print): New member function.
1546 * c-lang.c (c_language_data): Delete la_value_print initializer.
1547 (cplus_language_data): Likewise.
1548 (asm_language_data): Likewise.
1549 (minimal_language_data): Likewise.
1550 * d-lang.c (d_language_data): Likewise.
1551 * f-lang.c (f_language_data): Likewise.
1552 * go-lang.c (go_language_data): Likewise.
1553 * language.c (unk_lang_value_print): Delete.
1554 (language_defn::value_print): Define new member function.
1555 (unknown_language_data): Delete la_value_print initializer.
1556 (unknown_language::value_print): New member function.
1557 (auto_language_data): Delete la_value_print initializer.
1558 (auto_language::value_print): New member function.
1559 * language.h (language_data): Delete la_value_print field.
1560 (language_defn::value_print): Declare new member function.
1561 (LA_VALUE_PRINT): Update call to value_print.
1562 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1563 * objc-lang.c (objc_language_data): Likewise.
1564 * opencl-lang.c (opencl_language_data): Likewise.
1565 * p-lang.c (pascal_language_data): Likewise.
1566 (pascal_language::value_print): New member function.
1567 * rust-lang.c (rust_language_data): Delete la_value_print
1568 initializer.
1569
f16a9f57
AB
15702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * ada-lang.c (ada_watch_location_expression): Rename to
1573 ada_language::watch_location_expression.
1574 (ada_language_data): Delete la_watch_location_expression
1575 initializer.
1576 (ada_language::watch_location_expression): New member function,
1577 implementation from ada_watch_location_expression.
1578 * breakpoint.c (watch_command_1): Update call to
1579 watch_location_expression.
1580 * c-lang.c (c_watch_location_expression): Rename to
1581 language_defn::watch_location_expression.
1582 (c_language_data): Delete la_watch_location_expression
1583 initializer.
1584 (cplus_language_data): Likewise.
1585 (asm_language_data): Likewise.
1586 (minimal_language_data): Likewise.
1587 * c-lang.h (c_watch_location_expression): Delete declaration.
1588 * d-lang.c (d_language_data): Delete la_watch_location_expression
1589 initializer.
1590 * f-lang.c (f_language_data): Likewise.
1591 * go-lang.c (go_language_data): Likewise.
1592 * language.c (language_defn::watch_location_expression): Member
1593 function implementation from c_watch_location_expression.
1594 (unknown_language_data): Delete la_watch_location_expression
1595 initializer.
1596 (auto_language_data): Likewise.
1597 * language.h (language_data): Delete la_watch_location_expression
1598 field.
1599 (language_defn::watch_location_expression): Declare new member
1600 function.
1601 * m2-lang.c (m2_language_data): Delete
1602 la_watch_location_expression initializer.
1603 * objc-lang.c (objc_language_data): Likewise.
1604 * opencl-lang.c (opencl_language_data): Likewise.
1605 * p-lang.c (pascal_language_data): Likewise.
1606 * rust-lang.c (rust_watch_location_expression): Rename to
1607 rust_language::watch_location_expression.
1608 (rust_language_data): Delete la_watch_location_expression
1609 initializer.
1610 (rust_language::watch_location_expression): New member function,
1611 implementation from rust_watch_location_expression.
1612
7e56227d
AB
16132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1614
1615 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1616 ada_language::collect_symbol_completion_matches.
1617 (ada_language_data): Delete la_collect_symbol_completion_matches
1618 initializer.
1619 (ada_language::collect_symbol_completion_matches): New member
1620 function, implementation from
1621 ada_collect_symbol_completion_matches.
1622 * c-lang.c (c_language_data): Delete
1623 la_collect_symbol_completion_matches initializer.
1624 (cplus_language_data): Likewise.
1625 (asm_language_data): Likewise.
1626 (minimal_language_data): Likewise.
1627 * d-lang.c (d_language_data): Likewise.
1628 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1629 f_language::collect_symbol_completion_matches.
1630 (f_language_data): Delete la_collect_symbol_completion_matches
1631 initializer.
1632 (f_language::collect_symbol_completion_matches) New member
1633 function, implementation from f_collect_symbol_completion_matches.
1634 * go-lang.c (go_language_data): Delete
1635 la_collect_symbol_completion_matches initializer.
1636 * language.c (unknown_language_data): Likewise.
1637 (auto_language_data): Likewise.
1638 * language.h (language_data): Delete
1639 la_collect_symbol_completion_matches field.
1640 (language_defn::collect_symbol_completion_matches): New member
1641 function.
1642 * m2-lang.c (m2_language_data): Delete
1643 la_collect_symbol_completion_matches initializer.
1644 * objc-lang.c (objc_language_data): Likewise.
1645 * opencl-lang.c (opencl_language_data): Likewise.
1646 * p-lang.c (pascal_language_data): Likewise.
1647 * rust-lang.c (rust_language_data): Likewise.
1648 * symtab.c (default_collect_symbol_completion_matches): Delete.
1649 (collect_symbol_completion_matches): Update call to
1650 collect_symbol_completion_matches.
1651 (collect_symbol_completion_matches_type): Likewise.
1652 * symtab.h (default_collect_symbol_completion_matches): Delete
1653 declaration.
1654
53fc67f8
AB
16552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1658 (ada_language_data): Delete la_word_break_characters initializer.
1659 (ada_language::word_break_characters): New member function.
1660 * c-lang.c (c_language_data): Delete la_word_break_characters
1661 initializer.
1662 (cplus_language_data): Likewise.
1663 (asm_language_data): Likewise.
1664 (minimal_language_data): Likewise.
1665 * completer.c: Update global comment.
1666 (advance_to_expression_complete_word_point): Update call to
1667 word_break_characters.
1668 (complete_files_symbols): Likewise.
1669 (complete_line_internal_1): Likewise.
1670 (default_completer_handle_brkchars): Likewise.
1671 (skip_quoted_chars): Likewise.
1672 * d-lang.c (d_language_data): Delete la_word_break_characters
1673 initializer.
1674 * f-lang.c (f_word_break_characters): Delete.
1675 (f_language_data): Delete la_word_break_characters initializer.
1676 (f_language::word_break_characters): New member function.
1677 * go-lang.c (go_language_data): Delete la_word_break_characters
1678 initializer.
1679 * language.c (unknown_language_data): Likewise.
1680 (auto_language_data): Likewise.
1681 * language.h (default_word_break_characters): Move declaration to
1682 earlier in the file.
1683 (language_data): Delete la_word_break_characters field.
1684 (language_defn::word_break_characters): New member function.
1685 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1686 initializer.
1687 * objc-lang.c (objc_language_data): Likewise.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 * p-lang.c (pascal_language_data): Likewise.
1690 * rust-lang.c (rust_language_data): Likewise.
1691
c9debfb9
AB
16922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1695 (ada_language_data): Delete la_get_symbol_name_matcher
1696 initializer.
1697 (language_defn::get_symbol_name_matcher_inner): New member
1698 function.
1699 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1700 initializer.
1701 (cplus_language_data): Likewise.
1702 (cplus_language::get_symbol_name_matcher_inner): New member
1703 function.
1704 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1705 (minimal_language_data): Likewise.
1706 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1707 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1708 initializer.
1709 * dictionary.c (iter_match_first_hashed): Update call to
1710 get_symbol_name_matcher.
1711 (iter_match_next_hashed): Likewise.
1712 (iter_match_next_linear): Likewise.
1713 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1714 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1715 initializer.
1716 (f_language::get_symbol_name_matcher_inner): New member function.
1717 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1718 initializer.
1719 * language.c (default_symbol_name_matcher): Update header comment,
1720 make static.
1721 (language_defn::get_symbol_name_matcher): New definition.
1722 (language_defn::get_symbol_name_matcher_inner): Likewise.
1723 (get_symbol_name_matcher): Delete.
1724 (unknown_language_data): Delete la_get_symbol_name_matcher
1725 initializer.
1726 (auto_language_data): Likewise.
1727 * language.h (language_data): Delete la_get_symbol_name_matcher
1728 field.
1729 (language_defn::get_symbol_name_matcher): New member function.
1730 (language_defn::get_symbol_name_matcher_inner): Likewise.
1731 (default_symbol_name_matcher): Delete declaration.
1732 * linespec.c (find_methods): Update call to
1733 get_symbol_name_matcher.
1734 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1735 initializer.
1736 * minsyms.c (lookup_minimal_symbol): Update call to
1737 get_symbol_name_matcher.
1738 (iterate_over_minimal_symbols): Likewise.
1739 * objc-lang.c (objc_language_data): Delete
1740 la_get_symbol_name_matcher initializer.
1741 * opencl-lang.c (opencl_language_data): Likewise.
1742 * p-lang.c (pascal_language_data): Likewise.
1743 * psymtab.c (psymbol_name_matches): Update call to
1744 get_symbol_name_matcher.
1745 * rust-lang.c (rust_language_data): Delete
1746 la_get_symbol_name_matcher initializer.
1747 * symtab.c (symbol_matches_search_name): Update call to
1748 get_symbol_name_matcher.
1749 (compare_symbol_name): Likewise.
1750
9a49ad8c
AB
17512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Delete la_compute_program
1754 initializer.
1755 * c-lang.c (c_language_data): Likewise.
1756 (c_language::compute_program): New member function.
1757 (cplus_language_data): Delete la_compute_program initializer.
1758 (cplus_language::compute_program): New member function.
1759 (asm_language_data): Delete la_compute_program initializer.
1760 (minimal_language_data): Likewise.
1761 * c-lang.h (c_compute_program): Update comment.
1762 (cplus_compute_program): Likewise.
1763 * compile/compile-c-support.c (c_compute_program): Likewise.
1764 (cplus_compute_program): Likewise.
1765 * compile/compile.c (compile_to_object): Update call to
1766 la_compute_program.
1767 * d-lang.c (d_language_data): Delete la_compute_program
1768 initializer.
1769 * f-lang.c (f_language_data): Likewise.
1770 * go-lang.c (go_language_data): Likewise.
1771 * language.c (unknown_language_data): Likewise.
1772 (auto_language_data): Likewise.
1773 * language.h (language_data): Delete la_compute_program field.
1774 (language_defn::compute_program): New member function.
1775 * m2-lang.c (m2_language_data): Delete la_compute_program
1776 initializer.
1777 * objc-lang.c (objc_language_data): Likewise.
1778 * opencl-lang.c (opencl_language_data): Likewise.
1779 * p-lang.c (pascal_language_data): Likewise.
1780 * rust-lang.c (rust_language_data): Likewise.
1781
eff93b4d
AB
17822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * ada-lang.c (ada_language_data) Delete
1785 la_class_name_from_physname initializer.
1786 * c-lang.c (c_language_data): Likewise.
1787 (cplus_language_data): Likewise.
1788 (cplus_language::class_name_from_physname): New member function.
1789 (asm_language_data): Delete la_class_name_from_physname
1790 initializer.
1791 (minimal_language_data): Likewise.
1792 * d-lang.c (d_language_data): Likewise.
1793 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1794 method on language_defn class.
1795 (guess_full_die_structure_name): Likewise.
1796 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1797 initializer.
1798 * go-lang.c (go_language_data): Likewise.
1799 * language.c (language_class_name_from_physname): Delete.
1800 (unk_lang_class_name): Delete.
1801 (unknown_language_data): Delete la_class_name_from_physname
1802 initializer.
1803 (auto_language_data): Likewise.
1804 * language.h (language_data): Delete la_class_name_from_physname
1805 field.
1806 (language_defn::class_name_from_physname): New function.
1807 (language_class_name_from_physname): Delete declaration.
1808 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1809 initializer.
1810 * objc-lang.c (objc_language_data): Likewise.
1811 * opencl-lang.c (opencl_language_data): Likewise.
1812 * p-lang.c (pascal_language_data): Likewise.
1813 * rust-lang.c (rust_language_data): Likewise.
1814
de543742
TT
18152020-06-16 Tom Tromey <tom@tromey.com>
1816
1817 * tui/tui-data.h (STATUS_NAME): New macro.
1818 * tui/tui-layout.c (tui_remove_some_windows)
1819 (initialize_known_windows, tui_register_window)
1820 (tui_layout_split::remove_windows, initialize_layouts)
1821 (tui_new_layout_command): Don't use hard-coded window names.
1822
a350efd4
TT
18232020-06-16 Tom Tromey <tom@tromey.com>
1824
1825 PR tui/25348:
1826 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1827 tui_initialize_readline. Only run once. Call rl_initialize.
1828 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1829 tui_initialize_readline.
1830 * tui/tui-io.c (tui_setup_io): Call
1831 tui_ensure_readline_initialized.
1832 * tui/tui-interp.c (tui_interp::init): Update.
1833
39ec0490
TT
18342020-06-16 Tom Tromey <tom@tromey.com>
1835
1836 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1837 Also preserve the status window.
1838
d2d1ea20
TT
18392020-06-16 Tom Tromey <tom@tromey.com>
1840
1841 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1842 where m_window==nullptr.
1843
66920317
TT
18442020-06-15 Tom Tromey <tromey@adacore.com>
1845
1846 * windows-nat.c (windows_nat::handle_output_debug_string):
1847 Update.
1848 (windows_nat::handle_ms_vc_exception): Update.
1849 * target.h (target_read_string): Change API.
1850 * target.c (target_read_string): Change API.
1851 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1852 Update.
1853 * solib-frv.c (frv_current_sos): Update.
1854 * solib-dsbt.c (dsbt_current_sos): Update.
1855 * solib-darwin.c (darwin_current_sos): Update.
1856 * linux-thread-db.c (inferior_has_bug): Update.
1857 * expprint.c (print_subexp_standard): Update.
1858 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1859 (ada_exception_message_1): Update.
1860
a5d871dd
TT
18612020-06-15 Tom Tromey <tromey@adacore.com>
1862
1863 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1864
670e35fa
TT
18652020-06-15 Tom Tromey <tromey@adacore.com>
1866
1867 * valprint.c (read_string): Update comment.
1868 * target.c (MIN): Remove.
1869 (target_read_string): Rewrite.
1870
f5272a3b
TT
18712020-06-15 Tom Tromey <tromey@adacore.com>
1872
1873 * corefile.c (read_memory_string): Remove.
1874 * ada-valprint.c (ada_value_print_ptr): Update.
1875 * ada-lang.h (ada_tag_name): Change return type.
1876 * ada-lang.c (type_from_tag): Update.
1877 (ada_tag_name_from_tsd): Change return type. Use
1878 target_read_string.
1879 (ada_tag_name): Likewise.
1880 * gdbcore.h (read_memory_string): Don't declare.
1881
2c074f49
HD
18822020-06-14 Hannes Domani <ssbssa@yahoo.de>
1883
1884 * symtab.c (rbreak_command): Ignore Windows drive colon.
1885
6a17d503
SM
18862020-06-12 Simon Marchi <simon.marchi@efficios.com>
1887
1888 * NEWS: Mention removed GDBserver host support.
1889
453c733f
NC
18902020-06-12 Nelson Chu <nelson.chu@sifive.com>
1891
1892 * features/riscv/rebuild-csr-xml.sh: Updated.
1893
2b4e6a3f
TT
18942020-06-11 Tom Tromey <tom@tromey.com>
1895
1896 PR gdb/18318:
1897 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1898
4412332f
JG
18992020-06-09 Jonny Grant <jg@jguk.org>
19002020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * main.c (captured_main_1): Don't print new line after help.
1903 (print_gdb_help): add mailing list and IRC channel information
1904 to --help. Add new lines between items in the footer. Remove
1905 quotes around bug url.
1906
2f33032a
KS
19072020-06-11 Keith Seitz <keiths@redhat.com>
1908
1909 PR gdb/21356
1910 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1911 Resolve typedefs for type length calculations.
1912
7ab96794
TV
19132020-06-10 Tom de Vries <tdevries@suse.de>
1914
1915 PR ada/24713
1916 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1917 (write_psymbols): Enable .gdb_index for ada.
1918 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1919 ada.
1920
e5f3ece2
TV
19212020-06-10 Tom de Vries <tdevries@suse.de>
1922
1923 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1924 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1925 namei" instead of "const char *name" argument.
1926 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1927 dw2_symtab_iter_init.
1928
940da03e
SM
19292020-06-08 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1932 to use type::field and field::type instead.
1933
b6cdac4b
SM
19342020-06-08 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1937 to use field::type instead.
1938
5d14b6e5
SM
19392020-06-08 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * gdbtypes.h (struct field) <type, set_type>: New methods.
1942 Rename `type` field to...
1943 <m_type>: ... this. Change references throughout to use type or
1944 set_type methods.
1945 (FIELD_TYPE): Use field::type. Change call sites that modify
1946 the field's type to use field::set_type instead.
1947
3d967001
SM
19482020-06-08 Simon Marchi <simon.marchi@efficios.com>
1949
1950 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1951 to use type::index_type instead.
1952
262abc0d
SM
19532020-06-08 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1956 methods.
1957 (TYPE_INDEX_TYPE): Use type::index_type.
1958 * gdbtypes.c (create_array_type_with_stride): Likewise.
1959
82836c92
TT
19602020-06-07 Tom Tromey <tom@tromey.com>
1961
1962 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1963 parameter.
1964 (generic_value_print): Update.
1965
940dace9
AB
19662020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 Revert commit 982a38f60b0.
1969 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1970
982a38f6
AB
19712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1974 avoid use after free.
1975
82f06518
TV
19762020-06-05 Tom de Vries <tdevries@suse.de>
1977
1978 * NEWS: Fix typos.
1979
f8c41851
SM
19802020-06-04 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1983 the per_bfd object.
1984 (dwarf2_read_debug_names): Likewise.
1985 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1986 object when re-using a per_bfd object with an index.
1987
f9b5d5ea
TV
19882020-06-03 Tom de Vries <tdevries@suse.de>
1989
1990 PR symtab/26046
1991 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1992 children for C++.
1993 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1994 DW_TAG_subprogram.
1995
f6eee2d0
AB
19962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * ada-lang.c (ada_language_data): Delete skip_trampoline
1999 initializer.
2000 * c-lang.c (c_language_data): Likewise.
2001 (cplus_language_data): Likewise.
2002 (cplus_language::skip_trampoline): New member function.
2003 (asm_language_data): Delete skip_trampoline initializer.
2004 (minimal_language_data): Likewise.
2005 * d-lang.c (d_language_data): Likewise.
2006 * f-lang.c (f_language_data): Likewise.
2007 * go-lang.c (go_language_data): Likewise.
2008 * language.c (unk_lang_trampoline): Delete function.
2009 (skip_language_trampoline): Update.
2010 (unknown_language_data): Delete skip_trampoline initializer.
2011 (auto_language_data): Likewise.
2012 * language.h (language_data): Delete skip_trampoline field.
2013 (language_defn::skip_trampoline): New function.
2014 * m2-lang.c (m2_language_data): Delete skip_trampoline
2015 initializer.
2016 * objc-lang.c (objc_skip_trampoline): Delete function, move
2017 implementation to objc_language::skip_trampoline.
2018 (objc_language_data): Delete skip_trampoline initializer.
2019 (objc_language::skip_trampoline): New member function with
2020 implementation from objc_skip_trampoline.
2021 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2022 initializer.
2023 * p-lang.c (pascal_language_data): Likewise.
2024 * rust-lang.c (rust_language_data): Likewise.
2025
0a50df5d
AB
20262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2029 (ada_language::demangle): New member function.
2030 * c-lang.c (c_language_data): Delete la_demangle initializer.
2031 (cplus_language_data): Delete la_demangle initializer.
2032 (cplus_language::demangle): New member function.
2033 (asm_language_data): Delete la_demangle initializer.
2034 (minimal_language_data): Delete la_demangle initializer.
2035 * d-lang.c (d_language_data): Delete la_demangle initializer.
2036 (d_language::demangle): New member function.
2037 * f-lang.c (f_language_data): Delete la_demangle initializer.
2038 (f_language::demangle): New member function.
2039 * go-lang.c (go_language_data): Delete la_demangle initializer.
2040 (go_language::demangle): New member function.
2041 * language.c (language_demangle): Update.
2042 (unk_lang_demangle): Delete.
2043 (unknown_language_data): Delete la_demangle initializer.
2044 (unknown_language::demangle): New member function.
2045 (auto_language_data): Delete la_demangle initializer.
2046 (auto_language::demangle): New member function.
2047 * language.h (language_data): Delete la_demangle field.
2048 (language_defn::demangle): New function.
2049 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2050 * objc-lang.c (objc_language_data): Delete la_demangle
2051 initializer.
2052 (objc_language::demangle): New member function.
2053 * opencl-lang.c (opencl_language_data): Delete la_demangle
2054 initializer.
2055 * p-lang.c (pascal_language_data): Likewise.
2056 * rust-lang.c (rust_language_data): Likewise.
2057 (rust_language::demangle): New member function.
2058
fbfb0a46
AB
20592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * ada-lang.c (ada_language_data): Delete la_print_type
2062 initializer.
2063 (ada_language::print_type): New member function.
2064 * c-lang.c (c_language_data): Delete la_print_type initializer.
2065 (c_language::print_type): New member function.
2066 (cplus_language_data): Delete la_print_type initializer.
2067 (cplus_language::print_type): New member function.
2068 (asm_language_data): Delete la_print_type initializer.
2069 (asm_language::print_type): New member function.
2070 (minimal_language_data): Delete la_print_type initializer.
2071 (minimal_language::print_type): New member function.
2072 * d-lang.c (d_language_data): Delete la_print_type initializer.
2073 (d_language::print_type): New member function.
2074 * f-lang.c (f_language_data): Delete la_print_type initializer.
2075 (f_language::print_type): New member function.
2076 * go-lang.c (go_language_data): Delete la_print_type initializer.
2077 (go_language::print_type): New member function.
2078 * language.c (unk_lang_print_type): Delete.
2079 (unknown_language_data): Delete la_print_type initializer.
2080 (unknown_language::print_type): New member function.
2081 (auto_language_data): Delete la_print_type initializer.
2082 (auto_language::print_type): New member function.
2083 * language.h (language_data): Delete la_print_type field.
2084 (language_defn::print_type): New function.
2085 (LA_PRINT_TYPE): Update.
2086 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2087 (m2_language::print_type): New member function.
2088 * objc-lang.c (objc_language_data): Delete la_print_type
2089 initializer.
2090 (objc_language::print_type): New member function.
2091 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2092 to opencl_language::print_type.
2093 (opencl_language_data): Delete la_print_type initializer.
2094 (opencl_language::print_type): New member function, implementation
2095 from opencl_print_type.
2096 * p-lang.c (pascal_language_data): Delete la_print_type
2097 initializer.
2098 (pascal_language::print_type): New member function.
2099 * rust-lang.c (rust_print_type): Delete, implementation moved to
2100 rust_language::print_type.
2101 (rust_language_data): Delete la_print_type initializer.
2102 (rust_language::print_type): New member function, implementation
2103 from rust_print_type.
2104
6f827019
AB
21052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2108 implementation moves to...
2109 (ada_language::sniff_from_mangled_name): ...here. Update return
2110 type.
2111 (ada_language_data): Delete la_sniff_from_mangled_name
2112 initializer.
2113 * c-lang.c (c_language_data): Likewise.
2114 (cplus_language_data): Likewise.
2115 (cplus_language::sniff_from_mangled_name): New member function,
2116 implementation taken from gdb_sniff_from_mangled_name.
2117 (asm_language_data): Delete la_sniff_from_mangled_name
2118 initializer.
2119 (minimal_language_data): Likewise.
2120 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2121 implementation moves to cplus_language::sniff_from_mangled_name.
2122 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2123 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2124 moves to...
2125 (d_language::sniff_from_mangled_name): ...here.
2126 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2127 * f-lang.c (f_language_data): Likewise.
2128 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2129 moves to...
2130 (go_language::sniff_from_mangled_name): ...here.
2131 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2132 * language.c (language_sniff_from_mangled_name): Delete.
2133 (unknown_language_data): Delete la_sniff_from_mangled_name
2134 initializer.
2135 (auto_language_data): Likewise.
2136 * language.h (language_data): Delete la_sniff_from_mangled_name
2137 field.
2138 (language_defn::sniff_from_mangled_name): New function.
2139 (language_sniff_from_mangled_name): Delete declaration.
2140 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2141 field.
2142 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2143 implementation moves to...
2144 (objc_language::sniff_from_mangled_name): ...here.
2145 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2146 * opencl-lang.c (opencl_language_data): Likewise.
2147 * p-lang.c (pascal_language_data): Likewise.
2148 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2149 implementation moves to...
2150 (rust_language::sniff_from_mangled_name): ...here.
2151 (rust_language_data): Delete la_sniff_from_mangled_name
2152 initializer.
2153 * symtab.c (symbol_find_demangled_name): Call
2154 sniff_from_mangled_name member function.
2155
fb8006fd
AB
21562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2159 initializer.
2160 * c-lang.c (c_language_data): Likewise.
2161 (cplus_language_data): Likewise.
2162 (cplus_language::search_name_hash): New member function.
2163 (asm_language_data): Delete la_search_name_hash initializer.
2164 (minimal_language_data): Likewise.
2165 * d-lang.c (d_language_data): Likewise.
2166 * dictionary.c (default_search_name_hash): Rename to...
2167 (language_defn::search_name_hash): ...this.
2168 * f-lang.c (f_language_data): Likewise.
2169 (f_language::search_name_hash): New member function.
2170 * go-lang.c (go_language_data): Delete la_search_name_hash
2171 initializer.
2172 * language.c (unknown_language_data): Likewise.
2173 (auto_language_data): Likewise.
2174 * language.h (struct language_data): Delete la_search_name_hash
2175 field.
2176 (language_defn::search_name_hash): Declare new member function.
2177 (default_search_name_hash): Delete declaration.
2178 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2179 initializer.
2180 * objc-lang.c (objc_language_data): Likewise.
2181 * opencl-lang.c (opencl_language_data): Likewise.
2182 * p-lang.c (pascal_language_data): Likewise.
2183 * rust-lang.c (rust_language_data): Likewise.
2184 * symtab.c (search_name_hash): Update call.
2185
8e25bafe
AB
21862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2189 initializer.
2190 * c-lang.c (class compile_instance): Declare.
2191 (c_language_data): Delete la_get_compile_instance initializer.
2192 (c_language::get_compile_instance): New member function.
2193 (cplus_language_data): Delete la_get_compile_instance initializer.
2194 (cplus_language::get_compile_instance): New member function.
2195 (asm_language_data): Delete la_get_compile_instance initializer.
2196 (minimal_language_data): Likewise.
2197 * c-lang.h (c_get_compile_context): Update comment.
2198 (cplus_get_compile_context): Update comment.
2199 * compile/compile.c (compile_to_object): Update calls, don't rely
2200 on function pointer being NULL.
2201 * d-lang.c (d_language_data): Delete la_get_compile_instance
2202 initializer.
2203 * f-lang.c (f_language_data): Likewise.
2204 * go-lang.c (go_language_data): Likewise.
2205 * language.c (unknown_language_data): Likewise.
2206 (auto_language_data): Likewise.
2207 * language.h (language_data): Delete la_get_compile_instance field.
2208 (language_defn::get_compile_instance): New member function.
2209 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2210 initializer.
2211 * objc-lang.c (objc_language_data): Likewise.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 * rust-lang.c (rust_language_data): Likewise.
2215
4009ee92
AB
22162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * ada-lang.c (ada_add_all_symbols): Update comment.
2219 (ada_iterate_over_symbols): Delete, move implementation to...
2220 (ada_language::iterate_over_symbols): ...here, a new member
2221 function, rewrite to use range based for loop.
2222 (ada_language_data): Delete la_iterate_over_symbols initializer.
2223 * c-lang.c (c_language_data): Likewise.
2224 (cplus_language_data): Likewise.
2225 (asm_language_data): Likewise.
2226 (minimal_language_data): Likewise.
2227 * d-lang.c (d_language_data): Likewise.
2228 * f-lang.c (f_language_data): Likewise.
2229 * go-lang.c (go_language_data): Likewise.
2230 * language.c (unknown_language_data): Likewise.
2231 (auto_language_data): Likewise.
2232 * language.h (language_data): Delete la_iterate_over_symbols field.
2233 (language_defn::iterate_over_symbols): New member function.
2234 (LA_ITERATE_OVER_SYMBOLS): Update.
2235 * linespec.c (iterate_over_all_matching_symtabs): Update.
2236 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2237 initializer.
2238 * objc-lang.c (objc_language_data): Likewise.
2239 * opencl-lang.c (opencl_language_data): Likewise.
2240 * p-lang.c (pascal_language_data): Likewise.
2241 * rust-lang.c (rust_language_data): Likewise.
2242
54f4ca46
AB
22432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * ada-lang.c (ada_language_data): Delete
2246 la_lookup_transparent_type initializer.
2247 * c-lang.c (c_language_data): Likewise.
2248 (cplus_language_data): Likewise.
2249 (cplus_language::lookup_transparent_type): New member function.
2250 (asm_language_data): Delete la_lookup_transparent_type
2251 initializer.
2252 (minimal_language_data): Likewise.
2253 * d-lang.c (d_language_data): Likewise.
2254 * f-lang.c (f_language_data): Likewise.
2255 * go-lang.c (go_language_data): Likewise.
2256 * language.c (unknown_language_data): Likewise.
2257 (auto_language_data): Likewise.
2258 * language.h (struct language_data): Delete
2259 la_lookup_transparent_type field.
2260 (language_defn::lookup_transparent_type): New member function.
2261 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2262 initializer.
2263 * objc-lang.c (objc_language_data): Likewise.
2264 * opencl-lang.c (opencl_language_data): Likewise.
2265 * p-lang.c (pascal_language_data): Likewise.
2266 * rust-lang.c (rust_language_data): Likewise.
2267 * symtab.c (symbol_matches_domain): Update call.
2268
1fb314aa
AB
22692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * ada-lang.c (ada_language_arch_info): Delete function, move
2272 implementation to...
2273 (ada_language::language_arch_info): ...here, a new member
2274 function.
2275 (ada_language_data): Delete la_language_arch_info.
2276 * c-lang.c (c_language_data): Likewise.
2277 (c_language::language_arch_info): New member function.
2278 (cplus_language_arch_info): Delete function, move
2279 implementation to...
2280 (cplus_language::language_arch_info): ...here, a new member
2281 function.
2282 (cplus_language_data): Delete la_language_arch_info.
2283 (asm_language_data): Likewise.
2284 (asm_language::language_arch_info): New member function.
2285 (minimal_language_data): Delete la_language_arch_info.
2286 (minimal_language::language_arch_info): New member function.
2287 * d-lang.c (d_language_arch_info): Delete function, move
2288 implementation to...
2289 (d_language::language_arch_info): ...here, a new member
2290 function.
2291 (d_language_data): Delete la_language_arch_info.
2292 * f-lang.c (f_language_arch_info): Delete function, move
2293 implementation to...
2294 (f_language::language_arch_info): ...here, a new member
2295 function.
2296 (f_language_data): Delete la_language_arch_info.
2297 * go-lang.c (go_language_arch_info): Delete function, move
2298 implementation to...
2299 (go_language::language_arch_info): ...here, a new member
2300 function.
2301 (go_language_data): Delete la_language_arch_info.
2302 * language.c (unknown_language_data): Likewise.
2303 (unknown_language::language_arch_info): New member function.
2304 (auto_language_data): Delete la_language_arch_info.
2305 (auto_language::language_arch_info): New member function.
2306 (language_gdbarch_post_init): Update call to
2307 la_language_arch_info.
2308 * language.h (language_data): Delete la_language_arch_info
2309 function pointer.
2310 (language_defn::language_arch_info): New function.
2311 * m2-lang.c (m2_language_arch_info): Delete function, move
2312 implementation to...
2313 (m2_language::language_arch_info): ...here, a new member
2314 function.
2315 (m2_language_data): Delete la_language_arch_info.
2316 * objc-lang.c (objc_language_arch_info): Delete function, move
2317 implementation to...
2318 (objc_language::language_arch_info): ...here, a new member
2319 function.
2320 (objc_language_data): Delete la_language_arch_info.
2321 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2322 implementation to...
2323 (opencl_language::language_arch_info): ...here, a new member
2324 function.
2325 (opencl_language_data): Delete la_language_arch_info.
2326 * p-lang.c (pascal_language_arch_info): Delete function, move
2327 implementation to...
2328 (pascal_language::language_arch_info): ...here, a new member
2329 function.
2330 (pascal_language_data): Delete la_language_arch_info.
2331 * rust-lang.c (rust_language_arch_info): Delete function, move
2332 implementation to...
2333 (rust_language::language_arch_info): ...here, a new member
2334 function.
2335 (rust_language_data): Delete la_language_arch_info.
2336
48448202
AB
23372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2340 initializer.
2341 * c-lang.c (c_language_data): Likewise.
2342 (cplus_language_data): Likewise.
2343 (cplus_language::pass_by_reference_info): New method.
2344 (asm_language_data): Delete la_pass_by_reference initializer.
2345 (minimal_language_data): Likewise.
2346 * cp-abi.c (cp_pass_by_reference): Remove use of
2347 default_pass_by_reference.
2348 * d-lang.c (d_language_data): Likewise.
2349 * f-lang.c (f_language_data): Likewise.
2350 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2351 default_pass_by_reference.
2352 * go-lang.c (go_language_data): Likewise.
2353 * language.c (language_pass_by_reference): Update.
2354 (default_pass_by_reference): Delete.
2355 (unknown_language_data): Delete la_pass_by_reference
2356 initializer.
2357 (auto_language_data): Likewise.
2358 * language.h (struct language_data): Delete la_pass_by_reference
2359 field.
2360 (language_defn::pass_by_reference_info): New member function.
2361 (default_pass_by_reference): Delete declaration.
2362 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2363 initializer.
2364 * objc-lang.c (objc_language_data): Likewise.
2365 * opencl-lang.c (opencl_language_data): Likewise.
2366 * p-lang.c (pascal_language_data): Likewise.
2367 * rust-lang.c (rust_language_data): Likewise.
2368
15e5fd35
AB
23692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * ada-lang.c (ada_read_var_value): Delete function, move
2372 implementation to...
2373 (ada_language::read_var_value): ...here.
2374 (ada_language_data): Delete la_read_var_value initializer.
2375 * c-lang.c (c_language_data): Likewise.
2376 (cplus_language_data): Likewise.
2377 (minimal_language_data): Likewise.
2378 * d-lang.c (d_language_data): Likewise.
2379 * f-lang.c (f_language_data): Likewise.
2380 * findvar.c (default_read_var_value): Rename to...
2381 (language_defn::read_var_value): ...this.
2382 * findvar.c (read_var_value): Update header comment, and change to
2383 call member function instead of function pointer.
2384 * go-lang.c (go_language_data): Likewise.
2385 * language.c (unknown_language_data): Delete la_read_var_value
2386 initializer.
2387 (auto_language_data): Likewise.
2388 * language.h (struct language_data): Delete la_read_var_value
2389 field.
2390 (language_defn::read_var_value): New member function.
2391 (default_read_var_value): Delete declaration.
2392 * m2-lang.c (m2_language_data): Delete la_read_var_value
2393 initializer.
2394 * objc-lang.c (objc_language_data): Likewise.
2395 * opencl-lang.c (opencl_language_data): Likewise.
2396 * p-lang.c (pascal_language_data): Likewise.
2397 * rust-lang.c (rust_language_data): Likewise.
2398 * value.h (default_read_var_value): Delete declaration.
2399
5bd40f2a
AB
24002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * ada-lang.c (ada_print_array_index): Delete function, move
2403 implementation to...
2404 (ada_language::print_array_index): ...here.
2405 (ada_language_data): Delete la_print_array_index initializer.
2406 * c-lang.c (c_language_data): Likewise.
2407 (cplus_language_data): Likewise.
2408 (minimal_language_data): Likewise.
2409 * d-lang.c (d_language_data): Likewise.
2410 * f-lang.c (f_language_data): Likewise.
2411 * go-lang.c (go_language_data): Likewise.
2412 * language.c (default_print_array_index): Delete function, move
2413 implementation to...
2414 (language_defn::print_array_index): ...here.
2415 (unknown_language_data): Delete la_print_array_index initializer.
2416 (auto_language_data): Likewise.
2417 * language.h (struct language_data): Delete la_print_array_index
2418 field.
2419 (language_defn::print_array_index): New member function.
2420 (LA_PRINT_ARRAY_INDEX): Update.
2421 (default_print_array_index): Delete declaration.
2422 * m2-lang.c (m2_language_data): Delete la_print_array_index
2423 initializer.
2424 * objc-lang.c (objc_language_data): Likewise.
2425 * opencl-lang.c (opencl_language_data): Likewise.
2426 * p-lang.c (pascal_language_data): Likewise.
2427 * rust-lang.c (rust_language_data): Likewise.
2428
0874fd07
AB
24292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * gdb/ada-lang.c (ada_language_defn): Convert to...
2432 (ada_language_data): ...this.
2433 (class ada_language): New class.
2434 (ada_language_defn): New static global.
2435 * gdb/c-lang.c (c_language_defn): Convert to...
2436 (c_language_data): ...this.
2437 (class c_language): New class.
2438 (c_language_defn): New static global.
2439 (cplus_language_defn): Convert to...
2440 (cplus_language_data): ...this.
2441 (class cplus_language): New class.
2442 (cplus_language_defn): New static global.
2443 (asm_language_defn): Convert to...
2444 (asm_language_data): ...this.
2445 (class asm_language): New class.
2446 (asm_language_defn): New static global.
2447 (minimal_language_defn): Convert to...
2448 (minimal_language_data): ...this.
2449 (class minimal_language): New class.
2450 (minimal_language_defn): New static global.
2451 * gdb/d-lang.c (d_language_defn): Convert to...
2452 (d_language_data): ...this.
2453 (class d_language): New class.
2454 (d_language_defn): New static global.
2455 * gdb/f-lang.c (f_language_defn): Convert to...
2456 (f_language_data): ...this.
2457 (class f_language): New class.
2458 (f_language_defn): New static global.
2459 * gdb/go-lang.c (go_language_defn): Convert to...
2460 (go_language_data): ...this.
2461 (class go_language): New class.
2462 (go_language_defn): New static global.
2463 * gdb/language.c (unknown_language_defn): Remove declaration.
2464 (current_language): Initialize to nullptr, real initialization is
2465 moved to _initialize_language.
2466 (languages): Delete global.
2467 (language_defn::languages): Define.
2468 (set_language_command): Use language_defn::languages.
2469 (set_language): Likewise.
2470 (range_error): Likewise.
2471 (language_enum): Likewise.
2472 (language_def): Likewise.
2473 (add_set_language_command): Use language_def::languages for the
2474 language list, and language_def to lookup language pointers.
2475 (skip_language_trampoline): Use language_defn::languages.
2476 (unknown_language_defn): Convert to...
2477 (unknown_language_data): ...this.
2478 (class unknown_language): New class.
2479 (unknown_language_defn): New static global.
2480 (auto_language_defn): Convert to...
2481 (auto_language_data): ...this.
2482 (class auto_language): New class.
2483 (auto_language_defn): New static global.
2484 (language_gdbarch_post_init): Use language_defn::languages.
2485 (_initialize_language): Initialize current_language.
2486 * gdb/language.h (struct language_defn): Rename to...
2487 (struct language_data): ...this.
2488 (struct language_defn): New.
2489 (auto_language_defn): Delete.
2490 (unknown_language_defn): Delete.
2491 (minimal_language_defn): Delete.
2492 (ada_language_defn): Delete.
2493 (asm_language_defn): Delete.
2494 (c_language_defn): Delete.
2495 (cplus_language_defn): Delete.
2496 (d_language_defn): Delete.
2497 (f_language_defn): Delete.
2498 (go_language_defn): Delete.
2499 (m2_language_defn): Delete.
2500 (objc_language_defn): Delete.
2501 (opencl_language_defn): Delete.
2502 (pascal_language_defn): Delete.
2503 (rust_language_defn): Delete.
2504 * gdb/m2-lang.c (m2_language_defn): Convert to...
2505 (m2_language_data): ...this.
2506 (class m2_language): New class.
2507 (m2_language_defn): New static global.
2508 * gdb/objc-lang.c (objc_language_defn): Convert to...
2509 (objc_language_data): ...this.
2510 (class objc_language): New class.
2511 (objc_language_defn): New static global.
2512 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2513 (opencl_language_data): ...this.
2514 (class opencl_language): New class.
2515 (opencl_language_defn): New static global.
2516 * gdb/p-lang.c (pascal_language_defn): Convert to...
2517 (pascal_language_data): ...this.
2518 (class pascal_language): New class.
2519 (pascal_language_defn): New static global.
2520 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2521 language pointer, update comment format.
2522 * gdb/rust-lang.c (rust_language_defn): Convert to...
2523 (rust_language_data): ...this.
2524 (class rust_language): New class.
2525 (rust_language_defn): New static global.
2526
1313c56e
AB
25272020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2530 member variable.
2531 <m_stmt_at_address>: New member variable.
2532 (lnp_state_machine::record_line): Don't record some lines, update
2533 tracking of is_stmt at the same address.
2534 (lnp_state_machine::lnp_state_machine): Initialise new member
2535 variables.
2536
b7ed9f3d
ST
25372020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2538
2539 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2540 "-include gnu-nat-mig.h".
2541 * gnu-nat-mig.h: New file.
2542 * gnu-nat.c: Include "gnu-nat-mig.h".
2543 (exc_server, msg_reply_server, notify_server,
2544 process_reply_server): Remove declarations.
2545
14a8ad62
ST
25462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2547
2548 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2549 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2550 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2551 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2552 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2553 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2554 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2555 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2556 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2557 to gnu_nat_target class.
2558 * gnu-nat.c: Likewise.
2559 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2560 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2561 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2562 object.
2563 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2564 instead of `gnu_target'.
2565
0af5e106
ST
25662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2567
2568 * i386-gnu-tdep.c: Include "gdbcore.h"
2569 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2570 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2571 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2572 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2573 i386_gnu_sigcontext_addr): New functions
2574 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2575 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2576 tdep.
2577
078f2fc9
ST
25782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2579
2580 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2581 before fork_inferior call. Avoid calling it if target_is_pushed returns
2582 true.
2583
53dff92c
ST
25842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2585
2586 * gnu-nat.h (gnu_target): New variable declaration.
2587 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2588 gnu_target.
2589 * gnu-nat.c (gnu_target): New variable.
2590 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2591 add_thread_silent, and add_thread calls.
2592 (gnu_nat_target::create_inferior): Pass gnu_target to
2593 add_thread_silent, thread_change_ptid call.
2594 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2595 call.
2596
5a8b8627
ST
25972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2598
2599 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2600 (gnu_nat_target::find_memory_regions): Remove unused
2601 `old_address' variable.
2602
366f550a
ST
26032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2604
2605 * gnu-nat.c: Include "gdbarch.h".
2606
f14871bf
ST
26072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2608
2609 * reply_mig_hack.awk (Error return): Cast function through
2610 void *, to bypass compiler function call check.
2611
c6887cfb
ST
26122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2613
2614 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2615 $(srcdir)/reply_mig_hack.awk.
2616
6930bffe
ST
26172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2618
2619 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2620
112c22ed
JG
26212020-05-30 Jonny Grant <jg@jguk.org>
2622
2623 * configure.ac (ACX_BUGURL): change bug URL to https.
2624
f68f85b5
PA
26252020-05-30 Pedro Alves <palves@redhat.com>
2626
2627 * cp-support.c (replace_typedefs_template): New.
2628 (replace_typedefs_qualified_name): Handle
2629 DEMANGLE_COMPONENT_TEMPLATE.
2630
976ca316
SM
26312020-05-29 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2634 dwarf2/index-cache.h, dwarf2/index-write.c,
2635 dwarf2/index-write.h, dwarf2/line-header.c,
2636 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2637 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2638 variables and fields from `dwarf2_per_objfile` to just
2639 `per_objfile` throughout.
2640
989ade05
SM
26412020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2644 <push_dwarf_reg_entry_value>: Add comment.
2645
c47bae85
KB
26462020-05-28 Kevin Buettner <kevinb@redhat.com>
2647 Keith Seitz <keiths@redhat.com>
2648
2649 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2650 instead of PyEval_ReleaseLock.
2651 (class gdbpy_gil): Move to earlier in file.
2652 (finalize_python): Set gdb_python_initialized.
2653 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2654 when not initialized.
2655
44486dcf
SM
26562020-05-28 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2659 <push_dwarf_reg_entry_value>: Remove assert. Override
2660 per_objfile with caller_per_objfile.
2661
f030440d
TV
26622020-05-28 Tom de Vries <tdevries@suse.de>
2663
2664 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2665 PR gold/15646 workaround to symbol kind "type".
2666
f0fbb768
TT
26672020-05-27 Tom Tromey <tromey@adacore.com>
2668
2669 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2670
af0b2a3e
TT
26712020-05-27 Tom Tromey <tromey@adacore.com>
2672
2673 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2674 Use htab_find_with_hash.
2675 <add_abbrev>: Remove "abbrev_number" parameter.
2676 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2677 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2678 (hash_abbrev): Add comment.
2679 (abbrev_table::lookup_abbrev): Move to header file.
2680 (abbrev_table::read): Update.
2681
7d00ffec
TT
26822020-05-27 Tom Tromey <tromey@adacore.com>
2683
2684 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2685 method.
2686 <canonical_name>: New member.
2687 <raw_name>: Rename from "name".
2688 (partial_die_info): Initialize canonical_name.
2689 (scan_partial_symbols): Check raw_name.
2690 (partial_die_parent_scope, partial_die_full_name)
2691 (add_partial_symbol, add_partial_subprogram)
2692 (add_partial_enumeration, load_partial_dies): Use "name" method.
2693 (partial_die_info::name): New method.
2694 (partial_die_info::read, guess_partial_die_structure_name)
2695 (partial_die_info::fixup): Update.
2696
697bba18
TT
26972020-05-27 Tom Tromey <tromey@adacore.com>
2698
2699 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2700 <get_ref_die_offset>: Inline.
2701 <get_ref_die_offset_complaint>: New method.
2702 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2703 (attribute::get_ref_die_offset_complaint): Rename from
2704 get_ref_die_offset. Just issue complaint.
2705
c17ace43
HD
27062020-05-27 Hannes Domani <ssbssa@yahoo.de>
2707
2708 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2709
96445f0b
HD
27102020-05-27 Hannes Domani <ssbssa@yahoo.de>
2711
2712 * exec.c (exec_file_attach): Use errno value of first openp failure.
2713
ac637ec3
HD
27142020-05-27 Hannes Domani <ssbssa@yahoo.de>
2715
2716 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2717 Don't close thread handle.
2718
17ee85fc
TT
27192020-05-27 Tom Tromey <tom@tromey.com>
2720 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2723 shared_ptr.
2724 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2725 member.
2726 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2727 dwarf2_per_bfd_objfile_data_key>: New globals.
2728 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2729 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2730 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2731 shared.
2732 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2733 short-circuit when sharing.
2734 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2735 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2736
39b16f87
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2740 to...
2741 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2742 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2743
fcf23d5b
SM
27442020-05-27 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2747 build_name_components, find_name_components_bounds>:
2748 Add per_objfile parameter.
2749 (struct mapped_index) <symbol_name_at>: Likewise.
2750 (struct mapped_debug_names): Remove constructor.
2751 <dwarf2_per_objfile>: Remove field.
2752 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2753 (mapped_index_base::find_name_components_bounds,
2754 mapped_index_base::build_name_components,
2755 dw2_expand_symtabs_matching_symbol): Likewise.
2756 (class mock_mapped_index) <symbol_name_at>: Likewise.
2757 (check_match): Likewise.
2758 (check_find_bounds_finds): Likewise.
2759 (test_mapped_index_find_name_component_bounds): Update.
2760 (CHECK_MATCH): Update.
2761 (dw2_expand_symtabs_matching): Update.
2762 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2763 per_objfile parameter.
2764 <find_vec_in_debug_names>: Likewise.
2765 <m_per_objfile>: New field.
2766 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2767 parameter.
2768 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2769 (dw2_debug_names_iterator::next): Update.
2770 (dw2_debug_names_lookup_symbol): Update.
2771 (dw2_debug_names_expand_symtabs_for_function): Update.
2772 (dw2_debug_names_map_matching_symbols): Update.
2773 (dw2_debug_names_expand_symtabs_matching): Update.
2774 (dwarf2_read_debug_names): Update.
2775
7188ed02
SM
27762020-05-27 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2779 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2780 move to dwarf2_per_objfile.
2781 <read_in_chain>: Remove.
2782 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2783 remove_all_cus, age_comp_units>: New methods.
2784 <m_dwarf2_cus>: New member.
2785 (struct dwarf2_per_cu_data) <cu>: Remove.
2786 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2787 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2788 moved to methods of dwarf2_per_objfile.
2789 (dwarf2_clear_marks): Remove.
2790 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2791 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2792 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2793 (dwarf2_per_objfile::remove_all_cus): New.
2794 (class free_cached_comp_units) <~free_cached_comp_units>:
2795 Update.
2796 (load_cu): Update.
2797 (dw2_do_instantiate_symtab): Adjust.
2798 (fill_in_sig_entry_from_dwo_entry): Adjust.
2799 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2800 (cutu_reader::cutu_reader): Likewise.
2801 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2802 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2803 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2804 and dwarf2_per_objfile::age_comp_units.
2805 (load_partial_comp_unit): Update.
2806 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2807 (process_queue): Likewise.
2808 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2809 backlink.
2810 (dwarf2_read_addr_index): Likewise.
2811 (follow_die_offset): Likewise.
2812 (dwarf2_fetch_die_loc_sect_off): Likewise.
2813 (dwarf2_fetch_constant_bytes): Likewise.
2814 (dwarf2_fetch_die_type_sect_off): Likewise.
2815 (follow_die_sig_1): Likewise.
2816 (load_full_type_unit): Likewise.
2817 (read_signatured_type): Likewise.
2818 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2819 (dwarf2_cu::~dwarf2_cu): Remove.
2820 (dwarf2_per_objfile::get_cu): New.
2821 (dwarf2_per_objfile::set_cu): New.
2822 (age_cached_comp_units): Rename to...
2823 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2824 to std::unordered_map.
2825 (free_one_cached_comp_unit): Rename to...
2826 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2827 to std::unordered_map.
2828 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2829 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2830 a dwarf2_per_objfile in data.
2831 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2832 (dwarf2_clear_marks): Remove.
2833
2e671100
SM
28342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2835
2836 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2837 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2838 (init_tu_and_read_dwo_dies): Likewise.
2839 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2840 (cutu_reader::cutu_reader): Likewise.
2841 (load_partial_comp_unit): Likewise.
2842 (process_psymtab_comp_unit): Update.
2843 (build_type_psymtabs_1): Update.
2844 (process_skeletonless_type_unit): Update.
2845 (load_full_comp_unit): Update.
2846 (find_partial_die): Update.
2847 (dwarf2_read_addr_index): Update.
2848 (read_signatured_type): Update.
2849
2e6a9f79
SM
28502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2851
2852 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2853 m_header_read_in>: New fields.
2854 <get_header>: New method.
2855 * dwarf2/read.c (per_cu_header_read_in): Remove.
2856 (dwarf2_per_cu_data::get_header): New.
2857 (dwarf2_per_cu_data::addr_size): Update.
2858 (dwarf2_per_cu_data::offset_size): Update.
2859 (dwarf2_per_cu_data::ref_addr_size): Update.
2860
1b555f17
SM
28612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2864 (dw2_do_instantiate_symtab): Update.
2865 (queue_and_load_all_dwo_tus): Change parameter from
2866 dwarf2_per_cu_data to dwarf2_cu.
2867 (dwarf2_fetch_die_loc_sect_off): Update.
2868 (dwarf2_fetch_constant_bytes): Update.
2869 (dwarf2_fetch_die_type_sect_off): Update.
2870
8fc0b21d
SM
28712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * dwarf2/read.c (process_full_comp_unit,
2874 process_full_type_unit): Remove per_cu, per_objfile paramters.
2875 Add dwarf2_cu parameter.
2876 (process_queue): Update.
2877
168c9250
SM
28782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * dwarf2/read.c (create_cu_from_index_list): Replace
2881 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2882 (create_cus_from_index_list): Likewise.
2883 (create_cus_from_index): Likewise.
2884 (create_signatured_type_table_from_index): Likewise.
2885 (create_cus_from_debug_names_list): Likewise.
2886 (create_cus_from_debug_names): Likewise.
2887 (dwarf2_read_gdb_index): Update.
2888 (dwarf2_read_debug_names): Update.
2889
e286671b
TT
28902020-05-27 Tom Tromey <tom@tromey.com>
2891 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2/read.h (struct dwarf2_per_objfile)
2894 <get_type_for_signatured_type, set_type_for_signatured_type>:
2895 New methods.
2896 <m_type_map>: New member.
2897 (struct signatured_type) <type>: Remove.
2898 * dwarf2/read.c
2899 (dwarf2_per_objfile::get_type_for_signatured_type,
2900 dwarf2_per_objfile::set_type_for_signatured_type): New.
2901 (get_signatured_type): Use new methods.
2902
8adb8487
TT
29032020-05-27 Tom Tromey <tom@tromey.com>
2904 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2907 (struct dwarf2_per_objfile) <type_units>: New member.
2908 <get_type_unit_group_unshareable>: New method.
2909 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2910 num_symtabs, symtabs>: Remove; move to
2911 type_unit_group_unshareable.
2912 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2913 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2914 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2915
127bbf4b
SM
29162020-05-27 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * dwarf2/read.h (struct dwarf2_per_cu_data):
2919 <dwarf2_per_objfile>: Remove.
2920 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2921 dwarf2_per_objfile.
2922 (create_signatured_type_table_from_index): Likewise.
2923 (create_signatured_type_table_from_debug_names): Likewise.
2924 (create_debug_type_hash_table): Likewise.
2925 (fill_in_sig_entry_from_dwo_entry): Likewise.
2926 (create_type_unit_group): Likewise.
2927 (read_comp_units_from_section): Likewise.
2928 (create_cus_hash_table): Likewise.
2929
f6e649dd
SM
29302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2931
2932 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2933 dwarf2_per_cu_data::dwarf2_per_objfile.
2934 (compute_compunit_symtab_includes): Likewise.
2935 (dwarf2_cu::start_symtab): Likewise.
2936
aa66c379
SM
29372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2938
2939 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2940 parameter.
2941 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2942 (read_namespace_alias): Update.
2943 (lookup_die_type): Update.
2944 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2945 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2946 Update.
2947 (disassemble_dwarf_expression): Update.
2948
120ce1b5
SM
29492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * dwarf2/read.h (struct dwarf2_queue_item): Add
2952 dwarf2_per_objfile parameter, assign new parameter.
2953 <per_objfile>: New field.
2954 * dwarf2/read.c (free_one_cached_comp_unit): Add
2955 dwarf2_per_objfile parameter.
2956 (queue_comp_unit): Likewise.
2957 (dw2_do_instantiate_symtab): Update.
2958 (process_psymtab_comp_unit): Update.
2959 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2960 (process_imported_unit_die): Update.
2961 (queue_and_load_dwo_tu): Update.
2962 (follow_die_offset): Update.
2963 (follow_die_sig_1): Update.
2964
9f47c707
SM
29652020-05-27 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2968 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2969 (read_call_site_scope): Assign per_objfile.
2970 (dwarf2_per_cu_data::objfile): Remove.
2971 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2972 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2973 dwarf2_per_objfile parameter.
2974 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2975 dwarf2_per_objfile parameter.
2976 (dwarf_expr_reg_to_entry_parameter): Add output
2977 dwarf2_per_objfile parameter.
2978 (locexpr_get_frame_base): Update.
2979 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2980 <push_dwarf_reg_entry_value>: Update.
2981 <call_site_to_target_addr>: Update.
2982 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2983 parameter.
2984 (value_of_dwarf_reg_entry): Update.
2985 (rw_pieced_value): Update.
2986 (indirect_synthetic_pointer): Update.
2987 (dwarf2_evaluate_property): Update.
2988 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2989 parameter.
2990 (locexpr_read_variable): Update.
2991 (locexpr_get_symbol_read_needs): Update.
2992 (loclist_read_variable): Update.
2993
14095eb3
SM
29942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2995
2996 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2997 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2998 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2999 parameter.
3000 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3001 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3002 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3003 parameter.
3004 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3005 sect_variable_value): Add dwarf2_per_objfile parameter.
3006 (class dwarf_evaluate_loc_desc) <dwarf_call,
3007 dwarf_variable_value>: Update.
3008 (fetch_const_value_from_synthetic_pointer): Add
3009 dwarf2_per_objfile parameter.
3010 (fetch_const_value_from_synthetic_pointer): Update.
3011 (coerced_pieced_ref): Update.
3012 (class symbol_needs_eval_context) <dwarf_call,
3013 dwarf_variable_value>: Update.
3014 (dwarf2_compile_expr_to_ax): Update.
3015
3c3cd3d4
SM
30162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3019 parameter.
3020 (dwarf2_evaluate_loc_desc_full): Update.
3021
82ca3f51
SM
30222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3025 parameter.
3026 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3027 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3028 dwarf2_per_objfile parameter.
3029 (decode_debug_loc_dwo_addresses): Likewise.
3030 (dwarf2_find_location_expression): Update.
3031 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3032 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3033 parameter.
3034 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3035 parameter.
3036 (locexpr_describe_location_1): Likewise.
3037 (locexpr_describe_location): Update.
3038
4b167ea1
SM
30392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3040
3041 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3042 Remove.
3043 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3044 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3045 (dwarf2_compile_property_to_c): Update.
3046 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3047 use text offset from objfile.
3048 (locexpr_tracepoint_var_ref): Update.
3049 (locexpr_generate_c_location): Update.
3050 (loclist_describe_location): Update.
3051 (loclist_tracepoint_var_ref): Update.
3052 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3053 dwarf2_per_objfile parameter.
3054 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3055 use text offset from objfile.
3056 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3057
89b07335
SM
30582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * dwarf2/expr.h (struct dwarf_expr_context)
3061 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3062 <offset>: Remove.
3063 <per_objfile>: New member.
3064 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3065 dwarf2_per_objfile parameter. Don't set offset, set
3066 per_objfile.
3067 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3068 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3069 a dwarf2_per_objfile object instead of an offset.
3070 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3071 constructor.
3072 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3073 to dwarf2_expr_executor constructor. Don't set offset.
3074 (dwarf2_fetch_cfa_info): Update.
3075 (struct dwarf2_frame_cache) <text_offset>: Remove.
3076 <per_objfile>: New field.
3077 (dwarf2_frame_cache): Update.
3078 (dwarf2_frame_prev_register): Update.
3079 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3080 <dwarf_evaluate_loc_desc>: Add constructor.
3081 (dwarf2_evaluate_loc_desc_full): Update.
3082 (dwarf2_locexpr_baton_eval): Update.
3083 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3084 Add constructor.
3085 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3086
293e7e51
SM
30872020-05-27 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3090 addr_sized_int_type>: Move to dwarf2_cu.
3091 <int_type>: Move to dwarf2_per_objfile.
3092 (struct dwarf2_per_objfile) <int_type>: Move here.
3093 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3094 addr_sized_int_type>: Move here.
3095 (read_func_scope): Update.
3096 (read_array_type): Update.
3097 (read_tag_string_type): Update.
3098 (attr_to_dynamic_prop): Update.
3099 (dwarf2_per_cu_data::int_type): Rename to...
3100 (dwarf2_per_objfile::int_type): ... this.
3101 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3102 (dwarf2_cu::addr_sized_int_type): ... this.
3103 (read_subrange_type): Update.
3104 (dwarf2_per_cu_data::addr_type): Rename to...
3105 (dwarf2_cu::addr_type): ... this.
3106 (set_die_type): Update.
3107
64874a40
SM
31082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3111 data through per_cu->cu.
3112
4ab09049
SM
31132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3116 dwarf2_per_cu_data parameter fo dwarf2_cu.
3117 (lookup_dwo_type_unit): Likewise.
3118 (read_cutu_die_from_dwo): Likewise.
3119 (lookup_dwo_unit): Likewise.
3120 (open_and_init_dwo_file): Likewise.
3121 (lookup_dwo_cutu): Likewise.
3122 (lookup_dwo_comp_unit): Likewise.
3123 (lookup_dwo_type_unit): Likewise.
3124 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3125 (cutu_reader::cutu_reader): Update.
3126
47b14e86
SM
31272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3130 parameter.
3131 (process_full_type_unit): Likewise.
3132 (process_queue): Update.
3133
43182c09
SM
31342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * dwarf2/read.c (recursively_compute_inclusions): Add
3137 dwarf2_per_objfile parameter.
3138 (compute_compunit_symtab_includes): Likewise.
3139 (process_cu_includes): Update.
3140
7aa104c4
SM
31412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3144 parameter.
3145 (create_type_unit_group): Update.
3146 (process_psymtab_comp_unit_reader): Update.
3147 (build_type_psymtabs_reader): Update.
3148
e3beb21d
SM
31492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3150
3151 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3152 object through m_this_cu->cu.
3153
d460f660
SM
31542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3157 the info parameter.
3158 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3159
ab432490
SM
31602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3163 per_objfile parameter.
3164 (load_full_type_unit): Add per_objfile parameter.
3165 (read_signatured_type): Likewise.
3166 (load_full_comp_unit): Likewise.
3167 (load_cu): Likewise.
3168 (dw2_do_instantiate_symtab): Likewise.
3169 (dw2_get_file_names): Likewise.
3170 (dw2_map_symtabs_matching_filename): Update.
3171 (dw_expand_symtabs_matching_file_matcher): Update.
3172 (dw2_map_symbol_filenames): Update.
3173 (process_psymtab_comp_unit): Add per_objfile parameter.
3174 (build_type_psymtabs_1): Update.
3175 (process_skeletonless_type_unit): Update.
3176 (dwarf2_build_psymtabs_hard): Update.
3177 (load_partial_comp_unit): Add per_objfile parameter.
3178 (scan_partial_symbols): Update.
3179 (load_full_comp_unit): Add per_objfile parameter.
3180 (process_imported_unit_die): Update.
3181 (create_cus_hash_table): Update.
3182 (find_partial_die): Update.
3183 (dwarf2_read_addr_index): Update.
3184 (follow_die_offset): Update.
3185 (dwarf2_fetch_die_loc_sect_off): Update.
3186 (dwarf2_fetch_constant_bytes): Update.
3187 (dwarf2_fetch_die_type_sect_off): Update.
3188 (follow_die_sig_1): Update.
3189 (load_full_type_unit): Add per_objfile parameter.
3190 (read_signatured_type): Likewise.
3191
313bad1b
SM
31922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3195 of objfile_name.
3196
c3699833
SM
31972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3198
3199 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3200 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3201 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3202 field.
3203 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3204 (create_cus_from_index): Update.
3205 (dwarf2_read_gdb_index): Update.
3206 (create_cus_from_debug_names): Update.
3207 (dwarf2_read_debug_names): Update.
3208 (get_abbrev_section_for_cu): Update.
3209 (create_all_comp_units): Update.
3210 (read_attribute_value): Update.
3211 (get_debug_line_section): Update.
3212 * dwarf2/index-cache.c (index_cache::store): Update.
3213 * dwarf2/index-write.c (save_gdb_index_command): Update.
3214 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3215
1859c670
SM
32162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3217
3218 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3219 member.
3220 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3221 dwarf2_per_cu_data::per_bfd.
3222 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3223 (create_type_unit_group): Likewise.
3224 (queue_comp_unit): Remove reference to
3225 per_cu->dwarf2_per_objfile.
3226 (maybe_queue_comp_unit): Likewise.
3227 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3228 (create_cus_hash_table): Assign new field.
3229
5e22e966
SM
32302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * dwarf2/read.c: Replace
3233 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3234 dwarf2_cu->per_objfile throughout.
3235
97a1449a
SM
32362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3239 parameter, don't use per_cu->dwarf2_per_objfile.
3240 (dw2_instantiate_symtab): Likewise.
3241 (dw2_find_last_source_symtab): Update.
3242 (dw2_map_expand_apply): Update.
3243 (dw2_lookup_symbol): Update.
3244 (dw2_expand_symtabs_for_function): Update.
3245 (dw2_expand_all_symtabs): Update.
3246 (dw2_expand_symtabs_with_fullname): Update.
3247 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3248 don't use per_cu->dwarf2_per_objfile.
3249 (dw2_expand_marked_cus): Update.
3250 (dw2_find_pc_sect_compunit_symtab): Update.
3251 (dw2_debug_names_lookup_symbol): Update.
3252 (dw2_debug_names_expand_symtabs_for_function): Update.
3253 (dw2_debug_names_map_matching_symbols): Update.
3254 (dwarf2_psymtab::expand_psymtab): Update.
3255
9e021579
SM
32562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3259 <per_objfile>: New member.
3260 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3261 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3262 call to dwarf2_cu.
3263 (cutu_reader::cutu_reader): Update.
3264 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3265
ae090bdb
SM
32662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3269 struct dwarf2_per_objfile.
3270 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3271 dwarf2_per_bfd.
3272 * dwarf2/read.c (set_die_type): Update.
3273 (get_die_type_at_offset): Update.
3274
af758d11
SM
32752020-05-27 Tom Tromey <tom@tromey.com>
3276 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3279 method.
3280 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3281 get_symtab, set_symtab>: New methods.
3282 <m_symtabs>: New field.
3283 (struct dwarf2_psymtab): Derive from partial_symtab.
3284 <readin_p, get_compunit_symtab>: Declare methods.
3285 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3286 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3287 New methods.
3288 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3289 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3290 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3291 (dw2_symtab_iter_next, dw2_print_stats)
3292 (dw2_expand_symtabs_with_fullname)
3293 (dw2_expand_symtabs_matching_one)
3294 (dw_expand_symtabs_matching_file_matcher)
3295 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3296 (dw2_debug_names_iterator::next)
3297 (dw2_debug_names_map_matching_symbols)
3298 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3299 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3300 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3301 New methods.
3302 (get_compunit_symtab, process_full_comp_unit)
3303 (process_full_type_unit): Update.
3304 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3305
5989a64e
SM
33062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3309 then introduce a new dwarf2_per_objfile type.
3310 <read_line_string>: Move to the new dwarf2_per_objfile type.
3311 <objfile>: Likewise.
3312 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3313 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3314 dwarf2_per_objfile->per_bfd.
3315 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3316 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3317 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3318 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3319 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3320 (dwarf2_per_objfile::locate_sections): Rename to...
3321 (dwarf2_per_bfd::locate_sections): ... this.
3322 (dwarf2_per_objfile::get_cutu): Rename to...
3323 (dwarf2_per_bfd::get_cutu): ... this.
3324 (dwarf2_per_objfile::get_cu): Rename to...
3325 (dwarf2_per_bfd::get_cu): ... this.
3326 (dwarf2_per_objfile::get_tu): Rename to...
3327 (dwarf2_per_bfd::get_tu): ... this.
3328 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3329 (dwarf2_per_bfd::allocate_per_cu): ... this.
3330 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3331 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3332 (get_gdb_index_contents_ftype): Change parameter from
3333 dwarf2_per_objfile to dwarf2_per_bfd.
3334 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3335 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3336
a50264ba
TT
33372020-05-27 Tom Tromey <tom@tromey.com>
3338 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3341 (allocate_piece_closure): Set "per_objfile" member.
3342 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3343 (locexpr_describe_location, loclist_describe_location): Use new
3344 member.
3345 * dwarf2/read.c (read_call_site_scope)
3346 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3347 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3348 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3349 handle_data_member_location): Set per_objfile member.
3350 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3351 member.
3352 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3353
d3473f0c
TT
33542020-05-27 Tom Tromey <tom@tromey.com>
3355
3356 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3357 allocate_signatured_type>: Declare new methods.
3358 <m_num_psymtabs>: New member.
3359 (struct dwarf2_per_cu_data) <index>: New member.
3360 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3361 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3362 (create_cu_from_index_list): Use allocate_per_cu.
3363 (create_signatured_type_table_from_index)
3364 (create_signatured_type_table_from_debug_names)
3365 (create_debug_type_hash_table, add_type_unit)
3366 (read_comp_units_from_section): Use allocate_signatured_type.
3367
5717c425
TT
33682020-05-27 Tom Tromey <tom@tromey.com>
3369
3370 * psymtab.c (partial_map_expand_apply)
3371 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3372 (psym_lookup_global_symbol_language)
3373 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3374 (psym_print_stats, psym_expand_symtabs_for_function)
3375 (psym_map_symbol_filenames, psym_map_matching_symbols)
3376 (psym_expand_symtabs_matching)
3377 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3378 (maintenance_check_psymtabs): Update.
3379 * psympriv.h (struct partial_symtab) <readin_p,
3380 get_compunit_symtab>: Add objfile parameter.
3381 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3382 Likewise.
3383 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3384 get_compunit_symtab>: Likewise.
3385 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3386
45940949
TT
33872020-05-27 Tom Tromey <tom@tromey.com>
3388
3389 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3390 member.
3391 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3392 (create_cu_from_index_list)
3393 (create_signatured_type_table_from_index)
3394 (create_signatured_type_table_from_debug_names)
3395 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3396 (dwarf2_create_include_psymtab)
3397 (create_debug_type_hash_table, add_type_unit)
3398 (create_type_unit_group, read_comp_units_from_section)
3399 (dwarf2_compute_name, create_cus_hash_table)
3400 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3401 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3402 obstack.
3403 (dw2_get_real_path): Likewise. Change argument to
3404 dwarf2_per_objfile.
3405
f8c6d152
LM
34062020-05-27 Luis Machado <luis.machado@linaro.org>
3407
3408 PR tdep/26000
3409 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3410 for ldrd (immediate).
3411
e98d2e6d
PW
34122020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3413
3414 * command.h: Add comment giving the name of class_tui.
3415 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3416 create the fake command for the help for class_tui.
3417
53a47a3e
TT
34182020-05-26 Tom Tromey <tromey@adacore.com>
3419
3420 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3421 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3422 (val_atr): New function.
3423 (value_val_atr): Use it.
3424 * ada-valprint.c (print_optional_low_bound): Change low bound
3425 handling for enums.
3426 (val_print_packed_array_elements): Don't call discrete_position.
3427 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3428 discrete_position for enum types.
3429 * language.c (default_print_array_index): Change type.
3430 * language.h (struct language_defn) <la_print_array_index>: Add
3431 index_type parameter, change type of index_value.
3432 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3433 (default_print_array_index): Update.
3434 * valprint.c (maybe_print_array_index): Don't call
3435 value_from_longest. Update.
3436 (value_print_array_elements): Don't call discrete_position.
3437
0bc2354b
TT
34382020-05-26 Tom Tromey <tromey@adacore.com>
3439
3440 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3441 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3442
1218a4bf
CDA
34432020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3444
3445 PR gdb/13519
3446 * avr-tdep.c (avr_integer_to_address): Return data or code
3447 address accordingly to the second 'type' argument of the
3448 function.
3449
92651b1d
MW
34502020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3451
3452 * infcmd.c, inferior.h: (construct_inferior_arguments):
3453 Moved function from here to gdbsupport/common-inferior.{h,cc}
3454
0a4f5f8c
TT
34552020-05-23 Tom Tromey <tom@tromey.com>
3456
3457 Revert commit eca1f90c:
3458 * NEWS: Remove entry for completion styling.
3459 * completer.c (_rl_completion_prefix_display_length): Move
3460 declaration later.
3461 (gdb_fnprint): Revert.
3462 (gdb_display_match_list_1): Likewise.
3463 * cli/cli-style.c (completion_prefix_style)
3464 (completion_difference_style, completion_suffix_style): Remove.
3465 (_initialize_cli_style): Revert.
3466 * cli/cli-style.h (completion_prefix_style)
3467 (completion_difference_style, completion_suffix_style): Don't
3468 declare.
3469
e08bd6c5
PA
34702020-05-24 Pedro Alves <palves@redhat.com>
3471
3472 * symtab.c (completion_list_add_name): Return boolean indication
3473 of whether the symbol matched.
3474 (completion_list_add_symbol): Don't try to remove C++ aliases if
3475 the symbol didn't match in the first place.
3476 * symtab.h (completion_list_add_name): Return bool.
3477
ceacbf6e
SM
34782020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3481 type::field.
3482
26f16254
JB
34832020-05-23 Joel Brobecker <brobecker@adacore.com>
3484
3485 GDB 9.2 released.
3486
eca1f90c
TT
34872020-05-23 Tom Tromey <tom@tromey.com>
3488
3489 * NEWS: Add entry for completion styling.
3490 * completer.c (_rl_completion_prefix_display_length): Move
3491 declaration earlier.
3492 (gdb_fnprint): Use completion_style.
3493 (gdb_display_match_list_1): Likewise.
3494 * cli/cli-style.c (completion_prefix_style)
3495 (completion_difference_style, completion_suffix_style): New
3496 globals.
3497 (_initialize_cli_style): Register new globals.
3498 * cli/cli-style.h (completion_prefix_style)
3499 (completion_difference_style, completion_suffix_style): Declare.
3500
51e2cfa2
PA
35012020-05-23 Pedro Alves <palves@redhat.com>
3502
3503 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3504 (parse_escape): Use ISDIGIT instead of isdigit.
3505 (puts_debug): Use gdb_isprint instead of isprint.
3506 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3507 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3508 ISSPACE instead of isspace.
3509 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3510 instead of isspace.
3511 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3512 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3513 instead of isxdigit and ISDIGIT instead of isdigit.
3514
80fc5e77
SM
35152020-05-22 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * gdbtypes.h (struct type) <field>: New method.
3518 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3519 or type::field.
3520
3cabb6b0
SM
35212020-05-22 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3524 (TYPE_FIELDS): Use type::fields. Change all call sites that
3525 modify the propery to use type::set_fields instead.
3526
1f704f76
SM
35272020-05-22 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3530 type::num_fields instead.
3531
5e33d5f4
SM
35322020-05-22 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3535 methods.
3536 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3537 that modify the number of fields to use type::set_num_fields
3538 instead.
3539
9392ebb3
TT
35402020-05-22 Tom Tromey <tromey@adacore.com>
3541
3542 * compile/compile-object-load.h (munmap_list_free): Don't
3543 declare.
3544
7c13f4e8
AB
35452020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * annotate.c (annotate_source_line): Update return type, add call
3548 to update current symtab and line.
3549 * annotate.h (annotate_source_line): Update return type, and
3550 extend header comment.
3551 * source.c (info_line_command): Check annotation_level before
3552 calling annotate_source_line.
3553 * stack.c (print_frame_info): If calling annotate_source_line
3554 returns true, then don't print any other source line information.
3555
aa370940
SM
35562020-05-21 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3559
84d53fa9
SM
35602020-05-21 Simon Marchi <simon.marchi@efficios.com>
3561
3562 * coffread.c (patch_type): Remove NULL check before xfree.
3563 * corefile.c (set_gnutarget): Likewise.
3564 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3565 * exec.c (build_section_table): Likewise.
3566 * remote.c (remote_target::pass_signals): Likewise.
3567 * utils.c (n_spaces): Likewise.
3568 * cli/cli-script.c (document_command): Likewise.
3569 * i386-windows-tdep.c (core_process_module_section): Likewise.
3570 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3571
9d428aae
SM
35722020-05-20 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * symfile.c (reread_symbols): Clear objfile's section_offsets
3575 vector and section indices, re-compute them by calling
3576 sym_offsets.
3577
250106a7
TT
35782020-05-20 Tom Tromey <tromey@adacore.com>
3579
3580 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3581 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3582
9a0bacfb
TV
35832020-05-20 Tom de Vries <tdevries@suse.de>
3584
3585 PR symtab/25833
3586 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3587
7b958a48
AM
35882020-05-20 Alan Modra <amodra@gmail.com>
3589
3590 PR 25993
3591 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3592 bfd_set_filename.
3593 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3594 passed to bfd_set_filename.
3595 * symfile-mem.c (add_vsyscall_page): Likewise for string
3596 passed to symbol_file_add_from_memory.
3597 (symbol_file_add_from_memory): Make name param a const char* and
3598 don't strdup.
3599
c7e97679
AM
36002020-05-20 Alan Modra <amodra@gmail.com>
3601
3602 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3603 rather than accessing bfd->filename directly.
3604 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3605 and use bfd_section_name.
3606 * dwarf2/frame.c (decode_frame_entry): Likewise.
3607 * exec.c (exec_set_section_address): Likewise.
3608 * solib-aix.c (solib_aix_bfd_open): Likewise.
3609 * stap-probe.c (get_stap_base_address): Likewise.
3610 * symfile.c (reread_symbols): Likewise.
3611
563c591b
TT
36122020-05-19 Tom Tromey <tromey@adacore.com>
3613
3614 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3615
f408d82c
SM
36162020-05-19 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3619
98c59b52
PA
36202020-05-19 Pedro Alves <palves@redhat.com>
3621
3622 * NEWS (set exec-file-mismatch): Adjust entry.
3623 * exec.c: Include "build-id.h".
3624 (validate_exec_file): Try to match build IDs instead of filenames.
3625 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3626 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3627 and pass down 'warn_if_slow'.
3628 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3629 gdb_bfd_open_closure to pass it down.
3630 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3631
4111f652
PA
36322020-05-19 Pedro Alves <palves@redhat.com>
3633
3634 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3635 * target.c (target_fileio_open_1): Rename to target_fileio_open
3636 and make extern. Use bool.
3637 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3638 (target_fileio_read_alloc_1): Adjust.
3639 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3640 (target_fileio_open_warn_if_slow): Delete declaration.
3641
ad80db5b
PA
36422020-05-19 Pedro Alves <palves@redhat.com>
3643
3644 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3645 Adjust all callers.
3646
1d6ce4d3
YS
36472020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3648
3649 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3650 whether disp is negative.
3651
9005fbbb
SM
36522020-05-19 Simon Marchi <simon.marchi@efficios.com>
3653
3654 * symfile.h (struct symfile_segment_data)
3655 <~symfile_segment_data>: Remove.
3656 <segment_info>: Change to std::vector.
3657 * symfile.c (default_symfile_segments): Update.
3658 * elfread.c (elf_symfile_segments): Update.
3659
68b888ff
SM
36602020-05-19 Simon Marchi <simon.marchi@efficios.com>
3661
3662 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3663 <segments>: New.
3664 <segment_bases, segment_sizes>: Remove.
3665 * symfile.c (default_symfile_segments): Update.
3666 * elfread.c (elf_symfile_segments): Update.
3667 * remote.c (remote_target::get_offsets): Update.
3668 * solib-target.c (solib_target_relocate_section_addresses):
3669 Update.
3670
62982abd
SM
36712020-05-19 Simon Marchi <simon.marchi@efficios.com>
3672
3673 * symfile.h (struct symfile_segment_data): Initialize fields.
3674 <~symfile_segment_data>: Add.
3675 (symfile_segment_data_up): New.
3676 (struct sym_fns) <sym_segments>: Return a
3677 symfile_segment_data_up.
3678 (default_symfile_segments): Return a symfile_segment_data_up.
3679 (free_symfile_segment_data): Remove.
3680 (get_symfile_segment_data): Return a symfile_segment_data_up.
3681 * symfile.c (default_symfile_segments): Likewise.
3682 (get_symfile_segment_data): Likewise.
3683 (free_symfile_segment_data): Remove.
3684 (symfile_find_segment_sections): Update.
3685 * elfread.c (elf_symfile_segments): Return a
3686 symfile_segment_data_up.
3687 * remote.c (remote_target::get_offsets): Update.
3688 * solib-target.c (solib_target_relocate_section_addresses):
3689 Update.
3690 * symfile-debug.c (debug_sym_segments): Return a
3691 symfile_segment_data_up.
3692
7f204339
RO
36932020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3694
e52a0f1b
RO
3695 PR build/25981
3696 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3697 Hardcode register numbers.
3698
7f204339
RO
3699 PR build/25981
3700 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3701 procfs_find_LDT_entry): Remove.
3702 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3703 procfs_find_LDT_entry): Remove.
3704 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3705 Remove.
3706
7f32a4d5
PA
37072020-05-17 Pedro Alves <palves@redhat.com>
3708 Andrew Burgess <andrew.burgess@embecosm.com>
3709 Keno Fischer <keno@juliacomputing.com>
3710
3711 PR gdb/25741
3712 * breakpoint.c (build_target_condition_list): Update comments.
3713 (build_target_command_list): Update comments and skip matching
3714 locations.
3715 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3716 a separate function. Simplify "set breakpoint auto-hw off"
3717 handling.
3718 (insert_breakpoints): Update comment.
3719 (tracepoint_locations_match): New parameter. For breakpoints,
3720 compare location types too, if the caller wants to.
3721 (handle_automatic_hardware_breakpoints): New functions.
3722 (bp_location_is_less_than): Also sort by location type and
3723 hardware breakpoint length.
3724 (update_global_location_list): Handle "set breakpoint auto-hw on"
3725 here.
3726 (update_breakpoint_locations): Ask breakpoint_locations_match to
3727 ignore location types.
3728
7d93a1e0
SM
37292020-05-16 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3732 type::name instead.
3733
d0e39ea2
SM
37342020-05-16 Simon Marchi <simon.marchi@efficios.com>
3735
3736 * gdbtypes.h (struct type) <name, set_name>: New methods.
3737 (TYPE_CODE): Use type::name. Change all call sites used to set
3738 the name to use type::set_name instead.
3739
2dab0c7b
TT
37402020-05-16 Tom Tromey <tom@tromey.com>
3741
3742 * top.c (quit_force): Update.
3743 * infrun.c (handle_no_resumed): Update.
3744 * top.h (all_uis): New function.
3745 (ALL_UIS): Remove.
3746
59f7bd8d
SM
37472020-05-16 Simon Marchi <simon.marchi@efficios.com>
3748
3749 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3750
9bf058f0
PA
37512020-05-16 Pedro Alves <palves@redhat.com>
3752
3753 * ia64-linux-nat.c
3754 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3755 Declare method.
3756 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3757
8f86ae1a
SM
37582020-05-15 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3761 (sparc64_adi_info): Likewise.
3762
d6bc0792
TT
37632020-05-15 Tom Tromey <tom@tromey.com>
3764
3765 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3766 block_objfile.
3767 (lookup_objfile_from_block): Remove.
3768 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3769 (lookup_global_symbol): Use block_objfile.
3770 * symtab.h (lookup_objfile_from_block): Don't declare.
3771 * printcmd.c (clear_dangling_display_expressions): Use
3772 block_objfile.
3773 * parse.c (operator_check_standard): Use block_objfile.
3774
8c14c3a3
TT
37752020-05-15 Tom Tromey <tom@tromey.com>
3776
3777 * language.c (language_alloc_type_symbol): Set
3778 SYMBOL_SECTION.
3779 * symtab.c (initialize_objfile_symbol): Remove.
3780 (allocate_symbol): Remove.
3781 (allocate_template_symbol): Remove.
3782 * dwarf2/read.c (fixup_go_packaging): Use "new".
3783 (new_symbol): Use "new".
3784 (read_variable): Don't call initialize_objfile_symbol. Use
3785 "new".
3786 (read_func_scope): Use "new".
3787 * xcoffread.c (process_xcoff_symbol): Don't call
3788 initialize_objfile_symbol.
3789 (SYMBOL_DUP): Remove.
3790 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3791 "new".
3792 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3793 (allocate_template_symbol): Don't declare.
3794 (struct symbol): Add copy constructor. Change defaults.
3795 * jit.c (finalize_symtab): Use "new".
3796 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3797 Use "new".
3798 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3799 (common_block_end): Use "new".
3800 * mdebugread.c (parse_symbol): Use "new".
3801 (new_symbol): Likewise.
3802
5b4a1a8d
PW
38032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3804
3805 * NEWS: Mention changes to help and apropos.
3806
57b4f16e
PW
38072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3808
3809 * command.h (enum command_class): Improve comments, document
3810 that class_alias is for user-defined aliases, give the class
3811 name for each class, remove unused class_xdb.
3812 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3813 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3814 by a precise class.
3815 * infcmd.c (_initialize_infcmd): Likewise.
3816 * reverse.c (_initialize_reverse): Likewise.
3817 * stack.c (_initialize_stack): Likewise.
3818 * symfile.c (_initialize_symfile): Likewise.
3819 * tracepoint.c (_initialize_tracepoint): Likewise.
3820
7c05caf7
PW
38212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3822
3823 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3824 when their aliased command is traversed.
3825 (help_cmd): Add fput_command_names_styled call to
3826 output command name and aliases when command has an alias.
3827
3b3aaacb
PW
38282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3829
3830 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3831 * cli/cli-decode.c (help_cmd_list): Declare as static,
3832 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3833 a command together with the command.
3834 (fput_command_name_styled, fput_command_names_styled): New functions.
3835 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3836 fput_command_name_styled.
3837 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3838 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3839
7aa1b46f
PW
38402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3841
3842 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3843 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3844 * command.h (cmd_show_list): Likewise.
3845 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3846 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3847
89bcba74
PW
38482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3849
3850 * unittests/command-def-selftests.c (traverse_command_structure):
3851 Verify all commands of a list have the same prefix command and
3852 that only the top cmdlist commands have a null prefix.
3853
3f4d92eb
PW
38542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3855
3856 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3857 as prefix, not one of its aliases.
3858 (set_cmd_prefix): Remove.
3859 (do_add_cmd): Centralize the setting of the prefix of a command, when
3860 command is defined after its full chain of prefix commands.
3861 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3862 (add_setshow_cmd_full): Likewise.
3863 (update_prefix_field_of_prefixed_commands): New function.
3864 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3865 update_prefix_field_of_prefixed_commands.
3866 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3867 addresses of remote_set_cmdlist and remote_show_cmdlist given
3868 as argument, not the address of an argument.
3869 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3870 * gdb/remote.c (_initialize_remote): Likewise.
3871
0605465f
PW
38722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3873
3874 * cli/cli-cmds.c (alias_command): Check for an existing alias
3875 using lookup_cmd_composition, as valid_command_p is too strict
3876 and forbids aliases that are the prefix of an existing alias
3877 or command.
3878 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3879 command is properly recognised as a valid command.
3880
58e6ac70
PW
38812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3882
3883 * unittests/help-doc-selftests.c: Rename to
3884 unittests/command-def-selftests.c
3885 * unittests/command-def-selftests.c (help_doc_tests): Update some
3886 comments.
3887 (command_structure_tests, traverse_command_structure): New namespace
3888 and function.
3889 (command_structure_invariants_tests): New function.
3890 (_initialize_command_def_selftests) Renamed from
3891 _initialize_help_doc_selftests, register command_structure_invariants
3892 selftest.
3893
a7b9ceb8
PW
38942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3895
3896 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3897 an alias of 'show'.
3898
b2188a06
JB
38992020-05-15 Joel Brobecker <brobecker@adacore.com>
3900
3901 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3902 ada_is_fixed_point_type. Update all callers.
3903 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3904 all callers.
3905 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3906 Update all callers.
3907 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3908 print_fixed_point_type. Update all callers.
3909 * ada-valprint.c (ada_value_print_num): Replace call to
3910 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3911
a51951c2
KB
39122020-05-14 Kevin Buettner <kevinb@redhat.com>
3913
3914 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3915 processors.
3916 (cpu_supports_bts): Add CV_AMD case.
3917
29d6859f
LM
39182020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3919 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * infrun.c (stop_all_threads): Collect multiple wait events at
3922 each pass.
3923
78134374
SM
39242020-05-14 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3927 type::code instead.
3928
67607e24
SM
39292020-05-14 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * gdbtypes.h (struct type) <code, set_code>: New methods.
3932 (TYPE_CODE): Use type::code. Change all call sites used to set
3933 the code to use type::set_code instead.
3934
a05575d3
TBA
39352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3936 Tom de Vries <tdevries@suse.de>
3937 Pedro Alves <palves@redhat.com>
3938
3939 PR threads/25478
3940 * infrun.c (stop_all_threads): Do NOT ignore
3941 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3942 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3943 received.
3944 (handle_no_resumed): Remove code handling a live inferior with no
3945 threads.
3946 * remote.c (has_single_non_exited_thread): New.
3947 (remote_target::update_thread_list): Do not delete a thread if is
3948 the last thread of the process.
3949 * thread.c (thread_select): Call delete_exited_threads instead of
3950 prune_threads.
3951
6ad82919
TBA
39522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3953
3954 * infrun.c (stop_all_threads): Enable/disable thread events of all
3955 targets. Move a debug message denoting the end of the function
3956 into the SCOPED_EXIT block.
3957
d890404b
TBA
39582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3959
3960 * process-stratum-target.h: Include <set>.
3961 (all_non_exited_process_targets, switch_to_target_no_thread): New
3962 function declarations.
3963 * process-stratum-target.c (all_non_exited_process_targets)
3964 (switch_to_target_no_thread): New function implementations.
3965
293b3ebc
TBA
39662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967
3968 * infrun.c (handle_inferior_event): Extract out a piece of code
3969 into...
3970 (mark_non_executing_threads): ...this new function.
3971
7ca9b62a
TBA
39722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3973
3974 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3975 use.
3976
fc75c28b
TBA
39772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978
3979 * regcache.c (regcache_read_pc_protected): New function
3980 implementation that returns 0 if the PC cannot read via
3981 'regcache_read_pc'.
3982 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3983 instead of 'regcache_read_pc'.
3984 (keep_going_pass_signal): Ditto.
3985
a89febbd
TT
39862020-05-13 Tom Tromey <tromey@adacore.com>
3987
3988 * ada-lang.c (align_value): Remove.
3989 (ada_template_to_fixed_record_type_1): Use align_up.
3990
f7e23710
TBA
39912020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3992
3993 * async-event.c: Update the copyright year.
3994 * async-event.h: Update the copyright year.
3995
02ff80c2
SM
39962020-05-12 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * objfiles.h (is_addr_in_objfile,
3999 shared_objfile_contains_address_p): Return bool.
4000 * objfile.c (is_addr_in_objfile,
4001 shared_objfile_contains_address_p): Return bool.
4002
4fd6c7e8
TT
40032020-05-11 Tom Tromey <tromey@adacore.com>
4004
4005 * cli/cli-cmds.c (info_command): Restore.
4006 (_initialize_cli_cmds): Use add_prefix_command for "info".
4007 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4008
5eb68a39
TT
40092020-05-11 Tom Tromey <tromey@adacore.com>
4010
4011 * ada-lang.c (ada_value_primitive_field): Now public.
4012 * ada-lang.h (ada_value_primitive_field): Declare.
4013 * ada-valprint.c (print_field_values): Use
4014 ada_value_primitive_field for wrapper fields.
4015
7666722f
TV
40162020-05-11 Tom de Vries <tdevries@suse.de>
4017
4018 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4019 MODULE_DOMAIN.
4020
3ee6bb11
TV
40212020-05-11 Tom de Vries <tdevries@suse.de>
4022
4023 PR symtab/25941
4024 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4025 with length 0, if not gdb-produced.
4026 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4027
43434996
TV
40282020-05-09 Tom de Vries <tdevries@suse.de>
4029
4030 PR gdb/25955
4031 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4032 calculation.
4033
2f78cffc
TT
40342020-05-09 Tom Tromey <tom@tromey.com>
4035
4036 * top.c (server_command): Now bool.
4037 * top.h (server_command): Now bool.
4038
4f7bc5ed
TT
40392020-05-08 Tom Tromey <tromey@adacore.com>
4040
4041 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4042 already being processed.
4043
8be4b118
TT
40442020-05-08 Tom Tromey <tom@tromey.com>
4045
4046 * printcmd.c (struct display) <next>: Remove.
4047 <display>: New constructor.
4048 <exp_string>: Now a std::string.
4049 <enabled_p>: Now a bool.
4050 (display_number): Move definition earlier.
4051 (displays): Rename from display_chain. Now a std::vector.
4052 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4053 (display_command): Update.
4054 (do_one_display, disable_display)
4055 (enable_disable_display_command, do_enable_disable_display):
4056 Update.
4057 (free_display): Remove.
4058 (clear_displays): Rewrite.
4059 (delete_display): Update.
4060 (map_display_numbers): Use function_view. Remove "data"
4061 parameter. Update.
4062 (do_delete_display): Remove.
4063 (undisplay_command): Update.
4064 (do_one_display, do_displays, disable_display)
4065 (info_display_command): Update.
4066 (do_enable_disable_display): Remove.
4067 (enable_disable_display_command)
4068 (clear_dangling_display_expressions): Update.
4069
94c93c35
TT
40702020-05-08 Tom Tromey <tom@tromey.com>
4071
4072 * symtab.c (set_symbol_cache_size)
4073 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4074 (maintenance_print_symbol_cache_statistics): Update.
4075 * symmisc.c (print_symbol_bcache_statistics)
4076 (print_objfile_statistics, maintenance_print_objfiles)
4077 (maintenance_info_symtabs, maintenance_check_symtabs)
4078 (maintenance_expand_symtabs, maintenance_info_line_tables):
4079 Update.
4080 * symfile-debug.c (set_debug_symfile): Update.
4081 * source.c (forget_cached_source_info): Update.
4082 * python/python.c (gdbpy_progspaces): Update.
4083 * psymtab.c (maintenance_info_psymtabs): Update.
4084 * probe.c (parse_probes): Update.
4085 * linespec.c (iterate_over_all_matching_symtabs)
4086 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4087 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4088 * exec.c (exec_target::close): Update.
4089 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4090 * breakpoint.c (print_one_breakpoint_location)
4091 (create_longjmp_master_breakpoint)
4092 (create_std_terminate_master_breakpoint): Update.
4093 * progspace.c (program_spaces): Now a std::vector.
4094 (maybe_new_address_space): Update.
4095 (add_program_space): Remove.
4096 (program_space::program_space): Update.
4097 (remove_program_space): Update.
4098 (number_of_program_spaces): Remove.
4099 (print_program_space, update_address_spaces): Update.
4100 * progspace.h (program_spaces): Change type.
4101 (ALL_PSPACES): Remove.
4102 (number_of_program_spaces): Don't declare.
4103 (struct program_space) <next>: Remove.
4104
a1fd1ac9
TT
41052020-05-08 Tom Tromey <tom@tromey.com>
4106
4107 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4108 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4109 (enable_break): Update.
4110 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4111 (frv_fdpic_find_canonical_descriptor): Update.
4112 (frv_fetch_objfile_link_map): Update.
4113 * progspace.c (program_space::free_all_objfiles): Update.
4114 (program_space::solibs): New method.
4115 * progspace.h (struct program_space) <solibs>: New method.
4116 * solist.h (master_so_list): Don't declare.
4117 (ALL_SO_LIBS): Remove.
4118 * solib.h (so_list_head): Remove.
4119 (update_solib_list): Update comment.
4120 * solib.c (master_so_list): Remove.
4121 (solib_used, update_solib_list, solib_add)
4122 (info_sharedlibrary_command, clear_solib)
4123 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4124
38eae084
TT
41252020-05-08 Tom Tromey <tom@tromey.com>
4126
4127 * extension.c (extension_languages): Now a std::array.
4128 (ALL_EXTENSION_LANGUAGES): Remove.
4129 (get_ext_lang_defn, get_ext_lang_of_file)
4130 (eval_ext_lang_from_control_command): Update.
4131 (finish_ext_lang_initialization)
4132 (auto_load_ext_lang_scripts_for_objfile)
4133 (ext_lang_type_printers::ext_lang_type_printers)
4134 (apply_ext_lang_type_printers)
4135 (ext_lang_type_printers::~ext_lang_type_printers)
4136 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4137 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4138 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4139 (get_matching_xmethod_workers, ext_lang_colorize)
4140 (ext_lang_before_prompt): Update.
4141 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4142
596dc4ad
TT
41432020-05-08 Tom Tromey <tom@tromey.com>
4144
4145 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4146 overload.
4147 <swap_string, m_string>: Remove.
4148 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4149 Update.
4150 * stabsread.c (define_symbol, read_type): Update.
4151 * linespec.c (find_linespec_symbols): Update.
4152 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4153 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4154 * dbxread.c (read_dbx_symtab): Update.
4155 * cp-support.h (cp_canonicalize_string_full)
4156 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4157 Return unique_xmalloc_ptr.
4158 * cp-support.c (inspect_type): Update.
4159 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4160 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4161 Likewise.
4162 * c-typeprint.c (print_name_maybe_canonical): Update.
4163 * break-catch-throw.c (check_status_exception_catchpoint):
4164 Update.
4165
bf4cb9be
TV
41662020-05-08 Tom de Vries <tdevries@suse.de>
4167
4168 * infrun.c (follow_fork): Copy current_line and current_symtab to
4169 child thread.
4170
a1b68f28
SM
41712020-05-07 Simon Marchi <simon.marchi@efficios.com>
4172
4173 * async-event.c (struct async_signal_handler, struct
4174 async_event_handler): Reformat, remove typedef.
4175
98d48915
SM
41762020-05-07 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4179 access thistype->main_type->dyn_prop_list directly.
4180
7aa91313
SM
41812020-05-07 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4184 (remove_dyn_prop): Remove. Update all users to use
4185 type::remove_dyn_prop.
4186 * gdbtypes.c (remove_dyn_prop): Rename to...
4187 (type::remove_dyn_prop): ... this.
4188
5c54719c
SM
41892020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4190
4191 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4192 (add_dyn_prop): Remove. Update all users to use
4193 type::add_dyn_prop.
4194 * gdbtypes.c (add_dyn_prop): Rename to...
4195 (type::add_dyn_prop): ... this.
4196
24e99c6c
SM
41972020-05-07 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4200 (get_dyn_prop): Remove. Update all users to use
4201 type::dyn_prop.
4202 * gdbtypes.c (get_dyn_prop): Rename to...
4203 (type::dyn_prop): ... this.
4204
0d4bf016
SM
42052020-05-06 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4208
ac4a4f1c
SM
42092020-05-06 Simon Marchi <simon.marchi@efficios.com>
4210
4211 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4212 instruction, skip it if it's there.
4213
a3bbacc1
SM
42142020-05-05 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4217
c3236f84
SM
42182020-05-04 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4221 * gdbtypes.c (recursive_dump_type): Remove use of
4222 TYPE_INCOMPLETE.
4223
3b6acaee
TT
42242020-05-03 Tom Tromey <tom@tromey.com>
4225
4226 * breakpoint.c (catch_command, tcatch_command): Remove.
4227 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4228 add_show_prefix_cmd.
4229 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4230 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4231 Remove.
4232 (add_internal_problem_command): Use add_basic_prefix_cmd,
4233 add_show_prefix_cmd.
4234 * mips-tdep.c (set_mipsfpu_command): Remove.
4235 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4236 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4237 (_initialize_index_cache): Use add_basic_prefix_cmd.
4238 * memattr.c (dummy_cmd): Remove.
4239 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4240 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4241 (_initialize_tui_win): Use add_basic_prefix_cmd,
4242 add_show_prefix_cmd.
4243 * cli/cli-logging.c (set_logging_command): Remove.
4244 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4245 add_show_prefix_cmd.
4246 (show_logging_command): Remove.
4247 * target.c (target_command): Remove.
4248 (add_target): Use add_basic_prefix_cmd.
4249
a51119cd
HD
42502020-05-02 Hannes Domani <ssbssa@yahoo.de>
4251
4252 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4253
652fc23a 42542020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4255
652fc23a
PW
4256 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4257 info_command.
4258
117539e6
KR
42592020-04-30 Kamil Rytarowski <n54@gmx.com>
4260
4261 * nbsd-nat.c (nbsd_enable_proc_events)
4262 (nbsd_nat_target::post_startup_inferior): Add.
4263 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4264 (nbsd_nat_target::update_thread_list): Rewrite.
4265 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4266 "PTRACE_LWP_CREATE".
4267 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4268
102e38eb 42692020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4270
102e38eb
PW
4271 * stack.c (_initialize_stack): Remove duplicated creation
4272 of "frame" command and "f" alias.
4273
ee9d1e5f
HD
42742020-04-30 Hannes Domani <ssbssa@yahoo.de>
4275
4276 PR gdb/18706
4277 * gdbtypes.c (check_typedef): Calculate size of array of
4278 stubbed type.
4279
627c7fb8
HD
42802020-04-30 Hannes Domani <ssbssa@yahoo.de>
4281
4282 PR gdb/15559
4283 * i386-tdep.c (i386_push_dummy_call): Call
4284 i386_thiscall_push_dummy_call.
4285 (i386_thiscall_push_dummy_call): New function.
4286 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4287 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4288 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4289
ffc2844e
SM
42902020-04-29 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbarch.sh (do_read): Add shellcheck disable directive for
4293 warning SC2162.
4294
1207375d
SM
42952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4298 "referenced but not assigned" warning.
4299
9fdb2916
SM
43002020-04-29 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * gdbarch.sh: Remove code that sets fallbackdefault.
4303
759cea5e
SM
43042020-04-29 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * gdbarch.sh: Use shell operators && and || instead of
4307 -a and -o.
4308
cb02ab24
SM
43092020-04-29 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * gdbarch.sh: Use $(...) instead of `...`.
4312
a6fc5ffc
SM
43132020-04-29 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * gdbarch.sh: Use double quotes around variables.
4316
8d113d13
SM
43172020-04-29 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * gdbarch.sh: Use %s with printf, instead of variables in the
4320 format string.
4321
ed6acedd
TT
43222020-04-29 Tom Tromey <tromey@adacore.com>
4323
4324 PR ada/25875:
4325 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4326 type fields here.
4327 (read_enumeration_type): Call
4328 update_enumeration_type_from_children later. Update comments.
4329 (process_enumeration_scope): Don't create type fields.
4330
b68b1b58
KR
43312020-04-29 Kamil Rytarowski <n54@gmx.com>
4332
4333 * nbsd-tdep.c: Include "xml-syscall.h".
4334 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4335
f94b2e03
KR
43362020-04-29 Kamil Rytarowski <n54@gmx.com>
4337
4338 * nbsd-nat.c: Include "sys/wait.h".
4339 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4340 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4341 (nbsd_nat_target::remove_exec_catchpoint)
4342 (nbsd_nat_target::set_syscall_catchpoint): Add.
4343 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4344 (nbsd_nat_target::insert_exec_catchpoint)
4345 (nbsd_nat_target::remove_exec_catchpoint)
4346 (nbsd_nat_target::set_syscall_catchpoint): Add.
4347 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4348 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4349 `nbsd_get_syscall_number'.
4350
fc49bc72
TT
43512020-04-29 Tom Tromey <tom@tromey.com>
4352
4353 * stack.c (print_block_frame_labels): Remove.
4354
d642b692
HD
43552020-04-29 Hannes Domani <ssbssa@yahoo.de>
4356
4357 PR gdb/17320
4358 * ada-valprint.c (val_print_packed_array_elements): Move array
4359 end bracket to new line.
4360 (ada_val_print_string): Remove extra spaces before first array
4361 element.
4362 * c-valprint.c (c_value_print_array): Likewise.
4363 * m2-valprint.c (m2_print_array_contents): Likewise.
4364 (m2_value_print_inner): Likewise.
4365 * p-valprint.c (pascal_value_print_inner): Likewise.
4366 * valprint.c (generic_val_print_array): Likewise.
4367 (value_print_array_elements): Move first array element and array
4368 end bracket to new line.
4369
ea90f227
TV
43702020-04-29 Tom de Vries <tdevries@suse.de>
4371
4372 PR symtab/25889
4373 * linespec.c (find_method): Fix ix calculation.
4374
4498ef4f
KR
43752020-04-28 Kamil Rytarowski <n54@gmx.com>
4376
4377 * syscalls/update-netbsd.sh: New file.
4378 * syscalls/netbsd.xml: Regenerate.
4379 * data-directory/Makefile.in: Register `netbsd.xml' in
4380 `SYSCALLS_FILES'.
4381
a55e30b5
SM
43822020-04-28 Simon Marchi <simon.marchi@efficios.com>
4383
4384 * syscalls/update-freebsd.sh: Add double quotes.
4385
2b2fbab8
TT
43862020-04-28 Tom Tromey <tom@tromey.com>
4387
4388 * NEWS: Update.
4389 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4390 (cmdpy_init): Allow class_tui.
4391
a65189c9
TV
43922020-04-28 Mark Williams <mark@myosotissp.com>
4393
4394 PR gdb/24480
4395 * dwarf2read.c: Add missing assingments to list_in_scope when
4396 start_symtab was already called.
4397
1b95cdb7
SM
43982020-04-28 Simon Marchi <simon.marchi@efficios.com>
4399
4400 PR gdb/25881
4401 * dwarf2/read.c (offset_map_type): Use
4402 gdb:hash_enum<sect_offset> as hash function.
4403
15cd93d0
TV
44042020-04-28 Tom de Vries <tdevries@suse.de>
4405
4406 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4407 with DW_AT_signature.
4408
1eb39914
SM
44092020-04-27 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * configure.ac: Remove check for fs_base/gs_base in
4412 user_regs_struct.
4413 * configure: Re-generate.
4414 * config.in: Re-generate.
4415 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4416 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4417 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4418
991a3e2e
LM
44192020-04-27 Luis Machado <luis.machado@linaro.org>
4420
4421 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4422 problematic inline frame unwinding situation.
4423 * frame.c (frame_id_computed_p): New function.
4424 * frame.h (frame_id_computed_p): New prototype.
4425
361ba0e8
TT
44262020-04-26 Tom Tromey <tom@tromey.com>
4427
4428 * command.h (enum command_class) <class_pseudo>: Remove.
4429
bc3609fd
PW
44302020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4431
4432 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4433 and whitespace.
4434
b9771db7
KR
44352020-04-25 Kamil Rytarowski <n54@gmx.com>
4436
ec16513e
SM
4437 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4438 `PT_GET_PROCESS_STATE' block.
b9771db7 4439
7151c1af
TT
44402020-04-24 Tom Tromey <tom@tromey.com>
4441
4442 * symtab.h (symbol_get_demangled_name): Don't declare.
4443 * symtab.c (symbol_get_demangled_name): Remove.
4444 (general_symbol_info::natural_name)
4445 (general_symbol_info::demangled_name): Update.
4446
906bb4c5
TT
44472020-04-24 Tom Tromey <tom@tromey.com>
4448
4449 PR rust/25025:
4450 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4451
bcfe6157
TT
44522020-04-24 Tom Tromey <tom@tromey.com>
4453
4454 PR symtab/12707:
4455 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4456 exists.
4457 (new_symbol): Likewise.
4458 * compile/compile-object-load.c (get_out_value_type): Use
4459 symbol_matches_search_name.
4460
f049a313
TT
44612020-04-24 Tom Tromey <tom@tromey.com>
4462
4463 * dwarf2/read.c (add_partial_symbol): Do not call
4464 compute_and_set_names.
4465
76e288d1
TT
44662020-04-24 Tom Tromey <tom@tromey.com>
4467
4468 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4469 overload.
4470
2467f4f6
TT
44712020-04-24 Tom Tromey <tom@tromey.com>
4472
4473 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4474 (add_psymbol_to_list): New overload. Make old overload call new
4475 one.
4476 * psympriv.h (add_psymbol_to_list): New overload.
4477
e61108c9
TT
44782020-04-24 Tom Tromey <tom@tromey.com>
4479
4480 * dwarf2/read.c (partial_die_info::read) <case
4481 DW_AT_linkage_name>: Use value_as_string.
4482 (dwarf2_string_attr): Use value_as_string.
4483 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4484 method.
4485 * dwarf2/attribute.c (attribute::value_as_string): New method.
4486
8c87a452
TT
44872020-04-24 Tom Tromey <tom@tromey.com>
4488
4489 * symtab.c (general_symbol_info::natural_name)
4490 (general_symbol_info::demangled_name): Check for language_rust.
4491
787de330
TT
44922020-04-24 Tom Tromey <tom@tromey.com>
4493
4494 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4495 (dwarf2_physname): ... from here.
4496 (partial_die_info::read): Add Rust "{" hack.
4497
ff985671
TT
44982020-04-24 Tom Tromey <tom@tromey.com>
4499
4500 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4501 method.
4502 (symbol_set_demangled_name): Don't declare.
4503 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4504 symbol_set_demangled_name.
4505 (general_symbol_info::set_language)
4506 (general_symbol_info::compute_and_set_names): Update.
4507 * minsyms.c (minimal_symbol_reader::install): Update.
4508 * dwarf2/read.c (new_symbol): Update.
4509
1acda803
TT
45102020-04-24 Tom Tromey <tromey@adacore.com>
4511
4512 PR python/23662:
4513 * python/py-type.c (convert_field): Handle
4514 FIELD_LOC_KIND_DWARF_BLOCK.
4515 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4516 (typy_get_dynamic): Nw function.
4517 (type_object_getset): Add "dynamic".
4518 * NEWS: Add entry.
4519
d656f129
TT
45202020-04-24 Tom Tromey <tromey@adacore.com>
4521
4522 * ada-typeprint.c (print_choices, print_variant_part)
4523 (print_record_field_types_dynamic): New functions.
4524 (print_record_field_types): Use print_record_field_types_dynamic.
4525
7d79de9a
TT
45262020-04-24 Tom Tromey <tromey@adacore.com>
4527
4528 * dwarf2/read.c (handle_data_member_location): New overload.
4529 (dwarf2_add_field): Use it.
4530 (decode_locdesc): Add "computed" parameter. Update comment.
4531 * gdbtypes.c (is_dynamic_type_internal): Also look for
4532 FIELD_LOC_KIND_DWARF_BLOCK.
4533 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4534 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4535 virtual base classes.
4536 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4537 FIELD_LOC_KIND_DWARF_BLOCK.
4538
f8e89861
TT
45392020-04-24 Tom Tromey <tromey@adacore.com>
4540
4541 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4542 * gdbtypes.c (is_dynamic_type_internal): Check
4543 TYPE_HAS_DYNAMIC_LENGTH.
4544 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4545 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4546 New macros.
4547 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4548 constant.
4549
9c6a1327
TT
45502020-04-24 Tom Tromey <tromey@adacore.com>
4551
4552 * dwarf2/read.c (struct variant_field): Rewrite.
4553 (struct variant_part_builder): New.
4554 (struct nextfield): Remove "variant" field. Add "offset".
4555 (struct field_info): Add "current_variant_part" and
4556 "variant_parts".
4557 (alloc_discriminant_info): Remove.
4558 (alloc_rust_variant): New function.
4559 (quirk_rust_enum): Update.
4560 (dwarf2_add_field): Set "offset" member. Don't handle
4561 DW_TAG_variant_part.
4562 (offset_map_type): New typedef.
4563 (convert_variant_range, create_one_variant)
4564 (create_one_variant_part, create_variant_parts)
4565 (add_variant_property): New functions.
4566 (dwarf2_attach_fields_to_type): Call add_variant_property.
4567 (read_structure_type): Don't handle DW_TAG_variant_part.
4568 (handle_variant_part, handle_variant): New functions.
4569 (handle_struct_member_die): Use them.
4570 (process_structure_scope): Don't handle variant parts.
4571 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4572 (struct discriminant_info): Remove.
4573 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4574 (struct main_type) <flag_discriminated_union>: Remove.
4575 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4576 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4577 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4578 Update.
4579 * valops.c (value_union_variant): Remove.
4580 * value.h (value_union_variant): Don't declare.
4581
b249d2c2
TT
45822020-04-24 Tom Tromey <tromey@adacore.com>
4583
4584 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4585 (ada_value_primitive_packed_val): Update.
4586 * ada-valprint.c (ada_value_print_1): Update.
4587 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4588 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4589 just an address. Use evaluate_for_locexpr_baton.
4590 (dwarf2_evaluate_property): Update.
4591 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4592 array_view.
4593 * findvar.c (default_read_var_value): Update.
4594 * gdbtypes.c (compute_variant_fields_inner)
4595 (resolve_dynamic_type_internal): Update.
4596 (resolve_dynamic_type): Change type of valaddr parameter.
4597 * gdbtypes.h (resolve_dynamic_type): Update.
4598 * valarith.c (value_subscripted_rvalue): Update.
4599 * value.c (value_from_contents_and_address): Update.
4600
61122aa9
TT
46012020-04-24 Tom Tromey <tromey@adacore.com>
4602
4603 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4604 "push_initial_value" parameter.
4605 (dwarf2_evaluate_property): Likewise.
4606 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4607
ef83a141
TT
46082020-04-24 Tom Tromey <tromey@adacore.com>
4609
4610 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4611 (variant::matches, compute_variant_fields_recurse)
4612 (compute_variant_fields_inner, compute_variant_fields): New
4613 functions.
4614 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4615 Use resolved_type after type is made.
4616 (operator==): Add new cases.
4617 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4618 (struct discriminant_range, struct variant, struct variant_part):
4619 New.
4620 (union dynamic_prop_data) <variant_parts, original_type>: New
4621 members.
4622 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4623 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4624 constants.
4625 * value.c (unpack_bits_as_long): Now public.
4626 * value.h (unpack_bits_as_long): Declare.
4627
675127ec
TT
46282020-04-24 Tom Tromey <tromey@adacore.com>
4629
4630 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4631 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4632
9852ceef
HD
46332020-04-24 Hannes Domani <ssbssa@yahoo.de>
4634
4635 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4636
7632c6ce
KR
46372020-04-24 Kamil Rytarowski <n54@gmx.com>
4638
4639 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4640 (remove_fork_catchpoint, post_startup_inferior)
4641 (post_attach): Move...
4642 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4643 (remove_fork_catchpoint, post_startup_inferior)
4644 (post_attach): ...here.
4645 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4646 (remove_fork_catchpoint, post_startup_inferior)
4647 (post_attach): Move...
4648 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4649 (remove_fork_catchpoint, post_startup_inferior)
4650 (post_attach): ...here.
4651
7be2bb4f
TT
46522020-04-24 Tom Tromey <tromey@adacore.com>
4653
4654 * nat/windows-nat.h (struct windows_thread_info)
4655 <pc_adjusted>: New member.
4656 * windows-nat.c (windows_fetch_one_register): Check
4657 pc_adjusted.
4658 (windows_nat_target::get_windows_debug_event)
4659 (windows_nat_target::wait): Set pc_adjusted.
4660
f80cb3b4
TV
46612020-04-24 Tom de Vries <tdevries@suse.de>
4662
4663 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4664 Run gdb-add-index inside temp dir.
4665
29514b87
TT
46662020-04-23 Tom Tromey <tromey@adacore.com>
4667
4668 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4669 in loop.
4670
5939967b
LM
46712020-04-23 Luis Machado <luis.machado@linaro.org>
4672
4673 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4674 get_frame_register instead of gdbarch_unwind_pc.
4675
70bc38f5
TV
46762020-04-23 Tom de Vries <tdevries@suse.de>
4677
4678 * symtab.c (lookup_global_symbol): Prefer def over decl.
4679
de82891c
TV
46802020-04-23 Tom de Vries <tdevries@suse.de>
4681
4682 PR symtab/25807
4683 * block.c (best_symbol, better_symbol): Promote to external.
4684 * block.h (best_symbol, better_symbol): Declare.
4685 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4686 decl.
4687
ecc6c606
TT
46882020-04-23 Tom Tromey <tromey@adacore.com>
4689
4690 PR ada/25837:
4691 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4692 "const char *", not a "const std::string &".
4693 <name_and_matcher::operator==>: Update.
4694 * unittests/lookup_name_info-selftests.c: Change type of
4695 "result".
4696
740480b8
TT
46972020-04-23 Tom Tromey <tom@tromey.com>
4698
4699 * inferior.h (iterate_over_inferiors): Don't declare.
4700 * inferior.c (iterate_over_inferiors): Remove.
4701 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4702 Remove.
4703 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4704 use iterate_over_inferiors.
4705 (darwin_resume_inferior_it)
4706 (struct resume_inferior_threads_param)
4707 (darwin_resume_inferior_threads_it): Remove.
4708 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4709
ae3ab1f0
TV
47102020-04-23 Tom de Vries <tdevries@suse.de>
4711
4712 * blockframe.c (find_pc_partial_function): Use
4713 find_pc_sect_compunit_symtab rather than
4714 objfile->sf->qf->find_pc_sect_compunit_symtab.
4715
317d2668
TV
47162020-04-22 Tom de Vries <tdevries@suse.de>
4717
4718 PR symtab/25764
4719 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4720 in psymtabs.
4721
eea9e357
TV
47222020-04-22 Tom de Vries <tdevries@suse.de>
4723
4724 PR symtab/25801
4725 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4726 symtabs.
4727
3d5afab3
TV
47282020-04-22 Tom de Vries <tdevries@suse.de>
4729
4730 PR symtab/25700
4731 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4732 CU if already created.
4733
d43b7a2d
TBA
47342020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4735
4736 * infrun.c (displaced_step_fixup): Switch to the event_thread
4737 before calling displaced_step_restore, not after.
4738
d89edf9b
MM
47392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4740
4741 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4742 its inferior is not recorded by us.
4743 (record_btrace_target_open): Replace call to
4744 all_non_exited_threads () with call to current_inferior
4745 ()->non_exited_threads ().
4746 (record_btrace_target::stop_recording): Likewise.
4747 (record_btrace_target::close): Likewise.
4748 (record_btrace_target::wait): Likewise.
4749 (record_btrace_target::record_stop_replaying): Likewise.
4750
5897fd49
MM
47512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4752
4753 * btrace.c (btrace_enable): Throw an error on double enables and
4754 when enabling recording fails.
4755 (btrace_disable): Throw an error if the thread is not recorded.
4756
1a476b6d
MM
47572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4758
4759 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4760 request if we do not have a thread_info.
4761
4778a5f8
TV
47622020-04-21 Tom de Vries <tdevries@suse.de>
4763
4764 PR gdb/25471
4765 * thread.c
4766 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4767 exception in get_frame_id.
4768
0fa7617d
TT
47692020-04-20 Tom Tromey <tromey@adacore.com>
4770
4771 * python/python.c (struct gdbpy_event): Mark move constructor as
4772 noexcept.
4773 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4774 constructor as noexcept.
4775 * completer.h (struct completion_result): Mark move constructor as
4776 noexcept.
4777 * completer.c (completion_result::completion_result): Use
4778 initialization style. Don't call reset_match_list.
4779
ad23bda0
MS
47802020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4781
4782 * MAINTAINERS (Write After Approval): Add myself.
4783
45e1f031
TT
47842020-04-18 Tom Tromey <tom@tromey.com>
4785
4786 * windows-tdep.c (init_w32_command_list)
4787 (w32_prefix_command_valid): Restore.
4788 (_initialize_windows_tdep): Call init_w32_command_list.
4789
08feed99
TT
47902020-04-18 Tom Tromey <tom@tromey.com>
4791
4792 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4793 * value.c (value_fn_field): Update.
4794 * valops.c (find_function_in_inferior)
4795 (value_allocate_space_in_inferior): Update.
4796 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4797 Update.
4798 * tui/tui-source.c (tui_source_window::set_contents): Update.
4799 * symtab.c (lookup_global_or_static_symbol)
4800 (find_function_start_sal_1, skip_prologue_sal)
4801 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4802 * symmisc.c (dump_msymbols, dump_symtab_1)
4803 (maintenance_print_one_line_table): Update.
4804 * symfile.c (init_entry_point_info, section_is_mapped)
4805 (list_overlays_command, simple_read_overlay_table)
4806 (simple_overlay_update_1): Update.
4807 * stap-probe.c (handle_stap_probe): Update.
4808 * stabsread.c (dbx_init_float_type, define_symbol)
4809 (read_one_struct_field, read_enum_type, read_range_type): Update.
4810 * source.c (info_line_command): Update.
4811 * python/python.c (gdbpy_source_objfile_script)
4812 (gdbpy_execute_objfile_script): Update.
4813 * python/py-type.c (save_objfile_types): Update.
4814 * python/py-objfile.c (py_free_objfile): Update.
4815 * python/py-inferior.c (python_new_objfile): Update.
4816 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4817 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4818 (maintenance_check_psymtabs): Update.
4819 * printcmd.c (info_address_command): Update.
4820 * objfiles.h (struct objfile) <arch>: New method, from
4821 get_objfile_arch.
4822 (get_objfile_arch): Don't declare.
4823 * objfiles.c (get_objfile_arch): Remove.
4824 (filter_overlapping_sections): Update.
4825 * minsyms.c (msymbol_is_function): Update.
4826 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4827 (output_nondebug_symbol): Update.
4828 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4829 (mdebug_expand_psymtab): Update.
4830 * machoread.c (macho_add_oso_symfile): Update.
4831 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4832 Update.
4833 * linux-fork.c (checkpoint_command): Update.
4834 * linespec.c (convert_linespec_to_sals): Update.
4835 * jit.c (finalize_symtab): Update.
4836 * infrun.c (insert_exception_resume_from_probe): Update.
4837 * ia64-tdep.c (ia64_find_unwind_table): Update.
4838 * hppa-tdep.c (internalize_unwinds): Update.
4839 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4840 Update.
4841 * gcore.c (call_target_sbrk): Update.
4842 * elfread.c (record_minimal_symbol, elf_symtab_read)
4843 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4844 (elf_gnu_ifunc_resolve_by_got): Update.
4845 * dwarf2/read.c (create_addrmap_from_index)
4846 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4847 (read_debug_names_from_section)
4848 (process_psymtab_comp_unit_reader, add_partial_symbol)
4849 (add_partial_subprogram, process_full_comp_unit)
4850 (read_file_scope, read_func_scope, read_lexical_block_scope)
4851 (read_call_site_scope, dwarf2_ranges_read)
4852 (dwarf2_record_block_ranges, dwarf2_add_field)
4853 (mark_common_block_symbol_computed, read_tag_pointer_type)
4854 (read_tag_string_type, dwarf2_init_float_type)
4855 (dwarf2_init_complex_target_type, read_base_type)
4856 (partial_die_info::read, partial_die_info::read)
4857 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4858 (dwarf2_fetch_die_loc_sect_off): Update.
4859 * dwarf2/loc.c (dwarf2_find_location_expression)
4860 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4861 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4862 (dwarf2_loc_desc_get_symbol_read_needs)
4863 (locexpr_describe_location_piece, locexpr_describe_location_1)
4864 (loclist_describe_location): Update.
4865 * dwarf2/index-write.c (write_debug_names): Update.
4866 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4867 * dtrace-probe.c (dtrace_process_dof): Update.
4868 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4869 (process_one_symbol): Update.
4870 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4871 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4872 (coff_read_enum_type): Update.
4873 * cli/cli-cmds.c (edit_command, list_command): Update.
4874 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4875 * breakpoint.c (create_overlay_event_breakpoint)
4876 (create_longjmp_master_breakpoint)
4877 (create_std_terminate_master_breakpoint)
4878 (create_exception_master_breakpoint, get_sal_arch): Update.
4879 * block.c (block_gdbarch): Update.
4880 * annotate.c (annotate_source_line): Update.
4881
0743fc83
TT
48822020-04-17 Tom Tromey <tromey@adacore.com>
4883
4884 * auto-load.c (show_auto_load_cmd): Remove.
4885 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4886 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4887 (maintenance_print_arc_command): Remove.
4888 * tui/tui-win.c (tui_command): Remove.
4889 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4890 * tui/tui-layout.c (tui_layout_command): Remove.
4891 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4892 * python/python.c (user_set_python, user_show_python): Remove.
4893 (_initialize_python): Use add_basic_prefix_cmd,
4894 add_show_prefix_cmd.
4895 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4896 (install_gdb_commands): Use add_basic_prefix_cmd,
4897 add_show_prefix_cmd.
4898 (info_guile_command): Remove.
4899 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4900 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4901 add_show_prefix_cmd.
4902 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4903 Remove do_set and do_show parameters.
4904 * cli/cli-style.c (set_style, show_style): Remove.
4905 (_initialize_cli_style): Use add_basic_prefix_cmd,
4906 add_show_prefix_cmd.
4907 (cli_style_option::add_setshow_commands): Remove do_set and
4908 do_show parameters.
4909 (cli_style_option::add_setshow_commands): Use
4910 add_basic_prefix_cmd, add_show_prefix_cmd.
4911 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4912 (set_style_name): Remove.
4913 * cli/cli-dump.c (dump_command, append_command): Remove.
4914 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4915 (tekhex_dump_command, binary_dump_command)
4916 (binary_append_command): Remove.
4917 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4918 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4919 (init_w32_command_list): Remove; move into ...
4920 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4921 * valprint.c (set_print, show_print, set_print_raw)
4922 (show_print_raw): Remove.
4923 (_initialize_valprint): Use add_basic_prefix_cmd,
4924 add_show_prefix_cmd.
4925 * typeprint.c (set_print_type, show_print_type): Remove.
4926 (_initialize_typeprint): Use add_basic_prefix_cmd,
4927 add_show_prefix_cmd.
4928 * record.c (set_record_command, show_record_command): Remove.
4929 (_initialize_record): Use add_basic_prefix_cmd,
4930 add_show_prefix_cmd.
4931 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4932 add_show_prefix_cmd.
4933 (info_command, show_command, set_debug, show_debug): Remove.
4934 * top.h (set_history, show_history): Don't declare.
4935 * top.c (set_history, show_history): Remove.
4936 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4937 (unset_tdesc_cmd): Remove.
4938 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4939 add_show_prefix_cmd.
4940 * symtab.c (info_module_command): Remove.
4941 (_initialize_symtab): Use add_basic_prefix_cmd.
4942 * symfile.c (overlay_command): Remove.
4943 (_initialize_symfile): Use add_basic_prefix_cmd.
4944 * sparc64-tdep.c (info_adi_command): Remove.
4945 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4946 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4947 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4948 add_show_prefix_cmd.
4949 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4950 (_initialize_serial): Use add_basic_prefix_cmd,
4951 add_show_prefix_cmd.
4952 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4953 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4954 add_show_prefix_cmd.
4955 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4956 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4957 add_show_prefix_cmd.
4958 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4959 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4960 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4961 add_show_prefix_cmd.
4962 * remote.c (remote_command, set_remote_cmd): Remove.
4963 (_initialize_remote): Use add_basic_prefix_cmd.
4964 * record-full.c (set_record_full_command)
4965 (show_record_full_command): Remove.
4966 (_initialize_record_full): Use add_basic_prefix_cmd,
4967 add_show_prefix_cmd.
4968 * record-btrace.c (cmd_set_record_btrace)
4969 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4970 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4971 (cmd_show_record_btrace_pt): Remove.
4972 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4973 add_show_prefix_cmd.
4974 * ravenscar-thread.c (set_ravenscar_command)
4975 (show_ravenscar_command): Remove.
4976 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4977 add_show_prefix_cmd.
4978 * mips-tdep.c (show_mips_command, set_mips_command)
4979 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4980 add_show_prefix_cmd.
4981 * maint.c (maintenance_command, maintenance_info_command)
4982 (maintenance_check_command, maintenance_print_command)
4983 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4984 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4985 add_show_prefix_cmd.
4986 (show_per_command_cmd): Remove.
4987 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4988 Remove.
4989 (maintenance_show_test_settings_cmd): Remove.
4990 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4991 add_show_prefix_cmd.
4992 * maint-test-options.c (maintenance_test_options_command):
4993 Remove.
4994 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4995 * macrocmd.c (macro_command): Remove
4996 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4997 * language.c (set_check, show_check): Remove.
4998 (_initialize_language): Use add_basic_prefix_cmd,
4999 add_show_prefix_cmd.
5000 * infcmd.c (unset_command): Remove.
5001 (_initialize_infcmd): Use add_basic_prefix_cmd.
5002 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5003 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5004 add_show_prefix_cmd.
5005 * go32-nat.c (go32_info_dos_command): Remove.
5006 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5007 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5008 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5009 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5010 (_initialize_frame): Use add_basic_prefix_cmd,
5011 add_show_prefix_cmd.
5012 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5013 (_initialize_dcache): Use add_basic_prefix_cmd,
5014 add_show_prefix_cmd.
5015 * cp-support.c (maint_cplus_command): Remove.
5016 (_initialize_cp_support): Use add_basic_prefix_cmd.
5017 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5018 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5019 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5020 add_basic_prefix_cmd, add_show_prefix_cmd.
5021 * breakpoint.c (save_command): Remove.
5022 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5023 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5024 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5025 add_show_prefix_cmd.
5026 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5027 (set_ada_command, show_ada_command): Remove.
5028 (_initialize_ada_language): Use add_basic_prefix_cmd,
5029 add_show_prefix_cmd.
5030 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5031
3557f442
KR
50322020-04-16 Kamil Rytarowski <n54@gmx.com>
5033
5034 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5035 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5036
16197208
SM
50372020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5038
5039 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5040 warning messages.
5041
00ac85d3
SM
50422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5043
5044 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5045 import table is not at beginning of .idata section.
5046
381ce63f
PA
50472020-04-16 Pedro Alves <palves@redhat.com>
5048
5049 * inferior.c (delete_inferior): Use delete operator directly
5050 instead of delete_program_space.
5051 * progspace.c (add_program_space): New, factored out from
5052 program_space::program_space.
5053 (remove_program_space): New, factored out from
5054 delete_program_space.
5055 (program_space::program_space): Remove intro comment. Rewrite.
5056 (program_space::~program_space): Remove intro comment. Call
5057 remove_program_space.
5058 (delete_program_space): Delete.
5059 * progspace.h (program_space::program_space): Make explicit. Move
5060 intro comment here, adjusted.
5061 (program_space::~program_space): Move intro comment here,
5062 adjusted.
5063 (delete_program_space): Remove.
5064
a010605f
TT
50652020-04-16 Tom Tromey <tromey@adacore.com>
5066
5067 * windows-nat.c (windows_nat::handle_access_violation): New
5068 function.
5069 * nat/windows-nat.h (handle_access_violation): Declare.
5070 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5071 windows-nat.c. Call handle_access_violation.
5072
efba5c23
TV
50732020-04-16 Tom de Vries <tdevries@suse.de>
5074
5075 PR symtab/25791
5076 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5077 CUs without psymtab.
5078
97ed802d
KB
50792020-04-16 Kevin Buettner <kevinb@redhat.com>
5080
5081 * python/python.c (do_start_initialization): Don't call
5082 PyEval_InitThreads for Python 3.9 and beyond.
5083
c7d64809
KR
50842020-04-15 Kamil Rytarowski <n54@gmx.com>
5085
5086 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5087 thread functions.
5088 (obsd_nat_target::wait): Likewise.
5089
ce127a96
TT
50902020-04-15 Tom Tromey <tromey@adacore.com>
5091
5092 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5093 (DEBUG_EXCEPT): Use debug_printf.
5094
99f1bc6a
AB
50952020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * completer.c (class completion_tracker::completion_hash_entry)
5098 <hash_name>: New member function.
5099 (completion_tracker::discard_completions): New callback to hash a
5100 completion_hash_entry, pass this to htab_create_alloc.
5101
a0e9b532
JT
51022016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5103
5104 * windows-nat.c (windows_make_so): Warn rather than stopping with
5105 an error if realpath() fails.
5106
06ca5dd4
KR
51072020-04-14 Kamil Rytarowski <n54@gmx.com>
5108
5109 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5110 (nbsd_nat_target::info_proc): Add do_status.
5111
194d088f
TV
51122020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5113 Tom de Vries <tdevries@suse.de>
5114
5115 PR symtab/25718
5116 * psympriv.h (struct partial_symtab::read_symtab)
5117 (struct partial_symtab::expand_psymtab)
5118 (struct partial_symtab::read_dependencies): Update comments.
5119 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5120 read_symtab for includer.
5121 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5122 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5123 (struct dwarf2_include_psymtab::m_readin): Remove.
5124 (struct dwarf2_include_psymtab::includer): New member function.
5125 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5126
c1a66c06
TV
51272020-04-14 Tom de Vries <tdevries@suse.de>
5128
5129 PR symtab/25720
5130 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5131 with NULL symbol_matcher and lookup_name.
5132 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5133 and lookup_name.
5134 * dwarf2/read.c (dw2_expand_symtabs_matching)
5135 (dw2_debug_names_expand_symtabs_matching): Same.
5136 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5137 Make lookup_name a pointer. Update comment.
5138 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5139 lookup_name being a pointer.
5140 * symfile.c (expand_symtabs_matching): Same.
5141 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5142 * linespec.c (iterate_over_all_matching_symtabs): Same.
5143
400b5eca
TT
51442020-04-13 Tom Tromey <tom@tromey.com>
5145
5146 * run-on-main-thread.c: Update include.
5147 * unittests/main-thread-selftests.c: Update include.
5148 * tui/tui-win.c: Update include.
5149 * tui/tui-io.c: Update include.
5150 * tui/tui-interp.c: Update include.
5151 * tui/tui-hooks.c: Update include.
5152 * top.h: Update include.
5153 * top.c: Update include.
5154 * ser-base.c: Update include.
5155 * remote.c: Update include.
5156 * remote-notif.c: Update include.
5157 * remote-fileio.c: Update include.
5158 * record-full.c: Update include.
5159 * record-btrace.c: Update include.
5160 * python/python.c: Update include.
5161 * posix-hdep.c: Update include.
5162 * mingw-hdep.c: Update include.
5163 * mi/mi-main.c: Update include.
5164 * mi/mi-interp.c: Update include.
5165 * main.c: Update include.
5166 * linux-nat.c: Update include.
5167 * interps.c: Update include.
5168 * infrun.c: Update include.
5169 * inf-loop.c: Update include.
5170 * event-top.c: Update include.
5171 * event-loop.c: Move to ../gdbsupport/.
5172 * event-loop.h: Move to ../gdbsupport/.
5173 * async-event.h: Update include.
5174 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5175
93b54c8e
TT
51762020-04-13 Tom Tromey <tom@tromey.com>
5177
5178 * tui/tui-win.c: Include async-event.h.
5179 * remote.c: Include async-event.h.
5180 * remote-notif.c: Include async-event.h.
5181 * record-full.c: Include async-event.h.
5182 * record-btrace.c: Include async-event.h.
5183 * infrun.c: Include async-event.h.
5184 * event-top.c: Include async-event.h.
5185 * event-loop.h: Move some declarations to async-event.h.
5186 * event-loop.c: Don't include ser-event.h or top.h. Move some
5187 code to async-event.c.
5188 * async-event.h: New file.
5189 * async-event.c: New file.
5190 * Makefile.in (COMMON_SFILES): Add async-event.c.
5191 (HFILES_NO_SRCDIR): Add async-event.h.
5192
c1cd3163
TT
51932020-04-13 Tom Tromey <tom@tromey.com>
5194
5195 * utils.c (flush_streams): New function.
5196 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5197
29f2bf4f
TT
51982020-04-13 Tom Tromey <tom@tromey.com>
5199
5200 * event-loop.c (handle_file_event): Use warning, not
5201 printf_unfiltered.
5202
98029d02
TT
52032020-04-13 Tom Tromey <tom@tromey.com>
5204
5205 * event-loop.c: Include <chrono>.
5206
06cc9596
TT
52072020-04-13 Tom Tromey <tom@tromey.com>
5208
5209 * gdb_select.h: Move to ../gdbsupport/.
5210 * event-loop.c: Update include path.
5211 * top.c: Update include path.
5212 * ser-base.c: Update include path.
5213 * ui-file.c: Update include path.
5214 * ser-tcp.c: Update include path.
5215 * guile/scm-ports.c: Update include path.
5216 * posix-hdep.c: Update include path.
5217 * ser-unix.c: Update include path.
5218 * gdb_usleep.c: Update include path.
5219 * mingw-hdep.c: Update include path.
5220 * inflow.c: Update include path.
5221 * infrun.c: Update include path.
5222 * event-top.c: Update include path.
5223
8ae8e197
TT
52242020-04-13 Tom Tromey <tom@tromey.com>
5225
5226 * configure: Rebuild.
5227 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5228
58cf28e8
TT
52292020-04-13 Tom Tromey <tom@tromey.com>
5230
5231 * event-loop.h (start_event_loop): Don't declare.
5232 * event-loop.c (start_event_loop): Move...
5233 * main.c (start_event_loop): ...here. Now static.
5234
b7f999ae
SDJ
52352020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5236
5237 * MAINTAINERS: Update my email address.
5238
1085dfd4
KR
52392020-04-12 Kamil Rytarowski <n54@gmx.com>
5240
5241 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5242 IP_ALL.
5243
49d1d1f5
KR
52442020-04-12 Kamil Rytarowski <n54@gmx.com>
5245
5246 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5247 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5248
b4848d2a
KR
52492020-04-12 Kamil Rytarowski <n54@gmx.com>
5250
5251 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5252 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5253
51c133d5
KR
52542020-04-12 Kamil Rytarowski <n54@gmx.com>
5255
5256 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5257
54b8cbd0
KR
52582020-04-11 Kamil Rytarowski <n54@gmx.com>
5259
5260 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5261 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5262 (nbsd_nat_target::info_proc): New functions.
5263 * nbsd-nat.c (kinfo_get_vmmap): New function.
5264 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5265 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5266 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5267 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5268 functions.
5269 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5270 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5271 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5272 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5273 (KINFO_VME_FLAG_GROWS_DOWN): New.
5274
cf83625d
AS
52752020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5276
5277 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5278 bit shift.
5279
0c4311ab
TT
52802020-04-10 Tom Tromey <tromey@adacore.com>
5281
5282 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5283
3e65b3e9
TT
52842020-04-10 Tom Tromey <tromey@adacore.com>
5285
5286 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5287 separate debug files.
5288
13302e95
HD
52892020-04-10 Hannes Domani <ssbssa@yahoo.de>
5290
5291 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5292 Move to...
5293 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5294 ... here.
5295 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5296 Check for STATUS_WX86_BREAKPOINT.
5297 (windows_nat_target::wait): Same.
5298
bdfc1e8a
TV
52992020-04-10 Tom de Vries <tdevries@suse.de>
5300
5301 PR cli/25808
5302 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5303
f4460aec
SM
53042020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5305
5306 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5307 (Write After Approval): Remove Tom de Vries.
5308
a25198bb
BE
53092020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5310
5311 revert partially:
5312 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5313
aac66a4c
SM
5314 * buildsym.c (record_line): Fix undefined behavior and preserve
5315 lines at eof.
a25198bb 5316
206c98a6
KR
53172020-04-09 Kamil Rytarowski <n54@gmx.com>
5318
5319 * auxv.h (svr4_auxv_parse): New.
5320 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5321 and generic_auxv_parse.
5322 (svr4_auxv_parse): Add.
5323 * obsd-tdep.c: Include "auxv.h".
5324 (obsd_auxv_parse): Remove.
5325 (obsd_init_abi): Remove comment.
5326 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5327 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5328 * nbsd-tdep.c: Include "auxv.h".
5329 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5330
71fbdbaf
TT
53312020-04-08 Tom Tromey <tromey@adacore.com>
5332
5333 * nat/windows-nat.h (last_wait_event): Don't declare.
5334 (wait_for_debug_event): Update comment.
5335 * nat/windows-nat.c (last_wait_event): Now static.
5336
2c1d95e8
TT
53372020-04-08 Tom Tromey <tromey@adacore.com>
5338
5339 * windows-nat.c (wait_for_debug_event): Move to
5340 nat/windows-nat.c.
5341 * nat/windows-nat.h (wait_for_debug_event): Declare.
5342 * nat/windows-nat.c (wait_for_debug_event): Move from
5343 windows-nat.c. No longer static.
5344
d2977bc4
TT
53452020-04-08 Tom Tromey <tromey@adacore.com>
5346
5347 * windows-nat.c (get_windows_debug_event): Use
5348 fetch_pending_stop.
5349 * nat/windows-nat.h (fetch_pending_stop): Declare.
5350 * nat/windows-nat.c (fetch_pending_stop): New function.
5351
e758e19c
TT
53522020-04-08 Tom Tromey <tromey@adacore.com>
5353
5354 * windows-nat.c (windows_continue): Use matching_pending_stop and
5355 continue_last_debug_event.
5356 * nat/windows-nat.h (matching_pending_stop)
5357 (continue_last_debug_event): Declare.
5358 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5359 (matching_pending_stop, continue_last_debug_event): New
5360 functions.
5361
8d30e395
TT
53622020-04-08 Tom Tromey <tromey@adacore.com>
5363
5364 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5365 (handle_exception_result): Move to nat/windows-nat.h.
5366 (DEBUG_EXCEPTION_SIMPLE): Remove.
5367 (windows_nat::handle_ms_vc_exception): New function.
5368 (handle_exception): Move to nat/windows-nat.c.
5369 (get_windows_debug_event): Update.
5370 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5371 nat/windows-nat.c.
5372 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5373 (handle_exception_result): Move from windows-nat.c.
5374 (handle_exception): Declare.
5375 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5376 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5377 windows-nat.c.
5378
29de418d
TT
53792020-04-08 Tom Tromey <tromey@adacore.com>
5380
5381 * windows-nat.c (exception_count, event_count): Remove.
5382 (handle_exception, get_windows_debug_event)
5383 (do_initial_windows_stuff): Update.
5384
a816ba18
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * windows-nat.c (windows_nat::handle_load_dll)
5388 (windows_nat::handle_unload_dll): Rename. No longer static.
5389 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5390 Declare.
5391
a00caa12
TT
53922020-04-08 Tom Tromey <tromey@adacore.com>
5393
5394 * complaints.h (stop_whining): Declare at top-level.
5395 (complaint): Don't declare stop_whining.
5396
d41b524f
TT
53972020-04-08 Tom Tromey <tromey@adacore.com>
5398
5399 * windows-nat.c (windows_nat::handle_output_debug_string):
5400 Rename. No longer static.
5401 * nat/windows-nat.h (handle_output_debug_string): Declare.
5402
3c76026d
TT
54032020-04-08 Tom Tromey <tromey@adacore.com>
5404
5405 * windows-nat.c (current_process_handle, current_process_id)
5406 (main_thread_id, last_sig, current_event, last_wait_event)
5407 (current_windows_thread, desired_stop_thread_id, pending_stops)
5408 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5409 (display_selectors, fake_create_process)
5410 (get_windows_debug_event): Update.
5411 * nat/windows-nat.h (current_process_handle, current_process_id)
5412 (main_thread_id, last_sig, current_event, last_wait_event)
5413 (current_windows_thread, desired_stop_thread_id, pending_stops)
5414 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5415 * nat/windows-nat.c (current_process_handle, current_process_id)
5416 (main_thread_id, last_sig, current_event, last_wait_event)
5417 (current_windows_thread, desired_stop_thread_id, pending_stops)
5418 (siginfo_er): New globals. Move from windows-nat.c.
5419
9d8679cc
TT
54202020-04-08 Tom Tromey <tromey@adacore.com>
5421
5422 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5423 (handle_load_dll): Update.
5424 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5425
28688adf
TT
54262020-04-08 Tom Tromey <tromey@adacore.com>
5427
5428 * windows-nat.c (enum thread_disposition_type): Move to
5429 nat/windows-nat.h.
5430 (windows_nat::thread_rec): Rename from thread_rec. No longer
5431 static.
5432 (windows_add_thread, windows_nat_target::fetch_registers)
5433 (windows_nat_target::store_registers, handle_exception)
5434 (windows_nat_target::resume, get_windows_debug_event)
5435 (windows_nat_target::get_tib_address)
5436 (windows_nat_target::thread_name)
5437 (windows_nat_target::thread_alive): Update.
5438 * nat/windows-nat.h (enum thread_disposition_type): Move from
5439 windows-nat.c.
5440 (thread_rec): Declare.
5441
4834dad0
TT
54422020-04-08 Tom Tromey <tromey@adacore.com>
5443
5444 * windows-nat.c: Add "using namespace".
5445 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5446 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5447
65bafd5b
TT
54482020-04-08 Tom Tromey <tromey@adacore.com>
5449
5450 * nat/windows-nat.h (struct windows_thread_info): Declare
5451 destructor.
5452 * nat/windows-nat.c (~windows_thread_info): New.
5453
0a4afda3
TT
54542020-04-08 Tom Tromey <tromey@adacore.com>
5455
5456 PR gdb/22992
5457 * windows-nat.c (current_event): Update comment.
5458 (last_wait_event, desired_stop_thread_id): New globals.
5459 (struct pending_stop): New.
5460 (pending_stops): New global.
5461 (windows_nat_target) <stopped_by_sw_breakpoint>
5462 <supports_stopped_by_sw_breakpoint>: New methods.
5463 (windows_fetch_one_register): Add assertions. Adjust PC.
5464 (windows_continue): Handle pending stops. Suspend other threads
5465 when stepping. Use last_wait_event
5466 (wait_for_debug_event): New function.
5467 (get_windows_debug_event): Use wait_for_debug_event. Handle
5468 pending stops. Queue spurious stops.
5469 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5470 (windows_nat_target::kill): Use wait_for_debug_event.
5471 * nat/windows-nat.h (struct windows_thread_info)
5472 <stopped_at_software_breakpoint>: New field.
5473 * nat/windows-nat.c (windows_thread_info::resume): Clear
5474 stopped_at_software_breakpoint.
5475
8e61ebec
TT
54762020-04-08 Tom Tromey <tromey@adacore.com>
5477
5478 * windows-nat.c (enum thread_disposition_type): New.
5479 (thread_rec): Replace "get_context" parameter with "disposition";
5480 change type.
5481 (windows_add_thread, windows_nat_target::fetch_registers)
5482 (windows_nat_target::store_registers, handle_exception)
5483 (windows_nat_target::resume, get_windows_debug_event)
5484 (windows_nat_target::get_tib_address)
5485 (windows_nat_target::thread_name)
5486 (windows_nat_target::thread_alive): Update.
5487
98a03287
TT
54882020-04-08 Tom Tromey <tromey@adacore.com>
5489
5490 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5491 (windows_continue): Use windows_continue::resume.
5492 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5493 resume>: Declare new methods.
5494 * nat/windows-nat.c: New file.
5495 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5496
7c7411bc
TT
54972020-04-08 Tom Tromey <tromey@adacore.com>
5498
5499 * windows-nat.c (windows_add_thread, windows_delete_thread)
5500 (windows_nat_target::fetch_registers)
5501 (windows_nat_target::store_registers, fake_create_process)
5502 (windows_nat_target::resume, windows_nat_target::resume)
5503 (get_windows_debug_event, windows_nat_target::wait)
5504 (windows_nat_target::pid_to_str)
5505 (windows_nat_target::get_tib_address)
5506 (windows_nat_target::get_ada_task_ptid)
5507 (windows_nat_target::thread_name)
5508 (windows_nat_target::thread_alive): Use lwp, not tid.
5509
2950fdf7
TT
55102020-04-08 Tom Tromey <tromey@adacore.com>
5511
5512 * windows-nat.c (handle_exception)
5513 (windows_nat_target::thread_name): Update.
5514 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5515 <name>: Now unique_xmalloc_ptr.
5516
62fe396b
TT
55172020-04-08 Tom Tromey <tromey@adacore.com>
5518
5519 * windows-nat.c (thread_rec)
5520 (windows_nat_target::fetch_registers): Update.
5521 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5522 Update comment.
5523 <debug_registers_changed, reload_context>: Now bool.
5524
e9534bd2
TT
55252020-04-08 Tom Tromey <tromey@adacore.com>
5526
5527 * windows-nat.c (windows_add_thread): Use new.
5528 (windows_init_thread_list, windows_delete_thread): Use delete.
5529 (get_windows_debug_event): Update.
5530 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5531 destructor, and initializers.
5532
ae1f8880
TT
55332020-04-08 Tom Tromey <tromey@adacore.com>
5534
5535 * windows-nat.c (struct windows_thread_info): Remove.
5536 * nat/windows-nat.h: New file.
5537
55a1e039
TT
55382020-04-08 Tom Tromey <tromey@adacore.com>
5539
5540 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5541 (thread_rec, windows_add_thread, windows_delete_thread)
5542 (windows_continue): Update.
5543
93366324
TT
55442020-04-08 Tom Tromey <tromey@adacore.com>
5545
5546 * windows-nat.c (struct windows_thread_info): Remove typedef.
5547 (thread_head): Remove.
5548 (thread_list): New global.
5549 (thread_rec, windows_add_thread, windows_init_thread_list)
5550 (windows_delete_thread, windows_continue): Update.
5551
0f2265e2
SM
55522020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5553
5554 * windows-tdep.h (windows_init_abi): Add comment.
5555 (cygwin_init_abi): New declaration.
5556 * windows-tdep.c: Split signal enumeration in two, one for
5557 Windows and one for Cygwin.
5558 (windows_gdb_signal_to_target): Only deal with signal of the
5559 Windows OS ABI.
5560 (cygwin_gdb_signal_to_target): New function.
5561 (windows_init_abi): Rename to windows_init_abi_common, don't set
5562 gdb_signal_to_target gdbarch method. Add new new function with
5563 this name.
5564 (cygwin_init_abi): New function.
5565 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5566 comment. Don't call windows_init_abi.
5567 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5568 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5569 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5570 i386_windows_init_abi_common, don't call windows_init_abi. Add
5571 a new function of this name.
5572 (i386_cygwin_init_abi): New function.
5573 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5574 OS ABI Cygwin.
5575
3810f182
SM
55762020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5579 parameter.c.
5580 (dwarf2_read_gdb_index): Update.
5581
063f8e80
KR
55822020-04-07 Kamil Rytarowski <n54@gmx.com>
5583
5584 * nbsd-tdep.c: Include "objfiles.h".
5585 (nbsd_skip_solib_resolver): New.
5586 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5587
85a9510c 55882020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5589
5590 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5591 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5592 with DW_LLE_base_addressx are being emitted in DWARFv5.
5593 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5594 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5595 unsigned integer.
5596
9fc3eaae 55972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5598
5599 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5600 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5601 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5602 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5603 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5604 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5605 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5606
5607
41144253 56082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5609
5610 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5611 (read_loclist_index): New function definition.
5612 (lookup_loclist_base): New function definition.
5613 (read_loclist_header): New function definition.
5614 (dwarf2_cu): Add loclist_base and loclist_header field.
5615 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5616 (read_full_die_1): Read the value of DW_AT_loclists_base.
5617 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5618 (read_attribute_value): Handle DW_FORM_loclistx.
5619 (skip_one_die): Handle DW_FORM_loclistx.
5620 (loclist_header): New structure declaration.
5621 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5622
9f4e76a4
SM
56232020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5624
5625 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5626 constructor. Remove `addr` parameter from other constructor and
5627 add `per_cu` parameter.
5628 * dwarf2/read.c (create_partial_symtab): Update.
5629
25c11aca
TV
56302020-04-07 Tom de Vries <tdevries@suse.de>
5631
5632 PR symtab/25796
5633 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5634 (partial_die_info::fixup): Inherit has_const_value.
5635
5707e24b
TV
56362020-04-07 Tom de Vries <tdevries@suse.de>
5637
5638 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5639 symbols without address.
5640
05f00e22
KR
56412020-04-06 Kamil Rytarowski <n54@gmx.com>
5642
5643 * nbsd-nat.h (struct thread_info): Add forward declaration.
5644 (nbsd_nat_target::thread_alive): Add.
5645 (nbsd_nat_target::thread_name): Likewise.
5646 (nbsd_nat_target::update_thread_list): Likewise.
5647 (update_thread_list::post_attach): Likewise.
5648 (post_attach::pid_to_str): Likewise.
5649 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5650 (nbsd_thread_lister): Add.
5651 (nbsd_nat_target::thread_alive): Likewise.
5652 (nbsd_nat_target::thread_name): Likewise.
5653 (nbsd_add_threads): Likewise.
5654 (update_thread_list::post_attach): Likewise.
5655 (nbsd_nat_target::update_thread_list): Likewise.
5656 (post_attach::pid_to_str): Likewise.
5657
6ee448cc
TT
56582020-04-06 Tom Tromey <tromey@adacore.com>
5659
5660 * ada-valprint.c (print_variant_part): Extract the variant field.
5661 (print_field_values): Use the field as the outer value when
5662 recursing.
5663
dea34e8c
TT
56642020-04-06 Tom Tromey <tromey@adacore.com>
5665
5666 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5667 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5668 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5669 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5670 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5671
93689ce9
TT
56722020-04-06 Tom Tromey <tromey@adacore.com>
5673
5674 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5675 TYPE_CODE_ERROR.
5676
79743962
KR
56772020-04-06 Kamil Rytarowski <n54@gmx.com>
5678
5679 * nbsd-tdep.c: Include "gdbarch.h".
5680 Define enum with NetBSD signal numbers.
5681 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5682 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5683 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5684 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5685 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5686 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5687 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5688 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5689 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5690 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5691 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5692 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5693
9e7c9a03
HD
56942020-04-03 Hannes Domani <ssbssa@yahoo.de>
5695
5696 PR gdb/25325
5697 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5698
d9e49b61
TT
56992020-04-03 Tom Tromey <tromey@adacore.com>
5700
5701 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5702 Read constant block.
5703
e0fc5c3f
SM
57042020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5705
5706 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5707 (gdb_bfd_get_full_section_contents): New declaration.
5708 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5709 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5710 gdb_bfd_get_full_section_contents.
5711
e2ff18a0
SM
57122020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * exec.c (build_section_table): Replace internal_error with
5715 gdb_assert.
5716 (section_table_xfer_memory_partial): Likewise.
5717 * mdebugread.c (parse_partial_symbols): Likewise.
5718 * psymtab.c (lookup_partial_symbol): Likewise.
5719 * utils.c (wrap_here): Likewise.
5720
0830d301
TT
57212020-04-02 Tom Tromey <tromey@adacore.com>
5722
5723 * f-lang.c (build_fortran_types): Use arch_type to initialize
5724 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5725
e7da7f8f
TT
57262020-04-02 Tom Tromey <tromey@adacore.com>
5727
5728 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5729 of attributes.
5730
c90d28ac
AB
57312020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5732 Bernd Edlinger <bernd.edlinger@hotmail.de>
5733 Tom Tromey <tromey@adacore.com>
5734
5735 * buildsym.c (buildsym_compunit::record_line): Remove
5736 deduplication code.
5737
1aa98955
TV
57382020-04-02 Tom de Vries <tdevries@suse.de>
5739
5740 PR ada/24671
5741 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5742
d3214198
TV
57432020-04-02 Tom de Vries <tdevries@suse.de>
5744
5745 * dwarf2/read.c (dwarf2_gdb_index_functions,
5746 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5747 NULL.
5748 * psymtab.c (psym_lookup_global_symbol_language): New function.
5749 (psym_functions): Init psym_lookup_global_symbol_language with
5750 psym_lookup_global_symbol_language.
5751 * symfile-debug.c (debug_sym_quick_functions): Init
5752 lookup_global_symbol_language with NULL.
5753 * symfile.c (set_initial_language): Remove fixme comment.
5754 * symfile.h (struct quick_symbol_functions): Add
5755 lookup_global_symbol_language.
5756 * symtab.c (find_quick_global_symbol_language): New function.
5757 (find_main_name): Use find_quick_global_symbol_language.
5758
2836752f
SM
57592020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5760
5761 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5762
64dc2d4b
BE
57632020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5764
5765 * buildsym.c (record_line): Fix undefined behavior and preserve
5766 lines at eof.
5767
bbe3dc41
BE
57682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5769
5770 * buildsym.c (record_line): Fix the resizing condition.
5771
6b4a335b
TT
57722020-04-01 Tom Tromey <tom@tromey.com>
5773
5774 * value.h (value_literal_complex): Add comment.
5775 * valops.c (value_literal_complex): Refer to value.h.
5776
3638a098
TT
57772020-04-01 Tom Tromey <tom@tromey.com>
5778
5779 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5780 (scalar_type): New rule, from typebase.
5781 (typebase): Use scalar_type. Recognize complex types.
5782 (field_name): Handle FLOAT_KEYWORD.
5783 (ident_tokens): Add _Complex and __complex__.
5784
c34e8714
TT
57852020-04-01 Tom Tromey <tom@tromey.com>
5786
5787 PR exp/25299:
5788 * valarith.c (promotion_type, complex_binop): New functions.
5789 (scalar_binop): Handle complex numbers. Use promotion_type.
5790 (value_pos, value_neg, value_complement): Handle complex numbers.
5791
fa649bb7
TT
57922020-04-01 Tom Tromey <tom@tromey.com>
5793
5794 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5795 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5796 (parse_number): Handle complex numbers.
5797
981c08ce
TT
57982020-04-01 Tom Tromey <tom@tromey.com>
5799
5800 * c-valprint.c (c_decorations): Change complex suffix to "i".
5801
4c99290d
TT
58022020-04-01 Tom Tromey <tom@tromey.com>
5803
5804 * valprint.c (generic_value_print_complex): Use accessors.
5805 * value.h (value_real_part, value_imaginary_part): Declare.
5806 * valops.c (value_real_part, value_imaginary_part): New
5807 functions.
5808 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5809
5b930b45
TT
58102020-04-01 Tom Tromey <tom@tromey.com>
5811
5812 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5813 (read_range_type): Update.
5814 * mdebugread.c (basic_type): Update.
5815 * go-lang.c (build_go_types): Use init_complex_type.
5816 * gdbtypes.h (struct main_type) <complex_type>: New member.
5817 (init_complex_type): Update.
5818 (arch_complex_type): Don't declare.
5819 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5820 Make name if none given. Use alloc_type_copy. Look for cached
5821 complex type.
5822 (arch_complex_type): Remove.
5823 (gdbtypes_post_init): Use init_complex_type.
5824 * f-lang.c (build_fortran_types): Use init_complex_type.
5825 * dwarf2/read.c (read_base_type): Update.
5826 * d-lang.c (build_d_types): Use init_complex_type.
5827 * ctfread.c (read_base_type): Update.
5828
53cccef1
TBA
58292020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5830
5831 * infrun.c (stop_all_threads): Update assertion, plus when
5832 stopping threads, take into account that we might be trying
5833 to stop an all-stop target.
5834 (stop_waiting): Call 'stop_all_threads' if there exists a
5835 non-stop target.
5836
a0714d30
TBA
58372020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5838
5839 * target.h (exists_non_stop_target): New function declaration.
5840 * target.c (exists_non_stop_target): New function.
5841
60e22c1e
HD
58422020-04-01 Hannes Domani <ssbssa@yahoo.de>
5843
5844 PR gdb/24789
5845 * eval.c (is_integral_or_integral_reference): New function.
5846 (evaluate_subexp_standard): Allow integer references in
5847 pointer arithmetic.
5848
e139a727
TBA
58492020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850
5851 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5852 check for no ptid in the stop reply when the target is non-stop.
5853
e0802d59
TT
58542020-04-01 Tom Tromey <tromey@adacore.com>
5855
5856 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5857 "name" parameter to rvalue reference. Initialize m_name_holder.
5858 <lookup_name_info>: New overloads.
5859 <name>: Return gdb::string_view.
5860 <c_str>: New method.
5861 <make_ignore_params>: Update.
5862 <search_name_hash>: Update.
5863 <language_lookup_name>: Return const char *.
5864 <m_name>: Change type.
5865 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5866 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5867 (lookup_name_info::match_any): Update.
5868 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5869 Update.
5870 * minsyms.c (linkage_name_str): Update.
5871 * language.c (default_symbol_name_matcher): Update.
5872 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5873 Update.
5874 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5875 (ada_lookup_name_info::ada_lookup_name_info): Update.
5876 (literal_symbol_name_matcher): Update.
5877
8c072cb6
TT
58782020-04-01 Tom Tromey <tromey@adacore.com>
5879
5880 * psymtab.c (psymtab_search_name): Remove function.
5881 (psym_lookup_symbol): Create search name and lookup name here.
5882 (lookup_partial_symbol): Remove "name" parameter; add
5883 lookup_name.
5884 (psym_expand_symtabs_for_function): Update.
5885
6f29a534
TT
58862020-03-31 Joel Jones <joelkevinjones@gmail.com>
5887
5888 PR tui/25597:
5889 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5890
af62665e
TT
58912020-03-31 Tom Tromey <tromey@adacore.com>
5892
5893 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5894 memcpy.
5895
d1a89da5
NC
58962020-03-30 Nelson Chu <nelson.chu@sifive.com>
5897
5898 * features/riscv/32bit-csr.xml: Regenerated.
5899 * features/riscv/64bit-csr.xml: Regenerated.
5900
d8af9068
TT
59012020-03-30 Tom Tromey <tromey@adacore.com>
5902
5903 * ada-valprint.c (print_variant_part): Update.
5904 * ada-lang.h (ada_which_variant_applies): Update.
5905 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5906 outer_valaddr parameters; replace with "outer" value parameter.
5907 (to_fixed_variant_branch_type): Update.
5908
227c0bf4
PFC
59092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5910
5911 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5912 <list>. Remove inclusion of observable.h.
5913 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5914 (struct arch_lwp_info): New struct.
5915 (class ppc_linux_dreg_interface): New class.
5916 (struct ppc_linux_process_info): New struct.
5917 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5918 <low_new_clone, low_forget_process, low_prepare_to_resume>
5919 <copy_thread_dreg_state, mark_thread_stale>
5920 <mark_debug_registers_changed, register_hw_breakpoint>
5921 <clear_hw_breakpoint, register_wp, clear_wp>
5922 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5923 <num_memory_accesses, get_trigger_type>
5924 <create_watchpoint_request, hwdebug_point_cmp>
5925 <init_arch_lwp_info, get_arch_lwp_info>
5926 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5927 methods.
5928 <struct ptid_hash>: New inner struct.
5929 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5930 members.
5931 (saved_dabr_value, hwdebug_info, max_slots_number)
5932 (struct hw_break_tuple, struct thread_points, ppc_threads)
5933 (have_ptrace_hwdebug_interface)
5934 (hwdebug_find_thread_points_by_tid)
5935 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5936 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5937 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5938 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5939 use m_dreg_interface.
5940 (hwdebug_point_cmp): Change to...
5941 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5942 reference arguments instead of pointers.
5943 (ppc_linux_nat_target::ranged_break_num_registers): Use
5944 m_dreg_interface.
5945 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5946 m_dreg_interface. Call register_hw_breakpoint.
5947 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5948 m_dreg_interface. Call clear_hw_breakpoint.
5949 (get_trigger_type): Change to...
5950 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5951 comment.
5952 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5953 use m_dreg_interface. Call register_hw_breakpoint.
5954 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5955 use m_dreg_interface. Call clear_hw_breakpoint.
5956 (can_use_watchpoint_cond_accel): Change to...
5957 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5958 method. Update comment, use m_dreg_interface and
5959 m_process_info.
5960 (calculate_dvc): Change to...
5961 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5962 m_dreg_interface.
5963 (num_memory_accesses): Change to...
5964 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5965 (check_condition): Change to...
5966 (ppc_linux_nat_target::check_condition): ...this method.
5967 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5968 comment, use m_dreg_interface.
5969 (create_watchpoint_request): Change to...
5970 (ppc_linux_nat_target::create_watchpoint_request): ...this
5971 method. Use m_dreg_interface.
5972 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5973 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5974 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5975 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5976 (ppc_linux_nat_target::low_forget_process)
5977 (ppc_linux_nat_target::low_new_fork)
5978 (ppc_linux_nat_target::low_new_clone)
5979 (ppc_linux_nat_target::low_delete_thread)
5980 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5981 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5982 only call mark_thread_stale.
5983 (ppc_linux_thread_exit): Remove.
5984 (ppc_linux_nat_target::stopped_data_address): Change to...
5985 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5986 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5987 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5988 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5989 comment. Call low_stopped_data_address.
5990 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5991 m_dreg_interface.
5992 (ppc_linux_nat_target::masked_watch_num_registers): Use
5993 m_dreg_interface.
5994 (ppc_linux_nat_target::copy_thread_dreg_state)
5995 (ppc_linux_nat_target::mark_thread_stale)
5996 (ppc_linux_nat_target::mark_debug_registers_changed)
5997 (ppc_linux_nat_target::register_hw_breakpoint)
5998 (ppc_linux_nat_target::clear_hw_breakpoint)
5999 (ppc_linux_nat_target::register_wp)
6000 (ppc_linux_nat_target::clear_wp)
6001 (ppc_linux_nat_target::init_arch_lwp_info)
6002 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6003 (_initialize_ppc_linux_nat): Remove observer callback.
6004
4db10d8f
PFC
60052020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6006
6007 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6008 (ppc_linux_nat_target::auxv_parse)
6009 (ppc_linux_nat_target::read_description)
6010 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6011 Move up.
6012
1310c1b0
PFC
60132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6014
6015 * linux-nat.h (low_new_clone): New method.
6016 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6017
69b037c3
SM
60182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6021 (dbx_expand_psymtab): ... this.
6022 (start_psymtab): Update.
6023 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6024 (mdebug_expand_psymtab): ... this.
6025 (parse_partial_symbols): Update.
6026 (new_psymtab): Update.
6027 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6028 (xcoff_expand_psymtab): ... this.
6029 (xcoff_start_psymtab): Update.
6030
48993951
SM
60312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6034 <expand_dependencies>: ... this.
6035 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6036 (partial_symtab::expand_dependencies): ... this.
6037 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6038 Update.
6039 (dwarf2_psymtab::expand_psymtab): Update.
6040 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6041 * mdebugread.c (psymtab_to_symtab_1): Update.
6042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6043
3ad83046
SM
60442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * psympriv.h (discard_psymtab): Remove.
6047 * dbxread.c (dbx_end_psymtab): Update.
6048 * xcoffread.c (xcoff_end_psymtab): Update.
6049
4d1b9ab6
TT
60502020-03-28 Tom Tromey <tom@tromey.com>
6051
6052 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6053 comment.
6054
f1749218
TT
60552020-03-28 Tom Tromey <tom@tromey.com>
6056
6057 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6058
ebea7626
HD
60592020-03-27 Hannes Domani <ssbssa@yahoo.de>
6060
6061 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6062
a879b4d5
JB
60632020-03-26 John Baldwin <jhb@FreeBSD.org>
6064
6065 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6066
0826b30a
TT
60672020-03-26 Tom Tromey <tom@tromey.com>
6068
6069 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6070 (mark_common_block_symbol_computed, read_tag_string_type)
6071 (attr_to_dynamic_prop, read_subrange_type): Update.
6072 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6073 to be methods on struct attribute.
6074 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6075 (read_call_site_scope, partial_die_info::read)
6076 (partial_die_info::read, lookup_die_type, follow_die_ref):
6077 Update.
6078 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6079 from dwarf2_get_ref_die_offset.
6080 (attribute::constant_value): New method, from
6081 dwarf2_get_attr_constant_value.
6082 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6083 Declare method.
6084 <constant_value>: New method.
6085
2b2558bf
TT
60862020-03-26 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6089 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6090 (dwarf_type_encoding_name): Move to stringify.c.
6091 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6092 * dwarf2/stringify.c: New file.
6093 * dwarf2/stringify.h: New file.
6094
eeb64781
TT
60952020-03-26 Tom Tromey <tom@tromey.com>
6096
6097 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6098 Rewrite.
6099
a39fdb41
TT
61002020-03-26 Tom Tromey <tom@tromey.com>
6101
6102 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6103 methods.
6104 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6105 (lookup_ranges_base): Likewise.
6106 (read_cutu_die_from_dwo, read_full_die_1): Update.
6107
436c571c
TT
61082020-03-26 Tom Tromey <tom@tromey.com>
6109
6110 * dwarf2/read.c (read_import_statement, read_file_scope)
6111 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6112 (read_lexical_block_scope, read_call_site_scope)
6113 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6114 (handle_struct_member_die, process_structure_scope)
6115 (update_enumeration_type_from_children)
6116 (process_enumeration_scope, read_array_type, read_common_block)
6117 (read_namespace, read_module, read_subroutine_type): Update.
6118 (sibling_die): Remove.
6119
052c8bb8
TT
61202020-03-26 Tom Tromey <tom@tromey.com>
6121
6122 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6123 (build_type_psymtabs_reader, read_structure_type)
6124 (read_enumeration_type, read_full_die_1): Update.
6125 (dwarf2_attr_no_follow): Move to die.h.
6126 * dwarf2/die.h (struct die_info) <attr>: New method.
6127
2b24b6e4
TT
61282020-03-26 Tom Tromey <tom@tromey.com>
6129
6130 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6131 <base_address>: Now an optional.
6132 (dwarf2_find_base_address, dwarf2_rnglists_process)
6133 (dwarf2_ranges_process, fill_in_loclist_baton)
6134 (dwarf2_symbol_mark_computed): Update.
6135
c2d50fd0
TT
61362020-03-26 Tom Tromey <tom@tromey.com>
6137
6138 * dwarf2/read.c (struct die_info): Move to die.h.
6139 * dwarf2/die.h: New file.
6140
0df7ad3a
TT
61412020-03-26 Tom Tromey <tom@tromey.com>
6142
6143 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6144 * dwarf2/read.c
6145 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6146 Move to line-header.c.
6147 (read_checked_initial_length_and_offset, read_formatted_entries):
6148 Likewise.
6149 (dwarf_decode_line_header): Split into two.
6150 * dwarf2/line-header.c
6151 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6152 Move from read.c.
6153 (read_checked_initial_length_and_offset, read_formatted_entries):
6154 Likewise.
6155 (dwarf_decode_line_header): New function, split from read.c.
6156
86c0bb4c
TT
61572020-03-26 Tom Tromey <tom@tromey.com>
6158
6159 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6160 Declare method.
6161 * dwarf2/read.c (read_attribute_value): Update.
6162 (dwarf2_per_objfile::read_line_string): Rename from
6163 read_indirect_line_string.
6164 (read_formatted_entries): Update.
6165
2ef46c2f
TT
61662020-03-26 Tom Tromey <tom@tromey.com>
6167
6168 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6169 variable.
6170
4f9c1eda
TT
61712020-03-26 Tom Tromey <tom@tromey.com>
6172
6173 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6174 const.
6175 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6176 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6177 parameter const.
6178
5a0e026f
TT
61792020-03-26 Tom Tromey <tom@tromey.com>
6180
6181 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6182 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6183 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6184 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6185
8844c11b
TT
61862020-03-26 Tom Tromey <tom@tromey.com>
6187
6188 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6189 file_names_size, file_full_name, file_file_name>: Use const.
6190 <file_name_at, file_names>: Add const overload.
6191 * dwarf2/line-header.c (line_header::file_file_name)
6192 (line_header::file_full_name): Update.
6193
c90ec28a
TT
61942020-03-26 Tom Tromey <tom@tromey.com>
6195
6196 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6197 (macro_start_file, consume_improper_spaces)
6198 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6199 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6200 (dwarf_decode_macros): Move to macro.c.
6201 * dwarf2/macro.c: New file.
6202 * dwarf2/macro.h: New file.
6203 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6204
4f44ae6c
TT
62052020-03-26 Tom Tromey <tom@tromey.com>
6206
6207 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6208 method.
6209 * dwarf2/section.c: New method. From
6210 read_indirect_string_at_offset_from.
6211 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6212 (read_indirect_string_at_offset_from): Move to section.c.
6213 (read_indirect_string_at_offset): Rewrite.
6214 (read_indirect_line_string_at_offset): Remove.
6215 (read_indirect_string, read_indirect_line_string)
6216 (dwarf_decode_macro_bytes): Update.
6217
a0194fa8
TT
62182020-03-26 Tom Tromey <tom@tromey.com>
6219
6220 * dwarf2/section.h (struct dwarf2_section_info)
6221 <overload_complaint>: Declare.
6222 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6223 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6224 Rename from dwarf2_section_buffer_overflow_complaint.
6225 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6226 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6227
3d27bbdb
TT
62282020-03-26 Tom Tromey <tom@tromey.com>
6229
6230 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6231 Declare.
6232 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6233 Move from read.c.
6234 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6235 to section.c.
6236
9eac9650
TT
62372020-03-26 Tom Tromey <tom@tromey.com>
6238
6239 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6240
bf80d710
TT
62412020-03-26 Tom Tromey <tom@tromey.com>
6242
6243 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6244 "builder".
6245 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6246 parameter.
6247 (dwarf_decode_macros): Update.
6248
0314b390
TT
62492020-03-26 Tom Tromey <tom@tromey.com>
6250
6251 * dwarf2/read.c (read_attribute_value): Update.
6252 (read_indirect_string_from_dwz): Move to dwz.c; change into
6253 method.
6254 (dwarf_decode_macro_bytes): Update.
6255 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6256 * dwarf2/dwz.c: New file.
6257 * Makefile.in (COMMON_SFILES): Add dwz.c.
6258
9fda78b6
TT
62592020-03-26 Tom Tromey <tom@tromey.com>
6260
6261 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6262 * dwarf2/read.c: Add include.
6263 * dwarf2/index-write.c: Add include.
6264 * dwarf2/index-cache.c: Add include.
6265 * dwarf2/dwz.h: New file.
6266
33aa3c10
TT
62672020-03-25 Tom Tromey <tom@tromey.com>
6268
6269 * compile/compile-object-load.c (get_out_value_type): Mention
6270 correct symbol name in error message.
6271
d503b685
HD
62722020-03-25 Hannes Domani <ssbssa@yahoo.de>
6273
6274 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6275
7b1eff95
TV
62762020-03-25 Tom de Vries <tdevries@suse.de>
6277
6278 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6279 * symmisc.c (dump_symtab_1): Print user and includes fields.
6280 (maintenance_info_symtabs): Same.
6281
dd895392
AB
62822020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 PR gdb/25534
6285 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6286 (riscv_regcache_cooked_write): New function.
6287 (riscv_push_dummy_call): Use new function.
6288 (riscv_return_value): Likewise.
6289
5ab2fbf1
SM
62902020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6293 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6294 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6295 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6296 * infrun.c (follow_fork): Likewise.
6297 (follow_fork_inferior): Likewise.
6298 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6299 * linux-nat.h (class linux_nat_target): Likewise.
6300 * remote.c (class remote_target) <follow_fork>: Likewise.
6301 (remote_target::follow_fork): Likewise.
6302 * target-delegates.c: Re-generate.
6303 * target.c (default_follow_fork): Likewise.
6304 (target_follow_fork): Likewise.
6305 * target.h (struct target_ops) <follow_fork>: Likewise.
6306 (target_follow_fork): Likewise.
6307
a64fafb5
TV
63082020-03-24 Tom de Vries <tdevries@suse.de>
6309
6310 * psymtab.c (maintenance_info_psymtabs): Print user field.
6311
fe26d3a3
TT
63122020-03-20 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6315 const.
6316 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6317 const.
6318
c884cc46
SM
63192020-03-20 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * ptrace.m4: Don't check for ptrace declaration.
6322 * config.in: Re-generate.
6323 * configure: Re-generate.
6324 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6325 not defined.
6326
1ff700c2
KR
63272020-03-20 Kamil Rytarowski <n54@gmx.com>
6328
6329 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6330 `PTRACE_TYPE_RET'.
6331 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6332 * sparc-nat.c (gdb_ptrace): Likewise.
6333 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6334
f7d4f0b1
TT
63352020-03-20 Tom Tromey <tromey@adacore.com>
6336
6337 * c-exp.y (lex_one_token): Fix assert.
6338
f67210ff
TT
63392020-03-20 Tom Tromey <tromey@adacore.com>
6340
6341 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6342 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6343 strncpy call.
6344
1773be9e
TT
63452020-03-20 Tom Tromey <tromey@adacore.com>
6346
6347 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6348
70304be9
TT
63492020-03-20 Tom Tromey <tromey@adacore.com>
6350
6351 * ada-valprint.c (print_variant_part): Remove parameters; switch
6352 to value-based API.
6353 (print_field_values): Likewise.
6354 (ada_val_print_struct_union): Likewise.
6355 (ada_value_print_1): Update.
6356
9faa006d
KR
63572020-03-20 Kamil Rytarowski <n54@gmx.com>
6358
6359 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6360 nbsd_nat_target instead of inf_ptrace_target.
6361 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6362 nbsd_nat_target.
6363
4a90f062
KR
63642020-03-20 Kamil Rytarowski <n54@gmx.com>
6365
6366 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6367 it to the ptrace call.
6368 * (store_registers): Likewise.
6369
63702020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6371
6372 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6373 it to the ptrace call.
6374 * (store_registers): Likewise.
6375
2d07da27
LM
63762020-03-19 Luis Machado <luis.machado@linaro.org>
6377
6378 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6379 valid, fetch vg value from ptrace.
6380
f09db380
KR
63812020-03-19 Kamil Rytarowski <n54@gmx.com>
6382 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6383 * inf-ptrace.c: Likewise.
6384 * (gdb_ptrace): Add.
6385 * (inf_ptrace_target::resume): Update.
6386 * (inf_ptrace_target::xfer_partial): Likewise.
6387 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6388 * (inf_ptrace_peek_poke): Update.
6389
fcc7376e
KR
63902020-03-19 Kamil Rytarowski <n54@gmx.com>
6391
6392 * x86-bsd-nat.c (gdb_ptrace): New.
6393 * (x86bsd_dr_set): Add new argument `ptid'.
6394 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6395 x86bsd_dr_set_addr): Update.
6396
cada5fc9
AB
63972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 * remote.c (remote_target::process_stop_reply): Handle events for
6400 all threads differently.
6401
19a2740f
AB
64022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 * completer.c (completion_tracker::remove_completion): Define new
6405 function.
6406 * completer.h (completion_tracker::remove_completion): Declare new
6407 function.
6408 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6409 when adding a C++ function symbol.
6410
724fd9ba
AB
64112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6412
6413 * completer.c (completion_tracker::completion_hash_entry): Define
6414 new class.
6415 (advance_to_filename_complete_word_point): Call
6416 recompute_lowest_common_denominator.
6417 (completion_tracker::completion_tracker): Call discard_completions
6418 to setup the hash table.
6419 (completion_tracker::discard_completions): Allow for being called
6420 from the constructor, pass new equal function, and element deleter
6421 when constructing the hash table. Initialise new class member
6422 variables.
6423 (completion_tracker::maybe_add_completion): Remove use of
6424 m_entries_vec, and store more information into m_entries_hash.
6425 (completion_tracker::recompute_lcd_visitor): New function, most
6426 content taken from...
6427 (completion_tracker::recompute_lowest_common_denominator):
6428 ...here, this now just visits each item in the hash calling the
6429 above visitor.
6430 (completion_tracker::build_completion_result): Remove use of
6431 m_entries_vec, call recompute_lowest_common_denominator.
6432 * completer.h (completion_tracker::have_completions): Remove use
6433 of m_entries_vec.
6434 (completion_tracker::completion_hash_entry): Declare new class.
6435 (completion_tracker::recompute_lowest_common_denominator): Change
6436 function signature.
6437 (completion_tracker::recompute_lcd_visitor): Declare new function.
6438 (completion_tracker::m_entries_vec): Delete.
6439 (completion_tracker::m_entries_hash): Initialize to NULL.
6440 (completion_tracker::m_lowest_common_denominator_valid): New
6441 member variable.
6442 (completion_tracker::m_lowest_common_denominator_max_length): New
6443 member variable.
6444
5a82b8a1
KR
64452020-03-17 Kamil Rytarowski <n54@gmx.com>
6446
6447 * regformats/regdef.h: Put reg in gdb namespace.
6448
fb516a69
KR
64492020-03-17 Kamil Rytarowski <n54@gmx.com>
6450
6451 * i386-bsd-nat.c (gdb_ptrace): New.
6452 * (i386bsd_fetch_inferior_registers,
6453 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6454 * (i386bsd_fetch_inferior_registers,
6455 i386bsd_store_inferior_registers) Use gdb_ptrace.
6456
1c0aa1fb
KR
64572020-03-17 Kamil Rytarowski <n54@gmx.com>
6458
6459 * amd64-bsd-nat.c (gdb_ptrace): New.
6460 * (amd64bsd_fetch_inferior_registers,
6461 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6462 * (amd64bsd_fetch_inferior_registers,
6463 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6464
5ccd2fb7
KR
64652020-03-17 Kamil Rytarowski <n54@gmx.com>
6466
6467 * user-regs.c (user_reg::read): Rename to...
6468 (user_reg::xread): ...this.
6469 * (append_user_reg): Rename argument `read' to `xread'.
6470 * (user_reg_add_builtin): Likewise.
6471 * (user_reg_add): Likewise.
6472 * (value_of_user_reg): Likewise.
6473
2108a63a
KR
64742020-03-17 Kamil Rytarowski <n54@gmx.com>
6475
6476 * sparc-nat.c (gdb_ptrace): New.
6477 * sparc-nat.c (sparc_fetch_inferior_registers)
6478 (sparc_store_inferior_registers) Remove obsolete comment.
6479 * sparc-nat.c (sparc_fetch_inferior_registers)
6480 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6481 * sparc-nat.c (sparc_fetch_inferior_registers)
6482 (sparc_store_inferior_registers) Use gdb_ptrace.
6483
a225c9a8
KR
64842020-03-17 Kamil Rytarowski <n54@gmx.com>
6485
6486 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6487 it to the ptrace call.
6488 * sh-nbsd-nat.c (store_registers): Likewise.
6489
98097623
KR
64902020-03-17 Kamil Rytarowski <n54@gmx.com>
6491
6492 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6493 nbsd_nat_target instead of inf_ptrace_target.
6494 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6495 nbsd_nat_target.
6496
9e38d619
KR
64972020-03-17 Kamil Rytarowski <n54@gmx.com>
6498
6499 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6500
a2ecbe9f
KR
65012020-03-17 Kamil Rytarowski <n54@gmx.com>
6502
6503 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6504 <sys/sysctl.h>.
6505 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6506
58990295
TV
65072020-03-17 Tom de Vries <tdevries@suse.de>
6508
6509 PR gdb/23710
6510 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6511 fields.
6512 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6513 fields.
6514 (process_imported_unit_die): Skip import of c++ CUs.
6515
771dd3a8
TT
65162020-03-16 Tom Tromey <tom@tromey.com>
6517
6518 * p-valprint.c (pascal_object_print_value): Initialize
6519 base_value.
6520
817a7585
AK
65212020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6522 Shahab Vahedi <shahab@synopsys.com>
6523
6524 * Makefile.in: Add arch/arc.o
6525 * configure.tgt: Likewise.
6526 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6527 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6528 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6529 * arc-tdep.h (arc_read_description): Add proto type.
6530 * arch/arc.c: New file.
6531 * arch/arc.h: Likewise.
6532 * features/Makefile: Replace old target descriptions with new.
6533 * features/arc-arcompact.c: Remove.
6534 * features/arc-arcompact.xml: Likewise.
6535 * features/arc-v2.c: Likewise
6536 * features/arc-v2.xml: Likewise
6537 * features/arc/aux-arcompact.xml: New file.
6538 * features/arc/aux-v2.xml: Likewise.
6539 * features/arc/core-arcompact.xml: Likewise.
6540 * features/arc/core-v2.xml: Likewise.
6541 * features/arc/aux-arcompact.c: Generate.
6542 * features/arc/aux-v2.c: Likewise.
6543 * features/arc/core-arcompact.c: Likewise.
6544 * features/arc/core-v2.c: Likewise.
6545 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6546
67430cd0
TT
65472020-03-16 Tom Tromey <tromey@adacore.com>
6548
6549 PR gdb/25663:
6550 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6551 putting value into bcache.
6552
30efb6c7
SM
65532020-03-16 Simon Marchi <simon.marchi@efficios.com>
6554
6555 PR gdb/21500
6556 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6557 to...
6558 (amd64_windows_init_abi_common): ... this. Don't set size of
6559 long type.
6560 (amd64_windows_init_abi): New function.
6561 (amd64_cygwin_init_abi): New function.
6562 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6563 the Cygwin OS ABI.
6564 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6565 comment.
6566
8db52437
SM
65672020-03-16 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6570 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6571 (pe_import_directory_entry): New struct type.
6572 (is_linked_with_cygwin_dll): New function.
6573 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6574 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6575 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6576
5982a56a
SM
65772020-03-16 Simon Marchi <simon.marchi@efficios.com>
6578
6579 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6580 i386_cygwin_core_osabi_sniffer.
6581
7a1998df
SM
65822020-03-16 Simon Marchi <simon.marchi@efficios.com>
6583
6584 * i386-cygwin-tdep.c: Rename to...
6585 * i386-windows-tdep.c: ... this.
6586 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6587 i386-windows-tdep.c.
6588 * configure.tgt: Likewise.
6589
053205cc
SM
65902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6593 * osabi.c (gdb_osabi_names): Add "Windows".
6594 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6595 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6596 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6597 i386_cygwin_osabi_sniffer.
6598 (_initialize_i386_cygwin_tdep): Register OS ABI
6599 GDB_OSABI_WINDOWS for i386.
6600 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6601 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6602 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6603 for x86-64.
6604 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6605 when the target matches '*-*-mingw*'.
6606
fe4b2ee6
SM
66072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * defs.h (enum gdb_osabi): Move to...
6610 * osabi.h (enum gdb_osabi): ... here.
6611 * gdbarch.sh: Include osabi.h in gdbarch.h.
6612 * gdbarch.h: Re-generate.
6613
cb9b645d
SM
66142020-03-16 Simon Marchi <simon.marchi@efficios.com>
6615
6616 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6617 function.
6618 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6619
3293bbaf
TT
66202020-03-14 Tom Tromey <tom@tromey.com>
6621
6622 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6623 for C++.
6624 (c_type_print_modifier): Likewise. Add "language" parameter.
6625 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6626 (c_type_print_base_1): Update.
6627 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6628 constants.
6629 * type-stack.c (type_stack::insert): Handle tp_atomic and
6630 tp_restrict.
6631 (type_stack::follow_type_instance_flags): Likewise.
6632 (type_stack::follow_types): Likewise. Merge type-following code.
6633 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6634 (space_identifier, cv_with_space_id)
6635 (const_or_volatile_or_space_identifier_noopt)
6636 (const_or_volatile_or_space_identifier): Remove.
6637 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6638 rules.
6639 (ptr_operator, typebase): Update.
6640 (enum token_flag) <FLAG_C>: New constant.
6641 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6642 "_Atomic".
6643 (lex_one_token): Handle FLAG_C.
6644
154151a6
KR
66452020-03-14 Kamil Rytarowski <n54@gmx.com>
6646
6647 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6648 it to the ptrace call.
6649 * m68k-bsd-nat.c (store_registers): Likewise.
6650
bc107784
KR
66512020-03-14 Kamil Rytarowski <n54@gmx.com>
6652
6653 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6654 gdb_byte *.
6655 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6656 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6657 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6658
01a80117
KR
66592020-03-14 Kamil Rytarowski <n54@gmx.com>
6660
6661 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6662 nbsd_nat_target instead of inf_ptrace_target.
6663 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6664 nbsd_nat_target.
6665
f90280ca
KR
66662020-03-14 Kamil Rytarowski <n54@gmx.com>
6667
6668 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6669 register_t.
6670
6def66f1
KR
66712020-03-14 Kamil Rytarowski <n54@gmx.com>
6672
6673 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6674 it to the ptrace call.
6675 * alpha-bsd-nat.c (store_registers): Likewise.
6676
66eaca97
KR
66772020-03-14 Kamil Rytarowski <n54@gmx.com>
6678
6679 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6680 includes.
6681 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6682 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6683 fill_fpregset): Likewise.
6684
4fed520b
KR
66852020-03-14 Kamil Rytarowski <n54@gmx.com>
6686
6687 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6688 nbsd_nat_target instead of inf_ptrace_target.
6689 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6690 nbsd_nat_target.
6691
2190cf06
KR
66922020-03-14 Kamil Rytarowski <n54@gmx.com>
6693
6694 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6695 register_t.
6696
75c56d3d
KR
66972020-03-14 Kamil Rytarowski <n54@gmx.com>
6698
6699 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6700 it to the ptrace call.
6701 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6702 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6703 * arm-nbsd-nat.c (store_register): Likewise.
6704 * arm-nbsd-nat.c (store_regs): Likewise.
6705 * arm-nbsd-nat.c (store_fp_register): Likewise.
6706 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6707
6018d381
KR
67082020-03-14 Kamil Rytarowski <n54@gmx.com>
6709
6710 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6711 nbsd_nat_target instead of inf_ptrace_target.
6712 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6713 nbsd_nat_target.
6714
013f99f0
KR
67152020-03-14 Kamil Rytarowski <n54@gmx.com>
6716
6717 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6718 it to the ptrace call.
6719 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6720
12753073
KR
67212020-03-14 Kamil Rytarowski <n54@gmx.com>
6722
6227b330
KR
6723 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6724 it to the ptrace call.
6725 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6726
67272020-03-14 Kamil Rytarowski <n54@gmx.com>
6728
6729 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6730 gdb_byte *.
12753073
KR
6731 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6732
d5be5fa4
KR
67332020-03-14 Kamil Rytarowski <n54@gmx.com>
6734
6735 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6736 instead of inf_ptrace_target.
6737 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6738 nbsd_nat_target.
6739
8110f842
KR
67402020-03-14 Kamil Rytarowski <n54@gmx.com>
6741
6742 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6743 register_t.
6744
52feded7
KR
67452020-03-14 Kamil Rytarowski <n54@gmx.com>
6746
6747 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6748 register_t.
6749
25567eee
KR
67502020-03-14 Kamil Rytarowski <n54@gmx.com>
6751
6752 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6753 register_t.
6754
426a9c18
TT
67552020-03-13 Tom Tromey <tom@tromey.com>
6756
6757 * value.h (val_print): Don't declare.
6758 * valprint.h (val_print_array_elements)
6759 (val_print_scalar_formatted, generic_val_print): Don't declare.
6760 * valprint.c (generic_val_print_array): Take a struct value.
6761 (generic_val_print_ptr, generic_val_print_memberptr)
6762 (generic_val_print_bool, generic_val_print_int)
6763 (generic_val_print_char, generic_val_print_complex)
6764 (generic_val_print): Remove.
6765 (generic_value_print): Update.
6766 (do_val_print): Remove unused parameters. Don't call
6767 la_val_print.
6768 (val_print): Remove.
6769 (common_val_print): Update. Don't call value_check_printable.
6770 (val_print_scalar_formatted, val_print_array_elements): Remove.
6771 * rust-lang.c (rust_val_print): Remove.
6772 (rust_language_defn): Update.
6773 * p-valprint.c (pascal_val_print): Remove.
6774 (pascal_value_print_inner): Update.
6775 (pascal_object_print_val_fields, pascal_object_print_val):
6776 Remove.
6777 (pascal_object_print_static_field): Update.
6778 * p-lang.h (pascal_val_print): Don't declare.
6779 * p-lang.c (pascal_language_defn): Update.
6780 * opencl-lang.c (opencl_language_defn): Update.
6781 * objc-lang.c (objc_language_defn): Update.
6782 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6783 * m2-lang.h (m2_val_print): Don't declare.
6784 * m2-lang.c (m2_language_defn): Update.
6785 * language.h (struct language_defn) <la_val_print>: Remove.
6786 * language.c (unk_lang_value_print_inner): Rename. Change
6787 argument types.
6788 (unknown_language_defn, auto_language_defn): Update.
6789 * go-valprint.c (go_val_print): Remove.
6790 * go-lang.h (go_val_print): Don't declare.
6791 * go-lang.c (go_language_defn): Update.
6792 * f-valprint.c (f_val_print): Remove.
6793 * f-lang.h (f_value_print): Don't declare.
6794 * f-lang.c (f_language_defn): Update.
6795 * d-valprint.c (d_val_print): Remove.
6796 * d-lang.h (d_value_print): Don't declare.
6797 * d-lang.c (d_language_defn): Update.
6798 * cp-valprint.c (cp_print_value_fields)
6799 (cp_print_value_fields_rtti, cp_print_value): Remove.
6800 (cp_print_static_field): Update.
6801 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6802 (c_val_print_struct, c_val_print_union, c_val_print_int)
6803 (c_val_print_memberptr, c_val_print): Remove.
6804 * c-lang.h (c_val_print_array, cp_print_value_fields)
6805 (cp_print_value_fields_rtti): Don't declare.
6806 * c-lang.c (c_language_defn, cplus_language_defn)
6807 (asm_language_defn, minimal_language_defn): Update.
6808 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6809 (ada_val_print_enum): Take a struct value.
6810 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6811 (ada_val_print): Remove.
6812 (ada_value_print_1): Update.
6813 (printable_val_type): Remove.
6814 * ada-lang.h (ada_val_print): Don't declare.
6815 * ada-lang.c (ada_language_defn): Update.
6816
42331a1e
TT
68172020-03-13 Tom Tromey <tom@tromey.com>
6818
6819 * valprint.c (do_val_print): Update.
6820 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6821 a struct value.
6822 (value_to_value_object_no_release): Declare.
6823 * python/py-value.c (value_to_value_object_no_release): New
6824 function.
6825 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6826 struct value.
6827 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6828 function.
6829 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6830 a struct value.
6831 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6832 Declare.
6833 (gdbscm_apply_val_pretty_printer): Take a struct value.
6834 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6835 value.
6836 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6837 value.
6838 * extension-priv.h (struct extension_language_ops)
6839 <apply_val_pretty_printer>: Take a struct value.
6840 * cp-valprint.c (cp_print_value): Create a struct value.
6841 (cp_print_value): Update.
6842
3a916a97
TT
68432020-03-13 Tom Tromey <tom@tromey.com>
6844
6845 * ada-valprint.c (print_field_values): Call common_val_print.
6846
b59eac37
TT
68472020-03-13 Tom Tromey <tom@tromey.com>
6848
6849 * ada-valprint.c (val_print_packed_array_elements): Remove
6850 bitoffset and val parameters. Call common_val_print.
6851 (ada_val_print_string): Remove offset, address, and original_value
6852 parameters.
6853 (ada_val_print_array): Update.
6854 (ada_value_print_array): New function.
6855 (ada_value_print_1): Call it.
6856
03371129
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * ada-valprint.c (ada_value_print): Use common_val_print.
6860
2e088f8b
TT
68612020-03-13 Tom Tromey <tom@tromey.com>
6862
6863 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6864
39ef85a8
TT
68652020-03-13 Tom Tromey <tom@tromey.com>
6866
6867 * ada-valprint.c (ada_value_print_num): New function.
6868 (ada_value_print_1): Use it.
6869
b9fa6e07
TT
68702020-03-13 Tom Tromey <tom@tromey.com>
6871
6872 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6873
416595d6
TT
68742020-03-13 Tom Tromey <tom@tromey.com>
6875
6876 * ada-valprint.c (ada_value_print_ptr): New function.
6877 (ada_value_print_1): Use it.
6878
5b5e15ec
TT
68792020-03-13 Tom Tromey <tom@tromey.com>
6880
6881 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6882 call common_val_print.
6883 (ada_val_print_1): Update.
6884 (ada_value_print_1): New function.
6885 (ada_value_print_inner): Rewrite.
6886
fbf54e75
TT
68872020-03-13 Tom Tromey <tom@tromey.com>
6888
6889 * cp-valprint.c (cp_print_value_fields): Update.
6890 (cp_print_value): New function.
6891
64b653ca
TT
68922020-03-13 Tom Tromey <tom@tromey.com>
6893
6894 * m2-valprint.c (m2_value_print_inner): Use
6895 cp_print_value_fields.
6896 * cp-valprint.c (cp_print_value_fields): New function.
6897 * c-valprint.c (c_value_print_struct): New function.
6898 (c_value_print_inner): Use c_value_print_struct.
6899 * c-lang.h (cp_print_value_fields): Declare.
6900
6999f067
TT
69012020-03-13 Tom Tromey <tom@tromey.com>
6902
6903 * c-valprint.c (c_value_print_array): New function.
6904 (c_value_print_inner): Use it.
6905
ce80b8bd
TT
69062020-03-13 Tom Tromey <tom@tromey.com>
6907
6908 * c-valprint.c (c_value_print_memberptr): New function.
6909 (c_value_print_inner): Use it.
6910
2faac269
TT
69112020-03-13 Tom Tromey <tom@tromey.com>
6912
6913 * c-valprint.c (c_value_print_int): New function.
6914 (c_value_print_inner): Use it.
6915
da3e2c29
TT
69162020-03-13 Tom Tromey <tom@tromey.com>
6917
6918 * c-valprint.c (c_value_print_ptr): New function.
6919 (c_value_print_inner): Use it.
6920
50836231
TT
69212020-03-13 Tom Tromey <tom@tromey.com>
6922
6923 * c-valprint.c (c_value_print_inner): Rewrite.
6924
4f412b6e
TT
69252020-03-13 Tom Tromey <tom@tromey.com>
6926
6927 * valprint.c (generic_value_print_complex): New function.
6928 (generic_value_print): Use it.
6929
f5354008
TT
69302020-03-13 Tom Tromey <tom@tromey.com>
6931
6932 * valprint.c (generic_val_print_float): Don't call
6933 val_print_scalar_formatted.
6934 (generic_val_print, generic_value_print): Update.
6935
3eec3b05
TT
69362020-03-13 Tom Tromey <tom@tromey.com>
6937
6938 * valprint.c (generic_value_print_char): New function
6939 (generic_value_print): Use it.
6940
fdddfccb
TT
69412020-03-13 Tom Tromey <tom@tromey.com>
6942
6943 * valprint.c (generic_value_print_int): New function.
6944 (generic_value_print): Use it.
6945
6dde7521
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * valprint.c (generic_value_print_bool): New function.
6949 (generic_value_print): Use it.
6950
4112d2e6
TT
69512020-03-13 Tom Tromey <tom@tromey.com>
6952
6953 * valprint.c (generic_val_print_func): Simplify.
6954 (generic_val_print, generic_value_print): Update.
6955
65786af6
TT
69562020-03-13 Tom Tromey <tom@tromey.com>
6957
6958 * valprint.c (generic_val_print_flags): Remove.
6959 (generic_val_print, generic_value_print): Update.
6960 (val_print_type_code_flags): Add original_value parameter.
6961
40f3ce18
TT
69622020-03-13 Tom Tromey <tom@tromey.com>
6963
6964 * valprint.c (generic_val_print): Update.
6965 (generic_value_print): Update.
6966 * valprint.c (generic_val_print_enum): Don't call
6967 val_print_scalar_formatted.
6968
2a5b130b
TT
69692020-03-13 Tom Tromey <tom@tromey.com>
6970
6971 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6972 * valprint.c (generic_value_print_ptr): New function.
6973
abc66ce9
TT
69742020-03-13 Tom Tromey <tom@tromey.com>
6975
6976 * valprint.c (generic_value_print): Rewrite.
6977
07a32858
TT
69782020-03-13 Tom Tromey <tom@tromey.com>
6979
6980 * p-valprint.c (pascal_object_print_value_fields)
6981 (pascal_object_print_value): New functions.
6982
64d64d3a
TT
69832020-03-13 Tom Tromey <tom@tromey.com>
6984
6985 * p-valprint.c (pascal_value_print_inner): Rewrite.
6986
6a95a1f5
TT
69872020-03-13 Tom Tromey <tom@tromey.com>
6988
6989 * f-valprint.c (f_value_print_innner): Rewrite.
6990
59fcdac6
TT
69912020-03-13 Tom Tromey <tom@tromey.com>
6992
6993 * m2-valprint.c (m2_print_unbounded_array): New overload.
6994 (m2_print_unbounded_array): Update.
6995 (m2_print_array_contents): Take a struct value.
6996 (m2_value_print_inner): Rewrite.
6997
d133c3e1
TT
69982020-03-13 Tom Tromey <tom@tromey.com>
6999
7000 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7001 (d_value_print_inner): New function.
7002 * d-lang.h (d_value_print_inner): Declare.
7003 * d-lang.c (d_language_defn): Use d_value_print_inner.
7004
23b0f06b
TT
70052020-03-13 Tom Tromey <tom@tromey.com>
7006
7007 * go-valprint.c (go_value_print_inner): New function.
7008 * go-lang.h (go_value_print_inner): Declare.
7009 * go-lang.c (go_language_defn): Use go_value_print_inner.
7010
5f56f7cb
TT
70112020-03-13 Tom Tromey <tom@tromey.com>
7012
7013 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7014 API.
7015 (rust_val_print): Rewrite.
7016 (rust_value_print_inner): New function, from rust_val_print.
7017 (rust_language_defn): Use rust_value_print_inner.
7018
26792ee0
TT
70192020-03-13 Tom Tromey <tom@tromey.com>
7020
7021 * ada-valprint.c (ada_value_print_inner): New function.
7022 * ada-lang.h (ada_value_print_inner): Declare.
7023 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7024
24051bbe
TT
70252020-03-13 Tom Tromey <tom@tromey.com>
7026
7027 * f-valprint.c (f_value_print_innner): New function.
7028 * f-lang.h (f_value_print_innner): Declare.
7029 * f-lang.c (f_language_defn): Use f_value_print_innner.
7030
c0941be6
TT
70312020-03-13 Tom Tromey <tom@tromey.com>
7032
7033 * p-valprint.c (pascal_value_print_inner): New function.
7034 * p-lang.h (pascal_value_print_inner): Declare.
7035 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7036
62c4663d
TT
70372020-03-13 Tom Tromey <tom@tromey.com>
7038
7039 * m2-valprint.c (m2_value_print_inner): New function.
7040 * m2-lang.h (m2_value_print_inner): Declare.
7041 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7042
62182190
TT
70432020-03-13 Tom Tromey <tom@tromey.com>
7044
7045 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7046 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7047 * c-valprint.c (c_value_print_inner): New function.
7048 * c-lang.h (c_value_print_inner): Declare.
7049 * c-lang.c (c_language_defn, cplus_language_defn)
7050 (asm_language_defn, minimal_language_defn): Use
7051 c_value_print_inner.
7052
1e592a8a
TT
70532020-03-13 Tom Tromey <tom@tromey.com>
7054
7055 * p-valprint.c (pascal_object_print_value_fields): Now static.
7056 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7057
7fe471e9
TT
70582020-03-13 Tom Tromey <tom@tromey.com>
7059
7060 * c-valprint.c (c_val_print_array): Simplify.
7061
d121c6ce
TT
70622020-03-13 Tom Tromey <tom@tromey.com>
7063
7064 * valprint.c (value_print_array_elements): New function.
7065 * valprint.h (value_print_array_elements): Declare.
7066
4dba70ee
TT
70672020-03-13 Tom Tromey <tom@tromey.com>
7068
7069 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7070 * mips-tdep.c (mips_print_register): Use
7071 value_print_scalar_formatted.
7072
4f9ae810
TT
70732020-03-13 Tom Tromey <tom@tromey.com>
7074
7075 * valprint.h (value_print_scalar_formatted): Declare.
7076 * valprint.c (value_print_scalar_formatted): New function.
7077
156bfec9
TT
70782020-03-13 Tom Tromey <tom@tromey.com>
7079
7080 * valprint.h (generic_value_print): Declare.
7081 * valprint.c (generic_value_print): New function.
7082
2b4e573d
TT
70832020-03-13 Tom Tromey <tom@tromey.com>
7084
7085 * valprint.c (do_val_print): Call la_value_print_inner, if
7086 available.
7087 * rust-lang.c (rust_language_defn): Update.
7088 * p-lang.c (pascal_language_defn): Update.
7089 * opencl-lang.c (opencl_language_defn): Update.
7090 * objc-lang.c (objc_language_defn): Update.
7091 * m2-lang.c (m2_language_defn): Update.
7092 * language.h (struct language_defn) <la_value_print_inner>: New
7093 member.
7094 * language.c (unknown_language_defn, auto_language_defn): Update.
7095 * go-lang.c (go_language_defn): Update.
7096 * f-lang.c (f_language_defn): Update.
7097 * d-lang.c (d_language_defn): Update.
7098 * c-lang.c (c_language_defn, cplus_language_defn)
7099 (asm_language_defn, minimal_language_defn): Update.
7100 * ada-lang.c (ada_language_defn): Update.
7101
a1f6a07c
TT
71022020-03-13 Tom Tromey <tom@tromey.com>
7103
7104 * c-valprint.c (c_value_print): Use common_val_print.
7105
410cf315
TT
71062020-03-13 Tom Tromey <tom@tromey.com>
7107
7108 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7109
72a45c93
TT
71102020-03-13 Tom Tromey <tom@tromey.com>
7111
7112 * f-valprint.c (f77_print_array_1, f_val_print): Use
7113 common_val_print.
7114
040f66bd
TT
71152020-03-13 Tom Tromey <tom@tromey.com>
7116
7117 * riscv-tdep.c (riscv_print_one_register_info): Use
7118 common_val_print.
7119
a6e05a6c
TT
71202020-03-13 Tom Tromey <tom@tromey.com>
7121
7122 * mi/mi-main.c (output_register): Use common_val_print.
7123
3444c526
TT
71242020-03-13 Tom Tromey <tom@tromey.com>
7125
7126 * infcmd.c (default_print_one_register_info): Use
7127 common_val_print.
7128
c2a44efe
TT
71292020-03-13 Tom Tromey <tom@tromey.com>
7130
7131 * valprint.h (common_val_print_checked): Declare.
7132 * valprint.c (common_val_print_checked): New function.
7133 * stack.c (print_frame_arg): Use common_val_print_checked.
7134
b0c26e99
TT
71352020-03-13 Tom Tromey <tom@tromey.com>
7136
7137 * valprint.c (do_val_print): New function, from val_print.
7138 (val_print): Use do_val_print.
7139 (common_val_print): Use do_val_print.
7140
ce3acbe9
TT
71412020-03-13 Tom Tromey <tom@tromey.com>
7142
7143 * valprint.c (value_print): Use scoped_value_mark.
7144
96c7f873
TV
71452020-03-13 Tom de Vries <tdevries@suse.de>
7146
7147 PR symtab/25646
7148 * psymtab.c (partial_symtab::partial_symtab): Don't set
7149 globals_offset and statics_offset. Push element onto
7150 current_global_psymbols and current_static_psymbols stacks.
7151 (concat): New function.
7152 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7153 element from current_global_psymbols and current_static_psymbols
7154 stacks. Concat popped elements to global_psymbols and
7155 static_symbols.
7156 (add_psymbol_to_list): Use current_global_psymbols and
7157 current_static_psymbols stacks.
7158 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7159 current_static_psymbols fields.
7160
6ba0a321
CB
71612020-03-12 Christian Biesinger <cbiesinger@google.com>
7162
7163 * corelow.c (sniff_core_bfd): Remove.
7164 (class core_target) <m_core_vec>: Remove.
7165 (core_target::core_target): Update.
7166 (core_file_fns): Remove.
7167 (deprecated_add_core_fns): Remove.
7168 (default_core_sniffer): Remove.
7169 (sniff_core_bfd): Remove.
7170 (default_check_format): Remove.
7171 (gdb_check_format): Remove.
7172 (core_target_open): Update.
7173 (core_target::get_core_register_section): Update.
7174 (get_core_registers_cb): Update.
7175 (core_target::fetch_registers): Update.
7176 * gdbcore.h (struct core_fns): Remove.
7177 (deprecated_add_core_fns): Remove.
7178 (default_core_sniffer): Remove.
7179 (default_check_format): Remove.
7180
227031b2
TT
71812020-03-12 Tom Tromey <tom@tromey.com>
7182
7183 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7184 CORE_ADDR.
7185 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7186
53807e9f
TT
71872020-03-12 Tom Tromey <tom@tromey.com>
7188
7189 * remote.c (remote_target::download_tracepoint)
7190 (remote_target::enable_tracepoint)
7191 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7192 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7193 sprintf_vma.
7194
64f25102
TT
71952020-03-12 Tom Tromey <tom@tromey.com>
7196
7197 * symfile-mem.c: Update CORE_ADDR size assert.
7198
272cd5a3
SM
71992020-03-12 Simon Marchi <simon.marchi@efficios.com>
7200
7201 * selftest.m4: Move to gdbsupport/.
7202 * acinclude.m4: Update path to selftest.m4.
7203
74cd3f9d
SM
72042020-03-12 Simon Marchi <simon.marchi@efficios.com>
7205
7206 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7207 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7208 gdbarch-selfselftests.c and selftest-arch.c.
7209 (SUBDIR_UNITTESTS_OBS): Rename to...
7210 (SELFTESTS_OBS): ... this.
7211 (COMMON_SFILES): Remove disasm-selftests.c and
7212 gdbarch-selftests.c.
7213 * configure.ac: Don't add selftest-arch.{c,o} to
7214 CONFIG_{SRCS,OBS}.
7215 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7216 preprocessor conditions.
7217
db6878ac
SM
72182020-03-12 Simon Marchi <simon.marchi@efficios.com>
7219
7220 * configure.ac: Don't source bfd/development.sh.
7221 * selftest.m4: Modify comment.
7222 * configure: Re-generate.
7223
4d696a5c
SM
72242020-03-12 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7227 not "true" or "false".
7228 * configure: Re-generate.
7229
8dd8e1c7
CB
72302020-03-12 Christian Biesinger <cbiesinger@google.com>
7231
7232 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7233 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7234 renamed to arm_nbsd_supply_gregset.
7235 (fetch_register): Update to call arm_nbsd_supply_gregset.
7236 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7237 (arm_netbsd_nat_target::fetch_registers): Update.
7238 (fetch_elfcore_registers): Removed.
7239 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7240 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7241 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7242 not require NetBSD system headers.
7243 (arm_nbsd_regset): New struct.
7244 (arm_nbsd_iterate_over_regset_sections): New function.
7245 (arm_netbsd_init_abi_common): Updated to call
7246 set_gdbarch_iterate_over_regset_sections.
7247 * arm-nbsd-tdep.h: New file.
7248
dd69bf7a
KB
72492020-03-11 Kevin Buettner <kevinb@redhat.com>
7250
7251 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7252 recursion.
7253
a0761e34
SM
72542020-03-11 Simon Marchi <simon.marchi@efficios.com>
7255
7256 * configure: Re-generate.
7257
e7a82140
TT
72582020-03-11 Tom Tromey <tromey@adacore.com>
7259
7260 * ada-typeprint.c (print_choices): Fix comment.
7261
dcc050c8
AB
72622020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7265 previous item in the list, when the list has no items.
7266
1c33af77
TV
72672020-03-11 Tom de Vries <tdevries@suse.de>
7268
7269 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7270 PROP_LOCLIST handling code.
7271
8c95582d
AB
72722020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * buildsym-legacy.c (record_line): Pass extra parameter to
7275 record_line.
7276 * buildsym.c (buildsym_compunit::record_line): Take an extra
7277 parameter, reduce duplication in the line table, and record the
7278 is_stmt flag in the line table.
7279 * buildsym.h (buildsym_compunit::record_line): Add extra
7280 parameter.
7281 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7282 non-statement lines.
7283 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7284 this to the symtab builder.
7285 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7286 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7287 through to dwarf_record_line_1.
7288 * infrun.c (process_event_stop_test): When stepping, don't stop at
7289 a non-statement instruction, and only refresh the step info when
7290 we land in the middle of a line's range. Also add an extra
7291 comment.
7292 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7293 field.
7294 * record-btrace.c (btrace_find_line_range): Only record lines
7295 marked as is-statement.
7296 * stack.c (frame_show_address): Show the frame address if we are
7297 in a non-statement sal.
7298 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7299 (maintenance_print_one_line_table): Print a header for the is_stmt
7300 column, and include is_stmt information in the output.
7301 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7302 preference to non-statements.
7303 (find_pcs_for_symtab_line): Prefer is-statement entries.
7304 (find_line_common): Likewise.
7305 * symtab.h (struct linetable_entry): Add is_stmt field.
7306 (struct symtab_and_line): Likewise.
7307 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7308 arranging the line table.
7309
e4003a34
TV
73102020-03-07 Tom de Vries <tdevries@suse.de>
7311
7312 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7313 DIE.
7314
e8932576
TT
73152020-03-07 Tom Tromey <tom@tromey.com>
7316
7317 * valops.c (value_literal_complex): Remove obsolete comment.
7318 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7319 comment.
7320
29734269
SM
73212020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7322
7323 * infrun.h: Forward-declare thread_info.
7324 (set_step_info): Add thread_info parameter, add doc.
7325 * infrun.c (set_step_info): Add thread_info parameter, move doc
7326 to header.
7327 * infrun.c (process_event_stop_test): Pass thread to
7328 set_step_info call.
7329 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7330 set_step_info.
7331 (prepare_one_step): Add thread_info parameter, pass it to
7332 set_step_frame and prepare_one_step (recursive) call.
7333 (step_1): Pass thread to prepare_one_step call.
7334 (step_command_fsm::should_stop): Pass thread to
7335 prepare_one_step.
7336 (until_next_fsm): Pass thread to set_step_frame call.
7337 (finish_command): Pass thread to set_step_info call.
7338
b7d64b29
HD
73392020-03-06 Hannes Domani <ssbssa@yahoo.de>
7340
7341 * windows-tdep.c (windows_solib_create_inferior_hook):
7342 Check if inferior is running.
7343
09f2921c
TV
73442020-03-06 Tom de Vries <tdevries@suse.de>
7345
7346 * NEWS: Fix "the the".
7347 * ctfread.c: Same.
7348
fd760e79
TV
73492020-03-06 Tom de Vries <tdevries@suse.de>
7350
7351 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7352
20ea4a60
AB
73532020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7354
7355 * .dir-locals.el: Add a comment referencing the other copies of
7356 this file.
7357
0afbabf0
JB
73582020-03-05 John Baldwin <jhb@FreeBSD.org>
7359
7360 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7361 psargs.
7362
842806cb
TBA
73632020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7364
7365 * .gitattributes: New file.
7366
be1e3d3e
TT
73672020-03-04 Tom Tromey <tom@tromey.com>
7368
7369 * symmisc.c (print_symbol_bcache_statistics)
7370 (print_objfile_statistics): Update.
7371 * symfile.c (allocate_symtab): Use intern.
7372 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7373 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7374 macro_cache>: Remove.
7375 <string_cache>: New member.
7376 (struct objfile) <intern>: New methods.
7377 * elfread.c (elf_symtab_read): Use intern.
7378 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7379 (dwarf2_compute_name, dwarf2_physname)
7380 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7381 names.
7382 (guess_partial_die_structure_name): Update.
7383 (partial_die_info::fixup): Intern name.
7384 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7385 name.
7386 (dwarf2_name): Intern name. Update.
7387 * buildsym.c (buildsym_compunit::get_macro_table): Use
7388 string_cache.
7389
4e7625fd
TT
73902020-03-04 Tom Tromey <tom@tromey.com>
7391
7392 * jit.c (bfd_open_from_target_memory): Make "target" const.
7393 * corefile.c (gnutarget): Now const.
7394 * gdbcore.h (gnutarget): Now const.
7395
46f9f931
HD
73962020-03-04 Hannes Domani <ssbssa@yahoo.de>
7397
7398 * NEWS: Mention support for WOW64 processes.
7399 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7400 (amd64_windows_segment_register_p): Remove static.
7401 (_initialize_amd64_windows_nat): Update.
7402 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7403 * i386-windows-nat.c (context_offset): Update.
7404 (i386_mappings): Rename and remove static.
7405 (i386_windows_segment_register_p): Remove static.
7406 (_initialize_i386_windows_nat): Update.
7407 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7408 (STATUS_WX86_SINGLE_STEP): New macro.
7409 (EnumProcessModulesEx): New macro.
7410 (Wow64SuspendThread): New macro.
7411 (Wow64GetThreadContext): New macro.
7412 (Wow64SetThreadContext): New macro.
7413 (Wow64GetThreadSelectorEntry): New macro.
7414 (windows_set_context_register_offsets): Add static.
7415 (windows_set_segment_register_p): Likewise.
7416 (windows_add_thread): Adapt for WOW64 processes.
7417 (windows_fetch_one_register): Likewise.
7418 (windows_nat_target::fetch_registers): Likewise.
7419 (windows_store_one_register): Likewise.
7420 (display_selector): Likewise.
7421 (display_selectors): Likewise.
7422 (handle_exception): Likewise.
7423 (windows_continue): Likewise.
7424 (windows_nat_target::resume): Likewise.
7425 (windows_add_all_dlls): Likewise.
7426 (do_initial_windows_stuff): Likewise.
7427 (windows_nat_target::attach): Likewise.
7428 (windows_get_exec_module_filename): Likewise.
7429 (windows_nat_target::create_inferior): Likewise.
7430 (windows_xfer_siginfo): Likewise.
7431 (_initialize_loadable): Initialize Wow64SuspendThread,
7432 Wow64GetThreadContext, Wow64SetThreadContext,
7433 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7434 * windows-nat.h (windows_set_context_register_offsets):
7435 Remove declaration.
7436 (windows_set_segment_register_p): Likewise.
7437 (i386_windows_segment_register_p): Add declaration.
7438 (amd64_windows_segment_register_p): Likewise.
7439
440cf44e
LM
74402020-03-04 Luis Machado <luis.machado@linaro.org>
7441
7442 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7443 in "info registers" for AArch64/ARM.
7444
7445 The change caused "info registers" to not print GPR's.
7446
7447 gdb/ChangeLog:
7448
7449 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7450
7451 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7452 when reg->group is empty and reggroup is not.
7453
1009d92f
TT
74542020-03-03 Tom Tromey <tromey@adacore.com>
7455
7456 * dwarf2/frame.c (struct dwarf2_frame_cache)
7457 <checked_tailcall_bottom, entry_cfa_sp_offset,
7458 entry_cfa_sp_offset_p>: Remove members.
7459 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7460 (dwarf2_frame_prev_register): Don't call
7461 dwarf2_tailcall_sniffer_first.
7462 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7463 * frame-unwind.c (add_unwinder): New fuction.
7464 (frame_unwind_init): Use it. Add tailcall unwinder.
7465
5e5d66b6
AB
74662020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7467 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7468
7469 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7470 value should be printed as true.
7471
584cf46d
HD
74722020-03-03 Hannes Domani <ssbssa@yahoo.de>
7473
7474 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7475 (windows_init_abi): Set and use windows_so_ops.
7476
7b973adc
SDJ
74772020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7478
7479 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7480 when verifying if dealing with a convenience variable.
7481
bb7b70ab
LM
74822020-03-03 Luis Machado <luis.machado@linaro.org>
7483
7484 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7485
9822cb57
SM
74862020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7487
7488 * infrun.c (gdbarch_supports_displaced_stepping): New.
7489 (use_displaced_stepping): Break up conditions in smaller pieces.
7490 Use gdbarch_supports_displaced_stepping.
7491 (displaced_step_prepare_throw): Use
7492 gdbarch_supports_displaced_stepping.
7493
63e163f2
AB
74942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7495
7496 * NEWS: Mention new behaviour of the history filename.
7497 * top.c (write_history_p): Add comment.
7498 (show_write_history_p): Add header comment, give a different
7499 message when history writing is on, but the history filename is
7500 empty.
7501 (history_filename): Add comment.
7502 (history_filename_empty): New function.
7503 (show_history_filename): Add header comment, give a different
7504 message when the filename is empty.
7505 (init_history): Compare history_filename against nullptr, and only
7506 read history if the filename is not empty.
7507 (set_history_filename): Add header comment, and only make
7508 non-empty filenames absolute.
7509 (init_main): Make the filename argument to 'set history filename'
7510 optional.
7511
81b86b97
CB
75122020-03-02 Christian Biesinger <cbiesinger@google.com>
7513
7514 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7515 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7516 (fetch_fp_register): Update.
7517 (fetch_fp_regs): Update.
7518 (store_fp_register): Update.
7519 (store_fp_regs): Update.
7520 (arm_netbsd_nat_target::read_description): New function.
7521 (fetch_elfcore_registers): Update.
7522
24ed6739
AB
75232020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7526 general_thread if the stop reply is missing a thread-id.
7527 (remote_target::process_stop_reply): Use the first non-exited
7528 thread if the target didn't pass a thread-id.
7529 * infrun.c (do_target_wait): Move call to
7530 switch_to_inferior_no_thread to ....
7531 (do_target_wait_1): ... here.
7532
a84bb2a0
JT
75332020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7534
7535 * debuginfod-support.c: Include defs.h first.
7536
658dadf0
TV
75372020-02-28 Tom de Vries <tdevries@suse.de>
7538
7539 * symfile.c (set_initial_language): Use default language for lookup.
7540
4ebe4877
SM
75412020-02-28 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7544 reader variable, pass `this` to read_cutu_die_from_dwo.
7545
e5da1139
AM
75462020-02-27 Aaron Merey <amerey@redhat.com>
7547
7548 * source.c (open_source_file): Check for nullptr when computing
7549 srcpath.
7550
317f7127
TT
75512020-02-27 Tom Tromey <tromey@adacore.com>
7552
7553 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7554 member.
7555 (dwarf2_add_field): Don't update nfields.
7556 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7557
3104d9ee
AB
75582020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7559
7560 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7561 abs.
7562
b83470bf
TT
75632020-02-26 Tom Tromey <tom@tromey.com>
7564
7565 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7566 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7567 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7568 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7569 per_cu_data.
7570
edfe0a0c
TT
75712020-02-26 Tom Tromey <tom@tromey.com>
7572
7573 * dwarf2/index-write.c (psym_index_map): Change type.
7574 (add_address_entry_worker, write_one_signatured_type)
7575 (recursively_count_psymbols, recursively_write_psymbols)
7576 (class debug_names, psyms_seen_size, write_gdbindex)
7577 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7578
0d79cdc4
AM
75792020-02-26 Aaron Merey <amerey@redhat.com>
7580
7581 * Makefile.in: Handle optional debuginfod support.
7582 * NEWS: Update.
7583 * README: Add --with-debuginfod summary.
7584 * config.in: Regenerate.
7585 * configure: Regenerate.
7586 * configure.ac: Handle optional debuginfod support.
7587 * debuginfod-support.c: debuginfod helper functions.
7588 * debuginfod-support.h: Ditto.
7589 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7590 summary.
7591 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7592 when a dwz file cannot be found.
7593 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7594 debuginfo file cannot be found.
7595 * source.c (open_source_file): Query debuginfod servers when a
7596 source file cannot be found.
7597 * top.c (print_gdb_configuration): Include
7598 --{with,without}-debuginfod in the output.
7599
b65ce565
JG
76002020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7601
7602 * thread.c (thr_try_catch_cmd): Print thread name.
7603
d4c9a4f8
SM
76042020-02-26 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7607 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7608 dwarf2_fetch_die_type_sect_off): Move to...
7609 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7610 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7611 dwarf2_fetch_die_type_sect_off): ... here.
7612 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7613 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7614 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7615
0dce4280
TV
76162020-02-26 Tom de Vries <tdevries@suse.de>
7617
7618 PR gdb/25603
7619 * symfile.c (set_initial_language): Exit-early if
7620 language_mode == language_mode_manual.
7621
450a1bfc
SM
76222020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7623
7624 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7625 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7626 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7627
9e80cfa1
AB
76282020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * gdbtypes.c (create_array_type_with_stride): Handle negative
7631 array strides.
7632 * valarith.c (value_subscripted_rvalue): Likewise.
7633
09624f1f
LM
76342020-02-25 Luis Machado <luis.machado@linaro.org>
7635
7636 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7637
8cb5117c
SM
76382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7639
7640 * loc.h (dwarf2_get_die_type): Move to...
7641 * read.h (dwarf2_get_die_type): ... here.
7642 * read.c (dwarf2_get_die_type): Move doc to header.
7643
c325c44e
JB
76442020-02-25 Joel Brobecker <brobecker@adacore.com>
7645
7646 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7647 'gnulib/Makefile.in' to the list.
7648
4ac93832
TT
76492020-02-24 Tom Tromey <tom@tromey.com>
7650
7651 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7652 Remove.
7653 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7654 XOBNEWVEC.
7655
197400e8
TT
76562020-02-24 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7659 New method.
7660 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7661 (dw2_do_instantiate_symtab, dw2_get_file_names)
7662 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7663
76935768
TT
76642020-02-24 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7667 make_scoped_restore.
7668 (dwarf2_psymtab::read_symtab): Don't clear
7669 reading_partial_symbols.
7670
a88ef40d
TV
76712020-02-24 Tom de Vries <tdevries@suse.de>
7672
7673 PR gdb/25592
7674 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7675
c9af6521
TV
76762020-02-24 Tom de Vries <tdevries@suse.de>
7677
7678 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7679 commands layout next/prev/regs.
7680
5707a07a
TT
76812020-02-22 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7684 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7685
3b0fb49e
TT
76862020-02-22 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7689
283be8bf
TT
76902020-02-22 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7693 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7694 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7695 * tui/tui.c (_initialize_tui): Add usage text.
7696
ca793b96
TT
76972020-02-22 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui-win.c (tui_set_focus_command)
7700 (tui_set_win_height_command): Use error_no_arg.
7701 (_initialize_tui_win): Update help text.
7702 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7703
432b5c40
TT
77042020-02-22 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7707 * tui/tui-disasm.h (struct tui_disasm_window)
7708 <display_start_addr>: Declare.
7709 * tui/tui-source.h (struct tui_source_window)
7710 <display_start_addr>: Declare.
7711 * tui/tui-winsource.h (struct tui_source_window_base)
7712 <show_source_line, display_start_addr>: New methods.
7713 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7714 Rename and move to protected section.
7715 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7716 (tui_source_window_base::do_erase_source_content): Update.
7717 (tui_source_window_base::show_source_line): Now a method.
7718 (tui_source_window_base::show_source_content)
7719 (tui_source_window_base::tui_source_window_base)
7720 (tui_source_window_base::rerender)
7721 (tui_source_window_base::refill)
7722 (tui_source_window_base::do_scroll_horizontal)
7723 (tui_source_window_base::set_is_exec_point_at)
7724 (tui_source_window_base::update_breakpoint_info)
7725 (tui_source_window_base::update_exec_info): Update.
7726 * tui/tui-source.c (tui_source_window::set_contents)
7727 (tui_source_window::showing_source_p)
7728 (tui_source_window::do_scroll_vertical)
7729 (tui_source_window::location_matches_p)
7730 (tui_source_window::line_is_displayed): Update.
7731 (tui_source_window::display_start_addr): New method.
7732 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7733 (tui_disasm_window::do_scroll_vertical)
7734 (tui_disasm_window::location_matches_p): Update.
7735 (tui_disasm_window::display_start_addr): New method.
7736
01b1af32
TT
77372020-02-22 Tom Tromey <tom@tromey.com>
7738
7739 * NEWS: Add entry for gdb.register_window_type.
7740 * tui/tui-layout.h (window_factory): New typedef.
7741 (tui_register_window): Declare.
7742 * tui/tui-layout.c (saved_tui_windows): New global.
7743 (tui_apply_current_layout): Use it.
7744 (tui_register_window): New function.
7745 * python/python.c (do_start_initialization): Call
7746 gdbpy_initialize_tui.
7747 (python_GdbMethods): Add "register_window_type" function.
7748 * python/python-internal.h (gdbpy_register_tui_window)
7749 (gdbpy_initialize_tui): Declare.
7750 * python/py-tui.c: New file.
7751 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7752
fc96d20b
TT
77532020-02-22 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7756
935c78c0
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7760 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7761 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7762 (tui_set_win_focus_to): Move from tui-win.c.
7763
0240c8f1
TT
77642020-02-22 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7767 functions.
7768 (known_window_types): New global.
7769 (tui_get_window_by_name): Reimplement.
7770 (initialize_known_windows): New function.
7771 (validate_window_name): Rewrite.
7772 (_initialize_tui_layout): Call initialize_known_windows.
7773
fdb01f0c
TT
77742020-02-22 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7777 Remove constants.
7778 * tui/tui-winsource.h (struct tui_source_window_base)
7779 <tui_source_window_base>: Remove parameter.
7780 * tui/tui-winsource.c
7781 (tui_source_window_base::tui_source_window_base): Remove
7782 parameter.
7783 (tui_source_window_base::refill): Update.
7784 * tui/tui-stack.h (struct tui_locator_window)
7785 <tui_locator_window>: Update.
7786 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7787 Default the constructor.
7788 * tui/tui-regs.h (struct tui_data_item_window)
7789 <tui_data_item_window>: Default the constructor.
7790 (struct tui_data_window) <tui_data_window>: Likewise.
7791 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7792 Default the constructor.
7793 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7794 Default the constructor.
7795 <type>: Remove.
7796 (struct tui_win_info) <tui_win_info>: Default the constructor.
7797 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7798 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7799 Default the constructor.
7800
865a5aec
TT
78012020-02-22 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7804 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7805 * tui/tui-win.c (tui_resize_all): Don't call
7806 tui_delete_invisible_windows.
7807 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7808 done.
7809 (tui_set_layout): Update.
7810 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7811 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7812 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7813
e098d18c
TT
78142020-02-22 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7817 correctly.
7818
eb9c8874
TT
78192020-02-22 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7822
7eed1a8e
TT
78232020-02-22 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-winsource.h (struct tui_source_window_iterator)
7826 <inner_iterator>: New etytypedef.
7827 <tui_source_window_iterator>: Take "end" parameter.
7828 <tui_source_window_iterator>: Take iterator.
7829 <operator*, advance>: Update.
7830 <m_iter>: Change type.
7831 <m_end>: New field.
7832 (struct tui_source_windows) <begin, end>: Update.
7833 * tui/tui-layout.c (tui_windows): New global.
7834 (tui_apply_current_layout): Clear tui_windows.
7835 (tui_layout_window::apply): Update tui_windows.
7836 * tui/tui-data.h (tui_windows): Declare.
7837 (all_tui_windows): Now inline function.
7838 (class tui_window_iterator, struct all_tui_windows): Remove.
7839
7c043ba6
TT
78402020-02-22 Tom Tromey <tom@tromey.com>
7841
7842 PR tui/17850:
7843 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7844 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7845 "height" argument.
7846 (class tui_layout_window) <get_sizes>: Likewise.
7847 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7848 argument.
7849 <get_sizes>: Add "height" argument.
7850 <m_vertical>: New field.
7851 * tui/tui-layout.c (tui_layout_split::clone): Update.
7852 (tui_layout_split::get_sizes): Add "height" argument.
7853 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7854 (tui_new_layout_command): Parse "-horizontal".
7855 (_initialize_tui_layout): Update help string.
7856 (tui_layout_split::specification): Add "-horizontal" when needed.
7857 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7858 argument.
7859 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7860 New methods.
7861
6bc56648
TT
78622020-02-22 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-layout.h (enum tui_adjust_result): New.
7865 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7866 (class tui_layout_window) <adjust_size>: Return
7867 tui_adjust_result. Rewrite.
7868 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7869 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7870
c22fef7e
TT
78712020-02-22 Tom Tromey <tom@tromey.com>
7872
7873 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7874 parameter and return types.
7875 (class tui_layout_base) <specification>: Add "depth".
7876 (class tui_layout_window) <specification>: Add "depth".
7877 (class tui_layout_split) <specification>: Add "depth".
7878 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7879 and return types.
7880 (tui_new_layout_command): Parse sub-layouts.
7881 (_initialize_tui_layout): Update help string.
7882 (tui_layout_window::specification): Add "depth".
7883 (add_layout_command): Update.
7884
ee325b61
TT
78852020-02-22 Tom Tromey <tom@tromey.com>
7886
7887 * NEWS: Add "tui new-layout" item.
7888 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7889 Add new-layout command to help text.
7890 (validate_window_name): New function.
7891 (tui_new_layout_command): New function.
7892 (_initialize_tui_layout): Register "new-layout".
7893 (tui_layout_window::specification): New method.
7894 (tui_layout_window::specification): New method.
7895 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7896 method.
7897 (class tui_layout_window) <specification>: New method.
7898 (class tui_layout_split) <specification>: New method.
7899
416eb92d
TT
79002020-02-22 Tom Tromey <tom@tromey.com>
7901
7902 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7903 * tui/tui-win.c (window_name_completer): Update comment.
7904 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7905 Declare method.
7906 (class tui_layout_window) <replace_window>: Likewise.
7907 (class tui_layout_split) <replace_window>: Likewise.
7908 (tui_set_layout): Don't declare.
7909 (tui_set_initial_layout): Declare function.
7910 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7911 (asm_regs_layout): New globals.
7912 (tui_current_layout, show_layout): Remove.
7913 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7914 (find_layout, tui_apply_layout): New function.
7915 (layout_completer): Remove.
7916 (tui_next_layout): Reimplement.
7917 (tui_next_layout_command): New function.
7918 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7919 (tui_regs_layout): Reimplement.
7920 (tui_regs_layout_command): New function.
7921 (extract_display_start_addr): Rewrite.
7922 (next_layout, prev_layout): Remove.
7923 (tui_layout_window::replace_window): New method.
7924 (tui_layout_split::replace_window): New method.
7925 (destroy_layout): New function.
7926 (layout_list): New global.
7927 (add_layout_command): New function.
7928 (initialize_layouts): Update.
7929 (tui_layout_command): New function.
7930 (_initialize_tui_layout): Install "layout" commands.
7931 * tui/tui-data.h (enum tui_layout_type): Remove.
7932 (tui_current_layout): Don't declare.
7933
0dbc2fc7
TT
79342020-02-22 Tom Tromey <tom@tromey.com>
7935
7936 * tui/tui-regs.c (tui_reg_layout): Remove.
7937 (tui_reg_command): Use tui_regs_layout.
7938 * tui/tui-layout.h (tui_reg_command): Declare.
7939 * tui/tui-layout.c (tui_reg_command): New function.
7940
5afe342e
TT
79412020-02-22 Tom Tromey <tom@tromey.com>
7942
7943 * tui/tui.c (tui_rl_delete_other_windows): Call
7944 tui_remove_some_windows.
7945 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7946 Declare method.
7947 (class tui_layout_window) <remove_windows>: New method.
7948 (class tui_layout_split) <remove_windows>: Declare.
7949 (tui_remove_some_windows): Declare.
7950 * tui/tui-layout.c (tui_remove_some_windows): New function.
7951 (tui_layout_split::remove_windows): New method.
7952
427326a8
TT
79532020-02-22 Tom Tromey <tom@tromey.com>
7954
7955 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7956 * tui/tui-layout.h (tui_next_layout): Declare.
7957 * tui/tui-layout.c (tui_next_layout): New function.
7958
3fe12b6d
TT
79592020-02-22 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7962 correct coordinates.
7963
59b8b5d2
TT
79642020-02-22 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7967 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7968 DATA_WIN case.
7969
2a3d458b
TT
79702020-02-22 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7973 TUI_DISASM_WIN, not tui_win_list.
7974
3f0cbb04
TT
79752020-02-22 Tom Tromey <tom@tromey.com>
7976
7977 * valprint.c (generic_val_print_enum_1)
7978 (val_print_type_code_flags): Style member names.
7979 * rust-lang.c (val_print_struct, rust_print_enum)
7980 (rust_print_struct_def, rust_internal_print_type): Style member
7981 names.
7982 * p-valprint.c (pascal_object_print_value_fields): Style member
7983 names. Only call fprintf_symbol_filtered for static members.
7984 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7985 * f-valprint.c (f_val_print): Style member names.
7986 * f-typeprint.c (f_type_print_base): Style member names.
7987 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7988 call fprintf_symbol_filtered for static members.
7989 (cp_print_class_member): Style member names.
7990 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7991 member names.
7992 * ada-valprint.c (ada_print_scalar): Style enum names.
7993 (ada_val_print_enum): Likewise.
7994 * ada-typeprint.c (print_enum_type): Style enum names.
7995
d4d947ae
TT
79962020-02-21 Tom Tromey <tom@tromey.com>
7997
7998 * psympriv.h (struct partial_symtab): Update comment.
7999
e94e944b
TT
80002020-02-21 Tom Tromey <tromey@adacore.com>
8001
8002 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8003 type is CORE_ADDR.
8004
1eb73179
TV
80052020-02-21 Tom de Vries <tdevries@suse.de>
8006
8007 PR gdb/25534
8008 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8009 if dependencies[i]->user != NULL.
8010
4f180d53
AT
80112020-02-21 Ali Tamur <tamur@google.com>
8012
8013 * dwarf2/read.c (dwarf2_name): Add null check.
8014
22b6cd70
TT
80152020-02-20 Tom Tromey <tom@tromey.com>
8016
8017 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8018 ">=", in binary search.
8019 (dwarf2_find_containing_comp_unit): New overload.
8020 (run_test): New self-test.
8021 (_initialize_dwarf2_read): Register new test.
8022
bd0cf5a6
NC
80232020-02-20 Nelson Chu <nelson.chu@sifive.com>
8024
8025 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8026 * riscv-tdep.h: Likewise.
8027 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8028 rv32-only CSR.
8029 * features/riscv/64bit-csr.xml: Regenerated.
8030
3f702acd
SDJ
80312020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8032 Tom Tromey <tom@tromey.com>
8033
8034 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8035 of 'fputc_unfiltered'.
8036 (putchar_unfiltered): Call 'fputc_unfiltered'.
8037 (fputc_unfiltered): Call 'fputs_unfiltered'.
8038
d13c7322
AB
80392020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * config.in: Regenerate.
8042 * configure: Regenerate.
8043 * configure.ac: Add --with-python-libdir option.
8044 * main.c: Use WITH_PYTHON_LIBDIR.
8045
869d8950
TT
80462020-02-19 Tom Tromey <tom@tromey.com>
8047
8048 * symtab.c (general_symbol_info::compute_and_set_names): Use
8049 obstack_strndup. Simplify call to symbol_set_demangled_name.
8050
298e9637
SM
80512020-02-19 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * dwarf2/read.c (allocate_signatured_type_table,
8054 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8055 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8056 Remove objfile parameter, update all callers.
8057
08410482
DE
80582020-02-19 Doug Evans <dje@google.com>
8059
8060 PR rust/25535
8061 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8062 rust_enum_variant calculation.
8063
dfdeeca1
TT
80642020-02-19 Tom Tromey <tromey@adacore.com>
8065
8066 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8067
2ef5453b
TT
80682020-02-19 Tom Tromey <tromey@adacore.com>
8069
8070 * ada-lang.c (cache_symbol): Use obstack_strdup.
8071
9f1528a1
AB
80722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * configure: Regenerate.
8075
d3c22fa8
TT
80762020-02-19 Tom Tromey <tromey@adacore.com>
8077
8078 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8079 NULL check.
8080
bf84f706
MR
80812020-02-19 Maciej W. Rozycki <macro@wdc.com>
8082
8083 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8084
d1c9b20f
AB
80852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8086
8087 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8088 if GDBSERVER is not defined.
8089 (riscv_tdesc_cache): Likewise, also store const target_desc.
8090 (STATIC_IN_GDB): Define.
8091 (riscv_create_target_description): Update declaration with
8092 STATIC_IN_GDB.
8093 (riscv_lookup_target_description): New function, only define if
8094 GDBSERVER is not defined.
8095 * arch/riscv.h (riscv_create_target_description): Declare only
8096 when GDBSERVER is defined.
8097 (riscv_lookup_target_description): New declaration when GDBSERVER
8098 is not defined.
8099 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8100 (riscv_linux_read_features): ...this, and return
8101 riscv_gdbarch_features instead of target_desc.
8102 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8103 (riscv_linux_read_description): Rename to...
8104 (riscv_linux_read_features): ...this.
8105 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8106 Update to use riscv_gdbarch_features and
8107 riscv_lookup_target_description.
8108 * riscv-tdep.c (riscv_find_default_target_description): Use
8109 riscv_lookup_target_description instead of
8110 riscv_create_target_description.
8111
373d7ac0
SM
81122020-02-18 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * valprint.c (generic_val_print_enum_1): When printing a flag
8115 enum with value 0 and there is no enumerator with value 0, print
8116 just "0" instead of "(unknown: 0x0)".
8117
b29a2df0
SM
81182020-02-18 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * valprint.c (generic_val_print_enum_1): Print unknown part of
8121 flag enum in hex.
8122
6740f0cc
SM
81232020-02-18 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8126 flag enums to contain duplicate enumerators.
8127 * valprint.c (generic_val_print_enum_1): Update comment.
8128
edd45eb0
SM
81292020-02-18 Simon Marchi <simon.marchi@efficios.com>
8130
8131 * dwarf2/read.c: Include "count-one-bits.h".
8132 (update_enumeration_type_from_children): If an enumerator has
8133 multiple bits set, don't treat the enumeration as a "flag enum".
8134 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8135 of flag enums have 0 or 1 bit set.
8136
6d0cf446
BE
81372020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8138
8139 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8140 conversion.
8141 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8142 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8143 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8144 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8145 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8146
7001c1b7
SM
81472020-02-18 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8150
fdb61c6c
SM
81512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8154 displaced_step_closure_up.
8155 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8156 (struct displaced_step_closure_up):
8157 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8158 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8159 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8160 Likewise.
8161 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8162 * gdbarch.c, gdbarch.h: Re-generate.
8163 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8164 displaced_step_closure_up.
8165 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8166 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8167 * infrun.h (displaced_step_closure_up): New type alias.
8168 (struct displaced_step_inferior_state) <step_closure>: Change
8169 type to displaced_step_closure_up.
8170 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8171 displaced_step_closure_up.
8172 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8173
a4a38eb4
TT
81742020-02-14 Tom Tromey <tom@tromey.com>
8175
8176 * minidebug.c (gnu_debug_key): New global.
8177 (find_separate_debug_file_in_section): Use it.
8178
e8217e61
SM
81792020-02-14 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8182 std::unique_ptr.
8183 * gdbarch.c: Re-generate.
8184 * gdbarch.h: Re-generate.
8185 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8186 change.
8187 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8188 type to std::unique_ptr.
8189 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8190 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8191 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8192 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8193 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8194 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8195 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8196 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8197 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8198
d8d83535
SM
81992020-02-14 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8202 std::unique_ptr.
8203 (displaced_step_clear): Rename to...
8204 (displaced_step_reset): ... this. Just call displaced->reset ().
8205 (displaced_step_clear_cleanup): Rename to...
8206 (displaced_step_reset_cleanup): ... this.
8207 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8208 (displaced_step_fixup): Likewise.
8209 (resume_1): Likewise.
8210 (handle_inferior_event): Restore child's memory before calling
8211 displaced_step_fixup on the parent.
8212 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8213 to std::unique_ptr.
8214 <step_closure>: Change type to std::unique_ptr.
8215
5f661e03
SM
82162020-02-14 Simon Marchi <simon.marchi@efficios.com>
8217
8218 * arm-tdep.c: Include count-one-bits.h.
8219 (cleanup_block_store_pc): Use count_one_bits.
8220 (cleanup_block_load_pc): Use count_one_bits.
8221 (arm_copy_block_xfer): Use count_one_bits.
8222 (thumb2_copy_block_xfer): Use count_one_bits.
8223 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8224 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8225 (thumb_get_next_pcs_raw): Use count_one_bits.
8226 (arm_get_next_pcs_raw): Use count_one_bits_l.
8227 * arch/arm.c (bitcount): Remove.
8228 * arch/arm.h (bitcount): Remove.
8229
8084e579
TT
82302020-02-14 Tom Tromey <tromey@adacore.com>
8231
8232 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8233 Update.
8234 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8235 * dwarf2/loc.c (call_site_find_chain_1): Return
8236 unique_xmalloc_ptr.
8237 (call_site_find_chain): Likewise.
8238
258bf0ee
RB
82392020-02-14 Richard Biener <rguenther@suse.de>
8240
8241 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8242 on expression with division operators.
8243
f98a8458
AKS
82442020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8245
8246 * MAINTAINERS (Write After Approval): Adding myself.
8247
d1437c0e
TT
82482020-02-12 Tom Tromey <tom@tromey.com>
8249
8250 * event-loop.c (event_data, gdb_event, event_handler_func):
8251 Remove.
8252
3d4560f7
TT
82532020-02-12 Tom Tromey <tom@tromey.com>
8254
8255 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8256 (dwarf2_frame_objfile_data): Add comment.
8257 (find_comp_unit, set_comp_unit): New functions.
8258 (dwarf2_frame_find_fde): Use find_comp_unit.
8259 (dwarf2_build_frame_info): Use set_comp_unit.
8260
21982304
TT
82612020-02-12 Tom Tromey <tom@tromey.com>
8262
8263 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8264 (comp_unit): Don't initialize objfile.
8265 (execute_cfa_program): Add text_offset parameter.
8266 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8267 (dwarf2_frame_cache): Update.
8268 (dwarf2_build_frame_info): Don't set "objfile" member.
8269
4debb237
TT
82702020-02-12 Tom Tromey <tom@tromey.com>
8271
8272 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8273 (decode_frame_entry): Likewise.
8274 (dwarf2_build_frame_info): Update.
8275
0d404d44
TT
82762020-02-12 Tom Tromey <tom@tromey.com>
8277
8278 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8279 (decode_frame_entry_1): Use the comp_unit obstack.
8280
a7a3ae5c
TT
82812020-02-12 Tom Tromey <tom@tromey.com>
8282
8283 * dwarf2/frame.c (struct comp_unit): Add initializers and
8284 constructor.
8285 (dwarf2_frame_objfile_data): Store a comp_unit.
8286 (dwarf2_frame_find_fde): Update.
8287 (dwarf2_build_frame_info): Use "new".
8288
a9d65418
TT
82892020-02-12 Tom Tromey <tom@tromey.com>
8290
8291 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8292 (dwarf2_fde_table): Typedef for std::vector.
8293 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8294 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8295 (decode_frame_entry): Update.
8296 (dwarf2_build_frame_info): Use "new".
8297
7559c217
CB
82982020-02-12 Christian Biesinger <cbiesinger@google.com>
8299
8300 * arm-tdep.c (arm_gdbarch_init): Update.
8301 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8302 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8303 have_neon, is_m>: Change to bool.
8304
aeefc73c
CB
83052020-02-12 Christian Biesinger <cbiesinger@google.com>
8306
8307 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8308
d27b8e5f
TT
83092020-02-12 Tom Tromey <tom@tromey.com>
8310
8311 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8312
cd5900f3
HD
83132020-02-12 Hannes Domani <ssbssa@yahoo.de>
8314
8315 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8316 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8317
f056b22b
TT
83182020-02-11 Tom Tromey <tom@tromey.com>
8319
8320 * psymtab.h: Update comment.
8321
f92ff6b5
TT
83222020-02-11 Tom Tromey <tom@tromey.com>
8323
8324 * gdb_obstack.h (struct auto_obstack): Use
8325 DISABLE_COPY_AND_ASSIGN.
8326
3fd6912b
TT
83272020-02-11 Tom Tromey <tom@tromey.com>
8328
8329 * dwarf2/frame.h (struct objfile): Don't forward declare.
8330
69ed9b74
CB
83312020-02-11 Christian Biesinger <cbiesinger@google.com>
8332
8333 * cris-tdep.c (cris_supply_gregset): Change signature to match
8334 what struct regset expects.
8335 (cris_regset): New struct.
8336 (fetch_core_registers): Remove.
8337 (cris_iterate_over_regset_sections): New function.
8338 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8339 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8340
bda874f6
CB
83412020-02-11 Christian Biesinger <cbiesinger@google.com>
8342
8343 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8344 registers.
8345
754e1564
CB
83462020-02-11 Christian Biesinger <cbiesinger@google.com>
8347
8348 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8349
8ddd8e0e
SM
83502020-02-11 Simon Marchi <simon.marchi@efficios.com>
8351
8352 * configure: Re-generate.
8353
898e7f60
SM
83542020-02-11 Simon Marchi <simon.marchi@efficios.com>
8355
8356 * configure: Re-generate.
8357
58df732b
SM
83582020-02-11 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * acinclude: Update warning.m4 path.
8361 * warning.m4: Move to gdbsupport.
8362
da5bd37e
TT
83632020-02-11 Tom Tromey <tromey@adacore.com>
8364
8365 * remote.c (remote_console_output): Update.
8366 * printcmd.c (printf_command): Update.
8367 * event-loop.c (gdb_wait_for_event): Update.
8368 * linux-nat.c (sigchld_handler): Update.
8369 * remote-sim.c (gdb_os_write_stdout): Update.
8370 (gdb_os_flush_stdout): Update.
8371 (gdb_os_flush_stderr): Update.
8372 (gdb_os_write_stderr): Update.
8373 * exceptions.c (print_exception): Update.
8374 * remote-fileio.c (remote_fileio_func_read): Update.
8375 (remote_fileio_func_write): Update.
8376 * tui/tui.c (tui_enable): Update.
8377 * tui/tui-interp.c (tui_interp::init): Update.
8378 * utils.c (init_page_info): Update.
8379 (putchar_unfiltered, fputc_unfiltered): Update.
8380 (gdb_flush): Update.
8381 (emit_style_escape): Update.
8382 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8383 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8384 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8385 (stderr_file::write): Update.
8386 (stderr_file::puts): Update.
8387 * ui-file.h (ui_file_isatty, ui_file_write)
8388 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8389 (ui_file_puts): Don't declare.
8390
85f0dd3c
TV
83912020-02-10 Tom de Vries <tdevries@suse.de>
8392
8393 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8394 sentinel to char *.
8395
2e927613
TV
83962020-02-09 Tom de Vries <tdevries@suse.de>
8397
8398 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8399 filename if it matches "<artificial>".
8400
6bafc845
HD
84012020-02-09 Hannes Domani <ssbssa@yahoo.de>
8402
8403 * windows-tdep.c (struct enum_value_name): New struct.
8404 (create_enum): New function.
8405 (windows_get_siginfo_type): Create and use enum types.
8406
7928d571
HD
84072020-02-09 Hannes Domani <ssbssa@yahoo.de>
8408
8409 * NEWS: Mention $_siginfo support for Windows.
8410 * windows-nat.c (handle_exception): Set siginfo_er.
8411 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8412 (windows_xfer_siginfo): New function.
8413 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8414 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8415 (init_windows_gdbarch_data): New function.
8416 (get_windows_gdbarch_data): New function.
8417 (windows_get_siginfo_type): New function.
8418 (windows_init_abi): Register windows_get_siginfo_type.
8419 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8420
6751ebae
TT
84212020-02-08 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8424 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8425 <keep>: Declare method.
8426 <m_keep>: Remove member.
8427 <~cutu_reader>: Remove.
8428 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8429 (cutu_reader::cutu_reader): Update.
8430 (cutu_reader::keep): Rename from ~cutu_reader.
8431 (process_psymtab_comp_unit, build_type_psymtabs_1)
8432 (process_skeletonless_type_unit, load_partial_comp_unit)
8433 (load_full_comp_unit, dwarf2_read_addr_index)
8434 (read_signatured_type): Update.
8435
135f5437
TT
84362020-02-08 Tom Tromey <tom@tromey.com>
8437
8438 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8439 "want_partial_unit" parameter.
8440 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8441 Inline check for DW_TAG_partial_unit.
8442 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8443
9f66ff1c
TT
84442020-02-08 Tom Tromey <tom@tromey.com>
8445
8446 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8447 read.c.
8448 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8449 read.c.
8450
c8a7a66f
TT
84512020-02-08 Tom Tromey <tom@tromey.com>
8452
8453 * dwarf2/read.c (read_address): Move to comp-unit.c.
8454 (dwarf2_rnglists_process, dwarf2_ranges_process)
8455 (read_attribute_value, dwarf_decode_lines_1)
8456 (var_decode_location, decode_locdesc): Update.
8457 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8458 read.c. Remove "cu" parameter.
8459 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8460 method.
8461
8266302d
TT
84622020-02-08 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8465 (read_indirect_line_string): Update.
8466 * dwarf2/comp-unit.c (read_offset): Remove.
8467 (read_comp_unit_head): Update.
8468 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8469 method.
8470 (read_offset): Don't declare.
8471
4057dfde
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8475 * dwarf2/read.c (struct comp_unit_head): Move to
8476 dwarf2/comp-unit.h.
8477 (enum class rcuh_kind): Move to comp-unit.h.
8478 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8479 (read_comp_unit_head, error_check_comp_unit_head)
8480 (read_and_check_comp_unit_head): Move to comp-unit.c.
8481 (read_offset, dwarf_unit_type_name): Likewise.
8482 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8483 (cutu_reader::cutu_reader, read_call_site_scope)
8484 (find_partial_die, follow_die_offset): Update.
8485 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8486
24aa364d
TT
84872020-02-08 Tom Tromey <tom@tromey.com>
8488
8489 * dwarf2/read.c (read_offset_1): Move to leb.c.
8490 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8491 (dwarf_decode_macro_bytes): Update.
8492 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8493 * dwarf2/leb.h (read_offset): Declare.
8494
2c7d5afc
TT
84952020-02-08 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2/read.c (dwarf2_section_size): Remove.
8498 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8499 Update.
8500 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8501
4075cb26
TT
85022020-02-08 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/read.c (read_initial_length): Move to leb.c.
8505 * dwarf2/leb.h (read_initial_length): Declare.
8506 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8507 handle_nonstd parameter.
8508 * dwarf2/frame.c (read_initial_length): Remove.
8509 (decode_frame_entry_1): Update.
8510
09ba997f
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/loc.c (dwarf2_find_location_expression)
8514 (dwarf_evaluate_loc_desc::get_tls_address)
8515 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8516 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8517 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8518 (dwarf2_compile_property_to_c)
8519 (dwarf2_loc_desc_get_symbol_read_needs)
8520 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8521 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8522 (loclist_describe_location, loclist_tracepoint_var_ref)
8523 (loclist_generate_c_location): Update.
8524 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8525 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8526 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8527 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8528 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8529 (dwarf2_per_cu_data::addr_size)
8530 (dwarf2_per_cu_data::ref_addr_size)
8531 (dwarf2_per_cu_data::text_offset)
8532 (dwarf2_per_cu_data::addr_type): Now methods.
8533 (per_cu_header_read_in): Make per_cu "const".
8534 (dwarf2_version): Remove.
8535 (dwarf2_per_cu_data::int_type): Now a method.
8536 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8537 (set_die_type, read_array_type, read_subrange_index_type)
8538 (read_tag_string_type, read_subrange_type): Update.
8539 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8540 offset_size, ref_addr_size, text_offset, addr_type, version,
8541 objfile, int_type, addr_sized_int_type>: Declare methods.
8542
96c738c0
TT
85432020-02-08 Tom Tromey <tom@tromey.com>
8544
8545 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8546 Move earlier.
8547
8fdd972c
TT
85482020-02-08 Tom Tromey <tom@tromey.com>
8549
8550 * dwarf2/read.h (dwarf_line_debug): Declare.
8551 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8552 * dwarf2/read.c: Move line_header code to new files.
8553 (dwarf_line_debug): No longer static.
8554 * dwarf2/line-header.c: New file.
8555 * dwarf2/line-header.h: New file.
8556
03075812
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/read.c (struct line_header) <file_full_name,
8560 file_file_name>: Return unique_xmalloc_ptr.
8561 (line_header::file_file_name): Update.
8562 (line_header::file_full_name): Update.
8563 (dw2_get_file_names_reader): Update.
8564 (macro_start_file): Update.
8565
bb822404
TT
85662020-02-08 Tom Tromey <tom@tromey.com>
8567
8568 * dwarf2/read.c (struct line_header) <file_full_name,
8569 file_file_name>: Declare methods.
8570 (dw2_get_file_names_reader): Update.
8571 (file_file_name): Now a method.
8572 (file_full_name): Likewise.
8573 (macro_start_file): Update.
8574
009b64fc
TT
85752020-02-08 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/read.c (dwarf_always_disassemble)
8578 (show_dwarf_always_disassemble): Move to loc.c.
8579 (_initialize_dwarf2_read): Move "always-disassemble" registration
8580 to loc.c.
8581 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8582 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8583 static.
8584 (show_dwarf_always_disassemble): Move from read.c.
8585 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8586
5895093f
TT
85872020-02-08 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8590 (create_quick_file_names_table): Return htab_up.
8591 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8592 Update.
8593 * dwarf2/read.h (struct dwarf2_per_objfile)
8594 <quick_file_names_table>: Now htab_up.
8595
b3b32279
TT
85962020-02-08 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8599
1d33d811
TT
86002020-02-08 Tom Tromey <tom@tromey.com>
8601
8602 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8603 Rewrite.
8604 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8605 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8606 (abbrev_table::abbrev_table): No longer inline.
8607 (ABBREV_HASH_SIZE): Remove.
8608 (abbrev_table::m_abbrevs): Now an htab_up.
8609
86de1d91
TT
86102020-02-08 Tom Tromey <tom@tromey.com>
8611
8612 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8613 (cutu_reader): Update.
8614 (build_type_psymtabs_1): Update.
8615 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8616 (abbrev_table::alloc_abbrev): Update.
8617 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8618 (abbrev_table::read): New static method, renamed from
8619 abbrev_table_read_table.
8620 (abbrev_table::alloc_abbrev)
8621 (abbrev_table::add_abbrev): Now private.
8622 (abbrev_table::abbrev_table): Now private.
8623 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8624
0335378b
TT
86252020-02-08 Tom Tromey <tom@tromey.com>
8626
8627 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8628 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8629 htab_up.
8630
48b490f2
TT
86312020-02-08 Tom Tromey <tom@tromey.com>
8632
8633 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8634 htab_up.
8635 (lookup_dwo_unit_in_dwp): Update.
8636 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8637 on obstack.
8638
bc68fb19
TT
86392020-02-08 Tom Tromey <tom@tromey.com>
8640
8641 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8642 obstack.
8643
d15acc42
TT
86442020-02-08 Tom Tromey <tom@tromey.com>
8645
8646 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8647 line_header_hash.
8648 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8649 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8650 Change type to htab_up.
8651
eaa5fa8b
TT
86522020-02-08 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8655 htab_up. Don't allocate on obstack.
8656 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8657 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8658 Change type to htab_up.
8659
b0b6a987
TT
86602020-02-08 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8663 Change type to htab_up.
8664 * dwarf2/read.c (create_signatured_type_table_from_index)
8665 (create_signatured_type_table_from_debug_names)
8666 (create_all_type_units, add_type_unit)
8667 (lookup_dwo_signatured_type, lookup_signatured_type)
8668 (process_skeletonless_type_unit): Update.
8669 (create_debug_type_hash_table, create_debug_types_hash_table):
8670 Change type of types_htab.
8671 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8672 htab_up. Don't allocate on obstack.
8673 (create_cus_hash_table): Change type of cus_htab parameter.
8674 (struct dwo_file) <cus, tus>: Now htab_up.
8675 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8676 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8677 (queue_and_load_all_dwo_tus): Update.
8678 * dwarf2/index-write.c (write_gdbindex): Update.
8679 (write_debug_names): Update.
8680
39856def
TT
86812020-02-08 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8684 dwarf2/read.c. Remove "next" member. Add constructor ntad
8685 destructor.
8686 (struct dwarf2_per_objfile) <queue>: New member.
8687 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8688 dwarf2/read.h.
8689 (dwarf2_queue, dwarf2_queue_tail): Remove.
8690 (class dwarf2_queue_guard): Add parameter to constructor. Use
8691 DISABLE_COPY_AND_ASSIGN.
8692 <m_per_objfile>: New member.
8693 <~dwarf2_queue_guard>: Rewrite.
8694 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8695 Update.
8696 (~dwarf2_queue_item): New.
8697
3e225074
TT
86982020-02-08 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/read.c (struct die_info) <has_children>: New member.
8701 (dw2_get_file_names_reader): Remove has_children.
8702 (dw2_get_file_names): Update.
8703 (read_cutu_die_from_dwo): Remove has_children.
8704 (cutu_reader::init_tu_and_read_dwo_dies)
8705 (cutu_reader::cutu_reader): Update.
8706 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8707 Remove has_children.
8708 (build_type_psymtabs_1, process_skeletonless_type_unit)
8709 (load_partial_comp_unit, load_full_comp_unit): Update.
8710 (create_dwo_cu_reader): Remove has_children.
8711 (create_cus_hash_table, read_die_and_children): Update.
8712 (read_full_die_1,read_full_die): Remove has_children.
8713 (read_signatured_type): Update.
8714 (class cutu_reader) <has_children>: Remove.
8715
82ca8957
TT
87162020-02-08 Tom Tromey <tom@tromey.com>
8717
8718 * dwarf2/expr.c: Rename from dwarf2expr.c.
8719 * dwarf2/expr.h: Rename from dwarf2expr.h.
8720 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8721 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8722 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8723 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8724 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8725 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8726 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8727 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8728 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8729 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8730 * dwarf2/loc.c: Rename from dwarf2loc.c.
8731 * dwarf2/loc.h: Rename from dwarf2loc.h.
8732 * dwarf2/read.c: Rename from dwarf2read.c.
8733 * dwarf2/read.h: Rename from dwarf2read.h.
8734 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8735 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8736 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8737 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8738 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8739 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8740 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8741 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8742 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8743 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8744 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8745 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8746 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8747 Update.
8748 * Makefile.in (COMMON_SFILES): Update.
8749 (HFILES_NO_SRCDIR): Update.
8750
9e35d499
TT
87512020-02-08 Tom Tromey <tom@tromey.com>
8752
8753 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8754 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8755
1eba2311
TT
87562020-02-08 Tom Tromey <tom@tromey.com>
8757
8758 * dwarf2read.h (struct die_info): Don't declare.
8759
e41c2da2
TT
87602020-02-08 Tom Tromey <tom@tromey.com>
8761
8762 * dwarf2read.h (die_info_ptr): Remove typedef.
8763
4fc6c0d5
TT
87642020-02-08 Tom Tromey <tom@tromey.com>
8765
8766 * dwarf2read.c (read_call_site_scope)
8767 (handle_data_member_location, dwarf2_add_member_fn)
8768 (mark_common_block_symbol_computed, read_common_block)
8769 (attr_to_dynamic_prop, partial_die_info::read)
8770 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8771 (dwarf2_symbol_mark_computed, set_die_type): Update.
8772 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8773 method.
8774 (attr_form_is_block): Don't declare.
8775 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8776
cd6c91b4
TT
87772020-02-08 Tom Tromey <tom@tromey.com>
8778
8779 * dwarf2read.c (dwarf2_find_base_address, )
8780 (read_call_site_scope, rust_containing_type)
8781 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8782 (handle_data_member_location, dwarf2_add_member_fn)
8783 (get_alignment, read_structure_type, process_structure_scope)
8784 (mark_common_block_symbol_computed, read_common_block)
8785 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8786 (partial_die_info::read, read_attribute_value, new_symbol)
8787 (lookup_die_type, dwarf2_get_ref_die_offset)
8788 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8789 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8790 (dwarf2_symbol_mark_computed): Update.
8791 * dwarf2/attribute.h (struct attribute) <value_as_address,
8792 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8793 methods.
8794 (value_as_address, attr_form_is_section_offset)
8795 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8796 * dwarf2/attribute.c (attribute::value_as_address)
8797 (attribute::form_is_section_offset, attribute::form_is_constant)
8798 (attribute::form_is_ref): Now methods.
8799
162dce55
TT
88002020-02-08 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2read.c (struct attribute, DW_STRING)
8803 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8804 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8805 (attr_form_is_block, attr_form_is_section_offset)
8806 (attr_form_is_constant, attr_form_is_ref): Move.
8807 * dwarf2/attribute.h: New file.
8808 * dwarf2/attribute.c: New file, from dwarf2read.c.
8809 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8810
3054dd54
TT
88112020-02-08 Tom Tromey <tom@tromey.com>
8812
8813 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8814 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8815 Move.
8816 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8817 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8818 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8819 abbrev.c.
8820 * dwarf2/abbrev.h: New file.
8821 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8822 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8823
96b79293
TT
88242020-02-08 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8827 (dwarf2_section_size, dwarf2_get_section_info)
8828 (create_signatured_type_table_from_debug_names)
8829 (create_addrmap_from_aranges, read_debug_names_from_section)
8830 (get_gdb_index_contents_from_section, read_comp_unit_head)
8831 (error_check_comp_unit_head, read_abbrev_offset)
8832 (create_debug_type_hash_table, init_cu_die_reader)
8833 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8834 (read_comp_units_from_section, create_cus_hash_table)
8835 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8836 (create_dwp_v2_section, dwarf2_rnglists_process)
8837 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8838 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8839 (read_indirect_string_from_dwz, read_addr_index_1)
8840 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8841 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8842 (fill_in_loclist_baton): Update.
8843 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8844 get_containing_section, get_bfd_owner, get_bfd_section,
8845 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8846 (dwarf2_read_section, get_section_name, get_section_file_name)
8847 (get_containing_section, get_section_bfd_owner)
8848 (get_section_bfd_section, get_section_name, get_section_file_name)
8849 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8850 declare.
8851 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8852 (dwarf2_section_info::get_bfd_owner)
8853 (dwarf2_section_info::get_bfd_section)
8854 (dwarf2_section_info::get_name)
8855 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8856 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8857 (dwarf2_section_info::read): Now methods.
8858 * dwarf-index-write.c (class debug_names): Update.
8859
2c86cff9
TT
88602020-02-08 Tom Tromey <tom@tromey.com>
8861
8862 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8863 Move to dwarf2/section.h.
8864 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8865 (get_section_bfd_section, get_section_name)
8866 (get_section_file_name, get_section_id, get_section_flags)
8867 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8868 dwarf2/section.c.
8869 * dwarf2/section.h: New file.
8870 * dwarf2/section.c: New file, from dwarf2read.c.
8871 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8872
f4382c45
TT
88732020-02-08 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8876 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8877 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8878 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8879 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8880 * dwarf2/leb.h: New file, from dwarf2read.c.
8881 * dwarf2/leb.c: New file, from dwarf2read.c.
8882 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8883 Remove.
8884 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8885 (COMMON_SFILES): Add dwarf2/leb.c.
8886
01840b7a
JB
88872020-02-08 Joel Brobecker <brobecker@adacore.com>
8888
8889 GDB 9.1 released.
8890
dfcb27e4
IB
88912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8892
8893 PR gdb/25190:
aac66a4c
SM
8894 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8895 * gdb/remote.c (remote_console_output): Update.
8896 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8897 (ui_file_puts): ...this.
8898 * gdb/ui-file.h (ui_file_puts): Add declaration.
8899 * gdb/utils.c (emit_style_escape): Update.
8900 (flush_wrap_buffer): Update.
8901 (fputs_maybe_filtered): Update.
8902 (fputs_unfiltered): Add function.
dfcb27e4 8903
faa17681
IB
89042020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8905
aac66a4c
SM
8906 * gdb/event-loop.c (gdb_wait_for_event): Update.
8907 * gdb/printcmd.c (printf_command): Update.
8908 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8909 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8910 (gdb_os_flush_stderr): Update.
8911 * gdb/remote.c (remote_console_output): Update.
8912 * gdb/ui-file.c (gdb_flush): Rename to...
8913 (ui_file_flush): ...this.
8914 (stderr_file::write): Update.
8915 (stderr_file::puts): Update.
8916 * gdb/ui-file.h (gdb_flush): Rename to...
8917 (ui_file_flush): ...this.
8918 * gdb/utils.c (gdb_flush): Add function.
8919 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8920
5abbbe1d
TT
89212020-02-07 Tom Tromey <tromey@adacore.com>
8922
8923 PR breakpoints/24915:
8924 * source.c (find_and_open_source): Do not check basenames_may_differ.
8925
919adfe8
TT
89262020-02-07 Tom Tromey <tom@tromey.com>
8927
8928 * README: Update gdbserver documentation.
8929 * gdbserver: Move to top level.
8930 * configure.tgt (build_gdbserver): Remove.
8931 * configure.ac: Remove --enable-gdbserver.
8932 * configure: Rebuild.
8933 * Makefile.in (distclean): Don't mention gdbserver.
8934
1d5d29e7
SV
89352020-02-06 Shahab Vahedi <shahab@synopsys.com>
8936
8937 * source-cache.c (source_cache::ensure): Surround
8938 get_plain_source_lines with a try/catch.
8939 (source_cache::get_line_charpos): Get rid of try/catch
8940 and only check for the return value of "ensure".
8941 * tui/tui-source.c (tui_source_window::set_contents):
8942 Simplify "nlines" calculation.
8943
6eb1129c
SV
89442020-02-06 Shahab Vahedi <shahab@synopsys.com>
8945
8946 * MAINTAINERS (Write After Approval): Add myself.
8947
c6a42d11
CB
89482020-02-05 Christian Biesinger <cbiesinger@google.com>
8949
8950 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8951 function call.
8952
c8ecdda6
CB
89532020-02-05 Christian Biesinger <cbiesinger@google.com>
8954
8955 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8956
f6480e70
MR
89572020-02-05 Maciej W. Rozycki <macro@wdc.com>
8958
8959 * nat/riscv-linux-tdesc.h: New file.
8960 * nat/riscv-linux-tdesc.c: New file, taking code from...
8961 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8962 ... here.
8963 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8964 NATDEPFILES.
8965
dcc9fbc6
AB
89662020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8969 we don't set the fake simulator ptid to the null_ptid.
8970
719546c4
SM
89712020-02-03 Simon Marchi <simon.marchi@efficios.com>
8972
8973 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8974 * gdbthread.h (class thread_info) <resumed>: Likewise.
8975 * infrun.c (resume_1): Likewise.
8976 (proceed): Likewise.
8977 (infrun_thread_stop_requested): Likewise.
8978 (stop_all_threads): Likewise.
8979 (handle_inferior_event): Likewise.
8980 (restart_threads): Likewise.
8981 (finish_step_over): Likewise.
8982 (keep_going_stepped_thread): Likewise.
8983 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8984 (linux_handle_extended_wait): Likewise.
8985 * record-btrace.c (get_thread_current_frame_id): Likewise.
8986 * record-full.c (record_full_wait_1): Likewise.
8987 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8988 * target.c (target_resume): Likewise.
8989 * thread.c (set_running_thread): Likewise.
8990
e409c542
AKS
89912020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8992
8993 * f-valprint.c (f77_print_array_1): Changed datatype of index
8994 variable to LONGEST from int to enable it to contain bound
8995 values correctly.
8996
ee98c0da
MR
89972020-02-03 Maciej W. Rozycki <macro@wdc.com>
8998
8999 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9000 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9001 offsets according to FLEN determined.
9002 (riscv_linux_nat_target::read_description): Determine FLEN
9003 dynamically.
9004 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9005 according to FLEN determined.
9006 (riscv_linux_nat_target::store_registers): Likewise.
9007
aa66aac4
SV
90082020-02-01 Shahab Vahedi <shahab@synopsys.com>
9009
9010 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9011 when reg->group is empty and reggroup is not.
9012
fd9faca8
TT
90132020-01-31 Tom Tromey <tromey@adacore.com>
9014
9015 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9016 Call beneath target's mourn_inferior after unpushing.
9017
42330a68
AB
90182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9019
9020 PR tui/9765
9021 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9022 have enough lines to fill the screen, still return the lowest
9023 address we found.
9024
7a27a45b
AB
90252020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9026
9027 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9028 '-', '<', and '>' commands.
9029
c47f70e2
PA
90302020-01-29 Pedro Alves <palves@redhat.com>
9031 Sergio Durigan Junior <sergiodj@redhat.com>
9032
9033 * infcmd.c (construct_inferior_arguments): Assert that
9034 'argc' is greater than 0.
9035
5133a315
LM
90362020-01-29 Luis Machado <luis.machado@linaro.org>
9037
9038 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9039 (BRK_INSN_MASK): Define to 0xd4200000.
9040 (aarch64_program_breakpoint_here_p): New function.
9041 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9042 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9043 breakpoint.c.
9044 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9045 breakpoint.h
9046 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9047 call gdbarch_program_breakpoint_here_p.
9048 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9049 default_program_breakpoint_here_p, changed return type to bool and
9050 simplified.
9051 * breakpoint.h (program_breakpoint_here): Moved prototype to
9052 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9053 return type to bool.
9054 * gdbarch.c: Regenerate.
9055 * gdbarch.h: Regenerate.
9056 * gdbarch.sh (program_breakpoint_here_p): New method.
9057 * infrun.c (handle_signal_stop): Call
9058 gdbarch_program_breakpoint_here_p.
9059
168f8c6b
TT
90602020-01-26 Tom Tromey <tom@tromey.com>
9061
9062 * ctfread.c (struct ctf_fp_info): Reindent.
9063 (_initialize_ctfread): Remove.
9064
128a391f
TT
90652020-01-26 Tom Tromey <tom@tromey.com>
9066
9067 * psymtab.c (partial_map_expand_apply)
9068 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9069 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9070 (psym_print_stats, psym_expand_symtabs_for_function)
9071 (psym_map_symbol_filenames, psym_map_matching_symbols)
9072 (psym_expand_symtabs_matching)
9073 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9074 (maintenance_check_psymtabs): Use new methods.
9075 * psympriv.h (struct partial_symtab) <readin_p,
9076 get_compunit_symtab>: New methods.
9077 <readin, compunit_symtab>: Remove members.
9078 (struct standard_psymtab): New.
9079 (struct legacy_psymtab): Derive from standard_psymtab.
9080 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9081 standard_psymtab.
9082 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9083
0494dbec
TT
90842020-01-26 Tom Tromey <tom@tromey.com>
9085
9086 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9087 read_dependencies. Add assert.
9088 * psymtab.c (partial_symtab::read_dependencies): New method.
9089 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9090 method.
9091 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9092 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9093 read_dependencies.
9094 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9095 Add assert.
9096
8566b89b
TT
90972020-01-26 Tom Tromey <tom@tromey.com>
9098
9099 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9100 Call expand_psymtab.
9101 (xcoff_read_symtab): Call expand_psymtab.
9102 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9103 legacy_expand_psymtab.
9104 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9105 method.
9106 (struct legacy_psymtab) <expand_psymtab>: Implement.
9107 <legacy_expand_psymtab>: New member.
9108 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9109 (parse_partial_symbols): Set legacy_expand_psymtab.
9110 (psymtab_to_symtab_1): Change argument order. Call
9111 expand_psymtab.
9112 (new_psymtab): Set legacy_expand_psymtab.
9113 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9114 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9115 expand_psymtab.
9116 (dwarf2_psymtab::expand_psymtab): Rename from
9117 psymtab_to_symtab_1. Call expand_psymtab.
9118 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9119 (dbx_end_psymtab): Likewise.
9120 (dbx_psymtab_to_symtab_1): Change argument order. Call
9121 expand_psymtab.
9122 (dbx_read_symtab): Call expand_psymtab.
9123 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9124 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9125 (ctf_psymtab::read_symtab): Call expand_psymtab.
9126
077cbab2
TT
91272020-01-26 Tom Tromey <tom@tromey.com>
9128
9129 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9130 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9131 messages.
9132 * mdebugread.c (mdebug_read_symtab): Remove prints.
9133 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9134 assert.
9135 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9136
891813be
TT
91372020-01-26 Tom Tromey <tom@tromey.com>
9138
9139 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9140 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9141 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9142 legacy_symtab.
9143 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9144 * psymtab.c (psymtab_to_symtab): Call method.
9145 (dump_psymtab): Update.
9146 * psympriv.h (struct partial_symtab): Add virtual destructor.
9147 <read_symtab>: New method.
9148 (struct legacy_symtab): New.
9149 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9150 (struct pst_map) <pst>: Now a legacy_psymtab.
9151 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9152 (new_psymtab): Use legacy_psymtab.
9153 * dwarf2read.h (struct dwarf2_psymtab): New.
9154 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9155 * dwarf2read.c (dwarf2_create_include_psymtab)
9156 (dwarf2_build_include_psymtabs, create_type_unit_group)
9157 (create_partial_symtab, process_psymtab_comp_unit_reader)
9158 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9159 (set_partial_user): Use dwarf2_psymtab.
9160 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9161 (psymtab_to_symtab_1, process_full_comp_unit)
9162 (process_full_type_unit, dwarf2_ranges_read)
9163 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9164 (dwarf_decode_lines): Use dwarf2_psymtab.
9165 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9166 (add_address_entry_worker, write_one_signatured_type)
9167 (recursively_count_psymbols, recursively_write_psymbols)
9168 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9169 (write_debug_names): Likewise.
9170 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9171 <pst>: Now a legacy_psymtab.
9172 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9173 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9174 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9175 * ctfread.c (struct ctf_psymtab): New.
9176 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9177 ctf_psymtab.
9178 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9179 (create_partial_symtab): Return a ctf_psymtab.
9180 (scan_partial_symbols): Update.
9181
c3693a1d
TT
91822020-01-26 Tom Tromey <tom@tromey.com>
9183
9184 * xcoffread.c (xcoff_start_psymtab): Use new.
9185 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9186 renamed from start_psymtab_common.
9187 * psympriv.h (struct partial_symtab): Add new constructor.
9188 (start_psymtab_common): Don't declare.
9189 * mdebugread.c (parse_partial_symbols): Use new.
9190 * dwarf2read.c (create_partial_symtab): Use new.
9191 * dbxread.c (start_psymtab): Use new.
9192 * ctfread.c (create_partial_symtab): Use new.
9193
32caafd0
TT
91942020-01-26 Tom Tromey <tom@tromey.com>
9195
9196 * xcoffread.c (xcoff_end_psymtab): Use new.
9197 * psymtab.c (start_psymtab_common): Use new.
9198 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9199 Update.
9200 * psympriv.h (struct partial_symtab): Add parameters to
9201 constructor. Don't inline.
9202 (allocate_psymtab): Don't declare.
9203 * mdebugread.c (new_psymtab): Use new.
9204 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9205 * dbxread.c (dbx_end_psymtab): Use new.
9206
abaa2f23
TT
92072020-01-26 Tom Tromey <tom@tromey.com>
9208
9209 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9210 allocate_psymtab. Update documentation.
9211 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9212 allocate_psymtab. Do not use new.
9213 (allocate_psymtab): Use new. Update.
9214
6d94535f
TT
92152020-01-26 Tom Tromey <tom@tromey.com>
9216
9217 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9218 * psymtab.c (psym_print_stats): Update.
9219 * psympriv.h (struct partial_symtab) <readin,
9220 psymtabs_addrmap_supported, anonymous>: Now bool.
9221 * mdebugread.c (psymtab_to_symtab_1): Update.
9222 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9223 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9224 (process_full_comp_unit, process_full_type_unit): Update.
9225 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9226 * ctfread.c (psymtab_to_symtab): Update.
9227
6f17252b
TT
92282020-01-26 Tom Tromey <tom@tromey.com>
9229
9230 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9231 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9232 * psymtab.c (psymtab_storage): Delete psymtabs.
9233 (psymtab_storage::allocate_psymtab): Use new.
9234 (psymtab_storage::discard_psymtab): Use delete.
9235 * psympriv.h (struct partial_symtab): Add constructor and
9236 initializers.
9237
f6f1cebc
TT
92382020-01-26 Tom Tromey <tom@tromey.com>
9239
9240 * machoread.c: Do not include psympriv.h.
9241
e47e48f6
PW
92422020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9243
9244 * NEWS: Mention the new option and the set/show commands.
9245
a2fedca9
PW
92462020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9247
9248 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9249 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9250 (validate_exec_file): New variables, enums, functions.
9251 (exec_file_locate_attach, print_section_info): Style the filenames.
9252 (_initialize_exec): Install show_exec_file_mismatch_command and
9253 set_exec_file_mismatch_command.
9254 * gdbcore.h (validate_exec_file): Declare.
9255 * infcmd.c (attach_command): Call validate_exec_file.
9256 * remote.c ( remote_target::remote_add_inferior): Likewise.
9257
7ffa82e1
AB
92582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9259
9260 * frame.c (find_frame_sal): Move call to get_next_frame into more
9261 inner scope.
9262 * inline-frame.c (inilne_state) <inline_state>: Update argument
9263 types.
9264 (inilne_state) <skipped_symbol>: Rename to...
9265 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9266 (skip_inline_frames): Build vector of skipped symbols and use this
9267 to reate the inline_state.
9268 (inline_skipped_symbol): Add a comment and some assertions, fetch
9269 skipped symbol from the list.
9270
3d92a3e3
AB
92712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9272
9273 * buildsym.c (lte_is_less_than): Delete.
9274 (buildsym_compunit::end_symtab_with_blockvector): Create local
9275 lambda function to sort line table entries, and use
9276 std::stable_sort instead of std::sort.
9277 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9278 markers when looking for a previous line.
9279
94a72be7
AB
92802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9281
9282 * dwarf2read.c (lnp_state_machine::record_line): Include
9283 end_sequence parameter in debug print out. Record the line if we
9284 are at an end_sequence marker even if it's not the start of a
9285 statement.
9286 * symmisc.c (maintenance_print_one_line_table): Print end of
9287 sequence markers with 'END' not '0'.
9288
53af73bf
PA
92892020-01-24 Pedro Alves <palves@redhat.com>
9290
9291 PR gdb/25410
9292 * thread.c (scoped_restore_current_thread::restore): Use
9293 switch_to_inferior_no_thread.
9294 * exec.c: Include "progspace-and-thread.h".
9295 (add_target_sections, remove_target_sections):
9296 scoped_restore_current_pspace_and_thread instead of
9297 scoped_restore_current_thread.
9298 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9299 and aspace to the inferior before calling clone_program_space.
9300 Remove stale comment.
9301
3050c6f4
CB
93022020-01-24 Christian Biesinger <cbiesinger@google.com>
9303
9304 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9305 (arm_netbsd_nat_target::fetch_registers): ...this.
9306 (arm_nbsd_nat_target::store_registers): Rename to...
9307 (arm_netbsd_nat_target::store_registers): ...this.
9308
73685c7e
CB
93092020-01-24 Christian Biesinger <cbiesinger@google.com>
9310
9311 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9312 register_t.
9313
89203d40
CB
93142020-01-24 Christian Biesinger <cbiesinger@google.com>
9315
9316 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9317 Update comment.
9318 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9319 Likewise.
9320 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9321 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9322 the correct replacement (iterate_over_regset_sections).
9323 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9324 Update comment.
9325
1ba1ac88
AB
93262020-01-24 Graham Markall <graham.markall@embecosm.com>
9327
9328 PR gdb/23718
9329 * gdb/python/python.c (execute_gdb_command): Call
9330 async_enable_stdin in catch block.
9331
f3364a6d
AB
93322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9335 SWITCH_THRU_ALL_UIS.
9336
733d0a67
AB
93372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9338
9339 PR tui/9765
9340 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9341 comment, add extra parameter, and update to store previous symbol
9342 when appropriate.
9343 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9344 add extra parameter.
9345 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9346 remove unneeded parameter, add try/catch around gdb_print_insn,
9347 rewrite to add items to asm_lines vector.
9348 (tui_find_backward_disassembly_start_address): New function.
9349 (tui_find_disassembly_address): Updated throughout.
9350 (tui_disasm_window::set_contents): Update for changes to
9351 tui_disassemble.
9352 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9353 number of lines to scroll.
9354
b3b3bada
SM
93552020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9358 (SECT_OFF_DATA): Likewise.
9359 (SECT_OFF_RODATA): Likewise.
9360 (SECT_OFF_TEXT): Likewise.
9361 (SECT_OFF_BSS): Likewise.
9362 (struct objfile) <text_section_offset, data_section_offset>: New
9363 methods.
9364 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9365 objfile::text_section_offset.
9366 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9367 * coffread.c (coff_symtab_read): Likewise.
9368 (enter_linenos): Likewise.
9369 (process_coff_symbol): Likewise.
9370 * ctfread.c (get_objfile_text_range): Likewise.
9371 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9372 Use objfile::data_section_offset.
9373 * dwarf2-frame.c (execute_cfa_program): Use
9374 objfile::text_section_offset.
9375 (dwarf2_frame_find_fde): Likewise.
9376 * dwarf2read.c (create_addrmap_from_index): Likewise.
9377 (create_addrmap_from_aranges): Likewise.
9378 (dw2_find_pc_sect_compunit_symtab): Likewise.
9379 (process_psymtab_comp_unit_reader): Likewise.
9380 (add_partial_symbol): Likewise.
9381 (add_partial_subprogram): Likewise.
9382 (process_full_comp_unit): Likewise.
9383 (read_file_scope): Likewise.
9384 (read_func_scope): Likewise.
9385 (read_lexical_block_scope): Likewise.
9386 (read_call_site_scope): Likewise.
9387 (dwarf2_rnglists_process): Likewise.
9388 (dwarf2_ranges_process): Likewise.
9389 (dwarf2_ranges_read): Likewise.
9390 (dwarf_decode_lines_1): Likewise.
9391 (new_symbol): Likewise.
9392 (dwarf2_fetch_die_loc_sect_off): Likewise.
9393 (dwarf2_per_cu_text_offset): Likewise.
9394 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9395 * hppa-tdep.c (read_unwind_info): Likewise.
9396 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9397 * psympriv.h (struct partial_symtab): Likewise.
9398 * psymtab.c (find_pc_sect_psymtab): Likewise.
9399 * solib-svr4.c (enable_break): Likewise.
9400 * stap-probe.c (relocate_address): Use
9401 objfile::data_section_offset.
9402 * xcoffread.c (enter_line_range): Use
9403 objfile::text_section_offset.
9404 (read_xcoff_symtab): Likewise.
9405
ab53f382
SM
94062020-01-23 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9409 declaration to narrower scopes.
9410
e7eee665
SM
94112020-01-23 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * darwin-nat.h (struct darwin_exception_msg, enum
9414 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9415 Move up.
9416 (class darwin_nat_target) <wait_1, check_new_threads,
9417 decode_exception_message, decode_message, stop_inferior,
9418 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9419 * darwin-nat.c (darwin_check_new_threads): Rename to...
9420 (darwin_nat_target::check_new_threads): ... this.
9421 (darwin_suspend_inferior_it): Remove.
9422 (darwin_decode_exception_message): Rename to...
9423 (darwin_nat_target::decode_exception_message): ... this.
9424 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9425 (darwin_decode_message): Rename to...
9426 (darwin_nat_target::decode_message): ... this.
9427 (cancel_breakpoint): Rename to...
9428 (darwin_nat_target::cancel_breakpoint): ... this.
9429 (darwin_wait): Rename to...
9430 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9431 instead of iterate_over_inferiors.
9432 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9433 (darwin_stop_inferior): Rename to...
9434 (darwin_nat_target::stop_inferior): ... this.
9435 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9436 (darwin_init_thread_list): Rename to...
9437 (darwin_nat_target::init_thread_list): ... this.
9438 (darwin_ptrace_him): Rename to...
9439 (darwin_nat_target::ptrace_him): ... this.
9440 (darwin_nat_target::create_inferior): Pass lambda function to
9441 fork_inferior.
9442 (darwin_nat_target::detach): Call stop_inferior instead of
9443 darwin_stop_inferior.
9444 * fork-inferior.h (fork_inferior): Change init_trace_fun
9445 parameter to gdb::function_view.
9446 * fork-inferior.c (fork_inferior): Likewise.
9447
c162ed3e
HD
94482020-01-23 Hannes Domani <ssbssa@yahoo.de>
9449
9450 * i386-cygwin-tdep.c (core_process_module_section): Update.
9451 * windows-nat.c (struct lm_info_windows): Add text_offset.
9452 (windows_xfer_shared_libraries): Update.
9453 * windows-tdep.c (windows_xfer_shared_library):
9454 Add text_offset_cached argument.
9455 * windows-tdep.h (windows_xfer_shared_library): Update.
9456
a1237872
SM
94572020-01-21 Simon Marchi <simon.marchi@efficios.com>
9458
9459 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9460
b3ee6dd9
SM
94612020-01-21 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9464 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9465 replace with range-based for.
9466 (gdbsim_interrupt_inferior): Remove.
9467 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9468 with a range-based for. Inline code from
9469 gdbsim_interrupt_inferior.
9470
f9fac3c8
SM
94712020-01-21 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * infrun.c (proceed): Fix indentation.
9474
f6474de9
TT
94752020-01-21 Tom Tromey <tromey@adacore.com>
9476
9477 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9478 * python/python.c (python_extension_ops): Update.
9479 (gdbpy_colorize): New function.
9480 * python/lib/gdb/__init__.py (colorize): New function.
9481 * extension.h (ext_lang_colorize): Declare.
9482 * extension.c (ext_lang_colorize): New function.
9483 * extension-priv.h (struct extension_language_ops) <colorize>: New
9484 member.
9485 * cli/cli-style.c (_initialize_cli_style): Update help text.
9486
f0c702d4
LM
94872020-01-21 Luis Machado <luis.machado@linaro.org>
9488
9489 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9490 <cond>: Change type to bool.
9491 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9492 (aarch64_displaced_step_cb): Likewise.
9493 (aarch64_displaced_step_tb): Likewise.
9494
1ab139e5
LM
94952020-01-21 Luis Machado <luis.machado@linaro.org>
9496
9497 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9498 output.
9499
0c271889
LM
95002020-01-21 Luis Machado <luis.machado@linaro.org>
9501
9502 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9503 <pc_adjust>: Adjust the documentation.
9504 (aarch64_displaced_step_fixup): Check if PC really moved before
9505 adjusting it.
9506
4d89c1c7
TT
95072020-01-19 Tom Tromey <tom@tromey.com>
9508
9509 * disasm.c (~gdb_disassembler): New destructor.
9510 (gdb_buffered_insn_length): Call disassemble_free_target.
9511 * disasm.h (class gdb_disassembler): Declare destructor. Use
9512 DISABLE_COPY_AND_ASSIGN.
9513
c0ab21c2
TT
95142020-01-19 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9517 (die_reader_func_ftype): Remove.
9518 (cutu_reader): New class.
9519 (dw2_get_file_names_reader): Remove "data" parameter.
9520 (dw2_get_file_names): Use cutu_reader.
9521 (create_debug_type_hash_table): Update.
9522 (read_cutu_die_from_dwo): Update comment.
9523 (lookup_dwo_unit): Add dwo_name parameter.
9524 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9525 die_reader_func_ftype and data parameters.
9526 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9527 Remove die_reader_func_ftype and data parameters.
9528 (~cutu_reader): New; from init_cutu_and_read_dies.
9529 (cutu_reader::cutu_reader): Rename from
9530 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9531 and data parameters.
9532 (init_cutu_and_read_dies_simple): Remove.
9533 (struct process_psymtab_comp_unit_data): Remove.
9534 (process_psymtab_comp_unit_reader): Remove data parameter; add
9535 want_partial_unit and pretend_language parameters.
9536 (process_psymtab_comp_unit): Use cutu_reader.
9537 (build_type_psymtabs_reader): Remove data parameter.
9538 (build_type_psymtabs_1): Use cutu_reader.
9539 (process_skeletonless_type_unit): Likewise.
9540 (load_partial_comp_unit_reader): Remove.
9541 (load_partial_comp_unit): Use cutu_reader.
9542 (load_full_comp_unit_reader): Remove.
9543 (load_full_comp_unit): Use cutu_reader.
9544 (struct create_dwo_cu_data): Remove.
9545 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9546 dwo_unit parameters.
9547 (create_cus_hash_table): Use cutu_reader.
9548 (struct dwarf2_read_addr_index_data): Remove.
9549 (dwarf2_read_addr_index_reader): Remove.
9550 (dwarf2_read_addr_index): Use cutu_reader.
9551 (read_signatured_type_reader): Remove.
9552 (read_signatured_type): Use cutu_reader.
9553
45bbae5c
TT
95542020-01-19 Tom Tromey <tom@tromey.com>
9555
9556 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9557 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9558 (tui_wrefresh): Declare.
9559 * tui/tui-wingeneral.c (suppress_output): New global.
9560 (tui_suppress_output, ~tui_suppress_output): New constructor and
9561 destructor.
9562 (tui_wrefresh): New function.
9563 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9564 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9565 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9566 method.
9567 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9568 tui_wrefresh.
9569 (tui_data_window::no_refresh): New method.
9570 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9571 (tui_reg_command): Use tui_suppress_output
9572 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9573 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9574 method.
9575 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9576
4f13c1c0
TT
95772020-01-19 Tom Tromey <tom@tromey.com>
9578
9579 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9580 Handle case where symtab is null.
9581
fa47e446
SM
95822020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9583
9584 * linux-fork.c (one_fork_p): Simplify.
9585
26f42329
SM
95862020-01-17 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * top.c (struct qt_args): Remove.
9589 (kill_or_detach): Change return type to void, replace `void *`
9590 parameter with a proper one.
9591 (print_inferior_quit_action): Likewise.
9592 (quit_confirm): Use range-based for loop to iterate over inferiors.
9593 (quit_force): Likewise.
9594
a9ac81b1
SM
95952020-01-17 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9598 `void *` parameter with proper parameters.
9599 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9600 (print_one_inferior): Change return type to void, replace `void *`
9601 parameter with proper parameters.
9602 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9603 inferiors.
9604 (get_other_inferior): Remove.
9605 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9606 inferiors.
9607
788eca49
SM
96082020-01-17 Simon Marchi <simon.marchi@efficios.com>
9609
9610 * mi/mi-interp.c (report_initial_inferior): Remove.
9611 (mi_interp::init): Use range-based for to iterate over inferiors.
9612
d9bc85b6
SM
96132020-01-17 Simon Marchi <simon.marchi@efficios.com>
9614
9615 * python/py-inferior.c (build_inferior_list): Remove.
9616 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9617
40c94099
CB
96182020-01-16 Christian Biesinger <cbiesinger@google.com>
9619
9620 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9621 (btrace_stitch_trace): Likewise.
9622 * charset.c (intermediate_encoding): Likewise (vaild).
9623 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9624 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9625 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9626
e0cdfe3c
HD
96272020-01-16 Hannes Domani <ssbssa@yahoo.de>
9628
9629 * windows-tdep.c (windows_get_tlb_type):
9630 Add rtl_user_process_parameters type.
9631
790f1718 96322020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9633 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9634
9635 PR build/24805
9636 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9637 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9638 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9639 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9640 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9641 (ps_plog): Redeclare exported functions with default visibility.
9642
3112ed97
NA
96432020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9644
9645 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9646 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9647
8dc3273e
SM
96482020-01-15 Simon Marchi <simon.marchi@efficios.com>
9649
9650 * infcmd.c (post_create_inferior): Use get_thread_regcache
9651 instead of get_current_regcache.
9652
ff47f4f0
TT
96532020-01-14 Tom Tromey <tom@tromey.com>
9654
9655 PR symtab/12535:
9656 * python/python.c (gdbpy_decode_line): Treat empty string the same
9657 as no argument.
9658
975f45b7
TT
96592020-01-14 Tom Tromey <tom@tromey.com>
9660
9661 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9662
25e57356
TT
96632020-01-14 Tom Tromey <tom@tromey.com>
9664
9665 * nat/linux-btrace.c: Don't include <config.h>.
9666 * nat/linux-ptrace.c: Don't include <config.h>.
9667 * nat/x86-linux-dregs.c: Don't include <config.h>.
9668
05ea2a05
TT
96692020-01-14 Tom Tromey <tom@tromey.com>
9670
9671 * configure: Rebuild.
9672 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9673
01027315
TT
96742020-01-14 Tom Tromey <tom@tromey.com>
9675
9676 * nat/x86-linux-dregs.c: Include configh.h.
9677 * nat/linux-ptrace.c: Include configh.h.
9678 * nat/linux-btrace.c: Include configh.h.
9679 * defs.h: Include config.h, bfd.h.
9680 * configure.ac: Don't source common.host.
9681 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9682 * configure: Rebuild.
9683 * acinclude.m4: Update path.
9684 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9685 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9686 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9687 (CLIBS): Add LIBSUPPORT.
9688 (CDEPS): Likewise.
9689 (COMMON_SFILES): Remove gdbsupport files.
9690 (HFILES_NO_SRCDIR): Likewise.
9691 (stamp-version): Update path to create-version.sh.
9692 (ALLDEPFILES): Remove gdbsupport files.
9693
b2ceabe8
TT
96942020-01-14 Tom Tromey <tom@tromey.com>
9695
9696 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9697 USE_WIN32API when needed.
9698 * configure.ac (USE_WIN32API): Don't define.
9699 (WIN32LIBS): Use WIN32APILIBS.
9700 * configure: Rebuild.
9701
25c51f71
TT
97022020-01-14 Tom Tromey <tom@tromey.com>
9703
9704 * configure: Rebuild.
9705 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9706
717c684d
BE
97072020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9708
9709 * skip.c (skip_function_command): Make skip w/o arguments use the
9710 name of the inlined function if pc is inside any inlined function.
9711
7da6a5b9
LM
97122020-01-14 Luis Machado <luis.machado@linaro.org>
9713
9714 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9715 * infrun.c (resume_1): Likewise.
9716 (handle_inferior_event): Remove stale comment.
9717 * linux-nat.c (linux_nat_target::resume): Update comments.
9718 (save_stop_reason): Likewise.
9719 (linux_nat_filter_event): Likewise.
9720 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9721
44e4c775
AB
97222020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9723
9724 * elfread.c (record_minimal_symbol): Set section index to 0 for
9725 non-allocatable sections.
9726
18a8505e
AT
9727
97282020-01-13 Ali Tamur <tamur@google.com>
9729
9730 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9731 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9732 to gdb::optional. Update comments.
9733 (dwo_file): Update comments.
9734 (read_attribute): Update API to take an additional out parameter,
9735 need_reprocess. This is used to mark attributes that need other
9736 attributes (e.g. str_offsets_base) for correct computation which may not
9737 have been read yet.
9738 (read_attribute_reprocess): New function declaration.
9739 (read_addr_index): Likewise.
9740 (read_dwo_str_index): Likewise.
9741 (read_stub_str_index): Likewise.
9742 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9743 (lookup_addr_base): New function definition.
9744 (lookup_ranges_base): Likewise.
9745 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9746 lookup_ranges_base.
9747 (init_cutu_and_read_dies): Update comments.
9748 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9749 unit. This is used to inherit parent's str_offsets_base and addr_base.
9750 Update comments.
9751 (init_cutu_and_read_dies_simple): Reflect API changes.
9752 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9753 (create_cus_hash_table): Change API to take parent compile unit.
9754 Reflect API changes.
9755 (open_and_init_dwo_file): Reflect API changes.
9756 (dwarf2_get_pc_bounds): Update comments.
9757 (dwarf2_record_block_ranges): Likewise.
9758 (read_full_die_1): Change implementation to reprocess attributes that
9759 need str_offsets_base and addr_base.
9760 (partial_die_info::read): Likewise.
9761 (read_attribute_reprocess): New function definition.
9762 (read_attribute_value): Change API to take an additional out parameter,
9763 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9764 when a non-dwo compile unit has index based attributes.
9765 (read_attribute): Reflect API changes.
9766 (read_addr_index_1): Reflect API changes. Update comments.
9767 (dwarf2_read_addr_index_data): Reflect API changes.
9768 (dwarf2_read_addr_index): Likewise.
9769 (read_str_index): Change API and implementation. This becomes a helper
9770 to be used by the new string index related methods. Update error
9771 message and comments.
9772 (read_dwo_str_index): New function definition.
9773 (read_stub_str_index): Likewise.
9774 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9775 * symfile.h (dwarf2_debug_sections): Likewise.
9776 * xcoffread.c (dwarf2_debug_sections): Likewise.
9777
0cac9354
SM
97782020-01-13 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9781 core_reg_sect type to gdb_byte *.
9782 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9783 * cris-tdep.c (fetch_core_registers): Likewise.
9784 * corelow.c (core_target::get_core_register_section): Change
9785 type of `contents` to gdb::byte_vector.
9786
9a6d629c
AB
97872020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9788
9789 * tui/tui-wingeneral.c (box_win): Position the title in the center
9790 of the border.
9791
d8b2f9e3
SM
97922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9793
9794 * corelow.c (core_target::get_core_register_section): Use
9795 std::vector instead of alloca.
9796
bb564c58
SM
97972020-01-13 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * warning.m4: Add -Wmissing-declarations to build_warnings.
9800 * configure: Re-generate.
9801
6b366111
SM
98022020-01-13 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * python/python.c (init__gdb_module): Add declaration.
9805
6c265988
SM
98062020-01-13 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9809 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9810 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9811 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9812 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9813 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9814 * ada-exp.y (_initialize_ada_exp): Add declaration.
9815 * ada-lang.c (_initialize_ada_language): Add declaration.
9816 * ada-tasks.c (_initialize_tasks): Add declaration.
9817 * agent.c (_initialize_agent): Add declaration.
9818 * aix-thread.c (_initialize_aix_thread): Add declaration.
9819 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9820 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9821 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9822 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9823 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9824 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9825 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9826 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9827 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9828 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9829 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9830 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9831 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9832 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9833 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9834 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9835 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9836 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9837 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9838 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9839 * annotate.c (_initialize_annotate): Add declaration.
9840 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9841 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9842 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9843 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9844 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9845 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9846 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9847 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9848 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9849 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9850 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9851 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9852 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9853 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9854 * auto-load.c (_initialize_auto_load): Add declaration.
9855 * auxv.c (_initialize_auxv): Add declaration.
9856 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9857 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9858 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9859 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9860 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9861 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9862 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9863 * breakpoint.c (_initialize_breakpoint): Add declaration.
9864 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9865 * btrace.c (_initialize_btrace): Add declaration.
9866 * charset.c (_initialize_charset): Add declaration.
9867 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9868 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9869 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9870 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9871 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9872 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9873 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9874 * coffread.c (_initialize_coffread): Add declaration.
9875 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9876 * compile/compile.c (_initialize_compile): Add declaration.
9877 * complaints.c (_initialize_complaints): Add declaration.
9878 * completer.c (_initialize_completer): Add declaration.
9879 * copying.c (_initialize_copying): Add declaration.
9880 * corefile.c (_initialize_core): Add declaration.
9881 * corelow.c (_initialize_corelow): Add declaration.
9882 * cp-abi.c (_initialize_cp_abi): Add declaration.
9883 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9884 * cp-support.c (_initialize_cp_support): Add declaration.
9885 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9886 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9887 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9888 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9889 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9890 * ctfread.c (_initialize_ctfread): Add declaration.
9891 * d-lang.c (_initialize_d_language): Add declaration.
9892 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9893 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9894 * dbxread.c (_initialize_dbxread): Add declaration.
9895 * dcache.c (_initialize_dcache): Add declaration.
9896 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9897 * disasm.c (_initialize_disasm): Add declaration.
9898 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9899 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9900 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9901 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9902 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9903 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9904 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9905 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9906 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9907 * elfread.c (_initialize_elfread): Add declaration.
9908 * exec.c (_initialize_exec): Add declaration.
9909 * extension.c (_initialize_extension): Add declaration.
9910 * f-lang.c (_initialize_f_language): Add declaration.
9911 * f-valprint.c (_initialize_f_valprint): Add declaration.
9912 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9913 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9914 * filesystem.c (_initialize_filesystem): Add declaration.
9915 * findcmd.c (_initialize_mem_search): Add declaration.
9916 * findvar.c (_initialize_findvar): Add declaration.
9917 * fork-child.c (_initialize_fork_child): Add declaration.
9918 * frame-base.c (_initialize_frame_base): Add declaration.
9919 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9920 * frame.c (_initialize_frame): Add declaration.
9921 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9922 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9923 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9924 * gcore.c (_initialize_gcore): Add declaration.
9925 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9926 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9927 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9928 * gdbarch.c (_initialize_gdbarch): Add declaration.
9929 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9930 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9931 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9932 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9933 * go-lang.c (_initialize_go_language): Add declaration.
9934 * go32-nat.c (_initialize_go32_nat): Add declaration.
9935 * guile/guile.c (_initialize_guile): Add declaration.
9936 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9937 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9938 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9939 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9940 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9941 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9942 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9943 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9944 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9945 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9946 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9947 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9948 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9949 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9950 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9951 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9952 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9953 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9954 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9955 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9956 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9957 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9958 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9959 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9960 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9961 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9962 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9963 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9964 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9965 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9966 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9967 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9968 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9969 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9970 * infcall.c (_initialize_infcall): Add declaration.
9971 * infcmd.c (_initialize_infcmd): Add declaration.
9972 * inflow.c (_initialize_inflow): Add declaration.
9973 * infrun.c (_initialize_infrun): Add declaration.
9974 * interps.c (_initialize_interpreter): Add declaration.
9975 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9976 * jit.c (_initialize_jit): Add declaration.
9977 * language.c (_initialize_language): Add declaration.
9978 * linux-fork.c (_initialize_linux_fork): Add declaration.
9979 * linux-nat.c (_initialize_linux_nat): Add declaration.
9980 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9981 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9982 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9983 * m2-lang.c (_initialize_m2_language): Add declaration.
9984 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9985 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9986 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9987 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9988 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9989 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9990 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9991 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9992 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9993 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9994 * machoread.c (_initialize_machoread): Add declaration.
9995 * macrocmd.c (_initialize_macrocmd): Add declaration.
9996 * macroscope.c (_initialize_macroscope): Add declaration.
9997 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9998 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9999 * maint.c (_initialize_maint_cmds): Add declaration.
10000 * mdebugread.c (_initialize_mdebugread): Add declaration.
10001 * memattr.c (_initialize_mem): Add declaration.
10002 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10003 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10004 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10005 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10006 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10007 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10008 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10009 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10010 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10011 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10012 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10013 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10014 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10015 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10016 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10017 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10018 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10019 * mipsread.c (_initialize_mipsread): Add declaration.
10020 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10021 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10022 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10023 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10024 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10025 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10026 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10027 * nto-procfs.c (_initialize_procfs): Add declaration.
10028 * objc-lang.c (_initialize_objc_language): Add declaration.
10029 * observable.c (_initialize_observer): Add declaration.
10030 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10031 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10032 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10033 * osabi.c (_initialize_gdb_osabi): Add declaration.
10034 * osdata.c (_initialize_osdata): Add declaration.
10035 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10036 * parse.c (_initialize_parse): Add declaration.
10037 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10038 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10039 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10040 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10041 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10042 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10043 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10044 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10045 * printcmd.c (_initialize_printcmd): Add declaration.
10046 * probe.c (_initialize_probe): Add declaration.
10047 * proc-api.c (_initialize_proc_api): Add declaration.
10048 * proc-events.c (_initialize_proc_events): Add declaration.
10049 * proc-service.c (_initialize_proc_service): Add declaration.
10050 * procfs.c (_initialize_procfs): Add declaration.
10051 * producer.c (_initialize_producer): Add declaration.
10052 * psymtab.c (_initialize_psymtab): Add declaration.
10053 * python/python.c (_initialize_python): Add declaration.
10054 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10055 * record-btrace.c (_initialize_record_btrace): Add declaration.
10056 * record-full.c (_initialize_record_full): Add declaration.
10057 * record.c (_initialize_record): Add declaration.
10058 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10059 * regcache.c (_initialize_regcache): Add declaration.
10060 * reggroups.c (_initialize_reggroup): Add declaration.
10061 * remote-notif.c (_initialize_notif): Add declaration.
10062 * remote-sim.c (_initialize_remote_sim): Add declaration.
10063 * remote.c (_initialize_remote): Add declaration.
10064 * reverse.c (_initialize_reverse): Add declaration.
10065 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10066 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10067 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10068 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10069 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10070 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10071 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10072 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10073 Add declaration.
10074 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10075 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10076 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10077 * rust-exp.y (_initialize_rust_exp): Add declaration.
10078 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10079 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10080 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10081 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10082 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10083 * score-tdep.c (_initialize_score_tdep): Add declaration.
10084 * ser-go32.c (_initialize_ser_dos): Add declaration.
10085 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10086 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10087 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10088 * ser-uds.c (_initialize_ser_socket): Add declaration.
10089 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10090 * serial.c (_initialize_serial): Add declaration.
10091 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10092 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10093 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10094 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10095 * skip.c (_initialize_step_skip): Add declaration.
10096 * sol-thread.c (_initialize_sol_thread): Add declaration.
10097 * solib-aix.c (_initialize_solib_aix): Add declaration.
10098 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10099 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10100 * solib-frv.c (_initialize_frv_solib): Add declaration.
10101 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10102 * solib-target.c (_initialize_solib_target): Add declaration.
10103 * solib.c (_initialize_solib): Add declaration.
10104 * source-cache.c (_initialize_source_cache): Add declaration.
10105 * source.c (_initialize_source): Add declaration.
10106 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10107 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10108 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10109 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10110 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10111 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10112 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10113 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10114 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10115 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10116 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10117 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10118 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10119 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10120 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10121 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10122 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10123 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10124 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10125 * stabsread.c (_initialize_stabsread): Add declaration.
10126 * stack.c (_initialize_stack): Add declaration.
10127 * stap-probe.c (_initialize_stap_probe): Add declaration.
10128 * std-regs.c (_initialize_frame_reg): Add declaration.
10129 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10130 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10131 * symfile.c (_initialize_symfile): Add declaration.
10132 * symmisc.c (_initialize_symmisc): Add declaration.
10133 * symtab.c (_initialize_symtab): Add declaration.
10134 * target.c (_initialize_target): Add declaration.
10135 * target-connection.c (_initialize_target_connection): Add
10136 declaration.
10137 * target-dcache.c (_initialize_target_dcache): Add declaration.
10138 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10139 * thread.c (_initialize_thread): Add declaration.
10140 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10141 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10142 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10143 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10144 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10145 * tracectf.c (_initialize_ctf): Add declaration.
10146 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10147 * tracefile.c (_initialize_tracefile): Add declaration.
10148 * tracepoint.c (_initialize_tracepoint): Add declaration.
10149 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10150 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10151 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10152 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10153 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10154 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10155 * tui/tui.c (_initialize_tui): Add declaration.
10156 * typeprint.c (_initialize_typeprint): Add declaration.
10157 * ui-style.c (_initialize_ui_style): Add declaration.
10158 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10159 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10160 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10161 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10162 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10163 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10164 * unittests/filtered_iterator-selftests.c
10165 (_initialize_filtered_iterator_selftests): Add declaration.
10166 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10167 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10168 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10169 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10170 * unittests/main-thread-selftests.c
10171 (_initialize_main_thread_selftests): Add declaration.
10172 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10173 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10174 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10175 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10176 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10177 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10178 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10179 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10180 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10181 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10182 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10183 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10184 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10185 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10186 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10187 declaration.
10188 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10189 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10190 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10191 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10192 * user-regs.c (_initialize_user_regs): Add declaration.
10193 * utils.c (_initialize_utils): Add declaration.
10194 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10195 * valops.c (_initialize_valops): Add declaration.
10196 * valprint.c (_initialize_valprint): Add declaration.
10197 * value.c (_initialize_values): Add declaration.
10198 * varobj.c (_initialize_varobj): Add declaration.
10199 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10200 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10201 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10202 * windows-nat.c (_initialize_windows_nat): Add declaration.
10203 (_initialize_check_for_gdb_ini): Add declaration.
10204 (_initialize_loadable): Add declaration.
10205 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10206 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10207 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10208 * xcoffread.c (_initialize_xcoffread): Add declaration.
10209 * xml-support.c (_initialize_xml_support): Add declaration.
10210 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10211 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10212 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10213 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10214
e2de1eec
SM
102152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * regformats/regdat.sh: Generate declaration for init function.
10218
e0037b4c
SM
102192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10222 up.
10223 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10224 close_one_inferior>: New methods.
10225 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10226 pass down target to find_inferior_pid.
10227 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10228 Pass down target to find_inferior_ptid.
10229 (gdbsim_target::create_inferior): Pass down target to
10230 add_thread_silent.
10231 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10232 target down to find_inferior_ptid and switch_to_thread.
10233 (gdbsim_target::close): Update to call close_one_inferior.
10234 (struct resume_data): Remove.
10235 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10236 directly, rather than through a void pointer.
10237 (gdbsim_target::resume): Update to call resume_one_inferior.
10238
58920b5b
SM
102392020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10240
10241 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10242
4ec89149
PA
102432020-01-12 Pedro Alves <palves@redhat.com>
10244
10245 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10246 directly for the current inferior instead of
10247 discard_all_inferiors.
10248 (discard_all_inferiors): Delete.
10249
7c392d1d
TT
102502020-01-11 Tom Tromey <tom@tromey.com>
10251
10252 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10253 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10254 deprecated_safe_get_selected_frame.
10255
d9ebdab7
TBA
102562020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10257
10258 * inferior.c (print_inferior): Switch inferior before printing it.
10259
f3c469b9
PA
102602020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10261 Pedro Alves <palves@redhat.com>
10262
10263 * progspace-and-thread.c (switch_to_program_space_and_thread):
10264 Assert there's an inferior for PSPACE. Use
10265 switch_to_inferior_no_thread to switch the inferior too.
10266 * progspace.c (program_space::~program_space): Call
10267 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10268 (program_space::free_all_objfiles): Don't call clear_symtab_users
10269 here.
10270 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10271
65c574f6
PA
102722020-01-10 Pedro Alves <palves@redhat.com>
10273
10274 * NEWS: Mention multi-target debugging, "info connections", and
10275 "add-inferior -no-connection".
10276
2f4fcf00
PA
102772020-01-10 Pedro Alves <palves@redhat.com>
10278
10279 * infrun.c: Include "target-connection.h".
10280 (check_multi_target_resumption): New.
10281 (proceed): Call it.
10282 * target-connection.c (make_target_connection_string): Make
10283 extern.
10284 * target-connection.h (make_target_connection_string): Declare.
10285
121b3efd
PA
102862020-01-10 Pedro Alves <palves@redhat.com>
10287
10288 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10289 * inferior.c (uiout_field_connection): New function.
10290 (print_inferior): Add new "connection-id" column.
10291 (add_inferior_command): Show connection number/string of added
10292 inferior.
10293 * process-stratum-target.h
10294 (process_stratum_target::connection_string): New virtual method.
10295 (process_stratum_target::connection_number): New field.
10296 * remote.c (remote_target::connection_string): New override.
10297 * target-connection.c: New file.
10298 * target-connection.h: New file.
10299 * target.c (decref_target): Remove process_stratum targets from
10300 the connection list.
10301 (target_stack::push): Add process_stratum targets to the
10302 connection list.
10303
4f837581
PA
103042020-01-10 Pedro Alves <palves@redhat.com>
10305
10306 Revert:
10307 2016-04-12 Pedro Alves <palves@redhat.com>
10308 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10309 Remove references to name.
10310 * serial.h (struct serial) <name>: Delete.
10311
f4ec508e
PA
103122020-01-10 Pedro Alves <palves@redhat.com>
10313
10314 * gdbarch-selftests.c (register_to_value_test): Remove "target
10315 already pushed" check.
10316
5b6d1e4f
PA
103172020-01-10 Pedro Alves <palves@redhat.com>
10318 John Baldwin <jhb@FreeBSD.org>
10319
10320 * aarch64-linux-nat.c
10321 (aarch64_linux_nat_target::thread_architecture): Adjust.
10322 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10323 (task_command_1): Likewise.
10324 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10325 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10326 (aix_thread_target::store_registers)
10327 (aix_thread_target::thread_alive): Adjust.
10328 * amd64-fbsd-tdep.c: Include "inferior.h".
10329 (amd64fbsd_get_thread_local_address): Pass down target.
10330 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10331 thread's gdbarch instead of target_gdbarch.
10332 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10333 get_last_target_status.
10334 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10335 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10336 inferiors.
10337 (update_inserted_breakpoint_locations): Skip if inferiors with no
10338 execution.
10339 (update_global_location_list): When handling moribund locations,
10340 find representative inferior for location's pspace, and use thread
10341 count of its process_stratum target.
10342 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10343 * bsd-uthread.c (bsd_uthread_target::wait): Use
10344 as_process_stratum_target and adjust thread_change_ptid and
10345 add_thread calls.
10346 (bsd_uthread_target::update_thread_list): Use
10347 as_process_stratum_target and adjust find_thread_ptid,
10348 thread_change_ptid and add_thread calls.
10349 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10350 find_thread_ptid call.
10351 * corelow.c (add_to_thread_list): Adjust add_thread call.
10352 (core_target_open): Adjust add_thread_silent and thread_count
10353 calls.
10354 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10355 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10356 * event-top.c (async_disconnect): Pop targets from all inferiors.
10357 * exec.c (add_target_sections): Push exec target on all inferiors
10358 sharing the program space.
10359 (remove_target_sections): Remove the exec target from all
10360 inferiors sharing the program space.
10361 (exec_on_vfork): New.
10362 * exec.h (exec_on_vfork): Declare.
10363 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10364 Pass it down.
10365 (fbsd_nat_target::update_thread_list): Adjust.
10366 (fbsd_nat_target::resume): Adjust.
10367 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10368 down.
10369 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10370 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10371 get_thread_arch_regcache call.
10372 * fork-child.c (gdb_startup_inferior): Pass target down to
10373 startup_inferior and set_executing.
10374 * gdbthread.h (struct process_stratum_target): Forward declare.
10375 (add_thread, add_thread_silent, add_thread_with_info)
10376 (in_thread_list): Add process_stratum_target parameter.
10377 (find_thread_ptid(inferior*, ptid_t)): New overload.
10378 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10379 parameter.
10380 (all_threads()): Delete overload.
10381 (all_threads, all_non_exited_threads): Add process_stratum_target
10382 parameter.
10383 (all_threads_safe): Use brace initialization.
10384 (thread_count): Add process_stratum_target parameter.
10385 (set_resumed, set_running, set_stop_requested, set_executing)
10386 (threads_are_executing, finish_thread_state): Add
10387 process_stratum_target parameter.
10388 (switch_to_thread): Use is_current_thread.
10389 * i386-fbsd-tdep.c: Include "inferior.h".
10390 (i386fbsd_get_thread_local_address): Pass down target.
10391 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10392 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10393 have_inferiors check.
10394 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10395 (inf_ptrace_target::attach): Adjust.
10396 * infcall.c (run_inferior_call): Adjust.
10397 * infcmd.c (run_command_1): Pass target to
10398 scoped_finish_thread_state.
10399 (proceed_thread_callback): Skip inferiors with no execution.
10400 (continue_command): Rename 'all_threads' local to avoid hiding
10401 'all_threads' function. Adjust get_last_target_status call.
10402 (prepare_one_step): Adjust set_running call.
10403 (signal_command): Use user_visible_resume_target. Compare thread
10404 pointers instead of inferior_ptid.
10405 (info_program_command): Adjust to pass down target.
10406 (attach_command): Mark target's 'thread_executing' flag.
10407 (stop_current_target_threads_ns): New, factored out from ...
10408 (interrupt_target_1): ... this. Switch inferior before making
10409 target calls.
10410 * inferior-iter.h
10411 (struct all_inferiors_iterator, struct all_inferiors_range)
10412 (struct all_inferiors_safe_range)
10413 (struct all_non_exited_inferiors_range): Filter on
10414 process_stratum_target too. Remove explicit.
10415 * inferior.c (inferior::inferior): Push dummy target on target
10416 stack.
10417 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10418 Add process_stratum_target parameter, and pass it down.
10419 (have_live_inferiors): Adjust.
10420 (switch_to_inferior_and_push_target): New.
10421 (add_inferior_command, clone_inferior_command): Handle
10422 "-no-connection" parameter. Use
10423 switch_to_inferior_and_push_target.
10424 (_initialize_inferior): Mention "-no-connection" option in
10425 the help of "add-inferior" and "clone-inferior" commands.
10426 * inferior.h: Include "process-stratum-target.h".
10427 (interrupt_target_1): Use bool.
10428 (struct inferior) <push_target, unpush_target, target_is_pushed,
10429 find_target_beneath, top_target, process_target, target_at,
10430 m_stack>: New.
10431 (discard_all_inferiors): Delete.
10432 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10433 (all_inferiors, all_non_exited_inferiors): Add
10434 process_stratum_target parameter.
10435 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10436 (target_last_proc_target): New global.
10437 (follow_fork_inferior): Push target on new inferior. Pass target
10438 to add_thread_silent. Call exec_on_vfork. Handle target's
10439 reference count.
10440 (follow_fork): Adjust get_last_target_status call. Also consider
10441 target.
10442 (follow_exec): Push target on new inferior.
10443 (struct execution_control_state) <target>: New field.
10444 (user_visible_resume_target): New.
10445 (do_target_resume): Call target_async.
10446 (resume_1): Set target's threads_executing flag. Consider resume
10447 target.
10448 (commit_resume_all_targets): New.
10449 (proceed): Also consider resume target. Skip threads of inferiors
10450 with no execution. Commit resumtion in all targets.
10451 (start_remote): Pass current inferior to wait_for_inferior.
10452 (infrun_thread_stop_requested): Consider target as well. Pass
10453 thread_info pointer to clear_inline_frame_state instead of ptid.
10454 (infrun_thread_thread_exit): Consider target as well.
10455 (random_pending_event_thread): New inferior parameter. Use it.
10456 (do_target_wait): Rename to ...
10457 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10458 down.
10459 (threads_are_resumed_pending_p, do_target_wait): New.
10460 (prepare_for_detach): Adjust calls.
10461 (wait_for_inferior): New inferior parameter. Handle it. Use
10462 do_target_wait_1 instead of do_target_wait.
10463 (fetch_inferior_event): Adjust. Switch to representative
10464 inferior. Pass target down.
10465 (set_last_target_status): Add process_stratum_target parameter.
10466 Save target in global.
10467 (get_last_target_status): Add process_stratum_target parameter and
10468 handle it.
10469 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10470 (context_switch): Check inferior_ptid == null_ptid before calling
10471 inferior_thread().
10472 (get_inferior_stop_soon): Pass down target.
10473 (wait_one): Rename to ...
10474 (poll_one_curr_target): ... this.
10475 (struct wait_one_event): New.
10476 (wait_one): New.
10477 (stop_all_threads): Adjust.
10478 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10479 event's target.
10480 (switch_back_to_stepped_thread): Also consider target.
10481 (print_stop_event): Update.
10482 (normal_stop): Update. Also consider the resume target.
10483 * infrun.h (wait_for_inferior): Remove declaration.
10484 (user_visible_resume_target): New declaration.
10485 (get_last_target_status, set_last_target_status): New
10486 process_stratum_target parameter.
10487 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10488 process_stratum_target parameter, and use it.
10489 (clear_inline_frame_state (thread_info*)): New.
10490 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10491 process_stratum_target parameter.
10492 (clear_inline_frame_state (thread_info*)): Declare.
10493 * linux-fork.c (delete_checkpoint_command): Pass target down to
10494 find_thread_ptid.
10495 (checkpoint_command): Adjust.
10496 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10497 instead of just tweaking inferior_ptid.
10498 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10499 (exit_lwp): Pass target down to find_thread_ptid.
10500 (attach_proc_task_lwp_callback): Pass target down to
10501 add_thread/set_running/set_executing.
10502 (linux_nat_target::attach): Pass target down to
10503 thread_change_ptid.
10504 (get_detach_signal): Pass target down to find_thread_ptid.
10505 Consider last target status's target.
10506 (linux_resume_one_lwp_throw, resume_lwp)
10507 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10508 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10509 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10510 (linux_nat_target::async_wait_fd): New.
10511 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10512 target down.
10513 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10514 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10515 * linux-thread-db.c (struct thread_db_info::process_target): New
10516 field.
10517 (add_thread_db_info): Save target.
10518 (get_thread_db_info): New process_stratum_target parameter. Also
10519 match target.
10520 (delete_thread_db_info): New process_stratum_target parameter.
10521 Also match target.
10522 (thread_from_lwp): Adjust to pass down target.
10523 (thread_db_notice_clone): Pass down target.
10524 (check_thread_db_callback): Pass down target.
10525 (try_thread_db_load_1): Always push the thread_db target.
10526 (try_thread_db_load, record_thread): Pass target down.
10527 (thread_db_target::detach): Pass target down. Always unpush the
10528 thread_db target.
10529 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10530 target down. Always unpush the thread_db target.
10531 (find_new_threads_callback, thread_db_find_new_threads_2)
10532 (thread_db_target::update_thread_list): Pass target down.
10533 (thread_db_target::pid_to_str): Pass current inferior down.
10534 (thread_db_target::get_thread_local_address): Pass target down.
10535 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10536 target down.
10537 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10538 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10539 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10540 (procfs_init_inferior): Rename to ...
10541 (procfs_target::procfs_init_inferior): ... this and adjust.
10542 (procfs_target::create_inferior, procfs_notice_thread)
10543 (procfs_do_thread_registers): Adjust.
10544 * ppc-fbsd-tdep.c: Include "inferior.h".
10545 (ppcfbsd_get_thread_local_address): Pass down target.
10546 * proc-service.c (ps_xfer_memory): Switch current inferior and
10547 program space as well.
10548 (get_ps_regcache): Pass target down.
10549 * process-stratum-target.c
10550 (process_stratum_target::thread_address_space)
10551 (process_stratum_target::thread_architecture): Pass target down.
10552 * process-stratum-target.h
10553 (process_stratum_target::threads_executing): New field.
10554 (as_process_stratum_target): New.
10555 * ravenscar-thread.c
10556 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10557 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10558 down.
10559 * record-btrace.c (record_btrace_target::info_record): Adjust.
10560 (record_btrace_target::record_method)
10561 (record_btrace_target::record_is_replaying)
10562 (record_btrace_target::fetch_registers)
10563 (get_thread_current_frame_id, record_btrace_target::resume)
10564 (record_btrace_target::wait, record_btrace_target::stop): Pass
10565 target down.
10566 * record-full.c (record_full_wait_1): Switch to event thread.
10567 Pass target down.
10568 * regcache.c (regcache::regcache)
10569 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10570 process_stratum_target parameter and handle it.
10571 (current_thread_target): New global.
10572 (get_thread_regcache): Add process_stratum_target parameter and
10573 handle it. Switch inferior before calling target method.
10574 (get_thread_regcache): Pass target down.
10575 (get_thread_regcache_for_ptid): Pass target down.
10576 (registers_changed_ptid): Add process_stratum_target parameter and
10577 handle it.
10578 (registers_changed_thread, registers_changed): Pass target down.
10579 (test_get_thread_arch_aspace_regcache): New.
10580 (current_regcache_test): Define a couple local test_target_ops
10581 instances and use them for testing.
10582 (readwrite_regcache): Pass process_stratum_target parameter.
10583 (cooked_read_test, cooked_write_test): Pass mock_target down.
10584 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10585 (get_thread_arch_aspace_regcache): Add process_stratum_target
10586 parameter.
10587 (regcache::target): New method.
10588 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10589 (regcache::registers_changed_ptid): Add process_stratum_target
10590 parameter.
10591 (regcache::m_target): New field.
10592 (registers_changed_ptid): Add process_stratum_target parameter.
10593 * remote.c (remote_state::supports_vCont_probed): New field.
10594 (remote_target::async_wait_fd): New method.
10595 (remote_unpush_and_throw): Add remote_target parameter.
10596 (get_current_remote_target): Adjust.
10597 (remote_target::remote_add_inferior): Push target.
10598 (remote_target::remote_add_thread)
10599 (remote_target::remote_notice_new_inferior)
10600 (get_remote_thread_info): Pass target down.
10601 (remote_target::update_thread_list): Skip threads of inferiors
10602 bound to other targets. (remote_target::close): Don't discard
10603 inferiors. (remote_target::add_current_inferior_and_thread)
10604 (remote_target::process_initial_stop_replies)
10605 (remote_target::start_remote)
10606 (remote_target::remote_serial_quit_handler): Pass down target.
10607 (remote_target::remote_unpush_target): New remote_target
10608 parameter. Unpush the target from all inferiors.
10609 (remote_target::remote_unpush_and_throw): New remote_target
10610 parameter. Pass it down.
10611 (remote_target::open_1): Check whether the current inferior has
10612 execution instead of checking whether any inferior is live. Pass
10613 target down.
10614 (remote_target::remote_detach_1): Pass down target. Use
10615 remote_unpush_target.
10616 (extended_remote_target::attach): Pass down target.
10617 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10618 (remote_target::append_resumption): Pass down target.
10619 (remote_target::append_pending_thread_resumptions)
10620 (remote_target::remote_resume_with_hc, remote_target::resume)
10621 (remote_target::commit_resume): Pass down target.
10622 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10623 (remote_target::interrupt_query)
10624 (remote_target::remove_new_fork_children)
10625 (remote_target::check_pending_events_prevent_wildcard_vcont)
10626 (remote_target::remote_parse_stop_reply)
10627 (remote_target::process_stop_reply): Pass down target.
10628 (first_remote_resumed_thread): New remote_target parameter. Pass
10629 it down.
10630 (remote_target::wait_as): Pass down target.
10631 (unpush_and_perror): New remote_target parameter. Pass it down.
10632 (remote_target::readchar, remote_target::remote_serial_write)
10633 (remote_target::getpkt_or_notif_sane_1)
10634 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10635 down target.
10636 (remote_target::mourn_inferior): Pass down target. Use
10637 remote_unpush_target.
10638 (remote_target::core_of_thread)
10639 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10640 (remote_target::pid_to_exec_file)
10641 (remote_target::thread_handle_to_thread_info): Pass down target.
10642 (remote_target::async_wait_fd): New.
10643 * riscv-fbsd-tdep.c: Include "inferior.h".
10644 (riscv_fbsd_get_thread_local_address): Pass down target.
10645 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10646 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10647 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10648 Adjust.
10649 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10650 * solib-svr4.c (enable_break): Pass down target.
10651 * spu-multiarch.c (parse_spufs_run): Pass down target.
10652 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10653 * target-delegates.c: Regenerate.
10654 * target.c (g_target_stack): Delete.
10655 (current_top_target): Return the current inferior's top target.
10656 (target_has_execution_1): Refer to the passed-in inferior's top
10657 target.
10658 (target_supports_terminal_ours): Check whether the initial
10659 inferior was already created.
10660 (decref_target): New.
10661 (target_stack::push): Incref/decref the target.
10662 (push_target, push_target, unpush_target): Adjust.
10663 (target_stack::unpush): Defref target.
10664 (target_is_pushed): Return bool. Adjust to refer to the current
10665 inferior's target stack.
10666 (dispose_inferior): Delete, and inline parts ...
10667 (target_preopen): ... here. Only dispose of the current inferior.
10668 (target_detach): Hold strong target reference while detaching.
10669 Pass target down.
10670 (target_thread_name): Add assertion.
10671 (target_resume): Pass down target.
10672 (target_ops::beneath, find_target_at): Adjust to refer to the
10673 current inferior's target stack.
10674 (get_dummy_target): New.
10675 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10676 has a thread running.
10677 (initialize_targets): Rename to ...
10678 (_initialize_target): ... this.
10679 * target.h: Include "gdbsupport/refcounted-object.h".
10680 (struct target_ops): Inherit refcounted_object.
10681 (target_ops::shortname, target_ops::longname): Make const.
10682 (target_ops::async_wait_fd): New method.
10683 (decref_target): Declare.
10684 (struct target_ops_ref_policy): New.
10685 (target_ops_ref): New typedef.
10686 (get_dummy_target): Declare function.
10687 (target_is_pushed): Return bool.
10688 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10689 (all_matching_threads_iterator::all_matching_threads_iterator):
10690 Handle filter target.
10691 * thread-iter.h (struct all_matching_threads_iterator, struct
10692 all_matching_threads_range, class all_non_exited_threads_range):
10693 Filter by target too. Remove explicit.
10694 * thread.c (threads_executing): Delete.
10695 (inferior_thread): Pass down current inferior.
10696 (clear_thread_inferior_resources): Pass down thread pointer
10697 instead of ptid_t.
10698 (add_thread_silent, add_thread_with_info, add_thread): Add
10699 process_stratum_target parameter. Use it for thread and inferior
10700 searches.
10701 (is_current_thread): New.
10702 (thread_info::deletable): Use it.
10703 (find_thread_ptid, thread_count, in_thread_list)
10704 (thread_change_ptid, set_resumed, set_running): New
10705 process_stratum_target parameter. Pass it down.
10706 (set_executing): New process_stratum_target parameter. Pass it
10707 down. Adjust reference to 'threads_executing'.
10708 (threads_are_executing): New process_stratum_target parameter.
10709 Adjust reference to 'threads_executing'.
10710 (set_stop_requested, finish_thread_state): New
10711 process_stratum_target parameter. Pass it down.
10712 (switch_to_thread): Also match inferior.
10713 (switch_to_thread): New process_stratum_target parameter. Pass it
10714 down.
10715 (update_threads_executing): Reimplement.
10716 * top.c (quit_force): Pop targets from all inferior.
10717 (gdb_init): Don't call initialize_targets.
10718 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10719 Declare.
10720 (windows_add_thread, windows_delete_thread): Adjust.
10721 (get_windows_debug_event): Rename to ...
10722 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10723 * tracefile-tfile.c (tfile_target_open): Pass down target.
10724 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10725 Forward declare.
10726 (switch_to_thread): Add process_stratum_target parameter.
10727 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10728 parameter. Use it.
10729 (mi_on_resume): Pass target down.
10730 * nat/fork-inferior.c (startup_inferior): Add
10731 process_stratum_target parameter. Pass it down.
10732 * nat/fork-inferior.h (startup_inferior): Add
10733 process_stratum_target parameter.
10734 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10735
75c6c844
PA
107362020-01-10 Pedro Alves <palves@redhat.com>
10737
10738 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10739 directly. Instead find the first thread in the thread list and
10740 use switch_to_thread.
10741
78f2c40a
PA
107422020-01-10 Pedro Alves <palves@redhat.com>
10743
10744 * remote.c (remote_target::remote_add_inferior): Don't bind a
10745 process to the current inferior if the current inferior is already
10746 bound to a process.
10747
e7af6c70
TBA
107482020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10749 Pedro Alves <palves@redhat.com>
10750
10751 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10752 If no process is specified, return null_ptid instead of
10753 inferior_ptid.
10754 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10755 TARGET_WAITKIND_SIGNALLED with no pid.
10756
31ba933e
PA
107572020-01-10 Pedro Alves <palves@redhat.com>
10758
10759 * remote.c (first_remote_resumed_thread): New.
10760 (remote_target::wait_as): Use it as default event_ptid instead of
10761 inferior_ptid.
10762
735fc2ca
PA
107632020-01-10 Pedro Alves <palves@redhat.com>
10764
10765 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10766
c17e02e1
PA
107672020-01-10 Pedro Alves <palves@redhat.com>
10768
10769 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10770 not -1.
10771
ab1ddbcf
PA
107722020-01-10 Pedro Alves <palves@redhat.com>
10773
10774 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10775 ptid to get_last_target_status.
10776 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10777 ptid to get_last_target_status.
10778 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10779 get_last_target_status.
10780 (info_program_command): Don't pass a target_waitstatus to
10781 get_last_target_status.
10782 * infrun.c (init_wait_for_inferior): Use
10783 nullify_last_target_wait_ptid.
10784 (get_last_target_status): Handle nullptr arguments.
10785 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10786 (print_stop_event): Don't pass a ptid to get_last_target_status.
10787 (normal_stop): Don't pass a ptid to get_last_target_status.
10788 * infrun.h (get_last_target_status, set_last_target_status): Move
10789 comments here and update.
10790 (nullify_last_target_wait_ptid): Declare.
10791 * linux-fork.c (fork_load_infrun_state): Remove local extern
10792 declaration of nullify_last_target_wait_ptid.
10793 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10794 to get_last_target_status.
10795
f3f8ece4
PA
107962020-01-10 Pedro Alves <palves@redhat.com>
10797
10798 * gdbthread.h (scoped_restore_current_thread)
10799 <dont_restore, restore, m_dont_restore>: Declare.
10800 * thread.c (thread_alive): Add assertion. Return bool.
10801 (switch_to_thread_if_alive): New.
10802 (prune_threads): Switch inferior/thread.
10803 (print_thread_info_1): Switch thread before calling target methods.
10804 (scoped_restore_current_thread::restore): New, factored out from
10805 ...
10806 (scoped_restore_current_thread::~scoped_restore_current_thread):
10807 ... this.
10808 (scoped_restore_current_thread::scoped_restore_current_thread):
10809 Add assertion.
10810 (thread_apply_all_command, thread_select): Use
10811 switch_to_thread_if_alive.
10812 * infrun.c (proceed, restart_threads, handle_signal_stop)
10813 (switch_back_to_stepped_thread): Switch current thread before
10814 calling target methods.
10815
db2d40f7
PA
108162020-01-10 Pedro Alves <palves@redhat.com>
10817
10818 * inferior.c (switch_to_inferior_no_thread): New function,
10819 factored out from ...
10820 (inferior_command): ... here.
10821 * inferior.h (switch_to_inferior_no_thread): Declare.
10822 * mi/mi-main.c (run_one_inferior): Use
10823 switch_to_inferior_no_thread.
10824
bd420a2d
PA
108252020-01-10 Pedro Alves <palves@redhat.com>
10826
10827 * infcmd.c (kill_command): Remove dead code.
10828
ddf5db90
PA
108292020-01-10 Pedro Alves <palves@redhat.com>
10830
10831 * remote.c (remote_target::mourn_inferior): No longer check
10832 whether the target is running.
10833
5018ce90
PA
108342020-01-10 Pedro Alves <palves@redhat.com>
10835
10836 * corelow.c (core_target::has_execution): Change parameter type to
10837 inferior pointer.
10838 * inferior.c (number_of_live_inferiors): Use
10839 inferior::has_execution instead of target_has_execution_1.
10840 * inferior.h (inferior::has_execution): New.
10841 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10842 inferior::has_execution instead of target_has_execution_1.
10843 * process-stratum-target.c
10844 (process_stratum_target::has_execution): Change parameter type to
10845 inferior pointer. Check the inferior's PID instead of
10846 inferior_ptid.
10847 * process-stratum-target.h
10848 (process_stratum_target::has_execution): Change parameter type to
10849 inferior pointer.
10850 * record-full.c (record_full_core_target::has_execution): Change
10851 parameter type to inferior pointer.
10852 * target.c (target_has_execution_1): Change parameter type to
10853 inferior pointer.
10854 (target_has_execution_current): Adjust.
10855 * target.h (target_ops::has_execution): Change parameter type to
10856 inferior pointer.
10857 (target_has_execution_1): Change parameter type to inferior
10858 pointer. Change return type to bool.
10859 * tracefile.h (tracefile_target::has_execution): Change parameter
10860 type to inferior pointer.
10861
74375d18
PA
108622020-01-10 Pedro Alves <palves@redhat.com>
10863
10864 * exceptions.c (print_flush): Remove current_top_target() check.
10865
acdf84a6
PA
108662020-01-10 Pedro Alves <palves@redhat.com>
10867
10868 * remote.c (show_remote_exec_file): Show the current inferior's
10869 exec-file instead of the command variable's value.
10870
ec506636
PA
108712020-01-10 Pedro Alves <palves@redhat.com>
10872
10873 * record-full.c (record_full_resume_ptid): New global.
10874 (record_full_target::resume): Set it.
10875 (record_full_wait_1): Use record_full_resume_ptid instead of
10876 inferior_ptid.
10877
873657b9
PA
108782020-01-10 Pedro Alves <palves@redhat.com>
10879
10880 * gdbthread.h (scoped_restore_current_thread)
10881 <dont_restore, restore, m_dont_restore>: Declare.
10882 * thread.c (thread_alive): Add assertion. Return bool.
10883 (switch_to_thread_if_alive): New.
10884 (prune_threads): Switch inferior/thread.
10885 (print_thread_info_1): Switch thread before calling target methods.
10886 (scoped_restore_current_thread::restore): New, factored out from
10887 ...
10888 (scoped_restore_current_thread::~scoped_restore_current_thread):
10889 ... this.
10890 (scoped_restore_current_thread::scoped_restore_current_thread):
10891 Add assertion.
10892 (thread_apply_all_command, thread_select): Use
10893 switch_to_thread_if_alive.
10894
7f0ae84c
GB
108952020-01-10 George Barrett <bob@bob131.so>
10896
10897 * stap-probe.c (stap_modify_semaphore): Don't check for null
10898 semaphores.
10899 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10900 for null semaphores.
10901
f5a7c406
AB
109022020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10905 all source windows, and maintain horizontal scroll status while
10906 doing so.
10907
9ae6bf64
TT
109082020-01-09 Tom Tromey <tom@tromey.com>
10909
10910 PR tui/18932:
10911 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10912 update_source_window, not print_source_lines.
10913
b2efe70c
AB
109142020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 * tui/tui.c (tui_enable): Register tui hooks after calling
10917 tui_display_main.
10918
5f23a082
CB
109192020-01-09 Christian Biesinger <cbiesinger@google.com>
10920
10921 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10922
3061113b
SM
109232020-01-08 Simon Marchi <simon.marchi@efficios.com>
10924
10925 * thread.c (print_thread_info_1): Fix indentation.
10926
57d75002
CB
109272020-01-09 Christian Biesinger <cbiesinger@google.com>
10928
10929 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10930 unique_xmalloc_ptr outside the if to always free the demangled name.
10931
6a053cb1
TT
109322020-01-08 Tom Tromey <tromey@adacore.com>
10933
10934 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10935 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10936 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10937 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10938 Remove.
10939 (section_offsets): New typedef.
10940 * symtab.c (fixup_section, get_msymbol_address): Update.
10941 * symmisc.c (dump_msymbols): Update.
10942 * symfile.h (relative_addr_info_to_section_offsets)
10943 (symfile_map_offsets_to_segments): Update.
10944 * symfile.c (build_section_addr_info_from_objfile)
10945 (init_objfile_sect_indices): Update.
10946 (struct place_section_arg): Change type of "offsets".
10947 (place_section): Update.
10948 (relative_addr_info_to_section_offsets): Change type of
10949 "section_offsets". Remove "num_sections" parameter.
10950 (default_symfile_offsets, syms_from_objfile_1)
10951 (set_objfile_default_section_offset): Update.
10952 (reread_symbols): No need to preserve section offsets by hand.
10953 (symfile_map_offsets_to_segments): Change type of "offsets".
10954 * stap-probe.c (relocate_address): Update.
10955 * stabsread.h (process_one_symbol): Update.
10956 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10957 (solib_target_relocate_section_addresses): Update.
10958 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10959 Update.
10960 * solib-frv.c (frv_relocate_main_executable): Update.
10961 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10962 * solib-aix.c (solib_aix_get_section_offsets): Change return
10963 type.
10964 (solib_aix_solib_create_inferior_hook): Update.
10965 * remote.c (remote_target::get_offsets): Update.
10966 * psymtab.c (find_pc_sect_psymtab): Update.
10967 * psympriv.h (struct partial_symbol) <address, text_low,
10968 text_high>: Update.
10969 * objfiles.h (obj_section_offset): Update.
10970 (struct objfile) <section_offsets>: Change type.
10971 <num_sections>: Remove.
10972 (objfile_relocate): Update.
10973 * objfiles.c (entry_point_address_query): Update
10974 (relocate_one_symbol): Change type of "section_offsets".
10975 (objfile_relocate1, objfile_relocate1): Change type of
10976 "new_offsets".
10977 (objfile_rebase1): Update.
10978 * mipsread.c (mipscoff_symfile_read): Update.
10979 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10980 parameter.
10981 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10982 (parse_external, psymtab_to_symtab_1): Update.
10983 * machoread.c (macho_symfile_offsets): Update.
10984 * ia64-tdep.c (ia64_find_unwind_table): Update.
10985 * hppa-tdep.c (read_unwind_info): Update.
10986 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10987 * dwarf2read.c (create_addrmap_from_index)
10988 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10989 (process_psymtab_comp_unit_reader, add_partial_symbol)
10990 (add_partial_subprogram, process_full_comp_unit)
10991 (read_file_scope, read_func_scope, read_lexical_block_scope)
10992 (read_call_site_scope, dwarf2_rnglists_process)
10993 (dwarf2_ranges_process, dwarf2_ranges_read)
10994 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10995 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10996 Update.
10997 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10998 Update.
10999 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11000 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11001 (process_one_symbol): Change type of "section_offsets".
11002 * ctfread.c (get_objfile_text_range): Update.
11003 * coffread.c (coff_symtab_read, enter_linenos)
11004 (process_coff_symbol): Update.
11005 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11006 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11007
456e800a
TT
110082020-01-08 Tom Tromey <tromey@adacore.com>
11009
11010 * dwarf2read.c (parse_macro_definition): Use std::string.
11011 (parse_macro_definition): Likewise.
11012
6dfa2fc2
TT
110132020-01-08 Tom Tromey <tromey@adacore.com>
11014
11015 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11016 (ATTR_ALLOC_CHUNK): Remove.
11017
421d1616
TT
110182020-01-08 Tom Tromey <tromey@adacore.com>
11019
11020 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11021
43816ebc
TT
110222020-01-08 Tom Tromey <tromey@adacore.com>
11023
11024 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11025 (dwarf2_compute_name, open_dwo_file): Likewise.
11026 (process_enumeration_scope): Use std::vector.
11027 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11028 (partial_die_info::fixup, dwarf2_start_subfile)
11029 (guess_full_die_structure_name, dwarf2_name): Likewise.
11030 (determine_prefix): Update.
11031 (guess_full_die_structure_name): Make return type const.
11032 (partial_die_full_name): Return unique_xmalloc_ptr.
11033 (DW_FIELD_ALLOC_CHUNK): Remove.
11034
4212d509
TT
110352020-01-07 Tom Tromey <tromey@adacore.com>
11036
11037 PR build/24937:
11038 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11039
06a6207a
JT
110402020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11041
11042 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11043
153d79c4
AB
110442020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * stack.c (print_frame_info): Move disassemble_next_line code
11047 inside source_print block.
11048
66182876
EZ
110492020-01-06 Eli Zaretskii <eliz@gnu.org>
11050
11051 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11052 gdb/signals.h, as we are now using native signal symbols.
11053
cbfa8581
SV
110542020-01-06 Shahab Vahedi <shahab@synopsys.com>
11055
11056 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11057 overflow by an early check of content vs threshold.
aac66a4c 11058 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11059 Likewise.
11060
3f602821
EZ
110612020-01-06 Eli Zaretskii <eliz@gnu.org>
11062
11063 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11064
a08c904d
JT
110652020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11066
11067 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11068 export table if no section contains it's RVA.
11069
89a65580
EZ
110702020-01-06 Eli Zaretskii <eliz@gnu.org>
11071
11072 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11073
8b7fcda2
HD
110742020-01-06 Hannes Domani <ssbssa@yahoo.de>
11075
11076 * source.c (print_source_lines_base): Set last_line_listed.
11077
a61b4f69
SV
110782020-01-06 Shahab Vahedi <shahab@synopsys.com>
11079
11080 * tui/tui-disasm.c: Remove trailing spaces.
11081
559e7e50
EZ
110822020-01-06 Eli Zaretskii <eliz@gnu.org>
11083 Pedro Alves <palves@redhat.com>
11084
11085 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11086 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11087 (windows_gdb_signal_to_target): New function, uses the above
11088 enumeration to convert GDB internal signal codes to equivalent
11089 Windows codes.
11090 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11091 * windows-nat.c: Include "gdb_wait.h".
11092 (get_windows_debug_event): Extract the fatal exception from the
11093 exit status and convert to the equivalent Posix signal number.
11094 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11095 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11096 * gdbsupport/gdb_wait.c: New file, implements
11097 windows_status_to_termsig.
11098 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11099 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11100
f2302a34
AB
111012020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11104 show_layout.
11105
6a5206eb
LM
111062020-01-05 Luis Machado <luis.machado@linaro.org>
11107
11108 * aarch64-linux-nat.c
11109 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11110 and bfd_mach_aarch64.
11111
6ec1d75e
PW
111122020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11113
11114 * ui-file.c (stdio_file::can_emit_style_escape)
11115 (tee_file::can_emit_style_escape): Ensure style is used also on
11116 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11117 to gdb_stdout.
11118 * main.c (set_gdb_data_directory): Use file style to output the
11119 warning that the given pathname is not a directory.
11120 * top.c (show_history_filename, gdb_safe_append_history)
11121 (show_gdb_datadir): Use file style.
11122
44f81a76
HD
111232020-01-03 Hannes Domani <ssbssa@yahoo.de>
11124
11125 * solib-target.c (struct lm_info_target):
11126 Change offsets to be a unique_xmalloc_ptr.
11127 (solib_target_relocate_section_addresses): Update.
11128
25057eb0
HD
111292020-01-03 Hannes Domani <ssbssa@yahoo.de>
11130
11131 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11132
6e2118f5
BE
111332020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11134
11135 * MAINTAINERS (Write After Approval): Add myself.
11136
8133c7dc
LM
111372020-01-02 Luis Machado <luis.machado@linaro.org>
11138
11139 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11140 Cell BE architecture.
11141 * target.h (struct target_ops) <thread_architecture>: Likewise.
11142
48189bec
HD
111432020-01-01 Hannes Domani <ssbssa@yahoo.de>
11144
11145 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11146
ead1063b
HD
111472020-01-01 Hannes Domani <ssbssa@yahoo.de>
11148
11149 * MAINTAINERS (Write After Approval): Add myself.
11150
e5d78223
JB
111512020-01-01 Joel Brobecker <brobecker@adacore.com>
11152
11153 * gdbarch.sh: Update copyright year range of generated files.
11154
b811d2c2
JB
111552020-01-01 Joel Brobecker <brobecker@adacore.com>
11156
11157 Update copyright year range in all GDB files.
11158
5f4def5c
JB
111592020-01-01 Joel Brobecker <brobecker@adacore.com>
11160
11161 * copyright.py: Convert to Python 3.
11162
51fd4002
JB
111632020-01-01 Joel Brobecker <brobecker@adacore.com>
11164
11165 * copyright.py: Adapt after move of gnulib directory from gdb
11166 directory to toplevel directory.
11167
5fb651f2
JB
111682020-01-01 Joel Brobecker <brobecker@adacore.com>
11169
11170 * copyright.py (main): Exit if run from the wrong directory.
11171
5dd8bf88
JB
111722020-01-01 Joel Brobecker <brobecker@adacore.com>
11173
11174 * top.c (print_gdb_version): Change copyright year to 2020.
11175
9f71dacb 111762020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11177
9f71dacb 11178 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11179
9f71dacb 11180For older changes see ChangeLog-2019.
c906108c
SS
11181\f
11182Local Variables:
11183mode: change-log
11184left-margin: 8
11185fill-column: 74
11186version-control: never
57da7796 11187coding: utf-8
c906108c 11188End: