Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cf88be68
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <bounds>: Handle array and string
4 types.
5 * ada-lang.c (assign_aggregate): Use type::bounds on
6 array/string type.
7 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
8 * c-varobj.c (c_number_of_children): Likewise.
9 (c_describe_child): Likewise.
10 * eval.c (evaluate_subexp_for_sizeof): Likewise.
11 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
12 (f_type_print_base): Likewise.
13 * f-valprint.c (f77_array_offset_tbl): Likewise.
14 (f77_get_upperbound): Likewise.
15 (f77_print_array_1): Likewise.
16 * guile/scm-type.c (gdbscm_type_range): Likewise.
17 * m2-typeprint.c (m2_array): Likewise.
18 (m2_is_long_set_of_type): Likewise.
19 * m2-valprint.c (get_long_set_bounds): Likewise.
20 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
21 * python/py-type.c (typy_range): Likewise.
22 * rust-lang.c (rust_internal_print_type): Likewise.
23 * type-stack.c (type_stack::follow_types): Likewise.
24 * valarith.c (value_subscripted_rvalue): Likewise.
25 * valops.c (value_cast): Likewise.
26
509971ae
SM
272020-07-12 Simon Marchi <simon.marchi@efficios.com>
28
29 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
30 callers to use the equivalent accessor methods.
31
107406b7
SM
322020-07-12 Simon Marchi <simon.marchi@efficios.com>
33
34 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
35 (struct type) <bit_stride>: New method.
36 (TYPE_BIT_STRIDE): Remove.
37 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
38
bb789949
SM
392020-07-12 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
42 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
43 callers to use the equivalent accessor methods instead.
44
39498edb
SM
452020-07-12 Simon Marchi <simon.marchi@efficios.com>
46
47 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
48 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
49 callers to use the equivalent accessor methods instead.
50
3b606f38
SM
512020-07-12 Simon Marchi <simon.marchi@efficios.com>
52
53 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
54 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
55 to use dynamic_prop::kind.
56
064d9cb9
SM
572020-07-12 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
60 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
61 to get the bound property's kind and check against
62 PROP_UNDEFINED.
63
5537ddd0
SM
642020-07-12 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
67 all callers to use type::range_bounds followed by
68 dynamic_prop::{low,high}.
69
8c2e4e06
SM
702020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
73 const_val, set_const_val, baton, set_locexpr, set_loclist,
74 set_addr_offset, variant_parts, set_variant_parts,
75 original_type, set_original_type>: New methods.
76 <kind>: Rename to...
77 <m_kind>: ... this. Update all users to use the new methods
78 instead.
79 <data>: Rename to...
80 <m_data>: ... this. Update all users to use the new methods
81 instead.
82
7c6f2712
SM
832020-07-12 Simon Marchi <simon.marchi@efficios.com>
84
85 * gdbtypes.c (get_discrete_bounds): Return failure if
86 the range type's bounds are not both defined and constant
87 values.
88 (get_array_bounds): Update comment. Remove undefined bound check.
89
599088e3
SM
902020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
93 the type::bounds method directly.
94
c4dfcb36
SM
952020-07-12 Simon Marchi <simon.marchi@efficios.com>
96
97 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
98 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
99 are used to set the range type's bounds to use set_bounds.
100
0a278aa7
PW
1012020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
102
103 * exec.c (_initialize_exec): Update exec-file-mismatch help.
104
cce20f10
PA
1052020-07-10 Pedro Alves <pedro@palves.net>
106
107 * gdbthread.h (inferior_ref): Define.
108 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
109 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
110 * thread.c
111 (scoped_restore_current_thread::restore):
112 Adjust to gdb::ref_ptr.
113 (scoped_restore_current_thread::~scoped_restore_current_thread):
114 Remove manual decref handling.
115 (scoped_restore_current_thread::scoped_restore_current_thread):
116 Adjust to use
117 inferior_ref::new_reference/thread_info_ref::new_reference.
118 Incref the thread before calling get_frame_id instead of after.
119 Let TARGET_CLOSE_ERROR propagate.
120
6d7aa592
PA
1212020-07-10 Pedro Alves <pedro@palves.net>
122
123 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
124 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
125 NOT_AVAILABLE_ERROR.
126 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
127 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
128
b3e3a4c1
SM
1292020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
130 Pedro Alves <pedro@palves.net>
131
132 PR gdb/26199
133 * infrun.c (threads_are_resumed_pending_p): Delete.
134 (do_target_wait): Remove threads_are_executing and
135 threads_are_resumed_pending_p checks from the inferior_matches
136 lambda. Update comments.
137
d6cc5d98
PA
1382020-07-10 Pedro Alves <pedro@palves.net>
139
140 PR gdb/26199
141 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
142 executing threads.
143
7d3badc6
PA
1442020-07-10 Pedro Alves <pedro@palves.net>
145
146 PR gdb/26199
147 * infrun.c (handle_no_resumed): Handle multiple targets.
148
42bd97a6
PA
1492020-07-10 Pedro Alves <pedro@palves.net>
150
151 PR gdb/26199
152 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
153 target_is_async_p.
154
43667cc6
PA
1552020-07-10 Pedro Alves <pedro@palves.net>
156
157 PR gdb/26199
158 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
159 threads, not all threads.
160
96118d11
PA
1612020-07-10 Pedro Alves <pedro@palves.net>
162
163 PR gdb/26199
164 * remote.c (remote_target::open_1): Pass remote target pointer as
165 data to create_async_event_handler.
166 (remote_async_inferior_event_handler): Mark async event handler
167 before returning if the remote target still has either pending
168 events or unacknowledged notifications.
169
54904d81
JB
1702020-07-10 John Baldwin <jhb@FreeBSD.org>
171
172 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
173 declaration.
174 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
175 function.
176
f37e5866
JB
1772020-07-09 John Baldwin <jhb@FreeBSD.org>
178
179 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
180 inferior_ptid.
181
fc238d4a
JB
1822020-07-09 John Baldwin <jhb@FreeBSD.org>
183
184 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
185 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
186 AT_FREEBSD_PS_STRINGS.
187
6e2469ff
HD
1882020-07-08 Hannes Domani <ssbssa@yahoo.de>
189
190 * auto-load.c (auto_load_objfile_script_1): Convert drive part
191 of debugfile path on Windows.
192
d1076c41
JB
1932020-07-08 John Baldwin <jhb@FreeBSD.org>
194
195 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
196 argument to 'data'.
197
15f3b077
TT
1982020-07-08 Tom Tromey <tromey@adacore.com>
199
200 * ada-lang.c (ada_exception_message_1): Use read_memory.
201
9fc501fd
AB
2022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 PR python/22748
205 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
206 special handling for inline frames.
207 * findvar.c (value_of_register_lazy): Skip inline frames when
208 creating lazy register values.
209 * frame.c (frame_id_computed_p): Delete definition.
210 * frame.h (frame_id_computed_p): Delete declaration.
211
64cb3757
AB
2122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * NEWS: Mention additions to Python API.
215 * python/py-arch.c (archpy_register_groups): New function.
216 (arch_object_methods): Add 'register_groups' method.
217 * python/py-registers.c (reggroup_iterator_object): New struct.
218 (reggroup_object): New struct.
219 (gdbpy_new_reggroup): New function.
220 (gdbpy_reggroup_to_string): New function.
221 (gdbpy_reggroup_name): New function.
222 (gdbpy_reggroup_iter): New function.
223 (gdbpy_reggroup_iter_next): New function.
224 (gdbpy_new_reggroup_iterator): New function
225 (gdbpy_initialize_registers): Register new types.
226 (reggroup_iterator_object_type): Define new Python type.
227 (gdbpy_reggroup_getset): New static global.
228 (reggroup_object_type): Define new Python type.
229 * python/python-internal.h
230
0f767f94
AB
2312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
234 * python/py-arch.c (archpy_registers): New function.
235 (arch_object_methods): Add 'registers' method.
236 * python/py-registers.c: New file.
237 * python/python-internal.h
238 (gdbpy_new_register_descriptor_iterator): Declare.
239 (gdbpy_initialize_registers): Declare.
240 * python/python.c (do_start_initialization): Call
241 gdbpy_initialize_registers.
242 * NEWS: Mention additions to the Python API.
243
87dbc774
AB
2442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 * NEWS: Mention new Python API method.
247 * python/py-unwind.c (pending_framepy_architecture): New function.
248 (pending_frame_object_methods): Add architecture method.
249
3bc98c0c
AB
2502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * gdbarch.c: Regenerate.
253 * gdbarch.h: Regenerate.
254 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
255 (gdbarch_data): Use internal_error for the case where
256 deprecated_set_gdbarch_data was originally needed.
257 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
258 and use passed in obstack.
259 (libunwind_frame_set_descr): Should no longer get back NULL from
260 gdbarch_data.
261 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
262 type.
263 * user-regs.c (user_regs_init): Update parameters, and use passed
264 in obstack.
265 (user_reg_add): Should no longer get back NULL from gdbarch_data.
266 (_initialize_user_regs): Register as a pre-init gdbarch data type.
267
d8cc8af6
TV
2682020-07-06 Tom de Vries <tdevries@suse.de>
269
270 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
271 End-Of-Sequence in lte_is_less_than.
272 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
273 "gdb: Don't reorder line table entries too much when sorting".
274
947f7597
TV
2752020-07-06 Tom de Vries <tdevries@suse.de>
276
277 PR tui/26205
278 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
279
1e7c1b22
TV
2802020-07-05 Tom de Vries <tdevries@suse.de>
281
282 PR build/26187
283 * inferior.h (struct infcall_suspend_state_deleter): If available, use
284 std::uncaught_exceptions instead of deprecated
285 std::uncaught_exception.
286
a36158ec
SM
2872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * macroexp.h (macro_stringify): Return
290 gdb::unique_xmalloc_ptr<char>.
291 * macroexp.c (macro_stringify): Likewise.
292 * macrotab.c (fixup_definition): Update.
293
14d960c8
SM
2942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
297 (lex_one_token): Update.
298 * macroexp.c (struct macro_buffer) <release>: Return
299 gdb::unique_xmalloc_ptr<char>.
300 (macro_stringify): Update.
301 (macro_expand): Update.
302 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
303 * macroexp.h (macro_expand_next): Likewise.
304
211d5b1c
SM
3052020-07-02 Simon Marchi <simon.marchi@efficios.com>
306
307 * macroexp.h (macro_lookup_ftype): Remove.
308 (macro_expand, macro_expand_once, macro_expand_next): Remove
309 lookup function parameters, add scope parameter.
310 * macroexp.c (scan, substitute_args, expand, maybe_expand,
311 macro_expand, macro_expand_once, macro_expand_next): Likewise.
312 * macroscope.h (standard_macro_lookup): Change parameter type
313 to macro_scope.
314 * macroscope.c (standard_macro_lookup): Likewise.
315 * c-exp.y (lex_one_token): Update.
316 * macrocmd.c (macro_expand_command): Likewise.
317 (macro_expand_once_command): Likewise.
318
b1a35af2
SM
3192020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * inf-loop.c (inferior_event_handler): Remove client_data param.
322 * inf-loop.h (inferior_event_handler): Likewise.
323 * infcmd.c (step_1): Adjust.
324 * infrun.c (proceed): Adjust.
325 (fetch_inferior_event): Remove client_data param.
326 (infrun_async_inferior_event_handler): Adjust.
327 * infrun.h (fetch_inferior_event): Remove `void *` param.
328 * linux-nat.c (handle_target_event): Adjust.
329 * record-btrace.c (record_btrace_handle_async_inferior_event):
330 Adjust.
331 * record-full.c (record_full_async_inferior_event_handler):
332 Adjust.
333 * remote.c (remote_async_inferior_event_handler): Adjust.
334
1cdf9e33
TT
3352020-07-01 Tom Tromey <tom@tromey.com>
336
337 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
338 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
339
32c1e210
TT
3402020-07-01 Tom Tromey <tom@tromey.com>
341
342 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
343 tui_gen_win_info.
344 (tui_win_info::make_window): Merge with
345 tui_gen_win_info::make_window.
346 (tui_win_info::make_visible): Move from tui_gen_win_info.
347 * tui/tui-win.c (tui_win_info::max_width): Move from
348 tui_gen_win_info.
349 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
350 type.
351 <window_factory>: Likewise.
352 * tui/tui-layout.c (tui_win_info::resize): Move from
353 tui_gen_win_info.
354 (make_standard_window): Change return type.
355 (get_locator_window, tui_get_window_by_name): Likewise.
356 (tui_layout_window::apply): Remove a cast.
357 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
358 (struct tui_win_info): Merge with tui_gen_win_info.
359 (struct tui_gen_win_info): Remove.
360
a30cb6da
TT
3612020-07-01 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-stack.h (struct tui_locator_window): Derive from
364 tui_win_info.
365 <do_scroll_horizontal, do_scroll_vertical>: New methods.
366 <can_box>: New method.
367
1eb2161f
TT
3682020-07-01 Tom Tromey <tom@tromey.com>
369
370 * tui/tui-stack.h (struct tui_locator_window): Remove body.
371
7134f2eb
TT
3722020-07-01 Tom Tromey <tom@tromey.com>
373
374 * tui/tui-regs.c (tui_data_window::display_registers_from)
375 (tui_data_window::display_registers_from)
376 (tui_data_window::first_data_item_displayed)
377 (tui_data_window::delete_data_content_windows): Update.
378 (tui_data_window::refresh_window, tui_data_window::no_refresh):
379 Remove.
380 (tui_data_window::check_register_values): Update.
381 (tui_data_item_window::rerender): Add parameters. Update.
382 (tui_data_item_window::refresh_window): Remove.
383 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
384 virtual.
385 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
386 tui_gen_win_info.
387 <refresh_window, max_height, min_height>: Remove.
388 <rerender>: Add parameters.
389 <x, y, visible>: New members.
390 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
391 <m_item_width>: New member.
392
22b7b041
TT
3932020-07-01 Tom Tromey <tom@tromey.com>
394
395 * tui/tui-regs.c (tui_data_window::show_register_group)
396 (tui_data_window::check_register_values): Update.
397 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
398 from item_no.
399
c9753adb
TT
4002020-07-01 Tom Tromey <tom@tromey.com>
401
402 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
403 useless "if".
404
9ab26b4a
TT
4052020-07-01 Tom Tromey <tom@tromey.com>
406
407 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
408 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
409
e555083f
TT
4102020-07-01 Tom Tromey <tom@tromey.com>
411
412 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
413 * tui/tui-winsource.h (enum tui_line_or_address_kind)
414 (struct tui_line_or_address): Move from tui-data.h.
415 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
416 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
417 (tui_cmd_window, tui_source_window_base, tui_source_window)
418 (tui_disasm_window): Don't declare.
419 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
420 to tui-winsource.h.
421 (SINGLE_KEY): Move to tui-stack.c.
422
7a02bab7
TT
4232020-07-01 Tom Tromey <tom@tromey.com>
424
425 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
426 std::string.
427 * tui/tui-regs.c (class tab_expansion_file): New.
428 (tab_expansion_file::write): New method.
429 (tui_register_format): Change return type. Use
430 tab_expansion_file.
431 (tui_get_register, tui_data_window::display_registers_from)
432 (tui_data_item_window::rerender): Update.
433 * tui/tui-io.h (tui_expand_tabs): Don't declare.
434 * tui/tui-io.c (tui_expand_tabs): Remove.
435
ea68593b
TT
4362020-07-01 Tom Tromey <tom@tromey.com>
437
438 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
439
a8caed5d
FS
4402020-07-01 Fangrui Song <maskray@google.com>
441
442 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
443
9cdf9820
AKS
4442020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
445
446 * dwarf2/read.c (set_die_type): Removed conditions to restrict
447 forms for DW_AT_associated and DW_AT_allocated attributes,
448 which is already checked in function attr_to_dynamic_prop.
449
a1520ad8
TT
4502020-06-30 Tom Tromey <tromey@adacore.com>
451
452 * dwarf2/read.c (quirk_rust_enum): Correctly call
453 alloc_rust_variant for default-less enum.
454
5ac58899
TT
4552020-06-30 Tom Tromey <tromey@adacore.com>
456
457 PR build/26183:
458 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
459 gdb::to_string.
460
19b187a9
SM
4612020-06-29 Simon Marchi <simon.marchi@efficios.com>
462
463 * gdbarch.sh (displaced_step_copy_insn): Update doc.
464 * gdbarch.h: Re-generate.
465
cd4c4c07
TT
4662020-06-28 Tom Tromey <tom@tromey.com>
467
468 * command.h (cmd_types): Remove.
469 (cmd_type): Don't declare.
470 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
471 typedef.
472 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
473 * cli/cli-decode.c (cmd_type): Remove.
474
05779d57
PA
4752020-06-27 Pedro Alves <palves@redhat.com>
476
477 * fork-child.c (prefork_hook): Adjust.
478 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
479 Delete.
480 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
481 * inferior.c (inferior::set_tty, inferior::tty): New methods.
482 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
483 Remove declarations.
484 (struct inferior) <set_tty, tty>: New methods.
485 (struct inferior) <terminal>: Rename to ...
486 (struct inferior) <m_terminal>: ... this and make private.
487 * main.c (captured_main_1): Adjust.
488 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
489 (mi_cmd_inferior_tty_show): Adjust.
490 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
491 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
492
1776e3e5
NA
4932020-06-26 Nick Alcock <nick.alcock@oracle.com>
494
495 * configure.ac: Add --enable-libctf: handle --disable-static
496 properly.
497 * acinclude.m4: sinclude ../config/enable.m4.
498 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
499 (LIBCTF): Substitute in.
500 (CTF_DEPS): New, likewise.
501 (CLIBS): libctf needs symbols from libbfd: move earlier.
502 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
503 flags.
504 * ctfread.c: Surround in ENABLE_LIBCTF.
505 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
506 * configure: Regenerate.
507 * config.in: Likewise.
508
58373b80
SM
5092020-06-25 Simon Marchi <simon.marchi@efficios.com>
510
511 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
512
277474ee
SM
5132020-06-25 Simon Marchi <simon.marchi@efficios.com>
514
515 * inferior.h (struct inferior) <terminal>: Change type to
516 gdb::unique_xmalloc_ptr<char>.
517 * inferior.c (inferior::~inferior): Don't free inf->terminal.
518 * infcmd.c (set_inferior_io_terminal): Don't free terminal
519 field, adjust to unique pointer.
520 (get_inferior_io_terminal): Adjust to unique pointer.
521
6d74da72
AB
5222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 * riscv-tdep.c (riscv_print_registers_info): Loop over all
525 registers, not just the known core set of registers.
526
2e52d038
AB
5272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
530 fflags, frm, and fcsr registers.
531 (riscv_register_reggroup_p): Remove unknown CSRs from save and
532 restore groups.
533 (riscv_tdesc_unknown_reg): New function.
534 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
535 tdesc_use_registers.
536 * riscv-tdep.h (struct gdbarch_tdep): Add
537 unknown_csrs_first_regnum, unknown_csrs_count,
538 duplicate_fflags_regnum, duplicate_frm_regnum, and
539 duplicate_fcsr_regnum fields.
540
be64fd07
AB
5412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * target-descriptions.c (tdesc_use_registers): Add new parameter a
544 callback, use the callback (when not null) to help number unknown
545 registers.
546 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
547 (tdesc_use_registers): Add extra parameter to declaration.
548
3b9fce96
AB
5492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
552 in the file.
553 (class riscv_pending_register_alias): Likewise.
554 (riscv_register_feature::register_info): Change 'required_p' field
555 to 'required', and change its type. Add 'check' member function.
556 (riscv_register_feature::register_info::check): Define new member
557 function.
558 (riscv_xreg_feature): Change initialisation of 'required' field.
559 (riscv_freg_feature): Likewise.
560 (riscv_virtual_feature): Likewise.
561 (riscv_csr_feature): Likewise.
562 (riscv_check_tdesc_feature): Take extra parameter, the csr
563 tdesc_feature, rewrite the function to use the new
564 riscv_register_feature::register_info::check function.
565 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
566
865bad26
AB
5672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
568
569 * features/Makefile: Remove all references to the deleted files
570 below.
571 * features/riscv/32bit-csr.c: Deleted.
572 * features/riscv/32bit-csr.xml: Deleted.
573 * features/riscv/64bit-csr.c: Deleted.
574 * features/riscv/64bit-csr.xml: Deleted.
575 * features/riscv/rebuild-csr-xml.sh: Deleted.
576
ed69cbc8
AB
5772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
580 whitespace error for declaration of names member variable.
581 (struct riscv_register_feature): Add new prefer_first_name member
582 variable, and fix whitespace error in declaration of registers.
583 (riscv_xreg_feature): Initialize prefer_first_name field.
584 (riscv_freg_feature): Likewise.
585 (riscv_virtual_feature): Likewise.
586 (riscv_csr_feature): Likewise.
587 (riscv_register_name): Expand on comments. Remove register name
588 modifications for CSR and virtual registers.
589
4445e8f5
AB
5902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
591
592 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
593 errors.
594
767a879e
AB
5952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
598 riscv-opc.h.
599 (class riscv_pending_register_alias): New class.
600 (riscv_check_tdesc_feature): Take vector of pending aliases and
601 populate it as appropriate.
602 (riscv_setup_register_aliases): Delete.
603 (riscv_gdbarch_init): Create vector of pending aliases and pass it
604 to riscv_check_tdesc_feature in all cases. Use the vector to
605 create the register aliases.
606
bb6e55f3
RO
6072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608
609 * sol2-tdep.c (sol2_static_transform_name): Remove.
610 (sol2_init_abi): Don't register it.
611 * gdbarch.sh (static_transform_name): Remove.
612 * gdbarch.c, gdbarch.h: Regenerate.
613
614 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
615 gdbarch_static_transform_name.
616 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
617 * stabsread.c (define_symbol) <'X'>: Remove.
618 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
619 handling.
620 <'V'>: Likewise.
621 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
622 <'S'>: Remove call to gdbarch_static_transform_name.
623
c6d36836
RO
6242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
625
626 * procfs.c (procfs_pre_trace): New function.
627 (procfs_target::create_inferior): Pass it to fork_inferior.
628
a7e6196b
RO
6292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
630
631 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
632 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
633 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
634 sol2-tdep.o, sparc-sol2-tdep.o.
635 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
636 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
637 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
638 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
639
d412e696
RO
6402020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641
642 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
643 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
644 Call sol2_init_abi.
645 Remove calls to set_gdbarch_skip_solib_resolver,
646 set_gdbarch_core_pid_to_str.
647 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
648 (i386_sol2_static_transform_name): Remove.
649 (i386_sol2_init_abi): Call sol2_init_abi.
650 Remove calls to set_gdbarch_sofun_address_maybe_missing,
651 set_gdbarch_static_transform_name,
652 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
653 Use sol2_sigtramp_p.
654 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
655 (sol2_sigtramp_p): New function.
656 (sol2_static_transform_name): New function.
657 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
658 (sol2_init_abi): New function.
659 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
660 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
661 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
662 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
663 (sparc_sol2_static_transform_name): Remove.
664 (sparc32_sol2_init_abi): Call sol2_init_abi.
665 Remove calls to set_gdbarch_sofun_address_maybe_missing,
666 set_gdbarch_static_transform_name,
667 set_gdbarch_skip_solib_resolver,
668 set_gdbarch_core_pid_to_str.
669 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
670 (sparc_sol2_static_transform_name): Remove
671 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
672 call sol2_sigtramp_p.
673 (sparc64_sol2_init_abi): Call sol2_init_abi.
674 Remove calls to set_gdbarch_sofun_address_maybe_missing,
675 set_gdbarch_static_transform_name,
676 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
677
a8654e7d
PW
6782020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
679
680 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
681 * exec.c (validate_exec_file): If from_tty, set both
682 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
683 * symfile.c (symbol_file_add_with_addrs): if always_confirm
684 and from_tty, unconditionally ask a confirmation.
685
caa7fd04
AB
6862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * target-descriptions.c (tdesc_architecture_name): Protect against
689 NULL pointer dereference.
690 (maint_print_xml_tdesc_cmd): New function.
691 (_initialize_target_descriptions): Register new 'maint print
692 xml-tdesc' command and give it the filename completer.
693 * NEWS: Mention new 'maint print xml-tdesc' command.
694
fbf42f4e
AB
6952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * target-descriptions.c (class tdesc_compatible_info): New class.
698 (struct target_desc): Change type of compatible vector.
699 (tdesc_compatible_p): Update for change in type of
700 target_desc::compatible.
701 (tdesc_compatible_info_list): New function.
702 (tdesc_compatible_info_arch_name): New function.
703 (tdesc_add_compatible): Update for change in type of
704 target_desc::compatible.
705 (print_c_tdesc::visit_pre): Likewise.
706
20821f4e
AB
7072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
710 whitespace to underscore.
711 (maint_print_c_tdesc_cmd): Use fake filename for target
712 descriptions that came from the target.
713 (_initialize_target_descriptions): Add filename command completion
714 for 'maint print c-tdesc'.
715
1fb5ee62
SM
7162020-06-23 Simon Marchi <simon.marchi@efficios.com>
717
718 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
719 lines.
720
fc3ecb3e
SM
7212020-06-23 Simon Marchi <simon.marchi@efficios.com>
722
723 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
724 lines.
725 (dwarf2_find_location_expression): Likewise.
726 (call_site_parameter_matches): Likewise.
727 (dwarf2_compile_expr_to_ax): Likewise.
728 (disassemble_dwarf_expression): Likewise.
729 (loclist_describe_location): Likewise.
730
236ef034
PA
7312020-06-23 Pedro Alves <palves@redhat.com>
732
733 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
734 progspace-and-thread.h. Include scoped-mock-context.h instead.
735 (register_to_value_test): Use scoped_mock_context.
736 * regcache.c: Include "scoped-mock-context.h".
737 (cooked_read_test): Don't error out if a target is already pushed.
738 Use scoped_mock_context. Adjust.
739 * scoped-mock-context.h: New file.
740
39e7ecca
AB
7412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
744 initializer.
745 (ada_language::is_string_type_p): New member function.
746 * c-lang.c (c_language_data): Delete la_is_string_type_p
747 initializer.
748 (cplus_language_data): Likewise.
749 (asm_language_data): Likewise.
750 (minimal_language_data): Likewise.
751 * d-lang.c (d_language_data): Likewise.
752 * f-lang.c (f_is_string_type_p): Delete function, implementation
753 moved to f_language::is_string_type_p.
754 (f_language_data): Delete la_is_string_type_p initializer.
755 (f_language::is_string_type_p): New member function,
756 implementation from f_is_string_type_p.
757 * go-lang.c (go_is_string_type_p): Delete function, implementation
758 moved to go_language::is_string_type_p.
759 (go_language_data): Delete la_is_string_type_p initializer.
760 (go_language::is_string_type_p): New member function,
761 implementation from go_is_string_type_p.
762 * language.c (language_defn::is_string_type_p): Define new member
763 function.
764 (default_is_string_type_p): Make static, add comment copied from
765 header file.
766 (unknown_language_data): Delete la_is_string_type_p initializer.
767 (unknown_language::is_string_type_p): New member function.
768 (auto_language_data): Delete la_is_string_type_p initializer.
769 (auto_language::is_string_type_p): New member function.
770 * language.h (language_data): Delete la_is_string_type_p field.
771 (language_defn::is_string_type_p): Declare new function.
772 (default_is_string_type_p): Delete desclaration, move comment to
773 definition.
774 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
775 moved to m2_language::is_string_type_p.
776 (m2_language_data): Delete la_is_string_type_p initializer.
777 (m2_language::is_string_type_p): New member function,
778 implementation from m2_is_string_type_p.
779 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
780 initializer.
781 * opencl-lang.c (opencl_language_data): Likewise.
782 * p-lang.c (pascal_is_string_type_p): Delete function,
783 implementation moved to pascal_language::is_string_type_p.
784 (pascal_language_data): Delete la_is_string_type_p initializer.
785 (pascal_language::is_string_type_p): New member function,
786 implementation from pascal_is_string_type_p.
787 * rust-lang.c (rust_is_string_type_p): Delete function,
788 implementation moved to rust_language::is_string_type_p.
789 (rust_language_data): Delete la_is_string_type_p initializer.
790 (rust_language::is_string_type_p): New member function,
791 implementation from rust_is_string_type_p.
792 * valprint.c (val_print_scalar_or_string_type_p): Update call to
793 is_string_type_p.
794
4ffc13fb
AB
7952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * ada-lang.c (ada_language_data): Delete la_print_typedef
798 initializer.
799 (ada_language::print_typedef): New member function.
800 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
801 (cplus_language_data): Likewise.
802 (asm_language_data): Likewise.
803 (minimal_language_data): Likewise.
804 * d-lang.c (d_language_data): Likewise.
805 * f-lang.c (f_language_data): Likewise.
806 (f_language::print_typedef): New member function.
807 * go-lang.c (go_language_data): Delete la_print_typedef
808 initializer.
809 * language.c (language_defn::print_typedef): Define member
810 function.
811 (unknown_language_data): Delete la_print_typedef initializer.
812 (unknown_language::print_typedef): New member function.
813 (auto_language_data): Delete la_print_typedef initializer.
814 (auto_language::print_typedef): New member function.
815 * language.h (language_data): Delete la_print_typedef field.
816 (language_defn::print_typedef): Declare new member function.
817 (LA_PRINT_TYPEDEF): Update call to print_typedef.
818 (default_print_typedef): Delete declaration.
819 * m2-lang.c (m2_language_data): Delete la_print_typedef
820 initializer.
821 (m2_language::print_typedef): New member function.
822 * objc-lang.c (objc_language_data): Delete la_print_typedef
823 initializer.
824 * opencl-lang.c (opencl_language_data): Likewise.
825 * p-lang.c (pascal_language_data): Likewise.
826 (pascal_language::print_typedef): New member function.
827 * rust-lang.c (rust_print_typedef): Delete function,
828 implementation moved to rust_language::print_typedef.
829 (rust_language): Delete la_print_typedef initializer.
830 (rust_language::print_typedef): New member function,
831 implementation from rust_print_typedef.
832 * typeprint.c (default_print_typedef): Delete.
833
d711ee67
AB
8342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
837 (ada_language::printstr): New member function.
838 * c-lang.c (c_language_data): Delete la_printstr initializer.
839 (cplus_language_data): Likewise.
840 (asm_language_data): Likewise.
841 (minimal_language_data): Likewise.
842 * d-lang.c (d_language_data): Likewise.
843 * f-lang.c (f_printstr): Rename to f_language::printstr.
844 (f_language_data): Delete la_printstr initializer.
845 (f_language::printstr): New member function, implementation from
846 f_printstr.
847 * go-lang.c (go_language_data): Delete la_printstr initializer.
848 * language.c (language_defn::printstr): Define new member
849 function.
850 (unk_lang_printstr): Delete.
851 (unknown_language_data): Delete la_printstr initializer.
852 (unknown_language::printstr): New member function.
853 (auto_language_data): Delete la_printstr initializer.
854 (auto_language::printstr): New member function.
855 * language.h (language_data): Delete la_printstr field.
856 (language_defn::printstr): Declare new member function.
857 (LA_PRINT_STRING): Update call to printstr.
858 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
859 (m2_language_data): Delete la_printstr initializer.
860 (m2_language::printstr): New member function, implementation from
861 m2_printstr.
862 * objc-lang.c (objc_language_data): Delete la_printstr
863 initializer.
864 * opencl-lang.c (opencl_language_data): Likewise.
865 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
866 (pascal_language_data): Delete la_printstr initializer.
867 (pascal_language::printstr): New member function, implementation
868 from pascal_printstr.
869 * p-lang.h (pascal_printstr): Delete declaration.
870 * rust-lang.c (rust_printstr): Update header comment.
871 (rust_language_data): Delete la_printstr initializer.
872 (rust_language::printstr): New member function.
873
52b50f2c
AB
8742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
877 (ada_language::printchar): New member function.
878 * c-lang.c (c_language_data): Delete la_printchar initializer.
879 (cplus_language_data): Likewise.
880 (asm_language_data): Likewise.
881 (minimal_language_data): Likewise.
882 * d-lang.c (d_language_data): Likewise.
883 * f-lang.c (f_printchar): Rename to f_language::printchar.
884 (f_language_data): Delete la_printchar initializer.
885 (f_language::printchar): New member function, implementation from
886 f_printchar.
887 * go-lang.c (go_language_data): Delete la_printchar initializer.
888 * language.c (unk_lang_printchar): Delete.
889 (language_defn::printchar): Define new member function.
890 (unknown_language_data): Delete la_printchar initializer.
891 (unknown_language::printchar): New member function.
892 (auto_language_data): Delete la_printchar initializer.
893 (auto_language::printchar): New member function.
894 * language.h (language_data): Delete la_printchar field.
895 (language_defn::printchar): Declare new member function.
896 (LA_PRINT_CHAR): Update call to printchar.
897 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
898 (m2_language::printchar): New member function.
899 * objc-lang.c (objc_language_data): Delete la_printchar
900 initializer.
901 * opencl-lang.c (opencl_language_data): Likewise.
902 * p-lang.c (pascal_language_data): Delete la_printchar
903 initializer.
904 (pascal_language::printchar): New member function.
905 * rust-lang.c (rust_printchar): Rename to
906 rust_language::printchar.
907 (rust_language_data): Delete la_printchar initializer.
908 (rust_language::printchar): New member function, implementation
909 from rust_printchar.
910
ec8cec5b
AB
9112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
914 (ada_language_data): Delete la_emitchar initializer.
915 (ada_language::emitchar): New member function, implementation from
916 emit_char.
917 * c-lang.c (c_language_data): Delete la_emitchar initializer.
918 (cplus_language_data): Likewise.
919 (asm_language_data): Likewise.
920 (minimal_language_data): Likewise.
921 * d-lang.c (d_language_data): Likewise.
922 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
923 (f_language_data): Delete la_emitchar initializer.
924 (f_language::emitchar): New member function, implementation from
925 f_emit_char.
926 * go-lang.c (go_language_data): Delete la_emitchar initializer.
927 * language.c (unk_lang_emit_char): Delete.
928 (language_defn::emitchar): New member function definition.
929 (unknown_language_data): Delete la_emitchar initializer.
930 (unknown_language::emitchar): New member function.
931 (auto_language_data): Delete la_emitchar initializer.
932 (auto_language::emitchar): New member function.
933 * language.h (language_data): Delete la_emitchar field.
934 (language_defn::emitchar): New member field declaration.
935 (LA_EMIT_CHAR): Update call to emitchar.
936 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
937 (m2_language_data): Delete la_emitchar initializer.
938 (m2_language::emitchar): New member function, implementation from
939 m2_emit_char.
940 * objc-lang.c (objc_language_data): Delete la_emitchar
941 initializer.
942 * opencl-lang.c (opencl_language_data): Likewise.
943 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
944 (pascal_language_data): Delete la_emitchar initializer.
945 (pascal_language::emitchar): New member function, implementation
946 from pascal_emit_char.
947 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
948 (rust_language_data): Delete la_emitchar initializer.
949 (rust_language::emitchar): New member function, implementation
950 from rust_emitchar.
951
1bf9c363
AB
9522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * ada-lang.c (resolve): Rename to ada_language::post_parser.
955 (ada_language_data): Delete la_post_parser initializer.
956 (ada_language::post_parser): New member function.
957 * c-lang.c (c_language_data): Delete la_post_parser initializer.
958 (cplus_language_data): Likewise.
959 (asm_language_data): Likewise.
960 (minimal_language_data): Likewise.
961 * d-lang.c (d_language_data): Likewise.
962 * f-lang.c (f_language_data): Likewise.
963 * go-lang.c (go_language_data): Likewise.
964 * language.c (unknown_language_data): Likewise.
965 (auto_language_data): Likewise.
966 * language.h (language_data): Delete la_post_parser field.
967 (language_defn::post_parser): New member function.
968 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
969 * objc-lang.c (objc_language_data): Likewise.
970 * opencl-lang.c (opencl_language_data): Likewise.
971 * p-lang.c (pascal_language_data): Likewise.
972 * parse.c (parse_exp_in_context): Update call to post_parser.
973 (null_post_parser): Delete definition.
974 * parser-defs.h (null_post_parser): Delete declaration.
975 * rust-lang.c (rust_language_data): Delete la_post_parser
976 initializer.
977
87afa652
AB
9782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * ada-lang.c (parse): Rename to ada_language::parser.
981 (ada_language_data): Delete la_parser initializer.
982 (ada_language::parser): New member function, implementation from
983 parse.
984 * c-lang.c (c_language_data): Delete la_parser initializer.
985 (cplus_language_data): Likewise.
986 (asm_language_data): Likewise.
987 (minimal_language_data): Likewise.
988 * d-lang.c (d_language_data): Likewise.
989 (d_language::parser): New member function.
990 * f-lang.c (f_language_data): Delete la_parser initializer.
991 (f_language::parser): New member function.
992 * go-lang.c (go_language_data): Delete la_parser initializer.
993 (go_language::parser): New member function.
994 * language.c (unk_lang_parser): Delete.
995 (language_defn::parser): Define new member function.
996 (unknown_language_data): Delete la_parser initializer.
997 (unknown_language::parser): New member function.
998 (auto_language_data): Delete la_parser initializer.
999 (auto_language::parser): New member function.
1000 * language.h (language_data): Delete la_parser field.
1001 (language_defn::parser): Declare new member function.
1002 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1003 (m2_language::parser): New member function.
1004 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1005 * opencl-lang.c (opencl_language_data): Likewise.
1006 * p-lang.c (pascal_language_data): Likewise.
1007 (pascal_language::parser): New member function.
1008 * parse.c (parse_exp_in_context): Update call to parser.
1009 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1010 (rust_language::parser): New member function.
1011
37825800
AB
10122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * top.c (print_gdb_configuration): Print --with-python-libdir
1015 configuration value.
1016
5b860c93
PW
10172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1018
1019 * NEWS: Mention change to the alias command.
1020
cf00cd6f
PW
10212020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1022
1023 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1024 (alias_command_completer)
1025 (make_alias_options_def_group): New functions.
1026 (alias_opts, alias_option_defs): New struct and array.
1027 (alias_usage_error): Update usage.
1028 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1029 Use option framework.
1030 (_initialize_cli_cmds): Update alias command help.
1031 Update aliases command help.
1032 (show_user):
1033 Add NULL for new default_args lookup_cmd argument.
1034 (valid_command_p): Rename to validate_aliased_command.
1035 Add NULL for new default_args lookup_cmd argument. Verify that the
1036 aliased_command has no default args.
1037 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1038 (lookup_cmd_1, lookup_cmd): New argument default_args.
1039 (add_alias_cmd):
1040 Add NULL for new default_args lookup_cmd argument.
1041 (print_help_for_command): Show default args under the layout
1042 alias some_alias = some_aliased_cmd some_alias_default_arg.
1043 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1044 xfree default_args in destructor.
1045 * cli/cli-script.c (process_next_line, do_define_command):
1046 Add NULL for new default_args lookup_cmd argument.
1047 * command.h: Declare new default_args argument in lookup_cmd
1048 and lookup_cmd_1.
1049 * completer.c (complete_line_internal_1):
1050 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1051 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1052 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1053 Likewise.
1054 * infcmd.c (_initialize_infcmd): Likewise.
1055 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1056 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1057 * python/py-param.c (add_setshow_generic): Likewise.
1058 * remote.c (_initialize_remote): Likewise.
1059 * top.c (execute_command): Prepend default_args if command has some.
1060 (set_verbose):
1061 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1062 * tracepoint.c (validate_actionline, encode_actions_1):
1063 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1064
bd920864
TBA
10652020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1066
1067 * jit.c (jit_read_descriptor): Use bool as the return type.
1068 (jit_breakpoint_re_set_internal): Use bool as the return type.
1069 Invert the return value logic; return true if the jit breakpoint
1070 has been successfully initialized.
1071 (jit_inferior_init): Update the call to
1072 jit_breakpoint_re_set_internal.
1073
f8098322
PA
10742020-06-22 Pedro Alves <palves@redhat.com>
1075
1076 PR gdb/25939
1077 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1078 Use the current inferior instead. Don't return
1079 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1080 wait again.
1081 * sol-thread.c (sol_thread_target::wait): Don't reference
1082 inferior_ptid.
1083 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1084 (sol_update_thread_list_callback): Use the current inferior's pid
1085 instead of inferior_ptid.
1086
196535a6
RO
10872020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1088
1089 * procfs.c: Cleanup many comments.
1090
1091 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1092 (AFTER_WATCHFLAG): Replace by value.
1093
1094 (MAIN_PROC_NAME_FORMAT): Inline ...
1095 (create_procinfo): ... here.
1096
1097 (procfs_debug_inferior): Remove SYS_exec handling.
1098 (syscall_is_exec): Likewise.
1099 (procfs_set_exec_trap): Likewise.
1100
1101 (syscall_is_lwp_exit): Inline in callers.
1102 (syscall_is_exit): Likewise.
1103 (syscall_is_exec): Likewise.
1104 (syscall_is_lwp_create): Likewise.
1105
1106 (invalidate_cache): Remove #if 0 code.
1107
1108 (make_signal_thread_runnable): Remove.
1109 (procfs_target::resume): Remove #if 0 code.
1110
cf6f3e86
RO
11112020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1112
1113 PR gdb/25939
1114 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1115 call ...
1116 (procfs_target::create_inferior): ... here.
1117
48e9cc84
PW
11182020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1119
1120 * exec.c (validate_exec_file): Ensure the build-id is up to
1121 date by calling reopen_exec_file (that checks file timestamp
1122 to decide to re-read the file).
1123
3922b302
PA
11242020-06-18 Pedro Alves <palves@redhat.com>
1125
1126 PR gdb/25412
1127 * gdbthread.h (delete_thread, delete_thread_silent)
1128 (find_thread_ptid): Update comments.
1129 * thread.c (current_thread_): New global.
1130 (is_current_thread): Move higher, and reimplement.
1131 (inferior_thread): Reimplement.
1132 (set_thread_exited): Use bool. Add assertions.
1133 (add_thread_silent): Simplify thread-reuse handling by always
1134 calling delete_thread.
1135 (delete_thread): Remove intro comment.
1136 (find_thread_ptid): Skip exited threads.
1137 (switch_to_thread_no_regs): Write to current_thread_.
1138 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1139 INFERIOR_PTID. Clear current_thread_.
1140
6dbdab44
PA
11412020-06-18 Pedro Alves <palves@redhat.com>
1142
1143 * aix-thread.c (pd_update): Use switch_to_thread.
1144
2da4b788
PA
11452020-06-18 Pedro Alves <palves@redhat.com>
1146
1147 * ravenscar-thread.c (ravenscar_thread_target): Update.
1148 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1149 (ravenscar_thread_target::add_active_thread): ... this. Don't
1150 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1151 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1152
50838d1b
PA
11532020-06-18 Pedro Alves <palves@redhat.com>
1154
1155 * nat/windows-nat.c (current_windows_thread): Remove.
1156 * nat/windows-nat.h (current_windows_thread): Remove.
1157 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1158 Adjust.
1159 (display_selectors): Adjust to fetch the current
1160 windows_thread_info based on inferior_ptid.
1161 (fake_create_process): No longer write to current_windows_thread.
1162 (windows_nat_target::get_windows_debug_event):
1163 Don't set inferior_ptid or current_windows_thread.
1164 (windows_nat_target::wait): Adjust to not rely on
1165 current_windows_thread.
1166 (do_initial_windows_stuff): Now a method of windows_nat_target.
1167 Switch to the last_ptid thread.
1168 (windows_nat_target::attach): Adjust.
1169 (windows_nat_target::detach): Use switch_to_no_thread instead of
1170 writing to inferior_ptid directly.
1171 (windows_nat_target::create_inferior): Adjust.
1172
31ce04e9
PA
11732020-06-18 Pedro Alves <palves@redhat.com>
1174
1175 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1176
1ee1a363
PA
11772020-06-18 Pedro Alves <palves@redhat.com>
1178
1179 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1180 after creating it, instead of writing to inferior_ptid. Don't
1181 write to inferior_ptid.
1182
6d350754
PA
11832020-06-18 Pedro Alves <palves@redhat.com>
1184
1185 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1186
5d971d48
PA
11872020-06-18 Pedro Alves <palves@redhat.com>
1188
1189 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1190 it, instead of writing to inferior_ptid.
1191
86e57d1b
PA
11922020-06-18 Pedro Alves <palves@redhat.com>
1193
1194 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1195 to inferior_ptid.
1196
f2e1c129
PA
11972020-06-18 Pedro Alves <palves@redhat.com>
1198
1199 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1200 instead of writing to inferior_ptid directly.
1201
60db1b85
PA
12022020-06-18 Pedro Alves <palves@redhat.com>
1203
1204 * corelow.c (core_target::close): Use switch_to_no_thread instead
1205 of writing to inferior_ptid directly.
1206 (add_to_thread_list, core_target_open): Use switch_to_thread
1207 instead of writing to inferior_ptid directly.
1208
fe7d6a8d
PA
12092020-06-18 Pedro Alves <palves@redhat.com>
1210
1211 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1212 inferior_ptid.
1213 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1214 inferior_ptid.
1215 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1216 inferior_ptid directly.
1217 (darwin_nat_target::init_thread_list): Switch to thread, instead
1218 of writing to inferior_ptid.
1219 (darwin_nat_target::attach): Don't write to inferior_ptid.
1220 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1221
975f8708
PA
12222020-06-18 Pedro Alves <palves@redhat.com>
1223
1224 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1225 thread.
1226 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1227 Instead use switch_to_thread.
1228 (gnu_nat_target::detach): Use switch_to_no_thread
1229 instead of writing to inferior_ptid directly. Used passed-in
1230 inferior instead of looking up the inferior by pid.
1231
1a204730
PA
12322020-06-18 Pedro Alves <palves@redhat.com>
1233
1234 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1235 inferior_ptid.
1236
ebe84f23
PA
12372020-06-18 Pedro Alves <palves@redhat.com>
1238
1239 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1240 inferior_ptid.
1241 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1242 thread.
1243 (nto_procfs_target::detach): Avoid referencing
1244 inferior_ptid. Use switch_to_no_thread instead of writing to
1245 inferior_ptid directly.
1246 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1247 instead of writing to inferior_ptid directly.
1248 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1249 to thread.
1250
191f02e5
PA
12512020-06-18 Pedro Alves <palves@redhat.com>
1252
1253 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1254 after creating it, instead of writing to inferior_ptid.
1255 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1256 to inferior_ptid directly.
1257 (gdbsim_target::wait): Don't write to inferior_ptid.
1258
0ac55310
PA
12592020-06-18 Pedro Alves <palves@redhat.com>
1260
1261 * remote.c (remote_target::remote_notice_new_inferior): Use
1262 switch_to_thread instead of writing to inferior_ptid directly.
1263 (remote_target::add_current_inferior_and_thread): Use
1264 switch_to_no_thread instead of writing to inferior_ptid directly.
1265 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1266 and switch_to_thread instead of using set_current_inferior or
1267 writing to inferior_ptid directly.
1268
5233f39b
PA
12692020-06-18 Pedro Alves <palves@redhat.com>
1270
1271 * tracectf.c (ctf_target_open): Switch to added thread instead of
1272 writing to inferior_ptid directly.
1273 (ctf_target::close): Use switch_to_no_thread instead of writing to
1274 inferior_ptid directly.
1275
087e161b
PA
12762020-06-18 Pedro Alves <palves@redhat.com>
1277
1278 * tracefile-tfile.c (tfile_target_open): Don't write to
1279 inferior_ptid directly, instead switch to added thread.
1280 (tfile_target::close): Use switch_to_no_thread instead of writing
1281 to inferior_ptid directly.
1282
7fb43e53
PA
12832020-06-18 Pedro Alves <palves@redhat.com>
1284
1285 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1286 (procfs_target::detach): Use switch_to_no_thread
1287 instead of writing to inferior_ptid directly.
1288 (do_attach): Change return type to void. Switch to the added
1289 thread.
1290 (procfs_target::create_inferior): Switch to the added thread.
1291 (procfs_do_thread_registers): Don't write to inferior_ptid.
1292
18493a00
PA
12932020-06-18 Pedro Alves <palves@redhat.com>
1294
1295 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1296 of writing to inferior_ptid.
1297 (scoped_restore_exited_inferior): Delete.
1298 (handle_vfork_child_exec_or_exit): Simplify using
1299 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1300 instead of writing to inferior_ptid.
1301 (THREAD_STOPPED_BY): Delete.
1302 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1303 (thread_stopped_by_hw_breakpoint): Delete.
1304 (save_waitstatus): Use
1305 scoped_restore_current_thread+switch_to_thread, and call
1306 target_stopped_by_watchpoint instead of
1307 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1308 instead of thread_stopped_by_sw_breakpoint, and
1309 target_stopped_by_hw_breakpoint instead of
1310 thread_stopped_by_hw_breakpoint.
1311 (handle_inferior_event)
1312 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1313 inferior_ptid directly, nor
1314 set_current_inferior/set_current_program_space. Use
1315 switch_to_thread / switch_to_inferior_no_thread instead.
1316
a0776b13
PA
13172020-06-18 Pedro Alves <palves@redhat.com>
1318
1319 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1320 instead of writing to inferior_ptid.
1321
6155c136
PA
13222020-06-18 Pedro Alves <palves@redhat.com>
1323
1324 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1325 added thread.
1326 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1327 to the added thread.
1328 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1329 instead of writing to inferior_ptid.
1330
c5316fc6
PA
13312020-06-18 Pedro Alves <palves@redhat.com>
1332
1333 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1334 (register_to_value_test): Mock a program_space too. Heap-allocate
1335 the address space. Don't write to inferior_ptid. Use
1336 switch_to_thread instead.
1337
8df01799
PA
13382020-06-18 Pedro Alves <palves@redhat.com>
1339
1340 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1341 Delete.
1342 (find_signalled_thread()): New, factored out from
1343 linux_make_corefile_notes and adjusted to handle exited threads.
1344 (linux_make_corefile_notes): Adjust to use the new
1345 find_signalled_thread.
1346
41792d68
PA
13472020-06-18 Pedro Alves <palves@redhat.com>
1348
1349 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1350 of saving/restoring inferior_ptid.
1351
612f258a
TT
13522020-06-17 Tom Tromey <tom@tromey.com>
1353
1354 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1355 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1356 declare.
1357 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1358
efb763a5
SM
13592020-06-15 Simon Marchi <simon.marchi@efficios.com>
1360
1361 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1362 of partial symtabs.
1363
2951f6c0
SM
13642020-06-17 Simon Marchi <simon.marchi@efficios.com>
1365
1366 * regformats/reg-arm.dat: Remove.
1367 * regformats/reg-bfin.dat: Remove.
1368 * regformats/reg-cris.dat: Remove.
1369 * regformats/reg-crisv32.dat: Remove.
1370 * regformats/reg-m32r.dat: Remove.
1371 * regformats/reg-tilegx.dat: Remove.
1372 * regformats/reg-tilegx32.dat: Remove.
1373
7d458ea5
SM
13742020-06-17 Simon Marchi <simon.marchi@efficios.com>
1375
1376 * features/Makefile (WHICH): Remove arm files.
1377 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1378 * regformats/arm/arm-with-neon.dat: Remove.
1379 * regformats/arm/arm-with-vfpv2.dat: Remove.
1380 * regformats/arm/arm-with-vfpv3.dat: Remove.
1381
3af96c0d
SM
13822020-06-17 Simon Marchi <simon.marchi@efficios.com>
1383
1384 * features/Makefile (XMLTOC): Remove rx.xml.
1385
b25e22fd
PA
13862020-06-17 Pedro Alves <palves@redhat.com>
1387
1388 * gdbthread.h (thread_control_state) <trap_expected> Update
1389 comments.
1390
a78a19b1
AB
13912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1394 ada_language::lookup_symbol_nonlocal.
1395 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1396 (ada_language::lookup_symbol_nonlocal): New member function,
1397 implementation from ada_lookup_symbol_nonlocal.
1398 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1399 initializer.
1400 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1401 initializer.
1402 (cplus_language::lookup_symbol_nonlocal): New member function.
1403 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1404 (minimal_language_data) Likewise.
1405 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1406 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1407 initializer.
1408 (d_language::lookup_symbol_nonlocal): New member function.
1409 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1410 initializer.
1411 (f_language::lookup_symbol_nonlocal): New member function.
1412 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1413 initializer.
1414 * language.c (unknown_language_data): Likewise.
1415 (auto_language_data): Likewise.
1416 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1417 field.
1418 (language_defn::lookup_symbol_nonlocal): New member function.
1419 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1420 initializer.
1421 * objc-lang.c (objc_language_data): Likewise.
1422 * opencl-lang.c (opencl_language_data): Likewise.
1423 * p-lang.c (pascal_language_data): Likewise.
1424 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1425 rust_language::lookup_symbol_nonlocal.
1426 (rust_language_data): Delete la_lookup_symbol_nonlocal
1427 initializer.
1428 (rust_language::lookup_symbol_nonlocal): New member function,
1429 implementation from rust_lookup_symbol_nonlocal.
1430 * symtab.c (lookup_symbol_aux): Update call to
1431 lookup_symbol_nonlocal.
1432 (basic_lookup_symbol_nonlocal): Rename to...
1433 (language_defn::lookup_symbol_nonlocal): ...this, and update
1434 header comment. Remove language_defn parameter, and replace with
1435 uses of `this'.
1436 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1437
ebe2334e
AB
14382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1441 initializer.
1442 (ada_language::value_print_inner): New member function.
1443 * c-lang.c (c_language_data): Delete la_value_print_inner
1444 initializer.
1445 (cplus_language_data): Likewise.
1446 (asm_language_data): Likewise.
1447 (minimal_language_data): Likewise.
1448 * d-lang.c (d_language_data): Likewise.
1449 (d_language::value_print_inner): New member function.
1450 * f-lang.c (f_language_data): Delete la_value_print_inner
1451 initializer.
1452 (f_language::value_print_inner): New member function.
1453 * f-lang.h (f_value_print_innner): Rename to...
1454 (f_value_print_inner): ...this (note spelling of 'inner').
1455 * f-valprint.c (f_value_print_innner): Rename to...
1456 (f_value_print_inner): ...this (note spelling of 'inner').
1457 * go-lang.c (go_language_data): Delete la_value_print_inner
1458 initializer.
1459 (go_language::value_print_inner): New member function.
1460 * language.c (language_defn::value_print_inner): Define new member
1461 function.
1462 (unk_lang_value_print_inner): Delete.
1463 (unknown_language_data): Delete la_value_print_inner initializer.
1464 (unknown_language::value_print_inner): New member function.
1465 (auto_language_data): Delete la_value_print_inner initializer.
1466 (auto_language::value_print_inner): New member function.
1467 * language.h (language_data): Delete la_value_print_inner field.
1468 (language_defn::value_print_inner): Delcare new member function.
1469 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1470 initializer.
1471 (m2_language::value_print_inner): New member function.
1472 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1473 initializer.
1474 * opencl-lang.c (opencl_language_data): Likewise.
1475 * p-lang.c (pascal_language_data): Likewise.
1476 (pascal_language::value_print_inner): New member function.
1477 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1478 initializer.
1479 (rust_language::value_print_inner): New member function.
1480 * valprint.c (do_val_print): Update call to value_print_inner.
1481
a1d1fa3e
AB
14822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * ada-lang.c (ada_language_data): Delete la_value_print
1485 initializer.
1486 (ada_language::value_print): New member function.
1487 * c-lang.c (c_language_data): Delete la_value_print initializer.
1488 (cplus_language_data): Likewise.
1489 (asm_language_data): Likewise.
1490 (minimal_language_data): Likewise.
1491 * d-lang.c (d_language_data): Likewise.
1492 * f-lang.c (f_language_data): Likewise.
1493 * go-lang.c (go_language_data): Likewise.
1494 * language.c (unk_lang_value_print): Delete.
1495 (language_defn::value_print): Define new member function.
1496 (unknown_language_data): Delete la_value_print initializer.
1497 (unknown_language::value_print): New member function.
1498 (auto_language_data): Delete la_value_print initializer.
1499 (auto_language::value_print): New member function.
1500 * language.h (language_data): Delete la_value_print field.
1501 (language_defn::value_print): Declare new member function.
1502 (LA_VALUE_PRINT): Update call to value_print.
1503 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1504 * objc-lang.c (objc_language_data): Likewise.
1505 * opencl-lang.c (opencl_language_data): Likewise.
1506 * p-lang.c (pascal_language_data): Likewise.
1507 (pascal_language::value_print): New member function.
1508 * rust-lang.c (rust_language_data): Delete la_value_print
1509 initializer.
1510
f16a9f57
AB
15112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1512
1513 * ada-lang.c (ada_watch_location_expression): Rename to
1514 ada_language::watch_location_expression.
1515 (ada_language_data): Delete la_watch_location_expression
1516 initializer.
1517 (ada_language::watch_location_expression): New member function,
1518 implementation from ada_watch_location_expression.
1519 * breakpoint.c (watch_command_1): Update call to
1520 watch_location_expression.
1521 * c-lang.c (c_watch_location_expression): Rename to
1522 language_defn::watch_location_expression.
1523 (c_language_data): Delete la_watch_location_expression
1524 initializer.
1525 (cplus_language_data): Likewise.
1526 (asm_language_data): Likewise.
1527 (minimal_language_data): Likewise.
1528 * c-lang.h (c_watch_location_expression): Delete declaration.
1529 * d-lang.c (d_language_data): Delete la_watch_location_expression
1530 initializer.
1531 * f-lang.c (f_language_data): Likewise.
1532 * go-lang.c (go_language_data): Likewise.
1533 * language.c (language_defn::watch_location_expression): Member
1534 function implementation from c_watch_location_expression.
1535 (unknown_language_data): Delete la_watch_location_expression
1536 initializer.
1537 (auto_language_data): Likewise.
1538 * language.h (language_data): Delete la_watch_location_expression
1539 field.
1540 (language_defn::watch_location_expression): Declare new member
1541 function.
1542 * m2-lang.c (m2_language_data): Delete
1543 la_watch_location_expression initializer.
1544 * objc-lang.c (objc_language_data): Likewise.
1545 * opencl-lang.c (opencl_language_data): Likewise.
1546 * p-lang.c (pascal_language_data): Likewise.
1547 * rust-lang.c (rust_watch_location_expression): Rename to
1548 rust_language::watch_location_expression.
1549 (rust_language_data): Delete la_watch_location_expression
1550 initializer.
1551 (rust_language::watch_location_expression): New member function,
1552 implementation from rust_watch_location_expression.
1553
7e56227d
AB
15542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1557 ada_language::collect_symbol_completion_matches.
1558 (ada_language_data): Delete la_collect_symbol_completion_matches
1559 initializer.
1560 (ada_language::collect_symbol_completion_matches): New member
1561 function, implementation from
1562 ada_collect_symbol_completion_matches.
1563 * c-lang.c (c_language_data): Delete
1564 la_collect_symbol_completion_matches initializer.
1565 (cplus_language_data): Likewise.
1566 (asm_language_data): Likewise.
1567 (minimal_language_data): Likewise.
1568 * d-lang.c (d_language_data): Likewise.
1569 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1570 f_language::collect_symbol_completion_matches.
1571 (f_language_data): Delete la_collect_symbol_completion_matches
1572 initializer.
1573 (f_language::collect_symbol_completion_matches) New member
1574 function, implementation from f_collect_symbol_completion_matches.
1575 * go-lang.c (go_language_data): Delete
1576 la_collect_symbol_completion_matches initializer.
1577 * language.c (unknown_language_data): Likewise.
1578 (auto_language_data): Likewise.
1579 * language.h (language_data): Delete
1580 la_collect_symbol_completion_matches field.
1581 (language_defn::collect_symbol_completion_matches): New member
1582 function.
1583 * m2-lang.c (m2_language_data): Delete
1584 la_collect_symbol_completion_matches initializer.
1585 * objc-lang.c (objc_language_data): Likewise.
1586 * opencl-lang.c (opencl_language_data): Likewise.
1587 * p-lang.c (pascal_language_data): Likewise.
1588 * rust-lang.c (rust_language_data): Likewise.
1589 * symtab.c (default_collect_symbol_completion_matches): Delete.
1590 (collect_symbol_completion_matches): Update call to
1591 collect_symbol_completion_matches.
1592 (collect_symbol_completion_matches_type): Likewise.
1593 * symtab.h (default_collect_symbol_completion_matches): Delete
1594 declaration.
1595
53fc67f8
AB
15962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1599 (ada_language_data): Delete la_word_break_characters initializer.
1600 (ada_language::word_break_characters): New member function.
1601 * c-lang.c (c_language_data): Delete la_word_break_characters
1602 initializer.
1603 (cplus_language_data): Likewise.
1604 (asm_language_data): Likewise.
1605 (minimal_language_data): Likewise.
1606 * completer.c: Update global comment.
1607 (advance_to_expression_complete_word_point): Update call to
1608 word_break_characters.
1609 (complete_files_symbols): Likewise.
1610 (complete_line_internal_1): Likewise.
1611 (default_completer_handle_brkchars): Likewise.
1612 (skip_quoted_chars): Likewise.
1613 * d-lang.c (d_language_data): Delete la_word_break_characters
1614 initializer.
1615 * f-lang.c (f_word_break_characters): Delete.
1616 (f_language_data): Delete la_word_break_characters initializer.
1617 (f_language::word_break_characters): New member function.
1618 * go-lang.c (go_language_data): Delete la_word_break_characters
1619 initializer.
1620 * language.c (unknown_language_data): Likewise.
1621 (auto_language_data): Likewise.
1622 * language.h (default_word_break_characters): Move declaration to
1623 earlier in the file.
1624 (language_data): Delete la_word_break_characters field.
1625 (language_defn::word_break_characters): New member function.
1626 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1627 initializer.
1628 * objc-lang.c (objc_language_data): Likewise.
1629 * opencl-lang.c (opencl_language_data): Likewise.
1630 * p-lang.c (pascal_language_data): Likewise.
1631 * rust-lang.c (rust_language_data): Likewise.
1632
c9debfb9
AB
16332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1636 (ada_language_data): Delete la_get_symbol_name_matcher
1637 initializer.
1638 (language_defn::get_symbol_name_matcher_inner): New member
1639 function.
1640 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1641 initializer.
1642 (cplus_language_data): Likewise.
1643 (cplus_language::get_symbol_name_matcher_inner): New member
1644 function.
1645 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1646 (minimal_language_data): Likewise.
1647 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1648 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1649 initializer.
1650 * dictionary.c (iter_match_first_hashed): Update call to
1651 get_symbol_name_matcher.
1652 (iter_match_next_hashed): Likewise.
1653 (iter_match_next_linear): Likewise.
1654 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1655 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1656 initializer.
1657 (f_language::get_symbol_name_matcher_inner): New member function.
1658 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1659 initializer.
1660 * language.c (default_symbol_name_matcher): Update header comment,
1661 make static.
1662 (language_defn::get_symbol_name_matcher): New definition.
1663 (language_defn::get_symbol_name_matcher_inner): Likewise.
1664 (get_symbol_name_matcher): Delete.
1665 (unknown_language_data): Delete la_get_symbol_name_matcher
1666 initializer.
1667 (auto_language_data): Likewise.
1668 * language.h (language_data): Delete la_get_symbol_name_matcher
1669 field.
1670 (language_defn::get_symbol_name_matcher): New member function.
1671 (language_defn::get_symbol_name_matcher_inner): Likewise.
1672 (default_symbol_name_matcher): Delete declaration.
1673 * linespec.c (find_methods): Update call to
1674 get_symbol_name_matcher.
1675 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1676 initializer.
1677 * minsyms.c (lookup_minimal_symbol): Update call to
1678 get_symbol_name_matcher.
1679 (iterate_over_minimal_symbols): Likewise.
1680 * objc-lang.c (objc_language_data): Delete
1681 la_get_symbol_name_matcher initializer.
1682 * opencl-lang.c (opencl_language_data): Likewise.
1683 * p-lang.c (pascal_language_data): Likewise.
1684 * psymtab.c (psymbol_name_matches): Update call to
1685 get_symbol_name_matcher.
1686 * rust-lang.c (rust_language_data): Delete
1687 la_get_symbol_name_matcher initializer.
1688 * symtab.c (symbol_matches_search_name): Update call to
1689 get_symbol_name_matcher.
1690 (compare_symbol_name): Likewise.
1691
9a49ad8c
AB
16922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * ada-lang.c (ada_language_data): Delete la_compute_program
1695 initializer.
1696 * c-lang.c (c_language_data): Likewise.
1697 (c_language::compute_program): New member function.
1698 (cplus_language_data): Delete la_compute_program initializer.
1699 (cplus_language::compute_program): New member function.
1700 (asm_language_data): Delete la_compute_program initializer.
1701 (minimal_language_data): Likewise.
1702 * c-lang.h (c_compute_program): Update comment.
1703 (cplus_compute_program): Likewise.
1704 * compile/compile-c-support.c (c_compute_program): Likewise.
1705 (cplus_compute_program): Likewise.
1706 * compile/compile.c (compile_to_object): Update call to
1707 la_compute_program.
1708 * d-lang.c (d_language_data): Delete la_compute_program
1709 initializer.
1710 * f-lang.c (f_language_data): Likewise.
1711 * go-lang.c (go_language_data): Likewise.
1712 * language.c (unknown_language_data): Likewise.
1713 (auto_language_data): Likewise.
1714 * language.h (language_data): Delete la_compute_program field.
1715 (language_defn::compute_program): New member function.
1716 * m2-lang.c (m2_language_data): Delete la_compute_program
1717 initializer.
1718 * objc-lang.c (objc_language_data): Likewise.
1719 * opencl-lang.c (opencl_language_data): Likewise.
1720 * p-lang.c (pascal_language_data): Likewise.
1721 * rust-lang.c (rust_language_data): Likewise.
1722
eff93b4d
AB
17232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * ada-lang.c (ada_language_data) Delete
1726 la_class_name_from_physname initializer.
1727 * c-lang.c (c_language_data): Likewise.
1728 (cplus_language_data): Likewise.
1729 (cplus_language::class_name_from_physname): New member function.
1730 (asm_language_data): Delete la_class_name_from_physname
1731 initializer.
1732 (minimal_language_data): Likewise.
1733 * d-lang.c (d_language_data): Likewise.
1734 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1735 method on language_defn class.
1736 (guess_full_die_structure_name): Likewise.
1737 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1738 initializer.
1739 * go-lang.c (go_language_data): Likewise.
1740 * language.c (language_class_name_from_physname): Delete.
1741 (unk_lang_class_name): Delete.
1742 (unknown_language_data): Delete la_class_name_from_physname
1743 initializer.
1744 (auto_language_data): Likewise.
1745 * language.h (language_data): Delete la_class_name_from_physname
1746 field.
1747 (language_defn::class_name_from_physname): New function.
1748 (language_class_name_from_physname): Delete declaration.
1749 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1750 initializer.
1751 * objc-lang.c (objc_language_data): Likewise.
1752 * opencl-lang.c (opencl_language_data): Likewise.
1753 * p-lang.c (pascal_language_data): Likewise.
1754 * rust-lang.c (rust_language_data): Likewise.
1755
de543742
TT
17562020-06-16 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-data.h (STATUS_NAME): New macro.
1759 * tui/tui-layout.c (tui_remove_some_windows)
1760 (initialize_known_windows, tui_register_window)
1761 (tui_layout_split::remove_windows, initialize_layouts)
1762 (tui_new_layout_command): Don't use hard-coded window names.
1763
a350efd4
TT
17642020-06-16 Tom Tromey <tom@tromey.com>
1765
1766 PR tui/25348:
1767 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1768 tui_initialize_readline. Only run once. Call rl_initialize.
1769 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1770 tui_initialize_readline.
1771 * tui/tui-io.c (tui_setup_io): Call
1772 tui_ensure_readline_initialized.
1773 * tui/tui-interp.c (tui_interp::init): Update.
1774
39ec0490
TT
17752020-06-16 Tom Tromey <tom@tromey.com>
1776
1777 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1778 Also preserve the status window.
1779
d2d1ea20
TT
17802020-06-16 Tom Tromey <tom@tromey.com>
1781
1782 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1783 where m_window==nullptr.
1784
66920317
TT
17852020-06-15 Tom Tromey <tromey@adacore.com>
1786
1787 * windows-nat.c (windows_nat::handle_output_debug_string):
1788 Update.
1789 (windows_nat::handle_ms_vc_exception): Update.
1790 * target.h (target_read_string): Change API.
1791 * target.c (target_read_string): Change API.
1792 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1793 Update.
1794 * solib-frv.c (frv_current_sos): Update.
1795 * solib-dsbt.c (dsbt_current_sos): Update.
1796 * solib-darwin.c (darwin_current_sos): Update.
1797 * linux-thread-db.c (inferior_has_bug): Update.
1798 * expprint.c (print_subexp_standard): Update.
1799 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1800 (ada_exception_message_1): Update.
1801
a5d871dd
TT
18022020-06-15 Tom Tromey <tromey@adacore.com>
1803
1804 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1805
670e35fa
TT
18062020-06-15 Tom Tromey <tromey@adacore.com>
1807
1808 * valprint.c (read_string): Update comment.
1809 * target.c (MIN): Remove.
1810 (target_read_string): Rewrite.
1811
f5272a3b
TT
18122020-06-15 Tom Tromey <tromey@adacore.com>
1813
1814 * corefile.c (read_memory_string): Remove.
1815 * ada-valprint.c (ada_value_print_ptr): Update.
1816 * ada-lang.h (ada_tag_name): Change return type.
1817 * ada-lang.c (type_from_tag): Update.
1818 (ada_tag_name_from_tsd): Change return type. Use
1819 target_read_string.
1820 (ada_tag_name): Likewise.
1821 * gdbcore.h (read_memory_string): Don't declare.
1822
2c074f49
HD
18232020-06-14 Hannes Domani <ssbssa@yahoo.de>
1824
1825 * symtab.c (rbreak_command): Ignore Windows drive colon.
1826
6a17d503
SM
18272020-06-12 Simon Marchi <simon.marchi@efficios.com>
1828
1829 * NEWS: Mention removed GDBserver host support.
1830
453c733f
NC
18312020-06-12 Nelson Chu <nelson.chu@sifive.com>
1832
1833 * features/riscv/rebuild-csr-xml.sh: Updated.
1834
2b4e6a3f
TT
18352020-06-11 Tom Tromey <tom@tromey.com>
1836
1837 PR gdb/18318:
1838 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1839
4412332f
JG
18402020-06-09 Jonny Grant <jg@jguk.org>
18412020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * main.c (captured_main_1): Don't print new line after help.
1844 (print_gdb_help): add mailing list and IRC channel information
1845 to --help. Add new lines between items in the footer. Remove
1846 quotes around bug url.
1847
2f33032a
KS
18482020-06-11 Keith Seitz <keiths@redhat.com>
1849
1850 PR gdb/21356
1851 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1852 Resolve typedefs for type length calculations.
1853
7ab96794
TV
18542020-06-10 Tom de Vries <tdevries@suse.de>
1855
1856 PR ada/24713
1857 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1858 (write_psymbols): Enable .gdb_index for ada.
1859 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1860 ada.
1861
e5f3ece2
TV
18622020-06-10 Tom de Vries <tdevries@suse.de>
1863
1864 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1865 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1866 namei" instead of "const char *name" argument.
1867 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1868 dw2_symtab_iter_init.
1869
940da03e
SM
18702020-06-08 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1873 to use type::field and field::type instead.
1874
b6cdac4b
SM
18752020-06-08 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1878 to use field::type instead.
1879
5d14b6e5
SM
18802020-06-08 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * gdbtypes.h (struct field) <type, set_type>: New methods.
1883 Rename `type` field to...
1884 <m_type>: ... this. Change references throughout to use type or
1885 set_type methods.
1886 (FIELD_TYPE): Use field::type. Change call sites that modify
1887 the field's type to use field::set_type instead.
1888
3d967001
SM
18892020-06-08 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1892 to use type::index_type instead.
1893
262abc0d
SM
18942020-06-08 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1897 methods.
1898 (TYPE_INDEX_TYPE): Use type::index_type.
1899 * gdbtypes.c (create_array_type_with_stride): Likewise.
1900
82836c92
TT
19012020-06-07 Tom Tromey <tom@tromey.com>
1902
1903 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1904 parameter.
1905 (generic_value_print): Update.
1906
940dace9
AB
19072020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 Revert commit 982a38f60b0.
1910 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1911
982a38f6
AB
19122020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1915 avoid use after free.
1916
82f06518
TV
19172020-06-05 Tom de Vries <tdevries@suse.de>
1918
1919 * NEWS: Fix typos.
1920
f8c41851
SM
19212020-06-04 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1924 the per_bfd object.
1925 (dwarf2_read_debug_names): Likewise.
1926 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1927 object when re-using a per_bfd object with an index.
1928
f9b5d5ea
TV
19292020-06-03 Tom de Vries <tdevries@suse.de>
1930
1931 PR symtab/26046
1932 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1933 children for C++.
1934 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1935 DW_TAG_subprogram.
1936
f6eee2d0
AB
19372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * ada-lang.c (ada_language_data): Delete skip_trampoline
1940 initializer.
1941 * c-lang.c (c_language_data): Likewise.
1942 (cplus_language_data): Likewise.
1943 (cplus_language::skip_trampoline): New member function.
1944 (asm_language_data): Delete skip_trampoline initializer.
1945 (minimal_language_data): Likewise.
1946 * d-lang.c (d_language_data): Likewise.
1947 * f-lang.c (f_language_data): Likewise.
1948 * go-lang.c (go_language_data): Likewise.
1949 * language.c (unk_lang_trampoline): Delete function.
1950 (skip_language_trampoline): Update.
1951 (unknown_language_data): Delete skip_trampoline initializer.
1952 (auto_language_data): Likewise.
1953 * language.h (language_data): Delete skip_trampoline field.
1954 (language_defn::skip_trampoline): New function.
1955 * m2-lang.c (m2_language_data): Delete skip_trampoline
1956 initializer.
1957 * objc-lang.c (objc_skip_trampoline): Delete function, move
1958 implementation to objc_language::skip_trampoline.
1959 (objc_language_data): Delete skip_trampoline initializer.
1960 (objc_language::skip_trampoline): New member function with
1961 implementation from objc_skip_trampoline.
1962 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1963 initializer.
1964 * p-lang.c (pascal_language_data): Likewise.
1965 * rust-lang.c (rust_language_data): Likewise.
1966
0a50df5d
AB
19672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1970 (ada_language::demangle): New member function.
1971 * c-lang.c (c_language_data): Delete la_demangle initializer.
1972 (cplus_language_data): Delete la_demangle initializer.
1973 (cplus_language::demangle): New member function.
1974 (asm_language_data): Delete la_demangle initializer.
1975 (minimal_language_data): Delete la_demangle initializer.
1976 * d-lang.c (d_language_data): Delete la_demangle initializer.
1977 (d_language::demangle): New member function.
1978 * f-lang.c (f_language_data): Delete la_demangle initializer.
1979 (f_language::demangle): New member function.
1980 * go-lang.c (go_language_data): Delete la_demangle initializer.
1981 (go_language::demangle): New member function.
1982 * language.c (language_demangle): Update.
1983 (unk_lang_demangle): Delete.
1984 (unknown_language_data): Delete la_demangle initializer.
1985 (unknown_language::demangle): New member function.
1986 (auto_language_data): Delete la_demangle initializer.
1987 (auto_language::demangle): New member function.
1988 * language.h (language_data): Delete la_demangle field.
1989 (language_defn::demangle): New function.
1990 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1991 * objc-lang.c (objc_language_data): Delete la_demangle
1992 initializer.
1993 (objc_language::demangle): New member function.
1994 * opencl-lang.c (opencl_language_data): Delete la_demangle
1995 initializer.
1996 * p-lang.c (pascal_language_data): Likewise.
1997 * rust-lang.c (rust_language_data): Likewise.
1998 (rust_language::demangle): New member function.
1999
fbfb0a46
AB
20002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2001
2002 * ada-lang.c (ada_language_data): Delete la_print_type
2003 initializer.
2004 (ada_language::print_type): New member function.
2005 * c-lang.c (c_language_data): Delete la_print_type initializer.
2006 (c_language::print_type): New member function.
2007 (cplus_language_data): Delete la_print_type initializer.
2008 (cplus_language::print_type): New member function.
2009 (asm_language_data): Delete la_print_type initializer.
2010 (asm_language::print_type): New member function.
2011 (minimal_language_data): Delete la_print_type initializer.
2012 (minimal_language::print_type): New member function.
2013 * d-lang.c (d_language_data): Delete la_print_type initializer.
2014 (d_language::print_type): New member function.
2015 * f-lang.c (f_language_data): Delete la_print_type initializer.
2016 (f_language::print_type): New member function.
2017 * go-lang.c (go_language_data): Delete la_print_type initializer.
2018 (go_language::print_type): New member function.
2019 * language.c (unk_lang_print_type): Delete.
2020 (unknown_language_data): Delete la_print_type initializer.
2021 (unknown_language::print_type): New member function.
2022 (auto_language_data): Delete la_print_type initializer.
2023 (auto_language::print_type): New member function.
2024 * language.h (language_data): Delete la_print_type field.
2025 (language_defn::print_type): New function.
2026 (LA_PRINT_TYPE): Update.
2027 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2028 (m2_language::print_type): New member function.
2029 * objc-lang.c (objc_language_data): Delete la_print_type
2030 initializer.
2031 (objc_language::print_type): New member function.
2032 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2033 to opencl_language::print_type.
2034 (opencl_language_data): Delete la_print_type initializer.
2035 (opencl_language::print_type): New member function, implementation
2036 from opencl_print_type.
2037 * p-lang.c (pascal_language_data): Delete la_print_type
2038 initializer.
2039 (pascal_language::print_type): New member function.
2040 * rust-lang.c (rust_print_type): Delete, implementation moved to
2041 rust_language::print_type.
2042 (rust_language_data): Delete la_print_type initializer.
2043 (rust_language::print_type): New member function, implementation
2044 from rust_print_type.
2045
6f827019
AB
20462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2049 implementation moves to...
2050 (ada_language::sniff_from_mangled_name): ...here. Update return
2051 type.
2052 (ada_language_data): Delete la_sniff_from_mangled_name
2053 initializer.
2054 * c-lang.c (c_language_data): Likewise.
2055 (cplus_language_data): Likewise.
2056 (cplus_language::sniff_from_mangled_name): New member function,
2057 implementation taken from gdb_sniff_from_mangled_name.
2058 (asm_language_data): Delete la_sniff_from_mangled_name
2059 initializer.
2060 (minimal_language_data): Likewise.
2061 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2062 implementation moves to cplus_language::sniff_from_mangled_name.
2063 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2064 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2065 moves to...
2066 (d_language::sniff_from_mangled_name): ...here.
2067 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2068 * f-lang.c (f_language_data): Likewise.
2069 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2070 moves to...
2071 (go_language::sniff_from_mangled_name): ...here.
2072 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2073 * language.c (language_sniff_from_mangled_name): Delete.
2074 (unknown_language_data): Delete la_sniff_from_mangled_name
2075 initializer.
2076 (auto_language_data): Likewise.
2077 * language.h (language_data): Delete la_sniff_from_mangled_name
2078 field.
2079 (language_defn::sniff_from_mangled_name): New function.
2080 (language_sniff_from_mangled_name): Delete declaration.
2081 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2082 field.
2083 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2084 implementation moves to...
2085 (objc_language::sniff_from_mangled_name): ...here.
2086 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2087 * opencl-lang.c (opencl_language_data): Likewise.
2088 * p-lang.c (pascal_language_data): Likewise.
2089 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2090 implementation moves to...
2091 (rust_language::sniff_from_mangled_name): ...here.
2092 (rust_language_data): Delete la_sniff_from_mangled_name
2093 initializer.
2094 * symtab.c (symbol_find_demangled_name): Call
2095 sniff_from_mangled_name member function.
2096
fb8006fd
AB
20972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2100 initializer.
2101 * c-lang.c (c_language_data): Likewise.
2102 (cplus_language_data): Likewise.
2103 (cplus_language::search_name_hash): New member function.
2104 (asm_language_data): Delete la_search_name_hash initializer.
2105 (minimal_language_data): Likewise.
2106 * d-lang.c (d_language_data): Likewise.
2107 * dictionary.c (default_search_name_hash): Rename to...
2108 (language_defn::search_name_hash): ...this.
2109 * f-lang.c (f_language_data): Likewise.
2110 (f_language::search_name_hash): New member function.
2111 * go-lang.c (go_language_data): Delete la_search_name_hash
2112 initializer.
2113 * language.c (unknown_language_data): Likewise.
2114 (auto_language_data): Likewise.
2115 * language.h (struct language_data): Delete la_search_name_hash
2116 field.
2117 (language_defn::search_name_hash): Declare new member function.
2118 (default_search_name_hash): Delete declaration.
2119 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2120 initializer.
2121 * objc-lang.c (objc_language_data): Likewise.
2122 * opencl-lang.c (opencl_language_data): Likewise.
2123 * p-lang.c (pascal_language_data): Likewise.
2124 * rust-lang.c (rust_language_data): Likewise.
2125 * symtab.c (search_name_hash): Update call.
2126
8e25bafe
AB
21272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2130 initializer.
2131 * c-lang.c (class compile_instance): Declare.
2132 (c_language_data): Delete la_get_compile_instance initializer.
2133 (c_language::get_compile_instance): New member function.
2134 (cplus_language_data): Delete la_get_compile_instance initializer.
2135 (cplus_language::get_compile_instance): New member function.
2136 (asm_language_data): Delete la_get_compile_instance initializer.
2137 (minimal_language_data): Likewise.
2138 * c-lang.h (c_get_compile_context): Update comment.
2139 (cplus_get_compile_context): Update comment.
2140 * compile/compile.c (compile_to_object): Update calls, don't rely
2141 on function pointer being NULL.
2142 * d-lang.c (d_language_data): Delete la_get_compile_instance
2143 initializer.
2144 * f-lang.c (f_language_data): Likewise.
2145 * go-lang.c (go_language_data): Likewise.
2146 * language.c (unknown_language_data): Likewise.
2147 (auto_language_data): Likewise.
2148 * language.h (language_data): Delete la_get_compile_instance field.
2149 (language_defn::get_compile_instance): New member function.
2150 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2151 initializer.
2152 * objc-lang.c (objc_language_data): Likewise.
2153 * opencl-lang.c (opencl_language_data): Likewise.
2154 * p-lang.c (pascal_language_data): Likewise.
2155 * rust-lang.c (rust_language_data): Likewise.
2156
4009ee92
AB
21572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * ada-lang.c (ada_add_all_symbols): Update comment.
2160 (ada_iterate_over_symbols): Delete, move implementation to...
2161 (ada_language::iterate_over_symbols): ...here, a new member
2162 function, rewrite to use range based for loop.
2163 (ada_language_data): Delete la_iterate_over_symbols initializer.
2164 * c-lang.c (c_language_data): Likewise.
2165 (cplus_language_data): Likewise.
2166 (asm_language_data): Likewise.
2167 (minimal_language_data): Likewise.
2168 * d-lang.c (d_language_data): Likewise.
2169 * f-lang.c (f_language_data): Likewise.
2170 * go-lang.c (go_language_data): Likewise.
2171 * language.c (unknown_language_data): Likewise.
2172 (auto_language_data): Likewise.
2173 * language.h (language_data): Delete la_iterate_over_symbols field.
2174 (language_defn::iterate_over_symbols): New member function.
2175 (LA_ITERATE_OVER_SYMBOLS): Update.
2176 * linespec.c (iterate_over_all_matching_symtabs): Update.
2177 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2178 initializer.
2179 * objc-lang.c (objc_language_data): Likewise.
2180 * opencl-lang.c (opencl_language_data): Likewise.
2181 * p-lang.c (pascal_language_data): Likewise.
2182 * rust-lang.c (rust_language_data): Likewise.
2183
54f4ca46
AB
21842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * ada-lang.c (ada_language_data): Delete
2187 la_lookup_transparent_type initializer.
2188 * c-lang.c (c_language_data): Likewise.
2189 (cplus_language_data): Likewise.
2190 (cplus_language::lookup_transparent_type): New member function.
2191 (asm_language_data): Delete la_lookup_transparent_type
2192 initializer.
2193 (minimal_language_data): Likewise.
2194 * d-lang.c (d_language_data): Likewise.
2195 * f-lang.c (f_language_data): Likewise.
2196 * go-lang.c (go_language_data): Likewise.
2197 * language.c (unknown_language_data): Likewise.
2198 (auto_language_data): Likewise.
2199 * language.h (struct language_data): Delete
2200 la_lookup_transparent_type field.
2201 (language_defn::lookup_transparent_type): New member function.
2202 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2203 initializer.
2204 * objc-lang.c (objc_language_data): Likewise.
2205 * opencl-lang.c (opencl_language_data): Likewise.
2206 * p-lang.c (pascal_language_data): Likewise.
2207 * rust-lang.c (rust_language_data): Likewise.
2208 * symtab.c (symbol_matches_domain): Update call.
2209
1fb314aa
AB
22102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * ada-lang.c (ada_language_arch_info): Delete function, move
2213 implementation to...
2214 (ada_language::language_arch_info): ...here, a new member
2215 function.
2216 (ada_language_data): Delete la_language_arch_info.
2217 * c-lang.c (c_language_data): Likewise.
2218 (c_language::language_arch_info): New member function.
2219 (cplus_language_arch_info): Delete function, move
2220 implementation to...
2221 (cplus_language::language_arch_info): ...here, a new member
2222 function.
2223 (cplus_language_data): Delete la_language_arch_info.
2224 (asm_language_data): Likewise.
2225 (asm_language::language_arch_info): New member function.
2226 (minimal_language_data): Delete la_language_arch_info.
2227 (minimal_language::language_arch_info): New member function.
2228 * d-lang.c (d_language_arch_info): Delete function, move
2229 implementation to...
2230 (d_language::language_arch_info): ...here, a new member
2231 function.
2232 (d_language_data): Delete la_language_arch_info.
2233 * f-lang.c (f_language_arch_info): Delete function, move
2234 implementation to...
2235 (f_language::language_arch_info): ...here, a new member
2236 function.
2237 (f_language_data): Delete la_language_arch_info.
2238 * go-lang.c (go_language_arch_info): Delete function, move
2239 implementation to...
2240 (go_language::language_arch_info): ...here, a new member
2241 function.
2242 (go_language_data): Delete la_language_arch_info.
2243 * language.c (unknown_language_data): Likewise.
2244 (unknown_language::language_arch_info): New member function.
2245 (auto_language_data): Delete la_language_arch_info.
2246 (auto_language::language_arch_info): New member function.
2247 (language_gdbarch_post_init): Update call to
2248 la_language_arch_info.
2249 * language.h (language_data): Delete la_language_arch_info
2250 function pointer.
2251 (language_defn::language_arch_info): New function.
2252 * m2-lang.c (m2_language_arch_info): Delete function, move
2253 implementation to...
2254 (m2_language::language_arch_info): ...here, a new member
2255 function.
2256 (m2_language_data): Delete la_language_arch_info.
2257 * objc-lang.c (objc_language_arch_info): Delete function, move
2258 implementation to...
2259 (objc_language::language_arch_info): ...here, a new member
2260 function.
2261 (objc_language_data): Delete la_language_arch_info.
2262 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2263 implementation to...
2264 (opencl_language::language_arch_info): ...here, a new member
2265 function.
2266 (opencl_language_data): Delete la_language_arch_info.
2267 * p-lang.c (pascal_language_arch_info): Delete function, move
2268 implementation to...
2269 (pascal_language::language_arch_info): ...here, a new member
2270 function.
2271 (pascal_language_data): Delete la_language_arch_info.
2272 * rust-lang.c (rust_language_arch_info): Delete function, move
2273 implementation to...
2274 (rust_language::language_arch_info): ...here, a new member
2275 function.
2276 (rust_language_data): Delete la_language_arch_info.
2277
48448202
AB
22782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2281 initializer.
2282 * c-lang.c (c_language_data): Likewise.
2283 (cplus_language_data): Likewise.
2284 (cplus_language::pass_by_reference_info): New method.
2285 (asm_language_data): Delete la_pass_by_reference initializer.
2286 (minimal_language_data): Likewise.
2287 * cp-abi.c (cp_pass_by_reference): Remove use of
2288 default_pass_by_reference.
2289 * d-lang.c (d_language_data): Likewise.
2290 * f-lang.c (f_language_data): Likewise.
2291 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2292 default_pass_by_reference.
2293 * go-lang.c (go_language_data): Likewise.
2294 * language.c (language_pass_by_reference): Update.
2295 (default_pass_by_reference): Delete.
2296 (unknown_language_data): Delete la_pass_by_reference
2297 initializer.
2298 (auto_language_data): Likewise.
2299 * language.h (struct language_data): Delete la_pass_by_reference
2300 field.
2301 (language_defn::pass_by_reference_info): New member function.
2302 (default_pass_by_reference): Delete declaration.
2303 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2304 initializer.
2305 * objc-lang.c (objc_language_data): Likewise.
2306 * opencl-lang.c (opencl_language_data): Likewise.
2307 * p-lang.c (pascal_language_data): Likewise.
2308 * rust-lang.c (rust_language_data): Likewise.
2309
15e5fd35
AB
23102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * ada-lang.c (ada_read_var_value): Delete function, move
2313 implementation to...
2314 (ada_language::read_var_value): ...here.
2315 (ada_language_data): Delete la_read_var_value initializer.
2316 * c-lang.c (c_language_data): Likewise.
2317 (cplus_language_data): Likewise.
2318 (minimal_language_data): Likewise.
2319 * d-lang.c (d_language_data): Likewise.
2320 * f-lang.c (f_language_data): Likewise.
2321 * findvar.c (default_read_var_value): Rename to...
2322 (language_defn::read_var_value): ...this.
2323 * findvar.c (read_var_value): Update header comment, and change to
2324 call member function instead of function pointer.
2325 * go-lang.c (go_language_data): Likewise.
2326 * language.c (unknown_language_data): Delete la_read_var_value
2327 initializer.
2328 (auto_language_data): Likewise.
2329 * language.h (struct language_data): Delete la_read_var_value
2330 field.
2331 (language_defn::read_var_value): New member function.
2332 (default_read_var_value): Delete declaration.
2333 * m2-lang.c (m2_language_data): Delete la_read_var_value
2334 initializer.
2335 * objc-lang.c (objc_language_data): Likewise.
2336 * opencl-lang.c (opencl_language_data): Likewise.
2337 * p-lang.c (pascal_language_data): Likewise.
2338 * rust-lang.c (rust_language_data): Likewise.
2339 * value.h (default_read_var_value): Delete declaration.
2340
5bd40f2a
AB
23412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * ada-lang.c (ada_print_array_index): Delete function, move
2344 implementation to...
2345 (ada_language::print_array_index): ...here.
2346 (ada_language_data): Delete la_print_array_index initializer.
2347 * c-lang.c (c_language_data): Likewise.
2348 (cplus_language_data): Likewise.
2349 (minimal_language_data): Likewise.
2350 * d-lang.c (d_language_data): Likewise.
2351 * f-lang.c (f_language_data): Likewise.
2352 * go-lang.c (go_language_data): Likewise.
2353 * language.c (default_print_array_index): Delete function, move
2354 implementation to...
2355 (language_defn::print_array_index): ...here.
2356 (unknown_language_data): Delete la_print_array_index initializer.
2357 (auto_language_data): Likewise.
2358 * language.h (struct language_data): Delete la_print_array_index
2359 field.
2360 (language_defn::print_array_index): New member function.
2361 (LA_PRINT_ARRAY_INDEX): Update.
2362 (default_print_array_index): Delete declaration.
2363 * m2-lang.c (m2_language_data): Delete la_print_array_index
2364 initializer.
2365 * objc-lang.c (objc_language_data): Likewise.
2366 * opencl-lang.c (opencl_language_data): Likewise.
2367 * p-lang.c (pascal_language_data): Likewise.
2368 * rust-lang.c (rust_language_data): Likewise.
2369
0874fd07
AB
23702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * gdb/ada-lang.c (ada_language_defn): Convert to...
2373 (ada_language_data): ...this.
2374 (class ada_language): New class.
2375 (ada_language_defn): New static global.
2376 * gdb/c-lang.c (c_language_defn): Convert to...
2377 (c_language_data): ...this.
2378 (class c_language): New class.
2379 (c_language_defn): New static global.
2380 (cplus_language_defn): Convert to...
2381 (cplus_language_data): ...this.
2382 (class cplus_language): New class.
2383 (cplus_language_defn): New static global.
2384 (asm_language_defn): Convert to...
2385 (asm_language_data): ...this.
2386 (class asm_language): New class.
2387 (asm_language_defn): New static global.
2388 (minimal_language_defn): Convert to...
2389 (minimal_language_data): ...this.
2390 (class minimal_language): New class.
2391 (minimal_language_defn): New static global.
2392 * gdb/d-lang.c (d_language_defn): Convert to...
2393 (d_language_data): ...this.
2394 (class d_language): New class.
2395 (d_language_defn): New static global.
2396 * gdb/f-lang.c (f_language_defn): Convert to...
2397 (f_language_data): ...this.
2398 (class f_language): New class.
2399 (f_language_defn): New static global.
2400 * gdb/go-lang.c (go_language_defn): Convert to...
2401 (go_language_data): ...this.
2402 (class go_language): New class.
2403 (go_language_defn): New static global.
2404 * gdb/language.c (unknown_language_defn): Remove declaration.
2405 (current_language): Initialize to nullptr, real initialization is
2406 moved to _initialize_language.
2407 (languages): Delete global.
2408 (language_defn::languages): Define.
2409 (set_language_command): Use language_defn::languages.
2410 (set_language): Likewise.
2411 (range_error): Likewise.
2412 (language_enum): Likewise.
2413 (language_def): Likewise.
2414 (add_set_language_command): Use language_def::languages for the
2415 language list, and language_def to lookup language pointers.
2416 (skip_language_trampoline): Use language_defn::languages.
2417 (unknown_language_defn): Convert to...
2418 (unknown_language_data): ...this.
2419 (class unknown_language): New class.
2420 (unknown_language_defn): New static global.
2421 (auto_language_defn): Convert to...
2422 (auto_language_data): ...this.
2423 (class auto_language): New class.
2424 (auto_language_defn): New static global.
2425 (language_gdbarch_post_init): Use language_defn::languages.
2426 (_initialize_language): Initialize current_language.
2427 * gdb/language.h (struct language_defn): Rename to...
2428 (struct language_data): ...this.
2429 (struct language_defn): New.
2430 (auto_language_defn): Delete.
2431 (unknown_language_defn): Delete.
2432 (minimal_language_defn): Delete.
2433 (ada_language_defn): Delete.
2434 (asm_language_defn): Delete.
2435 (c_language_defn): Delete.
2436 (cplus_language_defn): Delete.
2437 (d_language_defn): Delete.
2438 (f_language_defn): Delete.
2439 (go_language_defn): Delete.
2440 (m2_language_defn): Delete.
2441 (objc_language_defn): Delete.
2442 (opencl_language_defn): Delete.
2443 (pascal_language_defn): Delete.
2444 (rust_language_defn): Delete.
2445 * gdb/m2-lang.c (m2_language_defn): Convert to...
2446 (m2_language_data): ...this.
2447 (class m2_language): New class.
2448 (m2_language_defn): New static global.
2449 * gdb/objc-lang.c (objc_language_defn): Convert to...
2450 (objc_language_data): ...this.
2451 (class objc_language): New class.
2452 (objc_language_defn): New static global.
2453 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2454 (opencl_language_data): ...this.
2455 (class opencl_language): New class.
2456 (opencl_language_defn): New static global.
2457 * gdb/p-lang.c (pascal_language_defn): Convert to...
2458 (pascal_language_data): ...this.
2459 (class pascal_language): New class.
2460 (pascal_language_defn): New static global.
2461 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2462 language pointer, update comment format.
2463 * gdb/rust-lang.c (rust_language_defn): Convert to...
2464 (rust_language_data): ...this.
2465 (class rust_language): New class.
2466 (rust_language_defn): New static global.
2467
1313c56e
AB
24682020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2471 member variable.
2472 <m_stmt_at_address>: New member variable.
2473 (lnp_state_machine::record_line): Don't record some lines, update
2474 tracking of is_stmt at the same address.
2475 (lnp_state_machine::lnp_state_machine): Initialise new member
2476 variables.
2477
b7ed9f3d
ST
24782020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2479
2480 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2481 "-include gnu-nat-mig.h".
2482 * gnu-nat-mig.h: New file.
2483 * gnu-nat.c: Include "gnu-nat-mig.h".
2484 (exc_server, msg_reply_server, notify_server,
2485 process_reply_server): Remove declarations.
2486
14a8ad62
ST
24872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2488
2489 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2490 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2491 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2492 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2493 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2494 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2495 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2496 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2497 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2498 to gnu_nat_target class.
2499 * gnu-nat.c: Likewise.
2500 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2501 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2502 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2503 object.
2504 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2505 instead of `gnu_target'.
2506
0af5e106
ST
25072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2508
2509 * i386-gnu-tdep.c: Include "gdbcore.h"
2510 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2511 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2512 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2513 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2514 i386_gnu_sigcontext_addr): New functions
2515 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2516 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2517 tdep.
2518
078f2fc9
ST
25192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2520
2521 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2522 before fork_inferior call. Avoid calling it if target_is_pushed returns
2523 true.
2524
53dff92c
ST
25252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2526
2527 * gnu-nat.h (gnu_target): New variable declaration.
2528 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2529 gnu_target.
2530 * gnu-nat.c (gnu_target): New variable.
2531 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2532 add_thread_silent, and add_thread calls.
2533 (gnu_nat_target::create_inferior): Pass gnu_target to
2534 add_thread_silent, thread_change_ptid call.
2535 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2536 call.
2537
5a8b8627
ST
25382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2539
2540 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2541 (gnu_nat_target::find_memory_regions): Remove unused
2542 `old_address' variable.
2543
366f550a
ST
25442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2545
2546 * gnu-nat.c: Include "gdbarch.h".
2547
f14871bf
ST
25482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2549
2550 * reply_mig_hack.awk (Error return): Cast function through
2551 void *, to bypass compiler function call check.
2552
c6887cfb
ST
25532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2554
2555 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2556 $(srcdir)/reply_mig_hack.awk.
2557
6930bffe
ST
25582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2559
2560 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2561
112c22ed
JG
25622020-05-30 Jonny Grant <jg@jguk.org>
2563
2564 * configure.ac (ACX_BUGURL): change bug URL to https.
2565
f68f85b5
PA
25662020-05-30 Pedro Alves <palves@redhat.com>
2567
2568 * cp-support.c (replace_typedefs_template): New.
2569 (replace_typedefs_qualified_name): Handle
2570 DEMANGLE_COMPONENT_TEMPLATE.
2571
976ca316
SM
25722020-05-29 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2575 dwarf2/index-cache.h, dwarf2/index-write.c,
2576 dwarf2/index-write.h, dwarf2/line-header.c,
2577 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2578 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2579 variables and fields from `dwarf2_per_objfile` to just
2580 `per_objfile` throughout.
2581
989ade05
SM
25822020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2585 <push_dwarf_reg_entry_value>: Add comment.
2586
c47bae85
KB
25872020-05-28 Kevin Buettner <kevinb@redhat.com>
2588 Keith Seitz <keiths@redhat.com>
2589
2590 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2591 instead of PyEval_ReleaseLock.
2592 (class gdbpy_gil): Move to earlier in file.
2593 (finalize_python): Set gdb_python_initialized.
2594 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2595 when not initialized.
2596
44486dcf
SM
25972020-05-28 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2600 <push_dwarf_reg_entry_value>: Remove assert. Override
2601 per_objfile with caller_per_objfile.
2602
f030440d
TV
26032020-05-28 Tom de Vries <tdevries@suse.de>
2604
2605 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2606 PR gold/15646 workaround to symbol kind "type".
2607
f0fbb768
TT
26082020-05-27 Tom Tromey <tromey@adacore.com>
2609
2610 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2611
af0b2a3e
TT
26122020-05-27 Tom Tromey <tromey@adacore.com>
2613
2614 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2615 Use htab_find_with_hash.
2616 <add_abbrev>: Remove "abbrev_number" parameter.
2617 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2618 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2619 (hash_abbrev): Add comment.
2620 (abbrev_table::lookup_abbrev): Move to header file.
2621 (abbrev_table::read): Update.
2622
7d00ffec
TT
26232020-05-27 Tom Tromey <tromey@adacore.com>
2624
2625 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2626 method.
2627 <canonical_name>: New member.
2628 <raw_name>: Rename from "name".
2629 (partial_die_info): Initialize canonical_name.
2630 (scan_partial_symbols): Check raw_name.
2631 (partial_die_parent_scope, partial_die_full_name)
2632 (add_partial_symbol, add_partial_subprogram)
2633 (add_partial_enumeration, load_partial_dies): Use "name" method.
2634 (partial_die_info::name): New method.
2635 (partial_die_info::read, guess_partial_die_structure_name)
2636 (partial_die_info::fixup): Update.
2637
697bba18
TT
26382020-05-27 Tom Tromey <tromey@adacore.com>
2639
2640 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2641 <get_ref_die_offset>: Inline.
2642 <get_ref_die_offset_complaint>: New method.
2643 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2644 (attribute::get_ref_die_offset_complaint): Rename from
2645 get_ref_die_offset. Just issue complaint.
2646
c17ace43
HD
26472020-05-27 Hannes Domani <ssbssa@yahoo.de>
2648
2649 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2650
96445f0b
HD
26512020-05-27 Hannes Domani <ssbssa@yahoo.de>
2652
2653 * exec.c (exec_file_attach): Use errno value of first openp failure.
2654
ac637ec3
HD
26552020-05-27 Hannes Domani <ssbssa@yahoo.de>
2656
2657 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2658 Don't close thread handle.
2659
17ee85fc
TT
26602020-05-27 Tom Tromey <tom@tromey.com>
2661 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2664 shared_ptr.
2665 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2666 member.
2667 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2668 dwarf2_per_bfd_objfile_data_key>: New globals.
2669 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2670 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2671 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2672 shared.
2673 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2674 short-circuit when sharing.
2675 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2676 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2677
39b16f87
SM
26782020-05-27 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2681 to...
2682 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2683 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2684
fcf23d5b
SM
26852020-05-27 Simon Marchi <simon.marchi@efficios.com>
2686
2687 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2688 build_name_components, find_name_components_bounds>:
2689 Add per_objfile parameter.
2690 (struct mapped_index) <symbol_name_at>: Likewise.
2691 (struct mapped_debug_names): Remove constructor.
2692 <dwarf2_per_objfile>: Remove field.
2693 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2694 (mapped_index_base::find_name_components_bounds,
2695 mapped_index_base::build_name_components,
2696 dw2_expand_symtabs_matching_symbol): Likewise.
2697 (class mock_mapped_index) <symbol_name_at>: Likewise.
2698 (check_match): Likewise.
2699 (check_find_bounds_finds): Likewise.
2700 (test_mapped_index_find_name_component_bounds): Update.
2701 (CHECK_MATCH): Update.
2702 (dw2_expand_symtabs_matching): Update.
2703 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2704 per_objfile parameter.
2705 <find_vec_in_debug_names>: Likewise.
2706 <m_per_objfile>: New field.
2707 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2708 parameter.
2709 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2710 (dw2_debug_names_iterator::next): Update.
2711 (dw2_debug_names_lookup_symbol): Update.
2712 (dw2_debug_names_expand_symtabs_for_function): Update.
2713 (dw2_debug_names_map_matching_symbols): Update.
2714 (dw2_debug_names_expand_symtabs_matching): Update.
2715 (dwarf2_read_debug_names): Update.
2716
7188ed02
SM
27172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2720 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2721 move to dwarf2_per_objfile.
2722 <read_in_chain>: Remove.
2723 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2724 remove_all_cus, age_comp_units>: New methods.
2725 <m_dwarf2_cus>: New member.
2726 (struct dwarf2_per_cu_data) <cu>: Remove.
2727 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2728 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2729 moved to methods of dwarf2_per_objfile.
2730 (dwarf2_clear_marks): Remove.
2731 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2732 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2733 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2734 (dwarf2_per_objfile::remove_all_cus): New.
2735 (class free_cached_comp_units) <~free_cached_comp_units>:
2736 Update.
2737 (load_cu): Update.
2738 (dw2_do_instantiate_symtab): Adjust.
2739 (fill_in_sig_entry_from_dwo_entry): Adjust.
2740 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2741 (cutu_reader::cutu_reader): Likewise.
2742 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2743 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2744 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2745 and dwarf2_per_objfile::age_comp_units.
2746 (load_partial_comp_unit): Update.
2747 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2748 (process_queue): Likewise.
2749 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2750 backlink.
2751 (dwarf2_read_addr_index): Likewise.
2752 (follow_die_offset): Likewise.
2753 (dwarf2_fetch_die_loc_sect_off): Likewise.
2754 (dwarf2_fetch_constant_bytes): Likewise.
2755 (dwarf2_fetch_die_type_sect_off): Likewise.
2756 (follow_die_sig_1): Likewise.
2757 (load_full_type_unit): Likewise.
2758 (read_signatured_type): Likewise.
2759 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2760 (dwarf2_cu::~dwarf2_cu): Remove.
2761 (dwarf2_per_objfile::get_cu): New.
2762 (dwarf2_per_objfile::set_cu): New.
2763 (age_cached_comp_units): Rename to...
2764 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2765 to std::unordered_map.
2766 (free_one_cached_comp_unit): Rename to...
2767 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2768 to std::unordered_map.
2769 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2770 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2771 a dwarf2_per_objfile in data.
2772 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2773 (dwarf2_clear_marks): Remove.
2774
2e671100
SM
27752020-05-27 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2778 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2779 (init_tu_and_read_dwo_dies): Likewise.
2780 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2781 (cutu_reader::cutu_reader): Likewise.
2782 (load_partial_comp_unit): Likewise.
2783 (process_psymtab_comp_unit): Update.
2784 (build_type_psymtabs_1): Update.
2785 (process_skeletonless_type_unit): Update.
2786 (load_full_comp_unit): Update.
2787 (find_partial_die): Update.
2788 (dwarf2_read_addr_index): Update.
2789 (read_signatured_type): Update.
2790
2e6a9f79
SM
27912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2794 m_header_read_in>: New fields.
2795 <get_header>: New method.
2796 * dwarf2/read.c (per_cu_header_read_in): Remove.
2797 (dwarf2_per_cu_data::get_header): New.
2798 (dwarf2_per_cu_data::addr_size): Update.
2799 (dwarf2_per_cu_data::offset_size): Update.
2800 (dwarf2_per_cu_data::ref_addr_size): Update.
2801
1b555f17
SM
28022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2805 (dw2_do_instantiate_symtab): Update.
2806 (queue_and_load_all_dwo_tus): Change parameter from
2807 dwarf2_per_cu_data to dwarf2_cu.
2808 (dwarf2_fetch_die_loc_sect_off): Update.
2809 (dwarf2_fetch_constant_bytes): Update.
2810 (dwarf2_fetch_die_type_sect_off): Update.
2811
8fc0b21d
SM
28122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * dwarf2/read.c (process_full_comp_unit,
2815 process_full_type_unit): Remove per_cu, per_objfile paramters.
2816 Add dwarf2_cu parameter.
2817 (process_queue): Update.
2818
168c9250
SM
28192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * dwarf2/read.c (create_cu_from_index_list): Replace
2822 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2823 (create_cus_from_index_list): Likewise.
2824 (create_cus_from_index): Likewise.
2825 (create_signatured_type_table_from_index): Likewise.
2826 (create_cus_from_debug_names_list): Likewise.
2827 (create_cus_from_debug_names): Likewise.
2828 (dwarf2_read_gdb_index): Update.
2829 (dwarf2_read_debug_names): Update.
2830
e286671b
TT
28312020-05-27 Tom Tromey <tom@tromey.com>
2832 Simon Marchi <simon.marchi@efficios.com>
2833
2834 * dwarf2/read.h (struct dwarf2_per_objfile)
2835 <get_type_for_signatured_type, set_type_for_signatured_type>:
2836 New methods.
2837 <m_type_map>: New member.
2838 (struct signatured_type) <type>: Remove.
2839 * dwarf2/read.c
2840 (dwarf2_per_objfile::get_type_for_signatured_type,
2841 dwarf2_per_objfile::set_type_for_signatured_type): New.
2842 (get_signatured_type): Use new methods.
2843
8adb8487
TT
28442020-05-27 Tom Tromey <tom@tromey.com>
2845 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2848 (struct dwarf2_per_objfile) <type_units>: New member.
2849 <get_type_unit_group_unshareable>: New method.
2850 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2851 num_symtabs, symtabs>: Remove; move to
2852 type_unit_group_unshareable.
2853 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2854 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2855 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2856
127bbf4b
SM
28572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * dwarf2/read.h (struct dwarf2_per_cu_data):
2860 <dwarf2_per_objfile>: Remove.
2861 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2862 dwarf2_per_objfile.
2863 (create_signatured_type_table_from_index): Likewise.
2864 (create_signatured_type_table_from_debug_names): Likewise.
2865 (create_debug_type_hash_table): Likewise.
2866 (fill_in_sig_entry_from_dwo_entry): Likewise.
2867 (create_type_unit_group): Likewise.
2868 (read_comp_units_from_section): Likewise.
2869 (create_cus_hash_table): Likewise.
2870
f6e649dd
SM
28712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2874 dwarf2_per_cu_data::dwarf2_per_objfile.
2875 (compute_compunit_symtab_includes): Likewise.
2876 (dwarf2_cu::start_symtab): Likewise.
2877
aa66c379
SM
28782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2881 parameter.
2882 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2883 (read_namespace_alias): Update.
2884 (lookup_die_type): Update.
2885 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2886 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2887 Update.
2888 (disassemble_dwarf_expression): Update.
2889
120ce1b5
SM
28902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * dwarf2/read.h (struct dwarf2_queue_item): Add
2893 dwarf2_per_objfile parameter, assign new parameter.
2894 <per_objfile>: New field.
2895 * dwarf2/read.c (free_one_cached_comp_unit): Add
2896 dwarf2_per_objfile parameter.
2897 (queue_comp_unit): Likewise.
2898 (dw2_do_instantiate_symtab): Update.
2899 (process_psymtab_comp_unit): Update.
2900 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2901 (process_imported_unit_die): Update.
2902 (queue_and_load_dwo_tu): Update.
2903 (follow_die_offset): Update.
2904 (follow_die_sig_1): Update.
2905
9f47c707
SM
29062020-05-27 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2909 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2910 (read_call_site_scope): Assign per_objfile.
2911 (dwarf2_per_cu_data::objfile): Remove.
2912 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2913 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2914 dwarf2_per_objfile parameter.
2915 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2916 dwarf2_per_objfile parameter.
2917 (dwarf_expr_reg_to_entry_parameter): Add output
2918 dwarf2_per_objfile parameter.
2919 (locexpr_get_frame_base): Update.
2920 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2921 <push_dwarf_reg_entry_value>: Update.
2922 <call_site_to_target_addr>: Update.
2923 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2924 parameter.
2925 (value_of_dwarf_reg_entry): Update.
2926 (rw_pieced_value): Update.
2927 (indirect_synthetic_pointer): Update.
2928 (dwarf2_evaluate_property): Update.
2929 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2930 parameter.
2931 (locexpr_read_variable): Update.
2932 (locexpr_get_symbol_read_needs): Update.
2933 (loclist_read_variable): Update.
2934
14095eb3
SM
29352020-05-27 Simon Marchi <simon.marchi@efficios.com>
2936
2937 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2938 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2939 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2940 parameter.
2941 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2946 sect_variable_value): Add dwarf2_per_objfile parameter.
2947 (class dwarf_evaluate_loc_desc) <dwarf_call,
2948 dwarf_variable_value>: Update.
2949 (fetch_const_value_from_synthetic_pointer): Add
2950 dwarf2_per_objfile parameter.
2951 (fetch_const_value_from_synthetic_pointer): Update.
2952 (coerced_pieced_ref): Update.
2953 (class symbol_needs_eval_context) <dwarf_call,
2954 dwarf_variable_value>: Update.
2955 (dwarf2_compile_expr_to_ax): Update.
2956
3c3cd3d4
SM
29572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2960 parameter.
2961 (dwarf2_evaluate_loc_desc_full): Update.
2962
82ca3f51
SM
29632020-05-27 Simon Marchi <simon.marchi@efficios.com>
2964
2965 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2966 parameter.
2967 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2968 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2969 dwarf2_per_objfile parameter.
2970 (decode_debug_loc_dwo_addresses): Likewise.
2971 (dwarf2_find_location_expression): Update.
2972 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2973 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2974 parameter.
2975 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2976 parameter.
2977 (locexpr_describe_location_1): Likewise.
2978 (locexpr_describe_location): Update.
2979
4b167ea1
SM
29802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2983 Remove.
2984 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2985 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2986 (dwarf2_compile_property_to_c): Update.
2987 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2988 use text offset from objfile.
2989 (locexpr_tracepoint_var_ref): Update.
2990 (locexpr_generate_c_location): Update.
2991 (loclist_describe_location): Update.
2992 (loclist_tracepoint_var_ref): Update.
2993 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2994 dwarf2_per_objfile parameter.
2995 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2996 use text offset from objfile.
2997 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2998
89b07335
SM
29992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3000
3001 * dwarf2/expr.h (struct dwarf_expr_context)
3002 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3003 <offset>: Remove.
3004 <per_objfile>: New member.
3005 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3006 dwarf2_per_objfile parameter. Don't set offset, set
3007 per_objfile.
3008 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3009 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3010 a dwarf2_per_objfile object instead of an offset.
3011 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3012 constructor.
3013 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3014 to dwarf2_expr_executor constructor. Don't set offset.
3015 (dwarf2_fetch_cfa_info): Update.
3016 (struct dwarf2_frame_cache) <text_offset>: Remove.
3017 <per_objfile>: New field.
3018 (dwarf2_frame_cache): Update.
3019 (dwarf2_frame_prev_register): Update.
3020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3021 <dwarf_evaluate_loc_desc>: Add constructor.
3022 (dwarf2_evaluate_loc_desc_full): Update.
3023 (dwarf2_locexpr_baton_eval): Update.
3024 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3025 Add constructor.
3026 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3027
293e7e51
SM
30282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3031 addr_sized_int_type>: Move to dwarf2_cu.
3032 <int_type>: Move to dwarf2_per_objfile.
3033 (struct dwarf2_per_objfile) <int_type>: Move here.
3034 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3035 addr_sized_int_type>: Move here.
3036 (read_func_scope): Update.
3037 (read_array_type): Update.
3038 (read_tag_string_type): Update.
3039 (attr_to_dynamic_prop): Update.
3040 (dwarf2_per_cu_data::int_type): Rename to...
3041 (dwarf2_per_objfile::int_type): ... this.
3042 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3043 (dwarf2_cu::addr_sized_int_type): ... this.
3044 (read_subrange_type): Update.
3045 (dwarf2_per_cu_data::addr_type): Rename to...
3046 (dwarf2_cu::addr_type): ... this.
3047 (set_die_type): Update.
3048
64874a40
SM
30492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3052 data through per_cu->cu.
3053
4ab09049
SM
30542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3057 dwarf2_per_cu_data parameter fo dwarf2_cu.
3058 (lookup_dwo_type_unit): Likewise.
3059 (read_cutu_die_from_dwo): Likewise.
3060 (lookup_dwo_unit): Likewise.
3061 (open_and_init_dwo_file): Likewise.
3062 (lookup_dwo_cutu): Likewise.
3063 (lookup_dwo_comp_unit): Likewise.
3064 (lookup_dwo_type_unit): Likewise.
3065 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3066 (cutu_reader::cutu_reader): Update.
3067
47b14e86
SM
30682020-05-27 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3071 parameter.
3072 (process_full_type_unit): Likewise.
3073 (process_queue): Update.
3074
43182c09
SM
30752020-05-27 Simon Marchi <simon.marchi@efficios.com>
3076
3077 * dwarf2/read.c (recursively_compute_inclusions): Add
3078 dwarf2_per_objfile parameter.
3079 (compute_compunit_symtab_includes): Likewise.
3080 (process_cu_includes): Update.
3081
7aa104c4
SM
30822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3085 parameter.
3086 (create_type_unit_group): Update.
3087 (process_psymtab_comp_unit_reader): Update.
3088 (build_type_psymtabs_reader): Update.
3089
e3beb21d
SM
30902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3093 object through m_this_cu->cu.
3094
d460f660
SM
30952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3098 the info parameter.
3099 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3100
ab432490
SM
31012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3102
3103 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3104 per_objfile parameter.
3105 (load_full_type_unit): Add per_objfile parameter.
3106 (read_signatured_type): Likewise.
3107 (load_full_comp_unit): Likewise.
3108 (load_cu): Likewise.
3109 (dw2_do_instantiate_symtab): Likewise.
3110 (dw2_get_file_names): Likewise.
3111 (dw2_map_symtabs_matching_filename): Update.
3112 (dw_expand_symtabs_matching_file_matcher): Update.
3113 (dw2_map_symbol_filenames): Update.
3114 (process_psymtab_comp_unit): Add per_objfile parameter.
3115 (build_type_psymtabs_1): Update.
3116 (process_skeletonless_type_unit): Update.
3117 (dwarf2_build_psymtabs_hard): Update.
3118 (load_partial_comp_unit): Add per_objfile parameter.
3119 (scan_partial_symbols): Update.
3120 (load_full_comp_unit): Add per_objfile parameter.
3121 (process_imported_unit_die): Update.
3122 (create_cus_hash_table): Update.
3123 (find_partial_die): Update.
3124 (dwarf2_read_addr_index): Update.
3125 (follow_die_offset): Update.
3126 (dwarf2_fetch_die_loc_sect_off): Update.
3127 (dwarf2_fetch_constant_bytes): Update.
3128 (dwarf2_fetch_die_type_sect_off): Update.
3129 (follow_die_sig_1): Update.
3130 (load_full_type_unit): Add per_objfile parameter.
3131 (read_signatured_type): Likewise.
3132
313bad1b
SM
31332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3136 of objfile_name.
3137
c3699833
SM
31382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3139
3140 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3141 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3142 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3143 field.
3144 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3145 (create_cus_from_index): Update.
3146 (dwarf2_read_gdb_index): Update.
3147 (create_cus_from_debug_names): Update.
3148 (dwarf2_read_debug_names): Update.
3149 (get_abbrev_section_for_cu): Update.
3150 (create_all_comp_units): Update.
3151 (read_attribute_value): Update.
3152 (get_debug_line_section): Update.
3153 * dwarf2/index-cache.c (index_cache::store): Update.
3154 * dwarf2/index-write.c (save_gdb_index_command): Update.
3155 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3156
1859c670
SM
31572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3158
3159 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3160 member.
3161 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3162 dwarf2_per_cu_data::per_bfd.
3163 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3164 (create_type_unit_group): Likewise.
3165 (queue_comp_unit): Remove reference to
3166 per_cu->dwarf2_per_objfile.
3167 (maybe_queue_comp_unit): Likewise.
3168 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3169 (create_cus_hash_table): Assign new field.
3170
5e22e966
SM
31712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * dwarf2/read.c: Replace
3174 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3175 dwarf2_cu->per_objfile throughout.
3176
97a1449a
SM
31772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3180 parameter, don't use per_cu->dwarf2_per_objfile.
3181 (dw2_instantiate_symtab): Likewise.
3182 (dw2_find_last_source_symtab): Update.
3183 (dw2_map_expand_apply): Update.
3184 (dw2_lookup_symbol): Update.
3185 (dw2_expand_symtabs_for_function): Update.
3186 (dw2_expand_all_symtabs): Update.
3187 (dw2_expand_symtabs_with_fullname): Update.
3188 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3189 don't use per_cu->dwarf2_per_objfile.
3190 (dw2_expand_marked_cus): Update.
3191 (dw2_find_pc_sect_compunit_symtab): Update.
3192 (dw2_debug_names_lookup_symbol): Update.
3193 (dw2_debug_names_expand_symtabs_for_function): Update.
3194 (dw2_debug_names_map_matching_symbols): Update.
3195 (dwarf2_psymtab::expand_psymtab): Update.
3196
9e021579
SM
31972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3200 <per_objfile>: New member.
3201 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3202 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3203 call to dwarf2_cu.
3204 (cutu_reader::cutu_reader): Update.
3205 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3206
ae090bdb
SM
32072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3210 struct dwarf2_per_objfile.
3211 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3212 dwarf2_per_bfd.
3213 * dwarf2/read.c (set_die_type): Update.
3214 (get_die_type_at_offset): Update.
3215
af758d11
SM
32162020-05-27 Tom Tromey <tom@tromey.com>
3217 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3220 method.
3221 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3222 get_symtab, set_symtab>: New methods.
3223 <m_symtabs>: New field.
3224 (struct dwarf2_psymtab): Derive from partial_symtab.
3225 <readin_p, get_compunit_symtab>: Declare methods.
3226 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3227 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3228 New methods.
3229 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3230 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3231 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3232 (dw2_symtab_iter_next, dw2_print_stats)
3233 (dw2_expand_symtabs_with_fullname)
3234 (dw2_expand_symtabs_matching_one)
3235 (dw_expand_symtabs_matching_file_matcher)
3236 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3237 (dw2_debug_names_iterator::next)
3238 (dw2_debug_names_map_matching_symbols)
3239 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3240 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3241 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3242 New methods.
3243 (get_compunit_symtab, process_full_comp_unit)
3244 (process_full_type_unit): Update.
3245 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3246
5989a64e
SM
32472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3250 then introduce a new dwarf2_per_objfile type.
3251 <read_line_string>: Move to the new dwarf2_per_objfile type.
3252 <objfile>: Likewise.
3253 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3254 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3255 dwarf2_per_objfile->per_bfd.
3256 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3257 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3258 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3259 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3260 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3261 (dwarf2_per_objfile::locate_sections): Rename to...
3262 (dwarf2_per_bfd::locate_sections): ... this.
3263 (dwarf2_per_objfile::get_cutu): Rename to...
3264 (dwarf2_per_bfd::get_cutu): ... this.
3265 (dwarf2_per_objfile::get_cu): Rename to...
3266 (dwarf2_per_bfd::get_cu): ... this.
3267 (dwarf2_per_objfile::get_tu): Rename to...
3268 (dwarf2_per_bfd::get_tu): ... this.
3269 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3270 (dwarf2_per_bfd::allocate_per_cu): ... this.
3271 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3272 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3273 (get_gdb_index_contents_ftype): Change parameter from
3274 dwarf2_per_objfile to dwarf2_per_bfd.
3275 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3276 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3277
a50264ba
TT
32782020-05-27 Tom Tromey <tom@tromey.com>
3279 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3282 (allocate_piece_closure): Set "per_objfile" member.
3283 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3284 (locexpr_describe_location, loclist_describe_location): Use new
3285 member.
3286 * dwarf2/read.c (read_call_site_scope)
3287 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3288 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3289 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3290 handle_data_member_location): Set per_objfile member.
3291 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3292 member.
3293 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3294
d3473f0c
TT
32952020-05-27 Tom Tromey <tom@tromey.com>
3296
3297 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3298 allocate_signatured_type>: Declare new methods.
3299 <m_num_psymtabs>: New member.
3300 (struct dwarf2_per_cu_data) <index>: New member.
3301 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3302 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3303 (create_cu_from_index_list): Use allocate_per_cu.
3304 (create_signatured_type_table_from_index)
3305 (create_signatured_type_table_from_debug_names)
3306 (create_debug_type_hash_table, add_type_unit)
3307 (read_comp_units_from_section): Use allocate_signatured_type.
3308
5717c425
TT
33092020-05-27 Tom Tromey <tom@tromey.com>
3310
3311 * psymtab.c (partial_map_expand_apply)
3312 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3313 (psym_lookup_global_symbol_language)
3314 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3315 (psym_print_stats, psym_expand_symtabs_for_function)
3316 (psym_map_symbol_filenames, psym_map_matching_symbols)
3317 (psym_expand_symtabs_matching)
3318 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3319 (maintenance_check_psymtabs): Update.
3320 * psympriv.h (struct partial_symtab) <readin_p,
3321 get_compunit_symtab>: Add objfile parameter.
3322 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3323 Likewise.
3324 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3325 get_compunit_symtab>: Likewise.
3326 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3327
45940949
TT
33282020-05-27 Tom Tromey <tom@tromey.com>
3329
3330 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3331 member.
3332 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3333 (create_cu_from_index_list)
3334 (create_signatured_type_table_from_index)
3335 (create_signatured_type_table_from_debug_names)
3336 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3337 (dwarf2_create_include_psymtab)
3338 (create_debug_type_hash_table, add_type_unit)
3339 (create_type_unit_group, read_comp_units_from_section)
3340 (dwarf2_compute_name, create_cus_hash_table)
3341 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3342 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3343 obstack.
3344 (dw2_get_real_path): Likewise. Change argument to
3345 dwarf2_per_objfile.
3346
f8c6d152
LM
33472020-05-27 Luis Machado <luis.machado@linaro.org>
3348
3349 PR tdep/26000
3350 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3351 for ldrd (immediate).
3352
e98d2e6d
PW
33532020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3354
3355 * command.h: Add comment giving the name of class_tui.
3356 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3357 create the fake command for the help for class_tui.
3358
53a47a3e
TT
33592020-05-26 Tom Tromey <tromey@adacore.com>
3360
3361 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3362 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3363 (val_atr): New function.
3364 (value_val_atr): Use it.
3365 * ada-valprint.c (print_optional_low_bound): Change low bound
3366 handling for enums.
3367 (val_print_packed_array_elements): Don't call discrete_position.
3368 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3369 discrete_position for enum types.
3370 * language.c (default_print_array_index): Change type.
3371 * language.h (struct language_defn) <la_print_array_index>: Add
3372 index_type parameter, change type of index_value.
3373 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3374 (default_print_array_index): Update.
3375 * valprint.c (maybe_print_array_index): Don't call
3376 value_from_longest. Update.
3377 (value_print_array_elements): Don't call discrete_position.
3378
0bc2354b
TT
33792020-05-26 Tom Tromey <tromey@adacore.com>
3380
3381 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3382 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3383
1218a4bf
CDA
33842020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3385
3386 PR gdb/13519
3387 * avr-tdep.c (avr_integer_to_address): Return data or code
3388 address accordingly to the second 'type' argument of the
3389 function.
3390
92651b1d
MW
33912020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3392
3393 * infcmd.c, inferior.h: (construct_inferior_arguments):
3394 Moved function from here to gdbsupport/common-inferior.{h,cc}
3395
0a4f5f8c
TT
33962020-05-23 Tom Tromey <tom@tromey.com>
3397
3398 Revert commit eca1f90c:
3399 * NEWS: Remove entry for completion styling.
3400 * completer.c (_rl_completion_prefix_display_length): Move
3401 declaration later.
3402 (gdb_fnprint): Revert.
3403 (gdb_display_match_list_1): Likewise.
3404 * cli/cli-style.c (completion_prefix_style)
3405 (completion_difference_style, completion_suffix_style): Remove.
3406 (_initialize_cli_style): Revert.
3407 * cli/cli-style.h (completion_prefix_style)
3408 (completion_difference_style, completion_suffix_style): Don't
3409 declare.
3410
e08bd6c5
PA
34112020-05-24 Pedro Alves <palves@redhat.com>
3412
3413 * symtab.c (completion_list_add_name): Return boolean indication
3414 of whether the symbol matched.
3415 (completion_list_add_symbol): Don't try to remove C++ aliases if
3416 the symbol didn't match in the first place.
3417 * symtab.h (completion_list_add_name): Return bool.
3418
ceacbf6e
SM
34192020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3420
3421 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3422 type::field.
3423
26f16254
JB
34242020-05-23 Joel Brobecker <brobecker@adacore.com>
3425
3426 GDB 9.2 released.
3427
eca1f90c
TT
34282020-05-23 Tom Tromey <tom@tromey.com>
3429
3430 * NEWS: Add entry for completion styling.
3431 * completer.c (_rl_completion_prefix_display_length): Move
3432 declaration earlier.
3433 (gdb_fnprint): Use completion_style.
3434 (gdb_display_match_list_1): Likewise.
3435 * cli/cli-style.c (completion_prefix_style)
3436 (completion_difference_style, completion_suffix_style): New
3437 globals.
3438 (_initialize_cli_style): Register new globals.
3439 * cli/cli-style.h (completion_prefix_style)
3440 (completion_difference_style, completion_suffix_style): Declare.
3441
51e2cfa2
PA
34422020-05-23 Pedro Alves <palves@redhat.com>
3443
3444 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3445 (parse_escape): Use ISDIGIT instead of isdigit.
3446 (puts_debug): Use gdb_isprint instead of isprint.
3447 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3448 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3449 ISSPACE instead of isspace.
3450 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3451 instead of isspace.
3452 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3453 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3454 instead of isxdigit and ISDIGIT instead of isdigit.
3455
80fc5e77
SM
34562020-05-22 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (struct type) <field>: New method.
3459 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3460 or type::field.
3461
3cabb6b0
SM
34622020-05-22 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3465 (TYPE_FIELDS): Use type::fields. Change all call sites that
3466 modify the propery to use type::set_fields instead.
3467
1f704f76
SM
34682020-05-22 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3471 type::num_fields instead.
3472
5e33d5f4
SM
34732020-05-22 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3476 methods.
3477 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3478 that modify the number of fields to use type::set_num_fields
3479 instead.
3480
9392ebb3
TT
34812020-05-22 Tom Tromey <tromey@adacore.com>
3482
3483 * compile/compile-object-load.h (munmap_list_free): Don't
3484 declare.
3485
7c13f4e8
AB
34862020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * annotate.c (annotate_source_line): Update return type, add call
3489 to update current symtab and line.
3490 * annotate.h (annotate_source_line): Update return type, and
3491 extend header comment.
3492 * source.c (info_line_command): Check annotation_level before
3493 calling annotate_source_line.
3494 * stack.c (print_frame_info): If calling annotate_source_line
3495 returns true, then don't print any other source line information.
3496
aa370940
SM
34972020-05-21 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3500
84d53fa9
SM
35012020-05-21 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * coffread.c (patch_type): Remove NULL check before xfree.
3504 * corefile.c (set_gnutarget): Likewise.
3505 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3506 * exec.c (build_section_table): Likewise.
3507 * remote.c (remote_target::pass_signals): Likewise.
3508 * utils.c (n_spaces): Likewise.
3509 * cli/cli-script.c (document_command): Likewise.
3510 * i386-windows-tdep.c (core_process_module_section): Likewise.
3511 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3512
9d428aae
SM
35132020-05-20 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * symfile.c (reread_symbols): Clear objfile's section_offsets
3516 vector and section indices, re-compute them by calling
3517 sym_offsets.
3518
250106a7
TT
35192020-05-20 Tom Tromey <tromey@adacore.com>
3520
3521 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3522 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3523
9a0bacfb
TV
35242020-05-20 Tom de Vries <tdevries@suse.de>
3525
3526 PR symtab/25833
3527 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3528
7b958a48
AM
35292020-05-20 Alan Modra <amodra@gmail.com>
3530
3531 PR 25993
3532 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3533 bfd_set_filename.
3534 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3535 passed to bfd_set_filename.
3536 * symfile-mem.c (add_vsyscall_page): Likewise for string
3537 passed to symbol_file_add_from_memory.
3538 (symbol_file_add_from_memory): Make name param a const char* and
3539 don't strdup.
3540
c7e97679
AM
35412020-05-20 Alan Modra <amodra@gmail.com>
3542
3543 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3544 rather than accessing bfd->filename directly.
3545 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3546 and use bfd_section_name.
3547 * dwarf2/frame.c (decode_frame_entry): Likewise.
3548 * exec.c (exec_set_section_address): Likewise.
3549 * solib-aix.c (solib_aix_bfd_open): Likewise.
3550 * stap-probe.c (get_stap_base_address): Likewise.
3551 * symfile.c (reread_symbols): Likewise.
3552
563c591b
TT
35532020-05-19 Tom Tromey <tromey@adacore.com>
3554
3555 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3556
f408d82c
SM
35572020-05-19 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3560
98c59b52
PA
35612020-05-19 Pedro Alves <palves@redhat.com>
3562
3563 * NEWS (set exec-file-mismatch): Adjust entry.
3564 * exec.c: Include "build-id.h".
3565 (validate_exec_file): Try to match build IDs instead of filenames.
3566 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3567 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3568 and pass down 'warn_if_slow'.
3569 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3570 gdb_bfd_open_closure to pass it down.
3571 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3572
4111f652
PA
35732020-05-19 Pedro Alves <palves@redhat.com>
3574
3575 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3576 * target.c (target_fileio_open_1): Rename to target_fileio_open
3577 and make extern. Use bool.
3578 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3579 (target_fileio_read_alloc_1): Adjust.
3580 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3581 (target_fileio_open_warn_if_slow): Delete declaration.
3582
ad80db5b
PA
35832020-05-19 Pedro Alves <palves@redhat.com>
3584
3585 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3586 Adjust all callers.
3587
1d6ce4d3
YS
35882020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3589
3590 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3591 whether disp is negative.
3592
9005fbbb
SM
35932020-05-19 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * symfile.h (struct symfile_segment_data)
3596 <~symfile_segment_data>: Remove.
3597 <segment_info>: Change to std::vector.
3598 * symfile.c (default_symfile_segments): Update.
3599 * elfread.c (elf_symfile_segments): Update.
3600
68b888ff
SM
36012020-05-19 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3604 <segments>: New.
3605 <segment_bases, segment_sizes>: Remove.
3606 * symfile.c (default_symfile_segments): Update.
3607 * elfread.c (elf_symfile_segments): Update.
3608 * remote.c (remote_target::get_offsets): Update.
3609 * solib-target.c (solib_target_relocate_section_addresses):
3610 Update.
3611
62982abd
SM
36122020-05-19 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * symfile.h (struct symfile_segment_data): Initialize fields.
3615 <~symfile_segment_data>: Add.
3616 (symfile_segment_data_up): New.
3617 (struct sym_fns) <sym_segments>: Return a
3618 symfile_segment_data_up.
3619 (default_symfile_segments): Return a symfile_segment_data_up.
3620 (free_symfile_segment_data): Remove.
3621 (get_symfile_segment_data): Return a symfile_segment_data_up.
3622 * symfile.c (default_symfile_segments): Likewise.
3623 (get_symfile_segment_data): Likewise.
3624 (free_symfile_segment_data): Remove.
3625 (symfile_find_segment_sections): Update.
3626 * elfread.c (elf_symfile_segments): Return a
3627 symfile_segment_data_up.
3628 * remote.c (remote_target::get_offsets): Update.
3629 * solib-target.c (solib_target_relocate_section_addresses):
3630 Update.
3631 * symfile-debug.c (debug_sym_segments): Return a
3632 symfile_segment_data_up.
3633
7f204339
RO
36342020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3635
e52a0f1b
RO
3636 PR build/25981
3637 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3638 Hardcode register numbers.
3639
7f204339
RO
3640 PR build/25981
3641 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3642 procfs_find_LDT_entry): Remove.
3643 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3644 procfs_find_LDT_entry): Remove.
3645 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3646 Remove.
3647
7f32a4d5
PA
36482020-05-17 Pedro Alves <palves@redhat.com>
3649 Andrew Burgess <andrew.burgess@embecosm.com>
3650 Keno Fischer <keno@juliacomputing.com>
3651
3652 PR gdb/25741
3653 * breakpoint.c (build_target_condition_list): Update comments.
3654 (build_target_command_list): Update comments and skip matching
3655 locations.
3656 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3657 a separate function. Simplify "set breakpoint auto-hw off"
3658 handling.
3659 (insert_breakpoints): Update comment.
3660 (tracepoint_locations_match): New parameter. For breakpoints,
3661 compare location types too, if the caller wants to.
3662 (handle_automatic_hardware_breakpoints): New functions.
3663 (bp_location_is_less_than): Also sort by location type and
3664 hardware breakpoint length.
3665 (update_global_location_list): Handle "set breakpoint auto-hw on"
3666 here.
3667 (update_breakpoint_locations): Ask breakpoint_locations_match to
3668 ignore location types.
3669
7d93a1e0
SM
36702020-05-16 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3673 type::name instead.
3674
d0e39ea2
SM
36752020-05-16 Simon Marchi <simon.marchi@efficios.com>
3676
3677 * gdbtypes.h (struct type) <name, set_name>: New methods.
3678 (TYPE_CODE): Use type::name. Change all call sites used to set
3679 the name to use type::set_name instead.
3680
2dab0c7b
TT
36812020-05-16 Tom Tromey <tom@tromey.com>
3682
3683 * top.c (quit_force): Update.
3684 * infrun.c (handle_no_resumed): Update.
3685 * top.h (all_uis): New function.
3686 (ALL_UIS): Remove.
3687
59f7bd8d
SM
36882020-05-16 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3691
9bf058f0
PA
36922020-05-16 Pedro Alves <palves@redhat.com>
3693
3694 * ia64-linux-nat.c
3695 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3696 Declare method.
3697 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3698
8f86ae1a
SM
36992020-05-15 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3702 (sparc64_adi_info): Likewise.
3703
d6bc0792
TT
37042020-05-15 Tom Tromey <tom@tromey.com>
3705
3706 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3707 block_objfile.
3708 (lookup_objfile_from_block): Remove.
3709 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3710 (lookup_global_symbol): Use block_objfile.
3711 * symtab.h (lookup_objfile_from_block): Don't declare.
3712 * printcmd.c (clear_dangling_display_expressions): Use
3713 block_objfile.
3714 * parse.c (operator_check_standard): Use block_objfile.
3715
8c14c3a3
TT
37162020-05-15 Tom Tromey <tom@tromey.com>
3717
3718 * language.c (language_alloc_type_symbol): Set
3719 SYMBOL_SECTION.
3720 * symtab.c (initialize_objfile_symbol): Remove.
3721 (allocate_symbol): Remove.
3722 (allocate_template_symbol): Remove.
3723 * dwarf2/read.c (fixup_go_packaging): Use "new".
3724 (new_symbol): Use "new".
3725 (read_variable): Don't call initialize_objfile_symbol. Use
3726 "new".
3727 (read_func_scope): Use "new".
3728 * xcoffread.c (process_xcoff_symbol): Don't call
3729 initialize_objfile_symbol.
3730 (SYMBOL_DUP): Remove.
3731 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3732 "new".
3733 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3734 (allocate_template_symbol): Don't declare.
3735 (struct symbol): Add copy constructor. Change defaults.
3736 * jit.c (finalize_symtab): Use "new".
3737 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3738 Use "new".
3739 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3740 (common_block_end): Use "new".
3741 * mdebugread.c (parse_symbol): Use "new".
3742 (new_symbol): Likewise.
3743
5b4a1a8d
PW
37442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745
3746 * NEWS: Mention changes to help and apropos.
3747
57b4f16e
PW
37482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3749
3750 * command.h (enum command_class): Improve comments, document
3751 that class_alias is for user-defined aliases, give the class
3752 name for each class, remove unused class_xdb.
3753 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3754 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3755 by a precise class.
3756 * infcmd.c (_initialize_infcmd): Likewise.
3757 * reverse.c (_initialize_reverse): Likewise.
3758 * stack.c (_initialize_stack): Likewise.
3759 * symfile.c (_initialize_symfile): Likewise.
3760 * tracepoint.c (_initialize_tracepoint): Likewise.
3761
7c05caf7
PW
37622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3763
3764 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3765 when their aliased command is traversed.
3766 (help_cmd): Add fput_command_names_styled call to
3767 output command name and aliases when command has an alias.
3768
3b3aaacb
PW
37692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3770
3771 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3772 * cli/cli-decode.c (help_cmd_list): Declare as static,
3773 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3774 a command together with the command.
3775 (fput_command_name_styled, fput_command_names_styled): New functions.
3776 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3777 fput_command_name_styled.
3778 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3779 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3780
7aa1b46f
PW
37812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3782
3783 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3784 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3785 * command.h (cmd_show_list): Likewise.
3786 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3787 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3788
89bcba74
PW
37892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3790
3791 * unittests/command-def-selftests.c (traverse_command_structure):
3792 Verify all commands of a list have the same prefix command and
3793 that only the top cmdlist commands have a null prefix.
3794
3f4d92eb
PW
37952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3796
3797 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3798 as prefix, not one of its aliases.
3799 (set_cmd_prefix): Remove.
3800 (do_add_cmd): Centralize the setting of the prefix of a command, when
3801 command is defined after its full chain of prefix commands.
3802 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3803 (add_setshow_cmd_full): Likewise.
3804 (update_prefix_field_of_prefixed_commands): New function.
3805 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3806 update_prefix_field_of_prefixed_commands.
3807 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3808 addresses of remote_set_cmdlist and remote_show_cmdlist given
3809 as argument, not the address of an argument.
3810 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3811 * gdb/remote.c (_initialize_remote): Likewise.
3812
0605465f
PW
38132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3814
3815 * cli/cli-cmds.c (alias_command): Check for an existing alias
3816 using lookup_cmd_composition, as valid_command_p is too strict
3817 and forbids aliases that are the prefix of an existing alias
3818 or command.
3819 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3820 command is properly recognised as a valid command.
3821
58e6ac70
PW
38222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3823
3824 * unittests/help-doc-selftests.c: Rename to
3825 unittests/command-def-selftests.c
3826 * unittests/command-def-selftests.c (help_doc_tests): Update some
3827 comments.
3828 (command_structure_tests, traverse_command_structure): New namespace
3829 and function.
3830 (command_structure_invariants_tests): New function.
3831 (_initialize_command_def_selftests) Renamed from
3832 _initialize_help_doc_selftests, register command_structure_invariants
3833 selftest.
3834
a7b9ceb8
PW
38352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3836
3837 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3838 an alias of 'show'.
3839
b2188a06
JB
38402020-05-15 Joel Brobecker <brobecker@adacore.com>
3841
3842 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3843 ada_is_fixed_point_type. Update all callers.
3844 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3845 all callers.
3846 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3847 Update all callers.
3848 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3849 print_fixed_point_type. Update all callers.
3850 * ada-valprint.c (ada_value_print_num): Replace call to
3851 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3852
a51951c2
KB
38532020-05-14 Kevin Buettner <kevinb@redhat.com>
3854
3855 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3856 processors.
3857 (cpu_supports_bts): Add CV_AMD case.
3858
29d6859f
LM
38592020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3860 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * infrun.c (stop_all_threads): Collect multiple wait events at
3863 each pass.
3864
78134374
SM
38652020-05-14 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3868 type::code instead.
3869
67607e24
SM
38702020-05-14 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * gdbtypes.h (struct type) <code, set_code>: New methods.
3873 (TYPE_CODE): Use type::code. Change all call sites used to set
3874 the code to use type::set_code instead.
3875
a05575d3
TBA
38762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877 Tom de Vries <tdevries@suse.de>
3878 Pedro Alves <palves@redhat.com>
3879
3880 PR threads/25478
3881 * infrun.c (stop_all_threads): Do NOT ignore
3882 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3883 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3884 received.
3885 (handle_no_resumed): Remove code handling a live inferior with no
3886 threads.
3887 * remote.c (has_single_non_exited_thread): New.
3888 (remote_target::update_thread_list): Do not delete a thread if is
3889 the last thread of the process.
3890 * thread.c (thread_select): Call delete_exited_threads instead of
3891 prune_threads.
3892
6ad82919
TBA
38932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3894
3895 * infrun.c (stop_all_threads): Enable/disable thread events of all
3896 targets. Move a debug message denoting the end of the function
3897 into the SCOPED_EXIT block.
3898
d890404b
TBA
38992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3900
3901 * process-stratum-target.h: Include <set>.
3902 (all_non_exited_process_targets, switch_to_target_no_thread): New
3903 function declarations.
3904 * process-stratum-target.c (all_non_exited_process_targets)
3905 (switch_to_target_no_thread): New function implementations.
3906
293b3ebc
TBA
39072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3908
3909 * infrun.c (handle_inferior_event): Extract out a piece of code
3910 into...
3911 (mark_non_executing_threads): ...this new function.
3912
7ca9b62a
TBA
39132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3914
3915 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3916 use.
3917
fc75c28b
TBA
39182020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3919
3920 * regcache.c (regcache_read_pc_protected): New function
3921 implementation that returns 0 if the PC cannot read via
3922 'regcache_read_pc'.
3923 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3924 instead of 'regcache_read_pc'.
3925 (keep_going_pass_signal): Ditto.
3926
a89febbd
TT
39272020-05-13 Tom Tromey <tromey@adacore.com>
3928
3929 * ada-lang.c (align_value): Remove.
3930 (ada_template_to_fixed_record_type_1): Use align_up.
3931
f7e23710
TBA
39322020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3933
3934 * async-event.c: Update the copyright year.
3935 * async-event.h: Update the copyright year.
3936
02ff80c2
SM
39372020-05-12 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * objfiles.h (is_addr_in_objfile,
3940 shared_objfile_contains_address_p): Return bool.
3941 * objfile.c (is_addr_in_objfile,
3942 shared_objfile_contains_address_p): Return bool.
3943
4fd6c7e8
TT
39442020-05-11 Tom Tromey <tromey@adacore.com>
3945
3946 * cli/cli-cmds.c (info_command): Restore.
3947 (_initialize_cli_cmds): Use add_prefix_command for "info".
3948 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3949
5eb68a39
TT
39502020-05-11 Tom Tromey <tromey@adacore.com>
3951
3952 * ada-lang.c (ada_value_primitive_field): Now public.
3953 * ada-lang.h (ada_value_primitive_field): Declare.
3954 * ada-valprint.c (print_field_values): Use
3955 ada_value_primitive_field for wrapper fields.
3956
7666722f
TV
39572020-05-11 Tom de Vries <tdevries@suse.de>
3958
3959 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3960 MODULE_DOMAIN.
3961
3ee6bb11
TV
39622020-05-11 Tom de Vries <tdevries@suse.de>
3963
3964 PR symtab/25941
3965 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3966 with length 0, if not gdb-produced.
3967 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3968
43434996
TV
39692020-05-09 Tom de Vries <tdevries@suse.de>
3970
3971 PR gdb/25955
3972 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3973 calculation.
3974
2f78cffc
TT
39752020-05-09 Tom Tromey <tom@tromey.com>
3976
3977 * top.c (server_command): Now bool.
3978 * top.h (server_command): Now bool.
3979
4f7bc5ed
TT
39802020-05-08 Tom Tromey <tromey@adacore.com>
3981
3982 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3983 already being processed.
3984
8be4b118
TT
39852020-05-08 Tom Tromey <tom@tromey.com>
3986
3987 * printcmd.c (struct display) <next>: Remove.
3988 <display>: New constructor.
3989 <exp_string>: Now a std::string.
3990 <enabled_p>: Now a bool.
3991 (display_number): Move definition earlier.
3992 (displays): Rename from display_chain. Now a std::vector.
3993 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3994 (display_command): Update.
3995 (do_one_display, disable_display)
3996 (enable_disable_display_command, do_enable_disable_display):
3997 Update.
3998 (free_display): Remove.
3999 (clear_displays): Rewrite.
4000 (delete_display): Update.
4001 (map_display_numbers): Use function_view. Remove "data"
4002 parameter. Update.
4003 (do_delete_display): Remove.
4004 (undisplay_command): Update.
4005 (do_one_display, do_displays, disable_display)
4006 (info_display_command): Update.
4007 (do_enable_disable_display): Remove.
4008 (enable_disable_display_command)
4009 (clear_dangling_display_expressions): Update.
4010
94c93c35
TT
40112020-05-08 Tom Tromey <tom@tromey.com>
4012
4013 * symtab.c (set_symbol_cache_size)
4014 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4015 (maintenance_print_symbol_cache_statistics): Update.
4016 * symmisc.c (print_symbol_bcache_statistics)
4017 (print_objfile_statistics, maintenance_print_objfiles)
4018 (maintenance_info_symtabs, maintenance_check_symtabs)
4019 (maintenance_expand_symtabs, maintenance_info_line_tables):
4020 Update.
4021 * symfile-debug.c (set_debug_symfile): Update.
4022 * source.c (forget_cached_source_info): Update.
4023 * python/python.c (gdbpy_progspaces): Update.
4024 * psymtab.c (maintenance_info_psymtabs): Update.
4025 * probe.c (parse_probes): Update.
4026 * linespec.c (iterate_over_all_matching_symtabs)
4027 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4028 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4029 * exec.c (exec_target::close): Update.
4030 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4031 * breakpoint.c (print_one_breakpoint_location)
4032 (create_longjmp_master_breakpoint)
4033 (create_std_terminate_master_breakpoint): Update.
4034 * progspace.c (program_spaces): Now a std::vector.
4035 (maybe_new_address_space): Update.
4036 (add_program_space): Remove.
4037 (program_space::program_space): Update.
4038 (remove_program_space): Update.
4039 (number_of_program_spaces): Remove.
4040 (print_program_space, update_address_spaces): Update.
4041 * progspace.h (program_spaces): Change type.
4042 (ALL_PSPACES): Remove.
4043 (number_of_program_spaces): Don't declare.
4044 (struct program_space) <next>: Remove.
4045
a1fd1ac9
TT
40462020-05-08 Tom Tromey <tom@tromey.com>
4047
4048 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4049 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4050 (enable_break): Update.
4051 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4052 (frv_fdpic_find_canonical_descriptor): Update.
4053 (frv_fetch_objfile_link_map): Update.
4054 * progspace.c (program_space::free_all_objfiles): Update.
4055 (program_space::solibs): New method.
4056 * progspace.h (struct program_space) <solibs>: New method.
4057 * solist.h (master_so_list): Don't declare.
4058 (ALL_SO_LIBS): Remove.
4059 * solib.h (so_list_head): Remove.
4060 (update_solib_list): Update comment.
4061 * solib.c (master_so_list): Remove.
4062 (solib_used, update_solib_list, solib_add)
4063 (info_sharedlibrary_command, clear_solib)
4064 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4065
38eae084
TT
40662020-05-08 Tom Tromey <tom@tromey.com>
4067
4068 * extension.c (extension_languages): Now a std::array.
4069 (ALL_EXTENSION_LANGUAGES): Remove.
4070 (get_ext_lang_defn, get_ext_lang_of_file)
4071 (eval_ext_lang_from_control_command): Update.
4072 (finish_ext_lang_initialization)
4073 (auto_load_ext_lang_scripts_for_objfile)
4074 (ext_lang_type_printers::ext_lang_type_printers)
4075 (apply_ext_lang_type_printers)
4076 (ext_lang_type_printers::~ext_lang_type_printers)
4077 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4078 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4079 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4080 (get_matching_xmethod_workers, ext_lang_colorize)
4081 (ext_lang_before_prompt): Update.
4082 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4083
596dc4ad
TT
40842020-05-08 Tom Tromey <tom@tromey.com>
4085
4086 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4087 overload.
4088 <swap_string, m_string>: Remove.
4089 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4090 Update.
4091 * stabsread.c (define_symbol, read_type): Update.
4092 * linespec.c (find_linespec_symbols): Update.
4093 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4094 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4095 * dbxread.c (read_dbx_symtab): Update.
4096 * cp-support.h (cp_canonicalize_string_full)
4097 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4098 Return unique_xmalloc_ptr.
4099 * cp-support.c (inspect_type): Update.
4100 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4101 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4102 Likewise.
4103 * c-typeprint.c (print_name_maybe_canonical): Update.
4104 * break-catch-throw.c (check_status_exception_catchpoint):
4105 Update.
4106
bf4cb9be
TV
41072020-05-08 Tom de Vries <tdevries@suse.de>
4108
4109 * infrun.c (follow_fork): Copy current_line and current_symtab to
4110 child thread.
4111
a1b68f28
SM
41122020-05-07 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * async-event.c (struct async_signal_handler, struct
4115 async_event_handler): Reformat, remove typedef.
4116
98d48915
SM
41172020-05-07 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4120 access thistype->main_type->dyn_prop_list directly.
4121
7aa91313
SM
41222020-05-07 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4125 (remove_dyn_prop): Remove. Update all users to use
4126 type::remove_dyn_prop.
4127 * gdbtypes.c (remove_dyn_prop): Rename to...
4128 (type::remove_dyn_prop): ... this.
4129
5c54719c
SM
41302020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4131
4132 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4133 (add_dyn_prop): Remove. Update all users to use
4134 type::add_dyn_prop.
4135 * gdbtypes.c (add_dyn_prop): Rename to...
4136 (type::add_dyn_prop): ... this.
4137
24e99c6c
SM
41382020-05-07 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4141 (get_dyn_prop): Remove. Update all users to use
4142 type::dyn_prop.
4143 * gdbtypes.c (get_dyn_prop): Rename to...
4144 (type::dyn_prop): ... this.
4145
0d4bf016
SM
41462020-05-06 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4149
ac4a4f1c
SM
41502020-05-06 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4153 instruction, skip it if it's there.
4154
a3bbacc1
SM
41552020-05-05 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4158
c3236f84
SM
41592020-05-04 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4162 * gdbtypes.c (recursive_dump_type): Remove use of
4163 TYPE_INCOMPLETE.
4164
3b6acaee
TT
41652020-05-03 Tom Tromey <tom@tromey.com>
4166
4167 * breakpoint.c (catch_command, tcatch_command): Remove.
4168 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4169 add_show_prefix_cmd.
4170 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4171 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4172 Remove.
4173 (add_internal_problem_command): Use add_basic_prefix_cmd,
4174 add_show_prefix_cmd.
4175 * mips-tdep.c (set_mipsfpu_command): Remove.
4176 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4177 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4178 (_initialize_index_cache): Use add_basic_prefix_cmd.
4179 * memattr.c (dummy_cmd): Remove.
4180 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4181 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4182 (_initialize_tui_win): Use add_basic_prefix_cmd,
4183 add_show_prefix_cmd.
4184 * cli/cli-logging.c (set_logging_command): Remove.
4185 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4186 add_show_prefix_cmd.
4187 (show_logging_command): Remove.
4188 * target.c (target_command): Remove.
4189 (add_target): Use add_basic_prefix_cmd.
4190
a51119cd
HD
41912020-05-02 Hannes Domani <ssbssa@yahoo.de>
4192
4193 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4194
652fc23a 41952020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4196
652fc23a
PW
4197 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4198 info_command.
4199
117539e6
KR
42002020-04-30 Kamil Rytarowski <n54@gmx.com>
4201
4202 * nbsd-nat.c (nbsd_enable_proc_events)
4203 (nbsd_nat_target::post_startup_inferior): Add.
4204 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4205 (nbsd_nat_target::update_thread_list): Rewrite.
4206 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4207 "PTRACE_LWP_CREATE".
4208 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4209
102e38eb 42102020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4211
102e38eb
PW
4212 * stack.c (_initialize_stack): Remove duplicated creation
4213 of "frame" command and "f" alias.
4214
ee9d1e5f
HD
42152020-04-30 Hannes Domani <ssbssa@yahoo.de>
4216
4217 PR gdb/18706
4218 * gdbtypes.c (check_typedef): Calculate size of array of
4219 stubbed type.
4220
627c7fb8
HD
42212020-04-30 Hannes Domani <ssbssa@yahoo.de>
4222
4223 PR gdb/15559
4224 * i386-tdep.c (i386_push_dummy_call): Call
4225 i386_thiscall_push_dummy_call.
4226 (i386_thiscall_push_dummy_call): New function.
4227 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4228 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4229 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4230
ffc2844e
SM
42312020-04-29 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * gdbarch.sh (do_read): Add shellcheck disable directive for
4234 warning SC2162.
4235
1207375d
SM
42362020-04-29 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4239 "referenced but not assigned" warning.
4240
9fdb2916
SM
42412020-04-29 Simon Marchi <simon.marchi@efficios.com>
4242
4243 * gdbarch.sh: Remove code that sets fallbackdefault.
4244
759cea5e
SM
42452020-04-29 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * gdbarch.sh: Use shell operators && and || instead of
4248 -a and -o.
4249
cb02ab24
SM
42502020-04-29 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * gdbarch.sh: Use $(...) instead of `...`.
4253
a6fc5ffc
SM
42542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * gdbarch.sh: Use double quotes around variables.
4257
8d113d13
SM
42582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * gdbarch.sh: Use %s with printf, instead of variables in the
4261 format string.
4262
ed6acedd
TT
42632020-04-29 Tom Tromey <tromey@adacore.com>
4264
4265 PR ada/25875:
4266 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4267 type fields here.
4268 (read_enumeration_type): Call
4269 update_enumeration_type_from_children later. Update comments.
4270 (process_enumeration_scope): Don't create type fields.
4271
b68b1b58
KR
42722020-04-29 Kamil Rytarowski <n54@gmx.com>
4273
4274 * nbsd-tdep.c: Include "xml-syscall.h".
4275 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4276
f94b2e03
KR
42772020-04-29 Kamil Rytarowski <n54@gmx.com>
4278
4279 * nbsd-nat.c: Include "sys/wait.h".
4280 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4281 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4282 (nbsd_nat_target::remove_exec_catchpoint)
4283 (nbsd_nat_target::set_syscall_catchpoint): Add.
4284 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4285 (nbsd_nat_target::insert_exec_catchpoint)
4286 (nbsd_nat_target::remove_exec_catchpoint)
4287 (nbsd_nat_target::set_syscall_catchpoint): Add.
4288 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4289 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4290 `nbsd_get_syscall_number'.
4291
fc49bc72
TT
42922020-04-29 Tom Tromey <tom@tromey.com>
4293
4294 * stack.c (print_block_frame_labels): Remove.
4295
d642b692
HD
42962020-04-29 Hannes Domani <ssbssa@yahoo.de>
4297
4298 PR gdb/17320
4299 * ada-valprint.c (val_print_packed_array_elements): Move array
4300 end bracket to new line.
4301 (ada_val_print_string): Remove extra spaces before first array
4302 element.
4303 * c-valprint.c (c_value_print_array): Likewise.
4304 * m2-valprint.c (m2_print_array_contents): Likewise.
4305 (m2_value_print_inner): Likewise.
4306 * p-valprint.c (pascal_value_print_inner): Likewise.
4307 * valprint.c (generic_val_print_array): Likewise.
4308 (value_print_array_elements): Move first array element and array
4309 end bracket to new line.
4310
ea90f227
TV
43112020-04-29 Tom de Vries <tdevries@suse.de>
4312
4313 PR symtab/25889
4314 * linespec.c (find_method): Fix ix calculation.
4315
4498ef4f
KR
43162020-04-28 Kamil Rytarowski <n54@gmx.com>
4317
4318 * syscalls/update-netbsd.sh: New file.
4319 * syscalls/netbsd.xml: Regenerate.
4320 * data-directory/Makefile.in: Register `netbsd.xml' in
4321 `SYSCALLS_FILES'.
4322
a55e30b5
SM
43232020-04-28 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * syscalls/update-freebsd.sh: Add double quotes.
4326
2b2fbab8
TT
43272020-04-28 Tom Tromey <tom@tromey.com>
4328
4329 * NEWS: Update.
4330 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4331 (cmdpy_init): Allow class_tui.
4332
a65189c9
TV
43332020-04-28 Mark Williams <mark@myosotissp.com>
4334
4335 PR gdb/24480
4336 * dwarf2read.c: Add missing assingments to list_in_scope when
4337 start_symtab was already called.
4338
1b95cdb7
SM
43392020-04-28 Simon Marchi <simon.marchi@efficios.com>
4340
4341 PR gdb/25881
4342 * dwarf2/read.c (offset_map_type): Use
4343 gdb:hash_enum<sect_offset> as hash function.
4344
15cd93d0
TV
43452020-04-28 Tom de Vries <tdevries@suse.de>
4346
4347 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4348 with DW_AT_signature.
4349
1eb39914
SM
43502020-04-27 Simon Marchi <simon.marchi@efficios.com>
4351
4352 * configure.ac: Remove check for fs_base/gs_base in
4353 user_regs_struct.
4354 * configure: Re-generate.
4355 * config.in: Re-generate.
4356 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4357 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4358 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4359
991a3e2e
LM
43602020-04-27 Luis Machado <luis.machado@linaro.org>
4361
4362 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4363 problematic inline frame unwinding situation.
4364 * frame.c (frame_id_computed_p): New function.
4365 * frame.h (frame_id_computed_p): New prototype.
4366
361ba0e8
TT
43672020-04-26 Tom Tromey <tom@tromey.com>
4368
4369 * command.h (enum command_class) <class_pseudo>: Remove.
4370
bc3609fd
PW
43712020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4372
4373 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4374 and whitespace.
4375
b9771db7
KR
43762020-04-25 Kamil Rytarowski <n54@gmx.com>
4377
ec16513e
SM
4378 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4379 `PT_GET_PROCESS_STATE' block.
b9771db7 4380
7151c1af
TT
43812020-04-24 Tom Tromey <tom@tromey.com>
4382
4383 * symtab.h (symbol_get_demangled_name): Don't declare.
4384 * symtab.c (symbol_get_demangled_name): Remove.
4385 (general_symbol_info::natural_name)
4386 (general_symbol_info::demangled_name): Update.
4387
906bb4c5
TT
43882020-04-24 Tom Tromey <tom@tromey.com>
4389
4390 PR rust/25025:
4391 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4392
bcfe6157
TT
43932020-04-24 Tom Tromey <tom@tromey.com>
4394
4395 PR symtab/12707:
4396 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4397 exists.
4398 (new_symbol): Likewise.
4399 * compile/compile-object-load.c (get_out_value_type): Use
4400 symbol_matches_search_name.
4401
f049a313
TT
44022020-04-24 Tom Tromey <tom@tromey.com>
4403
4404 * dwarf2/read.c (add_partial_symbol): Do not call
4405 compute_and_set_names.
4406
76e288d1
TT
44072020-04-24 Tom Tromey <tom@tromey.com>
4408
4409 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4410 overload.
4411
2467f4f6
TT
44122020-04-24 Tom Tromey <tom@tromey.com>
4413
4414 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4415 (add_psymbol_to_list): New overload. Make old overload call new
4416 one.
4417 * psympriv.h (add_psymbol_to_list): New overload.
4418
e61108c9
TT
44192020-04-24 Tom Tromey <tom@tromey.com>
4420
4421 * dwarf2/read.c (partial_die_info::read) <case
4422 DW_AT_linkage_name>: Use value_as_string.
4423 (dwarf2_string_attr): Use value_as_string.
4424 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4425 method.
4426 * dwarf2/attribute.c (attribute::value_as_string): New method.
4427
8c87a452
TT
44282020-04-24 Tom Tromey <tom@tromey.com>
4429
4430 * symtab.c (general_symbol_info::natural_name)
4431 (general_symbol_info::demangled_name): Check for language_rust.
4432
787de330
TT
44332020-04-24 Tom Tromey <tom@tromey.com>
4434
4435 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4436 (dwarf2_physname): ... from here.
4437 (partial_die_info::read): Add Rust "{" hack.
4438
ff985671
TT
44392020-04-24 Tom Tromey <tom@tromey.com>
4440
4441 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4442 method.
4443 (symbol_set_demangled_name): Don't declare.
4444 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4445 symbol_set_demangled_name.
4446 (general_symbol_info::set_language)
4447 (general_symbol_info::compute_and_set_names): Update.
4448 * minsyms.c (minimal_symbol_reader::install): Update.
4449 * dwarf2/read.c (new_symbol): Update.
4450
1acda803
TT
44512020-04-24 Tom Tromey <tromey@adacore.com>
4452
4453 PR python/23662:
4454 * python/py-type.c (convert_field): Handle
4455 FIELD_LOC_KIND_DWARF_BLOCK.
4456 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4457 (typy_get_dynamic): Nw function.
4458 (type_object_getset): Add "dynamic".
4459 * NEWS: Add entry.
4460
d656f129
TT
44612020-04-24 Tom Tromey <tromey@adacore.com>
4462
4463 * ada-typeprint.c (print_choices, print_variant_part)
4464 (print_record_field_types_dynamic): New functions.
4465 (print_record_field_types): Use print_record_field_types_dynamic.
4466
7d79de9a
TT
44672020-04-24 Tom Tromey <tromey@adacore.com>
4468
4469 * dwarf2/read.c (handle_data_member_location): New overload.
4470 (dwarf2_add_field): Use it.
4471 (decode_locdesc): Add "computed" parameter. Update comment.
4472 * gdbtypes.c (is_dynamic_type_internal): Also look for
4473 FIELD_LOC_KIND_DWARF_BLOCK.
4474 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4475 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4476 virtual base classes.
4477 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4478 FIELD_LOC_KIND_DWARF_BLOCK.
4479
f8e89861
TT
44802020-04-24 Tom Tromey <tromey@adacore.com>
4481
4482 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4483 * gdbtypes.c (is_dynamic_type_internal): Check
4484 TYPE_HAS_DYNAMIC_LENGTH.
4485 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4486 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4487 New macros.
4488 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4489 constant.
4490
9c6a1327
TT
44912020-04-24 Tom Tromey <tromey@adacore.com>
4492
4493 * dwarf2/read.c (struct variant_field): Rewrite.
4494 (struct variant_part_builder): New.
4495 (struct nextfield): Remove "variant" field. Add "offset".
4496 (struct field_info): Add "current_variant_part" and
4497 "variant_parts".
4498 (alloc_discriminant_info): Remove.
4499 (alloc_rust_variant): New function.
4500 (quirk_rust_enum): Update.
4501 (dwarf2_add_field): Set "offset" member. Don't handle
4502 DW_TAG_variant_part.
4503 (offset_map_type): New typedef.
4504 (convert_variant_range, create_one_variant)
4505 (create_one_variant_part, create_variant_parts)
4506 (add_variant_property): New functions.
4507 (dwarf2_attach_fields_to_type): Call add_variant_property.
4508 (read_structure_type): Don't handle DW_TAG_variant_part.
4509 (handle_variant_part, handle_variant): New functions.
4510 (handle_struct_member_die): Use them.
4511 (process_structure_scope): Don't handle variant parts.
4512 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4513 (struct discriminant_info): Remove.
4514 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4515 (struct main_type) <flag_discriminated_union>: Remove.
4516 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4517 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4518 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4519 Update.
4520 * valops.c (value_union_variant): Remove.
4521 * value.h (value_union_variant): Don't declare.
4522
b249d2c2
TT
45232020-04-24 Tom Tromey <tromey@adacore.com>
4524
4525 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4526 (ada_value_primitive_packed_val): Update.
4527 * ada-valprint.c (ada_value_print_1): Update.
4528 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4529 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4530 just an address. Use evaluate_for_locexpr_baton.
4531 (dwarf2_evaluate_property): Update.
4532 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4533 array_view.
4534 * findvar.c (default_read_var_value): Update.
4535 * gdbtypes.c (compute_variant_fields_inner)
4536 (resolve_dynamic_type_internal): Update.
4537 (resolve_dynamic_type): Change type of valaddr parameter.
4538 * gdbtypes.h (resolve_dynamic_type): Update.
4539 * valarith.c (value_subscripted_rvalue): Update.
4540 * value.c (value_from_contents_and_address): Update.
4541
61122aa9
TT
45422020-04-24 Tom Tromey <tromey@adacore.com>
4543
4544 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4545 "push_initial_value" parameter.
4546 (dwarf2_evaluate_property): Likewise.
4547 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4548
ef83a141
TT
45492020-04-24 Tom Tromey <tromey@adacore.com>
4550
4551 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4552 (variant::matches, compute_variant_fields_recurse)
4553 (compute_variant_fields_inner, compute_variant_fields): New
4554 functions.
4555 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4556 Use resolved_type after type is made.
4557 (operator==): Add new cases.
4558 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4559 (struct discriminant_range, struct variant, struct variant_part):
4560 New.
4561 (union dynamic_prop_data) <variant_parts, original_type>: New
4562 members.
4563 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4564 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4565 constants.
4566 * value.c (unpack_bits_as_long): Now public.
4567 * value.h (unpack_bits_as_long): Declare.
4568
675127ec
TT
45692020-04-24 Tom Tromey <tromey@adacore.com>
4570
4571 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4572 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4573
9852ceef
HD
45742020-04-24 Hannes Domani <ssbssa@yahoo.de>
4575
4576 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4577
7632c6ce
KR
45782020-04-24 Kamil Rytarowski <n54@gmx.com>
4579
4580 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4581 (remove_fork_catchpoint, post_startup_inferior)
4582 (post_attach): Move...
4583 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4584 (remove_fork_catchpoint, post_startup_inferior)
4585 (post_attach): ...here.
4586 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4587 (remove_fork_catchpoint, post_startup_inferior)
4588 (post_attach): Move...
4589 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4590 (remove_fork_catchpoint, post_startup_inferior)
4591 (post_attach): ...here.
4592
7be2bb4f
TT
45932020-04-24 Tom Tromey <tromey@adacore.com>
4594
4595 * nat/windows-nat.h (struct windows_thread_info)
4596 <pc_adjusted>: New member.
4597 * windows-nat.c (windows_fetch_one_register): Check
4598 pc_adjusted.
4599 (windows_nat_target::get_windows_debug_event)
4600 (windows_nat_target::wait): Set pc_adjusted.
4601
f80cb3b4
TV
46022020-04-24 Tom de Vries <tdevries@suse.de>
4603
4604 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4605 Run gdb-add-index inside temp dir.
4606
29514b87
TT
46072020-04-23 Tom Tromey <tromey@adacore.com>
4608
4609 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4610 in loop.
4611
5939967b
LM
46122020-04-23 Luis Machado <luis.machado@linaro.org>
4613
4614 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4615 get_frame_register instead of gdbarch_unwind_pc.
4616
70bc38f5
TV
46172020-04-23 Tom de Vries <tdevries@suse.de>
4618
4619 * symtab.c (lookup_global_symbol): Prefer def over decl.
4620
de82891c
TV
46212020-04-23 Tom de Vries <tdevries@suse.de>
4622
4623 PR symtab/25807
4624 * block.c (best_symbol, better_symbol): Promote to external.
4625 * block.h (best_symbol, better_symbol): Declare.
4626 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4627 decl.
4628
ecc6c606
TT
46292020-04-23 Tom Tromey <tromey@adacore.com>
4630
4631 PR ada/25837:
4632 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4633 "const char *", not a "const std::string &".
4634 <name_and_matcher::operator==>: Update.
4635 * unittests/lookup_name_info-selftests.c: Change type of
4636 "result".
4637
740480b8
TT
46382020-04-23 Tom Tromey <tom@tromey.com>
4639
4640 * inferior.h (iterate_over_inferiors): Don't declare.
4641 * inferior.c (iterate_over_inferiors): Remove.
4642 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4643 Remove.
4644 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4645 use iterate_over_inferiors.
4646 (darwin_resume_inferior_it)
4647 (struct resume_inferior_threads_param)
4648 (darwin_resume_inferior_threads_it): Remove.
4649 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4650
ae3ab1f0
TV
46512020-04-23 Tom de Vries <tdevries@suse.de>
4652
4653 * blockframe.c (find_pc_partial_function): Use
4654 find_pc_sect_compunit_symtab rather than
4655 objfile->sf->qf->find_pc_sect_compunit_symtab.
4656
317d2668
TV
46572020-04-22 Tom de Vries <tdevries@suse.de>
4658
4659 PR symtab/25764
4660 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4661 in psymtabs.
4662
eea9e357
TV
46632020-04-22 Tom de Vries <tdevries@suse.de>
4664
4665 PR symtab/25801
4666 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4667 symtabs.
4668
3d5afab3
TV
46692020-04-22 Tom de Vries <tdevries@suse.de>
4670
4671 PR symtab/25700
4672 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4673 CU if already created.
4674
d43b7a2d
TBA
46752020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4676
4677 * infrun.c (displaced_step_fixup): Switch to the event_thread
4678 before calling displaced_step_restore, not after.
4679
d89edf9b
MM
46802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4681
4682 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4683 its inferior is not recorded by us.
4684 (record_btrace_target_open): Replace call to
4685 all_non_exited_threads () with call to current_inferior
4686 ()->non_exited_threads ().
4687 (record_btrace_target::stop_recording): Likewise.
4688 (record_btrace_target::close): Likewise.
4689 (record_btrace_target::wait): Likewise.
4690 (record_btrace_target::record_stop_replaying): Likewise.
4691
5897fd49
MM
46922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4693
4694 * btrace.c (btrace_enable): Throw an error on double enables and
4695 when enabling recording fails.
4696 (btrace_disable): Throw an error if the thread is not recorded.
4697
1a476b6d
MM
46982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4699
4700 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4701 request if we do not have a thread_info.
4702
4778a5f8
TV
47032020-04-21 Tom de Vries <tdevries@suse.de>
4704
4705 PR gdb/25471
4706 * thread.c
4707 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4708 exception in get_frame_id.
4709
0fa7617d
TT
47102020-04-20 Tom Tromey <tromey@adacore.com>
4711
4712 * python/python.c (struct gdbpy_event): Mark move constructor as
4713 noexcept.
4714 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4715 constructor as noexcept.
4716 * completer.h (struct completion_result): Mark move constructor as
4717 noexcept.
4718 * completer.c (completion_result::completion_result): Use
4719 initialization style. Don't call reset_match_list.
4720
ad23bda0
MS
47212020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4722
4723 * MAINTAINERS (Write After Approval): Add myself.
4724
45e1f031
TT
47252020-04-18 Tom Tromey <tom@tromey.com>
4726
4727 * windows-tdep.c (init_w32_command_list)
4728 (w32_prefix_command_valid): Restore.
4729 (_initialize_windows_tdep): Call init_w32_command_list.
4730
08feed99
TT
47312020-04-18 Tom Tromey <tom@tromey.com>
4732
4733 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4734 * value.c (value_fn_field): Update.
4735 * valops.c (find_function_in_inferior)
4736 (value_allocate_space_in_inferior): Update.
4737 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4738 Update.
4739 * tui/tui-source.c (tui_source_window::set_contents): Update.
4740 * symtab.c (lookup_global_or_static_symbol)
4741 (find_function_start_sal_1, skip_prologue_sal)
4742 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4743 * symmisc.c (dump_msymbols, dump_symtab_1)
4744 (maintenance_print_one_line_table): Update.
4745 * symfile.c (init_entry_point_info, section_is_mapped)
4746 (list_overlays_command, simple_read_overlay_table)
4747 (simple_overlay_update_1): Update.
4748 * stap-probe.c (handle_stap_probe): Update.
4749 * stabsread.c (dbx_init_float_type, define_symbol)
4750 (read_one_struct_field, read_enum_type, read_range_type): Update.
4751 * source.c (info_line_command): Update.
4752 * python/python.c (gdbpy_source_objfile_script)
4753 (gdbpy_execute_objfile_script): Update.
4754 * python/py-type.c (save_objfile_types): Update.
4755 * python/py-objfile.c (py_free_objfile): Update.
4756 * python/py-inferior.c (python_new_objfile): Update.
4757 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4758 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4759 (maintenance_check_psymtabs): Update.
4760 * printcmd.c (info_address_command): Update.
4761 * objfiles.h (struct objfile) <arch>: New method, from
4762 get_objfile_arch.
4763 (get_objfile_arch): Don't declare.
4764 * objfiles.c (get_objfile_arch): Remove.
4765 (filter_overlapping_sections): Update.
4766 * minsyms.c (msymbol_is_function): Update.
4767 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4768 (output_nondebug_symbol): Update.
4769 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4770 (mdebug_expand_psymtab): Update.
4771 * machoread.c (macho_add_oso_symfile): Update.
4772 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4773 Update.
4774 * linux-fork.c (checkpoint_command): Update.
4775 * linespec.c (convert_linespec_to_sals): Update.
4776 * jit.c (finalize_symtab): Update.
4777 * infrun.c (insert_exception_resume_from_probe): Update.
4778 * ia64-tdep.c (ia64_find_unwind_table): Update.
4779 * hppa-tdep.c (internalize_unwinds): Update.
4780 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4781 Update.
4782 * gcore.c (call_target_sbrk): Update.
4783 * elfread.c (record_minimal_symbol, elf_symtab_read)
4784 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4785 (elf_gnu_ifunc_resolve_by_got): Update.
4786 * dwarf2/read.c (create_addrmap_from_index)
4787 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4788 (read_debug_names_from_section)
4789 (process_psymtab_comp_unit_reader, add_partial_symbol)
4790 (add_partial_subprogram, process_full_comp_unit)
4791 (read_file_scope, read_func_scope, read_lexical_block_scope)
4792 (read_call_site_scope, dwarf2_ranges_read)
4793 (dwarf2_record_block_ranges, dwarf2_add_field)
4794 (mark_common_block_symbol_computed, read_tag_pointer_type)
4795 (read_tag_string_type, dwarf2_init_float_type)
4796 (dwarf2_init_complex_target_type, read_base_type)
4797 (partial_die_info::read, partial_die_info::read)
4798 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4799 (dwarf2_fetch_die_loc_sect_off): Update.
4800 * dwarf2/loc.c (dwarf2_find_location_expression)
4801 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4802 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4803 (dwarf2_loc_desc_get_symbol_read_needs)
4804 (locexpr_describe_location_piece, locexpr_describe_location_1)
4805 (loclist_describe_location): Update.
4806 * dwarf2/index-write.c (write_debug_names): Update.
4807 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4808 * dtrace-probe.c (dtrace_process_dof): Update.
4809 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4810 (process_one_symbol): Update.
4811 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4812 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4813 (coff_read_enum_type): Update.
4814 * cli/cli-cmds.c (edit_command, list_command): Update.
4815 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4816 * breakpoint.c (create_overlay_event_breakpoint)
4817 (create_longjmp_master_breakpoint)
4818 (create_std_terminate_master_breakpoint)
4819 (create_exception_master_breakpoint, get_sal_arch): Update.
4820 * block.c (block_gdbarch): Update.
4821 * annotate.c (annotate_source_line): Update.
4822
0743fc83
TT
48232020-04-17 Tom Tromey <tromey@adacore.com>
4824
4825 * auto-load.c (show_auto_load_cmd): Remove.
4826 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4827 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4828 (maintenance_print_arc_command): Remove.
4829 * tui/tui-win.c (tui_command): Remove.
4830 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4831 * tui/tui-layout.c (tui_layout_command): Remove.
4832 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4833 * python/python.c (user_set_python, user_show_python): Remove.
4834 (_initialize_python): Use add_basic_prefix_cmd,
4835 add_show_prefix_cmd.
4836 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4837 (install_gdb_commands): Use add_basic_prefix_cmd,
4838 add_show_prefix_cmd.
4839 (info_guile_command): Remove.
4840 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4841 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4844 Remove do_set and do_show parameters.
4845 * cli/cli-style.c (set_style, show_style): Remove.
4846 (_initialize_cli_style): Use add_basic_prefix_cmd,
4847 add_show_prefix_cmd.
4848 (cli_style_option::add_setshow_commands): Remove do_set and
4849 do_show parameters.
4850 (cli_style_option::add_setshow_commands): Use
4851 add_basic_prefix_cmd, add_show_prefix_cmd.
4852 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4853 (set_style_name): Remove.
4854 * cli/cli-dump.c (dump_command, append_command): Remove.
4855 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4856 (tekhex_dump_command, binary_dump_command)
4857 (binary_append_command): Remove.
4858 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4859 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4860 (init_w32_command_list): Remove; move into ...
4861 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4862 * valprint.c (set_print, show_print, set_print_raw)
4863 (show_print_raw): Remove.
4864 (_initialize_valprint): Use add_basic_prefix_cmd,
4865 add_show_prefix_cmd.
4866 * typeprint.c (set_print_type, show_print_type): Remove.
4867 (_initialize_typeprint): Use add_basic_prefix_cmd,
4868 add_show_prefix_cmd.
4869 * record.c (set_record_command, show_record_command): Remove.
4870 (_initialize_record): Use add_basic_prefix_cmd,
4871 add_show_prefix_cmd.
4872 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4873 add_show_prefix_cmd.
4874 (info_command, show_command, set_debug, show_debug): Remove.
4875 * top.h (set_history, show_history): Don't declare.
4876 * top.c (set_history, show_history): Remove.
4877 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4878 (unset_tdesc_cmd): Remove.
4879 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4880 add_show_prefix_cmd.
4881 * symtab.c (info_module_command): Remove.
4882 (_initialize_symtab): Use add_basic_prefix_cmd.
4883 * symfile.c (overlay_command): Remove.
4884 (_initialize_symfile): Use add_basic_prefix_cmd.
4885 * sparc64-tdep.c (info_adi_command): Remove.
4886 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4887 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4888 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4889 add_show_prefix_cmd.
4890 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4891 (_initialize_serial): Use add_basic_prefix_cmd,
4892 add_show_prefix_cmd.
4893 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4894 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4895 add_show_prefix_cmd.
4896 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4897 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4898 add_show_prefix_cmd.
4899 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4900 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4901 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4902 add_show_prefix_cmd.
4903 * remote.c (remote_command, set_remote_cmd): Remove.
4904 (_initialize_remote): Use add_basic_prefix_cmd.
4905 * record-full.c (set_record_full_command)
4906 (show_record_full_command): Remove.
4907 (_initialize_record_full): Use add_basic_prefix_cmd,
4908 add_show_prefix_cmd.
4909 * record-btrace.c (cmd_set_record_btrace)
4910 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4911 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4912 (cmd_show_record_btrace_pt): Remove.
4913 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4914 add_show_prefix_cmd.
4915 * ravenscar-thread.c (set_ravenscar_command)
4916 (show_ravenscar_command): Remove.
4917 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4918 add_show_prefix_cmd.
4919 * mips-tdep.c (show_mips_command, set_mips_command)
4920 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4921 add_show_prefix_cmd.
4922 * maint.c (maintenance_command, maintenance_info_command)
4923 (maintenance_check_command, maintenance_print_command)
4924 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4925 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4926 add_show_prefix_cmd.
4927 (show_per_command_cmd): Remove.
4928 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4929 Remove.
4930 (maintenance_show_test_settings_cmd): Remove.
4931 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4932 add_show_prefix_cmd.
4933 * maint-test-options.c (maintenance_test_options_command):
4934 Remove.
4935 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4936 * macrocmd.c (macro_command): Remove
4937 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4938 * language.c (set_check, show_check): Remove.
4939 (_initialize_language): Use add_basic_prefix_cmd,
4940 add_show_prefix_cmd.
4941 * infcmd.c (unset_command): Remove.
4942 (_initialize_infcmd): Use add_basic_prefix_cmd.
4943 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4944 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4945 add_show_prefix_cmd.
4946 * go32-nat.c (go32_info_dos_command): Remove.
4947 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4948 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4949 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4950 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4951 (_initialize_frame): Use add_basic_prefix_cmd,
4952 add_show_prefix_cmd.
4953 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4954 (_initialize_dcache): Use add_basic_prefix_cmd,
4955 add_show_prefix_cmd.
4956 * cp-support.c (maint_cplus_command): Remove.
4957 (_initialize_cp_support): Use add_basic_prefix_cmd.
4958 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4959 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4960 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4961 add_basic_prefix_cmd, add_show_prefix_cmd.
4962 * breakpoint.c (save_command): Remove.
4963 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4964 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4965 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4966 add_show_prefix_cmd.
4967 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4968 (set_ada_command, show_ada_command): Remove.
4969 (_initialize_ada_language): Use add_basic_prefix_cmd,
4970 add_show_prefix_cmd.
4971 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4972
3557f442
KR
49732020-04-16 Kamil Rytarowski <n54@gmx.com>
4974
4975 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4976 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4977
16197208
SM
49782020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4981 warning messages.
4982
00ac85d3
SM
49832020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4986 import table is not at beginning of .idata section.
4987
381ce63f
PA
49882020-04-16 Pedro Alves <palves@redhat.com>
4989
4990 * inferior.c (delete_inferior): Use delete operator directly
4991 instead of delete_program_space.
4992 * progspace.c (add_program_space): New, factored out from
4993 program_space::program_space.
4994 (remove_program_space): New, factored out from
4995 delete_program_space.
4996 (program_space::program_space): Remove intro comment. Rewrite.
4997 (program_space::~program_space): Remove intro comment. Call
4998 remove_program_space.
4999 (delete_program_space): Delete.
5000 * progspace.h (program_space::program_space): Make explicit. Move
5001 intro comment here, adjusted.
5002 (program_space::~program_space): Move intro comment here,
5003 adjusted.
5004 (delete_program_space): Remove.
5005
a010605f
TT
50062020-04-16 Tom Tromey <tromey@adacore.com>
5007
5008 * windows-nat.c (windows_nat::handle_access_violation): New
5009 function.
5010 * nat/windows-nat.h (handle_access_violation): Declare.
5011 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5012 windows-nat.c. Call handle_access_violation.
5013
efba5c23
TV
50142020-04-16 Tom de Vries <tdevries@suse.de>
5015
5016 PR symtab/25791
5017 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5018 CUs without psymtab.
5019
97ed802d
KB
50202020-04-16 Kevin Buettner <kevinb@redhat.com>
5021
5022 * python/python.c (do_start_initialization): Don't call
5023 PyEval_InitThreads for Python 3.9 and beyond.
5024
c7d64809
KR
50252020-04-15 Kamil Rytarowski <n54@gmx.com>
5026
5027 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5028 thread functions.
5029 (obsd_nat_target::wait): Likewise.
5030
ce127a96
TT
50312020-04-15 Tom Tromey <tromey@adacore.com>
5032
5033 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5034 (DEBUG_EXCEPT): Use debug_printf.
5035
99f1bc6a
AB
50362020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * completer.c (class completion_tracker::completion_hash_entry)
5039 <hash_name>: New member function.
5040 (completion_tracker::discard_completions): New callback to hash a
5041 completion_hash_entry, pass this to htab_create_alloc.
5042
a0e9b532
JT
50432016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5044
5045 * windows-nat.c (windows_make_so): Warn rather than stopping with
5046 an error if realpath() fails.
5047
06ca5dd4
KR
50482020-04-14 Kamil Rytarowski <n54@gmx.com>
5049
5050 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5051 (nbsd_nat_target::info_proc): Add do_status.
5052
194d088f
TV
50532020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5054 Tom de Vries <tdevries@suse.de>
5055
5056 PR symtab/25718
5057 * psympriv.h (struct partial_symtab::read_symtab)
5058 (struct partial_symtab::expand_psymtab)
5059 (struct partial_symtab::read_dependencies): Update comments.
5060 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5061 read_symtab for includer.
5062 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5063 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5064 (struct dwarf2_include_psymtab::m_readin): Remove.
5065 (struct dwarf2_include_psymtab::includer): New member function.
5066 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5067
c1a66c06
TV
50682020-04-14 Tom de Vries <tdevries@suse.de>
5069
5070 PR symtab/25720
5071 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5072 with NULL symbol_matcher and lookup_name.
5073 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5074 and lookup_name.
5075 * dwarf2/read.c (dw2_expand_symtabs_matching)
5076 (dw2_debug_names_expand_symtabs_matching): Same.
5077 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5078 Make lookup_name a pointer. Update comment.
5079 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5080 lookup_name being a pointer.
5081 * symfile.c (expand_symtabs_matching): Same.
5082 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5083 * linespec.c (iterate_over_all_matching_symtabs): Same.
5084
400b5eca
TT
50852020-04-13 Tom Tromey <tom@tromey.com>
5086
5087 * run-on-main-thread.c: Update include.
5088 * unittests/main-thread-selftests.c: Update include.
5089 * tui/tui-win.c: Update include.
5090 * tui/tui-io.c: Update include.
5091 * tui/tui-interp.c: Update include.
5092 * tui/tui-hooks.c: Update include.
5093 * top.h: Update include.
5094 * top.c: Update include.
5095 * ser-base.c: Update include.
5096 * remote.c: Update include.
5097 * remote-notif.c: Update include.
5098 * remote-fileio.c: Update include.
5099 * record-full.c: Update include.
5100 * record-btrace.c: Update include.
5101 * python/python.c: Update include.
5102 * posix-hdep.c: Update include.
5103 * mingw-hdep.c: Update include.
5104 * mi/mi-main.c: Update include.
5105 * mi/mi-interp.c: Update include.
5106 * main.c: Update include.
5107 * linux-nat.c: Update include.
5108 * interps.c: Update include.
5109 * infrun.c: Update include.
5110 * inf-loop.c: Update include.
5111 * event-top.c: Update include.
5112 * event-loop.c: Move to ../gdbsupport/.
5113 * event-loop.h: Move to ../gdbsupport/.
5114 * async-event.h: Update include.
5115 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5116
93b54c8e
TT
51172020-04-13 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-win.c: Include async-event.h.
5120 * remote.c: Include async-event.h.
5121 * remote-notif.c: Include async-event.h.
5122 * record-full.c: Include async-event.h.
5123 * record-btrace.c: Include async-event.h.
5124 * infrun.c: Include async-event.h.
5125 * event-top.c: Include async-event.h.
5126 * event-loop.h: Move some declarations to async-event.h.
5127 * event-loop.c: Don't include ser-event.h or top.h. Move some
5128 code to async-event.c.
5129 * async-event.h: New file.
5130 * async-event.c: New file.
5131 * Makefile.in (COMMON_SFILES): Add async-event.c.
5132 (HFILES_NO_SRCDIR): Add async-event.h.
5133
c1cd3163
TT
51342020-04-13 Tom Tromey <tom@tromey.com>
5135
5136 * utils.c (flush_streams): New function.
5137 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5138
29f2bf4f
TT
51392020-04-13 Tom Tromey <tom@tromey.com>
5140
5141 * event-loop.c (handle_file_event): Use warning, not
5142 printf_unfiltered.
5143
98029d02
TT
51442020-04-13 Tom Tromey <tom@tromey.com>
5145
5146 * event-loop.c: Include <chrono>.
5147
06cc9596
TT
51482020-04-13 Tom Tromey <tom@tromey.com>
5149
5150 * gdb_select.h: Move to ../gdbsupport/.
5151 * event-loop.c: Update include path.
5152 * top.c: Update include path.
5153 * ser-base.c: Update include path.
5154 * ui-file.c: Update include path.
5155 * ser-tcp.c: Update include path.
5156 * guile/scm-ports.c: Update include path.
5157 * posix-hdep.c: Update include path.
5158 * ser-unix.c: Update include path.
5159 * gdb_usleep.c: Update include path.
5160 * mingw-hdep.c: Update include path.
5161 * inflow.c: Update include path.
5162 * infrun.c: Update include path.
5163 * event-top.c: Update include path.
5164
8ae8e197
TT
51652020-04-13 Tom Tromey <tom@tromey.com>
5166
5167 * configure: Rebuild.
5168 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5169
58cf28e8
TT
51702020-04-13 Tom Tromey <tom@tromey.com>
5171
5172 * event-loop.h (start_event_loop): Don't declare.
5173 * event-loop.c (start_event_loop): Move...
5174 * main.c (start_event_loop): ...here. Now static.
5175
b7f999ae
SDJ
51762020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5177
5178 * MAINTAINERS: Update my email address.
5179
1085dfd4
KR
51802020-04-12 Kamil Rytarowski <n54@gmx.com>
5181
5182 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5183 IP_ALL.
5184
49d1d1f5
KR
51852020-04-12 Kamil Rytarowski <n54@gmx.com>
5186
5187 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5188 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5189
b4848d2a
KR
51902020-04-12 Kamil Rytarowski <n54@gmx.com>
5191
5192 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5193 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5194
51c133d5
KR
51952020-04-12 Kamil Rytarowski <n54@gmx.com>
5196
5197 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5198
54b8cbd0
KR
51992020-04-11 Kamil Rytarowski <n54@gmx.com>
5200
5201 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5202 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5203 (nbsd_nat_target::info_proc): New functions.
5204 * nbsd-nat.c (kinfo_get_vmmap): New function.
5205 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5206 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5207 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5208 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5209 functions.
5210 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5211 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5212 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5213 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5214 (KINFO_VME_FLAG_GROWS_DOWN): New.
5215
cf83625d
AS
52162020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5217
5218 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5219 bit shift.
5220
0c4311ab
TT
52212020-04-10 Tom Tromey <tromey@adacore.com>
5222
5223 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5224
3e65b3e9
TT
52252020-04-10 Tom Tromey <tromey@adacore.com>
5226
5227 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5228 separate debug files.
5229
13302e95
HD
52302020-04-10 Hannes Domani <ssbssa@yahoo.de>
5231
5232 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5233 Move to...
5234 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5235 ... here.
5236 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5237 Check for STATUS_WX86_BREAKPOINT.
5238 (windows_nat_target::wait): Same.
5239
bdfc1e8a
TV
52402020-04-10 Tom de Vries <tdevries@suse.de>
5241
5242 PR cli/25808
5243 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5244
f4460aec
SM
52452020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5246
5247 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5248 (Write After Approval): Remove Tom de Vries.
5249
a25198bb
BE
52502020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5251
5252 revert partially:
5253 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5254
aac66a4c
SM
5255 * buildsym.c (record_line): Fix undefined behavior and preserve
5256 lines at eof.
a25198bb 5257
206c98a6
KR
52582020-04-09 Kamil Rytarowski <n54@gmx.com>
5259
5260 * auxv.h (svr4_auxv_parse): New.
5261 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5262 and generic_auxv_parse.
5263 (svr4_auxv_parse): Add.
5264 * obsd-tdep.c: Include "auxv.h".
5265 (obsd_auxv_parse): Remove.
5266 (obsd_init_abi): Remove comment.
5267 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5268 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5269 * nbsd-tdep.c: Include "auxv.h".
5270 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5271
71fbdbaf
TT
52722020-04-08 Tom Tromey <tromey@adacore.com>
5273
5274 * nat/windows-nat.h (last_wait_event): Don't declare.
5275 (wait_for_debug_event): Update comment.
5276 * nat/windows-nat.c (last_wait_event): Now static.
5277
2c1d95e8
TT
52782020-04-08 Tom Tromey <tromey@adacore.com>
5279
5280 * windows-nat.c (wait_for_debug_event): Move to
5281 nat/windows-nat.c.
5282 * nat/windows-nat.h (wait_for_debug_event): Declare.
5283 * nat/windows-nat.c (wait_for_debug_event): Move from
5284 windows-nat.c. No longer static.
5285
d2977bc4
TT
52862020-04-08 Tom Tromey <tromey@adacore.com>
5287
5288 * windows-nat.c (get_windows_debug_event): Use
5289 fetch_pending_stop.
5290 * nat/windows-nat.h (fetch_pending_stop): Declare.
5291 * nat/windows-nat.c (fetch_pending_stop): New function.
5292
e758e19c
TT
52932020-04-08 Tom Tromey <tromey@adacore.com>
5294
5295 * windows-nat.c (windows_continue): Use matching_pending_stop and
5296 continue_last_debug_event.
5297 * nat/windows-nat.h (matching_pending_stop)
5298 (continue_last_debug_event): Declare.
5299 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5300 (matching_pending_stop, continue_last_debug_event): New
5301 functions.
5302
8d30e395
TT
53032020-04-08 Tom Tromey <tromey@adacore.com>
5304
5305 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5306 (handle_exception_result): Move to nat/windows-nat.h.
5307 (DEBUG_EXCEPTION_SIMPLE): Remove.
5308 (windows_nat::handle_ms_vc_exception): New function.
5309 (handle_exception): Move to nat/windows-nat.c.
5310 (get_windows_debug_event): Update.
5311 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5312 nat/windows-nat.c.
5313 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5314 (handle_exception_result): Move from windows-nat.c.
5315 (handle_exception): Declare.
5316 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5317 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5318 windows-nat.c.
5319
29de418d
TT
53202020-04-08 Tom Tromey <tromey@adacore.com>
5321
5322 * windows-nat.c (exception_count, event_count): Remove.
5323 (handle_exception, get_windows_debug_event)
5324 (do_initial_windows_stuff): Update.
5325
a816ba18
TT
53262020-04-08 Tom Tromey <tromey@adacore.com>
5327
5328 * windows-nat.c (windows_nat::handle_load_dll)
5329 (windows_nat::handle_unload_dll): Rename. No longer static.
5330 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5331 Declare.
5332
a00caa12
TT
53332020-04-08 Tom Tromey <tromey@adacore.com>
5334
5335 * complaints.h (stop_whining): Declare at top-level.
5336 (complaint): Don't declare stop_whining.
5337
d41b524f
TT
53382020-04-08 Tom Tromey <tromey@adacore.com>
5339
5340 * windows-nat.c (windows_nat::handle_output_debug_string):
5341 Rename. No longer static.
5342 * nat/windows-nat.h (handle_output_debug_string): Declare.
5343
3c76026d
TT
53442020-04-08 Tom Tromey <tromey@adacore.com>
5345
5346 * windows-nat.c (current_process_handle, current_process_id)
5347 (main_thread_id, last_sig, current_event, last_wait_event)
5348 (current_windows_thread, desired_stop_thread_id, pending_stops)
5349 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5350 (display_selectors, fake_create_process)
5351 (get_windows_debug_event): Update.
5352 * nat/windows-nat.h (current_process_handle, current_process_id)
5353 (main_thread_id, last_sig, current_event, last_wait_event)
5354 (current_windows_thread, desired_stop_thread_id, pending_stops)
5355 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5356 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
5360
9d8679cc
TT
53612020-04-08 Tom Tromey <tromey@adacore.com>
5362
5363 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5364 (handle_load_dll): Update.
5365 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5366
28688adf
TT
53672020-04-08 Tom Tromey <tromey@adacore.com>
5368
5369 * windows-nat.c (enum thread_disposition_type): Move to
5370 nat/windows-nat.h.
5371 (windows_nat::thread_rec): Rename from thread_rec. No longer
5372 static.
5373 (windows_add_thread, windows_nat_target::fetch_registers)
5374 (windows_nat_target::store_registers, handle_exception)
5375 (windows_nat_target::resume, get_windows_debug_event)
5376 (windows_nat_target::get_tib_address)
5377 (windows_nat_target::thread_name)
5378 (windows_nat_target::thread_alive): Update.
5379 * nat/windows-nat.h (enum thread_disposition_type): Move from
5380 windows-nat.c.
5381 (thread_rec): Declare.
5382
4834dad0
TT
53832020-04-08 Tom Tromey <tromey@adacore.com>
5384
5385 * windows-nat.c: Add "using namespace".
5386 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5387 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5388
65bafd5b
TT
53892020-04-08 Tom Tromey <tromey@adacore.com>
5390
5391 * nat/windows-nat.h (struct windows_thread_info): Declare
5392 destructor.
5393 * nat/windows-nat.c (~windows_thread_info): New.
5394
0a4afda3
TT
53952020-04-08 Tom Tromey <tromey@adacore.com>
5396
5397 PR gdb/22992
5398 * windows-nat.c (current_event): Update comment.
5399 (last_wait_event, desired_stop_thread_id): New globals.
5400 (struct pending_stop): New.
5401 (pending_stops): New global.
5402 (windows_nat_target) <stopped_by_sw_breakpoint>
5403 <supports_stopped_by_sw_breakpoint>: New methods.
5404 (windows_fetch_one_register): Add assertions. Adjust PC.
5405 (windows_continue): Handle pending stops. Suspend other threads
5406 when stepping. Use last_wait_event
5407 (wait_for_debug_event): New function.
5408 (get_windows_debug_event): Use wait_for_debug_event. Handle
5409 pending stops. Queue spurious stops.
5410 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5411 (windows_nat_target::kill): Use wait_for_debug_event.
5412 * nat/windows-nat.h (struct windows_thread_info)
5413 <stopped_at_software_breakpoint>: New field.
5414 * nat/windows-nat.c (windows_thread_info::resume): Clear
5415 stopped_at_software_breakpoint.
5416
8e61ebec
TT
54172020-04-08 Tom Tromey <tromey@adacore.com>
5418
5419 * windows-nat.c (enum thread_disposition_type): New.
5420 (thread_rec): Replace "get_context" parameter with "disposition";
5421 change type.
5422 (windows_add_thread, windows_nat_target::fetch_registers)
5423 (windows_nat_target::store_registers, handle_exception)
5424 (windows_nat_target::resume, get_windows_debug_event)
5425 (windows_nat_target::get_tib_address)
5426 (windows_nat_target::thread_name)
5427 (windows_nat_target::thread_alive): Update.
5428
98a03287
TT
54292020-04-08 Tom Tromey <tromey@adacore.com>
5430
5431 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5432 (windows_continue): Use windows_continue::resume.
5433 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5434 resume>: Declare new methods.
5435 * nat/windows-nat.c: New file.
5436 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5437
7c7411bc
TT
54382020-04-08 Tom Tromey <tromey@adacore.com>
5439
5440 * windows-nat.c (windows_add_thread, windows_delete_thread)
5441 (windows_nat_target::fetch_registers)
5442 (windows_nat_target::store_registers, fake_create_process)
5443 (windows_nat_target::resume, windows_nat_target::resume)
5444 (get_windows_debug_event, windows_nat_target::wait)
5445 (windows_nat_target::pid_to_str)
5446 (windows_nat_target::get_tib_address)
5447 (windows_nat_target::get_ada_task_ptid)
5448 (windows_nat_target::thread_name)
5449 (windows_nat_target::thread_alive): Use lwp, not tid.
5450
2950fdf7
TT
54512020-04-08 Tom Tromey <tromey@adacore.com>
5452
5453 * windows-nat.c (handle_exception)
5454 (windows_nat_target::thread_name): Update.
5455 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5456 <name>: Now unique_xmalloc_ptr.
5457
62fe396b
TT
54582020-04-08 Tom Tromey <tromey@adacore.com>
5459
5460 * windows-nat.c (thread_rec)
5461 (windows_nat_target::fetch_registers): Update.
5462 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5463 Update comment.
5464 <debug_registers_changed, reload_context>: Now bool.
5465
e9534bd2
TT
54662020-04-08 Tom Tromey <tromey@adacore.com>
5467
5468 * windows-nat.c (windows_add_thread): Use new.
5469 (windows_init_thread_list, windows_delete_thread): Use delete.
5470 (get_windows_debug_event): Update.
5471 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5472 destructor, and initializers.
5473
ae1f8880
TT
54742020-04-08 Tom Tromey <tromey@adacore.com>
5475
5476 * windows-nat.c (struct windows_thread_info): Remove.
5477 * nat/windows-nat.h: New file.
5478
55a1e039
TT
54792020-04-08 Tom Tromey <tromey@adacore.com>
5480
5481 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5482 (thread_rec, windows_add_thread, windows_delete_thread)
5483 (windows_continue): Update.
5484
93366324
TT
54852020-04-08 Tom Tromey <tromey@adacore.com>
5486
5487 * windows-nat.c (struct windows_thread_info): Remove typedef.
5488 (thread_head): Remove.
5489 (thread_list): New global.
5490 (thread_rec, windows_add_thread, windows_init_thread_list)
5491 (windows_delete_thread, windows_continue): Update.
5492
0f2265e2
SM
54932020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5494
5495 * windows-tdep.h (windows_init_abi): Add comment.
5496 (cygwin_init_abi): New declaration.
5497 * windows-tdep.c: Split signal enumeration in two, one for
5498 Windows and one for Cygwin.
5499 (windows_gdb_signal_to_target): Only deal with signal of the
5500 Windows OS ABI.
5501 (cygwin_gdb_signal_to_target): New function.
5502 (windows_init_abi): Rename to windows_init_abi_common, don't set
5503 gdb_signal_to_target gdbarch method. Add new new function with
5504 this name.
5505 (cygwin_init_abi): New function.
5506 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5507 comment. Don't call windows_init_abi.
5508 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5509 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5510 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5511 i386_windows_init_abi_common, don't call windows_init_abi. Add
5512 a new function of this name.
5513 (i386_cygwin_init_abi): New function.
5514 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5515 OS ABI Cygwin.
5516
3810f182
SM
55172020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5518
5519 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5520 parameter.c.
5521 (dwarf2_read_gdb_index): Update.
5522
063f8e80
KR
55232020-04-07 Kamil Rytarowski <n54@gmx.com>
5524
5525 * nbsd-tdep.c: Include "objfiles.h".
5526 (nbsd_skip_solib_resolver): New.
5527 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5528
85a9510c 55292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5530
5531 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5532 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5533 with DW_LLE_base_addressx are being emitted in DWARFv5.
5534 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5535 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5536 unsigned integer.
5537
9fc3eaae 55382020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5539
5540 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5541 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5542 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5543 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5544 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5545 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5546 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5547
5548
41144253 55492020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5550
5551 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5552 (read_loclist_index): New function definition.
5553 (lookup_loclist_base): New function definition.
5554 (read_loclist_header): New function definition.
5555 (dwarf2_cu): Add loclist_base and loclist_header field.
5556 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5557 (read_full_die_1): Read the value of DW_AT_loclists_base.
5558 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5559 (read_attribute_value): Handle DW_FORM_loclistx.
5560 (skip_one_die): Handle DW_FORM_loclistx.
5561 (loclist_header): New structure declaration.
5562 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5563
9f4e76a4
SM
55642020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5567 constructor. Remove `addr` parameter from other constructor and
5568 add `per_cu` parameter.
5569 * dwarf2/read.c (create_partial_symtab): Update.
5570
25c11aca
TV
55712020-04-07 Tom de Vries <tdevries@suse.de>
5572
5573 PR symtab/25796
5574 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5575 (partial_die_info::fixup): Inherit has_const_value.
5576
5707e24b
TV
55772020-04-07 Tom de Vries <tdevries@suse.de>
5578
5579 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5580 symbols without address.
5581
05f00e22
KR
55822020-04-06 Kamil Rytarowski <n54@gmx.com>
5583
5584 * nbsd-nat.h (struct thread_info): Add forward declaration.
5585 (nbsd_nat_target::thread_alive): Add.
5586 (nbsd_nat_target::thread_name): Likewise.
5587 (nbsd_nat_target::update_thread_list): Likewise.
5588 (update_thread_list::post_attach): Likewise.
5589 (post_attach::pid_to_str): Likewise.
5590 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5591 (nbsd_thread_lister): Add.
5592 (nbsd_nat_target::thread_alive): Likewise.
5593 (nbsd_nat_target::thread_name): Likewise.
5594 (nbsd_add_threads): Likewise.
5595 (update_thread_list::post_attach): Likewise.
5596 (nbsd_nat_target::update_thread_list): Likewise.
5597 (post_attach::pid_to_str): Likewise.
5598
6ee448cc
TT
55992020-04-06 Tom Tromey <tromey@adacore.com>
5600
5601 * ada-valprint.c (print_variant_part): Extract the variant field.
5602 (print_field_values): Use the field as the outer value when
5603 recursing.
5604
dea34e8c
TT
56052020-04-06 Tom Tromey <tromey@adacore.com>
5606
5607 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5608 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5609 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5610 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5611 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5612
93689ce9
TT
56132020-04-06 Tom Tromey <tromey@adacore.com>
5614
5615 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5616 TYPE_CODE_ERROR.
5617
79743962
KR
56182020-04-06 Kamil Rytarowski <n54@gmx.com>
5619
5620 * nbsd-tdep.c: Include "gdbarch.h".
5621 Define enum with NetBSD signal numbers.
5622 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5623 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5624 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5625 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5626 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5627 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5628 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5629 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5630 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5631 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5632 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5633 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5634
9e7c9a03
HD
56352020-04-03 Hannes Domani <ssbssa@yahoo.de>
5636
5637 PR gdb/25325
5638 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5639
d9e49b61
TT
56402020-04-03 Tom Tromey <tromey@adacore.com>
5641
5642 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5643 Read constant block.
5644
e0fc5c3f
SM
56452020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5646
5647 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5648 (gdb_bfd_get_full_section_contents): New declaration.
5649 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5650 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5651 gdb_bfd_get_full_section_contents.
5652
e2ff18a0
SM
56532020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * exec.c (build_section_table): Replace internal_error with
5656 gdb_assert.
5657 (section_table_xfer_memory_partial): Likewise.
5658 * mdebugread.c (parse_partial_symbols): Likewise.
5659 * psymtab.c (lookup_partial_symbol): Likewise.
5660 * utils.c (wrap_here): Likewise.
5661
0830d301
TT
56622020-04-02 Tom Tromey <tromey@adacore.com>
5663
5664 * f-lang.c (build_fortran_types): Use arch_type to initialize
5665 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5666
e7da7f8f
TT
56672020-04-02 Tom Tromey <tromey@adacore.com>
5668
5669 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5670 of attributes.
5671
c90d28ac
AB
56722020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5673 Bernd Edlinger <bernd.edlinger@hotmail.de>
5674 Tom Tromey <tromey@adacore.com>
5675
5676 * buildsym.c (buildsym_compunit::record_line): Remove
5677 deduplication code.
5678
1aa98955
TV
56792020-04-02 Tom de Vries <tdevries@suse.de>
5680
5681 PR ada/24671
5682 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5683
d3214198
TV
56842020-04-02 Tom de Vries <tdevries@suse.de>
5685
5686 * dwarf2/read.c (dwarf2_gdb_index_functions,
5687 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5688 NULL.
5689 * psymtab.c (psym_lookup_global_symbol_language): New function.
5690 (psym_functions): Init psym_lookup_global_symbol_language with
5691 psym_lookup_global_symbol_language.
5692 * symfile-debug.c (debug_sym_quick_functions): Init
5693 lookup_global_symbol_language with NULL.
5694 * symfile.c (set_initial_language): Remove fixme comment.
5695 * symfile.h (struct quick_symbol_functions): Add
5696 lookup_global_symbol_language.
5697 * symtab.c (find_quick_global_symbol_language): New function.
5698 (find_main_name): Use find_quick_global_symbol_language.
5699
2836752f
SM
57002020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5703
64dc2d4b
BE
57042020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5705
5706 * buildsym.c (record_line): Fix undefined behavior and preserve
5707 lines at eof.
5708
bbe3dc41
BE
57092020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5710
5711 * buildsym.c (record_line): Fix the resizing condition.
5712
6b4a335b
TT
57132020-04-01 Tom Tromey <tom@tromey.com>
5714
5715 * value.h (value_literal_complex): Add comment.
5716 * valops.c (value_literal_complex): Refer to value.h.
5717
3638a098
TT
57182020-04-01 Tom Tromey <tom@tromey.com>
5719
5720 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5721 (scalar_type): New rule, from typebase.
5722 (typebase): Use scalar_type. Recognize complex types.
5723 (field_name): Handle FLOAT_KEYWORD.
5724 (ident_tokens): Add _Complex and __complex__.
5725
c34e8714
TT
57262020-04-01 Tom Tromey <tom@tromey.com>
5727
5728 PR exp/25299:
5729 * valarith.c (promotion_type, complex_binop): New functions.
5730 (scalar_binop): Handle complex numbers. Use promotion_type.
5731 (value_pos, value_neg, value_complement): Handle complex numbers.
5732
fa649bb7
TT
57332020-04-01 Tom Tromey <tom@tromey.com>
5734
5735 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5736 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5737 (parse_number): Handle complex numbers.
5738
981c08ce
TT
57392020-04-01 Tom Tromey <tom@tromey.com>
5740
5741 * c-valprint.c (c_decorations): Change complex suffix to "i".
5742
4c99290d
TT
57432020-04-01 Tom Tromey <tom@tromey.com>
5744
5745 * valprint.c (generic_value_print_complex): Use accessors.
5746 * value.h (value_real_part, value_imaginary_part): Declare.
5747 * valops.c (value_real_part, value_imaginary_part): New
5748 functions.
5749 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5750
5b930b45
TT
57512020-04-01 Tom Tromey <tom@tromey.com>
5752
5753 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5754 (read_range_type): Update.
5755 * mdebugread.c (basic_type): Update.
5756 * go-lang.c (build_go_types): Use init_complex_type.
5757 * gdbtypes.h (struct main_type) <complex_type>: New member.
5758 (init_complex_type): Update.
5759 (arch_complex_type): Don't declare.
5760 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5761 Make name if none given. Use alloc_type_copy. Look for cached
5762 complex type.
5763 (arch_complex_type): Remove.
5764 (gdbtypes_post_init): Use init_complex_type.
5765 * f-lang.c (build_fortran_types): Use init_complex_type.
5766 * dwarf2/read.c (read_base_type): Update.
5767 * d-lang.c (build_d_types): Use init_complex_type.
5768 * ctfread.c (read_base_type): Update.
5769
53cccef1
TBA
57702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5771
5772 * infrun.c (stop_all_threads): Update assertion, plus when
5773 stopping threads, take into account that we might be trying
5774 to stop an all-stop target.
5775 (stop_waiting): Call 'stop_all_threads' if there exists a
5776 non-stop target.
5777
a0714d30
TBA
57782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5779
5780 * target.h (exists_non_stop_target): New function declaration.
5781 * target.c (exists_non_stop_target): New function.
5782
60e22c1e
HD
57832020-04-01 Hannes Domani <ssbssa@yahoo.de>
5784
5785 PR gdb/24789
5786 * eval.c (is_integral_or_integral_reference): New function.
5787 (evaluate_subexp_standard): Allow integer references in
5788 pointer arithmetic.
5789
e139a727
TBA
57902020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5791
5792 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5793 check for no ptid in the stop reply when the target is non-stop.
5794
e0802d59
TT
57952020-04-01 Tom Tromey <tromey@adacore.com>
5796
5797 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5798 "name" parameter to rvalue reference. Initialize m_name_holder.
5799 <lookup_name_info>: New overloads.
5800 <name>: Return gdb::string_view.
5801 <c_str>: New method.
5802 <make_ignore_params>: Update.
5803 <search_name_hash>: Update.
5804 <language_lookup_name>: Return const char *.
5805 <m_name>: Change type.
5806 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5807 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5808 (lookup_name_info::match_any): Update.
5809 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5810 Update.
5811 * minsyms.c (linkage_name_str): Update.
5812 * language.c (default_symbol_name_matcher): Update.
5813 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5814 Update.
5815 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5816 (ada_lookup_name_info::ada_lookup_name_info): Update.
5817 (literal_symbol_name_matcher): Update.
5818
8c072cb6
TT
58192020-04-01 Tom Tromey <tromey@adacore.com>
5820
5821 * psymtab.c (psymtab_search_name): Remove function.
5822 (psym_lookup_symbol): Create search name and lookup name here.
5823 (lookup_partial_symbol): Remove "name" parameter; add
5824 lookup_name.
5825 (psym_expand_symtabs_for_function): Update.
5826
6f29a534
TT
58272020-03-31 Joel Jones <joelkevinjones@gmail.com>
5828
5829 PR tui/25597:
5830 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5831
af62665e
TT
58322020-03-31 Tom Tromey <tromey@adacore.com>
5833
5834 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5835 memcpy.
5836
d1a89da5
NC
58372020-03-30 Nelson Chu <nelson.chu@sifive.com>
5838
5839 * features/riscv/32bit-csr.xml: Regenerated.
5840 * features/riscv/64bit-csr.xml: Regenerated.
5841
d8af9068
TT
58422020-03-30 Tom Tromey <tromey@adacore.com>
5843
5844 * ada-valprint.c (print_variant_part): Update.
5845 * ada-lang.h (ada_which_variant_applies): Update.
5846 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5847 outer_valaddr parameters; replace with "outer" value parameter.
5848 (to_fixed_variant_branch_type): Update.
5849
227c0bf4
PFC
58502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5851
5852 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5853 <list>. Remove inclusion of observable.h.
5854 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5855 (struct arch_lwp_info): New struct.
5856 (class ppc_linux_dreg_interface): New class.
5857 (struct ppc_linux_process_info): New struct.
5858 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5859 <low_new_clone, low_forget_process, low_prepare_to_resume>
5860 <copy_thread_dreg_state, mark_thread_stale>
5861 <mark_debug_registers_changed, register_hw_breakpoint>
5862 <clear_hw_breakpoint, register_wp, clear_wp>
5863 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5864 <num_memory_accesses, get_trigger_type>
5865 <create_watchpoint_request, hwdebug_point_cmp>
5866 <init_arch_lwp_info, get_arch_lwp_info>
5867 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5868 methods.
5869 <struct ptid_hash>: New inner struct.
5870 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5871 members.
5872 (saved_dabr_value, hwdebug_info, max_slots_number)
5873 (struct hw_break_tuple, struct thread_points, ppc_threads)
5874 (have_ptrace_hwdebug_interface)
5875 (hwdebug_find_thread_points_by_tid)
5876 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5877 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5878 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5879 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5880 use m_dreg_interface.
5881 (hwdebug_point_cmp): Change to...
5882 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5883 reference arguments instead of pointers.
5884 (ppc_linux_nat_target::ranged_break_num_registers): Use
5885 m_dreg_interface.
5886 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5887 m_dreg_interface. Call register_hw_breakpoint.
5888 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5889 m_dreg_interface. Call clear_hw_breakpoint.
5890 (get_trigger_type): Change to...
5891 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5892 comment.
5893 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5894 use m_dreg_interface. Call register_hw_breakpoint.
5895 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5896 use m_dreg_interface. Call clear_hw_breakpoint.
5897 (can_use_watchpoint_cond_accel): Change to...
5898 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5899 method. Update comment, use m_dreg_interface and
5900 m_process_info.
5901 (calculate_dvc): Change to...
5902 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5903 m_dreg_interface.
5904 (num_memory_accesses): Change to...
5905 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5906 (check_condition): Change to...
5907 (ppc_linux_nat_target::check_condition): ...this method.
5908 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5909 comment, use m_dreg_interface.
5910 (create_watchpoint_request): Change to...
5911 (ppc_linux_nat_target::create_watchpoint_request): ...this
5912 method. Use m_dreg_interface.
5913 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5914 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5915 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5916 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5917 (ppc_linux_nat_target::low_forget_process)
5918 (ppc_linux_nat_target::low_new_fork)
5919 (ppc_linux_nat_target::low_new_clone)
5920 (ppc_linux_nat_target::low_delete_thread)
5921 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5922 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5923 only call mark_thread_stale.
5924 (ppc_linux_thread_exit): Remove.
5925 (ppc_linux_nat_target::stopped_data_address): Change to...
5926 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5927 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5928 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5929 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5930 comment. Call low_stopped_data_address.
5931 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5932 m_dreg_interface.
5933 (ppc_linux_nat_target::masked_watch_num_registers): Use
5934 m_dreg_interface.
5935 (ppc_linux_nat_target::copy_thread_dreg_state)
5936 (ppc_linux_nat_target::mark_thread_stale)
5937 (ppc_linux_nat_target::mark_debug_registers_changed)
5938 (ppc_linux_nat_target::register_hw_breakpoint)
5939 (ppc_linux_nat_target::clear_hw_breakpoint)
5940 (ppc_linux_nat_target::register_wp)
5941 (ppc_linux_nat_target::clear_wp)
5942 (ppc_linux_nat_target::init_arch_lwp_info)
5943 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5944 (_initialize_ppc_linux_nat): Remove observer callback.
5945
4db10d8f
PFC
59462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5947
5948 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5949 (ppc_linux_nat_target::auxv_parse)
5950 (ppc_linux_nat_target::read_description)
5951 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5952 Move up.
5953
1310c1b0
PFC
59542020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5955
5956 * linux-nat.h (low_new_clone): New method.
5957 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5958
69b037c3
SM
59592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5962 (dbx_expand_psymtab): ... this.
5963 (start_psymtab): Update.
5964 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5965 (mdebug_expand_psymtab): ... this.
5966 (parse_partial_symbols): Update.
5967 (new_psymtab): Update.
5968 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5969 (xcoff_expand_psymtab): ... this.
5970 (xcoff_start_psymtab): Update.
5971
48993951
SM
59722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5975 <expand_dependencies>: ... this.
5976 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5977 (partial_symtab::expand_dependencies): ... this.
5978 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5979 Update.
5980 (dwarf2_psymtab::expand_psymtab): Update.
5981 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5982 * mdebugread.c (psymtab_to_symtab_1): Update.
5983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5984
3ad83046
SM
59852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * psympriv.h (discard_psymtab): Remove.
5988 * dbxread.c (dbx_end_psymtab): Update.
5989 * xcoffread.c (xcoff_end_psymtab): Update.
5990
4d1b9ab6
TT
59912020-03-28 Tom Tromey <tom@tromey.com>
5992
5993 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5994 comment.
5995
f1749218
TT
59962020-03-28 Tom Tromey <tom@tromey.com>
5997
5998 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5999
ebea7626
HD
60002020-03-27 Hannes Domani <ssbssa@yahoo.de>
6001
6002 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6003
a879b4d5
JB
60042020-03-26 John Baldwin <jhb@FreeBSD.org>
6005
6006 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6007
0826b30a
TT
60082020-03-26 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6011 (mark_common_block_symbol_computed, read_tag_string_type)
6012 (attr_to_dynamic_prop, read_subrange_type): Update.
6013 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6014 to be methods on struct attribute.
6015 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6016 (read_call_site_scope, partial_die_info::read)
6017 (partial_die_info::read, lookup_die_type, follow_die_ref):
6018 Update.
6019 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6020 from dwarf2_get_ref_die_offset.
6021 (attribute::constant_value): New method, from
6022 dwarf2_get_attr_constant_value.
6023 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6024 Declare method.
6025 <constant_value>: New method.
6026
2b2558bf
TT
60272020-03-26 Tom Tromey <tom@tromey.com>
6028
6029 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6030 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6031 (dwarf_type_encoding_name): Move to stringify.c.
6032 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6033 * dwarf2/stringify.c: New file.
6034 * dwarf2/stringify.h: New file.
6035
eeb64781
TT
60362020-03-26 Tom Tromey <tom@tromey.com>
6037
6038 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6039 Rewrite.
6040
a39fdb41
TT
60412020-03-26 Tom Tromey <tom@tromey.com>
6042
6043 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6044 methods.
6045 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6046 (lookup_ranges_base): Likewise.
6047 (read_cutu_die_from_dwo, read_full_die_1): Update.
6048
436c571c
TT
60492020-03-26 Tom Tromey <tom@tromey.com>
6050
6051 * dwarf2/read.c (read_import_statement, read_file_scope)
6052 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6053 (read_lexical_block_scope, read_call_site_scope)
6054 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6055 (handle_struct_member_die, process_structure_scope)
6056 (update_enumeration_type_from_children)
6057 (process_enumeration_scope, read_array_type, read_common_block)
6058 (read_namespace, read_module, read_subroutine_type): Update.
6059 (sibling_die): Remove.
6060
052c8bb8
TT
60612020-03-26 Tom Tromey <tom@tromey.com>
6062
6063 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6064 (build_type_psymtabs_reader, read_structure_type)
6065 (read_enumeration_type, read_full_die_1): Update.
6066 (dwarf2_attr_no_follow): Move to die.h.
6067 * dwarf2/die.h (struct die_info) <attr>: New method.
6068
2b24b6e4
TT
60692020-03-26 Tom Tromey <tom@tromey.com>
6070
6071 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6072 <base_address>: Now an optional.
6073 (dwarf2_find_base_address, dwarf2_rnglists_process)
6074 (dwarf2_ranges_process, fill_in_loclist_baton)
6075 (dwarf2_symbol_mark_computed): Update.
6076
c2d50fd0
TT
60772020-03-26 Tom Tromey <tom@tromey.com>
6078
6079 * dwarf2/read.c (struct die_info): Move to die.h.
6080 * dwarf2/die.h: New file.
6081
0df7ad3a
TT
60822020-03-26 Tom Tromey <tom@tromey.com>
6083
6084 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6085 * dwarf2/read.c
6086 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6087 Move to line-header.c.
6088 (read_checked_initial_length_and_offset, read_formatted_entries):
6089 Likewise.
6090 (dwarf_decode_line_header): Split into two.
6091 * dwarf2/line-header.c
6092 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6093 Move from read.c.
6094 (read_checked_initial_length_and_offset, read_formatted_entries):
6095 Likewise.
6096 (dwarf_decode_line_header): New function, split from read.c.
6097
86c0bb4c
TT
60982020-03-26 Tom Tromey <tom@tromey.com>
6099
6100 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6101 Declare method.
6102 * dwarf2/read.c (read_attribute_value): Update.
6103 (dwarf2_per_objfile::read_line_string): Rename from
6104 read_indirect_line_string.
6105 (read_formatted_entries): Update.
6106
2ef46c2f
TT
61072020-03-26 Tom Tromey <tom@tromey.com>
6108
6109 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6110 variable.
6111
4f9c1eda
TT
61122020-03-26 Tom Tromey <tom@tromey.com>
6113
6114 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6115 const.
6116 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6117 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6118 parameter const.
6119
5a0e026f
TT
61202020-03-26 Tom Tromey <tom@tromey.com>
6121
6122 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6123 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6124 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6125 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6126
8844c11b
TT
61272020-03-26 Tom Tromey <tom@tromey.com>
6128
6129 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6130 file_names_size, file_full_name, file_file_name>: Use const.
6131 <file_name_at, file_names>: Add const overload.
6132 * dwarf2/line-header.c (line_header::file_file_name)
6133 (line_header::file_full_name): Update.
6134
c90ec28a
TT
61352020-03-26 Tom Tromey <tom@tromey.com>
6136
6137 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6138 (macro_start_file, consume_improper_spaces)
6139 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6140 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6141 (dwarf_decode_macros): Move to macro.c.
6142 * dwarf2/macro.c: New file.
6143 * dwarf2/macro.h: New file.
6144 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6145
4f44ae6c
TT
61462020-03-26 Tom Tromey <tom@tromey.com>
6147
6148 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6149 method.
6150 * dwarf2/section.c: New method. From
6151 read_indirect_string_at_offset_from.
6152 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6153 (read_indirect_string_at_offset_from): Move to section.c.
6154 (read_indirect_string_at_offset): Rewrite.
6155 (read_indirect_line_string_at_offset): Remove.
6156 (read_indirect_string, read_indirect_line_string)
6157 (dwarf_decode_macro_bytes): Update.
6158
a0194fa8
TT
61592020-03-26 Tom Tromey <tom@tromey.com>
6160
6161 * dwarf2/section.h (struct dwarf2_section_info)
6162 <overload_complaint>: Declare.
6163 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6164 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6165 Rename from dwarf2_section_buffer_overflow_complaint.
6166 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6167 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6168
3d27bbdb
TT
61692020-03-26 Tom Tromey <tom@tromey.com>
6170
6171 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6172 Declare.
6173 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6174 Move from read.c.
6175 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6176 to section.c.
6177
9eac9650
TT
61782020-03-26 Tom Tromey <tom@tromey.com>
6179
6180 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6181
bf80d710
TT
61822020-03-26 Tom Tromey <tom@tromey.com>
6183
6184 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6185 "builder".
6186 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6187 parameter.
6188 (dwarf_decode_macros): Update.
6189
0314b390
TT
61902020-03-26 Tom Tromey <tom@tromey.com>
6191
6192 * dwarf2/read.c (read_attribute_value): Update.
6193 (read_indirect_string_from_dwz): Move to dwz.c; change into
6194 method.
6195 (dwarf_decode_macro_bytes): Update.
6196 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6197 * dwarf2/dwz.c: New file.
6198 * Makefile.in (COMMON_SFILES): Add dwz.c.
6199
9fda78b6
TT
62002020-03-26 Tom Tromey <tom@tromey.com>
6201
6202 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6203 * dwarf2/read.c: Add include.
6204 * dwarf2/index-write.c: Add include.
6205 * dwarf2/index-cache.c: Add include.
6206 * dwarf2/dwz.h: New file.
6207
33aa3c10
TT
62082020-03-25 Tom Tromey <tom@tromey.com>
6209
6210 * compile/compile-object-load.c (get_out_value_type): Mention
6211 correct symbol name in error message.
6212
d503b685
HD
62132020-03-25 Hannes Domani <ssbssa@yahoo.de>
6214
6215 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6216
7b1eff95
TV
62172020-03-25 Tom de Vries <tdevries@suse.de>
6218
6219 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6220 * symmisc.c (dump_symtab_1): Print user and includes fields.
6221 (maintenance_info_symtabs): Same.
6222
dd895392
AB
62232020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6224
6225 PR gdb/25534
6226 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6227 (riscv_regcache_cooked_write): New function.
6228 (riscv_push_dummy_call): Use new function.
6229 (riscv_return_value): Likewise.
6230
5ab2fbf1
SM
62312020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6234 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6235 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6236 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6237 * infrun.c (follow_fork): Likewise.
6238 (follow_fork_inferior): Likewise.
6239 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6240 * linux-nat.h (class linux_nat_target): Likewise.
6241 * remote.c (class remote_target) <follow_fork>: Likewise.
6242 (remote_target::follow_fork): Likewise.
6243 * target-delegates.c: Re-generate.
6244 * target.c (default_follow_fork): Likewise.
6245 (target_follow_fork): Likewise.
6246 * target.h (struct target_ops) <follow_fork>: Likewise.
6247 (target_follow_fork): Likewise.
6248
a64fafb5
TV
62492020-03-24 Tom de Vries <tdevries@suse.de>
6250
6251 * psymtab.c (maintenance_info_psymtabs): Print user field.
6252
fe26d3a3
TT
62532020-03-20 Tom Tromey <tromey@adacore.com>
6254
6255 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6256 const.
6257 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6258 const.
6259
c884cc46
SM
62602020-03-20 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * ptrace.m4: Don't check for ptrace declaration.
6263 * config.in: Re-generate.
6264 * configure: Re-generate.
6265 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6266 not defined.
6267
1ff700c2
KR
62682020-03-20 Kamil Rytarowski <n54@gmx.com>
6269
6270 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6271 `PTRACE_TYPE_RET'.
6272 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6273 * sparc-nat.c (gdb_ptrace): Likewise.
6274 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6275
f7d4f0b1
TT
62762020-03-20 Tom Tromey <tromey@adacore.com>
6277
6278 * c-exp.y (lex_one_token): Fix assert.
6279
f67210ff
TT
62802020-03-20 Tom Tromey <tromey@adacore.com>
6281
6282 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6283 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6284 strncpy call.
6285
1773be9e
TT
62862020-03-20 Tom Tromey <tromey@adacore.com>
6287
6288 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6289
70304be9
TT
62902020-03-20 Tom Tromey <tromey@adacore.com>
6291
6292 * ada-valprint.c (print_variant_part): Remove parameters; switch
6293 to value-based API.
6294 (print_field_values): Likewise.
6295 (ada_val_print_struct_union): Likewise.
6296 (ada_value_print_1): Update.
6297
9faa006d
KR
62982020-03-20 Kamil Rytarowski <n54@gmx.com>
6299
6300 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6301 nbsd_nat_target instead of inf_ptrace_target.
6302 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6303 nbsd_nat_target.
6304
4a90f062
KR
63052020-03-20 Kamil Rytarowski <n54@gmx.com>
6306
6307 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6308 it to the ptrace call.
6309 * (store_registers): Likewise.
6310
63112020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6312
6313 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6314 it to the ptrace call.
6315 * (store_registers): Likewise.
6316
2d07da27
LM
63172020-03-19 Luis Machado <luis.machado@linaro.org>
6318
6319 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6320 valid, fetch vg value from ptrace.
6321
f09db380
KR
63222020-03-19 Kamil Rytarowski <n54@gmx.com>
6323 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6324 * inf-ptrace.c: Likewise.
6325 * (gdb_ptrace): Add.
6326 * (inf_ptrace_target::resume): Update.
6327 * (inf_ptrace_target::xfer_partial): Likewise.
6328 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6329 * (inf_ptrace_peek_poke): Update.
6330
fcc7376e
KR
63312020-03-19 Kamil Rytarowski <n54@gmx.com>
6332
6333 * x86-bsd-nat.c (gdb_ptrace): New.
6334 * (x86bsd_dr_set): Add new argument `ptid'.
6335 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6336 x86bsd_dr_set_addr): Update.
6337
cada5fc9
AB
63382020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6339
6340 * remote.c (remote_target::process_stop_reply): Handle events for
6341 all threads differently.
6342
19a2740f
AB
63432020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6344
6345 * completer.c (completion_tracker::remove_completion): Define new
6346 function.
6347 * completer.h (completion_tracker::remove_completion): Declare new
6348 function.
6349 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6350 when adding a C++ function symbol.
6351
724fd9ba
AB
63522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6353
6354 * completer.c (completion_tracker::completion_hash_entry): Define
6355 new class.
6356 (advance_to_filename_complete_word_point): Call
6357 recompute_lowest_common_denominator.
6358 (completion_tracker::completion_tracker): Call discard_completions
6359 to setup the hash table.
6360 (completion_tracker::discard_completions): Allow for being called
6361 from the constructor, pass new equal function, and element deleter
6362 when constructing the hash table. Initialise new class member
6363 variables.
6364 (completion_tracker::maybe_add_completion): Remove use of
6365 m_entries_vec, and store more information into m_entries_hash.
6366 (completion_tracker::recompute_lcd_visitor): New function, most
6367 content taken from...
6368 (completion_tracker::recompute_lowest_common_denominator):
6369 ...here, this now just visits each item in the hash calling the
6370 above visitor.
6371 (completion_tracker::build_completion_result): Remove use of
6372 m_entries_vec, call recompute_lowest_common_denominator.
6373 * completer.h (completion_tracker::have_completions): Remove use
6374 of m_entries_vec.
6375 (completion_tracker::completion_hash_entry): Declare new class.
6376 (completion_tracker::recompute_lowest_common_denominator): Change
6377 function signature.
6378 (completion_tracker::recompute_lcd_visitor): Declare new function.
6379 (completion_tracker::m_entries_vec): Delete.
6380 (completion_tracker::m_entries_hash): Initialize to NULL.
6381 (completion_tracker::m_lowest_common_denominator_valid): New
6382 member variable.
6383 (completion_tracker::m_lowest_common_denominator_max_length): New
6384 member variable.
6385
5a82b8a1
KR
63862020-03-17 Kamil Rytarowski <n54@gmx.com>
6387
6388 * regformats/regdef.h: Put reg in gdb namespace.
6389
fb516a69
KR
63902020-03-17 Kamil Rytarowski <n54@gmx.com>
6391
6392 * i386-bsd-nat.c (gdb_ptrace): New.
6393 * (i386bsd_fetch_inferior_registers,
6394 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6395 * (i386bsd_fetch_inferior_registers,
6396 i386bsd_store_inferior_registers) Use gdb_ptrace.
6397
1c0aa1fb
KR
63982020-03-17 Kamil Rytarowski <n54@gmx.com>
6399
6400 * amd64-bsd-nat.c (gdb_ptrace): New.
6401 * (amd64bsd_fetch_inferior_registers,
6402 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6403 * (amd64bsd_fetch_inferior_registers,
6404 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6405
5ccd2fb7
KR
64062020-03-17 Kamil Rytarowski <n54@gmx.com>
6407
6408 * user-regs.c (user_reg::read): Rename to...
6409 (user_reg::xread): ...this.
6410 * (append_user_reg): Rename argument `read' to `xread'.
6411 * (user_reg_add_builtin): Likewise.
6412 * (user_reg_add): Likewise.
6413 * (value_of_user_reg): Likewise.
6414
2108a63a
KR
64152020-03-17 Kamil Rytarowski <n54@gmx.com>
6416
6417 * sparc-nat.c (gdb_ptrace): New.
6418 * sparc-nat.c (sparc_fetch_inferior_registers)
6419 (sparc_store_inferior_registers) Remove obsolete comment.
6420 * sparc-nat.c (sparc_fetch_inferior_registers)
6421 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6422 * sparc-nat.c (sparc_fetch_inferior_registers)
6423 (sparc_store_inferior_registers) Use gdb_ptrace.
6424
a225c9a8
KR
64252020-03-17 Kamil Rytarowski <n54@gmx.com>
6426
6427 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6428 it to the ptrace call.
6429 * sh-nbsd-nat.c (store_registers): Likewise.
6430
98097623
KR
64312020-03-17 Kamil Rytarowski <n54@gmx.com>
6432
6433 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6434 nbsd_nat_target instead of inf_ptrace_target.
6435 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6436 nbsd_nat_target.
6437
9e38d619
KR
64382020-03-17 Kamil Rytarowski <n54@gmx.com>
6439
6440 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6441
a2ecbe9f
KR
64422020-03-17 Kamil Rytarowski <n54@gmx.com>
6443
6444 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6445 <sys/sysctl.h>.
6446 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6447
58990295
TV
64482020-03-17 Tom de Vries <tdevries@suse.de>
6449
6450 PR gdb/23710
6451 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6452 fields.
6453 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6454 fields.
6455 (process_imported_unit_die): Skip import of c++ CUs.
6456
771dd3a8
TT
64572020-03-16 Tom Tromey <tom@tromey.com>
6458
6459 * p-valprint.c (pascal_object_print_value): Initialize
6460 base_value.
6461
817a7585
AK
64622020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6463 Shahab Vahedi <shahab@synopsys.com>
6464
6465 * Makefile.in: Add arch/arc.o
6466 * configure.tgt: Likewise.
6467 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6468 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6469 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6470 * arc-tdep.h (arc_read_description): Add proto type.
6471 * arch/arc.c: New file.
6472 * arch/arc.h: Likewise.
6473 * features/Makefile: Replace old target descriptions with new.
6474 * features/arc-arcompact.c: Remove.
6475 * features/arc-arcompact.xml: Likewise.
6476 * features/arc-v2.c: Likewise
6477 * features/arc-v2.xml: Likewise
6478 * features/arc/aux-arcompact.xml: New file.
6479 * features/arc/aux-v2.xml: Likewise.
6480 * features/arc/core-arcompact.xml: Likewise.
6481 * features/arc/core-v2.xml: Likewise.
6482 * features/arc/aux-arcompact.c: Generate.
6483 * features/arc/aux-v2.c: Likewise.
6484 * features/arc/core-arcompact.c: Likewise.
6485 * features/arc/core-v2.c: Likewise.
6486 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6487
67430cd0
TT
64882020-03-16 Tom Tromey <tromey@adacore.com>
6489
6490 PR gdb/25663:
6491 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6492 putting value into bcache.
6493
30efb6c7
SM
64942020-03-16 Simon Marchi <simon.marchi@efficios.com>
6495
6496 PR gdb/21500
6497 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6498 to...
6499 (amd64_windows_init_abi_common): ... this. Don't set size of
6500 long type.
6501 (amd64_windows_init_abi): New function.
6502 (amd64_cygwin_init_abi): New function.
6503 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6504 the Cygwin OS ABI.
6505 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6506 comment.
6507
8db52437
SM
65082020-03-16 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6511 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6512 (pe_import_directory_entry): New struct type.
6513 (is_linked_with_cygwin_dll): New function.
6514 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6515 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6516 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6517
5982a56a
SM
65182020-03-16 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6521 i386_cygwin_core_osabi_sniffer.
6522
7a1998df
SM
65232020-03-16 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * i386-cygwin-tdep.c: Rename to...
6526 * i386-windows-tdep.c: ... this.
6527 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6528 i386-windows-tdep.c.
6529 * configure.tgt: Likewise.
6530
053205cc
SM
65312020-03-16 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6534 * osabi.c (gdb_osabi_names): Add "Windows".
6535 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6536 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6537 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6538 i386_cygwin_osabi_sniffer.
6539 (_initialize_i386_cygwin_tdep): Register OS ABI
6540 GDB_OSABI_WINDOWS for i386.
6541 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6542 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6543 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6544 for x86-64.
6545 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6546 when the target matches '*-*-mingw*'.
6547
fe4b2ee6
SM
65482020-03-16 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * defs.h (enum gdb_osabi): Move to...
6551 * osabi.h (enum gdb_osabi): ... here.
6552 * gdbarch.sh: Include osabi.h in gdbarch.h.
6553 * gdbarch.h: Re-generate.
6554
cb9b645d
SM
65552020-03-16 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6558 function.
6559 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6560
3293bbaf
TT
65612020-03-14 Tom Tromey <tom@tromey.com>
6562
6563 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6564 for C++.
6565 (c_type_print_modifier): Likewise. Add "language" parameter.
6566 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6567 (c_type_print_base_1): Update.
6568 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6569 constants.
6570 * type-stack.c (type_stack::insert): Handle tp_atomic and
6571 tp_restrict.
6572 (type_stack::follow_type_instance_flags): Likewise.
6573 (type_stack::follow_types): Likewise. Merge type-following code.
6574 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6575 (space_identifier, cv_with_space_id)
6576 (const_or_volatile_or_space_identifier_noopt)
6577 (const_or_volatile_or_space_identifier): Remove.
6578 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6579 rules.
6580 (ptr_operator, typebase): Update.
6581 (enum token_flag) <FLAG_C>: New constant.
6582 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6583 "_Atomic".
6584 (lex_one_token): Handle FLAG_C.
6585
154151a6
KR
65862020-03-14 Kamil Rytarowski <n54@gmx.com>
6587
6588 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6589 it to the ptrace call.
6590 * m68k-bsd-nat.c (store_registers): Likewise.
6591
bc107784
KR
65922020-03-14 Kamil Rytarowski <n54@gmx.com>
6593
6594 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6595 gdb_byte *.
6596 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6597 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6598 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6599
01a80117
KR
66002020-03-14 Kamil Rytarowski <n54@gmx.com>
6601
6602 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6603 nbsd_nat_target instead of inf_ptrace_target.
6604 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6605 nbsd_nat_target.
6606
f90280ca
KR
66072020-03-14 Kamil Rytarowski <n54@gmx.com>
6608
6609 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6610 register_t.
6611
6def66f1
KR
66122020-03-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6615 it to the ptrace call.
6616 * alpha-bsd-nat.c (store_registers): Likewise.
6617
66eaca97
KR
66182020-03-14 Kamil Rytarowski <n54@gmx.com>
6619
6620 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6621 includes.
6622 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6623 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6624 fill_fpregset): Likewise.
6625
4fed520b
KR
66262020-03-14 Kamil Rytarowski <n54@gmx.com>
6627
6628 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6629 nbsd_nat_target instead of inf_ptrace_target.
6630 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6631 nbsd_nat_target.
6632
2190cf06
KR
66332020-03-14 Kamil Rytarowski <n54@gmx.com>
6634
6635 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6636 register_t.
6637
75c56d3d
KR
66382020-03-14 Kamil Rytarowski <n54@gmx.com>
6639
6640 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6641 it to the ptrace call.
6642 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6643 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6644 * arm-nbsd-nat.c (store_register): Likewise.
6645 * arm-nbsd-nat.c (store_regs): Likewise.
6646 * arm-nbsd-nat.c (store_fp_register): Likewise.
6647 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6648
6018d381
KR
66492020-03-14 Kamil Rytarowski <n54@gmx.com>
6650
6651 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6652 nbsd_nat_target instead of inf_ptrace_target.
6653 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6654 nbsd_nat_target.
6655
013f99f0
KR
66562020-03-14 Kamil Rytarowski <n54@gmx.com>
6657
6658 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6659 it to the ptrace call.
6660 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6661
12753073
KR
66622020-03-14 Kamil Rytarowski <n54@gmx.com>
6663
6227b330
KR
6664 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6665 it to the ptrace call.
6666 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6667
66682020-03-14 Kamil Rytarowski <n54@gmx.com>
6669
6670 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6671 gdb_byte *.
12753073
KR
6672 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6673
d5be5fa4
KR
66742020-03-14 Kamil Rytarowski <n54@gmx.com>
6675
6676 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6677 instead of inf_ptrace_target.
6678 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6679 nbsd_nat_target.
6680
8110f842
KR
66812020-03-14 Kamil Rytarowski <n54@gmx.com>
6682
6683 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6684 register_t.
6685
52feded7
KR
66862020-03-14 Kamil Rytarowski <n54@gmx.com>
6687
6688 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6689 register_t.
6690
25567eee
KR
66912020-03-14 Kamil Rytarowski <n54@gmx.com>
6692
6693 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6694 register_t.
6695
426a9c18
TT
66962020-03-13 Tom Tromey <tom@tromey.com>
6697
6698 * value.h (val_print): Don't declare.
6699 * valprint.h (val_print_array_elements)
6700 (val_print_scalar_formatted, generic_val_print): Don't declare.
6701 * valprint.c (generic_val_print_array): Take a struct value.
6702 (generic_val_print_ptr, generic_val_print_memberptr)
6703 (generic_val_print_bool, generic_val_print_int)
6704 (generic_val_print_char, generic_val_print_complex)
6705 (generic_val_print): Remove.
6706 (generic_value_print): Update.
6707 (do_val_print): Remove unused parameters. Don't call
6708 la_val_print.
6709 (val_print): Remove.
6710 (common_val_print): Update. Don't call value_check_printable.
6711 (val_print_scalar_formatted, val_print_array_elements): Remove.
6712 * rust-lang.c (rust_val_print): Remove.
6713 (rust_language_defn): Update.
6714 * p-valprint.c (pascal_val_print): Remove.
6715 (pascal_value_print_inner): Update.
6716 (pascal_object_print_val_fields, pascal_object_print_val):
6717 Remove.
6718 (pascal_object_print_static_field): Update.
6719 * p-lang.h (pascal_val_print): Don't declare.
6720 * p-lang.c (pascal_language_defn): Update.
6721 * opencl-lang.c (opencl_language_defn): Update.
6722 * objc-lang.c (objc_language_defn): Update.
6723 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6724 * m2-lang.h (m2_val_print): Don't declare.
6725 * m2-lang.c (m2_language_defn): Update.
6726 * language.h (struct language_defn) <la_val_print>: Remove.
6727 * language.c (unk_lang_value_print_inner): Rename. Change
6728 argument types.
6729 (unknown_language_defn, auto_language_defn): Update.
6730 * go-valprint.c (go_val_print): Remove.
6731 * go-lang.h (go_val_print): Don't declare.
6732 * go-lang.c (go_language_defn): Update.
6733 * f-valprint.c (f_val_print): Remove.
6734 * f-lang.h (f_value_print): Don't declare.
6735 * f-lang.c (f_language_defn): Update.
6736 * d-valprint.c (d_val_print): Remove.
6737 * d-lang.h (d_value_print): Don't declare.
6738 * d-lang.c (d_language_defn): Update.
6739 * cp-valprint.c (cp_print_value_fields)
6740 (cp_print_value_fields_rtti, cp_print_value): Remove.
6741 (cp_print_static_field): Update.
6742 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6743 (c_val_print_struct, c_val_print_union, c_val_print_int)
6744 (c_val_print_memberptr, c_val_print): Remove.
6745 * c-lang.h (c_val_print_array, cp_print_value_fields)
6746 (cp_print_value_fields_rtti): Don't declare.
6747 * c-lang.c (c_language_defn, cplus_language_defn)
6748 (asm_language_defn, minimal_language_defn): Update.
6749 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6750 (ada_val_print_enum): Take a struct value.
6751 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6752 (ada_val_print): Remove.
6753 (ada_value_print_1): Update.
6754 (printable_val_type): Remove.
6755 * ada-lang.h (ada_val_print): Don't declare.
6756 * ada-lang.c (ada_language_defn): Update.
6757
42331a1e
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * valprint.c (do_val_print): Update.
6761 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6762 a struct value.
6763 (value_to_value_object_no_release): Declare.
6764 * python/py-value.c (value_to_value_object_no_release): New
6765 function.
6766 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6767 struct value.
6768 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6769 function.
6770 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6771 a struct value.
6772 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6773 Declare.
6774 (gdbscm_apply_val_pretty_printer): Take a struct value.
6775 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6776 value.
6777 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6778 value.
6779 * extension-priv.h (struct extension_language_ops)
6780 <apply_val_pretty_printer>: Take a struct value.
6781 * cp-valprint.c (cp_print_value): Create a struct value.
6782 (cp_print_value): Update.
6783
3a916a97
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * ada-valprint.c (print_field_values): Call common_val_print.
6787
b59eac37
TT
67882020-03-13 Tom Tromey <tom@tromey.com>
6789
6790 * ada-valprint.c (val_print_packed_array_elements): Remove
6791 bitoffset and val parameters. Call common_val_print.
6792 (ada_val_print_string): Remove offset, address, and original_value
6793 parameters.
6794 (ada_val_print_array): Update.
6795 (ada_value_print_array): New function.
6796 (ada_value_print_1): Call it.
6797
03371129
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * ada-valprint.c (ada_value_print): Use common_val_print.
6801
2e088f8b
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6805
39ef85a8
TT
68062020-03-13 Tom Tromey <tom@tromey.com>
6807
6808 * ada-valprint.c (ada_value_print_num): New function.
6809 (ada_value_print_1): Use it.
6810
b9fa6e07
TT
68112020-03-13 Tom Tromey <tom@tromey.com>
6812
6813 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6814
416595d6
TT
68152020-03-13 Tom Tromey <tom@tromey.com>
6816
6817 * ada-valprint.c (ada_value_print_ptr): New function.
6818 (ada_value_print_1): Use it.
6819
5b5e15ec
TT
68202020-03-13 Tom Tromey <tom@tromey.com>
6821
6822 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6823 call common_val_print.
6824 (ada_val_print_1): Update.
6825 (ada_value_print_1): New function.
6826 (ada_value_print_inner): Rewrite.
6827
fbf54e75
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * cp-valprint.c (cp_print_value_fields): Update.
6831 (cp_print_value): New function.
6832
64b653ca
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * m2-valprint.c (m2_value_print_inner): Use
6836 cp_print_value_fields.
6837 * cp-valprint.c (cp_print_value_fields): New function.
6838 * c-valprint.c (c_value_print_struct): New function.
6839 (c_value_print_inner): Use c_value_print_struct.
6840 * c-lang.h (cp_print_value_fields): Declare.
6841
6999f067
TT
68422020-03-13 Tom Tromey <tom@tromey.com>
6843
6844 * c-valprint.c (c_value_print_array): New function.
6845 (c_value_print_inner): Use it.
6846
ce80b8bd
TT
68472020-03-13 Tom Tromey <tom@tromey.com>
6848
6849 * c-valprint.c (c_value_print_memberptr): New function.
6850 (c_value_print_inner): Use it.
6851
2faac269
TT
68522020-03-13 Tom Tromey <tom@tromey.com>
6853
6854 * c-valprint.c (c_value_print_int): New function.
6855 (c_value_print_inner): Use it.
6856
da3e2c29
TT
68572020-03-13 Tom Tromey <tom@tromey.com>
6858
6859 * c-valprint.c (c_value_print_ptr): New function.
6860 (c_value_print_inner): Use it.
6861
50836231
TT
68622020-03-13 Tom Tromey <tom@tromey.com>
6863
6864 * c-valprint.c (c_value_print_inner): Rewrite.
6865
4f412b6e
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.c (generic_value_print_complex): New function.
6869 (generic_value_print): Use it.
6870
f5354008
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.c (generic_val_print_float): Don't call
6874 val_print_scalar_formatted.
6875 (generic_val_print, generic_value_print): Update.
6876
3eec3b05
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * valprint.c (generic_value_print_char): New function
6880 (generic_value_print): Use it.
6881
fdddfccb
TT
68822020-03-13 Tom Tromey <tom@tromey.com>
6883
6884 * valprint.c (generic_value_print_int): New function.
6885 (generic_value_print): Use it.
6886
6dde7521
TT
68872020-03-13 Tom Tromey <tom@tromey.com>
6888
6889 * valprint.c (generic_value_print_bool): New function.
6890 (generic_value_print): Use it.
6891
4112d2e6
TT
68922020-03-13 Tom Tromey <tom@tromey.com>
6893
6894 * valprint.c (generic_val_print_func): Simplify.
6895 (generic_val_print, generic_value_print): Update.
6896
65786af6
TT
68972020-03-13 Tom Tromey <tom@tromey.com>
6898
6899 * valprint.c (generic_val_print_flags): Remove.
6900 (generic_val_print, generic_value_print): Update.
6901 (val_print_type_code_flags): Add original_value parameter.
6902
40f3ce18
TT
69032020-03-13 Tom Tromey <tom@tromey.com>
6904
6905 * valprint.c (generic_val_print): Update.
6906 (generic_value_print): Update.
6907 * valprint.c (generic_val_print_enum): Don't call
6908 val_print_scalar_formatted.
6909
2a5b130b
TT
69102020-03-13 Tom Tromey <tom@tromey.com>
6911
6912 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6913 * valprint.c (generic_value_print_ptr): New function.
6914
abc66ce9
TT
69152020-03-13 Tom Tromey <tom@tromey.com>
6916
6917 * valprint.c (generic_value_print): Rewrite.
6918
07a32858
TT
69192020-03-13 Tom Tromey <tom@tromey.com>
6920
6921 * p-valprint.c (pascal_object_print_value_fields)
6922 (pascal_object_print_value): New functions.
6923
64d64d3a
TT
69242020-03-13 Tom Tromey <tom@tromey.com>
6925
6926 * p-valprint.c (pascal_value_print_inner): Rewrite.
6927
6a95a1f5
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * f-valprint.c (f_value_print_innner): Rewrite.
6931
59fcdac6
TT
69322020-03-13 Tom Tromey <tom@tromey.com>
6933
6934 * m2-valprint.c (m2_print_unbounded_array): New overload.
6935 (m2_print_unbounded_array): Update.
6936 (m2_print_array_contents): Take a struct value.
6937 (m2_value_print_inner): Rewrite.
6938
d133c3e1
TT
69392020-03-13 Tom Tromey <tom@tromey.com>
6940
6941 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6942 (d_value_print_inner): New function.
6943 * d-lang.h (d_value_print_inner): Declare.
6944 * d-lang.c (d_language_defn): Use d_value_print_inner.
6945
23b0f06b
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * go-valprint.c (go_value_print_inner): New function.
6949 * go-lang.h (go_value_print_inner): Declare.
6950 * go-lang.c (go_language_defn): Use go_value_print_inner.
6951
5f56f7cb
TT
69522020-03-13 Tom Tromey <tom@tromey.com>
6953
6954 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6955 API.
6956 (rust_val_print): Rewrite.
6957 (rust_value_print_inner): New function, from rust_val_print.
6958 (rust_language_defn): Use rust_value_print_inner.
6959
26792ee0
TT
69602020-03-13 Tom Tromey <tom@tromey.com>
6961
6962 * ada-valprint.c (ada_value_print_inner): New function.
6963 * ada-lang.h (ada_value_print_inner): Declare.
6964 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6965
24051bbe
TT
69662020-03-13 Tom Tromey <tom@tromey.com>
6967
6968 * f-valprint.c (f_value_print_innner): New function.
6969 * f-lang.h (f_value_print_innner): Declare.
6970 * f-lang.c (f_language_defn): Use f_value_print_innner.
6971
c0941be6
TT
69722020-03-13 Tom Tromey <tom@tromey.com>
6973
6974 * p-valprint.c (pascal_value_print_inner): New function.
6975 * p-lang.h (pascal_value_print_inner): Declare.
6976 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6977
62c4663d
TT
69782020-03-13 Tom Tromey <tom@tromey.com>
6979
6980 * m2-valprint.c (m2_value_print_inner): New function.
6981 * m2-lang.h (m2_value_print_inner): Declare.
6982 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6983
62182190
TT
69842020-03-13 Tom Tromey <tom@tromey.com>
6985
6986 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6987 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6988 * c-valprint.c (c_value_print_inner): New function.
6989 * c-lang.h (c_value_print_inner): Declare.
6990 * c-lang.c (c_language_defn, cplus_language_defn)
6991 (asm_language_defn, minimal_language_defn): Use
6992 c_value_print_inner.
6993
1e592a8a
TT
69942020-03-13 Tom Tromey <tom@tromey.com>
6995
6996 * p-valprint.c (pascal_object_print_value_fields): Now static.
6997 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6998
7fe471e9
TT
69992020-03-13 Tom Tromey <tom@tromey.com>
7000
7001 * c-valprint.c (c_val_print_array): Simplify.
7002
d121c6ce
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * valprint.c (value_print_array_elements): New function.
7006 * valprint.h (value_print_array_elements): Declare.
7007
4dba70ee
TT
70082020-03-13 Tom Tromey <tom@tromey.com>
7009
7010 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7011 * mips-tdep.c (mips_print_register): Use
7012 value_print_scalar_formatted.
7013
4f9ae810
TT
70142020-03-13 Tom Tromey <tom@tromey.com>
7015
7016 * valprint.h (value_print_scalar_formatted): Declare.
7017 * valprint.c (value_print_scalar_formatted): New function.
7018
156bfec9
TT
70192020-03-13 Tom Tromey <tom@tromey.com>
7020
7021 * valprint.h (generic_value_print): Declare.
7022 * valprint.c (generic_value_print): New function.
7023
2b4e573d
TT
70242020-03-13 Tom Tromey <tom@tromey.com>
7025
7026 * valprint.c (do_val_print): Call la_value_print_inner, if
7027 available.
7028 * rust-lang.c (rust_language_defn): Update.
7029 * p-lang.c (pascal_language_defn): Update.
7030 * opencl-lang.c (opencl_language_defn): Update.
7031 * objc-lang.c (objc_language_defn): Update.
7032 * m2-lang.c (m2_language_defn): Update.
7033 * language.h (struct language_defn) <la_value_print_inner>: New
7034 member.
7035 * language.c (unknown_language_defn, auto_language_defn): Update.
7036 * go-lang.c (go_language_defn): Update.
7037 * f-lang.c (f_language_defn): Update.
7038 * d-lang.c (d_language_defn): Update.
7039 * c-lang.c (c_language_defn, cplus_language_defn)
7040 (asm_language_defn, minimal_language_defn): Update.
7041 * ada-lang.c (ada_language_defn): Update.
7042
a1f6a07c
TT
70432020-03-13 Tom Tromey <tom@tromey.com>
7044
7045 * c-valprint.c (c_value_print): Use common_val_print.
7046
410cf315
TT
70472020-03-13 Tom Tromey <tom@tromey.com>
7048
7049 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7050
72a45c93
TT
70512020-03-13 Tom Tromey <tom@tromey.com>
7052
7053 * f-valprint.c (f77_print_array_1, f_val_print): Use
7054 common_val_print.
7055
040f66bd
TT
70562020-03-13 Tom Tromey <tom@tromey.com>
7057
7058 * riscv-tdep.c (riscv_print_one_register_info): Use
7059 common_val_print.
7060
a6e05a6c
TT
70612020-03-13 Tom Tromey <tom@tromey.com>
7062
7063 * mi/mi-main.c (output_register): Use common_val_print.
7064
3444c526
TT
70652020-03-13 Tom Tromey <tom@tromey.com>
7066
7067 * infcmd.c (default_print_one_register_info): Use
7068 common_val_print.
7069
c2a44efe
TT
70702020-03-13 Tom Tromey <tom@tromey.com>
7071
7072 * valprint.h (common_val_print_checked): Declare.
7073 * valprint.c (common_val_print_checked): New function.
7074 * stack.c (print_frame_arg): Use common_val_print_checked.
7075
b0c26e99
TT
70762020-03-13 Tom Tromey <tom@tromey.com>
7077
7078 * valprint.c (do_val_print): New function, from val_print.
7079 (val_print): Use do_val_print.
7080 (common_val_print): Use do_val_print.
7081
ce3acbe9
TT
70822020-03-13 Tom Tromey <tom@tromey.com>
7083
7084 * valprint.c (value_print): Use scoped_value_mark.
7085
96c7f873
TV
70862020-03-13 Tom de Vries <tdevries@suse.de>
7087
7088 PR symtab/25646
7089 * psymtab.c (partial_symtab::partial_symtab): Don't set
7090 globals_offset and statics_offset. Push element onto
7091 current_global_psymbols and current_static_psymbols stacks.
7092 (concat): New function.
7093 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7094 element from current_global_psymbols and current_static_psymbols
7095 stacks. Concat popped elements to global_psymbols and
7096 static_symbols.
7097 (add_psymbol_to_list): Use current_global_psymbols and
7098 current_static_psymbols stacks.
7099 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7100 current_static_psymbols fields.
7101
6ba0a321
CB
71022020-03-12 Christian Biesinger <cbiesinger@google.com>
7103
7104 * corelow.c (sniff_core_bfd): Remove.
7105 (class core_target) <m_core_vec>: Remove.
7106 (core_target::core_target): Update.
7107 (core_file_fns): Remove.
7108 (deprecated_add_core_fns): Remove.
7109 (default_core_sniffer): Remove.
7110 (sniff_core_bfd): Remove.
7111 (default_check_format): Remove.
7112 (gdb_check_format): Remove.
7113 (core_target_open): Update.
7114 (core_target::get_core_register_section): Update.
7115 (get_core_registers_cb): Update.
7116 (core_target::fetch_registers): Update.
7117 * gdbcore.h (struct core_fns): Remove.
7118 (deprecated_add_core_fns): Remove.
7119 (default_core_sniffer): Remove.
7120 (default_check_format): Remove.
7121
227031b2
TT
71222020-03-12 Tom Tromey <tom@tromey.com>
7123
7124 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7125 CORE_ADDR.
7126 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7127
53807e9f
TT
71282020-03-12 Tom Tromey <tom@tromey.com>
7129
7130 * remote.c (remote_target::download_tracepoint)
7131 (remote_target::enable_tracepoint)
7132 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7133 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7134 sprintf_vma.
7135
64f25102
TT
71362020-03-12 Tom Tromey <tom@tromey.com>
7137
7138 * symfile-mem.c: Update CORE_ADDR size assert.
7139
272cd5a3
SM
71402020-03-12 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * selftest.m4: Move to gdbsupport/.
7143 * acinclude.m4: Update path to selftest.m4.
7144
74cd3f9d
SM
71452020-03-12 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7148 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7149 gdbarch-selfselftests.c and selftest-arch.c.
7150 (SUBDIR_UNITTESTS_OBS): Rename to...
7151 (SELFTESTS_OBS): ... this.
7152 (COMMON_SFILES): Remove disasm-selftests.c and
7153 gdbarch-selftests.c.
7154 * configure.ac: Don't add selftest-arch.{c,o} to
7155 CONFIG_{SRCS,OBS}.
7156 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7157 preprocessor conditions.
7158
db6878ac
SM
71592020-03-12 Simon Marchi <simon.marchi@efficios.com>
7160
7161 * configure.ac: Don't source bfd/development.sh.
7162 * selftest.m4: Modify comment.
7163 * configure: Re-generate.
7164
4d696a5c
SM
71652020-03-12 Simon Marchi <simon.marchi@efficios.com>
7166
7167 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7168 not "true" or "false".
7169 * configure: Re-generate.
7170
8dd8e1c7
CB
71712020-03-12 Christian Biesinger <cbiesinger@google.com>
7172
7173 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7174 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7175 renamed to arm_nbsd_supply_gregset.
7176 (fetch_register): Update to call arm_nbsd_supply_gregset.
7177 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7178 (arm_netbsd_nat_target::fetch_registers): Update.
7179 (fetch_elfcore_registers): Removed.
7180 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7181 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7182 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7183 not require NetBSD system headers.
7184 (arm_nbsd_regset): New struct.
7185 (arm_nbsd_iterate_over_regset_sections): New function.
7186 (arm_netbsd_init_abi_common): Updated to call
7187 set_gdbarch_iterate_over_regset_sections.
7188 * arm-nbsd-tdep.h: New file.
7189
dd69bf7a
KB
71902020-03-11 Kevin Buettner <kevinb@redhat.com>
7191
7192 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7193 recursion.
7194
a0761e34
SM
71952020-03-11 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * configure: Re-generate.
7198
e7a82140
TT
71992020-03-11 Tom Tromey <tromey@adacore.com>
7200
7201 * ada-typeprint.c (print_choices): Fix comment.
7202
dcc050c8
AB
72032020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7206 previous item in the list, when the list has no items.
7207
1c33af77
TV
72082020-03-11 Tom de Vries <tdevries@suse.de>
7209
7210 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7211 PROP_LOCLIST handling code.
7212
8c95582d
AB
72132020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * buildsym-legacy.c (record_line): Pass extra parameter to
7216 record_line.
7217 * buildsym.c (buildsym_compunit::record_line): Take an extra
7218 parameter, reduce duplication in the line table, and record the
7219 is_stmt flag in the line table.
7220 * buildsym.h (buildsym_compunit::record_line): Add extra
7221 parameter.
7222 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7223 non-statement lines.
7224 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7225 this to the symtab builder.
7226 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7227 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7228 through to dwarf_record_line_1.
7229 * infrun.c (process_event_stop_test): When stepping, don't stop at
7230 a non-statement instruction, and only refresh the step info when
7231 we land in the middle of a line's range. Also add an extra
7232 comment.
7233 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7234 field.
7235 * record-btrace.c (btrace_find_line_range): Only record lines
7236 marked as is-statement.
7237 * stack.c (frame_show_address): Show the frame address if we are
7238 in a non-statement sal.
7239 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7240 (maintenance_print_one_line_table): Print a header for the is_stmt
7241 column, and include is_stmt information in the output.
7242 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7243 preference to non-statements.
7244 (find_pcs_for_symtab_line): Prefer is-statement entries.
7245 (find_line_common): Likewise.
7246 * symtab.h (struct linetable_entry): Add is_stmt field.
7247 (struct symtab_and_line): Likewise.
7248 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7249 arranging the line table.
7250
e4003a34
TV
72512020-03-07 Tom de Vries <tdevries@suse.de>
7252
7253 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7254 DIE.
7255
e8932576
TT
72562020-03-07 Tom Tromey <tom@tromey.com>
7257
7258 * valops.c (value_literal_complex): Remove obsolete comment.
7259 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7260 comment.
7261
29734269
SM
72622020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7263
7264 * infrun.h: Forward-declare thread_info.
7265 (set_step_info): Add thread_info parameter, add doc.
7266 * infrun.c (set_step_info): Add thread_info parameter, move doc
7267 to header.
7268 * infrun.c (process_event_stop_test): Pass thread to
7269 set_step_info call.
7270 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7271 set_step_info.
7272 (prepare_one_step): Add thread_info parameter, pass it to
7273 set_step_frame and prepare_one_step (recursive) call.
7274 (step_1): Pass thread to prepare_one_step call.
7275 (step_command_fsm::should_stop): Pass thread to
7276 prepare_one_step.
7277 (until_next_fsm): Pass thread to set_step_frame call.
7278 (finish_command): Pass thread to set_step_info call.
7279
b7d64b29
HD
72802020-03-06 Hannes Domani <ssbssa@yahoo.de>
7281
7282 * windows-tdep.c (windows_solib_create_inferior_hook):
7283 Check if inferior is running.
7284
09f2921c
TV
72852020-03-06 Tom de Vries <tdevries@suse.de>
7286
7287 * NEWS: Fix "the the".
7288 * ctfread.c: Same.
7289
fd760e79
TV
72902020-03-06 Tom de Vries <tdevries@suse.de>
7291
7292 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7293
20ea4a60
AB
72942020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7295
7296 * .dir-locals.el: Add a comment referencing the other copies of
7297 this file.
7298
0afbabf0
JB
72992020-03-05 John Baldwin <jhb@FreeBSD.org>
7300
7301 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7302 psargs.
7303
842806cb
TBA
73042020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7305
7306 * .gitattributes: New file.
7307
be1e3d3e
TT
73082020-03-04 Tom Tromey <tom@tromey.com>
7309
7310 * symmisc.c (print_symbol_bcache_statistics)
7311 (print_objfile_statistics): Update.
7312 * symfile.c (allocate_symtab): Use intern.
7313 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7314 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7315 macro_cache>: Remove.
7316 <string_cache>: New member.
7317 (struct objfile) <intern>: New methods.
7318 * elfread.c (elf_symtab_read): Use intern.
7319 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7320 (dwarf2_compute_name, dwarf2_physname)
7321 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7322 names.
7323 (guess_partial_die_structure_name): Update.
7324 (partial_die_info::fixup): Intern name.
7325 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7326 name.
7327 (dwarf2_name): Intern name. Update.
7328 * buildsym.c (buildsym_compunit::get_macro_table): Use
7329 string_cache.
7330
4e7625fd
TT
73312020-03-04 Tom Tromey <tom@tromey.com>
7332
7333 * jit.c (bfd_open_from_target_memory): Make "target" const.
7334 * corefile.c (gnutarget): Now const.
7335 * gdbcore.h (gnutarget): Now const.
7336
46f9f931
HD
73372020-03-04 Hannes Domani <ssbssa@yahoo.de>
7338
7339 * NEWS: Mention support for WOW64 processes.
7340 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7341 (amd64_windows_segment_register_p): Remove static.
7342 (_initialize_amd64_windows_nat): Update.
7343 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7344 * i386-windows-nat.c (context_offset): Update.
7345 (i386_mappings): Rename and remove static.
7346 (i386_windows_segment_register_p): Remove static.
7347 (_initialize_i386_windows_nat): Update.
7348 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7349 (STATUS_WX86_SINGLE_STEP): New macro.
7350 (EnumProcessModulesEx): New macro.
7351 (Wow64SuspendThread): New macro.
7352 (Wow64GetThreadContext): New macro.
7353 (Wow64SetThreadContext): New macro.
7354 (Wow64GetThreadSelectorEntry): New macro.
7355 (windows_set_context_register_offsets): Add static.
7356 (windows_set_segment_register_p): Likewise.
7357 (windows_add_thread): Adapt for WOW64 processes.
7358 (windows_fetch_one_register): Likewise.
7359 (windows_nat_target::fetch_registers): Likewise.
7360 (windows_store_one_register): Likewise.
7361 (display_selector): Likewise.
7362 (display_selectors): Likewise.
7363 (handle_exception): Likewise.
7364 (windows_continue): Likewise.
7365 (windows_nat_target::resume): Likewise.
7366 (windows_add_all_dlls): Likewise.
7367 (do_initial_windows_stuff): Likewise.
7368 (windows_nat_target::attach): Likewise.
7369 (windows_get_exec_module_filename): Likewise.
7370 (windows_nat_target::create_inferior): Likewise.
7371 (windows_xfer_siginfo): Likewise.
7372 (_initialize_loadable): Initialize Wow64SuspendThread,
7373 Wow64GetThreadContext, Wow64SetThreadContext,
7374 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7375 * windows-nat.h (windows_set_context_register_offsets):
7376 Remove declaration.
7377 (windows_set_segment_register_p): Likewise.
7378 (i386_windows_segment_register_p): Add declaration.
7379 (amd64_windows_segment_register_p): Likewise.
7380
440cf44e
LM
73812020-03-04 Luis Machado <luis.machado@linaro.org>
7382
7383 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7384 in "info registers" for AArch64/ARM.
7385
7386 The change caused "info registers" to not print GPR's.
7387
7388 gdb/ChangeLog:
7389
7390 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7391
7392 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7393 when reg->group is empty and reggroup is not.
7394
1009d92f
TT
73952020-03-03 Tom Tromey <tromey@adacore.com>
7396
7397 * dwarf2/frame.c (struct dwarf2_frame_cache)
7398 <checked_tailcall_bottom, entry_cfa_sp_offset,
7399 entry_cfa_sp_offset_p>: Remove members.
7400 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7401 (dwarf2_frame_prev_register): Don't call
7402 dwarf2_tailcall_sniffer_first.
7403 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7404 * frame-unwind.c (add_unwinder): New fuction.
7405 (frame_unwind_init): Use it. Add tailcall unwinder.
7406
5e5d66b6
AB
74072020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7408 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7409
7410 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7411 value should be printed as true.
7412
584cf46d
HD
74132020-03-03 Hannes Domani <ssbssa@yahoo.de>
7414
7415 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7416 (windows_init_abi): Set and use windows_so_ops.
7417
7b973adc
SDJ
74182020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7419
7420 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7421 when verifying if dealing with a convenience variable.
7422
bb7b70ab
LM
74232020-03-03 Luis Machado <luis.machado@linaro.org>
7424
7425 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7426
9822cb57
SM
74272020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7428
7429 * infrun.c (gdbarch_supports_displaced_stepping): New.
7430 (use_displaced_stepping): Break up conditions in smaller pieces.
7431 Use gdbarch_supports_displaced_stepping.
7432 (displaced_step_prepare_throw): Use
7433 gdbarch_supports_displaced_stepping.
7434
63e163f2
AB
74352020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * NEWS: Mention new behaviour of the history filename.
7438 * top.c (write_history_p): Add comment.
7439 (show_write_history_p): Add header comment, give a different
7440 message when history writing is on, but the history filename is
7441 empty.
7442 (history_filename): Add comment.
7443 (history_filename_empty): New function.
7444 (show_history_filename): Add header comment, give a different
7445 message when the filename is empty.
7446 (init_history): Compare history_filename against nullptr, and only
7447 read history if the filename is not empty.
7448 (set_history_filename): Add header comment, and only make
7449 non-empty filenames absolute.
7450 (init_main): Make the filename argument to 'set history filename'
7451 optional.
7452
81b86b97
CB
74532020-03-02 Christian Biesinger <cbiesinger@google.com>
7454
7455 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7456 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7457 (fetch_fp_register): Update.
7458 (fetch_fp_regs): Update.
7459 (store_fp_register): Update.
7460 (store_fp_regs): Update.
7461 (arm_netbsd_nat_target::read_description): New function.
7462 (fetch_elfcore_registers): Update.
7463
24ed6739
AB
74642020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7467 general_thread if the stop reply is missing a thread-id.
7468 (remote_target::process_stop_reply): Use the first non-exited
7469 thread if the target didn't pass a thread-id.
7470 * infrun.c (do_target_wait): Move call to
7471 switch_to_inferior_no_thread to ....
7472 (do_target_wait_1): ... here.
7473
a84bb2a0
JT
74742020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7475
7476 * debuginfod-support.c: Include defs.h first.
7477
658dadf0
TV
74782020-02-28 Tom de Vries <tdevries@suse.de>
7479
7480 * symfile.c (set_initial_language): Use default language for lookup.
7481
4ebe4877
SM
74822020-02-28 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7485 reader variable, pass `this` to read_cutu_die_from_dwo.
7486
e5da1139
AM
74872020-02-27 Aaron Merey <amerey@redhat.com>
7488
7489 * source.c (open_source_file): Check for nullptr when computing
7490 srcpath.
7491
317f7127
TT
74922020-02-27 Tom Tromey <tromey@adacore.com>
7493
7494 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7495 member.
7496 (dwarf2_add_field): Don't update nfields.
7497 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7498
3104d9ee
AB
74992020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7502 abs.
7503
b83470bf
TT
75042020-02-26 Tom Tromey <tom@tromey.com>
7505
7506 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7507 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7508 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7509 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7510 per_cu_data.
7511
edfe0a0c
TT
75122020-02-26 Tom Tromey <tom@tromey.com>
7513
7514 * dwarf2/index-write.c (psym_index_map): Change type.
7515 (add_address_entry_worker, write_one_signatured_type)
7516 (recursively_count_psymbols, recursively_write_psymbols)
7517 (class debug_names, psyms_seen_size, write_gdbindex)
7518 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7519
0d79cdc4
AM
75202020-02-26 Aaron Merey <amerey@redhat.com>
7521
7522 * Makefile.in: Handle optional debuginfod support.
7523 * NEWS: Update.
7524 * README: Add --with-debuginfod summary.
7525 * config.in: Regenerate.
7526 * configure: Regenerate.
7527 * configure.ac: Handle optional debuginfod support.
7528 * debuginfod-support.c: debuginfod helper functions.
7529 * debuginfod-support.h: Ditto.
7530 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7531 summary.
7532 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7533 when a dwz file cannot be found.
7534 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7535 debuginfo file cannot be found.
7536 * source.c (open_source_file): Query debuginfod servers when a
7537 source file cannot be found.
7538 * top.c (print_gdb_configuration): Include
7539 --{with,without}-debuginfod in the output.
7540
b65ce565
JG
75412020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7542
7543 * thread.c (thr_try_catch_cmd): Print thread name.
7544
d4c9a4f8
SM
75452020-02-26 Simon Marchi <simon.marchi@efficios.com>
7546
7547 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7548 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7549 dwarf2_fetch_die_type_sect_off): Move to...
7550 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7551 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7552 dwarf2_fetch_die_type_sect_off): ... here.
7553 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7554 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7555 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7556
0dce4280
TV
75572020-02-26 Tom de Vries <tdevries@suse.de>
7558
7559 PR gdb/25603
7560 * symfile.c (set_initial_language): Exit-early if
7561 language_mode == language_mode_manual.
7562
450a1bfc
SM
75632020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7564
7565 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7566 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7567 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7568
9e80cfa1
AB
75692020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * gdbtypes.c (create_array_type_with_stride): Handle negative
7572 array strides.
7573 * valarith.c (value_subscripted_rvalue): Likewise.
7574
09624f1f
LM
75752020-02-25 Luis Machado <luis.machado@linaro.org>
7576
7577 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7578
8cb5117c
SM
75792020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7580
7581 * loc.h (dwarf2_get_die_type): Move to...
7582 * read.h (dwarf2_get_die_type): ... here.
7583 * read.c (dwarf2_get_die_type): Move doc to header.
7584
c325c44e
JB
75852020-02-25 Joel Brobecker <brobecker@adacore.com>
7586
7587 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7588 'gnulib/Makefile.in' to the list.
7589
4ac93832
TT
75902020-02-24 Tom Tromey <tom@tromey.com>
7591
7592 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7593 Remove.
7594 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7595 XOBNEWVEC.
7596
197400e8
TT
75972020-02-24 Tom Tromey <tom@tromey.com>
7598
7599 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7600 New method.
7601 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7602 (dw2_do_instantiate_symtab, dw2_get_file_names)
7603 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7604
76935768
TT
76052020-02-24 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7608 make_scoped_restore.
7609 (dwarf2_psymtab::read_symtab): Don't clear
7610 reading_partial_symbols.
7611
a88ef40d
TV
76122020-02-24 Tom de Vries <tdevries@suse.de>
7613
7614 PR gdb/25592
7615 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7616
c9af6521
TV
76172020-02-24 Tom de Vries <tdevries@suse.de>
7618
7619 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7620 commands layout next/prev/regs.
7621
5707a07a
TT
76222020-02-22 Tom Tromey <tom@tromey.com>
7623
7624 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7625 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7626
3b0fb49e
TT
76272020-02-22 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7630
283be8bf
TT
76312020-02-22 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7634 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7635 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7636 * tui/tui.c (_initialize_tui): Add usage text.
7637
ca793b96
TT
76382020-02-22 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-win.c (tui_set_focus_command)
7641 (tui_set_win_height_command): Use error_no_arg.
7642 (_initialize_tui_win): Update help text.
7643 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7644
432b5c40
TT
76452020-02-22 Tom Tromey <tom@tromey.com>
7646
7647 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7648 * tui/tui-disasm.h (struct tui_disasm_window)
7649 <display_start_addr>: Declare.
7650 * tui/tui-source.h (struct tui_source_window)
7651 <display_start_addr>: Declare.
7652 * tui/tui-winsource.h (struct tui_source_window_base)
7653 <show_source_line, display_start_addr>: New methods.
7654 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7655 Rename and move to protected section.
7656 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7657 (tui_source_window_base::do_erase_source_content): Update.
7658 (tui_source_window_base::show_source_line): Now a method.
7659 (tui_source_window_base::show_source_content)
7660 (tui_source_window_base::tui_source_window_base)
7661 (tui_source_window_base::rerender)
7662 (tui_source_window_base::refill)
7663 (tui_source_window_base::do_scroll_horizontal)
7664 (tui_source_window_base::set_is_exec_point_at)
7665 (tui_source_window_base::update_breakpoint_info)
7666 (tui_source_window_base::update_exec_info): Update.
7667 * tui/tui-source.c (tui_source_window::set_contents)
7668 (tui_source_window::showing_source_p)
7669 (tui_source_window::do_scroll_vertical)
7670 (tui_source_window::location_matches_p)
7671 (tui_source_window::line_is_displayed): Update.
7672 (tui_source_window::display_start_addr): New method.
7673 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7674 (tui_disasm_window::do_scroll_vertical)
7675 (tui_disasm_window::location_matches_p): Update.
7676 (tui_disasm_window::display_start_addr): New method.
7677
01b1af32
TT
76782020-02-22 Tom Tromey <tom@tromey.com>
7679
7680 * NEWS: Add entry for gdb.register_window_type.
7681 * tui/tui-layout.h (window_factory): New typedef.
7682 (tui_register_window): Declare.
7683 * tui/tui-layout.c (saved_tui_windows): New global.
7684 (tui_apply_current_layout): Use it.
7685 (tui_register_window): New function.
7686 * python/python.c (do_start_initialization): Call
7687 gdbpy_initialize_tui.
7688 (python_GdbMethods): Add "register_window_type" function.
7689 * python/python-internal.h (gdbpy_register_tui_window)
7690 (gdbpy_initialize_tui): Declare.
7691 * python/py-tui.c: New file.
7692 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7693
fc96d20b
TT
76942020-02-22 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7697
935c78c0
TT
76982020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7701 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7702 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7703 (tui_set_win_focus_to): Move from tui-win.c.
7704
0240c8f1
TT
77052020-02-22 Tom Tromey <tom@tromey.com>
7706
7707 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7708 functions.
7709 (known_window_types): New global.
7710 (tui_get_window_by_name): Reimplement.
7711 (initialize_known_windows): New function.
7712 (validate_window_name): Rewrite.
7713 (_initialize_tui_layout): Call initialize_known_windows.
7714
fdb01f0c
TT
77152020-02-22 Tom Tromey <tom@tromey.com>
7716
7717 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7718 Remove constants.
7719 * tui/tui-winsource.h (struct tui_source_window_base)
7720 <tui_source_window_base>: Remove parameter.
7721 * tui/tui-winsource.c
7722 (tui_source_window_base::tui_source_window_base): Remove
7723 parameter.
7724 (tui_source_window_base::refill): Update.
7725 * tui/tui-stack.h (struct tui_locator_window)
7726 <tui_locator_window>: Update.
7727 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7728 Default the constructor.
7729 * tui/tui-regs.h (struct tui_data_item_window)
7730 <tui_data_item_window>: Default the constructor.
7731 (struct tui_data_window) <tui_data_window>: Likewise.
7732 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7733 Default the constructor.
7734 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7735 Default the constructor.
7736 <type>: Remove.
7737 (struct tui_win_info) <tui_win_info>: Default the constructor.
7738 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7739 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7740 Default the constructor.
7741
865a5aec
TT
77422020-02-22 Tom Tromey <tom@tromey.com>
7743
7744 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7745 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7746 * tui/tui-win.c (tui_resize_all): Don't call
7747 tui_delete_invisible_windows.
7748 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7749 done.
7750 (tui_set_layout): Update.
7751 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7752 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7753 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7754
e098d18c
TT
77552020-02-22 Tom Tromey <tom@tromey.com>
7756
7757 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7758 correctly.
7759
eb9c8874
TT
77602020-02-22 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7763
7eed1a8e
TT
77642020-02-22 Tom Tromey <tom@tromey.com>
7765
7766 * tui/tui-winsource.h (struct tui_source_window_iterator)
7767 <inner_iterator>: New etytypedef.
7768 <tui_source_window_iterator>: Take "end" parameter.
7769 <tui_source_window_iterator>: Take iterator.
7770 <operator*, advance>: Update.
7771 <m_iter>: Change type.
7772 <m_end>: New field.
7773 (struct tui_source_windows) <begin, end>: Update.
7774 * tui/tui-layout.c (tui_windows): New global.
7775 (tui_apply_current_layout): Clear tui_windows.
7776 (tui_layout_window::apply): Update tui_windows.
7777 * tui/tui-data.h (tui_windows): Declare.
7778 (all_tui_windows): Now inline function.
7779 (class tui_window_iterator, struct all_tui_windows): Remove.
7780
7c043ba6
TT
77812020-02-22 Tom Tromey <tom@tromey.com>
7782
7783 PR tui/17850:
7784 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7785 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7786 "height" argument.
7787 (class tui_layout_window) <get_sizes>: Likewise.
7788 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7789 argument.
7790 <get_sizes>: Add "height" argument.
7791 <m_vertical>: New field.
7792 * tui/tui-layout.c (tui_layout_split::clone): Update.
7793 (tui_layout_split::get_sizes): Add "height" argument.
7794 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7795 (tui_new_layout_command): Parse "-horizontal".
7796 (_initialize_tui_layout): Update help string.
7797 (tui_layout_split::specification): Add "-horizontal" when needed.
7798 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7799 argument.
7800 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7801 New methods.
7802
6bc56648
TT
78032020-02-22 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-layout.h (enum tui_adjust_result): New.
7806 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7807 (class tui_layout_window) <adjust_size>: Return
7808 tui_adjust_result. Rewrite.
7809 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7810 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7811
c22fef7e
TT
78122020-02-22 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7815 parameter and return types.
7816 (class tui_layout_base) <specification>: Add "depth".
7817 (class tui_layout_window) <specification>: Add "depth".
7818 (class tui_layout_split) <specification>: Add "depth".
7819 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7820 and return types.
7821 (tui_new_layout_command): Parse sub-layouts.
7822 (_initialize_tui_layout): Update help string.
7823 (tui_layout_window::specification): Add "depth".
7824 (add_layout_command): Update.
7825
ee325b61
TT
78262020-02-22 Tom Tromey <tom@tromey.com>
7827
7828 * NEWS: Add "tui new-layout" item.
7829 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7830 Add new-layout command to help text.
7831 (validate_window_name): New function.
7832 (tui_new_layout_command): New function.
7833 (_initialize_tui_layout): Register "new-layout".
7834 (tui_layout_window::specification): New method.
7835 (tui_layout_window::specification): New method.
7836 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7837 method.
7838 (class tui_layout_window) <specification>: New method.
7839 (class tui_layout_split) <specification>: New method.
7840
416eb92d
TT
78412020-02-22 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7844 * tui/tui-win.c (window_name_completer): Update comment.
7845 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7846 Declare method.
7847 (class tui_layout_window) <replace_window>: Likewise.
7848 (class tui_layout_split) <replace_window>: Likewise.
7849 (tui_set_layout): Don't declare.
7850 (tui_set_initial_layout): Declare function.
7851 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7852 (asm_regs_layout): New globals.
7853 (tui_current_layout, show_layout): Remove.
7854 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7855 (find_layout, tui_apply_layout): New function.
7856 (layout_completer): Remove.
7857 (tui_next_layout): Reimplement.
7858 (tui_next_layout_command): New function.
7859 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7860 (tui_regs_layout): Reimplement.
7861 (tui_regs_layout_command): New function.
7862 (extract_display_start_addr): Rewrite.
7863 (next_layout, prev_layout): Remove.
7864 (tui_layout_window::replace_window): New method.
7865 (tui_layout_split::replace_window): New method.
7866 (destroy_layout): New function.
7867 (layout_list): New global.
7868 (add_layout_command): New function.
7869 (initialize_layouts): Update.
7870 (tui_layout_command): New function.
7871 (_initialize_tui_layout): Install "layout" commands.
7872 * tui/tui-data.h (enum tui_layout_type): Remove.
7873 (tui_current_layout): Don't declare.
7874
0dbc2fc7
TT
78752020-02-22 Tom Tromey <tom@tromey.com>
7876
7877 * tui/tui-regs.c (tui_reg_layout): Remove.
7878 (tui_reg_command): Use tui_regs_layout.
7879 * tui/tui-layout.h (tui_reg_command): Declare.
7880 * tui/tui-layout.c (tui_reg_command): New function.
7881
5afe342e
TT
78822020-02-22 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui.c (tui_rl_delete_other_windows): Call
7885 tui_remove_some_windows.
7886 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7887 Declare method.
7888 (class tui_layout_window) <remove_windows>: New method.
7889 (class tui_layout_split) <remove_windows>: Declare.
7890 (tui_remove_some_windows): Declare.
7891 * tui/tui-layout.c (tui_remove_some_windows): New function.
7892 (tui_layout_split::remove_windows): New method.
7893
427326a8
TT
78942020-02-22 Tom Tromey <tom@tromey.com>
7895
7896 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7897 * tui/tui-layout.h (tui_next_layout): Declare.
7898 * tui/tui-layout.c (tui_next_layout): New function.
7899
3fe12b6d
TT
79002020-02-22 Tom Tromey <tom@tromey.com>
7901
7902 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7903 correct coordinates.
7904
59b8b5d2
TT
79052020-02-22 Tom Tromey <tom@tromey.com>
7906
7907 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7908 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7909 DATA_WIN case.
7910
2a3d458b
TT
79112020-02-22 Tom Tromey <tom@tromey.com>
7912
7913 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7914 TUI_DISASM_WIN, not tui_win_list.
7915
3f0cbb04
TT
79162020-02-22 Tom Tromey <tom@tromey.com>
7917
7918 * valprint.c (generic_val_print_enum_1)
7919 (val_print_type_code_flags): Style member names.
7920 * rust-lang.c (val_print_struct, rust_print_enum)
7921 (rust_print_struct_def, rust_internal_print_type): Style member
7922 names.
7923 * p-valprint.c (pascal_object_print_value_fields): Style member
7924 names. Only call fprintf_symbol_filtered for static members.
7925 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7926 * f-valprint.c (f_val_print): Style member names.
7927 * f-typeprint.c (f_type_print_base): Style member names.
7928 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7929 call fprintf_symbol_filtered for static members.
7930 (cp_print_class_member): Style member names.
7931 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7932 member names.
7933 * ada-valprint.c (ada_print_scalar): Style enum names.
7934 (ada_val_print_enum): Likewise.
7935 * ada-typeprint.c (print_enum_type): Style enum names.
7936
d4d947ae
TT
79372020-02-21 Tom Tromey <tom@tromey.com>
7938
7939 * psympriv.h (struct partial_symtab): Update comment.
7940
e94e944b
TT
79412020-02-21 Tom Tromey <tromey@adacore.com>
7942
7943 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7944 type is CORE_ADDR.
7945
1eb73179
TV
79462020-02-21 Tom de Vries <tdevries@suse.de>
7947
7948 PR gdb/25534
7949 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7950 if dependencies[i]->user != NULL.
7951
4f180d53
AT
79522020-02-21 Ali Tamur <tamur@google.com>
7953
7954 * dwarf2/read.c (dwarf2_name): Add null check.
7955
22b6cd70
TT
79562020-02-20 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7959 ">=", in binary search.
7960 (dwarf2_find_containing_comp_unit): New overload.
7961 (run_test): New self-test.
7962 (_initialize_dwarf2_read): Register new test.
7963
bd0cf5a6
NC
79642020-02-20 Nelson Chu <nelson.chu@sifive.com>
7965
7966 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7967 * riscv-tdep.h: Likewise.
7968 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7969 rv32-only CSR.
7970 * features/riscv/64bit-csr.xml: Regenerated.
7971
3f702acd
SDJ
79722020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7973 Tom Tromey <tom@tromey.com>
7974
7975 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7976 of 'fputc_unfiltered'.
7977 (putchar_unfiltered): Call 'fputc_unfiltered'.
7978 (fputc_unfiltered): Call 'fputs_unfiltered'.
7979
d13c7322
AB
79802020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * config.in: Regenerate.
7983 * configure: Regenerate.
7984 * configure.ac: Add --with-python-libdir option.
7985 * main.c: Use WITH_PYTHON_LIBDIR.
7986
869d8950
TT
79872020-02-19 Tom Tromey <tom@tromey.com>
7988
7989 * symtab.c (general_symbol_info::compute_and_set_names): Use
7990 obstack_strndup. Simplify call to symbol_set_demangled_name.
7991
298e9637
SM
79922020-02-19 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * dwarf2/read.c (allocate_signatured_type_table,
7995 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7996 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7997 Remove objfile parameter, update all callers.
7998
08410482
DE
79992020-02-19 Doug Evans <dje@google.com>
8000
8001 PR rust/25535
8002 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8003 rust_enum_variant calculation.
8004
dfdeeca1
TT
80052020-02-19 Tom Tromey <tromey@adacore.com>
8006
8007 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8008
2ef5453b
TT
80092020-02-19 Tom Tromey <tromey@adacore.com>
8010
8011 * ada-lang.c (cache_symbol): Use obstack_strdup.
8012
9f1528a1
AB
80132020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8014
8015 * configure: Regenerate.
8016
d3c22fa8
TT
80172020-02-19 Tom Tromey <tromey@adacore.com>
8018
8019 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8020 NULL check.
8021
bf84f706
MR
80222020-02-19 Maciej W. Rozycki <macro@wdc.com>
8023
8024 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8025
d1c9b20f
AB
80262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8029 if GDBSERVER is not defined.
8030 (riscv_tdesc_cache): Likewise, also store const target_desc.
8031 (STATIC_IN_GDB): Define.
8032 (riscv_create_target_description): Update declaration with
8033 STATIC_IN_GDB.
8034 (riscv_lookup_target_description): New function, only define if
8035 GDBSERVER is not defined.
8036 * arch/riscv.h (riscv_create_target_description): Declare only
8037 when GDBSERVER is defined.
8038 (riscv_lookup_target_description): New declaration when GDBSERVER
8039 is not defined.
8040 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8041 (riscv_linux_read_features): ...this, and return
8042 riscv_gdbarch_features instead of target_desc.
8043 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8044 (riscv_linux_read_description): Rename to...
8045 (riscv_linux_read_features): ...this.
8046 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8047 Update to use riscv_gdbarch_features and
8048 riscv_lookup_target_description.
8049 * riscv-tdep.c (riscv_find_default_target_description): Use
8050 riscv_lookup_target_description instead of
8051 riscv_create_target_description.
8052
373d7ac0
SM
80532020-02-18 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * valprint.c (generic_val_print_enum_1): When printing a flag
8056 enum with value 0 and there is no enumerator with value 0, print
8057 just "0" instead of "(unknown: 0x0)".
8058
b29a2df0
SM
80592020-02-18 Simon Marchi <simon.marchi@efficios.com>
8060
8061 * valprint.c (generic_val_print_enum_1): Print unknown part of
8062 flag enum in hex.
8063
6740f0cc
SM
80642020-02-18 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8067 flag enums to contain duplicate enumerators.
8068 * valprint.c (generic_val_print_enum_1): Update comment.
8069
edd45eb0
SM
80702020-02-18 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * dwarf2/read.c: Include "count-one-bits.h".
8073 (update_enumeration_type_from_children): If an enumerator has
8074 multiple bits set, don't treat the enumeration as a "flag enum".
8075 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8076 of flag enums have 0 or 1 bit set.
8077
6d0cf446
BE
80782020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8079
8080 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8081 conversion.
8082 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8083 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8084 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8085 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8086 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8087
7001c1b7
SM
80882020-02-18 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8091
fdb61c6c
SM
80922020-02-14 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8095 displaced_step_closure_up.
8096 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8097 (struct displaced_step_closure_up):
8098 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8099 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8100 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8101 Likewise.
8102 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8103 * gdbarch.c, gdbarch.h: Re-generate.
8104 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8105 displaced_step_closure_up.
8106 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8107 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8108 * infrun.h (displaced_step_closure_up): New type alias.
8109 (struct displaced_step_inferior_state) <step_closure>: Change
8110 type to displaced_step_closure_up.
8111 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8112 displaced_step_closure_up.
8113 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8114
a4a38eb4
TT
81152020-02-14 Tom Tromey <tom@tromey.com>
8116
8117 * minidebug.c (gnu_debug_key): New global.
8118 (find_separate_debug_file_in_section): Use it.
8119
e8217e61
SM
81202020-02-14 Simon Marchi <simon.marchi@efficios.com>
8121
8122 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8123 std::unique_ptr.
8124 * gdbarch.c: Re-generate.
8125 * gdbarch.h: Re-generate.
8126 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8127 change.
8128 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8129 type to std::unique_ptr.
8130 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8131 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8132 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8133 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8134 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8135 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8136 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8137 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8138 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8139
d8d83535
SM
81402020-02-14 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8143 std::unique_ptr.
8144 (displaced_step_clear): Rename to...
8145 (displaced_step_reset): ... this. Just call displaced->reset ().
8146 (displaced_step_clear_cleanup): Rename to...
8147 (displaced_step_reset_cleanup): ... this.
8148 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8149 (displaced_step_fixup): Likewise.
8150 (resume_1): Likewise.
8151 (handle_inferior_event): Restore child's memory before calling
8152 displaced_step_fixup on the parent.
8153 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8154 to std::unique_ptr.
8155 <step_closure>: Change type to std::unique_ptr.
8156
5f661e03
SM
81572020-02-14 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * arm-tdep.c: Include count-one-bits.h.
8160 (cleanup_block_store_pc): Use count_one_bits.
8161 (cleanup_block_load_pc): Use count_one_bits.
8162 (arm_copy_block_xfer): Use count_one_bits.
8163 (thumb2_copy_block_xfer): Use count_one_bits.
8164 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8165 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8166 (thumb_get_next_pcs_raw): Use count_one_bits.
8167 (arm_get_next_pcs_raw): Use count_one_bits_l.
8168 * arch/arm.c (bitcount): Remove.
8169 * arch/arm.h (bitcount): Remove.
8170
8084e579
TT
81712020-02-14 Tom Tromey <tromey@adacore.com>
8172
8173 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8174 Update.
8175 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8176 * dwarf2/loc.c (call_site_find_chain_1): Return
8177 unique_xmalloc_ptr.
8178 (call_site_find_chain): Likewise.
8179
258bf0ee
RB
81802020-02-14 Richard Biener <rguenther@suse.de>
8181
8182 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8183 on expression with division operators.
8184
f98a8458
AKS
81852020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8186
8187 * MAINTAINERS (Write After Approval): Adding myself.
8188
d1437c0e
TT
81892020-02-12 Tom Tromey <tom@tromey.com>
8190
8191 * event-loop.c (event_data, gdb_event, event_handler_func):
8192 Remove.
8193
3d4560f7
TT
81942020-02-12 Tom Tromey <tom@tromey.com>
8195
8196 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8197 (dwarf2_frame_objfile_data): Add comment.
8198 (find_comp_unit, set_comp_unit): New functions.
8199 (dwarf2_frame_find_fde): Use find_comp_unit.
8200 (dwarf2_build_frame_info): Use set_comp_unit.
8201
21982304
TT
82022020-02-12 Tom Tromey <tom@tromey.com>
8203
8204 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8205 (comp_unit): Don't initialize objfile.
8206 (execute_cfa_program): Add text_offset parameter.
8207 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8208 (dwarf2_frame_cache): Update.
8209 (dwarf2_build_frame_info): Don't set "objfile" member.
8210
4debb237
TT
82112020-02-12 Tom Tromey <tom@tromey.com>
8212
8213 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8214 (decode_frame_entry): Likewise.
8215 (dwarf2_build_frame_info): Update.
8216
0d404d44
TT
82172020-02-12 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8220 (decode_frame_entry_1): Use the comp_unit obstack.
8221
a7a3ae5c
TT
82222020-02-12 Tom Tromey <tom@tromey.com>
8223
8224 * dwarf2/frame.c (struct comp_unit): Add initializers and
8225 constructor.
8226 (dwarf2_frame_objfile_data): Store a comp_unit.
8227 (dwarf2_frame_find_fde): Update.
8228 (dwarf2_build_frame_info): Use "new".
8229
a9d65418
TT
82302020-02-12 Tom Tromey <tom@tromey.com>
8231
8232 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8233 (dwarf2_fde_table): Typedef for std::vector.
8234 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8235 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8236 (decode_frame_entry): Update.
8237 (dwarf2_build_frame_info): Use "new".
8238
7559c217
CB
82392020-02-12 Christian Biesinger <cbiesinger@google.com>
8240
8241 * arm-tdep.c (arm_gdbarch_init): Update.
8242 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8243 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8244 have_neon, is_m>: Change to bool.
8245
aeefc73c
CB
82462020-02-12 Christian Biesinger <cbiesinger@google.com>
8247
8248 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8249
d27b8e5f
TT
82502020-02-12 Tom Tromey <tom@tromey.com>
8251
8252 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8253
cd5900f3
HD
82542020-02-12 Hannes Domani <ssbssa@yahoo.de>
8255
8256 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8257 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8258
f056b22b
TT
82592020-02-11 Tom Tromey <tom@tromey.com>
8260
8261 * psymtab.h: Update comment.
8262
f92ff6b5
TT
82632020-02-11 Tom Tromey <tom@tromey.com>
8264
8265 * gdb_obstack.h (struct auto_obstack): Use
8266 DISABLE_COPY_AND_ASSIGN.
8267
3fd6912b
TT
82682020-02-11 Tom Tromey <tom@tromey.com>
8269
8270 * dwarf2/frame.h (struct objfile): Don't forward declare.
8271
69ed9b74
CB
82722020-02-11 Christian Biesinger <cbiesinger@google.com>
8273
8274 * cris-tdep.c (cris_supply_gregset): Change signature to match
8275 what struct regset expects.
8276 (cris_regset): New struct.
8277 (fetch_core_registers): Remove.
8278 (cris_iterate_over_regset_sections): New function.
8279 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8280 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8281
bda874f6
CB
82822020-02-11 Christian Biesinger <cbiesinger@google.com>
8283
8284 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8285 registers.
8286
754e1564
CB
82872020-02-11 Christian Biesinger <cbiesinger@google.com>
8288
8289 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8290
8ddd8e0e
SM
82912020-02-11 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * configure: Re-generate.
8294
898e7f60
SM
82952020-02-11 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * configure: Re-generate.
8298
58df732b
SM
82992020-02-11 Simon Marchi <simon.marchi@efficios.com>
8300
8301 * acinclude: Update warning.m4 path.
8302 * warning.m4: Move to gdbsupport.
8303
da5bd37e
TT
83042020-02-11 Tom Tromey <tromey@adacore.com>
8305
8306 * remote.c (remote_console_output): Update.
8307 * printcmd.c (printf_command): Update.
8308 * event-loop.c (gdb_wait_for_event): Update.
8309 * linux-nat.c (sigchld_handler): Update.
8310 * remote-sim.c (gdb_os_write_stdout): Update.
8311 (gdb_os_flush_stdout): Update.
8312 (gdb_os_flush_stderr): Update.
8313 (gdb_os_write_stderr): Update.
8314 * exceptions.c (print_exception): Update.
8315 * remote-fileio.c (remote_fileio_func_read): Update.
8316 (remote_fileio_func_write): Update.
8317 * tui/tui.c (tui_enable): Update.
8318 * tui/tui-interp.c (tui_interp::init): Update.
8319 * utils.c (init_page_info): Update.
8320 (putchar_unfiltered, fputc_unfiltered): Update.
8321 (gdb_flush): Update.
8322 (emit_style_escape): Update.
8323 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8324 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8325 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8326 (stderr_file::write): Update.
8327 (stderr_file::puts): Update.
8328 * ui-file.h (ui_file_isatty, ui_file_write)
8329 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8330 (ui_file_puts): Don't declare.
8331
85f0dd3c
TV
83322020-02-10 Tom de Vries <tdevries@suse.de>
8333
8334 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8335 sentinel to char *.
8336
2e927613
TV
83372020-02-09 Tom de Vries <tdevries@suse.de>
8338
8339 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8340 filename if it matches "<artificial>".
8341
6bafc845
HD
83422020-02-09 Hannes Domani <ssbssa@yahoo.de>
8343
8344 * windows-tdep.c (struct enum_value_name): New struct.
8345 (create_enum): New function.
8346 (windows_get_siginfo_type): Create and use enum types.
8347
7928d571
HD
83482020-02-09 Hannes Domani <ssbssa@yahoo.de>
8349
8350 * NEWS: Mention $_siginfo support for Windows.
8351 * windows-nat.c (handle_exception): Set siginfo_er.
8352 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8353 (windows_xfer_siginfo): New function.
8354 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8355 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8356 (init_windows_gdbarch_data): New function.
8357 (get_windows_gdbarch_data): New function.
8358 (windows_get_siginfo_type): New function.
8359 (windows_init_abi): Register windows_get_siginfo_type.
8360 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8361
6751ebae
TT
83622020-02-08 Tom Tromey <tom@tromey.com>
8363
8364 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8365 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8366 <keep>: Declare method.
8367 <m_keep>: Remove member.
8368 <~cutu_reader>: Remove.
8369 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8370 (cutu_reader::cutu_reader): Update.
8371 (cutu_reader::keep): Rename from ~cutu_reader.
8372 (process_psymtab_comp_unit, build_type_psymtabs_1)
8373 (process_skeletonless_type_unit, load_partial_comp_unit)
8374 (load_full_comp_unit, dwarf2_read_addr_index)
8375 (read_signatured_type): Update.
8376
135f5437
TT
83772020-02-08 Tom Tromey <tom@tromey.com>
8378
8379 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8380 "want_partial_unit" parameter.
8381 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8382 Inline check for DW_TAG_partial_unit.
8383 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8384
9f66ff1c
TT
83852020-02-08 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8388 read.c.
8389 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8390 read.c.
8391
c8a7a66f
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.c (read_address): Move to comp-unit.c.
8395 (dwarf2_rnglists_process, dwarf2_ranges_process)
8396 (read_attribute_value, dwarf_decode_lines_1)
8397 (var_decode_location, decode_locdesc): Update.
8398 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8399 read.c. Remove "cu" parameter.
8400 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8401 method.
8402
8266302d
TT
84032020-02-08 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8406 (read_indirect_line_string): Update.
8407 * dwarf2/comp-unit.c (read_offset): Remove.
8408 (read_comp_unit_head): Update.
8409 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8410 method.
8411 (read_offset): Don't declare.
8412
4057dfde
TT
84132020-02-08 Tom Tromey <tom@tromey.com>
8414
8415 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8416 * dwarf2/read.c (struct comp_unit_head): Move to
8417 dwarf2/comp-unit.h.
8418 (enum class rcuh_kind): Move to comp-unit.h.
8419 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8420 (read_comp_unit_head, error_check_comp_unit_head)
8421 (read_and_check_comp_unit_head): Move to comp-unit.c.
8422 (read_offset, dwarf_unit_type_name): Likewise.
8423 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8424 (cutu_reader::cutu_reader, read_call_site_scope)
8425 (find_partial_die, follow_die_offset): Update.
8426 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8427
24aa364d
TT
84282020-02-08 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/read.c (read_offset_1): Move to leb.c.
8431 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8432 (dwarf_decode_macro_bytes): Update.
8433 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8434 * dwarf2/leb.h (read_offset): Declare.
8435
2c7d5afc
TT
84362020-02-08 Tom Tromey <tom@tromey.com>
8437
8438 * dwarf2/read.c (dwarf2_section_size): Remove.
8439 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8440 Update.
8441 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8442
4075cb26
TT
84432020-02-08 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/read.c (read_initial_length): Move to leb.c.
8446 * dwarf2/leb.h (read_initial_length): Declare.
8447 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8448 handle_nonstd parameter.
8449 * dwarf2/frame.c (read_initial_length): Remove.
8450 (decode_frame_entry_1): Update.
8451
09ba997f
TT
84522020-02-08 Tom Tromey <tom@tromey.com>
8453
8454 * dwarf2/loc.c (dwarf2_find_location_expression)
8455 (dwarf_evaluate_loc_desc::get_tls_address)
8456 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8457 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8458 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8459 (dwarf2_compile_property_to_c)
8460 (dwarf2_loc_desc_get_symbol_read_needs)
8461 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8462 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8463 (loclist_describe_location, loclist_tracepoint_var_ref)
8464 (loclist_generate_c_location): Update.
8465 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8466 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8467 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8468 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8469 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8470 (dwarf2_per_cu_data::addr_size)
8471 (dwarf2_per_cu_data::ref_addr_size)
8472 (dwarf2_per_cu_data::text_offset)
8473 (dwarf2_per_cu_data::addr_type): Now methods.
8474 (per_cu_header_read_in): Make per_cu "const".
8475 (dwarf2_version): Remove.
8476 (dwarf2_per_cu_data::int_type): Now a method.
8477 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8478 (set_die_type, read_array_type, read_subrange_index_type)
8479 (read_tag_string_type, read_subrange_type): Update.
8480 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8481 offset_size, ref_addr_size, text_offset, addr_type, version,
8482 objfile, int_type, addr_sized_int_type>: Declare methods.
8483
96c738c0
TT
84842020-02-08 Tom Tromey <tom@tromey.com>
8485
8486 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8487 Move earlier.
8488
8fdd972c
TT
84892020-02-08 Tom Tromey <tom@tromey.com>
8490
8491 * dwarf2/read.h (dwarf_line_debug): Declare.
8492 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8493 * dwarf2/read.c: Move line_header code to new files.
8494 (dwarf_line_debug): No longer static.
8495 * dwarf2/line-header.c: New file.
8496 * dwarf2/line-header.h: New file.
8497
03075812
TT
84982020-02-08 Tom Tromey <tom@tromey.com>
8499
8500 * dwarf2/read.c (struct line_header) <file_full_name,
8501 file_file_name>: Return unique_xmalloc_ptr.
8502 (line_header::file_file_name): Update.
8503 (line_header::file_full_name): Update.
8504 (dw2_get_file_names_reader): Update.
8505 (macro_start_file): Update.
8506
bb822404
TT
85072020-02-08 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.c (struct line_header) <file_full_name,
8510 file_file_name>: Declare methods.
8511 (dw2_get_file_names_reader): Update.
8512 (file_file_name): Now a method.
8513 (file_full_name): Likewise.
8514 (macro_start_file): Update.
8515
009b64fc
TT
85162020-02-08 Tom Tromey <tom@tromey.com>
8517
8518 * dwarf2/read.c (dwarf_always_disassemble)
8519 (show_dwarf_always_disassemble): Move to loc.c.
8520 (_initialize_dwarf2_read): Move "always-disassemble" registration
8521 to loc.c.
8522 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8523 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8524 static.
8525 (show_dwarf_always_disassemble): Move from read.c.
8526 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8527
5895093f
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8531 (create_quick_file_names_table): Return htab_up.
8532 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8533 Update.
8534 * dwarf2/read.h (struct dwarf2_per_objfile)
8535 <quick_file_names_table>: Now htab_up.
8536
b3b32279
TT
85372020-02-08 Tom Tromey <tom@tromey.com>
8538
8539 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8540
1d33d811
TT
85412020-02-08 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8544 Rewrite.
8545 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8546 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8547 (abbrev_table::abbrev_table): No longer inline.
8548 (ABBREV_HASH_SIZE): Remove.
8549 (abbrev_table::m_abbrevs): Now an htab_up.
8550
86de1d91
TT
85512020-02-08 Tom Tromey <tom@tromey.com>
8552
8553 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8554 (cutu_reader): Update.
8555 (build_type_psymtabs_1): Update.
8556 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8557 (abbrev_table::alloc_abbrev): Update.
8558 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8559 (abbrev_table::read): New static method, renamed from
8560 abbrev_table_read_table.
8561 (abbrev_table::alloc_abbrev)
8562 (abbrev_table::add_abbrev): Now private.
8563 (abbrev_table::abbrev_table): Now private.
8564 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8565
0335378b
TT
85662020-02-08 Tom Tromey <tom@tromey.com>
8567
8568 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8569 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8570 htab_up.
8571
48b490f2
TT
85722020-02-08 Tom Tromey <tom@tromey.com>
8573
8574 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8575 htab_up.
8576 (lookup_dwo_unit_in_dwp): Update.
8577 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8578 on obstack.
8579
bc68fb19
TT
85802020-02-08 Tom Tromey <tom@tromey.com>
8581
8582 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8583 obstack.
8584
d15acc42
TT
85852020-02-08 Tom Tromey <tom@tromey.com>
8586
8587 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8588 line_header_hash.
8589 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8590 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8591 Change type to htab_up.
8592
eaa5fa8b
TT
85932020-02-08 Tom Tromey <tom@tromey.com>
8594
8595 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8596 htab_up. Don't allocate on obstack.
8597 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8598 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8599 Change type to htab_up.
8600
b0b6a987
TT
86012020-02-08 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8604 Change type to htab_up.
8605 * dwarf2/read.c (create_signatured_type_table_from_index)
8606 (create_signatured_type_table_from_debug_names)
8607 (create_all_type_units, add_type_unit)
8608 (lookup_dwo_signatured_type, lookup_signatured_type)
8609 (process_skeletonless_type_unit): Update.
8610 (create_debug_type_hash_table, create_debug_types_hash_table):
8611 Change type of types_htab.
8612 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8613 htab_up. Don't allocate on obstack.
8614 (create_cus_hash_table): Change type of cus_htab parameter.
8615 (struct dwo_file) <cus, tus>: Now htab_up.
8616 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8617 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8618 (queue_and_load_all_dwo_tus): Update.
8619 * dwarf2/index-write.c (write_gdbindex): Update.
8620 (write_debug_names): Update.
8621
39856def
TT
86222020-02-08 Tom Tromey <tom@tromey.com>
8623
8624 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8625 dwarf2/read.c. Remove "next" member. Add constructor ntad
8626 destructor.
8627 (struct dwarf2_per_objfile) <queue>: New member.
8628 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8629 dwarf2/read.h.
8630 (dwarf2_queue, dwarf2_queue_tail): Remove.
8631 (class dwarf2_queue_guard): Add parameter to constructor. Use
8632 DISABLE_COPY_AND_ASSIGN.
8633 <m_per_objfile>: New member.
8634 <~dwarf2_queue_guard>: Rewrite.
8635 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8636 Update.
8637 (~dwarf2_queue_item): New.
8638
3e225074
TT
86392020-02-08 Tom Tromey <tom@tromey.com>
8640
8641 * dwarf2/read.c (struct die_info) <has_children>: New member.
8642 (dw2_get_file_names_reader): Remove has_children.
8643 (dw2_get_file_names): Update.
8644 (read_cutu_die_from_dwo): Remove has_children.
8645 (cutu_reader::init_tu_and_read_dwo_dies)
8646 (cutu_reader::cutu_reader): Update.
8647 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8648 Remove has_children.
8649 (build_type_psymtabs_1, process_skeletonless_type_unit)
8650 (load_partial_comp_unit, load_full_comp_unit): Update.
8651 (create_dwo_cu_reader): Remove has_children.
8652 (create_cus_hash_table, read_die_and_children): Update.
8653 (read_full_die_1,read_full_die): Remove has_children.
8654 (read_signatured_type): Update.
8655 (class cutu_reader) <has_children>: Remove.
8656
82ca8957
TT
86572020-02-08 Tom Tromey <tom@tromey.com>
8658
8659 * dwarf2/expr.c: Rename from dwarf2expr.c.
8660 * dwarf2/expr.h: Rename from dwarf2expr.h.
8661 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8662 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8663 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8664 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8665 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8666 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8667 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8668 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8669 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8670 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8671 * dwarf2/loc.c: Rename from dwarf2loc.c.
8672 * dwarf2/loc.h: Rename from dwarf2loc.h.
8673 * dwarf2/read.c: Rename from dwarf2read.c.
8674 * dwarf2/read.h: Rename from dwarf2read.h.
8675 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8676 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8677 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8678 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8679 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8680 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8681 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8682 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8683 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8684 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8685 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8686 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8687 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8688 Update.
8689 * Makefile.in (COMMON_SFILES): Update.
8690 (HFILES_NO_SRCDIR): Update.
8691
9e35d499
TT
86922020-02-08 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8695 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8696
1eba2311
TT
86972020-02-08 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2read.h (struct die_info): Don't declare.
8700
e41c2da2
TT
87012020-02-08 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2read.h (die_info_ptr): Remove typedef.
8704
4fc6c0d5
TT
87052020-02-08 Tom Tromey <tom@tromey.com>
8706
8707 * dwarf2read.c (read_call_site_scope)
8708 (handle_data_member_location, dwarf2_add_member_fn)
8709 (mark_common_block_symbol_computed, read_common_block)
8710 (attr_to_dynamic_prop, partial_die_info::read)
8711 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8712 (dwarf2_symbol_mark_computed, set_die_type): Update.
8713 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8714 method.
8715 (attr_form_is_block): Don't declare.
8716 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8717
cd6c91b4
TT
87182020-02-08 Tom Tromey <tom@tromey.com>
8719
8720 * dwarf2read.c (dwarf2_find_base_address, )
8721 (read_call_site_scope, rust_containing_type)
8722 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8723 (handle_data_member_location, dwarf2_add_member_fn)
8724 (get_alignment, read_structure_type, process_structure_scope)
8725 (mark_common_block_symbol_computed, read_common_block)
8726 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8727 (partial_die_info::read, read_attribute_value, new_symbol)
8728 (lookup_die_type, dwarf2_get_ref_die_offset)
8729 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8730 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8731 (dwarf2_symbol_mark_computed): Update.
8732 * dwarf2/attribute.h (struct attribute) <value_as_address,
8733 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8734 methods.
8735 (value_as_address, attr_form_is_section_offset)
8736 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8737 * dwarf2/attribute.c (attribute::value_as_address)
8738 (attribute::form_is_section_offset, attribute::form_is_constant)
8739 (attribute::form_is_ref): Now methods.
8740
162dce55
TT
87412020-02-08 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2read.c (struct attribute, DW_STRING)
8744 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8745 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8746 (attr_form_is_block, attr_form_is_section_offset)
8747 (attr_form_is_constant, attr_form_is_ref): Move.
8748 * dwarf2/attribute.h: New file.
8749 * dwarf2/attribute.c: New file, from dwarf2read.c.
8750 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8751
3054dd54
TT
87522020-02-08 Tom Tromey <tom@tromey.com>
8753
8754 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8755 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8756 Move.
8757 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8758 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8759 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8760 abbrev.c.
8761 * dwarf2/abbrev.h: New file.
8762 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8763 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8764
96b79293
TT
87652020-02-08 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8768 (dwarf2_section_size, dwarf2_get_section_info)
8769 (create_signatured_type_table_from_debug_names)
8770 (create_addrmap_from_aranges, read_debug_names_from_section)
8771 (get_gdb_index_contents_from_section, read_comp_unit_head)
8772 (error_check_comp_unit_head, read_abbrev_offset)
8773 (create_debug_type_hash_table, init_cu_die_reader)
8774 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8775 (read_comp_units_from_section, create_cus_hash_table)
8776 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8777 (create_dwp_v2_section, dwarf2_rnglists_process)
8778 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8779 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8780 (read_indirect_string_from_dwz, read_addr_index_1)
8781 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8782 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8783 (fill_in_loclist_baton): Update.
8784 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8785 get_containing_section, get_bfd_owner, get_bfd_section,
8786 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8787 (dwarf2_read_section, get_section_name, get_section_file_name)
8788 (get_containing_section, get_section_bfd_owner)
8789 (get_section_bfd_section, get_section_name, get_section_file_name)
8790 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8791 declare.
8792 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8793 (dwarf2_section_info::get_bfd_owner)
8794 (dwarf2_section_info::get_bfd_section)
8795 (dwarf2_section_info::get_name)
8796 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8797 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8798 (dwarf2_section_info::read): Now methods.
8799 * dwarf-index-write.c (class debug_names): Update.
8800
2c86cff9
TT
88012020-02-08 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8804 Move to dwarf2/section.h.
8805 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8806 (get_section_bfd_section, get_section_name)
8807 (get_section_file_name, get_section_id, get_section_flags)
8808 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8809 dwarf2/section.c.
8810 * dwarf2/section.h: New file.
8811 * dwarf2/section.c: New file, from dwarf2read.c.
8812 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8813
f4382c45
TT
88142020-02-08 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8817 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8818 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8819 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8820 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8821 * dwarf2/leb.h: New file, from dwarf2read.c.
8822 * dwarf2/leb.c: New file, from dwarf2read.c.
8823 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8824 Remove.
8825 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8826 (COMMON_SFILES): Add dwarf2/leb.c.
8827
01840b7a
JB
88282020-02-08 Joel Brobecker <brobecker@adacore.com>
8829
8830 GDB 9.1 released.
8831
dfcb27e4
IB
88322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8833
8834 PR gdb/25190:
aac66a4c
SM
8835 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8836 * gdb/remote.c (remote_console_output): Update.
8837 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8838 (ui_file_puts): ...this.
8839 * gdb/ui-file.h (ui_file_puts): Add declaration.
8840 * gdb/utils.c (emit_style_escape): Update.
8841 (flush_wrap_buffer): Update.
8842 (fputs_maybe_filtered): Update.
8843 (fputs_unfiltered): Add function.
dfcb27e4 8844
faa17681
IB
88452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8846
aac66a4c
SM
8847 * gdb/event-loop.c (gdb_wait_for_event): Update.
8848 * gdb/printcmd.c (printf_command): Update.
8849 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8850 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8851 (gdb_os_flush_stderr): Update.
8852 * gdb/remote.c (remote_console_output): Update.
8853 * gdb/ui-file.c (gdb_flush): Rename to...
8854 (ui_file_flush): ...this.
8855 (stderr_file::write): Update.
8856 (stderr_file::puts): Update.
8857 * gdb/ui-file.h (gdb_flush): Rename to...
8858 (ui_file_flush): ...this.
8859 * gdb/utils.c (gdb_flush): Add function.
8860 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8861
5abbbe1d
TT
88622020-02-07 Tom Tromey <tromey@adacore.com>
8863
8864 PR breakpoints/24915:
8865 * source.c (find_and_open_source): Do not check basenames_may_differ.
8866
919adfe8
TT
88672020-02-07 Tom Tromey <tom@tromey.com>
8868
8869 * README: Update gdbserver documentation.
8870 * gdbserver: Move to top level.
8871 * configure.tgt (build_gdbserver): Remove.
8872 * configure.ac: Remove --enable-gdbserver.
8873 * configure: Rebuild.
8874 * Makefile.in (distclean): Don't mention gdbserver.
8875
1d5d29e7
SV
88762020-02-06 Shahab Vahedi <shahab@synopsys.com>
8877
8878 * source-cache.c (source_cache::ensure): Surround
8879 get_plain_source_lines with a try/catch.
8880 (source_cache::get_line_charpos): Get rid of try/catch
8881 and only check for the return value of "ensure".
8882 * tui/tui-source.c (tui_source_window::set_contents):
8883 Simplify "nlines" calculation.
8884
6eb1129c
SV
88852020-02-06 Shahab Vahedi <shahab@synopsys.com>
8886
8887 * MAINTAINERS (Write After Approval): Add myself.
8888
c6a42d11
CB
88892020-02-05 Christian Biesinger <cbiesinger@google.com>
8890
8891 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8892 function call.
8893
c8ecdda6
CB
88942020-02-05 Christian Biesinger <cbiesinger@google.com>
8895
8896 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8897
f6480e70
MR
88982020-02-05 Maciej W. Rozycki <macro@wdc.com>
8899
8900 * nat/riscv-linux-tdesc.h: New file.
8901 * nat/riscv-linux-tdesc.c: New file, taking code from...
8902 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8903 ... here.
8904 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8905 NATDEPFILES.
8906
dcc9fbc6
AB
89072020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8910 we don't set the fake simulator ptid to the null_ptid.
8911
719546c4
SM
89122020-02-03 Simon Marchi <simon.marchi@efficios.com>
8913
8914 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8915 * gdbthread.h (class thread_info) <resumed>: Likewise.
8916 * infrun.c (resume_1): Likewise.
8917 (proceed): Likewise.
8918 (infrun_thread_stop_requested): Likewise.
8919 (stop_all_threads): Likewise.
8920 (handle_inferior_event): Likewise.
8921 (restart_threads): Likewise.
8922 (finish_step_over): Likewise.
8923 (keep_going_stepped_thread): Likewise.
8924 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8925 (linux_handle_extended_wait): Likewise.
8926 * record-btrace.c (get_thread_current_frame_id): Likewise.
8927 * record-full.c (record_full_wait_1): Likewise.
8928 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8929 * target.c (target_resume): Likewise.
8930 * thread.c (set_running_thread): Likewise.
8931
e409c542
AKS
89322020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8933
8934 * f-valprint.c (f77_print_array_1): Changed datatype of index
8935 variable to LONGEST from int to enable it to contain bound
8936 values correctly.
8937
ee98c0da
MR
89382020-02-03 Maciej W. Rozycki <macro@wdc.com>
8939
8940 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8941 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8942 offsets according to FLEN determined.
8943 (riscv_linux_nat_target::read_description): Determine FLEN
8944 dynamically.
8945 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8946 according to FLEN determined.
8947 (riscv_linux_nat_target::store_registers): Likewise.
8948
aa66aac4
SV
89492020-02-01 Shahab Vahedi <shahab@synopsys.com>
8950
8951 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8952 when reg->group is empty and reggroup is not.
8953
fd9faca8
TT
89542020-01-31 Tom Tromey <tromey@adacore.com>
8955
8956 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8957 Call beneath target's mourn_inferior after unpushing.
8958
42330a68
AB
89592020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 PR tui/9765
8962 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8963 have enough lines to fill the screen, still return the lowest
8964 address we found.
8965
7a27a45b
AB
89662020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8969 '-', '<', and '>' commands.
8970
c47f70e2
PA
89712020-01-29 Pedro Alves <palves@redhat.com>
8972 Sergio Durigan Junior <sergiodj@redhat.com>
8973
8974 * infcmd.c (construct_inferior_arguments): Assert that
8975 'argc' is greater than 0.
8976
5133a315
LM
89772020-01-29 Luis Machado <luis.machado@linaro.org>
8978
8979 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8980 (BRK_INSN_MASK): Define to 0xd4200000.
8981 (aarch64_program_breakpoint_here_p): New function.
8982 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8983 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8984 breakpoint.c.
8985 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8986 breakpoint.h
8987 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8988 call gdbarch_program_breakpoint_here_p.
8989 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8990 default_program_breakpoint_here_p, changed return type to bool and
8991 simplified.
8992 * breakpoint.h (program_breakpoint_here): Moved prototype to
8993 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8994 return type to bool.
8995 * gdbarch.c: Regenerate.
8996 * gdbarch.h: Regenerate.
8997 * gdbarch.sh (program_breakpoint_here_p): New method.
8998 * infrun.c (handle_signal_stop): Call
8999 gdbarch_program_breakpoint_here_p.
9000
168f8c6b
TT
90012020-01-26 Tom Tromey <tom@tromey.com>
9002
9003 * ctfread.c (struct ctf_fp_info): Reindent.
9004 (_initialize_ctfread): Remove.
9005
128a391f
TT
90062020-01-26 Tom Tromey <tom@tromey.com>
9007
9008 * psymtab.c (partial_map_expand_apply)
9009 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9010 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9011 (psym_print_stats, psym_expand_symtabs_for_function)
9012 (psym_map_symbol_filenames, psym_map_matching_symbols)
9013 (psym_expand_symtabs_matching)
9014 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9015 (maintenance_check_psymtabs): Use new methods.
9016 * psympriv.h (struct partial_symtab) <readin_p,
9017 get_compunit_symtab>: New methods.
9018 <readin, compunit_symtab>: Remove members.
9019 (struct standard_psymtab): New.
9020 (struct legacy_psymtab): Derive from standard_psymtab.
9021 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9022 standard_psymtab.
9023 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9024
0494dbec
TT
90252020-01-26 Tom Tromey <tom@tromey.com>
9026
9027 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9028 read_dependencies. Add assert.
9029 * psymtab.c (partial_symtab::read_dependencies): New method.
9030 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9031 method.
9032 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9033 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9034 read_dependencies.
9035 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9036 Add assert.
9037
8566b89b
TT
90382020-01-26 Tom Tromey <tom@tromey.com>
9039
9040 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9041 Call expand_psymtab.
9042 (xcoff_read_symtab): Call expand_psymtab.
9043 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9044 legacy_expand_psymtab.
9045 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9046 method.
9047 (struct legacy_psymtab) <expand_psymtab>: Implement.
9048 <legacy_expand_psymtab>: New member.
9049 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9050 (parse_partial_symbols): Set legacy_expand_psymtab.
9051 (psymtab_to_symtab_1): Change argument order. Call
9052 expand_psymtab.
9053 (new_psymtab): Set legacy_expand_psymtab.
9054 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9055 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9056 expand_psymtab.
9057 (dwarf2_psymtab::expand_psymtab): Rename from
9058 psymtab_to_symtab_1. Call expand_psymtab.
9059 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9060 (dbx_end_psymtab): Likewise.
9061 (dbx_psymtab_to_symtab_1): Change argument order. Call
9062 expand_psymtab.
9063 (dbx_read_symtab): Call expand_psymtab.
9064 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9065 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9066 (ctf_psymtab::read_symtab): Call expand_psymtab.
9067
077cbab2
TT
90682020-01-26 Tom Tromey <tom@tromey.com>
9069
9070 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9071 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9072 messages.
9073 * mdebugread.c (mdebug_read_symtab): Remove prints.
9074 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9075 assert.
9076 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9077
891813be
TT
90782020-01-26 Tom Tromey <tom@tromey.com>
9079
9080 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9081 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9082 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9083 legacy_symtab.
9084 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9085 * psymtab.c (psymtab_to_symtab): Call method.
9086 (dump_psymtab): Update.
9087 * psympriv.h (struct partial_symtab): Add virtual destructor.
9088 <read_symtab>: New method.
9089 (struct legacy_symtab): New.
9090 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9091 (struct pst_map) <pst>: Now a legacy_psymtab.
9092 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9093 (new_psymtab): Use legacy_psymtab.
9094 * dwarf2read.h (struct dwarf2_psymtab): New.
9095 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9096 * dwarf2read.c (dwarf2_create_include_psymtab)
9097 (dwarf2_build_include_psymtabs, create_type_unit_group)
9098 (create_partial_symtab, process_psymtab_comp_unit_reader)
9099 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9100 (set_partial_user): Use dwarf2_psymtab.
9101 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9102 (psymtab_to_symtab_1, process_full_comp_unit)
9103 (process_full_type_unit, dwarf2_ranges_read)
9104 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9105 (dwarf_decode_lines): Use dwarf2_psymtab.
9106 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9107 (add_address_entry_worker, write_one_signatured_type)
9108 (recursively_count_psymbols, recursively_write_psymbols)
9109 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9110 (write_debug_names): Likewise.
9111 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9112 <pst>: Now a legacy_psymtab.
9113 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9114 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9115 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9116 * ctfread.c (struct ctf_psymtab): New.
9117 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9118 ctf_psymtab.
9119 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9120 (create_partial_symtab): Return a ctf_psymtab.
9121 (scan_partial_symbols): Update.
9122
c3693a1d
TT
91232020-01-26 Tom Tromey <tom@tromey.com>
9124
9125 * xcoffread.c (xcoff_start_psymtab): Use new.
9126 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9127 renamed from start_psymtab_common.
9128 * psympriv.h (struct partial_symtab): Add new constructor.
9129 (start_psymtab_common): Don't declare.
9130 * mdebugread.c (parse_partial_symbols): Use new.
9131 * dwarf2read.c (create_partial_symtab): Use new.
9132 * dbxread.c (start_psymtab): Use new.
9133 * ctfread.c (create_partial_symtab): Use new.
9134
32caafd0
TT
91352020-01-26 Tom Tromey <tom@tromey.com>
9136
9137 * xcoffread.c (xcoff_end_psymtab): Use new.
9138 * psymtab.c (start_psymtab_common): Use new.
9139 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9140 Update.
9141 * psympriv.h (struct partial_symtab): Add parameters to
9142 constructor. Don't inline.
9143 (allocate_psymtab): Don't declare.
9144 * mdebugread.c (new_psymtab): Use new.
9145 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9146 * dbxread.c (dbx_end_psymtab): Use new.
9147
abaa2f23
TT
91482020-01-26 Tom Tromey <tom@tromey.com>
9149
9150 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9151 allocate_psymtab. Update documentation.
9152 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9153 allocate_psymtab. Do not use new.
9154 (allocate_psymtab): Use new. Update.
9155
6d94535f
TT
91562020-01-26 Tom Tromey <tom@tromey.com>
9157
9158 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9159 * psymtab.c (psym_print_stats): Update.
9160 * psympriv.h (struct partial_symtab) <readin,
9161 psymtabs_addrmap_supported, anonymous>: Now bool.
9162 * mdebugread.c (psymtab_to_symtab_1): Update.
9163 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9164 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9165 (process_full_comp_unit, process_full_type_unit): Update.
9166 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9167 * ctfread.c (psymtab_to_symtab): Update.
9168
6f17252b
TT
91692020-01-26 Tom Tromey <tom@tromey.com>
9170
9171 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9172 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9173 * psymtab.c (psymtab_storage): Delete psymtabs.
9174 (psymtab_storage::allocate_psymtab): Use new.
9175 (psymtab_storage::discard_psymtab): Use delete.
9176 * psympriv.h (struct partial_symtab): Add constructor and
9177 initializers.
9178
f6f1cebc
TT
91792020-01-26 Tom Tromey <tom@tromey.com>
9180
9181 * machoread.c: Do not include psympriv.h.
9182
e47e48f6
PW
91832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9184
9185 * NEWS: Mention the new option and the set/show commands.
9186
a2fedca9
PW
91872020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9188
9189 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9190 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9191 (validate_exec_file): New variables, enums, functions.
9192 (exec_file_locate_attach, print_section_info): Style the filenames.
9193 (_initialize_exec): Install show_exec_file_mismatch_command and
9194 set_exec_file_mismatch_command.
9195 * gdbcore.h (validate_exec_file): Declare.
9196 * infcmd.c (attach_command): Call validate_exec_file.
9197 * remote.c ( remote_target::remote_add_inferior): Likewise.
9198
7ffa82e1
AB
91992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9200
9201 * frame.c (find_frame_sal): Move call to get_next_frame into more
9202 inner scope.
9203 * inline-frame.c (inilne_state) <inline_state>: Update argument
9204 types.
9205 (inilne_state) <skipped_symbol>: Rename to...
9206 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9207 (skip_inline_frames): Build vector of skipped symbols and use this
9208 to reate the inline_state.
9209 (inline_skipped_symbol): Add a comment and some assertions, fetch
9210 skipped symbol from the list.
9211
3d92a3e3
AB
92122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9213
9214 * buildsym.c (lte_is_less_than): Delete.
9215 (buildsym_compunit::end_symtab_with_blockvector): Create local
9216 lambda function to sort line table entries, and use
9217 std::stable_sort instead of std::sort.
9218 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9219 markers when looking for a previous line.
9220
94a72be7
AB
92212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9222
9223 * dwarf2read.c (lnp_state_machine::record_line): Include
9224 end_sequence parameter in debug print out. Record the line if we
9225 are at an end_sequence marker even if it's not the start of a
9226 statement.
9227 * symmisc.c (maintenance_print_one_line_table): Print end of
9228 sequence markers with 'END' not '0'.
9229
53af73bf
PA
92302020-01-24 Pedro Alves <palves@redhat.com>
9231
9232 PR gdb/25410
9233 * thread.c (scoped_restore_current_thread::restore): Use
9234 switch_to_inferior_no_thread.
9235 * exec.c: Include "progspace-and-thread.h".
9236 (add_target_sections, remove_target_sections):
9237 scoped_restore_current_pspace_and_thread instead of
9238 scoped_restore_current_thread.
9239 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9240 and aspace to the inferior before calling clone_program_space.
9241 Remove stale comment.
9242
3050c6f4
CB
92432020-01-24 Christian Biesinger <cbiesinger@google.com>
9244
9245 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9246 (arm_netbsd_nat_target::fetch_registers): ...this.
9247 (arm_nbsd_nat_target::store_registers): Rename to...
9248 (arm_netbsd_nat_target::store_registers): ...this.
9249
73685c7e
CB
92502020-01-24 Christian Biesinger <cbiesinger@google.com>
9251
9252 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9253 register_t.
9254
89203d40
CB
92552020-01-24 Christian Biesinger <cbiesinger@google.com>
9256
9257 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9258 Update comment.
9259 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9260 Likewise.
9261 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9262 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9263 the correct replacement (iterate_over_regset_sections).
9264 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9265 Update comment.
9266
1ba1ac88
AB
92672020-01-24 Graham Markall <graham.markall@embecosm.com>
9268
9269 PR gdb/23718
9270 * gdb/python/python.c (execute_gdb_command): Call
9271 async_enable_stdin in catch block.
9272
f3364a6d
AB
92732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9274
9275 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9276 SWITCH_THRU_ALL_UIS.
9277
733d0a67
AB
92782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 PR tui/9765
9281 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9282 comment, add extra parameter, and update to store previous symbol
9283 when appropriate.
9284 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9285 add extra parameter.
9286 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9287 remove unneeded parameter, add try/catch around gdb_print_insn,
9288 rewrite to add items to asm_lines vector.
9289 (tui_find_backward_disassembly_start_address): New function.
9290 (tui_find_disassembly_address): Updated throughout.
9291 (tui_disasm_window::set_contents): Update for changes to
9292 tui_disassemble.
9293 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9294 number of lines to scroll.
9295
b3b3bada
SM
92962020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9297
9298 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9299 (SECT_OFF_DATA): Likewise.
9300 (SECT_OFF_RODATA): Likewise.
9301 (SECT_OFF_TEXT): Likewise.
9302 (SECT_OFF_BSS): Likewise.
9303 (struct objfile) <text_section_offset, data_section_offset>: New
9304 methods.
9305 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9306 objfile::text_section_offset.
9307 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9308 * coffread.c (coff_symtab_read): Likewise.
9309 (enter_linenos): Likewise.
9310 (process_coff_symbol): Likewise.
9311 * ctfread.c (get_objfile_text_range): Likewise.
9312 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9313 Use objfile::data_section_offset.
9314 * dwarf2-frame.c (execute_cfa_program): Use
9315 objfile::text_section_offset.
9316 (dwarf2_frame_find_fde): Likewise.
9317 * dwarf2read.c (create_addrmap_from_index): Likewise.
9318 (create_addrmap_from_aranges): Likewise.
9319 (dw2_find_pc_sect_compunit_symtab): Likewise.
9320 (process_psymtab_comp_unit_reader): Likewise.
9321 (add_partial_symbol): Likewise.
9322 (add_partial_subprogram): Likewise.
9323 (process_full_comp_unit): Likewise.
9324 (read_file_scope): Likewise.
9325 (read_func_scope): Likewise.
9326 (read_lexical_block_scope): Likewise.
9327 (read_call_site_scope): Likewise.
9328 (dwarf2_rnglists_process): Likewise.
9329 (dwarf2_ranges_process): Likewise.
9330 (dwarf2_ranges_read): Likewise.
9331 (dwarf_decode_lines_1): Likewise.
9332 (new_symbol): Likewise.
9333 (dwarf2_fetch_die_loc_sect_off): Likewise.
9334 (dwarf2_per_cu_text_offset): Likewise.
9335 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9336 * hppa-tdep.c (read_unwind_info): Likewise.
9337 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9338 * psympriv.h (struct partial_symtab): Likewise.
9339 * psymtab.c (find_pc_sect_psymtab): Likewise.
9340 * solib-svr4.c (enable_break): Likewise.
9341 * stap-probe.c (relocate_address): Use
9342 objfile::data_section_offset.
9343 * xcoffread.c (enter_line_range): Use
9344 objfile::text_section_offset.
9345 (read_xcoff_symtab): Likewise.
9346
ab53f382
SM
93472020-01-23 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9350 declaration to narrower scopes.
9351
e7eee665
SM
93522020-01-23 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * darwin-nat.h (struct darwin_exception_msg, enum
9355 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9356 Move up.
9357 (class darwin_nat_target) <wait_1, check_new_threads,
9358 decode_exception_message, decode_message, stop_inferior,
9359 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9360 * darwin-nat.c (darwin_check_new_threads): Rename to...
9361 (darwin_nat_target::check_new_threads): ... this.
9362 (darwin_suspend_inferior_it): Remove.
9363 (darwin_decode_exception_message): Rename to...
9364 (darwin_nat_target::decode_exception_message): ... this.
9365 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9366 (darwin_decode_message): Rename to...
9367 (darwin_nat_target::decode_message): ... this.
9368 (cancel_breakpoint): Rename to...
9369 (darwin_nat_target::cancel_breakpoint): ... this.
9370 (darwin_wait): Rename to...
9371 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9372 instead of iterate_over_inferiors.
9373 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9374 (darwin_stop_inferior): Rename to...
9375 (darwin_nat_target::stop_inferior): ... this.
9376 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9377 (darwin_init_thread_list): Rename to...
9378 (darwin_nat_target::init_thread_list): ... this.
9379 (darwin_ptrace_him): Rename to...
9380 (darwin_nat_target::ptrace_him): ... this.
9381 (darwin_nat_target::create_inferior): Pass lambda function to
9382 fork_inferior.
9383 (darwin_nat_target::detach): Call stop_inferior instead of
9384 darwin_stop_inferior.
9385 * fork-inferior.h (fork_inferior): Change init_trace_fun
9386 parameter to gdb::function_view.
9387 * fork-inferior.c (fork_inferior): Likewise.
9388
c162ed3e
HD
93892020-01-23 Hannes Domani <ssbssa@yahoo.de>
9390
9391 * i386-cygwin-tdep.c (core_process_module_section): Update.
9392 * windows-nat.c (struct lm_info_windows): Add text_offset.
9393 (windows_xfer_shared_libraries): Update.
9394 * windows-tdep.c (windows_xfer_shared_library):
9395 Add text_offset_cached argument.
9396 * windows-tdep.h (windows_xfer_shared_library): Update.
9397
a1237872
SM
93982020-01-21 Simon Marchi <simon.marchi@efficios.com>
9399
9400 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9401
b3ee6dd9
SM
94022020-01-21 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9405 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9406 replace with range-based for.
9407 (gdbsim_interrupt_inferior): Remove.
9408 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9409 with a range-based for. Inline code from
9410 gdbsim_interrupt_inferior.
9411
f9fac3c8
SM
94122020-01-21 Simon Marchi <simon.marchi@efficios.com>
9413
9414 * infrun.c (proceed): Fix indentation.
9415
f6474de9
TT
94162020-01-21 Tom Tromey <tromey@adacore.com>
9417
9418 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9419 * python/python.c (python_extension_ops): Update.
9420 (gdbpy_colorize): New function.
9421 * python/lib/gdb/__init__.py (colorize): New function.
9422 * extension.h (ext_lang_colorize): Declare.
9423 * extension.c (ext_lang_colorize): New function.
9424 * extension-priv.h (struct extension_language_ops) <colorize>: New
9425 member.
9426 * cli/cli-style.c (_initialize_cli_style): Update help text.
9427
f0c702d4
LM
94282020-01-21 Luis Machado <luis.machado@linaro.org>
9429
9430 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9431 <cond>: Change type to bool.
9432 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9433 (aarch64_displaced_step_cb): Likewise.
9434 (aarch64_displaced_step_tb): Likewise.
9435
1ab139e5
LM
94362020-01-21 Luis Machado <luis.machado@linaro.org>
9437
9438 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9439 output.
9440
0c271889
LM
94412020-01-21 Luis Machado <luis.machado@linaro.org>
9442
9443 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9444 <pc_adjust>: Adjust the documentation.
9445 (aarch64_displaced_step_fixup): Check if PC really moved before
9446 adjusting it.
9447
4d89c1c7
TT
94482020-01-19 Tom Tromey <tom@tromey.com>
9449
9450 * disasm.c (~gdb_disassembler): New destructor.
9451 (gdb_buffered_insn_length): Call disassemble_free_target.
9452 * disasm.h (class gdb_disassembler): Declare destructor. Use
9453 DISABLE_COPY_AND_ASSIGN.
9454
c0ab21c2
TT
94552020-01-19 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9458 (die_reader_func_ftype): Remove.
9459 (cutu_reader): New class.
9460 (dw2_get_file_names_reader): Remove "data" parameter.
9461 (dw2_get_file_names): Use cutu_reader.
9462 (create_debug_type_hash_table): Update.
9463 (read_cutu_die_from_dwo): Update comment.
9464 (lookup_dwo_unit): Add dwo_name parameter.
9465 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9466 die_reader_func_ftype and data parameters.
9467 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9468 Remove die_reader_func_ftype and data parameters.
9469 (~cutu_reader): New; from init_cutu_and_read_dies.
9470 (cutu_reader::cutu_reader): Rename from
9471 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9472 and data parameters.
9473 (init_cutu_and_read_dies_simple): Remove.
9474 (struct process_psymtab_comp_unit_data): Remove.
9475 (process_psymtab_comp_unit_reader): Remove data parameter; add
9476 want_partial_unit and pretend_language parameters.
9477 (process_psymtab_comp_unit): Use cutu_reader.
9478 (build_type_psymtabs_reader): Remove data parameter.
9479 (build_type_psymtabs_1): Use cutu_reader.
9480 (process_skeletonless_type_unit): Likewise.
9481 (load_partial_comp_unit_reader): Remove.
9482 (load_partial_comp_unit): Use cutu_reader.
9483 (load_full_comp_unit_reader): Remove.
9484 (load_full_comp_unit): Use cutu_reader.
9485 (struct create_dwo_cu_data): Remove.
9486 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9487 dwo_unit parameters.
9488 (create_cus_hash_table): Use cutu_reader.
9489 (struct dwarf2_read_addr_index_data): Remove.
9490 (dwarf2_read_addr_index_reader): Remove.
9491 (dwarf2_read_addr_index): Use cutu_reader.
9492 (read_signatured_type_reader): Remove.
9493 (read_signatured_type): Use cutu_reader.
9494
45bbae5c
TT
94952020-01-19 Tom Tromey <tom@tromey.com>
9496
9497 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9498 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9499 (tui_wrefresh): Declare.
9500 * tui/tui-wingeneral.c (suppress_output): New global.
9501 (tui_suppress_output, ~tui_suppress_output): New constructor and
9502 destructor.
9503 (tui_wrefresh): New function.
9504 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9505 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9506 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9507 method.
9508 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9509 tui_wrefresh.
9510 (tui_data_window::no_refresh): New method.
9511 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9512 (tui_reg_command): Use tui_suppress_output
9513 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9514 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9515 method.
9516 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9517
4f13c1c0
TT
95182020-01-19 Tom Tromey <tom@tromey.com>
9519
9520 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9521 Handle case where symtab is null.
9522
fa47e446
SM
95232020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9524
9525 * linux-fork.c (one_fork_p): Simplify.
9526
26f42329
SM
95272020-01-17 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * top.c (struct qt_args): Remove.
9530 (kill_or_detach): Change return type to void, replace `void *`
9531 parameter with a proper one.
9532 (print_inferior_quit_action): Likewise.
9533 (quit_confirm): Use range-based for loop to iterate over inferiors.
9534 (quit_force): Likewise.
9535
a9ac81b1
SM
95362020-01-17 Simon Marchi <simon.marchi@efficios.com>
9537
9538 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9539 `void *` parameter with proper parameters.
9540 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9541 (print_one_inferior): Change return type to void, replace `void *`
9542 parameter with proper parameters.
9543 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9544 inferiors.
9545 (get_other_inferior): Remove.
9546 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9547 inferiors.
9548
788eca49
SM
95492020-01-17 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * mi/mi-interp.c (report_initial_inferior): Remove.
9552 (mi_interp::init): Use range-based for to iterate over inferiors.
9553
d9bc85b6
SM
95542020-01-17 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * python/py-inferior.c (build_inferior_list): Remove.
9557 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9558
40c94099
CB
95592020-01-16 Christian Biesinger <cbiesinger@google.com>
9560
9561 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9562 (btrace_stitch_trace): Likewise.
9563 * charset.c (intermediate_encoding): Likewise (vaild).
9564 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9565 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9566 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9567
e0cdfe3c
HD
95682020-01-16 Hannes Domani <ssbssa@yahoo.de>
9569
9570 * windows-tdep.c (windows_get_tlb_type):
9571 Add rtl_user_process_parameters type.
9572
790f1718 95732020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9574 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9575
9576 PR build/24805
9577 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9578 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9579 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9580 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9581 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9582 (ps_plog): Redeclare exported functions with default visibility.
9583
3112ed97
NA
95842020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9585
9586 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9587 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9588
8dc3273e
SM
95892020-01-15 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * infcmd.c (post_create_inferior): Use get_thread_regcache
9592 instead of get_current_regcache.
9593
ff47f4f0
TT
95942020-01-14 Tom Tromey <tom@tromey.com>
9595
9596 PR symtab/12535:
9597 * python/python.c (gdbpy_decode_line): Treat empty string the same
9598 as no argument.
9599
975f45b7
TT
96002020-01-14 Tom Tromey <tom@tromey.com>
9601
9602 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9603
25e57356
TT
96042020-01-14 Tom Tromey <tom@tromey.com>
9605
9606 * nat/linux-btrace.c: Don't include <config.h>.
9607 * nat/linux-ptrace.c: Don't include <config.h>.
9608 * nat/x86-linux-dregs.c: Don't include <config.h>.
9609
05ea2a05
TT
96102020-01-14 Tom Tromey <tom@tromey.com>
9611
9612 * configure: Rebuild.
9613 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9614
01027315
TT
96152020-01-14 Tom Tromey <tom@tromey.com>
9616
9617 * nat/x86-linux-dregs.c: Include configh.h.
9618 * nat/linux-ptrace.c: Include configh.h.
9619 * nat/linux-btrace.c: Include configh.h.
9620 * defs.h: Include config.h, bfd.h.
9621 * configure.ac: Don't source common.host.
9622 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9623 * configure: Rebuild.
9624 * acinclude.m4: Update path.
9625 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9626 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9627 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9628 (CLIBS): Add LIBSUPPORT.
9629 (CDEPS): Likewise.
9630 (COMMON_SFILES): Remove gdbsupport files.
9631 (HFILES_NO_SRCDIR): Likewise.
9632 (stamp-version): Update path to create-version.sh.
9633 (ALLDEPFILES): Remove gdbsupport files.
9634
b2ceabe8
TT
96352020-01-14 Tom Tromey <tom@tromey.com>
9636
9637 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9638 USE_WIN32API when needed.
9639 * configure.ac (USE_WIN32API): Don't define.
9640 (WIN32LIBS): Use WIN32APILIBS.
9641 * configure: Rebuild.
9642
25c51f71
TT
96432020-01-14 Tom Tromey <tom@tromey.com>
9644
9645 * configure: Rebuild.
9646 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9647
717c684d
BE
96482020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9649
9650 * skip.c (skip_function_command): Make skip w/o arguments use the
9651 name of the inlined function if pc is inside any inlined function.
9652
7da6a5b9
LM
96532020-01-14 Luis Machado <luis.machado@linaro.org>
9654
9655 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9656 * infrun.c (resume_1): Likewise.
9657 (handle_inferior_event): Remove stale comment.
9658 * linux-nat.c (linux_nat_target::resume): Update comments.
9659 (save_stop_reason): Likewise.
9660 (linux_nat_filter_event): Likewise.
9661 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9662
44e4c775
AB
96632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * elfread.c (record_minimal_symbol): Set section index to 0 for
9666 non-allocatable sections.
9667
18a8505e
AT
9668
96692020-01-13 Ali Tamur <tamur@google.com>
9670
9671 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9672 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9673 to gdb::optional. Update comments.
9674 (dwo_file): Update comments.
9675 (read_attribute): Update API to take an additional out parameter,
9676 need_reprocess. This is used to mark attributes that need other
9677 attributes (e.g. str_offsets_base) for correct computation which may not
9678 have been read yet.
9679 (read_attribute_reprocess): New function declaration.
9680 (read_addr_index): Likewise.
9681 (read_dwo_str_index): Likewise.
9682 (read_stub_str_index): Likewise.
9683 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9684 (lookup_addr_base): New function definition.
9685 (lookup_ranges_base): Likewise.
9686 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9687 lookup_ranges_base.
9688 (init_cutu_and_read_dies): Update comments.
9689 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9690 unit. This is used to inherit parent's str_offsets_base and addr_base.
9691 Update comments.
9692 (init_cutu_and_read_dies_simple): Reflect API changes.
9693 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9694 (create_cus_hash_table): Change API to take parent compile unit.
9695 Reflect API changes.
9696 (open_and_init_dwo_file): Reflect API changes.
9697 (dwarf2_get_pc_bounds): Update comments.
9698 (dwarf2_record_block_ranges): Likewise.
9699 (read_full_die_1): Change implementation to reprocess attributes that
9700 need str_offsets_base and addr_base.
9701 (partial_die_info::read): Likewise.
9702 (read_attribute_reprocess): New function definition.
9703 (read_attribute_value): Change API to take an additional out parameter,
9704 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9705 when a non-dwo compile unit has index based attributes.
9706 (read_attribute): Reflect API changes.
9707 (read_addr_index_1): Reflect API changes. Update comments.
9708 (dwarf2_read_addr_index_data): Reflect API changes.
9709 (dwarf2_read_addr_index): Likewise.
9710 (read_str_index): Change API and implementation. This becomes a helper
9711 to be used by the new string index related methods. Update error
9712 message and comments.
9713 (read_dwo_str_index): New function definition.
9714 (read_stub_str_index): Likewise.
9715 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9716 * symfile.h (dwarf2_debug_sections): Likewise.
9717 * xcoffread.c (dwarf2_debug_sections): Likewise.
9718
0cac9354
SM
97192020-01-13 Simon Marchi <simon.marchi@efficios.com>
9720
9721 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9722 core_reg_sect type to gdb_byte *.
9723 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9724 * cris-tdep.c (fetch_core_registers): Likewise.
9725 * corelow.c (core_target::get_core_register_section): Change
9726 type of `contents` to gdb::byte_vector.
9727
9a6d629c
AB
97282020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9729
9730 * tui/tui-wingeneral.c (box_win): Position the title in the center
9731 of the border.
9732
d8b2f9e3
SM
97332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9734
9735 * corelow.c (core_target::get_core_register_section): Use
9736 std::vector instead of alloca.
9737
bb564c58
SM
97382020-01-13 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * warning.m4: Add -Wmissing-declarations to build_warnings.
9741 * configure: Re-generate.
9742
6b366111
SM
97432020-01-13 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * python/python.c (init__gdb_module): Add declaration.
9746
6c265988
SM
97472020-01-13 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9750 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9751 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9752 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9753 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9754 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9755 * ada-exp.y (_initialize_ada_exp): Add declaration.
9756 * ada-lang.c (_initialize_ada_language): Add declaration.
9757 * ada-tasks.c (_initialize_tasks): Add declaration.
9758 * agent.c (_initialize_agent): Add declaration.
9759 * aix-thread.c (_initialize_aix_thread): Add declaration.
9760 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9761 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9762 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9763 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9764 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9765 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9766 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9767 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9768 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9769 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9770 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9771 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9772 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9773 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9774 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9775 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9776 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9777 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9778 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9779 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9780 * annotate.c (_initialize_annotate): Add declaration.
9781 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9782 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9783 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9784 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9785 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9786 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9787 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9788 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9789 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9790 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9791 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9792 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9793 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9794 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9795 * auto-load.c (_initialize_auto_load): Add declaration.
9796 * auxv.c (_initialize_auxv): Add declaration.
9797 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9798 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9799 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9800 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9801 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9802 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9803 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9804 * breakpoint.c (_initialize_breakpoint): Add declaration.
9805 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9806 * btrace.c (_initialize_btrace): Add declaration.
9807 * charset.c (_initialize_charset): Add declaration.
9808 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9809 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9810 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9811 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9812 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9813 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9814 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9815 * coffread.c (_initialize_coffread): Add declaration.
9816 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9817 * compile/compile.c (_initialize_compile): Add declaration.
9818 * complaints.c (_initialize_complaints): Add declaration.
9819 * completer.c (_initialize_completer): Add declaration.
9820 * copying.c (_initialize_copying): Add declaration.
9821 * corefile.c (_initialize_core): Add declaration.
9822 * corelow.c (_initialize_corelow): Add declaration.
9823 * cp-abi.c (_initialize_cp_abi): Add declaration.
9824 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9825 * cp-support.c (_initialize_cp_support): Add declaration.
9826 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9827 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9828 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9829 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9830 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9831 * ctfread.c (_initialize_ctfread): Add declaration.
9832 * d-lang.c (_initialize_d_language): Add declaration.
9833 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9834 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9835 * dbxread.c (_initialize_dbxread): Add declaration.
9836 * dcache.c (_initialize_dcache): Add declaration.
9837 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9838 * disasm.c (_initialize_disasm): Add declaration.
9839 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9840 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9841 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9842 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9843 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9844 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9845 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9846 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9847 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9848 * elfread.c (_initialize_elfread): Add declaration.
9849 * exec.c (_initialize_exec): Add declaration.
9850 * extension.c (_initialize_extension): Add declaration.
9851 * f-lang.c (_initialize_f_language): Add declaration.
9852 * f-valprint.c (_initialize_f_valprint): Add declaration.
9853 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9854 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9855 * filesystem.c (_initialize_filesystem): Add declaration.
9856 * findcmd.c (_initialize_mem_search): Add declaration.
9857 * findvar.c (_initialize_findvar): Add declaration.
9858 * fork-child.c (_initialize_fork_child): Add declaration.
9859 * frame-base.c (_initialize_frame_base): Add declaration.
9860 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9861 * frame.c (_initialize_frame): Add declaration.
9862 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9863 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9864 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9865 * gcore.c (_initialize_gcore): Add declaration.
9866 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9867 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9868 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9869 * gdbarch.c (_initialize_gdbarch): Add declaration.
9870 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9871 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9872 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9873 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9874 * go-lang.c (_initialize_go_language): Add declaration.
9875 * go32-nat.c (_initialize_go32_nat): Add declaration.
9876 * guile/guile.c (_initialize_guile): Add declaration.
9877 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9878 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9879 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9880 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9881 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9882 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9883 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9884 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9885 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9886 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9887 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9888 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9889 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9890 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9891 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9892 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9893 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9894 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9895 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9896 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9897 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9898 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9899 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9900 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9901 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9902 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9903 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9904 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9905 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9906 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9907 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9908 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9909 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9910 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9911 * infcall.c (_initialize_infcall): Add declaration.
9912 * infcmd.c (_initialize_infcmd): Add declaration.
9913 * inflow.c (_initialize_inflow): Add declaration.
9914 * infrun.c (_initialize_infrun): Add declaration.
9915 * interps.c (_initialize_interpreter): Add declaration.
9916 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9917 * jit.c (_initialize_jit): Add declaration.
9918 * language.c (_initialize_language): Add declaration.
9919 * linux-fork.c (_initialize_linux_fork): Add declaration.
9920 * linux-nat.c (_initialize_linux_nat): Add declaration.
9921 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9922 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9923 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9924 * m2-lang.c (_initialize_m2_language): Add declaration.
9925 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9926 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9927 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9928 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9929 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9930 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9931 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9932 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9933 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9934 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9935 * machoread.c (_initialize_machoread): Add declaration.
9936 * macrocmd.c (_initialize_macrocmd): Add declaration.
9937 * macroscope.c (_initialize_macroscope): Add declaration.
9938 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9939 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9940 * maint.c (_initialize_maint_cmds): Add declaration.
9941 * mdebugread.c (_initialize_mdebugread): Add declaration.
9942 * memattr.c (_initialize_mem): Add declaration.
9943 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9944 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9945 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9946 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9947 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9948 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9949 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9950 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9951 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9952 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9953 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9954 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9955 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9956 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9957 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9958 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9959 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9960 * mipsread.c (_initialize_mipsread): Add declaration.
9961 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9962 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9963 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9964 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9965 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9966 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9967 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9968 * nto-procfs.c (_initialize_procfs): Add declaration.
9969 * objc-lang.c (_initialize_objc_language): Add declaration.
9970 * observable.c (_initialize_observer): Add declaration.
9971 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9972 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9973 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9974 * osabi.c (_initialize_gdb_osabi): Add declaration.
9975 * osdata.c (_initialize_osdata): Add declaration.
9976 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9977 * parse.c (_initialize_parse): Add declaration.
9978 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9979 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9980 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9981 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9982 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9983 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9984 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9985 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9986 * printcmd.c (_initialize_printcmd): Add declaration.
9987 * probe.c (_initialize_probe): Add declaration.
9988 * proc-api.c (_initialize_proc_api): Add declaration.
9989 * proc-events.c (_initialize_proc_events): Add declaration.
9990 * proc-service.c (_initialize_proc_service): Add declaration.
9991 * procfs.c (_initialize_procfs): Add declaration.
9992 * producer.c (_initialize_producer): Add declaration.
9993 * psymtab.c (_initialize_psymtab): Add declaration.
9994 * python/python.c (_initialize_python): Add declaration.
9995 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9996 * record-btrace.c (_initialize_record_btrace): Add declaration.
9997 * record-full.c (_initialize_record_full): Add declaration.
9998 * record.c (_initialize_record): Add declaration.
9999 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10000 * regcache.c (_initialize_regcache): Add declaration.
10001 * reggroups.c (_initialize_reggroup): Add declaration.
10002 * remote-notif.c (_initialize_notif): Add declaration.
10003 * remote-sim.c (_initialize_remote_sim): Add declaration.
10004 * remote.c (_initialize_remote): Add declaration.
10005 * reverse.c (_initialize_reverse): Add declaration.
10006 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10007 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10008 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10009 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10010 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10011 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10012 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10013 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10014 Add declaration.
10015 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10016 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10017 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10018 * rust-exp.y (_initialize_rust_exp): Add declaration.
10019 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10020 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10021 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10022 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10023 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10024 * score-tdep.c (_initialize_score_tdep): Add declaration.
10025 * ser-go32.c (_initialize_ser_dos): Add declaration.
10026 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10027 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10028 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10029 * ser-uds.c (_initialize_ser_socket): Add declaration.
10030 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10031 * serial.c (_initialize_serial): Add declaration.
10032 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10033 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10034 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10035 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10036 * skip.c (_initialize_step_skip): Add declaration.
10037 * sol-thread.c (_initialize_sol_thread): Add declaration.
10038 * solib-aix.c (_initialize_solib_aix): Add declaration.
10039 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10040 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10041 * solib-frv.c (_initialize_frv_solib): Add declaration.
10042 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10043 * solib-target.c (_initialize_solib_target): Add declaration.
10044 * solib.c (_initialize_solib): Add declaration.
10045 * source-cache.c (_initialize_source_cache): Add declaration.
10046 * source.c (_initialize_source): Add declaration.
10047 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10048 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10049 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10050 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10051 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10052 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10053 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10054 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10055 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10056 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10057 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10058 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10059 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10060 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10061 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10062 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10063 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10064 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10065 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10066 * stabsread.c (_initialize_stabsread): Add declaration.
10067 * stack.c (_initialize_stack): Add declaration.
10068 * stap-probe.c (_initialize_stap_probe): Add declaration.
10069 * std-regs.c (_initialize_frame_reg): Add declaration.
10070 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10071 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10072 * symfile.c (_initialize_symfile): Add declaration.
10073 * symmisc.c (_initialize_symmisc): Add declaration.
10074 * symtab.c (_initialize_symtab): Add declaration.
10075 * target.c (_initialize_target): Add declaration.
10076 * target-connection.c (_initialize_target_connection): Add
10077 declaration.
10078 * target-dcache.c (_initialize_target_dcache): Add declaration.
10079 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10080 * thread.c (_initialize_thread): Add declaration.
10081 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10082 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10083 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10084 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10085 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10086 * tracectf.c (_initialize_ctf): Add declaration.
10087 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10088 * tracefile.c (_initialize_tracefile): Add declaration.
10089 * tracepoint.c (_initialize_tracepoint): Add declaration.
10090 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10091 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10092 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10093 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10094 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10095 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10096 * tui/tui.c (_initialize_tui): Add declaration.
10097 * typeprint.c (_initialize_typeprint): Add declaration.
10098 * ui-style.c (_initialize_ui_style): Add declaration.
10099 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10100 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10101 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10102 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10103 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10104 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10105 * unittests/filtered_iterator-selftests.c
10106 (_initialize_filtered_iterator_selftests): Add declaration.
10107 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10108 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10109 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10110 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10111 * unittests/main-thread-selftests.c
10112 (_initialize_main_thread_selftests): Add declaration.
10113 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10114 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10115 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10116 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10117 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10118 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10119 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10120 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10121 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10122 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10123 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10124 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10125 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10126 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10127 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10128 declaration.
10129 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10130 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10131 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10132 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10133 * user-regs.c (_initialize_user_regs): Add declaration.
10134 * utils.c (_initialize_utils): Add declaration.
10135 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10136 * valops.c (_initialize_valops): Add declaration.
10137 * valprint.c (_initialize_valprint): Add declaration.
10138 * value.c (_initialize_values): Add declaration.
10139 * varobj.c (_initialize_varobj): Add declaration.
10140 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10141 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10142 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10143 * windows-nat.c (_initialize_windows_nat): Add declaration.
10144 (_initialize_check_for_gdb_ini): Add declaration.
10145 (_initialize_loadable): Add declaration.
10146 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10147 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10148 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10149 * xcoffread.c (_initialize_xcoffread): Add declaration.
10150 * xml-support.c (_initialize_xml_support): Add declaration.
10151 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10152 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10153 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10154 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10155
e2de1eec
SM
101562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10157
10158 * regformats/regdat.sh: Generate declaration for init function.
10159
e0037b4c
SM
101602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10161
10162 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10163 up.
10164 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10165 close_one_inferior>: New methods.
10166 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10167 pass down target to find_inferior_pid.
10168 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10169 Pass down target to find_inferior_ptid.
10170 (gdbsim_target::create_inferior): Pass down target to
10171 add_thread_silent.
10172 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10173 target down to find_inferior_ptid and switch_to_thread.
10174 (gdbsim_target::close): Update to call close_one_inferior.
10175 (struct resume_data): Remove.
10176 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10177 directly, rather than through a void pointer.
10178 (gdbsim_target::resume): Update to call resume_one_inferior.
10179
58920b5b
SM
101802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10181
10182 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10183
4ec89149
PA
101842020-01-12 Pedro Alves <palves@redhat.com>
10185
10186 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10187 directly for the current inferior instead of
10188 discard_all_inferiors.
10189 (discard_all_inferiors): Delete.
10190
7c392d1d
TT
101912020-01-11 Tom Tromey <tom@tromey.com>
10192
10193 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10194 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10195 deprecated_safe_get_selected_frame.
10196
d9ebdab7
TBA
101972020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10198
10199 * inferior.c (print_inferior): Switch inferior before printing it.
10200
f3c469b9
PA
102012020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10202 Pedro Alves <palves@redhat.com>
10203
10204 * progspace-and-thread.c (switch_to_program_space_and_thread):
10205 Assert there's an inferior for PSPACE. Use
10206 switch_to_inferior_no_thread to switch the inferior too.
10207 * progspace.c (program_space::~program_space): Call
10208 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10209 (program_space::free_all_objfiles): Don't call clear_symtab_users
10210 here.
10211 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10212
65c574f6
PA
102132020-01-10 Pedro Alves <palves@redhat.com>
10214
10215 * NEWS: Mention multi-target debugging, "info connections", and
10216 "add-inferior -no-connection".
10217
2f4fcf00
PA
102182020-01-10 Pedro Alves <palves@redhat.com>
10219
10220 * infrun.c: Include "target-connection.h".
10221 (check_multi_target_resumption): New.
10222 (proceed): Call it.
10223 * target-connection.c (make_target_connection_string): Make
10224 extern.
10225 * target-connection.h (make_target_connection_string): Declare.
10226
121b3efd
PA
102272020-01-10 Pedro Alves <palves@redhat.com>
10228
10229 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10230 * inferior.c (uiout_field_connection): New function.
10231 (print_inferior): Add new "connection-id" column.
10232 (add_inferior_command): Show connection number/string of added
10233 inferior.
10234 * process-stratum-target.h
10235 (process_stratum_target::connection_string): New virtual method.
10236 (process_stratum_target::connection_number): New field.
10237 * remote.c (remote_target::connection_string): New override.
10238 * target-connection.c: New file.
10239 * target-connection.h: New file.
10240 * target.c (decref_target): Remove process_stratum targets from
10241 the connection list.
10242 (target_stack::push): Add process_stratum targets to the
10243 connection list.
10244
4f837581
PA
102452020-01-10 Pedro Alves <palves@redhat.com>
10246
10247 Revert:
10248 2016-04-12 Pedro Alves <palves@redhat.com>
10249 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10250 Remove references to name.
10251 * serial.h (struct serial) <name>: Delete.
10252
f4ec508e
PA
102532020-01-10 Pedro Alves <palves@redhat.com>
10254
10255 * gdbarch-selftests.c (register_to_value_test): Remove "target
10256 already pushed" check.
10257
5b6d1e4f
PA
102582020-01-10 Pedro Alves <palves@redhat.com>
10259 John Baldwin <jhb@FreeBSD.org>
10260
10261 * aarch64-linux-nat.c
10262 (aarch64_linux_nat_target::thread_architecture): Adjust.
10263 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10264 (task_command_1): Likewise.
10265 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10266 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10267 (aix_thread_target::store_registers)
10268 (aix_thread_target::thread_alive): Adjust.
10269 * amd64-fbsd-tdep.c: Include "inferior.h".
10270 (amd64fbsd_get_thread_local_address): Pass down target.
10271 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10272 thread's gdbarch instead of target_gdbarch.
10273 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10274 get_last_target_status.
10275 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10276 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10277 inferiors.
10278 (update_inserted_breakpoint_locations): Skip if inferiors with no
10279 execution.
10280 (update_global_location_list): When handling moribund locations,
10281 find representative inferior for location's pspace, and use thread
10282 count of its process_stratum target.
10283 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10284 * bsd-uthread.c (bsd_uthread_target::wait): Use
10285 as_process_stratum_target and adjust thread_change_ptid and
10286 add_thread calls.
10287 (bsd_uthread_target::update_thread_list): Use
10288 as_process_stratum_target and adjust find_thread_ptid,
10289 thread_change_ptid and add_thread calls.
10290 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10291 find_thread_ptid call.
10292 * corelow.c (add_to_thread_list): Adjust add_thread call.
10293 (core_target_open): Adjust add_thread_silent and thread_count
10294 calls.
10295 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10296 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10297 * event-top.c (async_disconnect): Pop targets from all inferiors.
10298 * exec.c (add_target_sections): Push exec target on all inferiors
10299 sharing the program space.
10300 (remove_target_sections): Remove the exec target from all
10301 inferiors sharing the program space.
10302 (exec_on_vfork): New.
10303 * exec.h (exec_on_vfork): Declare.
10304 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10305 Pass it down.
10306 (fbsd_nat_target::update_thread_list): Adjust.
10307 (fbsd_nat_target::resume): Adjust.
10308 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10309 down.
10310 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10311 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10312 get_thread_arch_regcache call.
10313 * fork-child.c (gdb_startup_inferior): Pass target down to
10314 startup_inferior and set_executing.
10315 * gdbthread.h (struct process_stratum_target): Forward declare.
10316 (add_thread, add_thread_silent, add_thread_with_info)
10317 (in_thread_list): Add process_stratum_target parameter.
10318 (find_thread_ptid(inferior*, ptid_t)): New overload.
10319 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10320 parameter.
10321 (all_threads()): Delete overload.
10322 (all_threads, all_non_exited_threads): Add process_stratum_target
10323 parameter.
10324 (all_threads_safe): Use brace initialization.
10325 (thread_count): Add process_stratum_target parameter.
10326 (set_resumed, set_running, set_stop_requested, set_executing)
10327 (threads_are_executing, finish_thread_state): Add
10328 process_stratum_target parameter.
10329 (switch_to_thread): Use is_current_thread.
10330 * i386-fbsd-tdep.c: Include "inferior.h".
10331 (i386fbsd_get_thread_local_address): Pass down target.
10332 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10333 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10334 have_inferiors check.
10335 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10336 (inf_ptrace_target::attach): Adjust.
10337 * infcall.c (run_inferior_call): Adjust.
10338 * infcmd.c (run_command_1): Pass target to
10339 scoped_finish_thread_state.
10340 (proceed_thread_callback): Skip inferiors with no execution.
10341 (continue_command): Rename 'all_threads' local to avoid hiding
10342 'all_threads' function. Adjust get_last_target_status call.
10343 (prepare_one_step): Adjust set_running call.
10344 (signal_command): Use user_visible_resume_target. Compare thread
10345 pointers instead of inferior_ptid.
10346 (info_program_command): Adjust to pass down target.
10347 (attach_command): Mark target's 'thread_executing' flag.
10348 (stop_current_target_threads_ns): New, factored out from ...
10349 (interrupt_target_1): ... this. Switch inferior before making
10350 target calls.
10351 * inferior-iter.h
10352 (struct all_inferiors_iterator, struct all_inferiors_range)
10353 (struct all_inferiors_safe_range)
10354 (struct all_non_exited_inferiors_range): Filter on
10355 process_stratum_target too. Remove explicit.
10356 * inferior.c (inferior::inferior): Push dummy target on target
10357 stack.
10358 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10359 Add process_stratum_target parameter, and pass it down.
10360 (have_live_inferiors): Adjust.
10361 (switch_to_inferior_and_push_target): New.
10362 (add_inferior_command, clone_inferior_command): Handle
10363 "-no-connection" parameter. Use
10364 switch_to_inferior_and_push_target.
10365 (_initialize_inferior): Mention "-no-connection" option in
10366 the help of "add-inferior" and "clone-inferior" commands.
10367 * inferior.h: Include "process-stratum-target.h".
10368 (interrupt_target_1): Use bool.
10369 (struct inferior) <push_target, unpush_target, target_is_pushed,
10370 find_target_beneath, top_target, process_target, target_at,
10371 m_stack>: New.
10372 (discard_all_inferiors): Delete.
10373 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10374 (all_inferiors, all_non_exited_inferiors): Add
10375 process_stratum_target parameter.
10376 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10377 (target_last_proc_target): New global.
10378 (follow_fork_inferior): Push target on new inferior. Pass target
10379 to add_thread_silent. Call exec_on_vfork. Handle target's
10380 reference count.
10381 (follow_fork): Adjust get_last_target_status call. Also consider
10382 target.
10383 (follow_exec): Push target on new inferior.
10384 (struct execution_control_state) <target>: New field.
10385 (user_visible_resume_target): New.
10386 (do_target_resume): Call target_async.
10387 (resume_1): Set target's threads_executing flag. Consider resume
10388 target.
10389 (commit_resume_all_targets): New.
10390 (proceed): Also consider resume target. Skip threads of inferiors
10391 with no execution. Commit resumtion in all targets.
10392 (start_remote): Pass current inferior to wait_for_inferior.
10393 (infrun_thread_stop_requested): Consider target as well. Pass
10394 thread_info pointer to clear_inline_frame_state instead of ptid.
10395 (infrun_thread_thread_exit): Consider target as well.
10396 (random_pending_event_thread): New inferior parameter. Use it.
10397 (do_target_wait): Rename to ...
10398 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10399 down.
10400 (threads_are_resumed_pending_p, do_target_wait): New.
10401 (prepare_for_detach): Adjust calls.
10402 (wait_for_inferior): New inferior parameter. Handle it. Use
10403 do_target_wait_1 instead of do_target_wait.
10404 (fetch_inferior_event): Adjust. Switch to representative
10405 inferior. Pass target down.
10406 (set_last_target_status): Add process_stratum_target parameter.
10407 Save target in global.
10408 (get_last_target_status): Add process_stratum_target parameter and
10409 handle it.
10410 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10411 (context_switch): Check inferior_ptid == null_ptid before calling
10412 inferior_thread().
10413 (get_inferior_stop_soon): Pass down target.
10414 (wait_one): Rename to ...
10415 (poll_one_curr_target): ... this.
10416 (struct wait_one_event): New.
10417 (wait_one): New.
10418 (stop_all_threads): Adjust.
10419 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10420 event's target.
10421 (switch_back_to_stepped_thread): Also consider target.
10422 (print_stop_event): Update.
10423 (normal_stop): Update. Also consider the resume target.
10424 * infrun.h (wait_for_inferior): Remove declaration.
10425 (user_visible_resume_target): New declaration.
10426 (get_last_target_status, set_last_target_status): New
10427 process_stratum_target parameter.
10428 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10429 process_stratum_target parameter, and use it.
10430 (clear_inline_frame_state (thread_info*)): New.
10431 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10432 process_stratum_target parameter.
10433 (clear_inline_frame_state (thread_info*)): Declare.
10434 * linux-fork.c (delete_checkpoint_command): Pass target down to
10435 find_thread_ptid.
10436 (checkpoint_command): Adjust.
10437 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10438 instead of just tweaking inferior_ptid.
10439 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10440 (exit_lwp): Pass target down to find_thread_ptid.
10441 (attach_proc_task_lwp_callback): Pass target down to
10442 add_thread/set_running/set_executing.
10443 (linux_nat_target::attach): Pass target down to
10444 thread_change_ptid.
10445 (get_detach_signal): Pass target down to find_thread_ptid.
10446 Consider last target status's target.
10447 (linux_resume_one_lwp_throw, resume_lwp)
10448 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10449 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10450 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10451 (linux_nat_target::async_wait_fd): New.
10452 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10453 target down.
10454 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10455 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10456 * linux-thread-db.c (struct thread_db_info::process_target): New
10457 field.
10458 (add_thread_db_info): Save target.
10459 (get_thread_db_info): New process_stratum_target parameter. Also
10460 match target.
10461 (delete_thread_db_info): New process_stratum_target parameter.
10462 Also match target.
10463 (thread_from_lwp): Adjust to pass down target.
10464 (thread_db_notice_clone): Pass down target.
10465 (check_thread_db_callback): Pass down target.
10466 (try_thread_db_load_1): Always push the thread_db target.
10467 (try_thread_db_load, record_thread): Pass target down.
10468 (thread_db_target::detach): Pass target down. Always unpush the
10469 thread_db target.
10470 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10471 target down. Always unpush the thread_db target.
10472 (find_new_threads_callback, thread_db_find_new_threads_2)
10473 (thread_db_target::update_thread_list): Pass target down.
10474 (thread_db_target::pid_to_str): Pass current inferior down.
10475 (thread_db_target::get_thread_local_address): Pass target down.
10476 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10477 target down.
10478 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10479 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10480 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10481 (procfs_init_inferior): Rename to ...
10482 (procfs_target::procfs_init_inferior): ... this and adjust.
10483 (procfs_target::create_inferior, procfs_notice_thread)
10484 (procfs_do_thread_registers): Adjust.
10485 * ppc-fbsd-tdep.c: Include "inferior.h".
10486 (ppcfbsd_get_thread_local_address): Pass down target.
10487 * proc-service.c (ps_xfer_memory): Switch current inferior and
10488 program space as well.
10489 (get_ps_regcache): Pass target down.
10490 * process-stratum-target.c
10491 (process_stratum_target::thread_address_space)
10492 (process_stratum_target::thread_architecture): Pass target down.
10493 * process-stratum-target.h
10494 (process_stratum_target::threads_executing): New field.
10495 (as_process_stratum_target): New.
10496 * ravenscar-thread.c
10497 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10498 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10499 down.
10500 * record-btrace.c (record_btrace_target::info_record): Adjust.
10501 (record_btrace_target::record_method)
10502 (record_btrace_target::record_is_replaying)
10503 (record_btrace_target::fetch_registers)
10504 (get_thread_current_frame_id, record_btrace_target::resume)
10505 (record_btrace_target::wait, record_btrace_target::stop): Pass
10506 target down.
10507 * record-full.c (record_full_wait_1): Switch to event thread.
10508 Pass target down.
10509 * regcache.c (regcache::regcache)
10510 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10511 process_stratum_target parameter and handle it.
10512 (current_thread_target): New global.
10513 (get_thread_regcache): Add process_stratum_target parameter and
10514 handle it. Switch inferior before calling target method.
10515 (get_thread_regcache): Pass target down.
10516 (get_thread_regcache_for_ptid): Pass target down.
10517 (registers_changed_ptid): Add process_stratum_target parameter and
10518 handle it.
10519 (registers_changed_thread, registers_changed): Pass target down.
10520 (test_get_thread_arch_aspace_regcache): New.
10521 (current_regcache_test): Define a couple local test_target_ops
10522 instances and use them for testing.
10523 (readwrite_regcache): Pass process_stratum_target parameter.
10524 (cooked_read_test, cooked_write_test): Pass mock_target down.
10525 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10526 (get_thread_arch_aspace_regcache): Add process_stratum_target
10527 parameter.
10528 (regcache::target): New method.
10529 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10530 (regcache::registers_changed_ptid): Add process_stratum_target
10531 parameter.
10532 (regcache::m_target): New field.
10533 (registers_changed_ptid): Add process_stratum_target parameter.
10534 * remote.c (remote_state::supports_vCont_probed): New field.
10535 (remote_target::async_wait_fd): New method.
10536 (remote_unpush_and_throw): Add remote_target parameter.
10537 (get_current_remote_target): Adjust.
10538 (remote_target::remote_add_inferior): Push target.
10539 (remote_target::remote_add_thread)
10540 (remote_target::remote_notice_new_inferior)
10541 (get_remote_thread_info): Pass target down.
10542 (remote_target::update_thread_list): Skip threads of inferiors
10543 bound to other targets. (remote_target::close): Don't discard
10544 inferiors. (remote_target::add_current_inferior_and_thread)
10545 (remote_target::process_initial_stop_replies)
10546 (remote_target::start_remote)
10547 (remote_target::remote_serial_quit_handler): Pass down target.
10548 (remote_target::remote_unpush_target): New remote_target
10549 parameter. Unpush the target from all inferiors.
10550 (remote_target::remote_unpush_and_throw): New remote_target
10551 parameter. Pass it down.
10552 (remote_target::open_1): Check whether the current inferior has
10553 execution instead of checking whether any inferior is live. Pass
10554 target down.
10555 (remote_target::remote_detach_1): Pass down target. Use
10556 remote_unpush_target.
10557 (extended_remote_target::attach): Pass down target.
10558 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10559 (remote_target::append_resumption): Pass down target.
10560 (remote_target::append_pending_thread_resumptions)
10561 (remote_target::remote_resume_with_hc, remote_target::resume)
10562 (remote_target::commit_resume): Pass down target.
10563 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10564 (remote_target::interrupt_query)
10565 (remote_target::remove_new_fork_children)
10566 (remote_target::check_pending_events_prevent_wildcard_vcont)
10567 (remote_target::remote_parse_stop_reply)
10568 (remote_target::process_stop_reply): Pass down target.
10569 (first_remote_resumed_thread): New remote_target parameter. Pass
10570 it down.
10571 (remote_target::wait_as): Pass down target.
10572 (unpush_and_perror): New remote_target parameter. Pass it down.
10573 (remote_target::readchar, remote_target::remote_serial_write)
10574 (remote_target::getpkt_or_notif_sane_1)
10575 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10576 down target.
10577 (remote_target::mourn_inferior): Pass down target. Use
10578 remote_unpush_target.
10579 (remote_target::core_of_thread)
10580 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10581 (remote_target::pid_to_exec_file)
10582 (remote_target::thread_handle_to_thread_info): Pass down target.
10583 (remote_target::async_wait_fd): New.
10584 * riscv-fbsd-tdep.c: Include "inferior.h".
10585 (riscv_fbsd_get_thread_local_address): Pass down target.
10586 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10587 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10588 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10589 Adjust.
10590 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10591 * solib-svr4.c (enable_break): Pass down target.
10592 * spu-multiarch.c (parse_spufs_run): Pass down target.
10593 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10594 * target-delegates.c: Regenerate.
10595 * target.c (g_target_stack): Delete.
10596 (current_top_target): Return the current inferior's top target.
10597 (target_has_execution_1): Refer to the passed-in inferior's top
10598 target.
10599 (target_supports_terminal_ours): Check whether the initial
10600 inferior was already created.
10601 (decref_target): New.
10602 (target_stack::push): Incref/decref the target.
10603 (push_target, push_target, unpush_target): Adjust.
10604 (target_stack::unpush): Defref target.
10605 (target_is_pushed): Return bool. Adjust to refer to the current
10606 inferior's target stack.
10607 (dispose_inferior): Delete, and inline parts ...
10608 (target_preopen): ... here. Only dispose of the current inferior.
10609 (target_detach): Hold strong target reference while detaching.
10610 Pass target down.
10611 (target_thread_name): Add assertion.
10612 (target_resume): Pass down target.
10613 (target_ops::beneath, find_target_at): Adjust to refer to the
10614 current inferior's target stack.
10615 (get_dummy_target): New.
10616 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10617 has a thread running.
10618 (initialize_targets): Rename to ...
10619 (_initialize_target): ... this.
10620 * target.h: Include "gdbsupport/refcounted-object.h".
10621 (struct target_ops): Inherit refcounted_object.
10622 (target_ops::shortname, target_ops::longname): Make const.
10623 (target_ops::async_wait_fd): New method.
10624 (decref_target): Declare.
10625 (struct target_ops_ref_policy): New.
10626 (target_ops_ref): New typedef.
10627 (get_dummy_target): Declare function.
10628 (target_is_pushed): Return bool.
10629 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10630 (all_matching_threads_iterator::all_matching_threads_iterator):
10631 Handle filter target.
10632 * thread-iter.h (struct all_matching_threads_iterator, struct
10633 all_matching_threads_range, class all_non_exited_threads_range):
10634 Filter by target too. Remove explicit.
10635 * thread.c (threads_executing): Delete.
10636 (inferior_thread): Pass down current inferior.
10637 (clear_thread_inferior_resources): Pass down thread pointer
10638 instead of ptid_t.
10639 (add_thread_silent, add_thread_with_info, add_thread): Add
10640 process_stratum_target parameter. Use it for thread and inferior
10641 searches.
10642 (is_current_thread): New.
10643 (thread_info::deletable): Use it.
10644 (find_thread_ptid, thread_count, in_thread_list)
10645 (thread_change_ptid, set_resumed, set_running): New
10646 process_stratum_target parameter. Pass it down.
10647 (set_executing): New process_stratum_target parameter. Pass it
10648 down. Adjust reference to 'threads_executing'.
10649 (threads_are_executing): New process_stratum_target parameter.
10650 Adjust reference to 'threads_executing'.
10651 (set_stop_requested, finish_thread_state): New
10652 process_stratum_target parameter. Pass it down.
10653 (switch_to_thread): Also match inferior.
10654 (switch_to_thread): New process_stratum_target parameter. Pass it
10655 down.
10656 (update_threads_executing): Reimplement.
10657 * top.c (quit_force): Pop targets from all inferior.
10658 (gdb_init): Don't call initialize_targets.
10659 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10660 Declare.
10661 (windows_add_thread, windows_delete_thread): Adjust.
10662 (get_windows_debug_event): Rename to ...
10663 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10664 * tracefile-tfile.c (tfile_target_open): Pass down target.
10665 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10666 Forward declare.
10667 (switch_to_thread): Add process_stratum_target parameter.
10668 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10669 parameter. Use it.
10670 (mi_on_resume): Pass target down.
10671 * nat/fork-inferior.c (startup_inferior): Add
10672 process_stratum_target parameter. Pass it down.
10673 * nat/fork-inferior.h (startup_inferior): Add
10674 process_stratum_target parameter.
10675 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10676
75c6c844
PA
106772020-01-10 Pedro Alves <palves@redhat.com>
10678
10679 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10680 directly. Instead find the first thread in the thread list and
10681 use switch_to_thread.
10682
78f2c40a
PA
106832020-01-10 Pedro Alves <palves@redhat.com>
10684
10685 * remote.c (remote_target::remote_add_inferior): Don't bind a
10686 process to the current inferior if the current inferior is already
10687 bound to a process.
10688
e7af6c70
TBA
106892020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10690 Pedro Alves <palves@redhat.com>
10691
10692 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10693 If no process is specified, return null_ptid instead of
10694 inferior_ptid.
10695 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10696 TARGET_WAITKIND_SIGNALLED with no pid.
10697
31ba933e
PA
106982020-01-10 Pedro Alves <palves@redhat.com>
10699
10700 * remote.c (first_remote_resumed_thread): New.
10701 (remote_target::wait_as): Use it as default event_ptid instead of
10702 inferior_ptid.
10703
735fc2ca
PA
107042020-01-10 Pedro Alves <palves@redhat.com>
10705
10706 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10707
c17e02e1
PA
107082020-01-10 Pedro Alves <palves@redhat.com>
10709
10710 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10711 not -1.
10712
ab1ddbcf
PA
107132020-01-10 Pedro Alves <palves@redhat.com>
10714
10715 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10716 ptid to get_last_target_status.
10717 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10718 ptid to get_last_target_status.
10719 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10720 get_last_target_status.
10721 (info_program_command): Don't pass a target_waitstatus to
10722 get_last_target_status.
10723 * infrun.c (init_wait_for_inferior): Use
10724 nullify_last_target_wait_ptid.
10725 (get_last_target_status): Handle nullptr arguments.
10726 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10727 (print_stop_event): Don't pass a ptid to get_last_target_status.
10728 (normal_stop): Don't pass a ptid to get_last_target_status.
10729 * infrun.h (get_last_target_status, set_last_target_status): Move
10730 comments here and update.
10731 (nullify_last_target_wait_ptid): Declare.
10732 * linux-fork.c (fork_load_infrun_state): Remove local extern
10733 declaration of nullify_last_target_wait_ptid.
10734 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10735 to get_last_target_status.
10736
f3f8ece4
PA
107372020-01-10 Pedro Alves <palves@redhat.com>
10738
10739 * gdbthread.h (scoped_restore_current_thread)
10740 <dont_restore, restore, m_dont_restore>: Declare.
10741 * thread.c (thread_alive): Add assertion. Return bool.
10742 (switch_to_thread_if_alive): New.
10743 (prune_threads): Switch inferior/thread.
10744 (print_thread_info_1): Switch thread before calling target methods.
10745 (scoped_restore_current_thread::restore): New, factored out from
10746 ...
10747 (scoped_restore_current_thread::~scoped_restore_current_thread):
10748 ... this.
10749 (scoped_restore_current_thread::scoped_restore_current_thread):
10750 Add assertion.
10751 (thread_apply_all_command, thread_select): Use
10752 switch_to_thread_if_alive.
10753 * infrun.c (proceed, restart_threads, handle_signal_stop)
10754 (switch_back_to_stepped_thread): Switch current thread before
10755 calling target methods.
10756
db2d40f7
PA
107572020-01-10 Pedro Alves <palves@redhat.com>
10758
10759 * inferior.c (switch_to_inferior_no_thread): New function,
10760 factored out from ...
10761 (inferior_command): ... here.
10762 * inferior.h (switch_to_inferior_no_thread): Declare.
10763 * mi/mi-main.c (run_one_inferior): Use
10764 switch_to_inferior_no_thread.
10765
bd420a2d
PA
107662020-01-10 Pedro Alves <palves@redhat.com>
10767
10768 * infcmd.c (kill_command): Remove dead code.
10769
ddf5db90
PA
107702020-01-10 Pedro Alves <palves@redhat.com>
10771
10772 * remote.c (remote_target::mourn_inferior): No longer check
10773 whether the target is running.
10774
5018ce90
PA
107752020-01-10 Pedro Alves <palves@redhat.com>
10776
10777 * corelow.c (core_target::has_execution): Change parameter type to
10778 inferior pointer.
10779 * inferior.c (number_of_live_inferiors): Use
10780 inferior::has_execution instead of target_has_execution_1.
10781 * inferior.h (inferior::has_execution): New.
10782 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10783 inferior::has_execution instead of target_has_execution_1.
10784 * process-stratum-target.c
10785 (process_stratum_target::has_execution): Change parameter type to
10786 inferior pointer. Check the inferior's PID instead of
10787 inferior_ptid.
10788 * process-stratum-target.h
10789 (process_stratum_target::has_execution): Change parameter type to
10790 inferior pointer.
10791 * record-full.c (record_full_core_target::has_execution): Change
10792 parameter type to inferior pointer.
10793 * target.c (target_has_execution_1): Change parameter type to
10794 inferior pointer.
10795 (target_has_execution_current): Adjust.
10796 * target.h (target_ops::has_execution): Change parameter type to
10797 inferior pointer.
10798 (target_has_execution_1): Change parameter type to inferior
10799 pointer. Change return type to bool.
10800 * tracefile.h (tracefile_target::has_execution): Change parameter
10801 type to inferior pointer.
10802
74375d18
PA
108032020-01-10 Pedro Alves <palves@redhat.com>
10804
10805 * exceptions.c (print_flush): Remove current_top_target() check.
10806
acdf84a6
PA
108072020-01-10 Pedro Alves <palves@redhat.com>
10808
10809 * remote.c (show_remote_exec_file): Show the current inferior's
10810 exec-file instead of the command variable's value.
10811
ec506636
PA
108122020-01-10 Pedro Alves <palves@redhat.com>
10813
10814 * record-full.c (record_full_resume_ptid): New global.
10815 (record_full_target::resume): Set it.
10816 (record_full_wait_1): Use record_full_resume_ptid instead of
10817 inferior_ptid.
10818
873657b9
PA
108192020-01-10 Pedro Alves <palves@redhat.com>
10820
10821 * gdbthread.h (scoped_restore_current_thread)
10822 <dont_restore, restore, m_dont_restore>: Declare.
10823 * thread.c (thread_alive): Add assertion. Return bool.
10824 (switch_to_thread_if_alive): New.
10825 (prune_threads): Switch inferior/thread.
10826 (print_thread_info_1): Switch thread before calling target methods.
10827 (scoped_restore_current_thread::restore): New, factored out from
10828 ...
10829 (scoped_restore_current_thread::~scoped_restore_current_thread):
10830 ... this.
10831 (scoped_restore_current_thread::scoped_restore_current_thread):
10832 Add assertion.
10833 (thread_apply_all_command, thread_select): Use
10834 switch_to_thread_if_alive.
10835
7f0ae84c
GB
108362020-01-10 George Barrett <bob@bob131.so>
10837
10838 * stap-probe.c (stap_modify_semaphore): Don't check for null
10839 semaphores.
10840 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10841 for null semaphores.
10842
f5a7c406
AB
108432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10844
10845 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10846 all source windows, and maintain horizontal scroll status while
10847 doing so.
10848
9ae6bf64
TT
108492020-01-09 Tom Tromey <tom@tromey.com>
10850
10851 PR tui/18932:
10852 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10853 update_source_window, not print_source_lines.
10854
b2efe70c
AB
108552020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10856
10857 * tui/tui.c (tui_enable): Register tui hooks after calling
10858 tui_display_main.
10859
5f23a082
CB
108602020-01-09 Christian Biesinger <cbiesinger@google.com>
10861
10862 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10863
3061113b
SM
108642020-01-08 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * thread.c (print_thread_info_1): Fix indentation.
10867
57d75002
CB
108682020-01-09 Christian Biesinger <cbiesinger@google.com>
10869
10870 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10871 unique_xmalloc_ptr outside the if to always free the demangled name.
10872
6a053cb1
TT
108732020-01-08 Tom Tromey <tromey@adacore.com>
10874
10875 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10876 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10877 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10878 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10879 Remove.
10880 (section_offsets): New typedef.
10881 * symtab.c (fixup_section, get_msymbol_address): Update.
10882 * symmisc.c (dump_msymbols): Update.
10883 * symfile.h (relative_addr_info_to_section_offsets)
10884 (symfile_map_offsets_to_segments): Update.
10885 * symfile.c (build_section_addr_info_from_objfile)
10886 (init_objfile_sect_indices): Update.
10887 (struct place_section_arg): Change type of "offsets".
10888 (place_section): Update.
10889 (relative_addr_info_to_section_offsets): Change type of
10890 "section_offsets". Remove "num_sections" parameter.
10891 (default_symfile_offsets, syms_from_objfile_1)
10892 (set_objfile_default_section_offset): Update.
10893 (reread_symbols): No need to preserve section offsets by hand.
10894 (symfile_map_offsets_to_segments): Change type of "offsets".
10895 * stap-probe.c (relocate_address): Update.
10896 * stabsread.h (process_one_symbol): Update.
10897 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10898 (solib_target_relocate_section_addresses): Update.
10899 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10900 Update.
10901 * solib-frv.c (frv_relocate_main_executable): Update.
10902 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10903 * solib-aix.c (solib_aix_get_section_offsets): Change return
10904 type.
10905 (solib_aix_solib_create_inferior_hook): Update.
10906 * remote.c (remote_target::get_offsets): Update.
10907 * psymtab.c (find_pc_sect_psymtab): Update.
10908 * psympriv.h (struct partial_symbol) <address, text_low,
10909 text_high>: Update.
10910 * objfiles.h (obj_section_offset): Update.
10911 (struct objfile) <section_offsets>: Change type.
10912 <num_sections>: Remove.
10913 (objfile_relocate): Update.
10914 * objfiles.c (entry_point_address_query): Update
10915 (relocate_one_symbol): Change type of "section_offsets".
10916 (objfile_relocate1, objfile_relocate1): Change type of
10917 "new_offsets".
10918 (objfile_rebase1): Update.
10919 * mipsread.c (mipscoff_symfile_read): Update.
10920 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10921 parameter.
10922 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10923 (parse_external, psymtab_to_symtab_1): Update.
10924 * machoread.c (macho_symfile_offsets): Update.
10925 * ia64-tdep.c (ia64_find_unwind_table): Update.
10926 * hppa-tdep.c (read_unwind_info): Update.
10927 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10928 * dwarf2read.c (create_addrmap_from_index)
10929 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10930 (process_psymtab_comp_unit_reader, add_partial_symbol)
10931 (add_partial_subprogram, process_full_comp_unit)
10932 (read_file_scope, read_func_scope, read_lexical_block_scope)
10933 (read_call_site_scope, dwarf2_rnglists_process)
10934 (dwarf2_ranges_process, dwarf2_ranges_read)
10935 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10936 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10937 Update.
10938 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10939 Update.
10940 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10941 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10942 (process_one_symbol): Change type of "section_offsets".
10943 * ctfread.c (get_objfile_text_range): Update.
10944 * coffread.c (coff_symtab_read, enter_linenos)
10945 (process_coff_symbol): Update.
10946 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10947 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10948
456e800a
TT
109492020-01-08 Tom Tromey <tromey@adacore.com>
10950
10951 * dwarf2read.c (parse_macro_definition): Use std::string.
10952 (parse_macro_definition): Likewise.
10953
6dfa2fc2
TT
109542020-01-08 Tom Tromey <tromey@adacore.com>
10955
10956 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10957 (ATTR_ALLOC_CHUNK): Remove.
10958
421d1616
TT
109592020-01-08 Tom Tromey <tromey@adacore.com>
10960
10961 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10962
43816ebc
TT
109632020-01-08 Tom Tromey <tromey@adacore.com>
10964
10965 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10966 (dwarf2_compute_name, open_dwo_file): Likewise.
10967 (process_enumeration_scope): Use std::vector.
10968 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10969 (partial_die_info::fixup, dwarf2_start_subfile)
10970 (guess_full_die_structure_name, dwarf2_name): Likewise.
10971 (determine_prefix): Update.
10972 (guess_full_die_structure_name): Make return type const.
10973 (partial_die_full_name): Return unique_xmalloc_ptr.
10974 (DW_FIELD_ALLOC_CHUNK): Remove.
10975
4212d509
TT
109762020-01-07 Tom Tromey <tromey@adacore.com>
10977
10978 PR build/24937:
10979 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10980
06a6207a
JT
109812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10982
10983 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10984
153d79c4
AB
109852020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * stack.c (print_frame_info): Move disassemble_next_line code
10988 inside source_print block.
10989
66182876
EZ
109902020-01-06 Eli Zaretskii <eliz@gnu.org>
10991
10992 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10993 gdb/signals.h, as we are now using native signal symbols.
10994
cbfa8581
SV
109952020-01-06 Shahab Vahedi <shahab@synopsys.com>
10996
10997 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10998 overflow by an early check of content vs threshold.
aac66a4c 10999 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11000 Likewise.
11001
3f602821
EZ
110022020-01-06 Eli Zaretskii <eliz@gnu.org>
11003
11004 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11005
a08c904d
JT
110062020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11007
11008 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11009 export table if no section contains it's RVA.
11010
89a65580
EZ
110112020-01-06 Eli Zaretskii <eliz@gnu.org>
11012
11013 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11014
8b7fcda2
HD
110152020-01-06 Hannes Domani <ssbssa@yahoo.de>
11016
11017 * source.c (print_source_lines_base): Set last_line_listed.
11018
a61b4f69
SV
110192020-01-06 Shahab Vahedi <shahab@synopsys.com>
11020
11021 * tui/tui-disasm.c: Remove trailing spaces.
11022
559e7e50
EZ
110232020-01-06 Eli Zaretskii <eliz@gnu.org>
11024 Pedro Alves <palves@redhat.com>
11025
11026 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11027 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11028 (windows_gdb_signal_to_target): New function, uses the above
11029 enumeration to convert GDB internal signal codes to equivalent
11030 Windows codes.
11031 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11032 * windows-nat.c: Include "gdb_wait.h".
11033 (get_windows_debug_event): Extract the fatal exception from the
11034 exit status and convert to the equivalent Posix signal number.
11035 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11036 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11037 * gdbsupport/gdb_wait.c: New file, implements
11038 windows_status_to_termsig.
11039 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11040 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11041
f2302a34
AB
110422020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11043
11044 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11045 show_layout.
11046
6a5206eb
LM
110472020-01-05 Luis Machado <luis.machado@linaro.org>
11048
11049 * aarch64-linux-nat.c
11050 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11051 and bfd_mach_aarch64.
11052
6ec1d75e
PW
110532020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11054
11055 * ui-file.c (stdio_file::can_emit_style_escape)
11056 (tee_file::can_emit_style_escape): Ensure style is used also on
11057 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11058 to gdb_stdout.
11059 * main.c (set_gdb_data_directory): Use file style to output the
11060 warning that the given pathname is not a directory.
11061 * top.c (show_history_filename, gdb_safe_append_history)
11062 (show_gdb_datadir): Use file style.
11063
44f81a76
HD
110642020-01-03 Hannes Domani <ssbssa@yahoo.de>
11065
11066 * solib-target.c (struct lm_info_target):
11067 Change offsets to be a unique_xmalloc_ptr.
11068 (solib_target_relocate_section_addresses): Update.
11069
25057eb0
HD
110702020-01-03 Hannes Domani <ssbssa@yahoo.de>
11071
11072 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11073
6e2118f5
BE
110742020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11075
11076 * MAINTAINERS (Write After Approval): Add myself.
11077
8133c7dc
LM
110782020-01-02 Luis Machado <luis.machado@linaro.org>
11079
11080 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11081 Cell BE architecture.
11082 * target.h (struct target_ops) <thread_architecture>: Likewise.
11083
48189bec
HD
110842020-01-01 Hannes Domani <ssbssa@yahoo.de>
11085
11086 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11087
ead1063b
HD
110882020-01-01 Hannes Domani <ssbssa@yahoo.de>
11089
11090 * MAINTAINERS (Write After Approval): Add myself.
11091
e5d78223
JB
110922020-01-01 Joel Brobecker <brobecker@adacore.com>
11093
11094 * gdbarch.sh: Update copyright year range of generated files.
11095
b811d2c2
JB
110962020-01-01 Joel Brobecker <brobecker@adacore.com>
11097
11098 Update copyright year range in all GDB files.
11099
5f4def5c
JB
111002020-01-01 Joel Brobecker <brobecker@adacore.com>
11101
11102 * copyright.py: Convert to Python 3.
11103
51fd4002
JB
111042020-01-01 Joel Brobecker <brobecker@adacore.com>
11105
11106 * copyright.py: Adapt after move of gnulib directory from gdb
11107 directory to toplevel directory.
11108
5fb651f2
JB
111092020-01-01 Joel Brobecker <brobecker@adacore.com>
11110
11111 * copyright.py (main): Exit if run from the wrong directory.
11112
5dd8bf88
JB
111132020-01-01 Joel Brobecker <brobecker@adacore.com>
11114
11115 * top.c (print_gdb_version): Change copyright year to 2020.
11116
9f71dacb 111172020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11118
9f71dacb 11119 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11120
9f71dacb 11121For older changes see ChangeLog-2019.
c906108c
SS
11122\f
11123Local Variables:
11124mode: change-log
11125left-margin: 8
11126fill-column: 74
11127version-control: never
57da7796 11128coding: utf-8
c906108c 11129End:
This page took 2.932909 seconds and 4 git commands to generate.