x86: move putop() case labels to restore alphabetic sorting
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ccb9eba6
AB
12020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * arch-utils.c (show_architecture): Update formatting of messages.
4
cf88be68
SM
52020-07-12 Simon Marchi <simon.marchi@efficios.com>
6
7 * gdbtypes.h (struct type) <bounds>: Handle array and string
8 types.
9 * ada-lang.c (assign_aggregate): Use type::bounds on
10 array/string type.
11 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
12 * c-varobj.c (c_number_of_children): Likewise.
13 (c_describe_child): Likewise.
14 * eval.c (evaluate_subexp_for_sizeof): Likewise.
15 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
16 (f_type_print_base): Likewise.
17 * f-valprint.c (f77_array_offset_tbl): Likewise.
18 (f77_get_upperbound): Likewise.
19 (f77_print_array_1): Likewise.
20 * guile/scm-type.c (gdbscm_type_range): Likewise.
21 * m2-typeprint.c (m2_array): Likewise.
22 (m2_is_long_set_of_type): Likewise.
23 * m2-valprint.c (get_long_set_bounds): Likewise.
24 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
25 * python/py-type.c (typy_range): Likewise.
26 * rust-lang.c (rust_internal_print_type): Likewise.
27 * type-stack.c (type_stack::follow_types): Likewise.
28 * valarith.c (value_subscripted_rvalue): Likewise.
29 * valops.c (value_cast): Likewise.
30
509971ae
SM
312020-07-12 Simon Marchi <simon.marchi@efficios.com>
32
33 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
34 callers to use the equivalent accessor methods.
35
107406b7
SM
362020-07-12 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
39 (struct type) <bit_stride>: New method.
40 (TYPE_BIT_STRIDE): Remove.
41 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
42
bb789949
SM
432020-07-12 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
46 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
47 callers to use the equivalent accessor methods instead.
48
39498edb
SM
492020-07-12 Simon Marchi <simon.marchi@efficios.com>
50
51 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
52 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
53 callers to use the equivalent accessor methods instead.
54
3b606f38
SM
552020-07-12 Simon Marchi <simon.marchi@efficios.com>
56
57 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
58 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
59 to use dynamic_prop::kind.
60
064d9cb9
SM
612020-07-12 Simon Marchi <simon.marchi@efficios.com>
62
63 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
64 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
65 to get the bound property's kind and check against
66 PROP_UNDEFINED.
67
5537ddd0
SM
682020-07-12 Simon Marchi <simon.marchi@efficios.com>
69
70 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
71 all callers to use type::range_bounds followed by
72 dynamic_prop::{low,high}.
73
8c2e4e06
SM
742020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
77 const_val, set_const_val, baton, set_locexpr, set_loclist,
78 set_addr_offset, variant_parts, set_variant_parts,
79 original_type, set_original_type>: New methods.
80 <kind>: Rename to...
81 <m_kind>: ... this. Update all users to use the new methods
82 instead.
83 <data>: Rename to...
84 <m_data>: ... this. Update all users to use the new methods
85 instead.
86
7c6f2712
SM
872020-07-12 Simon Marchi <simon.marchi@efficios.com>
88
89 * gdbtypes.c (get_discrete_bounds): Return failure if
90 the range type's bounds are not both defined and constant
91 values.
92 (get_array_bounds): Update comment. Remove undefined bound check.
93
599088e3
SM
942020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
97 the type::bounds method directly.
98
c4dfcb36
SM
992020-07-12 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
102 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
103 are used to set the range type's bounds to use set_bounds.
104
0a278aa7
PW
1052020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
106
107 * exec.c (_initialize_exec): Update exec-file-mismatch help.
108
cce20f10
PA
1092020-07-10 Pedro Alves <pedro@palves.net>
110
111 * gdbthread.h (inferior_ref): Define.
112 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
113 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
114 * thread.c
115 (scoped_restore_current_thread::restore):
116 Adjust to gdb::ref_ptr.
117 (scoped_restore_current_thread::~scoped_restore_current_thread):
118 Remove manual decref handling.
119 (scoped_restore_current_thread::scoped_restore_current_thread):
120 Adjust to use
121 inferior_ref::new_reference/thread_info_ref::new_reference.
122 Incref the thread before calling get_frame_id instead of after.
123 Let TARGET_CLOSE_ERROR propagate.
124
6d7aa592
PA
1252020-07-10 Pedro Alves <pedro@palves.net>
126
127 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
128 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
129 NOT_AVAILABLE_ERROR.
130 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
131 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
132
b3e3a4c1
SM
1332020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
134 Pedro Alves <pedro@palves.net>
135
136 PR gdb/26199
137 * infrun.c (threads_are_resumed_pending_p): Delete.
138 (do_target_wait): Remove threads_are_executing and
139 threads_are_resumed_pending_p checks from the inferior_matches
140 lambda. Update comments.
141
d6cc5d98
PA
1422020-07-10 Pedro Alves <pedro@palves.net>
143
144 PR gdb/26199
145 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
146 executing threads.
147
7d3badc6
PA
1482020-07-10 Pedro Alves <pedro@palves.net>
149
150 PR gdb/26199
151 * infrun.c (handle_no_resumed): Handle multiple targets.
152
42bd97a6
PA
1532020-07-10 Pedro Alves <pedro@palves.net>
154
155 PR gdb/26199
156 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
157 target_is_async_p.
158
43667cc6
PA
1592020-07-10 Pedro Alves <pedro@palves.net>
160
161 PR gdb/26199
162 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
163 threads, not all threads.
164
96118d11
PA
1652020-07-10 Pedro Alves <pedro@palves.net>
166
167 PR gdb/26199
168 * remote.c (remote_target::open_1): Pass remote target pointer as
169 data to create_async_event_handler.
170 (remote_async_inferior_event_handler): Mark async event handler
171 before returning if the remote target still has either pending
172 events or unacknowledged notifications.
173
54904d81
JB
1742020-07-10 John Baldwin <jhb@FreeBSD.org>
175
176 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
177 declaration.
178 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
179 function.
180
f37e5866
JB
1812020-07-09 John Baldwin <jhb@FreeBSD.org>
182
183 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
184 inferior_ptid.
185
fc238d4a
JB
1862020-07-09 John Baldwin <jhb@FreeBSD.org>
187
188 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
189 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
190 AT_FREEBSD_PS_STRINGS.
191
6e2469ff
HD
1922020-07-08 Hannes Domani <ssbssa@yahoo.de>
193
194 * auto-load.c (auto_load_objfile_script_1): Convert drive part
195 of debugfile path on Windows.
196
d1076c41
JB
1972020-07-08 John Baldwin <jhb@FreeBSD.org>
198
199 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
200 argument to 'data'.
201
15f3b077
TT
2022020-07-08 Tom Tromey <tromey@adacore.com>
203
204 * ada-lang.c (ada_exception_message_1): Use read_memory.
205
9fc501fd
AB
2062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 PR python/22748
209 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
210 special handling for inline frames.
211 * findvar.c (value_of_register_lazy): Skip inline frames when
212 creating lazy register values.
213 * frame.c (frame_id_computed_p): Delete definition.
214 * frame.h (frame_id_computed_p): Delete declaration.
215
64cb3757
AB
2162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * NEWS: Mention additions to Python API.
219 * python/py-arch.c (archpy_register_groups): New function.
220 (arch_object_methods): Add 'register_groups' method.
221 * python/py-registers.c (reggroup_iterator_object): New struct.
222 (reggroup_object): New struct.
223 (gdbpy_new_reggroup): New function.
224 (gdbpy_reggroup_to_string): New function.
225 (gdbpy_reggroup_name): New function.
226 (gdbpy_reggroup_iter): New function.
227 (gdbpy_reggroup_iter_next): New function.
228 (gdbpy_new_reggroup_iterator): New function
229 (gdbpy_initialize_registers): Register new types.
230 (reggroup_iterator_object_type): Define new Python type.
231 (gdbpy_reggroup_getset): New static global.
232 (reggroup_object_type): Define new Python type.
233 * python/python-internal.h
234
0f767f94
AB
2352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
238 * python/py-arch.c (archpy_registers): New function.
239 (arch_object_methods): Add 'registers' method.
240 * python/py-registers.c: New file.
241 * python/python-internal.h
242 (gdbpy_new_register_descriptor_iterator): Declare.
243 (gdbpy_initialize_registers): Declare.
244 * python/python.c (do_start_initialization): Call
245 gdbpy_initialize_registers.
246 * NEWS: Mention additions to the Python API.
247
87dbc774
AB
2482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * NEWS: Mention new Python API method.
251 * python/py-unwind.c (pending_framepy_architecture): New function.
252 (pending_frame_object_methods): Add architecture method.
253
3bc98c0c
AB
2542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * gdbarch.c: Regenerate.
257 * gdbarch.h: Regenerate.
258 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
259 (gdbarch_data): Use internal_error for the case where
260 deprecated_set_gdbarch_data was originally needed.
261 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
262 and use passed in obstack.
263 (libunwind_frame_set_descr): Should no longer get back NULL from
264 gdbarch_data.
265 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
266 type.
267 * user-regs.c (user_regs_init): Update parameters, and use passed
268 in obstack.
269 (user_reg_add): Should no longer get back NULL from gdbarch_data.
270 (_initialize_user_regs): Register as a pre-init gdbarch data type.
271
d8cc8af6
TV
2722020-07-06 Tom de Vries <tdevries@suse.de>
273
274 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
275 End-Of-Sequence in lte_is_less_than.
276 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
277 "gdb: Don't reorder line table entries too much when sorting".
278
947f7597
TV
2792020-07-06 Tom de Vries <tdevries@suse.de>
280
281 PR tui/26205
282 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
283
1e7c1b22
TV
2842020-07-05 Tom de Vries <tdevries@suse.de>
285
286 PR build/26187
287 * inferior.h (struct infcall_suspend_state_deleter): If available, use
288 std::uncaught_exceptions instead of deprecated
289 std::uncaught_exception.
290
a36158ec
SM
2912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * macroexp.h (macro_stringify): Return
294 gdb::unique_xmalloc_ptr<char>.
295 * macroexp.c (macro_stringify): Likewise.
296 * macrotab.c (fixup_definition): Update.
297
14d960c8
SM
2982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
301 (lex_one_token): Update.
302 * macroexp.c (struct macro_buffer) <release>: Return
303 gdb::unique_xmalloc_ptr<char>.
304 (macro_stringify): Update.
305 (macro_expand): Update.
306 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
307 * macroexp.h (macro_expand_next): Likewise.
308
211d5b1c
SM
3092020-07-02 Simon Marchi <simon.marchi@efficios.com>
310
311 * macroexp.h (macro_lookup_ftype): Remove.
312 (macro_expand, macro_expand_once, macro_expand_next): Remove
313 lookup function parameters, add scope parameter.
314 * macroexp.c (scan, substitute_args, expand, maybe_expand,
315 macro_expand, macro_expand_once, macro_expand_next): Likewise.
316 * macroscope.h (standard_macro_lookup): Change parameter type
317 to macro_scope.
318 * macroscope.c (standard_macro_lookup): Likewise.
319 * c-exp.y (lex_one_token): Update.
320 * macrocmd.c (macro_expand_command): Likewise.
321 (macro_expand_once_command): Likewise.
322
b1a35af2
SM
3232020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * inf-loop.c (inferior_event_handler): Remove client_data param.
326 * inf-loop.h (inferior_event_handler): Likewise.
327 * infcmd.c (step_1): Adjust.
328 * infrun.c (proceed): Adjust.
329 (fetch_inferior_event): Remove client_data param.
330 (infrun_async_inferior_event_handler): Adjust.
331 * infrun.h (fetch_inferior_event): Remove `void *` param.
332 * linux-nat.c (handle_target_event): Adjust.
333 * record-btrace.c (record_btrace_handle_async_inferior_event):
334 Adjust.
335 * record-full.c (record_full_async_inferior_event_handler):
336 Adjust.
337 * remote.c (remote_async_inferior_event_handler): Adjust.
338
1cdf9e33
TT
3392020-07-01 Tom Tromey <tom@tromey.com>
340
341 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
342 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
343
32c1e210
TT
3442020-07-01 Tom Tromey <tom@tromey.com>
345
346 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
347 tui_gen_win_info.
348 (tui_win_info::make_window): Merge with
349 tui_gen_win_info::make_window.
350 (tui_win_info::make_visible): Move from tui_gen_win_info.
351 * tui/tui-win.c (tui_win_info::max_width): Move from
352 tui_gen_win_info.
353 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
354 type.
355 <window_factory>: Likewise.
356 * tui/tui-layout.c (tui_win_info::resize): Move from
357 tui_gen_win_info.
358 (make_standard_window): Change return type.
359 (get_locator_window, tui_get_window_by_name): Likewise.
360 (tui_layout_window::apply): Remove a cast.
361 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
362 (struct tui_win_info): Merge with tui_gen_win_info.
363 (struct tui_gen_win_info): Remove.
364
a30cb6da
TT
3652020-07-01 Tom Tromey <tom@tromey.com>
366
367 * tui/tui-stack.h (struct tui_locator_window): Derive from
368 tui_win_info.
369 <do_scroll_horizontal, do_scroll_vertical>: New methods.
370 <can_box>: New method.
371
1eb2161f
TT
3722020-07-01 Tom Tromey <tom@tromey.com>
373
374 * tui/tui-stack.h (struct tui_locator_window): Remove body.
375
7134f2eb
TT
3762020-07-01 Tom Tromey <tom@tromey.com>
377
378 * tui/tui-regs.c (tui_data_window::display_registers_from)
379 (tui_data_window::display_registers_from)
380 (tui_data_window::first_data_item_displayed)
381 (tui_data_window::delete_data_content_windows): Update.
382 (tui_data_window::refresh_window, tui_data_window::no_refresh):
383 Remove.
384 (tui_data_window::check_register_values): Update.
385 (tui_data_item_window::rerender): Add parameters. Update.
386 (tui_data_item_window::refresh_window): Remove.
387 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
388 virtual.
389 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
390 tui_gen_win_info.
391 <refresh_window, max_height, min_height>: Remove.
392 <rerender>: Add parameters.
393 <x, y, visible>: New members.
394 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
395 <m_item_width>: New member.
396
22b7b041
TT
3972020-07-01 Tom Tromey <tom@tromey.com>
398
399 * tui/tui-regs.c (tui_data_window::show_register_group)
400 (tui_data_window::check_register_values): Update.
401 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
402 from item_no.
403
c9753adb
TT
4042020-07-01 Tom Tromey <tom@tromey.com>
405
406 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
407 useless "if".
408
9ab26b4a
TT
4092020-07-01 Tom Tromey <tom@tromey.com>
410
411 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
412 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
413
e555083f
TT
4142020-07-01 Tom Tromey <tom@tromey.com>
415
416 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
417 * tui/tui-winsource.h (enum tui_line_or_address_kind)
418 (struct tui_line_or_address): Move from tui-data.h.
419 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
420 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
421 (tui_cmd_window, tui_source_window_base, tui_source_window)
422 (tui_disasm_window): Don't declare.
423 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
424 to tui-winsource.h.
425 (SINGLE_KEY): Move to tui-stack.c.
426
7a02bab7
TT
4272020-07-01 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
430 std::string.
431 * tui/tui-regs.c (class tab_expansion_file): New.
432 (tab_expansion_file::write): New method.
433 (tui_register_format): Change return type. Use
434 tab_expansion_file.
435 (tui_get_register, tui_data_window::display_registers_from)
436 (tui_data_item_window::rerender): Update.
437 * tui/tui-io.h (tui_expand_tabs): Don't declare.
438 * tui/tui-io.c (tui_expand_tabs): Remove.
439
ea68593b
TT
4402020-07-01 Tom Tromey <tom@tromey.com>
441
442 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
443
a8caed5d
FS
4442020-07-01 Fangrui Song <maskray@google.com>
445
446 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
447
9cdf9820
AKS
4482020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
449
450 * dwarf2/read.c (set_die_type): Removed conditions to restrict
451 forms for DW_AT_associated and DW_AT_allocated attributes,
452 which is already checked in function attr_to_dynamic_prop.
453
a1520ad8
TT
4542020-06-30 Tom Tromey <tromey@adacore.com>
455
456 * dwarf2/read.c (quirk_rust_enum): Correctly call
457 alloc_rust_variant for default-less enum.
458
5ac58899
TT
4592020-06-30 Tom Tromey <tromey@adacore.com>
460
461 PR build/26183:
462 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
463 gdb::to_string.
464
19b187a9
SM
4652020-06-29 Simon Marchi <simon.marchi@efficios.com>
466
467 * gdbarch.sh (displaced_step_copy_insn): Update doc.
468 * gdbarch.h: Re-generate.
469
cd4c4c07
TT
4702020-06-28 Tom Tromey <tom@tromey.com>
471
472 * command.h (cmd_types): Remove.
473 (cmd_type): Don't declare.
474 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
475 typedef.
476 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
477 * cli/cli-decode.c (cmd_type): Remove.
478
05779d57
PA
4792020-06-27 Pedro Alves <palves@redhat.com>
480
481 * fork-child.c (prefork_hook): Adjust.
482 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
483 Delete.
484 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
485 * inferior.c (inferior::set_tty, inferior::tty): New methods.
486 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
487 Remove declarations.
488 (struct inferior) <set_tty, tty>: New methods.
489 (struct inferior) <terminal>: Rename to ...
490 (struct inferior) <m_terminal>: ... this and make private.
491 * main.c (captured_main_1): Adjust.
492 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
493 (mi_cmd_inferior_tty_show): Adjust.
494 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
495 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
496
1776e3e5
NA
4972020-06-26 Nick Alcock <nick.alcock@oracle.com>
498
499 * configure.ac: Add --enable-libctf: handle --disable-static
500 properly.
501 * acinclude.m4: sinclude ../config/enable.m4.
502 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
503 (LIBCTF): Substitute in.
504 (CTF_DEPS): New, likewise.
505 (CLIBS): libctf needs symbols from libbfd: move earlier.
506 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
507 flags.
508 * ctfread.c: Surround in ENABLE_LIBCTF.
509 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
510 * configure: Regenerate.
511 * config.in: Likewise.
512
58373b80
SM
5132020-06-25 Simon Marchi <simon.marchi@efficios.com>
514
515 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
516
277474ee
SM
5172020-06-25 Simon Marchi <simon.marchi@efficios.com>
518
519 * inferior.h (struct inferior) <terminal>: Change type to
520 gdb::unique_xmalloc_ptr<char>.
521 * inferior.c (inferior::~inferior): Don't free inf->terminal.
522 * infcmd.c (set_inferior_io_terminal): Don't free terminal
523 field, adjust to unique pointer.
524 (get_inferior_io_terminal): Adjust to unique pointer.
525
6d74da72
AB
5262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * riscv-tdep.c (riscv_print_registers_info): Loop over all
529 registers, not just the known core set of registers.
530
2e52d038
AB
5312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
534 fflags, frm, and fcsr registers.
535 (riscv_register_reggroup_p): Remove unknown CSRs from save and
536 restore groups.
537 (riscv_tdesc_unknown_reg): New function.
538 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
539 tdesc_use_registers.
540 * riscv-tdep.h (struct gdbarch_tdep): Add
541 unknown_csrs_first_regnum, unknown_csrs_count,
542 duplicate_fflags_regnum, duplicate_frm_regnum, and
543 duplicate_fcsr_regnum fields.
544
be64fd07
AB
5452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * target-descriptions.c (tdesc_use_registers): Add new parameter a
548 callback, use the callback (when not null) to help number unknown
549 registers.
550 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
551 (tdesc_use_registers): Add extra parameter to declaration.
552
3b9fce96
AB
5532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
556 in the file.
557 (class riscv_pending_register_alias): Likewise.
558 (riscv_register_feature::register_info): Change 'required_p' field
559 to 'required', and change its type. Add 'check' member function.
560 (riscv_register_feature::register_info::check): Define new member
561 function.
562 (riscv_xreg_feature): Change initialisation of 'required' field.
563 (riscv_freg_feature): Likewise.
564 (riscv_virtual_feature): Likewise.
565 (riscv_csr_feature): Likewise.
566 (riscv_check_tdesc_feature): Take extra parameter, the csr
567 tdesc_feature, rewrite the function to use the new
568 riscv_register_feature::register_info::check function.
569 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
570
865bad26
AB
5712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * features/Makefile: Remove all references to the deleted files
574 below.
575 * features/riscv/32bit-csr.c: Deleted.
576 * features/riscv/32bit-csr.xml: Deleted.
577 * features/riscv/64bit-csr.c: Deleted.
578 * features/riscv/64bit-csr.xml: Deleted.
579 * features/riscv/rebuild-csr-xml.sh: Deleted.
580
ed69cbc8
AB
5812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
584 whitespace error for declaration of names member variable.
585 (struct riscv_register_feature): Add new prefer_first_name member
586 variable, and fix whitespace error in declaration of registers.
587 (riscv_xreg_feature): Initialize prefer_first_name field.
588 (riscv_freg_feature): Likewise.
589 (riscv_virtual_feature): Likewise.
590 (riscv_csr_feature): Likewise.
591 (riscv_register_name): Expand on comments. Remove register name
592 modifications for CSR and virtual registers.
593
4445e8f5
AB
5942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
595
596 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
597 errors.
598
767a879e
AB
5992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
602 riscv-opc.h.
603 (class riscv_pending_register_alias): New class.
604 (riscv_check_tdesc_feature): Take vector of pending aliases and
605 populate it as appropriate.
606 (riscv_setup_register_aliases): Delete.
607 (riscv_gdbarch_init): Create vector of pending aliases and pass it
608 to riscv_check_tdesc_feature in all cases. Use the vector to
609 create the register aliases.
610
bb6e55f3
RO
6112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
612
613 * sol2-tdep.c (sol2_static_transform_name): Remove.
614 (sol2_init_abi): Don't register it.
615 * gdbarch.sh (static_transform_name): Remove.
616 * gdbarch.c, gdbarch.h: Regenerate.
617
618 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
619 gdbarch_static_transform_name.
620 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
621 * stabsread.c (define_symbol) <'X'>: Remove.
622 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
623 handling.
624 <'V'>: Likewise.
625 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
626 <'S'>: Remove call to gdbarch_static_transform_name.
627
c6d36836
RO
6282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629
630 * procfs.c (procfs_pre_trace): New function.
631 (procfs_target::create_inferior): Pass it to fork_inferior.
632
a7e6196b
RO
6332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634
635 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
636 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
637 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
638 sol2-tdep.o, sparc-sol2-tdep.o.
639 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
640 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
641 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
642 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
643
d412e696
RO
6442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
645
646 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
647 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
648 Call sol2_init_abi.
649 Remove calls to set_gdbarch_skip_solib_resolver,
650 set_gdbarch_core_pid_to_str.
651 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
652 (i386_sol2_static_transform_name): Remove.
653 (i386_sol2_init_abi): Call sol2_init_abi.
654 Remove calls to set_gdbarch_sofun_address_maybe_missing,
655 set_gdbarch_static_transform_name,
656 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
657 Use sol2_sigtramp_p.
658 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
659 (sol2_sigtramp_p): New function.
660 (sol2_static_transform_name): New function.
661 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
662 (sol2_init_abi): New function.
663 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
664 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
665 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
666 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
667 (sparc_sol2_static_transform_name): Remove.
668 (sparc32_sol2_init_abi): Call sol2_init_abi.
669 Remove calls to set_gdbarch_sofun_address_maybe_missing,
670 set_gdbarch_static_transform_name,
671 set_gdbarch_skip_solib_resolver,
672 set_gdbarch_core_pid_to_str.
673 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
674 (sparc_sol2_static_transform_name): Remove
675 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
676 call sol2_sigtramp_p.
677 (sparc64_sol2_init_abi): Call sol2_init_abi.
678 Remove calls to set_gdbarch_sofun_address_maybe_missing,
679 set_gdbarch_static_transform_name,
680 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
681
a8654e7d
PW
6822020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
683
684 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
685 * exec.c (validate_exec_file): If from_tty, set both
686 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
687 * symfile.c (symbol_file_add_with_addrs): if always_confirm
688 and from_tty, unconditionally ask a confirmation.
689
caa7fd04
AB
6902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * target-descriptions.c (tdesc_architecture_name): Protect against
693 NULL pointer dereference.
694 (maint_print_xml_tdesc_cmd): New function.
695 (_initialize_target_descriptions): Register new 'maint print
696 xml-tdesc' command and give it the filename completer.
697 * NEWS: Mention new 'maint print xml-tdesc' command.
698
fbf42f4e
AB
6992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * target-descriptions.c (class tdesc_compatible_info): New class.
702 (struct target_desc): Change type of compatible vector.
703 (tdesc_compatible_p): Update for change in type of
704 target_desc::compatible.
705 (tdesc_compatible_info_list): New function.
706 (tdesc_compatible_info_arch_name): New function.
707 (tdesc_add_compatible): Update for change in type of
708 target_desc::compatible.
709 (print_c_tdesc::visit_pre): Likewise.
710
20821f4e
AB
7112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
712
713 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
714 whitespace to underscore.
715 (maint_print_c_tdesc_cmd): Use fake filename for target
716 descriptions that came from the target.
717 (_initialize_target_descriptions): Add filename command completion
718 for 'maint print c-tdesc'.
719
1fb5ee62
SM
7202020-06-23 Simon Marchi <simon.marchi@efficios.com>
721
722 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
723 lines.
724
fc3ecb3e
SM
7252020-06-23 Simon Marchi <simon.marchi@efficios.com>
726
727 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
728 lines.
729 (dwarf2_find_location_expression): Likewise.
730 (call_site_parameter_matches): Likewise.
731 (dwarf2_compile_expr_to_ax): Likewise.
732 (disassemble_dwarf_expression): Likewise.
733 (loclist_describe_location): Likewise.
734
236ef034
PA
7352020-06-23 Pedro Alves <palves@redhat.com>
736
737 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
738 progspace-and-thread.h. Include scoped-mock-context.h instead.
739 (register_to_value_test): Use scoped_mock_context.
740 * regcache.c: Include "scoped-mock-context.h".
741 (cooked_read_test): Don't error out if a target is already pushed.
742 Use scoped_mock_context. Adjust.
743 * scoped-mock-context.h: New file.
744
39e7ecca
AB
7452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
748 initializer.
749 (ada_language::is_string_type_p): New member function.
750 * c-lang.c (c_language_data): Delete la_is_string_type_p
751 initializer.
752 (cplus_language_data): Likewise.
753 (asm_language_data): Likewise.
754 (minimal_language_data): Likewise.
755 * d-lang.c (d_language_data): Likewise.
756 * f-lang.c (f_is_string_type_p): Delete function, implementation
757 moved to f_language::is_string_type_p.
758 (f_language_data): Delete la_is_string_type_p initializer.
759 (f_language::is_string_type_p): New member function,
760 implementation from f_is_string_type_p.
761 * go-lang.c (go_is_string_type_p): Delete function, implementation
762 moved to go_language::is_string_type_p.
763 (go_language_data): Delete la_is_string_type_p initializer.
764 (go_language::is_string_type_p): New member function,
765 implementation from go_is_string_type_p.
766 * language.c (language_defn::is_string_type_p): Define new member
767 function.
768 (default_is_string_type_p): Make static, add comment copied from
769 header file.
770 (unknown_language_data): Delete la_is_string_type_p initializer.
771 (unknown_language::is_string_type_p): New member function.
772 (auto_language_data): Delete la_is_string_type_p initializer.
773 (auto_language::is_string_type_p): New member function.
774 * language.h (language_data): Delete la_is_string_type_p field.
775 (language_defn::is_string_type_p): Declare new function.
776 (default_is_string_type_p): Delete desclaration, move comment to
777 definition.
778 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
779 moved to m2_language::is_string_type_p.
780 (m2_language_data): Delete la_is_string_type_p initializer.
781 (m2_language::is_string_type_p): New member function,
782 implementation from m2_is_string_type_p.
783 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
784 initializer.
785 * opencl-lang.c (opencl_language_data): Likewise.
786 * p-lang.c (pascal_is_string_type_p): Delete function,
787 implementation moved to pascal_language::is_string_type_p.
788 (pascal_language_data): Delete la_is_string_type_p initializer.
789 (pascal_language::is_string_type_p): New member function,
790 implementation from pascal_is_string_type_p.
791 * rust-lang.c (rust_is_string_type_p): Delete function,
792 implementation moved to rust_language::is_string_type_p.
793 (rust_language_data): Delete la_is_string_type_p initializer.
794 (rust_language::is_string_type_p): New member function,
795 implementation from rust_is_string_type_p.
796 * valprint.c (val_print_scalar_or_string_type_p): Update call to
797 is_string_type_p.
798
4ffc13fb
AB
7992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 * ada-lang.c (ada_language_data): Delete la_print_typedef
802 initializer.
803 (ada_language::print_typedef): New member function.
804 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
805 (cplus_language_data): Likewise.
806 (asm_language_data): Likewise.
807 (minimal_language_data): Likewise.
808 * d-lang.c (d_language_data): Likewise.
809 * f-lang.c (f_language_data): Likewise.
810 (f_language::print_typedef): New member function.
811 * go-lang.c (go_language_data): Delete la_print_typedef
812 initializer.
813 * language.c (language_defn::print_typedef): Define member
814 function.
815 (unknown_language_data): Delete la_print_typedef initializer.
816 (unknown_language::print_typedef): New member function.
817 (auto_language_data): Delete la_print_typedef initializer.
818 (auto_language::print_typedef): New member function.
819 * language.h (language_data): Delete la_print_typedef field.
820 (language_defn::print_typedef): Declare new member function.
821 (LA_PRINT_TYPEDEF): Update call to print_typedef.
822 (default_print_typedef): Delete declaration.
823 * m2-lang.c (m2_language_data): Delete la_print_typedef
824 initializer.
825 (m2_language::print_typedef): New member function.
826 * objc-lang.c (objc_language_data): Delete la_print_typedef
827 initializer.
828 * opencl-lang.c (opencl_language_data): Likewise.
829 * p-lang.c (pascal_language_data): Likewise.
830 (pascal_language::print_typedef): New member function.
831 * rust-lang.c (rust_print_typedef): Delete function,
832 implementation moved to rust_language::print_typedef.
833 (rust_language): Delete la_print_typedef initializer.
834 (rust_language::print_typedef): New member function,
835 implementation from rust_print_typedef.
836 * typeprint.c (default_print_typedef): Delete.
837
d711ee67
AB
8382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
841 (ada_language::printstr): New member function.
842 * c-lang.c (c_language_data): Delete la_printstr initializer.
843 (cplus_language_data): Likewise.
844 (asm_language_data): Likewise.
845 (minimal_language_data): Likewise.
846 * d-lang.c (d_language_data): Likewise.
847 * f-lang.c (f_printstr): Rename to f_language::printstr.
848 (f_language_data): Delete la_printstr initializer.
849 (f_language::printstr): New member function, implementation from
850 f_printstr.
851 * go-lang.c (go_language_data): Delete la_printstr initializer.
852 * language.c (language_defn::printstr): Define new member
853 function.
854 (unk_lang_printstr): Delete.
855 (unknown_language_data): Delete la_printstr initializer.
856 (unknown_language::printstr): New member function.
857 (auto_language_data): Delete la_printstr initializer.
858 (auto_language::printstr): New member function.
859 * language.h (language_data): Delete la_printstr field.
860 (language_defn::printstr): Declare new member function.
861 (LA_PRINT_STRING): Update call to printstr.
862 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
863 (m2_language_data): Delete la_printstr initializer.
864 (m2_language::printstr): New member function, implementation from
865 m2_printstr.
866 * objc-lang.c (objc_language_data): Delete la_printstr
867 initializer.
868 * opencl-lang.c (opencl_language_data): Likewise.
869 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
870 (pascal_language_data): Delete la_printstr initializer.
871 (pascal_language::printstr): New member function, implementation
872 from pascal_printstr.
873 * p-lang.h (pascal_printstr): Delete declaration.
874 * rust-lang.c (rust_printstr): Update header comment.
875 (rust_language_data): Delete la_printstr initializer.
876 (rust_language::printstr): New member function.
877
52b50f2c
AB
8782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
881 (ada_language::printchar): New member function.
882 * c-lang.c (c_language_data): Delete la_printchar initializer.
883 (cplus_language_data): Likewise.
884 (asm_language_data): Likewise.
885 (minimal_language_data): Likewise.
886 * d-lang.c (d_language_data): Likewise.
887 * f-lang.c (f_printchar): Rename to f_language::printchar.
888 (f_language_data): Delete la_printchar initializer.
889 (f_language::printchar): New member function, implementation from
890 f_printchar.
891 * go-lang.c (go_language_data): Delete la_printchar initializer.
892 * language.c (unk_lang_printchar): Delete.
893 (language_defn::printchar): Define new member function.
894 (unknown_language_data): Delete la_printchar initializer.
895 (unknown_language::printchar): New member function.
896 (auto_language_data): Delete la_printchar initializer.
897 (auto_language::printchar): New member function.
898 * language.h (language_data): Delete la_printchar field.
899 (language_defn::printchar): Declare new member function.
900 (LA_PRINT_CHAR): Update call to printchar.
901 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
902 (m2_language::printchar): New member function.
903 * objc-lang.c (objc_language_data): Delete la_printchar
904 initializer.
905 * opencl-lang.c (opencl_language_data): Likewise.
906 * p-lang.c (pascal_language_data): Delete la_printchar
907 initializer.
908 (pascal_language::printchar): New member function.
909 * rust-lang.c (rust_printchar): Rename to
910 rust_language::printchar.
911 (rust_language_data): Delete la_printchar initializer.
912 (rust_language::printchar): New member function, implementation
913 from rust_printchar.
914
ec8cec5b
AB
9152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
918 (ada_language_data): Delete la_emitchar initializer.
919 (ada_language::emitchar): New member function, implementation from
920 emit_char.
921 * c-lang.c (c_language_data): Delete la_emitchar initializer.
922 (cplus_language_data): Likewise.
923 (asm_language_data): Likewise.
924 (minimal_language_data): Likewise.
925 * d-lang.c (d_language_data): Likewise.
926 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
927 (f_language_data): Delete la_emitchar initializer.
928 (f_language::emitchar): New member function, implementation from
929 f_emit_char.
930 * go-lang.c (go_language_data): Delete la_emitchar initializer.
931 * language.c (unk_lang_emit_char): Delete.
932 (language_defn::emitchar): New member function definition.
933 (unknown_language_data): Delete la_emitchar initializer.
934 (unknown_language::emitchar): New member function.
935 (auto_language_data): Delete la_emitchar initializer.
936 (auto_language::emitchar): New member function.
937 * language.h (language_data): Delete la_emitchar field.
938 (language_defn::emitchar): New member field declaration.
939 (LA_EMIT_CHAR): Update call to emitchar.
940 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
941 (m2_language_data): Delete la_emitchar initializer.
942 (m2_language::emitchar): New member function, implementation from
943 m2_emit_char.
944 * objc-lang.c (objc_language_data): Delete la_emitchar
945 initializer.
946 * opencl-lang.c (opencl_language_data): Likewise.
947 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
948 (pascal_language_data): Delete la_emitchar initializer.
949 (pascal_language::emitchar): New member function, implementation
950 from pascal_emit_char.
951 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
952 (rust_language_data): Delete la_emitchar initializer.
953 (rust_language::emitchar): New member function, implementation
954 from rust_emitchar.
955
1bf9c363
AB
9562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * ada-lang.c (resolve): Rename to ada_language::post_parser.
959 (ada_language_data): Delete la_post_parser initializer.
960 (ada_language::post_parser): New member function.
961 * c-lang.c (c_language_data): Delete la_post_parser initializer.
962 (cplus_language_data): Likewise.
963 (asm_language_data): Likewise.
964 (minimal_language_data): Likewise.
965 * d-lang.c (d_language_data): Likewise.
966 * f-lang.c (f_language_data): Likewise.
967 * go-lang.c (go_language_data): Likewise.
968 * language.c (unknown_language_data): Likewise.
969 (auto_language_data): Likewise.
970 * language.h (language_data): Delete la_post_parser field.
971 (language_defn::post_parser): New member function.
972 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
973 * objc-lang.c (objc_language_data): Likewise.
974 * opencl-lang.c (opencl_language_data): Likewise.
975 * p-lang.c (pascal_language_data): Likewise.
976 * parse.c (parse_exp_in_context): Update call to post_parser.
977 (null_post_parser): Delete definition.
978 * parser-defs.h (null_post_parser): Delete declaration.
979 * rust-lang.c (rust_language_data): Delete la_post_parser
980 initializer.
981
87afa652
AB
9822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * ada-lang.c (parse): Rename to ada_language::parser.
985 (ada_language_data): Delete la_parser initializer.
986 (ada_language::parser): New member function, implementation from
987 parse.
988 * c-lang.c (c_language_data): Delete la_parser initializer.
989 (cplus_language_data): Likewise.
990 (asm_language_data): Likewise.
991 (minimal_language_data): Likewise.
992 * d-lang.c (d_language_data): Likewise.
993 (d_language::parser): New member function.
994 * f-lang.c (f_language_data): Delete la_parser initializer.
995 (f_language::parser): New member function.
996 * go-lang.c (go_language_data): Delete la_parser initializer.
997 (go_language::parser): New member function.
998 * language.c (unk_lang_parser): Delete.
999 (language_defn::parser): Define new member function.
1000 (unknown_language_data): Delete la_parser initializer.
1001 (unknown_language::parser): New member function.
1002 (auto_language_data): Delete la_parser initializer.
1003 (auto_language::parser): New member function.
1004 * language.h (language_data): Delete la_parser field.
1005 (language_defn::parser): Declare new member function.
1006 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1007 (m2_language::parser): New member function.
1008 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1009 * opencl-lang.c (opencl_language_data): Likewise.
1010 * p-lang.c (pascal_language_data): Likewise.
1011 (pascal_language::parser): New member function.
1012 * parse.c (parse_exp_in_context): Update call to parser.
1013 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1014 (rust_language::parser): New member function.
1015
37825800
AB
10162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * top.c (print_gdb_configuration): Print --with-python-libdir
1019 configuration value.
1020
5b860c93
PW
10212020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1022
1023 * NEWS: Mention change to the alias command.
1024
cf00cd6f
PW
10252020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1026
1027 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1028 (alias_command_completer)
1029 (make_alias_options_def_group): New functions.
1030 (alias_opts, alias_option_defs): New struct and array.
1031 (alias_usage_error): Update usage.
1032 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1033 Use option framework.
1034 (_initialize_cli_cmds): Update alias command help.
1035 Update aliases command help.
1036 (show_user):
1037 Add NULL for new default_args lookup_cmd argument.
1038 (valid_command_p): Rename to validate_aliased_command.
1039 Add NULL for new default_args lookup_cmd argument. Verify that the
1040 aliased_command has no default args.
1041 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1042 (lookup_cmd_1, lookup_cmd): New argument default_args.
1043 (add_alias_cmd):
1044 Add NULL for new default_args lookup_cmd argument.
1045 (print_help_for_command): Show default args under the layout
1046 alias some_alias = some_aliased_cmd some_alias_default_arg.
1047 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1048 xfree default_args in destructor.
1049 * cli/cli-script.c (process_next_line, do_define_command):
1050 Add NULL for new default_args lookup_cmd argument.
1051 * command.h: Declare new default_args argument in lookup_cmd
1052 and lookup_cmd_1.
1053 * completer.c (complete_line_internal_1):
1054 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1055 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1056 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1057 Likewise.
1058 * infcmd.c (_initialize_infcmd): Likewise.
1059 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1060 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1061 * python/py-param.c (add_setshow_generic): Likewise.
1062 * remote.c (_initialize_remote): Likewise.
1063 * top.c (execute_command): Prepend default_args if command has some.
1064 (set_verbose):
1065 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1066 * tracepoint.c (validate_actionline, encode_actions_1):
1067 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1068
bd920864
TBA
10692020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1070
1071 * jit.c (jit_read_descriptor): Use bool as the return type.
1072 (jit_breakpoint_re_set_internal): Use bool as the return type.
1073 Invert the return value logic; return true if the jit breakpoint
1074 has been successfully initialized.
1075 (jit_inferior_init): Update the call to
1076 jit_breakpoint_re_set_internal.
1077
f8098322
PA
10782020-06-22 Pedro Alves <palves@redhat.com>
1079
1080 PR gdb/25939
1081 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1082 Use the current inferior instead. Don't return
1083 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1084 wait again.
1085 * sol-thread.c (sol_thread_target::wait): Don't reference
1086 inferior_ptid.
1087 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1088 (sol_update_thread_list_callback): Use the current inferior's pid
1089 instead of inferior_ptid.
1090
196535a6
RO
10912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1092
1093 * procfs.c: Cleanup many comments.
1094
1095 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1096 (AFTER_WATCHFLAG): Replace by value.
1097
1098 (MAIN_PROC_NAME_FORMAT): Inline ...
1099 (create_procinfo): ... here.
1100
1101 (procfs_debug_inferior): Remove SYS_exec handling.
1102 (syscall_is_exec): Likewise.
1103 (procfs_set_exec_trap): Likewise.
1104
1105 (syscall_is_lwp_exit): Inline in callers.
1106 (syscall_is_exit): Likewise.
1107 (syscall_is_exec): Likewise.
1108 (syscall_is_lwp_create): Likewise.
1109
1110 (invalidate_cache): Remove #if 0 code.
1111
1112 (make_signal_thread_runnable): Remove.
1113 (procfs_target::resume): Remove #if 0 code.
1114
cf6f3e86
RO
11152020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116
1117 PR gdb/25939
1118 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1119 call ...
1120 (procfs_target::create_inferior): ... here.
1121
48e9cc84
PW
11222020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1123
1124 * exec.c (validate_exec_file): Ensure the build-id is up to
1125 date by calling reopen_exec_file (that checks file timestamp
1126 to decide to re-read the file).
1127
3922b302
PA
11282020-06-18 Pedro Alves <palves@redhat.com>
1129
1130 PR gdb/25412
1131 * gdbthread.h (delete_thread, delete_thread_silent)
1132 (find_thread_ptid): Update comments.
1133 * thread.c (current_thread_): New global.
1134 (is_current_thread): Move higher, and reimplement.
1135 (inferior_thread): Reimplement.
1136 (set_thread_exited): Use bool. Add assertions.
1137 (add_thread_silent): Simplify thread-reuse handling by always
1138 calling delete_thread.
1139 (delete_thread): Remove intro comment.
1140 (find_thread_ptid): Skip exited threads.
1141 (switch_to_thread_no_regs): Write to current_thread_.
1142 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1143 INFERIOR_PTID. Clear current_thread_.
1144
6dbdab44
PA
11452020-06-18 Pedro Alves <palves@redhat.com>
1146
1147 * aix-thread.c (pd_update): Use switch_to_thread.
1148
2da4b788
PA
11492020-06-18 Pedro Alves <palves@redhat.com>
1150
1151 * ravenscar-thread.c (ravenscar_thread_target): Update.
1152 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1153 (ravenscar_thread_target::add_active_thread): ... this. Don't
1154 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1155 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1156
50838d1b
PA
11572020-06-18 Pedro Alves <palves@redhat.com>
1158
1159 * nat/windows-nat.c (current_windows_thread): Remove.
1160 * nat/windows-nat.h (current_windows_thread): Remove.
1161 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1162 Adjust.
1163 (display_selectors): Adjust to fetch the current
1164 windows_thread_info based on inferior_ptid.
1165 (fake_create_process): No longer write to current_windows_thread.
1166 (windows_nat_target::get_windows_debug_event):
1167 Don't set inferior_ptid or current_windows_thread.
1168 (windows_nat_target::wait): Adjust to not rely on
1169 current_windows_thread.
1170 (do_initial_windows_stuff): Now a method of windows_nat_target.
1171 Switch to the last_ptid thread.
1172 (windows_nat_target::attach): Adjust.
1173 (windows_nat_target::detach): Use switch_to_no_thread instead of
1174 writing to inferior_ptid directly.
1175 (windows_nat_target::create_inferior): Adjust.
1176
31ce04e9
PA
11772020-06-18 Pedro Alves <palves@redhat.com>
1178
1179 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1180
1ee1a363
PA
11812020-06-18 Pedro Alves <palves@redhat.com>
1182
1183 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1184 after creating it, instead of writing to inferior_ptid. Don't
1185 write to inferior_ptid.
1186
6d350754
PA
11872020-06-18 Pedro Alves <palves@redhat.com>
1188
1189 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1190
5d971d48
PA
11912020-06-18 Pedro Alves <palves@redhat.com>
1192
1193 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1194 it, instead of writing to inferior_ptid.
1195
86e57d1b
PA
11962020-06-18 Pedro Alves <palves@redhat.com>
1197
1198 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1199 to inferior_ptid.
1200
f2e1c129
PA
12012020-06-18 Pedro Alves <palves@redhat.com>
1202
1203 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1204 instead of writing to inferior_ptid directly.
1205
60db1b85
PA
12062020-06-18 Pedro Alves <palves@redhat.com>
1207
1208 * corelow.c (core_target::close): Use switch_to_no_thread instead
1209 of writing to inferior_ptid directly.
1210 (add_to_thread_list, core_target_open): Use switch_to_thread
1211 instead of writing to inferior_ptid directly.
1212
fe7d6a8d
PA
12132020-06-18 Pedro Alves <palves@redhat.com>
1214
1215 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1216 inferior_ptid.
1217 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1218 inferior_ptid.
1219 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1220 inferior_ptid directly.
1221 (darwin_nat_target::init_thread_list): Switch to thread, instead
1222 of writing to inferior_ptid.
1223 (darwin_nat_target::attach): Don't write to inferior_ptid.
1224 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1225
975f8708
PA
12262020-06-18 Pedro Alves <palves@redhat.com>
1227
1228 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1229 thread.
1230 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1231 Instead use switch_to_thread.
1232 (gnu_nat_target::detach): Use switch_to_no_thread
1233 instead of writing to inferior_ptid directly. Used passed-in
1234 inferior instead of looking up the inferior by pid.
1235
1a204730
PA
12362020-06-18 Pedro Alves <palves@redhat.com>
1237
1238 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1239 inferior_ptid.
1240
ebe84f23
PA
12412020-06-18 Pedro Alves <palves@redhat.com>
1242
1243 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1244 inferior_ptid.
1245 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1246 thread.
1247 (nto_procfs_target::detach): Avoid referencing
1248 inferior_ptid. Use switch_to_no_thread instead of writing to
1249 inferior_ptid directly.
1250 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1251 instead of writing to inferior_ptid directly.
1252 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1253 to thread.
1254
191f02e5
PA
12552020-06-18 Pedro Alves <palves@redhat.com>
1256
1257 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1258 after creating it, instead of writing to inferior_ptid.
1259 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1260 to inferior_ptid directly.
1261 (gdbsim_target::wait): Don't write to inferior_ptid.
1262
0ac55310
PA
12632020-06-18 Pedro Alves <palves@redhat.com>
1264
1265 * remote.c (remote_target::remote_notice_new_inferior): Use
1266 switch_to_thread instead of writing to inferior_ptid directly.
1267 (remote_target::add_current_inferior_and_thread): Use
1268 switch_to_no_thread instead of writing to inferior_ptid directly.
1269 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1270 and switch_to_thread instead of using set_current_inferior or
1271 writing to inferior_ptid directly.
1272
5233f39b
PA
12732020-06-18 Pedro Alves <palves@redhat.com>
1274
1275 * tracectf.c (ctf_target_open): Switch to added thread instead of
1276 writing to inferior_ptid directly.
1277 (ctf_target::close): Use switch_to_no_thread instead of writing to
1278 inferior_ptid directly.
1279
087e161b
PA
12802020-06-18 Pedro Alves <palves@redhat.com>
1281
1282 * tracefile-tfile.c (tfile_target_open): Don't write to
1283 inferior_ptid directly, instead switch to added thread.
1284 (tfile_target::close): Use switch_to_no_thread instead of writing
1285 to inferior_ptid directly.
1286
7fb43e53
PA
12872020-06-18 Pedro Alves <palves@redhat.com>
1288
1289 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1290 (procfs_target::detach): Use switch_to_no_thread
1291 instead of writing to inferior_ptid directly.
1292 (do_attach): Change return type to void. Switch to the added
1293 thread.
1294 (procfs_target::create_inferior): Switch to the added thread.
1295 (procfs_do_thread_registers): Don't write to inferior_ptid.
1296
18493a00
PA
12972020-06-18 Pedro Alves <palves@redhat.com>
1298
1299 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1300 of writing to inferior_ptid.
1301 (scoped_restore_exited_inferior): Delete.
1302 (handle_vfork_child_exec_or_exit): Simplify using
1303 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1304 instead of writing to inferior_ptid.
1305 (THREAD_STOPPED_BY): Delete.
1306 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1307 (thread_stopped_by_hw_breakpoint): Delete.
1308 (save_waitstatus): Use
1309 scoped_restore_current_thread+switch_to_thread, and call
1310 target_stopped_by_watchpoint instead of
1311 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1312 instead of thread_stopped_by_sw_breakpoint, and
1313 target_stopped_by_hw_breakpoint instead of
1314 thread_stopped_by_hw_breakpoint.
1315 (handle_inferior_event)
1316 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1317 inferior_ptid directly, nor
1318 set_current_inferior/set_current_program_space. Use
1319 switch_to_thread / switch_to_inferior_no_thread instead.
1320
a0776b13
PA
13212020-06-18 Pedro Alves <palves@redhat.com>
1322
1323 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1324 instead of writing to inferior_ptid.
1325
6155c136
PA
13262020-06-18 Pedro Alves <palves@redhat.com>
1327
1328 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1329 added thread.
1330 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1331 to the added thread.
1332 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1333 instead of writing to inferior_ptid.
1334
c5316fc6
PA
13352020-06-18 Pedro Alves <palves@redhat.com>
1336
1337 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1338 (register_to_value_test): Mock a program_space too. Heap-allocate
1339 the address space. Don't write to inferior_ptid. Use
1340 switch_to_thread instead.
1341
8df01799
PA
13422020-06-18 Pedro Alves <palves@redhat.com>
1343
1344 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1345 Delete.
1346 (find_signalled_thread()): New, factored out from
1347 linux_make_corefile_notes and adjusted to handle exited threads.
1348 (linux_make_corefile_notes): Adjust to use the new
1349 find_signalled_thread.
1350
41792d68
PA
13512020-06-18 Pedro Alves <palves@redhat.com>
1352
1353 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1354 of saving/restoring inferior_ptid.
1355
612f258a
TT
13562020-06-17 Tom Tromey <tom@tromey.com>
1357
1358 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1359 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1360 declare.
1361 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1362
efb763a5
SM
13632020-06-15 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1366 of partial symtabs.
1367
2951f6c0
SM
13682020-06-17 Simon Marchi <simon.marchi@efficios.com>
1369
1370 * regformats/reg-arm.dat: Remove.
1371 * regformats/reg-bfin.dat: Remove.
1372 * regformats/reg-cris.dat: Remove.
1373 * regformats/reg-crisv32.dat: Remove.
1374 * regformats/reg-m32r.dat: Remove.
1375 * regformats/reg-tilegx.dat: Remove.
1376 * regformats/reg-tilegx32.dat: Remove.
1377
7d458ea5
SM
13782020-06-17 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * features/Makefile (WHICH): Remove arm files.
1381 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1382 * regformats/arm/arm-with-neon.dat: Remove.
1383 * regformats/arm/arm-with-vfpv2.dat: Remove.
1384 * regformats/arm/arm-with-vfpv3.dat: Remove.
1385
3af96c0d
SM
13862020-06-17 Simon Marchi <simon.marchi@efficios.com>
1387
1388 * features/Makefile (XMLTOC): Remove rx.xml.
1389
b25e22fd
PA
13902020-06-17 Pedro Alves <palves@redhat.com>
1391
1392 * gdbthread.h (thread_control_state) <trap_expected> Update
1393 comments.
1394
a78a19b1
AB
13952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1398 ada_language::lookup_symbol_nonlocal.
1399 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1400 (ada_language::lookup_symbol_nonlocal): New member function,
1401 implementation from ada_lookup_symbol_nonlocal.
1402 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1403 initializer.
1404 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1405 initializer.
1406 (cplus_language::lookup_symbol_nonlocal): New member function.
1407 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1408 (minimal_language_data) Likewise.
1409 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1410 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1411 initializer.
1412 (d_language::lookup_symbol_nonlocal): New member function.
1413 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1414 initializer.
1415 (f_language::lookup_symbol_nonlocal): New member function.
1416 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1417 initializer.
1418 * language.c (unknown_language_data): Likewise.
1419 (auto_language_data): Likewise.
1420 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1421 field.
1422 (language_defn::lookup_symbol_nonlocal): New member function.
1423 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1424 initializer.
1425 * objc-lang.c (objc_language_data): Likewise.
1426 * opencl-lang.c (opencl_language_data): Likewise.
1427 * p-lang.c (pascal_language_data): Likewise.
1428 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1429 rust_language::lookup_symbol_nonlocal.
1430 (rust_language_data): Delete la_lookup_symbol_nonlocal
1431 initializer.
1432 (rust_language::lookup_symbol_nonlocal): New member function,
1433 implementation from rust_lookup_symbol_nonlocal.
1434 * symtab.c (lookup_symbol_aux): Update call to
1435 lookup_symbol_nonlocal.
1436 (basic_lookup_symbol_nonlocal): Rename to...
1437 (language_defn::lookup_symbol_nonlocal): ...this, and update
1438 header comment. Remove language_defn parameter, and replace with
1439 uses of `this'.
1440 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1441
ebe2334e
AB
14422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1445 initializer.
1446 (ada_language::value_print_inner): New member function.
1447 * c-lang.c (c_language_data): Delete la_value_print_inner
1448 initializer.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * d-lang.c (d_language_data): Likewise.
1453 (d_language::value_print_inner): New member function.
1454 * f-lang.c (f_language_data): Delete la_value_print_inner
1455 initializer.
1456 (f_language::value_print_inner): New member function.
1457 * f-lang.h (f_value_print_innner): Rename to...
1458 (f_value_print_inner): ...this (note spelling of 'inner').
1459 * f-valprint.c (f_value_print_innner): Rename to...
1460 (f_value_print_inner): ...this (note spelling of 'inner').
1461 * go-lang.c (go_language_data): Delete la_value_print_inner
1462 initializer.
1463 (go_language::value_print_inner): New member function.
1464 * language.c (language_defn::value_print_inner): Define new member
1465 function.
1466 (unk_lang_value_print_inner): Delete.
1467 (unknown_language_data): Delete la_value_print_inner initializer.
1468 (unknown_language::value_print_inner): New member function.
1469 (auto_language_data): Delete la_value_print_inner initializer.
1470 (auto_language::value_print_inner): New member function.
1471 * language.h (language_data): Delete la_value_print_inner field.
1472 (language_defn::value_print_inner): Delcare new member function.
1473 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1474 initializer.
1475 (m2_language::value_print_inner): New member function.
1476 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1477 initializer.
1478 * opencl-lang.c (opencl_language_data): Likewise.
1479 * p-lang.c (pascal_language_data): Likewise.
1480 (pascal_language::value_print_inner): New member function.
1481 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1482 initializer.
1483 (rust_language::value_print_inner): New member function.
1484 * valprint.c (do_val_print): Update call to value_print_inner.
1485
a1d1fa3e
AB
14862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * ada-lang.c (ada_language_data): Delete la_value_print
1489 initializer.
1490 (ada_language::value_print): New member function.
1491 * c-lang.c (c_language_data): Delete la_value_print initializer.
1492 (cplus_language_data): Likewise.
1493 (asm_language_data): Likewise.
1494 (minimal_language_data): Likewise.
1495 * d-lang.c (d_language_data): Likewise.
1496 * f-lang.c (f_language_data): Likewise.
1497 * go-lang.c (go_language_data): Likewise.
1498 * language.c (unk_lang_value_print): Delete.
1499 (language_defn::value_print): Define new member function.
1500 (unknown_language_data): Delete la_value_print initializer.
1501 (unknown_language::value_print): New member function.
1502 (auto_language_data): Delete la_value_print initializer.
1503 (auto_language::value_print): New member function.
1504 * language.h (language_data): Delete la_value_print field.
1505 (language_defn::value_print): Declare new member function.
1506 (LA_VALUE_PRINT): Update call to value_print.
1507 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1508 * objc-lang.c (objc_language_data): Likewise.
1509 * opencl-lang.c (opencl_language_data): Likewise.
1510 * p-lang.c (pascal_language_data): Likewise.
1511 (pascal_language::value_print): New member function.
1512 * rust-lang.c (rust_language_data): Delete la_value_print
1513 initializer.
1514
f16a9f57
AB
15152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * ada-lang.c (ada_watch_location_expression): Rename to
1518 ada_language::watch_location_expression.
1519 (ada_language_data): Delete la_watch_location_expression
1520 initializer.
1521 (ada_language::watch_location_expression): New member function,
1522 implementation from ada_watch_location_expression.
1523 * breakpoint.c (watch_command_1): Update call to
1524 watch_location_expression.
1525 * c-lang.c (c_watch_location_expression): Rename to
1526 language_defn::watch_location_expression.
1527 (c_language_data): Delete la_watch_location_expression
1528 initializer.
1529 (cplus_language_data): Likewise.
1530 (asm_language_data): Likewise.
1531 (minimal_language_data): Likewise.
1532 * c-lang.h (c_watch_location_expression): Delete declaration.
1533 * d-lang.c (d_language_data): Delete la_watch_location_expression
1534 initializer.
1535 * f-lang.c (f_language_data): Likewise.
1536 * go-lang.c (go_language_data): Likewise.
1537 * language.c (language_defn::watch_location_expression): Member
1538 function implementation from c_watch_location_expression.
1539 (unknown_language_data): Delete la_watch_location_expression
1540 initializer.
1541 (auto_language_data): Likewise.
1542 * language.h (language_data): Delete la_watch_location_expression
1543 field.
1544 (language_defn::watch_location_expression): Declare new member
1545 function.
1546 * m2-lang.c (m2_language_data): Delete
1547 la_watch_location_expression initializer.
1548 * objc-lang.c (objc_language_data): Likewise.
1549 * opencl-lang.c (opencl_language_data): Likewise.
1550 * p-lang.c (pascal_language_data): Likewise.
1551 * rust-lang.c (rust_watch_location_expression): Rename to
1552 rust_language::watch_location_expression.
1553 (rust_language_data): Delete la_watch_location_expression
1554 initializer.
1555 (rust_language::watch_location_expression): New member function,
1556 implementation from rust_watch_location_expression.
1557
7e56227d
AB
15582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1561 ada_language::collect_symbol_completion_matches.
1562 (ada_language_data): Delete la_collect_symbol_completion_matches
1563 initializer.
1564 (ada_language::collect_symbol_completion_matches): New member
1565 function, implementation from
1566 ada_collect_symbol_completion_matches.
1567 * c-lang.c (c_language_data): Delete
1568 la_collect_symbol_completion_matches initializer.
1569 (cplus_language_data): Likewise.
1570 (asm_language_data): Likewise.
1571 (minimal_language_data): Likewise.
1572 * d-lang.c (d_language_data): Likewise.
1573 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1574 f_language::collect_symbol_completion_matches.
1575 (f_language_data): Delete la_collect_symbol_completion_matches
1576 initializer.
1577 (f_language::collect_symbol_completion_matches) New member
1578 function, implementation from f_collect_symbol_completion_matches.
1579 * go-lang.c (go_language_data): Delete
1580 la_collect_symbol_completion_matches initializer.
1581 * language.c (unknown_language_data): Likewise.
1582 (auto_language_data): Likewise.
1583 * language.h (language_data): Delete
1584 la_collect_symbol_completion_matches field.
1585 (language_defn::collect_symbol_completion_matches): New member
1586 function.
1587 * m2-lang.c (m2_language_data): Delete
1588 la_collect_symbol_completion_matches initializer.
1589 * objc-lang.c (objc_language_data): Likewise.
1590 * opencl-lang.c (opencl_language_data): Likewise.
1591 * p-lang.c (pascal_language_data): Likewise.
1592 * rust-lang.c (rust_language_data): Likewise.
1593 * symtab.c (default_collect_symbol_completion_matches): Delete.
1594 (collect_symbol_completion_matches): Update call to
1595 collect_symbol_completion_matches.
1596 (collect_symbol_completion_matches_type): Likewise.
1597 * symtab.h (default_collect_symbol_completion_matches): Delete
1598 declaration.
1599
53fc67f8
AB
16002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1603 (ada_language_data): Delete la_word_break_characters initializer.
1604 (ada_language::word_break_characters): New member function.
1605 * c-lang.c (c_language_data): Delete la_word_break_characters
1606 initializer.
1607 (cplus_language_data): Likewise.
1608 (asm_language_data): Likewise.
1609 (minimal_language_data): Likewise.
1610 * completer.c: Update global comment.
1611 (advance_to_expression_complete_word_point): Update call to
1612 word_break_characters.
1613 (complete_files_symbols): Likewise.
1614 (complete_line_internal_1): Likewise.
1615 (default_completer_handle_brkchars): Likewise.
1616 (skip_quoted_chars): Likewise.
1617 * d-lang.c (d_language_data): Delete la_word_break_characters
1618 initializer.
1619 * f-lang.c (f_word_break_characters): Delete.
1620 (f_language_data): Delete la_word_break_characters initializer.
1621 (f_language::word_break_characters): New member function.
1622 * go-lang.c (go_language_data): Delete la_word_break_characters
1623 initializer.
1624 * language.c (unknown_language_data): Likewise.
1625 (auto_language_data): Likewise.
1626 * language.h (default_word_break_characters): Move declaration to
1627 earlier in the file.
1628 (language_data): Delete la_word_break_characters field.
1629 (language_defn::word_break_characters): New member function.
1630 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1631 initializer.
1632 * objc-lang.c (objc_language_data): Likewise.
1633 * opencl-lang.c (opencl_language_data): Likewise.
1634 * p-lang.c (pascal_language_data): Likewise.
1635 * rust-lang.c (rust_language_data): Likewise.
1636
c9debfb9
AB
16372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1640 (ada_language_data): Delete la_get_symbol_name_matcher
1641 initializer.
1642 (language_defn::get_symbol_name_matcher_inner): New member
1643 function.
1644 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1645 initializer.
1646 (cplus_language_data): Likewise.
1647 (cplus_language::get_symbol_name_matcher_inner): New member
1648 function.
1649 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1650 (minimal_language_data): Likewise.
1651 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1652 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1653 initializer.
1654 * dictionary.c (iter_match_first_hashed): Update call to
1655 get_symbol_name_matcher.
1656 (iter_match_next_hashed): Likewise.
1657 (iter_match_next_linear): Likewise.
1658 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1659 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1660 initializer.
1661 (f_language::get_symbol_name_matcher_inner): New member function.
1662 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1663 initializer.
1664 * language.c (default_symbol_name_matcher): Update header comment,
1665 make static.
1666 (language_defn::get_symbol_name_matcher): New definition.
1667 (language_defn::get_symbol_name_matcher_inner): Likewise.
1668 (get_symbol_name_matcher): Delete.
1669 (unknown_language_data): Delete la_get_symbol_name_matcher
1670 initializer.
1671 (auto_language_data): Likewise.
1672 * language.h (language_data): Delete la_get_symbol_name_matcher
1673 field.
1674 (language_defn::get_symbol_name_matcher): New member function.
1675 (language_defn::get_symbol_name_matcher_inner): Likewise.
1676 (default_symbol_name_matcher): Delete declaration.
1677 * linespec.c (find_methods): Update call to
1678 get_symbol_name_matcher.
1679 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1680 initializer.
1681 * minsyms.c (lookup_minimal_symbol): Update call to
1682 get_symbol_name_matcher.
1683 (iterate_over_minimal_symbols): Likewise.
1684 * objc-lang.c (objc_language_data): Delete
1685 la_get_symbol_name_matcher initializer.
1686 * opencl-lang.c (opencl_language_data): Likewise.
1687 * p-lang.c (pascal_language_data): Likewise.
1688 * psymtab.c (psymbol_name_matches): Update call to
1689 get_symbol_name_matcher.
1690 * rust-lang.c (rust_language_data): Delete
1691 la_get_symbol_name_matcher initializer.
1692 * symtab.c (symbol_matches_search_name): Update call to
1693 get_symbol_name_matcher.
1694 (compare_symbol_name): Likewise.
1695
9a49ad8c
AB
16962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * ada-lang.c (ada_language_data): Delete la_compute_program
1699 initializer.
1700 * c-lang.c (c_language_data): Likewise.
1701 (c_language::compute_program): New member function.
1702 (cplus_language_data): Delete la_compute_program initializer.
1703 (cplus_language::compute_program): New member function.
1704 (asm_language_data): Delete la_compute_program initializer.
1705 (minimal_language_data): Likewise.
1706 * c-lang.h (c_compute_program): Update comment.
1707 (cplus_compute_program): Likewise.
1708 * compile/compile-c-support.c (c_compute_program): Likewise.
1709 (cplus_compute_program): Likewise.
1710 * compile/compile.c (compile_to_object): Update call to
1711 la_compute_program.
1712 * d-lang.c (d_language_data): Delete la_compute_program
1713 initializer.
1714 * f-lang.c (f_language_data): Likewise.
1715 * go-lang.c (go_language_data): Likewise.
1716 * language.c (unknown_language_data): Likewise.
1717 (auto_language_data): Likewise.
1718 * language.h (language_data): Delete la_compute_program field.
1719 (language_defn::compute_program): New member function.
1720 * m2-lang.c (m2_language_data): Delete la_compute_program
1721 initializer.
1722 * objc-lang.c (objc_language_data): Likewise.
1723 * opencl-lang.c (opencl_language_data): Likewise.
1724 * p-lang.c (pascal_language_data): Likewise.
1725 * rust-lang.c (rust_language_data): Likewise.
1726
eff93b4d
AB
17272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1728
1729 * ada-lang.c (ada_language_data) Delete
1730 la_class_name_from_physname initializer.
1731 * c-lang.c (c_language_data): Likewise.
1732 (cplus_language_data): Likewise.
1733 (cplus_language::class_name_from_physname): New member function.
1734 (asm_language_data): Delete la_class_name_from_physname
1735 initializer.
1736 (minimal_language_data): Likewise.
1737 * d-lang.c (d_language_data): Likewise.
1738 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1739 method on language_defn class.
1740 (guess_full_die_structure_name): Likewise.
1741 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1742 initializer.
1743 * go-lang.c (go_language_data): Likewise.
1744 * language.c (language_class_name_from_physname): Delete.
1745 (unk_lang_class_name): Delete.
1746 (unknown_language_data): Delete la_class_name_from_physname
1747 initializer.
1748 (auto_language_data): Likewise.
1749 * language.h (language_data): Delete la_class_name_from_physname
1750 field.
1751 (language_defn::class_name_from_physname): New function.
1752 (language_class_name_from_physname): Delete declaration.
1753 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1754 initializer.
1755 * objc-lang.c (objc_language_data): Likewise.
1756 * opencl-lang.c (opencl_language_data): Likewise.
1757 * p-lang.c (pascal_language_data): Likewise.
1758 * rust-lang.c (rust_language_data): Likewise.
1759
de543742
TT
17602020-06-16 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-data.h (STATUS_NAME): New macro.
1763 * tui/tui-layout.c (tui_remove_some_windows)
1764 (initialize_known_windows, tui_register_window)
1765 (tui_layout_split::remove_windows, initialize_layouts)
1766 (tui_new_layout_command): Don't use hard-coded window names.
1767
a350efd4
TT
17682020-06-16 Tom Tromey <tom@tromey.com>
1769
1770 PR tui/25348:
1771 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1772 tui_initialize_readline. Only run once. Call rl_initialize.
1773 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1774 tui_initialize_readline.
1775 * tui/tui-io.c (tui_setup_io): Call
1776 tui_ensure_readline_initialized.
1777 * tui/tui-interp.c (tui_interp::init): Update.
1778
39ec0490
TT
17792020-06-16 Tom Tromey <tom@tromey.com>
1780
1781 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1782 Also preserve the status window.
1783
d2d1ea20
TT
17842020-06-16 Tom Tromey <tom@tromey.com>
1785
1786 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1787 where m_window==nullptr.
1788
66920317
TT
17892020-06-15 Tom Tromey <tromey@adacore.com>
1790
1791 * windows-nat.c (windows_nat::handle_output_debug_string):
1792 Update.
1793 (windows_nat::handle_ms_vc_exception): Update.
1794 * target.h (target_read_string): Change API.
1795 * target.c (target_read_string): Change API.
1796 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1797 Update.
1798 * solib-frv.c (frv_current_sos): Update.
1799 * solib-dsbt.c (dsbt_current_sos): Update.
1800 * solib-darwin.c (darwin_current_sos): Update.
1801 * linux-thread-db.c (inferior_has_bug): Update.
1802 * expprint.c (print_subexp_standard): Update.
1803 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1804 (ada_exception_message_1): Update.
1805
a5d871dd
TT
18062020-06-15 Tom Tromey <tromey@adacore.com>
1807
1808 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1809
670e35fa
TT
18102020-06-15 Tom Tromey <tromey@adacore.com>
1811
1812 * valprint.c (read_string): Update comment.
1813 * target.c (MIN): Remove.
1814 (target_read_string): Rewrite.
1815
f5272a3b
TT
18162020-06-15 Tom Tromey <tromey@adacore.com>
1817
1818 * corefile.c (read_memory_string): Remove.
1819 * ada-valprint.c (ada_value_print_ptr): Update.
1820 * ada-lang.h (ada_tag_name): Change return type.
1821 * ada-lang.c (type_from_tag): Update.
1822 (ada_tag_name_from_tsd): Change return type. Use
1823 target_read_string.
1824 (ada_tag_name): Likewise.
1825 * gdbcore.h (read_memory_string): Don't declare.
1826
2c074f49
HD
18272020-06-14 Hannes Domani <ssbssa@yahoo.de>
1828
1829 * symtab.c (rbreak_command): Ignore Windows drive colon.
1830
6a17d503
SM
18312020-06-12 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * NEWS: Mention removed GDBserver host support.
1834
453c733f
NC
18352020-06-12 Nelson Chu <nelson.chu@sifive.com>
1836
1837 * features/riscv/rebuild-csr-xml.sh: Updated.
1838
2b4e6a3f
TT
18392020-06-11 Tom Tromey <tom@tromey.com>
1840
1841 PR gdb/18318:
1842 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1843
4412332f
JG
18442020-06-09 Jonny Grant <jg@jguk.org>
18452020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * main.c (captured_main_1): Don't print new line after help.
1848 (print_gdb_help): add mailing list and IRC channel information
1849 to --help. Add new lines between items in the footer. Remove
1850 quotes around bug url.
1851
2f33032a
KS
18522020-06-11 Keith Seitz <keiths@redhat.com>
1853
1854 PR gdb/21356
1855 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1856 Resolve typedefs for type length calculations.
1857
7ab96794
TV
18582020-06-10 Tom de Vries <tdevries@suse.de>
1859
1860 PR ada/24713
1861 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1862 (write_psymbols): Enable .gdb_index for ada.
1863 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1864 ada.
1865
e5f3ece2
TV
18662020-06-10 Tom de Vries <tdevries@suse.de>
1867
1868 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1869 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1870 namei" instead of "const char *name" argument.
1871 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1872 dw2_symtab_iter_init.
1873
940da03e
SM
18742020-06-08 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1877 to use type::field and field::type instead.
1878
b6cdac4b
SM
18792020-06-08 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1882 to use field::type instead.
1883
5d14b6e5
SM
18842020-06-08 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * gdbtypes.h (struct field) <type, set_type>: New methods.
1887 Rename `type` field to...
1888 <m_type>: ... this. Change references throughout to use type or
1889 set_type methods.
1890 (FIELD_TYPE): Use field::type. Change call sites that modify
1891 the field's type to use field::set_type instead.
1892
3d967001
SM
18932020-06-08 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1896 to use type::index_type instead.
1897
262abc0d
SM
18982020-06-08 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1901 methods.
1902 (TYPE_INDEX_TYPE): Use type::index_type.
1903 * gdbtypes.c (create_array_type_with_stride): Likewise.
1904
82836c92
TT
19052020-06-07 Tom Tromey <tom@tromey.com>
1906
1907 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1908 parameter.
1909 (generic_value_print): Update.
1910
940dace9
AB
19112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 Revert commit 982a38f60b0.
1914 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1915
982a38f6
AB
19162020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1919 avoid use after free.
1920
82f06518
TV
19212020-06-05 Tom de Vries <tdevries@suse.de>
1922
1923 * NEWS: Fix typos.
1924
f8c41851
SM
19252020-06-04 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1928 the per_bfd object.
1929 (dwarf2_read_debug_names): Likewise.
1930 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1931 object when re-using a per_bfd object with an index.
1932
f9b5d5ea
TV
19332020-06-03 Tom de Vries <tdevries@suse.de>
1934
1935 PR symtab/26046
1936 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1937 children for C++.
1938 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1939 DW_TAG_subprogram.
1940
f6eee2d0
AB
19412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_language_data): Delete skip_trampoline
1944 initializer.
1945 * c-lang.c (c_language_data): Likewise.
1946 (cplus_language_data): Likewise.
1947 (cplus_language::skip_trampoline): New member function.
1948 (asm_language_data): Delete skip_trampoline initializer.
1949 (minimal_language_data): Likewise.
1950 * d-lang.c (d_language_data): Likewise.
1951 * f-lang.c (f_language_data): Likewise.
1952 * go-lang.c (go_language_data): Likewise.
1953 * language.c (unk_lang_trampoline): Delete function.
1954 (skip_language_trampoline): Update.
1955 (unknown_language_data): Delete skip_trampoline initializer.
1956 (auto_language_data): Likewise.
1957 * language.h (language_data): Delete skip_trampoline field.
1958 (language_defn::skip_trampoline): New function.
1959 * m2-lang.c (m2_language_data): Delete skip_trampoline
1960 initializer.
1961 * objc-lang.c (objc_skip_trampoline): Delete function, move
1962 implementation to objc_language::skip_trampoline.
1963 (objc_language_data): Delete skip_trampoline initializer.
1964 (objc_language::skip_trampoline): New member function with
1965 implementation from objc_skip_trampoline.
1966 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1967 initializer.
1968 * p-lang.c (pascal_language_data): Likewise.
1969 * rust-lang.c (rust_language_data): Likewise.
1970
0a50df5d
AB
19712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1974 (ada_language::demangle): New member function.
1975 * c-lang.c (c_language_data): Delete la_demangle initializer.
1976 (cplus_language_data): Delete la_demangle initializer.
1977 (cplus_language::demangle): New member function.
1978 (asm_language_data): Delete la_demangle initializer.
1979 (minimal_language_data): Delete la_demangle initializer.
1980 * d-lang.c (d_language_data): Delete la_demangle initializer.
1981 (d_language::demangle): New member function.
1982 * f-lang.c (f_language_data): Delete la_demangle initializer.
1983 (f_language::demangle): New member function.
1984 * go-lang.c (go_language_data): Delete la_demangle initializer.
1985 (go_language::demangle): New member function.
1986 * language.c (language_demangle): Update.
1987 (unk_lang_demangle): Delete.
1988 (unknown_language_data): Delete la_demangle initializer.
1989 (unknown_language::demangle): New member function.
1990 (auto_language_data): Delete la_demangle initializer.
1991 (auto_language::demangle): New member function.
1992 * language.h (language_data): Delete la_demangle field.
1993 (language_defn::demangle): New function.
1994 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1995 * objc-lang.c (objc_language_data): Delete la_demangle
1996 initializer.
1997 (objc_language::demangle): New member function.
1998 * opencl-lang.c (opencl_language_data): Delete la_demangle
1999 initializer.
2000 * p-lang.c (pascal_language_data): Likewise.
2001 * rust-lang.c (rust_language_data): Likewise.
2002 (rust_language::demangle): New member function.
2003
fbfb0a46
AB
20042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * ada-lang.c (ada_language_data): Delete la_print_type
2007 initializer.
2008 (ada_language::print_type): New member function.
2009 * c-lang.c (c_language_data): Delete la_print_type initializer.
2010 (c_language::print_type): New member function.
2011 (cplus_language_data): Delete la_print_type initializer.
2012 (cplus_language::print_type): New member function.
2013 (asm_language_data): Delete la_print_type initializer.
2014 (asm_language::print_type): New member function.
2015 (minimal_language_data): Delete la_print_type initializer.
2016 (minimal_language::print_type): New member function.
2017 * d-lang.c (d_language_data): Delete la_print_type initializer.
2018 (d_language::print_type): New member function.
2019 * f-lang.c (f_language_data): Delete la_print_type initializer.
2020 (f_language::print_type): New member function.
2021 * go-lang.c (go_language_data): Delete la_print_type initializer.
2022 (go_language::print_type): New member function.
2023 * language.c (unk_lang_print_type): Delete.
2024 (unknown_language_data): Delete la_print_type initializer.
2025 (unknown_language::print_type): New member function.
2026 (auto_language_data): Delete la_print_type initializer.
2027 (auto_language::print_type): New member function.
2028 * language.h (language_data): Delete la_print_type field.
2029 (language_defn::print_type): New function.
2030 (LA_PRINT_TYPE): Update.
2031 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2032 (m2_language::print_type): New member function.
2033 * objc-lang.c (objc_language_data): Delete la_print_type
2034 initializer.
2035 (objc_language::print_type): New member function.
2036 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2037 to opencl_language::print_type.
2038 (opencl_language_data): Delete la_print_type initializer.
2039 (opencl_language::print_type): New member function, implementation
2040 from opencl_print_type.
2041 * p-lang.c (pascal_language_data): Delete la_print_type
2042 initializer.
2043 (pascal_language::print_type): New member function.
2044 * rust-lang.c (rust_print_type): Delete, implementation moved to
2045 rust_language::print_type.
2046 (rust_language_data): Delete la_print_type initializer.
2047 (rust_language::print_type): New member function, implementation
2048 from rust_print_type.
2049
6f827019
AB
20502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2051
2052 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2053 implementation moves to...
2054 (ada_language::sniff_from_mangled_name): ...here. Update return
2055 type.
2056 (ada_language_data): Delete la_sniff_from_mangled_name
2057 initializer.
2058 * c-lang.c (c_language_data): Likewise.
2059 (cplus_language_data): Likewise.
2060 (cplus_language::sniff_from_mangled_name): New member function,
2061 implementation taken from gdb_sniff_from_mangled_name.
2062 (asm_language_data): Delete la_sniff_from_mangled_name
2063 initializer.
2064 (minimal_language_data): Likewise.
2065 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2066 implementation moves to cplus_language::sniff_from_mangled_name.
2067 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2068 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2069 moves to...
2070 (d_language::sniff_from_mangled_name): ...here.
2071 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2072 * f-lang.c (f_language_data): Likewise.
2073 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2074 moves to...
2075 (go_language::sniff_from_mangled_name): ...here.
2076 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2077 * language.c (language_sniff_from_mangled_name): Delete.
2078 (unknown_language_data): Delete la_sniff_from_mangled_name
2079 initializer.
2080 (auto_language_data): Likewise.
2081 * language.h (language_data): Delete la_sniff_from_mangled_name
2082 field.
2083 (language_defn::sniff_from_mangled_name): New function.
2084 (language_sniff_from_mangled_name): Delete declaration.
2085 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2086 field.
2087 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2088 implementation moves to...
2089 (objc_language::sniff_from_mangled_name): ...here.
2090 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2091 * opencl-lang.c (opencl_language_data): Likewise.
2092 * p-lang.c (pascal_language_data): Likewise.
2093 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2094 implementation moves to...
2095 (rust_language::sniff_from_mangled_name): ...here.
2096 (rust_language_data): Delete la_sniff_from_mangled_name
2097 initializer.
2098 * symtab.c (symbol_find_demangled_name): Call
2099 sniff_from_mangled_name member function.
2100
fb8006fd
AB
21012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2104 initializer.
2105 * c-lang.c (c_language_data): Likewise.
2106 (cplus_language_data): Likewise.
2107 (cplus_language::search_name_hash): New member function.
2108 (asm_language_data): Delete la_search_name_hash initializer.
2109 (minimal_language_data): Likewise.
2110 * d-lang.c (d_language_data): Likewise.
2111 * dictionary.c (default_search_name_hash): Rename to...
2112 (language_defn::search_name_hash): ...this.
2113 * f-lang.c (f_language_data): Likewise.
2114 (f_language::search_name_hash): New member function.
2115 * go-lang.c (go_language_data): Delete la_search_name_hash
2116 initializer.
2117 * language.c (unknown_language_data): Likewise.
2118 (auto_language_data): Likewise.
2119 * language.h (struct language_data): Delete la_search_name_hash
2120 field.
2121 (language_defn::search_name_hash): Declare new member function.
2122 (default_search_name_hash): Delete declaration.
2123 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2124 initializer.
2125 * objc-lang.c (objc_language_data): Likewise.
2126 * opencl-lang.c (opencl_language_data): Likewise.
2127 * p-lang.c (pascal_language_data): Likewise.
2128 * rust-lang.c (rust_language_data): Likewise.
2129 * symtab.c (search_name_hash): Update call.
2130
8e25bafe
AB
21312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2134 initializer.
2135 * c-lang.c (class compile_instance): Declare.
2136 (c_language_data): Delete la_get_compile_instance initializer.
2137 (c_language::get_compile_instance): New member function.
2138 (cplus_language_data): Delete la_get_compile_instance initializer.
2139 (cplus_language::get_compile_instance): New member function.
2140 (asm_language_data): Delete la_get_compile_instance initializer.
2141 (minimal_language_data): Likewise.
2142 * c-lang.h (c_get_compile_context): Update comment.
2143 (cplus_get_compile_context): Update comment.
2144 * compile/compile.c (compile_to_object): Update calls, don't rely
2145 on function pointer being NULL.
2146 * d-lang.c (d_language_data): Delete la_get_compile_instance
2147 initializer.
2148 * f-lang.c (f_language_data): Likewise.
2149 * go-lang.c (go_language_data): Likewise.
2150 * language.c (unknown_language_data): Likewise.
2151 (auto_language_data): Likewise.
2152 * language.h (language_data): Delete la_get_compile_instance field.
2153 (language_defn::get_compile_instance): New member function.
2154 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2155 initializer.
2156 * objc-lang.c (objc_language_data): Likewise.
2157 * opencl-lang.c (opencl_language_data): Likewise.
2158 * p-lang.c (pascal_language_data): Likewise.
2159 * rust-lang.c (rust_language_data): Likewise.
2160
4009ee92
AB
21612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * ada-lang.c (ada_add_all_symbols): Update comment.
2164 (ada_iterate_over_symbols): Delete, move implementation to...
2165 (ada_language::iterate_over_symbols): ...here, a new member
2166 function, rewrite to use range based for loop.
2167 (ada_language_data): Delete la_iterate_over_symbols initializer.
2168 * c-lang.c (c_language_data): Likewise.
2169 (cplus_language_data): Likewise.
2170 (asm_language_data): Likewise.
2171 (minimal_language_data): Likewise.
2172 * d-lang.c (d_language_data): Likewise.
2173 * f-lang.c (f_language_data): Likewise.
2174 * go-lang.c (go_language_data): Likewise.
2175 * language.c (unknown_language_data): Likewise.
2176 (auto_language_data): Likewise.
2177 * language.h (language_data): Delete la_iterate_over_symbols field.
2178 (language_defn::iterate_over_symbols): New member function.
2179 (LA_ITERATE_OVER_SYMBOLS): Update.
2180 * linespec.c (iterate_over_all_matching_symtabs): Update.
2181 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2182 initializer.
2183 * objc-lang.c (objc_language_data): Likewise.
2184 * opencl-lang.c (opencl_language_data): Likewise.
2185 * p-lang.c (pascal_language_data): Likewise.
2186 * rust-lang.c (rust_language_data): Likewise.
2187
54f4ca46
AB
21882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (ada_language_data): Delete
2191 la_lookup_transparent_type initializer.
2192 * c-lang.c (c_language_data): Likewise.
2193 (cplus_language_data): Likewise.
2194 (cplus_language::lookup_transparent_type): New member function.
2195 (asm_language_data): Delete la_lookup_transparent_type
2196 initializer.
2197 (minimal_language_data): Likewise.
2198 * d-lang.c (d_language_data): Likewise.
2199 * f-lang.c (f_language_data): Likewise.
2200 * go-lang.c (go_language_data): Likewise.
2201 * language.c (unknown_language_data): Likewise.
2202 (auto_language_data): Likewise.
2203 * language.h (struct language_data): Delete
2204 la_lookup_transparent_type field.
2205 (language_defn::lookup_transparent_type): New member function.
2206 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2207 initializer.
2208 * objc-lang.c (objc_language_data): Likewise.
2209 * opencl-lang.c (opencl_language_data): Likewise.
2210 * p-lang.c (pascal_language_data): Likewise.
2211 * rust-lang.c (rust_language_data): Likewise.
2212 * symtab.c (symbol_matches_domain): Update call.
2213
1fb314aa
AB
22142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2215
2216 * ada-lang.c (ada_language_arch_info): Delete function, move
2217 implementation to...
2218 (ada_language::language_arch_info): ...here, a new member
2219 function.
2220 (ada_language_data): Delete la_language_arch_info.
2221 * c-lang.c (c_language_data): Likewise.
2222 (c_language::language_arch_info): New member function.
2223 (cplus_language_arch_info): Delete function, move
2224 implementation to...
2225 (cplus_language::language_arch_info): ...here, a new member
2226 function.
2227 (cplus_language_data): Delete la_language_arch_info.
2228 (asm_language_data): Likewise.
2229 (asm_language::language_arch_info): New member function.
2230 (minimal_language_data): Delete la_language_arch_info.
2231 (minimal_language::language_arch_info): New member function.
2232 * d-lang.c (d_language_arch_info): Delete function, move
2233 implementation to...
2234 (d_language::language_arch_info): ...here, a new member
2235 function.
2236 (d_language_data): Delete la_language_arch_info.
2237 * f-lang.c (f_language_arch_info): Delete function, move
2238 implementation to...
2239 (f_language::language_arch_info): ...here, a new member
2240 function.
2241 (f_language_data): Delete la_language_arch_info.
2242 * go-lang.c (go_language_arch_info): Delete function, move
2243 implementation to...
2244 (go_language::language_arch_info): ...here, a new member
2245 function.
2246 (go_language_data): Delete la_language_arch_info.
2247 * language.c (unknown_language_data): Likewise.
2248 (unknown_language::language_arch_info): New member function.
2249 (auto_language_data): Delete la_language_arch_info.
2250 (auto_language::language_arch_info): New member function.
2251 (language_gdbarch_post_init): Update call to
2252 la_language_arch_info.
2253 * language.h (language_data): Delete la_language_arch_info
2254 function pointer.
2255 (language_defn::language_arch_info): New function.
2256 * m2-lang.c (m2_language_arch_info): Delete function, move
2257 implementation to...
2258 (m2_language::language_arch_info): ...here, a new member
2259 function.
2260 (m2_language_data): Delete la_language_arch_info.
2261 * objc-lang.c (objc_language_arch_info): Delete function, move
2262 implementation to...
2263 (objc_language::language_arch_info): ...here, a new member
2264 function.
2265 (objc_language_data): Delete la_language_arch_info.
2266 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2267 implementation to...
2268 (opencl_language::language_arch_info): ...here, a new member
2269 function.
2270 (opencl_language_data): Delete la_language_arch_info.
2271 * p-lang.c (pascal_language_arch_info): Delete function, move
2272 implementation to...
2273 (pascal_language::language_arch_info): ...here, a new member
2274 function.
2275 (pascal_language_data): Delete la_language_arch_info.
2276 * rust-lang.c (rust_language_arch_info): Delete function, move
2277 implementation to...
2278 (rust_language::language_arch_info): ...here, a new member
2279 function.
2280 (rust_language_data): Delete la_language_arch_info.
2281
48448202
AB
22822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2285 initializer.
2286 * c-lang.c (c_language_data): Likewise.
2287 (cplus_language_data): Likewise.
2288 (cplus_language::pass_by_reference_info): New method.
2289 (asm_language_data): Delete la_pass_by_reference initializer.
2290 (minimal_language_data): Likewise.
2291 * cp-abi.c (cp_pass_by_reference): Remove use of
2292 default_pass_by_reference.
2293 * d-lang.c (d_language_data): Likewise.
2294 * f-lang.c (f_language_data): Likewise.
2295 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2296 default_pass_by_reference.
2297 * go-lang.c (go_language_data): Likewise.
2298 * language.c (language_pass_by_reference): Update.
2299 (default_pass_by_reference): Delete.
2300 (unknown_language_data): Delete la_pass_by_reference
2301 initializer.
2302 (auto_language_data): Likewise.
2303 * language.h (struct language_data): Delete la_pass_by_reference
2304 field.
2305 (language_defn::pass_by_reference_info): New member function.
2306 (default_pass_by_reference): Delete declaration.
2307 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2308 initializer.
2309 * objc-lang.c (objc_language_data): Likewise.
2310 * opencl-lang.c (opencl_language_data): Likewise.
2311 * p-lang.c (pascal_language_data): Likewise.
2312 * rust-lang.c (rust_language_data): Likewise.
2313
15e5fd35
AB
23142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * ada-lang.c (ada_read_var_value): Delete function, move
2317 implementation to...
2318 (ada_language::read_var_value): ...here.
2319 (ada_language_data): Delete la_read_var_value initializer.
2320 * c-lang.c (c_language_data): Likewise.
2321 (cplus_language_data): Likewise.
2322 (minimal_language_data): Likewise.
2323 * d-lang.c (d_language_data): Likewise.
2324 * f-lang.c (f_language_data): Likewise.
2325 * findvar.c (default_read_var_value): Rename to...
2326 (language_defn::read_var_value): ...this.
2327 * findvar.c (read_var_value): Update header comment, and change to
2328 call member function instead of function pointer.
2329 * go-lang.c (go_language_data): Likewise.
2330 * language.c (unknown_language_data): Delete la_read_var_value
2331 initializer.
2332 (auto_language_data): Likewise.
2333 * language.h (struct language_data): Delete la_read_var_value
2334 field.
2335 (language_defn::read_var_value): New member function.
2336 (default_read_var_value): Delete declaration.
2337 * m2-lang.c (m2_language_data): Delete la_read_var_value
2338 initializer.
2339 * objc-lang.c (objc_language_data): Likewise.
2340 * opencl-lang.c (opencl_language_data): Likewise.
2341 * p-lang.c (pascal_language_data): Likewise.
2342 * rust-lang.c (rust_language_data): Likewise.
2343 * value.h (default_read_var_value): Delete declaration.
2344
5bd40f2a
AB
23452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * ada-lang.c (ada_print_array_index): Delete function, move
2348 implementation to...
2349 (ada_language::print_array_index): ...here.
2350 (ada_language_data): Delete la_print_array_index initializer.
2351 * c-lang.c (c_language_data): Likewise.
2352 (cplus_language_data): Likewise.
2353 (minimal_language_data): Likewise.
2354 * d-lang.c (d_language_data): Likewise.
2355 * f-lang.c (f_language_data): Likewise.
2356 * go-lang.c (go_language_data): Likewise.
2357 * language.c (default_print_array_index): Delete function, move
2358 implementation to...
2359 (language_defn::print_array_index): ...here.
2360 (unknown_language_data): Delete la_print_array_index initializer.
2361 (auto_language_data): Likewise.
2362 * language.h (struct language_data): Delete la_print_array_index
2363 field.
2364 (language_defn::print_array_index): New member function.
2365 (LA_PRINT_ARRAY_INDEX): Update.
2366 (default_print_array_index): Delete declaration.
2367 * m2-lang.c (m2_language_data): Delete la_print_array_index
2368 initializer.
2369 * objc-lang.c (objc_language_data): Likewise.
2370 * opencl-lang.c (opencl_language_data): Likewise.
2371 * p-lang.c (pascal_language_data): Likewise.
2372 * rust-lang.c (rust_language_data): Likewise.
2373
0874fd07
AB
23742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * gdb/ada-lang.c (ada_language_defn): Convert to...
2377 (ada_language_data): ...this.
2378 (class ada_language): New class.
2379 (ada_language_defn): New static global.
2380 * gdb/c-lang.c (c_language_defn): Convert to...
2381 (c_language_data): ...this.
2382 (class c_language): New class.
2383 (c_language_defn): New static global.
2384 (cplus_language_defn): Convert to...
2385 (cplus_language_data): ...this.
2386 (class cplus_language): New class.
2387 (cplus_language_defn): New static global.
2388 (asm_language_defn): Convert to...
2389 (asm_language_data): ...this.
2390 (class asm_language): New class.
2391 (asm_language_defn): New static global.
2392 (minimal_language_defn): Convert to...
2393 (minimal_language_data): ...this.
2394 (class minimal_language): New class.
2395 (minimal_language_defn): New static global.
2396 * gdb/d-lang.c (d_language_defn): Convert to...
2397 (d_language_data): ...this.
2398 (class d_language): New class.
2399 (d_language_defn): New static global.
2400 * gdb/f-lang.c (f_language_defn): Convert to...
2401 (f_language_data): ...this.
2402 (class f_language): New class.
2403 (f_language_defn): New static global.
2404 * gdb/go-lang.c (go_language_defn): Convert to...
2405 (go_language_data): ...this.
2406 (class go_language): New class.
2407 (go_language_defn): New static global.
2408 * gdb/language.c (unknown_language_defn): Remove declaration.
2409 (current_language): Initialize to nullptr, real initialization is
2410 moved to _initialize_language.
2411 (languages): Delete global.
2412 (language_defn::languages): Define.
2413 (set_language_command): Use language_defn::languages.
2414 (set_language): Likewise.
2415 (range_error): Likewise.
2416 (language_enum): Likewise.
2417 (language_def): Likewise.
2418 (add_set_language_command): Use language_def::languages for the
2419 language list, and language_def to lookup language pointers.
2420 (skip_language_trampoline): Use language_defn::languages.
2421 (unknown_language_defn): Convert to...
2422 (unknown_language_data): ...this.
2423 (class unknown_language): New class.
2424 (unknown_language_defn): New static global.
2425 (auto_language_defn): Convert to...
2426 (auto_language_data): ...this.
2427 (class auto_language): New class.
2428 (auto_language_defn): New static global.
2429 (language_gdbarch_post_init): Use language_defn::languages.
2430 (_initialize_language): Initialize current_language.
2431 * gdb/language.h (struct language_defn): Rename to...
2432 (struct language_data): ...this.
2433 (struct language_defn): New.
2434 (auto_language_defn): Delete.
2435 (unknown_language_defn): Delete.
2436 (minimal_language_defn): Delete.
2437 (ada_language_defn): Delete.
2438 (asm_language_defn): Delete.
2439 (c_language_defn): Delete.
2440 (cplus_language_defn): Delete.
2441 (d_language_defn): Delete.
2442 (f_language_defn): Delete.
2443 (go_language_defn): Delete.
2444 (m2_language_defn): Delete.
2445 (objc_language_defn): Delete.
2446 (opencl_language_defn): Delete.
2447 (pascal_language_defn): Delete.
2448 (rust_language_defn): Delete.
2449 * gdb/m2-lang.c (m2_language_defn): Convert to...
2450 (m2_language_data): ...this.
2451 (class m2_language): New class.
2452 (m2_language_defn): New static global.
2453 * gdb/objc-lang.c (objc_language_defn): Convert to...
2454 (objc_language_data): ...this.
2455 (class objc_language): New class.
2456 (objc_language_defn): New static global.
2457 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2458 (opencl_language_data): ...this.
2459 (class opencl_language): New class.
2460 (opencl_language_defn): New static global.
2461 * gdb/p-lang.c (pascal_language_defn): Convert to...
2462 (pascal_language_data): ...this.
2463 (class pascal_language): New class.
2464 (pascal_language_defn): New static global.
2465 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2466 language pointer, update comment format.
2467 * gdb/rust-lang.c (rust_language_defn): Convert to...
2468 (rust_language_data): ...this.
2469 (class rust_language): New class.
2470 (rust_language_defn): New static global.
2471
1313c56e
AB
24722020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2473
2474 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2475 member variable.
2476 <m_stmt_at_address>: New member variable.
2477 (lnp_state_machine::record_line): Don't record some lines, update
2478 tracking of is_stmt at the same address.
2479 (lnp_state_machine::lnp_state_machine): Initialise new member
2480 variables.
2481
b7ed9f3d
ST
24822020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2483
2484 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2485 "-include gnu-nat-mig.h".
2486 * gnu-nat-mig.h: New file.
2487 * gnu-nat.c: Include "gnu-nat-mig.h".
2488 (exc_server, msg_reply_server, notify_server,
2489 process_reply_server): Remove declarations.
2490
14a8ad62
ST
24912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2492
2493 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2494 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2495 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2496 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2497 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2498 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2499 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2500 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2501 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2502 to gnu_nat_target class.
2503 * gnu-nat.c: Likewise.
2504 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2505 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2506 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2507 object.
2508 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2509 instead of `gnu_target'.
2510
0af5e106
ST
25112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2512
2513 * i386-gnu-tdep.c: Include "gdbcore.h"
2514 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2515 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2516 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2517 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2518 i386_gnu_sigcontext_addr): New functions
2519 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2520 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2521 tdep.
2522
078f2fc9
ST
25232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2524
2525 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2526 before fork_inferior call. Avoid calling it if target_is_pushed returns
2527 true.
2528
53dff92c
ST
25292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2530
2531 * gnu-nat.h (gnu_target): New variable declaration.
2532 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2533 gnu_target.
2534 * gnu-nat.c (gnu_target): New variable.
2535 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2536 add_thread_silent, and add_thread calls.
2537 (gnu_nat_target::create_inferior): Pass gnu_target to
2538 add_thread_silent, thread_change_ptid call.
2539 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2540 call.
2541
5a8b8627
ST
25422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2543
2544 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2545 (gnu_nat_target::find_memory_regions): Remove unused
2546 `old_address' variable.
2547
366f550a
ST
25482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2549
2550 * gnu-nat.c: Include "gdbarch.h".
2551
f14871bf
ST
25522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2553
2554 * reply_mig_hack.awk (Error return): Cast function through
2555 void *, to bypass compiler function call check.
2556
c6887cfb
ST
25572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2558
2559 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2560 $(srcdir)/reply_mig_hack.awk.
2561
6930bffe
ST
25622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2563
2564 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2565
112c22ed
JG
25662020-05-30 Jonny Grant <jg@jguk.org>
2567
2568 * configure.ac (ACX_BUGURL): change bug URL to https.
2569
f68f85b5
PA
25702020-05-30 Pedro Alves <palves@redhat.com>
2571
2572 * cp-support.c (replace_typedefs_template): New.
2573 (replace_typedefs_qualified_name): Handle
2574 DEMANGLE_COMPONENT_TEMPLATE.
2575
976ca316
SM
25762020-05-29 Simon Marchi <simon.marchi@efficios.com>
2577
2578 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2579 dwarf2/index-cache.h, dwarf2/index-write.c,
2580 dwarf2/index-write.h, dwarf2/line-header.c,
2581 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2582 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2583 variables and fields from `dwarf2_per_objfile` to just
2584 `per_objfile` throughout.
2585
989ade05
SM
25862020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2589 <push_dwarf_reg_entry_value>: Add comment.
2590
c47bae85
KB
25912020-05-28 Kevin Buettner <kevinb@redhat.com>
2592 Keith Seitz <keiths@redhat.com>
2593
2594 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2595 instead of PyEval_ReleaseLock.
2596 (class gdbpy_gil): Move to earlier in file.
2597 (finalize_python): Set gdb_python_initialized.
2598 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2599 when not initialized.
2600
44486dcf
SM
26012020-05-28 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2604 <push_dwarf_reg_entry_value>: Remove assert. Override
2605 per_objfile with caller_per_objfile.
2606
f030440d
TV
26072020-05-28 Tom de Vries <tdevries@suse.de>
2608
2609 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2610 PR gold/15646 workaround to symbol kind "type".
2611
f0fbb768
TT
26122020-05-27 Tom Tromey <tromey@adacore.com>
2613
2614 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2615
af0b2a3e
TT
26162020-05-27 Tom Tromey <tromey@adacore.com>
2617
2618 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2619 Use htab_find_with_hash.
2620 <add_abbrev>: Remove "abbrev_number" parameter.
2621 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2622 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2623 (hash_abbrev): Add comment.
2624 (abbrev_table::lookup_abbrev): Move to header file.
2625 (abbrev_table::read): Update.
2626
7d00ffec
TT
26272020-05-27 Tom Tromey <tromey@adacore.com>
2628
2629 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2630 method.
2631 <canonical_name>: New member.
2632 <raw_name>: Rename from "name".
2633 (partial_die_info): Initialize canonical_name.
2634 (scan_partial_symbols): Check raw_name.
2635 (partial_die_parent_scope, partial_die_full_name)
2636 (add_partial_symbol, add_partial_subprogram)
2637 (add_partial_enumeration, load_partial_dies): Use "name" method.
2638 (partial_die_info::name): New method.
2639 (partial_die_info::read, guess_partial_die_structure_name)
2640 (partial_die_info::fixup): Update.
2641
697bba18
TT
26422020-05-27 Tom Tromey <tromey@adacore.com>
2643
2644 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2645 <get_ref_die_offset>: Inline.
2646 <get_ref_die_offset_complaint>: New method.
2647 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2648 (attribute::get_ref_die_offset_complaint): Rename from
2649 get_ref_die_offset. Just issue complaint.
2650
c17ace43
HD
26512020-05-27 Hannes Domani <ssbssa@yahoo.de>
2652
2653 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2654
96445f0b
HD
26552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2656
2657 * exec.c (exec_file_attach): Use errno value of first openp failure.
2658
ac637ec3
HD
26592020-05-27 Hannes Domani <ssbssa@yahoo.de>
2660
2661 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2662 Don't close thread handle.
2663
17ee85fc
TT
26642020-05-27 Tom Tromey <tom@tromey.com>
2665 Simon Marchi <simon.marchi@efficios.com>
2666
2667 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2668 shared_ptr.
2669 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2670 member.
2671 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2672 dwarf2_per_bfd_objfile_data_key>: New globals.
2673 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2674 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2675 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2676 shared.
2677 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2678 short-circuit when sharing.
2679 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2680 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2681
39b16f87
SM
26822020-05-27 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2685 to...
2686 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2687 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2688
fcf23d5b
SM
26892020-05-27 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2692 build_name_components, find_name_components_bounds>:
2693 Add per_objfile parameter.
2694 (struct mapped_index) <symbol_name_at>: Likewise.
2695 (struct mapped_debug_names): Remove constructor.
2696 <dwarf2_per_objfile>: Remove field.
2697 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2698 (mapped_index_base::find_name_components_bounds,
2699 mapped_index_base::build_name_components,
2700 dw2_expand_symtabs_matching_symbol): Likewise.
2701 (class mock_mapped_index) <symbol_name_at>: Likewise.
2702 (check_match): Likewise.
2703 (check_find_bounds_finds): Likewise.
2704 (test_mapped_index_find_name_component_bounds): Update.
2705 (CHECK_MATCH): Update.
2706 (dw2_expand_symtabs_matching): Update.
2707 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2708 per_objfile parameter.
2709 <find_vec_in_debug_names>: Likewise.
2710 <m_per_objfile>: New field.
2711 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2712 parameter.
2713 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2714 (dw2_debug_names_iterator::next): Update.
2715 (dw2_debug_names_lookup_symbol): Update.
2716 (dw2_debug_names_expand_symtabs_for_function): Update.
2717 (dw2_debug_names_map_matching_symbols): Update.
2718 (dw2_debug_names_expand_symtabs_matching): Update.
2719 (dwarf2_read_debug_names): Update.
2720
7188ed02
SM
27212020-05-27 Simon Marchi <simon.marchi@efficios.com>
2722
2723 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2724 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2725 move to dwarf2_per_objfile.
2726 <read_in_chain>: Remove.
2727 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2728 remove_all_cus, age_comp_units>: New methods.
2729 <m_dwarf2_cus>: New member.
2730 (struct dwarf2_per_cu_data) <cu>: Remove.
2731 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2732 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2733 moved to methods of dwarf2_per_objfile.
2734 (dwarf2_clear_marks): Remove.
2735 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2736 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2737 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2738 (dwarf2_per_objfile::remove_all_cus): New.
2739 (class free_cached_comp_units) <~free_cached_comp_units>:
2740 Update.
2741 (load_cu): Update.
2742 (dw2_do_instantiate_symtab): Adjust.
2743 (fill_in_sig_entry_from_dwo_entry): Adjust.
2744 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2745 (cutu_reader::cutu_reader): Likewise.
2746 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2747 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2748 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2749 and dwarf2_per_objfile::age_comp_units.
2750 (load_partial_comp_unit): Update.
2751 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2752 (process_queue): Likewise.
2753 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2754 backlink.
2755 (dwarf2_read_addr_index): Likewise.
2756 (follow_die_offset): Likewise.
2757 (dwarf2_fetch_die_loc_sect_off): Likewise.
2758 (dwarf2_fetch_constant_bytes): Likewise.
2759 (dwarf2_fetch_die_type_sect_off): Likewise.
2760 (follow_die_sig_1): Likewise.
2761 (load_full_type_unit): Likewise.
2762 (read_signatured_type): Likewise.
2763 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2764 (dwarf2_cu::~dwarf2_cu): Remove.
2765 (dwarf2_per_objfile::get_cu): New.
2766 (dwarf2_per_objfile::set_cu): New.
2767 (age_cached_comp_units): Rename to...
2768 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2769 to std::unordered_map.
2770 (free_one_cached_comp_unit): Rename to...
2771 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2772 to std::unordered_map.
2773 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2774 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2775 a dwarf2_per_objfile in data.
2776 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2777 (dwarf2_clear_marks): Remove.
2778
2e671100
SM
27792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2782 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2783 (init_tu_and_read_dwo_dies): Likewise.
2784 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2785 (cutu_reader::cutu_reader): Likewise.
2786 (load_partial_comp_unit): Likewise.
2787 (process_psymtab_comp_unit): Update.
2788 (build_type_psymtabs_1): Update.
2789 (process_skeletonless_type_unit): Update.
2790 (load_full_comp_unit): Update.
2791 (find_partial_die): Update.
2792 (dwarf2_read_addr_index): Update.
2793 (read_signatured_type): Update.
2794
2e6a9f79
SM
27952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2798 m_header_read_in>: New fields.
2799 <get_header>: New method.
2800 * dwarf2/read.c (per_cu_header_read_in): Remove.
2801 (dwarf2_per_cu_data::get_header): New.
2802 (dwarf2_per_cu_data::addr_size): Update.
2803 (dwarf2_per_cu_data::offset_size): Update.
2804 (dwarf2_per_cu_data::ref_addr_size): Update.
2805
1b555f17
SM
28062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2807
2808 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2809 (dw2_do_instantiate_symtab): Update.
2810 (queue_and_load_all_dwo_tus): Change parameter from
2811 dwarf2_per_cu_data to dwarf2_cu.
2812 (dwarf2_fetch_die_loc_sect_off): Update.
2813 (dwarf2_fetch_constant_bytes): Update.
2814 (dwarf2_fetch_die_type_sect_off): Update.
2815
8fc0b21d
SM
28162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * dwarf2/read.c (process_full_comp_unit,
2819 process_full_type_unit): Remove per_cu, per_objfile paramters.
2820 Add dwarf2_cu parameter.
2821 (process_queue): Update.
2822
168c9250
SM
28232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * dwarf2/read.c (create_cu_from_index_list): Replace
2826 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2827 (create_cus_from_index_list): Likewise.
2828 (create_cus_from_index): Likewise.
2829 (create_signatured_type_table_from_index): Likewise.
2830 (create_cus_from_debug_names_list): Likewise.
2831 (create_cus_from_debug_names): Likewise.
2832 (dwarf2_read_gdb_index): Update.
2833 (dwarf2_read_debug_names): Update.
2834
e286671b
TT
28352020-05-27 Tom Tromey <tom@tromey.com>
2836 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * dwarf2/read.h (struct dwarf2_per_objfile)
2839 <get_type_for_signatured_type, set_type_for_signatured_type>:
2840 New methods.
2841 <m_type_map>: New member.
2842 (struct signatured_type) <type>: Remove.
2843 * dwarf2/read.c
2844 (dwarf2_per_objfile::get_type_for_signatured_type,
2845 dwarf2_per_objfile::set_type_for_signatured_type): New.
2846 (get_signatured_type): Use new methods.
2847
8adb8487
TT
28482020-05-27 Tom Tromey <tom@tromey.com>
2849 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2852 (struct dwarf2_per_objfile) <type_units>: New member.
2853 <get_type_unit_group_unshareable>: New method.
2854 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2855 num_symtabs, symtabs>: Remove; move to
2856 type_unit_group_unshareable.
2857 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2858 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2859 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2860
127bbf4b
SM
28612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * dwarf2/read.h (struct dwarf2_per_cu_data):
2864 <dwarf2_per_objfile>: Remove.
2865 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2866 dwarf2_per_objfile.
2867 (create_signatured_type_table_from_index): Likewise.
2868 (create_signatured_type_table_from_debug_names): Likewise.
2869 (create_debug_type_hash_table): Likewise.
2870 (fill_in_sig_entry_from_dwo_entry): Likewise.
2871 (create_type_unit_group): Likewise.
2872 (read_comp_units_from_section): Likewise.
2873 (create_cus_hash_table): Likewise.
2874
f6e649dd
SM
28752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2876
2877 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2878 dwarf2_per_cu_data::dwarf2_per_objfile.
2879 (compute_compunit_symtab_includes): Likewise.
2880 (dwarf2_cu::start_symtab): Likewise.
2881
aa66c379
SM
28822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2885 parameter.
2886 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2887 (read_namespace_alias): Update.
2888 (lookup_die_type): Update.
2889 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2890 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2891 Update.
2892 (disassemble_dwarf_expression): Update.
2893
120ce1b5
SM
28942020-05-27 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * dwarf2/read.h (struct dwarf2_queue_item): Add
2897 dwarf2_per_objfile parameter, assign new parameter.
2898 <per_objfile>: New field.
2899 * dwarf2/read.c (free_one_cached_comp_unit): Add
2900 dwarf2_per_objfile parameter.
2901 (queue_comp_unit): Likewise.
2902 (dw2_do_instantiate_symtab): Update.
2903 (process_psymtab_comp_unit): Update.
2904 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2905 (process_imported_unit_die): Update.
2906 (queue_and_load_dwo_tu): Update.
2907 (follow_die_offset): Update.
2908 (follow_die_sig_1): Update.
2909
9f47c707
SM
29102020-05-27 Simon Marchi <simon.marchi@efficios.com>
2911
2912 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2913 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2914 (read_call_site_scope): Assign per_objfile.
2915 (dwarf2_per_cu_data::objfile): Remove.
2916 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2917 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2918 dwarf2_per_objfile parameter.
2919 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2920 dwarf2_per_objfile parameter.
2921 (dwarf_expr_reg_to_entry_parameter): Add output
2922 dwarf2_per_objfile parameter.
2923 (locexpr_get_frame_base): Update.
2924 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2925 <push_dwarf_reg_entry_value>: Update.
2926 <call_site_to_target_addr>: Update.
2927 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2928 parameter.
2929 (value_of_dwarf_reg_entry): Update.
2930 (rw_pieced_value): Update.
2931 (indirect_synthetic_pointer): Update.
2932 (dwarf2_evaluate_property): Update.
2933 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2934 parameter.
2935 (locexpr_read_variable): Update.
2936 (locexpr_get_symbol_read_needs): Update.
2937 (loclist_read_variable): Update.
2938
14095eb3
SM
29392020-05-27 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2942 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2943 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2944 parameter.
2945 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2946 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2947 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2948 parameter.
2949 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2950 sect_variable_value): Add dwarf2_per_objfile parameter.
2951 (class dwarf_evaluate_loc_desc) <dwarf_call,
2952 dwarf_variable_value>: Update.
2953 (fetch_const_value_from_synthetic_pointer): Add
2954 dwarf2_per_objfile parameter.
2955 (fetch_const_value_from_synthetic_pointer): Update.
2956 (coerced_pieced_ref): Update.
2957 (class symbol_needs_eval_context) <dwarf_call,
2958 dwarf_variable_value>: Update.
2959 (dwarf2_compile_expr_to_ax): Update.
2960
3c3cd3d4
SM
29612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2964 parameter.
2965 (dwarf2_evaluate_loc_desc_full): Update.
2966
82ca3f51
SM
29672020-05-27 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2970 parameter.
2971 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2972 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2973 dwarf2_per_objfile parameter.
2974 (decode_debug_loc_dwo_addresses): Likewise.
2975 (dwarf2_find_location_expression): Update.
2976 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2977 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2978 parameter.
2979 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2980 parameter.
2981 (locexpr_describe_location_1): Likewise.
2982 (locexpr_describe_location): Update.
2983
4b167ea1
SM
29842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2987 Remove.
2988 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2989 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2990 (dwarf2_compile_property_to_c): Update.
2991 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2992 use text offset from objfile.
2993 (locexpr_tracepoint_var_ref): Update.
2994 (locexpr_generate_c_location): Update.
2995 (loclist_describe_location): Update.
2996 (loclist_tracepoint_var_ref): Update.
2997 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2998 dwarf2_per_objfile parameter.
2999 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3000 use text offset from objfile.
3001 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3002
89b07335
SM
30032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3004
3005 * dwarf2/expr.h (struct dwarf_expr_context)
3006 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3007 <offset>: Remove.
3008 <per_objfile>: New member.
3009 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3010 dwarf2_per_objfile parameter. Don't set offset, set
3011 per_objfile.
3012 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3013 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3014 a dwarf2_per_objfile object instead of an offset.
3015 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3016 constructor.
3017 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3018 to dwarf2_expr_executor constructor. Don't set offset.
3019 (dwarf2_fetch_cfa_info): Update.
3020 (struct dwarf2_frame_cache) <text_offset>: Remove.
3021 <per_objfile>: New field.
3022 (dwarf2_frame_cache): Update.
3023 (dwarf2_frame_prev_register): Update.
3024 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3025 <dwarf_evaluate_loc_desc>: Add constructor.
3026 (dwarf2_evaluate_loc_desc_full): Update.
3027 (dwarf2_locexpr_baton_eval): Update.
3028 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3029 Add constructor.
3030 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3031
293e7e51
SM
30322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3035 addr_sized_int_type>: Move to dwarf2_cu.
3036 <int_type>: Move to dwarf2_per_objfile.
3037 (struct dwarf2_per_objfile) <int_type>: Move here.
3038 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3039 addr_sized_int_type>: Move here.
3040 (read_func_scope): Update.
3041 (read_array_type): Update.
3042 (read_tag_string_type): Update.
3043 (attr_to_dynamic_prop): Update.
3044 (dwarf2_per_cu_data::int_type): Rename to...
3045 (dwarf2_per_objfile::int_type): ... this.
3046 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3047 (dwarf2_cu::addr_sized_int_type): ... this.
3048 (read_subrange_type): Update.
3049 (dwarf2_per_cu_data::addr_type): Rename to...
3050 (dwarf2_cu::addr_type): ... this.
3051 (set_die_type): Update.
3052
64874a40
SM
30532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3056 data through per_cu->cu.
3057
4ab09049
SM
30582020-05-27 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3061 dwarf2_per_cu_data parameter fo dwarf2_cu.
3062 (lookup_dwo_type_unit): Likewise.
3063 (read_cutu_die_from_dwo): Likewise.
3064 (lookup_dwo_unit): Likewise.
3065 (open_and_init_dwo_file): Likewise.
3066 (lookup_dwo_cutu): Likewise.
3067 (lookup_dwo_comp_unit): Likewise.
3068 (lookup_dwo_type_unit): Likewise.
3069 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3070 (cutu_reader::cutu_reader): Update.
3071
47b14e86
SM
30722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3073
3074 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3075 parameter.
3076 (process_full_type_unit): Likewise.
3077 (process_queue): Update.
3078
43182c09
SM
30792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/read.c (recursively_compute_inclusions): Add
3082 dwarf2_per_objfile parameter.
3083 (compute_compunit_symtab_includes): Likewise.
3084 (process_cu_includes): Update.
3085
7aa104c4
SM
30862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3087
3088 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3089 parameter.
3090 (create_type_unit_group): Update.
3091 (process_psymtab_comp_unit_reader): Update.
3092 (build_type_psymtabs_reader): Update.
3093
e3beb21d
SM
30942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3097 object through m_this_cu->cu.
3098
d460f660
SM
30992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3102 the info parameter.
3103 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3104
ab432490
SM
31052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3108 per_objfile parameter.
3109 (load_full_type_unit): Add per_objfile parameter.
3110 (read_signatured_type): Likewise.
3111 (load_full_comp_unit): Likewise.
3112 (load_cu): Likewise.
3113 (dw2_do_instantiate_symtab): Likewise.
3114 (dw2_get_file_names): Likewise.
3115 (dw2_map_symtabs_matching_filename): Update.
3116 (dw_expand_symtabs_matching_file_matcher): Update.
3117 (dw2_map_symbol_filenames): Update.
3118 (process_psymtab_comp_unit): Add per_objfile parameter.
3119 (build_type_psymtabs_1): Update.
3120 (process_skeletonless_type_unit): Update.
3121 (dwarf2_build_psymtabs_hard): Update.
3122 (load_partial_comp_unit): Add per_objfile parameter.
3123 (scan_partial_symbols): Update.
3124 (load_full_comp_unit): Add per_objfile parameter.
3125 (process_imported_unit_die): Update.
3126 (create_cus_hash_table): Update.
3127 (find_partial_die): Update.
3128 (dwarf2_read_addr_index): Update.
3129 (follow_die_offset): Update.
3130 (dwarf2_fetch_die_loc_sect_off): Update.
3131 (dwarf2_fetch_constant_bytes): Update.
3132 (dwarf2_fetch_die_type_sect_off): Update.
3133 (follow_die_sig_1): Update.
3134 (load_full_type_unit): Add per_objfile parameter.
3135 (read_signatured_type): Likewise.
3136
313bad1b
SM
31372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3140 of objfile_name.
3141
c3699833
SM
31422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3143
3144 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3145 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3146 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3147 field.
3148 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3149 (create_cus_from_index): Update.
3150 (dwarf2_read_gdb_index): Update.
3151 (create_cus_from_debug_names): Update.
3152 (dwarf2_read_debug_names): Update.
3153 (get_abbrev_section_for_cu): Update.
3154 (create_all_comp_units): Update.
3155 (read_attribute_value): Update.
3156 (get_debug_line_section): Update.
3157 * dwarf2/index-cache.c (index_cache::store): Update.
3158 * dwarf2/index-write.c (save_gdb_index_command): Update.
3159 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3160
1859c670
SM
31612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3164 member.
3165 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3166 dwarf2_per_cu_data::per_bfd.
3167 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3168 (create_type_unit_group): Likewise.
3169 (queue_comp_unit): Remove reference to
3170 per_cu->dwarf2_per_objfile.
3171 (maybe_queue_comp_unit): Likewise.
3172 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3173 (create_cus_hash_table): Assign new field.
3174
5e22e966
SM
31752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * dwarf2/read.c: Replace
3178 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3179 dwarf2_cu->per_objfile throughout.
3180
97a1449a
SM
31812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3182
3183 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3184 parameter, don't use per_cu->dwarf2_per_objfile.
3185 (dw2_instantiate_symtab): Likewise.
3186 (dw2_find_last_source_symtab): Update.
3187 (dw2_map_expand_apply): Update.
3188 (dw2_lookup_symbol): Update.
3189 (dw2_expand_symtabs_for_function): Update.
3190 (dw2_expand_all_symtabs): Update.
3191 (dw2_expand_symtabs_with_fullname): Update.
3192 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3193 don't use per_cu->dwarf2_per_objfile.
3194 (dw2_expand_marked_cus): Update.
3195 (dw2_find_pc_sect_compunit_symtab): Update.
3196 (dw2_debug_names_lookup_symbol): Update.
3197 (dw2_debug_names_expand_symtabs_for_function): Update.
3198 (dw2_debug_names_map_matching_symbols): Update.
3199 (dwarf2_psymtab::expand_psymtab): Update.
3200
9e021579
SM
32012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3204 <per_objfile>: New member.
3205 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3206 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3207 call to dwarf2_cu.
3208 (cutu_reader::cutu_reader): Update.
3209 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3210
ae090bdb
SM
32112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3214 struct dwarf2_per_objfile.
3215 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3216 dwarf2_per_bfd.
3217 * dwarf2/read.c (set_die_type): Update.
3218 (get_die_type_at_offset): Update.
3219
af758d11
SM
32202020-05-27 Tom Tromey <tom@tromey.com>
3221 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3224 method.
3225 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3226 get_symtab, set_symtab>: New methods.
3227 <m_symtabs>: New field.
3228 (struct dwarf2_psymtab): Derive from partial_symtab.
3229 <readin_p, get_compunit_symtab>: Declare methods.
3230 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3231 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3232 New methods.
3233 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3234 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3235 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3236 (dw2_symtab_iter_next, dw2_print_stats)
3237 (dw2_expand_symtabs_with_fullname)
3238 (dw2_expand_symtabs_matching_one)
3239 (dw_expand_symtabs_matching_file_matcher)
3240 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3241 (dw2_debug_names_iterator::next)
3242 (dw2_debug_names_map_matching_symbols)
3243 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3244 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3245 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3246 New methods.
3247 (get_compunit_symtab, process_full_comp_unit)
3248 (process_full_type_unit): Update.
3249 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3250
5989a64e
SM
32512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3254 then introduce a new dwarf2_per_objfile type.
3255 <read_line_string>: Move to the new dwarf2_per_objfile type.
3256 <objfile>: Likewise.
3257 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3258 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3259 dwarf2_per_objfile->per_bfd.
3260 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3261 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3262 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3263 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3264 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3265 (dwarf2_per_objfile::locate_sections): Rename to...
3266 (dwarf2_per_bfd::locate_sections): ... this.
3267 (dwarf2_per_objfile::get_cutu): Rename to...
3268 (dwarf2_per_bfd::get_cutu): ... this.
3269 (dwarf2_per_objfile::get_cu): Rename to...
3270 (dwarf2_per_bfd::get_cu): ... this.
3271 (dwarf2_per_objfile::get_tu): Rename to...
3272 (dwarf2_per_bfd::get_tu): ... this.
3273 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3274 (dwarf2_per_bfd::allocate_per_cu): ... this.
3275 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3276 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3277 (get_gdb_index_contents_ftype): Change parameter from
3278 dwarf2_per_objfile to dwarf2_per_bfd.
3279 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3280 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3281
a50264ba
TT
32822020-05-27 Tom Tromey <tom@tromey.com>
3283 Simon Marchi <simon.marchi@efficios.com>
3284
3285 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3286 (allocate_piece_closure): Set "per_objfile" member.
3287 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3288 (locexpr_describe_location, loclist_describe_location): Use new
3289 member.
3290 * dwarf2/read.c (read_call_site_scope)
3291 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3292 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3293 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3294 handle_data_member_location): Set per_objfile member.
3295 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3296 member.
3297 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3298
d3473f0c
TT
32992020-05-27 Tom Tromey <tom@tromey.com>
3300
3301 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3302 allocate_signatured_type>: Declare new methods.
3303 <m_num_psymtabs>: New member.
3304 (struct dwarf2_per_cu_data) <index>: New member.
3305 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3306 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3307 (create_cu_from_index_list): Use allocate_per_cu.
3308 (create_signatured_type_table_from_index)
3309 (create_signatured_type_table_from_debug_names)
3310 (create_debug_type_hash_table, add_type_unit)
3311 (read_comp_units_from_section): Use allocate_signatured_type.
3312
5717c425
TT
33132020-05-27 Tom Tromey <tom@tromey.com>
3314
3315 * psymtab.c (partial_map_expand_apply)
3316 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3317 (psym_lookup_global_symbol_language)
3318 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3319 (psym_print_stats, psym_expand_symtabs_for_function)
3320 (psym_map_symbol_filenames, psym_map_matching_symbols)
3321 (psym_expand_symtabs_matching)
3322 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3323 (maintenance_check_psymtabs): Update.
3324 * psympriv.h (struct partial_symtab) <readin_p,
3325 get_compunit_symtab>: Add objfile parameter.
3326 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3327 Likewise.
3328 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3329 get_compunit_symtab>: Likewise.
3330 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3331
45940949
TT
33322020-05-27 Tom Tromey <tom@tromey.com>
3333
3334 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3335 member.
3336 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3337 (create_cu_from_index_list)
3338 (create_signatured_type_table_from_index)
3339 (create_signatured_type_table_from_debug_names)
3340 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3341 (dwarf2_create_include_psymtab)
3342 (create_debug_type_hash_table, add_type_unit)
3343 (create_type_unit_group, read_comp_units_from_section)
3344 (dwarf2_compute_name, create_cus_hash_table)
3345 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3346 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3347 obstack.
3348 (dw2_get_real_path): Likewise. Change argument to
3349 dwarf2_per_objfile.
3350
f8c6d152
LM
33512020-05-27 Luis Machado <luis.machado@linaro.org>
3352
3353 PR tdep/26000
3354 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3355 for ldrd (immediate).
3356
e98d2e6d
PW
33572020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3358
3359 * command.h: Add comment giving the name of class_tui.
3360 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3361 create the fake command for the help for class_tui.
3362
53a47a3e
TT
33632020-05-26 Tom Tromey <tromey@adacore.com>
3364
3365 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3366 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3367 (val_atr): New function.
3368 (value_val_atr): Use it.
3369 * ada-valprint.c (print_optional_low_bound): Change low bound
3370 handling for enums.
3371 (val_print_packed_array_elements): Don't call discrete_position.
3372 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3373 discrete_position for enum types.
3374 * language.c (default_print_array_index): Change type.
3375 * language.h (struct language_defn) <la_print_array_index>: Add
3376 index_type parameter, change type of index_value.
3377 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3378 (default_print_array_index): Update.
3379 * valprint.c (maybe_print_array_index): Don't call
3380 value_from_longest. Update.
3381 (value_print_array_elements): Don't call discrete_position.
3382
0bc2354b
TT
33832020-05-26 Tom Tromey <tromey@adacore.com>
3384
3385 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3386 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3387
1218a4bf
CDA
33882020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3389
3390 PR gdb/13519
3391 * avr-tdep.c (avr_integer_to_address): Return data or code
3392 address accordingly to the second 'type' argument of the
3393 function.
3394
92651b1d
MW
33952020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3396
3397 * infcmd.c, inferior.h: (construct_inferior_arguments):
3398 Moved function from here to gdbsupport/common-inferior.{h,cc}
3399
0a4f5f8c
TT
34002020-05-23 Tom Tromey <tom@tromey.com>
3401
3402 Revert commit eca1f90c:
3403 * NEWS: Remove entry for completion styling.
3404 * completer.c (_rl_completion_prefix_display_length): Move
3405 declaration later.
3406 (gdb_fnprint): Revert.
3407 (gdb_display_match_list_1): Likewise.
3408 * cli/cli-style.c (completion_prefix_style)
3409 (completion_difference_style, completion_suffix_style): Remove.
3410 (_initialize_cli_style): Revert.
3411 * cli/cli-style.h (completion_prefix_style)
3412 (completion_difference_style, completion_suffix_style): Don't
3413 declare.
3414
e08bd6c5
PA
34152020-05-24 Pedro Alves <palves@redhat.com>
3416
3417 * symtab.c (completion_list_add_name): Return boolean indication
3418 of whether the symbol matched.
3419 (completion_list_add_symbol): Don't try to remove C++ aliases if
3420 the symbol didn't match in the first place.
3421 * symtab.h (completion_list_add_name): Return bool.
3422
ceacbf6e
SM
34232020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3426 type::field.
3427
26f16254
JB
34282020-05-23 Joel Brobecker <brobecker@adacore.com>
3429
3430 GDB 9.2 released.
3431
eca1f90c
TT
34322020-05-23 Tom Tromey <tom@tromey.com>
3433
3434 * NEWS: Add entry for completion styling.
3435 * completer.c (_rl_completion_prefix_display_length): Move
3436 declaration earlier.
3437 (gdb_fnprint): Use completion_style.
3438 (gdb_display_match_list_1): Likewise.
3439 * cli/cli-style.c (completion_prefix_style)
3440 (completion_difference_style, completion_suffix_style): New
3441 globals.
3442 (_initialize_cli_style): Register new globals.
3443 * cli/cli-style.h (completion_prefix_style)
3444 (completion_difference_style, completion_suffix_style): Declare.
3445
51e2cfa2
PA
34462020-05-23 Pedro Alves <palves@redhat.com>
3447
3448 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3449 (parse_escape): Use ISDIGIT instead of isdigit.
3450 (puts_debug): Use gdb_isprint instead of isprint.
3451 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3452 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3453 ISSPACE instead of isspace.
3454 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3455 instead of isspace.
3456 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3457 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3458 instead of isxdigit and ISDIGIT instead of isdigit.
3459
80fc5e77
SM
34602020-05-22 Simon Marchi <simon.marchi@efficios.com>
3461
3462 * gdbtypes.h (struct type) <field>: New method.
3463 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3464 or type::field.
3465
3cabb6b0
SM
34662020-05-22 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3469 (TYPE_FIELDS): Use type::fields. Change all call sites that
3470 modify the propery to use type::set_fields instead.
3471
1f704f76
SM
34722020-05-22 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3475 type::num_fields instead.
3476
5e33d5f4
SM
34772020-05-22 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3480 methods.
3481 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3482 that modify the number of fields to use type::set_num_fields
3483 instead.
3484
9392ebb3
TT
34852020-05-22 Tom Tromey <tromey@adacore.com>
3486
3487 * compile/compile-object-load.h (munmap_list_free): Don't
3488 declare.
3489
7c13f4e8
AB
34902020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * annotate.c (annotate_source_line): Update return type, add call
3493 to update current symtab and line.
3494 * annotate.h (annotate_source_line): Update return type, and
3495 extend header comment.
3496 * source.c (info_line_command): Check annotation_level before
3497 calling annotate_source_line.
3498 * stack.c (print_frame_info): If calling annotate_source_line
3499 returns true, then don't print any other source line information.
3500
aa370940
SM
35012020-05-21 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3504
84d53fa9
SM
35052020-05-21 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * coffread.c (patch_type): Remove NULL check before xfree.
3508 * corefile.c (set_gnutarget): Likewise.
3509 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3510 * exec.c (build_section_table): Likewise.
3511 * remote.c (remote_target::pass_signals): Likewise.
3512 * utils.c (n_spaces): Likewise.
3513 * cli/cli-script.c (document_command): Likewise.
3514 * i386-windows-tdep.c (core_process_module_section): Likewise.
3515 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3516
9d428aae
SM
35172020-05-20 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * symfile.c (reread_symbols): Clear objfile's section_offsets
3520 vector and section indices, re-compute them by calling
3521 sym_offsets.
3522
250106a7
TT
35232020-05-20 Tom Tromey <tromey@adacore.com>
3524
3525 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3526 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3527
9a0bacfb
TV
35282020-05-20 Tom de Vries <tdevries@suse.de>
3529
3530 PR symtab/25833
3531 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3532
7b958a48
AM
35332020-05-20 Alan Modra <amodra@gmail.com>
3534
3535 PR 25993
3536 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3537 bfd_set_filename.
3538 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3539 passed to bfd_set_filename.
3540 * symfile-mem.c (add_vsyscall_page): Likewise for string
3541 passed to symbol_file_add_from_memory.
3542 (symbol_file_add_from_memory): Make name param a const char* and
3543 don't strdup.
3544
c7e97679
AM
35452020-05-20 Alan Modra <amodra@gmail.com>
3546
3547 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3548 rather than accessing bfd->filename directly.
3549 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3550 and use bfd_section_name.
3551 * dwarf2/frame.c (decode_frame_entry): Likewise.
3552 * exec.c (exec_set_section_address): Likewise.
3553 * solib-aix.c (solib_aix_bfd_open): Likewise.
3554 * stap-probe.c (get_stap_base_address): Likewise.
3555 * symfile.c (reread_symbols): Likewise.
3556
563c591b
TT
35572020-05-19 Tom Tromey <tromey@adacore.com>
3558
3559 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3560
f408d82c
SM
35612020-05-19 Simon Marchi <simon.marchi@efficios.com>
3562
3563 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3564
98c59b52
PA
35652020-05-19 Pedro Alves <palves@redhat.com>
3566
3567 * NEWS (set exec-file-mismatch): Adjust entry.
3568 * exec.c: Include "build-id.h".
3569 (validate_exec_file): Try to match build IDs instead of filenames.
3570 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3571 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3572 and pass down 'warn_if_slow'.
3573 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3574 gdb_bfd_open_closure to pass it down.
3575 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3576
4111f652
PA
35772020-05-19 Pedro Alves <palves@redhat.com>
3578
3579 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3580 * target.c (target_fileio_open_1): Rename to target_fileio_open
3581 and make extern. Use bool.
3582 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3583 (target_fileio_read_alloc_1): Adjust.
3584 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3585 (target_fileio_open_warn_if_slow): Delete declaration.
3586
ad80db5b
PA
35872020-05-19 Pedro Alves <palves@redhat.com>
3588
3589 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3590 Adjust all callers.
3591
1d6ce4d3
YS
35922020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3593
3594 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3595 whether disp is negative.
3596
9005fbbb
SM
35972020-05-19 Simon Marchi <simon.marchi@efficios.com>
3598
3599 * symfile.h (struct symfile_segment_data)
3600 <~symfile_segment_data>: Remove.
3601 <segment_info>: Change to std::vector.
3602 * symfile.c (default_symfile_segments): Update.
3603 * elfread.c (elf_symfile_segments): Update.
3604
68b888ff
SM
36052020-05-19 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3608 <segments>: New.
3609 <segment_bases, segment_sizes>: Remove.
3610 * symfile.c (default_symfile_segments): Update.
3611 * elfread.c (elf_symfile_segments): Update.
3612 * remote.c (remote_target::get_offsets): Update.
3613 * solib-target.c (solib_target_relocate_section_addresses):
3614 Update.
3615
62982abd
SM
36162020-05-19 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * symfile.h (struct symfile_segment_data): Initialize fields.
3619 <~symfile_segment_data>: Add.
3620 (symfile_segment_data_up): New.
3621 (struct sym_fns) <sym_segments>: Return a
3622 symfile_segment_data_up.
3623 (default_symfile_segments): Return a symfile_segment_data_up.
3624 (free_symfile_segment_data): Remove.
3625 (get_symfile_segment_data): Return a symfile_segment_data_up.
3626 * symfile.c (default_symfile_segments): Likewise.
3627 (get_symfile_segment_data): Likewise.
3628 (free_symfile_segment_data): Remove.
3629 (symfile_find_segment_sections): Update.
3630 * elfread.c (elf_symfile_segments): Return a
3631 symfile_segment_data_up.
3632 * remote.c (remote_target::get_offsets): Update.
3633 * solib-target.c (solib_target_relocate_section_addresses):
3634 Update.
3635 * symfile-debug.c (debug_sym_segments): Return a
3636 symfile_segment_data_up.
3637
7f204339
RO
36382020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3639
e52a0f1b
RO
3640 PR build/25981
3641 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3642 Hardcode register numbers.
3643
7f204339
RO
3644 PR build/25981
3645 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3646 procfs_find_LDT_entry): Remove.
3647 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3648 procfs_find_LDT_entry): Remove.
3649 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3650 Remove.
3651
7f32a4d5
PA
36522020-05-17 Pedro Alves <palves@redhat.com>
3653 Andrew Burgess <andrew.burgess@embecosm.com>
3654 Keno Fischer <keno@juliacomputing.com>
3655
3656 PR gdb/25741
3657 * breakpoint.c (build_target_condition_list): Update comments.
3658 (build_target_command_list): Update comments and skip matching
3659 locations.
3660 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3661 a separate function. Simplify "set breakpoint auto-hw off"
3662 handling.
3663 (insert_breakpoints): Update comment.
3664 (tracepoint_locations_match): New parameter. For breakpoints,
3665 compare location types too, if the caller wants to.
3666 (handle_automatic_hardware_breakpoints): New functions.
3667 (bp_location_is_less_than): Also sort by location type and
3668 hardware breakpoint length.
3669 (update_global_location_list): Handle "set breakpoint auto-hw on"
3670 here.
3671 (update_breakpoint_locations): Ask breakpoint_locations_match to
3672 ignore location types.
3673
7d93a1e0
SM
36742020-05-16 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3677 type::name instead.
3678
d0e39ea2
SM
36792020-05-16 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * gdbtypes.h (struct type) <name, set_name>: New methods.
3682 (TYPE_CODE): Use type::name. Change all call sites used to set
3683 the name to use type::set_name instead.
3684
2dab0c7b
TT
36852020-05-16 Tom Tromey <tom@tromey.com>
3686
3687 * top.c (quit_force): Update.
3688 * infrun.c (handle_no_resumed): Update.
3689 * top.h (all_uis): New function.
3690 (ALL_UIS): Remove.
3691
59f7bd8d
SM
36922020-05-16 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3695
9bf058f0
PA
36962020-05-16 Pedro Alves <palves@redhat.com>
3697
3698 * ia64-linux-nat.c
3699 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3700 Declare method.
3701 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3702
8f86ae1a
SM
37032020-05-15 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3706 (sparc64_adi_info): Likewise.
3707
d6bc0792
TT
37082020-05-15 Tom Tromey <tom@tromey.com>
3709
3710 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3711 block_objfile.
3712 (lookup_objfile_from_block): Remove.
3713 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3714 (lookup_global_symbol): Use block_objfile.
3715 * symtab.h (lookup_objfile_from_block): Don't declare.
3716 * printcmd.c (clear_dangling_display_expressions): Use
3717 block_objfile.
3718 * parse.c (operator_check_standard): Use block_objfile.
3719
8c14c3a3
TT
37202020-05-15 Tom Tromey <tom@tromey.com>
3721
3722 * language.c (language_alloc_type_symbol): Set
3723 SYMBOL_SECTION.
3724 * symtab.c (initialize_objfile_symbol): Remove.
3725 (allocate_symbol): Remove.
3726 (allocate_template_symbol): Remove.
3727 * dwarf2/read.c (fixup_go_packaging): Use "new".
3728 (new_symbol): Use "new".
3729 (read_variable): Don't call initialize_objfile_symbol. Use
3730 "new".
3731 (read_func_scope): Use "new".
3732 * xcoffread.c (process_xcoff_symbol): Don't call
3733 initialize_objfile_symbol.
3734 (SYMBOL_DUP): Remove.
3735 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3736 "new".
3737 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3738 (allocate_template_symbol): Don't declare.
3739 (struct symbol): Add copy constructor. Change defaults.
3740 * jit.c (finalize_symtab): Use "new".
3741 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3742 Use "new".
3743 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3744 (common_block_end): Use "new".
3745 * mdebugread.c (parse_symbol): Use "new".
3746 (new_symbol): Likewise.
3747
5b4a1a8d
PW
37482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3749
3750 * NEWS: Mention changes to help and apropos.
3751
57b4f16e
PW
37522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3753
3754 * command.h (enum command_class): Improve comments, document
3755 that class_alias is for user-defined aliases, give the class
3756 name for each class, remove unused class_xdb.
3757 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3758 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3759 by a precise class.
3760 * infcmd.c (_initialize_infcmd): Likewise.
3761 * reverse.c (_initialize_reverse): Likewise.
3762 * stack.c (_initialize_stack): Likewise.
3763 * symfile.c (_initialize_symfile): Likewise.
3764 * tracepoint.c (_initialize_tracepoint): Likewise.
3765
7c05caf7
PW
37662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3767
3768 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3769 when their aliased command is traversed.
3770 (help_cmd): Add fput_command_names_styled call to
3771 output command name and aliases when command has an alias.
3772
3b3aaacb
PW
37732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3774
3775 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3776 * cli/cli-decode.c (help_cmd_list): Declare as static,
3777 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3778 a command together with the command.
3779 (fput_command_name_styled, fput_command_names_styled): New functions.
3780 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3781 fput_command_name_styled.
3782 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3783 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3784
7aa1b46f
PW
37852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3786
3787 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3788 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3789 * command.h (cmd_show_list): Likewise.
3790 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3791 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3792
89bcba74
PW
37932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3794
3795 * unittests/command-def-selftests.c (traverse_command_structure):
3796 Verify all commands of a list have the same prefix command and
3797 that only the top cmdlist commands have a null prefix.
3798
3f4d92eb
PW
37992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3800
3801 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3802 as prefix, not one of its aliases.
3803 (set_cmd_prefix): Remove.
3804 (do_add_cmd): Centralize the setting of the prefix of a command, when
3805 command is defined after its full chain of prefix commands.
3806 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3807 (add_setshow_cmd_full): Likewise.
3808 (update_prefix_field_of_prefixed_commands): New function.
3809 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3810 update_prefix_field_of_prefixed_commands.
3811 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3812 addresses of remote_set_cmdlist and remote_show_cmdlist given
3813 as argument, not the address of an argument.
3814 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3815 * gdb/remote.c (_initialize_remote): Likewise.
3816
0605465f
PW
38172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3818
3819 * cli/cli-cmds.c (alias_command): Check for an existing alias
3820 using lookup_cmd_composition, as valid_command_p is too strict
3821 and forbids aliases that are the prefix of an existing alias
3822 or command.
3823 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3824 command is properly recognised as a valid command.
3825
58e6ac70
PW
38262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3827
3828 * unittests/help-doc-selftests.c: Rename to
3829 unittests/command-def-selftests.c
3830 * unittests/command-def-selftests.c (help_doc_tests): Update some
3831 comments.
3832 (command_structure_tests, traverse_command_structure): New namespace
3833 and function.
3834 (command_structure_invariants_tests): New function.
3835 (_initialize_command_def_selftests) Renamed from
3836 _initialize_help_doc_selftests, register command_structure_invariants
3837 selftest.
3838
a7b9ceb8
PW
38392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3840
3841 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3842 an alias of 'show'.
3843
b2188a06
JB
38442020-05-15 Joel Brobecker <brobecker@adacore.com>
3845
3846 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3847 ada_is_fixed_point_type. Update all callers.
3848 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3849 all callers.
3850 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3851 Update all callers.
3852 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3853 print_fixed_point_type. Update all callers.
3854 * ada-valprint.c (ada_value_print_num): Replace call to
3855 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3856
a51951c2
KB
38572020-05-14 Kevin Buettner <kevinb@redhat.com>
3858
3859 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3860 processors.
3861 (cpu_supports_bts): Add CV_AMD case.
3862
29d6859f
LM
38632020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3864 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * infrun.c (stop_all_threads): Collect multiple wait events at
3867 each pass.
3868
78134374
SM
38692020-05-14 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3872 type::code instead.
3873
67607e24
SM
38742020-05-14 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * gdbtypes.h (struct type) <code, set_code>: New methods.
3877 (TYPE_CODE): Use type::code. Change all call sites used to set
3878 the code to use type::set_code instead.
3879
a05575d3
TBA
38802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3881 Tom de Vries <tdevries@suse.de>
3882 Pedro Alves <palves@redhat.com>
3883
3884 PR threads/25478
3885 * infrun.c (stop_all_threads): Do NOT ignore
3886 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3887 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3888 received.
3889 (handle_no_resumed): Remove code handling a live inferior with no
3890 threads.
3891 * remote.c (has_single_non_exited_thread): New.
3892 (remote_target::update_thread_list): Do not delete a thread if is
3893 the last thread of the process.
3894 * thread.c (thread_select): Call delete_exited_threads instead of
3895 prune_threads.
3896
6ad82919
TBA
38972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3898
3899 * infrun.c (stop_all_threads): Enable/disable thread events of all
3900 targets. Move a debug message denoting the end of the function
3901 into the SCOPED_EXIT block.
3902
d890404b
TBA
39032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3904
3905 * process-stratum-target.h: Include <set>.
3906 (all_non_exited_process_targets, switch_to_target_no_thread): New
3907 function declarations.
3908 * process-stratum-target.c (all_non_exited_process_targets)
3909 (switch_to_target_no_thread): New function implementations.
3910
293b3ebc
TBA
39112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3912
3913 * infrun.c (handle_inferior_event): Extract out a piece of code
3914 into...
3915 (mark_non_executing_threads): ...this new function.
3916
7ca9b62a
TBA
39172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3918
3919 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3920 use.
3921
fc75c28b
TBA
39222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923
3924 * regcache.c (regcache_read_pc_protected): New function
3925 implementation that returns 0 if the PC cannot read via
3926 'regcache_read_pc'.
3927 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3928 instead of 'regcache_read_pc'.
3929 (keep_going_pass_signal): Ditto.
3930
a89febbd
TT
39312020-05-13 Tom Tromey <tromey@adacore.com>
3932
3933 * ada-lang.c (align_value): Remove.
3934 (ada_template_to_fixed_record_type_1): Use align_up.
3935
f7e23710
TBA
39362020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3937
3938 * async-event.c: Update the copyright year.
3939 * async-event.h: Update the copyright year.
3940
02ff80c2
SM
39412020-05-12 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * objfiles.h (is_addr_in_objfile,
3944 shared_objfile_contains_address_p): Return bool.
3945 * objfile.c (is_addr_in_objfile,
3946 shared_objfile_contains_address_p): Return bool.
3947
4fd6c7e8
TT
39482020-05-11 Tom Tromey <tromey@adacore.com>
3949
3950 * cli/cli-cmds.c (info_command): Restore.
3951 (_initialize_cli_cmds): Use add_prefix_command for "info".
3952 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3953
5eb68a39
TT
39542020-05-11 Tom Tromey <tromey@adacore.com>
3955
3956 * ada-lang.c (ada_value_primitive_field): Now public.
3957 * ada-lang.h (ada_value_primitive_field): Declare.
3958 * ada-valprint.c (print_field_values): Use
3959 ada_value_primitive_field for wrapper fields.
3960
7666722f
TV
39612020-05-11 Tom de Vries <tdevries@suse.de>
3962
3963 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3964 MODULE_DOMAIN.
3965
3ee6bb11
TV
39662020-05-11 Tom de Vries <tdevries@suse.de>
3967
3968 PR symtab/25941
3969 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3970 with length 0, if not gdb-produced.
3971 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3972
43434996
TV
39732020-05-09 Tom de Vries <tdevries@suse.de>
3974
3975 PR gdb/25955
3976 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3977 calculation.
3978
2f78cffc
TT
39792020-05-09 Tom Tromey <tom@tromey.com>
3980
3981 * top.c (server_command): Now bool.
3982 * top.h (server_command): Now bool.
3983
4f7bc5ed
TT
39842020-05-08 Tom Tromey <tromey@adacore.com>
3985
3986 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3987 already being processed.
3988
8be4b118
TT
39892020-05-08 Tom Tromey <tom@tromey.com>
3990
3991 * printcmd.c (struct display) <next>: Remove.
3992 <display>: New constructor.
3993 <exp_string>: Now a std::string.
3994 <enabled_p>: Now a bool.
3995 (display_number): Move definition earlier.
3996 (displays): Rename from display_chain. Now a std::vector.
3997 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3998 (display_command): Update.
3999 (do_one_display, disable_display)
4000 (enable_disable_display_command, do_enable_disable_display):
4001 Update.
4002 (free_display): Remove.
4003 (clear_displays): Rewrite.
4004 (delete_display): Update.
4005 (map_display_numbers): Use function_view. Remove "data"
4006 parameter. Update.
4007 (do_delete_display): Remove.
4008 (undisplay_command): Update.
4009 (do_one_display, do_displays, disable_display)
4010 (info_display_command): Update.
4011 (do_enable_disable_display): Remove.
4012 (enable_disable_display_command)
4013 (clear_dangling_display_expressions): Update.
4014
94c93c35
TT
40152020-05-08 Tom Tromey <tom@tromey.com>
4016
4017 * symtab.c (set_symbol_cache_size)
4018 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4019 (maintenance_print_symbol_cache_statistics): Update.
4020 * symmisc.c (print_symbol_bcache_statistics)
4021 (print_objfile_statistics, maintenance_print_objfiles)
4022 (maintenance_info_symtabs, maintenance_check_symtabs)
4023 (maintenance_expand_symtabs, maintenance_info_line_tables):
4024 Update.
4025 * symfile-debug.c (set_debug_symfile): Update.
4026 * source.c (forget_cached_source_info): Update.
4027 * python/python.c (gdbpy_progspaces): Update.
4028 * psymtab.c (maintenance_info_psymtabs): Update.
4029 * probe.c (parse_probes): Update.
4030 * linespec.c (iterate_over_all_matching_symtabs)
4031 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4032 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4033 * exec.c (exec_target::close): Update.
4034 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4035 * breakpoint.c (print_one_breakpoint_location)
4036 (create_longjmp_master_breakpoint)
4037 (create_std_terminate_master_breakpoint): Update.
4038 * progspace.c (program_spaces): Now a std::vector.
4039 (maybe_new_address_space): Update.
4040 (add_program_space): Remove.
4041 (program_space::program_space): Update.
4042 (remove_program_space): Update.
4043 (number_of_program_spaces): Remove.
4044 (print_program_space, update_address_spaces): Update.
4045 * progspace.h (program_spaces): Change type.
4046 (ALL_PSPACES): Remove.
4047 (number_of_program_spaces): Don't declare.
4048 (struct program_space) <next>: Remove.
4049
a1fd1ac9
TT
40502020-05-08 Tom Tromey <tom@tromey.com>
4051
4052 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4053 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4054 (enable_break): Update.
4055 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4056 (frv_fdpic_find_canonical_descriptor): Update.
4057 (frv_fetch_objfile_link_map): Update.
4058 * progspace.c (program_space::free_all_objfiles): Update.
4059 (program_space::solibs): New method.
4060 * progspace.h (struct program_space) <solibs>: New method.
4061 * solist.h (master_so_list): Don't declare.
4062 (ALL_SO_LIBS): Remove.
4063 * solib.h (so_list_head): Remove.
4064 (update_solib_list): Update comment.
4065 * solib.c (master_so_list): Remove.
4066 (solib_used, update_solib_list, solib_add)
4067 (info_sharedlibrary_command, clear_solib)
4068 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4069
38eae084
TT
40702020-05-08 Tom Tromey <tom@tromey.com>
4071
4072 * extension.c (extension_languages): Now a std::array.
4073 (ALL_EXTENSION_LANGUAGES): Remove.
4074 (get_ext_lang_defn, get_ext_lang_of_file)
4075 (eval_ext_lang_from_control_command): Update.
4076 (finish_ext_lang_initialization)
4077 (auto_load_ext_lang_scripts_for_objfile)
4078 (ext_lang_type_printers::ext_lang_type_printers)
4079 (apply_ext_lang_type_printers)
4080 (ext_lang_type_printers::~ext_lang_type_printers)
4081 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4082 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4083 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4084 (get_matching_xmethod_workers, ext_lang_colorize)
4085 (ext_lang_before_prompt): Update.
4086 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4087
596dc4ad
TT
40882020-05-08 Tom Tromey <tom@tromey.com>
4089
4090 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4091 overload.
4092 <swap_string, m_string>: Remove.
4093 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4094 Update.
4095 * stabsread.c (define_symbol, read_type): Update.
4096 * linespec.c (find_linespec_symbols): Update.
4097 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4098 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4099 * dbxread.c (read_dbx_symtab): Update.
4100 * cp-support.h (cp_canonicalize_string_full)
4101 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4102 Return unique_xmalloc_ptr.
4103 * cp-support.c (inspect_type): Update.
4104 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4105 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4106 Likewise.
4107 * c-typeprint.c (print_name_maybe_canonical): Update.
4108 * break-catch-throw.c (check_status_exception_catchpoint):
4109 Update.
4110
bf4cb9be
TV
41112020-05-08 Tom de Vries <tdevries@suse.de>
4112
4113 * infrun.c (follow_fork): Copy current_line and current_symtab to
4114 child thread.
4115
a1b68f28
SM
41162020-05-07 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * async-event.c (struct async_signal_handler, struct
4119 async_event_handler): Reformat, remove typedef.
4120
98d48915
SM
41212020-05-07 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4124 access thistype->main_type->dyn_prop_list directly.
4125
7aa91313
SM
41262020-05-07 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4129 (remove_dyn_prop): Remove. Update all users to use
4130 type::remove_dyn_prop.
4131 * gdbtypes.c (remove_dyn_prop): Rename to...
4132 (type::remove_dyn_prop): ... this.
4133
5c54719c
SM
41342020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4135
4136 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4137 (add_dyn_prop): Remove. Update all users to use
4138 type::add_dyn_prop.
4139 * gdbtypes.c (add_dyn_prop): Rename to...
4140 (type::add_dyn_prop): ... this.
4141
24e99c6c
SM
41422020-05-07 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4145 (get_dyn_prop): Remove. Update all users to use
4146 type::dyn_prop.
4147 * gdbtypes.c (get_dyn_prop): Rename to...
4148 (type::dyn_prop): ... this.
4149
0d4bf016
SM
41502020-05-06 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4153
ac4a4f1c
SM
41542020-05-06 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4157 instruction, skip it if it's there.
4158
a3bbacc1
SM
41592020-05-05 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4162
c3236f84
SM
41632020-05-04 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4166 * gdbtypes.c (recursive_dump_type): Remove use of
4167 TYPE_INCOMPLETE.
4168
3b6acaee
TT
41692020-05-03 Tom Tromey <tom@tromey.com>
4170
4171 * breakpoint.c (catch_command, tcatch_command): Remove.
4172 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4173 add_show_prefix_cmd.
4174 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4175 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4176 Remove.
4177 (add_internal_problem_command): Use add_basic_prefix_cmd,
4178 add_show_prefix_cmd.
4179 * mips-tdep.c (set_mipsfpu_command): Remove.
4180 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4181 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4182 (_initialize_index_cache): Use add_basic_prefix_cmd.
4183 * memattr.c (dummy_cmd): Remove.
4184 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4185 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4186 (_initialize_tui_win): Use add_basic_prefix_cmd,
4187 add_show_prefix_cmd.
4188 * cli/cli-logging.c (set_logging_command): Remove.
4189 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4190 add_show_prefix_cmd.
4191 (show_logging_command): Remove.
4192 * target.c (target_command): Remove.
4193 (add_target): Use add_basic_prefix_cmd.
4194
a51119cd
HD
41952020-05-02 Hannes Domani <ssbssa@yahoo.de>
4196
4197 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4198
652fc23a 41992020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4200
652fc23a
PW
4201 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4202 info_command.
4203
117539e6
KR
42042020-04-30 Kamil Rytarowski <n54@gmx.com>
4205
4206 * nbsd-nat.c (nbsd_enable_proc_events)
4207 (nbsd_nat_target::post_startup_inferior): Add.
4208 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4209 (nbsd_nat_target::update_thread_list): Rewrite.
4210 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4211 "PTRACE_LWP_CREATE".
4212 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4213
102e38eb 42142020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4215
102e38eb
PW
4216 * stack.c (_initialize_stack): Remove duplicated creation
4217 of "frame" command and "f" alias.
4218
ee9d1e5f
HD
42192020-04-30 Hannes Domani <ssbssa@yahoo.de>
4220
4221 PR gdb/18706
4222 * gdbtypes.c (check_typedef): Calculate size of array of
4223 stubbed type.
4224
627c7fb8
HD
42252020-04-30 Hannes Domani <ssbssa@yahoo.de>
4226
4227 PR gdb/15559
4228 * i386-tdep.c (i386_push_dummy_call): Call
4229 i386_thiscall_push_dummy_call.
4230 (i386_thiscall_push_dummy_call): New function.
4231 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4232 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4233 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4234
ffc2844e
SM
42352020-04-29 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * gdbarch.sh (do_read): Add shellcheck disable directive for
4238 warning SC2162.
4239
1207375d
SM
42402020-04-29 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4243 "referenced but not assigned" warning.
4244
9fdb2916
SM
42452020-04-29 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * gdbarch.sh: Remove code that sets fallbackdefault.
4248
759cea5e
SM
42492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * gdbarch.sh: Use shell operators && and || instead of
4252 -a and -o.
4253
cb02ab24
SM
42542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * gdbarch.sh: Use $(...) instead of `...`.
4257
a6fc5ffc
SM
42582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbarch.sh: Use double quotes around variables.
4261
8d113d13
SM
42622020-04-29 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * gdbarch.sh: Use %s with printf, instead of variables in the
4265 format string.
4266
ed6acedd
TT
42672020-04-29 Tom Tromey <tromey@adacore.com>
4268
4269 PR ada/25875:
4270 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4271 type fields here.
4272 (read_enumeration_type): Call
4273 update_enumeration_type_from_children later. Update comments.
4274 (process_enumeration_scope): Don't create type fields.
4275
b68b1b58
KR
42762020-04-29 Kamil Rytarowski <n54@gmx.com>
4277
4278 * nbsd-tdep.c: Include "xml-syscall.h".
4279 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4280
f94b2e03
KR
42812020-04-29 Kamil Rytarowski <n54@gmx.com>
4282
4283 * nbsd-nat.c: Include "sys/wait.h".
4284 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4285 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4286 (nbsd_nat_target::remove_exec_catchpoint)
4287 (nbsd_nat_target::set_syscall_catchpoint): Add.
4288 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4289 (nbsd_nat_target::insert_exec_catchpoint)
4290 (nbsd_nat_target::remove_exec_catchpoint)
4291 (nbsd_nat_target::set_syscall_catchpoint): Add.
4292 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4293 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4294 `nbsd_get_syscall_number'.
4295
fc49bc72
TT
42962020-04-29 Tom Tromey <tom@tromey.com>
4297
4298 * stack.c (print_block_frame_labels): Remove.
4299
d642b692
HD
43002020-04-29 Hannes Domani <ssbssa@yahoo.de>
4301
4302 PR gdb/17320
4303 * ada-valprint.c (val_print_packed_array_elements): Move array
4304 end bracket to new line.
4305 (ada_val_print_string): Remove extra spaces before first array
4306 element.
4307 * c-valprint.c (c_value_print_array): Likewise.
4308 * m2-valprint.c (m2_print_array_contents): Likewise.
4309 (m2_value_print_inner): Likewise.
4310 * p-valprint.c (pascal_value_print_inner): Likewise.
4311 * valprint.c (generic_val_print_array): Likewise.
4312 (value_print_array_elements): Move first array element and array
4313 end bracket to new line.
4314
ea90f227
TV
43152020-04-29 Tom de Vries <tdevries@suse.de>
4316
4317 PR symtab/25889
4318 * linespec.c (find_method): Fix ix calculation.
4319
4498ef4f
KR
43202020-04-28 Kamil Rytarowski <n54@gmx.com>
4321
4322 * syscalls/update-netbsd.sh: New file.
4323 * syscalls/netbsd.xml: Regenerate.
4324 * data-directory/Makefile.in: Register `netbsd.xml' in
4325 `SYSCALLS_FILES'.
4326
a55e30b5
SM
43272020-04-28 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * syscalls/update-freebsd.sh: Add double quotes.
4330
2b2fbab8
TT
43312020-04-28 Tom Tromey <tom@tromey.com>
4332
4333 * NEWS: Update.
4334 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4335 (cmdpy_init): Allow class_tui.
4336
a65189c9
TV
43372020-04-28 Mark Williams <mark@myosotissp.com>
4338
4339 PR gdb/24480
4340 * dwarf2read.c: Add missing assingments to list_in_scope when
4341 start_symtab was already called.
4342
1b95cdb7
SM
43432020-04-28 Simon Marchi <simon.marchi@efficios.com>
4344
4345 PR gdb/25881
4346 * dwarf2/read.c (offset_map_type): Use
4347 gdb:hash_enum<sect_offset> as hash function.
4348
15cd93d0
TV
43492020-04-28 Tom de Vries <tdevries@suse.de>
4350
4351 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4352 with DW_AT_signature.
4353
1eb39914
SM
43542020-04-27 Simon Marchi <simon.marchi@efficios.com>
4355
4356 * configure.ac: Remove check for fs_base/gs_base in
4357 user_regs_struct.
4358 * configure: Re-generate.
4359 * config.in: Re-generate.
4360 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4361 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4362 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4363
991a3e2e
LM
43642020-04-27 Luis Machado <luis.machado@linaro.org>
4365
4366 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4367 problematic inline frame unwinding situation.
4368 * frame.c (frame_id_computed_p): New function.
4369 * frame.h (frame_id_computed_p): New prototype.
4370
361ba0e8
TT
43712020-04-26 Tom Tromey <tom@tromey.com>
4372
4373 * command.h (enum command_class) <class_pseudo>: Remove.
4374
bc3609fd
PW
43752020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4376
4377 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4378 and whitespace.
4379
b9771db7
KR
43802020-04-25 Kamil Rytarowski <n54@gmx.com>
4381
ec16513e
SM
4382 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4383 `PT_GET_PROCESS_STATE' block.
b9771db7 4384
7151c1af
TT
43852020-04-24 Tom Tromey <tom@tromey.com>
4386
4387 * symtab.h (symbol_get_demangled_name): Don't declare.
4388 * symtab.c (symbol_get_demangled_name): Remove.
4389 (general_symbol_info::natural_name)
4390 (general_symbol_info::demangled_name): Update.
4391
906bb4c5
TT
43922020-04-24 Tom Tromey <tom@tromey.com>
4393
4394 PR rust/25025:
4395 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4396
bcfe6157
TT
43972020-04-24 Tom Tromey <tom@tromey.com>
4398
4399 PR symtab/12707:
4400 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4401 exists.
4402 (new_symbol): Likewise.
4403 * compile/compile-object-load.c (get_out_value_type): Use
4404 symbol_matches_search_name.
4405
f049a313
TT
44062020-04-24 Tom Tromey <tom@tromey.com>
4407
4408 * dwarf2/read.c (add_partial_symbol): Do not call
4409 compute_and_set_names.
4410
76e288d1
TT
44112020-04-24 Tom Tromey <tom@tromey.com>
4412
4413 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4414 overload.
4415
2467f4f6
TT
44162020-04-24 Tom Tromey <tom@tromey.com>
4417
4418 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4419 (add_psymbol_to_list): New overload. Make old overload call new
4420 one.
4421 * psympriv.h (add_psymbol_to_list): New overload.
4422
e61108c9
TT
44232020-04-24 Tom Tromey <tom@tromey.com>
4424
4425 * dwarf2/read.c (partial_die_info::read) <case
4426 DW_AT_linkage_name>: Use value_as_string.
4427 (dwarf2_string_attr): Use value_as_string.
4428 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4429 method.
4430 * dwarf2/attribute.c (attribute::value_as_string): New method.
4431
8c87a452
TT
44322020-04-24 Tom Tromey <tom@tromey.com>
4433
4434 * symtab.c (general_symbol_info::natural_name)
4435 (general_symbol_info::demangled_name): Check for language_rust.
4436
787de330
TT
44372020-04-24 Tom Tromey <tom@tromey.com>
4438
4439 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4440 (dwarf2_physname): ... from here.
4441 (partial_die_info::read): Add Rust "{" hack.
4442
ff985671
TT
44432020-04-24 Tom Tromey <tom@tromey.com>
4444
4445 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4446 method.
4447 (symbol_set_demangled_name): Don't declare.
4448 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4449 symbol_set_demangled_name.
4450 (general_symbol_info::set_language)
4451 (general_symbol_info::compute_and_set_names): Update.
4452 * minsyms.c (minimal_symbol_reader::install): Update.
4453 * dwarf2/read.c (new_symbol): Update.
4454
1acda803
TT
44552020-04-24 Tom Tromey <tromey@adacore.com>
4456
4457 PR python/23662:
4458 * python/py-type.c (convert_field): Handle
4459 FIELD_LOC_KIND_DWARF_BLOCK.
4460 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4461 (typy_get_dynamic): Nw function.
4462 (type_object_getset): Add "dynamic".
4463 * NEWS: Add entry.
4464
d656f129
TT
44652020-04-24 Tom Tromey <tromey@adacore.com>
4466
4467 * ada-typeprint.c (print_choices, print_variant_part)
4468 (print_record_field_types_dynamic): New functions.
4469 (print_record_field_types): Use print_record_field_types_dynamic.
4470
7d79de9a
TT
44712020-04-24 Tom Tromey <tromey@adacore.com>
4472
4473 * dwarf2/read.c (handle_data_member_location): New overload.
4474 (dwarf2_add_field): Use it.
4475 (decode_locdesc): Add "computed" parameter. Update comment.
4476 * gdbtypes.c (is_dynamic_type_internal): Also look for
4477 FIELD_LOC_KIND_DWARF_BLOCK.
4478 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4479 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4480 virtual base classes.
4481 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4482 FIELD_LOC_KIND_DWARF_BLOCK.
4483
f8e89861
TT
44842020-04-24 Tom Tromey <tromey@adacore.com>
4485
4486 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4487 * gdbtypes.c (is_dynamic_type_internal): Check
4488 TYPE_HAS_DYNAMIC_LENGTH.
4489 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4490 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4491 New macros.
4492 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4493 constant.
4494
9c6a1327
TT
44952020-04-24 Tom Tromey <tromey@adacore.com>
4496
4497 * dwarf2/read.c (struct variant_field): Rewrite.
4498 (struct variant_part_builder): New.
4499 (struct nextfield): Remove "variant" field. Add "offset".
4500 (struct field_info): Add "current_variant_part" and
4501 "variant_parts".
4502 (alloc_discriminant_info): Remove.
4503 (alloc_rust_variant): New function.
4504 (quirk_rust_enum): Update.
4505 (dwarf2_add_field): Set "offset" member. Don't handle
4506 DW_TAG_variant_part.
4507 (offset_map_type): New typedef.
4508 (convert_variant_range, create_one_variant)
4509 (create_one_variant_part, create_variant_parts)
4510 (add_variant_property): New functions.
4511 (dwarf2_attach_fields_to_type): Call add_variant_property.
4512 (read_structure_type): Don't handle DW_TAG_variant_part.
4513 (handle_variant_part, handle_variant): New functions.
4514 (handle_struct_member_die): Use them.
4515 (process_structure_scope): Don't handle variant parts.
4516 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4517 (struct discriminant_info): Remove.
4518 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4519 (struct main_type) <flag_discriminated_union>: Remove.
4520 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4521 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4522 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4523 Update.
4524 * valops.c (value_union_variant): Remove.
4525 * value.h (value_union_variant): Don't declare.
4526
b249d2c2
TT
45272020-04-24 Tom Tromey <tromey@adacore.com>
4528
4529 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4530 (ada_value_primitive_packed_val): Update.
4531 * ada-valprint.c (ada_value_print_1): Update.
4532 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4533 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4534 just an address. Use evaluate_for_locexpr_baton.
4535 (dwarf2_evaluate_property): Update.
4536 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4537 array_view.
4538 * findvar.c (default_read_var_value): Update.
4539 * gdbtypes.c (compute_variant_fields_inner)
4540 (resolve_dynamic_type_internal): Update.
4541 (resolve_dynamic_type): Change type of valaddr parameter.
4542 * gdbtypes.h (resolve_dynamic_type): Update.
4543 * valarith.c (value_subscripted_rvalue): Update.
4544 * value.c (value_from_contents_and_address): Update.
4545
61122aa9
TT
45462020-04-24 Tom Tromey <tromey@adacore.com>
4547
4548 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4549 "push_initial_value" parameter.
4550 (dwarf2_evaluate_property): Likewise.
4551 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4552
ef83a141
TT
45532020-04-24 Tom Tromey <tromey@adacore.com>
4554
4555 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4556 (variant::matches, compute_variant_fields_recurse)
4557 (compute_variant_fields_inner, compute_variant_fields): New
4558 functions.
4559 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4560 Use resolved_type after type is made.
4561 (operator==): Add new cases.
4562 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4563 (struct discriminant_range, struct variant, struct variant_part):
4564 New.
4565 (union dynamic_prop_data) <variant_parts, original_type>: New
4566 members.
4567 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4568 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4569 constants.
4570 * value.c (unpack_bits_as_long): Now public.
4571 * value.h (unpack_bits_as_long): Declare.
4572
675127ec
TT
45732020-04-24 Tom Tromey <tromey@adacore.com>
4574
4575 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4576 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4577
9852ceef
HD
45782020-04-24 Hannes Domani <ssbssa@yahoo.de>
4579
4580 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4581
7632c6ce
KR
45822020-04-24 Kamil Rytarowski <n54@gmx.com>
4583
4584 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4585 (remove_fork_catchpoint, post_startup_inferior)
4586 (post_attach): Move...
4587 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4588 (remove_fork_catchpoint, post_startup_inferior)
4589 (post_attach): ...here.
4590 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4591 (remove_fork_catchpoint, post_startup_inferior)
4592 (post_attach): Move...
4593 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4594 (remove_fork_catchpoint, post_startup_inferior)
4595 (post_attach): ...here.
4596
7be2bb4f
TT
45972020-04-24 Tom Tromey <tromey@adacore.com>
4598
4599 * nat/windows-nat.h (struct windows_thread_info)
4600 <pc_adjusted>: New member.
4601 * windows-nat.c (windows_fetch_one_register): Check
4602 pc_adjusted.
4603 (windows_nat_target::get_windows_debug_event)
4604 (windows_nat_target::wait): Set pc_adjusted.
4605
f80cb3b4
TV
46062020-04-24 Tom de Vries <tdevries@suse.de>
4607
4608 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4609 Run gdb-add-index inside temp dir.
4610
29514b87
TT
46112020-04-23 Tom Tromey <tromey@adacore.com>
4612
4613 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4614 in loop.
4615
5939967b
LM
46162020-04-23 Luis Machado <luis.machado@linaro.org>
4617
4618 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4619 get_frame_register instead of gdbarch_unwind_pc.
4620
70bc38f5
TV
46212020-04-23 Tom de Vries <tdevries@suse.de>
4622
4623 * symtab.c (lookup_global_symbol): Prefer def over decl.
4624
de82891c
TV
46252020-04-23 Tom de Vries <tdevries@suse.de>
4626
4627 PR symtab/25807
4628 * block.c (best_symbol, better_symbol): Promote to external.
4629 * block.h (best_symbol, better_symbol): Declare.
4630 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4631 decl.
4632
ecc6c606
TT
46332020-04-23 Tom Tromey <tromey@adacore.com>
4634
4635 PR ada/25837:
4636 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4637 "const char *", not a "const std::string &".
4638 <name_and_matcher::operator==>: Update.
4639 * unittests/lookup_name_info-selftests.c: Change type of
4640 "result".
4641
740480b8
TT
46422020-04-23 Tom Tromey <tom@tromey.com>
4643
4644 * inferior.h (iterate_over_inferiors): Don't declare.
4645 * inferior.c (iterate_over_inferiors): Remove.
4646 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4647 Remove.
4648 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4649 use iterate_over_inferiors.
4650 (darwin_resume_inferior_it)
4651 (struct resume_inferior_threads_param)
4652 (darwin_resume_inferior_threads_it): Remove.
4653 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4654
ae3ab1f0
TV
46552020-04-23 Tom de Vries <tdevries@suse.de>
4656
4657 * blockframe.c (find_pc_partial_function): Use
4658 find_pc_sect_compunit_symtab rather than
4659 objfile->sf->qf->find_pc_sect_compunit_symtab.
4660
317d2668
TV
46612020-04-22 Tom de Vries <tdevries@suse.de>
4662
4663 PR symtab/25764
4664 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4665 in psymtabs.
4666
eea9e357
TV
46672020-04-22 Tom de Vries <tdevries@suse.de>
4668
4669 PR symtab/25801
4670 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4671 symtabs.
4672
3d5afab3
TV
46732020-04-22 Tom de Vries <tdevries@suse.de>
4674
4675 PR symtab/25700
4676 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4677 CU if already created.
4678
d43b7a2d
TBA
46792020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4680
4681 * infrun.c (displaced_step_fixup): Switch to the event_thread
4682 before calling displaced_step_restore, not after.
4683
d89edf9b
MM
46842020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4685
4686 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4687 its inferior is not recorded by us.
4688 (record_btrace_target_open): Replace call to
4689 all_non_exited_threads () with call to current_inferior
4690 ()->non_exited_threads ().
4691 (record_btrace_target::stop_recording): Likewise.
4692 (record_btrace_target::close): Likewise.
4693 (record_btrace_target::wait): Likewise.
4694 (record_btrace_target::record_stop_replaying): Likewise.
4695
5897fd49
MM
46962020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4697
4698 * btrace.c (btrace_enable): Throw an error on double enables and
4699 when enabling recording fails.
4700 (btrace_disable): Throw an error if the thread is not recorded.
4701
1a476b6d
MM
47022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4703
4704 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4705 request if we do not have a thread_info.
4706
4778a5f8
TV
47072020-04-21 Tom de Vries <tdevries@suse.de>
4708
4709 PR gdb/25471
4710 * thread.c
4711 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4712 exception in get_frame_id.
4713
0fa7617d
TT
47142020-04-20 Tom Tromey <tromey@adacore.com>
4715
4716 * python/python.c (struct gdbpy_event): Mark move constructor as
4717 noexcept.
4718 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4719 constructor as noexcept.
4720 * completer.h (struct completion_result): Mark move constructor as
4721 noexcept.
4722 * completer.c (completion_result::completion_result): Use
4723 initialization style. Don't call reset_match_list.
4724
ad23bda0
MS
47252020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4726
4727 * MAINTAINERS (Write After Approval): Add myself.
4728
45e1f031
TT
47292020-04-18 Tom Tromey <tom@tromey.com>
4730
4731 * windows-tdep.c (init_w32_command_list)
4732 (w32_prefix_command_valid): Restore.
4733 (_initialize_windows_tdep): Call init_w32_command_list.
4734
08feed99
TT
47352020-04-18 Tom Tromey <tom@tromey.com>
4736
4737 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4738 * value.c (value_fn_field): Update.
4739 * valops.c (find_function_in_inferior)
4740 (value_allocate_space_in_inferior): Update.
4741 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4742 Update.
4743 * tui/tui-source.c (tui_source_window::set_contents): Update.
4744 * symtab.c (lookup_global_or_static_symbol)
4745 (find_function_start_sal_1, skip_prologue_sal)
4746 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4747 * symmisc.c (dump_msymbols, dump_symtab_1)
4748 (maintenance_print_one_line_table): Update.
4749 * symfile.c (init_entry_point_info, section_is_mapped)
4750 (list_overlays_command, simple_read_overlay_table)
4751 (simple_overlay_update_1): Update.
4752 * stap-probe.c (handle_stap_probe): Update.
4753 * stabsread.c (dbx_init_float_type, define_symbol)
4754 (read_one_struct_field, read_enum_type, read_range_type): Update.
4755 * source.c (info_line_command): Update.
4756 * python/python.c (gdbpy_source_objfile_script)
4757 (gdbpy_execute_objfile_script): Update.
4758 * python/py-type.c (save_objfile_types): Update.
4759 * python/py-objfile.c (py_free_objfile): Update.
4760 * python/py-inferior.c (python_new_objfile): Update.
4761 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4762 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4763 (maintenance_check_psymtabs): Update.
4764 * printcmd.c (info_address_command): Update.
4765 * objfiles.h (struct objfile) <arch>: New method, from
4766 get_objfile_arch.
4767 (get_objfile_arch): Don't declare.
4768 * objfiles.c (get_objfile_arch): Remove.
4769 (filter_overlapping_sections): Update.
4770 * minsyms.c (msymbol_is_function): Update.
4771 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4772 (output_nondebug_symbol): Update.
4773 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4774 (mdebug_expand_psymtab): Update.
4775 * machoread.c (macho_add_oso_symfile): Update.
4776 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4777 Update.
4778 * linux-fork.c (checkpoint_command): Update.
4779 * linespec.c (convert_linespec_to_sals): Update.
4780 * jit.c (finalize_symtab): Update.
4781 * infrun.c (insert_exception_resume_from_probe): Update.
4782 * ia64-tdep.c (ia64_find_unwind_table): Update.
4783 * hppa-tdep.c (internalize_unwinds): Update.
4784 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4785 Update.
4786 * gcore.c (call_target_sbrk): Update.
4787 * elfread.c (record_minimal_symbol, elf_symtab_read)
4788 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4789 (elf_gnu_ifunc_resolve_by_got): Update.
4790 * dwarf2/read.c (create_addrmap_from_index)
4791 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4792 (read_debug_names_from_section)
4793 (process_psymtab_comp_unit_reader, add_partial_symbol)
4794 (add_partial_subprogram, process_full_comp_unit)
4795 (read_file_scope, read_func_scope, read_lexical_block_scope)
4796 (read_call_site_scope, dwarf2_ranges_read)
4797 (dwarf2_record_block_ranges, dwarf2_add_field)
4798 (mark_common_block_symbol_computed, read_tag_pointer_type)
4799 (read_tag_string_type, dwarf2_init_float_type)
4800 (dwarf2_init_complex_target_type, read_base_type)
4801 (partial_die_info::read, partial_die_info::read)
4802 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4803 (dwarf2_fetch_die_loc_sect_off): Update.
4804 * dwarf2/loc.c (dwarf2_find_location_expression)
4805 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4806 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4807 (dwarf2_loc_desc_get_symbol_read_needs)
4808 (locexpr_describe_location_piece, locexpr_describe_location_1)
4809 (loclist_describe_location): Update.
4810 * dwarf2/index-write.c (write_debug_names): Update.
4811 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4812 * dtrace-probe.c (dtrace_process_dof): Update.
4813 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4814 (process_one_symbol): Update.
4815 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4816 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4817 (coff_read_enum_type): Update.
4818 * cli/cli-cmds.c (edit_command, list_command): Update.
4819 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4820 * breakpoint.c (create_overlay_event_breakpoint)
4821 (create_longjmp_master_breakpoint)
4822 (create_std_terminate_master_breakpoint)
4823 (create_exception_master_breakpoint, get_sal_arch): Update.
4824 * block.c (block_gdbarch): Update.
4825 * annotate.c (annotate_source_line): Update.
4826
0743fc83
TT
48272020-04-17 Tom Tromey <tromey@adacore.com>
4828
4829 * auto-load.c (show_auto_load_cmd): Remove.
4830 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4831 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4832 (maintenance_print_arc_command): Remove.
4833 * tui/tui-win.c (tui_command): Remove.
4834 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4835 * tui/tui-layout.c (tui_layout_command): Remove.
4836 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4837 * python/python.c (user_set_python, user_show_python): Remove.
4838 (_initialize_python): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4841 (install_gdb_commands): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 (info_guile_command): Remove.
4844 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4845 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4846 add_show_prefix_cmd.
4847 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4848 Remove do_set and do_show parameters.
4849 * cli/cli-style.c (set_style, show_style): Remove.
4850 (_initialize_cli_style): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 (cli_style_option::add_setshow_commands): Remove do_set and
4853 do_show parameters.
4854 (cli_style_option::add_setshow_commands): Use
4855 add_basic_prefix_cmd, add_show_prefix_cmd.
4856 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4857 (set_style_name): Remove.
4858 * cli/cli-dump.c (dump_command, append_command): Remove.
4859 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4860 (tekhex_dump_command, binary_dump_command)
4861 (binary_append_command): Remove.
4862 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4863 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4864 (init_w32_command_list): Remove; move into ...
4865 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4866 * valprint.c (set_print, show_print, set_print_raw)
4867 (show_print_raw): Remove.
4868 (_initialize_valprint): Use add_basic_prefix_cmd,
4869 add_show_prefix_cmd.
4870 * typeprint.c (set_print_type, show_print_type): Remove.
4871 (_initialize_typeprint): Use add_basic_prefix_cmd,
4872 add_show_prefix_cmd.
4873 * record.c (set_record_command, show_record_command): Remove.
4874 (_initialize_record): Use add_basic_prefix_cmd,
4875 add_show_prefix_cmd.
4876 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4877 add_show_prefix_cmd.
4878 (info_command, show_command, set_debug, show_debug): Remove.
4879 * top.h (set_history, show_history): Don't declare.
4880 * top.c (set_history, show_history): Remove.
4881 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4882 (unset_tdesc_cmd): Remove.
4883 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4884 add_show_prefix_cmd.
4885 * symtab.c (info_module_command): Remove.
4886 (_initialize_symtab): Use add_basic_prefix_cmd.
4887 * symfile.c (overlay_command): Remove.
4888 (_initialize_symfile): Use add_basic_prefix_cmd.
4889 * sparc64-tdep.c (info_adi_command): Remove.
4890 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4891 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4892 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4893 add_show_prefix_cmd.
4894 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4895 (_initialize_serial): Use add_basic_prefix_cmd,
4896 add_show_prefix_cmd.
4897 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4898 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4899 add_show_prefix_cmd.
4900 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4901 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4902 add_show_prefix_cmd.
4903 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4904 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4905 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4906 add_show_prefix_cmd.
4907 * remote.c (remote_command, set_remote_cmd): Remove.
4908 (_initialize_remote): Use add_basic_prefix_cmd.
4909 * record-full.c (set_record_full_command)
4910 (show_record_full_command): Remove.
4911 (_initialize_record_full): Use add_basic_prefix_cmd,
4912 add_show_prefix_cmd.
4913 * record-btrace.c (cmd_set_record_btrace)
4914 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4915 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4916 (cmd_show_record_btrace_pt): Remove.
4917 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4918 add_show_prefix_cmd.
4919 * ravenscar-thread.c (set_ravenscar_command)
4920 (show_ravenscar_command): Remove.
4921 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4922 add_show_prefix_cmd.
4923 * mips-tdep.c (show_mips_command, set_mips_command)
4924 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4925 add_show_prefix_cmd.
4926 * maint.c (maintenance_command, maintenance_info_command)
4927 (maintenance_check_command, maintenance_print_command)
4928 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4929 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4930 add_show_prefix_cmd.
4931 (show_per_command_cmd): Remove.
4932 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4933 Remove.
4934 (maintenance_show_test_settings_cmd): Remove.
4935 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4936 add_show_prefix_cmd.
4937 * maint-test-options.c (maintenance_test_options_command):
4938 Remove.
4939 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4940 * macrocmd.c (macro_command): Remove
4941 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4942 * language.c (set_check, show_check): Remove.
4943 (_initialize_language): Use add_basic_prefix_cmd,
4944 add_show_prefix_cmd.
4945 * infcmd.c (unset_command): Remove.
4946 (_initialize_infcmd): Use add_basic_prefix_cmd.
4947 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4948 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4949 add_show_prefix_cmd.
4950 * go32-nat.c (go32_info_dos_command): Remove.
4951 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4952 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4953 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4954 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4955 (_initialize_frame): Use add_basic_prefix_cmd,
4956 add_show_prefix_cmd.
4957 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4958 (_initialize_dcache): Use add_basic_prefix_cmd,
4959 add_show_prefix_cmd.
4960 * cp-support.c (maint_cplus_command): Remove.
4961 (_initialize_cp_support): Use add_basic_prefix_cmd.
4962 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4963 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4964 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4965 add_basic_prefix_cmd, add_show_prefix_cmd.
4966 * breakpoint.c (save_command): Remove.
4967 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4968 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4969 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4970 add_show_prefix_cmd.
4971 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4972 (set_ada_command, show_ada_command): Remove.
4973 (_initialize_ada_language): Use add_basic_prefix_cmd,
4974 add_show_prefix_cmd.
4975 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4976
3557f442
KR
49772020-04-16 Kamil Rytarowski <n54@gmx.com>
4978
4979 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4980 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4981
16197208
SM
49822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4983
4984 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4985 warning messages.
4986
00ac85d3
SM
49872020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4990 import table is not at beginning of .idata section.
4991
381ce63f
PA
49922020-04-16 Pedro Alves <palves@redhat.com>
4993
4994 * inferior.c (delete_inferior): Use delete operator directly
4995 instead of delete_program_space.
4996 * progspace.c (add_program_space): New, factored out from
4997 program_space::program_space.
4998 (remove_program_space): New, factored out from
4999 delete_program_space.
5000 (program_space::program_space): Remove intro comment. Rewrite.
5001 (program_space::~program_space): Remove intro comment. Call
5002 remove_program_space.
5003 (delete_program_space): Delete.
5004 * progspace.h (program_space::program_space): Make explicit. Move
5005 intro comment here, adjusted.
5006 (program_space::~program_space): Move intro comment here,
5007 adjusted.
5008 (delete_program_space): Remove.
5009
a010605f
TT
50102020-04-16 Tom Tromey <tromey@adacore.com>
5011
5012 * windows-nat.c (windows_nat::handle_access_violation): New
5013 function.
5014 * nat/windows-nat.h (handle_access_violation): Declare.
5015 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5016 windows-nat.c. Call handle_access_violation.
5017
efba5c23
TV
50182020-04-16 Tom de Vries <tdevries@suse.de>
5019
5020 PR symtab/25791
5021 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5022 CUs without psymtab.
5023
97ed802d
KB
50242020-04-16 Kevin Buettner <kevinb@redhat.com>
5025
5026 * python/python.c (do_start_initialization): Don't call
5027 PyEval_InitThreads for Python 3.9 and beyond.
5028
c7d64809
KR
50292020-04-15 Kamil Rytarowski <n54@gmx.com>
5030
5031 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5032 thread functions.
5033 (obsd_nat_target::wait): Likewise.
5034
ce127a96
TT
50352020-04-15 Tom Tromey <tromey@adacore.com>
5036
5037 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5038 (DEBUG_EXCEPT): Use debug_printf.
5039
99f1bc6a
AB
50402020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * completer.c (class completion_tracker::completion_hash_entry)
5043 <hash_name>: New member function.
5044 (completion_tracker::discard_completions): New callback to hash a
5045 completion_hash_entry, pass this to htab_create_alloc.
5046
a0e9b532
JT
50472016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5048
5049 * windows-nat.c (windows_make_so): Warn rather than stopping with
5050 an error if realpath() fails.
5051
06ca5dd4
KR
50522020-04-14 Kamil Rytarowski <n54@gmx.com>
5053
5054 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5055 (nbsd_nat_target::info_proc): Add do_status.
5056
194d088f
TV
50572020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5058 Tom de Vries <tdevries@suse.de>
5059
5060 PR symtab/25718
5061 * psympriv.h (struct partial_symtab::read_symtab)
5062 (struct partial_symtab::expand_psymtab)
5063 (struct partial_symtab::read_dependencies): Update comments.
5064 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5065 read_symtab for includer.
5066 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5067 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5068 (struct dwarf2_include_psymtab::m_readin): Remove.
5069 (struct dwarf2_include_psymtab::includer): New member function.
5070 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5071
c1a66c06
TV
50722020-04-14 Tom de Vries <tdevries@suse.de>
5073
5074 PR symtab/25720
5075 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5076 with NULL symbol_matcher and lookup_name.
5077 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5078 and lookup_name.
5079 * dwarf2/read.c (dw2_expand_symtabs_matching)
5080 (dw2_debug_names_expand_symtabs_matching): Same.
5081 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5082 Make lookup_name a pointer. Update comment.
5083 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5084 lookup_name being a pointer.
5085 * symfile.c (expand_symtabs_matching): Same.
5086 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5087 * linespec.c (iterate_over_all_matching_symtabs): Same.
5088
400b5eca
TT
50892020-04-13 Tom Tromey <tom@tromey.com>
5090
5091 * run-on-main-thread.c: Update include.
5092 * unittests/main-thread-selftests.c: Update include.
5093 * tui/tui-win.c: Update include.
5094 * tui/tui-io.c: Update include.
5095 * tui/tui-interp.c: Update include.
5096 * tui/tui-hooks.c: Update include.
5097 * top.h: Update include.
5098 * top.c: Update include.
5099 * ser-base.c: Update include.
5100 * remote.c: Update include.
5101 * remote-notif.c: Update include.
5102 * remote-fileio.c: Update include.
5103 * record-full.c: Update include.
5104 * record-btrace.c: Update include.
5105 * python/python.c: Update include.
5106 * posix-hdep.c: Update include.
5107 * mingw-hdep.c: Update include.
5108 * mi/mi-main.c: Update include.
5109 * mi/mi-interp.c: Update include.
5110 * main.c: Update include.
5111 * linux-nat.c: Update include.
5112 * interps.c: Update include.
5113 * infrun.c: Update include.
5114 * inf-loop.c: Update include.
5115 * event-top.c: Update include.
5116 * event-loop.c: Move to ../gdbsupport/.
5117 * event-loop.h: Move to ../gdbsupport/.
5118 * async-event.h: Update include.
5119 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5120
93b54c8e
TT
51212020-04-13 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui-win.c: Include async-event.h.
5124 * remote.c: Include async-event.h.
5125 * remote-notif.c: Include async-event.h.
5126 * record-full.c: Include async-event.h.
5127 * record-btrace.c: Include async-event.h.
5128 * infrun.c: Include async-event.h.
5129 * event-top.c: Include async-event.h.
5130 * event-loop.h: Move some declarations to async-event.h.
5131 * event-loop.c: Don't include ser-event.h or top.h. Move some
5132 code to async-event.c.
5133 * async-event.h: New file.
5134 * async-event.c: New file.
5135 * Makefile.in (COMMON_SFILES): Add async-event.c.
5136 (HFILES_NO_SRCDIR): Add async-event.h.
5137
c1cd3163
TT
51382020-04-13 Tom Tromey <tom@tromey.com>
5139
5140 * utils.c (flush_streams): New function.
5141 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5142
29f2bf4f
TT
51432020-04-13 Tom Tromey <tom@tromey.com>
5144
5145 * event-loop.c (handle_file_event): Use warning, not
5146 printf_unfiltered.
5147
98029d02
TT
51482020-04-13 Tom Tromey <tom@tromey.com>
5149
5150 * event-loop.c: Include <chrono>.
5151
06cc9596
TT
51522020-04-13 Tom Tromey <tom@tromey.com>
5153
5154 * gdb_select.h: Move to ../gdbsupport/.
5155 * event-loop.c: Update include path.
5156 * top.c: Update include path.
5157 * ser-base.c: Update include path.
5158 * ui-file.c: Update include path.
5159 * ser-tcp.c: Update include path.
5160 * guile/scm-ports.c: Update include path.
5161 * posix-hdep.c: Update include path.
5162 * ser-unix.c: Update include path.
5163 * gdb_usleep.c: Update include path.
5164 * mingw-hdep.c: Update include path.
5165 * inflow.c: Update include path.
5166 * infrun.c: Update include path.
5167 * event-top.c: Update include path.
5168
8ae8e197
TT
51692020-04-13 Tom Tromey <tom@tromey.com>
5170
5171 * configure: Rebuild.
5172 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5173
58cf28e8
TT
51742020-04-13 Tom Tromey <tom@tromey.com>
5175
5176 * event-loop.h (start_event_loop): Don't declare.
5177 * event-loop.c (start_event_loop): Move...
5178 * main.c (start_event_loop): ...here. Now static.
5179
b7f999ae
SDJ
51802020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5181
5182 * MAINTAINERS: Update my email address.
5183
1085dfd4
KR
51842020-04-12 Kamil Rytarowski <n54@gmx.com>
5185
5186 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5187 IP_ALL.
5188
49d1d1f5
KR
51892020-04-12 Kamil Rytarowski <n54@gmx.com>
5190
5191 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5192 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5193
b4848d2a
KR
51942020-04-12 Kamil Rytarowski <n54@gmx.com>
5195
5196 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5197 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5198
51c133d5
KR
51992020-04-12 Kamil Rytarowski <n54@gmx.com>
5200
5201 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5202
54b8cbd0
KR
52032020-04-11 Kamil Rytarowski <n54@gmx.com>
5204
5205 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5206 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5207 (nbsd_nat_target::info_proc): New functions.
5208 * nbsd-nat.c (kinfo_get_vmmap): New function.
5209 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5210 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5211 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5212 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5213 functions.
5214 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5215 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5216 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5217 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5218 (KINFO_VME_FLAG_GROWS_DOWN): New.
5219
cf83625d
AS
52202020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5221
5222 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5223 bit shift.
5224
0c4311ab
TT
52252020-04-10 Tom Tromey <tromey@adacore.com>
5226
5227 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5228
3e65b3e9
TT
52292020-04-10 Tom Tromey <tromey@adacore.com>
5230
5231 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5232 separate debug files.
5233
13302e95
HD
52342020-04-10 Hannes Domani <ssbssa@yahoo.de>
5235
5236 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5237 Move to...
5238 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5239 ... here.
5240 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5241 Check for STATUS_WX86_BREAKPOINT.
5242 (windows_nat_target::wait): Same.
5243
bdfc1e8a
TV
52442020-04-10 Tom de Vries <tdevries@suse.de>
5245
5246 PR cli/25808
5247 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5248
f4460aec
SM
52492020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5252 (Write After Approval): Remove Tom de Vries.
5253
a25198bb
BE
52542020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5255
5256 revert partially:
5257 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5258
aac66a4c
SM
5259 * buildsym.c (record_line): Fix undefined behavior and preserve
5260 lines at eof.
a25198bb 5261
206c98a6
KR
52622020-04-09 Kamil Rytarowski <n54@gmx.com>
5263
5264 * auxv.h (svr4_auxv_parse): New.
5265 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5266 and generic_auxv_parse.
5267 (svr4_auxv_parse): Add.
5268 * obsd-tdep.c: Include "auxv.h".
5269 (obsd_auxv_parse): Remove.
5270 (obsd_init_abi): Remove comment.
5271 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5272 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5273 * nbsd-tdep.c: Include "auxv.h".
5274 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5275
71fbdbaf
TT
52762020-04-08 Tom Tromey <tromey@adacore.com>
5277
5278 * nat/windows-nat.h (last_wait_event): Don't declare.
5279 (wait_for_debug_event): Update comment.
5280 * nat/windows-nat.c (last_wait_event): Now static.
5281
2c1d95e8
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (wait_for_debug_event): Move to
5285 nat/windows-nat.c.
5286 * nat/windows-nat.h (wait_for_debug_event): Declare.
5287 * nat/windows-nat.c (wait_for_debug_event): Move from
5288 windows-nat.c. No longer static.
5289
d2977bc4
TT
52902020-04-08 Tom Tromey <tromey@adacore.com>
5291
5292 * windows-nat.c (get_windows_debug_event): Use
5293 fetch_pending_stop.
5294 * nat/windows-nat.h (fetch_pending_stop): Declare.
5295 * nat/windows-nat.c (fetch_pending_stop): New function.
5296
e758e19c
TT
52972020-04-08 Tom Tromey <tromey@adacore.com>
5298
5299 * windows-nat.c (windows_continue): Use matching_pending_stop and
5300 continue_last_debug_event.
5301 * nat/windows-nat.h (matching_pending_stop)
5302 (continue_last_debug_event): Declare.
5303 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5304 (matching_pending_stop, continue_last_debug_event): New
5305 functions.
5306
8d30e395
TT
53072020-04-08 Tom Tromey <tromey@adacore.com>
5308
5309 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5310 (handle_exception_result): Move to nat/windows-nat.h.
5311 (DEBUG_EXCEPTION_SIMPLE): Remove.
5312 (windows_nat::handle_ms_vc_exception): New function.
5313 (handle_exception): Move to nat/windows-nat.c.
5314 (get_windows_debug_event): Update.
5315 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5316 nat/windows-nat.c.
5317 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5318 (handle_exception_result): Move from windows-nat.c.
5319 (handle_exception): Declare.
5320 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5321 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5322 windows-nat.c.
5323
29de418d
TT
53242020-04-08 Tom Tromey <tromey@adacore.com>
5325
5326 * windows-nat.c (exception_count, event_count): Remove.
5327 (handle_exception, get_windows_debug_event)
5328 (do_initial_windows_stuff): Update.
5329
a816ba18
TT
53302020-04-08 Tom Tromey <tromey@adacore.com>
5331
5332 * windows-nat.c (windows_nat::handle_load_dll)
5333 (windows_nat::handle_unload_dll): Rename. No longer static.
5334 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5335 Declare.
5336
a00caa12
TT
53372020-04-08 Tom Tromey <tromey@adacore.com>
5338
5339 * complaints.h (stop_whining): Declare at top-level.
5340 (complaint): Don't declare stop_whining.
5341
d41b524f
TT
53422020-04-08 Tom Tromey <tromey@adacore.com>
5343
5344 * windows-nat.c (windows_nat::handle_output_debug_string):
5345 Rename. No longer static.
5346 * nat/windows-nat.h (handle_output_debug_string): Declare.
5347
3c76026d
TT
53482020-04-08 Tom Tromey <tromey@adacore.com>
5349
5350 * windows-nat.c (current_process_handle, current_process_id)
5351 (main_thread_id, last_sig, current_event, last_wait_event)
5352 (current_windows_thread, desired_stop_thread_id, pending_stops)
5353 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5354 (display_selectors, fake_create_process)
5355 (get_windows_debug_event): Update.
5356 * nat/windows-nat.h (current_process_handle, current_process_id)
5357 (main_thread_id, last_sig, current_event, last_wait_event)
5358 (current_windows_thread, desired_stop_thread_id, pending_stops)
5359 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5360 * nat/windows-nat.c (current_process_handle, current_process_id)
5361 (main_thread_id, last_sig, current_event, last_wait_event)
5362 (current_windows_thread, desired_stop_thread_id, pending_stops)
5363 (siginfo_er): New globals. Move from windows-nat.c.
5364
9d8679cc
TT
53652020-04-08 Tom Tromey <tromey@adacore.com>
5366
5367 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5368 (handle_load_dll): Update.
5369 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5370
28688adf
TT
53712020-04-08 Tom Tromey <tromey@adacore.com>
5372
5373 * windows-nat.c (enum thread_disposition_type): Move to
5374 nat/windows-nat.h.
5375 (windows_nat::thread_rec): Rename from thread_rec. No longer
5376 static.
5377 (windows_add_thread, windows_nat_target::fetch_registers)
5378 (windows_nat_target::store_registers, handle_exception)
5379 (windows_nat_target::resume, get_windows_debug_event)
5380 (windows_nat_target::get_tib_address)
5381 (windows_nat_target::thread_name)
5382 (windows_nat_target::thread_alive): Update.
5383 * nat/windows-nat.h (enum thread_disposition_type): Move from
5384 windows-nat.c.
5385 (thread_rec): Declare.
5386
4834dad0
TT
53872020-04-08 Tom Tromey <tromey@adacore.com>
5388
5389 * windows-nat.c: Add "using namespace".
5390 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5391 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5392
65bafd5b
TT
53932020-04-08 Tom Tromey <tromey@adacore.com>
5394
5395 * nat/windows-nat.h (struct windows_thread_info): Declare
5396 destructor.
5397 * nat/windows-nat.c (~windows_thread_info): New.
5398
0a4afda3
TT
53992020-04-08 Tom Tromey <tromey@adacore.com>
5400
5401 PR gdb/22992
5402 * windows-nat.c (current_event): Update comment.
5403 (last_wait_event, desired_stop_thread_id): New globals.
5404 (struct pending_stop): New.
5405 (pending_stops): New global.
5406 (windows_nat_target) <stopped_by_sw_breakpoint>
5407 <supports_stopped_by_sw_breakpoint>: New methods.
5408 (windows_fetch_one_register): Add assertions. Adjust PC.
5409 (windows_continue): Handle pending stops. Suspend other threads
5410 when stepping. Use last_wait_event
5411 (wait_for_debug_event): New function.
5412 (get_windows_debug_event): Use wait_for_debug_event. Handle
5413 pending stops. Queue spurious stops.
5414 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5415 (windows_nat_target::kill): Use wait_for_debug_event.
5416 * nat/windows-nat.h (struct windows_thread_info)
5417 <stopped_at_software_breakpoint>: New field.
5418 * nat/windows-nat.c (windows_thread_info::resume): Clear
5419 stopped_at_software_breakpoint.
5420
8e61ebec
TT
54212020-04-08 Tom Tromey <tromey@adacore.com>
5422
5423 * windows-nat.c (enum thread_disposition_type): New.
5424 (thread_rec): Replace "get_context" parameter with "disposition";
5425 change type.
5426 (windows_add_thread, windows_nat_target::fetch_registers)
5427 (windows_nat_target::store_registers, handle_exception)
5428 (windows_nat_target::resume, get_windows_debug_event)
5429 (windows_nat_target::get_tib_address)
5430 (windows_nat_target::thread_name)
5431 (windows_nat_target::thread_alive): Update.
5432
98a03287
TT
54332020-04-08 Tom Tromey <tromey@adacore.com>
5434
5435 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5436 (windows_continue): Use windows_continue::resume.
5437 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5438 resume>: Declare new methods.
5439 * nat/windows-nat.c: New file.
5440 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5441
7c7411bc
TT
54422020-04-08 Tom Tromey <tromey@adacore.com>
5443
5444 * windows-nat.c (windows_add_thread, windows_delete_thread)
5445 (windows_nat_target::fetch_registers)
5446 (windows_nat_target::store_registers, fake_create_process)
5447 (windows_nat_target::resume, windows_nat_target::resume)
5448 (get_windows_debug_event, windows_nat_target::wait)
5449 (windows_nat_target::pid_to_str)
5450 (windows_nat_target::get_tib_address)
5451 (windows_nat_target::get_ada_task_ptid)
5452 (windows_nat_target::thread_name)
5453 (windows_nat_target::thread_alive): Use lwp, not tid.
5454
2950fdf7
TT
54552020-04-08 Tom Tromey <tromey@adacore.com>
5456
5457 * windows-nat.c (handle_exception)
5458 (windows_nat_target::thread_name): Update.
5459 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5460 <name>: Now unique_xmalloc_ptr.
5461
62fe396b
TT
54622020-04-08 Tom Tromey <tromey@adacore.com>
5463
5464 * windows-nat.c (thread_rec)
5465 (windows_nat_target::fetch_registers): Update.
5466 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5467 Update comment.
5468 <debug_registers_changed, reload_context>: Now bool.
5469
e9534bd2
TT
54702020-04-08 Tom Tromey <tromey@adacore.com>
5471
5472 * windows-nat.c (windows_add_thread): Use new.
5473 (windows_init_thread_list, windows_delete_thread): Use delete.
5474 (get_windows_debug_event): Update.
5475 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5476 destructor, and initializers.
5477
ae1f8880
TT
54782020-04-08 Tom Tromey <tromey@adacore.com>
5479
5480 * windows-nat.c (struct windows_thread_info): Remove.
5481 * nat/windows-nat.h: New file.
5482
55a1e039
TT
54832020-04-08 Tom Tromey <tromey@adacore.com>
5484
5485 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5486 (thread_rec, windows_add_thread, windows_delete_thread)
5487 (windows_continue): Update.
5488
93366324
TT
54892020-04-08 Tom Tromey <tromey@adacore.com>
5490
5491 * windows-nat.c (struct windows_thread_info): Remove typedef.
5492 (thread_head): Remove.
5493 (thread_list): New global.
5494 (thread_rec, windows_add_thread, windows_init_thread_list)
5495 (windows_delete_thread, windows_continue): Update.
5496
0f2265e2
SM
54972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * windows-tdep.h (windows_init_abi): Add comment.
5500 (cygwin_init_abi): New declaration.
5501 * windows-tdep.c: Split signal enumeration in two, one for
5502 Windows and one for Cygwin.
5503 (windows_gdb_signal_to_target): Only deal with signal of the
5504 Windows OS ABI.
5505 (cygwin_gdb_signal_to_target): New function.
5506 (windows_init_abi): Rename to windows_init_abi_common, don't set
5507 gdb_signal_to_target gdbarch method. Add new new function with
5508 this name.
5509 (cygwin_init_abi): New function.
5510 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5511 comment. Don't call windows_init_abi.
5512 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5513 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5514 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5515 i386_windows_init_abi_common, don't call windows_init_abi. Add
5516 a new function of this name.
5517 (i386_cygwin_init_abi): New function.
5518 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5519 OS ABI Cygwin.
5520
3810f182
SM
55212020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5522
5523 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5524 parameter.c.
5525 (dwarf2_read_gdb_index): Update.
5526
063f8e80
KR
55272020-04-07 Kamil Rytarowski <n54@gmx.com>
5528
5529 * nbsd-tdep.c: Include "objfiles.h".
5530 (nbsd_skip_solib_resolver): New.
5531 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5532
85a9510c 55332020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5534
5535 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5536 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5537 with DW_LLE_base_addressx are being emitted in DWARFv5.
5538 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5539 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5540 unsigned integer.
5541
9fc3eaae 55422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5543
5544 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5545 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5546 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5547 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5548 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5549 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5550 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5551
5552
41144253 55532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5554
5555 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5556 (read_loclist_index): New function definition.
5557 (lookup_loclist_base): New function definition.
5558 (read_loclist_header): New function definition.
5559 (dwarf2_cu): Add loclist_base and loclist_header field.
5560 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5561 (read_full_die_1): Read the value of DW_AT_loclists_base.
5562 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5563 (read_attribute_value): Handle DW_FORM_loclistx.
5564 (skip_one_die): Handle DW_FORM_loclistx.
5565 (loclist_header): New structure declaration.
5566 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5567
9f4e76a4
SM
55682020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5569
5570 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5571 constructor. Remove `addr` parameter from other constructor and
5572 add `per_cu` parameter.
5573 * dwarf2/read.c (create_partial_symtab): Update.
5574
25c11aca
TV
55752020-04-07 Tom de Vries <tdevries@suse.de>
5576
5577 PR symtab/25796
5578 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5579 (partial_die_info::fixup): Inherit has_const_value.
5580
5707e24b
TV
55812020-04-07 Tom de Vries <tdevries@suse.de>
5582
5583 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5584 symbols without address.
5585
05f00e22
KR
55862020-04-06 Kamil Rytarowski <n54@gmx.com>
5587
5588 * nbsd-nat.h (struct thread_info): Add forward declaration.
5589 (nbsd_nat_target::thread_alive): Add.
5590 (nbsd_nat_target::thread_name): Likewise.
5591 (nbsd_nat_target::update_thread_list): Likewise.
5592 (update_thread_list::post_attach): Likewise.
5593 (post_attach::pid_to_str): Likewise.
5594 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5595 (nbsd_thread_lister): Add.
5596 (nbsd_nat_target::thread_alive): Likewise.
5597 (nbsd_nat_target::thread_name): Likewise.
5598 (nbsd_add_threads): Likewise.
5599 (update_thread_list::post_attach): Likewise.
5600 (nbsd_nat_target::update_thread_list): Likewise.
5601 (post_attach::pid_to_str): Likewise.
5602
6ee448cc
TT
56032020-04-06 Tom Tromey <tromey@adacore.com>
5604
5605 * ada-valprint.c (print_variant_part): Extract the variant field.
5606 (print_field_values): Use the field as the outer value when
5607 recursing.
5608
dea34e8c
TT
56092020-04-06 Tom Tromey <tromey@adacore.com>
5610
5611 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5612 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5613 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5614 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5615 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5616
93689ce9
TT
56172020-04-06 Tom Tromey <tromey@adacore.com>
5618
5619 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5620 TYPE_CODE_ERROR.
5621
79743962
KR
56222020-04-06 Kamil Rytarowski <n54@gmx.com>
5623
5624 * nbsd-tdep.c: Include "gdbarch.h".
5625 Define enum with NetBSD signal numbers.
5626 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5627 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5628 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5629 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5630 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5631 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5632 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5633 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5634 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5635 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5636 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5637 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5638
9e7c9a03
HD
56392020-04-03 Hannes Domani <ssbssa@yahoo.de>
5640
5641 PR gdb/25325
5642 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5643
d9e49b61
TT
56442020-04-03 Tom Tromey <tromey@adacore.com>
5645
5646 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5647 Read constant block.
5648
e0fc5c3f
SM
56492020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5652 (gdb_bfd_get_full_section_contents): New declaration.
5653 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5654 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5655 gdb_bfd_get_full_section_contents.
5656
e2ff18a0
SM
56572020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5658
5659 * exec.c (build_section_table): Replace internal_error with
5660 gdb_assert.
5661 (section_table_xfer_memory_partial): Likewise.
5662 * mdebugread.c (parse_partial_symbols): Likewise.
5663 * psymtab.c (lookup_partial_symbol): Likewise.
5664 * utils.c (wrap_here): Likewise.
5665
0830d301
TT
56662020-04-02 Tom Tromey <tromey@adacore.com>
5667
5668 * f-lang.c (build_fortran_types): Use arch_type to initialize
5669 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5670
e7da7f8f
TT
56712020-04-02 Tom Tromey <tromey@adacore.com>
5672
5673 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5674 of attributes.
5675
c90d28ac
AB
56762020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5677 Bernd Edlinger <bernd.edlinger@hotmail.de>
5678 Tom Tromey <tromey@adacore.com>
5679
5680 * buildsym.c (buildsym_compunit::record_line): Remove
5681 deduplication code.
5682
1aa98955
TV
56832020-04-02 Tom de Vries <tdevries@suse.de>
5684
5685 PR ada/24671
5686 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5687
d3214198
TV
56882020-04-02 Tom de Vries <tdevries@suse.de>
5689
5690 * dwarf2/read.c (dwarf2_gdb_index_functions,
5691 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5692 NULL.
5693 * psymtab.c (psym_lookup_global_symbol_language): New function.
5694 (psym_functions): Init psym_lookup_global_symbol_language with
5695 psym_lookup_global_symbol_language.
5696 * symfile-debug.c (debug_sym_quick_functions): Init
5697 lookup_global_symbol_language with NULL.
5698 * symfile.c (set_initial_language): Remove fixme comment.
5699 * symfile.h (struct quick_symbol_functions): Add
5700 lookup_global_symbol_language.
5701 * symtab.c (find_quick_global_symbol_language): New function.
5702 (find_main_name): Use find_quick_global_symbol_language.
5703
2836752f
SM
57042020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5705
5706 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5707
64dc2d4b
BE
57082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5709
5710 * buildsym.c (record_line): Fix undefined behavior and preserve
5711 lines at eof.
5712
bbe3dc41
BE
57132020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5714
5715 * buildsym.c (record_line): Fix the resizing condition.
5716
6b4a335b
TT
57172020-04-01 Tom Tromey <tom@tromey.com>
5718
5719 * value.h (value_literal_complex): Add comment.
5720 * valops.c (value_literal_complex): Refer to value.h.
5721
3638a098
TT
57222020-04-01 Tom Tromey <tom@tromey.com>
5723
5724 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5725 (scalar_type): New rule, from typebase.
5726 (typebase): Use scalar_type. Recognize complex types.
5727 (field_name): Handle FLOAT_KEYWORD.
5728 (ident_tokens): Add _Complex and __complex__.
5729
c34e8714
TT
57302020-04-01 Tom Tromey <tom@tromey.com>
5731
5732 PR exp/25299:
5733 * valarith.c (promotion_type, complex_binop): New functions.
5734 (scalar_binop): Handle complex numbers. Use promotion_type.
5735 (value_pos, value_neg, value_complement): Handle complex numbers.
5736
fa649bb7
TT
57372020-04-01 Tom Tromey <tom@tromey.com>
5738
5739 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5740 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5741 (parse_number): Handle complex numbers.
5742
981c08ce
TT
57432020-04-01 Tom Tromey <tom@tromey.com>
5744
5745 * c-valprint.c (c_decorations): Change complex suffix to "i".
5746
4c99290d
TT
57472020-04-01 Tom Tromey <tom@tromey.com>
5748
5749 * valprint.c (generic_value_print_complex): Use accessors.
5750 * value.h (value_real_part, value_imaginary_part): Declare.
5751 * valops.c (value_real_part, value_imaginary_part): New
5752 functions.
5753 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5754
5b930b45
TT
57552020-04-01 Tom Tromey <tom@tromey.com>
5756
5757 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5758 (read_range_type): Update.
5759 * mdebugread.c (basic_type): Update.
5760 * go-lang.c (build_go_types): Use init_complex_type.
5761 * gdbtypes.h (struct main_type) <complex_type>: New member.
5762 (init_complex_type): Update.
5763 (arch_complex_type): Don't declare.
5764 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5765 Make name if none given. Use alloc_type_copy. Look for cached
5766 complex type.
5767 (arch_complex_type): Remove.
5768 (gdbtypes_post_init): Use init_complex_type.
5769 * f-lang.c (build_fortran_types): Use init_complex_type.
5770 * dwarf2/read.c (read_base_type): Update.
5771 * d-lang.c (build_d_types): Use init_complex_type.
5772 * ctfread.c (read_base_type): Update.
5773
53cccef1
TBA
57742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5775
5776 * infrun.c (stop_all_threads): Update assertion, plus when
5777 stopping threads, take into account that we might be trying
5778 to stop an all-stop target.
5779 (stop_waiting): Call 'stop_all_threads' if there exists a
5780 non-stop target.
5781
a0714d30
TBA
57822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5783
5784 * target.h (exists_non_stop_target): New function declaration.
5785 * target.c (exists_non_stop_target): New function.
5786
60e22c1e
HD
57872020-04-01 Hannes Domani <ssbssa@yahoo.de>
5788
5789 PR gdb/24789
5790 * eval.c (is_integral_or_integral_reference): New function.
5791 (evaluate_subexp_standard): Allow integer references in
5792 pointer arithmetic.
5793
e139a727
TBA
57942020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5795
5796 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5797 check for no ptid in the stop reply when the target is non-stop.
5798
e0802d59
TT
57992020-04-01 Tom Tromey <tromey@adacore.com>
5800
5801 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5802 "name" parameter to rvalue reference. Initialize m_name_holder.
5803 <lookup_name_info>: New overloads.
5804 <name>: Return gdb::string_view.
5805 <c_str>: New method.
5806 <make_ignore_params>: Update.
5807 <search_name_hash>: Update.
5808 <language_lookup_name>: Return const char *.
5809 <m_name>: Change type.
5810 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5811 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5812 (lookup_name_info::match_any): Update.
5813 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5814 Update.
5815 * minsyms.c (linkage_name_str): Update.
5816 * language.c (default_symbol_name_matcher): Update.
5817 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5818 Update.
5819 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5820 (ada_lookup_name_info::ada_lookup_name_info): Update.
5821 (literal_symbol_name_matcher): Update.
5822
8c072cb6
TT
58232020-04-01 Tom Tromey <tromey@adacore.com>
5824
5825 * psymtab.c (psymtab_search_name): Remove function.
5826 (psym_lookup_symbol): Create search name and lookup name here.
5827 (lookup_partial_symbol): Remove "name" parameter; add
5828 lookup_name.
5829 (psym_expand_symtabs_for_function): Update.
5830
6f29a534
TT
58312020-03-31 Joel Jones <joelkevinjones@gmail.com>
5832
5833 PR tui/25597:
5834 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5835
af62665e
TT
58362020-03-31 Tom Tromey <tromey@adacore.com>
5837
5838 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5839 memcpy.
5840
d1a89da5
NC
58412020-03-30 Nelson Chu <nelson.chu@sifive.com>
5842
5843 * features/riscv/32bit-csr.xml: Regenerated.
5844 * features/riscv/64bit-csr.xml: Regenerated.
5845
d8af9068
TT
58462020-03-30 Tom Tromey <tromey@adacore.com>
5847
5848 * ada-valprint.c (print_variant_part): Update.
5849 * ada-lang.h (ada_which_variant_applies): Update.
5850 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5851 outer_valaddr parameters; replace with "outer" value parameter.
5852 (to_fixed_variant_branch_type): Update.
5853
227c0bf4
PFC
58542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5855
5856 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5857 <list>. Remove inclusion of observable.h.
5858 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5859 (struct arch_lwp_info): New struct.
5860 (class ppc_linux_dreg_interface): New class.
5861 (struct ppc_linux_process_info): New struct.
5862 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5863 <low_new_clone, low_forget_process, low_prepare_to_resume>
5864 <copy_thread_dreg_state, mark_thread_stale>
5865 <mark_debug_registers_changed, register_hw_breakpoint>
5866 <clear_hw_breakpoint, register_wp, clear_wp>
5867 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5868 <num_memory_accesses, get_trigger_type>
5869 <create_watchpoint_request, hwdebug_point_cmp>
5870 <init_arch_lwp_info, get_arch_lwp_info>
5871 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5872 methods.
5873 <struct ptid_hash>: New inner struct.
5874 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5875 members.
5876 (saved_dabr_value, hwdebug_info, max_slots_number)
5877 (struct hw_break_tuple, struct thread_points, ppc_threads)
5878 (have_ptrace_hwdebug_interface)
5879 (hwdebug_find_thread_points_by_tid)
5880 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5881 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5882 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5883 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5884 use m_dreg_interface.
5885 (hwdebug_point_cmp): Change to...
5886 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5887 reference arguments instead of pointers.
5888 (ppc_linux_nat_target::ranged_break_num_registers): Use
5889 m_dreg_interface.
5890 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5891 m_dreg_interface. Call register_hw_breakpoint.
5892 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5893 m_dreg_interface. Call clear_hw_breakpoint.
5894 (get_trigger_type): Change to...
5895 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5896 comment.
5897 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5898 use m_dreg_interface. Call register_hw_breakpoint.
5899 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5900 use m_dreg_interface. Call clear_hw_breakpoint.
5901 (can_use_watchpoint_cond_accel): Change to...
5902 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5903 method. Update comment, use m_dreg_interface and
5904 m_process_info.
5905 (calculate_dvc): Change to...
5906 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5907 m_dreg_interface.
5908 (num_memory_accesses): Change to...
5909 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5910 (check_condition): Change to...
5911 (ppc_linux_nat_target::check_condition): ...this method.
5912 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5913 comment, use m_dreg_interface.
5914 (create_watchpoint_request): Change to...
5915 (ppc_linux_nat_target::create_watchpoint_request): ...this
5916 method. Use m_dreg_interface.
5917 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5918 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5919 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5920 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5921 (ppc_linux_nat_target::low_forget_process)
5922 (ppc_linux_nat_target::low_new_fork)
5923 (ppc_linux_nat_target::low_new_clone)
5924 (ppc_linux_nat_target::low_delete_thread)
5925 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5926 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5927 only call mark_thread_stale.
5928 (ppc_linux_thread_exit): Remove.
5929 (ppc_linux_nat_target::stopped_data_address): Change to...
5930 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5931 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5932 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5933 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5934 comment. Call low_stopped_data_address.
5935 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5936 m_dreg_interface.
5937 (ppc_linux_nat_target::masked_watch_num_registers): Use
5938 m_dreg_interface.
5939 (ppc_linux_nat_target::copy_thread_dreg_state)
5940 (ppc_linux_nat_target::mark_thread_stale)
5941 (ppc_linux_nat_target::mark_debug_registers_changed)
5942 (ppc_linux_nat_target::register_hw_breakpoint)
5943 (ppc_linux_nat_target::clear_hw_breakpoint)
5944 (ppc_linux_nat_target::register_wp)
5945 (ppc_linux_nat_target::clear_wp)
5946 (ppc_linux_nat_target::init_arch_lwp_info)
5947 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5948 (_initialize_ppc_linux_nat): Remove observer callback.
5949
4db10d8f
PFC
59502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5951
5952 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5953 (ppc_linux_nat_target::auxv_parse)
5954 (ppc_linux_nat_target::read_description)
5955 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5956 Move up.
5957
1310c1b0
PFC
59582020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5959
5960 * linux-nat.h (low_new_clone): New method.
5961 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5962
69b037c3
SM
59632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5966 (dbx_expand_psymtab): ... this.
5967 (start_psymtab): Update.
5968 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5969 (mdebug_expand_psymtab): ... this.
5970 (parse_partial_symbols): Update.
5971 (new_psymtab): Update.
5972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5973 (xcoff_expand_psymtab): ... this.
5974 (xcoff_start_psymtab): Update.
5975
48993951
SM
59762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5979 <expand_dependencies>: ... this.
5980 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5981 (partial_symtab::expand_dependencies): ... this.
5982 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5983 Update.
5984 (dwarf2_psymtab::expand_psymtab): Update.
5985 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5986 * mdebugread.c (psymtab_to_symtab_1): Update.
5987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5988
3ad83046
SM
59892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * psympriv.h (discard_psymtab): Remove.
5992 * dbxread.c (dbx_end_psymtab): Update.
5993 * xcoffread.c (xcoff_end_psymtab): Update.
5994
4d1b9ab6
TT
59952020-03-28 Tom Tromey <tom@tromey.com>
5996
5997 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5998 comment.
5999
f1749218
TT
60002020-03-28 Tom Tromey <tom@tromey.com>
6001
6002 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6003
ebea7626
HD
60042020-03-27 Hannes Domani <ssbssa@yahoo.de>
6005
6006 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6007
a879b4d5
JB
60082020-03-26 John Baldwin <jhb@FreeBSD.org>
6009
6010 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6011
0826b30a
TT
60122020-03-26 Tom Tromey <tom@tromey.com>
6013
6014 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6015 (mark_common_block_symbol_computed, read_tag_string_type)
6016 (attr_to_dynamic_prop, read_subrange_type): Update.
6017 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6018 to be methods on struct attribute.
6019 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6020 (read_call_site_scope, partial_die_info::read)
6021 (partial_die_info::read, lookup_die_type, follow_die_ref):
6022 Update.
6023 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6024 from dwarf2_get_ref_die_offset.
6025 (attribute::constant_value): New method, from
6026 dwarf2_get_attr_constant_value.
6027 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6028 Declare method.
6029 <constant_value>: New method.
6030
2b2558bf
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6034 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6035 (dwarf_type_encoding_name): Move to stringify.c.
6036 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6037 * dwarf2/stringify.c: New file.
6038 * dwarf2/stringify.h: New file.
6039
eeb64781
TT
60402020-03-26 Tom Tromey <tom@tromey.com>
6041
6042 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6043 Rewrite.
6044
a39fdb41
TT
60452020-03-26 Tom Tromey <tom@tromey.com>
6046
6047 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6048 methods.
6049 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6050 (lookup_ranges_base): Likewise.
6051 (read_cutu_die_from_dwo, read_full_die_1): Update.
6052
436c571c
TT
60532020-03-26 Tom Tromey <tom@tromey.com>
6054
6055 * dwarf2/read.c (read_import_statement, read_file_scope)
6056 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6057 (read_lexical_block_scope, read_call_site_scope)
6058 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6059 (handle_struct_member_die, process_structure_scope)
6060 (update_enumeration_type_from_children)
6061 (process_enumeration_scope, read_array_type, read_common_block)
6062 (read_namespace, read_module, read_subroutine_type): Update.
6063 (sibling_die): Remove.
6064
052c8bb8
TT
60652020-03-26 Tom Tromey <tom@tromey.com>
6066
6067 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6068 (build_type_psymtabs_reader, read_structure_type)
6069 (read_enumeration_type, read_full_die_1): Update.
6070 (dwarf2_attr_no_follow): Move to die.h.
6071 * dwarf2/die.h (struct die_info) <attr>: New method.
6072
2b24b6e4
TT
60732020-03-26 Tom Tromey <tom@tromey.com>
6074
6075 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6076 <base_address>: Now an optional.
6077 (dwarf2_find_base_address, dwarf2_rnglists_process)
6078 (dwarf2_ranges_process, fill_in_loclist_baton)
6079 (dwarf2_symbol_mark_computed): Update.
6080
c2d50fd0
TT
60812020-03-26 Tom Tromey <tom@tromey.com>
6082
6083 * dwarf2/read.c (struct die_info): Move to die.h.
6084 * dwarf2/die.h: New file.
6085
0df7ad3a
TT
60862020-03-26 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6089 * dwarf2/read.c
6090 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6091 Move to line-header.c.
6092 (read_checked_initial_length_and_offset, read_formatted_entries):
6093 Likewise.
6094 (dwarf_decode_line_header): Split into two.
6095 * dwarf2/line-header.c
6096 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6097 Move from read.c.
6098 (read_checked_initial_length_and_offset, read_formatted_entries):
6099 Likewise.
6100 (dwarf_decode_line_header): New function, split from read.c.
6101
86c0bb4c
TT
61022020-03-26 Tom Tromey <tom@tromey.com>
6103
6104 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6105 Declare method.
6106 * dwarf2/read.c (read_attribute_value): Update.
6107 (dwarf2_per_objfile::read_line_string): Rename from
6108 read_indirect_line_string.
6109 (read_formatted_entries): Update.
6110
2ef46c2f
TT
61112020-03-26 Tom Tromey <tom@tromey.com>
6112
6113 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6114 variable.
6115
4f9c1eda
TT
61162020-03-26 Tom Tromey <tom@tromey.com>
6117
6118 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6119 const.
6120 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6121 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6122 parameter const.
6123
5a0e026f
TT
61242020-03-26 Tom Tromey <tom@tromey.com>
6125
6126 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6127 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6128 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6129 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6130
8844c11b
TT
61312020-03-26 Tom Tromey <tom@tromey.com>
6132
6133 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6134 file_names_size, file_full_name, file_file_name>: Use const.
6135 <file_name_at, file_names>: Add const overload.
6136 * dwarf2/line-header.c (line_header::file_file_name)
6137 (line_header::file_full_name): Update.
6138
c90ec28a
TT
61392020-03-26 Tom Tromey <tom@tromey.com>
6140
6141 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6142 (macro_start_file, consume_improper_spaces)
6143 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6144 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6145 (dwarf_decode_macros): Move to macro.c.
6146 * dwarf2/macro.c: New file.
6147 * dwarf2/macro.h: New file.
6148 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6149
4f44ae6c
TT
61502020-03-26 Tom Tromey <tom@tromey.com>
6151
6152 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6153 method.
6154 * dwarf2/section.c: New method. From
6155 read_indirect_string_at_offset_from.
6156 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6157 (read_indirect_string_at_offset_from): Move to section.c.
6158 (read_indirect_string_at_offset): Rewrite.
6159 (read_indirect_line_string_at_offset): Remove.
6160 (read_indirect_string, read_indirect_line_string)
6161 (dwarf_decode_macro_bytes): Update.
6162
a0194fa8
TT
61632020-03-26 Tom Tromey <tom@tromey.com>
6164
6165 * dwarf2/section.h (struct dwarf2_section_info)
6166 <overload_complaint>: Declare.
6167 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6168 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6169 Rename from dwarf2_section_buffer_overflow_complaint.
6170 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6171 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6172
3d27bbdb
TT
61732020-03-26 Tom Tromey <tom@tromey.com>
6174
6175 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6176 Declare.
6177 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6178 Move from read.c.
6179 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6180 to section.c.
6181
9eac9650
TT
61822020-03-26 Tom Tromey <tom@tromey.com>
6183
6184 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6185
bf80d710
TT
61862020-03-26 Tom Tromey <tom@tromey.com>
6187
6188 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6189 "builder".
6190 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6191 parameter.
6192 (dwarf_decode_macros): Update.
6193
0314b390
TT
61942020-03-26 Tom Tromey <tom@tromey.com>
6195
6196 * dwarf2/read.c (read_attribute_value): Update.
6197 (read_indirect_string_from_dwz): Move to dwz.c; change into
6198 method.
6199 (dwarf_decode_macro_bytes): Update.
6200 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6201 * dwarf2/dwz.c: New file.
6202 * Makefile.in (COMMON_SFILES): Add dwz.c.
6203
9fda78b6
TT
62042020-03-26 Tom Tromey <tom@tromey.com>
6205
6206 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6207 * dwarf2/read.c: Add include.
6208 * dwarf2/index-write.c: Add include.
6209 * dwarf2/index-cache.c: Add include.
6210 * dwarf2/dwz.h: New file.
6211
33aa3c10
TT
62122020-03-25 Tom Tromey <tom@tromey.com>
6213
6214 * compile/compile-object-load.c (get_out_value_type): Mention
6215 correct symbol name in error message.
6216
d503b685
HD
62172020-03-25 Hannes Domani <ssbssa@yahoo.de>
6218
6219 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6220
7b1eff95
TV
62212020-03-25 Tom de Vries <tdevries@suse.de>
6222
6223 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6224 * symmisc.c (dump_symtab_1): Print user and includes fields.
6225 (maintenance_info_symtabs): Same.
6226
dd895392
AB
62272020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 PR gdb/25534
6230 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6231 (riscv_regcache_cooked_write): New function.
6232 (riscv_push_dummy_call): Use new function.
6233 (riscv_return_value): Likewise.
6234
5ab2fbf1
SM
62352020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6238 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6239 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6240 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6241 * infrun.c (follow_fork): Likewise.
6242 (follow_fork_inferior): Likewise.
6243 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6244 * linux-nat.h (class linux_nat_target): Likewise.
6245 * remote.c (class remote_target) <follow_fork>: Likewise.
6246 (remote_target::follow_fork): Likewise.
6247 * target-delegates.c: Re-generate.
6248 * target.c (default_follow_fork): Likewise.
6249 (target_follow_fork): Likewise.
6250 * target.h (struct target_ops) <follow_fork>: Likewise.
6251 (target_follow_fork): Likewise.
6252
a64fafb5
TV
62532020-03-24 Tom de Vries <tdevries@suse.de>
6254
6255 * psymtab.c (maintenance_info_psymtabs): Print user field.
6256
fe26d3a3
TT
62572020-03-20 Tom Tromey <tromey@adacore.com>
6258
6259 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6260 const.
6261 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6262 const.
6263
c884cc46
SM
62642020-03-20 Simon Marchi <simon.marchi@efficios.com>
6265
6266 * ptrace.m4: Don't check for ptrace declaration.
6267 * config.in: Re-generate.
6268 * configure: Re-generate.
6269 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6270 not defined.
6271
1ff700c2
KR
62722020-03-20 Kamil Rytarowski <n54@gmx.com>
6273
6274 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6275 `PTRACE_TYPE_RET'.
6276 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6277 * sparc-nat.c (gdb_ptrace): Likewise.
6278 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6279
f7d4f0b1
TT
62802020-03-20 Tom Tromey <tromey@adacore.com>
6281
6282 * c-exp.y (lex_one_token): Fix assert.
6283
f67210ff
TT
62842020-03-20 Tom Tromey <tromey@adacore.com>
6285
6286 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6287 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6288 strncpy call.
6289
1773be9e
TT
62902020-03-20 Tom Tromey <tromey@adacore.com>
6291
6292 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6293
70304be9
TT
62942020-03-20 Tom Tromey <tromey@adacore.com>
6295
6296 * ada-valprint.c (print_variant_part): Remove parameters; switch
6297 to value-based API.
6298 (print_field_values): Likewise.
6299 (ada_val_print_struct_union): Likewise.
6300 (ada_value_print_1): Update.
6301
9faa006d
KR
63022020-03-20 Kamil Rytarowski <n54@gmx.com>
6303
6304 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6305 nbsd_nat_target instead of inf_ptrace_target.
6306 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6307 nbsd_nat_target.
6308
4a90f062
KR
63092020-03-20 Kamil Rytarowski <n54@gmx.com>
6310
6311 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6312 it to the ptrace call.
6313 * (store_registers): Likewise.
6314
63152020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6316
6317 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6318 it to the ptrace call.
6319 * (store_registers): Likewise.
6320
2d07da27
LM
63212020-03-19 Luis Machado <luis.machado@linaro.org>
6322
6323 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6324 valid, fetch vg value from ptrace.
6325
f09db380
KR
63262020-03-19 Kamil Rytarowski <n54@gmx.com>
6327 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6328 * inf-ptrace.c: Likewise.
6329 * (gdb_ptrace): Add.
6330 * (inf_ptrace_target::resume): Update.
6331 * (inf_ptrace_target::xfer_partial): Likewise.
6332 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6333 * (inf_ptrace_peek_poke): Update.
6334
fcc7376e
KR
63352020-03-19 Kamil Rytarowski <n54@gmx.com>
6336
6337 * x86-bsd-nat.c (gdb_ptrace): New.
6338 * (x86bsd_dr_set): Add new argument `ptid'.
6339 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6340 x86bsd_dr_set_addr): Update.
6341
cada5fc9
AB
63422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * remote.c (remote_target::process_stop_reply): Handle events for
6345 all threads differently.
6346
19a2740f
AB
63472020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 * completer.c (completion_tracker::remove_completion): Define new
6350 function.
6351 * completer.h (completion_tracker::remove_completion): Declare new
6352 function.
6353 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6354 when adding a C++ function symbol.
6355
724fd9ba
AB
63562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * completer.c (completion_tracker::completion_hash_entry): Define
6359 new class.
6360 (advance_to_filename_complete_word_point): Call
6361 recompute_lowest_common_denominator.
6362 (completion_tracker::completion_tracker): Call discard_completions
6363 to setup the hash table.
6364 (completion_tracker::discard_completions): Allow for being called
6365 from the constructor, pass new equal function, and element deleter
6366 when constructing the hash table. Initialise new class member
6367 variables.
6368 (completion_tracker::maybe_add_completion): Remove use of
6369 m_entries_vec, and store more information into m_entries_hash.
6370 (completion_tracker::recompute_lcd_visitor): New function, most
6371 content taken from...
6372 (completion_tracker::recompute_lowest_common_denominator):
6373 ...here, this now just visits each item in the hash calling the
6374 above visitor.
6375 (completion_tracker::build_completion_result): Remove use of
6376 m_entries_vec, call recompute_lowest_common_denominator.
6377 * completer.h (completion_tracker::have_completions): Remove use
6378 of m_entries_vec.
6379 (completion_tracker::completion_hash_entry): Declare new class.
6380 (completion_tracker::recompute_lowest_common_denominator): Change
6381 function signature.
6382 (completion_tracker::recompute_lcd_visitor): Declare new function.
6383 (completion_tracker::m_entries_vec): Delete.
6384 (completion_tracker::m_entries_hash): Initialize to NULL.
6385 (completion_tracker::m_lowest_common_denominator_valid): New
6386 member variable.
6387 (completion_tracker::m_lowest_common_denominator_max_length): New
6388 member variable.
6389
5a82b8a1
KR
63902020-03-17 Kamil Rytarowski <n54@gmx.com>
6391
6392 * regformats/regdef.h: Put reg in gdb namespace.
6393
fb516a69
KR
63942020-03-17 Kamil Rytarowski <n54@gmx.com>
6395
6396 * i386-bsd-nat.c (gdb_ptrace): New.
6397 * (i386bsd_fetch_inferior_registers,
6398 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6399 * (i386bsd_fetch_inferior_registers,
6400 i386bsd_store_inferior_registers) Use gdb_ptrace.
6401
1c0aa1fb
KR
64022020-03-17 Kamil Rytarowski <n54@gmx.com>
6403
6404 * amd64-bsd-nat.c (gdb_ptrace): New.
6405 * (amd64bsd_fetch_inferior_registers,
6406 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6407 * (amd64bsd_fetch_inferior_registers,
6408 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6409
5ccd2fb7
KR
64102020-03-17 Kamil Rytarowski <n54@gmx.com>
6411
6412 * user-regs.c (user_reg::read): Rename to...
6413 (user_reg::xread): ...this.
6414 * (append_user_reg): Rename argument `read' to `xread'.
6415 * (user_reg_add_builtin): Likewise.
6416 * (user_reg_add): Likewise.
6417 * (value_of_user_reg): Likewise.
6418
2108a63a
KR
64192020-03-17 Kamil Rytarowski <n54@gmx.com>
6420
6421 * sparc-nat.c (gdb_ptrace): New.
6422 * sparc-nat.c (sparc_fetch_inferior_registers)
6423 (sparc_store_inferior_registers) Remove obsolete comment.
6424 * sparc-nat.c (sparc_fetch_inferior_registers)
6425 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6426 * sparc-nat.c (sparc_fetch_inferior_registers)
6427 (sparc_store_inferior_registers) Use gdb_ptrace.
6428
a225c9a8
KR
64292020-03-17 Kamil Rytarowski <n54@gmx.com>
6430
6431 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6432 it to the ptrace call.
6433 * sh-nbsd-nat.c (store_registers): Likewise.
6434
98097623
KR
64352020-03-17 Kamil Rytarowski <n54@gmx.com>
6436
6437 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6438 nbsd_nat_target instead of inf_ptrace_target.
6439 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6440 nbsd_nat_target.
6441
9e38d619
KR
64422020-03-17 Kamil Rytarowski <n54@gmx.com>
6443
6444 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6445
a2ecbe9f
KR
64462020-03-17 Kamil Rytarowski <n54@gmx.com>
6447
6448 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6449 <sys/sysctl.h>.
6450 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6451
58990295
TV
64522020-03-17 Tom de Vries <tdevries@suse.de>
6453
6454 PR gdb/23710
6455 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6456 fields.
6457 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6458 fields.
6459 (process_imported_unit_die): Skip import of c++ CUs.
6460
771dd3a8
TT
64612020-03-16 Tom Tromey <tom@tromey.com>
6462
6463 * p-valprint.c (pascal_object_print_value): Initialize
6464 base_value.
6465
817a7585
AK
64662020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6467 Shahab Vahedi <shahab@synopsys.com>
6468
6469 * Makefile.in: Add arch/arc.o
6470 * configure.tgt: Likewise.
6471 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6472 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6473 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6474 * arc-tdep.h (arc_read_description): Add proto type.
6475 * arch/arc.c: New file.
6476 * arch/arc.h: Likewise.
6477 * features/Makefile: Replace old target descriptions with new.
6478 * features/arc-arcompact.c: Remove.
6479 * features/arc-arcompact.xml: Likewise.
6480 * features/arc-v2.c: Likewise
6481 * features/arc-v2.xml: Likewise
6482 * features/arc/aux-arcompact.xml: New file.
6483 * features/arc/aux-v2.xml: Likewise.
6484 * features/arc/core-arcompact.xml: Likewise.
6485 * features/arc/core-v2.xml: Likewise.
6486 * features/arc/aux-arcompact.c: Generate.
6487 * features/arc/aux-v2.c: Likewise.
6488 * features/arc/core-arcompact.c: Likewise.
6489 * features/arc/core-v2.c: Likewise.
6490 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6491
67430cd0
TT
64922020-03-16 Tom Tromey <tromey@adacore.com>
6493
6494 PR gdb/25663:
6495 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6496 putting value into bcache.
6497
30efb6c7
SM
64982020-03-16 Simon Marchi <simon.marchi@efficios.com>
6499
6500 PR gdb/21500
6501 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6502 to...
6503 (amd64_windows_init_abi_common): ... this. Don't set size of
6504 long type.
6505 (amd64_windows_init_abi): New function.
6506 (amd64_cygwin_init_abi): New function.
6507 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6508 the Cygwin OS ABI.
6509 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6510 comment.
6511
8db52437
SM
65122020-03-16 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6515 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6516 (pe_import_directory_entry): New struct type.
6517 (is_linked_with_cygwin_dll): New function.
6518 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6519 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6520 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6521
5982a56a
SM
65222020-03-16 Simon Marchi <simon.marchi@efficios.com>
6523
6524 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6525 i386_cygwin_core_osabi_sniffer.
6526
7a1998df
SM
65272020-03-16 Simon Marchi <simon.marchi@efficios.com>
6528
6529 * i386-cygwin-tdep.c: Rename to...
6530 * i386-windows-tdep.c: ... this.
6531 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6532 i386-windows-tdep.c.
6533 * configure.tgt: Likewise.
6534
053205cc
SM
65352020-03-16 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6538 * osabi.c (gdb_osabi_names): Add "Windows".
6539 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6540 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6541 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6542 i386_cygwin_osabi_sniffer.
6543 (_initialize_i386_cygwin_tdep): Register OS ABI
6544 GDB_OSABI_WINDOWS for i386.
6545 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6546 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6547 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6548 for x86-64.
6549 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6550 when the target matches '*-*-mingw*'.
6551
fe4b2ee6
SM
65522020-03-16 Simon Marchi <simon.marchi@efficios.com>
6553
6554 * defs.h (enum gdb_osabi): Move to...
6555 * osabi.h (enum gdb_osabi): ... here.
6556 * gdbarch.sh: Include osabi.h in gdbarch.h.
6557 * gdbarch.h: Re-generate.
6558
cb9b645d
SM
65592020-03-16 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6562 function.
6563 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6564
3293bbaf
TT
65652020-03-14 Tom Tromey <tom@tromey.com>
6566
6567 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6568 for C++.
6569 (c_type_print_modifier): Likewise. Add "language" parameter.
6570 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6571 (c_type_print_base_1): Update.
6572 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6573 constants.
6574 * type-stack.c (type_stack::insert): Handle tp_atomic and
6575 tp_restrict.
6576 (type_stack::follow_type_instance_flags): Likewise.
6577 (type_stack::follow_types): Likewise. Merge type-following code.
6578 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6579 (space_identifier, cv_with_space_id)
6580 (const_or_volatile_or_space_identifier_noopt)
6581 (const_or_volatile_or_space_identifier): Remove.
6582 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6583 rules.
6584 (ptr_operator, typebase): Update.
6585 (enum token_flag) <FLAG_C>: New constant.
6586 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6587 "_Atomic".
6588 (lex_one_token): Handle FLAG_C.
6589
154151a6
KR
65902020-03-14 Kamil Rytarowski <n54@gmx.com>
6591
6592 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6593 it to the ptrace call.
6594 * m68k-bsd-nat.c (store_registers): Likewise.
6595
bc107784
KR
65962020-03-14 Kamil Rytarowski <n54@gmx.com>
6597
6598 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6599 gdb_byte *.
6600 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6601 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6602 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6603
01a80117
KR
66042020-03-14 Kamil Rytarowski <n54@gmx.com>
6605
6606 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6607 nbsd_nat_target instead of inf_ptrace_target.
6608 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6609 nbsd_nat_target.
6610
f90280ca
KR
66112020-03-14 Kamil Rytarowski <n54@gmx.com>
6612
6613 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6614 register_t.
6615
6def66f1
KR
66162020-03-14 Kamil Rytarowski <n54@gmx.com>
6617
6618 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6619 it to the ptrace call.
6620 * alpha-bsd-nat.c (store_registers): Likewise.
6621
66eaca97
KR
66222020-03-14 Kamil Rytarowski <n54@gmx.com>
6623
6624 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6625 includes.
6626 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6627 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6628 fill_fpregset): Likewise.
6629
4fed520b
KR
66302020-03-14 Kamil Rytarowski <n54@gmx.com>
6631
6632 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6633 nbsd_nat_target instead of inf_ptrace_target.
6634 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6635 nbsd_nat_target.
6636
2190cf06
KR
66372020-03-14 Kamil Rytarowski <n54@gmx.com>
6638
6639 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6640 register_t.
6641
75c56d3d
KR
66422020-03-14 Kamil Rytarowski <n54@gmx.com>
6643
6644 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6645 it to the ptrace call.
6646 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6647 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6648 * arm-nbsd-nat.c (store_register): Likewise.
6649 * arm-nbsd-nat.c (store_regs): Likewise.
6650 * arm-nbsd-nat.c (store_fp_register): Likewise.
6651 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6652
6018d381
KR
66532020-03-14 Kamil Rytarowski <n54@gmx.com>
6654
6655 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6656 nbsd_nat_target instead of inf_ptrace_target.
6657 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6658 nbsd_nat_target.
6659
013f99f0
KR
66602020-03-14 Kamil Rytarowski <n54@gmx.com>
6661
6662 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6663 it to the ptrace call.
6664 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6665
12753073
KR
66662020-03-14 Kamil Rytarowski <n54@gmx.com>
6667
6227b330
KR
6668 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6669 it to the ptrace call.
6670 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6671
66722020-03-14 Kamil Rytarowski <n54@gmx.com>
6673
6674 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6675 gdb_byte *.
12753073
KR
6676 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6677
d5be5fa4
KR
66782020-03-14 Kamil Rytarowski <n54@gmx.com>
6679
6680 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6681 instead of inf_ptrace_target.
6682 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6683 nbsd_nat_target.
6684
8110f842
KR
66852020-03-14 Kamil Rytarowski <n54@gmx.com>
6686
6687 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6688 register_t.
6689
52feded7
KR
66902020-03-14 Kamil Rytarowski <n54@gmx.com>
6691
6692 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6693 register_t.
6694
25567eee
KR
66952020-03-14 Kamil Rytarowski <n54@gmx.com>
6696
6697 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6698 register_t.
6699
426a9c18
TT
67002020-03-13 Tom Tromey <tom@tromey.com>
6701
6702 * value.h (val_print): Don't declare.
6703 * valprint.h (val_print_array_elements)
6704 (val_print_scalar_formatted, generic_val_print): Don't declare.
6705 * valprint.c (generic_val_print_array): Take a struct value.
6706 (generic_val_print_ptr, generic_val_print_memberptr)
6707 (generic_val_print_bool, generic_val_print_int)
6708 (generic_val_print_char, generic_val_print_complex)
6709 (generic_val_print): Remove.
6710 (generic_value_print): Update.
6711 (do_val_print): Remove unused parameters. Don't call
6712 la_val_print.
6713 (val_print): Remove.
6714 (common_val_print): Update. Don't call value_check_printable.
6715 (val_print_scalar_formatted, val_print_array_elements): Remove.
6716 * rust-lang.c (rust_val_print): Remove.
6717 (rust_language_defn): Update.
6718 * p-valprint.c (pascal_val_print): Remove.
6719 (pascal_value_print_inner): Update.
6720 (pascal_object_print_val_fields, pascal_object_print_val):
6721 Remove.
6722 (pascal_object_print_static_field): Update.
6723 * p-lang.h (pascal_val_print): Don't declare.
6724 * p-lang.c (pascal_language_defn): Update.
6725 * opencl-lang.c (opencl_language_defn): Update.
6726 * objc-lang.c (objc_language_defn): Update.
6727 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6728 * m2-lang.h (m2_val_print): Don't declare.
6729 * m2-lang.c (m2_language_defn): Update.
6730 * language.h (struct language_defn) <la_val_print>: Remove.
6731 * language.c (unk_lang_value_print_inner): Rename. Change
6732 argument types.
6733 (unknown_language_defn, auto_language_defn): Update.
6734 * go-valprint.c (go_val_print): Remove.
6735 * go-lang.h (go_val_print): Don't declare.
6736 * go-lang.c (go_language_defn): Update.
6737 * f-valprint.c (f_val_print): Remove.
6738 * f-lang.h (f_value_print): Don't declare.
6739 * f-lang.c (f_language_defn): Update.
6740 * d-valprint.c (d_val_print): Remove.
6741 * d-lang.h (d_value_print): Don't declare.
6742 * d-lang.c (d_language_defn): Update.
6743 * cp-valprint.c (cp_print_value_fields)
6744 (cp_print_value_fields_rtti, cp_print_value): Remove.
6745 (cp_print_static_field): Update.
6746 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6747 (c_val_print_struct, c_val_print_union, c_val_print_int)
6748 (c_val_print_memberptr, c_val_print): Remove.
6749 * c-lang.h (c_val_print_array, cp_print_value_fields)
6750 (cp_print_value_fields_rtti): Don't declare.
6751 * c-lang.c (c_language_defn, cplus_language_defn)
6752 (asm_language_defn, minimal_language_defn): Update.
6753 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6754 (ada_val_print_enum): Take a struct value.
6755 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6756 (ada_val_print): Remove.
6757 (ada_value_print_1): Update.
6758 (printable_val_type): Remove.
6759 * ada-lang.h (ada_val_print): Don't declare.
6760 * ada-lang.c (ada_language_defn): Update.
6761
42331a1e
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * valprint.c (do_val_print): Update.
6765 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6766 a struct value.
6767 (value_to_value_object_no_release): Declare.
6768 * python/py-value.c (value_to_value_object_no_release): New
6769 function.
6770 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6771 struct value.
6772 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6773 function.
6774 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6775 a struct value.
6776 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6777 Declare.
6778 (gdbscm_apply_val_pretty_printer): Take a struct value.
6779 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6780 value.
6781 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6782 value.
6783 * extension-priv.h (struct extension_language_ops)
6784 <apply_val_pretty_printer>: Take a struct value.
6785 * cp-valprint.c (cp_print_value): Create a struct value.
6786 (cp_print_value): Update.
6787
3a916a97
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * ada-valprint.c (print_field_values): Call common_val_print.
6791
b59eac37
TT
67922020-03-13 Tom Tromey <tom@tromey.com>
6793
6794 * ada-valprint.c (val_print_packed_array_elements): Remove
6795 bitoffset and val parameters. Call common_val_print.
6796 (ada_val_print_string): Remove offset, address, and original_value
6797 parameters.
6798 (ada_val_print_array): Update.
6799 (ada_value_print_array): New function.
6800 (ada_value_print_1): Call it.
6801
03371129
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * ada-valprint.c (ada_value_print): Use common_val_print.
6805
2e088f8b
TT
68062020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6809
39ef85a8
TT
68102020-03-13 Tom Tromey <tom@tromey.com>
6811
6812 * ada-valprint.c (ada_value_print_num): New function.
6813 (ada_value_print_1): Use it.
6814
b9fa6e07
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6818
416595d6
TT
68192020-03-13 Tom Tromey <tom@tromey.com>
6820
6821 * ada-valprint.c (ada_value_print_ptr): New function.
6822 (ada_value_print_1): Use it.
6823
5b5e15ec
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6827 call common_val_print.
6828 (ada_val_print_1): Update.
6829 (ada_value_print_1): New function.
6830 (ada_value_print_inner): Rewrite.
6831
fbf54e75
TT
68322020-03-13 Tom Tromey <tom@tromey.com>
6833
6834 * cp-valprint.c (cp_print_value_fields): Update.
6835 (cp_print_value): New function.
6836
64b653ca
TT
68372020-03-13 Tom Tromey <tom@tromey.com>
6838
6839 * m2-valprint.c (m2_value_print_inner): Use
6840 cp_print_value_fields.
6841 * cp-valprint.c (cp_print_value_fields): New function.
6842 * c-valprint.c (c_value_print_struct): New function.
6843 (c_value_print_inner): Use c_value_print_struct.
6844 * c-lang.h (cp_print_value_fields): Declare.
6845
6999f067
TT
68462020-03-13 Tom Tromey <tom@tromey.com>
6847
6848 * c-valprint.c (c_value_print_array): New function.
6849 (c_value_print_inner): Use it.
6850
ce80b8bd
TT
68512020-03-13 Tom Tromey <tom@tromey.com>
6852
6853 * c-valprint.c (c_value_print_memberptr): New function.
6854 (c_value_print_inner): Use it.
6855
2faac269
TT
68562020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * c-valprint.c (c_value_print_int): New function.
6859 (c_value_print_inner): Use it.
6860
da3e2c29
TT
68612020-03-13 Tom Tromey <tom@tromey.com>
6862
6863 * c-valprint.c (c_value_print_ptr): New function.
6864 (c_value_print_inner): Use it.
6865
50836231
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * c-valprint.c (c_value_print_inner): Rewrite.
6869
4f412b6e
TT
68702020-03-13 Tom Tromey <tom@tromey.com>
6871
6872 * valprint.c (generic_value_print_complex): New function.
6873 (generic_value_print): Use it.
6874
f5354008
TT
68752020-03-13 Tom Tromey <tom@tromey.com>
6876
6877 * valprint.c (generic_val_print_float): Don't call
6878 val_print_scalar_formatted.
6879 (generic_val_print, generic_value_print): Update.
6880
3eec3b05
TT
68812020-03-13 Tom Tromey <tom@tromey.com>
6882
6883 * valprint.c (generic_value_print_char): New function
6884 (generic_value_print): Use it.
6885
fdddfccb
TT
68862020-03-13 Tom Tromey <tom@tromey.com>
6887
6888 * valprint.c (generic_value_print_int): New function.
6889 (generic_value_print): Use it.
6890
6dde7521
TT
68912020-03-13 Tom Tromey <tom@tromey.com>
6892
6893 * valprint.c (generic_value_print_bool): New function.
6894 (generic_value_print): Use it.
6895
4112d2e6
TT
68962020-03-13 Tom Tromey <tom@tromey.com>
6897
6898 * valprint.c (generic_val_print_func): Simplify.
6899 (generic_val_print, generic_value_print): Update.
6900
65786af6
TT
69012020-03-13 Tom Tromey <tom@tromey.com>
6902
6903 * valprint.c (generic_val_print_flags): Remove.
6904 (generic_val_print, generic_value_print): Update.
6905 (val_print_type_code_flags): Add original_value parameter.
6906
40f3ce18
TT
69072020-03-13 Tom Tromey <tom@tromey.com>
6908
6909 * valprint.c (generic_val_print): Update.
6910 (generic_value_print): Update.
6911 * valprint.c (generic_val_print_enum): Don't call
6912 val_print_scalar_formatted.
6913
2a5b130b
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6917 * valprint.c (generic_value_print_ptr): New function.
6918
abc66ce9
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * valprint.c (generic_value_print): Rewrite.
6922
07a32858
TT
69232020-03-13 Tom Tromey <tom@tromey.com>
6924
6925 * p-valprint.c (pascal_object_print_value_fields)
6926 (pascal_object_print_value): New functions.
6927
64d64d3a
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * p-valprint.c (pascal_value_print_inner): Rewrite.
6931
6a95a1f5
TT
69322020-03-13 Tom Tromey <tom@tromey.com>
6933
6934 * f-valprint.c (f_value_print_innner): Rewrite.
6935
59fcdac6
TT
69362020-03-13 Tom Tromey <tom@tromey.com>
6937
6938 * m2-valprint.c (m2_print_unbounded_array): New overload.
6939 (m2_print_unbounded_array): Update.
6940 (m2_print_array_contents): Take a struct value.
6941 (m2_value_print_inner): Rewrite.
6942
d133c3e1
TT
69432020-03-13 Tom Tromey <tom@tromey.com>
6944
6945 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6946 (d_value_print_inner): New function.
6947 * d-lang.h (d_value_print_inner): Declare.
6948 * d-lang.c (d_language_defn): Use d_value_print_inner.
6949
23b0f06b
TT
69502020-03-13 Tom Tromey <tom@tromey.com>
6951
6952 * go-valprint.c (go_value_print_inner): New function.
6953 * go-lang.h (go_value_print_inner): Declare.
6954 * go-lang.c (go_language_defn): Use go_value_print_inner.
6955
5f56f7cb
TT
69562020-03-13 Tom Tromey <tom@tromey.com>
6957
6958 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6959 API.
6960 (rust_val_print): Rewrite.
6961 (rust_value_print_inner): New function, from rust_val_print.
6962 (rust_language_defn): Use rust_value_print_inner.
6963
26792ee0
TT
69642020-03-13 Tom Tromey <tom@tromey.com>
6965
6966 * ada-valprint.c (ada_value_print_inner): New function.
6967 * ada-lang.h (ada_value_print_inner): Declare.
6968 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6969
24051bbe
TT
69702020-03-13 Tom Tromey <tom@tromey.com>
6971
6972 * f-valprint.c (f_value_print_innner): New function.
6973 * f-lang.h (f_value_print_innner): Declare.
6974 * f-lang.c (f_language_defn): Use f_value_print_innner.
6975
c0941be6
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * p-valprint.c (pascal_value_print_inner): New function.
6979 * p-lang.h (pascal_value_print_inner): Declare.
6980 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6981
62c4663d
TT
69822020-03-13 Tom Tromey <tom@tromey.com>
6983
6984 * m2-valprint.c (m2_value_print_inner): New function.
6985 * m2-lang.h (m2_value_print_inner): Declare.
6986 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6987
62182190
TT
69882020-03-13 Tom Tromey <tom@tromey.com>
6989
6990 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6991 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6992 * c-valprint.c (c_value_print_inner): New function.
6993 * c-lang.h (c_value_print_inner): Declare.
6994 * c-lang.c (c_language_defn, cplus_language_defn)
6995 (asm_language_defn, minimal_language_defn): Use
6996 c_value_print_inner.
6997
1e592a8a
TT
69982020-03-13 Tom Tromey <tom@tromey.com>
6999
7000 * p-valprint.c (pascal_object_print_value_fields): Now static.
7001 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7002
7fe471e9
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * c-valprint.c (c_val_print_array): Simplify.
7006
d121c6ce
TT
70072020-03-13 Tom Tromey <tom@tromey.com>
7008
7009 * valprint.c (value_print_array_elements): New function.
7010 * valprint.h (value_print_array_elements): Declare.
7011
4dba70ee
TT
70122020-03-13 Tom Tromey <tom@tromey.com>
7013
7014 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7015 * mips-tdep.c (mips_print_register): Use
7016 value_print_scalar_formatted.
7017
4f9ae810
TT
70182020-03-13 Tom Tromey <tom@tromey.com>
7019
7020 * valprint.h (value_print_scalar_formatted): Declare.
7021 * valprint.c (value_print_scalar_formatted): New function.
7022
156bfec9
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * valprint.h (generic_value_print): Declare.
7026 * valprint.c (generic_value_print): New function.
7027
2b4e573d
TT
70282020-03-13 Tom Tromey <tom@tromey.com>
7029
7030 * valprint.c (do_val_print): Call la_value_print_inner, if
7031 available.
7032 * rust-lang.c (rust_language_defn): Update.
7033 * p-lang.c (pascal_language_defn): Update.
7034 * opencl-lang.c (opencl_language_defn): Update.
7035 * objc-lang.c (objc_language_defn): Update.
7036 * m2-lang.c (m2_language_defn): Update.
7037 * language.h (struct language_defn) <la_value_print_inner>: New
7038 member.
7039 * language.c (unknown_language_defn, auto_language_defn): Update.
7040 * go-lang.c (go_language_defn): Update.
7041 * f-lang.c (f_language_defn): Update.
7042 * d-lang.c (d_language_defn): Update.
7043 * c-lang.c (c_language_defn, cplus_language_defn)
7044 (asm_language_defn, minimal_language_defn): Update.
7045 * ada-lang.c (ada_language_defn): Update.
7046
a1f6a07c
TT
70472020-03-13 Tom Tromey <tom@tromey.com>
7048
7049 * c-valprint.c (c_value_print): Use common_val_print.
7050
410cf315
TT
70512020-03-13 Tom Tromey <tom@tromey.com>
7052
7053 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7054
72a45c93
TT
70552020-03-13 Tom Tromey <tom@tromey.com>
7056
7057 * f-valprint.c (f77_print_array_1, f_val_print): Use
7058 common_val_print.
7059
040f66bd
TT
70602020-03-13 Tom Tromey <tom@tromey.com>
7061
7062 * riscv-tdep.c (riscv_print_one_register_info): Use
7063 common_val_print.
7064
a6e05a6c
TT
70652020-03-13 Tom Tromey <tom@tromey.com>
7066
7067 * mi/mi-main.c (output_register): Use common_val_print.
7068
3444c526
TT
70692020-03-13 Tom Tromey <tom@tromey.com>
7070
7071 * infcmd.c (default_print_one_register_info): Use
7072 common_val_print.
7073
c2a44efe
TT
70742020-03-13 Tom Tromey <tom@tromey.com>
7075
7076 * valprint.h (common_val_print_checked): Declare.
7077 * valprint.c (common_val_print_checked): New function.
7078 * stack.c (print_frame_arg): Use common_val_print_checked.
7079
b0c26e99
TT
70802020-03-13 Tom Tromey <tom@tromey.com>
7081
7082 * valprint.c (do_val_print): New function, from val_print.
7083 (val_print): Use do_val_print.
7084 (common_val_print): Use do_val_print.
7085
ce3acbe9
TT
70862020-03-13 Tom Tromey <tom@tromey.com>
7087
7088 * valprint.c (value_print): Use scoped_value_mark.
7089
96c7f873
TV
70902020-03-13 Tom de Vries <tdevries@suse.de>
7091
7092 PR symtab/25646
7093 * psymtab.c (partial_symtab::partial_symtab): Don't set
7094 globals_offset and statics_offset. Push element onto
7095 current_global_psymbols and current_static_psymbols stacks.
7096 (concat): New function.
7097 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7098 element from current_global_psymbols and current_static_psymbols
7099 stacks. Concat popped elements to global_psymbols and
7100 static_symbols.
7101 (add_psymbol_to_list): Use current_global_psymbols and
7102 current_static_psymbols stacks.
7103 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7104 current_static_psymbols fields.
7105
6ba0a321
CB
71062020-03-12 Christian Biesinger <cbiesinger@google.com>
7107
7108 * corelow.c (sniff_core_bfd): Remove.
7109 (class core_target) <m_core_vec>: Remove.
7110 (core_target::core_target): Update.
7111 (core_file_fns): Remove.
7112 (deprecated_add_core_fns): Remove.
7113 (default_core_sniffer): Remove.
7114 (sniff_core_bfd): Remove.
7115 (default_check_format): Remove.
7116 (gdb_check_format): Remove.
7117 (core_target_open): Update.
7118 (core_target::get_core_register_section): Update.
7119 (get_core_registers_cb): Update.
7120 (core_target::fetch_registers): Update.
7121 * gdbcore.h (struct core_fns): Remove.
7122 (deprecated_add_core_fns): Remove.
7123 (default_core_sniffer): Remove.
7124 (default_check_format): Remove.
7125
227031b2
TT
71262020-03-12 Tom Tromey <tom@tromey.com>
7127
7128 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7129 CORE_ADDR.
7130 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7131
53807e9f
TT
71322020-03-12 Tom Tromey <tom@tromey.com>
7133
7134 * remote.c (remote_target::download_tracepoint)
7135 (remote_target::enable_tracepoint)
7136 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7137 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7138 sprintf_vma.
7139
64f25102
TT
71402020-03-12 Tom Tromey <tom@tromey.com>
7141
7142 * symfile-mem.c: Update CORE_ADDR size assert.
7143
272cd5a3
SM
71442020-03-12 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * selftest.m4: Move to gdbsupport/.
7147 * acinclude.m4: Update path to selftest.m4.
7148
74cd3f9d
SM
71492020-03-12 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7152 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7153 gdbarch-selfselftests.c and selftest-arch.c.
7154 (SUBDIR_UNITTESTS_OBS): Rename to...
7155 (SELFTESTS_OBS): ... this.
7156 (COMMON_SFILES): Remove disasm-selftests.c and
7157 gdbarch-selftests.c.
7158 * configure.ac: Don't add selftest-arch.{c,o} to
7159 CONFIG_{SRCS,OBS}.
7160 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7161 preprocessor conditions.
7162
db6878ac
SM
71632020-03-12 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * configure.ac: Don't source bfd/development.sh.
7166 * selftest.m4: Modify comment.
7167 * configure: Re-generate.
7168
4d696a5c
SM
71692020-03-12 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7172 not "true" or "false".
7173 * configure: Re-generate.
7174
8dd8e1c7
CB
71752020-03-12 Christian Biesinger <cbiesinger@google.com>
7176
7177 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7178 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7179 renamed to arm_nbsd_supply_gregset.
7180 (fetch_register): Update to call arm_nbsd_supply_gregset.
7181 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7182 (arm_netbsd_nat_target::fetch_registers): Update.
7183 (fetch_elfcore_registers): Removed.
7184 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7185 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7186 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7187 not require NetBSD system headers.
7188 (arm_nbsd_regset): New struct.
7189 (arm_nbsd_iterate_over_regset_sections): New function.
7190 (arm_netbsd_init_abi_common): Updated to call
7191 set_gdbarch_iterate_over_regset_sections.
7192 * arm-nbsd-tdep.h: New file.
7193
dd69bf7a
KB
71942020-03-11 Kevin Buettner <kevinb@redhat.com>
7195
7196 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7197 recursion.
7198
a0761e34
SM
71992020-03-11 Simon Marchi <simon.marchi@efficios.com>
7200
7201 * configure: Re-generate.
7202
e7a82140
TT
72032020-03-11 Tom Tromey <tromey@adacore.com>
7204
7205 * ada-typeprint.c (print_choices): Fix comment.
7206
dcc050c8
AB
72072020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7208
7209 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7210 previous item in the list, when the list has no items.
7211
1c33af77
TV
72122020-03-11 Tom de Vries <tdevries@suse.de>
7213
7214 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7215 PROP_LOCLIST handling code.
7216
8c95582d
AB
72172020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7218
7219 * buildsym-legacy.c (record_line): Pass extra parameter to
7220 record_line.
7221 * buildsym.c (buildsym_compunit::record_line): Take an extra
7222 parameter, reduce duplication in the line table, and record the
7223 is_stmt flag in the line table.
7224 * buildsym.h (buildsym_compunit::record_line): Add extra
7225 parameter.
7226 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7227 non-statement lines.
7228 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7229 this to the symtab builder.
7230 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7231 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7232 through to dwarf_record_line_1.
7233 * infrun.c (process_event_stop_test): When stepping, don't stop at
7234 a non-statement instruction, and only refresh the step info when
7235 we land in the middle of a line's range. Also add an extra
7236 comment.
7237 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7238 field.
7239 * record-btrace.c (btrace_find_line_range): Only record lines
7240 marked as is-statement.
7241 * stack.c (frame_show_address): Show the frame address if we are
7242 in a non-statement sal.
7243 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7244 (maintenance_print_one_line_table): Print a header for the is_stmt
7245 column, and include is_stmt information in the output.
7246 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7247 preference to non-statements.
7248 (find_pcs_for_symtab_line): Prefer is-statement entries.
7249 (find_line_common): Likewise.
7250 * symtab.h (struct linetable_entry): Add is_stmt field.
7251 (struct symtab_and_line): Likewise.
7252 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7253 arranging the line table.
7254
e4003a34
TV
72552020-03-07 Tom de Vries <tdevries@suse.de>
7256
7257 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7258 DIE.
7259
e8932576
TT
72602020-03-07 Tom Tromey <tom@tromey.com>
7261
7262 * valops.c (value_literal_complex): Remove obsolete comment.
7263 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7264 comment.
7265
29734269
SM
72662020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * infrun.h: Forward-declare thread_info.
7269 (set_step_info): Add thread_info parameter, add doc.
7270 * infrun.c (set_step_info): Add thread_info parameter, move doc
7271 to header.
7272 * infrun.c (process_event_stop_test): Pass thread to
7273 set_step_info call.
7274 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7275 set_step_info.
7276 (prepare_one_step): Add thread_info parameter, pass it to
7277 set_step_frame and prepare_one_step (recursive) call.
7278 (step_1): Pass thread to prepare_one_step call.
7279 (step_command_fsm::should_stop): Pass thread to
7280 prepare_one_step.
7281 (until_next_fsm): Pass thread to set_step_frame call.
7282 (finish_command): Pass thread to set_step_info call.
7283
b7d64b29
HD
72842020-03-06 Hannes Domani <ssbssa@yahoo.de>
7285
7286 * windows-tdep.c (windows_solib_create_inferior_hook):
7287 Check if inferior is running.
7288
09f2921c
TV
72892020-03-06 Tom de Vries <tdevries@suse.de>
7290
7291 * NEWS: Fix "the the".
7292 * ctfread.c: Same.
7293
fd760e79
TV
72942020-03-06 Tom de Vries <tdevries@suse.de>
7295
7296 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7297
20ea4a60
AB
72982020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * .dir-locals.el: Add a comment referencing the other copies of
7301 this file.
7302
0afbabf0
JB
73032020-03-05 John Baldwin <jhb@FreeBSD.org>
7304
7305 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7306 psargs.
7307
842806cb
TBA
73082020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7309
7310 * .gitattributes: New file.
7311
be1e3d3e
TT
73122020-03-04 Tom Tromey <tom@tromey.com>
7313
7314 * symmisc.c (print_symbol_bcache_statistics)
7315 (print_objfile_statistics): Update.
7316 * symfile.c (allocate_symtab): Use intern.
7317 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7318 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7319 macro_cache>: Remove.
7320 <string_cache>: New member.
7321 (struct objfile) <intern>: New methods.
7322 * elfread.c (elf_symtab_read): Use intern.
7323 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7324 (dwarf2_compute_name, dwarf2_physname)
7325 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7326 names.
7327 (guess_partial_die_structure_name): Update.
7328 (partial_die_info::fixup): Intern name.
7329 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7330 name.
7331 (dwarf2_name): Intern name. Update.
7332 * buildsym.c (buildsym_compunit::get_macro_table): Use
7333 string_cache.
7334
4e7625fd
TT
73352020-03-04 Tom Tromey <tom@tromey.com>
7336
7337 * jit.c (bfd_open_from_target_memory): Make "target" const.
7338 * corefile.c (gnutarget): Now const.
7339 * gdbcore.h (gnutarget): Now const.
7340
46f9f931
HD
73412020-03-04 Hannes Domani <ssbssa@yahoo.de>
7342
7343 * NEWS: Mention support for WOW64 processes.
7344 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7345 (amd64_windows_segment_register_p): Remove static.
7346 (_initialize_amd64_windows_nat): Update.
7347 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7348 * i386-windows-nat.c (context_offset): Update.
7349 (i386_mappings): Rename and remove static.
7350 (i386_windows_segment_register_p): Remove static.
7351 (_initialize_i386_windows_nat): Update.
7352 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7353 (STATUS_WX86_SINGLE_STEP): New macro.
7354 (EnumProcessModulesEx): New macro.
7355 (Wow64SuspendThread): New macro.
7356 (Wow64GetThreadContext): New macro.
7357 (Wow64SetThreadContext): New macro.
7358 (Wow64GetThreadSelectorEntry): New macro.
7359 (windows_set_context_register_offsets): Add static.
7360 (windows_set_segment_register_p): Likewise.
7361 (windows_add_thread): Adapt for WOW64 processes.
7362 (windows_fetch_one_register): Likewise.
7363 (windows_nat_target::fetch_registers): Likewise.
7364 (windows_store_one_register): Likewise.
7365 (display_selector): Likewise.
7366 (display_selectors): Likewise.
7367 (handle_exception): Likewise.
7368 (windows_continue): Likewise.
7369 (windows_nat_target::resume): Likewise.
7370 (windows_add_all_dlls): Likewise.
7371 (do_initial_windows_stuff): Likewise.
7372 (windows_nat_target::attach): Likewise.
7373 (windows_get_exec_module_filename): Likewise.
7374 (windows_nat_target::create_inferior): Likewise.
7375 (windows_xfer_siginfo): Likewise.
7376 (_initialize_loadable): Initialize Wow64SuspendThread,
7377 Wow64GetThreadContext, Wow64SetThreadContext,
7378 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7379 * windows-nat.h (windows_set_context_register_offsets):
7380 Remove declaration.
7381 (windows_set_segment_register_p): Likewise.
7382 (i386_windows_segment_register_p): Add declaration.
7383 (amd64_windows_segment_register_p): Likewise.
7384
440cf44e
LM
73852020-03-04 Luis Machado <luis.machado@linaro.org>
7386
7387 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7388 in "info registers" for AArch64/ARM.
7389
7390 The change caused "info registers" to not print GPR's.
7391
7392 gdb/ChangeLog:
7393
7394 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7395
7396 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7397 when reg->group is empty and reggroup is not.
7398
1009d92f
TT
73992020-03-03 Tom Tromey <tromey@adacore.com>
7400
7401 * dwarf2/frame.c (struct dwarf2_frame_cache)
7402 <checked_tailcall_bottom, entry_cfa_sp_offset,
7403 entry_cfa_sp_offset_p>: Remove members.
7404 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7405 (dwarf2_frame_prev_register): Don't call
7406 dwarf2_tailcall_sniffer_first.
7407 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7408 * frame-unwind.c (add_unwinder): New fuction.
7409 (frame_unwind_init): Use it. Add tailcall unwinder.
7410
5e5d66b6
AB
74112020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7412 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7413
7414 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7415 value should be printed as true.
7416
584cf46d
HD
74172020-03-03 Hannes Domani <ssbssa@yahoo.de>
7418
7419 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7420 (windows_init_abi): Set and use windows_so_ops.
7421
7b973adc
SDJ
74222020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7423
7424 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7425 when verifying if dealing with a convenience variable.
7426
bb7b70ab
LM
74272020-03-03 Luis Machado <luis.machado@linaro.org>
7428
7429 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7430
9822cb57
SM
74312020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * infrun.c (gdbarch_supports_displaced_stepping): New.
7434 (use_displaced_stepping): Break up conditions in smaller pieces.
7435 Use gdbarch_supports_displaced_stepping.
7436 (displaced_step_prepare_throw): Use
7437 gdbarch_supports_displaced_stepping.
7438
63e163f2
AB
74392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7440
7441 * NEWS: Mention new behaviour of the history filename.
7442 * top.c (write_history_p): Add comment.
7443 (show_write_history_p): Add header comment, give a different
7444 message when history writing is on, but the history filename is
7445 empty.
7446 (history_filename): Add comment.
7447 (history_filename_empty): New function.
7448 (show_history_filename): Add header comment, give a different
7449 message when the filename is empty.
7450 (init_history): Compare history_filename against nullptr, and only
7451 read history if the filename is not empty.
7452 (set_history_filename): Add header comment, and only make
7453 non-empty filenames absolute.
7454 (init_main): Make the filename argument to 'set history filename'
7455 optional.
7456
81b86b97
CB
74572020-03-02 Christian Biesinger <cbiesinger@google.com>
7458
7459 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7460 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7461 (fetch_fp_register): Update.
7462 (fetch_fp_regs): Update.
7463 (store_fp_register): Update.
7464 (store_fp_regs): Update.
7465 (arm_netbsd_nat_target::read_description): New function.
7466 (fetch_elfcore_registers): Update.
7467
24ed6739
AB
74682020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7471 general_thread if the stop reply is missing a thread-id.
7472 (remote_target::process_stop_reply): Use the first non-exited
7473 thread if the target didn't pass a thread-id.
7474 * infrun.c (do_target_wait): Move call to
7475 switch_to_inferior_no_thread to ....
7476 (do_target_wait_1): ... here.
7477
a84bb2a0
JT
74782020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7479
7480 * debuginfod-support.c: Include defs.h first.
7481
658dadf0
TV
74822020-02-28 Tom de Vries <tdevries@suse.de>
7483
7484 * symfile.c (set_initial_language): Use default language for lookup.
7485
4ebe4877
SM
74862020-02-28 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7489 reader variable, pass `this` to read_cutu_die_from_dwo.
7490
e5da1139
AM
74912020-02-27 Aaron Merey <amerey@redhat.com>
7492
7493 * source.c (open_source_file): Check for nullptr when computing
7494 srcpath.
7495
317f7127
TT
74962020-02-27 Tom Tromey <tromey@adacore.com>
7497
7498 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7499 member.
7500 (dwarf2_add_field): Don't update nfields.
7501 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7502
3104d9ee
AB
75032020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7504
7505 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7506 abs.
7507
b83470bf
TT
75082020-02-26 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7511 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7512 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7513 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7514 per_cu_data.
7515
edfe0a0c
TT
75162020-02-26 Tom Tromey <tom@tromey.com>
7517
7518 * dwarf2/index-write.c (psym_index_map): Change type.
7519 (add_address_entry_worker, write_one_signatured_type)
7520 (recursively_count_psymbols, recursively_write_psymbols)
7521 (class debug_names, psyms_seen_size, write_gdbindex)
7522 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7523
0d79cdc4
AM
75242020-02-26 Aaron Merey <amerey@redhat.com>
7525
7526 * Makefile.in: Handle optional debuginfod support.
7527 * NEWS: Update.
7528 * README: Add --with-debuginfod summary.
7529 * config.in: Regenerate.
7530 * configure: Regenerate.
7531 * configure.ac: Handle optional debuginfod support.
7532 * debuginfod-support.c: debuginfod helper functions.
7533 * debuginfod-support.h: Ditto.
7534 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7535 summary.
7536 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7537 when a dwz file cannot be found.
7538 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7539 debuginfo file cannot be found.
7540 * source.c (open_source_file): Query debuginfod servers when a
7541 source file cannot be found.
7542 * top.c (print_gdb_configuration): Include
7543 --{with,without}-debuginfod in the output.
7544
b65ce565
JG
75452020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7546
7547 * thread.c (thr_try_catch_cmd): Print thread name.
7548
d4c9a4f8
SM
75492020-02-26 Simon Marchi <simon.marchi@efficios.com>
7550
7551 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7552 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7553 dwarf2_fetch_die_type_sect_off): Move to...
7554 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7556 dwarf2_fetch_die_type_sect_off): ... here.
7557 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7558 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7559 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7560
0dce4280
TV
75612020-02-26 Tom de Vries <tdevries@suse.de>
7562
7563 PR gdb/25603
7564 * symfile.c (set_initial_language): Exit-early if
7565 language_mode == language_mode_manual.
7566
450a1bfc
SM
75672020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7568
7569 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7570 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7571 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7572
9e80cfa1
AB
75732020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7574
7575 * gdbtypes.c (create_array_type_with_stride): Handle negative
7576 array strides.
7577 * valarith.c (value_subscripted_rvalue): Likewise.
7578
09624f1f
LM
75792020-02-25 Luis Machado <luis.machado@linaro.org>
7580
7581 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7582
8cb5117c
SM
75832020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7584
7585 * loc.h (dwarf2_get_die_type): Move to...
7586 * read.h (dwarf2_get_die_type): ... here.
7587 * read.c (dwarf2_get_die_type): Move doc to header.
7588
c325c44e
JB
75892020-02-25 Joel Brobecker <brobecker@adacore.com>
7590
7591 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7592 'gnulib/Makefile.in' to the list.
7593
4ac93832
TT
75942020-02-24 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7597 Remove.
7598 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7599 XOBNEWVEC.
7600
197400e8
TT
76012020-02-24 Tom Tromey <tom@tromey.com>
7602
7603 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7604 New method.
7605 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7606 (dw2_do_instantiate_symtab, dw2_get_file_names)
7607 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7608
76935768
TT
76092020-02-24 Tom Tromey <tom@tromey.com>
7610
7611 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7612 make_scoped_restore.
7613 (dwarf2_psymtab::read_symtab): Don't clear
7614 reading_partial_symbols.
7615
a88ef40d
TV
76162020-02-24 Tom de Vries <tdevries@suse.de>
7617
7618 PR gdb/25592
7619 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7620
c9af6521
TV
76212020-02-24 Tom de Vries <tdevries@suse.de>
7622
7623 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7624 commands layout next/prev/regs.
7625
5707a07a
TT
76262020-02-22 Tom Tromey <tom@tromey.com>
7627
7628 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7629 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7630
3b0fb49e
TT
76312020-02-22 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7634
283be8bf
TT
76352020-02-22 Tom Tromey <tom@tromey.com>
7636
7637 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7638 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7639 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7640 * tui/tui.c (_initialize_tui): Add usage text.
7641
ca793b96
TT
76422020-02-22 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-win.c (tui_set_focus_command)
7645 (tui_set_win_height_command): Use error_no_arg.
7646 (_initialize_tui_win): Update help text.
7647 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7648
432b5c40
TT
76492020-02-22 Tom Tromey <tom@tromey.com>
7650
7651 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7652 * tui/tui-disasm.h (struct tui_disasm_window)
7653 <display_start_addr>: Declare.
7654 * tui/tui-source.h (struct tui_source_window)
7655 <display_start_addr>: Declare.
7656 * tui/tui-winsource.h (struct tui_source_window_base)
7657 <show_source_line, display_start_addr>: New methods.
7658 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7659 Rename and move to protected section.
7660 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7661 (tui_source_window_base::do_erase_source_content): Update.
7662 (tui_source_window_base::show_source_line): Now a method.
7663 (tui_source_window_base::show_source_content)
7664 (tui_source_window_base::tui_source_window_base)
7665 (tui_source_window_base::rerender)
7666 (tui_source_window_base::refill)
7667 (tui_source_window_base::do_scroll_horizontal)
7668 (tui_source_window_base::set_is_exec_point_at)
7669 (tui_source_window_base::update_breakpoint_info)
7670 (tui_source_window_base::update_exec_info): Update.
7671 * tui/tui-source.c (tui_source_window::set_contents)
7672 (tui_source_window::showing_source_p)
7673 (tui_source_window::do_scroll_vertical)
7674 (tui_source_window::location_matches_p)
7675 (tui_source_window::line_is_displayed): Update.
7676 (tui_source_window::display_start_addr): New method.
7677 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7678 (tui_disasm_window::do_scroll_vertical)
7679 (tui_disasm_window::location_matches_p): Update.
7680 (tui_disasm_window::display_start_addr): New method.
7681
01b1af32
TT
76822020-02-22 Tom Tromey <tom@tromey.com>
7683
7684 * NEWS: Add entry for gdb.register_window_type.
7685 * tui/tui-layout.h (window_factory): New typedef.
7686 (tui_register_window): Declare.
7687 * tui/tui-layout.c (saved_tui_windows): New global.
7688 (tui_apply_current_layout): Use it.
7689 (tui_register_window): New function.
7690 * python/python.c (do_start_initialization): Call
7691 gdbpy_initialize_tui.
7692 (python_GdbMethods): Add "register_window_type" function.
7693 * python/python-internal.h (gdbpy_register_tui_window)
7694 (gdbpy_initialize_tui): Declare.
7695 * python/py-tui.c: New file.
7696 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7697
fc96d20b
TT
76982020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7701
935c78c0
TT
77022020-02-22 Tom Tromey <tom@tromey.com>
7703
7704 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7705 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7706 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7707 (tui_set_win_focus_to): Move from tui-win.c.
7708
0240c8f1
TT
77092020-02-22 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7712 functions.
7713 (known_window_types): New global.
7714 (tui_get_window_by_name): Reimplement.
7715 (initialize_known_windows): New function.
7716 (validate_window_name): Rewrite.
7717 (_initialize_tui_layout): Call initialize_known_windows.
7718
fdb01f0c
TT
77192020-02-22 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7722 Remove constants.
7723 * tui/tui-winsource.h (struct tui_source_window_base)
7724 <tui_source_window_base>: Remove parameter.
7725 * tui/tui-winsource.c
7726 (tui_source_window_base::tui_source_window_base): Remove
7727 parameter.
7728 (tui_source_window_base::refill): Update.
7729 * tui/tui-stack.h (struct tui_locator_window)
7730 <tui_locator_window>: Update.
7731 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7732 Default the constructor.
7733 * tui/tui-regs.h (struct tui_data_item_window)
7734 <tui_data_item_window>: Default the constructor.
7735 (struct tui_data_window) <tui_data_window>: Likewise.
7736 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7737 Default the constructor.
7738 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7739 Default the constructor.
7740 <type>: Remove.
7741 (struct tui_win_info) <tui_win_info>: Default the constructor.
7742 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7743 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7744 Default the constructor.
7745
865a5aec
TT
77462020-02-22 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7749 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7750 * tui/tui-win.c (tui_resize_all): Don't call
7751 tui_delete_invisible_windows.
7752 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7753 done.
7754 (tui_set_layout): Update.
7755 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7756 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7757 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7758
e098d18c
TT
77592020-02-22 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7762 correctly.
7763
eb9c8874
TT
77642020-02-22 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7767
7eed1a8e
TT
77682020-02-22 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-winsource.h (struct tui_source_window_iterator)
7771 <inner_iterator>: New etytypedef.
7772 <tui_source_window_iterator>: Take "end" parameter.
7773 <tui_source_window_iterator>: Take iterator.
7774 <operator*, advance>: Update.
7775 <m_iter>: Change type.
7776 <m_end>: New field.
7777 (struct tui_source_windows) <begin, end>: Update.
7778 * tui/tui-layout.c (tui_windows): New global.
7779 (tui_apply_current_layout): Clear tui_windows.
7780 (tui_layout_window::apply): Update tui_windows.
7781 * tui/tui-data.h (tui_windows): Declare.
7782 (all_tui_windows): Now inline function.
7783 (class tui_window_iterator, struct all_tui_windows): Remove.
7784
7c043ba6
TT
77852020-02-22 Tom Tromey <tom@tromey.com>
7786
7787 PR tui/17850:
7788 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7789 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7790 "height" argument.
7791 (class tui_layout_window) <get_sizes>: Likewise.
7792 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7793 argument.
7794 <get_sizes>: Add "height" argument.
7795 <m_vertical>: New field.
7796 * tui/tui-layout.c (tui_layout_split::clone): Update.
7797 (tui_layout_split::get_sizes): Add "height" argument.
7798 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7799 (tui_new_layout_command): Parse "-horizontal".
7800 (_initialize_tui_layout): Update help string.
7801 (tui_layout_split::specification): Add "-horizontal" when needed.
7802 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7803 argument.
7804 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7805 New methods.
7806
6bc56648
TT
78072020-02-22 Tom Tromey <tom@tromey.com>
7808
7809 * tui/tui-layout.h (enum tui_adjust_result): New.
7810 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7811 (class tui_layout_window) <adjust_size>: Return
7812 tui_adjust_result. Rewrite.
7813 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7814 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7815
c22fef7e
TT
78162020-02-22 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7819 parameter and return types.
7820 (class tui_layout_base) <specification>: Add "depth".
7821 (class tui_layout_window) <specification>: Add "depth".
7822 (class tui_layout_split) <specification>: Add "depth".
7823 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7824 and return types.
7825 (tui_new_layout_command): Parse sub-layouts.
7826 (_initialize_tui_layout): Update help string.
7827 (tui_layout_window::specification): Add "depth".
7828 (add_layout_command): Update.
7829
ee325b61
TT
78302020-02-22 Tom Tromey <tom@tromey.com>
7831
7832 * NEWS: Add "tui new-layout" item.
7833 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7834 Add new-layout command to help text.
7835 (validate_window_name): New function.
7836 (tui_new_layout_command): New function.
7837 (_initialize_tui_layout): Register "new-layout".
7838 (tui_layout_window::specification): New method.
7839 (tui_layout_window::specification): New method.
7840 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7841 method.
7842 (class tui_layout_window) <specification>: New method.
7843 (class tui_layout_split) <specification>: New method.
7844
416eb92d
TT
78452020-02-22 Tom Tromey <tom@tromey.com>
7846
7847 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7848 * tui/tui-win.c (window_name_completer): Update comment.
7849 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7850 Declare method.
7851 (class tui_layout_window) <replace_window>: Likewise.
7852 (class tui_layout_split) <replace_window>: Likewise.
7853 (tui_set_layout): Don't declare.
7854 (tui_set_initial_layout): Declare function.
7855 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7856 (asm_regs_layout): New globals.
7857 (tui_current_layout, show_layout): Remove.
7858 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7859 (find_layout, tui_apply_layout): New function.
7860 (layout_completer): Remove.
7861 (tui_next_layout): Reimplement.
7862 (tui_next_layout_command): New function.
7863 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7864 (tui_regs_layout): Reimplement.
7865 (tui_regs_layout_command): New function.
7866 (extract_display_start_addr): Rewrite.
7867 (next_layout, prev_layout): Remove.
7868 (tui_layout_window::replace_window): New method.
7869 (tui_layout_split::replace_window): New method.
7870 (destroy_layout): New function.
7871 (layout_list): New global.
7872 (add_layout_command): New function.
7873 (initialize_layouts): Update.
7874 (tui_layout_command): New function.
7875 (_initialize_tui_layout): Install "layout" commands.
7876 * tui/tui-data.h (enum tui_layout_type): Remove.
7877 (tui_current_layout): Don't declare.
7878
0dbc2fc7
TT
78792020-02-22 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-regs.c (tui_reg_layout): Remove.
7882 (tui_reg_command): Use tui_regs_layout.
7883 * tui/tui-layout.h (tui_reg_command): Declare.
7884 * tui/tui-layout.c (tui_reg_command): New function.
7885
5afe342e
TT
78862020-02-22 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui.c (tui_rl_delete_other_windows): Call
7889 tui_remove_some_windows.
7890 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7891 Declare method.
7892 (class tui_layout_window) <remove_windows>: New method.
7893 (class tui_layout_split) <remove_windows>: Declare.
7894 (tui_remove_some_windows): Declare.
7895 * tui/tui-layout.c (tui_remove_some_windows): New function.
7896 (tui_layout_split::remove_windows): New method.
7897
427326a8
TT
78982020-02-22 Tom Tromey <tom@tromey.com>
7899
7900 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7901 * tui/tui-layout.h (tui_next_layout): Declare.
7902 * tui/tui-layout.c (tui_next_layout): New function.
7903
3fe12b6d
TT
79042020-02-22 Tom Tromey <tom@tromey.com>
7905
7906 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7907 correct coordinates.
7908
59b8b5d2
TT
79092020-02-22 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7912 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7913 DATA_WIN case.
7914
2a3d458b
TT
79152020-02-22 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7918 TUI_DISASM_WIN, not tui_win_list.
7919
3f0cbb04
TT
79202020-02-22 Tom Tromey <tom@tromey.com>
7921
7922 * valprint.c (generic_val_print_enum_1)
7923 (val_print_type_code_flags): Style member names.
7924 * rust-lang.c (val_print_struct, rust_print_enum)
7925 (rust_print_struct_def, rust_internal_print_type): Style member
7926 names.
7927 * p-valprint.c (pascal_object_print_value_fields): Style member
7928 names. Only call fprintf_symbol_filtered for static members.
7929 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7930 * f-valprint.c (f_val_print): Style member names.
7931 * f-typeprint.c (f_type_print_base): Style member names.
7932 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7933 call fprintf_symbol_filtered for static members.
7934 (cp_print_class_member): Style member names.
7935 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7936 member names.
7937 * ada-valprint.c (ada_print_scalar): Style enum names.
7938 (ada_val_print_enum): Likewise.
7939 * ada-typeprint.c (print_enum_type): Style enum names.
7940
d4d947ae
TT
79412020-02-21 Tom Tromey <tom@tromey.com>
7942
7943 * psympriv.h (struct partial_symtab): Update comment.
7944
e94e944b
TT
79452020-02-21 Tom Tromey <tromey@adacore.com>
7946
7947 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7948 type is CORE_ADDR.
7949
1eb73179
TV
79502020-02-21 Tom de Vries <tdevries@suse.de>
7951
7952 PR gdb/25534
7953 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7954 if dependencies[i]->user != NULL.
7955
4f180d53
AT
79562020-02-21 Ali Tamur <tamur@google.com>
7957
7958 * dwarf2/read.c (dwarf2_name): Add null check.
7959
22b6cd70
TT
79602020-02-20 Tom Tromey <tom@tromey.com>
7961
7962 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7963 ">=", in binary search.
7964 (dwarf2_find_containing_comp_unit): New overload.
7965 (run_test): New self-test.
7966 (_initialize_dwarf2_read): Register new test.
7967
bd0cf5a6
NC
79682020-02-20 Nelson Chu <nelson.chu@sifive.com>
7969
7970 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7971 * riscv-tdep.h: Likewise.
7972 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7973 rv32-only CSR.
7974 * features/riscv/64bit-csr.xml: Regenerated.
7975
3f702acd
SDJ
79762020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7977 Tom Tromey <tom@tromey.com>
7978
7979 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7980 of 'fputc_unfiltered'.
7981 (putchar_unfiltered): Call 'fputc_unfiltered'.
7982 (fputc_unfiltered): Call 'fputs_unfiltered'.
7983
d13c7322
AB
79842020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 * config.in: Regenerate.
7987 * configure: Regenerate.
7988 * configure.ac: Add --with-python-libdir option.
7989 * main.c: Use WITH_PYTHON_LIBDIR.
7990
869d8950
TT
79912020-02-19 Tom Tromey <tom@tromey.com>
7992
7993 * symtab.c (general_symbol_info::compute_and_set_names): Use
7994 obstack_strndup. Simplify call to symbol_set_demangled_name.
7995
298e9637
SM
79962020-02-19 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * dwarf2/read.c (allocate_signatured_type_table,
7999 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8000 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8001 Remove objfile parameter, update all callers.
8002
08410482
DE
80032020-02-19 Doug Evans <dje@google.com>
8004
8005 PR rust/25535
8006 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8007 rust_enum_variant calculation.
8008
dfdeeca1
TT
80092020-02-19 Tom Tromey <tromey@adacore.com>
8010
8011 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8012
2ef5453b
TT
80132020-02-19 Tom Tromey <tromey@adacore.com>
8014
8015 * ada-lang.c (cache_symbol): Use obstack_strdup.
8016
9f1528a1
AB
80172020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8018
8019 * configure: Regenerate.
8020
d3c22fa8
TT
80212020-02-19 Tom Tromey <tromey@adacore.com>
8022
8023 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8024 NULL check.
8025
bf84f706
MR
80262020-02-19 Maciej W. Rozycki <macro@wdc.com>
8027
8028 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8029
d1c9b20f
AB
80302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8031
8032 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8033 if GDBSERVER is not defined.
8034 (riscv_tdesc_cache): Likewise, also store const target_desc.
8035 (STATIC_IN_GDB): Define.
8036 (riscv_create_target_description): Update declaration with
8037 STATIC_IN_GDB.
8038 (riscv_lookup_target_description): New function, only define if
8039 GDBSERVER is not defined.
8040 * arch/riscv.h (riscv_create_target_description): Declare only
8041 when GDBSERVER is defined.
8042 (riscv_lookup_target_description): New declaration when GDBSERVER
8043 is not defined.
8044 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8045 (riscv_linux_read_features): ...this, and return
8046 riscv_gdbarch_features instead of target_desc.
8047 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8048 (riscv_linux_read_description): Rename to...
8049 (riscv_linux_read_features): ...this.
8050 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8051 Update to use riscv_gdbarch_features and
8052 riscv_lookup_target_description.
8053 * riscv-tdep.c (riscv_find_default_target_description): Use
8054 riscv_lookup_target_description instead of
8055 riscv_create_target_description.
8056
373d7ac0
SM
80572020-02-18 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * valprint.c (generic_val_print_enum_1): When printing a flag
8060 enum with value 0 and there is no enumerator with value 0, print
8061 just "0" instead of "(unknown: 0x0)".
8062
b29a2df0
SM
80632020-02-18 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * valprint.c (generic_val_print_enum_1): Print unknown part of
8066 flag enum in hex.
8067
6740f0cc
SM
80682020-02-18 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8071 flag enums to contain duplicate enumerators.
8072 * valprint.c (generic_val_print_enum_1): Update comment.
8073
edd45eb0
SM
80742020-02-18 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * dwarf2/read.c: Include "count-one-bits.h".
8077 (update_enumeration_type_from_children): If an enumerator has
8078 multiple bits set, don't treat the enumeration as a "flag enum".
8079 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8080 of flag enums have 0 or 1 bit set.
8081
6d0cf446
BE
80822020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8083
8084 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8085 conversion.
8086 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8087 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8088 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8089 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8090 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8091
7001c1b7
SM
80922020-02-18 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8095
fdb61c6c
SM
80962020-02-14 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8099 displaced_step_closure_up.
8100 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8101 (struct displaced_step_closure_up):
8102 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8103 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8104 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8105 Likewise.
8106 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8107 * gdbarch.c, gdbarch.h: Re-generate.
8108 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8109 displaced_step_closure_up.
8110 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8111 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8112 * infrun.h (displaced_step_closure_up): New type alias.
8113 (struct displaced_step_inferior_state) <step_closure>: Change
8114 type to displaced_step_closure_up.
8115 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8116 displaced_step_closure_up.
8117 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8118
a4a38eb4
TT
81192020-02-14 Tom Tromey <tom@tromey.com>
8120
8121 * minidebug.c (gnu_debug_key): New global.
8122 (find_separate_debug_file_in_section): Use it.
8123
e8217e61
SM
81242020-02-14 Simon Marchi <simon.marchi@efficios.com>
8125
8126 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8127 std::unique_ptr.
8128 * gdbarch.c: Re-generate.
8129 * gdbarch.h: Re-generate.
8130 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8131 change.
8132 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8133 type to std::unique_ptr.
8134 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8135 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8136 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8137 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8138 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8139 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8140 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8141 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8142 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8143
d8d83535
SM
81442020-02-14 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8147 std::unique_ptr.
8148 (displaced_step_clear): Rename to...
8149 (displaced_step_reset): ... this. Just call displaced->reset ().
8150 (displaced_step_clear_cleanup): Rename to...
8151 (displaced_step_reset_cleanup): ... this.
8152 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8153 (displaced_step_fixup): Likewise.
8154 (resume_1): Likewise.
8155 (handle_inferior_event): Restore child's memory before calling
8156 displaced_step_fixup on the parent.
8157 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8158 to std::unique_ptr.
8159 <step_closure>: Change type to std::unique_ptr.
8160
5f661e03
SM
81612020-02-14 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * arm-tdep.c: Include count-one-bits.h.
8164 (cleanup_block_store_pc): Use count_one_bits.
8165 (cleanup_block_load_pc): Use count_one_bits.
8166 (arm_copy_block_xfer): Use count_one_bits.
8167 (thumb2_copy_block_xfer): Use count_one_bits.
8168 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8169 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8170 (thumb_get_next_pcs_raw): Use count_one_bits.
8171 (arm_get_next_pcs_raw): Use count_one_bits_l.
8172 * arch/arm.c (bitcount): Remove.
8173 * arch/arm.h (bitcount): Remove.
8174
8084e579
TT
81752020-02-14 Tom Tromey <tromey@adacore.com>
8176
8177 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8178 Update.
8179 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8180 * dwarf2/loc.c (call_site_find_chain_1): Return
8181 unique_xmalloc_ptr.
8182 (call_site_find_chain): Likewise.
8183
258bf0ee
RB
81842020-02-14 Richard Biener <rguenther@suse.de>
8185
8186 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8187 on expression with division operators.
8188
f98a8458
AKS
81892020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8190
8191 * MAINTAINERS (Write After Approval): Adding myself.
8192
d1437c0e
TT
81932020-02-12 Tom Tromey <tom@tromey.com>
8194
8195 * event-loop.c (event_data, gdb_event, event_handler_func):
8196 Remove.
8197
3d4560f7
TT
81982020-02-12 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8201 (dwarf2_frame_objfile_data): Add comment.
8202 (find_comp_unit, set_comp_unit): New functions.
8203 (dwarf2_frame_find_fde): Use find_comp_unit.
8204 (dwarf2_build_frame_info): Use set_comp_unit.
8205
21982304
TT
82062020-02-12 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8209 (comp_unit): Don't initialize objfile.
8210 (execute_cfa_program): Add text_offset parameter.
8211 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8212 (dwarf2_frame_cache): Update.
8213 (dwarf2_build_frame_info): Don't set "objfile" member.
8214
4debb237
TT
82152020-02-12 Tom Tromey <tom@tromey.com>
8216
8217 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8218 (decode_frame_entry): Likewise.
8219 (dwarf2_build_frame_info): Update.
8220
0d404d44
TT
82212020-02-12 Tom Tromey <tom@tromey.com>
8222
8223 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8224 (decode_frame_entry_1): Use the comp_unit obstack.
8225
a7a3ae5c
TT
82262020-02-12 Tom Tromey <tom@tromey.com>
8227
8228 * dwarf2/frame.c (struct comp_unit): Add initializers and
8229 constructor.
8230 (dwarf2_frame_objfile_data): Store a comp_unit.
8231 (dwarf2_frame_find_fde): Update.
8232 (dwarf2_build_frame_info): Use "new".
8233
a9d65418
TT
82342020-02-12 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8237 (dwarf2_fde_table): Typedef for std::vector.
8238 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8239 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8240 (decode_frame_entry): Update.
8241 (dwarf2_build_frame_info): Use "new".
8242
7559c217
CB
82432020-02-12 Christian Biesinger <cbiesinger@google.com>
8244
8245 * arm-tdep.c (arm_gdbarch_init): Update.
8246 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8247 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8248 have_neon, is_m>: Change to bool.
8249
aeefc73c
CB
82502020-02-12 Christian Biesinger <cbiesinger@google.com>
8251
8252 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8253
d27b8e5f
TT
82542020-02-12 Tom Tromey <tom@tromey.com>
8255
8256 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8257
cd5900f3
HD
82582020-02-12 Hannes Domani <ssbssa@yahoo.de>
8259
8260 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8261 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8262
f056b22b
TT
82632020-02-11 Tom Tromey <tom@tromey.com>
8264
8265 * psymtab.h: Update comment.
8266
f92ff6b5
TT
82672020-02-11 Tom Tromey <tom@tromey.com>
8268
8269 * gdb_obstack.h (struct auto_obstack): Use
8270 DISABLE_COPY_AND_ASSIGN.
8271
3fd6912b
TT
82722020-02-11 Tom Tromey <tom@tromey.com>
8273
8274 * dwarf2/frame.h (struct objfile): Don't forward declare.
8275
69ed9b74
CB
82762020-02-11 Christian Biesinger <cbiesinger@google.com>
8277
8278 * cris-tdep.c (cris_supply_gregset): Change signature to match
8279 what struct regset expects.
8280 (cris_regset): New struct.
8281 (fetch_core_registers): Remove.
8282 (cris_iterate_over_regset_sections): New function.
8283 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8284 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8285
bda874f6
CB
82862020-02-11 Christian Biesinger <cbiesinger@google.com>
8287
8288 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8289 registers.
8290
754e1564
CB
82912020-02-11 Christian Biesinger <cbiesinger@google.com>
8292
8293 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8294
8ddd8e0e
SM
82952020-02-11 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * configure: Re-generate.
8298
898e7f60
SM
82992020-02-11 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * configure: Re-generate.
8302
58df732b
SM
83032020-02-11 Simon Marchi <simon.marchi@efficios.com>
8304
8305 * acinclude: Update warning.m4 path.
8306 * warning.m4: Move to gdbsupport.
8307
da5bd37e
TT
83082020-02-11 Tom Tromey <tromey@adacore.com>
8309
8310 * remote.c (remote_console_output): Update.
8311 * printcmd.c (printf_command): Update.
8312 * event-loop.c (gdb_wait_for_event): Update.
8313 * linux-nat.c (sigchld_handler): Update.
8314 * remote-sim.c (gdb_os_write_stdout): Update.
8315 (gdb_os_flush_stdout): Update.
8316 (gdb_os_flush_stderr): Update.
8317 (gdb_os_write_stderr): Update.
8318 * exceptions.c (print_exception): Update.
8319 * remote-fileio.c (remote_fileio_func_read): Update.
8320 (remote_fileio_func_write): Update.
8321 * tui/tui.c (tui_enable): Update.
8322 * tui/tui-interp.c (tui_interp::init): Update.
8323 * utils.c (init_page_info): Update.
8324 (putchar_unfiltered, fputc_unfiltered): Update.
8325 (gdb_flush): Update.
8326 (emit_style_escape): Update.
8327 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8328 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8329 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8330 (stderr_file::write): Update.
8331 (stderr_file::puts): Update.
8332 * ui-file.h (ui_file_isatty, ui_file_write)
8333 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8334 (ui_file_puts): Don't declare.
8335
85f0dd3c
TV
83362020-02-10 Tom de Vries <tdevries@suse.de>
8337
8338 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8339 sentinel to char *.
8340
2e927613
TV
83412020-02-09 Tom de Vries <tdevries@suse.de>
8342
8343 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8344 filename if it matches "<artificial>".
8345
6bafc845
HD
83462020-02-09 Hannes Domani <ssbssa@yahoo.de>
8347
8348 * windows-tdep.c (struct enum_value_name): New struct.
8349 (create_enum): New function.
8350 (windows_get_siginfo_type): Create and use enum types.
8351
7928d571
HD
83522020-02-09 Hannes Domani <ssbssa@yahoo.de>
8353
8354 * NEWS: Mention $_siginfo support for Windows.
8355 * windows-nat.c (handle_exception): Set siginfo_er.
8356 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8357 (windows_xfer_siginfo): New function.
8358 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8359 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8360 (init_windows_gdbarch_data): New function.
8361 (get_windows_gdbarch_data): New function.
8362 (windows_get_siginfo_type): New function.
8363 (windows_init_abi): Register windows_get_siginfo_type.
8364 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8365
6751ebae
TT
83662020-02-08 Tom Tromey <tom@tromey.com>
8367
8368 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8369 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8370 <keep>: Declare method.
8371 <m_keep>: Remove member.
8372 <~cutu_reader>: Remove.
8373 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8374 (cutu_reader::cutu_reader): Update.
8375 (cutu_reader::keep): Rename from ~cutu_reader.
8376 (process_psymtab_comp_unit, build_type_psymtabs_1)
8377 (process_skeletonless_type_unit, load_partial_comp_unit)
8378 (load_full_comp_unit, dwarf2_read_addr_index)
8379 (read_signatured_type): Update.
8380
135f5437
TT
83812020-02-08 Tom Tromey <tom@tromey.com>
8382
8383 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8384 "want_partial_unit" parameter.
8385 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8386 Inline check for DW_TAG_partial_unit.
8387 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8388
9f66ff1c
TT
83892020-02-08 Tom Tromey <tom@tromey.com>
8390
8391 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8392 read.c.
8393 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8394 read.c.
8395
c8a7a66f
TT
83962020-02-08 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/read.c (read_address): Move to comp-unit.c.
8399 (dwarf2_rnglists_process, dwarf2_ranges_process)
8400 (read_attribute_value, dwarf_decode_lines_1)
8401 (var_decode_location, decode_locdesc): Update.
8402 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8403 read.c. Remove "cu" parameter.
8404 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8405 method.
8406
8266302d
TT
84072020-02-08 Tom Tromey <tom@tromey.com>
8408
8409 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8410 (read_indirect_line_string): Update.
8411 * dwarf2/comp-unit.c (read_offset): Remove.
8412 (read_comp_unit_head): Update.
8413 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8414 method.
8415 (read_offset): Don't declare.
8416
4057dfde
TT
84172020-02-08 Tom Tromey <tom@tromey.com>
8418
8419 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8420 * dwarf2/read.c (struct comp_unit_head): Move to
8421 dwarf2/comp-unit.h.
8422 (enum class rcuh_kind): Move to comp-unit.h.
8423 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8424 (read_comp_unit_head, error_check_comp_unit_head)
8425 (read_and_check_comp_unit_head): Move to comp-unit.c.
8426 (read_offset, dwarf_unit_type_name): Likewise.
8427 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8428 (cutu_reader::cutu_reader, read_call_site_scope)
8429 (find_partial_die, follow_die_offset): Update.
8430 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8431
24aa364d
TT
84322020-02-08 Tom Tromey <tom@tromey.com>
8433
8434 * dwarf2/read.c (read_offset_1): Move to leb.c.
8435 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8436 (dwarf_decode_macro_bytes): Update.
8437 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8438 * dwarf2/leb.h (read_offset): Declare.
8439
2c7d5afc
TT
84402020-02-08 Tom Tromey <tom@tromey.com>
8441
8442 * dwarf2/read.c (dwarf2_section_size): Remove.
8443 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8444 Update.
8445 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8446
4075cb26
TT
84472020-02-08 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (read_initial_length): Move to leb.c.
8450 * dwarf2/leb.h (read_initial_length): Declare.
8451 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8452 handle_nonstd parameter.
8453 * dwarf2/frame.c (read_initial_length): Remove.
8454 (decode_frame_entry_1): Update.
8455
09ba997f
TT
84562020-02-08 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/loc.c (dwarf2_find_location_expression)
8459 (dwarf_evaluate_loc_desc::get_tls_address)
8460 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8461 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8462 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8463 (dwarf2_compile_property_to_c)
8464 (dwarf2_loc_desc_get_symbol_read_needs)
8465 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8466 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8467 (loclist_describe_location, loclist_tracepoint_var_ref)
8468 (loclist_generate_c_location): Update.
8469 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8470 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8471 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8472 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8473 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8474 (dwarf2_per_cu_data::addr_size)
8475 (dwarf2_per_cu_data::ref_addr_size)
8476 (dwarf2_per_cu_data::text_offset)
8477 (dwarf2_per_cu_data::addr_type): Now methods.
8478 (per_cu_header_read_in): Make per_cu "const".
8479 (dwarf2_version): Remove.
8480 (dwarf2_per_cu_data::int_type): Now a method.
8481 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8482 (set_die_type, read_array_type, read_subrange_index_type)
8483 (read_tag_string_type, read_subrange_type): Update.
8484 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8485 offset_size, ref_addr_size, text_offset, addr_type, version,
8486 objfile, int_type, addr_sized_int_type>: Declare methods.
8487
96c738c0
TT
84882020-02-08 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8491 Move earlier.
8492
8fdd972c
TT
84932020-02-08 Tom Tromey <tom@tromey.com>
8494
8495 * dwarf2/read.h (dwarf_line_debug): Declare.
8496 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8497 * dwarf2/read.c: Move line_header code to new files.
8498 (dwarf_line_debug): No longer static.
8499 * dwarf2/line-header.c: New file.
8500 * dwarf2/line-header.h: New file.
8501
03075812
TT
85022020-02-08 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/read.c (struct line_header) <file_full_name,
8505 file_file_name>: Return unique_xmalloc_ptr.
8506 (line_header::file_file_name): Update.
8507 (line_header::file_full_name): Update.
8508 (dw2_get_file_names_reader): Update.
8509 (macro_start_file): Update.
8510
bb822404
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/read.c (struct line_header) <file_full_name,
8514 file_file_name>: Declare methods.
8515 (dw2_get_file_names_reader): Update.
8516 (file_file_name): Now a method.
8517 (file_full_name): Likewise.
8518 (macro_start_file): Update.
8519
009b64fc
TT
85202020-02-08 Tom Tromey <tom@tromey.com>
8521
8522 * dwarf2/read.c (dwarf_always_disassemble)
8523 (show_dwarf_always_disassemble): Move to loc.c.
8524 (_initialize_dwarf2_read): Move "always-disassemble" registration
8525 to loc.c.
8526 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8527 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8528 static.
8529 (show_dwarf_always_disassemble): Move from read.c.
8530 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8531
5895093f
TT
85322020-02-08 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8535 (create_quick_file_names_table): Return htab_up.
8536 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8537 Update.
8538 * dwarf2/read.h (struct dwarf2_per_objfile)
8539 <quick_file_names_table>: Now htab_up.
8540
b3b32279
TT
85412020-02-08 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8544
1d33d811
TT
85452020-02-08 Tom Tromey <tom@tromey.com>
8546
8547 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8548 Rewrite.
8549 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8550 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8551 (abbrev_table::abbrev_table): No longer inline.
8552 (ABBREV_HASH_SIZE): Remove.
8553 (abbrev_table::m_abbrevs): Now an htab_up.
8554
86de1d91
TT
85552020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8558 (cutu_reader): Update.
8559 (build_type_psymtabs_1): Update.
8560 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8561 (abbrev_table::alloc_abbrev): Update.
8562 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8563 (abbrev_table::read): New static method, renamed from
8564 abbrev_table_read_table.
8565 (abbrev_table::alloc_abbrev)
8566 (abbrev_table::add_abbrev): Now private.
8567 (abbrev_table::abbrev_table): Now private.
8568 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8569
0335378b
TT
85702020-02-08 Tom Tromey <tom@tromey.com>
8571
8572 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8573 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8574 htab_up.
8575
48b490f2
TT
85762020-02-08 Tom Tromey <tom@tromey.com>
8577
8578 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8579 htab_up.
8580 (lookup_dwo_unit_in_dwp): Update.
8581 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8582 on obstack.
8583
bc68fb19
TT
85842020-02-08 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8587 obstack.
8588
d15acc42
TT
85892020-02-08 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8592 line_header_hash.
8593 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8594 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8595 Change type to htab_up.
8596
eaa5fa8b
TT
85972020-02-08 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8600 htab_up. Don't allocate on obstack.
8601 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8602 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8603 Change type to htab_up.
8604
b0b6a987
TT
86052020-02-08 Tom Tromey <tom@tromey.com>
8606
8607 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8608 Change type to htab_up.
8609 * dwarf2/read.c (create_signatured_type_table_from_index)
8610 (create_signatured_type_table_from_debug_names)
8611 (create_all_type_units, add_type_unit)
8612 (lookup_dwo_signatured_type, lookup_signatured_type)
8613 (process_skeletonless_type_unit): Update.
8614 (create_debug_type_hash_table, create_debug_types_hash_table):
8615 Change type of types_htab.
8616 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8617 htab_up. Don't allocate on obstack.
8618 (create_cus_hash_table): Change type of cus_htab parameter.
8619 (struct dwo_file) <cus, tus>: Now htab_up.
8620 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8621 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8622 (queue_and_load_all_dwo_tus): Update.
8623 * dwarf2/index-write.c (write_gdbindex): Update.
8624 (write_debug_names): Update.
8625
39856def
TT
86262020-02-08 Tom Tromey <tom@tromey.com>
8627
8628 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8629 dwarf2/read.c. Remove "next" member. Add constructor ntad
8630 destructor.
8631 (struct dwarf2_per_objfile) <queue>: New member.
8632 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8633 dwarf2/read.h.
8634 (dwarf2_queue, dwarf2_queue_tail): Remove.
8635 (class dwarf2_queue_guard): Add parameter to constructor. Use
8636 DISABLE_COPY_AND_ASSIGN.
8637 <m_per_objfile>: New member.
8638 <~dwarf2_queue_guard>: Rewrite.
8639 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8640 Update.
8641 (~dwarf2_queue_item): New.
8642
3e225074
TT
86432020-02-08 Tom Tromey <tom@tromey.com>
8644
8645 * dwarf2/read.c (struct die_info) <has_children>: New member.
8646 (dw2_get_file_names_reader): Remove has_children.
8647 (dw2_get_file_names): Update.
8648 (read_cutu_die_from_dwo): Remove has_children.
8649 (cutu_reader::init_tu_and_read_dwo_dies)
8650 (cutu_reader::cutu_reader): Update.
8651 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8652 Remove has_children.
8653 (build_type_psymtabs_1, process_skeletonless_type_unit)
8654 (load_partial_comp_unit, load_full_comp_unit): Update.
8655 (create_dwo_cu_reader): Remove has_children.
8656 (create_cus_hash_table, read_die_and_children): Update.
8657 (read_full_die_1,read_full_die): Remove has_children.
8658 (read_signatured_type): Update.
8659 (class cutu_reader) <has_children>: Remove.
8660
82ca8957
TT
86612020-02-08 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2/expr.c: Rename from dwarf2expr.c.
8664 * dwarf2/expr.h: Rename from dwarf2expr.h.
8665 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8666 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8667 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8668 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8669 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8670 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8671 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8672 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8673 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8674 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8675 * dwarf2/loc.c: Rename from dwarf2loc.c.
8676 * dwarf2/loc.h: Rename from dwarf2loc.h.
8677 * dwarf2/read.c: Rename from dwarf2read.c.
8678 * dwarf2/read.h: Rename from dwarf2read.h.
8679 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8680 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8681 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8682 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8683 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8684 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8685 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8686 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8687 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8688 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8689 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8690 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8691 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8692 Update.
8693 * Makefile.in (COMMON_SFILES): Update.
8694 (HFILES_NO_SRCDIR): Update.
8695
9e35d499
TT
86962020-02-08 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8699 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8700
1eba2311
TT
87012020-02-08 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2read.h (struct die_info): Don't declare.
8704
e41c2da2
TT
87052020-02-08 Tom Tromey <tom@tromey.com>
8706
8707 * dwarf2read.h (die_info_ptr): Remove typedef.
8708
4fc6c0d5
TT
87092020-02-08 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2read.c (read_call_site_scope)
8712 (handle_data_member_location, dwarf2_add_member_fn)
8713 (mark_common_block_symbol_computed, read_common_block)
8714 (attr_to_dynamic_prop, partial_die_info::read)
8715 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8716 (dwarf2_symbol_mark_computed, set_die_type): Update.
8717 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8718 method.
8719 (attr_form_is_block): Don't declare.
8720 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8721
cd6c91b4
TT
87222020-02-08 Tom Tromey <tom@tromey.com>
8723
8724 * dwarf2read.c (dwarf2_find_base_address, )
8725 (read_call_site_scope, rust_containing_type)
8726 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8727 (handle_data_member_location, dwarf2_add_member_fn)
8728 (get_alignment, read_structure_type, process_structure_scope)
8729 (mark_common_block_symbol_computed, read_common_block)
8730 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8731 (partial_die_info::read, read_attribute_value, new_symbol)
8732 (lookup_die_type, dwarf2_get_ref_die_offset)
8733 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8734 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8735 (dwarf2_symbol_mark_computed): Update.
8736 * dwarf2/attribute.h (struct attribute) <value_as_address,
8737 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8738 methods.
8739 (value_as_address, attr_form_is_section_offset)
8740 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8741 * dwarf2/attribute.c (attribute::value_as_address)
8742 (attribute::form_is_section_offset, attribute::form_is_constant)
8743 (attribute::form_is_ref): Now methods.
8744
162dce55
TT
87452020-02-08 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2read.c (struct attribute, DW_STRING)
8748 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8749 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8750 (attr_form_is_block, attr_form_is_section_offset)
8751 (attr_form_is_constant, attr_form_is_ref): Move.
8752 * dwarf2/attribute.h: New file.
8753 * dwarf2/attribute.c: New file, from dwarf2read.c.
8754 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8755
3054dd54
TT
87562020-02-08 Tom Tromey <tom@tromey.com>
8757
8758 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8759 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8760 Move.
8761 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8762 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8763 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8764 abbrev.c.
8765 * dwarf2/abbrev.h: New file.
8766 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8767 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8768
96b79293
TT
87692020-02-08 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8772 (dwarf2_section_size, dwarf2_get_section_info)
8773 (create_signatured_type_table_from_debug_names)
8774 (create_addrmap_from_aranges, read_debug_names_from_section)
8775 (get_gdb_index_contents_from_section, read_comp_unit_head)
8776 (error_check_comp_unit_head, read_abbrev_offset)
8777 (create_debug_type_hash_table, init_cu_die_reader)
8778 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8779 (read_comp_units_from_section, create_cus_hash_table)
8780 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8781 (create_dwp_v2_section, dwarf2_rnglists_process)
8782 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8783 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8784 (read_indirect_string_from_dwz, read_addr_index_1)
8785 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8786 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8787 (fill_in_loclist_baton): Update.
8788 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8789 get_containing_section, get_bfd_owner, get_bfd_section,
8790 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8791 (dwarf2_read_section, get_section_name, get_section_file_name)
8792 (get_containing_section, get_section_bfd_owner)
8793 (get_section_bfd_section, get_section_name, get_section_file_name)
8794 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8795 declare.
8796 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8797 (dwarf2_section_info::get_bfd_owner)
8798 (dwarf2_section_info::get_bfd_section)
8799 (dwarf2_section_info::get_name)
8800 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8801 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8802 (dwarf2_section_info::read): Now methods.
8803 * dwarf-index-write.c (class debug_names): Update.
8804
2c86cff9
TT
88052020-02-08 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8808 Move to dwarf2/section.h.
8809 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8810 (get_section_bfd_section, get_section_name)
8811 (get_section_file_name, get_section_id, get_section_flags)
8812 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8813 dwarf2/section.c.
8814 * dwarf2/section.h: New file.
8815 * dwarf2/section.c: New file, from dwarf2read.c.
8816 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8817
f4382c45
TT
88182020-02-08 Tom Tromey <tom@tromey.com>
8819
8820 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8821 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8822 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8823 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8824 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8825 * dwarf2/leb.h: New file, from dwarf2read.c.
8826 * dwarf2/leb.c: New file, from dwarf2read.c.
8827 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8828 Remove.
8829 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8830 (COMMON_SFILES): Add dwarf2/leb.c.
8831
01840b7a
JB
88322020-02-08 Joel Brobecker <brobecker@adacore.com>
8833
8834 GDB 9.1 released.
8835
dfcb27e4
IB
88362020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8837
8838 PR gdb/25190:
aac66a4c
SM
8839 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8840 * gdb/remote.c (remote_console_output): Update.
8841 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8842 (ui_file_puts): ...this.
8843 * gdb/ui-file.h (ui_file_puts): Add declaration.
8844 * gdb/utils.c (emit_style_escape): Update.
8845 (flush_wrap_buffer): Update.
8846 (fputs_maybe_filtered): Update.
8847 (fputs_unfiltered): Add function.
dfcb27e4 8848
faa17681
IB
88492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8850
aac66a4c
SM
8851 * gdb/event-loop.c (gdb_wait_for_event): Update.
8852 * gdb/printcmd.c (printf_command): Update.
8853 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8854 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8855 (gdb_os_flush_stderr): Update.
8856 * gdb/remote.c (remote_console_output): Update.
8857 * gdb/ui-file.c (gdb_flush): Rename to...
8858 (ui_file_flush): ...this.
8859 (stderr_file::write): Update.
8860 (stderr_file::puts): Update.
8861 * gdb/ui-file.h (gdb_flush): Rename to...
8862 (ui_file_flush): ...this.
8863 * gdb/utils.c (gdb_flush): Add function.
8864 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8865
5abbbe1d
TT
88662020-02-07 Tom Tromey <tromey@adacore.com>
8867
8868 PR breakpoints/24915:
8869 * source.c (find_and_open_source): Do not check basenames_may_differ.
8870
919adfe8
TT
88712020-02-07 Tom Tromey <tom@tromey.com>
8872
8873 * README: Update gdbserver documentation.
8874 * gdbserver: Move to top level.
8875 * configure.tgt (build_gdbserver): Remove.
8876 * configure.ac: Remove --enable-gdbserver.
8877 * configure: Rebuild.
8878 * Makefile.in (distclean): Don't mention gdbserver.
8879
1d5d29e7
SV
88802020-02-06 Shahab Vahedi <shahab@synopsys.com>
8881
8882 * source-cache.c (source_cache::ensure): Surround
8883 get_plain_source_lines with a try/catch.
8884 (source_cache::get_line_charpos): Get rid of try/catch
8885 and only check for the return value of "ensure".
8886 * tui/tui-source.c (tui_source_window::set_contents):
8887 Simplify "nlines" calculation.
8888
6eb1129c
SV
88892020-02-06 Shahab Vahedi <shahab@synopsys.com>
8890
8891 * MAINTAINERS (Write After Approval): Add myself.
8892
c6a42d11
CB
88932020-02-05 Christian Biesinger <cbiesinger@google.com>
8894
8895 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8896 function call.
8897
c8ecdda6
CB
88982020-02-05 Christian Biesinger <cbiesinger@google.com>
8899
8900 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8901
f6480e70
MR
89022020-02-05 Maciej W. Rozycki <macro@wdc.com>
8903
8904 * nat/riscv-linux-tdesc.h: New file.
8905 * nat/riscv-linux-tdesc.c: New file, taking code from...
8906 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8907 ... here.
8908 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8909 NATDEPFILES.
8910
dcc9fbc6
AB
89112020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8914 we don't set the fake simulator ptid to the null_ptid.
8915
719546c4
SM
89162020-02-03 Simon Marchi <simon.marchi@efficios.com>
8917
8918 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8919 * gdbthread.h (class thread_info) <resumed>: Likewise.
8920 * infrun.c (resume_1): Likewise.
8921 (proceed): Likewise.
8922 (infrun_thread_stop_requested): Likewise.
8923 (stop_all_threads): Likewise.
8924 (handle_inferior_event): Likewise.
8925 (restart_threads): Likewise.
8926 (finish_step_over): Likewise.
8927 (keep_going_stepped_thread): Likewise.
8928 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8929 (linux_handle_extended_wait): Likewise.
8930 * record-btrace.c (get_thread_current_frame_id): Likewise.
8931 * record-full.c (record_full_wait_1): Likewise.
8932 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8933 * target.c (target_resume): Likewise.
8934 * thread.c (set_running_thread): Likewise.
8935
e409c542
AKS
89362020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8937
8938 * f-valprint.c (f77_print_array_1): Changed datatype of index
8939 variable to LONGEST from int to enable it to contain bound
8940 values correctly.
8941
ee98c0da
MR
89422020-02-03 Maciej W. Rozycki <macro@wdc.com>
8943
8944 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8945 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8946 offsets according to FLEN determined.
8947 (riscv_linux_nat_target::read_description): Determine FLEN
8948 dynamically.
8949 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8950 according to FLEN determined.
8951 (riscv_linux_nat_target::store_registers): Likewise.
8952
aa66aac4
SV
89532020-02-01 Shahab Vahedi <shahab@synopsys.com>
8954
8955 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8956 when reg->group is empty and reggroup is not.
8957
fd9faca8
TT
89582020-01-31 Tom Tromey <tromey@adacore.com>
8959
8960 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8961 Call beneath target's mourn_inferior after unpushing.
8962
42330a68
AB
89632020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 PR tui/9765
8966 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8967 have enough lines to fill the screen, still return the lowest
8968 address we found.
8969
7a27a45b
AB
89702020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8973 '-', '<', and '>' commands.
8974
c47f70e2
PA
89752020-01-29 Pedro Alves <palves@redhat.com>
8976 Sergio Durigan Junior <sergiodj@redhat.com>
8977
8978 * infcmd.c (construct_inferior_arguments): Assert that
8979 'argc' is greater than 0.
8980
5133a315
LM
89812020-01-29 Luis Machado <luis.machado@linaro.org>
8982
8983 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8984 (BRK_INSN_MASK): Define to 0xd4200000.
8985 (aarch64_program_breakpoint_here_p): New function.
8986 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8987 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8988 breakpoint.c.
8989 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8990 breakpoint.h
8991 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8992 call gdbarch_program_breakpoint_here_p.
8993 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8994 default_program_breakpoint_here_p, changed return type to bool and
8995 simplified.
8996 * breakpoint.h (program_breakpoint_here): Moved prototype to
8997 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8998 return type to bool.
8999 * gdbarch.c: Regenerate.
9000 * gdbarch.h: Regenerate.
9001 * gdbarch.sh (program_breakpoint_here_p): New method.
9002 * infrun.c (handle_signal_stop): Call
9003 gdbarch_program_breakpoint_here_p.
9004
168f8c6b
TT
90052020-01-26 Tom Tromey <tom@tromey.com>
9006
9007 * ctfread.c (struct ctf_fp_info): Reindent.
9008 (_initialize_ctfread): Remove.
9009
128a391f
TT
90102020-01-26 Tom Tromey <tom@tromey.com>
9011
9012 * psymtab.c (partial_map_expand_apply)
9013 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9014 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9015 (psym_print_stats, psym_expand_symtabs_for_function)
9016 (psym_map_symbol_filenames, psym_map_matching_symbols)
9017 (psym_expand_symtabs_matching)
9018 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9019 (maintenance_check_psymtabs): Use new methods.
9020 * psympriv.h (struct partial_symtab) <readin_p,
9021 get_compunit_symtab>: New methods.
9022 <readin, compunit_symtab>: Remove members.
9023 (struct standard_psymtab): New.
9024 (struct legacy_psymtab): Derive from standard_psymtab.
9025 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9026 standard_psymtab.
9027 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9028
0494dbec
TT
90292020-01-26 Tom Tromey <tom@tromey.com>
9030
9031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9032 read_dependencies. Add assert.
9033 * psymtab.c (partial_symtab::read_dependencies): New method.
9034 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9035 method.
9036 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9037 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9038 read_dependencies.
9039 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9040 Add assert.
9041
8566b89b
TT
90422020-01-26 Tom Tromey <tom@tromey.com>
9043
9044 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9045 Call expand_psymtab.
9046 (xcoff_read_symtab): Call expand_psymtab.
9047 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9048 legacy_expand_psymtab.
9049 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9050 method.
9051 (struct legacy_psymtab) <expand_psymtab>: Implement.
9052 <legacy_expand_psymtab>: New member.
9053 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9054 (parse_partial_symbols): Set legacy_expand_psymtab.
9055 (psymtab_to_symtab_1): Change argument order. Call
9056 expand_psymtab.
9057 (new_psymtab): Set legacy_expand_psymtab.
9058 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9059 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9060 expand_psymtab.
9061 (dwarf2_psymtab::expand_psymtab): Rename from
9062 psymtab_to_symtab_1. Call expand_psymtab.
9063 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9064 (dbx_end_psymtab): Likewise.
9065 (dbx_psymtab_to_symtab_1): Change argument order. Call
9066 expand_psymtab.
9067 (dbx_read_symtab): Call expand_psymtab.
9068 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9069 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9070 (ctf_psymtab::read_symtab): Call expand_psymtab.
9071
077cbab2
TT
90722020-01-26 Tom Tromey <tom@tromey.com>
9073
9074 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9075 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9076 messages.
9077 * mdebugread.c (mdebug_read_symtab): Remove prints.
9078 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9079 assert.
9080 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9081
891813be
TT
90822020-01-26 Tom Tromey <tom@tromey.com>
9083
9084 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9085 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9086 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9087 legacy_symtab.
9088 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9089 * psymtab.c (psymtab_to_symtab): Call method.
9090 (dump_psymtab): Update.
9091 * psympriv.h (struct partial_symtab): Add virtual destructor.
9092 <read_symtab>: New method.
9093 (struct legacy_symtab): New.
9094 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9095 (struct pst_map) <pst>: Now a legacy_psymtab.
9096 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9097 (new_psymtab): Use legacy_psymtab.
9098 * dwarf2read.h (struct dwarf2_psymtab): New.
9099 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9100 * dwarf2read.c (dwarf2_create_include_psymtab)
9101 (dwarf2_build_include_psymtabs, create_type_unit_group)
9102 (create_partial_symtab, process_psymtab_comp_unit_reader)
9103 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9104 (set_partial_user): Use dwarf2_psymtab.
9105 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9106 (psymtab_to_symtab_1, process_full_comp_unit)
9107 (process_full_type_unit, dwarf2_ranges_read)
9108 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9109 (dwarf_decode_lines): Use dwarf2_psymtab.
9110 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9111 (add_address_entry_worker, write_one_signatured_type)
9112 (recursively_count_psymbols, recursively_write_psymbols)
9113 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9114 (write_debug_names): Likewise.
9115 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9116 <pst>: Now a legacy_psymtab.
9117 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9118 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9119 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9120 * ctfread.c (struct ctf_psymtab): New.
9121 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9122 ctf_psymtab.
9123 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9124 (create_partial_symtab): Return a ctf_psymtab.
9125 (scan_partial_symbols): Update.
9126
c3693a1d
TT
91272020-01-26 Tom Tromey <tom@tromey.com>
9128
9129 * xcoffread.c (xcoff_start_psymtab): Use new.
9130 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9131 renamed from start_psymtab_common.
9132 * psympriv.h (struct partial_symtab): Add new constructor.
9133 (start_psymtab_common): Don't declare.
9134 * mdebugread.c (parse_partial_symbols): Use new.
9135 * dwarf2read.c (create_partial_symtab): Use new.
9136 * dbxread.c (start_psymtab): Use new.
9137 * ctfread.c (create_partial_symtab): Use new.
9138
32caafd0
TT
91392020-01-26 Tom Tromey <tom@tromey.com>
9140
9141 * xcoffread.c (xcoff_end_psymtab): Use new.
9142 * psymtab.c (start_psymtab_common): Use new.
9143 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9144 Update.
9145 * psympriv.h (struct partial_symtab): Add parameters to
9146 constructor. Don't inline.
9147 (allocate_psymtab): Don't declare.
9148 * mdebugread.c (new_psymtab): Use new.
9149 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9150 * dbxread.c (dbx_end_psymtab): Use new.
9151
abaa2f23
TT
91522020-01-26 Tom Tromey <tom@tromey.com>
9153
9154 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9155 allocate_psymtab. Update documentation.
9156 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9157 allocate_psymtab. Do not use new.
9158 (allocate_psymtab): Use new. Update.
9159
6d94535f
TT
91602020-01-26 Tom Tromey <tom@tromey.com>
9161
9162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9163 * psymtab.c (psym_print_stats): Update.
9164 * psympriv.h (struct partial_symtab) <readin,
9165 psymtabs_addrmap_supported, anonymous>: Now bool.
9166 * mdebugread.c (psymtab_to_symtab_1): Update.
9167 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9168 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9169 (process_full_comp_unit, process_full_type_unit): Update.
9170 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9171 * ctfread.c (psymtab_to_symtab): Update.
9172
6f17252b
TT
91732020-01-26 Tom Tromey <tom@tromey.com>
9174
9175 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9176 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9177 * psymtab.c (psymtab_storage): Delete psymtabs.
9178 (psymtab_storage::allocate_psymtab): Use new.
9179 (psymtab_storage::discard_psymtab): Use delete.
9180 * psympriv.h (struct partial_symtab): Add constructor and
9181 initializers.
9182
f6f1cebc
TT
91832020-01-26 Tom Tromey <tom@tromey.com>
9184
9185 * machoread.c: Do not include psympriv.h.
9186
e47e48f6
PW
91872020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9188
9189 * NEWS: Mention the new option and the set/show commands.
9190
a2fedca9
PW
91912020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9192
9193 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9194 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9195 (validate_exec_file): New variables, enums, functions.
9196 (exec_file_locate_attach, print_section_info): Style the filenames.
9197 (_initialize_exec): Install show_exec_file_mismatch_command and
9198 set_exec_file_mismatch_command.
9199 * gdbcore.h (validate_exec_file): Declare.
9200 * infcmd.c (attach_command): Call validate_exec_file.
9201 * remote.c ( remote_target::remote_add_inferior): Likewise.
9202
7ffa82e1
AB
92032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9204
9205 * frame.c (find_frame_sal): Move call to get_next_frame into more
9206 inner scope.
9207 * inline-frame.c (inilne_state) <inline_state>: Update argument
9208 types.
9209 (inilne_state) <skipped_symbol>: Rename to...
9210 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9211 (skip_inline_frames): Build vector of skipped symbols and use this
9212 to reate the inline_state.
9213 (inline_skipped_symbol): Add a comment and some assertions, fetch
9214 skipped symbol from the list.
9215
3d92a3e3
AB
92162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9217
9218 * buildsym.c (lte_is_less_than): Delete.
9219 (buildsym_compunit::end_symtab_with_blockvector): Create local
9220 lambda function to sort line table entries, and use
9221 std::stable_sort instead of std::sort.
9222 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9223 markers when looking for a previous line.
9224
94a72be7
AB
92252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9226
9227 * dwarf2read.c (lnp_state_machine::record_line): Include
9228 end_sequence parameter in debug print out. Record the line if we
9229 are at an end_sequence marker even if it's not the start of a
9230 statement.
9231 * symmisc.c (maintenance_print_one_line_table): Print end of
9232 sequence markers with 'END' not '0'.
9233
53af73bf
PA
92342020-01-24 Pedro Alves <palves@redhat.com>
9235
9236 PR gdb/25410
9237 * thread.c (scoped_restore_current_thread::restore): Use
9238 switch_to_inferior_no_thread.
9239 * exec.c: Include "progspace-and-thread.h".
9240 (add_target_sections, remove_target_sections):
9241 scoped_restore_current_pspace_and_thread instead of
9242 scoped_restore_current_thread.
9243 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9244 and aspace to the inferior before calling clone_program_space.
9245 Remove stale comment.
9246
3050c6f4
CB
92472020-01-24 Christian Biesinger <cbiesinger@google.com>
9248
9249 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9250 (arm_netbsd_nat_target::fetch_registers): ...this.
9251 (arm_nbsd_nat_target::store_registers): Rename to...
9252 (arm_netbsd_nat_target::store_registers): ...this.
9253
73685c7e
CB
92542020-01-24 Christian Biesinger <cbiesinger@google.com>
9255
9256 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9257 register_t.
9258
89203d40
CB
92592020-01-24 Christian Biesinger <cbiesinger@google.com>
9260
9261 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9262 Update comment.
9263 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9264 Likewise.
9265 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9266 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9267 the correct replacement (iterate_over_regset_sections).
9268 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9269 Update comment.
9270
1ba1ac88
AB
92712020-01-24 Graham Markall <graham.markall@embecosm.com>
9272
9273 PR gdb/23718
9274 * gdb/python/python.c (execute_gdb_command): Call
9275 async_enable_stdin in catch block.
9276
f3364a6d
AB
92772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9278
9279 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9280 SWITCH_THRU_ALL_UIS.
9281
733d0a67
AB
92822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9283
9284 PR tui/9765
9285 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9286 comment, add extra parameter, and update to store previous symbol
9287 when appropriate.
9288 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9289 add extra parameter.
9290 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9291 remove unneeded parameter, add try/catch around gdb_print_insn,
9292 rewrite to add items to asm_lines vector.
9293 (tui_find_backward_disassembly_start_address): New function.
9294 (tui_find_disassembly_address): Updated throughout.
9295 (tui_disasm_window::set_contents): Update for changes to
9296 tui_disassemble.
9297 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9298 number of lines to scroll.
9299
b3b3bada
SM
93002020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9301
9302 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9303 (SECT_OFF_DATA): Likewise.
9304 (SECT_OFF_RODATA): Likewise.
9305 (SECT_OFF_TEXT): Likewise.
9306 (SECT_OFF_BSS): Likewise.
9307 (struct objfile) <text_section_offset, data_section_offset>: New
9308 methods.
9309 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9310 objfile::text_section_offset.
9311 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9312 * coffread.c (coff_symtab_read): Likewise.
9313 (enter_linenos): Likewise.
9314 (process_coff_symbol): Likewise.
9315 * ctfread.c (get_objfile_text_range): Likewise.
9316 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9317 Use objfile::data_section_offset.
9318 * dwarf2-frame.c (execute_cfa_program): Use
9319 objfile::text_section_offset.
9320 (dwarf2_frame_find_fde): Likewise.
9321 * dwarf2read.c (create_addrmap_from_index): Likewise.
9322 (create_addrmap_from_aranges): Likewise.
9323 (dw2_find_pc_sect_compunit_symtab): Likewise.
9324 (process_psymtab_comp_unit_reader): Likewise.
9325 (add_partial_symbol): Likewise.
9326 (add_partial_subprogram): Likewise.
9327 (process_full_comp_unit): Likewise.
9328 (read_file_scope): Likewise.
9329 (read_func_scope): Likewise.
9330 (read_lexical_block_scope): Likewise.
9331 (read_call_site_scope): Likewise.
9332 (dwarf2_rnglists_process): Likewise.
9333 (dwarf2_ranges_process): Likewise.
9334 (dwarf2_ranges_read): Likewise.
9335 (dwarf_decode_lines_1): Likewise.
9336 (new_symbol): Likewise.
9337 (dwarf2_fetch_die_loc_sect_off): Likewise.
9338 (dwarf2_per_cu_text_offset): Likewise.
9339 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9340 * hppa-tdep.c (read_unwind_info): Likewise.
9341 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9342 * psympriv.h (struct partial_symtab): Likewise.
9343 * psymtab.c (find_pc_sect_psymtab): Likewise.
9344 * solib-svr4.c (enable_break): Likewise.
9345 * stap-probe.c (relocate_address): Use
9346 objfile::data_section_offset.
9347 * xcoffread.c (enter_line_range): Use
9348 objfile::text_section_offset.
9349 (read_xcoff_symtab): Likewise.
9350
ab53f382
SM
93512020-01-23 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9354 declaration to narrower scopes.
9355
e7eee665
SM
93562020-01-23 Simon Marchi <simon.marchi@efficios.com>
9357
9358 * darwin-nat.h (struct darwin_exception_msg, enum
9359 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9360 Move up.
9361 (class darwin_nat_target) <wait_1, check_new_threads,
9362 decode_exception_message, decode_message, stop_inferior,
9363 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9364 * darwin-nat.c (darwin_check_new_threads): Rename to...
9365 (darwin_nat_target::check_new_threads): ... this.
9366 (darwin_suspend_inferior_it): Remove.
9367 (darwin_decode_exception_message): Rename to...
9368 (darwin_nat_target::decode_exception_message): ... this.
9369 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9370 (darwin_decode_message): Rename to...
9371 (darwin_nat_target::decode_message): ... this.
9372 (cancel_breakpoint): Rename to...
9373 (darwin_nat_target::cancel_breakpoint): ... this.
9374 (darwin_wait): Rename to...
9375 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9376 instead of iterate_over_inferiors.
9377 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9378 (darwin_stop_inferior): Rename to...
9379 (darwin_nat_target::stop_inferior): ... this.
9380 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9381 (darwin_init_thread_list): Rename to...
9382 (darwin_nat_target::init_thread_list): ... this.
9383 (darwin_ptrace_him): Rename to...
9384 (darwin_nat_target::ptrace_him): ... this.
9385 (darwin_nat_target::create_inferior): Pass lambda function to
9386 fork_inferior.
9387 (darwin_nat_target::detach): Call stop_inferior instead of
9388 darwin_stop_inferior.
9389 * fork-inferior.h (fork_inferior): Change init_trace_fun
9390 parameter to gdb::function_view.
9391 * fork-inferior.c (fork_inferior): Likewise.
9392
c162ed3e
HD
93932020-01-23 Hannes Domani <ssbssa@yahoo.de>
9394
9395 * i386-cygwin-tdep.c (core_process_module_section): Update.
9396 * windows-nat.c (struct lm_info_windows): Add text_offset.
9397 (windows_xfer_shared_libraries): Update.
9398 * windows-tdep.c (windows_xfer_shared_library):
9399 Add text_offset_cached argument.
9400 * windows-tdep.h (windows_xfer_shared_library): Update.
9401
a1237872
SM
94022020-01-21 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9405
b3ee6dd9
SM
94062020-01-21 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9409 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9410 replace with range-based for.
9411 (gdbsim_interrupt_inferior): Remove.
9412 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9413 with a range-based for. Inline code from
9414 gdbsim_interrupt_inferior.
9415
f9fac3c8
SM
94162020-01-21 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * infrun.c (proceed): Fix indentation.
9419
f6474de9
TT
94202020-01-21 Tom Tromey <tromey@adacore.com>
9421
9422 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9423 * python/python.c (python_extension_ops): Update.
9424 (gdbpy_colorize): New function.
9425 * python/lib/gdb/__init__.py (colorize): New function.
9426 * extension.h (ext_lang_colorize): Declare.
9427 * extension.c (ext_lang_colorize): New function.
9428 * extension-priv.h (struct extension_language_ops) <colorize>: New
9429 member.
9430 * cli/cli-style.c (_initialize_cli_style): Update help text.
9431
f0c702d4
LM
94322020-01-21 Luis Machado <luis.machado@linaro.org>
9433
9434 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9435 <cond>: Change type to bool.
9436 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9437 (aarch64_displaced_step_cb): Likewise.
9438 (aarch64_displaced_step_tb): Likewise.
9439
1ab139e5
LM
94402020-01-21 Luis Machado <luis.machado@linaro.org>
9441
9442 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9443 output.
9444
0c271889
LM
94452020-01-21 Luis Machado <luis.machado@linaro.org>
9446
9447 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9448 <pc_adjust>: Adjust the documentation.
9449 (aarch64_displaced_step_fixup): Check if PC really moved before
9450 adjusting it.
9451
4d89c1c7
TT
94522020-01-19 Tom Tromey <tom@tromey.com>
9453
9454 * disasm.c (~gdb_disassembler): New destructor.
9455 (gdb_buffered_insn_length): Call disassemble_free_target.
9456 * disasm.h (class gdb_disassembler): Declare destructor. Use
9457 DISABLE_COPY_AND_ASSIGN.
9458
c0ab21c2
TT
94592020-01-19 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9462 (die_reader_func_ftype): Remove.
9463 (cutu_reader): New class.
9464 (dw2_get_file_names_reader): Remove "data" parameter.
9465 (dw2_get_file_names): Use cutu_reader.
9466 (create_debug_type_hash_table): Update.
9467 (read_cutu_die_from_dwo): Update comment.
9468 (lookup_dwo_unit): Add dwo_name parameter.
9469 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9470 die_reader_func_ftype and data parameters.
9471 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9472 Remove die_reader_func_ftype and data parameters.
9473 (~cutu_reader): New; from init_cutu_and_read_dies.
9474 (cutu_reader::cutu_reader): Rename from
9475 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9476 and data parameters.
9477 (init_cutu_and_read_dies_simple): Remove.
9478 (struct process_psymtab_comp_unit_data): Remove.
9479 (process_psymtab_comp_unit_reader): Remove data parameter; add
9480 want_partial_unit and pretend_language parameters.
9481 (process_psymtab_comp_unit): Use cutu_reader.
9482 (build_type_psymtabs_reader): Remove data parameter.
9483 (build_type_psymtabs_1): Use cutu_reader.
9484 (process_skeletonless_type_unit): Likewise.
9485 (load_partial_comp_unit_reader): Remove.
9486 (load_partial_comp_unit): Use cutu_reader.
9487 (load_full_comp_unit_reader): Remove.
9488 (load_full_comp_unit): Use cutu_reader.
9489 (struct create_dwo_cu_data): Remove.
9490 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9491 dwo_unit parameters.
9492 (create_cus_hash_table): Use cutu_reader.
9493 (struct dwarf2_read_addr_index_data): Remove.
9494 (dwarf2_read_addr_index_reader): Remove.
9495 (dwarf2_read_addr_index): Use cutu_reader.
9496 (read_signatured_type_reader): Remove.
9497 (read_signatured_type): Use cutu_reader.
9498
45bbae5c
TT
94992020-01-19 Tom Tromey <tom@tromey.com>
9500
9501 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9502 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9503 (tui_wrefresh): Declare.
9504 * tui/tui-wingeneral.c (suppress_output): New global.
9505 (tui_suppress_output, ~tui_suppress_output): New constructor and
9506 destructor.
9507 (tui_wrefresh): New function.
9508 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9509 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9510 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9511 method.
9512 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9513 tui_wrefresh.
9514 (tui_data_window::no_refresh): New method.
9515 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9516 (tui_reg_command): Use tui_suppress_output
9517 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9518 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9519 method.
9520 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9521
4f13c1c0
TT
95222020-01-19 Tom Tromey <tom@tromey.com>
9523
9524 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9525 Handle case where symtab is null.
9526
fa47e446
SM
95272020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9528
9529 * linux-fork.c (one_fork_p): Simplify.
9530
26f42329
SM
95312020-01-17 Simon Marchi <simon.marchi@efficios.com>
9532
9533 * top.c (struct qt_args): Remove.
9534 (kill_or_detach): Change return type to void, replace `void *`
9535 parameter with a proper one.
9536 (print_inferior_quit_action): Likewise.
9537 (quit_confirm): Use range-based for loop to iterate over inferiors.
9538 (quit_force): Likewise.
9539
a9ac81b1
SM
95402020-01-17 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9543 `void *` parameter with proper parameters.
9544 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9545 (print_one_inferior): Change return type to void, replace `void *`
9546 parameter with proper parameters.
9547 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9548 inferiors.
9549 (get_other_inferior): Remove.
9550 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9551 inferiors.
9552
788eca49
SM
95532020-01-17 Simon Marchi <simon.marchi@efficios.com>
9554
9555 * mi/mi-interp.c (report_initial_inferior): Remove.
9556 (mi_interp::init): Use range-based for to iterate over inferiors.
9557
d9bc85b6
SM
95582020-01-17 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * python/py-inferior.c (build_inferior_list): Remove.
9561 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9562
40c94099
CB
95632020-01-16 Christian Biesinger <cbiesinger@google.com>
9564
9565 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9566 (btrace_stitch_trace): Likewise.
9567 * charset.c (intermediate_encoding): Likewise (vaild).
9568 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9569 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9570 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9571
e0cdfe3c
HD
95722020-01-16 Hannes Domani <ssbssa@yahoo.de>
9573
9574 * windows-tdep.c (windows_get_tlb_type):
9575 Add rtl_user_process_parameters type.
9576
790f1718 95772020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9578 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9579
9580 PR build/24805
9581 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9582 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9583 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9584 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9585 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9586 (ps_plog): Redeclare exported functions with default visibility.
9587
3112ed97
NA
95882020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9589
9590 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9591 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9592
8dc3273e
SM
95932020-01-15 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * infcmd.c (post_create_inferior): Use get_thread_regcache
9596 instead of get_current_regcache.
9597
ff47f4f0
TT
95982020-01-14 Tom Tromey <tom@tromey.com>
9599
9600 PR symtab/12535:
9601 * python/python.c (gdbpy_decode_line): Treat empty string the same
9602 as no argument.
9603
975f45b7
TT
96042020-01-14 Tom Tromey <tom@tromey.com>
9605
9606 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9607
25e57356
TT
96082020-01-14 Tom Tromey <tom@tromey.com>
9609
9610 * nat/linux-btrace.c: Don't include <config.h>.
9611 * nat/linux-ptrace.c: Don't include <config.h>.
9612 * nat/x86-linux-dregs.c: Don't include <config.h>.
9613
05ea2a05
TT
96142020-01-14 Tom Tromey <tom@tromey.com>
9615
9616 * configure: Rebuild.
9617 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9618
01027315
TT
96192020-01-14 Tom Tromey <tom@tromey.com>
9620
9621 * nat/x86-linux-dregs.c: Include configh.h.
9622 * nat/linux-ptrace.c: Include configh.h.
9623 * nat/linux-btrace.c: Include configh.h.
9624 * defs.h: Include config.h, bfd.h.
9625 * configure.ac: Don't source common.host.
9626 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9627 * configure: Rebuild.
9628 * acinclude.m4: Update path.
9629 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9630 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9631 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9632 (CLIBS): Add LIBSUPPORT.
9633 (CDEPS): Likewise.
9634 (COMMON_SFILES): Remove gdbsupport files.
9635 (HFILES_NO_SRCDIR): Likewise.
9636 (stamp-version): Update path to create-version.sh.
9637 (ALLDEPFILES): Remove gdbsupport files.
9638
b2ceabe8
TT
96392020-01-14 Tom Tromey <tom@tromey.com>
9640
9641 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9642 USE_WIN32API when needed.
9643 * configure.ac (USE_WIN32API): Don't define.
9644 (WIN32LIBS): Use WIN32APILIBS.
9645 * configure: Rebuild.
9646
25c51f71
TT
96472020-01-14 Tom Tromey <tom@tromey.com>
9648
9649 * configure: Rebuild.
9650 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9651
717c684d
BE
96522020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9653
9654 * skip.c (skip_function_command): Make skip w/o arguments use the
9655 name of the inlined function if pc is inside any inlined function.
9656
7da6a5b9
LM
96572020-01-14 Luis Machado <luis.machado@linaro.org>
9658
9659 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9660 * infrun.c (resume_1): Likewise.
9661 (handle_inferior_event): Remove stale comment.
9662 * linux-nat.c (linux_nat_target::resume): Update comments.
9663 (save_stop_reason): Likewise.
9664 (linux_nat_filter_event): Likewise.
9665 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9666
44e4c775
AB
96672020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9668
9669 * elfread.c (record_minimal_symbol): Set section index to 0 for
9670 non-allocatable sections.
9671
18a8505e
AT
9672
96732020-01-13 Ali Tamur <tamur@google.com>
9674
9675 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9676 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9677 to gdb::optional. Update comments.
9678 (dwo_file): Update comments.
9679 (read_attribute): Update API to take an additional out parameter,
9680 need_reprocess. This is used to mark attributes that need other
9681 attributes (e.g. str_offsets_base) for correct computation which may not
9682 have been read yet.
9683 (read_attribute_reprocess): New function declaration.
9684 (read_addr_index): Likewise.
9685 (read_dwo_str_index): Likewise.
9686 (read_stub_str_index): Likewise.
9687 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9688 (lookup_addr_base): New function definition.
9689 (lookup_ranges_base): Likewise.
9690 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9691 lookup_ranges_base.
9692 (init_cutu_and_read_dies): Update comments.
9693 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9694 unit. This is used to inherit parent's str_offsets_base and addr_base.
9695 Update comments.
9696 (init_cutu_and_read_dies_simple): Reflect API changes.
9697 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9698 (create_cus_hash_table): Change API to take parent compile unit.
9699 Reflect API changes.
9700 (open_and_init_dwo_file): Reflect API changes.
9701 (dwarf2_get_pc_bounds): Update comments.
9702 (dwarf2_record_block_ranges): Likewise.
9703 (read_full_die_1): Change implementation to reprocess attributes that
9704 need str_offsets_base and addr_base.
9705 (partial_die_info::read): Likewise.
9706 (read_attribute_reprocess): New function definition.
9707 (read_attribute_value): Change API to take an additional out parameter,
9708 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9709 when a non-dwo compile unit has index based attributes.
9710 (read_attribute): Reflect API changes.
9711 (read_addr_index_1): Reflect API changes. Update comments.
9712 (dwarf2_read_addr_index_data): Reflect API changes.
9713 (dwarf2_read_addr_index): Likewise.
9714 (read_str_index): Change API and implementation. This becomes a helper
9715 to be used by the new string index related methods. Update error
9716 message and comments.
9717 (read_dwo_str_index): New function definition.
9718 (read_stub_str_index): Likewise.
9719 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9720 * symfile.h (dwarf2_debug_sections): Likewise.
9721 * xcoffread.c (dwarf2_debug_sections): Likewise.
9722
0cac9354
SM
97232020-01-13 Simon Marchi <simon.marchi@efficios.com>
9724
9725 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9726 core_reg_sect type to gdb_byte *.
9727 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9728 * cris-tdep.c (fetch_core_registers): Likewise.
9729 * corelow.c (core_target::get_core_register_section): Change
9730 type of `contents` to gdb::byte_vector.
9731
9a6d629c
AB
97322020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9733
9734 * tui/tui-wingeneral.c (box_win): Position the title in the center
9735 of the border.
9736
d8b2f9e3
SM
97372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9738
9739 * corelow.c (core_target::get_core_register_section): Use
9740 std::vector instead of alloca.
9741
bb564c58
SM
97422020-01-13 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * warning.m4: Add -Wmissing-declarations to build_warnings.
9745 * configure: Re-generate.
9746
6b366111
SM
97472020-01-13 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * python/python.c (init__gdb_module): Add declaration.
9750
6c265988
SM
97512020-01-13 Simon Marchi <simon.marchi@efficios.com>
9752
9753 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9754 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9755 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9756 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9757 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9758 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9759 * ada-exp.y (_initialize_ada_exp): Add declaration.
9760 * ada-lang.c (_initialize_ada_language): Add declaration.
9761 * ada-tasks.c (_initialize_tasks): Add declaration.
9762 * agent.c (_initialize_agent): Add declaration.
9763 * aix-thread.c (_initialize_aix_thread): Add declaration.
9764 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9765 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9766 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9767 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9768 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9769 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9770 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9771 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9772 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9773 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9774 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9775 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9776 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9777 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9778 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9779 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9780 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9781 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9782 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9783 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9784 * annotate.c (_initialize_annotate): Add declaration.
9785 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9786 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9787 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9788 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9789 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9790 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9791 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9792 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9793 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9794 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9795 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9796 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9797 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9798 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9799 * auto-load.c (_initialize_auto_load): Add declaration.
9800 * auxv.c (_initialize_auxv): Add declaration.
9801 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9802 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9803 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9804 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9805 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9806 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9807 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9808 * breakpoint.c (_initialize_breakpoint): Add declaration.
9809 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9810 * btrace.c (_initialize_btrace): Add declaration.
9811 * charset.c (_initialize_charset): Add declaration.
9812 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9813 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9814 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9815 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9816 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9817 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9818 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9819 * coffread.c (_initialize_coffread): Add declaration.
9820 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9821 * compile/compile.c (_initialize_compile): Add declaration.
9822 * complaints.c (_initialize_complaints): Add declaration.
9823 * completer.c (_initialize_completer): Add declaration.
9824 * copying.c (_initialize_copying): Add declaration.
9825 * corefile.c (_initialize_core): Add declaration.
9826 * corelow.c (_initialize_corelow): Add declaration.
9827 * cp-abi.c (_initialize_cp_abi): Add declaration.
9828 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9829 * cp-support.c (_initialize_cp_support): Add declaration.
9830 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9831 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9832 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9833 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9834 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9835 * ctfread.c (_initialize_ctfread): Add declaration.
9836 * d-lang.c (_initialize_d_language): Add declaration.
9837 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9838 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9839 * dbxread.c (_initialize_dbxread): Add declaration.
9840 * dcache.c (_initialize_dcache): Add declaration.
9841 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9842 * disasm.c (_initialize_disasm): Add declaration.
9843 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9844 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9845 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9846 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9847 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9848 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9849 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9850 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9851 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9852 * elfread.c (_initialize_elfread): Add declaration.
9853 * exec.c (_initialize_exec): Add declaration.
9854 * extension.c (_initialize_extension): Add declaration.
9855 * f-lang.c (_initialize_f_language): Add declaration.
9856 * f-valprint.c (_initialize_f_valprint): Add declaration.
9857 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9858 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9859 * filesystem.c (_initialize_filesystem): Add declaration.
9860 * findcmd.c (_initialize_mem_search): Add declaration.
9861 * findvar.c (_initialize_findvar): Add declaration.
9862 * fork-child.c (_initialize_fork_child): Add declaration.
9863 * frame-base.c (_initialize_frame_base): Add declaration.
9864 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9865 * frame.c (_initialize_frame): Add declaration.
9866 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9867 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9868 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9869 * gcore.c (_initialize_gcore): Add declaration.
9870 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9871 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9872 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9873 * gdbarch.c (_initialize_gdbarch): Add declaration.
9874 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9875 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9876 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9877 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9878 * go-lang.c (_initialize_go_language): Add declaration.
9879 * go32-nat.c (_initialize_go32_nat): Add declaration.
9880 * guile/guile.c (_initialize_guile): Add declaration.
9881 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9882 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9883 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9884 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9885 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9886 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9887 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9888 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9889 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9890 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9891 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9892 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9893 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9894 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9895 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9896 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9897 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9898 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9899 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9900 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9901 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9902 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9903 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9904 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9905 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9906 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9907 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9908 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9909 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9910 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9911 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9912 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9913 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9914 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9915 * infcall.c (_initialize_infcall): Add declaration.
9916 * infcmd.c (_initialize_infcmd): Add declaration.
9917 * inflow.c (_initialize_inflow): Add declaration.
9918 * infrun.c (_initialize_infrun): Add declaration.
9919 * interps.c (_initialize_interpreter): Add declaration.
9920 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9921 * jit.c (_initialize_jit): Add declaration.
9922 * language.c (_initialize_language): Add declaration.
9923 * linux-fork.c (_initialize_linux_fork): Add declaration.
9924 * linux-nat.c (_initialize_linux_nat): Add declaration.
9925 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9926 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9927 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9928 * m2-lang.c (_initialize_m2_language): Add declaration.
9929 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9930 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9931 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9932 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9933 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9934 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9935 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9936 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9937 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9938 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9939 * machoread.c (_initialize_machoread): Add declaration.
9940 * macrocmd.c (_initialize_macrocmd): Add declaration.
9941 * macroscope.c (_initialize_macroscope): Add declaration.
9942 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9943 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9944 * maint.c (_initialize_maint_cmds): Add declaration.
9945 * mdebugread.c (_initialize_mdebugread): Add declaration.
9946 * memattr.c (_initialize_mem): Add declaration.
9947 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9948 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9949 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9950 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9951 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9952 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9953 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9954 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9955 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9956 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9957 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9958 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9959 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9960 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9961 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9962 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9963 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9964 * mipsread.c (_initialize_mipsread): Add declaration.
9965 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9966 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9967 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9968 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9969 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9970 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9971 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9972 * nto-procfs.c (_initialize_procfs): Add declaration.
9973 * objc-lang.c (_initialize_objc_language): Add declaration.
9974 * observable.c (_initialize_observer): Add declaration.
9975 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9976 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9977 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9978 * osabi.c (_initialize_gdb_osabi): Add declaration.
9979 * osdata.c (_initialize_osdata): Add declaration.
9980 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9981 * parse.c (_initialize_parse): Add declaration.
9982 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9983 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9984 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9985 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9986 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9987 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9988 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9989 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9990 * printcmd.c (_initialize_printcmd): Add declaration.
9991 * probe.c (_initialize_probe): Add declaration.
9992 * proc-api.c (_initialize_proc_api): Add declaration.
9993 * proc-events.c (_initialize_proc_events): Add declaration.
9994 * proc-service.c (_initialize_proc_service): Add declaration.
9995 * procfs.c (_initialize_procfs): Add declaration.
9996 * producer.c (_initialize_producer): Add declaration.
9997 * psymtab.c (_initialize_psymtab): Add declaration.
9998 * python/python.c (_initialize_python): Add declaration.
9999 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10000 * record-btrace.c (_initialize_record_btrace): Add declaration.
10001 * record-full.c (_initialize_record_full): Add declaration.
10002 * record.c (_initialize_record): Add declaration.
10003 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10004 * regcache.c (_initialize_regcache): Add declaration.
10005 * reggroups.c (_initialize_reggroup): Add declaration.
10006 * remote-notif.c (_initialize_notif): Add declaration.
10007 * remote-sim.c (_initialize_remote_sim): Add declaration.
10008 * remote.c (_initialize_remote): Add declaration.
10009 * reverse.c (_initialize_reverse): Add declaration.
10010 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10011 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10012 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10013 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10014 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10015 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10016 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10017 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10018 Add declaration.
10019 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10020 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10021 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10022 * rust-exp.y (_initialize_rust_exp): Add declaration.
10023 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10024 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10025 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10026 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10027 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10028 * score-tdep.c (_initialize_score_tdep): Add declaration.
10029 * ser-go32.c (_initialize_ser_dos): Add declaration.
10030 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10031 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10032 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10033 * ser-uds.c (_initialize_ser_socket): Add declaration.
10034 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10035 * serial.c (_initialize_serial): Add declaration.
10036 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10037 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10038 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10039 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10040 * skip.c (_initialize_step_skip): Add declaration.
10041 * sol-thread.c (_initialize_sol_thread): Add declaration.
10042 * solib-aix.c (_initialize_solib_aix): Add declaration.
10043 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10044 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10045 * solib-frv.c (_initialize_frv_solib): Add declaration.
10046 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10047 * solib-target.c (_initialize_solib_target): Add declaration.
10048 * solib.c (_initialize_solib): Add declaration.
10049 * source-cache.c (_initialize_source_cache): Add declaration.
10050 * source.c (_initialize_source): Add declaration.
10051 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10052 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10053 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10054 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10055 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10056 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10057 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10058 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10059 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10060 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10061 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10062 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10063 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10064 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10065 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10066 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10067 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10068 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10069 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10070 * stabsread.c (_initialize_stabsread): Add declaration.
10071 * stack.c (_initialize_stack): Add declaration.
10072 * stap-probe.c (_initialize_stap_probe): Add declaration.
10073 * std-regs.c (_initialize_frame_reg): Add declaration.
10074 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10075 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10076 * symfile.c (_initialize_symfile): Add declaration.
10077 * symmisc.c (_initialize_symmisc): Add declaration.
10078 * symtab.c (_initialize_symtab): Add declaration.
10079 * target.c (_initialize_target): Add declaration.
10080 * target-connection.c (_initialize_target_connection): Add
10081 declaration.
10082 * target-dcache.c (_initialize_target_dcache): Add declaration.
10083 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10084 * thread.c (_initialize_thread): Add declaration.
10085 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10086 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10087 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10088 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10089 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10090 * tracectf.c (_initialize_ctf): Add declaration.
10091 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10092 * tracefile.c (_initialize_tracefile): Add declaration.
10093 * tracepoint.c (_initialize_tracepoint): Add declaration.
10094 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10095 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10096 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10097 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10098 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10099 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10100 * tui/tui.c (_initialize_tui): Add declaration.
10101 * typeprint.c (_initialize_typeprint): Add declaration.
10102 * ui-style.c (_initialize_ui_style): Add declaration.
10103 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10104 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10105 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10106 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10107 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10108 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10109 * unittests/filtered_iterator-selftests.c
10110 (_initialize_filtered_iterator_selftests): Add declaration.
10111 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10112 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10113 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10114 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10115 * unittests/main-thread-selftests.c
10116 (_initialize_main_thread_selftests): Add declaration.
10117 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10118 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10119 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10120 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10121 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10122 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10123 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10124 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10125 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10126 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10127 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10128 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10129 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10130 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10131 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10132 declaration.
10133 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10134 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10135 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10136 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10137 * user-regs.c (_initialize_user_regs): Add declaration.
10138 * utils.c (_initialize_utils): Add declaration.
10139 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10140 * valops.c (_initialize_valops): Add declaration.
10141 * valprint.c (_initialize_valprint): Add declaration.
10142 * value.c (_initialize_values): Add declaration.
10143 * varobj.c (_initialize_varobj): Add declaration.
10144 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10145 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10146 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10147 * windows-nat.c (_initialize_windows_nat): Add declaration.
10148 (_initialize_check_for_gdb_ini): Add declaration.
10149 (_initialize_loadable): Add declaration.
10150 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10151 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10152 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10153 * xcoffread.c (_initialize_xcoffread): Add declaration.
10154 * xml-support.c (_initialize_xml_support): Add declaration.
10155 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10156 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10157 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10158 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10159
e2de1eec
SM
101602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10161
10162 * regformats/regdat.sh: Generate declaration for init function.
10163
e0037b4c
SM
101642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10165
10166 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10167 up.
10168 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10169 close_one_inferior>: New methods.
10170 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10171 pass down target to find_inferior_pid.
10172 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10173 Pass down target to find_inferior_ptid.
10174 (gdbsim_target::create_inferior): Pass down target to
10175 add_thread_silent.
10176 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10177 target down to find_inferior_ptid and switch_to_thread.
10178 (gdbsim_target::close): Update to call close_one_inferior.
10179 (struct resume_data): Remove.
10180 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10181 directly, rather than through a void pointer.
10182 (gdbsim_target::resume): Update to call resume_one_inferior.
10183
58920b5b
SM
101842020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10185
10186 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10187
4ec89149
PA
101882020-01-12 Pedro Alves <palves@redhat.com>
10189
10190 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10191 directly for the current inferior instead of
10192 discard_all_inferiors.
10193 (discard_all_inferiors): Delete.
10194
7c392d1d
TT
101952020-01-11 Tom Tromey <tom@tromey.com>
10196
10197 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10198 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10199 deprecated_safe_get_selected_frame.
10200
d9ebdab7
TBA
102012020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10202
10203 * inferior.c (print_inferior): Switch inferior before printing it.
10204
f3c469b9
PA
102052020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10206 Pedro Alves <palves@redhat.com>
10207
10208 * progspace-and-thread.c (switch_to_program_space_and_thread):
10209 Assert there's an inferior for PSPACE. Use
10210 switch_to_inferior_no_thread to switch the inferior too.
10211 * progspace.c (program_space::~program_space): Call
10212 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10213 (program_space::free_all_objfiles): Don't call clear_symtab_users
10214 here.
10215 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10216
65c574f6
PA
102172020-01-10 Pedro Alves <palves@redhat.com>
10218
10219 * NEWS: Mention multi-target debugging, "info connections", and
10220 "add-inferior -no-connection".
10221
2f4fcf00
PA
102222020-01-10 Pedro Alves <palves@redhat.com>
10223
10224 * infrun.c: Include "target-connection.h".
10225 (check_multi_target_resumption): New.
10226 (proceed): Call it.
10227 * target-connection.c (make_target_connection_string): Make
10228 extern.
10229 * target-connection.h (make_target_connection_string): Declare.
10230
121b3efd
PA
102312020-01-10 Pedro Alves <palves@redhat.com>
10232
10233 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10234 * inferior.c (uiout_field_connection): New function.
10235 (print_inferior): Add new "connection-id" column.
10236 (add_inferior_command): Show connection number/string of added
10237 inferior.
10238 * process-stratum-target.h
10239 (process_stratum_target::connection_string): New virtual method.
10240 (process_stratum_target::connection_number): New field.
10241 * remote.c (remote_target::connection_string): New override.
10242 * target-connection.c: New file.
10243 * target-connection.h: New file.
10244 * target.c (decref_target): Remove process_stratum targets from
10245 the connection list.
10246 (target_stack::push): Add process_stratum targets to the
10247 connection list.
10248
4f837581
PA
102492020-01-10 Pedro Alves <palves@redhat.com>
10250
10251 Revert:
10252 2016-04-12 Pedro Alves <palves@redhat.com>
10253 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10254 Remove references to name.
10255 * serial.h (struct serial) <name>: Delete.
10256
f4ec508e
PA
102572020-01-10 Pedro Alves <palves@redhat.com>
10258
10259 * gdbarch-selftests.c (register_to_value_test): Remove "target
10260 already pushed" check.
10261
5b6d1e4f
PA
102622020-01-10 Pedro Alves <palves@redhat.com>
10263 John Baldwin <jhb@FreeBSD.org>
10264
10265 * aarch64-linux-nat.c
10266 (aarch64_linux_nat_target::thread_architecture): Adjust.
10267 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10268 (task_command_1): Likewise.
10269 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10270 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10271 (aix_thread_target::store_registers)
10272 (aix_thread_target::thread_alive): Adjust.
10273 * amd64-fbsd-tdep.c: Include "inferior.h".
10274 (amd64fbsd_get_thread_local_address): Pass down target.
10275 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10276 thread's gdbarch instead of target_gdbarch.
10277 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10278 get_last_target_status.
10279 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10280 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10281 inferiors.
10282 (update_inserted_breakpoint_locations): Skip if inferiors with no
10283 execution.
10284 (update_global_location_list): When handling moribund locations,
10285 find representative inferior for location's pspace, and use thread
10286 count of its process_stratum target.
10287 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10288 * bsd-uthread.c (bsd_uthread_target::wait): Use
10289 as_process_stratum_target and adjust thread_change_ptid and
10290 add_thread calls.
10291 (bsd_uthread_target::update_thread_list): Use
10292 as_process_stratum_target and adjust find_thread_ptid,
10293 thread_change_ptid and add_thread calls.
10294 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10295 find_thread_ptid call.
10296 * corelow.c (add_to_thread_list): Adjust add_thread call.
10297 (core_target_open): Adjust add_thread_silent and thread_count
10298 calls.
10299 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10300 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10301 * event-top.c (async_disconnect): Pop targets from all inferiors.
10302 * exec.c (add_target_sections): Push exec target on all inferiors
10303 sharing the program space.
10304 (remove_target_sections): Remove the exec target from all
10305 inferiors sharing the program space.
10306 (exec_on_vfork): New.
10307 * exec.h (exec_on_vfork): Declare.
10308 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10309 Pass it down.
10310 (fbsd_nat_target::update_thread_list): Adjust.
10311 (fbsd_nat_target::resume): Adjust.
10312 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10313 down.
10314 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10315 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10316 get_thread_arch_regcache call.
10317 * fork-child.c (gdb_startup_inferior): Pass target down to
10318 startup_inferior and set_executing.
10319 * gdbthread.h (struct process_stratum_target): Forward declare.
10320 (add_thread, add_thread_silent, add_thread_with_info)
10321 (in_thread_list): Add process_stratum_target parameter.
10322 (find_thread_ptid(inferior*, ptid_t)): New overload.
10323 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10324 parameter.
10325 (all_threads()): Delete overload.
10326 (all_threads, all_non_exited_threads): Add process_stratum_target
10327 parameter.
10328 (all_threads_safe): Use brace initialization.
10329 (thread_count): Add process_stratum_target parameter.
10330 (set_resumed, set_running, set_stop_requested, set_executing)
10331 (threads_are_executing, finish_thread_state): Add
10332 process_stratum_target parameter.
10333 (switch_to_thread): Use is_current_thread.
10334 * i386-fbsd-tdep.c: Include "inferior.h".
10335 (i386fbsd_get_thread_local_address): Pass down target.
10336 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10337 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10338 have_inferiors check.
10339 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10340 (inf_ptrace_target::attach): Adjust.
10341 * infcall.c (run_inferior_call): Adjust.
10342 * infcmd.c (run_command_1): Pass target to
10343 scoped_finish_thread_state.
10344 (proceed_thread_callback): Skip inferiors with no execution.
10345 (continue_command): Rename 'all_threads' local to avoid hiding
10346 'all_threads' function. Adjust get_last_target_status call.
10347 (prepare_one_step): Adjust set_running call.
10348 (signal_command): Use user_visible_resume_target. Compare thread
10349 pointers instead of inferior_ptid.
10350 (info_program_command): Adjust to pass down target.
10351 (attach_command): Mark target's 'thread_executing' flag.
10352 (stop_current_target_threads_ns): New, factored out from ...
10353 (interrupt_target_1): ... this. Switch inferior before making
10354 target calls.
10355 * inferior-iter.h
10356 (struct all_inferiors_iterator, struct all_inferiors_range)
10357 (struct all_inferiors_safe_range)
10358 (struct all_non_exited_inferiors_range): Filter on
10359 process_stratum_target too. Remove explicit.
10360 * inferior.c (inferior::inferior): Push dummy target on target
10361 stack.
10362 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10363 Add process_stratum_target parameter, and pass it down.
10364 (have_live_inferiors): Adjust.
10365 (switch_to_inferior_and_push_target): New.
10366 (add_inferior_command, clone_inferior_command): Handle
10367 "-no-connection" parameter. Use
10368 switch_to_inferior_and_push_target.
10369 (_initialize_inferior): Mention "-no-connection" option in
10370 the help of "add-inferior" and "clone-inferior" commands.
10371 * inferior.h: Include "process-stratum-target.h".
10372 (interrupt_target_1): Use bool.
10373 (struct inferior) <push_target, unpush_target, target_is_pushed,
10374 find_target_beneath, top_target, process_target, target_at,
10375 m_stack>: New.
10376 (discard_all_inferiors): Delete.
10377 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10378 (all_inferiors, all_non_exited_inferiors): Add
10379 process_stratum_target parameter.
10380 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10381 (target_last_proc_target): New global.
10382 (follow_fork_inferior): Push target on new inferior. Pass target
10383 to add_thread_silent. Call exec_on_vfork. Handle target's
10384 reference count.
10385 (follow_fork): Adjust get_last_target_status call. Also consider
10386 target.
10387 (follow_exec): Push target on new inferior.
10388 (struct execution_control_state) <target>: New field.
10389 (user_visible_resume_target): New.
10390 (do_target_resume): Call target_async.
10391 (resume_1): Set target's threads_executing flag. Consider resume
10392 target.
10393 (commit_resume_all_targets): New.
10394 (proceed): Also consider resume target. Skip threads of inferiors
10395 with no execution. Commit resumtion in all targets.
10396 (start_remote): Pass current inferior to wait_for_inferior.
10397 (infrun_thread_stop_requested): Consider target as well. Pass
10398 thread_info pointer to clear_inline_frame_state instead of ptid.
10399 (infrun_thread_thread_exit): Consider target as well.
10400 (random_pending_event_thread): New inferior parameter. Use it.
10401 (do_target_wait): Rename to ...
10402 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10403 down.
10404 (threads_are_resumed_pending_p, do_target_wait): New.
10405 (prepare_for_detach): Adjust calls.
10406 (wait_for_inferior): New inferior parameter. Handle it. Use
10407 do_target_wait_1 instead of do_target_wait.
10408 (fetch_inferior_event): Adjust. Switch to representative
10409 inferior. Pass target down.
10410 (set_last_target_status): Add process_stratum_target parameter.
10411 Save target in global.
10412 (get_last_target_status): Add process_stratum_target parameter and
10413 handle it.
10414 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10415 (context_switch): Check inferior_ptid == null_ptid before calling
10416 inferior_thread().
10417 (get_inferior_stop_soon): Pass down target.
10418 (wait_one): Rename to ...
10419 (poll_one_curr_target): ... this.
10420 (struct wait_one_event): New.
10421 (wait_one): New.
10422 (stop_all_threads): Adjust.
10423 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10424 event's target.
10425 (switch_back_to_stepped_thread): Also consider target.
10426 (print_stop_event): Update.
10427 (normal_stop): Update. Also consider the resume target.
10428 * infrun.h (wait_for_inferior): Remove declaration.
10429 (user_visible_resume_target): New declaration.
10430 (get_last_target_status, set_last_target_status): New
10431 process_stratum_target parameter.
10432 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10433 process_stratum_target parameter, and use it.
10434 (clear_inline_frame_state (thread_info*)): New.
10435 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10436 process_stratum_target parameter.
10437 (clear_inline_frame_state (thread_info*)): Declare.
10438 * linux-fork.c (delete_checkpoint_command): Pass target down to
10439 find_thread_ptid.
10440 (checkpoint_command): Adjust.
10441 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10442 instead of just tweaking inferior_ptid.
10443 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10444 (exit_lwp): Pass target down to find_thread_ptid.
10445 (attach_proc_task_lwp_callback): Pass target down to
10446 add_thread/set_running/set_executing.
10447 (linux_nat_target::attach): Pass target down to
10448 thread_change_ptid.
10449 (get_detach_signal): Pass target down to find_thread_ptid.
10450 Consider last target status's target.
10451 (linux_resume_one_lwp_throw, resume_lwp)
10452 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10453 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10454 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10455 (linux_nat_target::async_wait_fd): New.
10456 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10457 target down.
10458 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10459 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10460 * linux-thread-db.c (struct thread_db_info::process_target): New
10461 field.
10462 (add_thread_db_info): Save target.
10463 (get_thread_db_info): New process_stratum_target parameter. Also
10464 match target.
10465 (delete_thread_db_info): New process_stratum_target parameter.
10466 Also match target.
10467 (thread_from_lwp): Adjust to pass down target.
10468 (thread_db_notice_clone): Pass down target.
10469 (check_thread_db_callback): Pass down target.
10470 (try_thread_db_load_1): Always push the thread_db target.
10471 (try_thread_db_load, record_thread): Pass target down.
10472 (thread_db_target::detach): Pass target down. Always unpush the
10473 thread_db target.
10474 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10475 target down. Always unpush the thread_db target.
10476 (find_new_threads_callback, thread_db_find_new_threads_2)
10477 (thread_db_target::update_thread_list): Pass target down.
10478 (thread_db_target::pid_to_str): Pass current inferior down.
10479 (thread_db_target::get_thread_local_address): Pass target down.
10480 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10481 target down.
10482 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10483 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10484 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10485 (procfs_init_inferior): Rename to ...
10486 (procfs_target::procfs_init_inferior): ... this and adjust.
10487 (procfs_target::create_inferior, procfs_notice_thread)
10488 (procfs_do_thread_registers): Adjust.
10489 * ppc-fbsd-tdep.c: Include "inferior.h".
10490 (ppcfbsd_get_thread_local_address): Pass down target.
10491 * proc-service.c (ps_xfer_memory): Switch current inferior and
10492 program space as well.
10493 (get_ps_regcache): Pass target down.
10494 * process-stratum-target.c
10495 (process_stratum_target::thread_address_space)
10496 (process_stratum_target::thread_architecture): Pass target down.
10497 * process-stratum-target.h
10498 (process_stratum_target::threads_executing): New field.
10499 (as_process_stratum_target): New.
10500 * ravenscar-thread.c
10501 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10502 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10503 down.
10504 * record-btrace.c (record_btrace_target::info_record): Adjust.
10505 (record_btrace_target::record_method)
10506 (record_btrace_target::record_is_replaying)
10507 (record_btrace_target::fetch_registers)
10508 (get_thread_current_frame_id, record_btrace_target::resume)
10509 (record_btrace_target::wait, record_btrace_target::stop): Pass
10510 target down.
10511 * record-full.c (record_full_wait_1): Switch to event thread.
10512 Pass target down.
10513 * regcache.c (regcache::regcache)
10514 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10515 process_stratum_target parameter and handle it.
10516 (current_thread_target): New global.
10517 (get_thread_regcache): Add process_stratum_target parameter and
10518 handle it. Switch inferior before calling target method.
10519 (get_thread_regcache): Pass target down.
10520 (get_thread_regcache_for_ptid): Pass target down.
10521 (registers_changed_ptid): Add process_stratum_target parameter and
10522 handle it.
10523 (registers_changed_thread, registers_changed): Pass target down.
10524 (test_get_thread_arch_aspace_regcache): New.
10525 (current_regcache_test): Define a couple local test_target_ops
10526 instances and use them for testing.
10527 (readwrite_regcache): Pass process_stratum_target parameter.
10528 (cooked_read_test, cooked_write_test): Pass mock_target down.
10529 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10530 (get_thread_arch_aspace_regcache): Add process_stratum_target
10531 parameter.
10532 (regcache::target): New method.
10533 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10534 (regcache::registers_changed_ptid): Add process_stratum_target
10535 parameter.
10536 (regcache::m_target): New field.
10537 (registers_changed_ptid): Add process_stratum_target parameter.
10538 * remote.c (remote_state::supports_vCont_probed): New field.
10539 (remote_target::async_wait_fd): New method.
10540 (remote_unpush_and_throw): Add remote_target parameter.
10541 (get_current_remote_target): Adjust.
10542 (remote_target::remote_add_inferior): Push target.
10543 (remote_target::remote_add_thread)
10544 (remote_target::remote_notice_new_inferior)
10545 (get_remote_thread_info): Pass target down.
10546 (remote_target::update_thread_list): Skip threads of inferiors
10547 bound to other targets. (remote_target::close): Don't discard
10548 inferiors. (remote_target::add_current_inferior_and_thread)
10549 (remote_target::process_initial_stop_replies)
10550 (remote_target::start_remote)
10551 (remote_target::remote_serial_quit_handler): Pass down target.
10552 (remote_target::remote_unpush_target): New remote_target
10553 parameter. Unpush the target from all inferiors.
10554 (remote_target::remote_unpush_and_throw): New remote_target
10555 parameter. Pass it down.
10556 (remote_target::open_1): Check whether the current inferior has
10557 execution instead of checking whether any inferior is live. Pass
10558 target down.
10559 (remote_target::remote_detach_1): Pass down target. Use
10560 remote_unpush_target.
10561 (extended_remote_target::attach): Pass down target.
10562 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10563 (remote_target::append_resumption): Pass down target.
10564 (remote_target::append_pending_thread_resumptions)
10565 (remote_target::remote_resume_with_hc, remote_target::resume)
10566 (remote_target::commit_resume): Pass down target.
10567 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10568 (remote_target::interrupt_query)
10569 (remote_target::remove_new_fork_children)
10570 (remote_target::check_pending_events_prevent_wildcard_vcont)
10571 (remote_target::remote_parse_stop_reply)
10572 (remote_target::process_stop_reply): Pass down target.
10573 (first_remote_resumed_thread): New remote_target parameter. Pass
10574 it down.
10575 (remote_target::wait_as): Pass down target.
10576 (unpush_and_perror): New remote_target parameter. Pass it down.
10577 (remote_target::readchar, remote_target::remote_serial_write)
10578 (remote_target::getpkt_or_notif_sane_1)
10579 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10580 down target.
10581 (remote_target::mourn_inferior): Pass down target. Use
10582 remote_unpush_target.
10583 (remote_target::core_of_thread)
10584 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10585 (remote_target::pid_to_exec_file)
10586 (remote_target::thread_handle_to_thread_info): Pass down target.
10587 (remote_target::async_wait_fd): New.
10588 * riscv-fbsd-tdep.c: Include "inferior.h".
10589 (riscv_fbsd_get_thread_local_address): Pass down target.
10590 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10591 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10592 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10593 Adjust.
10594 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10595 * solib-svr4.c (enable_break): Pass down target.
10596 * spu-multiarch.c (parse_spufs_run): Pass down target.
10597 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10598 * target-delegates.c: Regenerate.
10599 * target.c (g_target_stack): Delete.
10600 (current_top_target): Return the current inferior's top target.
10601 (target_has_execution_1): Refer to the passed-in inferior's top
10602 target.
10603 (target_supports_terminal_ours): Check whether the initial
10604 inferior was already created.
10605 (decref_target): New.
10606 (target_stack::push): Incref/decref the target.
10607 (push_target, push_target, unpush_target): Adjust.
10608 (target_stack::unpush): Defref target.
10609 (target_is_pushed): Return bool. Adjust to refer to the current
10610 inferior's target stack.
10611 (dispose_inferior): Delete, and inline parts ...
10612 (target_preopen): ... here. Only dispose of the current inferior.
10613 (target_detach): Hold strong target reference while detaching.
10614 Pass target down.
10615 (target_thread_name): Add assertion.
10616 (target_resume): Pass down target.
10617 (target_ops::beneath, find_target_at): Adjust to refer to the
10618 current inferior's target stack.
10619 (get_dummy_target): New.
10620 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10621 has a thread running.
10622 (initialize_targets): Rename to ...
10623 (_initialize_target): ... this.
10624 * target.h: Include "gdbsupport/refcounted-object.h".
10625 (struct target_ops): Inherit refcounted_object.
10626 (target_ops::shortname, target_ops::longname): Make const.
10627 (target_ops::async_wait_fd): New method.
10628 (decref_target): Declare.
10629 (struct target_ops_ref_policy): New.
10630 (target_ops_ref): New typedef.
10631 (get_dummy_target): Declare function.
10632 (target_is_pushed): Return bool.
10633 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10634 (all_matching_threads_iterator::all_matching_threads_iterator):
10635 Handle filter target.
10636 * thread-iter.h (struct all_matching_threads_iterator, struct
10637 all_matching_threads_range, class all_non_exited_threads_range):
10638 Filter by target too. Remove explicit.
10639 * thread.c (threads_executing): Delete.
10640 (inferior_thread): Pass down current inferior.
10641 (clear_thread_inferior_resources): Pass down thread pointer
10642 instead of ptid_t.
10643 (add_thread_silent, add_thread_with_info, add_thread): Add
10644 process_stratum_target parameter. Use it for thread and inferior
10645 searches.
10646 (is_current_thread): New.
10647 (thread_info::deletable): Use it.
10648 (find_thread_ptid, thread_count, in_thread_list)
10649 (thread_change_ptid, set_resumed, set_running): New
10650 process_stratum_target parameter. Pass it down.
10651 (set_executing): New process_stratum_target parameter. Pass it
10652 down. Adjust reference to 'threads_executing'.
10653 (threads_are_executing): New process_stratum_target parameter.
10654 Adjust reference to 'threads_executing'.
10655 (set_stop_requested, finish_thread_state): New
10656 process_stratum_target parameter. Pass it down.
10657 (switch_to_thread): Also match inferior.
10658 (switch_to_thread): New process_stratum_target parameter. Pass it
10659 down.
10660 (update_threads_executing): Reimplement.
10661 * top.c (quit_force): Pop targets from all inferior.
10662 (gdb_init): Don't call initialize_targets.
10663 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10664 Declare.
10665 (windows_add_thread, windows_delete_thread): Adjust.
10666 (get_windows_debug_event): Rename to ...
10667 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10668 * tracefile-tfile.c (tfile_target_open): Pass down target.
10669 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10670 Forward declare.
10671 (switch_to_thread): Add process_stratum_target parameter.
10672 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10673 parameter. Use it.
10674 (mi_on_resume): Pass target down.
10675 * nat/fork-inferior.c (startup_inferior): Add
10676 process_stratum_target parameter. Pass it down.
10677 * nat/fork-inferior.h (startup_inferior): Add
10678 process_stratum_target parameter.
10679 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10680
75c6c844
PA
106812020-01-10 Pedro Alves <palves@redhat.com>
10682
10683 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10684 directly. Instead find the first thread in the thread list and
10685 use switch_to_thread.
10686
78f2c40a
PA
106872020-01-10 Pedro Alves <palves@redhat.com>
10688
10689 * remote.c (remote_target::remote_add_inferior): Don't bind a
10690 process to the current inferior if the current inferior is already
10691 bound to a process.
10692
e7af6c70
TBA
106932020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10694 Pedro Alves <palves@redhat.com>
10695
10696 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10697 If no process is specified, return null_ptid instead of
10698 inferior_ptid.
10699 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10700 TARGET_WAITKIND_SIGNALLED with no pid.
10701
31ba933e
PA
107022020-01-10 Pedro Alves <palves@redhat.com>
10703
10704 * remote.c (first_remote_resumed_thread): New.
10705 (remote_target::wait_as): Use it as default event_ptid instead of
10706 inferior_ptid.
10707
735fc2ca
PA
107082020-01-10 Pedro Alves <palves@redhat.com>
10709
10710 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10711
c17e02e1
PA
107122020-01-10 Pedro Alves <palves@redhat.com>
10713
10714 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10715 not -1.
10716
ab1ddbcf
PA
107172020-01-10 Pedro Alves <palves@redhat.com>
10718
10719 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10720 ptid to get_last_target_status.
10721 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10722 ptid to get_last_target_status.
10723 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10724 get_last_target_status.
10725 (info_program_command): Don't pass a target_waitstatus to
10726 get_last_target_status.
10727 * infrun.c (init_wait_for_inferior): Use
10728 nullify_last_target_wait_ptid.
10729 (get_last_target_status): Handle nullptr arguments.
10730 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10731 (print_stop_event): Don't pass a ptid to get_last_target_status.
10732 (normal_stop): Don't pass a ptid to get_last_target_status.
10733 * infrun.h (get_last_target_status, set_last_target_status): Move
10734 comments here and update.
10735 (nullify_last_target_wait_ptid): Declare.
10736 * linux-fork.c (fork_load_infrun_state): Remove local extern
10737 declaration of nullify_last_target_wait_ptid.
10738 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10739 to get_last_target_status.
10740
f3f8ece4
PA
107412020-01-10 Pedro Alves <palves@redhat.com>
10742
10743 * gdbthread.h (scoped_restore_current_thread)
10744 <dont_restore, restore, m_dont_restore>: Declare.
10745 * thread.c (thread_alive): Add assertion. Return bool.
10746 (switch_to_thread_if_alive): New.
10747 (prune_threads): Switch inferior/thread.
10748 (print_thread_info_1): Switch thread before calling target methods.
10749 (scoped_restore_current_thread::restore): New, factored out from
10750 ...
10751 (scoped_restore_current_thread::~scoped_restore_current_thread):
10752 ... this.
10753 (scoped_restore_current_thread::scoped_restore_current_thread):
10754 Add assertion.
10755 (thread_apply_all_command, thread_select): Use
10756 switch_to_thread_if_alive.
10757 * infrun.c (proceed, restart_threads, handle_signal_stop)
10758 (switch_back_to_stepped_thread): Switch current thread before
10759 calling target methods.
10760
db2d40f7
PA
107612020-01-10 Pedro Alves <palves@redhat.com>
10762
10763 * inferior.c (switch_to_inferior_no_thread): New function,
10764 factored out from ...
10765 (inferior_command): ... here.
10766 * inferior.h (switch_to_inferior_no_thread): Declare.
10767 * mi/mi-main.c (run_one_inferior): Use
10768 switch_to_inferior_no_thread.
10769
bd420a2d
PA
107702020-01-10 Pedro Alves <palves@redhat.com>
10771
10772 * infcmd.c (kill_command): Remove dead code.
10773
ddf5db90
PA
107742020-01-10 Pedro Alves <palves@redhat.com>
10775
10776 * remote.c (remote_target::mourn_inferior): No longer check
10777 whether the target is running.
10778
5018ce90
PA
107792020-01-10 Pedro Alves <palves@redhat.com>
10780
10781 * corelow.c (core_target::has_execution): Change parameter type to
10782 inferior pointer.
10783 * inferior.c (number_of_live_inferiors): Use
10784 inferior::has_execution instead of target_has_execution_1.
10785 * inferior.h (inferior::has_execution): New.
10786 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10787 inferior::has_execution instead of target_has_execution_1.
10788 * process-stratum-target.c
10789 (process_stratum_target::has_execution): Change parameter type to
10790 inferior pointer. Check the inferior's PID instead of
10791 inferior_ptid.
10792 * process-stratum-target.h
10793 (process_stratum_target::has_execution): Change parameter type to
10794 inferior pointer.
10795 * record-full.c (record_full_core_target::has_execution): Change
10796 parameter type to inferior pointer.
10797 * target.c (target_has_execution_1): Change parameter type to
10798 inferior pointer.
10799 (target_has_execution_current): Adjust.
10800 * target.h (target_ops::has_execution): Change parameter type to
10801 inferior pointer.
10802 (target_has_execution_1): Change parameter type to inferior
10803 pointer. Change return type to bool.
10804 * tracefile.h (tracefile_target::has_execution): Change parameter
10805 type to inferior pointer.
10806
74375d18
PA
108072020-01-10 Pedro Alves <palves@redhat.com>
10808
10809 * exceptions.c (print_flush): Remove current_top_target() check.
10810
acdf84a6
PA
108112020-01-10 Pedro Alves <palves@redhat.com>
10812
10813 * remote.c (show_remote_exec_file): Show the current inferior's
10814 exec-file instead of the command variable's value.
10815
ec506636
PA
108162020-01-10 Pedro Alves <palves@redhat.com>
10817
10818 * record-full.c (record_full_resume_ptid): New global.
10819 (record_full_target::resume): Set it.
10820 (record_full_wait_1): Use record_full_resume_ptid instead of
10821 inferior_ptid.
10822
873657b9
PA
108232020-01-10 Pedro Alves <palves@redhat.com>
10824
10825 * gdbthread.h (scoped_restore_current_thread)
10826 <dont_restore, restore, m_dont_restore>: Declare.
10827 * thread.c (thread_alive): Add assertion. Return bool.
10828 (switch_to_thread_if_alive): New.
10829 (prune_threads): Switch inferior/thread.
10830 (print_thread_info_1): Switch thread before calling target methods.
10831 (scoped_restore_current_thread::restore): New, factored out from
10832 ...
10833 (scoped_restore_current_thread::~scoped_restore_current_thread):
10834 ... this.
10835 (scoped_restore_current_thread::scoped_restore_current_thread):
10836 Add assertion.
10837 (thread_apply_all_command, thread_select): Use
10838 switch_to_thread_if_alive.
10839
7f0ae84c
GB
108402020-01-10 George Barrett <bob@bob131.so>
10841
10842 * stap-probe.c (stap_modify_semaphore): Don't check for null
10843 semaphores.
10844 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10845 for null semaphores.
10846
f5a7c406
AB
108472020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10848
10849 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10850 all source windows, and maintain horizontal scroll status while
10851 doing so.
10852
9ae6bf64
TT
108532020-01-09 Tom Tromey <tom@tromey.com>
10854
10855 PR tui/18932:
10856 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10857 update_source_window, not print_source_lines.
10858
b2efe70c
AB
108592020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10860
10861 * tui/tui.c (tui_enable): Register tui hooks after calling
10862 tui_display_main.
10863
5f23a082
CB
108642020-01-09 Christian Biesinger <cbiesinger@google.com>
10865
10866 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10867
3061113b
SM
108682020-01-08 Simon Marchi <simon.marchi@efficios.com>
10869
10870 * thread.c (print_thread_info_1): Fix indentation.
10871
57d75002
CB
108722020-01-09 Christian Biesinger <cbiesinger@google.com>
10873
10874 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10875 unique_xmalloc_ptr outside the if to always free the demangled name.
10876
6a053cb1
TT
108772020-01-08 Tom Tromey <tromey@adacore.com>
10878
10879 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10880 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10881 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10882 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10883 Remove.
10884 (section_offsets): New typedef.
10885 * symtab.c (fixup_section, get_msymbol_address): Update.
10886 * symmisc.c (dump_msymbols): Update.
10887 * symfile.h (relative_addr_info_to_section_offsets)
10888 (symfile_map_offsets_to_segments): Update.
10889 * symfile.c (build_section_addr_info_from_objfile)
10890 (init_objfile_sect_indices): Update.
10891 (struct place_section_arg): Change type of "offsets".
10892 (place_section): Update.
10893 (relative_addr_info_to_section_offsets): Change type of
10894 "section_offsets". Remove "num_sections" parameter.
10895 (default_symfile_offsets, syms_from_objfile_1)
10896 (set_objfile_default_section_offset): Update.
10897 (reread_symbols): No need to preserve section offsets by hand.
10898 (symfile_map_offsets_to_segments): Change type of "offsets".
10899 * stap-probe.c (relocate_address): Update.
10900 * stabsread.h (process_one_symbol): Update.
10901 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10902 (solib_target_relocate_section_addresses): Update.
10903 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10904 Update.
10905 * solib-frv.c (frv_relocate_main_executable): Update.
10906 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10907 * solib-aix.c (solib_aix_get_section_offsets): Change return
10908 type.
10909 (solib_aix_solib_create_inferior_hook): Update.
10910 * remote.c (remote_target::get_offsets): Update.
10911 * psymtab.c (find_pc_sect_psymtab): Update.
10912 * psympriv.h (struct partial_symbol) <address, text_low,
10913 text_high>: Update.
10914 * objfiles.h (obj_section_offset): Update.
10915 (struct objfile) <section_offsets>: Change type.
10916 <num_sections>: Remove.
10917 (objfile_relocate): Update.
10918 * objfiles.c (entry_point_address_query): Update
10919 (relocate_one_symbol): Change type of "section_offsets".
10920 (objfile_relocate1, objfile_relocate1): Change type of
10921 "new_offsets".
10922 (objfile_rebase1): Update.
10923 * mipsread.c (mipscoff_symfile_read): Update.
10924 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10925 parameter.
10926 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10927 (parse_external, psymtab_to_symtab_1): Update.
10928 * machoread.c (macho_symfile_offsets): Update.
10929 * ia64-tdep.c (ia64_find_unwind_table): Update.
10930 * hppa-tdep.c (read_unwind_info): Update.
10931 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10932 * dwarf2read.c (create_addrmap_from_index)
10933 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10934 (process_psymtab_comp_unit_reader, add_partial_symbol)
10935 (add_partial_subprogram, process_full_comp_unit)
10936 (read_file_scope, read_func_scope, read_lexical_block_scope)
10937 (read_call_site_scope, dwarf2_rnglists_process)
10938 (dwarf2_ranges_process, dwarf2_ranges_read)
10939 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10940 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10941 Update.
10942 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10943 Update.
10944 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10945 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10946 (process_one_symbol): Change type of "section_offsets".
10947 * ctfread.c (get_objfile_text_range): Update.
10948 * coffread.c (coff_symtab_read, enter_linenos)
10949 (process_coff_symbol): Update.
10950 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10951 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10952
456e800a
TT
109532020-01-08 Tom Tromey <tromey@adacore.com>
10954
10955 * dwarf2read.c (parse_macro_definition): Use std::string.
10956 (parse_macro_definition): Likewise.
10957
6dfa2fc2
TT
109582020-01-08 Tom Tromey <tromey@adacore.com>
10959
10960 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10961 (ATTR_ALLOC_CHUNK): Remove.
10962
421d1616
TT
109632020-01-08 Tom Tromey <tromey@adacore.com>
10964
10965 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10966
43816ebc
TT
109672020-01-08 Tom Tromey <tromey@adacore.com>
10968
10969 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10970 (dwarf2_compute_name, open_dwo_file): Likewise.
10971 (process_enumeration_scope): Use std::vector.
10972 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10973 (partial_die_info::fixup, dwarf2_start_subfile)
10974 (guess_full_die_structure_name, dwarf2_name): Likewise.
10975 (determine_prefix): Update.
10976 (guess_full_die_structure_name): Make return type const.
10977 (partial_die_full_name): Return unique_xmalloc_ptr.
10978 (DW_FIELD_ALLOC_CHUNK): Remove.
10979
4212d509
TT
109802020-01-07 Tom Tromey <tromey@adacore.com>
10981
10982 PR build/24937:
10983 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10984
06a6207a
JT
109852020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10986
10987 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10988
153d79c4
AB
109892020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10990
10991 * stack.c (print_frame_info): Move disassemble_next_line code
10992 inside source_print block.
10993
66182876
EZ
109942020-01-06 Eli Zaretskii <eliz@gnu.org>
10995
10996 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10997 gdb/signals.h, as we are now using native signal symbols.
10998
cbfa8581
SV
109992020-01-06 Shahab Vahedi <shahab@synopsys.com>
11000
11001 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11002 overflow by an early check of content vs threshold.
aac66a4c 11003 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11004 Likewise.
11005
3f602821
EZ
110062020-01-06 Eli Zaretskii <eliz@gnu.org>
11007
11008 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11009
a08c904d
JT
110102020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11011
11012 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11013 export table if no section contains it's RVA.
11014
89a65580
EZ
110152020-01-06 Eli Zaretskii <eliz@gnu.org>
11016
11017 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11018
8b7fcda2
HD
110192020-01-06 Hannes Domani <ssbssa@yahoo.de>
11020
11021 * source.c (print_source_lines_base): Set last_line_listed.
11022
a61b4f69
SV
110232020-01-06 Shahab Vahedi <shahab@synopsys.com>
11024
11025 * tui/tui-disasm.c: Remove trailing spaces.
11026
559e7e50
EZ
110272020-01-06 Eli Zaretskii <eliz@gnu.org>
11028 Pedro Alves <palves@redhat.com>
11029
11030 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11031 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11032 (windows_gdb_signal_to_target): New function, uses the above
11033 enumeration to convert GDB internal signal codes to equivalent
11034 Windows codes.
11035 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11036 * windows-nat.c: Include "gdb_wait.h".
11037 (get_windows_debug_event): Extract the fatal exception from the
11038 exit status and convert to the equivalent Posix signal number.
11039 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11040 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11041 * gdbsupport/gdb_wait.c: New file, implements
11042 windows_status_to_termsig.
11043 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11044 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11045
f2302a34
AB
110462020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11047
11048 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11049 show_layout.
11050
6a5206eb
LM
110512020-01-05 Luis Machado <luis.machado@linaro.org>
11052
11053 * aarch64-linux-nat.c
11054 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11055 and bfd_mach_aarch64.
11056
6ec1d75e
PW
110572020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11058
11059 * ui-file.c (stdio_file::can_emit_style_escape)
11060 (tee_file::can_emit_style_escape): Ensure style is used also on
11061 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11062 to gdb_stdout.
11063 * main.c (set_gdb_data_directory): Use file style to output the
11064 warning that the given pathname is not a directory.
11065 * top.c (show_history_filename, gdb_safe_append_history)
11066 (show_gdb_datadir): Use file style.
11067
44f81a76
HD
110682020-01-03 Hannes Domani <ssbssa@yahoo.de>
11069
11070 * solib-target.c (struct lm_info_target):
11071 Change offsets to be a unique_xmalloc_ptr.
11072 (solib_target_relocate_section_addresses): Update.
11073
25057eb0
HD
110742020-01-03 Hannes Domani <ssbssa@yahoo.de>
11075
11076 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11077
6e2118f5
BE
110782020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11079
11080 * MAINTAINERS (Write After Approval): Add myself.
11081
8133c7dc
LM
110822020-01-02 Luis Machado <luis.machado@linaro.org>
11083
11084 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11085 Cell BE architecture.
11086 * target.h (struct target_ops) <thread_architecture>: Likewise.
11087
48189bec
HD
110882020-01-01 Hannes Domani <ssbssa@yahoo.de>
11089
11090 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11091
ead1063b
HD
110922020-01-01 Hannes Domani <ssbssa@yahoo.de>
11093
11094 * MAINTAINERS (Write After Approval): Add myself.
11095
e5d78223
JB
110962020-01-01 Joel Brobecker <brobecker@adacore.com>
11097
11098 * gdbarch.sh: Update copyright year range of generated files.
11099
b811d2c2
JB
111002020-01-01 Joel Brobecker <brobecker@adacore.com>
11101
11102 Update copyright year range in all GDB files.
11103
5f4def5c
JB
111042020-01-01 Joel Brobecker <brobecker@adacore.com>
11105
11106 * copyright.py: Convert to Python 3.
11107
51fd4002
JB
111082020-01-01 Joel Brobecker <brobecker@adacore.com>
11109
11110 * copyright.py: Adapt after move of gnulib directory from gdb
11111 directory to toplevel directory.
11112
5fb651f2
JB
111132020-01-01 Joel Brobecker <brobecker@adacore.com>
11114
11115 * copyright.py (main): Exit if run from the wrong directory.
11116
5dd8bf88
JB
111172020-01-01 Joel Brobecker <brobecker@adacore.com>
11118
11119 * top.c (print_gdb_version): Change copyright year to 2020.
11120
9f71dacb 111212020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11122
9f71dacb 11123 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11124
9f71dacb 11125For older changes see ChangeLog-2019.
c906108c
SS
11126\f
11127Local Variables:
11128mode: change-log
11129left-margin: 8
11130fill-column: 74
11131version-control: never
57da7796 11132coding: utf-8
c906108c 11133End:
This page took 3.539584 seconds and 4 git commands to generate.