]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/testsuite] Use MACRO_AT_{func,range}
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d0ce17d8
CT
12020-07-16 Caroline Tice <cmtice@google.com>
2
3 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4 (RNGLIST_HEADER_SIZE64): New constant definition.
5 (struct dwop_section_names): Add rnglists_dwo.
6 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7 (struct loclist_header): Rename to 'loclists_rnglists_header'.
8 (struct dwo_sections): Add rnglists field.
9 (read_attribut_reprocess): Add tag parameter.
10 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
11 (cu_debug_rnglists_section): New function (decl & definition).
12 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
13 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
14 die whose range is being checked; get rnglist section from
15 cu_debug_rnglists_section, to get from either objfile or dwo file as
16 appropriate. Add cases for DW_RLE_base_addressx,
17 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
18 the base address to DW_RLE_offset_pairs (not to all ranges), moving
19 test inside if-condition and updating complaint message.
20 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
21 dwarf2_rnglists_process.
22 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
23 dwarf2_ranges_process.
24 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
25 need_ranges_base and update comment appropriately. Also pass die tag
26 to dwarf2_ranges_read.
27 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
28 need_ranges_base and update comment appropriately. Also pass die tag
29 to dwarf2_ranges_process.
30 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
31 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
32 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
33 need_ranges_base and update comment appropriately. Also pass die tag
34 to read_attribute_reprocess and dwarf2_ranges_read.
35 (read_loclist_header): Rename function to read_loclists_rnglists_header,
36 and update function comment appropriately.
37 (read_loclist_index): Call read_loclists_rnglists_header instead of
38 read_loclist_header.
39 (read_rnglist_index): New function.
40 (read_attribute_reprocess): Add tag parameter. Add code for
41 DW_FORM_rnglistx, passing tag to read_rnglist_index.
42 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
43
3dcc261c
AB
442020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
47 being resolved.
48
ccb9eba6
AB
492020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * arch-utils.c (show_architecture): Update formatting of messages.
52
cf88be68
SM
532020-07-12 Simon Marchi <simon.marchi@efficios.com>
54
55 * gdbtypes.h (struct type) <bounds>: Handle array and string
56 types.
57 * ada-lang.c (assign_aggregate): Use type::bounds on
58 array/string type.
59 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
60 * c-varobj.c (c_number_of_children): Likewise.
61 (c_describe_child): Likewise.
62 * eval.c (evaluate_subexp_for_sizeof): Likewise.
63 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
64 (f_type_print_base): Likewise.
65 * f-valprint.c (f77_array_offset_tbl): Likewise.
66 (f77_get_upperbound): Likewise.
67 (f77_print_array_1): Likewise.
68 * guile/scm-type.c (gdbscm_type_range): Likewise.
69 * m2-typeprint.c (m2_array): Likewise.
70 (m2_is_long_set_of_type): Likewise.
71 * m2-valprint.c (get_long_set_bounds): Likewise.
72 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
73 * python/py-type.c (typy_range): Likewise.
74 * rust-lang.c (rust_internal_print_type): Likewise.
75 * type-stack.c (type_stack::follow_types): Likewise.
76 * valarith.c (value_subscripted_rvalue): Likewise.
77 * valops.c (value_cast): Likewise.
78
509971ae
SM
792020-07-12 Simon Marchi <simon.marchi@efficios.com>
80
81 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
82 callers to use the equivalent accessor methods.
83
107406b7
SM
842020-07-12 Simon Marchi <simon.marchi@efficios.com>
85
86 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
87 (struct type) <bit_stride>: New method.
88 (TYPE_BIT_STRIDE): Remove.
89 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
90
bb789949
SM
912020-07-12 Simon Marchi <simon.marchi@efficios.com>
92
93 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
94 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
95 callers to use the equivalent accessor methods instead.
96
39498edb
SM
972020-07-12 Simon Marchi <simon.marchi@efficios.com>
98
99 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
100 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
101 callers to use the equivalent accessor methods instead.
102
3b606f38
SM
1032020-07-12 Simon Marchi <simon.marchi@efficios.com>
104
105 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
106 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
107 to use dynamic_prop::kind.
108
064d9cb9
SM
1092020-07-12 Simon Marchi <simon.marchi@efficios.com>
110
111 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
112 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
113 to get the bound property's kind and check against
114 PROP_UNDEFINED.
115
5537ddd0
SM
1162020-07-12 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
119 all callers to use type::range_bounds followed by
120 dynamic_prop::{low,high}.
121
8c2e4e06
SM
1222020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
125 const_val, set_const_val, baton, set_locexpr, set_loclist,
126 set_addr_offset, variant_parts, set_variant_parts,
127 original_type, set_original_type>: New methods.
128 <kind>: Rename to...
129 <m_kind>: ... this. Update all users to use the new methods
130 instead.
131 <data>: Rename to...
132 <m_data>: ... this. Update all users to use the new methods
133 instead.
134
7c6f2712
SM
1352020-07-12 Simon Marchi <simon.marchi@efficios.com>
136
137 * gdbtypes.c (get_discrete_bounds): Return failure if
138 the range type's bounds are not both defined and constant
139 values.
140 (get_array_bounds): Update comment. Remove undefined bound check.
141
599088e3
SM
1422020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
145 the type::bounds method directly.
146
c4dfcb36
SM
1472020-07-12 Simon Marchi <simon.marchi@efficios.com>
148
149 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
150 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
151 are used to set the range type's bounds to use set_bounds.
152
0a278aa7
PW
1532020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
154
155 * exec.c (_initialize_exec): Update exec-file-mismatch help.
156
cce20f10
PA
1572020-07-10 Pedro Alves <pedro@palves.net>
158
159 * gdbthread.h (inferior_ref): Define.
160 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
161 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
162 * thread.c
163 (scoped_restore_current_thread::restore):
164 Adjust to gdb::ref_ptr.
165 (scoped_restore_current_thread::~scoped_restore_current_thread):
166 Remove manual decref handling.
167 (scoped_restore_current_thread::scoped_restore_current_thread):
168 Adjust to use
169 inferior_ref::new_reference/thread_info_ref::new_reference.
170 Incref the thread before calling get_frame_id instead of after.
171 Let TARGET_CLOSE_ERROR propagate.
172
6d7aa592
PA
1732020-07-10 Pedro Alves <pedro@palves.net>
174
175 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
176 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
177 NOT_AVAILABLE_ERROR.
178 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
179 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
180
b3e3a4c1
SM
1812020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
182 Pedro Alves <pedro@palves.net>
183
184 PR gdb/26199
185 * infrun.c (threads_are_resumed_pending_p): Delete.
186 (do_target_wait): Remove threads_are_executing and
187 threads_are_resumed_pending_p checks from the inferior_matches
188 lambda. Update comments.
189
d6cc5d98
PA
1902020-07-10 Pedro Alves <pedro@palves.net>
191
192 PR gdb/26199
193 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
194 executing threads.
195
7d3badc6
PA
1962020-07-10 Pedro Alves <pedro@palves.net>
197
198 PR gdb/26199
199 * infrun.c (handle_no_resumed): Handle multiple targets.
200
42bd97a6
PA
2012020-07-10 Pedro Alves <pedro@palves.net>
202
203 PR gdb/26199
204 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
205 target_is_async_p.
206
43667cc6
PA
2072020-07-10 Pedro Alves <pedro@palves.net>
208
209 PR gdb/26199
210 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
211 threads, not all threads.
212
96118d11
PA
2132020-07-10 Pedro Alves <pedro@palves.net>
214
215 PR gdb/26199
216 * remote.c (remote_target::open_1): Pass remote target pointer as
217 data to create_async_event_handler.
218 (remote_async_inferior_event_handler): Mark async event handler
219 before returning if the remote target still has either pending
220 events or unacknowledged notifications.
221
54904d81
JB
2222020-07-10 John Baldwin <jhb@FreeBSD.org>
223
224 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
225 declaration.
226 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
227 function.
228
f37e5866
JB
2292020-07-09 John Baldwin <jhb@FreeBSD.org>
230
231 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
232 inferior_ptid.
233
fc238d4a
JB
2342020-07-09 John Baldwin <jhb@FreeBSD.org>
235
236 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
237 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
238 AT_FREEBSD_PS_STRINGS.
239
6e2469ff
HD
2402020-07-08 Hannes Domani <ssbssa@yahoo.de>
241
242 * auto-load.c (auto_load_objfile_script_1): Convert drive part
243 of debugfile path on Windows.
244
d1076c41
JB
2452020-07-08 John Baldwin <jhb@FreeBSD.org>
246
247 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
248 argument to 'data'.
249
15f3b077
TT
2502020-07-08 Tom Tromey <tromey@adacore.com>
251
252 * ada-lang.c (ada_exception_message_1): Use read_memory.
253
9fc501fd
AB
2542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 PR python/22748
257 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
258 special handling for inline frames.
259 * findvar.c (value_of_register_lazy): Skip inline frames when
260 creating lazy register values.
261 * frame.c (frame_id_computed_p): Delete definition.
262 * frame.h (frame_id_computed_p): Delete declaration.
263
64cb3757
AB
2642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 * NEWS: Mention additions to Python API.
267 * python/py-arch.c (archpy_register_groups): New function.
268 (arch_object_methods): Add 'register_groups' method.
269 * python/py-registers.c (reggroup_iterator_object): New struct.
270 (reggroup_object): New struct.
271 (gdbpy_new_reggroup): New function.
272 (gdbpy_reggroup_to_string): New function.
273 (gdbpy_reggroup_name): New function.
274 (gdbpy_reggroup_iter): New function.
275 (gdbpy_reggroup_iter_next): New function.
276 (gdbpy_new_reggroup_iterator): New function
277 (gdbpy_initialize_registers): Register new types.
278 (reggroup_iterator_object_type): Define new Python type.
279 (gdbpy_reggroup_getset): New static global.
280 (reggroup_object_type): Define new Python type.
281 * python/python-internal.h
282
0f767f94
AB
2832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
286 * python/py-arch.c (archpy_registers): New function.
287 (arch_object_methods): Add 'registers' method.
288 * python/py-registers.c: New file.
289 * python/python-internal.h
290 (gdbpy_new_register_descriptor_iterator): Declare.
291 (gdbpy_initialize_registers): Declare.
292 * python/python.c (do_start_initialization): Call
293 gdbpy_initialize_registers.
294 * NEWS: Mention additions to the Python API.
295
87dbc774
AB
2962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * NEWS: Mention new Python API method.
299 * python/py-unwind.c (pending_framepy_architecture): New function.
300 (pending_frame_object_methods): Add architecture method.
301
3bc98c0c
AB
3022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * gdbarch.c: Regenerate.
305 * gdbarch.h: Regenerate.
306 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
307 (gdbarch_data): Use internal_error for the case where
308 deprecated_set_gdbarch_data was originally needed.
309 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
310 and use passed in obstack.
311 (libunwind_frame_set_descr): Should no longer get back NULL from
312 gdbarch_data.
313 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
314 type.
315 * user-regs.c (user_regs_init): Update parameters, and use passed
316 in obstack.
317 (user_reg_add): Should no longer get back NULL from gdbarch_data.
318 (_initialize_user_regs): Register as a pre-init gdbarch data type.
319
d8cc8af6
TV
3202020-07-06 Tom de Vries <tdevries@suse.de>
321
322 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
323 End-Of-Sequence in lte_is_less_than.
324 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
325 "gdb: Don't reorder line table entries too much when sorting".
326
947f7597
TV
3272020-07-06 Tom de Vries <tdevries@suse.de>
328
329 PR tui/26205
330 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
331
1e7c1b22
TV
3322020-07-05 Tom de Vries <tdevries@suse.de>
333
334 PR build/26187
335 * inferior.h (struct infcall_suspend_state_deleter): If available, use
336 std::uncaught_exceptions instead of deprecated
337 std::uncaught_exception.
338
a36158ec
SM
3392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * macroexp.h (macro_stringify): Return
342 gdb::unique_xmalloc_ptr<char>.
343 * macroexp.c (macro_stringify): Likewise.
344 * macrotab.c (fixup_definition): Update.
345
14d960c8
SM
3462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
349 (lex_one_token): Update.
350 * macroexp.c (struct macro_buffer) <release>: Return
351 gdb::unique_xmalloc_ptr<char>.
352 (macro_stringify): Update.
353 (macro_expand): Update.
354 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
355 * macroexp.h (macro_expand_next): Likewise.
356
211d5b1c
SM
3572020-07-02 Simon Marchi <simon.marchi@efficios.com>
358
359 * macroexp.h (macro_lookup_ftype): Remove.
360 (macro_expand, macro_expand_once, macro_expand_next): Remove
361 lookup function parameters, add scope parameter.
362 * macroexp.c (scan, substitute_args, expand, maybe_expand,
363 macro_expand, macro_expand_once, macro_expand_next): Likewise.
364 * macroscope.h (standard_macro_lookup): Change parameter type
365 to macro_scope.
366 * macroscope.c (standard_macro_lookup): Likewise.
367 * c-exp.y (lex_one_token): Update.
368 * macrocmd.c (macro_expand_command): Likewise.
369 (macro_expand_once_command): Likewise.
370
b1a35af2
SM
3712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * inf-loop.c (inferior_event_handler): Remove client_data param.
374 * inf-loop.h (inferior_event_handler): Likewise.
375 * infcmd.c (step_1): Adjust.
376 * infrun.c (proceed): Adjust.
377 (fetch_inferior_event): Remove client_data param.
378 (infrun_async_inferior_event_handler): Adjust.
379 * infrun.h (fetch_inferior_event): Remove `void *` param.
380 * linux-nat.c (handle_target_event): Adjust.
381 * record-btrace.c (record_btrace_handle_async_inferior_event):
382 Adjust.
383 * record-full.c (record_full_async_inferior_event_handler):
384 Adjust.
385 * remote.c (remote_async_inferior_event_handler): Adjust.
386
1cdf9e33
TT
3872020-07-01 Tom Tromey <tom@tromey.com>
388
389 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
390 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
391
32c1e210
TT
3922020-07-01 Tom Tromey <tom@tromey.com>
393
394 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
395 tui_gen_win_info.
396 (tui_win_info::make_window): Merge with
397 tui_gen_win_info::make_window.
398 (tui_win_info::make_visible): Move from tui_gen_win_info.
399 * tui/tui-win.c (tui_win_info::max_width): Move from
400 tui_gen_win_info.
401 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
402 type.
403 <window_factory>: Likewise.
404 * tui/tui-layout.c (tui_win_info::resize): Move from
405 tui_gen_win_info.
406 (make_standard_window): Change return type.
407 (get_locator_window, tui_get_window_by_name): Likewise.
408 (tui_layout_window::apply): Remove a cast.
409 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
410 (struct tui_win_info): Merge with tui_gen_win_info.
411 (struct tui_gen_win_info): Remove.
412
a30cb6da
TT
4132020-07-01 Tom Tromey <tom@tromey.com>
414
415 * tui/tui-stack.h (struct tui_locator_window): Derive from
416 tui_win_info.
417 <do_scroll_horizontal, do_scroll_vertical>: New methods.
418 <can_box>: New method.
419
1eb2161f
TT
4202020-07-01 Tom Tromey <tom@tromey.com>
421
422 * tui/tui-stack.h (struct tui_locator_window): Remove body.
423
7134f2eb
TT
4242020-07-01 Tom Tromey <tom@tromey.com>
425
426 * tui/tui-regs.c (tui_data_window::display_registers_from)
427 (tui_data_window::display_registers_from)
428 (tui_data_window::first_data_item_displayed)
429 (tui_data_window::delete_data_content_windows): Update.
430 (tui_data_window::refresh_window, tui_data_window::no_refresh):
431 Remove.
432 (tui_data_window::check_register_values): Update.
433 (tui_data_item_window::rerender): Add parameters. Update.
434 (tui_data_item_window::refresh_window): Remove.
435 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
436 virtual.
437 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
438 tui_gen_win_info.
439 <refresh_window, max_height, min_height>: Remove.
440 <rerender>: Add parameters.
441 <x, y, visible>: New members.
442 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
443 <m_item_width>: New member.
444
22b7b041
TT
4452020-07-01 Tom Tromey <tom@tromey.com>
446
447 * tui/tui-regs.c (tui_data_window::show_register_group)
448 (tui_data_window::check_register_values): Update.
449 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
450 from item_no.
451
c9753adb
TT
4522020-07-01 Tom Tromey <tom@tromey.com>
453
454 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
455 useless "if".
456
9ab26b4a
TT
4572020-07-01 Tom Tromey <tom@tromey.com>
458
459 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
460 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
461
e555083f
TT
4622020-07-01 Tom Tromey <tom@tromey.com>
463
464 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
465 * tui/tui-winsource.h (enum tui_line_or_address_kind)
466 (struct tui_line_or_address): Move from tui-data.h.
467 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
468 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
469 (tui_cmd_window, tui_source_window_base, tui_source_window)
470 (tui_disasm_window): Don't declare.
471 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
472 to tui-winsource.h.
473 (SINGLE_KEY): Move to tui-stack.c.
474
7a02bab7
TT
4752020-07-01 Tom Tromey <tom@tromey.com>
476
477 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
478 std::string.
479 * tui/tui-regs.c (class tab_expansion_file): New.
480 (tab_expansion_file::write): New method.
481 (tui_register_format): Change return type. Use
482 tab_expansion_file.
483 (tui_get_register, tui_data_window::display_registers_from)
484 (tui_data_item_window::rerender): Update.
485 * tui/tui-io.h (tui_expand_tabs): Don't declare.
486 * tui/tui-io.c (tui_expand_tabs): Remove.
487
ea68593b
TT
4882020-07-01 Tom Tromey <tom@tromey.com>
489
490 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
491
a8caed5d
FS
4922020-07-01 Fangrui Song <maskray@google.com>
493
494 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
495
9cdf9820
AKS
4962020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
497
498 * dwarf2/read.c (set_die_type): Removed conditions to restrict
499 forms for DW_AT_associated and DW_AT_allocated attributes,
500 which is already checked in function attr_to_dynamic_prop.
501
a1520ad8
TT
5022020-06-30 Tom Tromey <tromey@adacore.com>
503
504 * dwarf2/read.c (quirk_rust_enum): Correctly call
505 alloc_rust_variant for default-less enum.
506
5ac58899
TT
5072020-06-30 Tom Tromey <tromey@adacore.com>
508
509 PR build/26183:
510 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
511 gdb::to_string.
512
19b187a9
SM
5132020-06-29 Simon Marchi <simon.marchi@efficios.com>
514
515 * gdbarch.sh (displaced_step_copy_insn): Update doc.
516 * gdbarch.h: Re-generate.
517
cd4c4c07
TT
5182020-06-28 Tom Tromey <tom@tromey.com>
519
520 * command.h (cmd_types): Remove.
521 (cmd_type): Don't declare.
522 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
523 typedef.
524 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
525 * cli/cli-decode.c (cmd_type): Remove.
526
05779d57
PA
5272020-06-27 Pedro Alves <palves@redhat.com>
528
529 * fork-child.c (prefork_hook): Adjust.
530 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
531 Delete.
532 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
533 * inferior.c (inferior::set_tty, inferior::tty): New methods.
534 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
535 Remove declarations.
536 (struct inferior) <set_tty, tty>: New methods.
537 (struct inferior) <terminal>: Rename to ...
538 (struct inferior) <m_terminal>: ... this and make private.
539 * main.c (captured_main_1): Adjust.
540 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
541 (mi_cmd_inferior_tty_show): Adjust.
542 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
543 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
544
1776e3e5
NA
5452020-06-26 Nick Alcock <nick.alcock@oracle.com>
546
547 * configure.ac: Add --enable-libctf: handle --disable-static
548 properly.
549 * acinclude.m4: sinclude ../config/enable.m4.
550 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
551 (LIBCTF): Substitute in.
552 (CTF_DEPS): New, likewise.
553 (CLIBS): libctf needs symbols from libbfd: move earlier.
554 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
555 flags.
556 * ctfread.c: Surround in ENABLE_LIBCTF.
557 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
558 * configure: Regenerate.
559 * config.in: Likewise.
560
58373b80
SM
5612020-06-25 Simon Marchi <simon.marchi@efficios.com>
562
563 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
564
277474ee
SM
5652020-06-25 Simon Marchi <simon.marchi@efficios.com>
566
567 * inferior.h (struct inferior) <terminal>: Change type to
568 gdb::unique_xmalloc_ptr<char>.
569 * inferior.c (inferior::~inferior): Don't free inf->terminal.
570 * infcmd.c (set_inferior_io_terminal): Don't free terminal
571 field, adjust to unique pointer.
572 (get_inferior_io_terminal): Adjust to unique pointer.
573
6d74da72
AB
5742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * riscv-tdep.c (riscv_print_registers_info): Loop over all
577 registers, not just the known core set of registers.
578
2e52d038
AB
5792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
582 fflags, frm, and fcsr registers.
583 (riscv_register_reggroup_p): Remove unknown CSRs from save and
584 restore groups.
585 (riscv_tdesc_unknown_reg): New function.
586 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
587 tdesc_use_registers.
588 * riscv-tdep.h (struct gdbarch_tdep): Add
589 unknown_csrs_first_regnum, unknown_csrs_count,
590 duplicate_fflags_regnum, duplicate_frm_regnum, and
591 duplicate_fcsr_regnum fields.
592
be64fd07
AB
5932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * target-descriptions.c (tdesc_use_registers): Add new parameter a
596 callback, use the callback (when not null) to help number unknown
597 registers.
598 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
599 (tdesc_use_registers): Add extra parameter to declaration.
600
3b9fce96
AB
6012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
604 in the file.
605 (class riscv_pending_register_alias): Likewise.
606 (riscv_register_feature::register_info): Change 'required_p' field
607 to 'required', and change its type. Add 'check' member function.
608 (riscv_register_feature::register_info::check): Define new member
609 function.
610 (riscv_xreg_feature): Change initialisation of 'required' field.
611 (riscv_freg_feature): Likewise.
612 (riscv_virtual_feature): Likewise.
613 (riscv_csr_feature): Likewise.
614 (riscv_check_tdesc_feature): Take extra parameter, the csr
615 tdesc_feature, rewrite the function to use the new
616 riscv_register_feature::register_info::check function.
617 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
618
865bad26
AB
6192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * features/Makefile: Remove all references to the deleted files
622 below.
623 * features/riscv/32bit-csr.c: Deleted.
624 * features/riscv/32bit-csr.xml: Deleted.
625 * features/riscv/64bit-csr.c: Deleted.
626 * features/riscv/64bit-csr.xml: Deleted.
627 * features/riscv/rebuild-csr-xml.sh: Deleted.
628
ed69cbc8
AB
6292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
632 whitespace error for declaration of names member variable.
633 (struct riscv_register_feature): Add new prefer_first_name member
634 variable, and fix whitespace error in declaration of registers.
635 (riscv_xreg_feature): Initialize prefer_first_name field.
636 (riscv_freg_feature): Likewise.
637 (riscv_virtual_feature): Likewise.
638 (riscv_csr_feature): Likewise.
639 (riscv_register_name): Expand on comments. Remove register name
640 modifications for CSR and virtual registers.
641
4445e8f5
AB
6422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
645 errors.
646
767a879e
AB
6472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
650 riscv-opc.h.
651 (class riscv_pending_register_alias): New class.
652 (riscv_check_tdesc_feature): Take vector of pending aliases and
653 populate it as appropriate.
654 (riscv_setup_register_aliases): Delete.
655 (riscv_gdbarch_init): Create vector of pending aliases and pass it
656 to riscv_check_tdesc_feature in all cases. Use the vector to
657 create the register aliases.
658
bb6e55f3
RO
6592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
660
661 * sol2-tdep.c (sol2_static_transform_name): Remove.
662 (sol2_init_abi): Don't register it.
663 * gdbarch.sh (static_transform_name): Remove.
664 * gdbarch.c, gdbarch.h: Regenerate.
665
666 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
667 gdbarch_static_transform_name.
668 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
669 * stabsread.c (define_symbol) <'X'>: Remove.
670 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
671 handling.
672 <'V'>: Likewise.
673 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
674 <'S'>: Remove call to gdbarch_static_transform_name.
675
c6d36836
RO
6762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
677
678 * procfs.c (procfs_pre_trace): New function.
679 (procfs_target::create_inferior): Pass it to fork_inferior.
680
a7e6196b
RO
6812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
682
683 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
684 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
685 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
686 sol2-tdep.o, sparc-sol2-tdep.o.
687 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
688 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
689 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
690 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
691
d412e696
RO
6922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693
694 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
695 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
696 Call sol2_init_abi.
697 Remove calls to set_gdbarch_skip_solib_resolver,
698 set_gdbarch_core_pid_to_str.
699 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
700 (i386_sol2_static_transform_name): Remove.
701 (i386_sol2_init_abi): Call sol2_init_abi.
702 Remove calls to set_gdbarch_sofun_address_maybe_missing,
703 set_gdbarch_static_transform_name,
704 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
705 Use sol2_sigtramp_p.
706 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
707 (sol2_sigtramp_p): New function.
708 (sol2_static_transform_name): New function.
709 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
710 (sol2_init_abi): New function.
711 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
712 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
713 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
714 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
715 (sparc_sol2_static_transform_name): Remove.
716 (sparc32_sol2_init_abi): Call sol2_init_abi.
717 Remove calls to set_gdbarch_sofun_address_maybe_missing,
718 set_gdbarch_static_transform_name,
719 set_gdbarch_skip_solib_resolver,
720 set_gdbarch_core_pid_to_str.
721 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
722 (sparc_sol2_static_transform_name): Remove
723 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
724 call sol2_sigtramp_p.
725 (sparc64_sol2_init_abi): Call sol2_init_abi.
726 Remove calls to set_gdbarch_sofun_address_maybe_missing,
727 set_gdbarch_static_transform_name,
728 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
729
a8654e7d
PW
7302020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
731
732 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
733 * exec.c (validate_exec_file): If from_tty, set both
734 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
735 * symfile.c (symbol_file_add_with_addrs): if always_confirm
736 and from_tty, unconditionally ask a confirmation.
737
caa7fd04
AB
7382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * target-descriptions.c (tdesc_architecture_name): Protect against
741 NULL pointer dereference.
742 (maint_print_xml_tdesc_cmd): New function.
743 (_initialize_target_descriptions): Register new 'maint print
744 xml-tdesc' command and give it the filename completer.
745 * NEWS: Mention new 'maint print xml-tdesc' command.
746
fbf42f4e
AB
7472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * target-descriptions.c (class tdesc_compatible_info): New class.
750 (struct target_desc): Change type of compatible vector.
751 (tdesc_compatible_p): Update for change in type of
752 target_desc::compatible.
753 (tdesc_compatible_info_list): New function.
754 (tdesc_compatible_info_arch_name): New function.
755 (tdesc_add_compatible): Update for change in type of
756 target_desc::compatible.
757 (print_c_tdesc::visit_pre): Likewise.
758
20821f4e
AB
7592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
762 whitespace to underscore.
763 (maint_print_c_tdesc_cmd): Use fake filename for target
764 descriptions that came from the target.
765 (_initialize_target_descriptions): Add filename command completion
766 for 'maint print c-tdesc'.
767
1fb5ee62
SM
7682020-06-23 Simon Marchi <simon.marchi@efficios.com>
769
770 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
771 lines.
772
fc3ecb3e
SM
7732020-06-23 Simon Marchi <simon.marchi@efficios.com>
774
775 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
776 lines.
777 (dwarf2_find_location_expression): Likewise.
778 (call_site_parameter_matches): Likewise.
779 (dwarf2_compile_expr_to_ax): Likewise.
780 (disassemble_dwarf_expression): Likewise.
781 (loclist_describe_location): Likewise.
782
236ef034
PA
7832020-06-23 Pedro Alves <palves@redhat.com>
784
785 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
786 progspace-and-thread.h. Include scoped-mock-context.h instead.
787 (register_to_value_test): Use scoped_mock_context.
788 * regcache.c: Include "scoped-mock-context.h".
789 (cooked_read_test): Don't error out if a target is already pushed.
790 Use scoped_mock_context. Adjust.
791 * scoped-mock-context.h: New file.
792
39e7ecca
AB
7932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
796 initializer.
797 (ada_language::is_string_type_p): New member function.
798 * c-lang.c (c_language_data): Delete la_is_string_type_p
799 initializer.
800 (cplus_language_data): Likewise.
801 (asm_language_data): Likewise.
802 (minimal_language_data): Likewise.
803 * d-lang.c (d_language_data): Likewise.
804 * f-lang.c (f_is_string_type_p): Delete function, implementation
805 moved to f_language::is_string_type_p.
806 (f_language_data): Delete la_is_string_type_p initializer.
807 (f_language::is_string_type_p): New member function,
808 implementation from f_is_string_type_p.
809 * go-lang.c (go_is_string_type_p): Delete function, implementation
810 moved to go_language::is_string_type_p.
811 (go_language_data): Delete la_is_string_type_p initializer.
812 (go_language::is_string_type_p): New member function,
813 implementation from go_is_string_type_p.
814 * language.c (language_defn::is_string_type_p): Define new member
815 function.
816 (default_is_string_type_p): Make static, add comment copied from
817 header file.
818 (unknown_language_data): Delete la_is_string_type_p initializer.
819 (unknown_language::is_string_type_p): New member function.
820 (auto_language_data): Delete la_is_string_type_p initializer.
821 (auto_language::is_string_type_p): New member function.
822 * language.h (language_data): Delete la_is_string_type_p field.
823 (language_defn::is_string_type_p): Declare new function.
824 (default_is_string_type_p): Delete desclaration, move comment to
825 definition.
826 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
827 moved to m2_language::is_string_type_p.
828 (m2_language_data): Delete la_is_string_type_p initializer.
829 (m2_language::is_string_type_p): New member function,
830 implementation from m2_is_string_type_p.
831 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
832 initializer.
833 * opencl-lang.c (opencl_language_data): Likewise.
834 * p-lang.c (pascal_is_string_type_p): Delete function,
835 implementation moved to pascal_language::is_string_type_p.
836 (pascal_language_data): Delete la_is_string_type_p initializer.
837 (pascal_language::is_string_type_p): New member function,
838 implementation from pascal_is_string_type_p.
839 * rust-lang.c (rust_is_string_type_p): Delete function,
840 implementation moved to rust_language::is_string_type_p.
841 (rust_language_data): Delete la_is_string_type_p initializer.
842 (rust_language::is_string_type_p): New member function,
843 implementation from rust_is_string_type_p.
844 * valprint.c (val_print_scalar_or_string_type_p): Update call to
845 is_string_type_p.
846
4ffc13fb
AB
8472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * ada-lang.c (ada_language_data): Delete la_print_typedef
850 initializer.
851 (ada_language::print_typedef): New member function.
852 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
853 (cplus_language_data): Likewise.
854 (asm_language_data): Likewise.
855 (minimal_language_data): Likewise.
856 * d-lang.c (d_language_data): Likewise.
857 * f-lang.c (f_language_data): Likewise.
858 (f_language::print_typedef): New member function.
859 * go-lang.c (go_language_data): Delete la_print_typedef
860 initializer.
861 * language.c (language_defn::print_typedef): Define member
862 function.
863 (unknown_language_data): Delete la_print_typedef initializer.
864 (unknown_language::print_typedef): New member function.
865 (auto_language_data): Delete la_print_typedef initializer.
866 (auto_language::print_typedef): New member function.
867 * language.h (language_data): Delete la_print_typedef field.
868 (language_defn::print_typedef): Declare new member function.
869 (LA_PRINT_TYPEDEF): Update call to print_typedef.
870 (default_print_typedef): Delete declaration.
871 * m2-lang.c (m2_language_data): Delete la_print_typedef
872 initializer.
873 (m2_language::print_typedef): New member function.
874 * objc-lang.c (objc_language_data): Delete la_print_typedef
875 initializer.
876 * opencl-lang.c (opencl_language_data): Likewise.
877 * p-lang.c (pascal_language_data): Likewise.
878 (pascal_language::print_typedef): New member function.
879 * rust-lang.c (rust_print_typedef): Delete function,
880 implementation moved to rust_language::print_typedef.
881 (rust_language): Delete la_print_typedef initializer.
882 (rust_language::print_typedef): New member function,
883 implementation from rust_print_typedef.
884 * typeprint.c (default_print_typedef): Delete.
885
d711ee67
AB
8862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
889 (ada_language::printstr): New member function.
890 * c-lang.c (c_language_data): Delete la_printstr initializer.
891 (cplus_language_data): Likewise.
892 (asm_language_data): Likewise.
893 (minimal_language_data): Likewise.
894 * d-lang.c (d_language_data): Likewise.
895 * f-lang.c (f_printstr): Rename to f_language::printstr.
896 (f_language_data): Delete la_printstr initializer.
897 (f_language::printstr): New member function, implementation from
898 f_printstr.
899 * go-lang.c (go_language_data): Delete la_printstr initializer.
900 * language.c (language_defn::printstr): Define new member
901 function.
902 (unk_lang_printstr): Delete.
903 (unknown_language_data): Delete la_printstr initializer.
904 (unknown_language::printstr): New member function.
905 (auto_language_data): Delete la_printstr initializer.
906 (auto_language::printstr): New member function.
907 * language.h (language_data): Delete la_printstr field.
908 (language_defn::printstr): Declare new member function.
909 (LA_PRINT_STRING): Update call to printstr.
910 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
911 (m2_language_data): Delete la_printstr initializer.
912 (m2_language::printstr): New member function, implementation from
913 m2_printstr.
914 * objc-lang.c (objc_language_data): Delete la_printstr
915 initializer.
916 * opencl-lang.c (opencl_language_data): Likewise.
917 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
918 (pascal_language_data): Delete la_printstr initializer.
919 (pascal_language::printstr): New member function, implementation
920 from pascal_printstr.
921 * p-lang.h (pascal_printstr): Delete declaration.
922 * rust-lang.c (rust_printstr): Update header comment.
923 (rust_language_data): Delete la_printstr initializer.
924 (rust_language::printstr): New member function.
925
52b50f2c
AB
9262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
929 (ada_language::printchar): New member function.
930 * c-lang.c (c_language_data): Delete la_printchar initializer.
931 (cplus_language_data): Likewise.
932 (asm_language_data): Likewise.
933 (minimal_language_data): Likewise.
934 * d-lang.c (d_language_data): Likewise.
935 * f-lang.c (f_printchar): Rename to f_language::printchar.
936 (f_language_data): Delete la_printchar initializer.
937 (f_language::printchar): New member function, implementation from
938 f_printchar.
939 * go-lang.c (go_language_data): Delete la_printchar initializer.
940 * language.c (unk_lang_printchar): Delete.
941 (language_defn::printchar): Define new member function.
942 (unknown_language_data): Delete la_printchar initializer.
943 (unknown_language::printchar): New member function.
944 (auto_language_data): Delete la_printchar initializer.
945 (auto_language::printchar): New member function.
946 * language.h (language_data): Delete la_printchar field.
947 (language_defn::printchar): Declare new member function.
948 (LA_PRINT_CHAR): Update call to printchar.
949 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
950 (m2_language::printchar): New member function.
951 * objc-lang.c (objc_language_data): Delete la_printchar
952 initializer.
953 * opencl-lang.c (opencl_language_data): Likewise.
954 * p-lang.c (pascal_language_data): Delete la_printchar
955 initializer.
956 (pascal_language::printchar): New member function.
957 * rust-lang.c (rust_printchar): Rename to
958 rust_language::printchar.
959 (rust_language_data): Delete la_printchar initializer.
960 (rust_language::printchar): New member function, implementation
961 from rust_printchar.
962
ec8cec5b
AB
9632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
966 (ada_language_data): Delete la_emitchar initializer.
967 (ada_language::emitchar): New member function, implementation from
968 emit_char.
969 * c-lang.c (c_language_data): Delete la_emitchar initializer.
970 (cplus_language_data): Likewise.
971 (asm_language_data): Likewise.
972 (minimal_language_data): Likewise.
973 * d-lang.c (d_language_data): Likewise.
974 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
975 (f_language_data): Delete la_emitchar initializer.
976 (f_language::emitchar): New member function, implementation from
977 f_emit_char.
978 * go-lang.c (go_language_data): Delete la_emitchar initializer.
979 * language.c (unk_lang_emit_char): Delete.
980 (language_defn::emitchar): New member function definition.
981 (unknown_language_data): Delete la_emitchar initializer.
982 (unknown_language::emitchar): New member function.
983 (auto_language_data): Delete la_emitchar initializer.
984 (auto_language::emitchar): New member function.
985 * language.h (language_data): Delete la_emitchar field.
986 (language_defn::emitchar): New member field declaration.
987 (LA_EMIT_CHAR): Update call to emitchar.
988 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
989 (m2_language_data): Delete la_emitchar initializer.
990 (m2_language::emitchar): New member function, implementation from
991 m2_emit_char.
992 * objc-lang.c (objc_language_data): Delete la_emitchar
993 initializer.
994 * opencl-lang.c (opencl_language_data): Likewise.
995 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
996 (pascal_language_data): Delete la_emitchar initializer.
997 (pascal_language::emitchar): New member function, implementation
998 from pascal_emit_char.
999 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1000 (rust_language_data): Delete la_emitchar initializer.
1001 (rust_language::emitchar): New member function, implementation
1002 from rust_emitchar.
1003
1bf9c363
AB
10042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1007 (ada_language_data): Delete la_post_parser initializer.
1008 (ada_language::post_parser): New member function.
1009 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1010 (cplus_language_data): Likewise.
1011 (asm_language_data): Likewise.
1012 (minimal_language_data): Likewise.
1013 * d-lang.c (d_language_data): Likewise.
1014 * f-lang.c (f_language_data): Likewise.
1015 * go-lang.c (go_language_data): Likewise.
1016 * language.c (unknown_language_data): Likewise.
1017 (auto_language_data): Likewise.
1018 * language.h (language_data): Delete la_post_parser field.
1019 (language_defn::post_parser): New member function.
1020 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1021 * objc-lang.c (objc_language_data): Likewise.
1022 * opencl-lang.c (opencl_language_data): Likewise.
1023 * p-lang.c (pascal_language_data): Likewise.
1024 * parse.c (parse_exp_in_context): Update call to post_parser.
1025 (null_post_parser): Delete definition.
1026 * parser-defs.h (null_post_parser): Delete declaration.
1027 * rust-lang.c (rust_language_data): Delete la_post_parser
1028 initializer.
1029
87afa652
AB
10302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1031
1032 * ada-lang.c (parse): Rename to ada_language::parser.
1033 (ada_language_data): Delete la_parser initializer.
1034 (ada_language::parser): New member function, implementation from
1035 parse.
1036 * c-lang.c (c_language_data): Delete la_parser initializer.
1037 (cplus_language_data): Likewise.
1038 (asm_language_data): Likewise.
1039 (minimal_language_data): Likewise.
1040 * d-lang.c (d_language_data): Likewise.
1041 (d_language::parser): New member function.
1042 * f-lang.c (f_language_data): Delete la_parser initializer.
1043 (f_language::parser): New member function.
1044 * go-lang.c (go_language_data): Delete la_parser initializer.
1045 (go_language::parser): New member function.
1046 * language.c (unk_lang_parser): Delete.
1047 (language_defn::parser): Define new member function.
1048 (unknown_language_data): Delete la_parser initializer.
1049 (unknown_language::parser): New member function.
1050 (auto_language_data): Delete la_parser initializer.
1051 (auto_language::parser): New member function.
1052 * language.h (language_data): Delete la_parser field.
1053 (language_defn::parser): Declare new member function.
1054 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1055 (m2_language::parser): New member function.
1056 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1057 * opencl-lang.c (opencl_language_data): Likewise.
1058 * p-lang.c (pascal_language_data): Likewise.
1059 (pascal_language::parser): New member function.
1060 * parse.c (parse_exp_in_context): Update call to parser.
1061 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1062 (rust_language::parser): New member function.
1063
37825800
AB
10642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * top.c (print_gdb_configuration): Print --with-python-libdir
1067 configuration value.
1068
5b860c93
PW
10692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1070
1071 * NEWS: Mention change to the alias command.
1072
cf00cd6f
PW
10732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1074
1075 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1076 (alias_command_completer)
1077 (make_alias_options_def_group): New functions.
1078 (alias_opts, alias_option_defs): New struct and array.
1079 (alias_usage_error): Update usage.
1080 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1081 Use option framework.
1082 (_initialize_cli_cmds): Update alias command help.
1083 Update aliases command help.
1084 (show_user):
1085 Add NULL for new default_args lookup_cmd argument.
1086 (valid_command_p): Rename to validate_aliased_command.
1087 Add NULL for new default_args lookup_cmd argument. Verify that the
1088 aliased_command has no default args.
1089 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1090 (lookup_cmd_1, lookup_cmd): New argument default_args.
1091 (add_alias_cmd):
1092 Add NULL for new default_args lookup_cmd argument.
1093 (print_help_for_command): Show default args under the layout
1094 alias some_alias = some_aliased_cmd some_alias_default_arg.
1095 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1096 xfree default_args in destructor.
1097 * cli/cli-script.c (process_next_line, do_define_command):
1098 Add NULL for new default_args lookup_cmd argument.
1099 * command.h: Declare new default_args argument in lookup_cmd
1100 and lookup_cmd_1.
1101 * completer.c (complete_line_internal_1):
1102 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1103 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1104 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1105 Likewise.
1106 * infcmd.c (_initialize_infcmd): Likewise.
1107 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1108 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1109 * python/py-param.c (add_setshow_generic): Likewise.
1110 * remote.c (_initialize_remote): Likewise.
1111 * top.c (execute_command): Prepend default_args if command has some.
1112 (set_verbose):
1113 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1114 * tracepoint.c (validate_actionline, encode_actions_1):
1115 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1116
bd920864
TBA
11172020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1118
1119 * jit.c (jit_read_descriptor): Use bool as the return type.
1120 (jit_breakpoint_re_set_internal): Use bool as the return type.
1121 Invert the return value logic; return true if the jit breakpoint
1122 has been successfully initialized.
1123 (jit_inferior_init): Update the call to
1124 jit_breakpoint_re_set_internal.
1125
f8098322
PA
11262020-06-22 Pedro Alves <palves@redhat.com>
1127
1128 PR gdb/25939
1129 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1130 Use the current inferior instead. Don't return
1131 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1132 wait again.
1133 * sol-thread.c (sol_thread_target::wait): Don't reference
1134 inferior_ptid.
1135 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1136 (sol_update_thread_list_callback): Use the current inferior's pid
1137 instead of inferior_ptid.
1138
196535a6
RO
11392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1140
1141 * procfs.c: Cleanup many comments.
1142
1143 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1144 (AFTER_WATCHFLAG): Replace by value.
1145
1146 (MAIN_PROC_NAME_FORMAT): Inline ...
1147 (create_procinfo): ... here.
1148
1149 (procfs_debug_inferior): Remove SYS_exec handling.
1150 (syscall_is_exec): Likewise.
1151 (procfs_set_exec_trap): Likewise.
1152
1153 (syscall_is_lwp_exit): Inline in callers.
1154 (syscall_is_exit): Likewise.
1155 (syscall_is_exec): Likewise.
1156 (syscall_is_lwp_create): Likewise.
1157
1158 (invalidate_cache): Remove #if 0 code.
1159
1160 (make_signal_thread_runnable): Remove.
1161 (procfs_target::resume): Remove #if 0 code.
1162
cf6f3e86
RO
11632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1164
1165 PR gdb/25939
1166 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1167 call ...
1168 (procfs_target::create_inferior): ... here.
1169
48e9cc84
PW
11702020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1171
1172 * exec.c (validate_exec_file): Ensure the build-id is up to
1173 date by calling reopen_exec_file (that checks file timestamp
1174 to decide to re-read the file).
1175
3922b302
PA
11762020-06-18 Pedro Alves <palves@redhat.com>
1177
1178 PR gdb/25412
1179 * gdbthread.h (delete_thread, delete_thread_silent)
1180 (find_thread_ptid): Update comments.
1181 * thread.c (current_thread_): New global.
1182 (is_current_thread): Move higher, and reimplement.
1183 (inferior_thread): Reimplement.
1184 (set_thread_exited): Use bool. Add assertions.
1185 (add_thread_silent): Simplify thread-reuse handling by always
1186 calling delete_thread.
1187 (delete_thread): Remove intro comment.
1188 (find_thread_ptid): Skip exited threads.
1189 (switch_to_thread_no_regs): Write to current_thread_.
1190 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1191 INFERIOR_PTID. Clear current_thread_.
1192
6dbdab44
PA
11932020-06-18 Pedro Alves <palves@redhat.com>
1194
1195 * aix-thread.c (pd_update): Use switch_to_thread.
1196
2da4b788
PA
11972020-06-18 Pedro Alves <palves@redhat.com>
1198
1199 * ravenscar-thread.c (ravenscar_thread_target): Update.
1200 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1201 (ravenscar_thread_target::add_active_thread): ... this. Don't
1202 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1203 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1204
50838d1b
PA
12052020-06-18 Pedro Alves <palves@redhat.com>
1206
1207 * nat/windows-nat.c (current_windows_thread): Remove.
1208 * nat/windows-nat.h (current_windows_thread): Remove.
1209 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1210 Adjust.
1211 (display_selectors): Adjust to fetch the current
1212 windows_thread_info based on inferior_ptid.
1213 (fake_create_process): No longer write to current_windows_thread.
1214 (windows_nat_target::get_windows_debug_event):
1215 Don't set inferior_ptid or current_windows_thread.
1216 (windows_nat_target::wait): Adjust to not rely on
1217 current_windows_thread.
1218 (do_initial_windows_stuff): Now a method of windows_nat_target.
1219 Switch to the last_ptid thread.
1220 (windows_nat_target::attach): Adjust.
1221 (windows_nat_target::detach): Use switch_to_no_thread instead of
1222 writing to inferior_ptid directly.
1223 (windows_nat_target::create_inferior): Adjust.
1224
31ce04e9
PA
12252020-06-18 Pedro Alves <palves@redhat.com>
1226
1227 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1228
1ee1a363
PA
12292020-06-18 Pedro Alves <palves@redhat.com>
1230
1231 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1232 after creating it, instead of writing to inferior_ptid. Don't
1233 write to inferior_ptid.
1234
6d350754
PA
12352020-06-18 Pedro Alves <palves@redhat.com>
1236
1237 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1238
5d971d48
PA
12392020-06-18 Pedro Alves <palves@redhat.com>
1240
1241 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1242 it, instead of writing to inferior_ptid.
1243
86e57d1b
PA
12442020-06-18 Pedro Alves <palves@redhat.com>
1245
1246 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1247 to inferior_ptid.
1248
f2e1c129
PA
12492020-06-18 Pedro Alves <palves@redhat.com>
1250
1251 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1252 instead of writing to inferior_ptid directly.
1253
60db1b85
PA
12542020-06-18 Pedro Alves <palves@redhat.com>
1255
1256 * corelow.c (core_target::close): Use switch_to_no_thread instead
1257 of writing to inferior_ptid directly.
1258 (add_to_thread_list, core_target_open): Use switch_to_thread
1259 instead of writing to inferior_ptid directly.
1260
fe7d6a8d
PA
12612020-06-18 Pedro Alves <palves@redhat.com>
1262
1263 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1264 inferior_ptid.
1265 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1266 inferior_ptid.
1267 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1268 inferior_ptid directly.
1269 (darwin_nat_target::init_thread_list): Switch to thread, instead
1270 of writing to inferior_ptid.
1271 (darwin_nat_target::attach): Don't write to inferior_ptid.
1272 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1273
975f8708
PA
12742020-06-18 Pedro Alves <palves@redhat.com>
1275
1276 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1277 thread.
1278 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1279 Instead use switch_to_thread.
1280 (gnu_nat_target::detach): Use switch_to_no_thread
1281 instead of writing to inferior_ptid directly. Used passed-in
1282 inferior instead of looking up the inferior by pid.
1283
1a204730
PA
12842020-06-18 Pedro Alves <palves@redhat.com>
1285
1286 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1287 inferior_ptid.
1288
ebe84f23
PA
12892020-06-18 Pedro Alves <palves@redhat.com>
1290
1291 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1292 inferior_ptid.
1293 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1294 thread.
1295 (nto_procfs_target::detach): Avoid referencing
1296 inferior_ptid. Use switch_to_no_thread instead of writing to
1297 inferior_ptid directly.
1298 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1299 instead of writing to inferior_ptid directly.
1300 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1301 to thread.
1302
191f02e5
PA
13032020-06-18 Pedro Alves <palves@redhat.com>
1304
1305 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1306 after creating it, instead of writing to inferior_ptid.
1307 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1308 to inferior_ptid directly.
1309 (gdbsim_target::wait): Don't write to inferior_ptid.
1310
0ac55310
PA
13112020-06-18 Pedro Alves <palves@redhat.com>
1312
1313 * remote.c (remote_target::remote_notice_new_inferior): Use
1314 switch_to_thread instead of writing to inferior_ptid directly.
1315 (remote_target::add_current_inferior_and_thread): Use
1316 switch_to_no_thread instead of writing to inferior_ptid directly.
1317 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1318 and switch_to_thread instead of using set_current_inferior or
1319 writing to inferior_ptid directly.
1320
5233f39b
PA
13212020-06-18 Pedro Alves <palves@redhat.com>
1322
1323 * tracectf.c (ctf_target_open): Switch to added thread instead of
1324 writing to inferior_ptid directly.
1325 (ctf_target::close): Use switch_to_no_thread instead of writing to
1326 inferior_ptid directly.
1327
087e161b
PA
13282020-06-18 Pedro Alves <palves@redhat.com>
1329
1330 * tracefile-tfile.c (tfile_target_open): Don't write to
1331 inferior_ptid directly, instead switch to added thread.
1332 (tfile_target::close): Use switch_to_no_thread instead of writing
1333 to inferior_ptid directly.
1334
7fb43e53
PA
13352020-06-18 Pedro Alves <palves@redhat.com>
1336
1337 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1338 (procfs_target::detach): Use switch_to_no_thread
1339 instead of writing to inferior_ptid directly.
1340 (do_attach): Change return type to void. Switch to the added
1341 thread.
1342 (procfs_target::create_inferior): Switch to the added thread.
1343 (procfs_do_thread_registers): Don't write to inferior_ptid.
1344
18493a00
PA
13452020-06-18 Pedro Alves <palves@redhat.com>
1346
1347 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1348 of writing to inferior_ptid.
1349 (scoped_restore_exited_inferior): Delete.
1350 (handle_vfork_child_exec_or_exit): Simplify using
1351 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1352 instead of writing to inferior_ptid.
1353 (THREAD_STOPPED_BY): Delete.
1354 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1355 (thread_stopped_by_hw_breakpoint): Delete.
1356 (save_waitstatus): Use
1357 scoped_restore_current_thread+switch_to_thread, and call
1358 target_stopped_by_watchpoint instead of
1359 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1360 instead of thread_stopped_by_sw_breakpoint, and
1361 target_stopped_by_hw_breakpoint instead of
1362 thread_stopped_by_hw_breakpoint.
1363 (handle_inferior_event)
1364 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1365 inferior_ptid directly, nor
1366 set_current_inferior/set_current_program_space. Use
1367 switch_to_thread / switch_to_inferior_no_thread instead.
1368
a0776b13
PA
13692020-06-18 Pedro Alves <palves@redhat.com>
1370
1371 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1372 instead of writing to inferior_ptid.
1373
6155c136
PA
13742020-06-18 Pedro Alves <palves@redhat.com>
1375
1376 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1377 added thread.
1378 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1379 to the added thread.
1380 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1381 instead of writing to inferior_ptid.
1382
c5316fc6
PA
13832020-06-18 Pedro Alves <palves@redhat.com>
1384
1385 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1386 (register_to_value_test): Mock a program_space too. Heap-allocate
1387 the address space. Don't write to inferior_ptid. Use
1388 switch_to_thread instead.
1389
8df01799
PA
13902020-06-18 Pedro Alves <palves@redhat.com>
1391
1392 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1393 Delete.
1394 (find_signalled_thread()): New, factored out from
1395 linux_make_corefile_notes and adjusted to handle exited threads.
1396 (linux_make_corefile_notes): Adjust to use the new
1397 find_signalled_thread.
1398
41792d68
PA
13992020-06-18 Pedro Alves <palves@redhat.com>
1400
1401 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1402 of saving/restoring inferior_ptid.
1403
612f258a
TT
14042020-06-17 Tom Tromey <tom@tromey.com>
1405
1406 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1407 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1408 declare.
1409 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1410
efb763a5
SM
14112020-06-15 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1414 of partial symtabs.
1415
2951f6c0
SM
14162020-06-17 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * regformats/reg-arm.dat: Remove.
1419 * regformats/reg-bfin.dat: Remove.
1420 * regformats/reg-cris.dat: Remove.
1421 * regformats/reg-crisv32.dat: Remove.
1422 * regformats/reg-m32r.dat: Remove.
1423 * regformats/reg-tilegx.dat: Remove.
1424 * regformats/reg-tilegx32.dat: Remove.
1425
7d458ea5
SM
14262020-06-17 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * features/Makefile (WHICH): Remove arm files.
1429 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1430 * regformats/arm/arm-with-neon.dat: Remove.
1431 * regformats/arm/arm-with-vfpv2.dat: Remove.
1432 * regformats/arm/arm-with-vfpv3.dat: Remove.
1433
3af96c0d
SM
14342020-06-17 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * features/Makefile (XMLTOC): Remove rx.xml.
1437
b25e22fd
PA
14382020-06-17 Pedro Alves <palves@redhat.com>
1439
1440 * gdbthread.h (thread_control_state) <trap_expected> Update
1441 comments.
1442
a78a19b1
AB
14432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1446 ada_language::lookup_symbol_nonlocal.
1447 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1448 (ada_language::lookup_symbol_nonlocal): New member function,
1449 implementation from ada_lookup_symbol_nonlocal.
1450 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1451 initializer.
1452 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1453 initializer.
1454 (cplus_language::lookup_symbol_nonlocal): New member function.
1455 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1456 (minimal_language_data) Likewise.
1457 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1458 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1459 initializer.
1460 (d_language::lookup_symbol_nonlocal): New member function.
1461 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1462 initializer.
1463 (f_language::lookup_symbol_nonlocal): New member function.
1464 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1465 initializer.
1466 * language.c (unknown_language_data): Likewise.
1467 (auto_language_data): Likewise.
1468 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1469 field.
1470 (language_defn::lookup_symbol_nonlocal): New member function.
1471 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1472 initializer.
1473 * objc-lang.c (objc_language_data): Likewise.
1474 * opencl-lang.c (opencl_language_data): Likewise.
1475 * p-lang.c (pascal_language_data): Likewise.
1476 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1477 rust_language::lookup_symbol_nonlocal.
1478 (rust_language_data): Delete la_lookup_symbol_nonlocal
1479 initializer.
1480 (rust_language::lookup_symbol_nonlocal): New member function,
1481 implementation from rust_lookup_symbol_nonlocal.
1482 * symtab.c (lookup_symbol_aux): Update call to
1483 lookup_symbol_nonlocal.
1484 (basic_lookup_symbol_nonlocal): Rename to...
1485 (language_defn::lookup_symbol_nonlocal): ...this, and update
1486 header comment. Remove language_defn parameter, and replace with
1487 uses of `this'.
1488 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1489
ebe2334e
AB
14902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1493 initializer.
1494 (ada_language::value_print_inner): New member function.
1495 * c-lang.c (c_language_data): Delete la_value_print_inner
1496 initializer.
1497 (cplus_language_data): Likewise.
1498 (asm_language_data): Likewise.
1499 (minimal_language_data): Likewise.
1500 * d-lang.c (d_language_data): Likewise.
1501 (d_language::value_print_inner): New member function.
1502 * f-lang.c (f_language_data): Delete la_value_print_inner
1503 initializer.
1504 (f_language::value_print_inner): New member function.
1505 * f-lang.h (f_value_print_innner): Rename to...
1506 (f_value_print_inner): ...this (note spelling of 'inner').
1507 * f-valprint.c (f_value_print_innner): Rename to...
1508 (f_value_print_inner): ...this (note spelling of 'inner').
1509 * go-lang.c (go_language_data): Delete la_value_print_inner
1510 initializer.
1511 (go_language::value_print_inner): New member function.
1512 * language.c (language_defn::value_print_inner): Define new member
1513 function.
1514 (unk_lang_value_print_inner): Delete.
1515 (unknown_language_data): Delete la_value_print_inner initializer.
1516 (unknown_language::value_print_inner): New member function.
1517 (auto_language_data): Delete la_value_print_inner initializer.
1518 (auto_language::value_print_inner): New member function.
1519 * language.h (language_data): Delete la_value_print_inner field.
1520 (language_defn::value_print_inner): Delcare new member function.
1521 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1522 initializer.
1523 (m2_language::value_print_inner): New member function.
1524 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1525 initializer.
1526 * opencl-lang.c (opencl_language_data): Likewise.
1527 * p-lang.c (pascal_language_data): Likewise.
1528 (pascal_language::value_print_inner): New member function.
1529 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1530 initializer.
1531 (rust_language::value_print_inner): New member function.
1532 * valprint.c (do_val_print): Update call to value_print_inner.
1533
a1d1fa3e
AB
15342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * ada-lang.c (ada_language_data): Delete la_value_print
1537 initializer.
1538 (ada_language::value_print): New member function.
1539 * c-lang.c (c_language_data): Delete la_value_print initializer.
1540 (cplus_language_data): Likewise.
1541 (asm_language_data): Likewise.
1542 (minimal_language_data): Likewise.
1543 * d-lang.c (d_language_data): Likewise.
1544 * f-lang.c (f_language_data): Likewise.
1545 * go-lang.c (go_language_data): Likewise.
1546 * language.c (unk_lang_value_print): Delete.
1547 (language_defn::value_print): Define new member function.
1548 (unknown_language_data): Delete la_value_print initializer.
1549 (unknown_language::value_print): New member function.
1550 (auto_language_data): Delete la_value_print initializer.
1551 (auto_language::value_print): New member function.
1552 * language.h (language_data): Delete la_value_print field.
1553 (language_defn::value_print): Declare new member function.
1554 (LA_VALUE_PRINT): Update call to value_print.
1555 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1556 * objc-lang.c (objc_language_data): Likewise.
1557 * opencl-lang.c (opencl_language_data): Likewise.
1558 * p-lang.c (pascal_language_data): Likewise.
1559 (pascal_language::value_print): New member function.
1560 * rust-lang.c (rust_language_data): Delete la_value_print
1561 initializer.
1562
f16a9f57
AB
15632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 * ada-lang.c (ada_watch_location_expression): Rename to
1566 ada_language::watch_location_expression.
1567 (ada_language_data): Delete la_watch_location_expression
1568 initializer.
1569 (ada_language::watch_location_expression): New member function,
1570 implementation from ada_watch_location_expression.
1571 * breakpoint.c (watch_command_1): Update call to
1572 watch_location_expression.
1573 * c-lang.c (c_watch_location_expression): Rename to
1574 language_defn::watch_location_expression.
1575 (c_language_data): Delete la_watch_location_expression
1576 initializer.
1577 (cplus_language_data): Likewise.
1578 (asm_language_data): Likewise.
1579 (minimal_language_data): Likewise.
1580 * c-lang.h (c_watch_location_expression): Delete declaration.
1581 * d-lang.c (d_language_data): Delete la_watch_location_expression
1582 initializer.
1583 * f-lang.c (f_language_data): Likewise.
1584 * go-lang.c (go_language_data): Likewise.
1585 * language.c (language_defn::watch_location_expression): Member
1586 function implementation from c_watch_location_expression.
1587 (unknown_language_data): Delete la_watch_location_expression
1588 initializer.
1589 (auto_language_data): Likewise.
1590 * language.h (language_data): Delete la_watch_location_expression
1591 field.
1592 (language_defn::watch_location_expression): Declare new member
1593 function.
1594 * m2-lang.c (m2_language_data): Delete
1595 la_watch_location_expression initializer.
1596 * objc-lang.c (objc_language_data): Likewise.
1597 * opencl-lang.c (opencl_language_data): Likewise.
1598 * p-lang.c (pascal_language_data): Likewise.
1599 * rust-lang.c (rust_watch_location_expression): Rename to
1600 rust_language::watch_location_expression.
1601 (rust_language_data): Delete la_watch_location_expression
1602 initializer.
1603 (rust_language::watch_location_expression): New member function,
1604 implementation from rust_watch_location_expression.
1605
7e56227d
AB
16062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1609 ada_language::collect_symbol_completion_matches.
1610 (ada_language_data): Delete la_collect_symbol_completion_matches
1611 initializer.
1612 (ada_language::collect_symbol_completion_matches): New member
1613 function, implementation from
1614 ada_collect_symbol_completion_matches.
1615 * c-lang.c (c_language_data): Delete
1616 la_collect_symbol_completion_matches initializer.
1617 (cplus_language_data): Likewise.
1618 (asm_language_data): Likewise.
1619 (minimal_language_data): Likewise.
1620 * d-lang.c (d_language_data): Likewise.
1621 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1622 f_language::collect_symbol_completion_matches.
1623 (f_language_data): Delete la_collect_symbol_completion_matches
1624 initializer.
1625 (f_language::collect_symbol_completion_matches) New member
1626 function, implementation from f_collect_symbol_completion_matches.
1627 * go-lang.c (go_language_data): Delete
1628 la_collect_symbol_completion_matches initializer.
1629 * language.c (unknown_language_data): Likewise.
1630 (auto_language_data): Likewise.
1631 * language.h (language_data): Delete
1632 la_collect_symbol_completion_matches field.
1633 (language_defn::collect_symbol_completion_matches): New member
1634 function.
1635 * m2-lang.c (m2_language_data): Delete
1636 la_collect_symbol_completion_matches initializer.
1637 * objc-lang.c (objc_language_data): Likewise.
1638 * opencl-lang.c (opencl_language_data): Likewise.
1639 * p-lang.c (pascal_language_data): Likewise.
1640 * rust-lang.c (rust_language_data): Likewise.
1641 * symtab.c (default_collect_symbol_completion_matches): Delete.
1642 (collect_symbol_completion_matches): Update call to
1643 collect_symbol_completion_matches.
1644 (collect_symbol_completion_matches_type): Likewise.
1645 * symtab.h (default_collect_symbol_completion_matches): Delete
1646 declaration.
1647
53fc67f8
AB
16482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1651 (ada_language_data): Delete la_word_break_characters initializer.
1652 (ada_language::word_break_characters): New member function.
1653 * c-lang.c (c_language_data): Delete la_word_break_characters
1654 initializer.
1655 (cplus_language_data): Likewise.
1656 (asm_language_data): Likewise.
1657 (minimal_language_data): Likewise.
1658 * completer.c: Update global comment.
1659 (advance_to_expression_complete_word_point): Update call to
1660 word_break_characters.
1661 (complete_files_symbols): Likewise.
1662 (complete_line_internal_1): Likewise.
1663 (default_completer_handle_brkchars): Likewise.
1664 (skip_quoted_chars): Likewise.
1665 * d-lang.c (d_language_data): Delete la_word_break_characters
1666 initializer.
1667 * f-lang.c (f_word_break_characters): Delete.
1668 (f_language_data): Delete la_word_break_characters initializer.
1669 (f_language::word_break_characters): New member function.
1670 * go-lang.c (go_language_data): Delete la_word_break_characters
1671 initializer.
1672 * language.c (unknown_language_data): Likewise.
1673 (auto_language_data): Likewise.
1674 * language.h (default_word_break_characters): Move declaration to
1675 earlier in the file.
1676 (language_data): Delete la_word_break_characters field.
1677 (language_defn::word_break_characters): New member function.
1678 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1679 initializer.
1680 * objc-lang.c (objc_language_data): Likewise.
1681 * opencl-lang.c (opencl_language_data): Likewise.
1682 * p-lang.c (pascal_language_data): Likewise.
1683 * rust-lang.c (rust_language_data): Likewise.
1684
c9debfb9
AB
16852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1688 (ada_language_data): Delete la_get_symbol_name_matcher
1689 initializer.
1690 (language_defn::get_symbol_name_matcher_inner): New member
1691 function.
1692 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1693 initializer.
1694 (cplus_language_data): Likewise.
1695 (cplus_language::get_symbol_name_matcher_inner): New member
1696 function.
1697 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1698 (minimal_language_data): Likewise.
1699 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1700 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1701 initializer.
1702 * dictionary.c (iter_match_first_hashed): Update call to
1703 get_symbol_name_matcher.
1704 (iter_match_next_hashed): Likewise.
1705 (iter_match_next_linear): Likewise.
1706 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1707 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1708 initializer.
1709 (f_language::get_symbol_name_matcher_inner): New member function.
1710 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1711 initializer.
1712 * language.c (default_symbol_name_matcher): Update header comment,
1713 make static.
1714 (language_defn::get_symbol_name_matcher): New definition.
1715 (language_defn::get_symbol_name_matcher_inner): Likewise.
1716 (get_symbol_name_matcher): Delete.
1717 (unknown_language_data): Delete la_get_symbol_name_matcher
1718 initializer.
1719 (auto_language_data): Likewise.
1720 * language.h (language_data): Delete la_get_symbol_name_matcher
1721 field.
1722 (language_defn::get_symbol_name_matcher): New member function.
1723 (language_defn::get_symbol_name_matcher_inner): Likewise.
1724 (default_symbol_name_matcher): Delete declaration.
1725 * linespec.c (find_methods): Update call to
1726 get_symbol_name_matcher.
1727 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1728 initializer.
1729 * minsyms.c (lookup_minimal_symbol): Update call to
1730 get_symbol_name_matcher.
1731 (iterate_over_minimal_symbols): Likewise.
1732 * objc-lang.c (objc_language_data): Delete
1733 la_get_symbol_name_matcher initializer.
1734 * opencl-lang.c (opencl_language_data): Likewise.
1735 * p-lang.c (pascal_language_data): Likewise.
1736 * psymtab.c (psymbol_name_matches): Update call to
1737 get_symbol_name_matcher.
1738 * rust-lang.c (rust_language_data): Delete
1739 la_get_symbol_name_matcher initializer.
1740 * symtab.c (symbol_matches_search_name): Update call to
1741 get_symbol_name_matcher.
1742 (compare_symbol_name): Likewise.
1743
9a49ad8c
AB
17442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * ada-lang.c (ada_language_data): Delete la_compute_program
1747 initializer.
1748 * c-lang.c (c_language_data): Likewise.
1749 (c_language::compute_program): New member function.
1750 (cplus_language_data): Delete la_compute_program initializer.
1751 (cplus_language::compute_program): New member function.
1752 (asm_language_data): Delete la_compute_program initializer.
1753 (minimal_language_data): Likewise.
1754 * c-lang.h (c_compute_program): Update comment.
1755 (cplus_compute_program): Likewise.
1756 * compile/compile-c-support.c (c_compute_program): Likewise.
1757 (cplus_compute_program): Likewise.
1758 * compile/compile.c (compile_to_object): Update call to
1759 la_compute_program.
1760 * d-lang.c (d_language_data): Delete la_compute_program
1761 initializer.
1762 * f-lang.c (f_language_data): Likewise.
1763 * go-lang.c (go_language_data): Likewise.
1764 * language.c (unknown_language_data): Likewise.
1765 (auto_language_data): Likewise.
1766 * language.h (language_data): Delete la_compute_program field.
1767 (language_defn::compute_program): New member function.
1768 * m2-lang.c (m2_language_data): Delete la_compute_program
1769 initializer.
1770 * objc-lang.c (objc_language_data): Likewise.
1771 * opencl-lang.c (opencl_language_data): Likewise.
1772 * p-lang.c (pascal_language_data): Likewise.
1773 * rust-lang.c (rust_language_data): Likewise.
1774
eff93b4d
AB
17752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * ada-lang.c (ada_language_data) Delete
1778 la_class_name_from_physname initializer.
1779 * c-lang.c (c_language_data): Likewise.
1780 (cplus_language_data): Likewise.
1781 (cplus_language::class_name_from_physname): New member function.
1782 (asm_language_data): Delete la_class_name_from_physname
1783 initializer.
1784 (minimal_language_data): Likewise.
1785 * d-lang.c (d_language_data): Likewise.
1786 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1787 method on language_defn class.
1788 (guess_full_die_structure_name): Likewise.
1789 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1790 initializer.
1791 * go-lang.c (go_language_data): Likewise.
1792 * language.c (language_class_name_from_physname): Delete.
1793 (unk_lang_class_name): Delete.
1794 (unknown_language_data): Delete la_class_name_from_physname
1795 initializer.
1796 (auto_language_data): Likewise.
1797 * language.h (language_data): Delete la_class_name_from_physname
1798 field.
1799 (language_defn::class_name_from_physname): New function.
1800 (language_class_name_from_physname): Delete declaration.
1801 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1802 initializer.
1803 * objc-lang.c (objc_language_data): Likewise.
1804 * opencl-lang.c (opencl_language_data): Likewise.
1805 * p-lang.c (pascal_language_data): Likewise.
1806 * rust-lang.c (rust_language_data): Likewise.
1807
de543742
TT
18082020-06-16 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-data.h (STATUS_NAME): New macro.
1811 * tui/tui-layout.c (tui_remove_some_windows)
1812 (initialize_known_windows, tui_register_window)
1813 (tui_layout_split::remove_windows, initialize_layouts)
1814 (tui_new_layout_command): Don't use hard-coded window names.
1815
a350efd4
TT
18162020-06-16 Tom Tromey <tom@tromey.com>
1817
1818 PR tui/25348:
1819 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1820 tui_initialize_readline. Only run once. Call rl_initialize.
1821 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1822 tui_initialize_readline.
1823 * tui/tui-io.c (tui_setup_io): Call
1824 tui_ensure_readline_initialized.
1825 * tui/tui-interp.c (tui_interp::init): Update.
1826
39ec0490
TT
18272020-06-16 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1830 Also preserve the status window.
1831
d2d1ea20
TT
18322020-06-16 Tom Tromey <tom@tromey.com>
1833
1834 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1835 where m_window==nullptr.
1836
66920317
TT
18372020-06-15 Tom Tromey <tromey@adacore.com>
1838
1839 * windows-nat.c (windows_nat::handle_output_debug_string):
1840 Update.
1841 (windows_nat::handle_ms_vc_exception): Update.
1842 * target.h (target_read_string): Change API.
1843 * target.c (target_read_string): Change API.
1844 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1845 Update.
1846 * solib-frv.c (frv_current_sos): Update.
1847 * solib-dsbt.c (dsbt_current_sos): Update.
1848 * solib-darwin.c (darwin_current_sos): Update.
1849 * linux-thread-db.c (inferior_has_bug): Update.
1850 * expprint.c (print_subexp_standard): Update.
1851 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1852 (ada_exception_message_1): Update.
1853
a5d871dd
TT
18542020-06-15 Tom Tromey <tromey@adacore.com>
1855
1856 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1857
670e35fa
TT
18582020-06-15 Tom Tromey <tromey@adacore.com>
1859
1860 * valprint.c (read_string): Update comment.
1861 * target.c (MIN): Remove.
1862 (target_read_string): Rewrite.
1863
f5272a3b
TT
18642020-06-15 Tom Tromey <tromey@adacore.com>
1865
1866 * corefile.c (read_memory_string): Remove.
1867 * ada-valprint.c (ada_value_print_ptr): Update.
1868 * ada-lang.h (ada_tag_name): Change return type.
1869 * ada-lang.c (type_from_tag): Update.
1870 (ada_tag_name_from_tsd): Change return type. Use
1871 target_read_string.
1872 (ada_tag_name): Likewise.
1873 * gdbcore.h (read_memory_string): Don't declare.
1874
2c074f49
HD
18752020-06-14 Hannes Domani <ssbssa@yahoo.de>
1876
1877 * symtab.c (rbreak_command): Ignore Windows drive colon.
1878
6a17d503
SM
18792020-06-12 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * NEWS: Mention removed GDBserver host support.
1882
453c733f
NC
18832020-06-12 Nelson Chu <nelson.chu@sifive.com>
1884
1885 * features/riscv/rebuild-csr-xml.sh: Updated.
1886
2b4e6a3f
TT
18872020-06-11 Tom Tromey <tom@tromey.com>
1888
1889 PR gdb/18318:
1890 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1891
4412332f
JG
18922020-06-09 Jonny Grant <jg@jguk.org>
18932020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * main.c (captured_main_1): Don't print new line after help.
1896 (print_gdb_help): add mailing list and IRC channel information
1897 to --help. Add new lines between items in the footer. Remove
1898 quotes around bug url.
1899
2f33032a
KS
19002020-06-11 Keith Seitz <keiths@redhat.com>
1901
1902 PR gdb/21356
1903 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1904 Resolve typedefs for type length calculations.
1905
7ab96794
TV
19062020-06-10 Tom de Vries <tdevries@suse.de>
1907
1908 PR ada/24713
1909 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1910 (write_psymbols): Enable .gdb_index for ada.
1911 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1912 ada.
1913
e5f3ece2
TV
19142020-06-10 Tom de Vries <tdevries@suse.de>
1915
1916 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1917 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1918 namei" instead of "const char *name" argument.
1919 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1920 dw2_symtab_iter_init.
1921
940da03e
SM
19222020-06-08 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1925 to use type::field and field::type instead.
1926
b6cdac4b
SM
19272020-06-08 Simon Marchi <simon.marchi@efficios.com>
1928
1929 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1930 to use field::type instead.
1931
5d14b6e5
SM
19322020-06-08 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * gdbtypes.h (struct field) <type, set_type>: New methods.
1935 Rename `type` field to...
1936 <m_type>: ... this. Change references throughout to use type or
1937 set_type methods.
1938 (FIELD_TYPE): Use field::type. Change call sites that modify
1939 the field's type to use field::set_type instead.
1940
3d967001
SM
19412020-06-08 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1944 to use type::index_type instead.
1945
262abc0d
SM
19462020-06-08 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1949 methods.
1950 (TYPE_INDEX_TYPE): Use type::index_type.
1951 * gdbtypes.c (create_array_type_with_stride): Likewise.
1952
82836c92
TT
19532020-06-07 Tom Tromey <tom@tromey.com>
1954
1955 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1956 parameter.
1957 (generic_value_print): Update.
1958
940dace9
AB
19592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 Revert commit 982a38f60b0.
1962 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1963
982a38f6
AB
19642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1967 avoid use after free.
1968
82f06518
TV
19692020-06-05 Tom de Vries <tdevries@suse.de>
1970
1971 * NEWS: Fix typos.
1972
f8c41851
SM
19732020-06-04 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1976 the per_bfd object.
1977 (dwarf2_read_debug_names): Likewise.
1978 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1979 object when re-using a per_bfd object with an index.
1980
f9b5d5ea
TV
19812020-06-03 Tom de Vries <tdevries@suse.de>
1982
1983 PR symtab/26046
1984 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1985 children for C++.
1986 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1987 DW_TAG_subprogram.
1988
f6eee2d0
AB
19892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * ada-lang.c (ada_language_data): Delete skip_trampoline
1992 initializer.
1993 * c-lang.c (c_language_data): Likewise.
1994 (cplus_language_data): Likewise.
1995 (cplus_language::skip_trampoline): New member function.
1996 (asm_language_data): Delete skip_trampoline initializer.
1997 (minimal_language_data): Likewise.
1998 * d-lang.c (d_language_data): Likewise.
1999 * f-lang.c (f_language_data): Likewise.
2000 * go-lang.c (go_language_data): Likewise.
2001 * language.c (unk_lang_trampoline): Delete function.
2002 (skip_language_trampoline): Update.
2003 (unknown_language_data): Delete skip_trampoline initializer.
2004 (auto_language_data): Likewise.
2005 * language.h (language_data): Delete skip_trampoline field.
2006 (language_defn::skip_trampoline): New function.
2007 * m2-lang.c (m2_language_data): Delete skip_trampoline
2008 initializer.
2009 * objc-lang.c (objc_skip_trampoline): Delete function, move
2010 implementation to objc_language::skip_trampoline.
2011 (objc_language_data): Delete skip_trampoline initializer.
2012 (objc_language::skip_trampoline): New member function with
2013 implementation from objc_skip_trampoline.
2014 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2015 initializer.
2016 * p-lang.c (pascal_language_data): Likewise.
2017 * rust-lang.c (rust_language_data): Likewise.
2018
0a50df5d
AB
20192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2022 (ada_language::demangle): New member function.
2023 * c-lang.c (c_language_data): Delete la_demangle initializer.
2024 (cplus_language_data): Delete la_demangle initializer.
2025 (cplus_language::demangle): New member function.
2026 (asm_language_data): Delete la_demangle initializer.
2027 (minimal_language_data): Delete la_demangle initializer.
2028 * d-lang.c (d_language_data): Delete la_demangle initializer.
2029 (d_language::demangle): New member function.
2030 * f-lang.c (f_language_data): Delete la_demangle initializer.
2031 (f_language::demangle): New member function.
2032 * go-lang.c (go_language_data): Delete la_demangle initializer.
2033 (go_language::demangle): New member function.
2034 * language.c (language_demangle): Update.
2035 (unk_lang_demangle): Delete.
2036 (unknown_language_data): Delete la_demangle initializer.
2037 (unknown_language::demangle): New member function.
2038 (auto_language_data): Delete la_demangle initializer.
2039 (auto_language::demangle): New member function.
2040 * language.h (language_data): Delete la_demangle field.
2041 (language_defn::demangle): New function.
2042 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2043 * objc-lang.c (objc_language_data): Delete la_demangle
2044 initializer.
2045 (objc_language::demangle): New member function.
2046 * opencl-lang.c (opencl_language_data): Delete la_demangle
2047 initializer.
2048 * p-lang.c (pascal_language_data): Likewise.
2049 * rust-lang.c (rust_language_data): Likewise.
2050 (rust_language::demangle): New member function.
2051
fbfb0a46
AB
20522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * ada-lang.c (ada_language_data): Delete la_print_type
2055 initializer.
2056 (ada_language::print_type): New member function.
2057 * c-lang.c (c_language_data): Delete la_print_type initializer.
2058 (c_language::print_type): New member function.
2059 (cplus_language_data): Delete la_print_type initializer.
2060 (cplus_language::print_type): New member function.
2061 (asm_language_data): Delete la_print_type initializer.
2062 (asm_language::print_type): New member function.
2063 (minimal_language_data): Delete la_print_type initializer.
2064 (minimal_language::print_type): New member function.
2065 * d-lang.c (d_language_data): Delete la_print_type initializer.
2066 (d_language::print_type): New member function.
2067 * f-lang.c (f_language_data): Delete la_print_type initializer.
2068 (f_language::print_type): New member function.
2069 * go-lang.c (go_language_data): Delete la_print_type initializer.
2070 (go_language::print_type): New member function.
2071 * language.c (unk_lang_print_type): Delete.
2072 (unknown_language_data): Delete la_print_type initializer.
2073 (unknown_language::print_type): New member function.
2074 (auto_language_data): Delete la_print_type initializer.
2075 (auto_language::print_type): New member function.
2076 * language.h (language_data): Delete la_print_type field.
2077 (language_defn::print_type): New function.
2078 (LA_PRINT_TYPE): Update.
2079 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2080 (m2_language::print_type): New member function.
2081 * objc-lang.c (objc_language_data): Delete la_print_type
2082 initializer.
2083 (objc_language::print_type): New member function.
2084 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2085 to opencl_language::print_type.
2086 (opencl_language_data): Delete la_print_type initializer.
2087 (opencl_language::print_type): New member function, implementation
2088 from opencl_print_type.
2089 * p-lang.c (pascal_language_data): Delete la_print_type
2090 initializer.
2091 (pascal_language::print_type): New member function.
2092 * rust-lang.c (rust_print_type): Delete, implementation moved to
2093 rust_language::print_type.
2094 (rust_language_data): Delete la_print_type initializer.
2095 (rust_language::print_type): New member function, implementation
2096 from rust_print_type.
2097
6f827019
AB
20982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2101 implementation moves to...
2102 (ada_language::sniff_from_mangled_name): ...here. Update return
2103 type.
2104 (ada_language_data): Delete la_sniff_from_mangled_name
2105 initializer.
2106 * c-lang.c (c_language_data): Likewise.
2107 (cplus_language_data): Likewise.
2108 (cplus_language::sniff_from_mangled_name): New member function,
2109 implementation taken from gdb_sniff_from_mangled_name.
2110 (asm_language_data): Delete la_sniff_from_mangled_name
2111 initializer.
2112 (minimal_language_data): Likewise.
2113 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2114 implementation moves to cplus_language::sniff_from_mangled_name.
2115 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2116 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2117 moves to...
2118 (d_language::sniff_from_mangled_name): ...here.
2119 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2120 * f-lang.c (f_language_data): Likewise.
2121 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2122 moves to...
2123 (go_language::sniff_from_mangled_name): ...here.
2124 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2125 * language.c (language_sniff_from_mangled_name): Delete.
2126 (unknown_language_data): Delete la_sniff_from_mangled_name
2127 initializer.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete la_sniff_from_mangled_name
2130 field.
2131 (language_defn::sniff_from_mangled_name): New function.
2132 (language_sniff_from_mangled_name): Delete declaration.
2133 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2134 field.
2135 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2136 implementation moves to...
2137 (objc_language::sniff_from_mangled_name): ...here.
2138 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2139 * opencl-lang.c (opencl_language_data): Likewise.
2140 * p-lang.c (pascal_language_data): Likewise.
2141 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2142 implementation moves to...
2143 (rust_language::sniff_from_mangled_name): ...here.
2144 (rust_language_data): Delete la_sniff_from_mangled_name
2145 initializer.
2146 * symtab.c (symbol_find_demangled_name): Call
2147 sniff_from_mangled_name member function.
2148
fb8006fd
AB
21492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2152 initializer.
2153 * c-lang.c (c_language_data): Likewise.
2154 (cplus_language_data): Likewise.
2155 (cplus_language::search_name_hash): New member function.
2156 (asm_language_data): Delete la_search_name_hash initializer.
2157 (minimal_language_data): Likewise.
2158 * d-lang.c (d_language_data): Likewise.
2159 * dictionary.c (default_search_name_hash): Rename to...
2160 (language_defn::search_name_hash): ...this.
2161 * f-lang.c (f_language_data): Likewise.
2162 (f_language::search_name_hash): New member function.
2163 * go-lang.c (go_language_data): Delete la_search_name_hash
2164 initializer.
2165 * language.c (unknown_language_data): Likewise.
2166 (auto_language_data): Likewise.
2167 * language.h (struct language_data): Delete la_search_name_hash
2168 field.
2169 (language_defn::search_name_hash): Declare new member function.
2170 (default_search_name_hash): Delete declaration.
2171 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2172 initializer.
2173 * objc-lang.c (objc_language_data): Likewise.
2174 * opencl-lang.c (opencl_language_data): Likewise.
2175 * p-lang.c (pascal_language_data): Likewise.
2176 * rust-lang.c (rust_language_data): Likewise.
2177 * symtab.c (search_name_hash): Update call.
2178
8e25bafe
AB
21792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2182 initializer.
2183 * c-lang.c (class compile_instance): Declare.
2184 (c_language_data): Delete la_get_compile_instance initializer.
2185 (c_language::get_compile_instance): New member function.
2186 (cplus_language_data): Delete la_get_compile_instance initializer.
2187 (cplus_language::get_compile_instance): New member function.
2188 (asm_language_data): Delete la_get_compile_instance initializer.
2189 (minimal_language_data): Likewise.
2190 * c-lang.h (c_get_compile_context): Update comment.
2191 (cplus_get_compile_context): Update comment.
2192 * compile/compile.c (compile_to_object): Update calls, don't rely
2193 on function pointer being NULL.
2194 * d-lang.c (d_language_data): Delete la_get_compile_instance
2195 initializer.
2196 * f-lang.c (f_language_data): Likewise.
2197 * go-lang.c (go_language_data): Likewise.
2198 * language.c (unknown_language_data): Likewise.
2199 (auto_language_data): Likewise.
2200 * language.h (language_data): Delete la_get_compile_instance field.
2201 (language_defn::get_compile_instance): New member function.
2202 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2203 initializer.
2204 * objc-lang.c (objc_language_data): Likewise.
2205 * opencl-lang.c (opencl_language_data): Likewise.
2206 * p-lang.c (pascal_language_data): Likewise.
2207 * rust-lang.c (rust_language_data): Likewise.
2208
4009ee92
AB
22092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * ada-lang.c (ada_add_all_symbols): Update comment.
2212 (ada_iterate_over_symbols): Delete, move implementation to...
2213 (ada_language::iterate_over_symbols): ...here, a new member
2214 function, rewrite to use range based for loop.
2215 (ada_language_data): Delete la_iterate_over_symbols initializer.
2216 * c-lang.c (c_language_data): Likewise.
2217 (cplus_language_data): Likewise.
2218 (asm_language_data): Likewise.
2219 (minimal_language_data): Likewise.
2220 * d-lang.c (d_language_data): Likewise.
2221 * f-lang.c (f_language_data): Likewise.
2222 * go-lang.c (go_language_data): Likewise.
2223 * language.c (unknown_language_data): Likewise.
2224 (auto_language_data): Likewise.
2225 * language.h (language_data): Delete la_iterate_over_symbols field.
2226 (language_defn::iterate_over_symbols): New member function.
2227 (LA_ITERATE_OVER_SYMBOLS): Update.
2228 * linespec.c (iterate_over_all_matching_symtabs): Update.
2229 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2230 initializer.
2231 * objc-lang.c (objc_language_data): Likewise.
2232 * opencl-lang.c (opencl_language_data): Likewise.
2233 * p-lang.c (pascal_language_data): Likewise.
2234 * rust-lang.c (rust_language_data): Likewise.
2235
54f4ca46
AB
22362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2237
2238 * ada-lang.c (ada_language_data): Delete
2239 la_lookup_transparent_type initializer.
2240 * c-lang.c (c_language_data): Likewise.
2241 (cplus_language_data): Likewise.
2242 (cplus_language::lookup_transparent_type): New member function.
2243 (asm_language_data): Delete la_lookup_transparent_type
2244 initializer.
2245 (minimal_language_data): Likewise.
2246 * d-lang.c (d_language_data): Likewise.
2247 * f-lang.c (f_language_data): Likewise.
2248 * go-lang.c (go_language_data): Likewise.
2249 * language.c (unknown_language_data): Likewise.
2250 (auto_language_data): Likewise.
2251 * language.h (struct language_data): Delete
2252 la_lookup_transparent_type field.
2253 (language_defn::lookup_transparent_type): New member function.
2254 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2255 initializer.
2256 * objc-lang.c (objc_language_data): Likewise.
2257 * opencl-lang.c (opencl_language_data): Likewise.
2258 * p-lang.c (pascal_language_data): Likewise.
2259 * rust-lang.c (rust_language_data): Likewise.
2260 * symtab.c (symbol_matches_domain): Update call.
2261
1fb314aa
AB
22622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * ada-lang.c (ada_language_arch_info): Delete function, move
2265 implementation to...
2266 (ada_language::language_arch_info): ...here, a new member
2267 function.
2268 (ada_language_data): Delete la_language_arch_info.
2269 * c-lang.c (c_language_data): Likewise.
2270 (c_language::language_arch_info): New member function.
2271 (cplus_language_arch_info): Delete function, move
2272 implementation to...
2273 (cplus_language::language_arch_info): ...here, a new member
2274 function.
2275 (cplus_language_data): Delete la_language_arch_info.
2276 (asm_language_data): Likewise.
2277 (asm_language::language_arch_info): New member function.
2278 (minimal_language_data): Delete la_language_arch_info.
2279 (minimal_language::language_arch_info): New member function.
2280 * d-lang.c (d_language_arch_info): Delete function, move
2281 implementation to...
2282 (d_language::language_arch_info): ...here, a new member
2283 function.
2284 (d_language_data): Delete la_language_arch_info.
2285 * f-lang.c (f_language_arch_info): Delete function, move
2286 implementation to...
2287 (f_language::language_arch_info): ...here, a new member
2288 function.
2289 (f_language_data): Delete la_language_arch_info.
2290 * go-lang.c (go_language_arch_info): Delete function, move
2291 implementation to...
2292 (go_language::language_arch_info): ...here, a new member
2293 function.
2294 (go_language_data): Delete la_language_arch_info.
2295 * language.c (unknown_language_data): Likewise.
2296 (unknown_language::language_arch_info): New member function.
2297 (auto_language_data): Delete la_language_arch_info.
2298 (auto_language::language_arch_info): New member function.
2299 (language_gdbarch_post_init): Update call to
2300 la_language_arch_info.
2301 * language.h (language_data): Delete la_language_arch_info
2302 function pointer.
2303 (language_defn::language_arch_info): New function.
2304 * m2-lang.c (m2_language_arch_info): Delete function, move
2305 implementation to...
2306 (m2_language::language_arch_info): ...here, a new member
2307 function.
2308 (m2_language_data): Delete la_language_arch_info.
2309 * objc-lang.c (objc_language_arch_info): Delete function, move
2310 implementation to...
2311 (objc_language::language_arch_info): ...here, a new member
2312 function.
2313 (objc_language_data): Delete la_language_arch_info.
2314 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2315 implementation to...
2316 (opencl_language::language_arch_info): ...here, a new member
2317 function.
2318 (opencl_language_data): Delete la_language_arch_info.
2319 * p-lang.c (pascal_language_arch_info): Delete function, move
2320 implementation to...
2321 (pascal_language::language_arch_info): ...here, a new member
2322 function.
2323 (pascal_language_data): Delete la_language_arch_info.
2324 * rust-lang.c (rust_language_arch_info): Delete function, move
2325 implementation to...
2326 (rust_language::language_arch_info): ...here, a new member
2327 function.
2328 (rust_language_data): Delete la_language_arch_info.
2329
48448202
AB
23302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2333 initializer.
2334 * c-lang.c (c_language_data): Likewise.
2335 (cplus_language_data): Likewise.
2336 (cplus_language::pass_by_reference_info): New method.
2337 (asm_language_data): Delete la_pass_by_reference initializer.
2338 (minimal_language_data): Likewise.
2339 * cp-abi.c (cp_pass_by_reference): Remove use of
2340 default_pass_by_reference.
2341 * d-lang.c (d_language_data): Likewise.
2342 * f-lang.c (f_language_data): Likewise.
2343 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2344 default_pass_by_reference.
2345 * go-lang.c (go_language_data): Likewise.
2346 * language.c (language_pass_by_reference): Update.
2347 (default_pass_by_reference): Delete.
2348 (unknown_language_data): Delete la_pass_by_reference
2349 initializer.
2350 (auto_language_data): Likewise.
2351 * language.h (struct language_data): Delete la_pass_by_reference
2352 field.
2353 (language_defn::pass_by_reference_info): New member function.
2354 (default_pass_by_reference): Delete declaration.
2355 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2356 initializer.
2357 * objc-lang.c (objc_language_data): Likewise.
2358 * opencl-lang.c (opencl_language_data): Likewise.
2359 * p-lang.c (pascal_language_data): Likewise.
2360 * rust-lang.c (rust_language_data): Likewise.
2361
15e5fd35
AB
23622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * ada-lang.c (ada_read_var_value): Delete function, move
2365 implementation to...
2366 (ada_language::read_var_value): ...here.
2367 (ada_language_data): Delete la_read_var_value initializer.
2368 * c-lang.c (c_language_data): Likewise.
2369 (cplus_language_data): Likewise.
2370 (minimal_language_data): Likewise.
2371 * d-lang.c (d_language_data): Likewise.
2372 * f-lang.c (f_language_data): Likewise.
2373 * findvar.c (default_read_var_value): Rename to...
2374 (language_defn::read_var_value): ...this.
2375 * findvar.c (read_var_value): Update header comment, and change to
2376 call member function instead of function pointer.
2377 * go-lang.c (go_language_data): Likewise.
2378 * language.c (unknown_language_data): Delete la_read_var_value
2379 initializer.
2380 (auto_language_data): Likewise.
2381 * language.h (struct language_data): Delete la_read_var_value
2382 field.
2383 (language_defn::read_var_value): New member function.
2384 (default_read_var_value): Delete declaration.
2385 * m2-lang.c (m2_language_data): Delete la_read_var_value
2386 initializer.
2387 * objc-lang.c (objc_language_data): Likewise.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 * rust-lang.c (rust_language_data): Likewise.
2391 * value.h (default_read_var_value): Delete declaration.
2392
5bd40f2a
AB
23932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_print_array_index): Delete function, move
2396 implementation to...
2397 (ada_language::print_array_index): ...here.
2398 (ada_language_data): Delete la_print_array_index initializer.
2399 * c-lang.c (c_language_data): Likewise.
2400 (cplus_language_data): Likewise.
2401 (minimal_language_data): Likewise.
2402 * d-lang.c (d_language_data): Likewise.
2403 * f-lang.c (f_language_data): Likewise.
2404 * go-lang.c (go_language_data): Likewise.
2405 * language.c (default_print_array_index): Delete function, move
2406 implementation to...
2407 (language_defn::print_array_index): ...here.
2408 (unknown_language_data): Delete la_print_array_index initializer.
2409 (auto_language_data): Likewise.
2410 * language.h (struct language_data): Delete la_print_array_index
2411 field.
2412 (language_defn::print_array_index): New member function.
2413 (LA_PRINT_ARRAY_INDEX): Update.
2414 (default_print_array_index): Delete declaration.
2415 * m2-lang.c (m2_language_data): Delete la_print_array_index
2416 initializer.
2417 * objc-lang.c (objc_language_data): Likewise.
2418 * opencl-lang.c (opencl_language_data): Likewise.
2419 * p-lang.c (pascal_language_data): Likewise.
2420 * rust-lang.c (rust_language_data): Likewise.
2421
0874fd07
AB
24222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * gdb/ada-lang.c (ada_language_defn): Convert to...
2425 (ada_language_data): ...this.
2426 (class ada_language): New class.
2427 (ada_language_defn): New static global.
2428 * gdb/c-lang.c (c_language_defn): Convert to...
2429 (c_language_data): ...this.
2430 (class c_language): New class.
2431 (c_language_defn): New static global.
2432 (cplus_language_defn): Convert to...
2433 (cplus_language_data): ...this.
2434 (class cplus_language): New class.
2435 (cplus_language_defn): New static global.
2436 (asm_language_defn): Convert to...
2437 (asm_language_data): ...this.
2438 (class asm_language): New class.
2439 (asm_language_defn): New static global.
2440 (minimal_language_defn): Convert to...
2441 (minimal_language_data): ...this.
2442 (class minimal_language): New class.
2443 (minimal_language_defn): New static global.
2444 * gdb/d-lang.c (d_language_defn): Convert to...
2445 (d_language_data): ...this.
2446 (class d_language): New class.
2447 (d_language_defn): New static global.
2448 * gdb/f-lang.c (f_language_defn): Convert to...
2449 (f_language_data): ...this.
2450 (class f_language): New class.
2451 (f_language_defn): New static global.
2452 * gdb/go-lang.c (go_language_defn): Convert to...
2453 (go_language_data): ...this.
2454 (class go_language): New class.
2455 (go_language_defn): New static global.
2456 * gdb/language.c (unknown_language_defn): Remove declaration.
2457 (current_language): Initialize to nullptr, real initialization is
2458 moved to _initialize_language.
2459 (languages): Delete global.
2460 (language_defn::languages): Define.
2461 (set_language_command): Use language_defn::languages.
2462 (set_language): Likewise.
2463 (range_error): Likewise.
2464 (language_enum): Likewise.
2465 (language_def): Likewise.
2466 (add_set_language_command): Use language_def::languages for the
2467 language list, and language_def to lookup language pointers.
2468 (skip_language_trampoline): Use language_defn::languages.
2469 (unknown_language_defn): Convert to...
2470 (unknown_language_data): ...this.
2471 (class unknown_language): New class.
2472 (unknown_language_defn): New static global.
2473 (auto_language_defn): Convert to...
2474 (auto_language_data): ...this.
2475 (class auto_language): New class.
2476 (auto_language_defn): New static global.
2477 (language_gdbarch_post_init): Use language_defn::languages.
2478 (_initialize_language): Initialize current_language.
2479 * gdb/language.h (struct language_defn): Rename to...
2480 (struct language_data): ...this.
2481 (struct language_defn): New.
2482 (auto_language_defn): Delete.
2483 (unknown_language_defn): Delete.
2484 (minimal_language_defn): Delete.
2485 (ada_language_defn): Delete.
2486 (asm_language_defn): Delete.
2487 (c_language_defn): Delete.
2488 (cplus_language_defn): Delete.
2489 (d_language_defn): Delete.
2490 (f_language_defn): Delete.
2491 (go_language_defn): Delete.
2492 (m2_language_defn): Delete.
2493 (objc_language_defn): Delete.
2494 (opencl_language_defn): Delete.
2495 (pascal_language_defn): Delete.
2496 (rust_language_defn): Delete.
2497 * gdb/m2-lang.c (m2_language_defn): Convert to...
2498 (m2_language_data): ...this.
2499 (class m2_language): New class.
2500 (m2_language_defn): New static global.
2501 * gdb/objc-lang.c (objc_language_defn): Convert to...
2502 (objc_language_data): ...this.
2503 (class objc_language): New class.
2504 (objc_language_defn): New static global.
2505 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2506 (opencl_language_data): ...this.
2507 (class opencl_language): New class.
2508 (opencl_language_defn): New static global.
2509 * gdb/p-lang.c (pascal_language_defn): Convert to...
2510 (pascal_language_data): ...this.
2511 (class pascal_language): New class.
2512 (pascal_language_defn): New static global.
2513 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2514 language pointer, update comment format.
2515 * gdb/rust-lang.c (rust_language_defn): Convert to...
2516 (rust_language_data): ...this.
2517 (class rust_language): New class.
2518 (rust_language_defn): New static global.
2519
1313c56e
AB
25202020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2523 member variable.
2524 <m_stmt_at_address>: New member variable.
2525 (lnp_state_machine::record_line): Don't record some lines, update
2526 tracking of is_stmt at the same address.
2527 (lnp_state_machine::lnp_state_machine): Initialise new member
2528 variables.
2529
b7ed9f3d
ST
25302020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2531
2532 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2533 "-include gnu-nat-mig.h".
2534 * gnu-nat-mig.h: New file.
2535 * gnu-nat.c: Include "gnu-nat-mig.h".
2536 (exc_server, msg_reply_server, notify_server,
2537 process_reply_server): Remove declarations.
2538
14a8ad62
ST
25392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2540
2541 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2542 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2543 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2544 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2545 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2546 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2547 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2548 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2549 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2550 to gnu_nat_target class.
2551 * gnu-nat.c: Likewise.
2552 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2553 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2554 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2555 object.
2556 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2557 instead of `gnu_target'.
2558
0af5e106
ST
25592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2560
2561 * i386-gnu-tdep.c: Include "gdbcore.h"
2562 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2563 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2564 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2565 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2566 i386_gnu_sigcontext_addr): New functions
2567 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2568 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2569 tdep.
2570
078f2fc9
ST
25712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2572
2573 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2574 before fork_inferior call. Avoid calling it if target_is_pushed returns
2575 true.
2576
53dff92c
ST
25772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2578
2579 * gnu-nat.h (gnu_target): New variable declaration.
2580 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2581 gnu_target.
2582 * gnu-nat.c (gnu_target): New variable.
2583 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2584 add_thread_silent, and add_thread calls.
2585 (gnu_nat_target::create_inferior): Pass gnu_target to
2586 add_thread_silent, thread_change_ptid call.
2587 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2588 call.
2589
5a8b8627
ST
25902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2591
2592 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2593 (gnu_nat_target::find_memory_regions): Remove unused
2594 `old_address' variable.
2595
366f550a
ST
25962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2597
2598 * gnu-nat.c: Include "gdbarch.h".
2599
f14871bf
ST
26002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2601
2602 * reply_mig_hack.awk (Error return): Cast function through
2603 void *, to bypass compiler function call check.
2604
c6887cfb
ST
26052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2606
2607 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2608 $(srcdir)/reply_mig_hack.awk.
2609
6930bffe
ST
26102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2611
2612 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2613
112c22ed
JG
26142020-05-30 Jonny Grant <jg@jguk.org>
2615
2616 * configure.ac (ACX_BUGURL): change bug URL to https.
2617
f68f85b5
PA
26182020-05-30 Pedro Alves <palves@redhat.com>
2619
2620 * cp-support.c (replace_typedefs_template): New.
2621 (replace_typedefs_qualified_name): Handle
2622 DEMANGLE_COMPONENT_TEMPLATE.
2623
976ca316
SM
26242020-05-29 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2627 dwarf2/index-cache.h, dwarf2/index-write.c,
2628 dwarf2/index-write.h, dwarf2/line-header.c,
2629 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2630 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2631 variables and fields from `dwarf2_per_objfile` to just
2632 `per_objfile` throughout.
2633
989ade05
SM
26342020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2635
2636 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2637 <push_dwarf_reg_entry_value>: Add comment.
2638
c47bae85
KB
26392020-05-28 Kevin Buettner <kevinb@redhat.com>
2640 Keith Seitz <keiths@redhat.com>
2641
2642 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2643 instead of PyEval_ReleaseLock.
2644 (class gdbpy_gil): Move to earlier in file.
2645 (finalize_python): Set gdb_python_initialized.
2646 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2647 when not initialized.
2648
44486dcf
SM
26492020-05-28 Simon Marchi <simon.marchi@efficios.com>
2650
2651 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2652 <push_dwarf_reg_entry_value>: Remove assert. Override
2653 per_objfile with caller_per_objfile.
2654
f030440d
TV
26552020-05-28 Tom de Vries <tdevries@suse.de>
2656
2657 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2658 PR gold/15646 workaround to symbol kind "type".
2659
f0fbb768
TT
26602020-05-27 Tom Tromey <tromey@adacore.com>
2661
2662 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2663
af0b2a3e
TT
26642020-05-27 Tom Tromey <tromey@adacore.com>
2665
2666 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2667 Use htab_find_with_hash.
2668 <add_abbrev>: Remove "abbrev_number" parameter.
2669 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2670 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2671 (hash_abbrev): Add comment.
2672 (abbrev_table::lookup_abbrev): Move to header file.
2673 (abbrev_table::read): Update.
2674
7d00ffec
TT
26752020-05-27 Tom Tromey <tromey@adacore.com>
2676
2677 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2678 method.
2679 <canonical_name>: New member.
2680 <raw_name>: Rename from "name".
2681 (partial_die_info): Initialize canonical_name.
2682 (scan_partial_symbols): Check raw_name.
2683 (partial_die_parent_scope, partial_die_full_name)
2684 (add_partial_symbol, add_partial_subprogram)
2685 (add_partial_enumeration, load_partial_dies): Use "name" method.
2686 (partial_die_info::name): New method.
2687 (partial_die_info::read, guess_partial_die_structure_name)
2688 (partial_die_info::fixup): Update.
2689
697bba18
TT
26902020-05-27 Tom Tromey <tromey@adacore.com>
2691
2692 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2693 <get_ref_die_offset>: Inline.
2694 <get_ref_die_offset_complaint>: New method.
2695 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2696 (attribute::get_ref_die_offset_complaint): Rename from
2697 get_ref_die_offset. Just issue complaint.
2698
c17ace43
HD
26992020-05-27 Hannes Domani <ssbssa@yahoo.de>
2700
2701 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2702
96445f0b
HD
27032020-05-27 Hannes Domani <ssbssa@yahoo.de>
2704
2705 * exec.c (exec_file_attach): Use errno value of first openp failure.
2706
ac637ec3
HD
27072020-05-27 Hannes Domani <ssbssa@yahoo.de>
2708
2709 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2710 Don't close thread handle.
2711
17ee85fc
TT
27122020-05-27 Tom Tromey <tom@tromey.com>
2713 Simon Marchi <simon.marchi@efficios.com>
2714
2715 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2716 shared_ptr.
2717 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2718 member.
2719 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2720 dwarf2_per_bfd_objfile_data_key>: New globals.
2721 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2722 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2723 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2724 shared.
2725 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2726 short-circuit when sharing.
2727 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2728 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2729
39b16f87
SM
27302020-05-27 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2733 to...
2734 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2735 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2736
fcf23d5b
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2740 build_name_components, find_name_components_bounds>:
2741 Add per_objfile parameter.
2742 (struct mapped_index) <symbol_name_at>: Likewise.
2743 (struct mapped_debug_names): Remove constructor.
2744 <dwarf2_per_objfile>: Remove field.
2745 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2746 (mapped_index_base::find_name_components_bounds,
2747 mapped_index_base::build_name_components,
2748 dw2_expand_symtabs_matching_symbol): Likewise.
2749 (class mock_mapped_index) <symbol_name_at>: Likewise.
2750 (check_match): Likewise.
2751 (check_find_bounds_finds): Likewise.
2752 (test_mapped_index_find_name_component_bounds): Update.
2753 (CHECK_MATCH): Update.
2754 (dw2_expand_symtabs_matching): Update.
2755 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2756 per_objfile parameter.
2757 <find_vec_in_debug_names>: Likewise.
2758 <m_per_objfile>: New field.
2759 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2760 parameter.
2761 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2762 (dw2_debug_names_iterator::next): Update.
2763 (dw2_debug_names_lookup_symbol): Update.
2764 (dw2_debug_names_expand_symtabs_for_function): Update.
2765 (dw2_debug_names_map_matching_symbols): Update.
2766 (dw2_debug_names_expand_symtabs_matching): Update.
2767 (dwarf2_read_debug_names): Update.
2768
7188ed02
SM
27692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2772 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2773 move to dwarf2_per_objfile.
2774 <read_in_chain>: Remove.
2775 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2776 remove_all_cus, age_comp_units>: New methods.
2777 <m_dwarf2_cus>: New member.
2778 (struct dwarf2_per_cu_data) <cu>: Remove.
2779 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2780 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2781 moved to methods of dwarf2_per_objfile.
2782 (dwarf2_clear_marks): Remove.
2783 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2784 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2785 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2786 (dwarf2_per_objfile::remove_all_cus): New.
2787 (class free_cached_comp_units) <~free_cached_comp_units>:
2788 Update.
2789 (load_cu): Update.
2790 (dw2_do_instantiate_symtab): Adjust.
2791 (fill_in_sig_entry_from_dwo_entry): Adjust.
2792 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2793 (cutu_reader::cutu_reader): Likewise.
2794 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2795 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2796 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2797 and dwarf2_per_objfile::age_comp_units.
2798 (load_partial_comp_unit): Update.
2799 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2800 (process_queue): Likewise.
2801 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2802 backlink.
2803 (dwarf2_read_addr_index): Likewise.
2804 (follow_die_offset): Likewise.
2805 (dwarf2_fetch_die_loc_sect_off): Likewise.
2806 (dwarf2_fetch_constant_bytes): Likewise.
2807 (dwarf2_fetch_die_type_sect_off): Likewise.
2808 (follow_die_sig_1): Likewise.
2809 (load_full_type_unit): Likewise.
2810 (read_signatured_type): Likewise.
2811 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2812 (dwarf2_cu::~dwarf2_cu): Remove.
2813 (dwarf2_per_objfile::get_cu): New.
2814 (dwarf2_per_objfile::set_cu): New.
2815 (age_cached_comp_units): Rename to...
2816 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2817 to std::unordered_map.
2818 (free_one_cached_comp_unit): Rename to...
2819 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2820 to std::unordered_map.
2821 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2822 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2823 a dwarf2_per_objfile in data.
2824 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2825 (dwarf2_clear_marks): Remove.
2826
2e671100
SM
28272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2828
2829 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2830 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2831 (init_tu_and_read_dwo_dies): Likewise.
2832 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2833 (cutu_reader::cutu_reader): Likewise.
2834 (load_partial_comp_unit): Likewise.
2835 (process_psymtab_comp_unit): Update.
2836 (build_type_psymtabs_1): Update.
2837 (process_skeletonless_type_unit): Update.
2838 (load_full_comp_unit): Update.
2839 (find_partial_die): Update.
2840 (dwarf2_read_addr_index): Update.
2841 (read_signatured_type): Update.
2842
2e6a9f79
SM
28432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2846 m_header_read_in>: New fields.
2847 <get_header>: New method.
2848 * dwarf2/read.c (per_cu_header_read_in): Remove.
2849 (dwarf2_per_cu_data::get_header): New.
2850 (dwarf2_per_cu_data::addr_size): Update.
2851 (dwarf2_per_cu_data::offset_size): Update.
2852 (dwarf2_per_cu_data::ref_addr_size): Update.
2853
1b555f17
SM
28542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2857 (dw2_do_instantiate_symtab): Update.
2858 (queue_and_load_all_dwo_tus): Change parameter from
2859 dwarf2_per_cu_data to dwarf2_cu.
2860 (dwarf2_fetch_die_loc_sect_off): Update.
2861 (dwarf2_fetch_constant_bytes): Update.
2862 (dwarf2_fetch_die_type_sect_off): Update.
2863
8fc0b21d
SM
28642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * dwarf2/read.c (process_full_comp_unit,
2867 process_full_type_unit): Remove per_cu, per_objfile paramters.
2868 Add dwarf2_cu parameter.
2869 (process_queue): Update.
2870
168c9250
SM
28712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * dwarf2/read.c (create_cu_from_index_list): Replace
2874 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2875 (create_cus_from_index_list): Likewise.
2876 (create_cus_from_index): Likewise.
2877 (create_signatured_type_table_from_index): Likewise.
2878 (create_cus_from_debug_names_list): Likewise.
2879 (create_cus_from_debug_names): Likewise.
2880 (dwarf2_read_gdb_index): Update.
2881 (dwarf2_read_debug_names): Update.
2882
e286671b
TT
28832020-05-27 Tom Tromey <tom@tromey.com>
2884 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * dwarf2/read.h (struct dwarf2_per_objfile)
2887 <get_type_for_signatured_type, set_type_for_signatured_type>:
2888 New methods.
2889 <m_type_map>: New member.
2890 (struct signatured_type) <type>: Remove.
2891 * dwarf2/read.c
2892 (dwarf2_per_objfile::get_type_for_signatured_type,
2893 dwarf2_per_objfile::set_type_for_signatured_type): New.
2894 (get_signatured_type): Use new methods.
2895
8adb8487
TT
28962020-05-27 Tom Tromey <tom@tromey.com>
2897 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2900 (struct dwarf2_per_objfile) <type_units>: New member.
2901 <get_type_unit_group_unshareable>: New method.
2902 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2903 num_symtabs, symtabs>: Remove; move to
2904 type_unit_group_unshareable.
2905 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2906 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2907 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2908
127bbf4b
SM
29092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * dwarf2/read.h (struct dwarf2_per_cu_data):
2912 <dwarf2_per_objfile>: Remove.
2913 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2914 dwarf2_per_objfile.
2915 (create_signatured_type_table_from_index): Likewise.
2916 (create_signatured_type_table_from_debug_names): Likewise.
2917 (create_debug_type_hash_table): Likewise.
2918 (fill_in_sig_entry_from_dwo_entry): Likewise.
2919 (create_type_unit_group): Likewise.
2920 (read_comp_units_from_section): Likewise.
2921 (create_cus_hash_table): Likewise.
2922
f6e649dd
SM
29232020-05-27 Simon Marchi <simon.marchi@efficios.com>
2924
2925 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2926 dwarf2_per_cu_data::dwarf2_per_objfile.
2927 (compute_compunit_symtab_includes): Likewise.
2928 (dwarf2_cu::start_symtab): Likewise.
2929
aa66c379
SM
29302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2933 parameter.
2934 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2935 (read_namespace_alias): Update.
2936 (lookup_die_type): Update.
2937 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2938 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2939 Update.
2940 (disassemble_dwarf_expression): Update.
2941
120ce1b5
SM
29422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * dwarf2/read.h (struct dwarf2_queue_item): Add
2945 dwarf2_per_objfile parameter, assign new parameter.
2946 <per_objfile>: New field.
2947 * dwarf2/read.c (free_one_cached_comp_unit): Add
2948 dwarf2_per_objfile parameter.
2949 (queue_comp_unit): Likewise.
2950 (dw2_do_instantiate_symtab): Update.
2951 (process_psymtab_comp_unit): Update.
2952 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2953 (process_imported_unit_die): Update.
2954 (queue_and_load_dwo_tu): Update.
2955 (follow_die_offset): Update.
2956 (follow_die_sig_1): Update.
2957
9f47c707
SM
29582020-05-27 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2961 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2962 (read_call_site_scope): Assign per_objfile.
2963 (dwarf2_per_cu_data::objfile): Remove.
2964 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2965 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2966 dwarf2_per_objfile parameter.
2967 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2968 dwarf2_per_objfile parameter.
2969 (dwarf_expr_reg_to_entry_parameter): Add output
2970 dwarf2_per_objfile parameter.
2971 (locexpr_get_frame_base): Update.
2972 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2973 <push_dwarf_reg_entry_value>: Update.
2974 <call_site_to_target_addr>: Update.
2975 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2976 parameter.
2977 (value_of_dwarf_reg_entry): Update.
2978 (rw_pieced_value): Update.
2979 (indirect_synthetic_pointer): Update.
2980 (dwarf2_evaluate_property): Update.
2981 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2982 parameter.
2983 (locexpr_read_variable): Update.
2984 (locexpr_get_symbol_read_needs): Update.
2985 (loclist_read_variable): Update.
2986
14095eb3
SM
29872020-05-27 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2990 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2991 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2992 parameter.
2993 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2994 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2995 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2996 parameter.
2997 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2998 sect_variable_value): Add dwarf2_per_objfile parameter.
2999 (class dwarf_evaluate_loc_desc) <dwarf_call,
3000 dwarf_variable_value>: Update.
3001 (fetch_const_value_from_synthetic_pointer): Add
3002 dwarf2_per_objfile parameter.
3003 (fetch_const_value_from_synthetic_pointer): Update.
3004 (coerced_pieced_ref): Update.
3005 (class symbol_needs_eval_context) <dwarf_call,
3006 dwarf_variable_value>: Update.
3007 (dwarf2_compile_expr_to_ax): Update.
3008
3c3cd3d4
SM
30092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3012 parameter.
3013 (dwarf2_evaluate_loc_desc_full): Update.
3014
82ca3f51
SM
30152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3018 parameter.
3019 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3020 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3021 dwarf2_per_objfile parameter.
3022 (decode_debug_loc_dwo_addresses): Likewise.
3023 (dwarf2_find_location_expression): Update.
3024 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3025 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3026 parameter.
3027 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3028 parameter.
3029 (locexpr_describe_location_1): Likewise.
3030 (locexpr_describe_location): Update.
3031
4b167ea1
SM
30322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3035 Remove.
3036 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3037 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3038 (dwarf2_compile_property_to_c): Update.
3039 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3040 use text offset from objfile.
3041 (locexpr_tracepoint_var_ref): Update.
3042 (locexpr_generate_c_location): Update.
3043 (loclist_describe_location): Update.
3044 (loclist_tracepoint_var_ref): Update.
3045 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3046 dwarf2_per_objfile parameter.
3047 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3048 use text offset from objfile.
3049 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3050
89b07335
SM
30512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * dwarf2/expr.h (struct dwarf_expr_context)
3054 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3055 <offset>: Remove.
3056 <per_objfile>: New member.
3057 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3058 dwarf2_per_objfile parameter. Don't set offset, set
3059 per_objfile.
3060 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3061 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3062 a dwarf2_per_objfile object instead of an offset.
3063 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3064 constructor.
3065 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3066 to dwarf2_expr_executor constructor. Don't set offset.
3067 (dwarf2_fetch_cfa_info): Update.
3068 (struct dwarf2_frame_cache) <text_offset>: Remove.
3069 <per_objfile>: New field.
3070 (dwarf2_frame_cache): Update.
3071 (dwarf2_frame_prev_register): Update.
3072 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3073 <dwarf_evaluate_loc_desc>: Add constructor.
3074 (dwarf2_evaluate_loc_desc_full): Update.
3075 (dwarf2_locexpr_baton_eval): Update.
3076 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3077 Add constructor.
3078 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3079
293e7e51
SM
30802020-05-27 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3083 addr_sized_int_type>: Move to dwarf2_cu.
3084 <int_type>: Move to dwarf2_per_objfile.
3085 (struct dwarf2_per_objfile) <int_type>: Move here.
3086 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3087 addr_sized_int_type>: Move here.
3088 (read_func_scope): Update.
3089 (read_array_type): Update.
3090 (read_tag_string_type): Update.
3091 (attr_to_dynamic_prop): Update.
3092 (dwarf2_per_cu_data::int_type): Rename to...
3093 (dwarf2_per_objfile::int_type): ... this.
3094 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3095 (dwarf2_cu::addr_sized_int_type): ... this.
3096 (read_subrange_type): Update.
3097 (dwarf2_per_cu_data::addr_type): Rename to...
3098 (dwarf2_cu::addr_type): ... this.
3099 (set_die_type): Update.
3100
64874a40
SM
31012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3104 data through per_cu->cu.
3105
4ab09049
SM
31062020-05-27 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3109 dwarf2_per_cu_data parameter fo dwarf2_cu.
3110 (lookup_dwo_type_unit): Likewise.
3111 (read_cutu_die_from_dwo): Likewise.
3112 (lookup_dwo_unit): Likewise.
3113 (open_and_init_dwo_file): Likewise.
3114 (lookup_dwo_cutu): Likewise.
3115 (lookup_dwo_comp_unit): Likewise.
3116 (lookup_dwo_type_unit): Likewise.
3117 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3118 (cutu_reader::cutu_reader): Update.
3119
47b14e86
SM
31202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3123 parameter.
3124 (process_full_type_unit): Likewise.
3125 (process_queue): Update.
3126
43182c09
SM
31272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * dwarf2/read.c (recursively_compute_inclusions): Add
3130 dwarf2_per_objfile parameter.
3131 (compute_compunit_symtab_includes): Likewise.
3132 (process_cu_includes): Update.
3133
7aa104c4
SM
31342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3137 parameter.
3138 (create_type_unit_group): Update.
3139 (process_psymtab_comp_unit_reader): Update.
3140 (build_type_psymtabs_reader): Update.
3141
e3beb21d
SM
31422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3145 object through m_this_cu->cu.
3146
d460f660
SM
31472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3150 the info parameter.
3151 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3152
ab432490
SM
31532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3156 per_objfile parameter.
3157 (load_full_type_unit): Add per_objfile parameter.
3158 (read_signatured_type): Likewise.
3159 (load_full_comp_unit): Likewise.
3160 (load_cu): Likewise.
3161 (dw2_do_instantiate_symtab): Likewise.
3162 (dw2_get_file_names): Likewise.
3163 (dw2_map_symtabs_matching_filename): Update.
3164 (dw_expand_symtabs_matching_file_matcher): Update.
3165 (dw2_map_symbol_filenames): Update.
3166 (process_psymtab_comp_unit): Add per_objfile parameter.
3167 (build_type_psymtabs_1): Update.
3168 (process_skeletonless_type_unit): Update.
3169 (dwarf2_build_psymtabs_hard): Update.
3170 (load_partial_comp_unit): Add per_objfile parameter.
3171 (scan_partial_symbols): Update.
3172 (load_full_comp_unit): Add per_objfile parameter.
3173 (process_imported_unit_die): Update.
3174 (create_cus_hash_table): Update.
3175 (find_partial_die): Update.
3176 (dwarf2_read_addr_index): Update.
3177 (follow_die_offset): Update.
3178 (dwarf2_fetch_die_loc_sect_off): Update.
3179 (dwarf2_fetch_constant_bytes): Update.
3180 (dwarf2_fetch_die_type_sect_off): Update.
3181 (follow_die_sig_1): Update.
3182 (load_full_type_unit): Add per_objfile parameter.
3183 (read_signatured_type): Likewise.
3184
313bad1b
SM
31852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3188 of objfile_name.
3189
c3699833
SM
31902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3193 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3194 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3195 field.
3196 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3197 (create_cus_from_index): Update.
3198 (dwarf2_read_gdb_index): Update.
3199 (create_cus_from_debug_names): Update.
3200 (dwarf2_read_debug_names): Update.
3201 (get_abbrev_section_for_cu): Update.
3202 (create_all_comp_units): Update.
3203 (read_attribute_value): Update.
3204 (get_debug_line_section): Update.
3205 * dwarf2/index-cache.c (index_cache::store): Update.
3206 * dwarf2/index-write.c (save_gdb_index_command): Update.
3207 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3208
1859c670
SM
32092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3212 member.
3213 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3214 dwarf2_per_cu_data::per_bfd.
3215 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3216 (create_type_unit_group): Likewise.
3217 (queue_comp_unit): Remove reference to
3218 per_cu->dwarf2_per_objfile.
3219 (maybe_queue_comp_unit): Likewise.
3220 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3221 (create_cus_hash_table): Assign new field.
3222
5e22e966
SM
32232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3224
3225 * dwarf2/read.c: Replace
3226 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3227 dwarf2_cu->per_objfile throughout.
3228
97a1449a
SM
32292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3230
3231 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3232 parameter, don't use per_cu->dwarf2_per_objfile.
3233 (dw2_instantiate_symtab): Likewise.
3234 (dw2_find_last_source_symtab): Update.
3235 (dw2_map_expand_apply): Update.
3236 (dw2_lookup_symbol): Update.
3237 (dw2_expand_symtabs_for_function): Update.
3238 (dw2_expand_all_symtabs): Update.
3239 (dw2_expand_symtabs_with_fullname): Update.
3240 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3241 don't use per_cu->dwarf2_per_objfile.
3242 (dw2_expand_marked_cus): Update.
3243 (dw2_find_pc_sect_compunit_symtab): Update.
3244 (dw2_debug_names_lookup_symbol): Update.
3245 (dw2_debug_names_expand_symtabs_for_function): Update.
3246 (dw2_debug_names_map_matching_symbols): Update.
3247 (dwarf2_psymtab::expand_psymtab): Update.
3248
9e021579
SM
32492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3252 <per_objfile>: New member.
3253 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3254 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3255 call to dwarf2_cu.
3256 (cutu_reader::cutu_reader): Update.
3257 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3258
ae090bdb
SM
32592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3262 struct dwarf2_per_objfile.
3263 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3264 dwarf2_per_bfd.
3265 * dwarf2/read.c (set_die_type): Update.
3266 (get_die_type_at_offset): Update.
3267
af758d11
SM
32682020-05-27 Tom Tromey <tom@tromey.com>
3269 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3272 method.
3273 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3274 get_symtab, set_symtab>: New methods.
3275 <m_symtabs>: New field.
3276 (struct dwarf2_psymtab): Derive from partial_symtab.
3277 <readin_p, get_compunit_symtab>: Declare methods.
3278 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3279 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3280 New methods.
3281 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3282 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3283 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3284 (dw2_symtab_iter_next, dw2_print_stats)
3285 (dw2_expand_symtabs_with_fullname)
3286 (dw2_expand_symtabs_matching_one)
3287 (dw_expand_symtabs_matching_file_matcher)
3288 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3289 (dw2_debug_names_iterator::next)
3290 (dw2_debug_names_map_matching_symbols)
3291 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3292 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3293 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3294 New methods.
3295 (get_compunit_symtab, process_full_comp_unit)
3296 (process_full_type_unit): Update.
3297 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3298
5989a64e
SM
32992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3302 then introduce a new dwarf2_per_objfile type.
3303 <read_line_string>: Move to the new dwarf2_per_objfile type.
3304 <objfile>: Likewise.
3305 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3306 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3307 dwarf2_per_objfile->per_bfd.
3308 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3309 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3310 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3311 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3312 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3313 (dwarf2_per_objfile::locate_sections): Rename to...
3314 (dwarf2_per_bfd::locate_sections): ... this.
3315 (dwarf2_per_objfile::get_cutu): Rename to...
3316 (dwarf2_per_bfd::get_cutu): ... this.
3317 (dwarf2_per_objfile::get_cu): Rename to...
3318 (dwarf2_per_bfd::get_cu): ... this.
3319 (dwarf2_per_objfile::get_tu): Rename to...
3320 (dwarf2_per_bfd::get_tu): ... this.
3321 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3322 (dwarf2_per_bfd::allocate_per_cu): ... this.
3323 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3324 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3325 (get_gdb_index_contents_ftype): Change parameter from
3326 dwarf2_per_objfile to dwarf2_per_bfd.
3327 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3328 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3329
a50264ba
TT
33302020-05-27 Tom Tromey <tom@tromey.com>
3331 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3334 (allocate_piece_closure): Set "per_objfile" member.
3335 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3336 (locexpr_describe_location, loclist_describe_location): Use new
3337 member.
3338 * dwarf2/read.c (read_call_site_scope)
3339 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3340 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3341 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3342 handle_data_member_location): Set per_objfile member.
3343 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3344 member.
3345 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3346
d3473f0c
TT
33472020-05-27 Tom Tromey <tom@tromey.com>
3348
3349 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3350 allocate_signatured_type>: Declare new methods.
3351 <m_num_psymtabs>: New member.
3352 (struct dwarf2_per_cu_data) <index>: New member.
3353 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3354 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3355 (create_cu_from_index_list): Use allocate_per_cu.
3356 (create_signatured_type_table_from_index)
3357 (create_signatured_type_table_from_debug_names)
3358 (create_debug_type_hash_table, add_type_unit)
3359 (read_comp_units_from_section): Use allocate_signatured_type.
3360
5717c425
TT
33612020-05-27 Tom Tromey <tom@tromey.com>
3362
3363 * psymtab.c (partial_map_expand_apply)
3364 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3365 (psym_lookup_global_symbol_language)
3366 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3367 (psym_print_stats, psym_expand_symtabs_for_function)
3368 (psym_map_symbol_filenames, psym_map_matching_symbols)
3369 (psym_expand_symtabs_matching)
3370 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3371 (maintenance_check_psymtabs): Update.
3372 * psympriv.h (struct partial_symtab) <readin_p,
3373 get_compunit_symtab>: Add objfile parameter.
3374 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3375 Likewise.
3376 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3377 get_compunit_symtab>: Likewise.
3378 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3379
45940949
TT
33802020-05-27 Tom Tromey <tom@tromey.com>
3381
3382 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3383 member.
3384 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3385 (create_cu_from_index_list)
3386 (create_signatured_type_table_from_index)
3387 (create_signatured_type_table_from_debug_names)
3388 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3389 (dwarf2_create_include_psymtab)
3390 (create_debug_type_hash_table, add_type_unit)
3391 (create_type_unit_group, read_comp_units_from_section)
3392 (dwarf2_compute_name, create_cus_hash_table)
3393 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3394 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3395 obstack.
3396 (dw2_get_real_path): Likewise. Change argument to
3397 dwarf2_per_objfile.
3398
f8c6d152
LM
33992020-05-27 Luis Machado <luis.machado@linaro.org>
3400
3401 PR tdep/26000
3402 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3403 for ldrd (immediate).
3404
e98d2e6d
PW
34052020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3406
3407 * command.h: Add comment giving the name of class_tui.
3408 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3409 create the fake command for the help for class_tui.
3410
53a47a3e
TT
34112020-05-26 Tom Tromey <tromey@adacore.com>
3412
3413 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3414 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3415 (val_atr): New function.
3416 (value_val_atr): Use it.
3417 * ada-valprint.c (print_optional_low_bound): Change low bound
3418 handling for enums.
3419 (val_print_packed_array_elements): Don't call discrete_position.
3420 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3421 discrete_position for enum types.
3422 * language.c (default_print_array_index): Change type.
3423 * language.h (struct language_defn) <la_print_array_index>: Add
3424 index_type parameter, change type of index_value.
3425 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3426 (default_print_array_index): Update.
3427 * valprint.c (maybe_print_array_index): Don't call
3428 value_from_longest. Update.
3429 (value_print_array_elements): Don't call discrete_position.
3430
0bc2354b
TT
34312020-05-26 Tom Tromey <tromey@adacore.com>
3432
3433 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3434 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3435
1218a4bf
CDA
34362020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3437
3438 PR gdb/13519
3439 * avr-tdep.c (avr_integer_to_address): Return data or code
3440 address accordingly to the second 'type' argument of the
3441 function.
3442
92651b1d
MW
34432020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3444
3445 * infcmd.c, inferior.h: (construct_inferior_arguments):
3446 Moved function from here to gdbsupport/common-inferior.{h,cc}
3447
0a4f5f8c
TT
34482020-05-23 Tom Tromey <tom@tromey.com>
3449
3450 Revert commit eca1f90c:
3451 * NEWS: Remove entry for completion styling.
3452 * completer.c (_rl_completion_prefix_display_length): Move
3453 declaration later.
3454 (gdb_fnprint): Revert.
3455 (gdb_display_match_list_1): Likewise.
3456 * cli/cli-style.c (completion_prefix_style)
3457 (completion_difference_style, completion_suffix_style): Remove.
3458 (_initialize_cli_style): Revert.
3459 * cli/cli-style.h (completion_prefix_style)
3460 (completion_difference_style, completion_suffix_style): Don't
3461 declare.
3462
e08bd6c5
PA
34632020-05-24 Pedro Alves <palves@redhat.com>
3464
3465 * symtab.c (completion_list_add_name): Return boolean indication
3466 of whether the symbol matched.
3467 (completion_list_add_symbol): Don't try to remove C++ aliases if
3468 the symbol didn't match in the first place.
3469 * symtab.h (completion_list_add_name): Return bool.
3470
ceacbf6e
SM
34712020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3474 type::field.
3475
26f16254
JB
34762020-05-23 Joel Brobecker <brobecker@adacore.com>
3477
3478 GDB 9.2 released.
3479
eca1f90c
TT
34802020-05-23 Tom Tromey <tom@tromey.com>
3481
3482 * NEWS: Add entry for completion styling.
3483 * completer.c (_rl_completion_prefix_display_length): Move
3484 declaration earlier.
3485 (gdb_fnprint): Use completion_style.
3486 (gdb_display_match_list_1): Likewise.
3487 * cli/cli-style.c (completion_prefix_style)
3488 (completion_difference_style, completion_suffix_style): New
3489 globals.
3490 (_initialize_cli_style): Register new globals.
3491 * cli/cli-style.h (completion_prefix_style)
3492 (completion_difference_style, completion_suffix_style): Declare.
3493
51e2cfa2
PA
34942020-05-23 Pedro Alves <palves@redhat.com>
3495
3496 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3497 (parse_escape): Use ISDIGIT instead of isdigit.
3498 (puts_debug): Use gdb_isprint instead of isprint.
3499 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3500 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3501 ISSPACE instead of isspace.
3502 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3503 instead of isspace.
3504 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3505 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3506 instead of isxdigit and ISDIGIT instead of isdigit.
3507
80fc5e77
SM
35082020-05-22 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * gdbtypes.h (struct type) <field>: New method.
3511 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3512 or type::field.
3513
3cabb6b0
SM
35142020-05-22 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3517 (TYPE_FIELDS): Use type::fields. Change all call sites that
3518 modify the propery to use type::set_fields instead.
3519
1f704f76
SM
35202020-05-22 Simon Marchi <simon.marchi@efficios.com>
3521
3522 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3523 type::num_fields instead.
3524
5e33d5f4
SM
35252020-05-22 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3528 methods.
3529 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3530 that modify the number of fields to use type::set_num_fields
3531 instead.
3532
9392ebb3
TT
35332020-05-22 Tom Tromey <tromey@adacore.com>
3534
3535 * compile/compile-object-load.h (munmap_list_free): Don't
3536 declare.
3537
7c13f4e8
AB
35382020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * annotate.c (annotate_source_line): Update return type, add call
3541 to update current symtab and line.
3542 * annotate.h (annotate_source_line): Update return type, and
3543 extend header comment.
3544 * source.c (info_line_command): Check annotation_level before
3545 calling annotate_source_line.
3546 * stack.c (print_frame_info): If calling annotate_source_line
3547 returns true, then don't print any other source line information.
3548
aa370940
SM
35492020-05-21 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3552
84d53fa9
SM
35532020-05-21 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * coffread.c (patch_type): Remove NULL check before xfree.
3556 * corefile.c (set_gnutarget): Likewise.
3557 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3558 * exec.c (build_section_table): Likewise.
3559 * remote.c (remote_target::pass_signals): Likewise.
3560 * utils.c (n_spaces): Likewise.
3561 * cli/cli-script.c (document_command): Likewise.
3562 * i386-windows-tdep.c (core_process_module_section): Likewise.
3563 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3564
9d428aae
SM
35652020-05-20 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * symfile.c (reread_symbols): Clear objfile's section_offsets
3568 vector and section indices, re-compute them by calling
3569 sym_offsets.
3570
250106a7
TT
35712020-05-20 Tom Tromey <tromey@adacore.com>
3572
3573 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3574 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3575
9a0bacfb
TV
35762020-05-20 Tom de Vries <tdevries@suse.de>
3577
3578 PR symtab/25833
3579 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3580
7b958a48
AM
35812020-05-20 Alan Modra <amodra@gmail.com>
3582
3583 PR 25993
3584 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3585 bfd_set_filename.
3586 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3587 passed to bfd_set_filename.
3588 * symfile-mem.c (add_vsyscall_page): Likewise for string
3589 passed to symbol_file_add_from_memory.
3590 (symbol_file_add_from_memory): Make name param a const char* and
3591 don't strdup.
3592
c7e97679
AM
35932020-05-20 Alan Modra <amodra@gmail.com>
3594
3595 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3596 rather than accessing bfd->filename directly.
3597 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3598 and use bfd_section_name.
3599 * dwarf2/frame.c (decode_frame_entry): Likewise.
3600 * exec.c (exec_set_section_address): Likewise.
3601 * solib-aix.c (solib_aix_bfd_open): Likewise.
3602 * stap-probe.c (get_stap_base_address): Likewise.
3603 * symfile.c (reread_symbols): Likewise.
3604
563c591b
TT
36052020-05-19 Tom Tromey <tromey@adacore.com>
3606
3607 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3608
f408d82c
SM
36092020-05-19 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3612
98c59b52
PA
36132020-05-19 Pedro Alves <palves@redhat.com>
3614
3615 * NEWS (set exec-file-mismatch): Adjust entry.
3616 * exec.c: Include "build-id.h".
3617 (validate_exec_file): Try to match build IDs instead of filenames.
3618 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3619 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3620 and pass down 'warn_if_slow'.
3621 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3622 gdb_bfd_open_closure to pass it down.
3623 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3624
4111f652
PA
36252020-05-19 Pedro Alves <palves@redhat.com>
3626
3627 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3628 * target.c (target_fileio_open_1): Rename to target_fileio_open
3629 and make extern. Use bool.
3630 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3631 (target_fileio_read_alloc_1): Adjust.
3632 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3633 (target_fileio_open_warn_if_slow): Delete declaration.
3634
ad80db5b
PA
36352020-05-19 Pedro Alves <palves@redhat.com>
3636
3637 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3638 Adjust all callers.
3639
1d6ce4d3
YS
36402020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3641
3642 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3643 whether disp is negative.
3644
9005fbbb
SM
36452020-05-19 Simon Marchi <simon.marchi@efficios.com>
3646
3647 * symfile.h (struct symfile_segment_data)
3648 <~symfile_segment_data>: Remove.
3649 <segment_info>: Change to std::vector.
3650 * symfile.c (default_symfile_segments): Update.
3651 * elfread.c (elf_symfile_segments): Update.
3652
68b888ff
SM
36532020-05-19 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3656 <segments>: New.
3657 <segment_bases, segment_sizes>: Remove.
3658 * symfile.c (default_symfile_segments): Update.
3659 * elfread.c (elf_symfile_segments): Update.
3660 * remote.c (remote_target::get_offsets): Update.
3661 * solib-target.c (solib_target_relocate_section_addresses):
3662 Update.
3663
62982abd
SM
36642020-05-19 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * symfile.h (struct symfile_segment_data): Initialize fields.
3667 <~symfile_segment_data>: Add.
3668 (symfile_segment_data_up): New.
3669 (struct sym_fns) <sym_segments>: Return a
3670 symfile_segment_data_up.
3671 (default_symfile_segments): Return a symfile_segment_data_up.
3672 (free_symfile_segment_data): Remove.
3673 (get_symfile_segment_data): Return a symfile_segment_data_up.
3674 * symfile.c (default_symfile_segments): Likewise.
3675 (get_symfile_segment_data): Likewise.
3676 (free_symfile_segment_data): Remove.
3677 (symfile_find_segment_sections): Update.
3678 * elfread.c (elf_symfile_segments): Return a
3679 symfile_segment_data_up.
3680 * remote.c (remote_target::get_offsets): Update.
3681 * solib-target.c (solib_target_relocate_section_addresses):
3682 Update.
3683 * symfile-debug.c (debug_sym_segments): Return a
3684 symfile_segment_data_up.
3685
7f204339
RO
36862020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3687
e52a0f1b
RO
3688 PR build/25981
3689 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3690 Hardcode register numbers.
3691
7f204339
RO
3692 PR build/25981
3693 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3694 procfs_find_LDT_entry): Remove.
3695 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3696 procfs_find_LDT_entry): Remove.
3697 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3698 Remove.
3699
7f32a4d5
PA
37002020-05-17 Pedro Alves <palves@redhat.com>
3701 Andrew Burgess <andrew.burgess@embecosm.com>
3702 Keno Fischer <keno@juliacomputing.com>
3703
3704 PR gdb/25741
3705 * breakpoint.c (build_target_condition_list): Update comments.
3706 (build_target_command_list): Update comments and skip matching
3707 locations.
3708 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3709 a separate function. Simplify "set breakpoint auto-hw off"
3710 handling.
3711 (insert_breakpoints): Update comment.
3712 (tracepoint_locations_match): New parameter. For breakpoints,
3713 compare location types too, if the caller wants to.
3714 (handle_automatic_hardware_breakpoints): New functions.
3715 (bp_location_is_less_than): Also sort by location type and
3716 hardware breakpoint length.
3717 (update_global_location_list): Handle "set breakpoint auto-hw on"
3718 here.
3719 (update_breakpoint_locations): Ask breakpoint_locations_match to
3720 ignore location types.
3721
7d93a1e0
SM
37222020-05-16 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3725 type::name instead.
3726
d0e39ea2
SM
37272020-05-16 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * gdbtypes.h (struct type) <name, set_name>: New methods.
3730 (TYPE_CODE): Use type::name. Change all call sites used to set
3731 the name to use type::set_name instead.
3732
2dab0c7b
TT
37332020-05-16 Tom Tromey <tom@tromey.com>
3734
3735 * top.c (quit_force): Update.
3736 * infrun.c (handle_no_resumed): Update.
3737 * top.h (all_uis): New function.
3738 (ALL_UIS): Remove.
3739
59f7bd8d
SM
37402020-05-16 Simon Marchi <simon.marchi@efficios.com>
3741
3742 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3743
9bf058f0
PA
37442020-05-16 Pedro Alves <palves@redhat.com>
3745
3746 * ia64-linux-nat.c
3747 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3748 Declare method.
3749 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3750
8f86ae1a
SM
37512020-05-15 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3754 (sparc64_adi_info): Likewise.
3755
d6bc0792
TT
37562020-05-15 Tom Tromey <tom@tromey.com>
3757
3758 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3759 block_objfile.
3760 (lookup_objfile_from_block): Remove.
3761 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3762 (lookup_global_symbol): Use block_objfile.
3763 * symtab.h (lookup_objfile_from_block): Don't declare.
3764 * printcmd.c (clear_dangling_display_expressions): Use
3765 block_objfile.
3766 * parse.c (operator_check_standard): Use block_objfile.
3767
8c14c3a3
TT
37682020-05-15 Tom Tromey <tom@tromey.com>
3769
3770 * language.c (language_alloc_type_symbol): Set
3771 SYMBOL_SECTION.
3772 * symtab.c (initialize_objfile_symbol): Remove.
3773 (allocate_symbol): Remove.
3774 (allocate_template_symbol): Remove.
3775 * dwarf2/read.c (fixup_go_packaging): Use "new".
3776 (new_symbol): Use "new".
3777 (read_variable): Don't call initialize_objfile_symbol. Use
3778 "new".
3779 (read_func_scope): Use "new".
3780 * xcoffread.c (process_xcoff_symbol): Don't call
3781 initialize_objfile_symbol.
3782 (SYMBOL_DUP): Remove.
3783 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3784 "new".
3785 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3786 (allocate_template_symbol): Don't declare.
3787 (struct symbol): Add copy constructor. Change defaults.
3788 * jit.c (finalize_symtab): Use "new".
3789 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3790 Use "new".
3791 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3792 (common_block_end): Use "new".
3793 * mdebugread.c (parse_symbol): Use "new".
3794 (new_symbol): Likewise.
3795
5b4a1a8d
PW
37962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3797
3798 * NEWS: Mention changes to help and apropos.
3799
57b4f16e
PW
38002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3801
3802 * command.h (enum command_class): Improve comments, document
3803 that class_alias is for user-defined aliases, give the class
3804 name for each class, remove unused class_xdb.
3805 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3806 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3807 by a precise class.
3808 * infcmd.c (_initialize_infcmd): Likewise.
3809 * reverse.c (_initialize_reverse): Likewise.
3810 * stack.c (_initialize_stack): Likewise.
3811 * symfile.c (_initialize_symfile): Likewise.
3812 * tracepoint.c (_initialize_tracepoint): Likewise.
3813
7c05caf7
PW
38142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3815
3816 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3817 when their aliased command is traversed.
3818 (help_cmd): Add fput_command_names_styled call to
3819 output command name and aliases when command has an alias.
3820
3b3aaacb
PW
38212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3822
3823 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3824 * cli/cli-decode.c (help_cmd_list): Declare as static,
3825 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3826 a command together with the command.
3827 (fput_command_name_styled, fput_command_names_styled): New functions.
3828 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3829 fput_command_name_styled.
3830 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3831 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3832
7aa1b46f
PW
38332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3834
3835 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3836 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3837 * command.h (cmd_show_list): Likewise.
3838 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3839 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3840
89bcba74
PW
38412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3842
3843 * unittests/command-def-selftests.c (traverse_command_structure):
3844 Verify all commands of a list have the same prefix command and
3845 that only the top cmdlist commands have a null prefix.
3846
3f4d92eb
PW
38472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3848
3849 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3850 as prefix, not one of its aliases.
3851 (set_cmd_prefix): Remove.
3852 (do_add_cmd): Centralize the setting of the prefix of a command, when
3853 command is defined after its full chain of prefix commands.
3854 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3855 (add_setshow_cmd_full): Likewise.
3856 (update_prefix_field_of_prefixed_commands): New function.
3857 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3858 update_prefix_field_of_prefixed_commands.
3859 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3860 addresses of remote_set_cmdlist and remote_show_cmdlist given
3861 as argument, not the address of an argument.
3862 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3863 * gdb/remote.c (_initialize_remote): Likewise.
3864
0605465f
PW
38652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3866
3867 * cli/cli-cmds.c (alias_command): Check for an existing alias
3868 using lookup_cmd_composition, as valid_command_p is too strict
3869 and forbids aliases that are the prefix of an existing alias
3870 or command.
3871 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3872 command is properly recognised as a valid command.
3873
58e6ac70
PW
38742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3875
3876 * unittests/help-doc-selftests.c: Rename to
3877 unittests/command-def-selftests.c
3878 * unittests/command-def-selftests.c (help_doc_tests): Update some
3879 comments.
3880 (command_structure_tests, traverse_command_structure): New namespace
3881 and function.
3882 (command_structure_invariants_tests): New function.
3883 (_initialize_command_def_selftests) Renamed from
3884 _initialize_help_doc_selftests, register command_structure_invariants
3885 selftest.
3886
a7b9ceb8
PW
38872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3888
3889 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3890 an alias of 'show'.
3891
b2188a06
JB
38922020-05-15 Joel Brobecker <brobecker@adacore.com>
3893
3894 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3895 ada_is_fixed_point_type. Update all callers.
3896 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3897 all callers.
3898 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3899 Update all callers.
3900 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3901 print_fixed_point_type. Update all callers.
3902 * ada-valprint.c (ada_value_print_num): Replace call to
3903 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3904
a51951c2
KB
39052020-05-14 Kevin Buettner <kevinb@redhat.com>
3906
3907 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3908 processors.
3909 (cpu_supports_bts): Add CV_AMD case.
3910
29d6859f
LM
39112020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3912 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * infrun.c (stop_all_threads): Collect multiple wait events at
3915 each pass.
3916
78134374
SM
39172020-05-14 Simon Marchi <simon.marchi@efficios.com>
3918
3919 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3920 type::code instead.
3921
67607e24
SM
39222020-05-14 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * gdbtypes.h (struct type) <code, set_code>: New methods.
3925 (TYPE_CODE): Use type::code. Change all call sites used to set
3926 the code to use type::set_code instead.
3927
a05575d3
TBA
39282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3929 Tom de Vries <tdevries@suse.de>
3930 Pedro Alves <palves@redhat.com>
3931
3932 PR threads/25478
3933 * infrun.c (stop_all_threads): Do NOT ignore
3934 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3935 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3936 received.
3937 (handle_no_resumed): Remove code handling a live inferior with no
3938 threads.
3939 * remote.c (has_single_non_exited_thread): New.
3940 (remote_target::update_thread_list): Do not delete a thread if is
3941 the last thread of the process.
3942 * thread.c (thread_select): Call delete_exited_threads instead of
3943 prune_threads.
3944
6ad82919
TBA
39452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3946
3947 * infrun.c (stop_all_threads): Enable/disable thread events of all
3948 targets. Move a debug message denoting the end of the function
3949 into the SCOPED_EXIT block.
3950
d890404b
TBA
39512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3952
3953 * process-stratum-target.h: Include <set>.
3954 (all_non_exited_process_targets, switch_to_target_no_thread): New
3955 function declarations.
3956 * process-stratum-target.c (all_non_exited_process_targets)
3957 (switch_to_target_no_thread): New function implementations.
3958
293b3ebc
TBA
39592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3960
3961 * infrun.c (handle_inferior_event): Extract out a piece of code
3962 into...
3963 (mark_non_executing_threads): ...this new function.
3964
7ca9b62a
TBA
39652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3966
3967 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3968 use.
3969
fc75c28b
TBA
39702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3971
3972 * regcache.c (regcache_read_pc_protected): New function
3973 implementation that returns 0 if the PC cannot read via
3974 'regcache_read_pc'.
3975 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3976 instead of 'regcache_read_pc'.
3977 (keep_going_pass_signal): Ditto.
3978
a89febbd
TT
39792020-05-13 Tom Tromey <tromey@adacore.com>
3980
3981 * ada-lang.c (align_value): Remove.
3982 (ada_template_to_fixed_record_type_1): Use align_up.
3983
f7e23710
TBA
39842020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 * async-event.c: Update the copyright year.
3987 * async-event.h: Update the copyright year.
3988
02ff80c2
SM
39892020-05-12 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * objfiles.h (is_addr_in_objfile,
3992 shared_objfile_contains_address_p): Return bool.
3993 * objfile.c (is_addr_in_objfile,
3994 shared_objfile_contains_address_p): Return bool.
3995
4fd6c7e8
TT
39962020-05-11 Tom Tromey <tromey@adacore.com>
3997
3998 * cli/cli-cmds.c (info_command): Restore.
3999 (_initialize_cli_cmds): Use add_prefix_command for "info".
4000 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4001
5eb68a39
TT
40022020-05-11 Tom Tromey <tromey@adacore.com>
4003
4004 * ada-lang.c (ada_value_primitive_field): Now public.
4005 * ada-lang.h (ada_value_primitive_field): Declare.
4006 * ada-valprint.c (print_field_values): Use
4007 ada_value_primitive_field for wrapper fields.
4008
7666722f
TV
40092020-05-11 Tom de Vries <tdevries@suse.de>
4010
4011 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4012 MODULE_DOMAIN.
4013
3ee6bb11
TV
40142020-05-11 Tom de Vries <tdevries@suse.de>
4015
4016 PR symtab/25941
4017 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4018 with length 0, if not gdb-produced.
4019 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4020
43434996
TV
40212020-05-09 Tom de Vries <tdevries@suse.de>
4022
4023 PR gdb/25955
4024 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4025 calculation.
4026
2f78cffc
TT
40272020-05-09 Tom Tromey <tom@tromey.com>
4028
4029 * top.c (server_command): Now bool.
4030 * top.h (server_command): Now bool.
4031
4f7bc5ed
TT
40322020-05-08 Tom Tromey <tromey@adacore.com>
4033
4034 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4035 already being processed.
4036
8be4b118
TT
40372020-05-08 Tom Tromey <tom@tromey.com>
4038
4039 * printcmd.c (struct display) <next>: Remove.
4040 <display>: New constructor.
4041 <exp_string>: Now a std::string.
4042 <enabled_p>: Now a bool.
4043 (display_number): Move definition earlier.
4044 (displays): Rename from display_chain. Now a std::vector.
4045 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4046 (display_command): Update.
4047 (do_one_display, disable_display)
4048 (enable_disable_display_command, do_enable_disable_display):
4049 Update.
4050 (free_display): Remove.
4051 (clear_displays): Rewrite.
4052 (delete_display): Update.
4053 (map_display_numbers): Use function_view. Remove "data"
4054 parameter. Update.
4055 (do_delete_display): Remove.
4056 (undisplay_command): Update.
4057 (do_one_display, do_displays, disable_display)
4058 (info_display_command): Update.
4059 (do_enable_disable_display): Remove.
4060 (enable_disable_display_command)
4061 (clear_dangling_display_expressions): Update.
4062
94c93c35
TT
40632020-05-08 Tom Tromey <tom@tromey.com>
4064
4065 * symtab.c (set_symbol_cache_size)
4066 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4067 (maintenance_print_symbol_cache_statistics): Update.
4068 * symmisc.c (print_symbol_bcache_statistics)
4069 (print_objfile_statistics, maintenance_print_objfiles)
4070 (maintenance_info_symtabs, maintenance_check_symtabs)
4071 (maintenance_expand_symtabs, maintenance_info_line_tables):
4072 Update.
4073 * symfile-debug.c (set_debug_symfile): Update.
4074 * source.c (forget_cached_source_info): Update.
4075 * python/python.c (gdbpy_progspaces): Update.
4076 * psymtab.c (maintenance_info_psymtabs): Update.
4077 * probe.c (parse_probes): Update.
4078 * linespec.c (iterate_over_all_matching_symtabs)
4079 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4080 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4081 * exec.c (exec_target::close): Update.
4082 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4083 * breakpoint.c (print_one_breakpoint_location)
4084 (create_longjmp_master_breakpoint)
4085 (create_std_terminate_master_breakpoint): Update.
4086 * progspace.c (program_spaces): Now a std::vector.
4087 (maybe_new_address_space): Update.
4088 (add_program_space): Remove.
4089 (program_space::program_space): Update.
4090 (remove_program_space): Update.
4091 (number_of_program_spaces): Remove.
4092 (print_program_space, update_address_spaces): Update.
4093 * progspace.h (program_spaces): Change type.
4094 (ALL_PSPACES): Remove.
4095 (number_of_program_spaces): Don't declare.
4096 (struct program_space) <next>: Remove.
4097
a1fd1ac9
TT
40982020-05-08 Tom Tromey <tom@tromey.com>
4099
4100 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4101 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4102 (enable_break): Update.
4103 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4104 (frv_fdpic_find_canonical_descriptor): Update.
4105 (frv_fetch_objfile_link_map): Update.
4106 * progspace.c (program_space::free_all_objfiles): Update.
4107 (program_space::solibs): New method.
4108 * progspace.h (struct program_space) <solibs>: New method.
4109 * solist.h (master_so_list): Don't declare.
4110 (ALL_SO_LIBS): Remove.
4111 * solib.h (so_list_head): Remove.
4112 (update_solib_list): Update comment.
4113 * solib.c (master_so_list): Remove.
4114 (solib_used, update_solib_list, solib_add)
4115 (info_sharedlibrary_command, clear_solib)
4116 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4117
38eae084
TT
41182020-05-08 Tom Tromey <tom@tromey.com>
4119
4120 * extension.c (extension_languages): Now a std::array.
4121 (ALL_EXTENSION_LANGUAGES): Remove.
4122 (get_ext_lang_defn, get_ext_lang_of_file)
4123 (eval_ext_lang_from_control_command): Update.
4124 (finish_ext_lang_initialization)
4125 (auto_load_ext_lang_scripts_for_objfile)
4126 (ext_lang_type_printers::ext_lang_type_printers)
4127 (apply_ext_lang_type_printers)
4128 (ext_lang_type_printers::~ext_lang_type_printers)
4129 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4130 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4131 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4132 (get_matching_xmethod_workers, ext_lang_colorize)
4133 (ext_lang_before_prompt): Update.
4134 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4135
596dc4ad
TT
41362020-05-08 Tom Tromey <tom@tromey.com>
4137
4138 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4139 overload.
4140 <swap_string, m_string>: Remove.
4141 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4142 Update.
4143 * stabsread.c (define_symbol, read_type): Update.
4144 * linespec.c (find_linespec_symbols): Update.
4145 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4146 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4147 * dbxread.c (read_dbx_symtab): Update.
4148 * cp-support.h (cp_canonicalize_string_full)
4149 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4150 Return unique_xmalloc_ptr.
4151 * cp-support.c (inspect_type): Update.
4152 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4153 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4154 Likewise.
4155 * c-typeprint.c (print_name_maybe_canonical): Update.
4156 * break-catch-throw.c (check_status_exception_catchpoint):
4157 Update.
4158
bf4cb9be
TV
41592020-05-08 Tom de Vries <tdevries@suse.de>
4160
4161 * infrun.c (follow_fork): Copy current_line and current_symtab to
4162 child thread.
4163
a1b68f28
SM
41642020-05-07 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * async-event.c (struct async_signal_handler, struct
4167 async_event_handler): Reformat, remove typedef.
4168
98d48915
SM
41692020-05-07 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4172 access thistype->main_type->dyn_prop_list directly.
4173
7aa91313
SM
41742020-05-07 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4177 (remove_dyn_prop): Remove. Update all users to use
4178 type::remove_dyn_prop.
4179 * gdbtypes.c (remove_dyn_prop): Rename to...
4180 (type::remove_dyn_prop): ... this.
4181
5c54719c
SM
41822020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4183
4184 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4185 (add_dyn_prop): Remove. Update all users to use
4186 type::add_dyn_prop.
4187 * gdbtypes.c (add_dyn_prop): Rename to...
4188 (type::add_dyn_prop): ... this.
4189
24e99c6c
SM
41902020-05-07 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4193 (get_dyn_prop): Remove. Update all users to use
4194 type::dyn_prop.
4195 * gdbtypes.c (get_dyn_prop): Rename to...
4196 (type::dyn_prop): ... this.
4197
0d4bf016
SM
41982020-05-06 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4201
ac4a4f1c
SM
42022020-05-06 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4205 instruction, skip it if it's there.
4206
a3bbacc1
SM
42072020-05-05 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4210
c3236f84
SM
42112020-05-04 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4214 * gdbtypes.c (recursive_dump_type): Remove use of
4215 TYPE_INCOMPLETE.
4216
3b6acaee
TT
42172020-05-03 Tom Tromey <tom@tromey.com>
4218
4219 * breakpoint.c (catch_command, tcatch_command): Remove.
4220 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4221 add_show_prefix_cmd.
4222 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4223 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4224 Remove.
4225 (add_internal_problem_command): Use add_basic_prefix_cmd,
4226 add_show_prefix_cmd.
4227 * mips-tdep.c (set_mipsfpu_command): Remove.
4228 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4229 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4230 (_initialize_index_cache): Use add_basic_prefix_cmd.
4231 * memattr.c (dummy_cmd): Remove.
4232 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4233 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4234 (_initialize_tui_win): Use add_basic_prefix_cmd,
4235 add_show_prefix_cmd.
4236 * cli/cli-logging.c (set_logging_command): Remove.
4237 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4238 add_show_prefix_cmd.
4239 (show_logging_command): Remove.
4240 * target.c (target_command): Remove.
4241 (add_target): Use add_basic_prefix_cmd.
4242
a51119cd
HD
42432020-05-02 Hannes Domani <ssbssa@yahoo.de>
4244
4245 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4246
652fc23a 42472020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4248
652fc23a
PW
4249 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4250 info_command.
4251
117539e6
KR
42522020-04-30 Kamil Rytarowski <n54@gmx.com>
4253
4254 * nbsd-nat.c (nbsd_enable_proc_events)
4255 (nbsd_nat_target::post_startup_inferior): Add.
4256 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4257 (nbsd_nat_target::update_thread_list): Rewrite.
4258 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4259 "PTRACE_LWP_CREATE".
4260 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4261
102e38eb 42622020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4263
102e38eb
PW
4264 * stack.c (_initialize_stack): Remove duplicated creation
4265 of "frame" command and "f" alias.
4266
ee9d1e5f
HD
42672020-04-30 Hannes Domani <ssbssa@yahoo.de>
4268
4269 PR gdb/18706
4270 * gdbtypes.c (check_typedef): Calculate size of array of
4271 stubbed type.
4272
627c7fb8
HD
42732020-04-30 Hannes Domani <ssbssa@yahoo.de>
4274
4275 PR gdb/15559
4276 * i386-tdep.c (i386_push_dummy_call): Call
4277 i386_thiscall_push_dummy_call.
4278 (i386_thiscall_push_dummy_call): New function.
4279 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4280 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4281 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4282
ffc2844e
SM
42832020-04-29 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * gdbarch.sh (do_read): Add shellcheck disable directive for
4286 warning SC2162.
4287
1207375d
SM
42882020-04-29 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4291 "referenced but not assigned" warning.
4292
9fdb2916
SM
42932020-04-29 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * gdbarch.sh: Remove code that sets fallbackdefault.
4296
759cea5e
SM
42972020-04-29 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * gdbarch.sh: Use shell operators && and || instead of
4300 -a and -o.
4301
cb02ab24
SM
43022020-04-29 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * gdbarch.sh: Use $(...) instead of `...`.
4305
a6fc5ffc
SM
43062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbarch.sh: Use double quotes around variables.
4309
8d113d13
SM
43102020-04-29 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * gdbarch.sh: Use %s with printf, instead of variables in the
4313 format string.
4314
ed6acedd
TT
43152020-04-29 Tom Tromey <tromey@adacore.com>
4316
4317 PR ada/25875:
4318 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4319 type fields here.
4320 (read_enumeration_type): Call
4321 update_enumeration_type_from_children later. Update comments.
4322 (process_enumeration_scope): Don't create type fields.
4323
b68b1b58
KR
43242020-04-29 Kamil Rytarowski <n54@gmx.com>
4325
4326 * nbsd-tdep.c: Include "xml-syscall.h".
4327 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4328
f94b2e03
KR
43292020-04-29 Kamil Rytarowski <n54@gmx.com>
4330
4331 * nbsd-nat.c: Include "sys/wait.h".
4332 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4333 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4334 (nbsd_nat_target::remove_exec_catchpoint)
4335 (nbsd_nat_target::set_syscall_catchpoint): Add.
4336 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4337 (nbsd_nat_target::insert_exec_catchpoint)
4338 (nbsd_nat_target::remove_exec_catchpoint)
4339 (nbsd_nat_target::set_syscall_catchpoint): Add.
4340 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4341 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4342 `nbsd_get_syscall_number'.
4343
fc49bc72
TT
43442020-04-29 Tom Tromey <tom@tromey.com>
4345
4346 * stack.c (print_block_frame_labels): Remove.
4347
d642b692
HD
43482020-04-29 Hannes Domani <ssbssa@yahoo.de>
4349
4350 PR gdb/17320
4351 * ada-valprint.c (val_print_packed_array_elements): Move array
4352 end bracket to new line.
4353 (ada_val_print_string): Remove extra spaces before first array
4354 element.
4355 * c-valprint.c (c_value_print_array): Likewise.
4356 * m2-valprint.c (m2_print_array_contents): Likewise.
4357 (m2_value_print_inner): Likewise.
4358 * p-valprint.c (pascal_value_print_inner): Likewise.
4359 * valprint.c (generic_val_print_array): Likewise.
4360 (value_print_array_elements): Move first array element and array
4361 end bracket to new line.
4362
ea90f227
TV
43632020-04-29 Tom de Vries <tdevries@suse.de>
4364
4365 PR symtab/25889
4366 * linespec.c (find_method): Fix ix calculation.
4367
4498ef4f
KR
43682020-04-28 Kamil Rytarowski <n54@gmx.com>
4369
4370 * syscalls/update-netbsd.sh: New file.
4371 * syscalls/netbsd.xml: Regenerate.
4372 * data-directory/Makefile.in: Register `netbsd.xml' in
4373 `SYSCALLS_FILES'.
4374
a55e30b5
SM
43752020-04-28 Simon Marchi <simon.marchi@efficios.com>
4376
4377 * syscalls/update-freebsd.sh: Add double quotes.
4378
2b2fbab8
TT
43792020-04-28 Tom Tromey <tom@tromey.com>
4380
4381 * NEWS: Update.
4382 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4383 (cmdpy_init): Allow class_tui.
4384
a65189c9
TV
43852020-04-28 Mark Williams <mark@myosotissp.com>
4386
4387 PR gdb/24480
4388 * dwarf2read.c: Add missing assingments to list_in_scope when
4389 start_symtab was already called.
4390
1b95cdb7
SM
43912020-04-28 Simon Marchi <simon.marchi@efficios.com>
4392
4393 PR gdb/25881
4394 * dwarf2/read.c (offset_map_type): Use
4395 gdb:hash_enum<sect_offset> as hash function.
4396
15cd93d0
TV
43972020-04-28 Tom de Vries <tdevries@suse.de>
4398
4399 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4400 with DW_AT_signature.
4401
1eb39914
SM
44022020-04-27 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * configure.ac: Remove check for fs_base/gs_base in
4405 user_regs_struct.
4406 * configure: Re-generate.
4407 * config.in: Re-generate.
4408 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4409 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4410 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4411
991a3e2e
LM
44122020-04-27 Luis Machado <luis.machado@linaro.org>
4413
4414 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4415 problematic inline frame unwinding situation.
4416 * frame.c (frame_id_computed_p): New function.
4417 * frame.h (frame_id_computed_p): New prototype.
4418
361ba0e8
TT
44192020-04-26 Tom Tromey <tom@tromey.com>
4420
4421 * command.h (enum command_class) <class_pseudo>: Remove.
4422
bc3609fd
PW
44232020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4424
4425 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4426 and whitespace.
4427
b9771db7
KR
44282020-04-25 Kamil Rytarowski <n54@gmx.com>
4429
ec16513e
SM
4430 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4431 `PT_GET_PROCESS_STATE' block.
b9771db7 4432
7151c1af
TT
44332020-04-24 Tom Tromey <tom@tromey.com>
4434
4435 * symtab.h (symbol_get_demangled_name): Don't declare.
4436 * symtab.c (symbol_get_demangled_name): Remove.
4437 (general_symbol_info::natural_name)
4438 (general_symbol_info::demangled_name): Update.
4439
906bb4c5
TT
44402020-04-24 Tom Tromey <tom@tromey.com>
4441
4442 PR rust/25025:
4443 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4444
bcfe6157
TT
44452020-04-24 Tom Tromey <tom@tromey.com>
4446
4447 PR symtab/12707:
4448 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4449 exists.
4450 (new_symbol): Likewise.
4451 * compile/compile-object-load.c (get_out_value_type): Use
4452 symbol_matches_search_name.
4453
f049a313
TT
44542020-04-24 Tom Tromey <tom@tromey.com>
4455
4456 * dwarf2/read.c (add_partial_symbol): Do not call
4457 compute_and_set_names.
4458
76e288d1
TT
44592020-04-24 Tom Tromey <tom@tromey.com>
4460
4461 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4462 overload.
4463
2467f4f6
TT
44642020-04-24 Tom Tromey <tom@tromey.com>
4465
4466 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4467 (add_psymbol_to_list): New overload. Make old overload call new
4468 one.
4469 * psympriv.h (add_psymbol_to_list): New overload.
4470
e61108c9
TT
44712020-04-24 Tom Tromey <tom@tromey.com>
4472
4473 * dwarf2/read.c (partial_die_info::read) <case
4474 DW_AT_linkage_name>: Use value_as_string.
4475 (dwarf2_string_attr): Use value_as_string.
4476 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4477 method.
4478 * dwarf2/attribute.c (attribute::value_as_string): New method.
4479
8c87a452
TT
44802020-04-24 Tom Tromey <tom@tromey.com>
4481
4482 * symtab.c (general_symbol_info::natural_name)
4483 (general_symbol_info::demangled_name): Check for language_rust.
4484
787de330
TT
44852020-04-24 Tom Tromey <tom@tromey.com>
4486
4487 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4488 (dwarf2_physname): ... from here.
4489 (partial_die_info::read): Add Rust "{" hack.
4490
ff985671
TT
44912020-04-24 Tom Tromey <tom@tromey.com>
4492
4493 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4494 method.
4495 (symbol_set_demangled_name): Don't declare.
4496 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4497 symbol_set_demangled_name.
4498 (general_symbol_info::set_language)
4499 (general_symbol_info::compute_and_set_names): Update.
4500 * minsyms.c (minimal_symbol_reader::install): Update.
4501 * dwarf2/read.c (new_symbol): Update.
4502
1acda803
TT
45032020-04-24 Tom Tromey <tromey@adacore.com>
4504
4505 PR python/23662:
4506 * python/py-type.c (convert_field): Handle
4507 FIELD_LOC_KIND_DWARF_BLOCK.
4508 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4509 (typy_get_dynamic): Nw function.
4510 (type_object_getset): Add "dynamic".
4511 * NEWS: Add entry.
4512
d656f129
TT
45132020-04-24 Tom Tromey <tromey@adacore.com>
4514
4515 * ada-typeprint.c (print_choices, print_variant_part)
4516 (print_record_field_types_dynamic): New functions.
4517 (print_record_field_types): Use print_record_field_types_dynamic.
4518
7d79de9a
TT
45192020-04-24 Tom Tromey <tromey@adacore.com>
4520
4521 * dwarf2/read.c (handle_data_member_location): New overload.
4522 (dwarf2_add_field): Use it.
4523 (decode_locdesc): Add "computed" parameter. Update comment.
4524 * gdbtypes.c (is_dynamic_type_internal): Also look for
4525 FIELD_LOC_KIND_DWARF_BLOCK.
4526 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4527 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4528 virtual base classes.
4529 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4530 FIELD_LOC_KIND_DWARF_BLOCK.
4531
f8e89861
TT
45322020-04-24 Tom Tromey <tromey@adacore.com>
4533
4534 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4535 * gdbtypes.c (is_dynamic_type_internal): Check
4536 TYPE_HAS_DYNAMIC_LENGTH.
4537 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4538 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4539 New macros.
4540 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4541 constant.
4542
9c6a1327
TT
45432020-04-24 Tom Tromey <tromey@adacore.com>
4544
4545 * dwarf2/read.c (struct variant_field): Rewrite.
4546 (struct variant_part_builder): New.
4547 (struct nextfield): Remove "variant" field. Add "offset".
4548 (struct field_info): Add "current_variant_part" and
4549 "variant_parts".
4550 (alloc_discriminant_info): Remove.
4551 (alloc_rust_variant): New function.
4552 (quirk_rust_enum): Update.
4553 (dwarf2_add_field): Set "offset" member. Don't handle
4554 DW_TAG_variant_part.
4555 (offset_map_type): New typedef.
4556 (convert_variant_range, create_one_variant)
4557 (create_one_variant_part, create_variant_parts)
4558 (add_variant_property): New functions.
4559 (dwarf2_attach_fields_to_type): Call add_variant_property.
4560 (read_structure_type): Don't handle DW_TAG_variant_part.
4561 (handle_variant_part, handle_variant): New functions.
4562 (handle_struct_member_die): Use them.
4563 (process_structure_scope): Don't handle variant parts.
4564 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4565 (struct discriminant_info): Remove.
4566 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4567 (struct main_type) <flag_discriminated_union>: Remove.
4568 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4569 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4570 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4571 Update.
4572 * valops.c (value_union_variant): Remove.
4573 * value.h (value_union_variant): Don't declare.
4574
b249d2c2
TT
45752020-04-24 Tom Tromey <tromey@adacore.com>
4576
4577 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4578 (ada_value_primitive_packed_val): Update.
4579 * ada-valprint.c (ada_value_print_1): Update.
4580 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4581 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4582 just an address. Use evaluate_for_locexpr_baton.
4583 (dwarf2_evaluate_property): Update.
4584 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4585 array_view.
4586 * findvar.c (default_read_var_value): Update.
4587 * gdbtypes.c (compute_variant_fields_inner)
4588 (resolve_dynamic_type_internal): Update.
4589 (resolve_dynamic_type): Change type of valaddr parameter.
4590 * gdbtypes.h (resolve_dynamic_type): Update.
4591 * valarith.c (value_subscripted_rvalue): Update.
4592 * value.c (value_from_contents_and_address): Update.
4593
61122aa9
TT
45942020-04-24 Tom Tromey <tromey@adacore.com>
4595
4596 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4597 "push_initial_value" parameter.
4598 (dwarf2_evaluate_property): Likewise.
4599 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4600
ef83a141
TT
46012020-04-24 Tom Tromey <tromey@adacore.com>
4602
4603 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4604 (variant::matches, compute_variant_fields_recurse)
4605 (compute_variant_fields_inner, compute_variant_fields): New
4606 functions.
4607 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4608 Use resolved_type after type is made.
4609 (operator==): Add new cases.
4610 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4611 (struct discriminant_range, struct variant, struct variant_part):
4612 New.
4613 (union dynamic_prop_data) <variant_parts, original_type>: New
4614 members.
4615 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4616 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4617 constants.
4618 * value.c (unpack_bits_as_long): Now public.
4619 * value.h (unpack_bits_as_long): Declare.
4620
675127ec
TT
46212020-04-24 Tom Tromey <tromey@adacore.com>
4622
4623 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4624 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4625
9852ceef
HD
46262020-04-24 Hannes Domani <ssbssa@yahoo.de>
4627
4628 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4629
7632c6ce
KR
46302020-04-24 Kamil Rytarowski <n54@gmx.com>
4631
4632 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4633 (remove_fork_catchpoint, post_startup_inferior)
4634 (post_attach): Move...
4635 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4636 (remove_fork_catchpoint, post_startup_inferior)
4637 (post_attach): ...here.
4638 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4639 (remove_fork_catchpoint, post_startup_inferior)
4640 (post_attach): Move...
4641 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4642 (remove_fork_catchpoint, post_startup_inferior)
4643 (post_attach): ...here.
4644
7be2bb4f
TT
46452020-04-24 Tom Tromey <tromey@adacore.com>
4646
4647 * nat/windows-nat.h (struct windows_thread_info)
4648 <pc_adjusted>: New member.
4649 * windows-nat.c (windows_fetch_one_register): Check
4650 pc_adjusted.
4651 (windows_nat_target::get_windows_debug_event)
4652 (windows_nat_target::wait): Set pc_adjusted.
4653
f80cb3b4
TV
46542020-04-24 Tom de Vries <tdevries@suse.de>
4655
4656 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4657 Run gdb-add-index inside temp dir.
4658
29514b87
TT
46592020-04-23 Tom Tromey <tromey@adacore.com>
4660
4661 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4662 in loop.
4663
5939967b
LM
46642020-04-23 Luis Machado <luis.machado@linaro.org>
4665
4666 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4667 get_frame_register instead of gdbarch_unwind_pc.
4668
70bc38f5
TV
46692020-04-23 Tom de Vries <tdevries@suse.de>
4670
4671 * symtab.c (lookup_global_symbol): Prefer def over decl.
4672
de82891c
TV
46732020-04-23 Tom de Vries <tdevries@suse.de>
4674
4675 PR symtab/25807
4676 * block.c (best_symbol, better_symbol): Promote to external.
4677 * block.h (best_symbol, better_symbol): Declare.
4678 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4679 decl.
4680
ecc6c606
TT
46812020-04-23 Tom Tromey <tromey@adacore.com>
4682
4683 PR ada/25837:
4684 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4685 "const char *", not a "const std::string &".
4686 <name_and_matcher::operator==>: Update.
4687 * unittests/lookup_name_info-selftests.c: Change type of
4688 "result".
4689
740480b8
TT
46902020-04-23 Tom Tromey <tom@tromey.com>
4691
4692 * inferior.h (iterate_over_inferiors): Don't declare.
4693 * inferior.c (iterate_over_inferiors): Remove.
4694 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4695 Remove.
4696 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4697 use iterate_over_inferiors.
4698 (darwin_resume_inferior_it)
4699 (struct resume_inferior_threads_param)
4700 (darwin_resume_inferior_threads_it): Remove.
4701 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4702
ae3ab1f0
TV
47032020-04-23 Tom de Vries <tdevries@suse.de>
4704
4705 * blockframe.c (find_pc_partial_function): Use
4706 find_pc_sect_compunit_symtab rather than
4707 objfile->sf->qf->find_pc_sect_compunit_symtab.
4708
317d2668
TV
47092020-04-22 Tom de Vries <tdevries@suse.de>
4710
4711 PR symtab/25764
4712 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4713 in psymtabs.
4714
eea9e357
TV
47152020-04-22 Tom de Vries <tdevries@suse.de>
4716
4717 PR symtab/25801
4718 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4719 symtabs.
4720
3d5afab3
TV
47212020-04-22 Tom de Vries <tdevries@suse.de>
4722
4723 PR symtab/25700
4724 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4725 CU if already created.
4726
d43b7a2d
TBA
47272020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4728
4729 * infrun.c (displaced_step_fixup): Switch to the event_thread
4730 before calling displaced_step_restore, not after.
4731
d89edf9b
MM
47322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4733
4734 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4735 its inferior is not recorded by us.
4736 (record_btrace_target_open): Replace call to
4737 all_non_exited_threads () with call to current_inferior
4738 ()->non_exited_threads ().
4739 (record_btrace_target::stop_recording): Likewise.
4740 (record_btrace_target::close): Likewise.
4741 (record_btrace_target::wait): Likewise.
4742 (record_btrace_target::record_stop_replaying): Likewise.
4743
5897fd49
MM
47442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4745
4746 * btrace.c (btrace_enable): Throw an error on double enables and
4747 when enabling recording fails.
4748 (btrace_disable): Throw an error if the thread is not recorded.
4749
1a476b6d
MM
47502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4751
4752 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4753 request if we do not have a thread_info.
4754
4778a5f8
TV
47552020-04-21 Tom de Vries <tdevries@suse.de>
4756
4757 PR gdb/25471
4758 * thread.c
4759 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4760 exception in get_frame_id.
4761
0fa7617d
TT
47622020-04-20 Tom Tromey <tromey@adacore.com>
4763
4764 * python/python.c (struct gdbpy_event): Mark move constructor as
4765 noexcept.
4766 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4767 constructor as noexcept.
4768 * completer.h (struct completion_result): Mark move constructor as
4769 noexcept.
4770 * completer.c (completion_result::completion_result): Use
4771 initialization style. Don't call reset_match_list.
4772
ad23bda0
MS
47732020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4774
4775 * MAINTAINERS (Write After Approval): Add myself.
4776
45e1f031
TT
47772020-04-18 Tom Tromey <tom@tromey.com>
4778
4779 * windows-tdep.c (init_w32_command_list)
4780 (w32_prefix_command_valid): Restore.
4781 (_initialize_windows_tdep): Call init_w32_command_list.
4782
08feed99
TT
47832020-04-18 Tom Tromey <tom@tromey.com>
4784
4785 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4786 * value.c (value_fn_field): Update.
4787 * valops.c (find_function_in_inferior)
4788 (value_allocate_space_in_inferior): Update.
4789 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4790 Update.
4791 * tui/tui-source.c (tui_source_window::set_contents): Update.
4792 * symtab.c (lookup_global_or_static_symbol)
4793 (find_function_start_sal_1, skip_prologue_sal)
4794 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4795 * symmisc.c (dump_msymbols, dump_symtab_1)
4796 (maintenance_print_one_line_table): Update.
4797 * symfile.c (init_entry_point_info, section_is_mapped)
4798 (list_overlays_command, simple_read_overlay_table)
4799 (simple_overlay_update_1): Update.
4800 * stap-probe.c (handle_stap_probe): Update.
4801 * stabsread.c (dbx_init_float_type, define_symbol)
4802 (read_one_struct_field, read_enum_type, read_range_type): Update.
4803 * source.c (info_line_command): Update.
4804 * python/python.c (gdbpy_source_objfile_script)
4805 (gdbpy_execute_objfile_script): Update.
4806 * python/py-type.c (save_objfile_types): Update.
4807 * python/py-objfile.c (py_free_objfile): Update.
4808 * python/py-inferior.c (python_new_objfile): Update.
4809 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4810 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4811 (maintenance_check_psymtabs): Update.
4812 * printcmd.c (info_address_command): Update.
4813 * objfiles.h (struct objfile) <arch>: New method, from
4814 get_objfile_arch.
4815 (get_objfile_arch): Don't declare.
4816 * objfiles.c (get_objfile_arch): Remove.
4817 (filter_overlapping_sections): Update.
4818 * minsyms.c (msymbol_is_function): Update.
4819 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4820 (output_nondebug_symbol): Update.
4821 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4822 (mdebug_expand_psymtab): Update.
4823 * machoread.c (macho_add_oso_symfile): Update.
4824 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4825 Update.
4826 * linux-fork.c (checkpoint_command): Update.
4827 * linespec.c (convert_linespec_to_sals): Update.
4828 * jit.c (finalize_symtab): Update.
4829 * infrun.c (insert_exception_resume_from_probe): Update.
4830 * ia64-tdep.c (ia64_find_unwind_table): Update.
4831 * hppa-tdep.c (internalize_unwinds): Update.
4832 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4833 Update.
4834 * gcore.c (call_target_sbrk): Update.
4835 * elfread.c (record_minimal_symbol, elf_symtab_read)
4836 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4837 (elf_gnu_ifunc_resolve_by_got): Update.
4838 * dwarf2/read.c (create_addrmap_from_index)
4839 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4840 (read_debug_names_from_section)
4841 (process_psymtab_comp_unit_reader, add_partial_symbol)
4842 (add_partial_subprogram, process_full_comp_unit)
4843 (read_file_scope, read_func_scope, read_lexical_block_scope)
4844 (read_call_site_scope, dwarf2_ranges_read)
4845 (dwarf2_record_block_ranges, dwarf2_add_field)
4846 (mark_common_block_symbol_computed, read_tag_pointer_type)
4847 (read_tag_string_type, dwarf2_init_float_type)
4848 (dwarf2_init_complex_target_type, read_base_type)
4849 (partial_die_info::read, partial_die_info::read)
4850 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4851 (dwarf2_fetch_die_loc_sect_off): Update.
4852 * dwarf2/loc.c (dwarf2_find_location_expression)
4853 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4854 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4855 (dwarf2_loc_desc_get_symbol_read_needs)
4856 (locexpr_describe_location_piece, locexpr_describe_location_1)
4857 (loclist_describe_location): Update.
4858 * dwarf2/index-write.c (write_debug_names): Update.
4859 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4860 * dtrace-probe.c (dtrace_process_dof): Update.
4861 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4862 (process_one_symbol): Update.
4863 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4864 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4865 (coff_read_enum_type): Update.
4866 * cli/cli-cmds.c (edit_command, list_command): Update.
4867 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4868 * breakpoint.c (create_overlay_event_breakpoint)
4869 (create_longjmp_master_breakpoint)
4870 (create_std_terminate_master_breakpoint)
4871 (create_exception_master_breakpoint, get_sal_arch): Update.
4872 * block.c (block_gdbarch): Update.
4873 * annotate.c (annotate_source_line): Update.
4874
0743fc83
TT
48752020-04-17 Tom Tromey <tromey@adacore.com>
4876
4877 * auto-load.c (show_auto_load_cmd): Remove.
4878 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4879 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4880 (maintenance_print_arc_command): Remove.
4881 * tui/tui-win.c (tui_command): Remove.
4882 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4883 * tui/tui-layout.c (tui_layout_command): Remove.
4884 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4885 * python/python.c (user_set_python, user_show_python): Remove.
4886 (_initialize_python): Use add_basic_prefix_cmd,
4887 add_show_prefix_cmd.
4888 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4889 (install_gdb_commands): Use add_basic_prefix_cmd,
4890 add_show_prefix_cmd.
4891 (info_guile_command): Remove.
4892 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4893 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4894 add_show_prefix_cmd.
4895 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4896 Remove do_set and do_show parameters.
4897 * cli/cli-style.c (set_style, show_style): Remove.
4898 (_initialize_cli_style): Use add_basic_prefix_cmd,
4899 add_show_prefix_cmd.
4900 (cli_style_option::add_setshow_commands): Remove do_set and
4901 do_show parameters.
4902 (cli_style_option::add_setshow_commands): Use
4903 add_basic_prefix_cmd, add_show_prefix_cmd.
4904 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4905 (set_style_name): Remove.
4906 * cli/cli-dump.c (dump_command, append_command): Remove.
4907 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4908 (tekhex_dump_command, binary_dump_command)
4909 (binary_append_command): Remove.
4910 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4911 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4912 (init_w32_command_list): Remove; move into ...
4913 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4914 * valprint.c (set_print, show_print, set_print_raw)
4915 (show_print_raw): Remove.
4916 (_initialize_valprint): Use add_basic_prefix_cmd,
4917 add_show_prefix_cmd.
4918 * typeprint.c (set_print_type, show_print_type): Remove.
4919 (_initialize_typeprint): Use add_basic_prefix_cmd,
4920 add_show_prefix_cmd.
4921 * record.c (set_record_command, show_record_command): Remove.
4922 (_initialize_record): Use add_basic_prefix_cmd,
4923 add_show_prefix_cmd.
4924 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4925 add_show_prefix_cmd.
4926 (info_command, show_command, set_debug, show_debug): Remove.
4927 * top.h (set_history, show_history): Don't declare.
4928 * top.c (set_history, show_history): Remove.
4929 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4930 (unset_tdesc_cmd): Remove.
4931 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4932 add_show_prefix_cmd.
4933 * symtab.c (info_module_command): Remove.
4934 (_initialize_symtab): Use add_basic_prefix_cmd.
4935 * symfile.c (overlay_command): Remove.
4936 (_initialize_symfile): Use add_basic_prefix_cmd.
4937 * sparc64-tdep.c (info_adi_command): Remove.
4938 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4939 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4940 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4941 add_show_prefix_cmd.
4942 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4943 (_initialize_serial): Use add_basic_prefix_cmd,
4944 add_show_prefix_cmd.
4945 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4946 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4947 add_show_prefix_cmd.
4948 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4949 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4950 add_show_prefix_cmd.
4951 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4952 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4953 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4954 add_show_prefix_cmd.
4955 * remote.c (remote_command, set_remote_cmd): Remove.
4956 (_initialize_remote): Use add_basic_prefix_cmd.
4957 * record-full.c (set_record_full_command)
4958 (show_record_full_command): Remove.
4959 (_initialize_record_full): Use add_basic_prefix_cmd,
4960 add_show_prefix_cmd.
4961 * record-btrace.c (cmd_set_record_btrace)
4962 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4963 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4964 (cmd_show_record_btrace_pt): Remove.
4965 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4966 add_show_prefix_cmd.
4967 * ravenscar-thread.c (set_ravenscar_command)
4968 (show_ravenscar_command): Remove.
4969 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4970 add_show_prefix_cmd.
4971 * mips-tdep.c (show_mips_command, set_mips_command)
4972 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4973 add_show_prefix_cmd.
4974 * maint.c (maintenance_command, maintenance_info_command)
4975 (maintenance_check_command, maintenance_print_command)
4976 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4977 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4978 add_show_prefix_cmd.
4979 (show_per_command_cmd): Remove.
4980 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4981 Remove.
4982 (maintenance_show_test_settings_cmd): Remove.
4983 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4984 add_show_prefix_cmd.
4985 * maint-test-options.c (maintenance_test_options_command):
4986 Remove.
4987 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4988 * macrocmd.c (macro_command): Remove
4989 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4990 * language.c (set_check, show_check): Remove.
4991 (_initialize_language): Use add_basic_prefix_cmd,
4992 add_show_prefix_cmd.
4993 * infcmd.c (unset_command): Remove.
4994 (_initialize_infcmd): Use add_basic_prefix_cmd.
4995 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4996 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4997 add_show_prefix_cmd.
4998 * go32-nat.c (go32_info_dos_command): Remove.
4999 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5000 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5001 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5002 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5003 (_initialize_frame): Use add_basic_prefix_cmd,
5004 add_show_prefix_cmd.
5005 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5006 (_initialize_dcache): Use add_basic_prefix_cmd,
5007 add_show_prefix_cmd.
5008 * cp-support.c (maint_cplus_command): Remove.
5009 (_initialize_cp_support): Use add_basic_prefix_cmd.
5010 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5011 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5012 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5013 add_basic_prefix_cmd, add_show_prefix_cmd.
5014 * breakpoint.c (save_command): Remove.
5015 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5016 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5017 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5018 add_show_prefix_cmd.
5019 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5020 (set_ada_command, show_ada_command): Remove.
5021 (_initialize_ada_language): Use add_basic_prefix_cmd,
5022 add_show_prefix_cmd.
5023 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5024
3557f442
KR
50252020-04-16 Kamil Rytarowski <n54@gmx.com>
5026
5027 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5028 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5029
16197208
SM
50302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5031
5032 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5033 warning messages.
5034
00ac85d3
SM
50352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5036
5037 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5038 import table is not at beginning of .idata section.
5039
381ce63f
PA
50402020-04-16 Pedro Alves <palves@redhat.com>
5041
5042 * inferior.c (delete_inferior): Use delete operator directly
5043 instead of delete_program_space.
5044 * progspace.c (add_program_space): New, factored out from
5045 program_space::program_space.
5046 (remove_program_space): New, factored out from
5047 delete_program_space.
5048 (program_space::program_space): Remove intro comment. Rewrite.
5049 (program_space::~program_space): Remove intro comment. Call
5050 remove_program_space.
5051 (delete_program_space): Delete.
5052 * progspace.h (program_space::program_space): Make explicit. Move
5053 intro comment here, adjusted.
5054 (program_space::~program_space): Move intro comment here,
5055 adjusted.
5056 (delete_program_space): Remove.
5057
a010605f
TT
50582020-04-16 Tom Tromey <tromey@adacore.com>
5059
5060 * windows-nat.c (windows_nat::handle_access_violation): New
5061 function.
5062 * nat/windows-nat.h (handle_access_violation): Declare.
5063 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5064 windows-nat.c. Call handle_access_violation.
5065
efba5c23
TV
50662020-04-16 Tom de Vries <tdevries@suse.de>
5067
5068 PR symtab/25791
5069 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5070 CUs without psymtab.
5071
97ed802d
KB
50722020-04-16 Kevin Buettner <kevinb@redhat.com>
5073
5074 * python/python.c (do_start_initialization): Don't call
5075 PyEval_InitThreads for Python 3.9 and beyond.
5076
c7d64809
KR
50772020-04-15 Kamil Rytarowski <n54@gmx.com>
5078
5079 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5080 thread functions.
5081 (obsd_nat_target::wait): Likewise.
5082
ce127a96
TT
50832020-04-15 Tom Tromey <tromey@adacore.com>
5084
5085 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5086 (DEBUG_EXCEPT): Use debug_printf.
5087
99f1bc6a
AB
50882020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 * completer.c (class completion_tracker::completion_hash_entry)
5091 <hash_name>: New member function.
5092 (completion_tracker::discard_completions): New callback to hash a
5093 completion_hash_entry, pass this to htab_create_alloc.
5094
a0e9b532
JT
50952016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5096
5097 * windows-nat.c (windows_make_so): Warn rather than stopping with
5098 an error if realpath() fails.
5099
06ca5dd4
KR
51002020-04-14 Kamil Rytarowski <n54@gmx.com>
5101
5102 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5103 (nbsd_nat_target::info_proc): Add do_status.
5104
194d088f
TV
51052020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5106 Tom de Vries <tdevries@suse.de>
5107
5108 PR symtab/25718
5109 * psympriv.h (struct partial_symtab::read_symtab)
5110 (struct partial_symtab::expand_psymtab)
5111 (struct partial_symtab::read_dependencies): Update comments.
5112 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5113 read_symtab for includer.
5114 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5115 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5116 (struct dwarf2_include_psymtab::m_readin): Remove.
5117 (struct dwarf2_include_psymtab::includer): New member function.
5118 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5119
c1a66c06
TV
51202020-04-14 Tom de Vries <tdevries@suse.de>
5121
5122 PR symtab/25720
5123 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5124 with NULL symbol_matcher and lookup_name.
5125 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5126 and lookup_name.
5127 * dwarf2/read.c (dw2_expand_symtabs_matching)
5128 (dw2_debug_names_expand_symtabs_matching): Same.
5129 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5130 Make lookup_name a pointer. Update comment.
5131 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5132 lookup_name being a pointer.
5133 * symfile.c (expand_symtabs_matching): Same.
5134 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5135 * linespec.c (iterate_over_all_matching_symtabs): Same.
5136
400b5eca
TT
51372020-04-13 Tom Tromey <tom@tromey.com>
5138
5139 * run-on-main-thread.c: Update include.
5140 * unittests/main-thread-selftests.c: Update include.
5141 * tui/tui-win.c: Update include.
5142 * tui/tui-io.c: Update include.
5143 * tui/tui-interp.c: Update include.
5144 * tui/tui-hooks.c: Update include.
5145 * top.h: Update include.
5146 * top.c: Update include.
5147 * ser-base.c: Update include.
5148 * remote.c: Update include.
5149 * remote-notif.c: Update include.
5150 * remote-fileio.c: Update include.
5151 * record-full.c: Update include.
5152 * record-btrace.c: Update include.
5153 * python/python.c: Update include.
5154 * posix-hdep.c: Update include.
5155 * mingw-hdep.c: Update include.
5156 * mi/mi-main.c: Update include.
5157 * mi/mi-interp.c: Update include.
5158 * main.c: Update include.
5159 * linux-nat.c: Update include.
5160 * interps.c: Update include.
5161 * infrun.c: Update include.
5162 * inf-loop.c: Update include.
5163 * event-top.c: Update include.
5164 * event-loop.c: Move to ../gdbsupport/.
5165 * event-loop.h: Move to ../gdbsupport/.
5166 * async-event.h: Update include.
5167 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5168
93b54c8e
TT
51692020-04-13 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui-win.c: Include async-event.h.
5172 * remote.c: Include async-event.h.
5173 * remote-notif.c: Include async-event.h.
5174 * record-full.c: Include async-event.h.
5175 * record-btrace.c: Include async-event.h.
5176 * infrun.c: Include async-event.h.
5177 * event-top.c: Include async-event.h.
5178 * event-loop.h: Move some declarations to async-event.h.
5179 * event-loop.c: Don't include ser-event.h or top.h. Move some
5180 code to async-event.c.
5181 * async-event.h: New file.
5182 * async-event.c: New file.
5183 * Makefile.in (COMMON_SFILES): Add async-event.c.
5184 (HFILES_NO_SRCDIR): Add async-event.h.
5185
c1cd3163
TT
51862020-04-13 Tom Tromey <tom@tromey.com>
5187
5188 * utils.c (flush_streams): New function.
5189 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5190
29f2bf4f
TT
51912020-04-13 Tom Tromey <tom@tromey.com>
5192
5193 * event-loop.c (handle_file_event): Use warning, not
5194 printf_unfiltered.
5195
98029d02
TT
51962020-04-13 Tom Tromey <tom@tromey.com>
5197
5198 * event-loop.c: Include <chrono>.
5199
06cc9596
TT
52002020-04-13 Tom Tromey <tom@tromey.com>
5201
5202 * gdb_select.h: Move to ../gdbsupport/.
5203 * event-loop.c: Update include path.
5204 * top.c: Update include path.
5205 * ser-base.c: Update include path.
5206 * ui-file.c: Update include path.
5207 * ser-tcp.c: Update include path.
5208 * guile/scm-ports.c: Update include path.
5209 * posix-hdep.c: Update include path.
5210 * ser-unix.c: Update include path.
5211 * gdb_usleep.c: Update include path.
5212 * mingw-hdep.c: Update include path.
5213 * inflow.c: Update include path.
5214 * infrun.c: Update include path.
5215 * event-top.c: Update include path.
5216
8ae8e197
TT
52172020-04-13 Tom Tromey <tom@tromey.com>
5218
5219 * configure: Rebuild.
5220 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5221
58cf28e8
TT
52222020-04-13 Tom Tromey <tom@tromey.com>
5223
5224 * event-loop.h (start_event_loop): Don't declare.
5225 * event-loop.c (start_event_loop): Move...
5226 * main.c (start_event_loop): ...here. Now static.
5227
b7f999ae
SDJ
52282020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5229
5230 * MAINTAINERS: Update my email address.
5231
1085dfd4
KR
52322020-04-12 Kamil Rytarowski <n54@gmx.com>
5233
5234 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5235 IP_ALL.
5236
49d1d1f5
KR
52372020-04-12 Kamil Rytarowski <n54@gmx.com>
5238
5239 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5240 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5241
b4848d2a
KR
52422020-04-12 Kamil Rytarowski <n54@gmx.com>
5243
5244 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5245 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5246
51c133d5
KR
52472020-04-12 Kamil Rytarowski <n54@gmx.com>
5248
5249 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5250
54b8cbd0
KR
52512020-04-11 Kamil Rytarowski <n54@gmx.com>
5252
5253 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5254 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5255 (nbsd_nat_target::info_proc): New functions.
5256 * nbsd-nat.c (kinfo_get_vmmap): New function.
5257 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5258 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5259 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5260 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5261 functions.
5262 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5263 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5264 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5265 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5266 (KINFO_VME_FLAG_GROWS_DOWN): New.
5267
cf83625d
AS
52682020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5269
5270 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5271 bit shift.
5272
0c4311ab
TT
52732020-04-10 Tom Tromey <tromey@adacore.com>
5274
5275 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5276
3e65b3e9
TT
52772020-04-10 Tom Tromey <tromey@adacore.com>
5278
5279 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5280 separate debug files.
5281
13302e95
HD
52822020-04-10 Hannes Domani <ssbssa@yahoo.de>
5283
5284 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5285 Move to...
5286 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5287 ... here.
5288 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5289 Check for STATUS_WX86_BREAKPOINT.
5290 (windows_nat_target::wait): Same.
5291
bdfc1e8a
TV
52922020-04-10 Tom de Vries <tdevries@suse.de>
5293
5294 PR cli/25808
5295 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5296
f4460aec
SM
52972020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5298
5299 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5300 (Write After Approval): Remove Tom de Vries.
5301
a25198bb
BE
53022020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5303
5304 revert partially:
5305 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5306
aac66a4c
SM
5307 * buildsym.c (record_line): Fix undefined behavior and preserve
5308 lines at eof.
a25198bb 5309
206c98a6
KR
53102020-04-09 Kamil Rytarowski <n54@gmx.com>
5311
5312 * auxv.h (svr4_auxv_parse): New.
5313 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5314 and generic_auxv_parse.
5315 (svr4_auxv_parse): Add.
5316 * obsd-tdep.c: Include "auxv.h".
5317 (obsd_auxv_parse): Remove.
5318 (obsd_init_abi): Remove comment.
5319 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5320 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5321 * nbsd-tdep.c: Include "auxv.h".
5322 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5323
71fbdbaf
TT
53242020-04-08 Tom Tromey <tromey@adacore.com>
5325
5326 * nat/windows-nat.h (last_wait_event): Don't declare.
5327 (wait_for_debug_event): Update comment.
5328 * nat/windows-nat.c (last_wait_event): Now static.
5329
2c1d95e8
TT
53302020-04-08 Tom Tromey <tromey@adacore.com>
5331
5332 * windows-nat.c (wait_for_debug_event): Move to
5333 nat/windows-nat.c.
5334 * nat/windows-nat.h (wait_for_debug_event): Declare.
5335 * nat/windows-nat.c (wait_for_debug_event): Move from
5336 windows-nat.c. No longer static.
5337
d2977bc4
TT
53382020-04-08 Tom Tromey <tromey@adacore.com>
5339
5340 * windows-nat.c (get_windows_debug_event): Use
5341 fetch_pending_stop.
5342 * nat/windows-nat.h (fetch_pending_stop): Declare.
5343 * nat/windows-nat.c (fetch_pending_stop): New function.
5344
e758e19c
TT
53452020-04-08 Tom Tromey <tromey@adacore.com>
5346
5347 * windows-nat.c (windows_continue): Use matching_pending_stop and
5348 continue_last_debug_event.
5349 * nat/windows-nat.h (matching_pending_stop)
5350 (continue_last_debug_event): Declare.
5351 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5352 (matching_pending_stop, continue_last_debug_event): New
5353 functions.
5354
8d30e395
TT
53552020-04-08 Tom Tromey <tromey@adacore.com>
5356
5357 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5358 (handle_exception_result): Move to nat/windows-nat.h.
5359 (DEBUG_EXCEPTION_SIMPLE): Remove.
5360 (windows_nat::handle_ms_vc_exception): New function.
5361 (handle_exception): Move to nat/windows-nat.c.
5362 (get_windows_debug_event): Update.
5363 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5364 nat/windows-nat.c.
5365 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5366 (handle_exception_result): Move from windows-nat.c.
5367 (handle_exception): Declare.
5368 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5369 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5370 windows-nat.c.
5371
29de418d
TT
53722020-04-08 Tom Tromey <tromey@adacore.com>
5373
5374 * windows-nat.c (exception_count, event_count): Remove.
5375 (handle_exception, get_windows_debug_event)
5376 (do_initial_windows_stuff): Update.
5377
a816ba18
TT
53782020-04-08 Tom Tromey <tromey@adacore.com>
5379
5380 * windows-nat.c (windows_nat::handle_load_dll)
5381 (windows_nat::handle_unload_dll): Rename. No longer static.
5382 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5383 Declare.
5384
a00caa12
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * complaints.h (stop_whining): Declare at top-level.
5388 (complaint): Don't declare stop_whining.
5389
d41b524f
TT
53902020-04-08 Tom Tromey <tromey@adacore.com>
5391
5392 * windows-nat.c (windows_nat::handle_output_debug_string):
5393 Rename. No longer static.
5394 * nat/windows-nat.h (handle_output_debug_string): Declare.
5395
3c76026d
TT
53962020-04-08 Tom Tromey <tromey@adacore.com>
5397
5398 * windows-nat.c (current_process_handle, current_process_id)
5399 (main_thread_id, last_sig, current_event, last_wait_event)
5400 (current_windows_thread, desired_stop_thread_id, pending_stops)
5401 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5402 (display_selectors, fake_create_process)
5403 (get_windows_debug_event): Update.
5404 * nat/windows-nat.h (current_process_handle, current_process_id)
5405 (main_thread_id, last_sig, current_event, last_wait_event)
5406 (current_windows_thread, desired_stop_thread_id, pending_stops)
5407 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5408 * nat/windows-nat.c (current_process_handle, current_process_id)
5409 (main_thread_id, last_sig, current_event, last_wait_event)
5410 (current_windows_thread, desired_stop_thread_id, pending_stops)
5411 (siginfo_er): New globals. Move from windows-nat.c.
5412
9d8679cc
TT
54132020-04-08 Tom Tromey <tromey@adacore.com>
5414
5415 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5416 (handle_load_dll): Update.
5417 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5418
28688adf
TT
54192020-04-08 Tom Tromey <tromey@adacore.com>
5420
5421 * windows-nat.c (enum thread_disposition_type): Move to
5422 nat/windows-nat.h.
5423 (windows_nat::thread_rec): Rename from thread_rec. No longer
5424 static.
5425 (windows_add_thread, windows_nat_target::fetch_registers)
5426 (windows_nat_target::store_registers, handle_exception)
5427 (windows_nat_target::resume, get_windows_debug_event)
5428 (windows_nat_target::get_tib_address)
5429 (windows_nat_target::thread_name)
5430 (windows_nat_target::thread_alive): Update.
5431 * nat/windows-nat.h (enum thread_disposition_type): Move from
5432 windows-nat.c.
5433 (thread_rec): Declare.
5434
4834dad0
TT
54352020-04-08 Tom Tromey <tromey@adacore.com>
5436
5437 * windows-nat.c: Add "using namespace".
5438 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5439 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5440
65bafd5b
TT
54412020-04-08 Tom Tromey <tromey@adacore.com>
5442
5443 * nat/windows-nat.h (struct windows_thread_info): Declare
5444 destructor.
5445 * nat/windows-nat.c (~windows_thread_info): New.
5446
0a4afda3
TT
54472020-04-08 Tom Tromey <tromey@adacore.com>
5448
5449 PR gdb/22992
5450 * windows-nat.c (current_event): Update comment.
5451 (last_wait_event, desired_stop_thread_id): New globals.
5452 (struct pending_stop): New.
5453 (pending_stops): New global.
5454 (windows_nat_target) <stopped_by_sw_breakpoint>
5455 <supports_stopped_by_sw_breakpoint>: New methods.
5456 (windows_fetch_one_register): Add assertions. Adjust PC.
5457 (windows_continue): Handle pending stops. Suspend other threads
5458 when stepping. Use last_wait_event
5459 (wait_for_debug_event): New function.
5460 (get_windows_debug_event): Use wait_for_debug_event. Handle
5461 pending stops. Queue spurious stops.
5462 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5463 (windows_nat_target::kill): Use wait_for_debug_event.
5464 * nat/windows-nat.h (struct windows_thread_info)
5465 <stopped_at_software_breakpoint>: New field.
5466 * nat/windows-nat.c (windows_thread_info::resume): Clear
5467 stopped_at_software_breakpoint.
5468
8e61ebec
TT
54692020-04-08 Tom Tromey <tromey@adacore.com>
5470
5471 * windows-nat.c (enum thread_disposition_type): New.
5472 (thread_rec): Replace "get_context" parameter with "disposition";
5473 change type.
5474 (windows_add_thread, windows_nat_target::fetch_registers)
5475 (windows_nat_target::store_registers, handle_exception)
5476 (windows_nat_target::resume, get_windows_debug_event)
5477 (windows_nat_target::get_tib_address)
5478 (windows_nat_target::thread_name)
5479 (windows_nat_target::thread_alive): Update.
5480
98a03287
TT
54812020-04-08 Tom Tromey <tromey@adacore.com>
5482
5483 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5484 (windows_continue): Use windows_continue::resume.
5485 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5486 resume>: Declare new methods.
5487 * nat/windows-nat.c: New file.
5488 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5489
7c7411bc
TT
54902020-04-08 Tom Tromey <tromey@adacore.com>
5491
5492 * windows-nat.c (windows_add_thread, windows_delete_thread)
5493 (windows_nat_target::fetch_registers)
5494 (windows_nat_target::store_registers, fake_create_process)
5495 (windows_nat_target::resume, windows_nat_target::resume)
5496 (get_windows_debug_event, windows_nat_target::wait)
5497 (windows_nat_target::pid_to_str)
5498 (windows_nat_target::get_tib_address)
5499 (windows_nat_target::get_ada_task_ptid)
5500 (windows_nat_target::thread_name)
5501 (windows_nat_target::thread_alive): Use lwp, not tid.
5502
2950fdf7
TT
55032020-04-08 Tom Tromey <tromey@adacore.com>
5504
5505 * windows-nat.c (handle_exception)
5506 (windows_nat_target::thread_name): Update.
5507 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5508 <name>: Now unique_xmalloc_ptr.
5509
62fe396b
TT
55102020-04-08 Tom Tromey <tromey@adacore.com>
5511
5512 * windows-nat.c (thread_rec)
5513 (windows_nat_target::fetch_registers): Update.
5514 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5515 Update comment.
5516 <debug_registers_changed, reload_context>: Now bool.
5517
e9534bd2
TT
55182020-04-08 Tom Tromey <tromey@adacore.com>
5519
5520 * windows-nat.c (windows_add_thread): Use new.
5521 (windows_init_thread_list, windows_delete_thread): Use delete.
5522 (get_windows_debug_event): Update.
5523 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5524 destructor, and initializers.
5525
ae1f8880
TT
55262020-04-08 Tom Tromey <tromey@adacore.com>
5527
5528 * windows-nat.c (struct windows_thread_info): Remove.
5529 * nat/windows-nat.h: New file.
5530
55a1e039
TT
55312020-04-08 Tom Tromey <tromey@adacore.com>
5532
5533 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5534 (thread_rec, windows_add_thread, windows_delete_thread)
5535 (windows_continue): Update.
5536
93366324
TT
55372020-04-08 Tom Tromey <tromey@adacore.com>
5538
5539 * windows-nat.c (struct windows_thread_info): Remove typedef.
5540 (thread_head): Remove.
5541 (thread_list): New global.
5542 (thread_rec, windows_add_thread, windows_init_thread_list)
5543 (windows_delete_thread, windows_continue): Update.
5544
0f2265e2
SM
55452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * windows-tdep.h (windows_init_abi): Add comment.
5548 (cygwin_init_abi): New declaration.
5549 * windows-tdep.c: Split signal enumeration in two, one for
5550 Windows and one for Cygwin.
5551 (windows_gdb_signal_to_target): Only deal with signal of the
5552 Windows OS ABI.
5553 (cygwin_gdb_signal_to_target): New function.
5554 (windows_init_abi): Rename to windows_init_abi_common, don't set
5555 gdb_signal_to_target gdbarch method. Add new new function with
5556 this name.
5557 (cygwin_init_abi): New function.
5558 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5559 comment. Don't call windows_init_abi.
5560 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5561 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5562 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5563 i386_windows_init_abi_common, don't call windows_init_abi. Add
5564 a new function of this name.
5565 (i386_cygwin_init_abi): New function.
5566 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5567 OS ABI Cygwin.
5568
3810f182
SM
55692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5572 parameter.c.
5573 (dwarf2_read_gdb_index): Update.
5574
063f8e80
KR
55752020-04-07 Kamil Rytarowski <n54@gmx.com>
5576
5577 * nbsd-tdep.c: Include "objfiles.h".
5578 (nbsd_skip_solib_resolver): New.
5579 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5580
85a9510c 55812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5582
5583 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5584 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5585 with DW_LLE_base_addressx are being emitted in DWARFv5.
5586 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5587 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5588 unsigned integer.
5589
9fc3eaae 55902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5591
5592 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5593 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5594 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5595 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5596 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5597 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5598 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5599
5600
41144253 56012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5602
5603 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5604 (read_loclist_index): New function definition.
5605 (lookup_loclist_base): New function definition.
5606 (read_loclist_header): New function definition.
5607 (dwarf2_cu): Add loclist_base and loclist_header field.
5608 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5609 (read_full_die_1): Read the value of DW_AT_loclists_base.
5610 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5611 (read_attribute_value): Handle DW_FORM_loclistx.
5612 (skip_one_die): Handle DW_FORM_loclistx.
5613 (loclist_header): New structure declaration.
5614 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5615
9f4e76a4
SM
56162020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5619 constructor. Remove `addr` parameter from other constructor and
5620 add `per_cu` parameter.
5621 * dwarf2/read.c (create_partial_symtab): Update.
5622
25c11aca
TV
56232020-04-07 Tom de Vries <tdevries@suse.de>
5624
5625 PR symtab/25796
5626 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5627 (partial_die_info::fixup): Inherit has_const_value.
5628
5707e24b
TV
56292020-04-07 Tom de Vries <tdevries@suse.de>
5630
5631 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5632 symbols without address.
5633
05f00e22
KR
56342020-04-06 Kamil Rytarowski <n54@gmx.com>
5635
5636 * nbsd-nat.h (struct thread_info): Add forward declaration.
5637 (nbsd_nat_target::thread_alive): Add.
5638 (nbsd_nat_target::thread_name): Likewise.
5639 (nbsd_nat_target::update_thread_list): Likewise.
5640 (update_thread_list::post_attach): Likewise.
5641 (post_attach::pid_to_str): Likewise.
5642 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5643 (nbsd_thread_lister): Add.
5644 (nbsd_nat_target::thread_alive): Likewise.
5645 (nbsd_nat_target::thread_name): Likewise.
5646 (nbsd_add_threads): Likewise.
5647 (update_thread_list::post_attach): Likewise.
5648 (nbsd_nat_target::update_thread_list): Likewise.
5649 (post_attach::pid_to_str): Likewise.
5650
6ee448cc
TT
56512020-04-06 Tom Tromey <tromey@adacore.com>
5652
5653 * ada-valprint.c (print_variant_part): Extract the variant field.
5654 (print_field_values): Use the field as the outer value when
5655 recursing.
5656
dea34e8c
TT
56572020-04-06 Tom Tromey <tromey@adacore.com>
5658
5659 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5660 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5661 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5662 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5663 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5664
93689ce9
TT
56652020-04-06 Tom Tromey <tromey@adacore.com>
5666
5667 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5668 TYPE_CODE_ERROR.
5669
79743962
KR
56702020-04-06 Kamil Rytarowski <n54@gmx.com>
5671
5672 * nbsd-tdep.c: Include "gdbarch.h".
5673 Define enum with NetBSD signal numbers.
5674 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5675 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5676 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5677 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5678 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5679 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5680 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5681 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5682 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5683 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5684 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5685 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5686
9e7c9a03
HD
56872020-04-03 Hannes Domani <ssbssa@yahoo.de>
5688
5689 PR gdb/25325
5690 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5691
d9e49b61
TT
56922020-04-03 Tom Tromey <tromey@adacore.com>
5693
5694 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5695 Read constant block.
5696
e0fc5c3f
SM
56972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5698
5699 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5700 (gdb_bfd_get_full_section_contents): New declaration.
5701 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5702 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5703 gdb_bfd_get_full_section_contents.
5704
e2ff18a0
SM
57052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * exec.c (build_section_table): Replace internal_error with
5708 gdb_assert.
5709 (section_table_xfer_memory_partial): Likewise.
5710 * mdebugread.c (parse_partial_symbols): Likewise.
5711 * psymtab.c (lookup_partial_symbol): Likewise.
5712 * utils.c (wrap_here): Likewise.
5713
0830d301
TT
57142020-04-02 Tom Tromey <tromey@adacore.com>
5715
5716 * f-lang.c (build_fortran_types): Use arch_type to initialize
5717 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5718
e7da7f8f
TT
57192020-04-02 Tom Tromey <tromey@adacore.com>
5720
5721 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5722 of attributes.
5723
c90d28ac
AB
57242020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5725 Bernd Edlinger <bernd.edlinger@hotmail.de>
5726 Tom Tromey <tromey@adacore.com>
5727
5728 * buildsym.c (buildsym_compunit::record_line): Remove
5729 deduplication code.
5730
1aa98955
TV
57312020-04-02 Tom de Vries <tdevries@suse.de>
5732
5733 PR ada/24671
5734 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5735
d3214198
TV
57362020-04-02 Tom de Vries <tdevries@suse.de>
5737
5738 * dwarf2/read.c (dwarf2_gdb_index_functions,
5739 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5740 NULL.
5741 * psymtab.c (psym_lookup_global_symbol_language): New function.
5742 (psym_functions): Init psym_lookup_global_symbol_language with
5743 psym_lookup_global_symbol_language.
5744 * symfile-debug.c (debug_sym_quick_functions): Init
5745 lookup_global_symbol_language with NULL.
5746 * symfile.c (set_initial_language): Remove fixme comment.
5747 * symfile.h (struct quick_symbol_functions): Add
5748 lookup_global_symbol_language.
5749 * symtab.c (find_quick_global_symbol_language): New function.
5750 (find_main_name): Use find_quick_global_symbol_language.
5751
2836752f
SM
57522020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5755
64dc2d4b
BE
57562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5757
5758 * buildsym.c (record_line): Fix undefined behavior and preserve
5759 lines at eof.
5760
bbe3dc41
BE
57612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5762
5763 * buildsym.c (record_line): Fix the resizing condition.
5764
6b4a335b
TT
57652020-04-01 Tom Tromey <tom@tromey.com>
5766
5767 * value.h (value_literal_complex): Add comment.
5768 * valops.c (value_literal_complex): Refer to value.h.
5769
3638a098
TT
57702020-04-01 Tom Tromey <tom@tromey.com>
5771
5772 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5773 (scalar_type): New rule, from typebase.
5774 (typebase): Use scalar_type. Recognize complex types.
5775 (field_name): Handle FLOAT_KEYWORD.
5776 (ident_tokens): Add _Complex and __complex__.
5777
c34e8714
TT
57782020-04-01 Tom Tromey <tom@tromey.com>
5779
5780 PR exp/25299:
5781 * valarith.c (promotion_type, complex_binop): New functions.
5782 (scalar_binop): Handle complex numbers. Use promotion_type.
5783 (value_pos, value_neg, value_complement): Handle complex numbers.
5784
fa649bb7
TT
57852020-04-01 Tom Tromey <tom@tromey.com>
5786
5787 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5788 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5789 (parse_number): Handle complex numbers.
5790
981c08ce
TT
57912020-04-01 Tom Tromey <tom@tromey.com>
5792
5793 * c-valprint.c (c_decorations): Change complex suffix to "i".
5794
4c99290d
TT
57952020-04-01 Tom Tromey <tom@tromey.com>
5796
5797 * valprint.c (generic_value_print_complex): Use accessors.
5798 * value.h (value_real_part, value_imaginary_part): Declare.
5799 * valops.c (value_real_part, value_imaginary_part): New
5800 functions.
5801 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5802
5b930b45
TT
58032020-04-01 Tom Tromey <tom@tromey.com>
5804
5805 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5806 (read_range_type): Update.
5807 * mdebugread.c (basic_type): Update.
5808 * go-lang.c (build_go_types): Use init_complex_type.
5809 * gdbtypes.h (struct main_type) <complex_type>: New member.
5810 (init_complex_type): Update.
5811 (arch_complex_type): Don't declare.
5812 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5813 Make name if none given. Use alloc_type_copy. Look for cached
5814 complex type.
5815 (arch_complex_type): Remove.
5816 (gdbtypes_post_init): Use init_complex_type.
5817 * f-lang.c (build_fortran_types): Use init_complex_type.
5818 * dwarf2/read.c (read_base_type): Update.
5819 * d-lang.c (build_d_types): Use init_complex_type.
5820 * ctfread.c (read_base_type): Update.
5821
53cccef1
TBA
58222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5823
5824 * infrun.c (stop_all_threads): Update assertion, plus when
5825 stopping threads, take into account that we might be trying
5826 to stop an all-stop target.
5827 (stop_waiting): Call 'stop_all_threads' if there exists a
5828 non-stop target.
5829
a0714d30
TBA
58302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5831
5832 * target.h (exists_non_stop_target): New function declaration.
5833 * target.c (exists_non_stop_target): New function.
5834
60e22c1e
HD
58352020-04-01 Hannes Domani <ssbssa@yahoo.de>
5836
5837 PR gdb/24789
5838 * eval.c (is_integral_or_integral_reference): New function.
5839 (evaluate_subexp_standard): Allow integer references in
5840 pointer arithmetic.
5841
e139a727
TBA
58422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5843
5844 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5845 check for no ptid in the stop reply when the target is non-stop.
5846
e0802d59
TT
58472020-04-01 Tom Tromey <tromey@adacore.com>
5848
5849 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5850 "name" parameter to rvalue reference. Initialize m_name_holder.
5851 <lookup_name_info>: New overloads.
5852 <name>: Return gdb::string_view.
5853 <c_str>: New method.
5854 <make_ignore_params>: Update.
5855 <search_name_hash>: Update.
5856 <language_lookup_name>: Return const char *.
5857 <m_name>: Change type.
5858 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5859 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5860 (lookup_name_info::match_any): Update.
5861 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5862 Update.
5863 * minsyms.c (linkage_name_str): Update.
5864 * language.c (default_symbol_name_matcher): Update.
5865 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5866 Update.
5867 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5868 (ada_lookup_name_info::ada_lookup_name_info): Update.
5869 (literal_symbol_name_matcher): Update.
5870
8c072cb6
TT
58712020-04-01 Tom Tromey <tromey@adacore.com>
5872
5873 * psymtab.c (psymtab_search_name): Remove function.
5874 (psym_lookup_symbol): Create search name and lookup name here.
5875 (lookup_partial_symbol): Remove "name" parameter; add
5876 lookup_name.
5877 (psym_expand_symtabs_for_function): Update.
5878
6f29a534
TT
58792020-03-31 Joel Jones <joelkevinjones@gmail.com>
5880
5881 PR tui/25597:
5882 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5883
af62665e
TT
58842020-03-31 Tom Tromey <tromey@adacore.com>
5885
5886 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5887 memcpy.
5888
d1a89da5
NC
58892020-03-30 Nelson Chu <nelson.chu@sifive.com>
5890
5891 * features/riscv/32bit-csr.xml: Regenerated.
5892 * features/riscv/64bit-csr.xml: Regenerated.
5893
d8af9068
TT
58942020-03-30 Tom Tromey <tromey@adacore.com>
5895
5896 * ada-valprint.c (print_variant_part): Update.
5897 * ada-lang.h (ada_which_variant_applies): Update.
5898 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5899 outer_valaddr parameters; replace with "outer" value parameter.
5900 (to_fixed_variant_branch_type): Update.
5901
227c0bf4
PFC
59022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5903
5904 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5905 <list>. Remove inclusion of observable.h.
5906 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5907 (struct arch_lwp_info): New struct.
5908 (class ppc_linux_dreg_interface): New class.
5909 (struct ppc_linux_process_info): New struct.
5910 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5911 <low_new_clone, low_forget_process, low_prepare_to_resume>
5912 <copy_thread_dreg_state, mark_thread_stale>
5913 <mark_debug_registers_changed, register_hw_breakpoint>
5914 <clear_hw_breakpoint, register_wp, clear_wp>
5915 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5916 <num_memory_accesses, get_trigger_type>
5917 <create_watchpoint_request, hwdebug_point_cmp>
5918 <init_arch_lwp_info, get_arch_lwp_info>
5919 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5920 methods.
5921 <struct ptid_hash>: New inner struct.
5922 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5923 members.
5924 (saved_dabr_value, hwdebug_info, max_slots_number)
5925 (struct hw_break_tuple, struct thread_points, ppc_threads)
5926 (have_ptrace_hwdebug_interface)
5927 (hwdebug_find_thread_points_by_tid)
5928 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5929 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5930 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5931 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5932 use m_dreg_interface.
5933 (hwdebug_point_cmp): Change to...
5934 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5935 reference arguments instead of pointers.
5936 (ppc_linux_nat_target::ranged_break_num_registers): Use
5937 m_dreg_interface.
5938 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5939 m_dreg_interface. Call register_hw_breakpoint.
5940 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5941 m_dreg_interface. Call clear_hw_breakpoint.
5942 (get_trigger_type): Change to...
5943 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5944 comment.
5945 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5946 use m_dreg_interface. Call register_hw_breakpoint.
5947 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5948 use m_dreg_interface. Call clear_hw_breakpoint.
5949 (can_use_watchpoint_cond_accel): Change to...
5950 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5951 method. Update comment, use m_dreg_interface and
5952 m_process_info.
5953 (calculate_dvc): Change to...
5954 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5955 m_dreg_interface.
5956 (num_memory_accesses): Change to...
5957 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5958 (check_condition): Change to...
5959 (ppc_linux_nat_target::check_condition): ...this method.
5960 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5961 comment, use m_dreg_interface.
5962 (create_watchpoint_request): Change to...
5963 (ppc_linux_nat_target::create_watchpoint_request): ...this
5964 method. Use m_dreg_interface.
5965 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5966 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5967 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5968 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5969 (ppc_linux_nat_target::low_forget_process)
5970 (ppc_linux_nat_target::low_new_fork)
5971 (ppc_linux_nat_target::low_new_clone)
5972 (ppc_linux_nat_target::low_delete_thread)
5973 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5974 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5975 only call mark_thread_stale.
5976 (ppc_linux_thread_exit): Remove.
5977 (ppc_linux_nat_target::stopped_data_address): Change to...
5978 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5979 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5980 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5981 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5982 comment. Call low_stopped_data_address.
5983 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5984 m_dreg_interface.
5985 (ppc_linux_nat_target::masked_watch_num_registers): Use
5986 m_dreg_interface.
5987 (ppc_linux_nat_target::copy_thread_dreg_state)
5988 (ppc_linux_nat_target::mark_thread_stale)
5989 (ppc_linux_nat_target::mark_debug_registers_changed)
5990 (ppc_linux_nat_target::register_hw_breakpoint)
5991 (ppc_linux_nat_target::clear_hw_breakpoint)
5992 (ppc_linux_nat_target::register_wp)
5993 (ppc_linux_nat_target::clear_wp)
5994 (ppc_linux_nat_target::init_arch_lwp_info)
5995 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5996 (_initialize_ppc_linux_nat): Remove observer callback.
5997
4db10d8f
PFC
59982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5999
6000 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6001 (ppc_linux_nat_target::auxv_parse)
6002 (ppc_linux_nat_target::read_description)
6003 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6004 Move up.
6005
1310c1b0
PFC
60062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6007
6008 * linux-nat.h (low_new_clone): New method.
6009 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6010
69b037c3
SM
60112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6014 (dbx_expand_psymtab): ... this.
6015 (start_psymtab): Update.
6016 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6017 (mdebug_expand_psymtab): ... this.
6018 (parse_partial_symbols): Update.
6019 (new_psymtab): Update.
6020 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6021 (xcoff_expand_psymtab): ... this.
6022 (xcoff_start_psymtab): Update.
6023
48993951
SM
60242020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6025
6026 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6027 <expand_dependencies>: ... this.
6028 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6029 (partial_symtab::expand_dependencies): ... this.
6030 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6031 Update.
6032 (dwarf2_psymtab::expand_psymtab): Update.
6033 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6034 * mdebugread.c (psymtab_to_symtab_1): Update.
6035 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6036
3ad83046
SM
60372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * psympriv.h (discard_psymtab): Remove.
6040 * dbxread.c (dbx_end_psymtab): Update.
6041 * xcoffread.c (xcoff_end_psymtab): Update.
6042
4d1b9ab6
TT
60432020-03-28 Tom Tromey <tom@tromey.com>
6044
6045 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6046 comment.
6047
f1749218
TT
60482020-03-28 Tom Tromey <tom@tromey.com>
6049
6050 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6051
ebea7626
HD
60522020-03-27 Hannes Domani <ssbssa@yahoo.de>
6053
6054 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6055
a879b4d5
JB
60562020-03-26 John Baldwin <jhb@FreeBSD.org>
6057
6058 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6059
0826b30a
TT
60602020-03-26 Tom Tromey <tom@tromey.com>
6061
6062 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6063 (mark_common_block_symbol_computed, read_tag_string_type)
6064 (attr_to_dynamic_prop, read_subrange_type): Update.
6065 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6066 to be methods on struct attribute.
6067 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6068 (read_call_site_scope, partial_die_info::read)
6069 (partial_die_info::read, lookup_die_type, follow_die_ref):
6070 Update.
6071 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6072 from dwarf2_get_ref_die_offset.
6073 (attribute::constant_value): New method, from
6074 dwarf2_get_attr_constant_value.
6075 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6076 Declare method.
6077 <constant_value>: New method.
6078
2b2558bf
TT
60792020-03-26 Tom Tromey <tom@tromey.com>
6080
6081 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6082 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6083 (dwarf_type_encoding_name): Move to stringify.c.
6084 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6085 * dwarf2/stringify.c: New file.
6086 * dwarf2/stringify.h: New file.
6087
eeb64781
TT
60882020-03-26 Tom Tromey <tom@tromey.com>
6089
6090 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6091 Rewrite.
6092
a39fdb41
TT
60932020-03-26 Tom Tromey <tom@tromey.com>
6094
6095 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6096 methods.
6097 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6098 (lookup_ranges_base): Likewise.
6099 (read_cutu_die_from_dwo, read_full_die_1): Update.
6100
436c571c
TT
61012020-03-26 Tom Tromey <tom@tromey.com>
6102
6103 * dwarf2/read.c (read_import_statement, read_file_scope)
6104 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6105 (read_lexical_block_scope, read_call_site_scope)
6106 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6107 (handle_struct_member_die, process_structure_scope)
6108 (update_enumeration_type_from_children)
6109 (process_enumeration_scope, read_array_type, read_common_block)
6110 (read_namespace, read_module, read_subroutine_type): Update.
6111 (sibling_die): Remove.
6112
052c8bb8
TT
61132020-03-26 Tom Tromey <tom@tromey.com>
6114
6115 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6116 (build_type_psymtabs_reader, read_structure_type)
6117 (read_enumeration_type, read_full_die_1): Update.
6118 (dwarf2_attr_no_follow): Move to die.h.
6119 * dwarf2/die.h (struct die_info) <attr>: New method.
6120
2b24b6e4
TT
61212020-03-26 Tom Tromey <tom@tromey.com>
6122
6123 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6124 <base_address>: Now an optional.
6125 (dwarf2_find_base_address, dwarf2_rnglists_process)
6126 (dwarf2_ranges_process, fill_in_loclist_baton)
6127 (dwarf2_symbol_mark_computed): Update.
6128
c2d50fd0
TT
61292020-03-26 Tom Tromey <tom@tromey.com>
6130
6131 * dwarf2/read.c (struct die_info): Move to die.h.
6132 * dwarf2/die.h: New file.
6133
0df7ad3a
TT
61342020-03-26 Tom Tromey <tom@tromey.com>
6135
6136 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6137 * dwarf2/read.c
6138 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6139 Move to line-header.c.
6140 (read_checked_initial_length_and_offset, read_formatted_entries):
6141 Likewise.
6142 (dwarf_decode_line_header): Split into two.
6143 * dwarf2/line-header.c
6144 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6145 Move from read.c.
6146 (read_checked_initial_length_and_offset, read_formatted_entries):
6147 Likewise.
6148 (dwarf_decode_line_header): New function, split from read.c.
6149
86c0bb4c
TT
61502020-03-26 Tom Tromey <tom@tromey.com>
6151
6152 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6153 Declare method.
6154 * dwarf2/read.c (read_attribute_value): Update.
6155 (dwarf2_per_objfile::read_line_string): Rename from
6156 read_indirect_line_string.
6157 (read_formatted_entries): Update.
6158
2ef46c2f
TT
61592020-03-26 Tom Tromey <tom@tromey.com>
6160
6161 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6162 variable.
6163
4f9c1eda
TT
61642020-03-26 Tom Tromey <tom@tromey.com>
6165
6166 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6167 const.
6168 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6169 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6170 parameter const.
6171
5a0e026f
TT
61722020-03-26 Tom Tromey <tom@tromey.com>
6173
6174 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6175 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6176 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6177 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6178
8844c11b
TT
61792020-03-26 Tom Tromey <tom@tromey.com>
6180
6181 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6182 file_names_size, file_full_name, file_file_name>: Use const.
6183 <file_name_at, file_names>: Add const overload.
6184 * dwarf2/line-header.c (line_header::file_file_name)
6185 (line_header::file_full_name): Update.
6186
c90ec28a
TT
61872020-03-26 Tom Tromey <tom@tromey.com>
6188
6189 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6190 (macro_start_file, consume_improper_spaces)
6191 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6192 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6193 (dwarf_decode_macros): Move to macro.c.
6194 * dwarf2/macro.c: New file.
6195 * dwarf2/macro.h: New file.
6196 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6197
4f44ae6c
TT
61982020-03-26 Tom Tromey <tom@tromey.com>
6199
6200 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6201 method.
6202 * dwarf2/section.c: New method. From
6203 read_indirect_string_at_offset_from.
6204 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6205 (read_indirect_string_at_offset_from): Move to section.c.
6206 (read_indirect_string_at_offset): Rewrite.
6207 (read_indirect_line_string_at_offset): Remove.
6208 (read_indirect_string, read_indirect_line_string)
6209 (dwarf_decode_macro_bytes): Update.
6210
a0194fa8
TT
62112020-03-26 Tom Tromey <tom@tromey.com>
6212
6213 * dwarf2/section.h (struct dwarf2_section_info)
6214 <overload_complaint>: Declare.
6215 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6216 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6217 Rename from dwarf2_section_buffer_overflow_complaint.
6218 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6219 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6220
3d27bbdb
TT
62212020-03-26 Tom Tromey <tom@tromey.com>
6222
6223 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6224 Declare.
6225 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6226 Move from read.c.
6227 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6228 to section.c.
6229
9eac9650
TT
62302020-03-26 Tom Tromey <tom@tromey.com>
6231
6232 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6233
bf80d710
TT
62342020-03-26 Tom Tromey <tom@tromey.com>
6235
6236 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6237 "builder".
6238 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6239 parameter.
6240 (dwarf_decode_macros): Update.
6241
0314b390
TT
62422020-03-26 Tom Tromey <tom@tromey.com>
6243
6244 * dwarf2/read.c (read_attribute_value): Update.
6245 (read_indirect_string_from_dwz): Move to dwz.c; change into
6246 method.
6247 (dwarf_decode_macro_bytes): Update.
6248 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6249 * dwarf2/dwz.c: New file.
6250 * Makefile.in (COMMON_SFILES): Add dwz.c.
6251
9fda78b6
TT
62522020-03-26 Tom Tromey <tom@tromey.com>
6253
6254 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6255 * dwarf2/read.c: Add include.
6256 * dwarf2/index-write.c: Add include.
6257 * dwarf2/index-cache.c: Add include.
6258 * dwarf2/dwz.h: New file.
6259
33aa3c10
TT
62602020-03-25 Tom Tromey <tom@tromey.com>
6261
6262 * compile/compile-object-load.c (get_out_value_type): Mention
6263 correct symbol name in error message.
6264
d503b685
HD
62652020-03-25 Hannes Domani <ssbssa@yahoo.de>
6266
6267 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6268
7b1eff95
TV
62692020-03-25 Tom de Vries <tdevries@suse.de>
6270
6271 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6272 * symmisc.c (dump_symtab_1): Print user and includes fields.
6273 (maintenance_info_symtabs): Same.
6274
dd895392
AB
62752020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6276
6277 PR gdb/25534
6278 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6279 (riscv_regcache_cooked_write): New function.
6280 (riscv_push_dummy_call): Use new function.
6281 (riscv_return_value): Likewise.
6282
5ab2fbf1
SM
62832020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6286 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6287 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6288 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6289 * infrun.c (follow_fork): Likewise.
6290 (follow_fork_inferior): Likewise.
6291 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6292 * linux-nat.h (class linux_nat_target): Likewise.
6293 * remote.c (class remote_target) <follow_fork>: Likewise.
6294 (remote_target::follow_fork): Likewise.
6295 * target-delegates.c: Re-generate.
6296 * target.c (default_follow_fork): Likewise.
6297 (target_follow_fork): Likewise.
6298 * target.h (struct target_ops) <follow_fork>: Likewise.
6299 (target_follow_fork): Likewise.
6300
a64fafb5
TV
63012020-03-24 Tom de Vries <tdevries@suse.de>
6302
6303 * psymtab.c (maintenance_info_psymtabs): Print user field.
6304
fe26d3a3
TT
63052020-03-20 Tom Tromey <tromey@adacore.com>
6306
6307 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6308 const.
6309 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6310 const.
6311
c884cc46
SM
63122020-03-20 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * ptrace.m4: Don't check for ptrace declaration.
6315 * config.in: Re-generate.
6316 * configure: Re-generate.
6317 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6318 not defined.
6319
1ff700c2
KR
63202020-03-20 Kamil Rytarowski <n54@gmx.com>
6321
6322 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6323 `PTRACE_TYPE_RET'.
6324 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6325 * sparc-nat.c (gdb_ptrace): Likewise.
6326 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6327
f7d4f0b1
TT
63282020-03-20 Tom Tromey <tromey@adacore.com>
6329
6330 * c-exp.y (lex_one_token): Fix assert.
6331
f67210ff
TT
63322020-03-20 Tom Tromey <tromey@adacore.com>
6333
6334 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6335 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6336 strncpy call.
6337
1773be9e
TT
63382020-03-20 Tom Tromey <tromey@adacore.com>
6339
6340 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6341
70304be9
TT
63422020-03-20 Tom Tromey <tromey@adacore.com>
6343
6344 * ada-valprint.c (print_variant_part): Remove parameters; switch
6345 to value-based API.
6346 (print_field_values): Likewise.
6347 (ada_val_print_struct_union): Likewise.
6348 (ada_value_print_1): Update.
6349
9faa006d
KR
63502020-03-20 Kamil Rytarowski <n54@gmx.com>
6351
6352 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6353 nbsd_nat_target instead of inf_ptrace_target.
6354 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6355 nbsd_nat_target.
6356
4a90f062
KR
63572020-03-20 Kamil Rytarowski <n54@gmx.com>
6358
6359 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6360 it to the ptrace call.
6361 * (store_registers): Likewise.
6362
63632020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6364
6365 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6366 it to the ptrace call.
6367 * (store_registers): Likewise.
6368
2d07da27
LM
63692020-03-19 Luis Machado <luis.machado@linaro.org>
6370
6371 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6372 valid, fetch vg value from ptrace.
6373
f09db380
KR
63742020-03-19 Kamil Rytarowski <n54@gmx.com>
6375 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6376 * inf-ptrace.c: Likewise.
6377 * (gdb_ptrace): Add.
6378 * (inf_ptrace_target::resume): Update.
6379 * (inf_ptrace_target::xfer_partial): Likewise.
6380 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6381 * (inf_ptrace_peek_poke): Update.
6382
fcc7376e
KR
63832020-03-19 Kamil Rytarowski <n54@gmx.com>
6384
6385 * x86-bsd-nat.c (gdb_ptrace): New.
6386 * (x86bsd_dr_set): Add new argument `ptid'.
6387 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6388 x86bsd_dr_set_addr): Update.
6389
cada5fc9
AB
63902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * remote.c (remote_target::process_stop_reply): Handle events for
6393 all threads differently.
6394
19a2740f
AB
63952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6396
6397 * completer.c (completion_tracker::remove_completion): Define new
6398 function.
6399 * completer.h (completion_tracker::remove_completion): Declare new
6400 function.
6401 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6402 when adding a C++ function symbol.
6403
724fd9ba
AB
64042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * completer.c (completion_tracker::completion_hash_entry): Define
6407 new class.
6408 (advance_to_filename_complete_word_point): Call
6409 recompute_lowest_common_denominator.
6410 (completion_tracker::completion_tracker): Call discard_completions
6411 to setup the hash table.
6412 (completion_tracker::discard_completions): Allow for being called
6413 from the constructor, pass new equal function, and element deleter
6414 when constructing the hash table. Initialise new class member
6415 variables.
6416 (completion_tracker::maybe_add_completion): Remove use of
6417 m_entries_vec, and store more information into m_entries_hash.
6418 (completion_tracker::recompute_lcd_visitor): New function, most
6419 content taken from...
6420 (completion_tracker::recompute_lowest_common_denominator):
6421 ...here, this now just visits each item in the hash calling the
6422 above visitor.
6423 (completion_tracker::build_completion_result): Remove use of
6424 m_entries_vec, call recompute_lowest_common_denominator.
6425 * completer.h (completion_tracker::have_completions): Remove use
6426 of m_entries_vec.
6427 (completion_tracker::completion_hash_entry): Declare new class.
6428 (completion_tracker::recompute_lowest_common_denominator): Change
6429 function signature.
6430 (completion_tracker::recompute_lcd_visitor): Declare new function.
6431 (completion_tracker::m_entries_vec): Delete.
6432 (completion_tracker::m_entries_hash): Initialize to NULL.
6433 (completion_tracker::m_lowest_common_denominator_valid): New
6434 member variable.
6435 (completion_tracker::m_lowest_common_denominator_max_length): New
6436 member variable.
6437
5a82b8a1
KR
64382020-03-17 Kamil Rytarowski <n54@gmx.com>
6439
6440 * regformats/regdef.h: Put reg in gdb namespace.
6441
fb516a69
KR
64422020-03-17 Kamil Rytarowski <n54@gmx.com>
6443
6444 * i386-bsd-nat.c (gdb_ptrace): New.
6445 * (i386bsd_fetch_inferior_registers,
6446 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6447 * (i386bsd_fetch_inferior_registers,
6448 i386bsd_store_inferior_registers) Use gdb_ptrace.
6449
1c0aa1fb
KR
64502020-03-17 Kamil Rytarowski <n54@gmx.com>
6451
6452 * amd64-bsd-nat.c (gdb_ptrace): New.
6453 * (amd64bsd_fetch_inferior_registers,
6454 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6455 * (amd64bsd_fetch_inferior_registers,
6456 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6457
5ccd2fb7
KR
64582020-03-17 Kamil Rytarowski <n54@gmx.com>
6459
6460 * user-regs.c (user_reg::read): Rename to...
6461 (user_reg::xread): ...this.
6462 * (append_user_reg): Rename argument `read' to `xread'.
6463 * (user_reg_add_builtin): Likewise.
6464 * (user_reg_add): Likewise.
6465 * (value_of_user_reg): Likewise.
6466
2108a63a
KR
64672020-03-17 Kamil Rytarowski <n54@gmx.com>
6468
6469 * sparc-nat.c (gdb_ptrace): New.
6470 * sparc-nat.c (sparc_fetch_inferior_registers)
6471 (sparc_store_inferior_registers) Remove obsolete comment.
6472 * sparc-nat.c (sparc_fetch_inferior_registers)
6473 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6474 * sparc-nat.c (sparc_fetch_inferior_registers)
6475 (sparc_store_inferior_registers) Use gdb_ptrace.
6476
a225c9a8
KR
64772020-03-17 Kamil Rytarowski <n54@gmx.com>
6478
6479 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6480 it to the ptrace call.
6481 * sh-nbsd-nat.c (store_registers): Likewise.
6482
98097623
KR
64832020-03-17 Kamil Rytarowski <n54@gmx.com>
6484
6485 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6486 nbsd_nat_target instead of inf_ptrace_target.
6487 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6488 nbsd_nat_target.
6489
9e38d619
KR
64902020-03-17 Kamil Rytarowski <n54@gmx.com>
6491
6492 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6493
a2ecbe9f
KR
64942020-03-17 Kamil Rytarowski <n54@gmx.com>
6495
6496 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6497 <sys/sysctl.h>.
6498 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6499
58990295
TV
65002020-03-17 Tom de Vries <tdevries@suse.de>
6501
6502 PR gdb/23710
6503 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6504 fields.
6505 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6506 fields.
6507 (process_imported_unit_die): Skip import of c++ CUs.
6508
771dd3a8
TT
65092020-03-16 Tom Tromey <tom@tromey.com>
6510
6511 * p-valprint.c (pascal_object_print_value): Initialize
6512 base_value.
6513
817a7585
AK
65142020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6515 Shahab Vahedi <shahab@synopsys.com>
6516
6517 * Makefile.in: Add arch/arc.o
6518 * configure.tgt: Likewise.
6519 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6520 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6521 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6522 * arc-tdep.h (arc_read_description): Add proto type.
6523 * arch/arc.c: New file.
6524 * arch/arc.h: Likewise.
6525 * features/Makefile: Replace old target descriptions with new.
6526 * features/arc-arcompact.c: Remove.
6527 * features/arc-arcompact.xml: Likewise.
6528 * features/arc-v2.c: Likewise
6529 * features/arc-v2.xml: Likewise
6530 * features/arc/aux-arcompact.xml: New file.
6531 * features/arc/aux-v2.xml: Likewise.
6532 * features/arc/core-arcompact.xml: Likewise.
6533 * features/arc/core-v2.xml: Likewise.
6534 * features/arc/aux-arcompact.c: Generate.
6535 * features/arc/aux-v2.c: Likewise.
6536 * features/arc/core-arcompact.c: Likewise.
6537 * features/arc/core-v2.c: Likewise.
6538 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6539
67430cd0
TT
65402020-03-16 Tom Tromey <tromey@adacore.com>
6541
6542 PR gdb/25663:
6543 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6544 putting value into bcache.
6545
30efb6c7
SM
65462020-03-16 Simon Marchi <simon.marchi@efficios.com>
6547
6548 PR gdb/21500
6549 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6550 to...
6551 (amd64_windows_init_abi_common): ... this. Don't set size of
6552 long type.
6553 (amd64_windows_init_abi): New function.
6554 (amd64_cygwin_init_abi): New function.
6555 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6556 the Cygwin OS ABI.
6557 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6558 comment.
6559
8db52437
SM
65602020-03-16 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6563 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6564 (pe_import_directory_entry): New struct type.
6565 (is_linked_with_cygwin_dll): New function.
6566 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6567 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6568 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6569
5982a56a
SM
65702020-03-16 Simon Marchi <simon.marchi@efficios.com>
6571
6572 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6573 i386_cygwin_core_osabi_sniffer.
6574
7a1998df
SM
65752020-03-16 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * i386-cygwin-tdep.c: Rename to...
6578 * i386-windows-tdep.c: ... this.
6579 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6580 i386-windows-tdep.c.
6581 * configure.tgt: Likewise.
6582
053205cc
SM
65832020-03-16 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6586 * osabi.c (gdb_osabi_names): Add "Windows".
6587 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6588 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6589 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6590 i386_cygwin_osabi_sniffer.
6591 (_initialize_i386_cygwin_tdep): Register OS ABI
6592 GDB_OSABI_WINDOWS for i386.
6593 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6594 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6595 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6596 for x86-64.
6597 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6598 when the target matches '*-*-mingw*'.
6599
fe4b2ee6
SM
66002020-03-16 Simon Marchi <simon.marchi@efficios.com>
6601
6602 * defs.h (enum gdb_osabi): Move to...
6603 * osabi.h (enum gdb_osabi): ... here.
6604 * gdbarch.sh: Include osabi.h in gdbarch.h.
6605 * gdbarch.h: Re-generate.
6606
cb9b645d
SM
66072020-03-16 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6610 function.
6611 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6612
3293bbaf
TT
66132020-03-14 Tom Tromey <tom@tromey.com>
6614
6615 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6616 for C++.
6617 (c_type_print_modifier): Likewise. Add "language" parameter.
6618 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6619 (c_type_print_base_1): Update.
6620 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6621 constants.
6622 * type-stack.c (type_stack::insert): Handle tp_atomic and
6623 tp_restrict.
6624 (type_stack::follow_type_instance_flags): Likewise.
6625 (type_stack::follow_types): Likewise. Merge type-following code.
6626 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6627 (space_identifier, cv_with_space_id)
6628 (const_or_volatile_or_space_identifier_noopt)
6629 (const_or_volatile_or_space_identifier): Remove.
6630 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6631 rules.
6632 (ptr_operator, typebase): Update.
6633 (enum token_flag) <FLAG_C>: New constant.
6634 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6635 "_Atomic".
6636 (lex_one_token): Handle FLAG_C.
6637
154151a6
KR
66382020-03-14 Kamil Rytarowski <n54@gmx.com>
6639
6640 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6641 it to the ptrace call.
6642 * m68k-bsd-nat.c (store_registers): Likewise.
6643
bc107784
KR
66442020-03-14 Kamil Rytarowski <n54@gmx.com>
6645
6646 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6647 gdb_byte *.
6648 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6649 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6650 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6651
01a80117
KR
66522020-03-14 Kamil Rytarowski <n54@gmx.com>
6653
6654 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6655 nbsd_nat_target instead of inf_ptrace_target.
6656 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6657 nbsd_nat_target.
6658
f90280ca
KR
66592020-03-14 Kamil Rytarowski <n54@gmx.com>
6660
6661 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6662 register_t.
6663
6def66f1
KR
66642020-03-14 Kamil Rytarowski <n54@gmx.com>
6665
6666 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6667 it to the ptrace call.
6668 * alpha-bsd-nat.c (store_registers): Likewise.
6669
66eaca97
KR
66702020-03-14 Kamil Rytarowski <n54@gmx.com>
6671
6672 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6673 includes.
6674 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6675 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6676 fill_fpregset): Likewise.
6677
4fed520b
KR
66782020-03-14 Kamil Rytarowski <n54@gmx.com>
6679
6680 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6681 nbsd_nat_target instead of inf_ptrace_target.
6682 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6683 nbsd_nat_target.
6684
2190cf06
KR
66852020-03-14 Kamil Rytarowski <n54@gmx.com>
6686
6687 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6688 register_t.
6689
75c56d3d
KR
66902020-03-14 Kamil Rytarowski <n54@gmx.com>
6691
6692 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6693 it to the ptrace call.
6694 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6695 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6696 * arm-nbsd-nat.c (store_register): Likewise.
6697 * arm-nbsd-nat.c (store_regs): Likewise.
6698 * arm-nbsd-nat.c (store_fp_register): Likewise.
6699 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6700
6018d381
KR
67012020-03-14 Kamil Rytarowski <n54@gmx.com>
6702
6703 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6704 nbsd_nat_target instead of inf_ptrace_target.
6705 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6706 nbsd_nat_target.
6707
013f99f0
KR
67082020-03-14 Kamil Rytarowski <n54@gmx.com>
6709
6710 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6711 it to the ptrace call.
6712 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6713
12753073
KR
67142020-03-14 Kamil Rytarowski <n54@gmx.com>
6715
6227b330
KR
6716 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6717 it to the ptrace call.
6718 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6719
67202020-03-14 Kamil Rytarowski <n54@gmx.com>
6721
6722 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6723 gdb_byte *.
12753073
KR
6724 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6725
d5be5fa4
KR
67262020-03-14 Kamil Rytarowski <n54@gmx.com>
6727
6728 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6729 instead of inf_ptrace_target.
6730 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6731 nbsd_nat_target.
6732
8110f842
KR
67332020-03-14 Kamil Rytarowski <n54@gmx.com>
6734
6735 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6736 register_t.
6737
52feded7
KR
67382020-03-14 Kamil Rytarowski <n54@gmx.com>
6739
6740 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6741 register_t.
6742
25567eee
KR
67432020-03-14 Kamil Rytarowski <n54@gmx.com>
6744
6745 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6746 register_t.
6747
426a9c18
TT
67482020-03-13 Tom Tromey <tom@tromey.com>
6749
6750 * value.h (val_print): Don't declare.
6751 * valprint.h (val_print_array_elements)
6752 (val_print_scalar_formatted, generic_val_print): Don't declare.
6753 * valprint.c (generic_val_print_array): Take a struct value.
6754 (generic_val_print_ptr, generic_val_print_memberptr)
6755 (generic_val_print_bool, generic_val_print_int)
6756 (generic_val_print_char, generic_val_print_complex)
6757 (generic_val_print): Remove.
6758 (generic_value_print): Update.
6759 (do_val_print): Remove unused parameters. Don't call
6760 la_val_print.
6761 (val_print): Remove.
6762 (common_val_print): Update. Don't call value_check_printable.
6763 (val_print_scalar_formatted, val_print_array_elements): Remove.
6764 * rust-lang.c (rust_val_print): Remove.
6765 (rust_language_defn): Update.
6766 * p-valprint.c (pascal_val_print): Remove.
6767 (pascal_value_print_inner): Update.
6768 (pascal_object_print_val_fields, pascal_object_print_val):
6769 Remove.
6770 (pascal_object_print_static_field): Update.
6771 * p-lang.h (pascal_val_print): Don't declare.
6772 * p-lang.c (pascal_language_defn): Update.
6773 * opencl-lang.c (opencl_language_defn): Update.
6774 * objc-lang.c (objc_language_defn): Update.
6775 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6776 * m2-lang.h (m2_val_print): Don't declare.
6777 * m2-lang.c (m2_language_defn): Update.
6778 * language.h (struct language_defn) <la_val_print>: Remove.
6779 * language.c (unk_lang_value_print_inner): Rename. Change
6780 argument types.
6781 (unknown_language_defn, auto_language_defn): Update.
6782 * go-valprint.c (go_val_print): Remove.
6783 * go-lang.h (go_val_print): Don't declare.
6784 * go-lang.c (go_language_defn): Update.
6785 * f-valprint.c (f_val_print): Remove.
6786 * f-lang.h (f_value_print): Don't declare.
6787 * f-lang.c (f_language_defn): Update.
6788 * d-valprint.c (d_val_print): Remove.
6789 * d-lang.h (d_value_print): Don't declare.
6790 * d-lang.c (d_language_defn): Update.
6791 * cp-valprint.c (cp_print_value_fields)
6792 (cp_print_value_fields_rtti, cp_print_value): Remove.
6793 (cp_print_static_field): Update.
6794 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6795 (c_val_print_struct, c_val_print_union, c_val_print_int)
6796 (c_val_print_memberptr, c_val_print): Remove.
6797 * c-lang.h (c_val_print_array, cp_print_value_fields)
6798 (cp_print_value_fields_rtti): Don't declare.
6799 * c-lang.c (c_language_defn, cplus_language_defn)
6800 (asm_language_defn, minimal_language_defn): Update.
6801 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6802 (ada_val_print_enum): Take a struct value.
6803 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6804 (ada_val_print): Remove.
6805 (ada_value_print_1): Update.
6806 (printable_val_type): Remove.
6807 * ada-lang.h (ada_val_print): Don't declare.
6808 * ada-lang.c (ada_language_defn): Update.
6809
42331a1e
TT
68102020-03-13 Tom Tromey <tom@tromey.com>
6811
6812 * valprint.c (do_val_print): Update.
6813 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6814 a struct value.
6815 (value_to_value_object_no_release): Declare.
6816 * python/py-value.c (value_to_value_object_no_release): New
6817 function.
6818 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6819 struct value.
6820 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6821 function.
6822 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6823 a struct value.
6824 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6825 Declare.
6826 (gdbscm_apply_val_pretty_printer): Take a struct value.
6827 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6828 value.
6829 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6830 value.
6831 * extension-priv.h (struct extension_language_ops)
6832 <apply_val_pretty_printer>: Take a struct value.
6833 * cp-valprint.c (cp_print_value): Create a struct value.
6834 (cp_print_value): Update.
6835
3a916a97
TT
68362020-03-13 Tom Tromey <tom@tromey.com>
6837
6838 * ada-valprint.c (print_field_values): Call common_val_print.
6839
b59eac37
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * ada-valprint.c (val_print_packed_array_elements): Remove
6843 bitoffset and val parameters. Call common_val_print.
6844 (ada_val_print_string): Remove offset, address, and original_value
6845 parameters.
6846 (ada_val_print_array): Update.
6847 (ada_value_print_array): New function.
6848 (ada_value_print_1): Call it.
6849
03371129
TT
68502020-03-13 Tom Tromey <tom@tromey.com>
6851
6852 * ada-valprint.c (ada_value_print): Use common_val_print.
6853
2e088f8b
TT
68542020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6857
39ef85a8
TT
68582020-03-13 Tom Tromey <tom@tromey.com>
6859
6860 * ada-valprint.c (ada_value_print_num): New function.
6861 (ada_value_print_1): Use it.
6862
b9fa6e07
TT
68632020-03-13 Tom Tromey <tom@tromey.com>
6864
6865 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6866
416595d6
TT
68672020-03-13 Tom Tromey <tom@tromey.com>
6868
6869 * ada-valprint.c (ada_value_print_ptr): New function.
6870 (ada_value_print_1): Use it.
6871
5b5e15ec
TT
68722020-03-13 Tom Tromey <tom@tromey.com>
6873
6874 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6875 call common_val_print.
6876 (ada_val_print_1): Update.
6877 (ada_value_print_1): New function.
6878 (ada_value_print_inner): Rewrite.
6879
fbf54e75
TT
68802020-03-13 Tom Tromey <tom@tromey.com>
6881
6882 * cp-valprint.c (cp_print_value_fields): Update.
6883 (cp_print_value): New function.
6884
64b653ca
TT
68852020-03-13 Tom Tromey <tom@tromey.com>
6886
6887 * m2-valprint.c (m2_value_print_inner): Use
6888 cp_print_value_fields.
6889 * cp-valprint.c (cp_print_value_fields): New function.
6890 * c-valprint.c (c_value_print_struct): New function.
6891 (c_value_print_inner): Use c_value_print_struct.
6892 * c-lang.h (cp_print_value_fields): Declare.
6893
6999f067
TT
68942020-03-13 Tom Tromey <tom@tromey.com>
6895
6896 * c-valprint.c (c_value_print_array): New function.
6897 (c_value_print_inner): Use it.
6898
ce80b8bd
TT
68992020-03-13 Tom Tromey <tom@tromey.com>
6900
6901 * c-valprint.c (c_value_print_memberptr): New function.
6902 (c_value_print_inner): Use it.
6903
2faac269
TT
69042020-03-13 Tom Tromey <tom@tromey.com>
6905
6906 * c-valprint.c (c_value_print_int): New function.
6907 (c_value_print_inner): Use it.
6908
da3e2c29
TT
69092020-03-13 Tom Tromey <tom@tromey.com>
6910
6911 * c-valprint.c (c_value_print_ptr): New function.
6912 (c_value_print_inner): Use it.
6913
50836231
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * c-valprint.c (c_value_print_inner): Rewrite.
6917
4f412b6e
TT
69182020-03-13 Tom Tromey <tom@tromey.com>
6919
6920 * valprint.c (generic_value_print_complex): New function.
6921 (generic_value_print): Use it.
6922
f5354008
TT
69232020-03-13 Tom Tromey <tom@tromey.com>
6924
6925 * valprint.c (generic_val_print_float): Don't call
6926 val_print_scalar_formatted.
6927 (generic_val_print, generic_value_print): Update.
6928
3eec3b05
TT
69292020-03-13 Tom Tromey <tom@tromey.com>
6930
6931 * valprint.c (generic_value_print_char): New function
6932 (generic_value_print): Use it.
6933
fdddfccb
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * valprint.c (generic_value_print_int): New function.
6937 (generic_value_print): Use it.
6938
6dde7521
TT
69392020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * valprint.c (generic_value_print_bool): New function.
6942 (generic_value_print): Use it.
6943
4112d2e6
TT
69442020-03-13 Tom Tromey <tom@tromey.com>
6945
6946 * valprint.c (generic_val_print_func): Simplify.
6947 (generic_val_print, generic_value_print): Update.
6948
65786af6
TT
69492020-03-13 Tom Tromey <tom@tromey.com>
6950
6951 * valprint.c (generic_val_print_flags): Remove.
6952 (generic_val_print, generic_value_print): Update.
6953 (val_print_type_code_flags): Add original_value parameter.
6954
40f3ce18
TT
69552020-03-13 Tom Tromey <tom@tromey.com>
6956
6957 * valprint.c (generic_val_print): Update.
6958 (generic_value_print): Update.
6959 * valprint.c (generic_val_print_enum): Don't call
6960 val_print_scalar_formatted.
6961
2a5b130b
TT
69622020-03-13 Tom Tromey <tom@tromey.com>
6963
6964 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6965 * valprint.c (generic_value_print_ptr): New function.
6966
abc66ce9
TT
69672020-03-13 Tom Tromey <tom@tromey.com>
6968
6969 * valprint.c (generic_value_print): Rewrite.
6970
07a32858
TT
69712020-03-13 Tom Tromey <tom@tromey.com>
6972
6973 * p-valprint.c (pascal_object_print_value_fields)
6974 (pascal_object_print_value): New functions.
6975
64d64d3a
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * p-valprint.c (pascal_value_print_inner): Rewrite.
6979
6a95a1f5
TT
69802020-03-13 Tom Tromey <tom@tromey.com>
6981
6982 * f-valprint.c (f_value_print_innner): Rewrite.
6983
59fcdac6
TT
69842020-03-13 Tom Tromey <tom@tromey.com>
6985
6986 * m2-valprint.c (m2_print_unbounded_array): New overload.
6987 (m2_print_unbounded_array): Update.
6988 (m2_print_array_contents): Take a struct value.
6989 (m2_value_print_inner): Rewrite.
6990
d133c3e1
TT
69912020-03-13 Tom Tromey <tom@tromey.com>
6992
6993 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6994 (d_value_print_inner): New function.
6995 * d-lang.h (d_value_print_inner): Declare.
6996 * d-lang.c (d_language_defn): Use d_value_print_inner.
6997
23b0f06b
TT
69982020-03-13 Tom Tromey <tom@tromey.com>
6999
7000 * go-valprint.c (go_value_print_inner): New function.
7001 * go-lang.h (go_value_print_inner): Declare.
7002 * go-lang.c (go_language_defn): Use go_value_print_inner.
7003
5f56f7cb
TT
70042020-03-13 Tom Tromey <tom@tromey.com>
7005
7006 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7007 API.
7008 (rust_val_print): Rewrite.
7009 (rust_value_print_inner): New function, from rust_val_print.
7010 (rust_language_defn): Use rust_value_print_inner.
7011
26792ee0
TT
70122020-03-13 Tom Tromey <tom@tromey.com>
7013
7014 * ada-valprint.c (ada_value_print_inner): New function.
7015 * ada-lang.h (ada_value_print_inner): Declare.
7016 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7017
24051bbe
TT
70182020-03-13 Tom Tromey <tom@tromey.com>
7019
7020 * f-valprint.c (f_value_print_innner): New function.
7021 * f-lang.h (f_value_print_innner): Declare.
7022 * f-lang.c (f_language_defn): Use f_value_print_innner.
7023
c0941be6
TT
70242020-03-13 Tom Tromey <tom@tromey.com>
7025
7026 * p-valprint.c (pascal_value_print_inner): New function.
7027 * p-lang.h (pascal_value_print_inner): Declare.
7028 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7029
62c4663d
TT
70302020-03-13 Tom Tromey <tom@tromey.com>
7031
7032 * m2-valprint.c (m2_value_print_inner): New function.
7033 * m2-lang.h (m2_value_print_inner): Declare.
7034 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7035
62182190
TT
70362020-03-13 Tom Tromey <tom@tromey.com>
7037
7038 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7039 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7040 * c-valprint.c (c_value_print_inner): New function.
7041 * c-lang.h (c_value_print_inner): Declare.
7042 * c-lang.c (c_language_defn, cplus_language_defn)
7043 (asm_language_defn, minimal_language_defn): Use
7044 c_value_print_inner.
7045
1e592a8a
TT
70462020-03-13 Tom Tromey <tom@tromey.com>
7047
7048 * p-valprint.c (pascal_object_print_value_fields): Now static.
7049 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7050
7fe471e9
TT
70512020-03-13 Tom Tromey <tom@tromey.com>
7052
7053 * c-valprint.c (c_val_print_array): Simplify.
7054
d121c6ce
TT
70552020-03-13 Tom Tromey <tom@tromey.com>
7056
7057 * valprint.c (value_print_array_elements): New function.
7058 * valprint.h (value_print_array_elements): Declare.
7059
4dba70ee
TT
70602020-03-13 Tom Tromey <tom@tromey.com>
7061
7062 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7063 * mips-tdep.c (mips_print_register): Use
7064 value_print_scalar_formatted.
7065
4f9ae810
TT
70662020-03-13 Tom Tromey <tom@tromey.com>
7067
7068 * valprint.h (value_print_scalar_formatted): Declare.
7069 * valprint.c (value_print_scalar_formatted): New function.
7070
156bfec9
TT
70712020-03-13 Tom Tromey <tom@tromey.com>
7072
7073 * valprint.h (generic_value_print): Declare.
7074 * valprint.c (generic_value_print): New function.
7075
2b4e573d
TT
70762020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * valprint.c (do_val_print): Call la_value_print_inner, if
7079 available.
7080 * rust-lang.c (rust_language_defn): Update.
7081 * p-lang.c (pascal_language_defn): Update.
7082 * opencl-lang.c (opencl_language_defn): Update.
7083 * objc-lang.c (objc_language_defn): Update.
7084 * m2-lang.c (m2_language_defn): Update.
7085 * language.h (struct language_defn) <la_value_print_inner>: New
7086 member.
7087 * language.c (unknown_language_defn, auto_language_defn): Update.
7088 * go-lang.c (go_language_defn): Update.
7089 * f-lang.c (f_language_defn): Update.
7090 * d-lang.c (d_language_defn): Update.
7091 * c-lang.c (c_language_defn, cplus_language_defn)
7092 (asm_language_defn, minimal_language_defn): Update.
7093 * ada-lang.c (ada_language_defn): Update.
7094
a1f6a07c
TT
70952020-03-13 Tom Tromey <tom@tromey.com>
7096
7097 * c-valprint.c (c_value_print): Use common_val_print.
7098
410cf315
TT
70992020-03-13 Tom Tromey <tom@tromey.com>
7100
7101 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7102
72a45c93
TT
71032020-03-13 Tom Tromey <tom@tromey.com>
7104
7105 * f-valprint.c (f77_print_array_1, f_val_print): Use
7106 common_val_print.
7107
040f66bd
TT
71082020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * riscv-tdep.c (riscv_print_one_register_info): Use
7111 common_val_print.
7112
a6e05a6c
TT
71132020-03-13 Tom Tromey <tom@tromey.com>
7114
7115 * mi/mi-main.c (output_register): Use common_val_print.
7116
3444c526
TT
71172020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * infcmd.c (default_print_one_register_info): Use
7120 common_val_print.
7121
c2a44efe
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * valprint.h (common_val_print_checked): Declare.
7125 * valprint.c (common_val_print_checked): New function.
7126 * stack.c (print_frame_arg): Use common_val_print_checked.
7127
b0c26e99
TT
71282020-03-13 Tom Tromey <tom@tromey.com>
7129
7130 * valprint.c (do_val_print): New function, from val_print.
7131 (val_print): Use do_val_print.
7132 (common_val_print): Use do_val_print.
7133
ce3acbe9
TT
71342020-03-13 Tom Tromey <tom@tromey.com>
7135
7136 * valprint.c (value_print): Use scoped_value_mark.
7137
96c7f873
TV
71382020-03-13 Tom de Vries <tdevries@suse.de>
7139
7140 PR symtab/25646
7141 * psymtab.c (partial_symtab::partial_symtab): Don't set
7142 globals_offset and statics_offset. Push element onto
7143 current_global_psymbols and current_static_psymbols stacks.
7144 (concat): New function.
7145 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7146 element from current_global_psymbols and current_static_psymbols
7147 stacks. Concat popped elements to global_psymbols and
7148 static_symbols.
7149 (add_psymbol_to_list): Use current_global_psymbols and
7150 current_static_psymbols stacks.
7151 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7152 current_static_psymbols fields.
7153
6ba0a321
CB
71542020-03-12 Christian Biesinger <cbiesinger@google.com>
7155
7156 * corelow.c (sniff_core_bfd): Remove.
7157 (class core_target) <m_core_vec>: Remove.
7158 (core_target::core_target): Update.
7159 (core_file_fns): Remove.
7160 (deprecated_add_core_fns): Remove.
7161 (default_core_sniffer): Remove.
7162 (sniff_core_bfd): Remove.
7163 (default_check_format): Remove.
7164 (gdb_check_format): Remove.
7165 (core_target_open): Update.
7166 (core_target::get_core_register_section): Update.
7167 (get_core_registers_cb): Update.
7168 (core_target::fetch_registers): Update.
7169 * gdbcore.h (struct core_fns): Remove.
7170 (deprecated_add_core_fns): Remove.
7171 (default_core_sniffer): Remove.
7172 (default_check_format): Remove.
7173
227031b2
TT
71742020-03-12 Tom Tromey <tom@tromey.com>
7175
7176 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7177 CORE_ADDR.
7178 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7179
53807e9f
TT
71802020-03-12 Tom Tromey <tom@tromey.com>
7181
7182 * remote.c (remote_target::download_tracepoint)
7183 (remote_target::enable_tracepoint)
7184 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7185 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7186 sprintf_vma.
7187
64f25102
TT
71882020-03-12 Tom Tromey <tom@tromey.com>
7189
7190 * symfile-mem.c: Update CORE_ADDR size assert.
7191
272cd5a3
SM
71922020-03-12 Simon Marchi <simon.marchi@efficios.com>
7193
7194 * selftest.m4: Move to gdbsupport/.
7195 * acinclude.m4: Update path to selftest.m4.
7196
74cd3f9d
SM
71972020-03-12 Simon Marchi <simon.marchi@efficios.com>
7198
7199 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7200 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7201 gdbarch-selfselftests.c and selftest-arch.c.
7202 (SUBDIR_UNITTESTS_OBS): Rename to...
7203 (SELFTESTS_OBS): ... this.
7204 (COMMON_SFILES): Remove disasm-selftests.c and
7205 gdbarch-selftests.c.
7206 * configure.ac: Don't add selftest-arch.{c,o} to
7207 CONFIG_{SRCS,OBS}.
7208 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7209 preprocessor conditions.
7210
db6878ac
SM
72112020-03-12 Simon Marchi <simon.marchi@efficios.com>
7212
7213 * configure.ac: Don't source bfd/development.sh.
7214 * selftest.m4: Modify comment.
7215 * configure: Re-generate.
7216
4d696a5c
SM
72172020-03-12 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7220 not "true" or "false".
7221 * configure: Re-generate.
7222
8dd8e1c7
CB
72232020-03-12 Christian Biesinger <cbiesinger@google.com>
7224
7225 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7226 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7227 renamed to arm_nbsd_supply_gregset.
7228 (fetch_register): Update to call arm_nbsd_supply_gregset.
7229 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7230 (arm_netbsd_nat_target::fetch_registers): Update.
7231 (fetch_elfcore_registers): Removed.
7232 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7233 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7234 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7235 not require NetBSD system headers.
7236 (arm_nbsd_regset): New struct.
7237 (arm_nbsd_iterate_over_regset_sections): New function.
7238 (arm_netbsd_init_abi_common): Updated to call
7239 set_gdbarch_iterate_over_regset_sections.
7240 * arm-nbsd-tdep.h: New file.
7241
dd69bf7a
KB
72422020-03-11 Kevin Buettner <kevinb@redhat.com>
7243
7244 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7245 recursion.
7246
a0761e34
SM
72472020-03-11 Simon Marchi <simon.marchi@efficios.com>
7248
7249 * configure: Re-generate.
7250
e7a82140
TT
72512020-03-11 Tom Tromey <tromey@adacore.com>
7252
7253 * ada-typeprint.c (print_choices): Fix comment.
7254
dcc050c8
AB
72552020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7258 previous item in the list, when the list has no items.
7259
1c33af77
TV
72602020-03-11 Tom de Vries <tdevries@suse.de>
7261
7262 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7263 PROP_LOCLIST handling code.
7264
8c95582d
AB
72652020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7266
7267 * buildsym-legacy.c (record_line): Pass extra parameter to
7268 record_line.
7269 * buildsym.c (buildsym_compunit::record_line): Take an extra
7270 parameter, reduce duplication in the line table, and record the
7271 is_stmt flag in the line table.
7272 * buildsym.h (buildsym_compunit::record_line): Add extra
7273 parameter.
7274 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7275 non-statement lines.
7276 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7277 this to the symtab builder.
7278 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7279 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7280 through to dwarf_record_line_1.
7281 * infrun.c (process_event_stop_test): When stepping, don't stop at
7282 a non-statement instruction, and only refresh the step info when
7283 we land in the middle of a line's range. Also add an extra
7284 comment.
7285 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7286 field.
7287 * record-btrace.c (btrace_find_line_range): Only record lines
7288 marked as is-statement.
7289 * stack.c (frame_show_address): Show the frame address if we are
7290 in a non-statement sal.
7291 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7292 (maintenance_print_one_line_table): Print a header for the is_stmt
7293 column, and include is_stmt information in the output.
7294 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7295 preference to non-statements.
7296 (find_pcs_for_symtab_line): Prefer is-statement entries.
7297 (find_line_common): Likewise.
7298 * symtab.h (struct linetable_entry): Add is_stmt field.
7299 (struct symtab_and_line): Likewise.
7300 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7301 arranging the line table.
7302
e4003a34
TV
73032020-03-07 Tom de Vries <tdevries@suse.de>
7304
7305 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7306 DIE.
7307
e8932576
TT
73082020-03-07 Tom Tromey <tom@tromey.com>
7309
7310 * valops.c (value_literal_complex): Remove obsolete comment.
7311 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7312 comment.
7313
29734269
SM
73142020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7315
7316 * infrun.h: Forward-declare thread_info.
7317 (set_step_info): Add thread_info parameter, add doc.
7318 * infrun.c (set_step_info): Add thread_info parameter, move doc
7319 to header.
7320 * infrun.c (process_event_stop_test): Pass thread to
7321 set_step_info call.
7322 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7323 set_step_info.
7324 (prepare_one_step): Add thread_info parameter, pass it to
7325 set_step_frame and prepare_one_step (recursive) call.
7326 (step_1): Pass thread to prepare_one_step call.
7327 (step_command_fsm::should_stop): Pass thread to
7328 prepare_one_step.
7329 (until_next_fsm): Pass thread to set_step_frame call.
7330 (finish_command): Pass thread to set_step_info call.
7331
b7d64b29
HD
73322020-03-06 Hannes Domani <ssbssa@yahoo.de>
7333
7334 * windows-tdep.c (windows_solib_create_inferior_hook):
7335 Check if inferior is running.
7336
09f2921c
TV
73372020-03-06 Tom de Vries <tdevries@suse.de>
7338
7339 * NEWS: Fix "the the".
7340 * ctfread.c: Same.
7341
fd760e79
TV
73422020-03-06 Tom de Vries <tdevries@suse.de>
7343
7344 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7345
20ea4a60
AB
73462020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * .dir-locals.el: Add a comment referencing the other copies of
7349 this file.
7350
0afbabf0
JB
73512020-03-05 John Baldwin <jhb@FreeBSD.org>
7352
7353 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7354 psargs.
7355
842806cb
TBA
73562020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7357
7358 * .gitattributes: New file.
7359
be1e3d3e
TT
73602020-03-04 Tom Tromey <tom@tromey.com>
7361
7362 * symmisc.c (print_symbol_bcache_statistics)
7363 (print_objfile_statistics): Update.
7364 * symfile.c (allocate_symtab): Use intern.
7365 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7366 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7367 macro_cache>: Remove.
7368 <string_cache>: New member.
7369 (struct objfile) <intern>: New methods.
7370 * elfread.c (elf_symtab_read): Use intern.
7371 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7372 (dwarf2_compute_name, dwarf2_physname)
7373 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7374 names.
7375 (guess_partial_die_structure_name): Update.
7376 (partial_die_info::fixup): Intern name.
7377 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7378 name.
7379 (dwarf2_name): Intern name. Update.
7380 * buildsym.c (buildsym_compunit::get_macro_table): Use
7381 string_cache.
7382
4e7625fd
TT
73832020-03-04 Tom Tromey <tom@tromey.com>
7384
7385 * jit.c (bfd_open_from_target_memory): Make "target" const.
7386 * corefile.c (gnutarget): Now const.
7387 * gdbcore.h (gnutarget): Now const.
7388
46f9f931
HD
73892020-03-04 Hannes Domani <ssbssa@yahoo.de>
7390
7391 * NEWS: Mention support for WOW64 processes.
7392 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7393 (amd64_windows_segment_register_p): Remove static.
7394 (_initialize_amd64_windows_nat): Update.
7395 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7396 * i386-windows-nat.c (context_offset): Update.
7397 (i386_mappings): Rename and remove static.
7398 (i386_windows_segment_register_p): Remove static.
7399 (_initialize_i386_windows_nat): Update.
7400 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7401 (STATUS_WX86_SINGLE_STEP): New macro.
7402 (EnumProcessModulesEx): New macro.
7403 (Wow64SuspendThread): New macro.
7404 (Wow64GetThreadContext): New macro.
7405 (Wow64SetThreadContext): New macro.
7406 (Wow64GetThreadSelectorEntry): New macro.
7407 (windows_set_context_register_offsets): Add static.
7408 (windows_set_segment_register_p): Likewise.
7409 (windows_add_thread): Adapt for WOW64 processes.
7410 (windows_fetch_one_register): Likewise.
7411 (windows_nat_target::fetch_registers): Likewise.
7412 (windows_store_one_register): Likewise.
7413 (display_selector): Likewise.
7414 (display_selectors): Likewise.
7415 (handle_exception): Likewise.
7416 (windows_continue): Likewise.
7417 (windows_nat_target::resume): Likewise.
7418 (windows_add_all_dlls): Likewise.
7419 (do_initial_windows_stuff): Likewise.
7420 (windows_nat_target::attach): Likewise.
7421 (windows_get_exec_module_filename): Likewise.
7422 (windows_nat_target::create_inferior): Likewise.
7423 (windows_xfer_siginfo): Likewise.
7424 (_initialize_loadable): Initialize Wow64SuspendThread,
7425 Wow64GetThreadContext, Wow64SetThreadContext,
7426 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7427 * windows-nat.h (windows_set_context_register_offsets):
7428 Remove declaration.
7429 (windows_set_segment_register_p): Likewise.
7430 (i386_windows_segment_register_p): Add declaration.
7431 (amd64_windows_segment_register_p): Likewise.
7432
440cf44e
LM
74332020-03-04 Luis Machado <luis.machado@linaro.org>
7434
7435 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7436 in "info registers" for AArch64/ARM.
7437
7438 The change caused "info registers" to not print GPR's.
7439
7440 gdb/ChangeLog:
7441
7442 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7443
7444 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7445 when reg->group is empty and reggroup is not.
7446
1009d92f
TT
74472020-03-03 Tom Tromey <tromey@adacore.com>
7448
7449 * dwarf2/frame.c (struct dwarf2_frame_cache)
7450 <checked_tailcall_bottom, entry_cfa_sp_offset,
7451 entry_cfa_sp_offset_p>: Remove members.
7452 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7453 (dwarf2_frame_prev_register): Don't call
7454 dwarf2_tailcall_sniffer_first.
7455 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7456 * frame-unwind.c (add_unwinder): New fuction.
7457 (frame_unwind_init): Use it. Add tailcall unwinder.
7458
5e5d66b6
AB
74592020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7460 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7461
7462 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7463 value should be printed as true.
7464
584cf46d
HD
74652020-03-03 Hannes Domani <ssbssa@yahoo.de>
7466
7467 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7468 (windows_init_abi): Set and use windows_so_ops.
7469
7b973adc
SDJ
74702020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7471
7472 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7473 when verifying if dealing with a convenience variable.
7474
bb7b70ab
LM
74752020-03-03 Luis Machado <luis.machado@linaro.org>
7476
7477 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7478
9822cb57
SM
74792020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7480
7481 * infrun.c (gdbarch_supports_displaced_stepping): New.
7482 (use_displaced_stepping): Break up conditions in smaller pieces.
7483 Use gdbarch_supports_displaced_stepping.
7484 (displaced_step_prepare_throw): Use
7485 gdbarch_supports_displaced_stepping.
7486
63e163f2
AB
74872020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * NEWS: Mention new behaviour of the history filename.
7490 * top.c (write_history_p): Add comment.
7491 (show_write_history_p): Add header comment, give a different
7492 message when history writing is on, but the history filename is
7493 empty.
7494 (history_filename): Add comment.
7495 (history_filename_empty): New function.
7496 (show_history_filename): Add header comment, give a different
7497 message when the filename is empty.
7498 (init_history): Compare history_filename against nullptr, and only
7499 read history if the filename is not empty.
7500 (set_history_filename): Add header comment, and only make
7501 non-empty filenames absolute.
7502 (init_main): Make the filename argument to 'set history filename'
7503 optional.
7504
81b86b97
CB
75052020-03-02 Christian Biesinger <cbiesinger@google.com>
7506
7507 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7508 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7509 (fetch_fp_register): Update.
7510 (fetch_fp_regs): Update.
7511 (store_fp_register): Update.
7512 (store_fp_regs): Update.
7513 (arm_netbsd_nat_target::read_description): New function.
7514 (fetch_elfcore_registers): Update.
7515
24ed6739
AB
75162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7519 general_thread if the stop reply is missing a thread-id.
7520 (remote_target::process_stop_reply): Use the first non-exited
7521 thread if the target didn't pass a thread-id.
7522 * infrun.c (do_target_wait): Move call to
7523 switch_to_inferior_no_thread to ....
7524 (do_target_wait_1): ... here.
7525
a84bb2a0
JT
75262020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7527
7528 * debuginfod-support.c: Include defs.h first.
7529
658dadf0
TV
75302020-02-28 Tom de Vries <tdevries@suse.de>
7531
7532 * symfile.c (set_initial_language): Use default language for lookup.
7533
4ebe4877
SM
75342020-02-28 Simon Marchi <simon.marchi@efficios.com>
7535
7536 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7537 reader variable, pass `this` to read_cutu_die_from_dwo.
7538
e5da1139
AM
75392020-02-27 Aaron Merey <amerey@redhat.com>
7540
7541 * source.c (open_source_file): Check for nullptr when computing
7542 srcpath.
7543
317f7127
TT
75442020-02-27 Tom Tromey <tromey@adacore.com>
7545
7546 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7547 member.
7548 (dwarf2_add_field): Don't update nfields.
7549 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7550
3104d9ee
AB
75512020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7554 abs.
7555
b83470bf
TT
75562020-02-26 Tom Tromey <tom@tromey.com>
7557
7558 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7559 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7560 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7561 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7562 per_cu_data.
7563
edfe0a0c
TT
75642020-02-26 Tom Tromey <tom@tromey.com>
7565
7566 * dwarf2/index-write.c (psym_index_map): Change type.
7567 (add_address_entry_worker, write_one_signatured_type)
7568 (recursively_count_psymbols, recursively_write_psymbols)
7569 (class debug_names, psyms_seen_size, write_gdbindex)
7570 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7571
0d79cdc4
AM
75722020-02-26 Aaron Merey <amerey@redhat.com>
7573
7574 * Makefile.in: Handle optional debuginfod support.
7575 * NEWS: Update.
7576 * README: Add --with-debuginfod summary.
7577 * config.in: Regenerate.
7578 * configure: Regenerate.
7579 * configure.ac: Handle optional debuginfod support.
7580 * debuginfod-support.c: debuginfod helper functions.
7581 * debuginfod-support.h: Ditto.
7582 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7583 summary.
7584 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7585 when a dwz file cannot be found.
7586 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7587 debuginfo file cannot be found.
7588 * source.c (open_source_file): Query debuginfod servers when a
7589 source file cannot be found.
7590 * top.c (print_gdb_configuration): Include
7591 --{with,without}-debuginfod in the output.
7592
b65ce565
JG
75932020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7594
7595 * thread.c (thr_try_catch_cmd): Print thread name.
7596
d4c9a4f8
SM
75972020-02-26 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7600 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7601 dwarf2_fetch_die_type_sect_off): Move to...
7602 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7603 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7604 dwarf2_fetch_die_type_sect_off): ... here.
7605 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7606 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7607 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7608
0dce4280
TV
76092020-02-26 Tom de Vries <tdevries@suse.de>
7610
7611 PR gdb/25603
7612 * symfile.c (set_initial_language): Exit-early if
7613 language_mode == language_mode_manual.
7614
450a1bfc
SM
76152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7616
7617 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7618 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7619 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7620
9e80cfa1
AB
76212020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * gdbtypes.c (create_array_type_with_stride): Handle negative
7624 array strides.
7625 * valarith.c (value_subscripted_rvalue): Likewise.
7626
09624f1f
LM
76272020-02-25 Luis Machado <luis.machado@linaro.org>
7628
7629 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7630
8cb5117c
SM
76312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * loc.h (dwarf2_get_die_type): Move to...
7634 * read.h (dwarf2_get_die_type): ... here.
7635 * read.c (dwarf2_get_die_type): Move doc to header.
7636
c325c44e
JB
76372020-02-25 Joel Brobecker <brobecker@adacore.com>
7638
7639 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7640 'gnulib/Makefile.in' to the list.
7641
4ac93832
TT
76422020-02-24 Tom Tromey <tom@tromey.com>
7643
7644 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7645 Remove.
7646 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7647 XOBNEWVEC.
7648
197400e8
TT
76492020-02-24 Tom Tromey <tom@tromey.com>
7650
7651 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7652 New method.
7653 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7654 (dw2_do_instantiate_symtab, dw2_get_file_names)
7655 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7656
76935768
TT
76572020-02-24 Tom Tromey <tom@tromey.com>
7658
7659 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7660 make_scoped_restore.
7661 (dwarf2_psymtab::read_symtab): Don't clear
7662 reading_partial_symbols.
7663
a88ef40d
TV
76642020-02-24 Tom de Vries <tdevries@suse.de>
7665
7666 PR gdb/25592
7667 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7668
c9af6521
TV
76692020-02-24 Tom de Vries <tdevries@suse.de>
7670
7671 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7672 commands layout next/prev/regs.
7673
5707a07a
TT
76742020-02-22 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7677 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7678
3b0fb49e
TT
76792020-02-22 Tom Tromey <tom@tromey.com>
7680
7681 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7682
283be8bf
TT
76832020-02-22 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7686 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7687 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7688 * tui/tui.c (_initialize_tui): Add usage text.
7689
ca793b96
TT
76902020-02-22 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui-win.c (tui_set_focus_command)
7693 (tui_set_win_height_command): Use error_no_arg.
7694 (_initialize_tui_win): Update help text.
7695 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7696
432b5c40
TT
76972020-02-22 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7700 * tui/tui-disasm.h (struct tui_disasm_window)
7701 <display_start_addr>: Declare.
7702 * tui/tui-source.h (struct tui_source_window)
7703 <display_start_addr>: Declare.
7704 * tui/tui-winsource.h (struct tui_source_window_base)
7705 <show_source_line, display_start_addr>: New methods.
7706 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7707 Rename and move to protected section.
7708 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7709 (tui_source_window_base::do_erase_source_content): Update.
7710 (tui_source_window_base::show_source_line): Now a method.
7711 (tui_source_window_base::show_source_content)
7712 (tui_source_window_base::tui_source_window_base)
7713 (tui_source_window_base::rerender)
7714 (tui_source_window_base::refill)
7715 (tui_source_window_base::do_scroll_horizontal)
7716 (tui_source_window_base::set_is_exec_point_at)
7717 (tui_source_window_base::update_breakpoint_info)
7718 (tui_source_window_base::update_exec_info): Update.
7719 * tui/tui-source.c (tui_source_window::set_contents)
7720 (tui_source_window::showing_source_p)
7721 (tui_source_window::do_scroll_vertical)
7722 (tui_source_window::location_matches_p)
7723 (tui_source_window::line_is_displayed): Update.
7724 (tui_source_window::display_start_addr): New method.
7725 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7726 (tui_disasm_window::do_scroll_vertical)
7727 (tui_disasm_window::location_matches_p): Update.
7728 (tui_disasm_window::display_start_addr): New method.
7729
01b1af32
TT
77302020-02-22 Tom Tromey <tom@tromey.com>
7731
7732 * NEWS: Add entry for gdb.register_window_type.
7733 * tui/tui-layout.h (window_factory): New typedef.
7734 (tui_register_window): Declare.
7735 * tui/tui-layout.c (saved_tui_windows): New global.
7736 (tui_apply_current_layout): Use it.
7737 (tui_register_window): New function.
7738 * python/python.c (do_start_initialization): Call
7739 gdbpy_initialize_tui.
7740 (python_GdbMethods): Add "register_window_type" function.
7741 * python/python-internal.h (gdbpy_register_tui_window)
7742 (gdbpy_initialize_tui): Declare.
7743 * python/py-tui.c: New file.
7744 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7745
fc96d20b
TT
77462020-02-22 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7749
935c78c0
TT
77502020-02-22 Tom Tromey <tom@tromey.com>
7751
7752 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7753 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7754 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7755 (tui_set_win_focus_to): Move from tui-win.c.
7756
0240c8f1
TT
77572020-02-22 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7760 functions.
7761 (known_window_types): New global.
7762 (tui_get_window_by_name): Reimplement.
7763 (initialize_known_windows): New function.
7764 (validate_window_name): Rewrite.
7765 (_initialize_tui_layout): Call initialize_known_windows.
7766
fdb01f0c
TT
77672020-02-22 Tom Tromey <tom@tromey.com>
7768
7769 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7770 Remove constants.
7771 * tui/tui-winsource.h (struct tui_source_window_base)
7772 <tui_source_window_base>: Remove parameter.
7773 * tui/tui-winsource.c
7774 (tui_source_window_base::tui_source_window_base): Remove
7775 parameter.
7776 (tui_source_window_base::refill): Update.
7777 * tui/tui-stack.h (struct tui_locator_window)
7778 <tui_locator_window>: Update.
7779 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7780 Default the constructor.
7781 * tui/tui-regs.h (struct tui_data_item_window)
7782 <tui_data_item_window>: Default the constructor.
7783 (struct tui_data_window) <tui_data_window>: Likewise.
7784 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7785 Default the constructor.
7786 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7787 Default the constructor.
7788 <type>: Remove.
7789 (struct tui_win_info) <tui_win_info>: Default the constructor.
7790 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7791 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7792 Default the constructor.
7793
865a5aec
TT
77942020-02-22 Tom Tromey <tom@tromey.com>
7795
7796 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7797 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7798 * tui/tui-win.c (tui_resize_all): Don't call
7799 tui_delete_invisible_windows.
7800 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7801 done.
7802 (tui_set_layout): Update.
7803 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7804 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7805 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7806
e098d18c
TT
78072020-02-22 Tom Tromey <tom@tromey.com>
7808
7809 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7810 correctly.
7811
eb9c8874
TT
78122020-02-22 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7815
7eed1a8e
TT
78162020-02-22 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-winsource.h (struct tui_source_window_iterator)
7819 <inner_iterator>: New etytypedef.
7820 <tui_source_window_iterator>: Take "end" parameter.
7821 <tui_source_window_iterator>: Take iterator.
7822 <operator*, advance>: Update.
7823 <m_iter>: Change type.
7824 <m_end>: New field.
7825 (struct tui_source_windows) <begin, end>: Update.
7826 * tui/tui-layout.c (tui_windows): New global.
7827 (tui_apply_current_layout): Clear tui_windows.
7828 (tui_layout_window::apply): Update tui_windows.
7829 * tui/tui-data.h (tui_windows): Declare.
7830 (all_tui_windows): Now inline function.
7831 (class tui_window_iterator, struct all_tui_windows): Remove.
7832
7c043ba6
TT
78332020-02-22 Tom Tromey <tom@tromey.com>
7834
7835 PR tui/17850:
7836 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7837 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7838 "height" argument.
7839 (class tui_layout_window) <get_sizes>: Likewise.
7840 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7841 argument.
7842 <get_sizes>: Add "height" argument.
7843 <m_vertical>: New field.
7844 * tui/tui-layout.c (tui_layout_split::clone): Update.
7845 (tui_layout_split::get_sizes): Add "height" argument.
7846 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7847 (tui_new_layout_command): Parse "-horizontal".
7848 (_initialize_tui_layout): Update help string.
7849 (tui_layout_split::specification): Add "-horizontal" when needed.
7850 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7851 argument.
7852 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7853 New methods.
7854
6bc56648
TT
78552020-02-22 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-layout.h (enum tui_adjust_result): New.
7858 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7859 (class tui_layout_window) <adjust_size>: Return
7860 tui_adjust_result. Rewrite.
7861 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7862 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7863
c22fef7e
TT
78642020-02-22 Tom Tromey <tom@tromey.com>
7865
7866 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7867 parameter and return types.
7868 (class tui_layout_base) <specification>: Add "depth".
7869 (class tui_layout_window) <specification>: Add "depth".
7870 (class tui_layout_split) <specification>: Add "depth".
7871 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7872 and return types.
7873 (tui_new_layout_command): Parse sub-layouts.
7874 (_initialize_tui_layout): Update help string.
7875 (tui_layout_window::specification): Add "depth".
7876 (add_layout_command): Update.
7877
ee325b61
TT
78782020-02-22 Tom Tromey <tom@tromey.com>
7879
7880 * NEWS: Add "tui new-layout" item.
7881 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7882 Add new-layout command to help text.
7883 (validate_window_name): New function.
7884 (tui_new_layout_command): New function.
7885 (_initialize_tui_layout): Register "new-layout".
7886 (tui_layout_window::specification): New method.
7887 (tui_layout_window::specification): New method.
7888 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7889 method.
7890 (class tui_layout_window) <specification>: New method.
7891 (class tui_layout_split) <specification>: New method.
7892
416eb92d
TT
78932020-02-22 Tom Tromey <tom@tromey.com>
7894
7895 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7896 * tui/tui-win.c (window_name_completer): Update comment.
7897 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7898 Declare method.
7899 (class tui_layout_window) <replace_window>: Likewise.
7900 (class tui_layout_split) <replace_window>: Likewise.
7901 (tui_set_layout): Don't declare.
7902 (tui_set_initial_layout): Declare function.
7903 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7904 (asm_regs_layout): New globals.
7905 (tui_current_layout, show_layout): Remove.
7906 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7907 (find_layout, tui_apply_layout): New function.
7908 (layout_completer): Remove.
7909 (tui_next_layout): Reimplement.
7910 (tui_next_layout_command): New function.
7911 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7912 (tui_regs_layout): Reimplement.
7913 (tui_regs_layout_command): New function.
7914 (extract_display_start_addr): Rewrite.
7915 (next_layout, prev_layout): Remove.
7916 (tui_layout_window::replace_window): New method.
7917 (tui_layout_split::replace_window): New method.
7918 (destroy_layout): New function.
7919 (layout_list): New global.
7920 (add_layout_command): New function.
7921 (initialize_layouts): Update.
7922 (tui_layout_command): New function.
7923 (_initialize_tui_layout): Install "layout" commands.
7924 * tui/tui-data.h (enum tui_layout_type): Remove.
7925 (tui_current_layout): Don't declare.
7926
0dbc2fc7
TT
79272020-02-22 Tom Tromey <tom@tromey.com>
7928
7929 * tui/tui-regs.c (tui_reg_layout): Remove.
7930 (tui_reg_command): Use tui_regs_layout.
7931 * tui/tui-layout.h (tui_reg_command): Declare.
7932 * tui/tui-layout.c (tui_reg_command): New function.
7933
5afe342e
TT
79342020-02-22 Tom Tromey <tom@tromey.com>
7935
7936 * tui/tui.c (tui_rl_delete_other_windows): Call
7937 tui_remove_some_windows.
7938 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7939 Declare method.
7940 (class tui_layout_window) <remove_windows>: New method.
7941 (class tui_layout_split) <remove_windows>: Declare.
7942 (tui_remove_some_windows): Declare.
7943 * tui/tui-layout.c (tui_remove_some_windows): New function.
7944 (tui_layout_split::remove_windows): New method.
7945
427326a8
TT
79462020-02-22 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7949 * tui/tui-layout.h (tui_next_layout): Declare.
7950 * tui/tui-layout.c (tui_next_layout): New function.
7951
3fe12b6d
TT
79522020-02-22 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7955 correct coordinates.
7956
59b8b5d2
TT
79572020-02-22 Tom Tromey <tom@tromey.com>
7958
7959 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7960 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7961 DATA_WIN case.
7962
2a3d458b
TT
79632020-02-22 Tom Tromey <tom@tromey.com>
7964
7965 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7966 TUI_DISASM_WIN, not tui_win_list.
7967
3f0cbb04
TT
79682020-02-22 Tom Tromey <tom@tromey.com>
7969
7970 * valprint.c (generic_val_print_enum_1)
7971 (val_print_type_code_flags): Style member names.
7972 * rust-lang.c (val_print_struct, rust_print_enum)
7973 (rust_print_struct_def, rust_internal_print_type): Style member
7974 names.
7975 * p-valprint.c (pascal_object_print_value_fields): Style member
7976 names. Only call fprintf_symbol_filtered for static members.
7977 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7978 * f-valprint.c (f_val_print): Style member names.
7979 * f-typeprint.c (f_type_print_base): Style member names.
7980 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7981 call fprintf_symbol_filtered for static members.
7982 (cp_print_class_member): Style member names.
7983 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7984 member names.
7985 * ada-valprint.c (ada_print_scalar): Style enum names.
7986 (ada_val_print_enum): Likewise.
7987 * ada-typeprint.c (print_enum_type): Style enum names.
7988
d4d947ae
TT
79892020-02-21 Tom Tromey <tom@tromey.com>
7990
7991 * psympriv.h (struct partial_symtab): Update comment.
7992
e94e944b
TT
79932020-02-21 Tom Tromey <tromey@adacore.com>
7994
7995 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7996 type is CORE_ADDR.
7997
1eb73179
TV
79982020-02-21 Tom de Vries <tdevries@suse.de>
7999
8000 PR gdb/25534
8001 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8002 if dependencies[i]->user != NULL.
8003
4f180d53
AT
80042020-02-21 Ali Tamur <tamur@google.com>
8005
8006 * dwarf2/read.c (dwarf2_name): Add null check.
8007
22b6cd70
TT
80082020-02-20 Tom Tromey <tom@tromey.com>
8009
8010 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8011 ">=", in binary search.
8012 (dwarf2_find_containing_comp_unit): New overload.
8013 (run_test): New self-test.
8014 (_initialize_dwarf2_read): Register new test.
8015
bd0cf5a6
NC
80162020-02-20 Nelson Chu <nelson.chu@sifive.com>
8017
8018 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8019 * riscv-tdep.h: Likewise.
8020 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8021 rv32-only CSR.
8022 * features/riscv/64bit-csr.xml: Regenerated.
8023
3f702acd
SDJ
80242020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8025 Tom Tromey <tom@tromey.com>
8026
8027 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8028 of 'fputc_unfiltered'.
8029 (putchar_unfiltered): Call 'fputc_unfiltered'.
8030 (fputc_unfiltered): Call 'fputs_unfiltered'.
8031
d13c7322
AB
80322020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8033
8034 * config.in: Regenerate.
8035 * configure: Regenerate.
8036 * configure.ac: Add --with-python-libdir option.
8037 * main.c: Use WITH_PYTHON_LIBDIR.
8038
869d8950
TT
80392020-02-19 Tom Tromey <tom@tromey.com>
8040
8041 * symtab.c (general_symbol_info::compute_and_set_names): Use
8042 obstack_strndup. Simplify call to symbol_set_demangled_name.
8043
298e9637
SM
80442020-02-19 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * dwarf2/read.c (allocate_signatured_type_table,
8047 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8048 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8049 Remove objfile parameter, update all callers.
8050
08410482
DE
80512020-02-19 Doug Evans <dje@google.com>
8052
8053 PR rust/25535
8054 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8055 rust_enum_variant calculation.
8056
dfdeeca1
TT
80572020-02-19 Tom Tromey <tromey@adacore.com>
8058
8059 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8060
2ef5453b
TT
80612020-02-19 Tom Tromey <tromey@adacore.com>
8062
8063 * ada-lang.c (cache_symbol): Use obstack_strdup.
8064
9f1528a1
AB
80652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8066
8067 * configure: Regenerate.
8068
d3c22fa8
TT
80692020-02-19 Tom Tromey <tromey@adacore.com>
8070
8071 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8072 NULL check.
8073
bf84f706
MR
80742020-02-19 Maciej W. Rozycki <macro@wdc.com>
8075
8076 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8077
d1c9b20f
AB
80782020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8079
8080 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8081 if GDBSERVER is not defined.
8082 (riscv_tdesc_cache): Likewise, also store const target_desc.
8083 (STATIC_IN_GDB): Define.
8084 (riscv_create_target_description): Update declaration with
8085 STATIC_IN_GDB.
8086 (riscv_lookup_target_description): New function, only define if
8087 GDBSERVER is not defined.
8088 * arch/riscv.h (riscv_create_target_description): Declare only
8089 when GDBSERVER is defined.
8090 (riscv_lookup_target_description): New declaration when GDBSERVER
8091 is not defined.
8092 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8093 (riscv_linux_read_features): ...this, and return
8094 riscv_gdbarch_features instead of target_desc.
8095 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8096 (riscv_linux_read_description): Rename to...
8097 (riscv_linux_read_features): ...this.
8098 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8099 Update to use riscv_gdbarch_features and
8100 riscv_lookup_target_description.
8101 * riscv-tdep.c (riscv_find_default_target_description): Use
8102 riscv_lookup_target_description instead of
8103 riscv_create_target_description.
8104
373d7ac0
SM
81052020-02-18 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * valprint.c (generic_val_print_enum_1): When printing a flag
8108 enum with value 0 and there is no enumerator with value 0, print
8109 just "0" instead of "(unknown: 0x0)".
8110
b29a2df0
SM
81112020-02-18 Simon Marchi <simon.marchi@efficios.com>
8112
8113 * valprint.c (generic_val_print_enum_1): Print unknown part of
8114 flag enum in hex.
8115
6740f0cc
SM
81162020-02-18 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8119 flag enums to contain duplicate enumerators.
8120 * valprint.c (generic_val_print_enum_1): Update comment.
8121
edd45eb0
SM
81222020-02-18 Simon Marchi <simon.marchi@efficios.com>
8123
8124 * dwarf2/read.c: Include "count-one-bits.h".
8125 (update_enumeration_type_from_children): If an enumerator has
8126 multiple bits set, don't treat the enumeration as a "flag enum".
8127 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8128 of flag enums have 0 or 1 bit set.
8129
6d0cf446
BE
81302020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8131
8132 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8133 conversion.
8134 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8135 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8136 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8137 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8138 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8139
7001c1b7
SM
81402020-02-18 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8143
fdb61c6c
SM
81442020-02-14 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8147 displaced_step_closure_up.
8148 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8149 (struct displaced_step_closure_up):
8150 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8151 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8152 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8153 Likewise.
8154 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8155 * gdbarch.c, gdbarch.h: Re-generate.
8156 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8157 displaced_step_closure_up.
8158 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8159 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8160 * infrun.h (displaced_step_closure_up): New type alias.
8161 (struct displaced_step_inferior_state) <step_closure>: Change
8162 type to displaced_step_closure_up.
8163 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8164 displaced_step_closure_up.
8165 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8166
a4a38eb4
TT
81672020-02-14 Tom Tromey <tom@tromey.com>
8168
8169 * minidebug.c (gnu_debug_key): New global.
8170 (find_separate_debug_file_in_section): Use it.
8171
e8217e61
SM
81722020-02-14 Simon Marchi <simon.marchi@efficios.com>
8173
8174 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8175 std::unique_ptr.
8176 * gdbarch.c: Re-generate.
8177 * gdbarch.h: Re-generate.
8178 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8179 change.
8180 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8181 type to std::unique_ptr.
8182 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8183 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8184 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8185 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8186 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8187 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8188 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8189 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8190 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8191
d8d83535
SM
81922020-02-14 Simon Marchi <simon.marchi@efficios.com>
8193
8194 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8195 std::unique_ptr.
8196 (displaced_step_clear): Rename to...
8197 (displaced_step_reset): ... this. Just call displaced->reset ().
8198 (displaced_step_clear_cleanup): Rename to...
8199 (displaced_step_reset_cleanup): ... this.
8200 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8201 (displaced_step_fixup): Likewise.
8202 (resume_1): Likewise.
8203 (handle_inferior_event): Restore child's memory before calling
8204 displaced_step_fixup on the parent.
8205 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8206 to std::unique_ptr.
8207 <step_closure>: Change type to std::unique_ptr.
8208
5f661e03
SM
82092020-02-14 Simon Marchi <simon.marchi@efficios.com>
8210
8211 * arm-tdep.c: Include count-one-bits.h.
8212 (cleanup_block_store_pc): Use count_one_bits.
8213 (cleanup_block_load_pc): Use count_one_bits.
8214 (arm_copy_block_xfer): Use count_one_bits.
8215 (thumb2_copy_block_xfer): Use count_one_bits.
8216 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8217 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8218 (thumb_get_next_pcs_raw): Use count_one_bits.
8219 (arm_get_next_pcs_raw): Use count_one_bits_l.
8220 * arch/arm.c (bitcount): Remove.
8221 * arch/arm.h (bitcount): Remove.
8222
8084e579
TT
82232020-02-14 Tom Tromey <tromey@adacore.com>
8224
8225 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8226 Update.
8227 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8228 * dwarf2/loc.c (call_site_find_chain_1): Return
8229 unique_xmalloc_ptr.
8230 (call_site_find_chain): Likewise.
8231
258bf0ee
RB
82322020-02-14 Richard Biener <rguenther@suse.de>
8233
8234 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8235 on expression with division operators.
8236
f98a8458
AKS
82372020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8238
8239 * MAINTAINERS (Write After Approval): Adding myself.
8240
d1437c0e
TT
82412020-02-12 Tom Tromey <tom@tromey.com>
8242
8243 * event-loop.c (event_data, gdb_event, event_handler_func):
8244 Remove.
8245
3d4560f7
TT
82462020-02-12 Tom Tromey <tom@tromey.com>
8247
8248 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8249 (dwarf2_frame_objfile_data): Add comment.
8250 (find_comp_unit, set_comp_unit): New functions.
8251 (dwarf2_frame_find_fde): Use find_comp_unit.
8252 (dwarf2_build_frame_info): Use set_comp_unit.
8253
21982304
TT
82542020-02-12 Tom Tromey <tom@tromey.com>
8255
8256 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8257 (comp_unit): Don't initialize objfile.
8258 (execute_cfa_program): Add text_offset parameter.
8259 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8260 (dwarf2_frame_cache): Update.
8261 (dwarf2_build_frame_info): Don't set "objfile" member.
8262
4debb237
TT
82632020-02-12 Tom Tromey <tom@tromey.com>
8264
8265 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8266 (decode_frame_entry): Likewise.
8267 (dwarf2_build_frame_info): Update.
8268
0d404d44
TT
82692020-02-12 Tom Tromey <tom@tromey.com>
8270
8271 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8272 (decode_frame_entry_1): Use the comp_unit obstack.
8273
a7a3ae5c
TT
82742020-02-12 Tom Tromey <tom@tromey.com>
8275
8276 * dwarf2/frame.c (struct comp_unit): Add initializers and
8277 constructor.
8278 (dwarf2_frame_objfile_data): Store a comp_unit.
8279 (dwarf2_frame_find_fde): Update.
8280 (dwarf2_build_frame_info): Use "new".
8281
a9d65418
TT
82822020-02-12 Tom Tromey <tom@tromey.com>
8283
8284 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8285 (dwarf2_fde_table): Typedef for std::vector.
8286 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8287 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8288 (decode_frame_entry): Update.
8289 (dwarf2_build_frame_info): Use "new".
8290
7559c217
CB
82912020-02-12 Christian Biesinger <cbiesinger@google.com>
8292
8293 * arm-tdep.c (arm_gdbarch_init): Update.
8294 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8295 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8296 have_neon, is_m>: Change to bool.
8297
aeefc73c
CB
82982020-02-12 Christian Biesinger <cbiesinger@google.com>
8299
8300 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8301
d27b8e5f
TT
83022020-02-12 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8305
cd5900f3
HD
83062020-02-12 Hannes Domani <ssbssa@yahoo.de>
8307
8308 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8309 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8310
f056b22b
TT
83112020-02-11 Tom Tromey <tom@tromey.com>
8312
8313 * psymtab.h: Update comment.
8314
f92ff6b5
TT
83152020-02-11 Tom Tromey <tom@tromey.com>
8316
8317 * gdb_obstack.h (struct auto_obstack): Use
8318 DISABLE_COPY_AND_ASSIGN.
8319
3fd6912b
TT
83202020-02-11 Tom Tromey <tom@tromey.com>
8321
8322 * dwarf2/frame.h (struct objfile): Don't forward declare.
8323
69ed9b74
CB
83242020-02-11 Christian Biesinger <cbiesinger@google.com>
8325
8326 * cris-tdep.c (cris_supply_gregset): Change signature to match
8327 what struct regset expects.
8328 (cris_regset): New struct.
8329 (fetch_core_registers): Remove.
8330 (cris_iterate_over_regset_sections): New function.
8331 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8332 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8333
bda874f6
CB
83342020-02-11 Christian Biesinger <cbiesinger@google.com>
8335
8336 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8337 registers.
8338
754e1564
CB
83392020-02-11 Christian Biesinger <cbiesinger@google.com>
8340
8341 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8342
8ddd8e0e
SM
83432020-02-11 Simon Marchi <simon.marchi@efficios.com>
8344
8345 * configure: Re-generate.
8346
898e7f60
SM
83472020-02-11 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * configure: Re-generate.
8350
58df732b
SM
83512020-02-11 Simon Marchi <simon.marchi@efficios.com>
8352
8353 * acinclude: Update warning.m4 path.
8354 * warning.m4: Move to gdbsupport.
8355
da5bd37e
TT
83562020-02-11 Tom Tromey <tromey@adacore.com>
8357
8358 * remote.c (remote_console_output): Update.
8359 * printcmd.c (printf_command): Update.
8360 * event-loop.c (gdb_wait_for_event): Update.
8361 * linux-nat.c (sigchld_handler): Update.
8362 * remote-sim.c (gdb_os_write_stdout): Update.
8363 (gdb_os_flush_stdout): Update.
8364 (gdb_os_flush_stderr): Update.
8365 (gdb_os_write_stderr): Update.
8366 * exceptions.c (print_exception): Update.
8367 * remote-fileio.c (remote_fileio_func_read): Update.
8368 (remote_fileio_func_write): Update.
8369 * tui/tui.c (tui_enable): Update.
8370 * tui/tui-interp.c (tui_interp::init): Update.
8371 * utils.c (init_page_info): Update.
8372 (putchar_unfiltered, fputc_unfiltered): Update.
8373 (gdb_flush): Update.
8374 (emit_style_escape): Update.
8375 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8376 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8377 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8378 (stderr_file::write): Update.
8379 (stderr_file::puts): Update.
8380 * ui-file.h (ui_file_isatty, ui_file_write)
8381 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8382 (ui_file_puts): Don't declare.
8383
85f0dd3c
TV
83842020-02-10 Tom de Vries <tdevries@suse.de>
8385
8386 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8387 sentinel to char *.
8388
2e927613
TV
83892020-02-09 Tom de Vries <tdevries@suse.de>
8390
8391 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8392 filename if it matches "<artificial>".
8393
6bafc845
HD
83942020-02-09 Hannes Domani <ssbssa@yahoo.de>
8395
8396 * windows-tdep.c (struct enum_value_name): New struct.
8397 (create_enum): New function.
8398 (windows_get_siginfo_type): Create and use enum types.
8399
7928d571
HD
84002020-02-09 Hannes Domani <ssbssa@yahoo.de>
8401
8402 * NEWS: Mention $_siginfo support for Windows.
8403 * windows-nat.c (handle_exception): Set siginfo_er.
8404 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8405 (windows_xfer_siginfo): New function.
8406 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8407 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8408 (init_windows_gdbarch_data): New function.
8409 (get_windows_gdbarch_data): New function.
8410 (windows_get_siginfo_type): New function.
8411 (windows_init_abi): Register windows_get_siginfo_type.
8412 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8413
6751ebae
TT
84142020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8417 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8418 <keep>: Declare method.
8419 <m_keep>: Remove member.
8420 <~cutu_reader>: Remove.
8421 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8422 (cutu_reader::cutu_reader): Update.
8423 (cutu_reader::keep): Rename from ~cutu_reader.
8424 (process_psymtab_comp_unit, build_type_psymtabs_1)
8425 (process_skeletonless_type_unit, load_partial_comp_unit)
8426 (load_full_comp_unit, dwarf2_read_addr_index)
8427 (read_signatured_type): Update.
8428
135f5437
TT
84292020-02-08 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8432 "want_partial_unit" parameter.
8433 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8434 Inline check for DW_TAG_partial_unit.
8435 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8436
9f66ff1c
TT
84372020-02-08 Tom Tromey <tom@tromey.com>
8438
8439 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8440 read.c.
8441 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8442 read.c.
8443
c8a7a66f
TT
84442020-02-08 Tom Tromey <tom@tromey.com>
8445
8446 * dwarf2/read.c (read_address): Move to comp-unit.c.
8447 (dwarf2_rnglists_process, dwarf2_ranges_process)
8448 (read_attribute_value, dwarf_decode_lines_1)
8449 (var_decode_location, decode_locdesc): Update.
8450 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8451 read.c. Remove "cu" parameter.
8452 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8453 method.
8454
8266302d
TT
84552020-02-08 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8458 (read_indirect_line_string): Update.
8459 * dwarf2/comp-unit.c (read_offset): Remove.
8460 (read_comp_unit_head): Update.
8461 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8462 method.
8463 (read_offset): Don't declare.
8464
4057dfde
TT
84652020-02-08 Tom Tromey <tom@tromey.com>
8466
8467 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8468 * dwarf2/read.c (struct comp_unit_head): Move to
8469 dwarf2/comp-unit.h.
8470 (enum class rcuh_kind): Move to comp-unit.h.
8471 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8472 (read_comp_unit_head, error_check_comp_unit_head)
8473 (read_and_check_comp_unit_head): Move to comp-unit.c.
8474 (read_offset, dwarf_unit_type_name): Likewise.
8475 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8476 (cutu_reader::cutu_reader, read_call_site_scope)
8477 (find_partial_die, follow_die_offset): Update.
8478 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8479
24aa364d
TT
84802020-02-08 Tom Tromey <tom@tromey.com>
8481
8482 * dwarf2/read.c (read_offset_1): Move to leb.c.
8483 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8484 (dwarf_decode_macro_bytes): Update.
8485 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8486 * dwarf2/leb.h (read_offset): Declare.
8487
2c7d5afc
TT
84882020-02-08 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2/read.c (dwarf2_section_size): Remove.
8491 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8492 Update.
8493 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8494
4075cb26
TT
84952020-02-08 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2/read.c (read_initial_length): Move to leb.c.
8498 * dwarf2/leb.h (read_initial_length): Declare.
8499 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8500 handle_nonstd parameter.
8501 * dwarf2/frame.c (read_initial_length): Remove.
8502 (decode_frame_entry_1): Update.
8503
09ba997f
TT
85042020-02-08 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2/loc.c (dwarf2_find_location_expression)
8507 (dwarf_evaluate_loc_desc::get_tls_address)
8508 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8509 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8510 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8511 (dwarf2_compile_property_to_c)
8512 (dwarf2_loc_desc_get_symbol_read_needs)
8513 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8514 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8515 (loclist_describe_location, loclist_tracepoint_var_ref)
8516 (loclist_generate_c_location): Update.
8517 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8518 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8519 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8520 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8521 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8522 (dwarf2_per_cu_data::addr_size)
8523 (dwarf2_per_cu_data::ref_addr_size)
8524 (dwarf2_per_cu_data::text_offset)
8525 (dwarf2_per_cu_data::addr_type): Now methods.
8526 (per_cu_header_read_in): Make per_cu "const".
8527 (dwarf2_version): Remove.
8528 (dwarf2_per_cu_data::int_type): Now a method.
8529 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8530 (set_die_type, read_array_type, read_subrange_index_type)
8531 (read_tag_string_type, read_subrange_type): Update.
8532 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8533 offset_size, ref_addr_size, text_offset, addr_type, version,
8534 objfile, int_type, addr_sized_int_type>: Declare methods.
8535
96c738c0
TT
85362020-02-08 Tom Tromey <tom@tromey.com>
8537
8538 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8539 Move earlier.
8540
8fdd972c
TT
85412020-02-08 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2/read.h (dwarf_line_debug): Declare.
8544 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8545 * dwarf2/read.c: Move line_header code to new files.
8546 (dwarf_line_debug): No longer static.
8547 * dwarf2/line-header.c: New file.
8548 * dwarf2/line-header.h: New file.
8549
03075812
TT
85502020-02-08 Tom Tromey <tom@tromey.com>
8551
8552 * dwarf2/read.c (struct line_header) <file_full_name,
8553 file_file_name>: Return unique_xmalloc_ptr.
8554 (line_header::file_file_name): Update.
8555 (line_header::file_full_name): Update.
8556 (dw2_get_file_names_reader): Update.
8557 (macro_start_file): Update.
8558
bb822404
TT
85592020-02-08 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2/read.c (struct line_header) <file_full_name,
8562 file_file_name>: Declare methods.
8563 (dw2_get_file_names_reader): Update.
8564 (file_file_name): Now a method.
8565 (file_full_name): Likewise.
8566 (macro_start_file): Update.
8567
009b64fc
TT
85682020-02-08 Tom Tromey <tom@tromey.com>
8569
8570 * dwarf2/read.c (dwarf_always_disassemble)
8571 (show_dwarf_always_disassemble): Move to loc.c.
8572 (_initialize_dwarf2_read): Move "always-disassemble" registration
8573 to loc.c.
8574 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8575 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8576 static.
8577 (show_dwarf_always_disassemble): Move from read.c.
8578 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8579
5895093f
TT
85802020-02-08 Tom Tromey <tom@tromey.com>
8581
8582 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8583 (create_quick_file_names_table): Return htab_up.
8584 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8585 Update.
8586 * dwarf2/read.h (struct dwarf2_per_objfile)
8587 <quick_file_names_table>: Now htab_up.
8588
b3b32279
TT
85892020-02-08 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8592
1d33d811
TT
85932020-02-08 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8596 Rewrite.
8597 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8598 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8599 (abbrev_table::abbrev_table): No longer inline.
8600 (ABBREV_HASH_SIZE): Remove.
8601 (abbrev_table::m_abbrevs): Now an htab_up.
8602
86de1d91
TT
86032020-02-08 Tom Tromey <tom@tromey.com>
8604
8605 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8606 (cutu_reader): Update.
8607 (build_type_psymtabs_1): Update.
8608 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8609 (abbrev_table::alloc_abbrev): Update.
8610 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8611 (abbrev_table::read): New static method, renamed from
8612 abbrev_table_read_table.
8613 (abbrev_table::alloc_abbrev)
8614 (abbrev_table::add_abbrev): Now private.
8615 (abbrev_table::abbrev_table): Now private.
8616 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8617
0335378b
TT
86182020-02-08 Tom Tromey <tom@tromey.com>
8619
8620 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8621 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8622 htab_up.
8623
48b490f2
TT
86242020-02-08 Tom Tromey <tom@tromey.com>
8625
8626 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8627 htab_up.
8628 (lookup_dwo_unit_in_dwp): Update.
8629 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8630 on obstack.
8631
bc68fb19
TT
86322020-02-08 Tom Tromey <tom@tromey.com>
8633
8634 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8635 obstack.
8636
d15acc42
TT
86372020-02-08 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8640 line_header_hash.
8641 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8642 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8643 Change type to htab_up.
8644
eaa5fa8b
TT
86452020-02-08 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8648 htab_up. Don't allocate on obstack.
8649 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8650 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8651 Change type to htab_up.
8652
b0b6a987
TT
86532020-02-08 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8656 Change type to htab_up.
8657 * dwarf2/read.c (create_signatured_type_table_from_index)
8658 (create_signatured_type_table_from_debug_names)
8659 (create_all_type_units, add_type_unit)
8660 (lookup_dwo_signatured_type, lookup_signatured_type)
8661 (process_skeletonless_type_unit): Update.
8662 (create_debug_type_hash_table, create_debug_types_hash_table):
8663 Change type of types_htab.
8664 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8665 htab_up. Don't allocate on obstack.
8666 (create_cus_hash_table): Change type of cus_htab parameter.
8667 (struct dwo_file) <cus, tus>: Now htab_up.
8668 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8669 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8670 (queue_and_load_all_dwo_tus): Update.
8671 * dwarf2/index-write.c (write_gdbindex): Update.
8672 (write_debug_names): Update.
8673
39856def
TT
86742020-02-08 Tom Tromey <tom@tromey.com>
8675
8676 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8677 dwarf2/read.c. Remove "next" member. Add constructor ntad
8678 destructor.
8679 (struct dwarf2_per_objfile) <queue>: New member.
8680 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8681 dwarf2/read.h.
8682 (dwarf2_queue, dwarf2_queue_tail): Remove.
8683 (class dwarf2_queue_guard): Add parameter to constructor. Use
8684 DISABLE_COPY_AND_ASSIGN.
8685 <m_per_objfile>: New member.
8686 <~dwarf2_queue_guard>: Rewrite.
8687 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8688 Update.
8689 (~dwarf2_queue_item): New.
8690
3e225074
TT
86912020-02-08 Tom Tromey <tom@tromey.com>
8692
8693 * dwarf2/read.c (struct die_info) <has_children>: New member.
8694 (dw2_get_file_names_reader): Remove has_children.
8695 (dw2_get_file_names): Update.
8696 (read_cutu_die_from_dwo): Remove has_children.
8697 (cutu_reader::init_tu_and_read_dwo_dies)
8698 (cutu_reader::cutu_reader): Update.
8699 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8700 Remove has_children.
8701 (build_type_psymtabs_1, process_skeletonless_type_unit)
8702 (load_partial_comp_unit, load_full_comp_unit): Update.
8703 (create_dwo_cu_reader): Remove has_children.
8704 (create_cus_hash_table, read_die_and_children): Update.
8705 (read_full_die_1,read_full_die): Remove has_children.
8706 (read_signatured_type): Update.
8707 (class cutu_reader) <has_children>: Remove.
8708
82ca8957
TT
87092020-02-08 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/expr.c: Rename from dwarf2expr.c.
8712 * dwarf2/expr.h: Rename from dwarf2expr.h.
8713 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8714 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8715 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8716 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8717 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8718 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8719 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8720 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8721 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8722 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8723 * dwarf2/loc.c: Rename from dwarf2loc.c.
8724 * dwarf2/loc.h: Rename from dwarf2loc.h.
8725 * dwarf2/read.c: Rename from dwarf2read.c.
8726 * dwarf2/read.h: Rename from dwarf2read.h.
8727 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8728 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8729 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8730 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8731 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8732 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8733 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8734 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8735 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8736 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8737 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8738 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8739 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8740 Update.
8741 * Makefile.in (COMMON_SFILES): Update.
8742 (HFILES_NO_SRCDIR): Update.
8743
9e35d499
TT
87442020-02-08 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8747 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8748
1eba2311
TT
87492020-02-08 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2read.h (struct die_info): Don't declare.
8752
e41c2da2
TT
87532020-02-08 Tom Tromey <tom@tromey.com>
8754
8755 * dwarf2read.h (die_info_ptr): Remove typedef.
8756
4fc6c0d5
TT
87572020-02-08 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2read.c (read_call_site_scope)
8760 (handle_data_member_location, dwarf2_add_member_fn)
8761 (mark_common_block_symbol_computed, read_common_block)
8762 (attr_to_dynamic_prop, partial_die_info::read)
8763 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8764 (dwarf2_symbol_mark_computed, set_die_type): Update.
8765 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8766 method.
8767 (attr_form_is_block): Don't declare.
8768 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8769
cd6c91b4
TT
87702020-02-08 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2read.c (dwarf2_find_base_address, )
8773 (read_call_site_scope, rust_containing_type)
8774 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8775 (handle_data_member_location, dwarf2_add_member_fn)
8776 (get_alignment, read_structure_type, process_structure_scope)
8777 (mark_common_block_symbol_computed, read_common_block)
8778 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8779 (partial_die_info::read, read_attribute_value, new_symbol)
8780 (lookup_die_type, dwarf2_get_ref_die_offset)
8781 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8782 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8783 (dwarf2_symbol_mark_computed): Update.
8784 * dwarf2/attribute.h (struct attribute) <value_as_address,
8785 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8786 methods.
8787 (value_as_address, attr_form_is_section_offset)
8788 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8789 * dwarf2/attribute.c (attribute::value_as_address)
8790 (attribute::form_is_section_offset, attribute::form_is_constant)
8791 (attribute::form_is_ref): Now methods.
8792
162dce55
TT
87932020-02-08 Tom Tromey <tom@tromey.com>
8794
8795 * dwarf2read.c (struct attribute, DW_STRING)
8796 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8797 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8798 (attr_form_is_block, attr_form_is_section_offset)
8799 (attr_form_is_constant, attr_form_is_ref): Move.
8800 * dwarf2/attribute.h: New file.
8801 * dwarf2/attribute.c: New file, from dwarf2read.c.
8802 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8803
3054dd54
TT
88042020-02-08 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8807 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8808 Move.
8809 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8810 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8811 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8812 abbrev.c.
8813 * dwarf2/abbrev.h: New file.
8814 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8815 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8816
96b79293
TT
88172020-02-08 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8820 (dwarf2_section_size, dwarf2_get_section_info)
8821 (create_signatured_type_table_from_debug_names)
8822 (create_addrmap_from_aranges, read_debug_names_from_section)
8823 (get_gdb_index_contents_from_section, read_comp_unit_head)
8824 (error_check_comp_unit_head, read_abbrev_offset)
8825 (create_debug_type_hash_table, init_cu_die_reader)
8826 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8827 (read_comp_units_from_section, create_cus_hash_table)
8828 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8829 (create_dwp_v2_section, dwarf2_rnglists_process)
8830 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8831 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8832 (read_indirect_string_from_dwz, read_addr_index_1)
8833 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8834 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8835 (fill_in_loclist_baton): Update.
8836 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8837 get_containing_section, get_bfd_owner, get_bfd_section,
8838 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8839 (dwarf2_read_section, get_section_name, get_section_file_name)
8840 (get_containing_section, get_section_bfd_owner)
8841 (get_section_bfd_section, get_section_name, get_section_file_name)
8842 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8843 declare.
8844 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8845 (dwarf2_section_info::get_bfd_owner)
8846 (dwarf2_section_info::get_bfd_section)
8847 (dwarf2_section_info::get_name)
8848 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8849 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8850 (dwarf2_section_info::read): Now methods.
8851 * dwarf-index-write.c (class debug_names): Update.
8852
2c86cff9
TT
88532020-02-08 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8856 Move to dwarf2/section.h.
8857 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8858 (get_section_bfd_section, get_section_name)
8859 (get_section_file_name, get_section_id, get_section_flags)
8860 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8861 dwarf2/section.c.
8862 * dwarf2/section.h: New file.
8863 * dwarf2/section.c: New file, from dwarf2read.c.
8864 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8865
f4382c45
TT
88662020-02-08 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8869 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8870 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8871 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8872 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8873 * dwarf2/leb.h: New file, from dwarf2read.c.
8874 * dwarf2/leb.c: New file, from dwarf2read.c.
8875 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8876 Remove.
8877 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8878 (COMMON_SFILES): Add dwarf2/leb.c.
8879
01840b7a
JB
88802020-02-08 Joel Brobecker <brobecker@adacore.com>
8881
8882 GDB 9.1 released.
8883
dfcb27e4
IB
88842020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8885
8886 PR gdb/25190:
aac66a4c
SM
8887 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8888 * gdb/remote.c (remote_console_output): Update.
8889 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8890 (ui_file_puts): ...this.
8891 * gdb/ui-file.h (ui_file_puts): Add declaration.
8892 * gdb/utils.c (emit_style_escape): Update.
8893 (flush_wrap_buffer): Update.
8894 (fputs_maybe_filtered): Update.
8895 (fputs_unfiltered): Add function.
dfcb27e4 8896
faa17681
IB
88972020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8898
aac66a4c
SM
8899 * gdb/event-loop.c (gdb_wait_for_event): Update.
8900 * gdb/printcmd.c (printf_command): Update.
8901 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8902 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8903 (gdb_os_flush_stderr): Update.
8904 * gdb/remote.c (remote_console_output): Update.
8905 * gdb/ui-file.c (gdb_flush): Rename to...
8906 (ui_file_flush): ...this.
8907 (stderr_file::write): Update.
8908 (stderr_file::puts): Update.
8909 * gdb/ui-file.h (gdb_flush): Rename to...
8910 (ui_file_flush): ...this.
8911 * gdb/utils.c (gdb_flush): Add function.
8912 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8913
5abbbe1d
TT
89142020-02-07 Tom Tromey <tromey@adacore.com>
8915
8916 PR breakpoints/24915:
8917 * source.c (find_and_open_source): Do not check basenames_may_differ.
8918
919adfe8
TT
89192020-02-07 Tom Tromey <tom@tromey.com>
8920
8921 * README: Update gdbserver documentation.
8922 * gdbserver: Move to top level.
8923 * configure.tgt (build_gdbserver): Remove.
8924 * configure.ac: Remove --enable-gdbserver.
8925 * configure: Rebuild.
8926 * Makefile.in (distclean): Don't mention gdbserver.
8927
1d5d29e7
SV
89282020-02-06 Shahab Vahedi <shahab@synopsys.com>
8929
8930 * source-cache.c (source_cache::ensure): Surround
8931 get_plain_source_lines with a try/catch.
8932 (source_cache::get_line_charpos): Get rid of try/catch
8933 and only check for the return value of "ensure".
8934 * tui/tui-source.c (tui_source_window::set_contents):
8935 Simplify "nlines" calculation.
8936
6eb1129c
SV
89372020-02-06 Shahab Vahedi <shahab@synopsys.com>
8938
8939 * MAINTAINERS (Write After Approval): Add myself.
8940
c6a42d11
CB
89412020-02-05 Christian Biesinger <cbiesinger@google.com>
8942
8943 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8944 function call.
8945
c8ecdda6
CB
89462020-02-05 Christian Biesinger <cbiesinger@google.com>
8947
8948 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8949
f6480e70
MR
89502020-02-05 Maciej W. Rozycki <macro@wdc.com>
8951
8952 * nat/riscv-linux-tdesc.h: New file.
8953 * nat/riscv-linux-tdesc.c: New file, taking code from...
8954 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8955 ... here.
8956 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8957 NATDEPFILES.
8958
dcc9fbc6
AB
89592020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8962 we don't set the fake simulator ptid to the null_ptid.
8963
719546c4
SM
89642020-02-03 Simon Marchi <simon.marchi@efficios.com>
8965
8966 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8967 * gdbthread.h (class thread_info) <resumed>: Likewise.
8968 * infrun.c (resume_1): Likewise.
8969 (proceed): Likewise.
8970 (infrun_thread_stop_requested): Likewise.
8971 (stop_all_threads): Likewise.
8972 (handle_inferior_event): Likewise.
8973 (restart_threads): Likewise.
8974 (finish_step_over): Likewise.
8975 (keep_going_stepped_thread): Likewise.
8976 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8977 (linux_handle_extended_wait): Likewise.
8978 * record-btrace.c (get_thread_current_frame_id): Likewise.
8979 * record-full.c (record_full_wait_1): Likewise.
8980 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8981 * target.c (target_resume): Likewise.
8982 * thread.c (set_running_thread): Likewise.
8983
e409c542
AKS
89842020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8985
8986 * f-valprint.c (f77_print_array_1): Changed datatype of index
8987 variable to LONGEST from int to enable it to contain bound
8988 values correctly.
8989
ee98c0da
MR
89902020-02-03 Maciej W. Rozycki <macro@wdc.com>
8991
8992 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8993 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8994 offsets according to FLEN determined.
8995 (riscv_linux_nat_target::read_description): Determine FLEN
8996 dynamically.
8997 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8998 according to FLEN determined.
8999 (riscv_linux_nat_target::store_registers): Likewise.
9000
aa66aac4
SV
90012020-02-01 Shahab Vahedi <shahab@synopsys.com>
9002
9003 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9004 when reg->group is empty and reggroup is not.
9005
fd9faca8
TT
90062020-01-31 Tom Tromey <tromey@adacore.com>
9007
9008 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9009 Call beneath target's mourn_inferior after unpushing.
9010
42330a68
AB
90112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 PR tui/9765
9014 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9015 have enough lines to fill the screen, still return the lowest
9016 address we found.
9017
7a27a45b
AB
90182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9019
9020 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9021 '-', '<', and '>' commands.
9022
c47f70e2
PA
90232020-01-29 Pedro Alves <palves@redhat.com>
9024 Sergio Durigan Junior <sergiodj@redhat.com>
9025
9026 * infcmd.c (construct_inferior_arguments): Assert that
9027 'argc' is greater than 0.
9028
5133a315
LM
90292020-01-29 Luis Machado <luis.machado@linaro.org>
9030
9031 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9032 (BRK_INSN_MASK): Define to 0xd4200000.
9033 (aarch64_program_breakpoint_here_p): New function.
9034 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9035 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9036 breakpoint.c.
9037 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9038 breakpoint.h
9039 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9040 call gdbarch_program_breakpoint_here_p.
9041 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9042 default_program_breakpoint_here_p, changed return type to bool and
9043 simplified.
9044 * breakpoint.h (program_breakpoint_here): Moved prototype to
9045 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9046 return type to bool.
9047 * gdbarch.c: Regenerate.
9048 * gdbarch.h: Regenerate.
9049 * gdbarch.sh (program_breakpoint_here_p): New method.
9050 * infrun.c (handle_signal_stop): Call
9051 gdbarch_program_breakpoint_here_p.
9052
168f8c6b
TT
90532020-01-26 Tom Tromey <tom@tromey.com>
9054
9055 * ctfread.c (struct ctf_fp_info): Reindent.
9056 (_initialize_ctfread): Remove.
9057
128a391f
TT
90582020-01-26 Tom Tromey <tom@tromey.com>
9059
9060 * psymtab.c (partial_map_expand_apply)
9061 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9062 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9063 (psym_print_stats, psym_expand_symtabs_for_function)
9064 (psym_map_symbol_filenames, psym_map_matching_symbols)
9065 (psym_expand_symtabs_matching)
9066 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9067 (maintenance_check_psymtabs): Use new methods.
9068 * psympriv.h (struct partial_symtab) <readin_p,
9069 get_compunit_symtab>: New methods.
9070 <readin, compunit_symtab>: Remove members.
9071 (struct standard_psymtab): New.
9072 (struct legacy_psymtab): Derive from standard_psymtab.
9073 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9074 standard_psymtab.
9075 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9076
0494dbec
TT
90772020-01-26 Tom Tromey <tom@tromey.com>
9078
9079 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9080 read_dependencies. Add assert.
9081 * psymtab.c (partial_symtab::read_dependencies): New method.
9082 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9083 method.
9084 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9085 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9086 read_dependencies.
9087 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9088 Add assert.
9089
8566b89b
TT
90902020-01-26 Tom Tromey <tom@tromey.com>
9091
9092 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9093 Call expand_psymtab.
9094 (xcoff_read_symtab): Call expand_psymtab.
9095 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9096 legacy_expand_psymtab.
9097 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9098 method.
9099 (struct legacy_psymtab) <expand_psymtab>: Implement.
9100 <legacy_expand_psymtab>: New member.
9101 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9102 (parse_partial_symbols): Set legacy_expand_psymtab.
9103 (psymtab_to_symtab_1): Change argument order. Call
9104 expand_psymtab.
9105 (new_psymtab): Set legacy_expand_psymtab.
9106 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9107 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9108 expand_psymtab.
9109 (dwarf2_psymtab::expand_psymtab): Rename from
9110 psymtab_to_symtab_1. Call expand_psymtab.
9111 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9112 (dbx_end_psymtab): Likewise.
9113 (dbx_psymtab_to_symtab_1): Change argument order. Call
9114 expand_psymtab.
9115 (dbx_read_symtab): Call expand_psymtab.
9116 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9117 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9118 (ctf_psymtab::read_symtab): Call expand_psymtab.
9119
077cbab2
TT
91202020-01-26 Tom Tromey <tom@tromey.com>
9121
9122 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9123 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9124 messages.
9125 * mdebugread.c (mdebug_read_symtab): Remove prints.
9126 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9127 assert.
9128 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9129
891813be
TT
91302020-01-26 Tom Tromey <tom@tromey.com>
9131
9132 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9133 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9134 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9135 legacy_symtab.
9136 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9137 * psymtab.c (psymtab_to_symtab): Call method.
9138 (dump_psymtab): Update.
9139 * psympriv.h (struct partial_symtab): Add virtual destructor.
9140 <read_symtab>: New method.
9141 (struct legacy_symtab): New.
9142 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9143 (struct pst_map) <pst>: Now a legacy_psymtab.
9144 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9145 (new_psymtab): Use legacy_psymtab.
9146 * dwarf2read.h (struct dwarf2_psymtab): New.
9147 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9148 * dwarf2read.c (dwarf2_create_include_psymtab)
9149 (dwarf2_build_include_psymtabs, create_type_unit_group)
9150 (create_partial_symtab, process_psymtab_comp_unit_reader)
9151 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9152 (set_partial_user): Use dwarf2_psymtab.
9153 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9154 (psymtab_to_symtab_1, process_full_comp_unit)
9155 (process_full_type_unit, dwarf2_ranges_read)
9156 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9157 (dwarf_decode_lines): Use dwarf2_psymtab.
9158 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9159 (add_address_entry_worker, write_one_signatured_type)
9160 (recursively_count_psymbols, recursively_write_psymbols)
9161 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9162 (write_debug_names): Likewise.
9163 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9164 <pst>: Now a legacy_psymtab.
9165 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9166 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9167 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9168 * ctfread.c (struct ctf_psymtab): New.
9169 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9170 ctf_psymtab.
9171 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9172 (create_partial_symtab): Return a ctf_psymtab.
9173 (scan_partial_symbols): Update.
9174
c3693a1d
TT
91752020-01-26 Tom Tromey <tom@tromey.com>
9176
9177 * xcoffread.c (xcoff_start_psymtab): Use new.
9178 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9179 renamed from start_psymtab_common.
9180 * psympriv.h (struct partial_symtab): Add new constructor.
9181 (start_psymtab_common): Don't declare.
9182 * mdebugread.c (parse_partial_symbols): Use new.
9183 * dwarf2read.c (create_partial_symtab): Use new.
9184 * dbxread.c (start_psymtab): Use new.
9185 * ctfread.c (create_partial_symtab): Use new.
9186
32caafd0
TT
91872020-01-26 Tom Tromey <tom@tromey.com>
9188
9189 * xcoffread.c (xcoff_end_psymtab): Use new.
9190 * psymtab.c (start_psymtab_common): Use new.
9191 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9192 Update.
9193 * psympriv.h (struct partial_symtab): Add parameters to
9194 constructor. Don't inline.
9195 (allocate_psymtab): Don't declare.
9196 * mdebugread.c (new_psymtab): Use new.
9197 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9198 * dbxread.c (dbx_end_psymtab): Use new.
9199
abaa2f23
TT
92002020-01-26 Tom Tromey <tom@tromey.com>
9201
9202 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9203 allocate_psymtab. Update documentation.
9204 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9205 allocate_psymtab. Do not use new.
9206 (allocate_psymtab): Use new. Update.
9207
6d94535f
TT
92082020-01-26 Tom Tromey <tom@tromey.com>
9209
9210 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9211 * psymtab.c (psym_print_stats): Update.
9212 * psympriv.h (struct partial_symtab) <readin,
9213 psymtabs_addrmap_supported, anonymous>: Now bool.
9214 * mdebugread.c (psymtab_to_symtab_1): Update.
9215 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9216 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9217 (process_full_comp_unit, process_full_type_unit): Update.
9218 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9219 * ctfread.c (psymtab_to_symtab): Update.
9220
6f17252b
TT
92212020-01-26 Tom Tromey <tom@tromey.com>
9222
9223 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9224 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9225 * psymtab.c (psymtab_storage): Delete psymtabs.
9226 (psymtab_storage::allocate_psymtab): Use new.
9227 (psymtab_storage::discard_psymtab): Use delete.
9228 * psympriv.h (struct partial_symtab): Add constructor and
9229 initializers.
9230
f6f1cebc
TT
92312020-01-26 Tom Tromey <tom@tromey.com>
9232
9233 * machoread.c: Do not include psympriv.h.
9234
e47e48f6
PW
92352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9236
9237 * NEWS: Mention the new option and the set/show commands.
9238
a2fedca9
PW
92392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9240
9241 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9242 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9243 (validate_exec_file): New variables, enums, functions.
9244 (exec_file_locate_attach, print_section_info): Style the filenames.
9245 (_initialize_exec): Install show_exec_file_mismatch_command and
9246 set_exec_file_mismatch_command.
9247 * gdbcore.h (validate_exec_file): Declare.
9248 * infcmd.c (attach_command): Call validate_exec_file.
9249 * remote.c ( remote_target::remote_add_inferior): Likewise.
9250
7ffa82e1
AB
92512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * frame.c (find_frame_sal): Move call to get_next_frame into more
9254 inner scope.
9255 * inline-frame.c (inilne_state) <inline_state>: Update argument
9256 types.
9257 (inilne_state) <skipped_symbol>: Rename to...
9258 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9259 (skip_inline_frames): Build vector of skipped symbols and use this
9260 to reate the inline_state.
9261 (inline_skipped_symbol): Add a comment and some assertions, fetch
9262 skipped symbol from the list.
9263
3d92a3e3
AB
92642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9265
9266 * buildsym.c (lte_is_less_than): Delete.
9267 (buildsym_compunit::end_symtab_with_blockvector): Create local
9268 lambda function to sort line table entries, and use
9269 std::stable_sort instead of std::sort.
9270 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9271 markers when looking for a previous line.
9272
94a72be7
AB
92732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9274
9275 * dwarf2read.c (lnp_state_machine::record_line): Include
9276 end_sequence parameter in debug print out. Record the line if we
9277 are at an end_sequence marker even if it's not the start of a
9278 statement.
9279 * symmisc.c (maintenance_print_one_line_table): Print end of
9280 sequence markers with 'END' not '0'.
9281
53af73bf
PA
92822020-01-24 Pedro Alves <palves@redhat.com>
9283
9284 PR gdb/25410
9285 * thread.c (scoped_restore_current_thread::restore): Use
9286 switch_to_inferior_no_thread.
9287 * exec.c: Include "progspace-and-thread.h".
9288 (add_target_sections, remove_target_sections):
9289 scoped_restore_current_pspace_and_thread instead of
9290 scoped_restore_current_thread.
9291 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9292 and aspace to the inferior before calling clone_program_space.
9293 Remove stale comment.
9294
3050c6f4
CB
92952020-01-24 Christian Biesinger <cbiesinger@google.com>
9296
9297 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9298 (arm_netbsd_nat_target::fetch_registers): ...this.
9299 (arm_nbsd_nat_target::store_registers): Rename to...
9300 (arm_netbsd_nat_target::store_registers): ...this.
9301
73685c7e
CB
93022020-01-24 Christian Biesinger <cbiesinger@google.com>
9303
9304 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9305 register_t.
9306
89203d40
CB
93072020-01-24 Christian Biesinger <cbiesinger@google.com>
9308
9309 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9310 Update comment.
9311 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9312 Likewise.
9313 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9314 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9315 the correct replacement (iterate_over_regset_sections).
9316 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9317 Update comment.
9318
1ba1ac88
AB
93192020-01-24 Graham Markall <graham.markall@embecosm.com>
9320
9321 PR gdb/23718
9322 * gdb/python/python.c (execute_gdb_command): Call
9323 async_enable_stdin in catch block.
9324
f3364a6d
AB
93252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9328 SWITCH_THRU_ALL_UIS.
9329
733d0a67
AB
93302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9331
9332 PR tui/9765
9333 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9334 comment, add extra parameter, and update to store previous symbol
9335 when appropriate.
9336 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9337 add extra parameter.
9338 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9339 remove unneeded parameter, add try/catch around gdb_print_insn,
9340 rewrite to add items to asm_lines vector.
9341 (tui_find_backward_disassembly_start_address): New function.
9342 (tui_find_disassembly_address): Updated throughout.
9343 (tui_disasm_window::set_contents): Update for changes to
9344 tui_disassemble.
9345 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9346 number of lines to scroll.
9347
b3b3bada
SM
93482020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9349
9350 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9351 (SECT_OFF_DATA): Likewise.
9352 (SECT_OFF_RODATA): Likewise.
9353 (SECT_OFF_TEXT): Likewise.
9354 (SECT_OFF_BSS): Likewise.
9355 (struct objfile) <text_section_offset, data_section_offset>: New
9356 methods.
9357 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9358 objfile::text_section_offset.
9359 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9360 * coffread.c (coff_symtab_read): Likewise.
9361 (enter_linenos): Likewise.
9362 (process_coff_symbol): Likewise.
9363 * ctfread.c (get_objfile_text_range): Likewise.
9364 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9365 Use objfile::data_section_offset.
9366 * dwarf2-frame.c (execute_cfa_program): Use
9367 objfile::text_section_offset.
9368 (dwarf2_frame_find_fde): Likewise.
9369 * dwarf2read.c (create_addrmap_from_index): Likewise.
9370 (create_addrmap_from_aranges): Likewise.
9371 (dw2_find_pc_sect_compunit_symtab): Likewise.
9372 (process_psymtab_comp_unit_reader): Likewise.
9373 (add_partial_symbol): Likewise.
9374 (add_partial_subprogram): Likewise.
9375 (process_full_comp_unit): Likewise.
9376 (read_file_scope): Likewise.
9377 (read_func_scope): Likewise.
9378 (read_lexical_block_scope): Likewise.
9379 (read_call_site_scope): Likewise.
9380 (dwarf2_rnglists_process): Likewise.
9381 (dwarf2_ranges_process): Likewise.
9382 (dwarf2_ranges_read): Likewise.
9383 (dwarf_decode_lines_1): Likewise.
9384 (new_symbol): Likewise.
9385 (dwarf2_fetch_die_loc_sect_off): Likewise.
9386 (dwarf2_per_cu_text_offset): Likewise.
9387 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9388 * hppa-tdep.c (read_unwind_info): Likewise.
9389 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9390 * psympriv.h (struct partial_symtab): Likewise.
9391 * psymtab.c (find_pc_sect_psymtab): Likewise.
9392 * solib-svr4.c (enable_break): Likewise.
9393 * stap-probe.c (relocate_address): Use
9394 objfile::data_section_offset.
9395 * xcoffread.c (enter_line_range): Use
9396 objfile::text_section_offset.
9397 (read_xcoff_symtab): Likewise.
9398
ab53f382
SM
93992020-01-23 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9402 declaration to narrower scopes.
9403
e7eee665
SM
94042020-01-23 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * darwin-nat.h (struct darwin_exception_msg, enum
9407 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9408 Move up.
9409 (class darwin_nat_target) <wait_1, check_new_threads,
9410 decode_exception_message, decode_message, stop_inferior,
9411 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9412 * darwin-nat.c (darwin_check_new_threads): Rename to...
9413 (darwin_nat_target::check_new_threads): ... this.
9414 (darwin_suspend_inferior_it): Remove.
9415 (darwin_decode_exception_message): Rename to...
9416 (darwin_nat_target::decode_exception_message): ... this.
9417 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9418 (darwin_decode_message): Rename to...
9419 (darwin_nat_target::decode_message): ... this.
9420 (cancel_breakpoint): Rename to...
9421 (darwin_nat_target::cancel_breakpoint): ... this.
9422 (darwin_wait): Rename to...
9423 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9424 instead of iterate_over_inferiors.
9425 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9426 (darwin_stop_inferior): Rename to...
9427 (darwin_nat_target::stop_inferior): ... this.
9428 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9429 (darwin_init_thread_list): Rename to...
9430 (darwin_nat_target::init_thread_list): ... this.
9431 (darwin_ptrace_him): Rename to...
9432 (darwin_nat_target::ptrace_him): ... this.
9433 (darwin_nat_target::create_inferior): Pass lambda function to
9434 fork_inferior.
9435 (darwin_nat_target::detach): Call stop_inferior instead of
9436 darwin_stop_inferior.
9437 * fork-inferior.h (fork_inferior): Change init_trace_fun
9438 parameter to gdb::function_view.
9439 * fork-inferior.c (fork_inferior): Likewise.
9440
c162ed3e
HD
94412020-01-23 Hannes Domani <ssbssa@yahoo.de>
9442
9443 * i386-cygwin-tdep.c (core_process_module_section): Update.
9444 * windows-nat.c (struct lm_info_windows): Add text_offset.
9445 (windows_xfer_shared_libraries): Update.
9446 * windows-tdep.c (windows_xfer_shared_library):
9447 Add text_offset_cached argument.
9448 * windows-tdep.h (windows_xfer_shared_library): Update.
9449
a1237872
SM
94502020-01-21 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9453
b3ee6dd9
SM
94542020-01-21 Simon Marchi <simon.marchi@efficios.com>
9455
9456 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9457 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9458 replace with range-based for.
9459 (gdbsim_interrupt_inferior): Remove.
9460 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9461 with a range-based for. Inline code from
9462 gdbsim_interrupt_inferior.
9463
f9fac3c8
SM
94642020-01-21 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * infrun.c (proceed): Fix indentation.
9467
f6474de9
TT
94682020-01-21 Tom Tromey <tromey@adacore.com>
9469
9470 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9471 * python/python.c (python_extension_ops): Update.
9472 (gdbpy_colorize): New function.
9473 * python/lib/gdb/__init__.py (colorize): New function.
9474 * extension.h (ext_lang_colorize): Declare.
9475 * extension.c (ext_lang_colorize): New function.
9476 * extension-priv.h (struct extension_language_ops) <colorize>: New
9477 member.
9478 * cli/cli-style.c (_initialize_cli_style): Update help text.
9479
f0c702d4
LM
94802020-01-21 Luis Machado <luis.machado@linaro.org>
9481
9482 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9483 <cond>: Change type to bool.
9484 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9485 (aarch64_displaced_step_cb): Likewise.
9486 (aarch64_displaced_step_tb): Likewise.
9487
1ab139e5
LM
94882020-01-21 Luis Machado <luis.machado@linaro.org>
9489
9490 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9491 output.
9492
0c271889
LM
94932020-01-21 Luis Machado <luis.machado@linaro.org>
9494
9495 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9496 <pc_adjust>: Adjust the documentation.
9497 (aarch64_displaced_step_fixup): Check if PC really moved before
9498 adjusting it.
9499
4d89c1c7
TT
95002020-01-19 Tom Tromey <tom@tromey.com>
9501
9502 * disasm.c (~gdb_disassembler): New destructor.
9503 (gdb_buffered_insn_length): Call disassemble_free_target.
9504 * disasm.h (class gdb_disassembler): Declare destructor. Use
9505 DISABLE_COPY_AND_ASSIGN.
9506
c0ab21c2
TT
95072020-01-19 Tom Tromey <tom@tromey.com>
9508
9509 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9510 (die_reader_func_ftype): Remove.
9511 (cutu_reader): New class.
9512 (dw2_get_file_names_reader): Remove "data" parameter.
9513 (dw2_get_file_names): Use cutu_reader.
9514 (create_debug_type_hash_table): Update.
9515 (read_cutu_die_from_dwo): Update comment.
9516 (lookup_dwo_unit): Add dwo_name parameter.
9517 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9518 die_reader_func_ftype and data parameters.
9519 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9520 Remove die_reader_func_ftype and data parameters.
9521 (~cutu_reader): New; from init_cutu_and_read_dies.
9522 (cutu_reader::cutu_reader): Rename from
9523 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9524 and data parameters.
9525 (init_cutu_and_read_dies_simple): Remove.
9526 (struct process_psymtab_comp_unit_data): Remove.
9527 (process_psymtab_comp_unit_reader): Remove data parameter; add
9528 want_partial_unit and pretend_language parameters.
9529 (process_psymtab_comp_unit): Use cutu_reader.
9530 (build_type_psymtabs_reader): Remove data parameter.
9531 (build_type_psymtabs_1): Use cutu_reader.
9532 (process_skeletonless_type_unit): Likewise.
9533 (load_partial_comp_unit_reader): Remove.
9534 (load_partial_comp_unit): Use cutu_reader.
9535 (load_full_comp_unit_reader): Remove.
9536 (load_full_comp_unit): Use cutu_reader.
9537 (struct create_dwo_cu_data): Remove.
9538 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9539 dwo_unit parameters.
9540 (create_cus_hash_table): Use cutu_reader.
9541 (struct dwarf2_read_addr_index_data): Remove.
9542 (dwarf2_read_addr_index_reader): Remove.
9543 (dwarf2_read_addr_index): Use cutu_reader.
9544 (read_signatured_type_reader): Remove.
9545 (read_signatured_type): Use cutu_reader.
9546
45bbae5c
TT
95472020-01-19 Tom Tromey <tom@tromey.com>
9548
9549 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9550 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9551 (tui_wrefresh): Declare.
9552 * tui/tui-wingeneral.c (suppress_output): New global.
9553 (tui_suppress_output, ~tui_suppress_output): New constructor and
9554 destructor.
9555 (tui_wrefresh): New function.
9556 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9557 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9558 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9559 method.
9560 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9561 tui_wrefresh.
9562 (tui_data_window::no_refresh): New method.
9563 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9564 (tui_reg_command): Use tui_suppress_output
9565 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9566 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9567 method.
9568 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9569
4f13c1c0
TT
95702020-01-19 Tom Tromey <tom@tromey.com>
9571
9572 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9573 Handle case where symtab is null.
9574
fa47e446
SM
95752020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9576
9577 * linux-fork.c (one_fork_p): Simplify.
9578
26f42329
SM
95792020-01-17 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * top.c (struct qt_args): Remove.
9582 (kill_or_detach): Change return type to void, replace `void *`
9583 parameter with a proper one.
9584 (print_inferior_quit_action): Likewise.
9585 (quit_confirm): Use range-based for loop to iterate over inferiors.
9586 (quit_force): Likewise.
9587
a9ac81b1
SM
95882020-01-17 Simon Marchi <simon.marchi@efficios.com>
9589
9590 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9591 `void *` parameter with proper parameters.
9592 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9593 (print_one_inferior): Change return type to void, replace `void *`
9594 parameter with proper parameters.
9595 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9596 inferiors.
9597 (get_other_inferior): Remove.
9598 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9599 inferiors.
9600
788eca49
SM
96012020-01-17 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * mi/mi-interp.c (report_initial_inferior): Remove.
9604 (mi_interp::init): Use range-based for to iterate over inferiors.
9605
d9bc85b6
SM
96062020-01-17 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * python/py-inferior.c (build_inferior_list): Remove.
9609 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9610
40c94099
CB
96112020-01-16 Christian Biesinger <cbiesinger@google.com>
9612
9613 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9614 (btrace_stitch_trace): Likewise.
9615 * charset.c (intermediate_encoding): Likewise (vaild).
9616 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9617 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9618 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9619
e0cdfe3c
HD
96202020-01-16 Hannes Domani <ssbssa@yahoo.de>
9621
9622 * windows-tdep.c (windows_get_tlb_type):
9623 Add rtl_user_process_parameters type.
9624
790f1718 96252020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9626 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9627
9628 PR build/24805
9629 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9630 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9631 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9632 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9633 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9634 (ps_plog): Redeclare exported functions with default visibility.
9635
3112ed97
NA
96362020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9637
9638 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9639 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9640
8dc3273e
SM
96412020-01-15 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * infcmd.c (post_create_inferior): Use get_thread_regcache
9644 instead of get_current_regcache.
9645
ff47f4f0
TT
96462020-01-14 Tom Tromey <tom@tromey.com>
9647
9648 PR symtab/12535:
9649 * python/python.c (gdbpy_decode_line): Treat empty string the same
9650 as no argument.
9651
975f45b7
TT
96522020-01-14 Tom Tromey <tom@tromey.com>
9653
9654 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9655
25e57356
TT
96562020-01-14 Tom Tromey <tom@tromey.com>
9657
9658 * nat/linux-btrace.c: Don't include <config.h>.
9659 * nat/linux-ptrace.c: Don't include <config.h>.
9660 * nat/x86-linux-dregs.c: Don't include <config.h>.
9661
05ea2a05
TT
96622020-01-14 Tom Tromey <tom@tromey.com>
9663
9664 * configure: Rebuild.
9665 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9666
01027315
TT
96672020-01-14 Tom Tromey <tom@tromey.com>
9668
9669 * nat/x86-linux-dregs.c: Include configh.h.
9670 * nat/linux-ptrace.c: Include configh.h.
9671 * nat/linux-btrace.c: Include configh.h.
9672 * defs.h: Include config.h, bfd.h.
9673 * configure.ac: Don't source common.host.
9674 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9675 * configure: Rebuild.
9676 * acinclude.m4: Update path.
9677 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9678 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9679 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9680 (CLIBS): Add LIBSUPPORT.
9681 (CDEPS): Likewise.
9682 (COMMON_SFILES): Remove gdbsupport files.
9683 (HFILES_NO_SRCDIR): Likewise.
9684 (stamp-version): Update path to create-version.sh.
9685 (ALLDEPFILES): Remove gdbsupport files.
9686
b2ceabe8
TT
96872020-01-14 Tom Tromey <tom@tromey.com>
9688
9689 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9690 USE_WIN32API when needed.
9691 * configure.ac (USE_WIN32API): Don't define.
9692 (WIN32LIBS): Use WIN32APILIBS.
9693 * configure: Rebuild.
9694
25c51f71
TT
96952020-01-14 Tom Tromey <tom@tromey.com>
9696
9697 * configure: Rebuild.
9698 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9699
717c684d
BE
97002020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9701
9702 * skip.c (skip_function_command): Make skip w/o arguments use the
9703 name of the inlined function if pc is inside any inlined function.
9704
7da6a5b9
LM
97052020-01-14 Luis Machado <luis.machado@linaro.org>
9706
9707 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9708 * infrun.c (resume_1): Likewise.
9709 (handle_inferior_event): Remove stale comment.
9710 * linux-nat.c (linux_nat_target::resume): Update comments.
9711 (save_stop_reason): Likewise.
9712 (linux_nat_filter_event): Likewise.
9713 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9714
44e4c775
AB
97152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9716
9717 * elfread.c (record_minimal_symbol): Set section index to 0 for
9718 non-allocatable sections.
9719
18a8505e
AT
9720
97212020-01-13 Ali Tamur <tamur@google.com>
9722
9723 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9724 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9725 to gdb::optional. Update comments.
9726 (dwo_file): Update comments.
9727 (read_attribute): Update API to take an additional out parameter,
9728 need_reprocess. This is used to mark attributes that need other
9729 attributes (e.g. str_offsets_base) for correct computation which may not
9730 have been read yet.
9731 (read_attribute_reprocess): New function declaration.
9732 (read_addr_index): Likewise.
9733 (read_dwo_str_index): Likewise.
9734 (read_stub_str_index): Likewise.
9735 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9736 (lookup_addr_base): New function definition.
9737 (lookup_ranges_base): Likewise.
9738 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9739 lookup_ranges_base.
9740 (init_cutu_and_read_dies): Update comments.
9741 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9742 unit. This is used to inherit parent's str_offsets_base and addr_base.
9743 Update comments.
9744 (init_cutu_and_read_dies_simple): Reflect API changes.
9745 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9746 (create_cus_hash_table): Change API to take parent compile unit.
9747 Reflect API changes.
9748 (open_and_init_dwo_file): Reflect API changes.
9749 (dwarf2_get_pc_bounds): Update comments.
9750 (dwarf2_record_block_ranges): Likewise.
9751 (read_full_die_1): Change implementation to reprocess attributes that
9752 need str_offsets_base and addr_base.
9753 (partial_die_info::read): Likewise.
9754 (read_attribute_reprocess): New function definition.
9755 (read_attribute_value): Change API to take an additional out parameter,
9756 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9757 when a non-dwo compile unit has index based attributes.
9758 (read_attribute): Reflect API changes.
9759 (read_addr_index_1): Reflect API changes. Update comments.
9760 (dwarf2_read_addr_index_data): Reflect API changes.
9761 (dwarf2_read_addr_index): Likewise.
9762 (read_str_index): Change API and implementation. This becomes a helper
9763 to be used by the new string index related methods. Update error
9764 message and comments.
9765 (read_dwo_str_index): New function definition.
9766 (read_stub_str_index): Likewise.
9767 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9768 * symfile.h (dwarf2_debug_sections): Likewise.
9769 * xcoffread.c (dwarf2_debug_sections): Likewise.
9770
0cac9354
SM
97712020-01-13 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9774 core_reg_sect type to gdb_byte *.
9775 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9776 * cris-tdep.c (fetch_core_registers): Likewise.
9777 * corelow.c (core_target::get_core_register_section): Change
9778 type of `contents` to gdb::byte_vector.
9779
9a6d629c
AB
97802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9781
9782 * tui/tui-wingeneral.c (box_win): Position the title in the center
9783 of the border.
9784
d8b2f9e3
SM
97852020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9786
9787 * corelow.c (core_target::get_core_register_section): Use
9788 std::vector instead of alloca.
9789
bb564c58
SM
97902020-01-13 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * warning.m4: Add -Wmissing-declarations to build_warnings.
9793 * configure: Re-generate.
9794
6b366111
SM
97952020-01-13 Simon Marchi <simon.marchi@efficios.com>
9796
9797 * python/python.c (init__gdb_module): Add declaration.
9798
6c265988
SM
97992020-01-13 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9802 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9803 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9804 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9805 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9806 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9807 * ada-exp.y (_initialize_ada_exp): Add declaration.
9808 * ada-lang.c (_initialize_ada_language): Add declaration.
9809 * ada-tasks.c (_initialize_tasks): Add declaration.
9810 * agent.c (_initialize_agent): Add declaration.
9811 * aix-thread.c (_initialize_aix_thread): Add declaration.
9812 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9813 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9814 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9815 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9816 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9817 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9818 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9819 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9820 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9821 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9822 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9823 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9824 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9825 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9826 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9827 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9828 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9829 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9830 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9831 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9832 * annotate.c (_initialize_annotate): Add declaration.
9833 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9834 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9835 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9836 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9837 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9838 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9839 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9840 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9841 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9842 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9843 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9844 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9845 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9846 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9847 * auto-load.c (_initialize_auto_load): Add declaration.
9848 * auxv.c (_initialize_auxv): Add declaration.
9849 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9850 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9851 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9852 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9853 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9854 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9855 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9856 * breakpoint.c (_initialize_breakpoint): Add declaration.
9857 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9858 * btrace.c (_initialize_btrace): Add declaration.
9859 * charset.c (_initialize_charset): Add declaration.
9860 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9861 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9862 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9863 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9864 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9865 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9866 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9867 * coffread.c (_initialize_coffread): Add declaration.
9868 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9869 * compile/compile.c (_initialize_compile): Add declaration.
9870 * complaints.c (_initialize_complaints): Add declaration.
9871 * completer.c (_initialize_completer): Add declaration.
9872 * copying.c (_initialize_copying): Add declaration.
9873 * corefile.c (_initialize_core): Add declaration.
9874 * corelow.c (_initialize_corelow): Add declaration.
9875 * cp-abi.c (_initialize_cp_abi): Add declaration.
9876 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9877 * cp-support.c (_initialize_cp_support): Add declaration.
9878 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9879 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9880 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9881 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9882 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9883 * ctfread.c (_initialize_ctfread): Add declaration.
9884 * d-lang.c (_initialize_d_language): Add declaration.
9885 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9886 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9887 * dbxread.c (_initialize_dbxread): Add declaration.
9888 * dcache.c (_initialize_dcache): Add declaration.
9889 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9890 * disasm.c (_initialize_disasm): Add declaration.
9891 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9892 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9893 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9894 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9895 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9896 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9897 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9898 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9899 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9900 * elfread.c (_initialize_elfread): Add declaration.
9901 * exec.c (_initialize_exec): Add declaration.
9902 * extension.c (_initialize_extension): Add declaration.
9903 * f-lang.c (_initialize_f_language): Add declaration.
9904 * f-valprint.c (_initialize_f_valprint): Add declaration.
9905 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9906 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9907 * filesystem.c (_initialize_filesystem): Add declaration.
9908 * findcmd.c (_initialize_mem_search): Add declaration.
9909 * findvar.c (_initialize_findvar): Add declaration.
9910 * fork-child.c (_initialize_fork_child): Add declaration.
9911 * frame-base.c (_initialize_frame_base): Add declaration.
9912 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9913 * frame.c (_initialize_frame): Add declaration.
9914 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9915 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9916 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9917 * gcore.c (_initialize_gcore): Add declaration.
9918 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9919 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9920 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9921 * gdbarch.c (_initialize_gdbarch): Add declaration.
9922 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9923 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9924 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9925 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9926 * go-lang.c (_initialize_go_language): Add declaration.
9927 * go32-nat.c (_initialize_go32_nat): Add declaration.
9928 * guile/guile.c (_initialize_guile): Add declaration.
9929 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9930 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9931 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9932 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9933 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9934 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9935 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9936 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9937 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9938 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9939 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9940 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9941 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9942 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9943 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9944 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9945 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9946 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9947 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9948 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9949 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9950 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9951 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9952 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9953 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9954 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9955 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9956 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9957 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9958 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9959 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9960 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9961 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9962 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9963 * infcall.c (_initialize_infcall): Add declaration.
9964 * infcmd.c (_initialize_infcmd): Add declaration.
9965 * inflow.c (_initialize_inflow): Add declaration.
9966 * infrun.c (_initialize_infrun): Add declaration.
9967 * interps.c (_initialize_interpreter): Add declaration.
9968 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9969 * jit.c (_initialize_jit): Add declaration.
9970 * language.c (_initialize_language): Add declaration.
9971 * linux-fork.c (_initialize_linux_fork): Add declaration.
9972 * linux-nat.c (_initialize_linux_nat): Add declaration.
9973 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9974 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9975 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9976 * m2-lang.c (_initialize_m2_language): Add declaration.
9977 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9978 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9979 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9980 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9981 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9982 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9983 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9984 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9985 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9986 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9987 * machoread.c (_initialize_machoread): Add declaration.
9988 * macrocmd.c (_initialize_macrocmd): Add declaration.
9989 * macroscope.c (_initialize_macroscope): Add declaration.
9990 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9991 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9992 * maint.c (_initialize_maint_cmds): Add declaration.
9993 * mdebugread.c (_initialize_mdebugread): Add declaration.
9994 * memattr.c (_initialize_mem): Add declaration.
9995 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9996 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9997 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9998 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9999 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10000 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10001 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10002 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10003 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10004 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10005 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10006 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10007 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10008 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10009 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10010 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10011 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10012 * mipsread.c (_initialize_mipsread): Add declaration.
10013 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10014 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10015 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10016 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10017 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10018 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10019 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10020 * nto-procfs.c (_initialize_procfs): Add declaration.
10021 * objc-lang.c (_initialize_objc_language): Add declaration.
10022 * observable.c (_initialize_observer): Add declaration.
10023 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10024 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10025 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10026 * osabi.c (_initialize_gdb_osabi): Add declaration.
10027 * osdata.c (_initialize_osdata): Add declaration.
10028 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10029 * parse.c (_initialize_parse): Add declaration.
10030 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10031 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10032 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10033 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10034 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10035 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10036 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10037 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10038 * printcmd.c (_initialize_printcmd): Add declaration.
10039 * probe.c (_initialize_probe): Add declaration.
10040 * proc-api.c (_initialize_proc_api): Add declaration.
10041 * proc-events.c (_initialize_proc_events): Add declaration.
10042 * proc-service.c (_initialize_proc_service): Add declaration.
10043 * procfs.c (_initialize_procfs): Add declaration.
10044 * producer.c (_initialize_producer): Add declaration.
10045 * psymtab.c (_initialize_psymtab): Add declaration.
10046 * python/python.c (_initialize_python): Add declaration.
10047 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10048 * record-btrace.c (_initialize_record_btrace): Add declaration.
10049 * record-full.c (_initialize_record_full): Add declaration.
10050 * record.c (_initialize_record): Add declaration.
10051 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10052 * regcache.c (_initialize_regcache): Add declaration.
10053 * reggroups.c (_initialize_reggroup): Add declaration.
10054 * remote-notif.c (_initialize_notif): Add declaration.
10055 * remote-sim.c (_initialize_remote_sim): Add declaration.
10056 * remote.c (_initialize_remote): Add declaration.
10057 * reverse.c (_initialize_reverse): Add declaration.
10058 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10059 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10060 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10061 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10062 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10063 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10064 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10065 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10066 Add declaration.
10067 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10068 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10069 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10070 * rust-exp.y (_initialize_rust_exp): Add declaration.
10071 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10072 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10073 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10074 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10075 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10076 * score-tdep.c (_initialize_score_tdep): Add declaration.
10077 * ser-go32.c (_initialize_ser_dos): Add declaration.
10078 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10079 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10080 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10081 * ser-uds.c (_initialize_ser_socket): Add declaration.
10082 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10083 * serial.c (_initialize_serial): Add declaration.
10084 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10085 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10086 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10087 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10088 * skip.c (_initialize_step_skip): Add declaration.
10089 * sol-thread.c (_initialize_sol_thread): Add declaration.
10090 * solib-aix.c (_initialize_solib_aix): Add declaration.
10091 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10092 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10093 * solib-frv.c (_initialize_frv_solib): Add declaration.
10094 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10095 * solib-target.c (_initialize_solib_target): Add declaration.
10096 * solib.c (_initialize_solib): Add declaration.
10097 * source-cache.c (_initialize_source_cache): Add declaration.
10098 * source.c (_initialize_source): Add declaration.
10099 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10100 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10101 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10102 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10103 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10104 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10105 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10106 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10107 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10108 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10109 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10110 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10111 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10112 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10113 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10114 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10115 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10116 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10117 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10118 * stabsread.c (_initialize_stabsread): Add declaration.
10119 * stack.c (_initialize_stack): Add declaration.
10120 * stap-probe.c (_initialize_stap_probe): Add declaration.
10121 * std-regs.c (_initialize_frame_reg): Add declaration.
10122 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10123 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10124 * symfile.c (_initialize_symfile): Add declaration.
10125 * symmisc.c (_initialize_symmisc): Add declaration.
10126 * symtab.c (_initialize_symtab): Add declaration.
10127 * target.c (_initialize_target): Add declaration.
10128 * target-connection.c (_initialize_target_connection): Add
10129 declaration.
10130 * target-dcache.c (_initialize_target_dcache): Add declaration.
10131 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10132 * thread.c (_initialize_thread): Add declaration.
10133 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10134 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10135 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10136 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10137 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10138 * tracectf.c (_initialize_ctf): Add declaration.
10139 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10140 * tracefile.c (_initialize_tracefile): Add declaration.
10141 * tracepoint.c (_initialize_tracepoint): Add declaration.
10142 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10143 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10144 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10145 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10146 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10147 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10148 * tui/tui.c (_initialize_tui): Add declaration.
10149 * typeprint.c (_initialize_typeprint): Add declaration.
10150 * ui-style.c (_initialize_ui_style): Add declaration.
10151 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10152 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10153 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10154 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10155 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10156 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10157 * unittests/filtered_iterator-selftests.c
10158 (_initialize_filtered_iterator_selftests): Add declaration.
10159 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10160 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10161 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10162 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10163 * unittests/main-thread-selftests.c
10164 (_initialize_main_thread_selftests): Add declaration.
10165 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10166 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10167 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10168 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10169 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10170 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10171 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10172 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10173 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10174 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10175 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10176 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10177 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10178 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10179 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10180 declaration.
10181 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10182 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10183 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10184 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10185 * user-regs.c (_initialize_user_regs): Add declaration.
10186 * utils.c (_initialize_utils): Add declaration.
10187 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10188 * valops.c (_initialize_valops): Add declaration.
10189 * valprint.c (_initialize_valprint): Add declaration.
10190 * value.c (_initialize_values): Add declaration.
10191 * varobj.c (_initialize_varobj): Add declaration.
10192 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10193 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10194 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10195 * windows-nat.c (_initialize_windows_nat): Add declaration.
10196 (_initialize_check_for_gdb_ini): Add declaration.
10197 (_initialize_loadable): Add declaration.
10198 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10199 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10200 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10201 * xcoffread.c (_initialize_xcoffread): Add declaration.
10202 * xml-support.c (_initialize_xml_support): Add declaration.
10203 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10204 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10205 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10206 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10207
e2de1eec
SM
102082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10209
10210 * regformats/regdat.sh: Generate declaration for init function.
10211
e0037b4c
SM
102122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10213
10214 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10215 up.
10216 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10217 close_one_inferior>: New methods.
10218 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10219 pass down target to find_inferior_pid.
10220 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10221 Pass down target to find_inferior_ptid.
10222 (gdbsim_target::create_inferior): Pass down target to
10223 add_thread_silent.
10224 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10225 target down to find_inferior_ptid and switch_to_thread.
10226 (gdbsim_target::close): Update to call close_one_inferior.
10227 (struct resume_data): Remove.
10228 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10229 directly, rather than through a void pointer.
10230 (gdbsim_target::resume): Update to call resume_one_inferior.
10231
58920b5b
SM
102322020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10233
10234 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10235
4ec89149
PA
102362020-01-12 Pedro Alves <palves@redhat.com>
10237
10238 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10239 directly for the current inferior instead of
10240 discard_all_inferiors.
10241 (discard_all_inferiors): Delete.
10242
7c392d1d
TT
102432020-01-11 Tom Tromey <tom@tromey.com>
10244
10245 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10246 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10247 deprecated_safe_get_selected_frame.
10248
d9ebdab7
TBA
102492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10250
10251 * inferior.c (print_inferior): Switch inferior before printing it.
10252
f3c469b9
PA
102532020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10254 Pedro Alves <palves@redhat.com>
10255
10256 * progspace-and-thread.c (switch_to_program_space_and_thread):
10257 Assert there's an inferior for PSPACE. Use
10258 switch_to_inferior_no_thread to switch the inferior too.
10259 * progspace.c (program_space::~program_space): Call
10260 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10261 (program_space::free_all_objfiles): Don't call clear_symtab_users
10262 here.
10263 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10264
65c574f6
PA
102652020-01-10 Pedro Alves <palves@redhat.com>
10266
10267 * NEWS: Mention multi-target debugging, "info connections", and
10268 "add-inferior -no-connection".
10269
2f4fcf00
PA
102702020-01-10 Pedro Alves <palves@redhat.com>
10271
10272 * infrun.c: Include "target-connection.h".
10273 (check_multi_target_resumption): New.
10274 (proceed): Call it.
10275 * target-connection.c (make_target_connection_string): Make
10276 extern.
10277 * target-connection.h (make_target_connection_string): Declare.
10278
121b3efd
PA
102792020-01-10 Pedro Alves <palves@redhat.com>
10280
10281 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10282 * inferior.c (uiout_field_connection): New function.
10283 (print_inferior): Add new "connection-id" column.
10284 (add_inferior_command): Show connection number/string of added
10285 inferior.
10286 * process-stratum-target.h
10287 (process_stratum_target::connection_string): New virtual method.
10288 (process_stratum_target::connection_number): New field.
10289 * remote.c (remote_target::connection_string): New override.
10290 * target-connection.c: New file.
10291 * target-connection.h: New file.
10292 * target.c (decref_target): Remove process_stratum targets from
10293 the connection list.
10294 (target_stack::push): Add process_stratum targets to the
10295 connection list.
10296
4f837581
PA
102972020-01-10 Pedro Alves <palves@redhat.com>
10298
10299 Revert:
10300 2016-04-12 Pedro Alves <palves@redhat.com>
10301 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10302 Remove references to name.
10303 * serial.h (struct serial) <name>: Delete.
10304
f4ec508e
PA
103052020-01-10 Pedro Alves <palves@redhat.com>
10306
10307 * gdbarch-selftests.c (register_to_value_test): Remove "target
10308 already pushed" check.
10309
5b6d1e4f
PA
103102020-01-10 Pedro Alves <palves@redhat.com>
10311 John Baldwin <jhb@FreeBSD.org>
10312
10313 * aarch64-linux-nat.c
10314 (aarch64_linux_nat_target::thread_architecture): Adjust.
10315 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10316 (task_command_1): Likewise.
10317 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10318 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10319 (aix_thread_target::store_registers)
10320 (aix_thread_target::thread_alive): Adjust.
10321 * amd64-fbsd-tdep.c: Include "inferior.h".
10322 (amd64fbsd_get_thread_local_address): Pass down target.
10323 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10324 thread's gdbarch instead of target_gdbarch.
10325 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10326 get_last_target_status.
10327 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10328 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10329 inferiors.
10330 (update_inserted_breakpoint_locations): Skip if inferiors with no
10331 execution.
10332 (update_global_location_list): When handling moribund locations,
10333 find representative inferior for location's pspace, and use thread
10334 count of its process_stratum target.
10335 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10336 * bsd-uthread.c (bsd_uthread_target::wait): Use
10337 as_process_stratum_target and adjust thread_change_ptid and
10338 add_thread calls.
10339 (bsd_uthread_target::update_thread_list): Use
10340 as_process_stratum_target and adjust find_thread_ptid,
10341 thread_change_ptid and add_thread calls.
10342 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10343 find_thread_ptid call.
10344 * corelow.c (add_to_thread_list): Adjust add_thread call.
10345 (core_target_open): Adjust add_thread_silent and thread_count
10346 calls.
10347 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10348 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10349 * event-top.c (async_disconnect): Pop targets from all inferiors.
10350 * exec.c (add_target_sections): Push exec target on all inferiors
10351 sharing the program space.
10352 (remove_target_sections): Remove the exec target from all
10353 inferiors sharing the program space.
10354 (exec_on_vfork): New.
10355 * exec.h (exec_on_vfork): Declare.
10356 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10357 Pass it down.
10358 (fbsd_nat_target::update_thread_list): Adjust.
10359 (fbsd_nat_target::resume): Adjust.
10360 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10361 down.
10362 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10363 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10364 get_thread_arch_regcache call.
10365 * fork-child.c (gdb_startup_inferior): Pass target down to
10366 startup_inferior and set_executing.
10367 * gdbthread.h (struct process_stratum_target): Forward declare.
10368 (add_thread, add_thread_silent, add_thread_with_info)
10369 (in_thread_list): Add process_stratum_target parameter.
10370 (find_thread_ptid(inferior*, ptid_t)): New overload.
10371 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10372 parameter.
10373 (all_threads()): Delete overload.
10374 (all_threads, all_non_exited_threads): Add process_stratum_target
10375 parameter.
10376 (all_threads_safe): Use brace initialization.
10377 (thread_count): Add process_stratum_target parameter.
10378 (set_resumed, set_running, set_stop_requested, set_executing)
10379 (threads_are_executing, finish_thread_state): Add
10380 process_stratum_target parameter.
10381 (switch_to_thread): Use is_current_thread.
10382 * i386-fbsd-tdep.c: Include "inferior.h".
10383 (i386fbsd_get_thread_local_address): Pass down target.
10384 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10385 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10386 have_inferiors check.
10387 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10388 (inf_ptrace_target::attach): Adjust.
10389 * infcall.c (run_inferior_call): Adjust.
10390 * infcmd.c (run_command_1): Pass target to
10391 scoped_finish_thread_state.
10392 (proceed_thread_callback): Skip inferiors with no execution.
10393 (continue_command): Rename 'all_threads' local to avoid hiding
10394 'all_threads' function. Adjust get_last_target_status call.
10395 (prepare_one_step): Adjust set_running call.
10396 (signal_command): Use user_visible_resume_target. Compare thread
10397 pointers instead of inferior_ptid.
10398 (info_program_command): Adjust to pass down target.
10399 (attach_command): Mark target's 'thread_executing' flag.
10400 (stop_current_target_threads_ns): New, factored out from ...
10401 (interrupt_target_1): ... this. Switch inferior before making
10402 target calls.
10403 * inferior-iter.h
10404 (struct all_inferiors_iterator, struct all_inferiors_range)
10405 (struct all_inferiors_safe_range)
10406 (struct all_non_exited_inferiors_range): Filter on
10407 process_stratum_target too. Remove explicit.
10408 * inferior.c (inferior::inferior): Push dummy target on target
10409 stack.
10410 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10411 Add process_stratum_target parameter, and pass it down.
10412 (have_live_inferiors): Adjust.
10413 (switch_to_inferior_and_push_target): New.
10414 (add_inferior_command, clone_inferior_command): Handle
10415 "-no-connection" parameter. Use
10416 switch_to_inferior_and_push_target.
10417 (_initialize_inferior): Mention "-no-connection" option in
10418 the help of "add-inferior" and "clone-inferior" commands.
10419 * inferior.h: Include "process-stratum-target.h".
10420 (interrupt_target_1): Use bool.
10421 (struct inferior) <push_target, unpush_target, target_is_pushed,
10422 find_target_beneath, top_target, process_target, target_at,
10423 m_stack>: New.
10424 (discard_all_inferiors): Delete.
10425 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10426 (all_inferiors, all_non_exited_inferiors): Add
10427 process_stratum_target parameter.
10428 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10429 (target_last_proc_target): New global.
10430 (follow_fork_inferior): Push target on new inferior. Pass target
10431 to add_thread_silent. Call exec_on_vfork. Handle target's
10432 reference count.
10433 (follow_fork): Adjust get_last_target_status call. Also consider
10434 target.
10435 (follow_exec): Push target on new inferior.
10436 (struct execution_control_state) <target>: New field.
10437 (user_visible_resume_target): New.
10438 (do_target_resume): Call target_async.
10439 (resume_1): Set target's threads_executing flag. Consider resume
10440 target.
10441 (commit_resume_all_targets): New.
10442 (proceed): Also consider resume target. Skip threads of inferiors
10443 with no execution. Commit resumtion in all targets.
10444 (start_remote): Pass current inferior to wait_for_inferior.
10445 (infrun_thread_stop_requested): Consider target as well. Pass
10446 thread_info pointer to clear_inline_frame_state instead of ptid.
10447 (infrun_thread_thread_exit): Consider target as well.
10448 (random_pending_event_thread): New inferior parameter. Use it.
10449 (do_target_wait): Rename to ...
10450 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10451 down.
10452 (threads_are_resumed_pending_p, do_target_wait): New.
10453 (prepare_for_detach): Adjust calls.
10454 (wait_for_inferior): New inferior parameter. Handle it. Use
10455 do_target_wait_1 instead of do_target_wait.
10456 (fetch_inferior_event): Adjust. Switch to representative
10457 inferior. Pass target down.
10458 (set_last_target_status): Add process_stratum_target parameter.
10459 Save target in global.
10460 (get_last_target_status): Add process_stratum_target parameter and
10461 handle it.
10462 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10463 (context_switch): Check inferior_ptid == null_ptid before calling
10464 inferior_thread().
10465 (get_inferior_stop_soon): Pass down target.
10466 (wait_one): Rename to ...
10467 (poll_one_curr_target): ... this.
10468 (struct wait_one_event): New.
10469 (wait_one): New.
10470 (stop_all_threads): Adjust.
10471 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10472 event's target.
10473 (switch_back_to_stepped_thread): Also consider target.
10474 (print_stop_event): Update.
10475 (normal_stop): Update. Also consider the resume target.
10476 * infrun.h (wait_for_inferior): Remove declaration.
10477 (user_visible_resume_target): New declaration.
10478 (get_last_target_status, set_last_target_status): New
10479 process_stratum_target parameter.
10480 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10481 process_stratum_target parameter, and use it.
10482 (clear_inline_frame_state (thread_info*)): New.
10483 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10484 process_stratum_target parameter.
10485 (clear_inline_frame_state (thread_info*)): Declare.
10486 * linux-fork.c (delete_checkpoint_command): Pass target down to
10487 find_thread_ptid.
10488 (checkpoint_command): Adjust.
10489 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10490 instead of just tweaking inferior_ptid.
10491 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10492 (exit_lwp): Pass target down to find_thread_ptid.
10493 (attach_proc_task_lwp_callback): Pass target down to
10494 add_thread/set_running/set_executing.
10495 (linux_nat_target::attach): Pass target down to
10496 thread_change_ptid.
10497 (get_detach_signal): Pass target down to find_thread_ptid.
10498 Consider last target status's target.
10499 (linux_resume_one_lwp_throw, resume_lwp)
10500 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10501 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10502 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10503 (linux_nat_target::async_wait_fd): New.
10504 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10505 target down.
10506 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10507 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10508 * linux-thread-db.c (struct thread_db_info::process_target): New
10509 field.
10510 (add_thread_db_info): Save target.
10511 (get_thread_db_info): New process_stratum_target parameter. Also
10512 match target.
10513 (delete_thread_db_info): New process_stratum_target parameter.
10514 Also match target.
10515 (thread_from_lwp): Adjust to pass down target.
10516 (thread_db_notice_clone): Pass down target.
10517 (check_thread_db_callback): Pass down target.
10518 (try_thread_db_load_1): Always push the thread_db target.
10519 (try_thread_db_load, record_thread): Pass target down.
10520 (thread_db_target::detach): Pass target down. Always unpush the
10521 thread_db target.
10522 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10523 target down. Always unpush the thread_db target.
10524 (find_new_threads_callback, thread_db_find_new_threads_2)
10525 (thread_db_target::update_thread_list): Pass target down.
10526 (thread_db_target::pid_to_str): Pass current inferior down.
10527 (thread_db_target::get_thread_local_address): Pass target down.
10528 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10529 target down.
10530 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10531 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10532 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10533 (procfs_init_inferior): Rename to ...
10534 (procfs_target::procfs_init_inferior): ... this and adjust.
10535 (procfs_target::create_inferior, procfs_notice_thread)
10536 (procfs_do_thread_registers): Adjust.
10537 * ppc-fbsd-tdep.c: Include "inferior.h".
10538 (ppcfbsd_get_thread_local_address): Pass down target.
10539 * proc-service.c (ps_xfer_memory): Switch current inferior and
10540 program space as well.
10541 (get_ps_regcache): Pass target down.
10542 * process-stratum-target.c
10543 (process_stratum_target::thread_address_space)
10544 (process_stratum_target::thread_architecture): Pass target down.
10545 * process-stratum-target.h
10546 (process_stratum_target::threads_executing): New field.
10547 (as_process_stratum_target): New.
10548 * ravenscar-thread.c
10549 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10550 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10551 down.
10552 * record-btrace.c (record_btrace_target::info_record): Adjust.
10553 (record_btrace_target::record_method)
10554 (record_btrace_target::record_is_replaying)
10555 (record_btrace_target::fetch_registers)
10556 (get_thread_current_frame_id, record_btrace_target::resume)
10557 (record_btrace_target::wait, record_btrace_target::stop): Pass
10558 target down.
10559 * record-full.c (record_full_wait_1): Switch to event thread.
10560 Pass target down.
10561 * regcache.c (regcache::regcache)
10562 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10563 process_stratum_target parameter and handle it.
10564 (current_thread_target): New global.
10565 (get_thread_regcache): Add process_stratum_target parameter and
10566 handle it. Switch inferior before calling target method.
10567 (get_thread_regcache): Pass target down.
10568 (get_thread_regcache_for_ptid): Pass target down.
10569 (registers_changed_ptid): Add process_stratum_target parameter and
10570 handle it.
10571 (registers_changed_thread, registers_changed): Pass target down.
10572 (test_get_thread_arch_aspace_regcache): New.
10573 (current_regcache_test): Define a couple local test_target_ops
10574 instances and use them for testing.
10575 (readwrite_regcache): Pass process_stratum_target parameter.
10576 (cooked_read_test, cooked_write_test): Pass mock_target down.
10577 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10578 (get_thread_arch_aspace_regcache): Add process_stratum_target
10579 parameter.
10580 (regcache::target): New method.
10581 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10582 (regcache::registers_changed_ptid): Add process_stratum_target
10583 parameter.
10584 (regcache::m_target): New field.
10585 (registers_changed_ptid): Add process_stratum_target parameter.
10586 * remote.c (remote_state::supports_vCont_probed): New field.
10587 (remote_target::async_wait_fd): New method.
10588 (remote_unpush_and_throw): Add remote_target parameter.
10589 (get_current_remote_target): Adjust.
10590 (remote_target::remote_add_inferior): Push target.
10591 (remote_target::remote_add_thread)
10592 (remote_target::remote_notice_new_inferior)
10593 (get_remote_thread_info): Pass target down.
10594 (remote_target::update_thread_list): Skip threads of inferiors
10595 bound to other targets. (remote_target::close): Don't discard
10596 inferiors. (remote_target::add_current_inferior_and_thread)
10597 (remote_target::process_initial_stop_replies)
10598 (remote_target::start_remote)
10599 (remote_target::remote_serial_quit_handler): Pass down target.
10600 (remote_target::remote_unpush_target): New remote_target
10601 parameter. Unpush the target from all inferiors.
10602 (remote_target::remote_unpush_and_throw): New remote_target
10603 parameter. Pass it down.
10604 (remote_target::open_1): Check whether the current inferior has
10605 execution instead of checking whether any inferior is live. Pass
10606 target down.
10607 (remote_target::remote_detach_1): Pass down target. Use
10608 remote_unpush_target.
10609 (extended_remote_target::attach): Pass down target.
10610 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10611 (remote_target::append_resumption): Pass down target.
10612 (remote_target::append_pending_thread_resumptions)
10613 (remote_target::remote_resume_with_hc, remote_target::resume)
10614 (remote_target::commit_resume): Pass down target.
10615 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10616 (remote_target::interrupt_query)
10617 (remote_target::remove_new_fork_children)
10618 (remote_target::check_pending_events_prevent_wildcard_vcont)
10619 (remote_target::remote_parse_stop_reply)
10620 (remote_target::process_stop_reply): Pass down target.
10621 (first_remote_resumed_thread): New remote_target parameter. Pass
10622 it down.
10623 (remote_target::wait_as): Pass down target.
10624 (unpush_and_perror): New remote_target parameter. Pass it down.
10625 (remote_target::readchar, remote_target::remote_serial_write)
10626 (remote_target::getpkt_or_notif_sane_1)
10627 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10628 down target.
10629 (remote_target::mourn_inferior): Pass down target. Use
10630 remote_unpush_target.
10631 (remote_target::core_of_thread)
10632 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10633 (remote_target::pid_to_exec_file)
10634 (remote_target::thread_handle_to_thread_info): Pass down target.
10635 (remote_target::async_wait_fd): New.
10636 * riscv-fbsd-tdep.c: Include "inferior.h".
10637 (riscv_fbsd_get_thread_local_address): Pass down target.
10638 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10639 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10640 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10641 Adjust.
10642 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10643 * solib-svr4.c (enable_break): Pass down target.
10644 * spu-multiarch.c (parse_spufs_run): Pass down target.
10645 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10646 * target-delegates.c: Regenerate.
10647 * target.c (g_target_stack): Delete.
10648 (current_top_target): Return the current inferior's top target.
10649 (target_has_execution_1): Refer to the passed-in inferior's top
10650 target.
10651 (target_supports_terminal_ours): Check whether the initial
10652 inferior was already created.
10653 (decref_target): New.
10654 (target_stack::push): Incref/decref the target.
10655 (push_target, push_target, unpush_target): Adjust.
10656 (target_stack::unpush): Defref target.
10657 (target_is_pushed): Return bool. Adjust to refer to the current
10658 inferior's target stack.
10659 (dispose_inferior): Delete, and inline parts ...
10660 (target_preopen): ... here. Only dispose of the current inferior.
10661 (target_detach): Hold strong target reference while detaching.
10662 Pass target down.
10663 (target_thread_name): Add assertion.
10664 (target_resume): Pass down target.
10665 (target_ops::beneath, find_target_at): Adjust to refer to the
10666 current inferior's target stack.
10667 (get_dummy_target): New.
10668 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10669 has a thread running.
10670 (initialize_targets): Rename to ...
10671 (_initialize_target): ... this.
10672 * target.h: Include "gdbsupport/refcounted-object.h".
10673 (struct target_ops): Inherit refcounted_object.
10674 (target_ops::shortname, target_ops::longname): Make const.
10675 (target_ops::async_wait_fd): New method.
10676 (decref_target): Declare.
10677 (struct target_ops_ref_policy): New.
10678 (target_ops_ref): New typedef.
10679 (get_dummy_target): Declare function.
10680 (target_is_pushed): Return bool.
10681 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10682 (all_matching_threads_iterator::all_matching_threads_iterator):
10683 Handle filter target.
10684 * thread-iter.h (struct all_matching_threads_iterator, struct
10685 all_matching_threads_range, class all_non_exited_threads_range):
10686 Filter by target too. Remove explicit.
10687 * thread.c (threads_executing): Delete.
10688 (inferior_thread): Pass down current inferior.
10689 (clear_thread_inferior_resources): Pass down thread pointer
10690 instead of ptid_t.
10691 (add_thread_silent, add_thread_with_info, add_thread): Add
10692 process_stratum_target parameter. Use it for thread and inferior
10693 searches.
10694 (is_current_thread): New.
10695 (thread_info::deletable): Use it.
10696 (find_thread_ptid, thread_count, in_thread_list)
10697 (thread_change_ptid, set_resumed, set_running): New
10698 process_stratum_target parameter. Pass it down.
10699 (set_executing): New process_stratum_target parameter. Pass it
10700 down. Adjust reference to 'threads_executing'.
10701 (threads_are_executing): New process_stratum_target parameter.
10702 Adjust reference to 'threads_executing'.
10703 (set_stop_requested, finish_thread_state): New
10704 process_stratum_target parameter. Pass it down.
10705 (switch_to_thread): Also match inferior.
10706 (switch_to_thread): New process_stratum_target parameter. Pass it
10707 down.
10708 (update_threads_executing): Reimplement.
10709 * top.c (quit_force): Pop targets from all inferior.
10710 (gdb_init): Don't call initialize_targets.
10711 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10712 Declare.
10713 (windows_add_thread, windows_delete_thread): Adjust.
10714 (get_windows_debug_event): Rename to ...
10715 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10716 * tracefile-tfile.c (tfile_target_open): Pass down target.
10717 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10718 Forward declare.
10719 (switch_to_thread): Add process_stratum_target parameter.
10720 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10721 parameter. Use it.
10722 (mi_on_resume): Pass target down.
10723 * nat/fork-inferior.c (startup_inferior): Add
10724 process_stratum_target parameter. Pass it down.
10725 * nat/fork-inferior.h (startup_inferior): Add
10726 process_stratum_target parameter.
10727 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10728
75c6c844
PA
107292020-01-10 Pedro Alves <palves@redhat.com>
10730
10731 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10732 directly. Instead find the first thread in the thread list and
10733 use switch_to_thread.
10734
78f2c40a
PA
107352020-01-10 Pedro Alves <palves@redhat.com>
10736
10737 * remote.c (remote_target::remote_add_inferior): Don't bind a
10738 process to the current inferior if the current inferior is already
10739 bound to a process.
10740
e7af6c70
TBA
107412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10742 Pedro Alves <palves@redhat.com>
10743
10744 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10745 If no process is specified, return null_ptid instead of
10746 inferior_ptid.
10747 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10748 TARGET_WAITKIND_SIGNALLED with no pid.
10749
31ba933e
PA
107502020-01-10 Pedro Alves <palves@redhat.com>
10751
10752 * remote.c (first_remote_resumed_thread): New.
10753 (remote_target::wait_as): Use it as default event_ptid instead of
10754 inferior_ptid.
10755
735fc2ca
PA
107562020-01-10 Pedro Alves <palves@redhat.com>
10757
10758 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10759
c17e02e1
PA
107602020-01-10 Pedro Alves <palves@redhat.com>
10761
10762 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10763 not -1.
10764
ab1ddbcf
PA
107652020-01-10 Pedro Alves <palves@redhat.com>
10766
10767 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10768 ptid to get_last_target_status.
10769 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10770 ptid to get_last_target_status.
10771 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10772 get_last_target_status.
10773 (info_program_command): Don't pass a target_waitstatus to
10774 get_last_target_status.
10775 * infrun.c (init_wait_for_inferior): Use
10776 nullify_last_target_wait_ptid.
10777 (get_last_target_status): Handle nullptr arguments.
10778 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10779 (print_stop_event): Don't pass a ptid to get_last_target_status.
10780 (normal_stop): Don't pass a ptid to get_last_target_status.
10781 * infrun.h (get_last_target_status, set_last_target_status): Move
10782 comments here and update.
10783 (nullify_last_target_wait_ptid): Declare.
10784 * linux-fork.c (fork_load_infrun_state): Remove local extern
10785 declaration of nullify_last_target_wait_ptid.
10786 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10787 to get_last_target_status.
10788
f3f8ece4
PA
107892020-01-10 Pedro Alves <palves@redhat.com>
10790
10791 * gdbthread.h (scoped_restore_current_thread)
10792 <dont_restore, restore, m_dont_restore>: Declare.
10793 * thread.c (thread_alive): Add assertion. Return bool.
10794 (switch_to_thread_if_alive): New.
10795 (prune_threads): Switch inferior/thread.
10796 (print_thread_info_1): Switch thread before calling target methods.
10797 (scoped_restore_current_thread::restore): New, factored out from
10798 ...
10799 (scoped_restore_current_thread::~scoped_restore_current_thread):
10800 ... this.
10801 (scoped_restore_current_thread::scoped_restore_current_thread):
10802 Add assertion.
10803 (thread_apply_all_command, thread_select): Use
10804 switch_to_thread_if_alive.
10805 * infrun.c (proceed, restart_threads, handle_signal_stop)
10806 (switch_back_to_stepped_thread): Switch current thread before
10807 calling target methods.
10808
db2d40f7
PA
108092020-01-10 Pedro Alves <palves@redhat.com>
10810
10811 * inferior.c (switch_to_inferior_no_thread): New function,
10812 factored out from ...
10813 (inferior_command): ... here.
10814 * inferior.h (switch_to_inferior_no_thread): Declare.
10815 * mi/mi-main.c (run_one_inferior): Use
10816 switch_to_inferior_no_thread.
10817
bd420a2d
PA
108182020-01-10 Pedro Alves <palves@redhat.com>
10819
10820 * infcmd.c (kill_command): Remove dead code.
10821
ddf5db90
PA
108222020-01-10 Pedro Alves <palves@redhat.com>
10823
10824 * remote.c (remote_target::mourn_inferior): No longer check
10825 whether the target is running.
10826
5018ce90
PA
108272020-01-10 Pedro Alves <palves@redhat.com>
10828
10829 * corelow.c (core_target::has_execution): Change parameter type to
10830 inferior pointer.
10831 * inferior.c (number_of_live_inferiors): Use
10832 inferior::has_execution instead of target_has_execution_1.
10833 * inferior.h (inferior::has_execution): New.
10834 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10835 inferior::has_execution instead of target_has_execution_1.
10836 * process-stratum-target.c
10837 (process_stratum_target::has_execution): Change parameter type to
10838 inferior pointer. Check the inferior's PID instead of
10839 inferior_ptid.
10840 * process-stratum-target.h
10841 (process_stratum_target::has_execution): Change parameter type to
10842 inferior pointer.
10843 * record-full.c (record_full_core_target::has_execution): Change
10844 parameter type to inferior pointer.
10845 * target.c (target_has_execution_1): Change parameter type to
10846 inferior pointer.
10847 (target_has_execution_current): Adjust.
10848 * target.h (target_ops::has_execution): Change parameter type to
10849 inferior pointer.
10850 (target_has_execution_1): Change parameter type to inferior
10851 pointer. Change return type to bool.
10852 * tracefile.h (tracefile_target::has_execution): Change parameter
10853 type to inferior pointer.
10854
74375d18
PA
108552020-01-10 Pedro Alves <palves@redhat.com>
10856
10857 * exceptions.c (print_flush): Remove current_top_target() check.
10858
acdf84a6
PA
108592020-01-10 Pedro Alves <palves@redhat.com>
10860
10861 * remote.c (show_remote_exec_file): Show the current inferior's
10862 exec-file instead of the command variable's value.
10863
ec506636
PA
108642020-01-10 Pedro Alves <palves@redhat.com>
10865
10866 * record-full.c (record_full_resume_ptid): New global.
10867 (record_full_target::resume): Set it.
10868 (record_full_wait_1): Use record_full_resume_ptid instead of
10869 inferior_ptid.
10870
873657b9
PA
108712020-01-10 Pedro Alves <palves@redhat.com>
10872
10873 * gdbthread.h (scoped_restore_current_thread)
10874 <dont_restore, restore, m_dont_restore>: Declare.
10875 * thread.c (thread_alive): Add assertion. Return bool.
10876 (switch_to_thread_if_alive): New.
10877 (prune_threads): Switch inferior/thread.
10878 (print_thread_info_1): Switch thread before calling target methods.
10879 (scoped_restore_current_thread::restore): New, factored out from
10880 ...
10881 (scoped_restore_current_thread::~scoped_restore_current_thread):
10882 ... this.
10883 (scoped_restore_current_thread::scoped_restore_current_thread):
10884 Add assertion.
10885 (thread_apply_all_command, thread_select): Use
10886 switch_to_thread_if_alive.
10887
7f0ae84c
GB
108882020-01-10 George Barrett <bob@bob131.so>
10889
10890 * stap-probe.c (stap_modify_semaphore): Don't check for null
10891 semaphores.
10892 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10893 for null semaphores.
10894
f5a7c406
AB
108952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10896
10897 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10898 all source windows, and maintain horizontal scroll status while
10899 doing so.
10900
9ae6bf64
TT
109012020-01-09 Tom Tromey <tom@tromey.com>
10902
10903 PR tui/18932:
10904 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10905 update_source_window, not print_source_lines.
10906
b2efe70c
AB
109072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10908
10909 * tui/tui.c (tui_enable): Register tui hooks after calling
10910 tui_display_main.
10911
5f23a082
CB
109122020-01-09 Christian Biesinger <cbiesinger@google.com>
10913
10914 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10915
3061113b
SM
109162020-01-08 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * thread.c (print_thread_info_1): Fix indentation.
10919
57d75002
CB
109202020-01-09 Christian Biesinger <cbiesinger@google.com>
10921
10922 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10923 unique_xmalloc_ptr outside the if to always free the demangled name.
10924
6a053cb1
TT
109252020-01-08 Tom Tromey <tromey@adacore.com>
10926
10927 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10928 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10929 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10930 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10931 Remove.
10932 (section_offsets): New typedef.
10933 * symtab.c (fixup_section, get_msymbol_address): Update.
10934 * symmisc.c (dump_msymbols): Update.
10935 * symfile.h (relative_addr_info_to_section_offsets)
10936 (symfile_map_offsets_to_segments): Update.
10937 * symfile.c (build_section_addr_info_from_objfile)
10938 (init_objfile_sect_indices): Update.
10939 (struct place_section_arg): Change type of "offsets".
10940 (place_section): Update.
10941 (relative_addr_info_to_section_offsets): Change type of
10942 "section_offsets". Remove "num_sections" parameter.
10943 (default_symfile_offsets, syms_from_objfile_1)
10944 (set_objfile_default_section_offset): Update.
10945 (reread_symbols): No need to preserve section offsets by hand.
10946 (symfile_map_offsets_to_segments): Change type of "offsets".
10947 * stap-probe.c (relocate_address): Update.
10948 * stabsread.h (process_one_symbol): Update.
10949 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10950 (solib_target_relocate_section_addresses): Update.
10951 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10952 Update.
10953 * solib-frv.c (frv_relocate_main_executable): Update.
10954 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10955 * solib-aix.c (solib_aix_get_section_offsets): Change return
10956 type.
10957 (solib_aix_solib_create_inferior_hook): Update.
10958 * remote.c (remote_target::get_offsets): Update.
10959 * psymtab.c (find_pc_sect_psymtab): Update.
10960 * psympriv.h (struct partial_symbol) <address, text_low,
10961 text_high>: Update.
10962 * objfiles.h (obj_section_offset): Update.
10963 (struct objfile) <section_offsets>: Change type.
10964 <num_sections>: Remove.
10965 (objfile_relocate): Update.
10966 * objfiles.c (entry_point_address_query): Update
10967 (relocate_one_symbol): Change type of "section_offsets".
10968 (objfile_relocate1, objfile_relocate1): Change type of
10969 "new_offsets".
10970 (objfile_rebase1): Update.
10971 * mipsread.c (mipscoff_symfile_read): Update.
10972 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10973 parameter.
10974 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10975 (parse_external, psymtab_to_symtab_1): Update.
10976 * machoread.c (macho_symfile_offsets): Update.
10977 * ia64-tdep.c (ia64_find_unwind_table): Update.
10978 * hppa-tdep.c (read_unwind_info): Update.
10979 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10980 * dwarf2read.c (create_addrmap_from_index)
10981 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10982 (process_psymtab_comp_unit_reader, add_partial_symbol)
10983 (add_partial_subprogram, process_full_comp_unit)
10984 (read_file_scope, read_func_scope, read_lexical_block_scope)
10985 (read_call_site_scope, dwarf2_rnglists_process)
10986 (dwarf2_ranges_process, dwarf2_ranges_read)
10987 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10988 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10989 Update.
10990 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10991 Update.
10992 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10993 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10994 (process_one_symbol): Change type of "section_offsets".
10995 * ctfread.c (get_objfile_text_range): Update.
10996 * coffread.c (coff_symtab_read, enter_linenos)
10997 (process_coff_symbol): Update.
10998 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10999 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11000
456e800a
TT
110012020-01-08 Tom Tromey <tromey@adacore.com>
11002
11003 * dwarf2read.c (parse_macro_definition): Use std::string.
11004 (parse_macro_definition): Likewise.
11005
6dfa2fc2
TT
110062020-01-08 Tom Tromey <tromey@adacore.com>
11007
11008 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11009 (ATTR_ALLOC_CHUNK): Remove.
11010
421d1616
TT
110112020-01-08 Tom Tromey <tromey@adacore.com>
11012
11013 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11014
43816ebc
TT
110152020-01-08 Tom Tromey <tromey@adacore.com>
11016
11017 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11018 (dwarf2_compute_name, open_dwo_file): Likewise.
11019 (process_enumeration_scope): Use std::vector.
11020 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11021 (partial_die_info::fixup, dwarf2_start_subfile)
11022 (guess_full_die_structure_name, dwarf2_name): Likewise.
11023 (determine_prefix): Update.
11024 (guess_full_die_structure_name): Make return type const.
11025 (partial_die_full_name): Return unique_xmalloc_ptr.
11026 (DW_FIELD_ALLOC_CHUNK): Remove.
11027
4212d509
TT
110282020-01-07 Tom Tromey <tromey@adacore.com>
11029
11030 PR build/24937:
11031 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11032
06a6207a
JT
110332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11034
11035 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11036
153d79c4
AB
110372020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11038
11039 * stack.c (print_frame_info): Move disassemble_next_line code
11040 inside source_print block.
11041
66182876
EZ
110422020-01-06 Eli Zaretskii <eliz@gnu.org>
11043
11044 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11045 gdb/signals.h, as we are now using native signal symbols.
11046
cbfa8581
SV
110472020-01-06 Shahab Vahedi <shahab@synopsys.com>
11048
11049 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11050 overflow by an early check of content vs threshold.
aac66a4c 11051 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11052 Likewise.
11053
3f602821
EZ
110542020-01-06 Eli Zaretskii <eliz@gnu.org>
11055
11056 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11057
a08c904d
JT
110582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11059
11060 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11061 export table if no section contains it's RVA.
11062
89a65580
EZ
110632020-01-06 Eli Zaretskii <eliz@gnu.org>
11064
11065 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11066
8b7fcda2
HD
110672020-01-06 Hannes Domani <ssbssa@yahoo.de>
11068
11069 * source.c (print_source_lines_base): Set last_line_listed.
11070
a61b4f69
SV
110712020-01-06 Shahab Vahedi <shahab@synopsys.com>
11072
11073 * tui/tui-disasm.c: Remove trailing spaces.
11074
559e7e50
EZ
110752020-01-06 Eli Zaretskii <eliz@gnu.org>
11076 Pedro Alves <palves@redhat.com>
11077
11078 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11079 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11080 (windows_gdb_signal_to_target): New function, uses the above
11081 enumeration to convert GDB internal signal codes to equivalent
11082 Windows codes.
11083 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11084 * windows-nat.c: Include "gdb_wait.h".
11085 (get_windows_debug_event): Extract the fatal exception from the
11086 exit status and convert to the equivalent Posix signal number.
11087 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11088 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11089 * gdbsupport/gdb_wait.c: New file, implements
11090 windows_status_to_termsig.
11091 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11092 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11093
f2302a34
AB
110942020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11095
11096 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11097 show_layout.
11098
6a5206eb
LM
110992020-01-05 Luis Machado <luis.machado@linaro.org>
11100
11101 * aarch64-linux-nat.c
11102 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11103 and bfd_mach_aarch64.
11104
6ec1d75e
PW
111052020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11106
11107 * ui-file.c (stdio_file::can_emit_style_escape)
11108 (tee_file::can_emit_style_escape): Ensure style is used also on
11109 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11110 to gdb_stdout.
11111 * main.c (set_gdb_data_directory): Use file style to output the
11112 warning that the given pathname is not a directory.
11113 * top.c (show_history_filename, gdb_safe_append_history)
11114 (show_gdb_datadir): Use file style.
11115
44f81a76
HD
111162020-01-03 Hannes Domani <ssbssa@yahoo.de>
11117
11118 * solib-target.c (struct lm_info_target):
11119 Change offsets to be a unique_xmalloc_ptr.
11120 (solib_target_relocate_section_addresses): Update.
11121
25057eb0
HD
111222020-01-03 Hannes Domani <ssbssa@yahoo.de>
11123
11124 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11125
6e2118f5
BE
111262020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11127
11128 * MAINTAINERS (Write After Approval): Add myself.
11129
8133c7dc
LM
111302020-01-02 Luis Machado <luis.machado@linaro.org>
11131
11132 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11133 Cell BE architecture.
11134 * target.h (struct target_ops) <thread_architecture>: Likewise.
11135
48189bec
HD
111362020-01-01 Hannes Domani <ssbssa@yahoo.de>
11137
11138 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11139
ead1063b
HD
111402020-01-01 Hannes Domani <ssbssa@yahoo.de>
11141
11142 * MAINTAINERS (Write After Approval): Add myself.
11143
e5d78223
JB
111442020-01-01 Joel Brobecker <brobecker@adacore.com>
11145
11146 * gdbarch.sh: Update copyright year range of generated files.
11147
b811d2c2
JB
111482020-01-01 Joel Brobecker <brobecker@adacore.com>
11149
11150 Update copyright year range in all GDB files.
11151
5f4def5c
JB
111522020-01-01 Joel Brobecker <brobecker@adacore.com>
11153
11154 * copyright.py: Convert to Python 3.
11155
51fd4002
JB
111562020-01-01 Joel Brobecker <brobecker@adacore.com>
11157
11158 * copyright.py: Adapt after move of gnulib directory from gdb
11159 directory to toplevel directory.
11160
5fb651f2
JB
111612020-01-01 Joel Brobecker <brobecker@adacore.com>
11162
11163 * copyright.py (main): Exit if run from the wrong directory.
11164
5dd8bf88
JB
111652020-01-01 Joel Brobecker <brobecker@adacore.com>
11166
11167 * top.c (print_gdb_version): Change copyright year to 2020.
11168
9f71dacb 111692020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11170
9f71dacb 11171 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11172
9f71dacb 11173For older changes see ChangeLog-2019.
c906108c
SS
11174\f
11175Local Variables:
11176mode: change-log
11177left-margin: 8
11178fill-column: 74
11179version-control: never
57da7796 11180coding: utf-8
c906108c 11181End: