]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_ARRAY_{UPPER,LOWER}_BOUND_IS_UNDEFINED
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
39498edb
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5 callers to use the equivalent accessor methods instead.
6
3b606f38
SM
72020-07-12 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
10 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
11 to use dynamic_prop::kind.
12
064d9cb9
SM
132020-07-12 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
16 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
17 to get the bound property's kind and check against
18 PROP_UNDEFINED.
19
5537ddd0
SM
202020-07-12 Simon Marchi <simon.marchi@efficios.com>
21
22 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
23 all callers to use type::range_bounds followed by
24 dynamic_prop::{low,high}.
25
8c2e4e06
SM
262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
29 const_val, set_const_val, baton, set_locexpr, set_loclist,
30 set_addr_offset, variant_parts, set_variant_parts,
31 original_type, set_original_type>: New methods.
32 <kind>: Rename to...
33 <m_kind>: ... this. Update all users to use the new methods
34 instead.
35 <data>: Rename to...
36 <m_data>: ... this. Update all users to use the new methods
37 instead.
38
7c6f2712
SM
392020-07-12 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.c (get_discrete_bounds): Return failure if
42 the range type's bounds are not both defined and constant
43 values.
44 (get_array_bounds): Update comment. Remove undefined bound check.
45
599088e3
SM
462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
49 the type::bounds method directly.
50
c4dfcb36
SM
512020-07-12 Simon Marchi <simon.marchi@efficios.com>
52
53 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
54 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
55 are used to set the range type's bounds to use set_bounds.
56
0a278aa7
PW
572020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
58
59 * exec.c (_initialize_exec): Update exec-file-mismatch help.
60
cce20f10
PA
612020-07-10 Pedro Alves <pedro@palves.net>
62
63 * gdbthread.h (inferior_ref): Define.
64 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
65 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
66 * thread.c
67 (scoped_restore_current_thread::restore):
68 Adjust to gdb::ref_ptr.
69 (scoped_restore_current_thread::~scoped_restore_current_thread):
70 Remove manual decref handling.
71 (scoped_restore_current_thread::scoped_restore_current_thread):
72 Adjust to use
73 inferior_ref::new_reference/thread_info_ref::new_reference.
74 Incref the thread before calling get_frame_id instead of after.
75 Let TARGET_CLOSE_ERROR propagate.
76
6d7aa592
PA
772020-07-10 Pedro Alves <pedro@palves.net>
78
79 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
80 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
81 NOT_AVAILABLE_ERROR.
82 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
83 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
84
b3e3a4c1
SM
852020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
86 Pedro Alves <pedro@palves.net>
87
88 PR gdb/26199
89 * infrun.c (threads_are_resumed_pending_p): Delete.
90 (do_target_wait): Remove threads_are_executing and
91 threads_are_resumed_pending_p checks from the inferior_matches
92 lambda. Update comments.
93
d6cc5d98
PA
942020-07-10 Pedro Alves <pedro@palves.net>
95
96 PR gdb/26199
97 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
98 executing threads.
99
7d3badc6
PA
1002020-07-10 Pedro Alves <pedro@palves.net>
101
102 PR gdb/26199
103 * infrun.c (handle_no_resumed): Handle multiple targets.
104
42bd97a6
PA
1052020-07-10 Pedro Alves <pedro@palves.net>
106
107 PR gdb/26199
108 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
109 target_is_async_p.
110
43667cc6
PA
1112020-07-10 Pedro Alves <pedro@palves.net>
112
113 PR gdb/26199
114 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
115 threads, not all threads.
116
96118d11
PA
1172020-07-10 Pedro Alves <pedro@palves.net>
118
119 PR gdb/26199
120 * remote.c (remote_target::open_1): Pass remote target pointer as
121 data to create_async_event_handler.
122 (remote_async_inferior_event_handler): Mark async event handler
123 before returning if the remote target still has either pending
124 events or unacknowledged notifications.
125
54904d81
JB
1262020-07-10 John Baldwin <jhb@FreeBSD.org>
127
128 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
129 declaration.
130 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
131 function.
132
f37e5866
JB
1332020-07-09 John Baldwin <jhb@FreeBSD.org>
134
135 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
136 inferior_ptid.
137
fc238d4a
JB
1382020-07-09 John Baldwin <jhb@FreeBSD.org>
139
140 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
141 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
142 AT_FREEBSD_PS_STRINGS.
143
6e2469ff
HD
1442020-07-08 Hannes Domani <ssbssa@yahoo.de>
145
146 * auto-load.c (auto_load_objfile_script_1): Convert drive part
147 of debugfile path on Windows.
148
d1076c41
JB
1492020-07-08 John Baldwin <jhb@FreeBSD.org>
150
151 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
152 argument to 'data'.
153
15f3b077
TT
1542020-07-08 Tom Tromey <tromey@adacore.com>
155
156 * ada-lang.c (ada_exception_message_1): Use read_memory.
157
9fc501fd
AB
1582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 PR python/22748
161 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
162 special handling for inline frames.
163 * findvar.c (value_of_register_lazy): Skip inline frames when
164 creating lazy register values.
165 * frame.c (frame_id_computed_p): Delete definition.
166 * frame.h (frame_id_computed_p): Delete declaration.
167
64cb3757
AB
1682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * NEWS: Mention additions to Python API.
171 * python/py-arch.c (archpy_register_groups): New function.
172 (arch_object_methods): Add 'register_groups' method.
173 * python/py-registers.c (reggroup_iterator_object): New struct.
174 (reggroup_object): New struct.
175 (gdbpy_new_reggroup): New function.
176 (gdbpy_reggroup_to_string): New function.
177 (gdbpy_reggroup_name): New function.
178 (gdbpy_reggroup_iter): New function.
179 (gdbpy_reggroup_iter_next): New function.
180 (gdbpy_new_reggroup_iterator): New function
181 (gdbpy_initialize_registers): Register new types.
182 (reggroup_iterator_object_type): Define new Python type.
183 (gdbpy_reggroup_getset): New static global.
184 (reggroup_object_type): Define new Python type.
185 * python/python-internal.h
186
0f767f94
AB
1872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
190 * python/py-arch.c (archpy_registers): New function.
191 (arch_object_methods): Add 'registers' method.
192 * python/py-registers.c: New file.
193 * python/python-internal.h
194 (gdbpy_new_register_descriptor_iterator): Declare.
195 (gdbpy_initialize_registers): Declare.
196 * python/python.c (do_start_initialization): Call
197 gdbpy_initialize_registers.
198 * NEWS: Mention additions to the Python API.
199
87dbc774
AB
2002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * NEWS: Mention new Python API method.
203 * python/py-unwind.c (pending_framepy_architecture): New function.
204 (pending_frame_object_methods): Add architecture method.
205
3bc98c0c
AB
2062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * gdbarch.c: Regenerate.
209 * gdbarch.h: Regenerate.
210 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
211 (gdbarch_data): Use internal_error for the case where
212 deprecated_set_gdbarch_data was originally needed.
213 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
214 and use passed in obstack.
215 (libunwind_frame_set_descr): Should no longer get back NULL from
216 gdbarch_data.
217 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
218 type.
219 * user-regs.c (user_regs_init): Update parameters, and use passed
220 in obstack.
221 (user_reg_add): Should no longer get back NULL from gdbarch_data.
222 (_initialize_user_regs): Register as a pre-init gdbarch data type.
223
d8cc8af6
TV
2242020-07-06 Tom de Vries <tdevries@suse.de>
225
226 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
227 End-Of-Sequence in lte_is_less_than.
228 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
229 "gdb: Don't reorder line table entries too much when sorting".
230
947f7597
TV
2312020-07-06 Tom de Vries <tdevries@suse.de>
232
233 PR tui/26205
234 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
235
1e7c1b22
TV
2362020-07-05 Tom de Vries <tdevries@suse.de>
237
238 PR build/26187
239 * inferior.h (struct infcall_suspend_state_deleter): If available, use
240 std::uncaught_exceptions instead of deprecated
241 std::uncaught_exception.
242
a36158ec
SM
2432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * macroexp.h (macro_stringify): Return
246 gdb::unique_xmalloc_ptr<char>.
247 * macroexp.c (macro_stringify): Likewise.
248 * macrotab.c (fixup_definition): Update.
249
14d960c8
SM
2502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
253 (lex_one_token): Update.
254 * macroexp.c (struct macro_buffer) <release>: Return
255 gdb::unique_xmalloc_ptr<char>.
256 (macro_stringify): Update.
257 (macro_expand): Update.
258 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
259 * macroexp.h (macro_expand_next): Likewise.
260
211d5b1c
SM
2612020-07-02 Simon Marchi <simon.marchi@efficios.com>
262
263 * macroexp.h (macro_lookup_ftype): Remove.
264 (macro_expand, macro_expand_once, macro_expand_next): Remove
265 lookup function parameters, add scope parameter.
266 * macroexp.c (scan, substitute_args, expand, maybe_expand,
267 macro_expand, macro_expand_once, macro_expand_next): Likewise.
268 * macroscope.h (standard_macro_lookup): Change parameter type
269 to macro_scope.
270 * macroscope.c (standard_macro_lookup): Likewise.
271 * c-exp.y (lex_one_token): Update.
272 * macrocmd.c (macro_expand_command): Likewise.
273 (macro_expand_once_command): Likewise.
274
b1a35af2
SM
2752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * inf-loop.c (inferior_event_handler): Remove client_data param.
278 * inf-loop.h (inferior_event_handler): Likewise.
279 * infcmd.c (step_1): Adjust.
280 * infrun.c (proceed): Adjust.
281 (fetch_inferior_event): Remove client_data param.
282 (infrun_async_inferior_event_handler): Adjust.
283 * infrun.h (fetch_inferior_event): Remove `void *` param.
284 * linux-nat.c (handle_target_event): Adjust.
285 * record-btrace.c (record_btrace_handle_async_inferior_event):
286 Adjust.
287 * record-full.c (record_full_async_inferior_event_handler):
288 Adjust.
289 * remote.c (remote_async_inferior_event_handler): Adjust.
290
1cdf9e33
TT
2912020-07-01 Tom Tromey <tom@tromey.com>
292
293 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
294 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
295
32c1e210
TT
2962020-07-01 Tom Tromey <tom@tromey.com>
297
298 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
299 tui_gen_win_info.
300 (tui_win_info::make_window): Merge with
301 tui_gen_win_info::make_window.
302 (tui_win_info::make_visible): Move from tui_gen_win_info.
303 * tui/tui-win.c (tui_win_info::max_width): Move from
304 tui_gen_win_info.
305 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
306 type.
307 <window_factory>: Likewise.
308 * tui/tui-layout.c (tui_win_info::resize): Move from
309 tui_gen_win_info.
310 (make_standard_window): Change return type.
311 (get_locator_window, tui_get_window_by_name): Likewise.
312 (tui_layout_window::apply): Remove a cast.
313 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
314 (struct tui_win_info): Merge with tui_gen_win_info.
315 (struct tui_gen_win_info): Remove.
316
a30cb6da
TT
3172020-07-01 Tom Tromey <tom@tromey.com>
318
319 * tui/tui-stack.h (struct tui_locator_window): Derive from
320 tui_win_info.
321 <do_scroll_horizontal, do_scroll_vertical>: New methods.
322 <can_box>: New method.
323
1eb2161f
TT
3242020-07-01 Tom Tromey <tom@tromey.com>
325
326 * tui/tui-stack.h (struct tui_locator_window): Remove body.
327
7134f2eb
TT
3282020-07-01 Tom Tromey <tom@tromey.com>
329
330 * tui/tui-regs.c (tui_data_window::display_registers_from)
331 (tui_data_window::display_registers_from)
332 (tui_data_window::first_data_item_displayed)
333 (tui_data_window::delete_data_content_windows): Update.
334 (tui_data_window::refresh_window, tui_data_window::no_refresh):
335 Remove.
336 (tui_data_window::check_register_values): Update.
337 (tui_data_item_window::rerender): Add parameters. Update.
338 (tui_data_item_window::refresh_window): Remove.
339 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
340 virtual.
341 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
342 tui_gen_win_info.
343 <refresh_window, max_height, min_height>: Remove.
344 <rerender>: Add parameters.
345 <x, y, visible>: New members.
346 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
347 <m_item_width>: New member.
348
22b7b041
TT
3492020-07-01 Tom Tromey <tom@tromey.com>
350
351 * tui/tui-regs.c (tui_data_window::show_register_group)
352 (tui_data_window::check_register_values): Update.
353 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
354 from item_no.
355
c9753adb
TT
3562020-07-01 Tom Tromey <tom@tromey.com>
357
358 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
359 useless "if".
360
9ab26b4a
TT
3612020-07-01 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
364 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
365
e555083f
TT
3662020-07-01 Tom Tromey <tom@tromey.com>
367
368 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
369 * tui/tui-winsource.h (enum tui_line_or_address_kind)
370 (struct tui_line_or_address): Move from tui-data.h.
371 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
372 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
373 (tui_cmd_window, tui_source_window_base, tui_source_window)
374 (tui_disasm_window): Don't declare.
375 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
376 to tui-winsource.h.
377 (SINGLE_KEY): Move to tui-stack.c.
378
7a02bab7
TT
3792020-07-01 Tom Tromey <tom@tromey.com>
380
381 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
382 std::string.
383 * tui/tui-regs.c (class tab_expansion_file): New.
384 (tab_expansion_file::write): New method.
385 (tui_register_format): Change return type. Use
386 tab_expansion_file.
387 (tui_get_register, tui_data_window::display_registers_from)
388 (tui_data_item_window::rerender): Update.
389 * tui/tui-io.h (tui_expand_tabs): Don't declare.
390 * tui/tui-io.c (tui_expand_tabs): Remove.
391
ea68593b
TT
3922020-07-01 Tom Tromey <tom@tromey.com>
393
394 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
395
a8caed5d
FS
3962020-07-01 Fangrui Song <maskray@google.com>
397
398 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
399
9cdf9820
AKS
4002020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
401
402 * dwarf2/read.c (set_die_type): Removed conditions to restrict
403 forms for DW_AT_associated and DW_AT_allocated attributes,
404 which is already checked in function attr_to_dynamic_prop.
405
a1520ad8
TT
4062020-06-30 Tom Tromey <tromey@adacore.com>
407
408 * dwarf2/read.c (quirk_rust_enum): Correctly call
409 alloc_rust_variant for default-less enum.
410
5ac58899
TT
4112020-06-30 Tom Tromey <tromey@adacore.com>
412
413 PR build/26183:
414 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
415 gdb::to_string.
416
19b187a9
SM
4172020-06-29 Simon Marchi <simon.marchi@efficios.com>
418
419 * gdbarch.sh (displaced_step_copy_insn): Update doc.
420 * gdbarch.h: Re-generate.
421
cd4c4c07
TT
4222020-06-28 Tom Tromey <tom@tromey.com>
423
424 * command.h (cmd_types): Remove.
425 (cmd_type): Don't declare.
426 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
427 typedef.
428 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
429 * cli/cli-decode.c (cmd_type): Remove.
430
05779d57
PA
4312020-06-27 Pedro Alves <palves@redhat.com>
432
433 * fork-child.c (prefork_hook): Adjust.
434 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
435 Delete.
436 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
437 * inferior.c (inferior::set_tty, inferior::tty): New methods.
438 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
439 Remove declarations.
440 (struct inferior) <set_tty, tty>: New methods.
441 (struct inferior) <terminal>: Rename to ...
442 (struct inferior) <m_terminal>: ... this and make private.
443 * main.c (captured_main_1): Adjust.
444 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
445 (mi_cmd_inferior_tty_show): Adjust.
446 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
447 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
448
1776e3e5
NA
4492020-06-26 Nick Alcock <nick.alcock@oracle.com>
450
451 * configure.ac: Add --enable-libctf: handle --disable-static
452 properly.
453 * acinclude.m4: sinclude ../config/enable.m4.
454 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
455 (LIBCTF): Substitute in.
456 (CTF_DEPS): New, likewise.
457 (CLIBS): libctf needs symbols from libbfd: move earlier.
458 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
459 flags.
460 * ctfread.c: Surround in ENABLE_LIBCTF.
461 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
462 * configure: Regenerate.
463 * config.in: Likewise.
464
58373b80
SM
4652020-06-25 Simon Marchi <simon.marchi@efficios.com>
466
467 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
468
277474ee
SM
4692020-06-25 Simon Marchi <simon.marchi@efficios.com>
470
471 * inferior.h (struct inferior) <terminal>: Change type to
472 gdb::unique_xmalloc_ptr<char>.
473 * inferior.c (inferior::~inferior): Don't free inf->terminal.
474 * infcmd.c (set_inferior_io_terminal): Don't free terminal
475 field, adjust to unique pointer.
476 (get_inferior_io_terminal): Adjust to unique pointer.
477
6d74da72
AB
4782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * riscv-tdep.c (riscv_print_registers_info): Loop over all
481 registers, not just the known core set of registers.
482
2e52d038
AB
4832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
486 fflags, frm, and fcsr registers.
487 (riscv_register_reggroup_p): Remove unknown CSRs from save and
488 restore groups.
489 (riscv_tdesc_unknown_reg): New function.
490 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
491 tdesc_use_registers.
492 * riscv-tdep.h (struct gdbarch_tdep): Add
493 unknown_csrs_first_regnum, unknown_csrs_count,
494 duplicate_fflags_regnum, duplicate_frm_regnum, and
495 duplicate_fcsr_regnum fields.
496
be64fd07
AB
4972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 * target-descriptions.c (tdesc_use_registers): Add new parameter a
500 callback, use the callback (when not null) to help number unknown
501 registers.
502 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
503 (tdesc_use_registers): Add extra parameter to declaration.
504
3b9fce96
AB
5052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
508 in the file.
509 (class riscv_pending_register_alias): Likewise.
510 (riscv_register_feature::register_info): Change 'required_p' field
511 to 'required', and change its type. Add 'check' member function.
512 (riscv_register_feature::register_info::check): Define new member
513 function.
514 (riscv_xreg_feature): Change initialisation of 'required' field.
515 (riscv_freg_feature): Likewise.
516 (riscv_virtual_feature): Likewise.
517 (riscv_csr_feature): Likewise.
518 (riscv_check_tdesc_feature): Take extra parameter, the csr
519 tdesc_feature, rewrite the function to use the new
520 riscv_register_feature::register_info::check function.
521 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
522
865bad26
AB
5232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * features/Makefile: Remove all references to the deleted files
526 below.
527 * features/riscv/32bit-csr.c: Deleted.
528 * features/riscv/32bit-csr.xml: Deleted.
529 * features/riscv/64bit-csr.c: Deleted.
530 * features/riscv/64bit-csr.xml: Deleted.
531 * features/riscv/rebuild-csr-xml.sh: Deleted.
532
ed69cbc8
AB
5332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
536 whitespace error for declaration of names member variable.
537 (struct riscv_register_feature): Add new prefer_first_name member
538 variable, and fix whitespace error in declaration of registers.
539 (riscv_xreg_feature): Initialize prefer_first_name field.
540 (riscv_freg_feature): Likewise.
541 (riscv_virtual_feature): Likewise.
542 (riscv_csr_feature): Likewise.
543 (riscv_register_name): Expand on comments. Remove register name
544 modifications for CSR and virtual registers.
545
4445e8f5
AB
5462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
549 errors.
550
767a879e
AB
5512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
554 riscv-opc.h.
555 (class riscv_pending_register_alias): New class.
556 (riscv_check_tdesc_feature): Take vector of pending aliases and
557 populate it as appropriate.
558 (riscv_setup_register_aliases): Delete.
559 (riscv_gdbarch_init): Create vector of pending aliases and pass it
560 to riscv_check_tdesc_feature in all cases. Use the vector to
561 create the register aliases.
562
bb6e55f3
RO
5632020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
564
565 * sol2-tdep.c (sol2_static_transform_name): Remove.
566 (sol2_init_abi): Don't register it.
567 * gdbarch.sh (static_transform_name): Remove.
568 * gdbarch.c, gdbarch.h: Regenerate.
569
570 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
571 gdbarch_static_transform_name.
572 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
573 * stabsread.c (define_symbol) <'X'>: Remove.
574 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
575 handling.
576 <'V'>: Likewise.
577 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
578 <'S'>: Remove call to gdbarch_static_transform_name.
579
c6d36836
RO
5802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
581
582 * procfs.c (procfs_pre_trace): New function.
583 (procfs_target::create_inferior): Pass it to fork_inferior.
584
a7e6196b
RO
5852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586
587 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
588 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
589 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
590 sol2-tdep.o, sparc-sol2-tdep.o.
591 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
592 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
593 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
594 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
595
d412e696
RO
5962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597
598 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
599 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
600 Call sol2_init_abi.
601 Remove calls to set_gdbarch_skip_solib_resolver,
602 set_gdbarch_core_pid_to_str.
603 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
604 (i386_sol2_static_transform_name): Remove.
605 (i386_sol2_init_abi): Call sol2_init_abi.
606 Remove calls to set_gdbarch_sofun_address_maybe_missing,
607 set_gdbarch_static_transform_name,
608 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
609 Use sol2_sigtramp_p.
610 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
611 (sol2_sigtramp_p): New function.
612 (sol2_static_transform_name): New function.
613 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
614 (sol2_init_abi): New function.
615 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
616 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
617 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
618 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
619 (sparc_sol2_static_transform_name): Remove.
620 (sparc32_sol2_init_abi): Call sol2_init_abi.
621 Remove calls to set_gdbarch_sofun_address_maybe_missing,
622 set_gdbarch_static_transform_name,
623 set_gdbarch_skip_solib_resolver,
624 set_gdbarch_core_pid_to_str.
625 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
626 (sparc_sol2_static_transform_name): Remove
627 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
628 call sol2_sigtramp_p.
629 (sparc64_sol2_init_abi): Call sol2_init_abi.
630 Remove calls to set_gdbarch_sofun_address_maybe_missing,
631 set_gdbarch_static_transform_name,
632 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
633
a8654e7d
PW
6342020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
635
636 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
637 * exec.c (validate_exec_file): If from_tty, set both
638 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
639 * symfile.c (symbol_file_add_with_addrs): if always_confirm
640 and from_tty, unconditionally ask a confirmation.
641
caa7fd04
AB
6422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * target-descriptions.c (tdesc_architecture_name): Protect against
645 NULL pointer dereference.
646 (maint_print_xml_tdesc_cmd): New function.
647 (_initialize_target_descriptions): Register new 'maint print
648 xml-tdesc' command and give it the filename completer.
649 * NEWS: Mention new 'maint print xml-tdesc' command.
650
fbf42f4e
AB
6512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * target-descriptions.c (class tdesc_compatible_info): New class.
654 (struct target_desc): Change type of compatible vector.
655 (tdesc_compatible_p): Update for change in type of
656 target_desc::compatible.
657 (tdesc_compatible_info_list): New function.
658 (tdesc_compatible_info_arch_name): New function.
659 (tdesc_add_compatible): Update for change in type of
660 target_desc::compatible.
661 (print_c_tdesc::visit_pre): Likewise.
662
20821f4e
AB
6632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
666 whitespace to underscore.
667 (maint_print_c_tdesc_cmd): Use fake filename for target
668 descriptions that came from the target.
669 (_initialize_target_descriptions): Add filename command completion
670 for 'maint print c-tdesc'.
671
1fb5ee62
SM
6722020-06-23 Simon Marchi <simon.marchi@efficios.com>
673
674 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
675 lines.
676
fc3ecb3e
SM
6772020-06-23 Simon Marchi <simon.marchi@efficios.com>
678
679 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
680 lines.
681 (dwarf2_find_location_expression): Likewise.
682 (call_site_parameter_matches): Likewise.
683 (dwarf2_compile_expr_to_ax): Likewise.
684 (disassemble_dwarf_expression): Likewise.
685 (loclist_describe_location): Likewise.
686
236ef034
PA
6872020-06-23 Pedro Alves <palves@redhat.com>
688
689 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
690 progspace-and-thread.h. Include scoped-mock-context.h instead.
691 (register_to_value_test): Use scoped_mock_context.
692 * regcache.c: Include "scoped-mock-context.h".
693 (cooked_read_test): Don't error out if a target is already pushed.
694 Use scoped_mock_context. Adjust.
695 * scoped-mock-context.h: New file.
696
39e7ecca
AB
6972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
700 initializer.
701 (ada_language::is_string_type_p): New member function.
702 * c-lang.c (c_language_data): Delete la_is_string_type_p
703 initializer.
704 (cplus_language_data): Likewise.
705 (asm_language_data): Likewise.
706 (minimal_language_data): Likewise.
707 * d-lang.c (d_language_data): Likewise.
708 * f-lang.c (f_is_string_type_p): Delete function, implementation
709 moved to f_language::is_string_type_p.
710 (f_language_data): Delete la_is_string_type_p initializer.
711 (f_language::is_string_type_p): New member function,
712 implementation from f_is_string_type_p.
713 * go-lang.c (go_is_string_type_p): Delete function, implementation
714 moved to go_language::is_string_type_p.
715 (go_language_data): Delete la_is_string_type_p initializer.
716 (go_language::is_string_type_p): New member function,
717 implementation from go_is_string_type_p.
718 * language.c (language_defn::is_string_type_p): Define new member
719 function.
720 (default_is_string_type_p): Make static, add comment copied from
721 header file.
722 (unknown_language_data): Delete la_is_string_type_p initializer.
723 (unknown_language::is_string_type_p): New member function.
724 (auto_language_data): Delete la_is_string_type_p initializer.
725 (auto_language::is_string_type_p): New member function.
726 * language.h (language_data): Delete la_is_string_type_p field.
727 (language_defn::is_string_type_p): Declare new function.
728 (default_is_string_type_p): Delete desclaration, move comment to
729 definition.
730 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
731 moved to m2_language::is_string_type_p.
732 (m2_language_data): Delete la_is_string_type_p initializer.
733 (m2_language::is_string_type_p): New member function,
734 implementation from m2_is_string_type_p.
735 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
736 initializer.
737 * opencl-lang.c (opencl_language_data): Likewise.
738 * p-lang.c (pascal_is_string_type_p): Delete function,
739 implementation moved to pascal_language::is_string_type_p.
740 (pascal_language_data): Delete la_is_string_type_p initializer.
741 (pascal_language::is_string_type_p): New member function,
742 implementation from pascal_is_string_type_p.
743 * rust-lang.c (rust_is_string_type_p): Delete function,
744 implementation moved to rust_language::is_string_type_p.
745 (rust_language_data): Delete la_is_string_type_p initializer.
746 (rust_language::is_string_type_p): New member function,
747 implementation from rust_is_string_type_p.
748 * valprint.c (val_print_scalar_or_string_type_p): Update call to
749 is_string_type_p.
750
4ffc13fb
AB
7512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 * ada-lang.c (ada_language_data): Delete la_print_typedef
754 initializer.
755 (ada_language::print_typedef): New member function.
756 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
757 (cplus_language_data): Likewise.
758 (asm_language_data): Likewise.
759 (minimal_language_data): Likewise.
760 * d-lang.c (d_language_data): Likewise.
761 * f-lang.c (f_language_data): Likewise.
762 (f_language::print_typedef): New member function.
763 * go-lang.c (go_language_data): Delete la_print_typedef
764 initializer.
765 * language.c (language_defn::print_typedef): Define member
766 function.
767 (unknown_language_data): Delete la_print_typedef initializer.
768 (unknown_language::print_typedef): New member function.
769 (auto_language_data): Delete la_print_typedef initializer.
770 (auto_language::print_typedef): New member function.
771 * language.h (language_data): Delete la_print_typedef field.
772 (language_defn::print_typedef): Declare new member function.
773 (LA_PRINT_TYPEDEF): Update call to print_typedef.
774 (default_print_typedef): Delete declaration.
775 * m2-lang.c (m2_language_data): Delete la_print_typedef
776 initializer.
777 (m2_language::print_typedef): New member function.
778 * objc-lang.c (objc_language_data): Delete la_print_typedef
779 initializer.
780 * opencl-lang.c (opencl_language_data): Likewise.
781 * p-lang.c (pascal_language_data): Likewise.
782 (pascal_language::print_typedef): New member function.
783 * rust-lang.c (rust_print_typedef): Delete function,
784 implementation moved to rust_language::print_typedef.
785 (rust_language): Delete la_print_typedef initializer.
786 (rust_language::print_typedef): New member function,
787 implementation from rust_print_typedef.
788 * typeprint.c (default_print_typedef): Delete.
789
d711ee67
AB
7902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
791
792 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
793 (ada_language::printstr): New member function.
794 * c-lang.c (c_language_data): Delete la_printstr initializer.
795 (cplus_language_data): Likewise.
796 (asm_language_data): Likewise.
797 (minimal_language_data): Likewise.
798 * d-lang.c (d_language_data): Likewise.
799 * f-lang.c (f_printstr): Rename to f_language::printstr.
800 (f_language_data): Delete la_printstr initializer.
801 (f_language::printstr): New member function, implementation from
802 f_printstr.
803 * go-lang.c (go_language_data): Delete la_printstr initializer.
804 * language.c (language_defn::printstr): Define new member
805 function.
806 (unk_lang_printstr): Delete.
807 (unknown_language_data): Delete la_printstr initializer.
808 (unknown_language::printstr): New member function.
809 (auto_language_data): Delete la_printstr initializer.
810 (auto_language::printstr): New member function.
811 * language.h (language_data): Delete la_printstr field.
812 (language_defn::printstr): Declare new member function.
813 (LA_PRINT_STRING): Update call to printstr.
814 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
815 (m2_language_data): Delete la_printstr initializer.
816 (m2_language::printstr): New member function, implementation from
817 m2_printstr.
818 * objc-lang.c (objc_language_data): Delete la_printstr
819 initializer.
820 * opencl-lang.c (opencl_language_data): Likewise.
821 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
822 (pascal_language_data): Delete la_printstr initializer.
823 (pascal_language::printstr): New member function, implementation
824 from pascal_printstr.
825 * p-lang.h (pascal_printstr): Delete declaration.
826 * rust-lang.c (rust_printstr): Update header comment.
827 (rust_language_data): Delete la_printstr initializer.
828 (rust_language::printstr): New member function.
829
52b50f2c
AB
8302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
833 (ada_language::printchar): New member function.
834 * c-lang.c (c_language_data): Delete la_printchar initializer.
835 (cplus_language_data): Likewise.
836 (asm_language_data): Likewise.
837 (minimal_language_data): Likewise.
838 * d-lang.c (d_language_data): Likewise.
839 * f-lang.c (f_printchar): Rename to f_language::printchar.
840 (f_language_data): Delete la_printchar initializer.
841 (f_language::printchar): New member function, implementation from
842 f_printchar.
843 * go-lang.c (go_language_data): Delete la_printchar initializer.
844 * language.c (unk_lang_printchar): Delete.
845 (language_defn::printchar): Define new member function.
846 (unknown_language_data): Delete la_printchar initializer.
847 (unknown_language::printchar): New member function.
848 (auto_language_data): Delete la_printchar initializer.
849 (auto_language::printchar): New member function.
850 * language.h (language_data): Delete la_printchar field.
851 (language_defn::printchar): Declare new member function.
852 (LA_PRINT_CHAR): Update call to printchar.
853 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
854 (m2_language::printchar): New member function.
855 * objc-lang.c (objc_language_data): Delete la_printchar
856 initializer.
857 * opencl-lang.c (opencl_language_data): Likewise.
858 * p-lang.c (pascal_language_data): Delete la_printchar
859 initializer.
860 (pascal_language::printchar): New member function.
861 * rust-lang.c (rust_printchar): Rename to
862 rust_language::printchar.
863 (rust_language_data): Delete la_printchar initializer.
864 (rust_language::printchar): New member function, implementation
865 from rust_printchar.
866
ec8cec5b
AB
8672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
870 (ada_language_data): Delete la_emitchar initializer.
871 (ada_language::emitchar): New member function, implementation from
872 emit_char.
873 * c-lang.c (c_language_data): Delete la_emitchar initializer.
874 (cplus_language_data): Likewise.
875 (asm_language_data): Likewise.
876 (minimal_language_data): Likewise.
877 * d-lang.c (d_language_data): Likewise.
878 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
879 (f_language_data): Delete la_emitchar initializer.
880 (f_language::emitchar): New member function, implementation from
881 f_emit_char.
882 * go-lang.c (go_language_data): Delete la_emitchar initializer.
883 * language.c (unk_lang_emit_char): Delete.
884 (language_defn::emitchar): New member function definition.
885 (unknown_language_data): Delete la_emitchar initializer.
886 (unknown_language::emitchar): New member function.
887 (auto_language_data): Delete la_emitchar initializer.
888 (auto_language::emitchar): New member function.
889 * language.h (language_data): Delete la_emitchar field.
890 (language_defn::emitchar): New member field declaration.
891 (LA_EMIT_CHAR): Update call to emitchar.
892 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
893 (m2_language_data): Delete la_emitchar initializer.
894 (m2_language::emitchar): New member function, implementation from
895 m2_emit_char.
896 * objc-lang.c (objc_language_data): Delete la_emitchar
897 initializer.
898 * opencl-lang.c (opencl_language_data): Likewise.
899 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
900 (pascal_language_data): Delete la_emitchar initializer.
901 (pascal_language::emitchar): New member function, implementation
902 from pascal_emit_char.
903 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
904 (rust_language_data): Delete la_emitchar initializer.
905 (rust_language::emitchar): New member function, implementation
906 from rust_emitchar.
907
1bf9c363
AB
9082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * ada-lang.c (resolve): Rename to ada_language::post_parser.
911 (ada_language_data): Delete la_post_parser initializer.
912 (ada_language::post_parser): New member function.
913 * c-lang.c (c_language_data): Delete la_post_parser initializer.
914 (cplus_language_data): Likewise.
915 (asm_language_data): Likewise.
916 (minimal_language_data): Likewise.
917 * d-lang.c (d_language_data): Likewise.
918 * f-lang.c (f_language_data): Likewise.
919 * go-lang.c (go_language_data): Likewise.
920 * language.c (unknown_language_data): Likewise.
921 (auto_language_data): Likewise.
922 * language.h (language_data): Delete la_post_parser field.
923 (language_defn::post_parser): New member function.
924 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
925 * objc-lang.c (objc_language_data): Likewise.
926 * opencl-lang.c (opencl_language_data): Likewise.
927 * p-lang.c (pascal_language_data): Likewise.
928 * parse.c (parse_exp_in_context): Update call to post_parser.
929 (null_post_parser): Delete definition.
930 * parser-defs.h (null_post_parser): Delete declaration.
931 * rust-lang.c (rust_language_data): Delete la_post_parser
932 initializer.
933
87afa652
AB
9342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * ada-lang.c (parse): Rename to ada_language::parser.
937 (ada_language_data): Delete la_parser initializer.
938 (ada_language::parser): New member function, implementation from
939 parse.
940 * c-lang.c (c_language_data): Delete la_parser initializer.
941 (cplus_language_data): Likewise.
942 (asm_language_data): Likewise.
943 (minimal_language_data): Likewise.
944 * d-lang.c (d_language_data): Likewise.
945 (d_language::parser): New member function.
946 * f-lang.c (f_language_data): Delete la_parser initializer.
947 (f_language::parser): New member function.
948 * go-lang.c (go_language_data): Delete la_parser initializer.
949 (go_language::parser): New member function.
950 * language.c (unk_lang_parser): Delete.
951 (language_defn::parser): Define new member function.
952 (unknown_language_data): Delete la_parser initializer.
953 (unknown_language::parser): New member function.
954 (auto_language_data): Delete la_parser initializer.
955 (auto_language::parser): New member function.
956 * language.h (language_data): Delete la_parser field.
957 (language_defn::parser): Declare new member function.
958 * m2-lang.c (m2_language_data): Delete la_parser initializer.
959 (m2_language::parser): New member function.
960 * objc-lang.c (objc_language_data): Delete la_parser initializer.
961 * opencl-lang.c (opencl_language_data): Likewise.
962 * p-lang.c (pascal_language_data): Likewise.
963 (pascal_language::parser): New member function.
964 * parse.c (parse_exp_in_context): Update call to parser.
965 * rust-lang.c (rust_language_data): Delete la_parser initializer.
966 (rust_language::parser): New member function.
967
37825800
AB
9682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * top.c (print_gdb_configuration): Print --with-python-libdir
971 configuration value.
972
5b860c93
PW
9732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
974
975 * NEWS: Mention change to the alias command.
976
cf00cd6f
PW
9772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
978
979 * cli/cli-cmds.c (lookup_cmd_for_default_args)
980 (alias_command_completer)
981 (make_alias_options_def_group): New functions.
982 (alias_opts, alias_option_defs): New struct and array.
983 (alias_usage_error): Update usage.
984 (alias_command): Handles optional DEFAULT-ARGS... arguments.
985 Use option framework.
986 (_initialize_cli_cmds): Update alias command help.
987 Update aliases command help.
988 (show_user):
989 Add NULL for new default_args lookup_cmd argument.
990 (valid_command_p): Rename to validate_aliased_command.
991 Add NULL for new default_args lookup_cmd argument. Verify that the
992 aliased_command has no default args.
993 * cli/cli-decode.c (help_cmd): Show aliases definitions.
994 (lookup_cmd_1, lookup_cmd): New argument default_args.
995 (add_alias_cmd):
996 Add NULL for new default_args lookup_cmd argument.
997 (print_help_for_command): Show default args under the layout
998 alias some_alias = some_aliased_cmd some_alias_default_arg.
999 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1000 xfree default_args in destructor.
1001 * cli/cli-script.c (process_next_line, do_define_command):
1002 Add NULL for new default_args lookup_cmd argument.
1003 * command.h: Declare new default_args argument in lookup_cmd
1004 and lookup_cmd_1.
1005 * completer.c (complete_line_internal_1):
1006 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1007 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1008 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1009 Likewise.
1010 * infcmd.c (_initialize_infcmd): Likewise.
1011 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1012 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1013 * python/py-param.c (add_setshow_generic): Likewise.
1014 * remote.c (_initialize_remote): Likewise.
1015 * top.c (execute_command): Prepend default_args if command has some.
1016 (set_verbose):
1017 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1018 * tracepoint.c (validate_actionline, encode_actions_1):
1019 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1020
bd920864
TBA
10212020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 * jit.c (jit_read_descriptor): Use bool as the return type.
1024 (jit_breakpoint_re_set_internal): Use bool as the return type.
1025 Invert the return value logic; return true if the jit breakpoint
1026 has been successfully initialized.
1027 (jit_inferior_init): Update the call to
1028 jit_breakpoint_re_set_internal.
1029
f8098322
PA
10302020-06-22 Pedro Alves <palves@redhat.com>
1031
1032 PR gdb/25939
1033 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1034 Use the current inferior instead. Don't return
1035 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1036 wait again.
1037 * sol-thread.c (sol_thread_target::wait): Don't reference
1038 inferior_ptid.
1039 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1040 (sol_update_thread_list_callback): Use the current inferior's pid
1041 instead of inferior_ptid.
1042
196535a6
RO
10432020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1044
1045 * procfs.c: Cleanup many comments.
1046
1047 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1048 (AFTER_WATCHFLAG): Replace by value.
1049
1050 (MAIN_PROC_NAME_FORMAT): Inline ...
1051 (create_procinfo): ... here.
1052
1053 (procfs_debug_inferior): Remove SYS_exec handling.
1054 (syscall_is_exec): Likewise.
1055 (procfs_set_exec_trap): Likewise.
1056
1057 (syscall_is_lwp_exit): Inline in callers.
1058 (syscall_is_exit): Likewise.
1059 (syscall_is_exec): Likewise.
1060 (syscall_is_lwp_create): Likewise.
1061
1062 (invalidate_cache): Remove #if 0 code.
1063
1064 (make_signal_thread_runnable): Remove.
1065 (procfs_target::resume): Remove #if 0 code.
1066
cf6f3e86
RO
10672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1068
1069 PR gdb/25939
1070 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1071 call ...
1072 (procfs_target::create_inferior): ... here.
1073
48e9cc84
PW
10742020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1075
1076 * exec.c (validate_exec_file): Ensure the build-id is up to
1077 date by calling reopen_exec_file (that checks file timestamp
1078 to decide to re-read the file).
1079
3922b302
PA
10802020-06-18 Pedro Alves <palves@redhat.com>
1081
1082 PR gdb/25412
1083 * gdbthread.h (delete_thread, delete_thread_silent)
1084 (find_thread_ptid): Update comments.
1085 * thread.c (current_thread_): New global.
1086 (is_current_thread): Move higher, and reimplement.
1087 (inferior_thread): Reimplement.
1088 (set_thread_exited): Use bool. Add assertions.
1089 (add_thread_silent): Simplify thread-reuse handling by always
1090 calling delete_thread.
1091 (delete_thread): Remove intro comment.
1092 (find_thread_ptid): Skip exited threads.
1093 (switch_to_thread_no_regs): Write to current_thread_.
1094 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1095 INFERIOR_PTID. Clear current_thread_.
1096
6dbdab44
PA
10972020-06-18 Pedro Alves <palves@redhat.com>
1098
1099 * aix-thread.c (pd_update): Use switch_to_thread.
1100
2da4b788
PA
11012020-06-18 Pedro Alves <palves@redhat.com>
1102
1103 * ravenscar-thread.c (ravenscar_thread_target): Update.
1104 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1105 (ravenscar_thread_target::add_active_thread): ... this. Don't
1106 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1107 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1108
50838d1b
PA
11092020-06-18 Pedro Alves <palves@redhat.com>
1110
1111 * nat/windows-nat.c (current_windows_thread): Remove.
1112 * nat/windows-nat.h (current_windows_thread): Remove.
1113 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1114 Adjust.
1115 (display_selectors): Adjust to fetch the current
1116 windows_thread_info based on inferior_ptid.
1117 (fake_create_process): No longer write to current_windows_thread.
1118 (windows_nat_target::get_windows_debug_event):
1119 Don't set inferior_ptid or current_windows_thread.
1120 (windows_nat_target::wait): Adjust to not rely on
1121 current_windows_thread.
1122 (do_initial_windows_stuff): Now a method of windows_nat_target.
1123 Switch to the last_ptid thread.
1124 (windows_nat_target::attach): Adjust.
1125 (windows_nat_target::detach): Use switch_to_no_thread instead of
1126 writing to inferior_ptid directly.
1127 (windows_nat_target::create_inferior): Adjust.
1128
31ce04e9
PA
11292020-06-18 Pedro Alves <palves@redhat.com>
1130
1131 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1132
1ee1a363
PA
11332020-06-18 Pedro Alves <palves@redhat.com>
1134
1135 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1136 after creating it, instead of writing to inferior_ptid. Don't
1137 write to inferior_ptid.
1138
6d350754
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1142
5d971d48
PA
11432020-06-18 Pedro Alves <palves@redhat.com>
1144
1145 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1146 it, instead of writing to inferior_ptid.
1147
86e57d1b
PA
11482020-06-18 Pedro Alves <palves@redhat.com>
1149
1150 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1151 to inferior_ptid.
1152
f2e1c129
PA
11532020-06-18 Pedro Alves <palves@redhat.com>
1154
1155 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1156 instead of writing to inferior_ptid directly.
1157
60db1b85
PA
11582020-06-18 Pedro Alves <palves@redhat.com>
1159
1160 * corelow.c (core_target::close): Use switch_to_no_thread instead
1161 of writing to inferior_ptid directly.
1162 (add_to_thread_list, core_target_open): Use switch_to_thread
1163 instead of writing to inferior_ptid directly.
1164
fe7d6a8d
PA
11652020-06-18 Pedro Alves <palves@redhat.com>
1166
1167 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1168 inferior_ptid.
1169 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1170 inferior_ptid.
1171 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1172 inferior_ptid directly.
1173 (darwin_nat_target::init_thread_list): Switch to thread, instead
1174 of writing to inferior_ptid.
1175 (darwin_nat_target::attach): Don't write to inferior_ptid.
1176 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1177
975f8708
PA
11782020-06-18 Pedro Alves <palves@redhat.com>
1179
1180 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1181 thread.
1182 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1183 Instead use switch_to_thread.
1184 (gnu_nat_target::detach): Use switch_to_no_thread
1185 instead of writing to inferior_ptid directly. Used passed-in
1186 inferior instead of looking up the inferior by pid.
1187
1a204730
PA
11882020-06-18 Pedro Alves <palves@redhat.com>
1189
1190 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1191 inferior_ptid.
1192
ebe84f23
PA
11932020-06-18 Pedro Alves <palves@redhat.com>
1194
1195 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1196 inferior_ptid.
1197 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1198 thread.
1199 (nto_procfs_target::detach): Avoid referencing
1200 inferior_ptid. Use switch_to_no_thread instead of writing to
1201 inferior_ptid directly.
1202 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1203 instead of writing to inferior_ptid directly.
1204 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1205 to thread.
1206
191f02e5
PA
12072020-06-18 Pedro Alves <palves@redhat.com>
1208
1209 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1210 after creating it, instead of writing to inferior_ptid.
1211 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1212 to inferior_ptid directly.
1213 (gdbsim_target::wait): Don't write to inferior_ptid.
1214
0ac55310
PA
12152020-06-18 Pedro Alves <palves@redhat.com>
1216
1217 * remote.c (remote_target::remote_notice_new_inferior): Use
1218 switch_to_thread instead of writing to inferior_ptid directly.
1219 (remote_target::add_current_inferior_and_thread): Use
1220 switch_to_no_thread instead of writing to inferior_ptid directly.
1221 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1222 and switch_to_thread instead of using set_current_inferior or
1223 writing to inferior_ptid directly.
1224
5233f39b
PA
12252020-06-18 Pedro Alves <palves@redhat.com>
1226
1227 * tracectf.c (ctf_target_open): Switch to added thread instead of
1228 writing to inferior_ptid directly.
1229 (ctf_target::close): Use switch_to_no_thread instead of writing to
1230 inferior_ptid directly.
1231
087e161b
PA
12322020-06-18 Pedro Alves <palves@redhat.com>
1233
1234 * tracefile-tfile.c (tfile_target_open): Don't write to
1235 inferior_ptid directly, instead switch to added thread.
1236 (tfile_target::close): Use switch_to_no_thread instead of writing
1237 to inferior_ptid directly.
1238
7fb43e53
PA
12392020-06-18 Pedro Alves <palves@redhat.com>
1240
1241 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1242 (procfs_target::detach): Use switch_to_no_thread
1243 instead of writing to inferior_ptid directly.
1244 (do_attach): Change return type to void. Switch to the added
1245 thread.
1246 (procfs_target::create_inferior): Switch to the added thread.
1247 (procfs_do_thread_registers): Don't write to inferior_ptid.
1248
18493a00
PA
12492020-06-18 Pedro Alves <palves@redhat.com>
1250
1251 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1252 of writing to inferior_ptid.
1253 (scoped_restore_exited_inferior): Delete.
1254 (handle_vfork_child_exec_or_exit): Simplify using
1255 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1256 instead of writing to inferior_ptid.
1257 (THREAD_STOPPED_BY): Delete.
1258 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1259 (thread_stopped_by_hw_breakpoint): Delete.
1260 (save_waitstatus): Use
1261 scoped_restore_current_thread+switch_to_thread, and call
1262 target_stopped_by_watchpoint instead of
1263 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1264 instead of thread_stopped_by_sw_breakpoint, and
1265 target_stopped_by_hw_breakpoint instead of
1266 thread_stopped_by_hw_breakpoint.
1267 (handle_inferior_event)
1268 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1269 inferior_ptid directly, nor
1270 set_current_inferior/set_current_program_space. Use
1271 switch_to_thread / switch_to_inferior_no_thread instead.
1272
a0776b13
PA
12732020-06-18 Pedro Alves <palves@redhat.com>
1274
1275 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1276 instead of writing to inferior_ptid.
1277
6155c136
PA
12782020-06-18 Pedro Alves <palves@redhat.com>
1279
1280 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1281 added thread.
1282 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1283 to the added thread.
1284 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1285 instead of writing to inferior_ptid.
1286
c5316fc6
PA
12872020-06-18 Pedro Alves <palves@redhat.com>
1288
1289 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1290 (register_to_value_test): Mock a program_space too. Heap-allocate
1291 the address space. Don't write to inferior_ptid. Use
1292 switch_to_thread instead.
1293
8df01799
PA
12942020-06-18 Pedro Alves <palves@redhat.com>
1295
1296 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1297 Delete.
1298 (find_signalled_thread()): New, factored out from
1299 linux_make_corefile_notes and adjusted to handle exited threads.
1300 (linux_make_corefile_notes): Adjust to use the new
1301 find_signalled_thread.
1302
41792d68
PA
13032020-06-18 Pedro Alves <palves@redhat.com>
1304
1305 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1306 of saving/restoring inferior_ptid.
1307
612f258a
TT
13082020-06-17 Tom Tromey <tom@tromey.com>
1309
1310 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1311 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1312 declare.
1313 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1314
efb763a5
SM
13152020-06-15 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1318 of partial symtabs.
1319
2951f6c0
SM
13202020-06-17 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * regformats/reg-arm.dat: Remove.
1323 * regformats/reg-bfin.dat: Remove.
1324 * regformats/reg-cris.dat: Remove.
1325 * regformats/reg-crisv32.dat: Remove.
1326 * regformats/reg-m32r.dat: Remove.
1327 * regformats/reg-tilegx.dat: Remove.
1328 * regformats/reg-tilegx32.dat: Remove.
1329
7d458ea5
SM
13302020-06-17 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * features/Makefile (WHICH): Remove arm files.
1333 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1334 * regformats/arm/arm-with-neon.dat: Remove.
1335 * regformats/arm/arm-with-vfpv2.dat: Remove.
1336 * regformats/arm/arm-with-vfpv3.dat: Remove.
1337
3af96c0d
SM
13382020-06-17 Simon Marchi <simon.marchi@efficios.com>
1339
1340 * features/Makefile (XMLTOC): Remove rx.xml.
1341
b25e22fd
PA
13422020-06-17 Pedro Alves <palves@redhat.com>
1343
1344 * gdbthread.h (thread_control_state) <trap_expected> Update
1345 comments.
1346
a78a19b1
AB
13472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1350 ada_language::lookup_symbol_nonlocal.
1351 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1352 (ada_language::lookup_symbol_nonlocal): New member function,
1353 implementation from ada_lookup_symbol_nonlocal.
1354 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1355 initializer.
1356 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1357 initializer.
1358 (cplus_language::lookup_symbol_nonlocal): New member function.
1359 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1360 (minimal_language_data) Likewise.
1361 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1362 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1363 initializer.
1364 (d_language::lookup_symbol_nonlocal): New member function.
1365 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1366 initializer.
1367 (f_language::lookup_symbol_nonlocal): New member function.
1368 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1369 initializer.
1370 * language.c (unknown_language_data): Likewise.
1371 (auto_language_data): Likewise.
1372 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1373 field.
1374 (language_defn::lookup_symbol_nonlocal): New member function.
1375 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1376 initializer.
1377 * objc-lang.c (objc_language_data): Likewise.
1378 * opencl-lang.c (opencl_language_data): Likewise.
1379 * p-lang.c (pascal_language_data): Likewise.
1380 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1381 rust_language::lookup_symbol_nonlocal.
1382 (rust_language_data): Delete la_lookup_symbol_nonlocal
1383 initializer.
1384 (rust_language::lookup_symbol_nonlocal): New member function,
1385 implementation from rust_lookup_symbol_nonlocal.
1386 * symtab.c (lookup_symbol_aux): Update call to
1387 lookup_symbol_nonlocal.
1388 (basic_lookup_symbol_nonlocal): Rename to...
1389 (language_defn::lookup_symbol_nonlocal): ...this, and update
1390 header comment. Remove language_defn parameter, and replace with
1391 uses of `this'.
1392 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1393
ebe2334e
AB
13942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1397 initializer.
1398 (ada_language::value_print_inner): New member function.
1399 * c-lang.c (c_language_data): Delete la_value_print_inner
1400 initializer.
1401 (cplus_language_data): Likewise.
1402 (asm_language_data): Likewise.
1403 (minimal_language_data): Likewise.
1404 * d-lang.c (d_language_data): Likewise.
1405 (d_language::value_print_inner): New member function.
1406 * f-lang.c (f_language_data): Delete la_value_print_inner
1407 initializer.
1408 (f_language::value_print_inner): New member function.
1409 * f-lang.h (f_value_print_innner): Rename to...
1410 (f_value_print_inner): ...this (note spelling of 'inner').
1411 * f-valprint.c (f_value_print_innner): Rename to...
1412 (f_value_print_inner): ...this (note spelling of 'inner').
1413 * go-lang.c (go_language_data): Delete la_value_print_inner
1414 initializer.
1415 (go_language::value_print_inner): New member function.
1416 * language.c (language_defn::value_print_inner): Define new member
1417 function.
1418 (unk_lang_value_print_inner): Delete.
1419 (unknown_language_data): Delete la_value_print_inner initializer.
1420 (unknown_language::value_print_inner): New member function.
1421 (auto_language_data): Delete la_value_print_inner initializer.
1422 (auto_language::value_print_inner): New member function.
1423 * language.h (language_data): Delete la_value_print_inner field.
1424 (language_defn::value_print_inner): Delcare new member function.
1425 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1426 initializer.
1427 (m2_language::value_print_inner): New member function.
1428 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1429 initializer.
1430 * opencl-lang.c (opencl_language_data): Likewise.
1431 * p-lang.c (pascal_language_data): Likewise.
1432 (pascal_language::value_print_inner): New member function.
1433 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1434 initializer.
1435 (rust_language::value_print_inner): New member function.
1436 * valprint.c (do_val_print): Update call to value_print_inner.
1437
a1d1fa3e
AB
14382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * ada-lang.c (ada_language_data): Delete la_value_print
1441 initializer.
1442 (ada_language::value_print): New member function.
1443 * c-lang.c (c_language_data): Delete la_value_print initializer.
1444 (cplus_language_data): Likewise.
1445 (asm_language_data): Likewise.
1446 (minimal_language_data): Likewise.
1447 * d-lang.c (d_language_data): Likewise.
1448 * f-lang.c (f_language_data): Likewise.
1449 * go-lang.c (go_language_data): Likewise.
1450 * language.c (unk_lang_value_print): Delete.
1451 (language_defn::value_print): Define new member function.
1452 (unknown_language_data): Delete la_value_print initializer.
1453 (unknown_language::value_print): New member function.
1454 (auto_language_data): Delete la_value_print initializer.
1455 (auto_language::value_print): New member function.
1456 * language.h (language_data): Delete la_value_print field.
1457 (language_defn::value_print): Declare new member function.
1458 (LA_VALUE_PRINT): Update call to value_print.
1459 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1460 * objc-lang.c (objc_language_data): Likewise.
1461 * opencl-lang.c (opencl_language_data): Likewise.
1462 * p-lang.c (pascal_language_data): Likewise.
1463 (pascal_language::value_print): New member function.
1464 * rust-lang.c (rust_language_data): Delete la_value_print
1465 initializer.
1466
f16a9f57
AB
14672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1468
1469 * ada-lang.c (ada_watch_location_expression): Rename to
1470 ada_language::watch_location_expression.
1471 (ada_language_data): Delete la_watch_location_expression
1472 initializer.
1473 (ada_language::watch_location_expression): New member function,
1474 implementation from ada_watch_location_expression.
1475 * breakpoint.c (watch_command_1): Update call to
1476 watch_location_expression.
1477 * c-lang.c (c_watch_location_expression): Rename to
1478 language_defn::watch_location_expression.
1479 (c_language_data): Delete la_watch_location_expression
1480 initializer.
1481 (cplus_language_data): Likewise.
1482 (asm_language_data): Likewise.
1483 (minimal_language_data): Likewise.
1484 * c-lang.h (c_watch_location_expression): Delete declaration.
1485 * d-lang.c (d_language_data): Delete la_watch_location_expression
1486 initializer.
1487 * f-lang.c (f_language_data): Likewise.
1488 * go-lang.c (go_language_data): Likewise.
1489 * language.c (language_defn::watch_location_expression): Member
1490 function implementation from c_watch_location_expression.
1491 (unknown_language_data): Delete la_watch_location_expression
1492 initializer.
1493 (auto_language_data): Likewise.
1494 * language.h (language_data): Delete la_watch_location_expression
1495 field.
1496 (language_defn::watch_location_expression): Declare new member
1497 function.
1498 * m2-lang.c (m2_language_data): Delete
1499 la_watch_location_expression initializer.
1500 * objc-lang.c (objc_language_data): Likewise.
1501 * opencl-lang.c (opencl_language_data): Likewise.
1502 * p-lang.c (pascal_language_data): Likewise.
1503 * rust-lang.c (rust_watch_location_expression): Rename to
1504 rust_language::watch_location_expression.
1505 (rust_language_data): Delete la_watch_location_expression
1506 initializer.
1507 (rust_language::watch_location_expression): New member function,
1508 implementation from rust_watch_location_expression.
1509
7e56227d
AB
15102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1513 ada_language::collect_symbol_completion_matches.
1514 (ada_language_data): Delete la_collect_symbol_completion_matches
1515 initializer.
1516 (ada_language::collect_symbol_completion_matches): New member
1517 function, implementation from
1518 ada_collect_symbol_completion_matches.
1519 * c-lang.c (c_language_data): Delete
1520 la_collect_symbol_completion_matches initializer.
1521 (cplus_language_data): Likewise.
1522 (asm_language_data): Likewise.
1523 (minimal_language_data): Likewise.
1524 * d-lang.c (d_language_data): Likewise.
1525 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1526 f_language::collect_symbol_completion_matches.
1527 (f_language_data): Delete la_collect_symbol_completion_matches
1528 initializer.
1529 (f_language::collect_symbol_completion_matches) New member
1530 function, implementation from f_collect_symbol_completion_matches.
1531 * go-lang.c (go_language_data): Delete
1532 la_collect_symbol_completion_matches initializer.
1533 * language.c (unknown_language_data): Likewise.
1534 (auto_language_data): Likewise.
1535 * language.h (language_data): Delete
1536 la_collect_symbol_completion_matches field.
1537 (language_defn::collect_symbol_completion_matches): New member
1538 function.
1539 * m2-lang.c (m2_language_data): Delete
1540 la_collect_symbol_completion_matches initializer.
1541 * objc-lang.c (objc_language_data): Likewise.
1542 * opencl-lang.c (opencl_language_data): Likewise.
1543 * p-lang.c (pascal_language_data): Likewise.
1544 * rust-lang.c (rust_language_data): Likewise.
1545 * symtab.c (default_collect_symbol_completion_matches): Delete.
1546 (collect_symbol_completion_matches): Update call to
1547 collect_symbol_completion_matches.
1548 (collect_symbol_completion_matches_type): Likewise.
1549 * symtab.h (default_collect_symbol_completion_matches): Delete
1550 declaration.
1551
53fc67f8
AB
15522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1555 (ada_language_data): Delete la_word_break_characters initializer.
1556 (ada_language::word_break_characters): New member function.
1557 * c-lang.c (c_language_data): Delete la_word_break_characters
1558 initializer.
1559 (cplus_language_data): Likewise.
1560 (asm_language_data): Likewise.
1561 (minimal_language_data): Likewise.
1562 * completer.c: Update global comment.
1563 (advance_to_expression_complete_word_point): Update call to
1564 word_break_characters.
1565 (complete_files_symbols): Likewise.
1566 (complete_line_internal_1): Likewise.
1567 (default_completer_handle_brkchars): Likewise.
1568 (skip_quoted_chars): Likewise.
1569 * d-lang.c (d_language_data): Delete la_word_break_characters
1570 initializer.
1571 * f-lang.c (f_word_break_characters): Delete.
1572 (f_language_data): Delete la_word_break_characters initializer.
1573 (f_language::word_break_characters): New member function.
1574 * go-lang.c (go_language_data): Delete la_word_break_characters
1575 initializer.
1576 * language.c (unknown_language_data): Likewise.
1577 (auto_language_data): Likewise.
1578 * language.h (default_word_break_characters): Move declaration to
1579 earlier in the file.
1580 (language_data): Delete la_word_break_characters field.
1581 (language_defn::word_break_characters): New member function.
1582 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1583 initializer.
1584 * objc-lang.c (objc_language_data): Likewise.
1585 * opencl-lang.c (opencl_language_data): Likewise.
1586 * p-lang.c (pascal_language_data): Likewise.
1587 * rust-lang.c (rust_language_data): Likewise.
1588
c9debfb9
AB
15892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1592 (ada_language_data): Delete la_get_symbol_name_matcher
1593 initializer.
1594 (language_defn::get_symbol_name_matcher_inner): New member
1595 function.
1596 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1597 initializer.
1598 (cplus_language_data): Likewise.
1599 (cplus_language::get_symbol_name_matcher_inner): New member
1600 function.
1601 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1602 (minimal_language_data): Likewise.
1603 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1604 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1605 initializer.
1606 * dictionary.c (iter_match_first_hashed): Update call to
1607 get_symbol_name_matcher.
1608 (iter_match_next_hashed): Likewise.
1609 (iter_match_next_linear): Likewise.
1610 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1611 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1612 initializer.
1613 (f_language::get_symbol_name_matcher_inner): New member function.
1614 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1615 initializer.
1616 * language.c (default_symbol_name_matcher): Update header comment,
1617 make static.
1618 (language_defn::get_symbol_name_matcher): New definition.
1619 (language_defn::get_symbol_name_matcher_inner): Likewise.
1620 (get_symbol_name_matcher): Delete.
1621 (unknown_language_data): Delete la_get_symbol_name_matcher
1622 initializer.
1623 (auto_language_data): Likewise.
1624 * language.h (language_data): Delete la_get_symbol_name_matcher
1625 field.
1626 (language_defn::get_symbol_name_matcher): New member function.
1627 (language_defn::get_symbol_name_matcher_inner): Likewise.
1628 (default_symbol_name_matcher): Delete declaration.
1629 * linespec.c (find_methods): Update call to
1630 get_symbol_name_matcher.
1631 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1632 initializer.
1633 * minsyms.c (lookup_minimal_symbol): Update call to
1634 get_symbol_name_matcher.
1635 (iterate_over_minimal_symbols): Likewise.
1636 * objc-lang.c (objc_language_data): Delete
1637 la_get_symbol_name_matcher initializer.
1638 * opencl-lang.c (opencl_language_data): Likewise.
1639 * p-lang.c (pascal_language_data): Likewise.
1640 * psymtab.c (psymbol_name_matches): Update call to
1641 get_symbol_name_matcher.
1642 * rust-lang.c (rust_language_data): Delete
1643 la_get_symbol_name_matcher initializer.
1644 * symtab.c (symbol_matches_search_name): Update call to
1645 get_symbol_name_matcher.
1646 (compare_symbol_name): Likewise.
1647
9a49ad8c
AB
16482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * ada-lang.c (ada_language_data): Delete la_compute_program
1651 initializer.
1652 * c-lang.c (c_language_data): Likewise.
1653 (c_language::compute_program): New member function.
1654 (cplus_language_data): Delete la_compute_program initializer.
1655 (cplus_language::compute_program): New member function.
1656 (asm_language_data): Delete la_compute_program initializer.
1657 (minimal_language_data): Likewise.
1658 * c-lang.h (c_compute_program): Update comment.
1659 (cplus_compute_program): Likewise.
1660 * compile/compile-c-support.c (c_compute_program): Likewise.
1661 (cplus_compute_program): Likewise.
1662 * compile/compile.c (compile_to_object): Update call to
1663 la_compute_program.
1664 * d-lang.c (d_language_data): Delete la_compute_program
1665 initializer.
1666 * f-lang.c (f_language_data): Likewise.
1667 * go-lang.c (go_language_data): Likewise.
1668 * language.c (unknown_language_data): Likewise.
1669 (auto_language_data): Likewise.
1670 * language.h (language_data): Delete la_compute_program field.
1671 (language_defn::compute_program): New member function.
1672 * m2-lang.c (m2_language_data): Delete la_compute_program
1673 initializer.
1674 * objc-lang.c (objc_language_data): Likewise.
1675 * opencl-lang.c (opencl_language_data): Likewise.
1676 * p-lang.c (pascal_language_data): Likewise.
1677 * rust-lang.c (rust_language_data): Likewise.
1678
eff93b4d
AB
16792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * ada-lang.c (ada_language_data) Delete
1682 la_class_name_from_physname initializer.
1683 * c-lang.c (c_language_data): Likewise.
1684 (cplus_language_data): Likewise.
1685 (cplus_language::class_name_from_physname): New member function.
1686 (asm_language_data): Delete la_class_name_from_physname
1687 initializer.
1688 (minimal_language_data): Likewise.
1689 * d-lang.c (d_language_data): Likewise.
1690 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1691 method on language_defn class.
1692 (guess_full_die_structure_name): Likewise.
1693 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1694 initializer.
1695 * go-lang.c (go_language_data): Likewise.
1696 * language.c (language_class_name_from_physname): Delete.
1697 (unk_lang_class_name): Delete.
1698 (unknown_language_data): Delete la_class_name_from_physname
1699 initializer.
1700 (auto_language_data): Likewise.
1701 * language.h (language_data): Delete la_class_name_from_physname
1702 field.
1703 (language_defn::class_name_from_physname): New function.
1704 (language_class_name_from_physname): Delete declaration.
1705 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1706 initializer.
1707 * objc-lang.c (objc_language_data): Likewise.
1708 * opencl-lang.c (opencl_language_data): Likewise.
1709 * p-lang.c (pascal_language_data): Likewise.
1710 * rust-lang.c (rust_language_data): Likewise.
1711
de543742
TT
17122020-06-16 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-data.h (STATUS_NAME): New macro.
1715 * tui/tui-layout.c (tui_remove_some_windows)
1716 (initialize_known_windows, tui_register_window)
1717 (tui_layout_split::remove_windows, initialize_layouts)
1718 (tui_new_layout_command): Don't use hard-coded window names.
1719
a350efd4
TT
17202020-06-16 Tom Tromey <tom@tromey.com>
1721
1722 PR tui/25348:
1723 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1724 tui_initialize_readline. Only run once. Call rl_initialize.
1725 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1726 tui_initialize_readline.
1727 * tui/tui-io.c (tui_setup_io): Call
1728 tui_ensure_readline_initialized.
1729 * tui/tui-interp.c (tui_interp::init): Update.
1730
39ec0490
TT
17312020-06-16 Tom Tromey <tom@tromey.com>
1732
1733 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1734 Also preserve the status window.
1735
d2d1ea20
TT
17362020-06-16 Tom Tromey <tom@tromey.com>
1737
1738 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1739 where m_window==nullptr.
1740
66920317
TT
17412020-06-15 Tom Tromey <tromey@adacore.com>
1742
1743 * windows-nat.c (windows_nat::handle_output_debug_string):
1744 Update.
1745 (windows_nat::handle_ms_vc_exception): Update.
1746 * target.h (target_read_string): Change API.
1747 * target.c (target_read_string): Change API.
1748 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1749 Update.
1750 * solib-frv.c (frv_current_sos): Update.
1751 * solib-dsbt.c (dsbt_current_sos): Update.
1752 * solib-darwin.c (darwin_current_sos): Update.
1753 * linux-thread-db.c (inferior_has_bug): Update.
1754 * expprint.c (print_subexp_standard): Update.
1755 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1756 (ada_exception_message_1): Update.
1757
a5d871dd
TT
17582020-06-15 Tom Tromey <tromey@adacore.com>
1759
1760 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1761
670e35fa
TT
17622020-06-15 Tom Tromey <tromey@adacore.com>
1763
1764 * valprint.c (read_string): Update comment.
1765 * target.c (MIN): Remove.
1766 (target_read_string): Rewrite.
1767
f5272a3b
TT
17682020-06-15 Tom Tromey <tromey@adacore.com>
1769
1770 * corefile.c (read_memory_string): Remove.
1771 * ada-valprint.c (ada_value_print_ptr): Update.
1772 * ada-lang.h (ada_tag_name): Change return type.
1773 * ada-lang.c (type_from_tag): Update.
1774 (ada_tag_name_from_tsd): Change return type. Use
1775 target_read_string.
1776 (ada_tag_name): Likewise.
1777 * gdbcore.h (read_memory_string): Don't declare.
1778
2c074f49
HD
17792020-06-14 Hannes Domani <ssbssa@yahoo.de>
1780
1781 * symtab.c (rbreak_command): Ignore Windows drive colon.
1782
6a17d503
SM
17832020-06-12 Simon Marchi <simon.marchi@efficios.com>
1784
1785 * NEWS: Mention removed GDBserver host support.
1786
453c733f
NC
17872020-06-12 Nelson Chu <nelson.chu@sifive.com>
1788
1789 * features/riscv/rebuild-csr-xml.sh: Updated.
1790
2b4e6a3f
TT
17912020-06-11 Tom Tromey <tom@tromey.com>
1792
1793 PR gdb/18318:
1794 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1795
4412332f
JG
17962020-06-09 Jonny Grant <jg@jguk.org>
17972020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * main.c (captured_main_1): Don't print new line after help.
1800 (print_gdb_help): add mailing list and IRC channel information
1801 to --help. Add new lines between items in the footer. Remove
1802 quotes around bug url.
1803
2f33032a
KS
18042020-06-11 Keith Seitz <keiths@redhat.com>
1805
1806 PR gdb/21356
1807 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1808 Resolve typedefs for type length calculations.
1809
7ab96794
TV
18102020-06-10 Tom de Vries <tdevries@suse.de>
1811
1812 PR ada/24713
1813 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1814 (write_psymbols): Enable .gdb_index for ada.
1815 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1816 ada.
1817
e5f3ece2
TV
18182020-06-10 Tom de Vries <tdevries@suse.de>
1819
1820 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1821 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1822 namei" instead of "const char *name" argument.
1823 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1824 dw2_symtab_iter_init.
1825
940da03e
SM
18262020-06-08 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1829 to use type::field and field::type instead.
1830
b6cdac4b
SM
18312020-06-08 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1834 to use field::type instead.
1835
5d14b6e5
SM
18362020-06-08 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * gdbtypes.h (struct field) <type, set_type>: New methods.
1839 Rename `type` field to...
1840 <m_type>: ... this. Change references throughout to use type or
1841 set_type methods.
1842 (FIELD_TYPE): Use field::type. Change call sites that modify
1843 the field's type to use field::set_type instead.
1844
3d967001
SM
18452020-06-08 Simon Marchi <simon.marchi@efficios.com>
1846
1847 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1848 to use type::index_type instead.
1849
262abc0d
SM
18502020-06-08 Simon Marchi <simon.marchi@efficios.com>
1851
1852 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1853 methods.
1854 (TYPE_INDEX_TYPE): Use type::index_type.
1855 * gdbtypes.c (create_array_type_with_stride): Likewise.
1856
82836c92
TT
18572020-06-07 Tom Tromey <tom@tromey.com>
1858
1859 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1860 parameter.
1861 (generic_value_print): Update.
1862
940dace9
AB
18632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 Revert commit 982a38f60b0.
1866 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1867
982a38f6
AB
18682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1871 avoid use after free.
1872
82f06518
TV
18732020-06-05 Tom de Vries <tdevries@suse.de>
1874
1875 * NEWS: Fix typos.
1876
f8c41851
SM
18772020-06-04 Simon Marchi <simon.marchi@efficios.com>
1878
1879 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1880 the per_bfd object.
1881 (dwarf2_read_debug_names): Likewise.
1882 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1883 object when re-using a per_bfd object with an index.
1884
f9b5d5ea
TV
18852020-06-03 Tom de Vries <tdevries@suse.de>
1886
1887 PR symtab/26046
1888 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1889 children for C++.
1890 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1891 DW_TAG_subprogram.
1892
f6eee2d0
AB
18932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * ada-lang.c (ada_language_data): Delete skip_trampoline
1896 initializer.
1897 * c-lang.c (c_language_data): Likewise.
1898 (cplus_language_data): Likewise.
1899 (cplus_language::skip_trampoline): New member function.
1900 (asm_language_data): Delete skip_trampoline initializer.
1901 (minimal_language_data): Likewise.
1902 * d-lang.c (d_language_data): Likewise.
1903 * f-lang.c (f_language_data): Likewise.
1904 * go-lang.c (go_language_data): Likewise.
1905 * language.c (unk_lang_trampoline): Delete function.
1906 (skip_language_trampoline): Update.
1907 (unknown_language_data): Delete skip_trampoline initializer.
1908 (auto_language_data): Likewise.
1909 * language.h (language_data): Delete skip_trampoline field.
1910 (language_defn::skip_trampoline): New function.
1911 * m2-lang.c (m2_language_data): Delete skip_trampoline
1912 initializer.
1913 * objc-lang.c (objc_skip_trampoline): Delete function, move
1914 implementation to objc_language::skip_trampoline.
1915 (objc_language_data): Delete skip_trampoline initializer.
1916 (objc_language::skip_trampoline): New member function with
1917 implementation from objc_skip_trampoline.
1918 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1919 initializer.
1920 * p-lang.c (pascal_language_data): Likewise.
1921 * rust-lang.c (rust_language_data): Likewise.
1922
0a50df5d
AB
19232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1926 (ada_language::demangle): New member function.
1927 * c-lang.c (c_language_data): Delete la_demangle initializer.
1928 (cplus_language_data): Delete la_demangle initializer.
1929 (cplus_language::demangle): New member function.
1930 (asm_language_data): Delete la_demangle initializer.
1931 (minimal_language_data): Delete la_demangle initializer.
1932 * d-lang.c (d_language_data): Delete la_demangle initializer.
1933 (d_language::demangle): New member function.
1934 * f-lang.c (f_language_data): Delete la_demangle initializer.
1935 (f_language::demangle): New member function.
1936 * go-lang.c (go_language_data): Delete la_demangle initializer.
1937 (go_language::demangle): New member function.
1938 * language.c (language_demangle): Update.
1939 (unk_lang_demangle): Delete.
1940 (unknown_language_data): Delete la_demangle initializer.
1941 (unknown_language::demangle): New member function.
1942 (auto_language_data): Delete la_demangle initializer.
1943 (auto_language::demangle): New member function.
1944 * language.h (language_data): Delete la_demangle field.
1945 (language_defn::demangle): New function.
1946 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1947 * objc-lang.c (objc_language_data): Delete la_demangle
1948 initializer.
1949 (objc_language::demangle): New member function.
1950 * opencl-lang.c (opencl_language_data): Delete la_demangle
1951 initializer.
1952 * p-lang.c (pascal_language_data): Likewise.
1953 * rust-lang.c (rust_language_data): Likewise.
1954 (rust_language::demangle): New member function.
1955
fbfb0a46
AB
19562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (ada_language_data): Delete la_print_type
1959 initializer.
1960 (ada_language::print_type): New member function.
1961 * c-lang.c (c_language_data): Delete la_print_type initializer.
1962 (c_language::print_type): New member function.
1963 (cplus_language_data): Delete la_print_type initializer.
1964 (cplus_language::print_type): New member function.
1965 (asm_language_data): Delete la_print_type initializer.
1966 (asm_language::print_type): New member function.
1967 (minimal_language_data): Delete la_print_type initializer.
1968 (minimal_language::print_type): New member function.
1969 * d-lang.c (d_language_data): Delete la_print_type initializer.
1970 (d_language::print_type): New member function.
1971 * f-lang.c (f_language_data): Delete la_print_type initializer.
1972 (f_language::print_type): New member function.
1973 * go-lang.c (go_language_data): Delete la_print_type initializer.
1974 (go_language::print_type): New member function.
1975 * language.c (unk_lang_print_type): Delete.
1976 (unknown_language_data): Delete la_print_type initializer.
1977 (unknown_language::print_type): New member function.
1978 (auto_language_data): Delete la_print_type initializer.
1979 (auto_language::print_type): New member function.
1980 * language.h (language_data): Delete la_print_type field.
1981 (language_defn::print_type): New function.
1982 (LA_PRINT_TYPE): Update.
1983 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1984 (m2_language::print_type): New member function.
1985 * objc-lang.c (objc_language_data): Delete la_print_type
1986 initializer.
1987 (objc_language::print_type): New member function.
1988 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1989 to opencl_language::print_type.
1990 (opencl_language_data): Delete la_print_type initializer.
1991 (opencl_language::print_type): New member function, implementation
1992 from opencl_print_type.
1993 * p-lang.c (pascal_language_data): Delete la_print_type
1994 initializer.
1995 (pascal_language::print_type): New member function.
1996 * rust-lang.c (rust_print_type): Delete, implementation moved to
1997 rust_language::print_type.
1998 (rust_language_data): Delete la_print_type initializer.
1999 (rust_language::print_type): New member function, implementation
2000 from rust_print_type.
2001
6f827019
AB
20022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2005 implementation moves to...
2006 (ada_language::sniff_from_mangled_name): ...here. Update return
2007 type.
2008 (ada_language_data): Delete la_sniff_from_mangled_name
2009 initializer.
2010 * c-lang.c (c_language_data): Likewise.
2011 (cplus_language_data): Likewise.
2012 (cplus_language::sniff_from_mangled_name): New member function,
2013 implementation taken from gdb_sniff_from_mangled_name.
2014 (asm_language_data): Delete la_sniff_from_mangled_name
2015 initializer.
2016 (minimal_language_data): Likewise.
2017 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2018 implementation moves to cplus_language::sniff_from_mangled_name.
2019 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2020 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2021 moves to...
2022 (d_language::sniff_from_mangled_name): ...here.
2023 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2024 * f-lang.c (f_language_data): Likewise.
2025 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2026 moves to...
2027 (go_language::sniff_from_mangled_name): ...here.
2028 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2029 * language.c (language_sniff_from_mangled_name): Delete.
2030 (unknown_language_data): Delete la_sniff_from_mangled_name
2031 initializer.
2032 (auto_language_data): Likewise.
2033 * language.h (language_data): Delete la_sniff_from_mangled_name
2034 field.
2035 (language_defn::sniff_from_mangled_name): New function.
2036 (language_sniff_from_mangled_name): Delete declaration.
2037 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2038 field.
2039 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2040 implementation moves to...
2041 (objc_language::sniff_from_mangled_name): ...here.
2042 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2043 * opencl-lang.c (opencl_language_data): Likewise.
2044 * p-lang.c (pascal_language_data): Likewise.
2045 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2046 implementation moves to...
2047 (rust_language::sniff_from_mangled_name): ...here.
2048 (rust_language_data): Delete la_sniff_from_mangled_name
2049 initializer.
2050 * symtab.c (symbol_find_demangled_name): Call
2051 sniff_from_mangled_name member function.
2052
fb8006fd
AB
20532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2056 initializer.
2057 * c-lang.c (c_language_data): Likewise.
2058 (cplus_language_data): Likewise.
2059 (cplus_language::search_name_hash): New member function.
2060 (asm_language_data): Delete la_search_name_hash initializer.
2061 (minimal_language_data): Likewise.
2062 * d-lang.c (d_language_data): Likewise.
2063 * dictionary.c (default_search_name_hash): Rename to...
2064 (language_defn::search_name_hash): ...this.
2065 * f-lang.c (f_language_data): Likewise.
2066 (f_language::search_name_hash): New member function.
2067 * go-lang.c (go_language_data): Delete la_search_name_hash
2068 initializer.
2069 * language.c (unknown_language_data): Likewise.
2070 (auto_language_data): Likewise.
2071 * language.h (struct language_data): Delete la_search_name_hash
2072 field.
2073 (language_defn::search_name_hash): Declare new member function.
2074 (default_search_name_hash): Delete declaration.
2075 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2076 initializer.
2077 * objc-lang.c (objc_language_data): Likewise.
2078 * opencl-lang.c (opencl_language_data): Likewise.
2079 * p-lang.c (pascal_language_data): Likewise.
2080 * rust-lang.c (rust_language_data): Likewise.
2081 * symtab.c (search_name_hash): Update call.
2082
8e25bafe
AB
20832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2086 initializer.
2087 * c-lang.c (class compile_instance): Declare.
2088 (c_language_data): Delete la_get_compile_instance initializer.
2089 (c_language::get_compile_instance): New member function.
2090 (cplus_language_data): Delete la_get_compile_instance initializer.
2091 (cplus_language::get_compile_instance): New member function.
2092 (asm_language_data): Delete la_get_compile_instance initializer.
2093 (minimal_language_data): Likewise.
2094 * c-lang.h (c_get_compile_context): Update comment.
2095 (cplus_get_compile_context): Update comment.
2096 * compile/compile.c (compile_to_object): Update calls, don't rely
2097 on function pointer being NULL.
2098 * d-lang.c (d_language_data): Delete la_get_compile_instance
2099 initializer.
2100 * f-lang.c (f_language_data): Likewise.
2101 * go-lang.c (go_language_data): Likewise.
2102 * language.c (unknown_language_data): Likewise.
2103 (auto_language_data): Likewise.
2104 * language.h (language_data): Delete la_get_compile_instance field.
2105 (language_defn::get_compile_instance): New member function.
2106 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2107 initializer.
2108 * objc-lang.c (objc_language_data): Likewise.
2109 * opencl-lang.c (opencl_language_data): Likewise.
2110 * p-lang.c (pascal_language_data): Likewise.
2111 * rust-lang.c (rust_language_data): Likewise.
2112
4009ee92
AB
21132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_add_all_symbols): Update comment.
2116 (ada_iterate_over_symbols): Delete, move implementation to...
2117 (ada_language::iterate_over_symbols): ...here, a new member
2118 function, rewrite to use range based for loop.
2119 (ada_language_data): Delete la_iterate_over_symbols initializer.
2120 * c-lang.c (c_language_data): Likewise.
2121 (cplus_language_data): Likewise.
2122 (asm_language_data): Likewise.
2123 (minimal_language_data): Likewise.
2124 * d-lang.c (d_language_data): Likewise.
2125 * f-lang.c (f_language_data): Likewise.
2126 * go-lang.c (go_language_data): Likewise.
2127 * language.c (unknown_language_data): Likewise.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete la_iterate_over_symbols field.
2130 (language_defn::iterate_over_symbols): New member function.
2131 (LA_ITERATE_OVER_SYMBOLS): Update.
2132 * linespec.c (iterate_over_all_matching_symtabs): Update.
2133 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2134 initializer.
2135 * objc-lang.c (objc_language_data): Likewise.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 * rust-lang.c (rust_language_data): Likewise.
2139
54f4ca46
AB
21402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * ada-lang.c (ada_language_data): Delete
2143 la_lookup_transparent_type initializer.
2144 * c-lang.c (c_language_data): Likewise.
2145 (cplus_language_data): Likewise.
2146 (cplus_language::lookup_transparent_type): New member function.
2147 (asm_language_data): Delete la_lookup_transparent_type
2148 initializer.
2149 (minimal_language_data): Likewise.
2150 * d-lang.c (d_language_data): Likewise.
2151 * f-lang.c (f_language_data): Likewise.
2152 * go-lang.c (go_language_data): Likewise.
2153 * language.c (unknown_language_data): Likewise.
2154 (auto_language_data): Likewise.
2155 * language.h (struct language_data): Delete
2156 la_lookup_transparent_type field.
2157 (language_defn::lookup_transparent_type): New member function.
2158 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2159 initializer.
2160 * objc-lang.c (objc_language_data): Likewise.
2161 * opencl-lang.c (opencl_language_data): Likewise.
2162 * p-lang.c (pascal_language_data): Likewise.
2163 * rust-lang.c (rust_language_data): Likewise.
2164 * symtab.c (symbol_matches_domain): Update call.
2165
1fb314aa
AB
21662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2167
2168 * ada-lang.c (ada_language_arch_info): Delete function, move
2169 implementation to...
2170 (ada_language::language_arch_info): ...here, a new member
2171 function.
2172 (ada_language_data): Delete la_language_arch_info.
2173 * c-lang.c (c_language_data): Likewise.
2174 (c_language::language_arch_info): New member function.
2175 (cplus_language_arch_info): Delete function, move
2176 implementation to...
2177 (cplus_language::language_arch_info): ...here, a new member
2178 function.
2179 (cplus_language_data): Delete la_language_arch_info.
2180 (asm_language_data): Likewise.
2181 (asm_language::language_arch_info): New member function.
2182 (minimal_language_data): Delete la_language_arch_info.
2183 (minimal_language::language_arch_info): New member function.
2184 * d-lang.c (d_language_arch_info): Delete function, move
2185 implementation to...
2186 (d_language::language_arch_info): ...here, a new member
2187 function.
2188 (d_language_data): Delete la_language_arch_info.
2189 * f-lang.c (f_language_arch_info): Delete function, move
2190 implementation to...
2191 (f_language::language_arch_info): ...here, a new member
2192 function.
2193 (f_language_data): Delete la_language_arch_info.
2194 * go-lang.c (go_language_arch_info): Delete function, move
2195 implementation to...
2196 (go_language::language_arch_info): ...here, a new member
2197 function.
2198 (go_language_data): Delete la_language_arch_info.
2199 * language.c (unknown_language_data): Likewise.
2200 (unknown_language::language_arch_info): New member function.
2201 (auto_language_data): Delete la_language_arch_info.
2202 (auto_language::language_arch_info): New member function.
2203 (language_gdbarch_post_init): Update call to
2204 la_language_arch_info.
2205 * language.h (language_data): Delete la_language_arch_info
2206 function pointer.
2207 (language_defn::language_arch_info): New function.
2208 * m2-lang.c (m2_language_arch_info): Delete function, move
2209 implementation to...
2210 (m2_language::language_arch_info): ...here, a new member
2211 function.
2212 (m2_language_data): Delete la_language_arch_info.
2213 * objc-lang.c (objc_language_arch_info): Delete function, move
2214 implementation to...
2215 (objc_language::language_arch_info): ...here, a new member
2216 function.
2217 (objc_language_data): Delete la_language_arch_info.
2218 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2219 implementation to...
2220 (opencl_language::language_arch_info): ...here, a new member
2221 function.
2222 (opencl_language_data): Delete la_language_arch_info.
2223 * p-lang.c (pascal_language_arch_info): Delete function, move
2224 implementation to...
2225 (pascal_language::language_arch_info): ...here, a new member
2226 function.
2227 (pascal_language_data): Delete la_language_arch_info.
2228 * rust-lang.c (rust_language_arch_info): Delete function, move
2229 implementation to...
2230 (rust_language::language_arch_info): ...here, a new member
2231 function.
2232 (rust_language_data): Delete la_language_arch_info.
2233
48448202
AB
22342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2237 initializer.
2238 * c-lang.c (c_language_data): Likewise.
2239 (cplus_language_data): Likewise.
2240 (cplus_language::pass_by_reference_info): New method.
2241 (asm_language_data): Delete la_pass_by_reference initializer.
2242 (minimal_language_data): Likewise.
2243 * cp-abi.c (cp_pass_by_reference): Remove use of
2244 default_pass_by_reference.
2245 * d-lang.c (d_language_data): Likewise.
2246 * f-lang.c (f_language_data): Likewise.
2247 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2248 default_pass_by_reference.
2249 * go-lang.c (go_language_data): Likewise.
2250 * language.c (language_pass_by_reference): Update.
2251 (default_pass_by_reference): Delete.
2252 (unknown_language_data): Delete la_pass_by_reference
2253 initializer.
2254 (auto_language_data): Likewise.
2255 * language.h (struct language_data): Delete la_pass_by_reference
2256 field.
2257 (language_defn::pass_by_reference_info): New member function.
2258 (default_pass_by_reference): Delete declaration.
2259 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2260 initializer.
2261 * objc-lang.c (objc_language_data): Likewise.
2262 * opencl-lang.c (opencl_language_data): Likewise.
2263 * p-lang.c (pascal_language_data): Likewise.
2264 * rust-lang.c (rust_language_data): Likewise.
2265
15e5fd35
AB
22662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * ada-lang.c (ada_read_var_value): Delete function, move
2269 implementation to...
2270 (ada_language::read_var_value): ...here.
2271 (ada_language_data): Delete la_read_var_value initializer.
2272 * c-lang.c (c_language_data): Likewise.
2273 (cplus_language_data): Likewise.
2274 (minimal_language_data): Likewise.
2275 * d-lang.c (d_language_data): Likewise.
2276 * f-lang.c (f_language_data): Likewise.
2277 * findvar.c (default_read_var_value): Rename to...
2278 (language_defn::read_var_value): ...this.
2279 * findvar.c (read_var_value): Update header comment, and change to
2280 call member function instead of function pointer.
2281 * go-lang.c (go_language_data): Likewise.
2282 * language.c (unknown_language_data): Delete la_read_var_value
2283 initializer.
2284 (auto_language_data): Likewise.
2285 * language.h (struct language_data): Delete la_read_var_value
2286 field.
2287 (language_defn::read_var_value): New member function.
2288 (default_read_var_value): Delete declaration.
2289 * m2-lang.c (m2_language_data): Delete la_read_var_value
2290 initializer.
2291 * objc-lang.c (objc_language_data): Likewise.
2292 * opencl-lang.c (opencl_language_data): Likewise.
2293 * p-lang.c (pascal_language_data): Likewise.
2294 * rust-lang.c (rust_language_data): Likewise.
2295 * value.h (default_read_var_value): Delete declaration.
2296
5bd40f2a
AB
22972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * ada-lang.c (ada_print_array_index): Delete function, move
2300 implementation to...
2301 (ada_language::print_array_index): ...here.
2302 (ada_language_data): Delete la_print_array_index initializer.
2303 * c-lang.c (c_language_data): Likewise.
2304 (cplus_language_data): Likewise.
2305 (minimal_language_data): Likewise.
2306 * d-lang.c (d_language_data): Likewise.
2307 * f-lang.c (f_language_data): Likewise.
2308 * go-lang.c (go_language_data): Likewise.
2309 * language.c (default_print_array_index): Delete function, move
2310 implementation to...
2311 (language_defn::print_array_index): ...here.
2312 (unknown_language_data): Delete la_print_array_index initializer.
2313 (auto_language_data): Likewise.
2314 * language.h (struct language_data): Delete la_print_array_index
2315 field.
2316 (language_defn::print_array_index): New member function.
2317 (LA_PRINT_ARRAY_INDEX): Update.
2318 (default_print_array_index): Delete declaration.
2319 * m2-lang.c (m2_language_data): Delete la_print_array_index
2320 initializer.
2321 * objc-lang.c (objc_language_data): Likewise.
2322 * opencl-lang.c (opencl_language_data): Likewise.
2323 * p-lang.c (pascal_language_data): Likewise.
2324 * rust-lang.c (rust_language_data): Likewise.
2325
0874fd07
AB
23262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * gdb/ada-lang.c (ada_language_defn): Convert to...
2329 (ada_language_data): ...this.
2330 (class ada_language): New class.
2331 (ada_language_defn): New static global.
2332 * gdb/c-lang.c (c_language_defn): Convert to...
2333 (c_language_data): ...this.
2334 (class c_language): New class.
2335 (c_language_defn): New static global.
2336 (cplus_language_defn): Convert to...
2337 (cplus_language_data): ...this.
2338 (class cplus_language): New class.
2339 (cplus_language_defn): New static global.
2340 (asm_language_defn): Convert to...
2341 (asm_language_data): ...this.
2342 (class asm_language): New class.
2343 (asm_language_defn): New static global.
2344 (minimal_language_defn): Convert to...
2345 (minimal_language_data): ...this.
2346 (class minimal_language): New class.
2347 (minimal_language_defn): New static global.
2348 * gdb/d-lang.c (d_language_defn): Convert to...
2349 (d_language_data): ...this.
2350 (class d_language): New class.
2351 (d_language_defn): New static global.
2352 * gdb/f-lang.c (f_language_defn): Convert to...
2353 (f_language_data): ...this.
2354 (class f_language): New class.
2355 (f_language_defn): New static global.
2356 * gdb/go-lang.c (go_language_defn): Convert to...
2357 (go_language_data): ...this.
2358 (class go_language): New class.
2359 (go_language_defn): New static global.
2360 * gdb/language.c (unknown_language_defn): Remove declaration.
2361 (current_language): Initialize to nullptr, real initialization is
2362 moved to _initialize_language.
2363 (languages): Delete global.
2364 (language_defn::languages): Define.
2365 (set_language_command): Use language_defn::languages.
2366 (set_language): Likewise.
2367 (range_error): Likewise.
2368 (language_enum): Likewise.
2369 (language_def): Likewise.
2370 (add_set_language_command): Use language_def::languages for the
2371 language list, and language_def to lookup language pointers.
2372 (skip_language_trampoline): Use language_defn::languages.
2373 (unknown_language_defn): Convert to...
2374 (unknown_language_data): ...this.
2375 (class unknown_language): New class.
2376 (unknown_language_defn): New static global.
2377 (auto_language_defn): Convert to...
2378 (auto_language_data): ...this.
2379 (class auto_language): New class.
2380 (auto_language_defn): New static global.
2381 (language_gdbarch_post_init): Use language_defn::languages.
2382 (_initialize_language): Initialize current_language.
2383 * gdb/language.h (struct language_defn): Rename to...
2384 (struct language_data): ...this.
2385 (struct language_defn): New.
2386 (auto_language_defn): Delete.
2387 (unknown_language_defn): Delete.
2388 (minimal_language_defn): Delete.
2389 (ada_language_defn): Delete.
2390 (asm_language_defn): Delete.
2391 (c_language_defn): Delete.
2392 (cplus_language_defn): Delete.
2393 (d_language_defn): Delete.
2394 (f_language_defn): Delete.
2395 (go_language_defn): Delete.
2396 (m2_language_defn): Delete.
2397 (objc_language_defn): Delete.
2398 (opencl_language_defn): Delete.
2399 (pascal_language_defn): Delete.
2400 (rust_language_defn): Delete.
2401 * gdb/m2-lang.c (m2_language_defn): Convert to...
2402 (m2_language_data): ...this.
2403 (class m2_language): New class.
2404 (m2_language_defn): New static global.
2405 * gdb/objc-lang.c (objc_language_defn): Convert to...
2406 (objc_language_data): ...this.
2407 (class objc_language): New class.
2408 (objc_language_defn): New static global.
2409 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2410 (opencl_language_data): ...this.
2411 (class opencl_language): New class.
2412 (opencl_language_defn): New static global.
2413 * gdb/p-lang.c (pascal_language_defn): Convert to...
2414 (pascal_language_data): ...this.
2415 (class pascal_language): New class.
2416 (pascal_language_defn): New static global.
2417 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2418 language pointer, update comment format.
2419 * gdb/rust-lang.c (rust_language_defn): Convert to...
2420 (rust_language_data): ...this.
2421 (class rust_language): New class.
2422 (rust_language_defn): New static global.
2423
1313c56e
AB
24242020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2427 member variable.
2428 <m_stmt_at_address>: New member variable.
2429 (lnp_state_machine::record_line): Don't record some lines, update
2430 tracking of is_stmt at the same address.
2431 (lnp_state_machine::lnp_state_machine): Initialise new member
2432 variables.
2433
b7ed9f3d
ST
24342020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2435
2436 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2437 "-include gnu-nat-mig.h".
2438 * gnu-nat-mig.h: New file.
2439 * gnu-nat.c: Include "gnu-nat-mig.h".
2440 (exc_server, msg_reply_server, notify_server,
2441 process_reply_server): Remove declarations.
2442
14a8ad62
ST
24432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2444
2445 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2446 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2447 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2448 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2449 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2450 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2451 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2452 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2453 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2454 to gnu_nat_target class.
2455 * gnu-nat.c: Likewise.
2456 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2457 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2458 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2459 object.
2460 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2461 instead of `gnu_target'.
2462
0af5e106
ST
24632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2464
2465 * i386-gnu-tdep.c: Include "gdbcore.h"
2466 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2467 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2468 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2469 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2470 i386_gnu_sigcontext_addr): New functions
2471 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2472 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2473 tdep.
2474
078f2fc9
ST
24752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2476
2477 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2478 before fork_inferior call. Avoid calling it if target_is_pushed returns
2479 true.
2480
53dff92c
ST
24812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2482
2483 * gnu-nat.h (gnu_target): New variable declaration.
2484 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2485 gnu_target.
2486 * gnu-nat.c (gnu_target): New variable.
2487 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2488 add_thread_silent, and add_thread calls.
2489 (gnu_nat_target::create_inferior): Pass gnu_target to
2490 add_thread_silent, thread_change_ptid call.
2491 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2492 call.
2493
5a8b8627
ST
24942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2495
2496 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2497 (gnu_nat_target::find_memory_regions): Remove unused
2498 `old_address' variable.
2499
366f550a
ST
25002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2501
2502 * gnu-nat.c: Include "gdbarch.h".
2503
f14871bf
ST
25042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2505
2506 * reply_mig_hack.awk (Error return): Cast function through
2507 void *, to bypass compiler function call check.
2508
c6887cfb
ST
25092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2510
2511 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2512 $(srcdir)/reply_mig_hack.awk.
2513
6930bffe
ST
25142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2515
2516 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2517
112c22ed
JG
25182020-05-30 Jonny Grant <jg@jguk.org>
2519
2520 * configure.ac (ACX_BUGURL): change bug URL to https.
2521
f68f85b5
PA
25222020-05-30 Pedro Alves <palves@redhat.com>
2523
2524 * cp-support.c (replace_typedefs_template): New.
2525 (replace_typedefs_qualified_name): Handle
2526 DEMANGLE_COMPONENT_TEMPLATE.
2527
976ca316
SM
25282020-05-29 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2531 dwarf2/index-cache.h, dwarf2/index-write.c,
2532 dwarf2/index-write.h, dwarf2/line-header.c,
2533 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2534 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2535 variables and fields from `dwarf2_per_objfile` to just
2536 `per_objfile` throughout.
2537
989ade05
SM
25382020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2539
2540 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2541 <push_dwarf_reg_entry_value>: Add comment.
2542
c47bae85
KB
25432020-05-28 Kevin Buettner <kevinb@redhat.com>
2544 Keith Seitz <keiths@redhat.com>
2545
2546 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2547 instead of PyEval_ReleaseLock.
2548 (class gdbpy_gil): Move to earlier in file.
2549 (finalize_python): Set gdb_python_initialized.
2550 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2551 when not initialized.
2552
44486dcf
SM
25532020-05-28 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2556 <push_dwarf_reg_entry_value>: Remove assert. Override
2557 per_objfile with caller_per_objfile.
2558
f030440d
TV
25592020-05-28 Tom de Vries <tdevries@suse.de>
2560
2561 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2562 PR gold/15646 workaround to symbol kind "type".
2563
f0fbb768
TT
25642020-05-27 Tom Tromey <tromey@adacore.com>
2565
2566 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2567
af0b2a3e
TT
25682020-05-27 Tom Tromey <tromey@adacore.com>
2569
2570 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2571 Use htab_find_with_hash.
2572 <add_abbrev>: Remove "abbrev_number" parameter.
2573 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2574 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2575 (hash_abbrev): Add comment.
2576 (abbrev_table::lookup_abbrev): Move to header file.
2577 (abbrev_table::read): Update.
2578
7d00ffec
TT
25792020-05-27 Tom Tromey <tromey@adacore.com>
2580
2581 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2582 method.
2583 <canonical_name>: New member.
2584 <raw_name>: Rename from "name".
2585 (partial_die_info): Initialize canonical_name.
2586 (scan_partial_symbols): Check raw_name.
2587 (partial_die_parent_scope, partial_die_full_name)
2588 (add_partial_symbol, add_partial_subprogram)
2589 (add_partial_enumeration, load_partial_dies): Use "name" method.
2590 (partial_die_info::name): New method.
2591 (partial_die_info::read, guess_partial_die_structure_name)
2592 (partial_die_info::fixup): Update.
2593
697bba18
TT
25942020-05-27 Tom Tromey <tromey@adacore.com>
2595
2596 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2597 <get_ref_die_offset>: Inline.
2598 <get_ref_die_offset_complaint>: New method.
2599 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2600 (attribute::get_ref_die_offset_complaint): Rename from
2601 get_ref_die_offset. Just issue complaint.
2602
c17ace43
HD
26032020-05-27 Hannes Domani <ssbssa@yahoo.de>
2604
2605 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2606
96445f0b
HD
26072020-05-27 Hannes Domani <ssbssa@yahoo.de>
2608
2609 * exec.c (exec_file_attach): Use errno value of first openp failure.
2610
ac637ec3
HD
26112020-05-27 Hannes Domani <ssbssa@yahoo.de>
2612
2613 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2614 Don't close thread handle.
2615
17ee85fc
TT
26162020-05-27 Tom Tromey <tom@tromey.com>
2617 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2620 shared_ptr.
2621 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2622 member.
2623 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2624 dwarf2_per_bfd_objfile_data_key>: New globals.
2625 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2626 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2627 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2628 shared.
2629 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2630 short-circuit when sharing.
2631 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2632 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2633
39b16f87
SM
26342020-05-27 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2637 to...
2638 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2639 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2640
fcf23d5b
SM
26412020-05-27 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2644 build_name_components, find_name_components_bounds>:
2645 Add per_objfile parameter.
2646 (struct mapped_index) <symbol_name_at>: Likewise.
2647 (struct mapped_debug_names): Remove constructor.
2648 <dwarf2_per_objfile>: Remove field.
2649 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2650 (mapped_index_base::find_name_components_bounds,
2651 mapped_index_base::build_name_components,
2652 dw2_expand_symtabs_matching_symbol): Likewise.
2653 (class mock_mapped_index) <symbol_name_at>: Likewise.
2654 (check_match): Likewise.
2655 (check_find_bounds_finds): Likewise.
2656 (test_mapped_index_find_name_component_bounds): Update.
2657 (CHECK_MATCH): Update.
2658 (dw2_expand_symtabs_matching): Update.
2659 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2660 per_objfile parameter.
2661 <find_vec_in_debug_names>: Likewise.
2662 <m_per_objfile>: New field.
2663 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2664 parameter.
2665 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2666 (dw2_debug_names_iterator::next): Update.
2667 (dw2_debug_names_lookup_symbol): Update.
2668 (dw2_debug_names_expand_symtabs_for_function): Update.
2669 (dw2_debug_names_map_matching_symbols): Update.
2670 (dw2_debug_names_expand_symtabs_matching): Update.
2671 (dwarf2_read_debug_names): Update.
2672
7188ed02
SM
26732020-05-27 Simon Marchi <simon.marchi@efficios.com>
2674
2675 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2676 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2677 move to dwarf2_per_objfile.
2678 <read_in_chain>: Remove.
2679 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2680 remove_all_cus, age_comp_units>: New methods.
2681 <m_dwarf2_cus>: New member.
2682 (struct dwarf2_per_cu_data) <cu>: Remove.
2683 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2684 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2685 moved to methods of dwarf2_per_objfile.
2686 (dwarf2_clear_marks): Remove.
2687 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2688 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2689 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2690 (dwarf2_per_objfile::remove_all_cus): New.
2691 (class free_cached_comp_units) <~free_cached_comp_units>:
2692 Update.
2693 (load_cu): Update.
2694 (dw2_do_instantiate_symtab): Adjust.
2695 (fill_in_sig_entry_from_dwo_entry): Adjust.
2696 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2697 (cutu_reader::cutu_reader): Likewise.
2698 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2699 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2700 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2701 and dwarf2_per_objfile::age_comp_units.
2702 (load_partial_comp_unit): Update.
2703 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2704 (process_queue): Likewise.
2705 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2706 backlink.
2707 (dwarf2_read_addr_index): Likewise.
2708 (follow_die_offset): Likewise.
2709 (dwarf2_fetch_die_loc_sect_off): Likewise.
2710 (dwarf2_fetch_constant_bytes): Likewise.
2711 (dwarf2_fetch_die_type_sect_off): Likewise.
2712 (follow_die_sig_1): Likewise.
2713 (load_full_type_unit): Likewise.
2714 (read_signatured_type): Likewise.
2715 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2716 (dwarf2_cu::~dwarf2_cu): Remove.
2717 (dwarf2_per_objfile::get_cu): New.
2718 (dwarf2_per_objfile::set_cu): New.
2719 (age_cached_comp_units): Rename to...
2720 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2721 to std::unordered_map.
2722 (free_one_cached_comp_unit): Rename to...
2723 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2724 to std::unordered_map.
2725 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2726 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2727 a dwarf2_per_objfile in data.
2728 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2729 (dwarf2_clear_marks): Remove.
2730
2e671100
SM
27312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2734 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2735 (init_tu_and_read_dwo_dies): Likewise.
2736 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2737 (cutu_reader::cutu_reader): Likewise.
2738 (load_partial_comp_unit): Likewise.
2739 (process_psymtab_comp_unit): Update.
2740 (build_type_psymtabs_1): Update.
2741 (process_skeletonless_type_unit): Update.
2742 (load_full_comp_unit): Update.
2743 (find_partial_die): Update.
2744 (dwarf2_read_addr_index): Update.
2745 (read_signatured_type): Update.
2746
2e6a9f79
SM
27472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2748
2749 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2750 m_header_read_in>: New fields.
2751 <get_header>: New method.
2752 * dwarf2/read.c (per_cu_header_read_in): Remove.
2753 (dwarf2_per_cu_data::get_header): New.
2754 (dwarf2_per_cu_data::addr_size): Update.
2755 (dwarf2_per_cu_data::offset_size): Update.
2756 (dwarf2_per_cu_data::ref_addr_size): Update.
2757
1b555f17
SM
27582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2761 (dw2_do_instantiate_symtab): Update.
2762 (queue_and_load_all_dwo_tus): Change parameter from
2763 dwarf2_per_cu_data to dwarf2_cu.
2764 (dwarf2_fetch_die_loc_sect_off): Update.
2765 (dwarf2_fetch_constant_bytes): Update.
2766 (dwarf2_fetch_die_type_sect_off): Update.
2767
8fc0b21d
SM
27682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * dwarf2/read.c (process_full_comp_unit,
2771 process_full_type_unit): Remove per_cu, per_objfile paramters.
2772 Add dwarf2_cu parameter.
2773 (process_queue): Update.
2774
168c9250
SM
27752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2776
2777 * dwarf2/read.c (create_cu_from_index_list): Replace
2778 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2779 (create_cus_from_index_list): Likewise.
2780 (create_cus_from_index): Likewise.
2781 (create_signatured_type_table_from_index): Likewise.
2782 (create_cus_from_debug_names_list): Likewise.
2783 (create_cus_from_debug_names): Likewise.
2784 (dwarf2_read_gdb_index): Update.
2785 (dwarf2_read_debug_names): Update.
2786
e286671b
TT
27872020-05-27 Tom Tromey <tom@tromey.com>
2788 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * dwarf2/read.h (struct dwarf2_per_objfile)
2791 <get_type_for_signatured_type, set_type_for_signatured_type>:
2792 New methods.
2793 <m_type_map>: New member.
2794 (struct signatured_type) <type>: Remove.
2795 * dwarf2/read.c
2796 (dwarf2_per_objfile::get_type_for_signatured_type,
2797 dwarf2_per_objfile::set_type_for_signatured_type): New.
2798 (get_signatured_type): Use new methods.
2799
8adb8487
TT
28002020-05-27 Tom Tromey <tom@tromey.com>
2801 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2804 (struct dwarf2_per_objfile) <type_units>: New member.
2805 <get_type_unit_group_unshareable>: New method.
2806 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2807 num_symtabs, symtabs>: Remove; move to
2808 type_unit_group_unshareable.
2809 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2810 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2811 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2812
127bbf4b
SM
28132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2814
2815 * dwarf2/read.h (struct dwarf2_per_cu_data):
2816 <dwarf2_per_objfile>: Remove.
2817 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2818 dwarf2_per_objfile.
2819 (create_signatured_type_table_from_index): Likewise.
2820 (create_signatured_type_table_from_debug_names): Likewise.
2821 (create_debug_type_hash_table): Likewise.
2822 (fill_in_sig_entry_from_dwo_entry): Likewise.
2823 (create_type_unit_group): Likewise.
2824 (read_comp_units_from_section): Likewise.
2825 (create_cus_hash_table): Likewise.
2826
f6e649dd
SM
28272020-05-27 Simon Marchi <simon.marchi@efficios.com>
2828
2829 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2830 dwarf2_per_cu_data::dwarf2_per_objfile.
2831 (compute_compunit_symtab_includes): Likewise.
2832 (dwarf2_cu::start_symtab): Likewise.
2833
aa66c379
SM
28342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2837 parameter.
2838 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2839 (read_namespace_alias): Update.
2840 (lookup_die_type): Update.
2841 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2842 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2843 Update.
2844 (disassemble_dwarf_expression): Update.
2845
120ce1b5
SM
28462020-05-27 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.h (struct dwarf2_queue_item): Add
2849 dwarf2_per_objfile parameter, assign new parameter.
2850 <per_objfile>: New field.
2851 * dwarf2/read.c (free_one_cached_comp_unit): Add
2852 dwarf2_per_objfile parameter.
2853 (queue_comp_unit): Likewise.
2854 (dw2_do_instantiate_symtab): Update.
2855 (process_psymtab_comp_unit): Update.
2856 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2857 (process_imported_unit_die): Update.
2858 (queue_and_load_dwo_tu): Update.
2859 (follow_die_offset): Update.
2860 (follow_die_sig_1): Update.
2861
9f47c707
SM
28622020-05-27 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2865 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2866 (read_call_site_scope): Assign per_objfile.
2867 (dwarf2_per_cu_data::objfile): Remove.
2868 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2869 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2870 dwarf2_per_objfile parameter.
2871 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2872 dwarf2_per_objfile parameter.
2873 (dwarf_expr_reg_to_entry_parameter): Add output
2874 dwarf2_per_objfile parameter.
2875 (locexpr_get_frame_base): Update.
2876 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2877 <push_dwarf_reg_entry_value>: Update.
2878 <call_site_to_target_addr>: Update.
2879 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2880 parameter.
2881 (value_of_dwarf_reg_entry): Update.
2882 (rw_pieced_value): Update.
2883 (indirect_synthetic_pointer): Update.
2884 (dwarf2_evaluate_property): Update.
2885 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2886 parameter.
2887 (locexpr_read_variable): Update.
2888 (locexpr_get_symbol_read_needs): Update.
2889 (loclist_read_variable): Update.
2890
14095eb3
SM
28912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2894 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2895 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2896 parameter.
2897 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2898 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2899 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2900 parameter.
2901 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2902 sect_variable_value): Add dwarf2_per_objfile parameter.
2903 (class dwarf_evaluate_loc_desc) <dwarf_call,
2904 dwarf_variable_value>: Update.
2905 (fetch_const_value_from_synthetic_pointer): Add
2906 dwarf2_per_objfile parameter.
2907 (fetch_const_value_from_synthetic_pointer): Update.
2908 (coerced_pieced_ref): Update.
2909 (class symbol_needs_eval_context) <dwarf_call,
2910 dwarf_variable_value>: Update.
2911 (dwarf2_compile_expr_to_ax): Update.
2912
3c3cd3d4
SM
29132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2914
2915 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2916 parameter.
2917 (dwarf2_evaluate_loc_desc_full): Update.
2918
82ca3f51
SM
29192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2922 parameter.
2923 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2924 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2925 dwarf2_per_objfile parameter.
2926 (decode_debug_loc_dwo_addresses): Likewise.
2927 (dwarf2_find_location_expression): Update.
2928 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2929 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2930 parameter.
2931 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2932 parameter.
2933 (locexpr_describe_location_1): Likewise.
2934 (locexpr_describe_location): Update.
2935
4b167ea1
SM
29362020-05-27 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2939 Remove.
2940 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2941 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2942 (dwarf2_compile_property_to_c): Update.
2943 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2944 use text offset from objfile.
2945 (locexpr_tracepoint_var_ref): Update.
2946 (locexpr_generate_c_location): Update.
2947 (loclist_describe_location): Update.
2948 (loclist_tracepoint_var_ref): Update.
2949 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2950 dwarf2_per_objfile parameter.
2951 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2952 use text offset from objfile.
2953 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2954
89b07335
SM
29552020-05-27 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * dwarf2/expr.h (struct dwarf_expr_context)
2958 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2959 <offset>: Remove.
2960 <per_objfile>: New member.
2961 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2962 dwarf2_per_objfile parameter. Don't set offset, set
2963 per_objfile.
2964 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2965 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2966 a dwarf2_per_objfile object instead of an offset.
2967 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2968 constructor.
2969 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2970 to dwarf2_expr_executor constructor. Don't set offset.
2971 (dwarf2_fetch_cfa_info): Update.
2972 (struct dwarf2_frame_cache) <text_offset>: Remove.
2973 <per_objfile>: New field.
2974 (dwarf2_frame_cache): Update.
2975 (dwarf2_frame_prev_register): Update.
2976 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2977 <dwarf_evaluate_loc_desc>: Add constructor.
2978 (dwarf2_evaluate_loc_desc_full): Update.
2979 (dwarf2_locexpr_baton_eval): Update.
2980 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2981 Add constructor.
2982 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2983
293e7e51
SM
29842020-05-27 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2987 addr_sized_int_type>: Move to dwarf2_cu.
2988 <int_type>: Move to dwarf2_per_objfile.
2989 (struct dwarf2_per_objfile) <int_type>: Move here.
2990 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2991 addr_sized_int_type>: Move here.
2992 (read_func_scope): Update.
2993 (read_array_type): Update.
2994 (read_tag_string_type): Update.
2995 (attr_to_dynamic_prop): Update.
2996 (dwarf2_per_cu_data::int_type): Rename to...
2997 (dwarf2_per_objfile::int_type): ... this.
2998 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2999 (dwarf2_cu::addr_sized_int_type): ... this.
3000 (read_subrange_type): Update.
3001 (dwarf2_per_cu_data::addr_type): Rename to...
3002 (dwarf2_cu::addr_type): ... this.
3003 (set_die_type): Update.
3004
64874a40
SM
30052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3008 data through per_cu->cu.
3009
4ab09049
SM
30102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3013 dwarf2_per_cu_data parameter fo dwarf2_cu.
3014 (lookup_dwo_type_unit): Likewise.
3015 (read_cutu_die_from_dwo): Likewise.
3016 (lookup_dwo_unit): Likewise.
3017 (open_and_init_dwo_file): Likewise.
3018 (lookup_dwo_cutu): Likewise.
3019 (lookup_dwo_comp_unit): Likewise.
3020 (lookup_dwo_type_unit): Likewise.
3021 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3022 (cutu_reader::cutu_reader): Update.
3023
47b14e86
SM
30242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3025
3026 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3027 parameter.
3028 (process_full_type_unit): Likewise.
3029 (process_queue): Update.
3030
43182c09
SM
30312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * dwarf2/read.c (recursively_compute_inclusions): Add
3034 dwarf2_per_objfile parameter.
3035 (compute_compunit_symtab_includes): Likewise.
3036 (process_cu_includes): Update.
3037
7aa104c4
SM
30382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3041 parameter.
3042 (create_type_unit_group): Update.
3043 (process_psymtab_comp_unit_reader): Update.
3044 (build_type_psymtabs_reader): Update.
3045
e3beb21d
SM
30462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3049 object through m_this_cu->cu.
3050
d460f660
SM
30512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3052
3053 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3054 the info parameter.
3055 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3056
ab432490
SM
30572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3060 per_objfile parameter.
3061 (load_full_type_unit): Add per_objfile parameter.
3062 (read_signatured_type): Likewise.
3063 (load_full_comp_unit): Likewise.
3064 (load_cu): Likewise.
3065 (dw2_do_instantiate_symtab): Likewise.
3066 (dw2_get_file_names): Likewise.
3067 (dw2_map_symtabs_matching_filename): Update.
3068 (dw_expand_symtabs_matching_file_matcher): Update.
3069 (dw2_map_symbol_filenames): Update.
3070 (process_psymtab_comp_unit): Add per_objfile parameter.
3071 (build_type_psymtabs_1): Update.
3072 (process_skeletonless_type_unit): Update.
3073 (dwarf2_build_psymtabs_hard): Update.
3074 (load_partial_comp_unit): Add per_objfile parameter.
3075 (scan_partial_symbols): Update.
3076 (load_full_comp_unit): Add per_objfile parameter.
3077 (process_imported_unit_die): Update.
3078 (create_cus_hash_table): Update.
3079 (find_partial_die): Update.
3080 (dwarf2_read_addr_index): Update.
3081 (follow_die_offset): Update.
3082 (dwarf2_fetch_die_loc_sect_off): Update.
3083 (dwarf2_fetch_constant_bytes): Update.
3084 (dwarf2_fetch_die_type_sect_off): Update.
3085 (follow_die_sig_1): Update.
3086 (load_full_type_unit): Add per_objfile parameter.
3087 (read_signatured_type): Likewise.
3088
313bad1b
SM
30892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3092 of objfile_name.
3093
c3699833
SM
30942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3097 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3098 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3099 field.
3100 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3101 (create_cus_from_index): Update.
3102 (dwarf2_read_gdb_index): Update.
3103 (create_cus_from_debug_names): Update.
3104 (dwarf2_read_debug_names): Update.
3105 (get_abbrev_section_for_cu): Update.
3106 (create_all_comp_units): Update.
3107 (read_attribute_value): Update.
3108 (get_debug_line_section): Update.
3109 * dwarf2/index-cache.c (index_cache::store): Update.
3110 * dwarf2/index-write.c (save_gdb_index_command): Update.
3111 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3112
1859c670
SM
31132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3116 member.
3117 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3118 dwarf2_per_cu_data::per_bfd.
3119 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3120 (create_type_unit_group): Likewise.
3121 (queue_comp_unit): Remove reference to
3122 per_cu->dwarf2_per_objfile.
3123 (maybe_queue_comp_unit): Likewise.
3124 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3125 (create_cus_hash_table): Assign new field.
3126
5e22e966
SM
31272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * dwarf2/read.c: Replace
3130 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3131 dwarf2_cu->per_objfile throughout.
3132
97a1449a
SM
31332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3136 parameter, don't use per_cu->dwarf2_per_objfile.
3137 (dw2_instantiate_symtab): Likewise.
3138 (dw2_find_last_source_symtab): Update.
3139 (dw2_map_expand_apply): Update.
3140 (dw2_lookup_symbol): Update.
3141 (dw2_expand_symtabs_for_function): Update.
3142 (dw2_expand_all_symtabs): Update.
3143 (dw2_expand_symtabs_with_fullname): Update.
3144 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3145 don't use per_cu->dwarf2_per_objfile.
3146 (dw2_expand_marked_cus): Update.
3147 (dw2_find_pc_sect_compunit_symtab): Update.
3148 (dw2_debug_names_lookup_symbol): Update.
3149 (dw2_debug_names_expand_symtabs_for_function): Update.
3150 (dw2_debug_names_map_matching_symbols): Update.
3151 (dwarf2_psymtab::expand_psymtab): Update.
3152
9e021579
SM
31532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3156 <per_objfile>: New member.
3157 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3158 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3159 call to dwarf2_cu.
3160 (cutu_reader::cutu_reader): Update.
3161 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3162
ae090bdb
SM
31632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3166 struct dwarf2_per_objfile.
3167 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3168 dwarf2_per_bfd.
3169 * dwarf2/read.c (set_die_type): Update.
3170 (get_die_type_at_offset): Update.
3171
af758d11
SM
31722020-05-27 Tom Tromey <tom@tromey.com>
3173 Simon Marchi <simon.marchi@efficios.com>
3174
3175 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3176 method.
3177 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3178 get_symtab, set_symtab>: New methods.
3179 <m_symtabs>: New field.
3180 (struct dwarf2_psymtab): Derive from partial_symtab.
3181 <readin_p, get_compunit_symtab>: Declare methods.
3182 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3183 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3184 New methods.
3185 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3186 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3187 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3188 (dw2_symtab_iter_next, dw2_print_stats)
3189 (dw2_expand_symtabs_with_fullname)
3190 (dw2_expand_symtabs_matching_one)
3191 (dw_expand_symtabs_matching_file_matcher)
3192 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3193 (dw2_debug_names_iterator::next)
3194 (dw2_debug_names_map_matching_symbols)
3195 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3196 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3197 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3198 New methods.
3199 (get_compunit_symtab, process_full_comp_unit)
3200 (process_full_type_unit): Update.
3201 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3202
5989a64e
SM
32032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3204
3205 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3206 then introduce a new dwarf2_per_objfile type.
3207 <read_line_string>: Move to the new dwarf2_per_objfile type.
3208 <objfile>: Likewise.
3209 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3210 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3211 dwarf2_per_objfile->per_bfd.
3212 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3213 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3214 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3215 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3216 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3217 (dwarf2_per_objfile::locate_sections): Rename to...
3218 (dwarf2_per_bfd::locate_sections): ... this.
3219 (dwarf2_per_objfile::get_cutu): Rename to...
3220 (dwarf2_per_bfd::get_cutu): ... this.
3221 (dwarf2_per_objfile::get_cu): Rename to...
3222 (dwarf2_per_bfd::get_cu): ... this.
3223 (dwarf2_per_objfile::get_tu): Rename to...
3224 (dwarf2_per_bfd::get_tu): ... this.
3225 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3226 (dwarf2_per_bfd::allocate_per_cu): ... this.
3227 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3228 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3229 (get_gdb_index_contents_ftype): Change parameter from
3230 dwarf2_per_objfile to dwarf2_per_bfd.
3231 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3232 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3233
a50264ba
TT
32342020-05-27 Tom Tromey <tom@tromey.com>
3235 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3238 (allocate_piece_closure): Set "per_objfile" member.
3239 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3240 (locexpr_describe_location, loclist_describe_location): Use new
3241 member.
3242 * dwarf2/read.c (read_call_site_scope)
3243 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3244 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3245 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3246 handle_data_member_location): Set per_objfile member.
3247 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3248 member.
3249 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3250
d3473f0c
TT
32512020-05-27 Tom Tromey <tom@tromey.com>
3252
3253 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3254 allocate_signatured_type>: Declare new methods.
3255 <m_num_psymtabs>: New member.
3256 (struct dwarf2_per_cu_data) <index>: New member.
3257 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3258 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3259 (create_cu_from_index_list): Use allocate_per_cu.
3260 (create_signatured_type_table_from_index)
3261 (create_signatured_type_table_from_debug_names)
3262 (create_debug_type_hash_table, add_type_unit)
3263 (read_comp_units_from_section): Use allocate_signatured_type.
3264
5717c425
TT
32652020-05-27 Tom Tromey <tom@tromey.com>
3266
3267 * psymtab.c (partial_map_expand_apply)
3268 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3269 (psym_lookup_global_symbol_language)
3270 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3271 (psym_print_stats, psym_expand_symtabs_for_function)
3272 (psym_map_symbol_filenames, psym_map_matching_symbols)
3273 (psym_expand_symtabs_matching)
3274 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3275 (maintenance_check_psymtabs): Update.
3276 * psympriv.h (struct partial_symtab) <readin_p,
3277 get_compunit_symtab>: Add objfile parameter.
3278 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3279 Likewise.
3280 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3281 get_compunit_symtab>: Likewise.
3282 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3283
45940949
TT
32842020-05-27 Tom Tromey <tom@tromey.com>
3285
3286 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3287 member.
3288 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3289 (create_cu_from_index_list)
3290 (create_signatured_type_table_from_index)
3291 (create_signatured_type_table_from_debug_names)
3292 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3293 (dwarf2_create_include_psymtab)
3294 (create_debug_type_hash_table, add_type_unit)
3295 (create_type_unit_group, read_comp_units_from_section)
3296 (dwarf2_compute_name, create_cus_hash_table)
3297 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3298 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3299 obstack.
3300 (dw2_get_real_path): Likewise. Change argument to
3301 dwarf2_per_objfile.
3302
f8c6d152
LM
33032020-05-27 Luis Machado <luis.machado@linaro.org>
3304
3305 PR tdep/26000
3306 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3307 for ldrd (immediate).
3308
e98d2e6d
PW
33092020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3310
3311 * command.h: Add comment giving the name of class_tui.
3312 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3313 create the fake command for the help for class_tui.
3314
53a47a3e
TT
33152020-05-26 Tom Tromey <tromey@adacore.com>
3316
3317 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3318 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3319 (val_atr): New function.
3320 (value_val_atr): Use it.
3321 * ada-valprint.c (print_optional_low_bound): Change low bound
3322 handling for enums.
3323 (val_print_packed_array_elements): Don't call discrete_position.
3324 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3325 discrete_position for enum types.
3326 * language.c (default_print_array_index): Change type.
3327 * language.h (struct language_defn) <la_print_array_index>: Add
3328 index_type parameter, change type of index_value.
3329 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3330 (default_print_array_index): Update.
3331 * valprint.c (maybe_print_array_index): Don't call
3332 value_from_longest. Update.
3333 (value_print_array_elements): Don't call discrete_position.
3334
0bc2354b
TT
33352020-05-26 Tom Tromey <tromey@adacore.com>
3336
3337 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3338 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3339
1218a4bf
CDA
33402020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3341
3342 PR gdb/13519
3343 * avr-tdep.c (avr_integer_to_address): Return data or code
3344 address accordingly to the second 'type' argument of the
3345 function.
3346
92651b1d
MW
33472020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3348
3349 * infcmd.c, inferior.h: (construct_inferior_arguments):
3350 Moved function from here to gdbsupport/common-inferior.{h,cc}
3351
0a4f5f8c
TT
33522020-05-23 Tom Tromey <tom@tromey.com>
3353
3354 Revert commit eca1f90c:
3355 * NEWS: Remove entry for completion styling.
3356 * completer.c (_rl_completion_prefix_display_length): Move
3357 declaration later.
3358 (gdb_fnprint): Revert.
3359 (gdb_display_match_list_1): Likewise.
3360 * cli/cli-style.c (completion_prefix_style)
3361 (completion_difference_style, completion_suffix_style): Remove.
3362 (_initialize_cli_style): Revert.
3363 * cli/cli-style.h (completion_prefix_style)
3364 (completion_difference_style, completion_suffix_style): Don't
3365 declare.
3366
e08bd6c5
PA
33672020-05-24 Pedro Alves <palves@redhat.com>
3368
3369 * symtab.c (completion_list_add_name): Return boolean indication
3370 of whether the symbol matched.
3371 (completion_list_add_symbol): Don't try to remove C++ aliases if
3372 the symbol didn't match in the first place.
3373 * symtab.h (completion_list_add_name): Return bool.
3374
ceacbf6e
SM
33752020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3378 type::field.
3379
26f16254
JB
33802020-05-23 Joel Brobecker <brobecker@adacore.com>
3381
3382 GDB 9.2 released.
3383
eca1f90c
TT
33842020-05-23 Tom Tromey <tom@tromey.com>
3385
3386 * NEWS: Add entry for completion styling.
3387 * completer.c (_rl_completion_prefix_display_length): Move
3388 declaration earlier.
3389 (gdb_fnprint): Use completion_style.
3390 (gdb_display_match_list_1): Likewise.
3391 * cli/cli-style.c (completion_prefix_style)
3392 (completion_difference_style, completion_suffix_style): New
3393 globals.
3394 (_initialize_cli_style): Register new globals.
3395 * cli/cli-style.h (completion_prefix_style)
3396 (completion_difference_style, completion_suffix_style): Declare.
3397
51e2cfa2
PA
33982020-05-23 Pedro Alves <palves@redhat.com>
3399
3400 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3401 (parse_escape): Use ISDIGIT instead of isdigit.
3402 (puts_debug): Use gdb_isprint instead of isprint.
3403 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3404 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3405 ISSPACE instead of isspace.
3406 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3407 instead of isspace.
3408 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3409 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3410 instead of isxdigit and ISDIGIT instead of isdigit.
3411
80fc5e77
SM
34122020-05-22 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * gdbtypes.h (struct type) <field>: New method.
3415 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3416 or type::field.
3417
3cabb6b0
SM
34182020-05-22 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3421 (TYPE_FIELDS): Use type::fields. Change all call sites that
3422 modify the propery to use type::set_fields instead.
3423
1f704f76
SM
34242020-05-22 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3427 type::num_fields instead.
3428
5e33d5f4
SM
34292020-05-22 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3432 methods.
3433 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3434 that modify the number of fields to use type::set_num_fields
3435 instead.
3436
9392ebb3
TT
34372020-05-22 Tom Tromey <tromey@adacore.com>
3438
3439 * compile/compile-object-load.h (munmap_list_free): Don't
3440 declare.
3441
7c13f4e8
AB
34422020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3443
3444 * annotate.c (annotate_source_line): Update return type, add call
3445 to update current symtab and line.
3446 * annotate.h (annotate_source_line): Update return type, and
3447 extend header comment.
3448 * source.c (info_line_command): Check annotation_level before
3449 calling annotate_source_line.
3450 * stack.c (print_frame_info): If calling annotate_source_line
3451 returns true, then don't print any other source line information.
3452
aa370940
SM
34532020-05-21 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3456
84d53fa9
SM
34572020-05-21 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * coffread.c (patch_type): Remove NULL check before xfree.
3460 * corefile.c (set_gnutarget): Likewise.
3461 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3462 * exec.c (build_section_table): Likewise.
3463 * remote.c (remote_target::pass_signals): Likewise.
3464 * utils.c (n_spaces): Likewise.
3465 * cli/cli-script.c (document_command): Likewise.
3466 * i386-windows-tdep.c (core_process_module_section): Likewise.
3467 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3468
9d428aae
SM
34692020-05-20 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * symfile.c (reread_symbols): Clear objfile's section_offsets
3472 vector and section indices, re-compute them by calling
3473 sym_offsets.
3474
250106a7
TT
34752020-05-20 Tom Tromey <tromey@adacore.com>
3476
3477 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3478 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3479
9a0bacfb
TV
34802020-05-20 Tom de Vries <tdevries@suse.de>
3481
3482 PR symtab/25833
3483 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3484
7b958a48
AM
34852020-05-20 Alan Modra <amodra@gmail.com>
3486
3487 PR 25993
3488 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3489 bfd_set_filename.
3490 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3491 passed to bfd_set_filename.
3492 * symfile-mem.c (add_vsyscall_page): Likewise for string
3493 passed to symbol_file_add_from_memory.
3494 (symbol_file_add_from_memory): Make name param a const char* and
3495 don't strdup.
3496
c7e97679
AM
34972020-05-20 Alan Modra <amodra@gmail.com>
3498
3499 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3500 rather than accessing bfd->filename directly.
3501 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3502 and use bfd_section_name.
3503 * dwarf2/frame.c (decode_frame_entry): Likewise.
3504 * exec.c (exec_set_section_address): Likewise.
3505 * solib-aix.c (solib_aix_bfd_open): Likewise.
3506 * stap-probe.c (get_stap_base_address): Likewise.
3507 * symfile.c (reread_symbols): Likewise.
3508
563c591b
TT
35092020-05-19 Tom Tromey <tromey@adacore.com>
3510
3511 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3512
f408d82c
SM
35132020-05-19 Simon Marchi <simon.marchi@efficios.com>
3514
3515 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3516
98c59b52
PA
35172020-05-19 Pedro Alves <palves@redhat.com>
3518
3519 * NEWS (set exec-file-mismatch): Adjust entry.
3520 * exec.c: Include "build-id.h".
3521 (validate_exec_file): Try to match build IDs instead of filenames.
3522 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3523 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3524 and pass down 'warn_if_slow'.
3525 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3526 gdb_bfd_open_closure to pass it down.
3527 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3528
4111f652
PA
35292020-05-19 Pedro Alves <palves@redhat.com>
3530
3531 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3532 * target.c (target_fileio_open_1): Rename to target_fileio_open
3533 and make extern. Use bool.
3534 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3535 (target_fileio_read_alloc_1): Adjust.
3536 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3537 (target_fileio_open_warn_if_slow): Delete declaration.
3538
ad80db5b
PA
35392020-05-19 Pedro Alves <palves@redhat.com>
3540
3541 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3542 Adjust all callers.
3543
1d6ce4d3
YS
35442020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3545
3546 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3547 whether disp is negative.
3548
9005fbbb
SM
35492020-05-19 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * symfile.h (struct symfile_segment_data)
3552 <~symfile_segment_data>: Remove.
3553 <segment_info>: Change to std::vector.
3554 * symfile.c (default_symfile_segments): Update.
3555 * elfread.c (elf_symfile_segments): Update.
3556
68b888ff
SM
35572020-05-19 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3560 <segments>: New.
3561 <segment_bases, segment_sizes>: Remove.
3562 * symfile.c (default_symfile_segments): Update.
3563 * elfread.c (elf_symfile_segments): Update.
3564 * remote.c (remote_target::get_offsets): Update.
3565 * solib-target.c (solib_target_relocate_section_addresses):
3566 Update.
3567
62982abd
SM
35682020-05-19 Simon Marchi <simon.marchi@efficios.com>
3569
3570 * symfile.h (struct symfile_segment_data): Initialize fields.
3571 <~symfile_segment_data>: Add.
3572 (symfile_segment_data_up): New.
3573 (struct sym_fns) <sym_segments>: Return a
3574 symfile_segment_data_up.
3575 (default_symfile_segments): Return a symfile_segment_data_up.
3576 (free_symfile_segment_data): Remove.
3577 (get_symfile_segment_data): Return a symfile_segment_data_up.
3578 * symfile.c (default_symfile_segments): Likewise.
3579 (get_symfile_segment_data): Likewise.
3580 (free_symfile_segment_data): Remove.
3581 (symfile_find_segment_sections): Update.
3582 * elfread.c (elf_symfile_segments): Return a
3583 symfile_segment_data_up.
3584 * remote.c (remote_target::get_offsets): Update.
3585 * solib-target.c (solib_target_relocate_section_addresses):
3586 Update.
3587 * symfile-debug.c (debug_sym_segments): Return a
3588 symfile_segment_data_up.
3589
7f204339
RO
35902020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3591
e52a0f1b
RO
3592 PR build/25981
3593 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3594 Hardcode register numbers.
3595
7f204339
RO
3596 PR build/25981
3597 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3598 procfs_find_LDT_entry): Remove.
3599 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3600 procfs_find_LDT_entry): Remove.
3601 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3602 Remove.
3603
7f32a4d5
PA
36042020-05-17 Pedro Alves <palves@redhat.com>
3605 Andrew Burgess <andrew.burgess@embecosm.com>
3606 Keno Fischer <keno@juliacomputing.com>
3607
3608 PR gdb/25741
3609 * breakpoint.c (build_target_condition_list): Update comments.
3610 (build_target_command_list): Update comments and skip matching
3611 locations.
3612 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3613 a separate function. Simplify "set breakpoint auto-hw off"
3614 handling.
3615 (insert_breakpoints): Update comment.
3616 (tracepoint_locations_match): New parameter. For breakpoints,
3617 compare location types too, if the caller wants to.
3618 (handle_automatic_hardware_breakpoints): New functions.
3619 (bp_location_is_less_than): Also sort by location type and
3620 hardware breakpoint length.
3621 (update_global_location_list): Handle "set breakpoint auto-hw on"
3622 here.
3623 (update_breakpoint_locations): Ask breakpoint_locations_match to
3624 ignore location types.
3625
7d93a1e0
SM
36262020-05-16 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3629 type::name instead.
3630
d0e39ea2
SM
36312020-05-16 Simon Marchi <simon.marchi@efficios.com>
3632
3633 * gdbtypes.h (struct type) <name, set_name>: New methods.
3634 (TYPE_CODE): Use type::name. Change all call sites used to set
3635 the name to use type::set_name instead.
3636
2dab0c7b
TT
36372020-05-16 Tom Tromey <tom@tromey.com>
3638
3639 * top.c (quit_force): Update.
3640 * infrun.c (handle_no_resumed): Update.
3641 * top.h (all_uis): New function.
3642 (ALL_UIS): Remove.
3643
59f7bd8d
SM
36442020-05-16 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3647
9bf058f0
PA
36482020-05-16 Pedro Alves <palves@redhat.com>
3649
3650 * ia64-linux-nat.c
3651 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3652 Declare method.
3653 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3654
8f86ae1a
SM
36552020-05-15 Simon Marchi <simon.marchi@efficios.com>
3656
3657 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3658 (sparc64_adi_info): Likewise.
3659
d6bc0792
TT
36602020-05-15 Tom Tromey <tom@tromey.com>
3661
3662 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3663 block_objfile.
3664 (lookup_objfile_from_block): Remove.
3665 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3666 (lookup_global_symbol): Use block_objfile.
3667 * symtab.h (lookup_objfile_from_block): Don't declare.
3668 * printcmd.c (clear_dangling_display_expressions): Use
3669 block_objfile.
3670 * parse.c (operator_check_standard): Use block_objfile.
3671
8c14c3a3
TT
36722020-05-15 Tom Tromey <tom@tromey.com>
3673
3674 * language.c (language_alloc_type_symbol): Set
3675 SYMBOL_SECTION.
3676 * symtab.c (initialize_objfile_symbol): Remove.
3677 (allocate_symbol): Remove.
3678 (allocate_template_symbol): Remove.
3679 * dwarf2/read.c (fixup_go_packaging): Use "new".
3680 (new_symbol): Use "new".
3681 (read_variable): Don't call initialize_objfile_symbol. Use
3682 "new".
3683 (read_func_scope): Use "new".
3684 * xcoffread.c (process_xcoff_symbol): Don't call
3685 initialize_objfile_symbol.
3686 (SYMBOL_DUP): Remove.
3687 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3688 "new".
3689 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3690 (allocate_template_symbol): Don't declare.
3691 (struct symbol): Add copy constructor. Change defaults.
3692 * jit.c (finalize_symtab): Use "new".
3693 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3694 Use "new".
3695 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3696 (common_block_end): Use "new".
3697 * mdebugread.c (parse_symbol): Use "new".
3698 (new_symbol): Likewise.
3699
5b4a1a8d
PW
37002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701
3702 * NEWS: Mention changes to help and apropos.
3703
57b4f16e
PW
37042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3705
3706 * command.h (enum command_class): Improve comments, document
3707 that class_alias is for user-defined aliases, give the class
3708 name for each class, remove unused class_xdb.
3709 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3710 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3711 by a precise class.
3712 * infcmd.c (_initialize_infcmd): Likewise.
3713 * reverse.c (_initialize_reverse): Likewise.
3714 * stack.c (_initialize_stack): Likewise.
3715 * symfile.c (_initialize_symfile): Likewise.
3716 * tracepoint.c (_initialize_tracepoint): Likewise.
3717
7c05caf7
PW
37182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719
3720 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3721 when their aliased command is traversed.
3722 (help_cmd): Add fput_command_names_styled call to
3723 output command name and aliases when command has an alias.
3724
3b3aaacb
PW
37252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3726
3727 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3728 * cli/cli-decode.c (help_cmd_list): Declare as static,
3729 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3730 a command together with the command.
3731 (fput_command_name_styled, fput_command_names_styled): New functions.
3732 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3733 fput_command_name_styled.
3734 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3735 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3736
7aa1b46f
PW
37372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3738
3739 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3740 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3741 * command.h (cmd_show_list): Likewise.
3742 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3743 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3744
89bcba74
PW
37452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3746
3747 * unittests/command-def-selftests.c (traverse_command_structure):
3748 Verify all commands of a list have the same prefix command and
3749 that only the top cmdlist commands have a null prefix.
3750
3f4d92eb
PW
37512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3752
3753 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3754 as prefix, not one of its aliases.
3755 (set_cmd_prefix): Remove.
3756 (do_add_cmd): Centralize the setting of the prefix of a command, when
3757 command is defined after its full chain of prefix commands.
3758 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3759 (add_setshow_cmd_full): Likewise.
3760 (update_prefix_field_of_prefixed_commands): New function.
3761 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3762 update_prefix_field_of_prefixed_commands.
3763 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3764 addresses of remote_set_cmdlist and remote_show_cmdlist given
3765 as argument, not the address of an argument.
3766 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3767 * gdb/remote.c (_initialize_remote): Likewise.
3768
0605465f
PW
37692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3770
3771 * cli/cli-cmds.c (alias_command): Check for an existing alias
3772 using lookup_cmd_composition, as valid_command_p is too strict
3773 and forbids aliases that are the prefix of an existing alias
3774 or command.
3775 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3776 command is properly recognised as a valid command.
3777
58e6ac70
PW
37782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3779
3780 * unittests/help-doc-selftests.c: Rename to
3781 unittests/command-def-selftests.c
3782 * unittests/command-def-selftests.c (help_doc_tests): Update some
3783 comments.
3784 (command_structure_tests, traverse_command_structure): New namespace
3785 and function.
3786 (command_structure_invariants_tests): New function.
3787 (_initialize_command_def_selftests) Renamed from
3788 _initialize_help_doc_selftests, register command_structure_invariants
3789 selftest.
3790
a7b9ceb8
PW
37912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3792
3793 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3794 an alias of 'show'.
3795
b2188a06
JB
37962020-05-15 Joel Brobecker <brobecker@adacore.com>
3797
3798 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3799 ada_is_fixed_point_type. Update all callers.
3800 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3801 all callers.
3802 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3803 Update all callers.
3804 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3805 print_fixed_point_type. Update all callers.
3806 * ada-valprint.c (ada_value_print_num): Replace call to
3807 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3808
a51951c2
KB
38092020-05-14 Kevin Buettner <kevinb@redhat.com>
3810
3811 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3812 processors.
3813 (cpu_supports_bts): Add CV_AMD case.
3814
29d6859f
LM
38152020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3816 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * infrun.c (stop_all_threads): Collect multiple wait events at
3819 each pass.
3820
78134374
SM
38212020-05-14 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3824 type::code instead.
3825
67607e24
SM
38262020-05-14 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * gdbtypes.h (struct type) <code, set_code>: New methods.
3829 (TYPE_CODE): Use type::code. Change all call sites used to set
3830 the code to use type::set_code instead.
3831
a05575d3
TBA
38322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833 Tom de Vries <tdevries@suse.de>
3834 Pedro Alves <palves@redhat.com>
3835
3836 PR threads/25478
3837 * infrun.c (stop_all_threads): Do NOT ignore
3838 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3839 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3840 received.
3841 (handle_no_resumed): Remove code handling a live inferior with no
3842 threads.
3843 * remote.c (has_single_non_exited_thread): New.
3844 (remote_target::update_thread_list): Do not delete a thread if is
3845 the last thread of the process.
3846 * thread.c (thread_select): Call delete_exited_threads instead of
3847 prune_threads.
3848
6ad82919
TBA
38492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3850
3851 * infrun.c (stop_all_threads): Enable/disable thread events of all
3852 targets. Move a debug message denoting the end of the function
3853 into the SCOPED_EXIT block.
3854
d890404b
TBA
38552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3856
3857 * process-stratum-target.h: Include <set>.
3858 (all_non_exited_process_targets, switch_to_target_no_thread): New
3859 function declarations.
3860 * process-stratum-target.c (all_non_exited_process_targets)
3861 (switch_to_target_no_thread): New function implementations.
3862
293b3ebc
TBA
38632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864
3865 * infrun.c (handle_inferior_event): Extract out a piece of code
3866 into...
3867 (mark_non_executing_threads): ...this new function.
3868
7ca9b62a
TBA
38692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3870
3871 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3872 use.
3873
fc75c28b
TBA
38742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3875
3876 * regcache.c (regcache_read_pc_protected): New function
3877 implementation that returns 0 if the PC cannot read via
3878 'regcache_read_pc'.
3879 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3880 instead of 'regcache_read_pc'.
3881 (keep_going_pass_signal): Ditto.
3882
a89febbd
TT
38832020-05-13 Tom Tromey <tromey@adacore.com>
3884
3885 * ada-lang.c (align_value): Remove.
3886 (ada_template_to_fixed_record_type_1): Use align_up.
3887
f7e23710
TBA
38882020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3889
3890 * async-event.c: Update the copyright year.
3891 * async-event.h: Update the copyright year.
3892
02ff80c2
SM
38932020-05-12 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * objfiles.h (is_addr_in_objfile,
3896 shared_objfile_contains_address_p): Return bool.
3897 * objfile.c (is_addr_in_objfile,
3898 shared_objfile_contains_address_p): Return bool.
3899
4fd6c7e8
TT
39002020-05-11 Tom Tromey <tromey@adacore.com>
3901
3902 * cli/cli-cmds.c (info_command): Restore.
3903 (_initialize_cli_cmds): Use add_prefix_command for "info".
3904 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3905
5eb68a39
TT
39062020-05-11 Tom Tromey <tromey@adacore.com>
3907
3908 * ada-lang.c (ada_value_primitive_field): Now public.
3909 * ada-lang.h (ada_value_primitive_field): Declare.
3910 * ada-valprint.c (print_field_values): Use
3911 ada_value_primitive_field for wrapper fields.
3912
7666722f
TV
39132020-05-11 Tom de Vries <tdevries@suse.de>
3914
3915 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3916 MODULE_DOMAIN.
3917
3ee6bb11
TV
39182020-05-11 Tom de Vries <tdevries@suse.de>
3919
3920 PR symtab/25941
3921 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3922 with length 0, if not gdb-produced.
3923 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3924
43434996
TV
39252020-05-09 Tom de Vries <tdevries@suse.de>
3926
3927 PR gdb/25955
3928 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3929 calculation.
3930
2f78cffc
TT
39312020-05-09 Tom Tromey <tom@tromey.com>
3932
3933 * top.c (server_command): Now bool.
3934 * top.h (server_command): Now bool.
3935
4f7bc5ed
TT
39362020-05-08 Tom Tromey <tromey@adacore.com>
3937
3938 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3939 already being processed.
3940
8be4b118
TT
39412020-05-08 Tom Tromey <tom@tromey.com>
3942
3943 * printcmd.c (struct display) <next>: Remove.
3944 <display>: New constructor.
3945 <exp_string>: Now a std::string.
3946 <enabled_p>: Now a bool.
3947 (display_number): Move definition earlier.
3948 (displays): Rename from display_chain. Now a std::vector.
3949 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3950 (display_command): Update.
3951 (do_one_display, disable_display)
3952 (enable_disable_display_command, do_enable_disable_display):
3953 Update.
3954 (free_display): Remove.
3955 (clear_displays): Rewrite.
3956 (delete_display): Update.
3957 (map_display_numbers): Use function_view. Remove "data"
3958 parameter. Update.
3959 (do_delete_display): Remove.
3960 (undisplay_command): Update.
3961 (do_one_display, do_displays, disable_display)
3962 (info_display_command): Update.
3963 (do_enable_disable_display): Remove.
3964 (enable_disable_display_command)
3965 (clear_dangling_display_expressions): Update.
3966
94c93c35
TT
39672020-05-08 Tom Tromey <tom@tromey.com>
3968
3969 * symtab.c (set_symbol_cache_size)
3970 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3971 (maintenance_print_symbol_cache_statistics): Update.
3972 * symmisc.c (print_symbol_bcache_statistics)
3973 (print_objfile_statistics, maintenance_print_objfiles)
3974 (maintenance_info_symtabs, maintenance_check_symtabs)
3975 (maintenance_expand_symtabs, maintenance_info_line_tables):
3976 Update.
3977 * symfile-debug.c (set_debug_symfile): Update.
3978 * source.c (forget_cached_source_info): Update.
3979 * python/python.c (gdbpy_progspaces): Update.
3980 * psymtab.c (maintenance_info_psymtabs): Update.
3981 * probe.c (parse_probes): Update.
3982 * linespec.c (iterate_over_all_matching_symtabs)
3983 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3984 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3985 * exec.c (exec_target::close): Update.
3986 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3987 * breakpoint.c (print_one_breakpoint_location)
3988 (create_longjmp_master_breakpoint)
3989 (create_std_terminate_master_breakpoint): Update.
3990 * progspace.c (program_spaces): Now a std::vector.
3991 (maybe_new_address_space): Update.
3992 (add_program_space): Remove.
3993 (program_space::program_space): Update.
3994 (remove_program_space): Update.
3995 (number_of_program_spaces): Remove.
3996 (print_program_space, update_address_spaces): Update.
3997 * progspace.h (program_spaces): Change type.
3998 (ALL_PSPACES): Remove.
3999 (number_of_program_spaces): Don't declare.
4000 (struct program_space) <next>: Remove.
4001
a1fd1ac9
TT
40022020-05-08 Tom Tromey <tom@tromey.com>
4003
4004 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4005 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4006 (enable_break): Update.
4007 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4008 (frv_fdpic_find_canonical_descriptor): Update.
4009 (frv_fetch_objfile_link_map): Update.
4010 * progspace.c (program_space::free_all_objfiles): Update.
4011 (program_space::solibs): New method.
4012 * progspace.h (struct program_space) <solibs>: New method.
4013 * solist.h (master_so_list): Don't declare.
4014 (ALL_SO_LIBS): Remove.
4015 * solib.h (so_list_head): Remove.
4016 (update_solib_list): Update comment.
4017 * solib.c (master_so_list): Remove.
4018 (solib_used, update_solib_list, solib_add)
4019 (info_sharedlibrary_command, clear_solib)
4020 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4021
38eae084
TT
40222020-05-08 Tom Tromey <tom@tromey.com>
4023
4024 * extension.c (extension_languages): Now a std::array.
4025 (ALL_EXTENSION_LANGUAGES): Remove.
4026 (get_ext_lang_defn, get_ext_lang_of_file)
4027 (eval_ext_lang_from_control_command): Update.
4028 (finish_ext_lang_initialization)
4029 (auto_load_ext_lang_scripts_for_objfile)
4030 (ext_lang_type_printers::ext_lang_type_printers)
4031 (apply_ext_lang_type_printers)
4032 (ext_lang_type_printers::~ext_lang_type_printers)
4033 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4034 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4035 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4036 (get_matching_xmethod_workers, ext_lang_colorize)
4037 (ext_lang_before_prompt): Update.
4038 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4039
596dc4ad
TT
40402020-05-08 Tom Tromey <tom@tromey.com>
4041
4042 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4043 overload.
4044 <swap_string, m_string>: Remove.
4045 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4046 Update.
4047 * stabsread.c (define_symbol, read_type): Update.
4048 * linespec.c (find_linespec_symbols): Update.
4049 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4050 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4051 * dbxread.c (read_dbx_symtab): Update.
4052 * cp-support.h (cp_canonicalize_string_full)
4053 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4054 Return unique_xmalloc_ptr.
4055 * cp-support.c (inspect_type): Update.
4056 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4057 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4058 Likewise.
4059 * c-typeprint.c (print_name_maybe_canonical): Update.
4060 * break-catch-throw.c (check_status_exception_catchpoint):
4061 Update.
4062
bf4cb9be
TV
40632020-05-08 Tom de Vries <tdevries@suse.de>
4064
4065 * infrun.c (follow_fork): Copy current_line and current_symtab to
4066 child thread.
4067
a1b68f28
SM
40682020-05-07 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * async-event.c (struct async_signal_handler, struct
4071 async_event_handler): Reformat, remove typedef.
4072
98d48915
SM
40732020-05-07 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4076 access thistype->main_type->dyn_prop_list directly.
4077
7aa91313
SM
40782020-05-07 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4081 (remove_dyn_prop): Remove. Update all users to use
4082 type::remove_dyn_prop.
4083 * gdbtypes.c (remove_dyn_prop): Rename to...
4084 (type::remove_dyn_prop): ... this.
4085
5c54719c
SM
40862020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4087
4088 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4089 (add_dyn_prop): Remove. Update all users to use
4090 type::add_dyn_prop.
4091 * gdbtypes.c (add_dyn_prop): Rename to...
4092 (type::add_dyn_prop): ... this.
4093
24e99c6c
SM
40942020-05-07 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4097 (get_dyn_prop): Remove. Update all users to use
4098 type::dyn_prop.
4099 * gdbtypes.c (get_dyn_prop): Rename to...
4100 (type::dyn_prop): ... this.
4101
0d4bf016
SM
41022020-05-06 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4105
ac4a4f1c
SM
41062020-05-06 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4109 instruction, skip it if it's there.
4110
a3bbacc1
SM
41112020-05-05 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4114
c3236f84
SM
41152020-05-04 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4118 * gdbtypes.c (recursive_dump_type): Remove use of
4119 TYPE_INCOMPLETE.
4120
3b6acaee
TT
41212020-05-03 Tom Tromey <tom@tromey.com>
4122
4123 * breakpoint.c (catch_command, tcatch_command): Remove.
4124 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4125 add_show_prefix_cmd.
4126 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4127 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4128 Remove.
4129 (add_internal_problem_command): Use add_basic_prefix_cmd,
4130 add_show_prefix_cmd.
4131 * mips-tdep.c (set_mipsfpu_command): Remove.
4132 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4133 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4134 (_initialize_index_cache): Use add_basic_prefix_cmd.
4135 * memattr.c (dummy_cmd): Remove.
4136 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4137 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4138 (_initialize_tui_win): Use add_basic_prefix_cmd,
4139 add_show_prefix_cmd.
4140 * cli/cli-logging.c (set_logging_command): Remove.
4141 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4142 add_show_prefix_cmd.
4143 (show_logging_command): Remove.
4144 * target.c (target_command): Remove.
4145 (add_target): Use add_basic_prefix_cmd.
4146
a51119cd
HD
41472020-05-02 Hannes Domani <ssbssa@yahoo.de>
4148
4149 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4150
652fc23a 41512020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4152
652fc23a
PW
4153 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4154 info_command.
4155
117539e6
KR
41562020-04-30 Kamil Rytarowski <n54@gmx.com>
4157
4158 * nbsd-nat.c (nbsd_enable_proc_events)
4159 (nbsd_nat_target::post_startup_inferior): Add.
4160 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4161 (nbsd_nat_target::update_thread_list): Rewrite.
4162 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4163 "PTRACE_LWP_CREATE".
4164 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4165
102e38eb 41662020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4167
102e38eb
PW
4168 * stack.c (_initialize_stack): Remove duplicated creation
4169 of "frame" command and "f" alias.
4170
ee9d1e5f
HD
41712020-04-30 Hannes Domani <ssbssa@yahoo.de>
4172
4173 PR gdb/18706
4174 * gdbtypes.c (check_typedef): Calculate size of array of
4175 stubbed type.
4176
627c7fb8
HD
41772020-04-30 Hannes Domani <ssbssa@yahoo.de>
4178
4179 PR gdb/15559
4180 * i386-tdep.c (i386_push_dummy_call): Call
4181 i386_thiscall_push_dummy_call.
4182 (i386_thiscall_push_dummy_call): New function.
4183 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4184 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4185 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4186
ffc2844e
SM
41872020-04-29 Simon Marchi <simon.marchi@efficios.com>
4188
4189 * gdbarch.sh (do_read): Add shellcheck disable directive for
4190 warning SC2162.
4191
1207375d
SM
41922020-04-29 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4195 "referenced but not assigned" warning.
4196
9fdb2916
SM
41972020-04-29 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * gdbarch.sh: Remove code that sets fallbackdefault.
4200
759cea5e
SM
42012020-04-29 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * gdbarch.sh: Use shell operators && and || instead of
4204 -a and -o.
4205
cb02ab24
SM
42062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * gdbarch.sh: Use $(...) instead of `...`.
4209
a6fc5ffc
SM
42102020-04-29 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * gdbarch.sh: Use double quotes around variables.
4213
8d113d13
SM
42142020-04-29 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * gdbarch.sh: Use %s with printf, instead of variables in the
4217 format string.
4218
ed6acedd
TT
42192020-04-29 Tom Tromey <tromey@adacore.com>
4220
4221 PR ada/25875:
4222 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4223 type fields here.
4224 (read_enumeration_type): Call
4225 update_enumeration_type_from_children later. Update comments.
4226 (process_enumeration_scope): Don't create type fields.
4227
b68b1b58
KR
42282020-04-29 Kamil Rytarowski <n54@gmx.com>
4229
4230 * nbsd-tdep.c: Include "xml-syscall.h".
4231 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4232
f94b2e03
KR
42332020-04-29 Kamil Rytarowski <n54@gmx.com>
4234
4235 * nbsd-nat.c: Include "sys/wait.h".
4236 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4237 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4238 (nbsd_nat_target::remove_exec_catchpoint)
4239 (nbsd_nat_target::set_syscall_catchpoint): Add.
4240 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4241 (nbsd_nat_target::insert_exec_catchpoint)
4242 (nbsd_nat_target::remove_exec_catchpoint)
4243 (nbsd_nat_target::set_syscall_catchpoint): Add.
4244 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4245 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4246 `nbsd_get_syscall_number'.
4247
fc49bc72
TT
42482020-04-29 Tom Tromey <tom@tromey.com>
4249
4250 * stack.c (print_block_frame_labels): Remove.
4251
d642b692
HD
42522020-04-29 Hannes Domani <ssbssa@yahoo.de>
4253
4254 PR gdb/17320
4255 * ada-valprint.c (val_print_packed_array_elements): Move array
4256 end bracket to new line.
4257 (ada_val_print_string): Remove extra spaces before first array
4258 element.
4259 * c-valprint.c (c_value_print_array): Likewise.
4260 * m2-valprint.c (m2_print_array_contents): Likewise.
4261 (m2_value_print_inner): Likewise.
4262 * p-valprint.c (pascal_value_print_inner): Likewise.
4263 * valprint.c (generic_val_print_array): Likewise.
4264 (value_print_array_elements): Move first array element and array
4265 end bracket to new line.
4266
ea90f227
TV
42672020-04-29 Tom de Vries <tdevries@suse.de>
4268
4269 PR symtab/25889
4270 * linespec.c (find_method): Fix ix calculation.
4271
4498ef4f
KR
42722020-04-28 Kamil Rytarowski <n54@gmx.com>
4273
4274 * syscalls/update-netbsd.sh: New file.
4275 * syscalls/netbsd.xml: Regenerate.
4276 * data-directory/Makefile.in: Register `netbsd.xml' in
4277 `SYSCALLS_FILES'.
4278
a55e30b5
SM
42792020-04-28 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * syscalls/update-freebsd.sh: Add double quotes.
4282
2b2fbab8
TT
42832020-04-28 Tom Tromey <tom@tromey.com>
4284
4285 * NEWS: Update.
4286 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4287 (cmdpy_init): Allow class_tui.
4288
a65189c9
TV
42892020-04-28 Mark Williams <mark@myosotissp.com>
4290
4291 PR gdb/24480
4292 * dwarf2read.c: Add missing assingments to list_in_scope when
4293 start_symtab was already called.
4294
1b95cdb7
SM
42952020-04-28 Simon Marchi <simon.marchi@efficios.com>
4296
4297 PR gdb/25881
4298 * dwarf2/read.c (offset_map_type): Use
4299 gdb:hash_enum<sect_offset> as hash function.
4300
15cd93d0
TV
43012020-04-28 Tom de Vries <tdevries@suse.de>
4302
4303 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4304 with DW_AT_signature.
4305
1eb39914
SM
43062020-04-27 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * configure.ac: Remove check for fs_base/gs_base in
4309 user_regs_struct.
4310 * configure: Re-generate.
4311 * config.in: Re-generate.
4312 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4313 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4314 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4315
991a3e2e
LM
43162020-04-27 Luis Machado <luis.machado@linaro.org>
4317
4318 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4319 problematic inline frame unwinding situation.
4320 * frame.c (frame_id_computed_p): New function.
4321 * frame.h (frame_id_computed_p): New prototype.
4322
361ba0e8
TT
43232020-04-26 Tom Tromey <tom@tromey.com>
4324
4325 * command.h (enum command_class) <class_pseudo>: Remove.
4326
bc3609fd
PW
43272020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4328
4329 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4330 and whitespace.
4331
b9771db7
KR
43322020-04-25 Kamil Rytarowski <n54@gmx.com>
4333
ec16513e
SM
4334 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4335 `PT_GET_PROCESS_STATE' block.
b9771db7 4336
7151c1af
TT
43372020-04-24 Tom Tromey <tom@tromey.com>
4338
4339 * symtab.h (symbol_get_demangled_name): Don't declare.
4340 * symtab.c (symbol_get_demangled_name): Remove.
4341 (general_symbol_info::natural_name)
4342 (general_symbol_info::demangled_name): Update.
4343
906bb4c5
TT
43442020-04-24 Tom Tromey <tom@tromey.com>
4345
4346 PR rust/25025:
4347 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4348
bcfe6157
TT
43492020-04-24 Tom Tromey <tom@tromey.com>
4350
4351 PR symtab/12707:
4352 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4353 exists.
4354 (new_symbol): Likewise.
4355 * compile/compile-object-load.c (get_out_value_type): Use
4356 symbol_matches_search_name.
4357
f049a313
TT
43582020-04-24 Tom Tromey <tom@tromey.com>
4359
4360 * dwarf2/read.c (add_partial_symbol): Do not call
4361 compute_and_set_names.
4362
76e288d1
TT
43632020-04-24 Tom Tromey <tom@tromey.com>
4364
4365 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4366 overload.
4367
2467f4f6
TT
43682020-04-24 Tom Tromey <tom@tromey.com>
4369
4370 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4371 (add_psymbol_to_list): New overload. Make old overload call new
4372 one.
4373 * psympriv.h (add_psymbol_to_list): New overload.
4374
e61108c9
TT
43752020-04-24 Tom Tromey <tom@tromey.com>
4376
4377 * dwarf2/read.c (partial_die_info::read) <case
4378 DW_AT_linkage_name>: Use value_as_string.
4379 (dwarf2_string_attr): Use value_as_string.
4380 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4381 method.
4382 * dwarf2/attribute.c (attribute::value_as_string): New method.
4383
8c87a452
TT
43842020-04-24 Tom Tromey <tom@tromey.com>
4385
4386 * symtab.c (general_symbol_info::natural_name)
4387 (general_symbol_info::demangled_name): Check for language_rust.
4388
787de330
TT
43892020-04-24 Tom Tromey <tom@tromey.com>
4390
4391 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4392 (dwarf2_physname): ... from here.
4393 (partial_die_info::read): Add Rust "{" hack.
4394
ff985671
TT
43952020-04-24 Tom Tromey <tom@tromey.com>
4396
4397 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4398 method.
4399 (symbol_set_demangled_name): Don't declare.
4400 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4401 symbol_set_demangled_name.
4402 (general_symbol_info::set_language)
4403 (general_symbol_info::compute_and_set_names): Update.
4404 * minsyms.c (minimal_symbol_reader::install): Update.
4405 * dwarf2/read.c (new_symbol): Update.
4406
1acda803
TT
44072020-04-24 Tom Tromey <tromey@adacore.com>
4408
4409 PR python/23662:
4410 * python/py-type.c (convert_field): Handle
4411 FIELD_LOC_KIND_DWARF_BLOCK.
4412 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4413 (typy_get_dynamic): Nw function.
4414 (type_object_getset): Add "dynamic".
4415 * NEWS: Add entry.
4416
d656f129
TT
44172020-04-24 Tom Tromey <tromey@adacore.com>
4418
4419 * ada-typeprint.c (print_choices, print_variant_part)
4420 (print_record_field_types_dynamic): New functions.
4421 (print_record_field_types): Use print_record_field_types_dynamic.
4422
7d79de9a
TT
44232020-04-24 Tom Tromey <tromey@adacore.com>
4424
4425 * dwarf2/read.c (handle_data_member_location): New overload.
4426 (dwarf2_add_field): Use it.
4427 (decode_locdesc): Add "computed" parameter. Update comment.
4428 * gdbtypes.c (is_dynamic_type_internal): Also look for
4429 FIELD_LOC_KIND_DWARF_BLOCK.
4430 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4431 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4432 virtual base classes.
4433 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4434 FIELD_LOC_KIND_DWARF_BLOCK.
4435
f8e89861
TT
44362020-04-24 Tom Tromey <tromey@adacore.com>
4437
4438 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4439 * gdbtypes.c (is_dynamic_type_internal): Check
4440 TYPE_HAS_DYNAMIC_LENGTH.
4441 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4442 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4443 New macros.
4444 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4445 constant.
4446
9c6a1327
TT
44472020-04-24 Tom Tromey <tromey@adacore.com>
4448
4449 * dwarf2/read.c (struct variant_field): Rewrite.
4450 (struct variant_part_builder): New.
4451 (struct nextfield): Remove "variant" field. Add "offset".
4452 (struct field_info): Add "current_variant_part" and
4453 "variant_parts".
4454 (alloc_discriminant_info): Remove.
4455 (alloc_rust_variant): New function.
4456 (quirk_rust_enum): Update.
4457 (dwarf2_add_field): Set "offset" member. Don't handle
4458 DW_TAG_variant_part.
4459 (offset_map_type): New typedef.
4460 (convert_variant_range, create_one_variant)
4461 (create_one_variant_part, create_variant_parts)
4462 (add_variant_property): New functions.
4463 (dwarf2_attach_fields_to_type): Call add_variant_property.
4464 (read_structure_type): Don't handle DW_TAG_variant_part.
4465 (handle_variant_part, handle_variant): New functions.
4466 (handle_struct_member_die): Use them.
4467 (process_structure_scope): Don't handle variant parts.
4468 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4469 (struct discriminant_info): Remove.
4470 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4471 (struct main_type) <flag_discriminated_union>: Remove.
4472 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4473 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4474 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4475 Update.
4476 * valops.c (value_union_variant): Remove.
4477 * value.h (value_union_variant): Don't declare.
4478
b249d2c2
TT
44792020-04-24 Tom Tromey <tromey@adacore.com>
4480
4481 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4482 (ada_value_primitive_packed_val): Update.
4483 * ada-valprint.c (ada_value_print_1): Update.
4484 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4485 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4486 just an address. Use evaluate_for_locexpr_baton.
4487 (dwarf2_evaluate_property): Update.
4488 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4489 array_view.
4490 * findvar.c (default_read_var_value): Update.
4491 * gdbtypes.c (compute_variant_fields_inner)
4492 (resolve_dynamic_type_internal): Update.
4493 (resolve_dynamic_type): Change type of valaddr parameter.
4494 * gdbtypes.h (resolve_dynamic_type): Update.
4495 * valarith.c (value_subscripted_rvalue): Update.
4496 * value.c (value_from_contents_and_address): Update.
4497
61122aa9
TT
44982020-04-24 Tom Tromey <tromey@adacore.com>
4499
4500 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4501 "push_initial_value" parameter.
4502 (dwarf2_evaluate_property): Likewise.
4503 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4504
ef83a141
TT
45052020-04-24 Tom Tromey <tromey@adacore.com>
4506
4507 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4508 (variant::matches, compute_variant_fields_recurse)
4509 (compute_variant_fields_inner, compute_variant_fields): New
4510 functions.
4511 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4512 Use resolved_type after type is made.
4513 (operator==): Add new cases.
4514 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4515 (struct discriminant_range, struct variant, struct variant_part):
4516 New.
4517 (union dynamic_prop_data) <variant_parts, original_type>: New
4518 members.
4519 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4520 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4521 constants.
4522 * value.c (unpack_bits_as_long): Now public.
4523 * value.h (unpack_bits_as_long): Declare.
4524
675127ec
TT
45252020-04-24 Tom Tromey <tromey@adacore.com>
4526
4527 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4528 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4529
9852ceef
HD
45302020-04-24 Hannes Domani <ssbssa@yahoo.de>
4531
4532 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4533
7632c6ce
KR
45342020-04-24 Kamil Rytarowski <n54@gmx.com>
4535
4536 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4537 (remove_fork_catchpoint, post_startup_inferior)
4538 (post_attach): Move...
4539 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4540 (remove_fork_catchpoint, post_startup_inferior)
4541 (post_attach): ...here.
4542 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4543 (remove_fork_catchpoint, post_startup_inferior)
4544 (post_attach): Move...
4545 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4546 (remove_fork_catchpoint, post_startup_inferior)
4547 (post_attach): ...here.
4548
7be2bb4f
TT
45492020-04-24 Tom Tromey <tromey@adacore.com>
4550
4551 * nat/windows-nat.h (struct windows_thread_info)
4552 <pc_adjusted>: New member.
4553 * windows-nat.c (windows_fetch_one_register): Check
4554 pc_adjusted.
4555 (windows_nat_target::get_windows_debug_event)
4556 (windows_nat_target::wait): Set pc_adjusted.
4557
f80cb3b4
TV
45582020-04-24 Tom de Vries <tdevries@suse.de>
4559
4560 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4561 Run gdb-add-index inside temp dir.
4562
29514b87
TT
45632020-04-23 Tom Tromey <tromey@adacore.com>
4564
4565 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4566 in loop.
4567
5939967b
LM
45682020-04-23 Luis Machado <luis.machado@linaro.org>
4569
4570 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4571 get_frame_register instead of gdbarch_unwind_pc.
4572
70bc38f5
TV
45732020-04-23 Tom de Vries <tdevries@suse.de>
4574
4575 * symtab.c (lookup_global_symbol): Prefer def over decl.
4576
de82891c
TV
45772020-04-23 Tom de Vries <tdevries@suse.de>
4578
4579 PR symtab/25807
4580 * block.c (best_symbol, better_symbol): Promote to external.
4581 * block.h (best_symbol, better_symbol): Declare.
4582 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4583 decl.
4584
ecc6c606
TT
45852020-04-23 Tom Tromey <tromey@adacore.com>
4586
4587 PR ada/25837:
4588 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4589 "const char *", not a "const std::string &".
4590 <name_and_matcher::operator==>: Update.
4591 * unittests/lookup_name_info-selftests.c: Change type of
4592 "result".
4593
740480b8
TT
45942020-04-23 Tom Tromey <tom@tromey.com>
4595
4596 * inferior.h (iterate_over_inferiors): Don't declare.
4597 * inferior.c (iterate_over_inferiors): Remove.
4598 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4599 Remove.
4600 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4601 use iterate_over_inferiors.
4602 (darwin_resume_inferior_it)
4603 (struct resume_inferior_threads_param)
4604 (darwin_resume_inferior_threads_it): Remove.
4605 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4606
ae3ab1f0
TV
46072020-04-23 Tom de Vries <tdevries@suse.de>
4608
4609 * blockframe.c (find_pc_partial_function): Use
4610 find_pc_sect_compunit_symtab rather than
4611 objfile->sf->qf->find_pc_sect_compunit_symtab.
4612
317d2668
TV
46132020-04-22 Tom de Vries <tdevries@suse.de>
4614
4615 PR symtab/25764
4616 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4617 in psymtabs.
4618
eea9e357
TV
46192020-04-22 Tom de Vries <tdevries@suse.de>
4620
4621 PR symtab/25801
4622 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4623 symtabs.
4624
3d5afab3
TV
46252020-04-22 Tom de Vries <tdevries@suse.de>
4626
4627 PR symtab/25700
4628 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4629 CU if already created.
4630
d43b7a2d
TBA
46312020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4632
4633 * infrun.c (displaced_step_fixup): Switch to the event_thread
4634 before calling displaced_step_restore, not after.
4635
d89edf9b
MM
46362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4637
4638 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4639 its inferior is not recorded by us.
4640 (record_btrace_target_open): Replace call to
4641 all_non_exited_threads () with call to current_inferior
4642 ()->non_exited_threads ().
4643 (record_btrace_target::stop_recording): Likewise.
4644 (record_btrace_target::close): Likewise.
4645 (record_btrace_target::wait): Likewise.
4646 (record_btrace_target::record_stop_replaying): Likewise.
4647
5897fd49
MM
46482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4649
4650 * btrace.c (btrace_enable): Throw an error on double enables and
4651 when enabling recording fails.
4652 (btrace_disable): Throw an error if the thread is not recorded.
4653
1a476b6d
MM
46542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4655
4656 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4657 request if we do not have a thread_info.
4658
4778a5f8
TV
46592020-04-21 Tom de Vries <tdevries@suse.de>
4660
4661 PR gdb/25471
4662 * thread.c
4663 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4664 exception in get_frame_id.
4665
0fa7617d
TT
46662020-04-20 Tom Tromey <tromey@adacore.com>
4667
4668 * python/python.c (struct gdbpy_event): Mark move constructor as
4669 noexcept.
4670 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4671 constructor as noexcept.
4672 * completer.h (struct completion_result): Mark move constructor as
4673 noexcept.
4674 * completer.c (completion_result::completion_result): Use
4675 initialization style. Don't call reset_match_list.
4676
ad23bda0
MS
46772020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4678
4679 * MAINTAINERS (Write After Approval): Add myself.
4680
45e1f031
TT
46812020-04-18 Tom Tromey <tom@tromey.com>
4682
4683 * windows-tdep.c (init_w32_command_list)
4684 (w32_prefix_command_valid): Restore.
4685 (_initialize_windows_tdep): Call init_w32_command_list.
4686
08feed99
TT
46872020-04-18 Tom Tromey <tom@tromey.com>
4688
4689 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4690 * value.c (value_fn_field): Update.
4691 * valops.c (find_function_in_inferior)
4692 (value_allocate_space_in_inferior): Update.
4693 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4694 Update.
4695 * tui/tui-source.c (tui_source_window::set_contents): Update.
4696 * symtab.c (lookup_global_or_static_symbol)
4697 (find_function_start_sal_1, skip_prologue_sal)
4698 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4699 * symmisc.c (dump_msymbols, dump_symtab_1)
4700 (maintenance_print_one_line_table): Update.
4701 * symfile.c (init_entry_point_info, section_is_mapped)
4702 (list_overlays_command, simple_read_overlay_table)
4703 (simple_overlay_update_1): Update.
4704 * stap-probe.c (handle_stap_probe): Update.
4705 * stabsread.c (dbx_init_float_type, define_symbol)
4706 (read_one_struct_field, read_enum_type, read_range_type): Update.
4707 * source.c (info_line_command): Update.
4708 * python/python.c (gdbpy_source_objfile_script)
4709 (gdbpy_execute_objfile_script): Update.
4710 * python/py-type.c (save_objfile_types): Update.
4711 * python/py-objfile.c (py_free_objfile): Update.
4712 * python/py-inferior.c (python_new_objfile): Update.
4713 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4714 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4715 (maintenance_check_psymtabs): Update.
4716 * printcmd.c (info_address_command): Update.
4717 * objfiles.h (struct objfile) <arch>: New method, from
4718 get_objfile_arch.
4719 (get_objfile_arch): Don't declare.
4720 * objfiles.c (get_objfile_arch): Remove.
4721 (filter_overlapping_sections): Update.
4722 * minsyms.c (msymbol_is_function): Update.
4723 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4724 (output_nondebug_symbol): Update.
4725 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4726 (mdebug_expand_psymtab): Update.
4727 * machoread.c (macho_add_oso_symfile): Update.
4728 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4729 Update.
4730 * linux-fork.c (checkpoint_command): Update.
4731 * linespec.c (convert_linespec_to_sals): Update.
4732 * jit.c (finalize_symtab): Update.
4733 * infrun.c (insert_exception_resume_from_probe): Update.
4734 * ia64-tdep.c (ia64_find_unwind_table): Update.
4735 * hppa-tdep.c (internalize_unwinds): Update.
4736 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4737 Update.
4738 * gcore.c (call_target_sbrk): Update.
4739 * elfread.c (record_minimal_symbol, elf_symtab_read)
4740 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4741 (elf_gnu_ifunc_resolve_by_got): Update.
4742 * dwarf2/read.c (create_addrmap_from_index)
4743 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4744 (read_debug_names_from_section)
4745 (process_psymtab_comp_unit_reader, add_partial_symbol)
4746 (add_partial_subprogram, process_full_comp_unit)
4747 (read_file_scope, read_func_scope, read_lexical_block_scope)
4748 (read_call_site_scope, dwarf2_ranges_read)
4749 (dwarf2_record_block_ranges, dwarf2_add_field)
4750 (mark_common_block_symbol_computed, read_tag_pointer_type)
4751 (read_tag_string_type, dwarf2_init_float_type)
4752 (dwarf2_init_complex_target_type, read_base_type)
4753 (partial_die_info::read, partial_die_info::read)
4754 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4755 (dwarf2_fetch_die_loc_sect_off): Update.
4756 * dwarf2/loc.c (dwarf2_find_location_expression)
4757 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4758 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4759 (dwarf2_loc_desc_get_symbol_read_needs)
4760 (locexpr_describe_location_piece, locexpr_describe_location_1)
4761 (loclist_describe_location): Update.
4762 * dwarf2/index-write.c (write_debug_names): Update.
4763 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4764 * dtrace-probe.c (dtrace_process_dof): Update.
4765 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4766 (process_one_symbol): Update.
4767 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4768 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4769 (coff_read_enum_type): Update.
4770 * cli/cli-cmds.c (edit_command, list_command): Update.
4771 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4772 * breakpoint.c (create_overlay_event_breakpoint)
4773 (create_longjmp_master_breakpoint)
4774 (create_std_terminate_master_breakpoint)
4775 (create_exception_master_breakpoint, get_sal_arch): Update.
4776 * block.c (block_gdbarch): Update.
4777 * annotate.c (annotate_source_line): Update.
4778
0743fc83
TT
47792020-04-17 Tom Tromey <tromey@adacore.com>
4780
4781 * auto-load.c (show_auto_load_cmd): Remove.
4782 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4783 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4784 (maintenance_print_arc_command): Remove.
4785 * tui/tui-win.c (tui_command): Remove.
4786 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4787 * tui/tui-layout.c (tui_layout_command): Remove.
4788 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4789 * python/python.c (user_set_python, user_show_python): Remove.
4790 (_initialize_python): Use add_basic_prefix_cmd,
4791 add_show_prefix_cmd.
4792 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4793 (install_gdb_commands): Use add_basic_prefix_cmd,
4794 add_show_prefix_cmd.
4795 (info_guile_command): Remove.
4796 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4797 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4798 add_show_prefix_cmd.
4799 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4800 Remove do_set and do_show parameters.
4801 * cli/cli-style.c (set_style, show_style): Remove.
4802 (_initialize_cli_style): Use add_basic_prefix_cmd,
4803 add_show_prefix_cmd.
4804 (cli_style_option::add_setshow_commands): Remove do_set and
4805 do_show parameters.
4806 (cli_style_option::add_setshow_commands): Use
4807 add_basic_prefix_cmd, add_show_prefix_cmd.
4808 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4809 (set_style_name): Remove.
4810 * cli/cli-dump.c (dump_command, append_command): Remove.
4811 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4812 (tekhex_dump_command, binary_dump_command)
4813 (binary_append_command): Remove.
4814 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4815 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4816 (init_w32_command_list): Remove; move into ...
4817 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4818 * valprint.c (set_print, show_print, set_print_raw)
4819 (show_print_raw): Remove.
4820 (_initialize_valprint): Use add_basic_prefix_cmd,
4821 add_show_prefix_cmd.
4822 * typeprint.c (set_print_type, show_print_type): Remove.
4823 (_initialize_typeprint): Use add_basic_prefix_cmd,
4824 add_show_prefix_cmd.
4825 * record.c (set_record_command, show_record_command): Remove.
4826 (_initialize_record): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4829 add_show_prefix_cmd.
4830 (info_command, show_command, set_debug, show_debug): Remove.
4831 * top.h (set_history, show_history): Don't declare.
4832 * top.c (set_history, show_history): Remove.
4833 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4834 (unset_tdesc_cmd): Remove.
4835 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4836 add_show_prefix_cmd.
4837 * symtab.c (info_module_command): Remove.
4838 (_initialize_symtab): Use add_basic_prefix_cmd.
4839 * symfile.c (overlay_command): Remove.
4840 (_initialize_symfile): Use add_basic_prefix_cmd.
4841 * sparc64-tdep.c (info_adi_command): Remove.
4842 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4843 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4844 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4845 add_show_prefix_cmd.
4846 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4847 (_initialize_serial): Use add_basic_prefix_cmd,
4848 add_show_prefix_cmd.
4849 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4850 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4853 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4854 add_show_prefix_cmd.
4855 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4856 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4857 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4858 add_show_prefix_cmd.
4859 * remote.c (remote_command, set_remote_cmd): Remove.
4860 (_initialize_remote): Use add_basic_prefix_cmd.
4861 * record-full.c (set_record_full_command)
4862 (show_record_full_command): Remove.
4863 (_initialize_record_full): Use add_basic_prefix_cmd,
4864 add_show_prefix_cmd.
4865 * record-btrace.c (cmd_set_record_btrace)
4866 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4867 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4868 (cmd_show_record_btrace_pt): Remove.
4869 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4870 add_show_prefix_cmd.
4871 * ravenscar-thread.c (set_ravenscar_command)
4872 (show_ravenscar_command): Remove.
4873 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4874 add_show_prefix_cmd.
4875 * mips-tdep.c (show_mips_command, set_mips_command)
4876 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4877 add_show_prefix_cmd.
4878 * maint.c (maintenance_command, maintenance_info_command)
4879 (maintenance_check_command, maintenance_print_command)
4880 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4881 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4882 add_show_prefix_cmd.
4883 (show_per_command_cmd): Remove.
4884 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4885 Remove.
4886 (maintenance_show_test_settings_cmd): Remove.
4887 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4888 add_show_prefix_cmd.
4889 * maint-test-options.c (maintenance_test_options_command):
4890 Remove.
4891 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4892 * macrocmd.c (macro_command): Remove
4893 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4894 * language.c (set_check, show_check): Remove.
4895 (_initialize_language): Use add_basic_prefix_cmd,
4896 add_show_prefix_cmd.
4897 * infcmd.c (unset_command): Remove.
4898 (_initialize_infcmd): Use add_basic_prefix_cmd.
4899 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4900 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4901 add_show_prefix_cmd.
4902 * go32-nat.c (go32_info_dos_command): Remove.
4903 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4904 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4905 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4906 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4907 (_initialize_frame): Use add_basic_prefix_cmd,
4908 add_show_prefix_cmd.
4909 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4910 (_initialize_dcache): Use add_basic_prefix_cmd,
4911 add_show_prefix_cmd.
4912 * cp-support.c (maint_cplus_command): Remove.
4913 (_initialize_cp_support): Use add_basic_prefix_cmd.
4914 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4915 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4916 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4917 add_basic_prefix_cmd, add_show_prefix_cmd.
4918 * breakpoint.c (save_command): Remove.
4919 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4920 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4921 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4922 add_show_prefix_cmd.
4923 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4924 (set_ada_command, show_ada_command): Remove.
4925 (_initialize_ada_language): Use add_basic_prefix_cmd,
4926 add_show_prefix_cmd.
4927 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4928
3557f442
KR
49292020-04-16 Kamil Rytarowski <n54@gmx.com>
4930
4931 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4932 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4933
16197208
SM
49342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4935
4936 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4937 warning messages.
4938
00ac85d3
SM
49392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4940
4941 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4942 import table is not at beginning of .idata section.
4943
381ce63f
PA
49442020-04-16 Pedro Alves <palves@redhat.com>
4945
4946 * inferior.c (delete_inferior): Use delete operator directly
4947 instead of delete_program_space.
4948 * progspace.c (add_program_space): New, factored out from
4949 program_space::program_space.
4950 (remove_program_space): New, factored out from
4951 delete_program_space.
4952 (program_space::program_space): Remove intro comment. Rewrite.
4953 (program_space::~program_space): Remove intro comment. Call
4954 remove_program_space.
4955 (delete_program_space): Delete.
4956 * progspace.h (program_space::program_space): Make explicit. Move
4957 intro comment here, adjusted.
4958 (program_space::~program_space): Move intro comment here,
4959 adjusted.
4960 (delete_program_space): Remove.
4961
a010605f
TT
49622020-04-16 Tom Tromey <tromey@adacore.com>
4963
4964 * windows-nat.c (windows_nat::handle_access_violation): New
4965 function.
4966 * nat/windows-nat.h (handle_access_violation): Declare.
4967 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4968 windows-nat.c. Call handle_access_violation.
4969
efba5c23
TV
49702020-04-16 Tom de Vries <tdevries@suse.de>
4971
4972 PR symtab/25791
4973 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4974 CUs without psymtab.
4975
97ed802d
KB
49762020-04-16 Kevin Buettner <kevinb@redhat.com>
4977
4978 * python/python.c (do_start_initialization): Don't call
4979 PyEval_InitThreads for Python 3.9 and beyond.
4980
c7d64809
KR
49812020-04-15 Kamil Rytarowski <n54@gmx.com>
4982
4983 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4984 thread functions.
4985 (obsd_nat_target::wait): Likewise.
4986
ce127a96
TT
49872020-04-15 Tom Tromey <tromey@adacore.com>
4988
4989 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4990 (DEBUG_EXCEPT): Use debug_printf.
4991
99f1bc6a
AB
49922020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4993
4994 * completer.c (class completion_tracker::completion_hash_entry)
4995 <hash_name>: New member function.
4996 (completion_tracker::discard_completions): New callback to hash a
4997 completion_hash_entry, pass this to htab_create_alloc.
4998
a0e9b532
JT
49992016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5000
5001 * windows-nat.c (windows_make_so): Warn rather than stopping with
5002 an error if realpath() fails.
5003
06ca5dd4
KR
50042020-04-14 Kamil Rytarowski <n54@gmx.com>
5005
5006 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5007 (nbsd_nat_target::info_proc): Add do_status.
5008
194d088f
TV
50092020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5010 Tom de Vries <tdevries@suse.de>
5011
5012 PR symtab/25718
5013 * psympriv.h (struct partial_symtab::read_symtab)
5014 (struct partial_symtab::expand_psymtab)
5015 (struct partial_symtab::read_dependencies): Update comments.
5016 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5017 read_symtab for includer.
5018 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5019 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5020 (struct dwarf2_include_psymtab::m_readin): Remove.
5021 (struct dwarf2_include_psymtab::includer): New member function.
5022 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5023
c1a66c06
TV
50242020-04-14 Tom de Vries <tdevries@suse.de>
5025
5026 PR symtab/25720
5027 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5028 with NULL symbol_matcher and lookup_name.
5029 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5030 and lookup_name.
5031 * dwarf2/read.c (dw2_expand_symtabs_matching)
5032 (dw2_debug_names_expand_symtabs_matching): Same.
5033 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5034 Make lookup_name a pointer. Update comment.
5035 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5036 lookup_name being a pointer.
5037 * symfile.c (expand_symtabs_matching): Same.
5038 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5039 * linespec.c (iterate_over_all_matching_symtabs): Same.
5040
400b5eca
TT
50412020-04-13 Tom Tromey <tom@tromey.com>
5042
5043 * run-on-main-thread.c: Update include.
5044 * unittests/main-thread-selftests.c: Update include.
5045 * tui/tui-win.c: Update include.
5046 * tui/tui-io.c: Update include.
5047 * tui/tui-interp.c: Update include.
5048 * tui/tui-hooks.c: Update include.
5049 * top.h: Update include.
5050 * top.c: Update include.
5051 * ser-base.c: Update include.
5052 * remote.c: Update include.
5053 * remote-notif.c: Update include.
5054 * remote-fileio.c: Update include.
5055 * record-full.c: Update include.
5056 * record-btrace.c: Update include.
5057 * python/python.c: Update include.
5058 * posix-hdep.c: Update include.
5059 * mingw-hdep.c: Update include.
5060 * mi/mi-main.c: Update include.
5061 * mi/mi-interp.c: Update include.
5062 * main.c: Update include.
5063 * linux-nat.c: Update include.
5064 * interps.c: Update include.
5065 * infrun.c: Update include.
5066 * inf-loop.c: Update include.
5067 * event-top.c: Update include.
5068 * event-loop.c: Move to ../gdbsupport/.
5069 * event-loop.h: Move to ../gdbsupport/.
5070 * async-event.h: Update include.
5071 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5072
93b54c8e
TT
50732020-04-13 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-win.c: Include async-event.h.
5076 * remote.c: Include async-event.h.
5077 * remote-notif.c: Include async-event.h.
5078 * record-full.c: Include async-event.h.
5079 * record-btrace.c: Include async-event.h.
5080 * infrun.c: Include async-event.h.
5081 * event-top.c: Include async-event.h.
5082 * event-loop.h: Move some declarations to async-event.h.
5083 * event-loop.c: Don't include ser-event.h or top.h. Move some
5084 code to async-event.c.
5085 * async-event.h: New file.
5086 * async-event.c: New file.
5087 * Makefile.in (COMMON_SFILES): Add async-event.c.
5088 (HFILES_NO_SRCDIR): Add async-event.h.
5089
c1cd3163
TT
50902020-04-13 Tom Tromey <tom@tromey.com>
5091
5092 * utils.c (flush_streams): New function.
5093 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5094
29f2bf4f
TT
50952020-04-13 Tom Tromey <tom@tromey.com>
5096
5097 * event-loop.c (handle_file_event): Use warning, not
5098 printf_unfiltered.
5099
98029d02
TT
51002020-04-13 Tom Tromey <tom@tromey.com>
5101
5102 * event-loop.c: Include <chrono>.
5103
06cc9596
TT
51042020-04-13 Tom Tromey <tom@tromey.com>
5105
5106 * gdb_select.h: Move to ../gdbsupport/.
5107 * event-loop.c: Update include path.
5108 * top.c: Update include path.
5109 * ser-base.c: Update include path.
5110 * ui-file.c: Update include path.
5111 * ser-tcp.c: Update include path.
5112 * guile/scm-ports.c: Update include path.
5113 * posix-hdep.c: Update include path.
5114 * ser-unix.c: Update include path.
5115 * gdb_usleep.c: Update include path.
5116 * mingw-hdep.c: Update include path.
5117 * inflow.c: Update include path.
5118 * infrun.c: Update include path.
5119 * event-top.c: Update include path.
5120
8ae8e197
TT
51212020-04-13 Tom Tromey <tom@tromey.com>
5122
5123 * configure: Rebuild.
5124 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5125
58cf28e8
TT
51262020-04-13 Tom Tromey <tom@tromey.com>
5127
5128 * event-loop.h (start_event_loop): Don't declare.
5129 * event-loop.c (start_event_loop): Move...
5130 * main.c (start_event_loop): ...here. Now static.
5131
b7f999ae
SDJ
51322020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5133
5134 * MAINTAINERS: Update my email address.
5135
1085dfd4
KR
51362020-04-12 Kamil Rytarowski <n54@gmx.com>
5137
5138 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5139 IP_ALL.
5140
49d1d1f5
KR
51412020-04-12 Kamil Rytarowski <n54@gmx.com>
5142
5143 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5144 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5145
b4848d2a
KR
51462020-04-12 Kamil Rytarowski <n54@gmx.com>
5147
5148 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5149 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5150
51c133d5
KR
51512020-04-12 Kamil Rytarowski <n54@gmx.com>
5152
5153 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5154
54b8cbd0
KR
51552020-04-11 Kamil Rytarowski <n54@gmx.com>
5156
5157 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5158 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5159 (nbsd_nat_target::info_proc): New functions.
5160 * nbsd-nat.c (kinfo_get_vmmap): New function.
5161 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5162 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5163 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5164 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5165 functions.
5166 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5167 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5168 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5169 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5170 (KINFO_VME_FLAG_GROWS_DOWN): New.
5171
cf83625d
AS
51722020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5173
5174 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5175 bit shift.
5176
0c4311ab
TT
51772020-04-10 Tom Tromey <tromey@adacore.com>
5178
5179 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5180
3e65b3e9
TT
51812020-04-10 Tom Tromey <tromey@adacore.com>
5182
5183 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5184 separate debug files.
5185
13302e95
HD
51862020-04-10 Hannes Domani <ssbssa@yahoo.de>
5187
5188 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5189 Move to...
5190 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5191 ... here.
5192 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5193 Check for STATUS_WX86_BREAKPOINT.
5194 (windows_nat_target::wait): Same.
5195
bdfc1e8a
TV
51962020-04-10 Tom de Vries <tdevries@suse.de>
5197
5198 PR cli/25808
5199 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5200
f4460aec
SM
52012020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5202
5203 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5204 (Write After Approval): Remove Tom de Vries.
5205
a25198bb
BE
52062020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5207
5208 revert partially:
5209 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5210
aac66a4c
SM
5211 * buildsym.c (record_line): Fix undefined behavior and preserve
5212 lines at eof.
a25198bb 5213
206c98a6
KR
52142020-04-09 Kamil Rytarowski <n54@gmx.com>
5215
5216 * auxv.h (svr4_auxv_parse): New.
5217 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5218 and generic_auxv_parse.
5219 (svr4_auxv_parse): Add.
5220 * obsd-tdep.c: Include "auxv.h".
5221 (obsd_auxv_parse): Remove.
5222 (obsd_init_abi): Remove comment.
5223 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5224 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5225 * nbsd-tdep.c: Include "auxv.h".
5226 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5227
71fbdbaf
TT
52282020-04-08 Tom Tromey <tromey@adacore.com>
5229
5230 * nat/windows-nat.h (last_wait_event): Don't declare.
5231 (wait_for_debug_event): Update comment.
5232 * nat/windows-nat.c (last_wait_event): Now static.
5233
2c1d95e8
TT
52342020-04-08 Tom Tromey <tromey@adacore.com>
5235
5236 * windows-nat.c (wait_for_debug_event): Move to
5237 nat/windows-nat.c.
5238 * nat/windows-nat.h (wait_for_debug_event): Declare.
5239 * nat/windows-nat.c (wait_for_debug_event): Move from
5240 windows-nat.c. No longer static.
5241
d2977bc4
TT
52422020-04-08 Tom Tromey <tromey@adacore.com>
5243
5244 * windows-nat.c (get_windows_debug_event): Use
5245 fetch_pending_stop.
5246 * nat/windows-nat.h (fetch_pending_stop): Declare.
5247 * nat/windows-nat.c (fetch_pending_stop): New function.
5248
e758e19c
TT
52492020-04-08 Tom Tromey <tromey@adacore.com>
5250
5251 * windows-nat.c (windows_continue): Use matching_pending_stop and
5252 continue_last_debug_event.
5253 * nat/windows-nat.h (matching_pending_stop)
5254 (continue_last_debug_event): Declare.
5255 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5256 (matching_pending_stop, continue_last_debug_event): New
5257 functions.
5258
8d30e395
TT
52592020-04-08 Tom Tromey <tromey@adacore.com>
5260
5261 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5262 (handle_exception_result): Move to nat/windows-nat.h.
5263 (DEBUG_EXCEPTION_SIMPLE): Remove.
5264 (windows_nat::handle_ms_vc_exception): New function.
5265 (handle_exception): Move to nat/windows-nat.c.
5266 (get_windows_debug_event): Update.
5267 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5268 nat/windows-nat.c.
5269 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5270 (handle_exception_result): Move from windows-nat.c.
5271 (handle_exception): Declare.
5272 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5273 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5274 windows-nat.c.
5275
29de418d
TT
52762020-04-08 Tom Tromey <tromey@adacore.com>
5277
5278 * windows-nat.c (exception_count, event_count): Remove.
5279 (handle_exception, get_windows_debug_event)
5280 (do_initial_windows_stuff): Update.
5281
a816ba18
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (windows_nat::handle_load_dll)
5285 (windows_nat::handle_unload_dll): Rename. No longer static.
5286 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5287 Declare.
5288
a00caa12
TT
52892020-04-08 Tom Tromey <tromey@adacore.com>
5290
5291 * complaints.h (stop_whining): Declare at top-level.
5292 (complaint): Don't declare stop_whining.
5293
d41b524f
TT
52942020-04-08 Tom Tromey <tromey@adacore.com>
5295
5296 * windows-nat.c (windows_nat::handle_output_debug_string):
5297 Rename. No longer static.
5298 * nat/windows-nat.h (handle_output_debug_string): Declare.
5299
3c76026d
TT
53002020-04-08 Tom Tromey <tromey@adacore.com>
5301
5302 * windows-nat.c (current_process_handle, current_process_id)
5303 (main_thread_id, last_sig, current_event, last_wait_event)
5304 (current_windows_thread, desired_stop_thread_id, pending_stops)
5305 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5306 (display_selectors, fake_create_process)
5307 (get_windows_debug_event): Update.
5308 * nat/windows-nat.h (current_process_handle, current_process_id)
5309 (main_thread_id, last_sig, current_event, last_wait_event)
5310 (current_windows_thread, desired_stop_thread_id, pending_stops)
5311 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5312 * nat/windows-nat.c (current_process_handle, current_process_id)
5313 (main_thread_id, last_sig, current_event, last_wait_event)
5314 (current_windows_thread, desired_stop_thread_id, pending_stops)
5315 (siginfo_er): New globals. Move from windows-nat.c.
5316
9d8679cc
TT
53172020-04-08 Tom Tromey <tromey@adacore.com>
5318
5319 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5320 (handle_load_dll): Update.
5321 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5322
28688adf
TT
53232020-04-08 Tom Tromey <tromey@adacore.com>
5324
5325 * windows-nat.c (enum thread_disposition_type): Move to
5326 nat/windows-nat.h.
5327 (windows_nat::thread_rec): Rename from thread_rec. No longer
5328 static.
5329 (windows_add_thread, windows_nat_target::fetch_registers)
5330 (windows_nat_target::store_registers, handle_exception)
5331 (windows_nat_target::resume, get_windows_debug_event)
5332 (windows_nat_target::get_tib_address)
5333 (windows_nat_target::thread_name)
5334 (windows_nat_target::thread_alive): Update.
5335 * nat/windows-nat.h (enum thread_disposition_type): Move from
5336 windows-nat.c.
5337 (thread_rec): Declare.
5338
4834dad0
TT
53392020-04-08 Tom Tromey <tromey@adacore.com>
5340
5341 * windows-nat.c: Add "using namespace".
5342 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5343 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5344
65bafd5b
TT
53452020-04-08 Tom Tromey <tromey@adacore.com>
5346
5347 * nat/windows-nat.h (struct windows_thread_info): Declare
5348 destructor.
5349 * nat/windows-nat.c (~windows_thread_info): New.
5350
0a4afda3
TT
53512020-04-08 Tom Tromey <tromey@adacore.com>
5352
5353 PR gdb/22992
5354 * windows-nat.c (current_event): Update comment.
5355 (last_wait_event, desired_stop_thread_id): New globals.
5356 (struct pending_stop): New.
5357 (pending_stops): New global.
5358 (windows_nat_target) <stopped_by_sw_breakpoint>
5359 <supports_stopped_by_sw_breakpoint>: New methods.
5360 (windows_fetch_one_register): Add assertions. Adjust PC.
5361 (windows_continue): Handle pending stops. Suspend other threads
5362 when stepping. Use last_wait_event
5363 (wait_for_debug_event): New function.
5364 (get_windows_debug_event): Use wait_for_debug_event. Handle
5365 pending stops. Queue spurious stops.
5366 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5367 (windows_nat_target::kill): Use wait_for_debug_event.
5368 * nat/windows-nat.h (struct windows_thread_info)
5369 <stopped_at_software_breakpoint>: New field.
5370 * nat/windows-nat.c (windows_thread_info::resume): Clear
5371 stopped_at_software_breakpoint.
5372
8e61ebec
TT
53732020-04-08 Tom Tromey <tromey@adacore.com>
5374
5375 * windows-nat.c (enum thread_disposition_type): New.
5376 (thread_rec): Replace "get_context" parameter with "disposition";
5377 change type.
5378 (windows_add_thread, windows_nat_target::fetch_registers)
5379 (windows_nat_target::store_registers, handle_exception)
5380 (windows_nat_target::resume, get_windows_debug_event)
5381 (windows_nat_target::get_tib_address)
5382 (windows_nat_target::thread_name)
5383 (windows_nat_target::thread_alive): Update.
5384
98a03287
TT
53852020-04-08 Tom Tromey <tromey@adacore.com>
5386
5387 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5388 (windows_continue): Use windows_continue::resume.
5389 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5390 resume>: Declare new methods.
5391 * nat/windows-nat.c: New file.
5392 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5393
7c7411bc
TT
53942020-04-08 Tom Tromey <tromey@adacore.com>
5395
5396 * windows-nat.c (windows_add_thread, windows_delete_thread)
5397 (windows_nat_target::fetch_registers)
5398 (windows_nat_target::store_registers, fake_create_process)
5399 (windows_nat_target::resume, windows_nat_target::resume)
5400 (get_windows_debug_event, windows_nat_target::wait)
5401 (windows_nat_target::pid_to_str)
5402 (windows_nat_target::get_tib_address)
5403 (windows_nat_target::get_ada_task_ptid)
5404 (windows_nat_target::thread_name)
5405 (windows_nat_target::thread_alive): Use lwp, not tid.
5406
2950fdf7
TT
54072020-04-08 Tom Tromey <tromey@adacore.com>
5408
5409 * windows-nat.c (handle_exception)
5410 (windows_nat_target::thread_name): Update.
5411 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5412 <name>: Now unique_xmalloc_ptr.
5413
62fe396b
TT
54142020-04-08 Tom Tromey <tromey@adacore.com>
5415
5416 * windows-nat.c (thread_rec)
5417 (windows_nat_target::fetch_registers): Update.
5418 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5419 Update comment.
5420 <debug_registers_changed, reload_context>: Now bool.
5421
e9534bd2
TT
54222020-04-08 Tom Tromey <tromey@adacore.com>
5423
5424 * windows-nat.c (windows_add_thread): Use new.
5425 (windows_init_thread_list, windows_delete_thread): Use delete.
5426 (get_windows_debug_event): Update.
5427 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5428 destructor, and initializers.
5429
ae1f8880
TT
54302020-04-08 Tom Tromey <tromey@adacore.com>
5431
5432 * windows-nat.c (struct windows_thread_info): Remove.
5433 * nat/windows-nat.h: New file.
5434
55a1e039
TT
54352020-04-08 Tom Tromey <tromey@adacore.com>
5436
5437 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5438 (thread_rec, windows_add_thread, windows_delete_thread)
5439 (windows_continue): Update.
5440
93366324
TT
54412020-04-08 Tom Tromey <tromey@adacore.com>
5442
5443 * windows-nat.c (struct windows_thread_info): Remove typedef.
5444 (thread_head): Remove.
5445 (thread_list): New global.
5446 (thread_rec, windows_add_thread, windows_init_thread_list)
5447 (windows_delete_thread, windows_continue): Update.
5448
0f2265e2
SM
54492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 * windows-tdep.h (windows_init_abi): Add comment.
5452 (cygwin_init_abi): New declaration.
5453 * windows-tdep.c: Split signal enumeration in two, one for
5454 Windows and one for Cygwin.
5455 (windows_gdb_signal_to_target): Only deal with signal of the
5456 Windows OS ABI.
5457 (cygwin_gdb_signal_to_target): New function.
5458 (windows_init_abi): Rename to windows_init_abi_common, don't set
5459 gdb_signal_to_target gdbarch method. Add new new function with
5460 this name.
5461 (cygwin_init_abi): New function.
5462 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5463 comment. Don't call windows_init_abi.
5464 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5465 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5466 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5467 i386_windows_init_abi_common, don't call windows_init_abi. Add
5468 a new function of this name.
5469 (i386_cygwin_init_abi): New function.
5470 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5471 OS ABI Cygwin.
5472
3810f182
SM
54732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5476 parameter.c.
5477 (dwarf2_read_gdb_index): Update.
5478
063f8e80
KR
54792020-04-07 Kamil Rytarowski <n54@gmx.com>
5480
5481 * nbsd-tdep.c: Include "objfiles.h".
5482 (nbsd_skip_solib_resolver): New.
5483 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5484
85a9510c 54852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5486
5487 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5488 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5489 with DW_LLE_base_addressx are being emitted in DWARFv5.
5490 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5491 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5492 unsigned integer.
5493
9fc3eaae 54942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5495
5496 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5497 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5498 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5499 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5500 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5501 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5502 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5503
5504
41144253 55052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5506
5507 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5508 (read_loclist_index): New function definition.
5509 (lookup_loclist_base): New function definition.
5510 (read_loclist_header): New function definition.
5511 (dwarf2_cu): Add loclist_base and loclist_header field.
5512 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5513 (read_full_die_1): Read the value of DW_AT_loclists_base.
5514 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5515 (read_attribute_value): Handle DW_FORM_loclistx.
5516 (skip_one_die): Handle DW_FORM_loclistx.
5517 (loclist_header): New structure declaration.
5518 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5519
9f4e76a4
SM
55202020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5523 constructor. Remove `addr` parameter from other constructor and
5524 add `per_cu` parameter.
5525 * dwarf2/read.c (create_partial_symtab): Update.
5526
25c11aca
TV
55272020-04-07 Tom de Vries <tdevries@suse.de>
5528
5529 PR symtab/25796
5530 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5531 (partial_die_info::fixup): Inherit has_const_value.
5532
5707e24b
TV
55332020-04-07 Tom de Vries <tdevries@suse.de>
5534
5535 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5536 symbols without address.
5537
05f00e22
KR
55382020-04-06 Kamil Rytarowski <n54@gmx.com>
5539
5540 * nbsd-nat.h (struct thread_info): Add forward declaration.
5541 (nbsd_nat_target::thread_alive): Add.
5542 (nbsd_nat_target::thread_name): Likewise.
5543 (nbsd_nat_target::update_thread_list): Likewise.
5544 (update_thread_list::post_attach): Likewise.
5545 (post_attach::pid_to_str): Likewise.
5546 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5547 (nbsd_thread_lister): Add.
5548 (nbsd_nat_target::thread_alive): Likewise.
5549 (nbsd_nat_target::thread_name): Likewise.
5550 (nbsd_add_threads): Likewise.
5551 (update_thread_list::post_attach): Likewise.
5552 (nbsd_nat_target::update_thread_list): Likewise.
5553 (post_attach::pid_to_str): Likewise.
5554
6ee448cc
TT
55552020-04-06 Tom Tromey <tromey@adacore.com>
5556
5557 * ada-valprint.c (print_variant_part): Extract the variant field.
5558 (print_field_values): Use the field as the outer value when
5559 recursing.
5560
dea34e8c
TT
55612020-04-06 Tom Tromey <tromey@adacore.com>
5562
5563 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5564 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5565 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5566 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5567 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5568
93689ce9
TT
55692020-04-06 Tom Tromey <tromey@adacore.com>
5570
5571 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5572 TYPE_CODE_ERROR.
5573
79743962
KR
55742020-04-06 Kamil Rytarowski <n54@gmx.com>
5575
5576 * nbsd-tdep.c: Include "gdbarch.h".
5577 Define enum with NetBSD signal numbers.
5578 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5579 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5580 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5581 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5582 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5583 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5584 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5585 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5586 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5587 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5588 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5589 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5590
9e7c9a03
HD
55912020-04-03 Hannes Domani <ssbssa@yahoo.de>
5592
5593 PR gdb/25325
5594 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5595
d9e49b61
TT
55962020-04-03 Tom Tromey <tromey@adacore.com>
5597
5598 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5599 Read constant block.
5600
e0fc5c3f
SM
56012020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5604 (gdb_bfd_get_full_section_contents): New declaration.
5605 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5606 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5607 gdb_bfd_get_full_section_contents.
5608
e2ff18a0
SM
56092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5610
5611 * exec.c (build_section_table): Replace internal_error with
5612 gdb_assert.
5613 (section_table_xfer_memory_partial): Likewise.
5614 * mdebugread.c (parse_partial_symbols): Likewise.
5615 * psymtab.c (lookup_partial_symbol): Likewise.
5616 * utils.c (wrap_here): Likewise.
5617
0830d301
TT
56182020-04-02 Tom Tromey <tromey@adacore.com>
5619
5620 * f-lang.c (build_fortran_types): Use arch_type to initialize
5621 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5622
e7da7f8f
TT
56232020-04-02 Tom Tromey <tromey@adacore.com>
5624
5625 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5626 of attributes.
5627
c90d28ac
AB
56282020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5629 Bernd Edlinger <bernd.edlinger@hotmail.de>
5630 Tom Tromey <tromey@adacore.com>
5631
5632 * buildsym.c (buildsym_compunit::record_line): Remove
5633 deduplication code.
5634
1aa98955
TV
56352020-04-02 Tom de Vries <tdevries@suse.de>
5636
5637 PR ada/24671
5638 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5639
d3214198
TV
56402020-04-02 Tom de Vries <tdevries@suse.de>
5641
5642 * dwarf2/read.c (dwarf2_gdb_index_functions,
5643 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5644 NULL.
5645 * psymtab.c (psym_lookup_global_symbol_language): New function.
5646 (psym_functions): Init psym_lookup_global_symbol_language with
5647 psym_lookup_global_symbol_language.
5648 * symfile-debug.c (debug_sym_quick_functions): Init
5649 lookup_global_symbol_language with NULL.
5650 * symfile.c (set_initial_language): Remove fixme comment.
5651 * symfile.h (struct quick_symbol_functions): Add
5652 lookup_global_symbol_language.
5653 * symtab.c (find_quick_global_symbol_language): New function.
5654 (find_main_name): Use find_quick_global_symbol_language.
5655
2836752f
SM
56562020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5659
64dc2d4b
BE
56602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5661
5662 * buildsym.c (record_line): Fix undefined behavior and preserve
5663 lines at eof.
5664
bbe3dc41
BE
56652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5666
5667 * buildsym.c (record_line): Fix the resizing condition.
5668
6b4a335b
TT
56692020-04-01 Tom Tromey <tom@tromey.com>
5670
5671 * value.h (value_literal_complex): Add comment.
5672 * valops.c (value_literal_complex): Refer to value.h.
5673
3638a098
TT
56742020-04-01 Tom Tromey <tom@tromey.com>
5675
5676 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5677 (scalar_type): New rule, from typebase.
5678 (typebase): Use scalar_type. Recognize complex types.
5679 (field_name): Handle FLOAT_KEYWORD.
5680 (ident_tokens): Add _Complex and __complex__.
5681
c34e8714
TT
56822020-04-01 Tom Tromey <tom@tromey.com>
5683
5684 PR exp/25299:
5685 * valarith.c (promotion_type, complex_binop): New functions.
5686 (scalar_binop): Handle complex numbers. Use promotion_type.
5687 (value_pos, value_neg, value_complement): Handle complex numbers.
5688
fa649bb7
TT
56892020-04-01 Tom Tromey <tom@tromey.com>
5690
5691 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5692 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5693 (parse_number): Handle complex numbers.
5694
981c08ce
TT
56952020-04-01 Tom Tromey <tom@tromey.com>
5696
5697 * c-valprint.c (c_decorations): Change complex suffix to "i".
5698
4c99290d
TT
56992020-04-01 Tom Tromey <tom@tromey.com>
5700
5701 * valprint.c (generic_value_print_complex): Use accessors.
5702 * value.h (value_real_part, value_imaginary_part): Declare.
5703 * valops.c (value_real_part, value_imaginary_part): New
5704 functions.
5705 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5706
5b930b45
TT
57072020-04-01 Tom Tromey <tom@tromey.com>
5708
5709 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5710 (read_range_type): Update.
5711 * mdebugread.c (basic_type): Update.
5712 * go-lang.c (build_go_types): Use init_complex_type.
5713 * gdbtypes.h (struct main_type) <complex_type>: New member.
5714 (init_complex_type): Update.
5715 (arch_complex_type): Don't declare.
5716 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5717 Make name if none given. Use alloc_type_copy. Look for cached
5718 complex type.
5719 (arch_complex_type): Remove.
5720 (gdbtypes_post_init): Use init_complex_type.
5721 * f-lang.c (build_fortran_types): Use init_complex_type.
5722 * dwarf2/read.c (read_base_type): Update.
5723 * d-lang.c (build_d_types): Use init_complex_type.
5724 * ctfread.c (read_base_type): Update.
5725
53cccef1
TBA
57262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5727
5728 * infrun.c (stop_all_threads): Update assertion, plus when
5729 stopping threads, take into account that we might be trying
5730 to stop an all-stop target.
5731 (stop_waiting): Call 'stop_all_threads' if there exists a
5732 non-stop target.
5733
a0714d30
TBA
57342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5735
5736 * target.h (exists_non_stop_target): New function declaration.
5737 * target.c (exists_non_stop_target): New function.
5738
60e22c1e
HD
57392020-04-01 Hannes Domani <ssbssa@yahoo.de>
5740
5741 PR gdb/24789
5742 * eval.c (is_integral_or_integral_reference): New function.
5743 (evaluate_subexp_standard): Allow integer references in
5744 pointer arithmetic.
5745
e139a727
TBA
57462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5747
5748 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5749 check for no ptid in the stop reply when the target is non-stop.
5750
e0802d59
TT
57512020-04-01 Tom Tromey <tromey@adacore.com>
5752
5753 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5754 "name" parameter to rvalue reference. Initialize m_name_holder.
5755 <lookup_name_info>: New overloads.
5756 <name>: Return gdb::string_view.
5757 <c_str>: New method.
5758 <make_ignore_params>: Update.
5759 <search_name_hash>: Update.
5760 <language_lookup_name>: Return const char *.
5761 <m_name>: Change type.
5762 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5763 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5764 (lookup_name_info::match_any): Update.
5765 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5766 Update.
5767 * minsyms.c (linkage_name_str): Update.
5768 * language.c (default_symbol_name_matcher): Update.
5769 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5770 Update.
5771 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5772 (ada_lookup_name_info::ada_lookup_name_info): Update.
5773 (literal_symbol_name_matcher): Update.
5774
8c072cb6
TT
57752020-04-01 Tom Tromey <tromey@adacore.com>
5776
5777 * psymtab.c (psymtab_search_name): Remove function.
5778 (psym_lookup_symbol): Create search name and lookup name here.
5779 (lookup_partial_symbol): Remove "name" parameter; add
5780 lookup_name.
5781 (psym_expand_symtabs_for_function): Update.
5782
6f29a534
TT
57832020-03-31 Joel Jones <joelkevinjones@gmail.com>
5784
5785 PR tui/25597:
5786 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5787
af62665e
TT
57882020-03-31 Tom Tromey <tromey@adacore.com>
5789
5790 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5791 memcpy.
5792
d1a89da5
NC
57932020-03-30 Nelson Chu <nelson.chu@sifive.com>
5794
5795 * features/riscv/32bit-csr.xml: Regenerated.
5796 * features/riscv/64bit-csr.xml: Regenerated.
5797
d8af9068
TT
57982020-03-30 Tom Tromey <tromey@adacore.com>
5799
5800 * ada-valprint.c (print_variant_part): Update.
5801 * ada-lang.h (ada_which_variant_applies): Update.
5802 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5803 outer_valaddr parameters; replace with "outer" value parameter.
5804 (to_fixed_variant_branch_type): Update.
5805
227c0bf4
PFC
58062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5807
5808 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5809 <list>. Remove inclusion of observable.h.
5810 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5811 (struct arch_lwp_info): New struct.
5812 (class ppc_linux_dreg_interface): New class.
5813 (struct ppc_linux_process_info): New struct.
5814 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5815 <low_new_clone, low_forget_process, low_prepare_to_resume>
5816 <copy_thread_dreg_state, mark_thread_stale>
5817 <mark_debug_registers_changed, register_hw_breakpoint>
5818 <clear_hw_breakpoint, register_wp, clear_wp>
5819 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5820 <num_memory_accesses, get_trigger_type>
5821 <create_watchpoint_request, hwdebug_point_cmp>
5822 <init_arch_lwp_info, get_arch_lwp_info>
5823 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5824 methods.
5825 <struct ptid_hash>: New inner struct.
5826 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5827 members.
5828 (saved_dabr_value, hwdebug_info, max_slots_number)
5829 (struct hw_break_tuple, struct thread_points, ppc_threads)
5830 (have_ptrace_hwdebug_interface)
5831 (hwdebug_find_thread_points_by_tid)
5832 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5833 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5834 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5835 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5836 use m_dreg_interface.
5837 (hwdebug_point_cmp): Change to...
5838 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5839 reference arguments instead of pointers.
5840 (ppc_linux_nat_target::ranged_break_num_registers): Use
5841 m_dreg_interface.
5842 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5843 m_dreg_interface. Call register_hw_breakpoint.
5844 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5845 m_dreg_interface. Call clear_hw_breakpoint.
5846 (get_trigger_type): Change to...
5847 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5848 comment.
5849 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5850 use m_dreg_interface. Call register_hw_breakpoint.
5851 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5852 use m_dreg_interface. Call clear_hw_breakpoint.
5853 (can_use_watchpoint_cond_accel): Change to...
5854 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5855 method. Update comment, use m_dreg_interface and
5856 m_process_info.
5857 (calculate_dvc): Change to...
5858 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5859 m_dreg_interface.
5860 (num_memory_accesses): Change to...
5861 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5862 (check_condition): Change to...
5863 (ppc_linux_nat_target::check_condition): ...this method.
5864 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5865 comment, use m_dreg_interface.
5866 (create_watchpoint_request): Change to...
5867 (ppc_linux_nat_target::create_watchpoint_request): ...this
5868 method. Use m_dreg_interface.
5869 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5870 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5871 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5872 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5873 (ppc_linux_nat_target::low_forget_process)
5874 (ppc_linux_nat_target::low_new_fork)
5875 (ppc_linux_nat_target::low_new_clone)
5876 (ppc_linux_nat_target::low_delete_thread)
5877 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5878 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5879 only call mark_thread_stale.
5880 (ppc_linux_thread_exit): Remove.
5881 (ppc_linux_nat_target::stopped_data_address): Change to...
5882 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5883 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5884 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5885 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5886 comment. Call low_stopped_data_address.
5887 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5888 m_dreg_interface.
5889 (ppc_linux_nat_target::masked_watch_num_registers): Use
5890 m_dreg_interface.
5891 (ppc_linux_nat_target::copy_thread_dreg_state)
5892 (ppc_linux_nat_target::mark_thread_stale)
5893 (ppc_linux_nat_target::mark_debug_registers_changed)
5894 (ppc_linux_nat_target::register_hw_breakpoint)
5895 (ppc_linux_nat_target::clear_hw_breakpoint)
5896 (ppc_linux_nat_target::register_wp)
5897 (ppc_linux_nat_target::clear_wp)
5898 (ppc_linux_nat_target::init_arch_lwp_info)
5899 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5900 (_initialize_ppc_linux_nat): Remove observer callback.
5901
4db10d8f
PFC
59022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5903
5904 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5905 (ppc_linux_nat_target::auxv_parse)
5906 (ppc_linux_nat_target::read_description)
5907 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5908 Move up.
5909
1310c1b0
PFC
59102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5911
5912 * linux-nat.h (low_new_clone): New method.
5913 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5914
69b037c3
SM
59152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5916
5917 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5918 (dbx_expand_psymtab): ... this.
5919 (start_psymtab): Update.
5920 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5921 (mdebug_expand_psymtab): ... this.
5922 (parse_partial_symbols): Update.
5923 (new_psymtab): Update.
5924 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5925 (xcoff_expand_psymtab): ... this.
5926 (xcoff_start_psymtab): Update.
5927
48993951
SM
59282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5931 <expand_dependencies>: ... this.
5932 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5933 (partial_symtab::expand_dependencies): ... this.
5934 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5935 Update.
5936 (dwarf2_psymtab::expand_psymtab): Update.
5937 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5938 * mdebugread.c (psymtab_to_symtab_1): Update.
5939 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5940
3ad83046
SM
59412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * psympriv.h (discard_psymtab): Remove.
5944 * dbxread.c (dbx_end_psymtab): Update.
5945 * xcoffread.c (xcoff_end_psymtab): Update.
5946
4d1b9ab6
TT
59472020-03-28 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5950 comment.
5951
f1749218
TT
59522020-03-28 Tom Tromey <tom@tromey.com>
5953
5954 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5955
ebea7626
HD
59562020-03-27 Hannes Domani <ssbssa@yahoo.de>
5957
5958 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5959
a879b4d5
JB
59602020-03-26 John Baldwin <jhb@FreeBSD.org>
5961
5962 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5963
0826b30a
TT
59642020-03-26 Tom Tromey <tom@tromey.com>
5965
5966 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5967 (mark_common_block_symbol_computed, read_tag_string_type)
5968 (attr_to_dynamic_prop, read_subrange_type): Update.
5969 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5970 to be methods on struct attribute.
5971 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5972 (read_call_site_scope, partial_die_info::read)
5973 (partial_die_info::read, lookup_die_type, follow_die_ref):
5974 Update.
5975 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5976 from dwarf2_get_ref_die_offset.
5977 (attribute::constant_value): New method, from
5978 dwarf2_get_attr_constant_value.
5979 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5980 Declare method.
5981 <constant_value>: New method.
5982
2b2558bf
TT
59832020-03-26 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5986 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5987 (dwarf_type_encoding_name): Move to stringify.c.
5988 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5989 * dwarf2/stringify.c: New file.
5990 * dwarf2/stringify.h: New file.
5991
eeb64781
TT
59922020-03-26 Tom Tromey <tom@tromey.com>
5993
5994 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5995 Rewrite.
5996
a39fdb41
TT
59972020-03-26 Tom Tromey <tom@tromey.com>
5998
5999 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6000 methods.
6001 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6002 (lookup_ranges_base): Likewise.
6003 (read_cutu_die_from_dwo, read_full_die_1): Update.
6004
436c571c
TT
60052020-03-26 Tom Tromey <tom@tromey.com>
6006
6007 * dwarf2/read.c (read_import_statement, read_file_scope)
6008 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6009 (read_lexical_block_scope, read_call_site_scope)
6010 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6011 (handle_struct_member_die, process_structure_scope)
6012 (update_enumeration_type_from_children)
6013 (process_enumeration_scope, read_array_type, read_common_block)
6014 (read_namespace, read_module, read_subroutine_type): Update.
6015 (sibling_die): Remove.
6016
052c8bb8
TT
60172020-03-26 Tom Tromey <tom@tromey.com>
6018
6019 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6020 (build_type_psymtabs_reader, read_structure_type)
6021 (read_enumeration_type, read_full_die_1): Update.
6022 (dwarf2_attr_no_follow): Move to die.h.
6023 * dwarf2/die.h (struct die_info) <attr>: New method.
6024
2b24b6e4
TT
60252020-03-26 Tom Tromey <tom@tromey.com>
6026
6027 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6028 <base_address>: Now an optional.
6029 (dwarf2_find_base_address, dwarf2_rnglists_process)
6030 (dwarf2_ranges_process, fill_in_loclist_baton)
6031 (dwarf2_symbol_mark_computed): Update.
6032
c2d50fd0
TT
60332020-03-26 Tom Tromey <tom@tromey.com>
6034
6035 * dwarf2/read.c (struct die_info): Move to die.h.
6036 * dwarf2/die.h: New file.
6037
0df7ad3a
TT
60382020-03-26 Tom Tromey <tom@tromey.com>
6039
6040 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6041 * dwarf2/read.c
6042 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6043 Move to line-header.c.
6044 (read_checked_initial_length_and_offset, read_formatted_entries):
6045 Likewise.
6046 (dwarf_decode_line_header): Split into two.
6047 * dwarf2/line-header.c
6048 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6049 Move from read.c.
6050 (read_checked_initial_length_and_offset, read_formatted_entries):
6051 Likewise.
6052 (dwarf_decode_line_header): New function, split from read.c.
6053
86c0bb4c
TT
60542020-03-26 Tom Tromey <tom@tromey.com>
6055
6056 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6057 Declare method.
6058 * dwarf2/read.c (read_attribute_value): Update.
6059 (dwarf2_per_objfile::read_line_string): Rename from
6060 read_indirect_line_string.
6061 (read_formatted_entries): Update.
6062
2ef46c2f
TT
60632020-03-26 Tom Tromey <tom@tromey.com>
6064
6065 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6066 variable.
6067
4f9c1eda
TT
60682020-03-26 Tom Tromey <tom@tromey.com>
6069
6070 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6071 const.
6072 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6073 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6074 parameter const.
6075
5a0e026f
TT
60762020-03-26 Tom Tromey <tom@tromey.com>
6077
6078 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6079 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6080 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6081 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6082
8844c11b
TT
60832020-03-26 Tom Tromey <tom@tromey.com>
6084
6085 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6086 file_names_size, file_full_name, file_file_name>: Use const.
6087 <file_name_at, file_names>: Add const overload.
6088 * dwarf2/line-header.c (line_header::file_file_name)
6089 (line_header::file_full_name): Update.
6090
c90ec28a
TT
60912020-03-26 Tom Tromey <tom@tromey.com>
6092
6093 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6094 (macro_start_file, consume_improper_spaces)
6095 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6096 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6097 (dwarf_decode_macros): Move to macro.c.
6098 * dwarf2/macro.c: New file.
6099 * dwarf2/macro.h: New file.
6100 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6101
4f44ae6c
TT
61022020-03-26 Tom Tromey <tom@tromey.com>
6103
6104 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6105 method.
6106 * dwarf2/section.c: New method. From
6107 read_indirect_string_at_offset_from.
6108 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6109 (read_indirect_string_at_offset_from): Move to section.c.
6110 (read_indirect_string_at_offset): Rewrite.
6111 (read_indirect_line_string_at_offset): Remove.
6112 (read_indirect_string, read_indirect_line_string)
6113 (dwarf_decode_macro_bytes): Update.
6114
a0194fa8
TT
61152020-03-26 Tom Tromey <tom@tromey.com>
6116
6117 * dwarf2/section.h (struct dwarf2_section_info)
6118 <overload_complaint>: Declare.
6119 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6120 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6121 Rename from dwarf2_section_buffer_overflow_complaint.
6122 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6123 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6124
3d27bbdb
TT
61252020-03-26 Tom Tromey <tom@tromey.com>
6126
6127 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6128 Declare.
6129 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6130 Move from read.c.
6131 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6132 to section.c.
6133
9eac9650
TT
61342020-03-26 Tom Tromey <tom@tromey.com>
6135
6136 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6137
bf80d710
TT
61382020-03-26 Tom Tromey <tom@tromey.com>
6139
6140 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6141 "builder".
6142 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6143 parameter.
6144 (dwarf_decode_macros): Update.
6145
0314b390
TT
61462020-03-26 Tom Tromey <tom@tromey.com>
6147
6148 * dwarf2/read.c (read_attribute_value): Update.
6149 (read_indirect_string_from_dwz): Move to dwz.c; change into
6150 method.
6151 (dwarf_decode_macro_bytes): Update.
6152 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6153 * dwarf2/dwz.c: New file.
6154 * Makefile.in (COMMON_SFILES): Add dwz.c.
6155
9fda78b6
TT
61562020-03-26 Tom Tromey <tom@tromey.com>
6157
6158 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6159 * dwarf2/read.c: Add include.
6160 * dwarf2/index-write.c: Add include.
6161 * dwarf2/index-cache.c: Add include.
6162 * dwarf2/dwz.h: New file.
6163
33aa3c10
TT
61642020-03-25 Tom Tromey <tom@tromey.com>
6165
6166 * compile/compile-object-load.c (get_out_value_type): Mention
6167 correct symbol name in error message.
6168
d503b685
HD
61692020-03-25 Hannes Domani <ssbssa@yahoo.de>
6170
6171 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6172
7b1eff95
TV
61732020-03-25 Tom de Vries <tdevries@suse.de>
6174
6175 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6176 * symmisc.c (dump_symtab_1): Print user and includes fields.
6177 (maintenance_info_symtabs): Same.
6178
dd895392
AB
61792020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 PR gdb/25534
6182 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6183 (riscv_regcache_cooked_write): New function.
6184 (riscv_push_dummy_call): Use new function.
6185 (riscv_return_value): Likewise.
6186
5ab2fbf1
SM
61872020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6190 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6191 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6192 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6193 * infrun.c (follow_fork): Likewise.
6194 (follow_fork_inferior): Likewise.
6195 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6196 * linux-nat.h (class linux_nat_target): Likewise.
6197 * remote.c (class remote_target) <follow_fork>: Likewise.
6198 (remote_target::follow_fork): Likewise.
6199 * target-delegates.c: Re-generate.
6200 * target.c (default_follow_fork): Likewise.
6201 (target_follow_fork): Likewise.
6202 * target.h (struct target_ops) <follow_fork>: Likewise.
6203 (target_follow_fork): Likewise.
6204
a64fafb5
TV
62052020-03-24 Tom de Vries <tdevries@suse.de>
6206
6207 * psymtab.c (maintenance_info_psymtabs): Print user field.
6208
fe26d3a3
TT
62092020-03-20 Tom Tromey <tromey@adacore.com>
6210
6211 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6212 const.
6213 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6214 const.
6215
c884cc46
SM
62162020-03-20 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * ptrace.m4: Don't check for ptrace declaration.
6219 * config.in: Re-generate.
6220 * configure: Re-generate.
6221 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6222 not defined.
6223
1ff700c2
KR
62242020-03-20 Kamil Rytarowski <n54@gmx.com>
6225
6226 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6227 `PTRACE_TYPE_RET'.
6228 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6229 * sparc-nat.c (gdb_ptrace): Likewise.
6230 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6231
f7d4f0b1
TT
62322020-03-20 Tom Tromey <tromey@adacore.com>
6233
6234 * c-exp.y (lex_one_token): Fix assert.
6235
f67210ff
TT
62362020-03-20 Tom Tromey <tromey@adacore.com>
6237
6238 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6239 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6240 strncpy call.
6241
1773be9e
TT
62422020-03-20 Tom Tromey <tromey@adacore.com>
6243
6244 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6245
70304be9
TT
62462020-03-20 Tom Tromey <tromey@adacore.com>
6247
6248 * ada-valprint.c (print_variant_part): Remove parameters; switch
6249 to value-based API.
6250 (print_field_values): Likewise.
6251 (ada_val_print_struct_union): Likewise.
6252 (ada_value_print_1): Update.
6253
9faa006d
KR
62542020-03-20 Kamil Rytarowski <n54@gmx.com>
6255
6256 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6257 nbsd_nat_target instead of inf_ptrace_target.
6258 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6259 nbsd_nat_target.
6260
4a90f062
KR
62612020-03-20 Kamil Rytarowski <n54@gmx.com>
6262
6263 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6264 it to the ptrace call.
6265 * (store_registers): Likewise.
6266
62672020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6268
6269 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6270 it to the ptrace call.
6271 * (store_registers): Likewise.
6272
2d07da27
LM
62732020-03-19 Luis Machado <luis.machado@linaro.org>
6274
6275 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6276 valid, fetch vg value from ptrace.
6277
f09db380
KR
62782020-03-19 Kamil Rytarowski <n54@gmx.com>
6279 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6280 * inf-ptrace.c: Likewise.
6281 * (gdb_ptrace): Add.
6282 * (inf_ptrace_target::resume): Update.
6283 * (inf_ptrace_target::xfer_partial): Likewise.
6284 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6285 * (inf_ptrace_peek_poke): Update.
6286
fcc7376e
KR
62872020-03-19 Kamil Rytarowski <n54@gmx.com>
6288
6289 * x86-bsd-nat.c (gdb_ptrace): New.
6290 * (x86bsd_dr_set): Add new argument `ptid'.
6291 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6292 x86bsd_dr_set_addr): Update.
6293
cada5fc9
AB
62942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * remote.c (remote_target::process_stop_reply): Handle events for
6297 all threads differently.
6298
19a2740f
AB
62992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * completer.c (completion_tracker::remove_completion): Define new
6302 function.
6303 * completer.h (completion_tracker::remove_completion): Declare new
6304 function.
6305 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6306 when adding a C++ function symbol.
6307
724fd9ba
AB
63082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * completer.c (completion_tracker::completion_hash_entry): Define
6311 new class.
6312 (advance_to_filename_complete_word_point): Call
6313 recompute_lowest_common_denominator.
6314 (completion_tracker::completion_tracker): Call discard_completions
6315 to setup the hash table.
6316 (completion_tracker::discard_completions): Allow for being called
6317 from the constructor, pass new equal function, and element deleter
6318 when constructing the hash table. Initialise new class member
6319 variables.
6320 (completion_tracker::maybe_add_completion): Remove use of
6321 m_entries_vec, and store more information into m_entries_hash.
6322 (completion_tracker::recompute_lcd_visitor): New function, most
6323 content taken from...
6324 (completion_tracker::recompute_lowest_common_denominator):
6325 ...here, this now just visits each item in the hash calling the
6326 above visitor.
6327 (completion_tracker::build_completion_result): Remove use of
6328 m_entries_vec, call recompute_lowest_common_denominator.
6329 * completer.h (completion_tracker::have_completions): Remove use
6330 of m_entries_vec.
6331 (completion_tracker::completion_hash_entry): Declare new class.
6332 (completion_tracker::recompute_lowest_common_denominator): Change
6333 function signature.
6334 (completion_tracker::recompute_lcd_visitor): Declare new function.
6335 (completion_tracker::m_entries_vec): Delete.
6336 (completion_tracker::m_entries_hash): Initialize to NULL.
6337 (completion_tracker::m_lowest_common_denominator_valid): New
6338 member variable.
6339 (completion_tracker::m_lowest_common_denominator_max_length): New
6340 member variable.
6341
5a82b8a1
KR
63422020-03-17 Kamil Rytarowski <n54@gmx.com>
6343
6344 * regformats/regdef.h: Put reg in gdb namespace.
6345
fb516a69
KR
63462020-03-17 Kamil Rytarowski <n54@gmx.com>
6347
6348 * i386-bsd-nat.c (gdb_ptrace): New.
6349 * (i386bsd_fetch_inferior_registers,
6350 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6351 * (i386bsd_fetch_inferior_registers,
6352 i386bsd_store_inferior_registers) Use gdb_ptrace.
6353
1c0aa1fb
KR
63542020-03-17 Kamil Rytarowski <n54@gmx.com>
6355
6356 * amd64-bsd-nat.c (gdb_ptrace): New.
6357 * (amd64bsd_fetch_inferior_registers,
6358 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6359 * (amd64bsd_fetch_inferior_registers,
6360 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6361
5ccd2fb7
KR
63622020-03-17 Kamil Rytarowski <n54@gmx.com>
6363
6364 * user-regs.c (user_reg::read): Rename to...
6365 (user_reg::xread): ...this.
6366 * (append_user_reg): Rename argument `read' to `xread'.
6367 * (user_reg_add_builtin): Likewise.
6368 * (user_reg_add): Likewise.
6369 * (value_of_user_reg): Likewise.
6370
2108a63a
KR
63712020-03-17 Kamil Rytarowski <n54@gmx.com>
6372
6373 * sparc-nat.c (gdb_ptrace): New.
6374 * sparc-nat.c (sparc_fetch_inferior_registers)
6375 (sparc_store_inferior_registers) Remove obsolete comment.
6376 * sparc-nat.c (sparc_fetch_inferior_registers)
6377 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6378 * sparc-nat.c (sparc_fetch_inferior_registers)
6379 (sparc_store_inferior_registers) Use gdb_ptrace.
6380
a225c9a8
KR
63812020-03-17 Kamil Rytarowski <n54@gmx.com>
6382
6383 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6384 it to the ptrace call.
6385 * sh-nbsd-nat.c (store_registers): Likewise.
6386
98097623
KR
63872020-03-17 Kamil Rytarowski <n54@gmx.com>
6388
6389 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6390 nbsd_nat_target instead of inf_ptrace_target.
6391 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6392 nbsd_nat_target.
6393
9e38d619
KR
63942020-03-17 Kamil Rytarowski <n54@gmx.com>
6395
6396 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6397
a2ecbe9f
KR
63982020-03-17 Kamil Rytarowski <n54@gmx.com>
6399
6400 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6401 <sys/sysctl.h>.
6402 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6403
58990295
TV
64042020-03-17 Tom de Vries <tdevries@suse.de>
6405
6406 PR gdb/23710
6407 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6408 fields.
6409 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6410 fields.
6411 (process_imported_unit_die): Skip import of c++ CUs.
6412
771dd3a8
TT
64132020-03-16 Tom Tromey <tom@tromey.com>
6414
6415 * p-valprint.c (pascal_object_print_value): Initialize
6416 base_value.
6417
817a7585
AK
64182020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6419 Shahab Vahedi <shahab@synopsys.com>
6420
6421 * Makefile.in: Add arch/arc.o
6422 * configure.tgt: Likewise.
6423 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6424 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6425 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6426 * arc-tdep.h (arc_read_description): Add proto type.
6427 * arch/arc.c: New file.
6428 * arch/arc.h: Likewise.
6429 * features/Makefile: Replace old target descriptions with new.
6430 * features/arc-arcompact.c: Remove.
6431 * features/arc-arcompact.xml: Likewise.
6432 * features/arc-v2.c: Likewise
6433 * features/arc-v2.xml: Likewise
6434 * features/arc/aux-arcompact.xml: New file.
6435 * features/arc/aux-v2.xml: Likewise.
6436 * features/arc/core-arcompact.xml: Likewise.
6437 * features/arc/core-v2.xml: Likewise.
6438 * features/arc/aux-arcompact.c: Generate.
6439 * features/arc/aux-v2.c: Likewise.
6440 * features/arc/core-arcompact.c: Likewise.
6441 * features/arc/core-v2.c: Likewise.
6442 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6443
67430cd0
TT
64442020-03-16 Tom Tromey <tromey@adacore.com>
6445
6446 PR gdb/25663:
6447 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6448 putting value into bcache.
6449
30efb6c7
SM
64502020-03-16 Simon Marchi <simon.marchi@efficios.com>
6451
6452 PR gdb/21500
6453 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6454 to...
6455 (amd64_windows_init_abi_common): ... this. Don't set size of
6456 long type.
6457 (amd64_windows_init_abi): New function.
6458 (amd64_cygwin_init_abi): New function.
6459 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6460 the Cygwin OS ABI.
6461 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6462 comment.
6463
8db52437
SM
64642020-03-16 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6467 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6468 (pe_import_directory_entry): New struct type.
6469 (is_linked_with_cygwin_dll): New function.
6470 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6471 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6472 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6473
5982a56a
SM
64742020-03-16 Simon Marchi <simon.marchi@efficios.com>
6475
6476 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6477 i386_cygwin_core_osabi_sniffer.
6478
7a1998df
SM
64792020-03-16 Simon Marchi <simon.marchi@efficios.com>
6480
6481 * i386-cygwin-tdep.c: Rename to...
6482 * i386-windows-tdep.c: ... this.
6483 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6484 i386-windows-tdep.c.
6485 * configure.tgt: Likewise.
6486
053205cc
SM
64872020-03-16 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6490 * osabi.c (gdb_osabi_names): Add "Windows".
6491 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6492 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6493 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6494 i386_cygwin_osabi_sniffer.
6495 (_initialize_i386_cygwin_tdep): Register OS ABI
6496 GDB_OSABI_WINDOWS for i386.
6497 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6498 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6499 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6500 for x86-64.
6501 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6502 when the target matches '*-*-mingw*'.
6503
fe4b2ee6
SM
65042020-03-16 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * defs.h (enum gdb_osabi): Move to...
6507 * osabi.h (enum gdb_osabi): ... here.
6508 * gdbarch.sh: Include osabi.h in gdbarch.h.
6509 * gdbarch.h: Re-generate.
6510
cb9b645d
SM
65112020-03-16 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6514 function.
6515 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6516
3293bbaf
TT
65172020-03-14 Tom Tromey <tom@tromey.com>
6518
6519 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6520 for C++.
6521 (c_type_print_modifier): Likewise. Add "language" parameter.
6522 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6523 (c_type_print_base_1): Update.
6524 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6525 constants.
6526 * type-stack.c (type_stack::insert): Handle tp_atomic and
6527 tp_restrict.
6528 (type_stack::follow_type_instance_flags): Likewise.
6529 (type_stack::follow_types): Likewise. Merge type-following code.
6530 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6531 (space_identifier, cv_with_space_id)
6532 (const_or_volatile_or_space_identifier_noopt)
6533 (const_or_volatile_or_space_identifier): Remove.
6534 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6535 rules.
6536 (ptr_operator, typebase): Update.
6537 (enum token_flag) <FLAG_C>: New constant.
6538 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6539 "_Atomic".
6540 (lex_one_token): Handle FLAG_C.
6541
154151a6
KR
65422020-03-14 Kamil Rytarowski <n54@gmx.com>
6543
6544 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6545 it to the ptrace call.
6546 * m68k-bsd-nat.c (store_registers): Likewise.
6547
bc107784
KR
65482020-03-14 Kamil Rytarowski <n54@gmx.com>
6549
6550 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6551 gdb_byte *.
6552 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6553 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6554 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6555
01a80117
KR
65562020-03-14 Kamil Rytarowski <n54@gmx.com>
6557
6558 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6559 nbsd_nat_target instead of inf_ptrace_target.
6560 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6561 nbsd_nat_target.
6562
f90280ca
KR
65632020-03-14 Kamil Rytarowski <n54@gmx.com>
6564
6565 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6566 register_t.
6567
6def66f1
KR
65682020-03-14 Kamil Rytarowski <n54@gmx.com>
6569
6570 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6571 it to the ptrace call.
6572 * alpha-bsd-nat.c (store_registers): Likewise.
6573
66eaca97
KR
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6577 includes.
6578 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6579 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6580 fill_fpregset): Likewise.
6581
4fed520b
KR
65822020-03-14 Kamil Rytarowski <n54@gmx.com>
6583
6584 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6585 nbsd_nat_target instead of inf_ptrace_target.
6586 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6587 nbsd_nat_target.
6588
2190cf06
KR
65892020-03-14 Kamil Rytarowski <n54@gmx.com>
6590
6591 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6592 register_t.
6593
75c56d3d
KR
65942020-03-14 Kamil Rytarowski <n54@gmx.com>
6595
6596 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6597 it to the ptrace call.
6598 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6599 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6600 * arm-nbsd-nat.c (store_register): Likewise.
6601 * arm-nbsd-nat.c (store_regs): Likewise.
6602 * arm-nbsd-nat.c (store_fp_register): Likewise.
6603 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6604
6018d381
KR
66052020-03-14 Kamil Rytarowski <n54@gmx.com>
6606
6607 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6608 nbsd_nat_target instead of inf_ptrace_target.
6609 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6610 nbsd_nat_target.
6611
013f99f0
KR
66122020-03-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6615 it to the ptrace call.
6616 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6617
12753073
KR
66182020-03-14 Kamil Rytarowski <n54@gmx.com>
6619
6227b330
KR
6620 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6621 it to the ptrace call.
6622 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6623
66242020-03-14 Kamil Rytarowski <n54@gmx.com>
6625
6626 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6627 gdb_byte *.
12753073
KR
6628 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6629
d5be5fa4
KR
66302020-03-14 Kamil Rytarowski <n54@gmx.com>
6631
6632 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6633 instead of inf_ptrace_target.
6634 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6635 nbsd_nat_target.
6636
8110f842
KR
66372020-03-14 Kamil Rytarowski <n54@gmx.com>
6638
6639 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6640 register_t.
6641
52feded7
KR
66422020-03-14 Kamil Rytarowski <n54@gmx.com>
6643
6644 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6645 register_t.
6646
25567eee
KR
66472020-03-14 Kamil Rytarowski <n54@gmx.com>
6648
6649 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6650 register_t.
6651
426a9c18
TT
66522020-03-13 Tom Tromey <tom@tromey.com>
6653
6654 * value.h (val_print): Don't declare.
6655 * valprint.h (val_print_array_elements)
6656 (val_print_scalar_formatted, generic_val_print): Don't declare.
6657 * valprint.c (generic_val_print_array): Take a struct value.
6658 (generic_val_print_ptr, generic_val_print_memberptr)
6659 (generic_val_print_bool, generic_val_print_int)
6660 (generic_val_print_char, generic_val_print_complex)
6661 (generic_val_print): Remove.
6662 (generic_value_print): Update.
6663 (do_val_print): Remove unused parameters. Don't call
6664 la_val_print.
6665 (val_print): Remove.
6666 (common_val_print): Update. Don't call value_check_printable.
6667 (val_print_scalar_formatted, val_print_array_elements): Remove.
6668 * rust-lang.c (rust_val_print): Remove.
6669 (rust_language_defn): Update.
6670 * p-valprint.c (pascal_val_print): Remove.
6671 (pascal_value_print_inner): Update.
6672 (pascal_object_print_val_fields, pascal_object_print_val):
6673 Remove.
6674 (pascal_object_print_static_field): Update.
6675 * p-lang.h (pascal_val_print): Don't declare.
6676 * p-lang.c (pascal_language_defn): Update.
6677 * opencl-lang.c (opencl_language_defn): Update.
6678 * objc-lang.c (objc_language_defn): Update.
6679 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6680 * m2-lang.h (m2_val_print): Don't declare.
6681 * m2-lang.c (m2_language_defn): Update.
6682 * language.h (struct language_defn) <la_val_print>: Remove.
6683 * language.c (unk_lang_value_print_inner): Rename. Change
6684 argument types.
6685 (unknown_language_defn, auto_language_defn): Update.
6686 * go-valprint.c (go_val_print): Remove.
6687 * go-lang.h (go_val_print): Don't declare.
6688 * go-lang.c (go_language_defn): Update.
6689 * f-valprint.c (f_val_print): Remove.
6690 * f-lang.h (f_value_print): Don't declare.
6691 * f-lang.c (f_language_defn): Update.
6692 * d-valprint.c (d_val_print): Remove.
6693 * d-lang.h (d_value_print): Don't declare.
6694 * d-lang.c (d_language_defn): Update.
6695 * cp-valprint.c (cp_print_value_fields)
6696 (cp_print_value_fields_rtti, cp_print_value): Remove.
6697 (cp_print_static_field): Update.
6698 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6699 (c_val_print_struct, c_val_print_union, c_val_print_int)
6700 (c_val_print_memberptr, c_val_print): Remove.
6701 * c-lang.h (c_val_print_array, cp_print_value_fields)
6702 (cp_print_value_fields_rtti): Don't declare.
6703 * c-lang.c (c_language_defn, cplus_language_defn)
6704 (asm_language_defn, minimal_language_defn): Update.
6705 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6706 (ada_val_print_enum): Take a struct value.
6707 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6708 (ada_val_print): Remove.
6709 (ada_value_print_1): Update.
6710 (printable_val_type): Remove.
6711 * ada-lang.h (ada_val_print): Don't declare.
6712 * ada-lang.c (ada_language_defn): Update.
6713
42331a1e
TT
67142020-03-13 Tom Tromey <tom@tromey.com>
6715
6716 * valprint.c (do_val_print): Update.
6717 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6718 a struct value.
6719 (value_to_value_object_no_release): Declare.
6720 * python/py-value.c (value_to_value_object_no_release): New
6721 function.
6722 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6723 struct value.
6724 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6725 function.
6726 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6727 a struct value.
6728 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6729 Declare.
6730 (gdbscm_apply_val_pretty_printer): Take a struct value.
6731 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6732 value.
6733 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6734 value.
6735 * extension-priv.h (struct extension_language_ops)
6736 <apply_val_pretty_printer>: Take a struct value.
6737 * cp-valprint.c (cp_print_value): Create a struct value.
6738 (cp_print_value): Update.
6739
3a916a97
TT
67402020-03-13 Tom Tromey <tom@tromey.com>
6741
6742 * ada-valprint.c (print_field_values): Call common_val_print.
6743
b59eac37
TT
67442020-03-13 Tom Tromey <tom@tromey.com>
6745
6746 * ada-valprint.c (val_print_packed_array_elements): Remove
6747 bitoffset and val parameters. Call common_val_print.
6748 (ada_val_print_string): Remove offset, address, and original_value
6749 parameters.
6750 (ada_val_print_array): Update.
6751 (ada_value_print_array): New function.
6752 (ada_value_print_1): Call it.
6753
03371129
TT
67542020-03-13 Tom Tromey <tom@tromey.com>
6755
6756 * ada-valprint.c (ada_value_print): Use common_val_print.
6757
2e088f8b
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6761
39ef85a8
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * ada-valprint.c (ada_value_print_num): New function.
6765 (ada_value_print_1): Use it.
6766
b9fa6e07
TT
67672020-03-13 Tom Tromey <tom@tromey.com>
6768
6769 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6770
416595d6
TT
67712020-03-13 Tom Tromey <tom@tromey.com>
6772
6773 * ada-valprint.c (ada_value_print_ptr): New function.
6774 (ada_value_print_1): Use it.
6775
5b5e15ec
TT
67762020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6779 call common_val_print.
6780 (ada_val_print_1): Update.
6781 (ada_value_print_1): New function.
6782 (ada_value_print_inner): Rewrite.
6783
fbf54e75
TT
67842020-03-13 Tom Tromey <tom@tromey.com>
6785
6786 * cp-valprint.c (cp_print_value_fields): Update.
6787 (cp_print_value): New function.
6788
64b653ca
TT
67892020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * m2-valprint.c (m2_value_print_inner): Use
6792 cp_print_value_fields.
6793 * cp-valprint.c (cp_print_value_fields): New function.
6794 * c-valprint.c (c_value_print_struct): New function.
6795 (c_value_print_inner): Use c_value_print_struct.
6796 * c-lang.h (cp_print_value_fields): Declare.
6797
6999f067
TT
67982020-03-13 Tom Tromey <tom@tromey.com>
6799
6800 * c-valprint.c (c_value_print_array): New function.
6801 (c_value_print_inner): Use it.
6802
ce80b8bd
TT
68032020-03-13 Tom Tromey <tom@tromey.com>
6804
6805 * c-valprint.c (c_value_print_memberptr): New function.
6806 (c_value_print_inner): Use it.
6807
2faac269
TT
68082020-03-13 Tom Tromey <tom@tromey.com>
6809
6810 * c-valprint.c (c_value_print_int): New function.
6811 (c_value_print_inner): Use it.
6812
da3e2c29
TT
68132020-03-13 Tom Tromey <tom@tromey.com>
6814
6815 * c-valprint.c (c_value_print_ptr): New function.
6816 (c_value_print_inner): Use it.
6817
50836231
TT
68182020-03-13 Tom Tromey <tom@tromey.com>
6819
6820 * c-valprint.c (c_value_print_inner): Rewrite.
6821
4f412b6e
TT
68222020-03-13 Tom Tromey <tom@tromey.com>
6823
6824 * valprint.c (generic_value_print_complex): New function.
6825 (generic_value_print): Use it.
6826
f5354008
TT
68272020-03-13 Tom Tromey <tom@tromey.com>
6828
6829 * valprint.c (generic_val_print_float): Don't call
6830 val_print_scalar_formatted.
6831 (generic_val_print, generic_value_print): Update.
6832
3eec3b05
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * valprint.c (generic_value_print_char): New function
6836 (generic_value_print): Use it.
6837
fdddfccb
TT
68382020-03-13 Tom Tromey <tom@tromey.com>
6839
6840 * valprint.c (generic_value_print_int): New function.
6841 (generic_value_print): Use it.
6842
6dde7521
TT
68432020-03-13 Tom Tromey <tom@tromey.com>
6844
6845 * valprint.c (generic_value_print_bool): New function.
6846 (generic_value_print): Use it.
6847
4112d2e6
TT
68482020-03-13 Tom Tromey <tom@tromey.com>
6849
6850 * valprint.c (generic_val_print_func): Simplify.
6851 (generic_val_print, generic_value_print): Update.
6852
65786af6
TT
68532020-03-13 Tom Tromey <tom@tromey.com>
6854
6855 * valprint.c (generic_val_print_flags): Remove.
6856 (generic_val_print, generic_value_print): Update.
6857 (val_print_type_code_flags): Add original_value parameter.
6858
40f3ce18
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * valprint.c (generic_val_print): Update.
6862 (generic_value_print): Update.
6863 * valprint.c (generic_val_print_enum): Don't call
6864 val_print_scalar_formatted.
6865
2a5b130b
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6869 * valprint.c (generic_value_print_ptr): New function.
6870
abc66ce9
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.c (generic_value_print): Rewrite.
6874
07a32858
TT
68752020-03-13 Tom Tromey <tom@tromey.com>
6876
6877 * p-valprint.c (pascal_object_print_value_fields)
6878 (pascal_object_print_value): New functions.
6879
64d64d3a
TT
68802020-03-13 Tom Tromey <tom@tromey.com>
6881
6882 * p-valprint.c (pascal_value_print_inner): Rewrite.
6883
6a95a1f5
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * f-valprint.c (f_value_print_innner): Rewrite.
6887
59fcdac6
TT
68882020-03-13 Tom Tromey <tom@tromey.com>
6889
6890 * m2-valprint.c (m2_print_unbounded_array): New overload.
6891 (m2_print_unbounded_array): Update.
6892 (m2_print_array_contents): Take a struct value.
6893 (m2_value_print_inner): Rewrite.
6894
d133c3e1
TT
68952020-03-13 Tom Tromey <tom@tromey.com>
6896
6897 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6898 (d_value_print_inner): New function.
6899 * d-lang.h (d_value_print_inner): Declare.
6900 * d-lang.c (d_language_defn): Use d_value_print_inner.
6901
23b0f06b
TT
69022020-03-13 Tom Tromey <tom@tromey.com>
6903
6904 * go-valprint.c (go_value_print_inner): New function.
6905 * go-lang.h (go_value_print_inner): Declare.
6906 * go-lang.c (go_language_defn): Use go_value_print_inner.
6907
5f56f7cb
TT
69082020-03-13 Tom Tromey <tom@tromey.com>
6909
6910 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6911 API.
6912 (rust_val_print): Rewrite.
6913 (rust_value_print_inner): New function, from rust_val_print.
6914 (rust_language_defn): Use rust_value_print_inner.
6915
26792ee0
TT
69162020-03-13 Tom Tromey <tom@tromey.com>
6917
6918 * ada-valprint.c (ada_value_print_inner): New function.
6919 * ada-lang.h (ada_value_print_inner): Declare.
6920 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6921
24051bbe
TT
69222020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * f-valprint.c (f_value_print_innner): New function.
6925 * f-lang.h (f_value_print_innner): Declare.
6926 * f-lang.c (f_language_defn): Use f_value_print_innner.
6927
c0941be6
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * p-valprint.c (pascal_value_print_inner): New function.
6931 * p-lang.h (pascal_value_print_inner): Declare.
6932 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6933
62c4663d
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * m2-valprint.c (m2_value_print_inner): New function.
6937 * m2-lang.h (m2_value_print_inner): Declare.
6938 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6939
62182190
TT
69402020-03-13 Tom Tromey <tom@tromey.com>
6941
6942 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6943 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6944 * c-valprint.c (c_value_print_inner): New function.
6945 * c-lang.h (c_value_print_inner): Declare.
6946 * c-lang.c (c_language_defn, cplus_language_defn)
6947 (asm_language_defn, minimal_language_defn): Use
6948 c_value_print_inner.
6949
1e592a8a
TT
69502020-03-13 Tom Tromey <tom@tromey.com>
6951
6952 * p-valprint.c (pascal_object_print_value_fields): Now static.
6953 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6954
7fe471e9
TT
69552020-03-13 Tom Tromey <tom@tromey.com>
6956
6957 * c-valprint.c (c_val_print_array): Simplify.
6958
d121c6ce
TT
69592020-03-13 Tom Tromey <tom@tromey.com>
6960
6961 * valprint.c (value_print_array_elements): New function.
6962 * valprint.h (value_print_array_elements): Declare.
6963
4dba70ee
TT
69642020-03-13 Tom Tromey <tom@tromey.com>
6965
6966 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6967 * mips-tdep.c (mips_print_register): Use
6968 value_print_scalar_formatted.
6969
4f9ae810
TT
69702020-03-13 Tom Tromey <tom@tromey.com>
6971
6972 * valprint.h (value_print_scalar_formatted): Declare.
6973 * valprint.c (value_print_scalar_formatted): New function.
6974
156bfec9
TT
69752020-03-13 Tom Tromey <tom@tromey.com>
6976
6977 * valprint.h (generic_value_print): Declare.
6978 * valprint.c (generic_value_print): New function.
6979
2b4e573d
TT
69802020-03-13 Tom Tromey <tom@tromey.com>
6981
6982 * valprint.c (do_val_print): Call la_value_print_inner, if
6983 available.
6984 * rust-lang.c (rust_language_defn): Update.
6985 * p-lang.c (pascal_language_defn): Update.
6986 * opencl-lang.c (opencl_language_defn): Update.
6987 * objc-lang.c (objc_language_defn): Update.
6988 * m2-lang.c (m2_language_defn): Update.
6989 * language.h (struct language_defn) <la_value_print_inner>: New
6990 member.
6991 * language.c (unknown_language_defn, auto_language_defn): Update.
6992 * go-lang.c (go_language_defn): Update.
6993 * f-lang.c (f_language_defn): Update.
6994 * d-lang.c (d_language_defn): Update.
6995 * c-lang.c (c_language_defn, cplus_language_defn)
6996 (asm_language_defn, minimal_language_defn): Update.
6997 * ada-lang.c (ada_language_defn): Update.
6998
a1f6a07c
TT
69992020-03-13 Tom Tromey <tom@tromey.com>
7000
7001 * c-valprint.c (c_value_print): Use common_val_print.
7002
410cf315
TT
70032020-03-13 Tom Tromey <tom@tromey.com>
7004
7005 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7006
72a45c93
TT
70072020-03-13 Tom Tromey <tom@tromey.com>
7008
7009 * f-valprint.c (f77_print_array_1, f_val_print): Use
7010 common_val_print.
7011
040f66bd
TT
70122020-03-13 Tom Tromey <tom@tromey.com>
7013
7014 * riscv-tdep.c (riscv_print_one_register_info): Use
7015 common_val_print.
7016
a6e05a6c
TT
70172020-03-13 Tom Tromey <tom@tromey.com>
7018
7019 * mi/mi-main.c (output_register): Use common_val_print.
7020
3444c526
TT
70212020-03-13 Tom Tromey <tom@tromey.com>
7022
7023 * infcmd.c (default_print_one_register_info): Use
7024 common_val_print.
7025
c2a44efe
TT
70262020-03-13 Tom Tromey <tom@tromey.com>
7027
7028 * valprint.h (common_val_print_checked): Declare.
7029 * valprint.c (common_val_print_checked): New function.
7030 * stack.c (print_frame_arg): Use common_val_print_checked.
7031
b0c26e99
TT
70322020-03-13 Tom Tromey <tom@tromey.com>
7033
7034 * valprint.c (do_val_print): New function, from val_print.
7035 (val_print): Use do_val_print.
7036 (common_val_print): Use do_val_print.
7037
ce3acbe9
TT
70382020-03-13 Tom Tromey <tom@tromey.com>
7039
7040 * valprint.c (value_print): Use scoped_value_mark.
7041
96c7f873
TV
70422020-03-13 Tom de Vries <tdevries@suse.de>
7043
7044 PR symtab/25646
7045 * psymtab.c (partial_symtab::partial_symtab): Don't set
7046 globals_offset and statics_offset. Push element onto
7047 current_global_psymbols and current_static_psymbols stacks.
7048 (concat): New function.
7049 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7050 element from current_global_psymbols and current_static_psymbols
7051 stacks. Concat popped elements to global_psymbols and
7052 static_symbols.
7053 (add_psymbol_to_list): Use current_global_psymbols and
7054 current_static_psymbols stacks.
7055 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7056 current_static_psymbols fields.
7057
6ba0a321
CB
70582020-03-12 Christian Biesinger <cbiesinger@google.com>
7059
7060 * corelow.c (sniff_core_bfd): Remove.
7061 (class core_target) <m_core_vec>: Remove.
7062 (core_target::core_target): Update.
7063 (core_file_fns): Remove.
7064 (deprecated_add_core_fns): Remove.
7065 (default_core_sniffer): Remove.
7066 (sniff_core_bfd): Remove.
7067 (default_check_format): Remove.
7068 (gdb_check_format): Remove.
7069 (core_target_open): Update.
7070 (core_target::get_core_register_section): Update.
7071 (get_core_registers_cb): Update.
7072 (core_target::fetch_registers): Update.
7073 * gdbcore.h (struct core_fns): Remove.
7074 (deprecated_add_core_fns): Remove.
7075 (default_core_sniffer): Remove.
7076 (default_check_format): Remove.
7077
227031b2
TT
70782020-03-12 Tom Tromey <tom@tromey.com>
7079
7080 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7081 CORE_ADDR.
7082 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7083
53807e9f
TT
70842020-03-12 Tom Tromey <tom@tromey.com>
7085
7086 * remote.c (remote_target::download_tracepoint)
7087 (remote_target::enable_tracepoint)
7088 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7089 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7090 sprintf_vma.
7091
64f25102
TT
70922020-03-12 Tom Tromey <tom@tromey.com>
7093
7094 * symfile-mem.c: Update CORE_ADDR size assert.
7095
272cd5a3
SM
70962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * selftest.m4: Move to gdbsupport/.
7099 * acinclude.m4: Update path to selftest.m4.
7100
74cd3f9d
SM
71012020-03-12 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7104 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7105 gdbarch-selfselftests.c and selftest-arch.c.
7106 (SUBDIR_UNITTESTS_OBS): Rename to...
7107 (SELFTESTS_OBS): ... this.
7108 (COMMON_SFILES): Remove disasm-selftests.c and
7109 gdbarch-selftests.c.
7110 * configure.ac: Don't add selftest-arch.{c,o} to
7111 CONFIG_{SRCS,OBS}.
7112 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7113 preprocessor conditions.
7114
db6878ac
SM
71152020-03-12 Simon Marchi <simon.marchi@efficios.com>
7116
7117 * configure.ac: Don't source bfd/development.sh.
7118 * selftest.m4: Modify comment.
7119 * configure: Re-generate.
7120
4d696a5c
SM
71212020-03-12 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7124 not "true" or "false".
7125 * configure: Re-generate.
7126
8dd8e1c7
CB
71272020-03-12 Christian Biesinger <cbiesinger@google.com>
7128
7129 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7130 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7131 renamed to arm_nbsd_supply_gregset.
7132 (fetch_register): Update to call arm_nbsd_supply_gregset.
7133 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7134 (arm_netbsd_nat_target::fetch_registers): Update.
7135 (fetch_elfcore_registers): Removed.
7136 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7137 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7138 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7139 not require NetBSD system headers.
7140 (arm_nbsd_regset): New struct.
7141 (arm_nbsd_iterate_over_regset_sections): New function.
7142 (arm_netbsd_init_abi_common): Updated to call
7143 set_gdbarch_iterate_over_regset_sections.
7144 * arm-nbsd-tdep.h: New file.
7145
dd69bf7a
KB
71462020-03-11 Kevin Buettner <kevinb@redhat.com>
7147
7148 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7149 recursion.
7150
a0761e34
SM
71512020-03-11 Simon Marchi <simon.marchi@efficios.com>
7152
7153 * configure: Re-generate.
7154
e7a82140
TT
71552020-03-11 Tom Tromey <tromey@adacore.com>
7156
7157 * ada-typeprint.c (print_choices): Fix comment.
7158
dcc050c8
AB
71592020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7160
7161 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7162 previous item in the list, when the list has no items.
7163
1c33af77
TV
71642020-03-11 Tom de Vries <tdevries@suse.de>
7165
7166 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7167 PROP_LOCLIST handling code.
7168
8c95582d
AB
71692020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7170
7171 * buildsym-legacy.c (record_line): Pass extra parameter to
7172 record_line.
7173 * buildsym.c (buildsym_compunit::record_line): Take an extra
7174 parameter, reduce duplication in the line table, and record the
7175 is_stmt flag in the line table.
7176 * buildsym.h (buildsym_compunit::record_line): Add extra
7177 parameter.
7178 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7179 non-statement lines.
7180 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7181 this to the symtab builder.
7182 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7183 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7184 through to dwarf_record_line_1.
7185 * infrun.c (process_event_stop_test): When stepping, don't stop at
7186 a non-statement instruction, and only refresh the step info when
7187 we land in the middle of a line's range. Also add an extra
7188 comment.
7189 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7190 field.
7191 * record-btrace.c (btrace_find_line_range): Only record lines
7192 marked as is-statement.
7193 * stack.c (frame_show_address): Show the frame address if we are
7194 in a non-statement sal.
7195 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7196 (maintenance_print_one_line_table): Print a header for the is_stmt
7197 column, and include is_stmt information in the output.
7198 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7199 preference to non-statements.
7200 (find_pcs_for_symtab_line): Prefer is-statement entries.
7201 (find_line_common): Likewise.
7202 * symtab.h (struct linetable_entry): Add is_stmt field.
7203 (struct symtab_and_line): Likewise.
7204 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7205 arranging the line table.
7206
e4003a34
TV
72072020-03-07 Tom de Vries <tdevries@suse.de>
7208
7209 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7210 DIE.
7211
e8932576
TT
72122020-03-07 Tom Tromey <tom@tromey.com>
7213
7214 * valops.c (value_literal_complex): Remove obsolete comment.
7215 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7216 comment.
7217
29734269
SM
72182020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7219
7220 * infrun.h: Forward-declare thread_info.
7221 (set_step_info): Add thread_info parameter, add doc.
7222 * infrun.c (set_step_info): Add thread_info parameter, move doc
7223 to header.
7224 * infrun.c (process_event_stop_test): Pass thread to
7225 set_step_info call.
7226 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7227 set_step_info.
7228 (prepare_one_step): Add thread_info parameter, pass it to
7229 set_step_frame and prepare_one_step (recursive) call.
7230 (step_1): Pass thread to prepare_one_step call.
7231 (step_command_fsm::should_stop): Pass thread to
7232 prepare_one_step.
7233 (until_next_fsm): Pass thread to set_step_frame call.
7234 (finish_command): Pass thread to set_step_info call.
7235
b7d64b29
HD
72362020-03-06 Hannes Domani <ssbssa@yahoo.de>
7237
7238 * windows-tdep.c (windows_solib_create_inferior_hook):
7239 Check if inferior is running.
7240
09f2921c
TV
72412020-03-06 Tom de Vries <tdevries@suse.de>
7242
7243 * NEWS: Fix "the the".
7244 * ctfread.c: Same.
7245
fd760e79
TV
72462020-03-06 Tom de Vries <tdevries@suse.de>
7247
7248 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7249
20ea4a60
AB
72502020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7251
7252 * .dir-locals.el: Add a comment referencing the other copies of
7253 this file.
7254
0afbabf0
JB
72552020-03-05 John Baldwin <jhb@FreeBSD.org>
7256
7257 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7258 psargs.
7259
842806cb
TBA
72602020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7261
7262 * .gitattributes: New file.
7263
be1e3d3e
TT
72642020-03-04 Tom Tromey <tom@tromey.com>
7265
7266 * symmisc.c (print_symbol_bcache_statistics)
7267 (print_objfile_statistics): Update.
7268 * symfile.c (allocate_symtab): Use intern.
7269 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7270 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7271 macro_cache>: Remove.
7272 <string_cache>: New member.
7273 (struct objfile) <intern>: New methods.
7274 * elfread.c (elf_symtab_read): Use intern.
7275 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7276 (dwarf2_compute_name, dwarf2_physname)
7277 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7278 names.
7279 (guess_partial_die_structure_name): Update.
7280 (partial_die_info::fixup): Intern name.
7281 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7282 name.
7283 (dwarf2_name): Intern name. Update.
7284 * buildsym.c (buildsym_compunit::get_macro_table): Use
7285 string_cache.
7286
4e7625fd
TT
72872020-03-04 Tom Tromey <tom@tromey.com>
7288
7289 * jit.c (bfd_open_from_target_memory): Make "target" const.
7290 * corefile.c (gnutarget): Now const.
7291 * gdbcore.h (gnutarget): Now const.
7292
46f9f931
HD
72932020-03-04 Hannes Domani <ssbssa@yahoo.de>
7294
7295 * NEWS: Mention support for WOW64 processes.
7296 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7297 (amd64_windows_segment_register_p): Remove static.
7298 (_initialize_amd64_windows_nat): Update.
7299 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7300 * i386-windows-nat.c (context_offset): Update.
7301 (i386_mappings): Rename and remove static.
7302 (i386_windows_segment_register_p): Remove static.
7303 (_initialize_i386_windows_nat): Update.
7304 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7305 (STATUS_WX86_SINGLE_STEP): New macro.
7306 (EnumProcessModulesEx): New macro.
7307 (Wow64SuspendThread): New macro.
7308 (Wow64GetThreadContext): New macro.
7309 (Wow64SetThreadContext): New macro.
7310 (Wow64GetThreadSelectorEntry): New macro.
7311 (windows_set_context_register_offsets): Add static.
7312 (windows_set_segment_register_p): Likewise.
7313 (windows_add_thread): Adapt for WOW64 processes.
7314 (windows_fetch_one_register): Likewise.
7315 (windows_nat_target::fetch_registers): Likewise.
7316 (windows_store_one_register): Likewise.
7317 (display_selector): Likewise.
7318 (display_selectors): Likewise.
7319 (handle_exception): Likewise.
7320 (windows_continue): Likewise.
7321 (windows_nat_target::resume): Likewise.
7322 (windows_add_all_dlls): Likewise.
7323 (do_initial_windows_stuff): Likewise.
7324 (windows_nat_target::attach): Likewise.
7325 (windows_get_exec_module_filename): Likewise.
7326 (windows_nat_target::create_inferior): Likewise.
7327 (windows_xfer_siginfo): Likewise.
7328 (_initialize_loadable): Initialize Wow64SuspendThread,
7329 Wow64GetThreadContext, Wow64SetThreadContext,
7330 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7331 * windows-nat.h (windows_set_context_register_offsets):
7332 Remove declaration.
7333 (windows_set_segment_register_p): Likewise.
7334 (i386_windows_segment_register_p): Add declaration.
7335 (amd64_windows_segment_register_p): Likewise.
7336
440cf44e
LM
73372020-03-04 Luis Machado <luis.machado@linaro.org>
7338
7339 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7340 in "info registers" for AArch64/ARM.
7341
7342 The change caused "info registers" to not print GPR's.
7343
7344 gdb/ChangeLog:
7345
7346 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7347
7348 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7349 when reg->group is empty and reggroup is not.
7350
1009d92f
TT
73512020-03-03 Tom Tromey <tromey@adacore.com>
7352
7353 * dwarf2/frame.c (struct dwarf2_frame_cache)
7354 <checked_tailcall_bottom, entry_cfa_sp_offset,
7355 entry_cfa_sp_offset_p>: Remove members.
7356 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7357 (dwarf2_frame_prev_register): Don't call
7358 dwarf2_tailcall_sniffer_first.
7359 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7360 * frame-unwind.c (add_unwinder): New fuction.
7361 (frame_unwind_init): Use it. Add tailcall unwinder.
7362
5e5d66b6
AB
73632020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7364 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7365
7366 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7367 value should be printed as true.
7368
584cf46d
HD
73692020-03-03 Hannes Domani <ssbssa@yahoo.de>
7370
7371 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7372 (windows_init_abi): Set and use windows_so_ops.
7373
7b973adc
SDJ
73742020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7375
7376 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7377 when verifying if dealing with a convenience variable.
7378
bb7b70ab
LM
73792020-03-03 Luis Machado <luis.machado@linaro.org>
7380
7381 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7382
9822cb57
SM
73832020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7384
7385 * infrun.c (gdbarch_supports_displaced_stepping): New.
7386 (use_displaced_stepping): Break up conditions in smaller pieces.
7387 Use gdbarch_supports_displaced_stepping.
7388 (displaced_step_prepare_throw): Use
7389 gdbarch_supports_displaced_stepping.
7390
63e163f2
AB
73912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * NEWS: Mention new behaviour of the history filename.
7394 * top.c (write_history_p): Add comment.
7395 (show_write_history_p): Add header comment, give a different
7396 message when history writing is on, but the history filename is
7397 empty.
7398 (history_filename): Add comment.
7399 (history_filename_empty): New function.
7400 (show_history_filename): Add header comment, give a different
7401 message when the filename is empty.
7402 (init_history): Compare history_filename against nullptr, and only
7403 read history if the filename is not empty.
7404 (set_history_filename): Add header comment, and only make
7405 non-empty filenames absolute.
7406 (init_main): Make the filename argument to 'set history filename'
7407 optional.
7408
81b86b97
CB
74092020-03-02 Christian Biesinger <cbiesinger@google.com>
7410
7411 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7412 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7413 (fetch_fp_register): Update.
7414 (fetch_fp_regs): Update.
7415 (store_fp_register): Update.
7416 (store_fp_regs): Update.
7417 (arm_netbsd_nat_target::read_description): New function.
7418 (fetch_elfcore_registers): Update.
7419
24ed6739
AB
74202020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7423 general_thread if the stop reply is missing a thread-id.
7424 (remote_target::process_stop_reply): Use the first non-exited
7425 thread if the target didn't pass a thread-id.
7426 * infrun.c (do_target_wait): Move call to
7427 switch_to_inferior_no_thread to ....
7428 (do_target_wait_1): ... here.
7429
a84bb2a0
JT
74302020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7431
7432 * debuginfod-support.c: Include defs.h first.
7433
658dadf0
TV
74342020-02-28 Tom de Vries <tdevries@suse.de>
7435
7436 * symfile.c (set_initial_language): Use default language for lookup.
7437
4ebe4877
SM
74382020-02-28 Simon Marchi <simon.marchi@efficios.com>
7439
7440 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7441 reader variable, pass `this` to read_cutu_die_from_dwo.
7442
e5da1139
AM
74432020-02-27 Aaron Merey <amerey@redhat.com>
7444
7445 * source.c (open_source_file): Check for nullptr when computing
7446 srcpath.
7447
317f7127
TT
74482020-02-27 Tom Tromey <tromey@adacore.com>
7449
7450 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7451 member.
7452 (dwarf2_add_field): Don't update nfields.
7453 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7454
3104d9ee
AB
74552020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7456
7457 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7458 abs.
7459
b83470bf
TT
74602020-02-26 Tom Tromey <tom@tromey.com>
7461
7462 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7463 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7464 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7465 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7466 per_cu_data.
7467
edfe0a0c
TT
74682020-02-26 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2/index-write.c (psym_index_map): Change type.
7471 (add_address_entry_worker, write_one_signatured_type)
7472 (recursively_count_psymbols, recursively_write_psymbols)
7473 (class debug_names, psyms_seen_size, write_gdbindex)
7474 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7475
0d79cdc4
AM
74762020-02-26 Aaron Merey <amerey@redhat.com>
7477
7478 * Makefile.in: Handle optional debuginfod support.
7479 * NEWS: Update.
7480 * README: Add --with-debuginfod summary.
7481 * config.in: Regenerate.
7482 * configure: Regenerate.
7483 * configure.ac: Handle optional debuginfod support.
7484 * debuginfod-support.c: debuginfod helper functions.
7485 * debuginfod-support.h: Ditto.
7486 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7487 summary.
7488 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7489 when a dwz file cannot be found.
7490 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7491 debuginfo file cannot be found.
7492 * source.c (open_source_file): Query debuginfod servers when a
7493 source file cannot be found.
7494 * top.c (print_gdb_configuration): Include
7495 --{with,without}-debuginfod in the output.
7496
b65ce565
JG
74972020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7498
7499 * thread.c (thr_try_catch_cmd): Print thread name.
7500
d4c9a4f8
SM
75012020-02-26 Simon Marchi <simon.marchi@efficios.com>
7502
7503 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7505 dwarf2_fetch_die_type_sect_off): Move to...
7506 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7507 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7508 dwarf2_fetch_die_type_sect_off): ... here.
7509 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7510 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7511 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7512
0dce4280
TV
75132020-02-26 Tom de Vries <tdevries@suse.de>
7514
7515 PR gdb/25603
7516 * symfile.c (set_initial_language): Exit-early if
7517 language_mode == language_mode_manual.
7518
450a1bfc
SM
75192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7522 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7523 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7524
9e80cfa1
AB
75252020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * gdbtypes.c (create_array_type_with_stride): Handle negative
7528 array strides.
7529 * valarith.c (value_subscripted_rvalue): Likewise.
7530
09624f1f
LM
75312020-02-25 Luis Machado <luis.machado@linaro.org>
7532
7533 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7534
8cb5117c
SM
75352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * loc.h (dwarf2_get_die_type): Move to...
7538 * read.h (dwarf2_get_die_type): ... here.
7539 * read.c (dwarf2_get_die_type): Move doc to header.
7540
c325c44e
JB
75412020-02-25 Joel Brobecker <brobecker@adacore.com>
7542
7543 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7544 'gnulib/Makefile.in' to the list.
7545
4ac93832
TT
75462020-02-24 Tom Tromey <tom@tromey.com>
7547
7548 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7549 Remove.
7550 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7551 XOBNEWVEC.
7552
197400e8
TT
75532020-02-24 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7556 New method.
7557 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7558 (dw2_do_instantiate_symtab, dw2_get_file_names)
7559 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7560
76935768
TT
75612020-02-24 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7564 make_scoped_restore.
7565 (dwarf2_psymtab::read_symtab): Don't clear
7566 reading_partial_symbols.
7567
a88ef40d
TV
75682020-02-24 Tom de Vries <tdevries@suse.de>
7569
7570 PR gdb/25592
7571 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7572
c9af6521
TV
75732020-02-24 Tom de Vries <tdevries@suse.de>
7574
7575 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7576 commands layout next/prev/regs.
7577
5707a07a
TT
75782020-02-22 Tom Tromey <tom@tromey.com>
7579
7580 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7581 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7582
3b0fb49e
TT
75832020-02-22 Tom Tromey <tom@tromey.com>
7584
7585 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7586
283be8bf
TT
75872020-02-22 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7590 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7591 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7592 * tui/tui.c (_initialize_tui): Add usage text.
7593
ca793b96
TT
75942020-02-22 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-win.c (tui_set_focus_command)
7597 (tui_set_win_height_command): Use error_no_arg.
7598 (_initialize_tui_win): Update help text.
7599 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7600
432b5c40
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7604 * tui/tui-disasm.h (struct tui_disasm_window)
7605 <display_start_addr>: Declare.
7606 * tui/tui-source.h (struct tui_source_window)
7607 <display_start_addr>: Declare.
7608 * tui/tui-winsource.h (struct tui_source_window_base)
7609 <show_source_line, display_start_addr>: New methods.
7610 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7611 Rename and move to protected section.
7612 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7613 (tui_source_window_base::do_erase_source_content): Update.
7614 (tui_source_window_base::show_source_line): Now a method.
7615 (tui_source_window_base::show_source_content)
7616 (tui_source_window_base::tui_source_window_base)
7617 (tui_source_window_base::rerender)
7618 (tui_source_window_base::refill)
7619 (tui_source_window_base::do_scroll_horizontal)
7620 (tui_source_window_base::set_is_exec_point_at)
7621 (tui_source_window_base::update_breakpoint_info)
7622 (tui_source_window_base::update_exec_info): Update.
7623 * tui/tui-source.c (tui_source_window::set_contents)
7624 (tui_source_window::showing_source_p)
7625 (tui_source_window::do_scroll_vertical)
7626 (tui_source_window::location_matches_p)
7627 (tui_source_window::line_is_displayed): Update.
7628 (tui_source_window::display_start_addr): New method.
7629 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7630 (tui_disasm_window::do_scroll_vertical)
7631 (tui_disasm_window::location_matches_p): Update.
7632 (tui_disasm_window::display_start_addr): New method.
7633
01b1af32
TT
76342020-02-22 Tom Tromey <tom@tromey.com>
7635
7636 * NEWS: Add entry for gdb.register_window_type.
7637 * tui/tui-layout.h (window_factory): New typedef.
7638 (tui_register_window): Declare.
7639 * tui/tui-layout.c (saved_tui_windows): New global.
7640 (tui_apply_current_layout): Use it.
7641 (tui_register_window): New function.
7642 * python/python.c (do_start_initialization): Call
7643 gdbpy_initialize_tui.
7644 (python_GdbMethods): Add "register_window_type" function.
7645 * python/python-internal.h (gdbpy_register_tui_window)
7646 (gdbpy_initialize_tui): Declare.
7647 * python/py-tui.c: New file.
7648 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7649
fc96d20b
TT
76502020-02-22 Tom Tromey <tom@tromey.com>
7651
7652 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7653
935c78c0
TT
76542020-02-22 Tom Tromey <tom@tromey.com>
7655
7656 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7657 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7658 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7659 (tui_set_win_focus_to): Move from tui-win.c.
7660
0240c8f1
TT
76612020-02-22 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7664 functions.
7665 (known_window_types): New global.
7666 (tui_get_window_by_name): Reimplement.
7667 (initialize_known_windows): New function.
7668 (validate_window_name): Rewrite.
7669 (_initialize_tui_layout): Call initialize_known_windows.
7670
fdb01f0c
TT
76712020-02-22 Tom Tromey <tom@tromey.com>
7672
7673 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7674 Remove constants.
7675 * tui/tui-winsource.h (struct tui_source_window_base)
7676 <tui_source_window_base>: Remove parameter.
7677 * tui/tui-winsource.c
7678 (tui_source_window_base::tui_source_window_base): Remove
7679 parameter.
7680 (tui_source_window_base::refill): Update.
7681 * tui/tui-stack.h (struct tui_locator_window)
7682 <tui_locator_window>: Update.
7683 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7684 Default the constructor.
7685 * tui/tui-regs.h (struct tui_data_item_window)
7686 <tui_data_item_window>: Default the constructor.
7687 (struct tui_data_window) <tui_data_window>: Likewise.
7688 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7689 Default the constructor.
7690 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7691 Default the constructor.
7692 <type>: Remove.
7693 (struct tui_win_info) <tui_win_info>: Default the constructor.
7694 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7695 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7696 Default the constructor.
7697
865a5aec
TT
76982020-02-22 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7701 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7702 * tui/tui-win.c (tui_resize_all): Don't call
7703 tui_delete_invisible_windows.
7704 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7705 done.
7706 (tui_set_layout): Update.
7707 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7708 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7709 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7710
e098d18c
TT
77112020-02-22 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7714 correctly.
7715
eb9c8874
TT
77162020-02-22 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7719
7eed1a8e
TT
77202020-02-22 Tom Tromey <tom@tromey.com>
7721
7722 * tui/tui-winsource.h (struct tui_source_window_iterator)
7723 <inner_iterator>: New etytypedef.
7724 <tui_source_window_iterator>: Take "end" parameter.
7725 <tui_source_window_iterator>: Take iterator.
7726 <operator*, advance>: Update.
7727 <m_iter>: Change type.
7728 <m_end>: New field.
7729 (struct tui_source_windows) <begin, end>: Update.
7730 * tui/tui-layout.c (tui_windows): New global.
7731 (tui_apply_current_layout): Clear tui_windows.
7732 (tui_layout_window::apply): Update tui_windows.
7733 * tui/tui-data.h (tui_windows): Declare.
7734 (all_tui_windows): Now inline function.
7735 (class tui_window_iterator, struct all_tui_windows): Remove.
7736
7c043ba6
TT
77372020-02-22 Tom Tromey <tom@tromey.com>
7738
7739 PR tui/17850:
7740 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7741 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7742 "height" argument.
7743 (class tui_layout_window) <get_sizes>: Likewise.
7744 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7745 argument.
7746 <get_sizes>: Add "height" argument.
7747 <m_vertical>: New field.
7748 * tui/tui-layout.c (tui_layout_split::clone): Update.
7749 (tui_layout_split::get_sizes): Add "height" argument.
7750 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7751 (tui_new_layout_command): Parse "-horizontal".
7752 (_initialize_tui_layout): Update help string.
7753 (tui_layout_split::specification): Add "-horizontal" when needed.
7754 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7755 argument.
7756 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7757 New methods.
7758
6bc56648
TT
77592020-02-22 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui-layout.h (enum tui_adjust_result): New.
7762 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7763 (class tui_layout_window) <adjust_size>: Return
7764 tui_adjust_result. Rewrite.
7765 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7766 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7767
c22fef7e
TT
77682020-02-22 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7771 parameter and return types.
7772 (class tui_layout_base) <specification>: Add "depth".
7773 (class tui_layout_window) <specification>: Add "depth".
7774 (class tui_layout_split) <specification>: Add "depth".
7775 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7776 and return types.
7777 (tui_new_layout_command): Parse sub-layouts.
7778 (_initialize_tui_layout): Update help string.
7779 (tui_layout_window::specification): Add "depth".
7780 (add_layout_command): Update.
7781
ee325b61
TT
77822020-02-22 Tom Tromey <tom@tromey.com>
7783
7784 * NEWS: Add "tui new-layout" item.
7785 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7786 Add new-layout command to help text.
7787 (validate_window_name): New function.
7788 (tui_new_layout_command): New function.
7789 (_initialize_tui_layout): Register "new-layout".
7790 (tui_layout_window::specification): New method.
7791 (tui_layout_window::specification): New method.
7792 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7793 method.
7794 (class tui_layout_window) <specification>: New method.
7795 (class tui_layout_split) <specification>: New method.
7796
416eb92d
TT
77972020-02-22 Tom Tromey <tom@tromey.com>
7798
7799 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7800 * tui/tui-win.c (window_name_completer): Update comment.
7801 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7802 Declare method.
7803 (class tui_layout_window) <replace_window>: Likewise.
7804 (class tui_layout_split) <replace_window>: Likewise.
7805 (tui_set_layout): Don't declare.
7806 (tui_set_initial_layout): Declare function.
7807 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7808 (asm_regs_layout): New globals.
7809 (tui_current_layout, show_layout): Remove.
7810 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7811 (find_layout, tui_apply_layout): New function.
7812 (layout_completer): Remove.
7813 (tui_next_layout): Reimplement.
7814 (tui_next_layout_command): New function.
7815 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7816 (tui_regs_layout): Reimplement.
7817 (tui_regs_layout_command): New function.
7818 (extract_display_start_addr): Rewrite.
7819 (next_layout, prev_layout): Remove.
7820 (tui_layout_window::replace_window): New method.
7821 (tui_layout_split::replace_window): New method.
7822 (destroy_layout): New function.
7823 (layout_list): New global.
7824 (add_layout_command): New function.
7825 (initialize_layouts): Update.
7826 (tui_layout_command): New function.
7827 (_initialize_tui_layout): Install "layout" commands.
7828 * tui/tui-data.h (enum tui_layout_type): Remove.
7829 (tui_current_layout): Don't declare.
7830
0dbc2fc7
TT
78312020-02-22 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-regs.c (tui_reg_layout): Remove.
7834 (tui_reg_command): Use tui_regs_layout.
7835 * tui/tui-layout.h (tui_reg_command): Declare.
7836 * tui/tui-layout.c (tui_reg_command): New function.
7837
5afe342e
TT
78382020-02-22 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui.c (tui_rl_delete_other_windows): Call
7841 tui_remove_some_windows.
7842 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7843 Declare method.
7844 (class tui_layout_window) <remove_windows>: New method.
7845 (class tui_layout_split) <remove_windows>: Declare.
7846 (tui_remove_some_windows): Declare.
7847 * tui/tui-layout.c (tui_remove_some_windows): New function.
7848 (tui_layout_split::remove_windows): New method.
7849
427326a8
TT
78502020-02-22 Tom Tromey <tom@tromey.com>
7851
7852 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7853 * tui/tui-layout.h (tui_next_layout): Declare.
7854 * tui/tui-layout.c (tui_next_layout): New function.
7855
3fe12b6d
TT
78562020-02-22 Tom Tromey <tom@tromey.com>
7857
7858 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7859 correct coordinates.
7860
59b8b5d2
TT
78612020-02-22 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7864 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7865 DATA_WIN case.
7866
2a3d458b
TT
78672020-02-22 Tom Tromey <tom@tromey.com>
7868
7869 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7870 TUI_DISASM_WIN, not tui_win_list.
7871
3f0cbb04
TT
78722020-02-22 Tom Tromey <tom@tromey.com>
7873
7874 * valprint.c (generic_val_print_enum_1)
7875 (val_print_type_code_flags): Style member names.
7876 * rust-lang.c (val_print_struct, rust_print_enum)
7877 (rust_print_struct_def, rust_internal_print_type): Style member
7878 names.
7879 * p-valprint.c (pascal_object_print_value_fields): Style member
7880 names. Only call fprintf_symbol_filtered for static members.
7881 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7882 * f-valprint.c (f_val_print): Style member names.
7883 * f-typeprint.c (f_type_print_base): Style member names.
7884 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7885 call fprintf_symbol_filtered for static members.
7886 (cp_print_class_member): Style member names.
7887 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7888 member names.
7889 * ada-valprint.c (ada_print_scalar): Style enum names.
7890 (ada_val_print_enum): Likewise.
7891 * ada-typeprint.c (print_enum_type): Style enum names.
7892
d4d947ae
TT
78932020-02-21 Tom Tromey <tom@tromey.com>
7894
7895 * psympriv.h (struct partial_symtab): Update comment.
7896
e94e944b
TT
78972020-02-21 Tom Tromey <tromey@adacore.com>
7898
7899 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7900 type is CORE_ADDR.
7901
1eb73179
TV
79022020-02-21 Tom de Vries <tdevries@suse.de>
7903
7904 PR gdb/25534
7905 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7906 if dependencies[i]->user != NULL.
7907
4f180d53
AT
79082020-02-21 Ali Tamur <tamur@google.com>
7909
7910 * dwarf2/read.c (dwarf2_name): Add null check.
7911
22b6cd70
TT
79122020-02-20 Tom Tromey <tom@tromey.com>
7913
7914 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7915 ">=", in binary search.
7916 (dwarf2_find_containing_comp_unit): New overload.
7917 (run_test): New self-test.
7918 (_initialize_dwarf2_read): Register new test.
7919
bd0cf5a6
NC
79202020-02-20 Nelson Chu <nelson.chu@sifive.com>
7921
7922 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7923 * riscv-tdep.h: Likewise.
7924 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7925 rv32-only CSR.
7926 * features/riscv/64bit-csr.xml: Regenerated.
7927
3f702acd
SDJ
79282020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7929 Tom Tromey <tom@tromey.com>
7930
7931 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7932 of 'fputc_unfiltered'.
7933 (putchar_unfiltered): Call 'fputc_unfiltered'.
7934 (fputc_unfiltered): Call 'fputs_unfiltered'.
7935
d13c7322
AB
79362020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7937
7938 * config.in: Regenerate.
7939 * configure: Regenerate.
7940 * configure.ac: Add --with-python-libdir option.
7941 * main.c: Use WITH_PYTHON_LIBDIR.
7942
869d8950
TT
79432020-02-19 Tom Tromey <tom@tromey.com>
7944
7945 * symtab.c (general_symbol_info::compute_and_set_names): Use
7946 obstack_strndup. Simplify call to symbol_set_demangled_name.
7947
298e9637
SM
79482020-02-19 Simon Marchi <simon.marchi@efficios.com>
7949
7950 * dwarf2/read.c (allocate_signatured_type_table,
7951 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7952 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7953 Remove objfile parameter, update all callers.
7954
08410482
DE
79552020-02-19 Doug Evans <dje@google.com>
7956
7957 PR rust/25535
7958 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7959 rust_enum_variant calculation.
7960
dfdeeca1
TT
79612020-02-19 Tom Tromey <tromey@adacore.com>
7962
7963 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7964
2ef5453b
TT
79652020-02-19 Tom Tromey <tromey@adacore.com>
7966
7967 * ada-lang.c (cache_symbol): Use obstack_strdup.
7968
9f1528a1
AB
79692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * configure: Regenerate.
7972
d3c22fa8
TT
79732020-02-19 Tom Tromey <tromey@adacore.com>
7974
7975 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7976 NULL check.
7977
bf84f706
MR
79782020-02-19 Maciej W. Rozycki <macro@wdc.com>
7979
7980 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7981
d1c9b20f
AB
79822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7985 if GDBSERVER is not defined.
7986 (riscv_tdesc_cache): Likewise, also store const target_desc.
7987 (STATIC_IN_GDB): Define.
7988 (riscv_create_target_description): Update declaration with
7989 STATIC_IN_GDB.
7990 (riscv_lookup_target_description): New function, only define if
7991 GDBSERVER is not defined.
7992 * arch/riscv.h (riscv_create_target_description): Declare only
7993 when GDBSERVER is defined.
7994 (riscv_lookup_target_description): New declaration when GDBSERVER
7995 is not defined.
7996 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7997 (riscv_linux_read_features): ...this, and return
7998 riscv_gdbarch_features instead of target_desc.
7999 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8000 (riscv_linux_read_description): Rename to...
8001 (riscv_linux_read_features): ...this.
8002 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8003 Update to use riscv_gdbarch_features and
8004 riscv_lookup_target_description.
8005 * riscv-tdep.c (riscv_find_default_target_description): Use
8006 riscv_lookup_target_description instead of
8007 riscv_create_target_description.
8008
373d7ac0
SM
80092020-02-18 Simon Marchi <simon.marchi@efficios.com>
8010
8011 * valprint.c (generic_val_print_enum_1): When printing a flag
8012 enum with value 0 and there is no enumerator with value 0, print
8013 just "0" instead of "(unknown: 0x0)".
8014
b29a2df0
SM
80152020-02-18 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * valprint.c (generic_val_print_enum_1): Print unknown part of
8018 flag enum in hex.
8019
6740f0cc
SM
80202020-02-18 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8023 flag enums to contain duplicate enumerators.
8024 * valprint.c (generic_val_print_enum_1): Update comment.
8025
edd45eb0
SM
80262020-02-18 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.c: Include "count-one-bits.h".
8029 (update_enumeration_type_from_children): If an enumerator has
8030 multiple bits set, don't treat the enumeration as a "flag enum".
8031 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8032 of flag enums have 0 or 1 bit set.
8033
6d0cf446
BE
80342020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8035
8036 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8037 conversion.
8038 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8039 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8040 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8041 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8042 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8043
7001c1b7
SM
80442020-02-18 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8047
fdb61c6c
SM
80482020-02-14 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8051 displaced_step_closure_up.
8052 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8053 (struct displaced_step_closure_up):
8054 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8055 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8056 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8057 Likewise.
8058 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8059 * gdbarch.c, gdbarch.h: Re-generate.
8060 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8061 displaced_step_closure_up.
8062 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8063 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8064 * infrun.h (displaced_step_closure_up): New type alias.
8065 (struct displaced_step_inferior_state) <step_closure>: Change
8066 type to displaced_step_closure_up.
8067 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8068 displaced_step_closure_up.
8069 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8070
a4a38eb4
TT
80712020-02-14 Tom Tromey <tom@tromey.com>
8072
8073 * minidebug.c (gnu_debug_key): New global.
8074 (find_separate_debug_file_in_section): Use it.
8075
e8217e61
SM
80762020-02-14 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8079 std::unique_ptr.
8080 * gdbarch.c: Re-generate.
8081 * gdbarch.h: Re-generate.
8082 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8083 change.
8084 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8085 type to std::unique_ptr.
8086 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8087 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8088 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8089 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8090 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8092 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8093 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8094 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8095
d8d83535
SM
80962020-02-14 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8099 std::unique_ptr.
8100 (displaced_step_clear): Rename to...
8101 (displaced_step_reset): ... this. Just call displaced->reset ().
8102 (displaced_step_clear_cleanup): Rename to...
8103 (displaced_step_reset_cleanup): ... this.
8104 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8105 (displaced_step_fixup): Likewise.
8106 (resume_1): Likewise.
8107 (handle_inferior_event): Restore child's memory before calling
8108 displaced_step_fixup on the parent.
8109 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8110 to std::unique_ptr.
8111 <step_closure>: Change type to std::unique_ptr.
8112
5f661e03
SM
81132020-02-14 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * arm-tdep.c: Include count-one-bits.h.
8116 (cleanup_block_store_pc): Use count_one_bits.
8117 (cleanup_block_load_pc): Use count_one_bits.
8118 (arm_copy_block_xfer): Use count_one_bits.
8119 (thumb2_copy_block_xfer): Use count_one_bits.
8120 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8121 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8122 (thumb_get_next_pcs_raw): Use count_one_bits.
8123 (arm_get_next_pcs_raw): Use count_one_bits_l.
8124 * arch/arm.c (bitcount): Remove.
8125 * arch/arm.h (bitcount): Remove.
8126
8084e579
TT
81272020-02-14 Tom Tromey <tromey@adacore.com>
8128
8129 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8130 Update.
8131 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8132 * dwarf2/loc.c (call_site_find_chain_1): Return
8133 unique_xmalloc_ptr.
8134 (call_site_find_chain): Likewise.
8135
258bf0ee
RB
81362020-02-14 Richard Biener <rguenther@suse.de>
8137
8138 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8139 on expression with division operators.
8140
f98a8458
AKS
81412020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8142
8143 * MAINTAINERS (Write After Approval): Adding myself.
8144
d1437c0e
TT
81452020-02-12 Tom Tromey <tom@tromey.com>
8146
8147 * event-loop.c (event_data, gdb_event, event_handler_func):
8148 Remove.
8149
3d4560f7
TT
81502020-02-12 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8153 (dwarf2_frame_objfile_data): Add comment.
8154 (find_comp_unit, set_comp_unit): New functions.
8155 (dwarf2_frame_find_fde): Use find_comp_unit.
8156 (dwarf2_build_frame_info): Use set_comp_unit.
8157
21982304
TT
81582020-02-12 Tom Tromey <tom@tromey.com>
8159
8160 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8161 (comp_unit): Don't initialize objfile.
8162 (execute_cfa_program): Add text_offset parameter.
8163 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8164 (dwarf2_frame_cache): Update.
8165 (dwarf2_build_frame_info): Don't set "objfile" member.
8166
4debb237
TT
81672020-02-12 Tom Tromey <tom@tromey.com>
8168
8169 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8170 (decode_frame_entry): Likewise.
8171 (dwarf2_build_frame_info): Update.
8172
0d404d44
TT
81732020-02-12 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8176 (decode_frame_entry_1): Use the comp_unit obstack.
8177
a7a3ae5c
TT
81782020-02-12 Tom Tromey <tom@tromey.com>
8179
8180 * dwarf2/frame.c (struct comp_unit): Add initializers and
8181 constructor.
8182 (dwarf2_frame_objfile_data): Store a comp_unit.
8183 (dwarf2_frame_find_fde): Update.
8184 (dwarf2_build_frame_info): Use "new".
8185
a9d65418
TT
81862020-02-12 Tom Tromey <tom@tromey.com>
8187
8188 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8189 (dwarf2_fde_table): Typedef for std::vector.
8190 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8191 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8192 (decode_frame_entry): Update.
8193 (dwarf2_build_frame_info): Use "new".
8194
7559c217
CB
81952020-02-12 Christian Biesinger <cbiesinger@google.com>
8196
8197 * arm-tdep.c (arm_gdbarch_init): Update.
8198 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8199 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8200 have_neon, is_m>: Change to bool.
8201
aeefc73c
CB
82022020-02-12 Christian Biesinger <cbiesinger@google.com>
8203
8204 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8205
d27b8e5f
TT
82062020-02-12 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8209
cd5900f3
HD
82102020-02-12 Hannes Domani <ssbssa@yahoo.de>
8211
8212 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8213 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8214
f056b22b
TT
82152020-02-11 Tom Tromey <tom@tromey.com>
8216
8217 * psymtab.h: Update comment.
8218
f92ff6b5
TT
82192020-02-11 Tom Tromey <tom@tromey.com>
8220
8221 * gdb_obstack.h (struct auto_obstack): Use
8222 DISABLE_COPY_AND_ASSIGN.
8223
3fd6912b
TT
82242020-02-11 Tom Tromey <tom@tromey.com>
8225
8226 * dwarf2/frame.h (struct objfile): Don't forward declare.
8227
69ed9b74
CB
82282020-02-11 Christian Biesinger <cbiesinger@google.com>
8229
8230 * cris-tdep.c (cris_supply_gregset): Change signature to match
8231 what struct regset expects.
8232 (cris_regset): New struct.
8233 (fetch_core_registers): Remove.
8234 (cris_iterate_over_regset_sections): New function.
8235 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8236 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8237
bda874f6
CB
82382020-02-11 Christian Biesinger <cbiesinger@google.com>
8239
8240 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8241 registers.
8242
754e1564
CB
82432020-02-11 Christian Biesinger <cbiesinger@google.com>
8244
8245 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8246
8ddd8e0e
SM
82472020-02-11 Simon Marchi <simon.marchi@efficios.com>
8248
8249 * configure: Re-generate.
8250
898e7f60
SM
82512020-02-11 Simon Marchi <simon.marchi@efficios.com>
8252
8253 * configure: Re-generate.
8254
58df732b
SM
82552020-02-11 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * acinclude: Update warning.m4 path.
8258 * warning.m4: Move to gdbsupport.
8259
da5bd37e
TT
82602020-02-11 Tom Tromey <tromey@adacore.com>
8261
8262 * remote.c (remote_console_output): Update.
8263 * printcmd.c (printf_command): Update.
8264 * event-loop.c (gdb_wait_for_event): Update.
8265 * linux-nat.c (sigchld_handler): Update.
8266 * remote-sim.c (gdb_os_write_stdout): Update.
8267 (gdb_os_flush_stdout): Update.
8268 (gdb_os_flush_stderr): Update.
8269 (gdb_os_write_stderr): Update.
8270 * exceptions.c (print_exception): Update.
8271 * remote-fileio.c (remote_fileio_func_read): Update.
8272 (remote_fileio_func_write): Update.
8273 * tui/tui.c (tui_enable): Update.
8274 * tui/tui-interp.c (tui_interp::init): Update.
8275 * utils.c (init_page_info): Update.
8276 (putchar_unfiltered, fputc_unfiltered): Update.
8277 (gdb_flush): Update.
8278 (emit_style_escape): Update.
8279 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8280 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8281 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8282 (stderr_file::write): Update.
8283 (stderr_file::puts): Update.
8284 * ui-file.h (ui_file_isatty, ui_file_write)
8285 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8286 (ui_file_puts): Don't declare.
8287
85f0dd3c
TV
82882020-02-10 Tom de Vries <tdevries@suse.de>
8289
8290 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8291 sentinel to char *.
8292
2e927613
TV
82932020-02-09 Tom de Vries <tdevries@suse.de>
8294
8295 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8296 filename if it matches "<artificial>".
8297
6bafc845
HD
82982020-02-09 Hannes Domani <ssbssa@yahoo.de>
8299
8300 * windows-tdep.c (struct enum_value_name): New struct.
8301 (create_enum): New function.
8302 (windows_get_siginfo_type): Create and use enum types.
8303
7928d571
HD
83042020-02-09 Hannes Domani <ssbssa@yahoo.de>
8305
8306 * NEWS: Mention $_siginfo support for Windows.
8307 * windows-nat.c (handle_exception): Set siginfo_er.
8308 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8309 (windows_xfer_siginfo): New function.
8310 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8311 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8312 (init_windows_gdbarch_data): New function.
8313 (get_windows_gdbarch_data): New function.
8314 (windows_get_siginfo_type): New function.
8315 (windows_init_abi): Register windows_get_siginfo_type.
8316 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8317
6751ebae
TT
83182020-02-08 Tom Tromey <tom@tromey.com>
8319
8320 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8321 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8322 <keep>: Declare method.
8323 <m_keep>: Remove member.
8324 <~cutu_reader>: Remove.
8325 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8326 (cutu_reader::cutu_reader): Update.
8327 (cutu_reader::keep): Rename from ~cutu_reader.
8328 (process_psymtab_comp_unit, build_type_psymtabs_1)
8329 (process_skeletonless_type_unit, load_partial_comp_unit)
8330 (load_full_comp_unit, dwarf2_read_addr_index)
8331 (read_signatured_type): Update.
8332
135f5437
TT
83332020-02-08 Tom Tromey <tom@tromey.com>
8334
8335 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8336 "want_partial_unit" parameter.
8337 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8338 Inline check for DW_TAG_partial_unit.
8339 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8340
9f66ff1c
TT
83412020-02-08 Tom Tromey <tom@tromey.com>
8342
8343 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8344 read.c.
8345 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8346 read.c.
8347
c8a7a66f
TT
83482020-02-08 Tom Tromey <tom@tromey.com>
8349
8350 * dwarf2/read.c (read_address): Move to comp-unit.c.
8351 (dwarf2_rnglists_process, dwarf2_ranges_process)
8352 (read_attribute_value, dwarf_decode_lines_1)
8353 (var_decode_location, decode_locdesc): Update.
8354 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8355 read.c. Remove "cu" parameter.
8356 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8357 method.
8358
8266302d
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8362 (read_indirect_line_string): Update.
8363 * dwarf2/comp-unit.c (read_offset): Remove.
8364 (read_comp_unit_head): Update.
8365 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8366 method.
8367 (read_offset): Don't declare.
8368
4057dfde
TT
83692020-02-08 Tom Tromey <tom@tromey.com>
8370
8371 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8372 * dwarf2/read.c (struct comp_unit_head): Move to
8373 dwarf2/comp-unit.h.
8374 (enum class rcuh_kind): Move to comp-unit.h.
8375 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8376 (read_comp_unit_head, error_check_comp_unit_head)
8377 (read_and_check_comp_unit_head): Move to comp-unit.c.
8378 (read_offset, dwarf_unit_type_name): Likewise.
8379 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8380 (cutu_reader::cutu_reader, read_call_site_scope)
8381 (find_partial_die, follow_die_offset): Update.
8382 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8383
24aa364d
TT
83842020-02-08 Tom Tromey <tom@tromey.com>
8385
8386 * dwarf2/read.c (read_offset_1): Move to leb.c.
8387 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8388 (dwarf_decode_macro_bytes): Update.
8389 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8390 * dwarf2/leb.h (read_offset): Declare.
8391
2c7d5afc
TT
83922020-02-08 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.c (dwarf2_section_size): Remove.
8395 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8396 Update.
8397 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8398
4075cb26
TT
83992020-02-08 Tom Tromey <tom@tromey.com>
8400
8401 * dwarf2/read.c (read_initial_length): Move to leb.c.
8402 * dwarf2/leb.h (read_initial_length): Declare.
8403 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8404 handle_nonstd parameter.
8405 * dwarf2/frame.c (read_initial_length): Remove.
8406 (decode_frame_entry_1): Update.
8407
09ba997f
TT
84082020-02-08 Tom Tromey <tom@tromey.com>
8409
8410 * dwarf2/loc.c (dwarf2_find_location_expression)
8411 (dwarf_evaluate_loc_desc::get_tls_address)
8412 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8413 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8414 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8415 (dwarf2_compile_property_to_c)
8416 (dwarf2_loc_desc_get_symbol_read_needs)
8417 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8418 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8419 (loclist_describe_location, loclist_tracepoint_var_ref)
8420 (loclist_generate_c_location): Update.
8421 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8422 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8423 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8424 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8425 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8426 (dwarf2_per_cu_data::addr_size)
8427 (dwarf2_per_cu_data::ref_addr_size)
8428 (dwarf2_per_cu_data::text_offset)
8429 (dwarf2_per_cu_data::addr_type): Now methods.
8430 (per_cu_header_read_in): Make per_cu "const".
8431 (dwarf2_version): Remove.
8432 (dwarf2_per_cu_data::int_type): Now a method.
8433 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8434 (set_die_type, read_array_type, read_subrange_index_type)
8435 (read_tag_string_type, read_subrange_type): Update.
8436 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8437 offset_size, ref_addr_size, text_offset, addr_type, version,
8438 objfile, int_type, addr_sized_int_type>: Declare methods.
8439
96c738c0
TT
84402020-02-08 Tom Tromey <tom@tromey.com>
8441
8442 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8443 Move earlier.
8444
8fdd972c
TT
84452020-02-08 Tom Tromey <tom@tromey.com>
8446
8447 * dwarf2/read.h (dwarf_line_debug): Declare.
8448 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8449 * dwarf2/read.c: Move line_header code to new files.
8450 (dwarf_line_debug): No longer static.
8451 * dwarf2/line-header.c: New file.
8452 * dwarf2/line-header.h: New file.
8453
03075812
TT
84542020-02-08 Tom Tromey <tom@tromey.com>
8455
8456 * dwarf2/read.c (struct line_header) <file_full_name,
8457 file_file_name>: Return unique_xmalloc_ptr.
8458 (line_header::file_file_name): Update.
8459 (line_header::file_full_name): Update.
8460 (dw2_get_file_names_reader): Update.
8461 (macro_start_file): Update.
8462
bb822404
TT
84632020-02-08 Tom Tromey <tom@tromey.com>
8464
8465 * dwarf2/read.c (struct line_header) <file_full_name,
8466 file_file_name>: Declare methods.
8467 (dw2_get_file_names_reader): Update.
8468 (file_file_name): Now a method.
8469 (file_full_name): Likewise.
8470 (macro_start_file): Update.
8471
009b64fc
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.c (dwarf_always_disassemble)
8475 (show_dwarf_always_disassemble): Move to loc.c.
8476 (_initialize_dwarf2_read): Move "always-disassemble" registration
8477 to loc.c.
8478 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8479 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8480 static.
8481 (show_dwarf_always_disassemble): Move from read.c.
8482 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8483
5895093f
TT
84842020-02-08 Tom Tromey <tom@tromey.com>
8485
8486 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8487 (create_quick_file_names_table): Return htab_up.
8488 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8489 Update.
8490 * dwarf2/read.h (struct dwarf2_per_objfile)
8491 <quick_file_names_table>: Now htab_up.
8492
b3b32279
TT
84932020-02-08 Tom Tromey <tom@tromey.com>
8494
8495 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8496
1d33d811
TT
84972020-02-08 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8500 Rewrite.
8501 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8502 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8503 (abbrev_table::abbrev_table): No longer inline.
8504 (ABBREV_HASH_SIZE): Remove.
8505 (abbrev_table::m_abbrevs): Now an htab_up.
8506
86de1d91
TT
85072020-02-08 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8510 (cutu_reader): Update.
8511 (build_type_psymtabs_1): Update.
8512 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8513 (abbrev_table::alloc_abbrev): Update.
8514 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8515 (abbrev_table::read): New static method, renamed from
8516 abbrev_table_read_table.
8517 (abbrev_table::alloc_abbrev)
8518 (abbrev_table::add_abbrev): Now private.
8519 (abbrev_table::abbrev_table): Now private.
8520 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8521
0335378b
TT
85222020-02-08 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8525 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8526 htab_up.
8527
48b490f2
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8531 htab_up.
8532 (lookup_dwo_unit_in_dwp): Update.
8533 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8534 on obstack.
8535
bc68fb19
TT
85362020-02-08 Tom Tromey <tom@tromey.com>
8537
8538 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8539 obstack.
8540
d15acc42
TT
85412020-02-08 Tom Tromey <tom@tromey.com>
8542
8543 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8544 line_header_hash.
8545 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8546 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8547 Change type to htab_up.
8548
eaa5fa8b
TT
85492020-02-08 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8552 htab_up. Don't allocate on obstack.
8553 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8554 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8555 Change type to htab_up.
8556
b0b6a987
TT
85572020-02-08 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8560 Change type to htab_up.
8561 * dwarf2/read.c (create_signatured_type_table_from_index)
8562 (create_signatured_type_table_from_debug_names)
8563 (create_all_type_units, add_type_unit)
8564 (lookup_dwo_signatured_type, lookup_signatured_type)
8565 (process_skeletonless_type_unit): Update.
8566 (create_debug_type_hash_table, create_debug_types_hash_table):
8567 Change type of types_htab.
8568 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8569 htab_up. Don't allocate on obstack.
8570 (create_cus_hash_table): Change type of cus_htab parameter.
8571 (struct dwo_file) <cus, tus>: Now htab_up.
8572 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8573 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8574 (queue_and_load_all_dwo_tus): Update.
8575 * dwarf2/index-write.c (write_gdbindex): Update.
8576 (write_debug_names): Update.
8577
39856def
TT
85782020-02-08 Tom Tromey <tom@tromey.com>
8579
8580 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8581 dwarf2/read.c. Remove "next" member. Add constructor ntad
8582 destructor.
8583 (struct dwarf2_per_objfile) <queue>: New member.
8584 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8585 dwarf2/read.h.
8586 (dwarf2_queue, dwarf2_queue_tail): Remove.
8587 (class dwarf2_queue_guard): Add parameter to constructor. Use
8588 DISABLE_COPY_AND_ASSIGN.
8589 <m_per_objfile>: New member.
8590 <~dwarf2_queue_guard>: Rewrite.
8591 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8592 Update.
8593 (~dwarf2_queue_item): New.
8594
3e225074
TT
85952020-02-08 Tom Tromey <tom@tromey.com>
8596
8597 * dwarf2/read.c (struct die_info) <has_children>: New member.
8598 (dw2_get_file_names_reader): Remove has_children.
8599 (dw2_get_file_names): Update.
8600 (read_cutu_die_from_dwo): Remove has_children.
8601 (cutu_reader::init_tu_and_read_dwo_dies)
8602 (cutu_reader::cutu_reader): Update.
8603 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8604 Remove has_children.
8605 (build_type_psymtabs_1, process_skeletonless_type_unit)
8606 (load_partial_comp_unit, load_full_comp_unit): Update.
8607 (create_dwo_cu_reader): Remove has_children.
8608 (create_cus_hash_table, read_die_and_children): Update.
8609 (read_full_die_1,read_full_die): Remove has_children.
8610 (read_signatured_type): Update.
8611 (class cutu_reader) <has_children>: Remove.
8612
82ca8957
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/expr.c: Rename from dwarf2expr.c.
8616 * dwarf2/expr.h: Rename from dwarf2expr.h.
8617 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8618 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8619 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8620 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8621 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8622 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8623 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8624 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8625 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8626 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8627 * dwarf2/loc.c: Rename from dwarf2loc.c.
8628 * dwarf2/loc.h: Rename from dwarf2loc.h.
8629 * dwarf2/read.c: Rename from dwarf2read.c.
8630 * dwarf2/read.h: Rename from dwarf2read.h.
8631 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8632 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8633 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8634 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8635 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8636 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8637 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8638 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8639 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8640 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8641 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8642 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8643 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8644 Update.
8645 * Makefile.in (COMMON_SFILES): Update.
8646 (HFILES_NO_SRCDIR): Update.
8647
9e35d499
TT
86482020-02-08 Tom Tromey <tom@tromey.com>
8649
8650 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8651 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8652
1eba2311
TT
86532020-02-08 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2read.h (struct die_info): Don't declare.
8656
e41c2da2
TT
86572020-02-08 Tom Tromey <tom@tromey.com>
8658
8659 * dwarf2read.h (die_info_ptr): Remove typedef.
8660
4fc6c0d5
TT
86612020-02-08 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2read.c (read_call_site_scope)
8664 (handle_data_member_location, dwarf2_add_member_fn)
8665 (mark_common_block_symbol_computed, read_common_block)
8666 (attr_to_dynamic_prop, partial_die_info::read)
8667 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8668 (dwarf2_symbol_mark_computed, set_die_type): Update.
8669 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8670 method.
8671 (attr_form_is_block): Don't declare.
8672 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8673
cd6c91b4
TT
86742020-02-08 Tom Tromey <tom@tromey.com>
8675
8676 * dwarf2read.c (dwarf2_find_base_address, )
8677 (read_call_site_scope, rust_containing_type)
8678 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8679 (handle_data_member_location, dwarf2_add_member_fn)
8680 (get_alignment, read_structure_type, process_structure_scope)
8681 (mark_common_block_symbol_computed, read_common_block)
8682 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8683 (partial_die_info::read, read_attribute_value, new_symbol)
8684 (lookup_die_type, dwarf2_get_ref_die_offset)
8685 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8686 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8687 (dwarf2_symbol_mark_computed): Update.
8688 * dwarf2/attribute.h (struct attribute) <value_as_address,
8689 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8690 methods.
8691 (value_as_address, attr_form_is_section_offset)
8692 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8693 * dwarf2/attribute.c (attribute::value_as_address)
8694 (attribute::form_is_section_offset, attribute::form_is_constant)
8695 (attribute::form_is_ref): Now methods.
8696
162dce55
TT
86972020-02-08 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2read.c (struct attribute, DW_STRING)
8700 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8701 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8702 (attr_form_is_block, attr_form_is_section_offset)
8703 (attr_form_is_constant, attr_form_is_ref): Move.
8704 * dwarf2/attribute.h: New file.
8705 * dwarf2/attribute.c: New file, from dwarf2read.c.
8706 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8707
3054dd54
TT
87082020-02-08 Tom Tromey <tom@tromey.com>
8709
8710 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8711 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8712 Move.
8713 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8714 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8715 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8716 abbrev.c.
8717 * dwarf2/abbrev.h: New file.
8718 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8719 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8720
96b79293
TT
87212020-02-08 Tom Tromey <tom@tromey.com>
8722
8723 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8724 (dwarf2_section_size, dwarf2_get_section_info)
8725 (create_signatured_type_table_from_debug_names)
8726 (create_addrmap_from_aranges, read_debug_names_from_section)
8727 (get_gdb_index_contents_from_section, read_comp_unit_head)
8728 (error_check_comp_unit_head, read_abbrev_offset)
8729 (create_debug_type_hash_table, init_cu_die_reader)
8730 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8731 (read_comp_units_from_section, create_cus_hash_table)
8732 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8733 (create_dwp_v2_section, dwarf2_rnglists_process)
8734 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8735 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8736 (read_indirect_string_from_dwz, read_addr_index_1)
8737 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8738 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8739 (fill_in_loclist_baton): Update.
8740 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8741 get_containing_section, get_bfd_owner, get_bfd_section,
8742 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8743 (dwarf2_read_section, get_section_name, get_section_file_name)
8744 (get_containing_section, get_section_bfd_owner)
8745 (get_section_bfd_section, get_section_name, get_section_file_name)
8746 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8747 declare.
8748 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8749 (dwarf2_section_info::get_bfd_owner)
8750 (dwarf2_section_info::get_bfd_section)
8751 (dwarf2_section_info::get_name)
8752 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8753 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8754 (dwarf2_section_info::read): Now methods.
8755 * dwarf-index-write.c (class debug_names): Update.
8756
2c86cff9
TT
87572020-02-08 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8760 Move to dwarf2/section.h.
8761 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8762 (get_section_bfd_section, get_section_name)
8763 (get_section_file_name, get_section_id, get_section_flags)
8764 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8765 dwarf2/section.c.
8766 * dwarf2/section.h: New file.
8767 * dwarf2/section.c: New file, from dwarf2read.c.
8768 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8769
f4382c45
TT
87702020-02-08 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8773 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8774 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8775 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8776 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8777 * dwarf2/leb.h: New file, from dwarf2read.c.
8778 * dwarf2/leb.c: New file, from dwarf2read.c.
8779 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8780 Remove.
8781 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8782 (COMMON_SFILES): Add dwarf2/leb.c.
8783
01840b7a
JB
87842020-02-08 Joel Brobecker <brobecker@adacore.com>
8785
8786 GDB 9.1 released.
8787
dfcb27e4
IB
87882020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8789
8790 PR gdb/25190:
aac66a4c
SM
8791 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8792 * gdb/remote.c (remote_console_output): Update.
8793 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8794 (ui_file_puts): ...this.
8795 * gdb/ui-file.h (ui_file_puts): Add declaration.
8796 * gdb/utils.c (emit_style_escape): Update.
8797 (flush_wrap_buffer): Update.
8798 (fputs_maybe_filtered): Update.
8799 (fputs_unfiltered): Add function.
dfcb27e4 8800
faa17681
IB
88012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8802
aac66a4c
SM
8803 * gdb/event-loop.c (gdb_wait_for_event): Update.
8804 * gdb/printcmd.c (printf_command): Update.
8805 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8806 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8807 (gdb_os_flush_stderr): Update.
8808 * gdb/remote.c (remote_console_output): Update.
8809 * gdb/ui-file.c (gdb_flush): Rename to...
8810 (ui_file_flush): ...this.
8811 (stderr_file::write): Update.
8812 (stderr_file::puts): Update.
8813 * gdb/ui-file.h (gdb_flush): Rename to...
8814 (ui_file_flush): ...this.
8815 * gdb/utils.c (gdb_flush): Add function.
8816 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8817
5abbbe1d
TT
88182020-02-07 Tom Tromey <tromey@adacore.com>
8819
8820 PR breakpoints/24915:
8821 * source.c (find_and_open_source): Do not check basenames_may_differ.
8822
919adfe8
TT
88232020-02-07 Tom Tromey <tom@tromey.com>
8824
8825 * README: Update gdbserver documentation.
8826 * gdbserver: Move to top level.
8827 * configure.tgt (build_gdbserver): Remove.
8828 * configure.ac: Remove --enable-gdbserver.
8829 * configure: Rebuild.
8830 * Makefile.in (distclean): Don't mention gdbserver.
8831
1d5d29e7
SV
88322020-02-06 Shahab Vahedi <shahab@synopsys.com>
8833
8834 * source-cache.c (source_cache::ensure): Surround
8835 get_plain_source_lines with a try/catch.
8836 (source_cache::get_line_charpos): Get rid of try/catch
8837 and only check for the return value of "ensure".
8838 * tui/tui-source.c (tui_source_window::set_contents):
8839 Simplify "nlines" calculation.
8840
6eb1129c
SV
88412020-02-06 Shahab Vahedi <shahab@synopsys.com>
8842
8843 * MAINTAINERS (Write After Approval): Add myself.
8844
c6a42d11
CB
88452020-02-05 Christian Biesinger <cbiesinger@google.com>
8846
8847 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8848 function call.
8849
c8ecdda6
CB
88502020-02-05 Christian Biesinger <cbiesinger@google.com>
8851
8852 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8853
f6480e70
MR
88542020-02-05 Maciej W. Rozycki <macro@wdc.com>
8855
8856 * nat/riscv-linux-tdesc.h: New file.
8857 * nat/riscv-linux-tdesc.c: New file, taking code from...
8858 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8859 ... here.
8860 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8861 NATDEPFILES.
8862
dcc9fbc6
AB
88632020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8864
8865 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8866 we don't set the fake simulator ptid to the null_ptid.
8867
719546c4
SM
88682020-02-03 Simon Marchi <simon.marchi@efficios.com>
8869
8870 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8871 * gdbthread.h (class thread_info) <resumed>: Likewise.
8872 * infrun.c (resume_1): Likewise.
8873 (proceed): Likewise.
8874 (infrun_thread_stop_requested): Likewise.
8875 (stop_all_threads): Likewise.
8876 (handle_inferior_event): Likewise.
8877 (restart_threads): Likewise.
8878 (finish_step_over): Likewise.
8879 (keep_going_stepped_thread): Likewise.
8880 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8881 (linux_handle_extended_wait): Likewise.
8882 * record-btrace.c (get_thread_current_frame_id): Likewise.
8883 * record-full.c (record_full_wait_1): Likewise.
8884 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8885 * target.c (target_resume): Likewise.
8886 * thread.c (set_running_thread): Likewise.
8887
e409c542
AKS
88882020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8889
8890 * f-valprint.c (f77_print_array_1): Changed datatype of index
8891 variable to LONGEST from int to enable it to contain bound
8892 values correctly.
8893
ee98c0da
MR
88942020-02-03 Maciej W. Rozycki <macro@wdc.com>
8895
8896 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8897 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8898 offsets according to FLEN determined.
8899 (riscv_linux_nat_target::read_description): Determine FLEN
8900 dynamically.
8901 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8902 according to FLEN determined.
8903 (riscv_linux_nat_target::store_registers): Likewise.
8904
aa66aac4
SV
89052020-02-01 Shahab Vahedi <shahab@synopsys.com>
8906
8907 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8908 when reg->group is empty and reggroup is not.
8909
fd9faca8
TT
89102020-01-31 Tom Tromey <tromey@adacore.com>
8911
8912 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8913 Call beneath target's mourn_inferior after unpushing.
8914
42330a68
AB
89152020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8916
8917 PR tui/9765
8918 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8919 have enough lines to fill the screen, still return the lowest
8920 address we found.
8921
7a27a45b
AB
89222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8923
8924 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8925 '-', '<', and '>' commands.
8926
c47f70e2
PA
89272020-01-29 Pedro Alves <palves@redhat.com>
8928 Sergio Durigan Junior <sergiodj@redhat.com>
8929
8930 * infcmd.c (construct_inferior_arguments): Assert that
8931 'argc' is greater than 0.
8932
5133a315
LM
89332020-01-29 Luis Machado <luis.machado@linaro.org>
8934
8935 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8936 (BRK_INSN_MASK): Define to 0xd4200000.
8937 (aarch64_program_breakpoint_here_p): New function.
8938 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8939 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8940 breakpoint.c.
8941 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8942 breakpoint.h
8943 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8944 call gdbarch_program_breakpoint_here_p.
8945 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8946 default_program_breakpoint_here_p, changed return type to bool and
8947 simplified.
8948 * breakpoint.h (program_breakpoint_here): Moved prototype to
8949 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8950 return type to bool.
8951 * gdbarch.c: Regenerate.
8952 * gdbarch.h: Regenerate.
8953 * gdbarch.sh (program_breakpoint_here_p): New method.
8954 * infrun.c (handle_signal_stop): Call
8955 gdbarch_program_breakpoint_here_p.
8956
168f8c6b
TT
89572020-01-26 Tom Tromey <tom@tromey.com>
8958
8959 * ctfread.c (struct ctf_fp_info): Reindent.
8960 (_initialize_ctfread): Remove.
8961
128a391f
TT
89622020-01-26 Tom Tromey <tom@tromey.com>
8963
8964 * psymtab.c (partial_map_expand_apply)
8965 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8966 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8967 (psym_print_stats, psym_expand_symtabs_for_function)
8968 (psym_map_symbol_filenames, psym_map_matching_symbols)
8969 (psym_expand_symtabs_matching)
8970 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8971 (maintenance_check_psymtabs): Use new methods.
8972 * psympriv.h (struct partial_symtab) <readin_p,
8973 get_compunit_symtab>: New methods.
8974 <readin, compunit_symtab>: Remove members.
8975 (struct standard_psymtab): New.
8976 (struct legacy_psymtab): Derive from standard_psymtab.
8977 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8978 standard_psymtab.
8979 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8980
0494dbec
TT
89812020-01-26 Tom Tromey <tom@tromey.com>
8982
8983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8984 read_dependencies. Add assert.
8985 * psymtab.c (partial_symtab::read_dependencies): New method.
8986 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8987 method.
8988 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8989 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8990 read_dependencies.
8991 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8992 Add assert.
8993
8566b89b
TT
89942020-01-26 Tom Tromey <tom@tromey.com>
8995
8996 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8997 Call expand_psymtab.
8998 (xcoff_read_symtab): Call expand_psymtab.
8999 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9000 legacy_expand_psymtab.
9001 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9002 method.
9003 (struct legacy_psymtab) <expand_psymtab>: Implement.
9004 <legacy_expand_psymtab>: New member.
9005 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9006 (parse_partial_symbols): Set legacy_expand_psymtab.
9007 (psymtab_to_symtab_1): Change argument order. Call
9008 expand_psymtab.
9009 (new_psymtab): Set legacy_expand_psymtab.
9010 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9011 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9012 expand_psymtab.
9013 (dwarf2_psymtab::expand_psymtab): Rename from
9014 psymtab_to_symtab_1. Call expand_psymtab.
9015 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9016 (dbx_end_psymtab): Likewise.
9017 (dbx_psymtab_to_symtab_1): Change argument order. Call
9018 expand_psymtab.
9019 (dbx_read_symtab): Call expand_psymtab.
9020 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9021 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9022 (ctf_psymtab::read_symtab): Call expand_psymtab.
9023
077cbab2
TT
90242020-01-26 Tom Tromey <tom@tromey.com>
9025
9026 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9027 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9028 messages.
9029 * mdebugread.c (mdebug_read_symtab): Remove prints.
9030 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9031 assert.
9032 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9033
891813be
TT
90342020-01-26 Tom Tromey <tom@tromey.com>
9035
9036 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9037 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9038 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9039 legacy_symtab.
9040 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9041 * psymtab.c (psymtab_to_symtab): Call method.
9042 (dump_psymtab): Update.
9043 * psympriv.h (struct partial_symtab): Add virtual destructor.
9044 <read_symtab>: New method.
9045 (struct legacy_symtab): New.
9046 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9047 (struct pst_map) <pst>: Now a legacy_psymtab.
9048 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9049 (new_psymtab): Use legacy_psymtab.
9050 * dwarf2read.h (struct dwarf2_psymtab): New.
9051 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9052 * dwarf2read.c (dwarf2_create_include_psymtab)
9053 (dwarf2_build_include_psymtabs, create_type_unit_group)
9054 (create_partial_symtab, process_psymtab_comp_unit_reader)
9055 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9056 (set_partial_user): Use dwarf2_psymtab.
9057 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9058 (psymtab_to_symtab_1, process_full_comp_unit)
9059 (process_full_type_unit, dwarf2_ranges_read)
9060 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9061 (dwarf_decode_lines): Use dwarf2_psymtab.
9062 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9063 (add_address_entry_worker, write_one_signatured_type)
9064 (recursively_count_psymbols, recursively_write_psymbols)
9065 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9066 (write_debug_names): Likewise.
9067 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9068 <pst>: Now a legacy_psymtab.
9069 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9070 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9071 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9072 * ctfread.c (struct ctf_psymtab): New.
9073 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9074 ctf_psymtab.
9075 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9076 (create_partial_symtab): Return a ctf_psymtab.
9077 (scan_partial_symbols): Update.
9078
c3693a1d
TT
90792020-01-26 Tom Tromey <tom@tromey.com>
9080
9081 * xcoffread.c (xcoff_start_psymtab): Use new.
9082 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9083 renamed from start_psymtab_common.
9084 * psympriv.h (struct partial_symtab): Add new constructor.
9085 (start_psymtab_common): Don't declare.
9086 * mdebugread.c (parse_partial_symbols): Use new.
9087 * dwarf2read.c (create_partial_symtab): Use new.
9088 * dbxread.c (start_psymtab): Use new.
9089 * ctfread.c (create_partial_symtab): Use new.
9090
32caafd0
TT
90912020-01-26 Tom Tromey <tom@tromey.com>
9092
9093 * xcoffread.c (xcoff_end_psymtab): Use new.
9094 * psymtab.c (start_psymtab_common): Use new.
9095 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9096 Update.
9097 * psympriv.h (struct partial_symtab): Add parameters to
9098 constructor. Don't inline.
9099 (allocate_psymtab): Don't declare.
9100 * mdebugread.c (new_psymtab): Use new.
9101 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9102 * dbxread.c (dbx_end_psymtab): Use new.
9103
abaa2f23
TT
91042020-01-26 Tom Tromey <tom@tromey.com>
9105
9106 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9107 allocate_psymtab. Update documentation.
9108 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9109 allocate_psymtab. Do not use new.
9110 (allocate_psymtab): Use new. Update.
9111
6d94535f
TT
91122020-01-26 Tom Tromey <tom@tromey.com>
9113
9114 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9115 * psymtab.c (psym_print_stats): Update.
9116 * psympriv.h (struct partial_symtab) <readin,
9117 psymtabs_addrmap_supported, anonymous>: Now bool.
9118 * mdebugread.c (psymtab_to_symtab_1): Update.
9119 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9120 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9121 (process_full_comp_unit, process_full_type_unit): Update.
9122 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9123 * ctfread.c (psymtab_to_symtab): Update.
9124
6f17252b
TT
91252020-01-26 Tom Tromey <tom@tromey.com>
9126
9127 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9128 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9129 * psymtab.c (psymtab_storage): Delete psymtabs.
9130 (psymtab_storage::allocate_psymtab): Use new.
9131 (psymtab_storage::discard_psymtab): Use delete.
9132 * psympriv.h (struct partial_symtab): Add constructor and
9133 initializers.
9134
f6f1cebc
TT
91352020-01-26 Tom Tromey <tom@tromey.com>
9136
9137 * machoread.c: Do not include psympriv.h.
9138
e47e48f6
PW
91392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9140
9141 * NEWS: Mention the new option and the set/show commands.
9142
a2fedca9
PW
91432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9144
9145 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9146 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9147 (validate_exec_file): New variables, enums, functions.
9148 (exec_file_locate_attach, print_section_info): Style the filenames.
9149 (_initialize_exec): Install show_exec_file_mismatch_command and
9150 set_exec_file_mismatch_command.
9151 * gdbcore.h (validate_exec_file): Declare.
9152 * infcmd.c (attach_command): Call validate_exec_file.
9153 * remote.c ( remote_target::remote_add_inferior): Likewise.
9154
7ffa82e1
AB
91552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9156
9157 * frame.c (find_frame_sal): Move call to get_next_frame into more
9158 inner scope.
9159 * inline-frame.c (inilne_state) <inline_state>: Update argument
9160 types.
9161 (inilne_state) <skipped_symbol>: Rename to...
9162 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9163 (skip_inline_frames): Build vector of skipped symbols and use this
9164 to reate the inline_state.
9165 (inline_skipped_symbol): Add a comment and some assertions, fetch
9166 skipped symbol from the list.
9167
3d92a3e3
AB
91682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9169
9170 * buildsym.c (lte_is_less_than): Delete.
9171 (buildsym_compunit::end_symtab_with_blockvector): Create local
9172 lambda function to sort line table entries, and use
9173 std::stable_sort instead of std::sort.
9174 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9175 markers when looking for a previous line.
9176
94a72be7
AB
91772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9178
9179 * dwarf2read.c (lnp_state_machine::record_line): Include
9180 end_sequence parameter in debug print out. Record the line if we
9181 are at an end_sequence marker even if it's not the start of a
9182 statement.
9183 * symmisc.c (maintenance_print_one_line_table): Print end of
9184 sequence markers with 'END' not '0'.
9185
53af73bf
PA
91862020-01-24 Pedro Alves <palves@redhat.com>
9187
9188 PR gdb/25410
9189 * thread.c (scoped_restore_current_thread::restore): Use
9190 switch_to_inferior_no_thread.
9191 * exec.c: Include "progspace-and-thread.h".
9192 (add_target_sections, remove_target_sections):
9193 scoped_restore_current_pspace_and_thread instead of
9194 scoped_restore_current_thread.
9195 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9196 and aspace to the inferior before calling clone_program_space.
9197 Remove stale comment.
9198
3050c6f4
CB
91992020-01-24 Christian Biesinger <cbiesinger@google.com>
9200
9201 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9202 (arm_netbsd_nat_target::fetch_registers): ...this.
9203 (arm_nbsd_nat_target::store_registers): Rename to...
9204 (arm_netbsd_nat_target::store_registers): ...this.
9205
73685c7e
CB
92062020-01-24 Christian Biesinger <cbiesinger@google.com>
9207
9208 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9209 register_t.
9210
89203d40
CB
92112020-01-24 Christian Biesinger <cbiesinger@google.com>
9212
9213 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9214 Update comment.
9215 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9216 Likewise.
9217 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9218 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9219 the correct replacement (iterate_over_regset_sections).
9220 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9221 Update comment.
9222
1ba1ac88
AB
92232020-01-24 Graham Markall <graham.markall@embecosm.com>
9224
9225 PR gdb/23718
9226 * gdb/python/python.c (execute_gdb_command): Call
9227 async_enable_stdin in catch block.
9228
f3364a6d
AB
92292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9230
9231 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9232 SWITCH_THRU_ALL_UIS.
9233
733d0a67
AB
92342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 PR tui/9765
9237 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9238 comment, add extra parameter, and update to store previous symbol
9239 when appropriate.
9240 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9241 add extra parameter.
9242 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9243 remove unneeded parameter, add try/catch around gdb_print_insn,
9244 rewrite to add items to asm_lines vector.
9245 (tui_find_backward_disassembly_start_address): New function.
9246 (tui_find_disassembly_address): Updated throughout.
9247 (tui_disasm_window::set_contents): Update for changes to
9248 tui_disassemble.
9249 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9250 number of lines to scroll.
9251
b3b3bada
SM
92522020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9253
9254 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9255 (SECT_OFF_DATA): Likewise.
9256 (SECT_OFF_RODATA): Likewise.
9257 (SECT_OFF_TEXT): Likewise.
9258 (SECT_OFF_BSS): Likewise.
9259 (struct objfile) <text_section_offset, data_section_offset>: New
9260 methods.
9261 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9262 objfile::text_section_offset.
9263 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9264 * coffread.c (coff_symtab_read): Likewise.
9265 (enter_linenos): Likewise.
9266 (process_coff_symbol): Likewise.
9267 * ctfread.c (get_objfile_text_range): Likewise.
9268 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9269 Use objfile::data_section_offset.
9270 * dwarf2-frame.c (execute_cfa_program): Use
9271 objfile::text_section_offset.
9272 (dwarf2_frame_find_fde): Likewise.
9273 * dwarf2read.c (create_addrmap_from_index): Likewise.
9274 (create_addrmap_from_aranges): Likewise.
9275 (dw2_find_pc_sect_compunit_symtab): Likewise.
9276 (process_psymtab_comp_unit_reader): Likewise.
9277 (add_partial_symbol): Likewise.
9278 (add_partial_subprogram): Likewise.
9279 (process_full_comp_unit): Likewise.
9280 (read_file_scope): Likewise.
9281 (read_func_scope): Likewise.
9282 (read_lexical_block_scope): Likewise.
9283 (read_call_site_scope): Likewise.
9284 (dwarf2_rnglists_process): Likewise.
9285 (dwarf2_ranges_process): Likewise.
9286 (dwarf2_ranges_read): Likewise.
9287 (dwarf_decode_lines_1): Likewise.
9288 (new_symbol): Likewise.
9289 (dwarf2_fetch_die_loc_sect_off): Likewise.
9290 (dwarf2_per_cu_text_offset): Likewise.
9291 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9292 * hppa-tdep.c (read_unwind_info): Likewise.
9293 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9294 * psympriv.h (struct partial_symtab): Likewise.
9295 * psymtab.c (find_pc_sect_psymtab): Likewise.
9296 * solib-svr4.c (enable_break): Likewise.
9297 * stap-probe.c (relocate_address): Use
9298 objfile::data_section_offset.
9299 * xcoffread.c (enter_line_range): Use
9300 objfile::text_section_offset.
9301 (read_xcoff_symtab): Likewise.
9302
ab53f382
SM
93032020-01-23 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9306 declaration to narrower scopes.
9307
e7eee665
SM
93082020-01-23 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * darwin-nat.h (struct darwin_exception_msg, enum
9311 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9312 Move up.
9313 (class darwin_nat_target) <wait_1, check_new_threads,
9314 decode_exception_message, decode_message, stop_inferior,
9315 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9316 * darwin-nat.c (darwin_check_new_threads): Rename to...
9317 (darwin_nat_target::check_new_threads): ... this.
9318 (darwin_suspend_inferior_it): Remove.
9319 (darwin_decode_exception_message): Rename to...
9320 (darwin_nat_target::decode_exception_message): ... this.
9321 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9322 (darwin_decode_message): Rename to...
9323 (darwin_nat_target::decode_message): ... this.
9324 (cancel_breakpoint): Rename to...
9325 (darwin_nat_target::cancel_breakpoint): ... this.
9326 (darwin_wait): Rename to...
9327 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9328 instead of iterate_over_inferiors.
9329 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9330 (darwin_stop_inferior): Rename to...
9331 (darwin_nat_target::stop_inferior): ... this.
9332 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9333 (darwin_init_thread_list): Rename to...
9334 (darwin_nat_target::init_thread_list): ... this.
9335 (darwin_ptrace_him): Rename to...
9336 (darwin_nat_target::ptrace_him): ... this.
9337 (darwin_nat_target::create_inferior): Pass lambda function to
9338 fork_inferior.
9339 (darwin_nat_target::detach): Call stop_inferior instead of
9340 darwin_stop_inferior.
9341 * fork-inferior.h (fork_inferior): Change init_trace_fun
9342 parameter to gdb::function_view.
9343 * fork-inferior.c (fork_inferior): Likewise.
9344
c162ed3e
HD
93452020-01-23 Hannes Domani <ssbssa@yahoo.de>
9346
9347 * i386-cygwin-tdep.c (core_process_module_section): Update.
9348 * windows-nat.c (struct lm_info_windows): Add text_offset.
9349 (windows_xfer_shared_libraries): Update.
9350 * windows-tdep.c (windows_xfer_shared_library):
9351 Add text_offset_cached argument.
9352 * windows-tdep.h (windows_xfer_shared_library): Update.
9353
a1237872
SM
93542020-01-21 Simon Marchi <simon.marchi@efficios.com>
9355
9356 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9357
b3ee6dd9
SM
93582020-01-21 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9361 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9362 replace with range-based for.
9363 (gdbsim_interrupt_inferior): Remove.
9364 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9365 with a range-based for. Inline code from
9366 gdbsim_interrupt_inferior.
9367
f9fac3c8
SM
93682020-01-21 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * infrun.c (proceed): Fix indentation.
9371
f6474de9
TT
93722020-01-21 Tom Tromey <tromey@adacore.com>
9373
9374 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9375 * python/python.c (python_extension_ops): Update.
9376 (gdbpy_colorize): New function.
9377 * python/lib/gdb/__init__.py (colorize): New function.
9378 * extension.h (ext_lang_colorize): Declare.
9379 * extension.c (ext_lang_colorize): New function.
9380 * extension-priv.h (struct extension_language_ops) <colorize>: New
9381 member.
9382 * cli/cli-style.c (_initialize_cli_style): Update help text.
9383
f0c702d4
LM
93842020-01-21 Luis Machado <luis.machado@linaro.org>
9385
9386 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9387 <cond>: Change type to bool.
9388 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9389 (aarch64_displaced_step_cb): Likewise.
9390 (aarch64_displaced_step_tb): Likewise.
9391
1ab139e5
LM
93922020-01-21 Luis Machado <luis.machado@linaro.org>
9393
9394 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9395 output.
9396
0c271889
LM
93972020-01-21 Luis Machado <luis.machado@linaro.org>
9398
9399 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9400 <pc_adjust>: Adjust the documentation.
9401 (aarch64_displaced_step_fixup): Check if PC really moved before
9402 adjusting it.
9403
4d89c1c7
TT
94042020-01-19 Tom Tromey <tom@tromey.com>
9405
9406 * disasm.c (~gdb_disassembler): New destructor.
9407 (gdb_buffered_insn_length): Call disassemble_free_target.
9408 * disasm.h (class gdb_disassembler): Declare destructor. Use
9409 DISABLE_COPY_AND_ASSIGN.
9410
c0ab21c2
TT
94112020-01-19 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9414 (die_reader_func_ftype): Remove.
9415 (cutu_reader): New class.
9416 (dw2_get_file_names_reader): Remove "data" parameter.
9417 (dw2_get_file_names): Use cutu_reader.
9418 (create_debug_type_hash_table): Update.
9419 (read_cutu_die_from_dwo): Update comment.
9420 (lookup_dwo_unit): Add dwo_name parameter.
9421 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9422 die_reader_func_ftype and data parameters.
9423 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9424 Remove die_reader_func_ftype and data parameters.
9425 (~cutu_reader): New; from init_cutu_and_read_dies.
9426 (cutu_reader::cutu_reader): Rename from
9427 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9428 and data parameters.
9429 (init_cutu_and_read_dies_simple): Remove.
9430 (struct process_psymtab_comp_unit_data): Remove.
9431 (process_psymtab_comp_unit_reader): Remove data parameter; add
9432 want_partial_unit and pretend_language parameters.
9433 (process_psymtab_comp_unit): Use cutu_reader.
9434 (build_type_psymtabs_reader): Remove data parameter.
9435 (build_type_psymtabs_1): Use cutu_reader.
9436 (process_skeletonless_type_unit): Likewise.
9437 (load_partial_comp_unit_reader): Remove.
9438 (load_partial_comp_unit): Use cutu_reader.
9439 (load_full_comp_unit_reader): Remove.
9440 (load_full_comp_unit): Use cutu_reader.
9441 (struct create_dwo_cu_data): Remove.
9442 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9443 dwo_unit parameters.
9444 (create_cus_hash_table): Use cutu_reader.
9445 (struct dwarf2_read_addr_index_data): Remove.
9446 (dwarf2_read_addr_index_reader): Remove.
9447 (dwarf2_read_addr_index): Use cutu_reader.
9448 (read_signatured_type_reader): Remove.
9449 (read_signatured_type): Use cutu_reader.
9450
45bbae5c
TT
94512020-01-19 Tom Tromey <tom@tromey.com>
9452
9453 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9454 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9455 (tui_wrefresh): Declare.
9456 * tui/tui-wingeneral.c (suppress_output): New global.
9457 (tui_suppress_output, ~tui_suppress_output): New constructor and
9458 destructor.
9459 (tui_wrefresh): New function.
9460 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9461 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9462 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9463 method.
9464 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9465 tui_wrefresh.
9466 (tui_data_window::no_refresh): New method.
9467 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9468 (tui_reg_command): Use tui_suppress_output
9469 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9470 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9471 method.
9472 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9473
4f13c1c0
TT
94742020-01-19 Tom Tromey <tom@tromey.com>
9475
9476 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9477 Handle case where symtab is null.
9478
fa47e446
SM
94792020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9480
9481 * linux-fork.c (one_fork_p): Simplify.
9482
26f42329
SM
94832020-01-17 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * top.c (struct qt_args): Remove.
9486 (kill_or_detach): Change return type to void, replace `void *`
9487 parameter with a proper one.
9488 (print_inferior_quit_action): Likewise.
9489 (quit_confirm): Use range-based for loop to iterate over inferiors.
9490 (quit_force): Likewise.
9491
a9ac81b1
SM
94922020-01-17 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9495 `void *` parameter with proper parameters.
9496 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9497 (print_one_inferior): Change return type to void, replace `void *`
9498 parameter with proper parameters.
9499 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9500 inferiors.
9501 (get_other_inferior): Remove.
9502 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9503 inferiors.
9504
788eca49
SM
95052020-01-17 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * mi/mi-interp.c (report_initial_inferior): Remove.
9508 (mi_interp::init): Use range-based for to iterate over inferiors.
9509
d9bc85b6
SM
95102020-01-17 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * python/py-inferior.c (build_inferior_list): Remove.
9513 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9514
40c94099
CB
95152020-01-16 Christian Biesinger <cbiesinger@google.com>
9516
9517 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9518 (btrace_stitch_trace): Likewise.
9519 * charset.c (intermediate_encoding): Likewise (vaild).
9520 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9521 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9522 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9523
e0cdfe3c
HD
95242020-01-16 Hannes Domani <ssbssa@yahoo.de>
9525
9526 * windows-tdep.c (windows_get_tlb_type):
9527 Add rtl_user_process_parameters type.
9528
790f1718 95292020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9530 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9531
9532 PR build/24805
9533 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9534 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9535 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9536 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9537 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9538 (ps_plog): Redeclare exported functions with default visibility.
9539
3112ed97
NA
95402020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9541
9542 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9543 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9544
8dc3273e
SM
95452020-01-15 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * infcmd.c (post_create_inferior): Use get_thread_regcache
9548 instead of get_current_regcache.
9549
ff47f4f0
TT
95502020-01-14 Tom Tromey <tom@tromey.com>
9551
9552 PR symtab/12535:
9553 * python/python.c (gdbpy_decode_line): Treat empty string the same
9554 as no argument.
9555
975f45b7
TT
95562020-01-14 Tom Tromey <tom@tromey.com>
9557
9558 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9559
25e57356
TT
95602020-01-14 Tom Tromey <tom@tromey.com>
9561
9562 * nat/linux-btrace.c: Don't include <config.h>.
9563 * nat/linux-ptrace.c: Don't include <config.h>.
9564 * nat/x86-linux-dregs.c: Don't include <config.h>.
9565
05ea2a05
TT
95662020-01-14 Tom Tromey <tom@tromey.com>
9567
9568 * configure: Rebuild.
9569 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9570
01027315
TT
95712020-01-14 Tom Tromey <tom@tromey.com>
9572
9573 * nat/x86-linux-dregs.c: Include configh.h.
9574 * nat/linux-ptrace.c: Include configh.h.
9575 * nat/linux-btrace.c: Include configh.h.
9576 * defs.h: Include config.h, bfd.h.
9577 * configure.ac: Don't source common.host.
9578 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9579 * configure: Rebuild.
9580 * acinclude.m4: Update path.
9581 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9582 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9583 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9584 (CLIBS): Add LIBSUPPORT.
9585 (CDEPS): Likewise.
9586 (COMMON_SFILES): Remove gdbsupport files.
9587 (HFILES_NO_SRCDIR): Likewise.
9588 (stamp-version): Update path to create-version.sh.
9589 (ALLDEPFILES): Remove gdbsupport files.
9590
b2ceabe8
TT
95912020-01-14 Tom Tromey <tom@tromey.com>
9592
9593 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9594 USE_WIN32API when needed.
9595 * configure.ac (USE_WIN32API): Don't define.
9596 (WIN32LIBS): Use WIN32APILIBS.
9597 * configure: Rebuild.
9598
25c51f71
TT
95992020-01-14 Tom Tromey <tom@tromey.com>
9600
9601 * configure: Rebuild.
9602 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9603
717c684d
BE
96042020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9605
9606 * skip.c (skip_function_command): Make skip w/o arguments use the
9607 name of the inlined function if pc is inside any inlined function.
9608
7da6a5b9
LM
96092020-01-14 Luis Machado <luis.machado@linaro.org>
9610
9611 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9612 * infrun.c (resume_1): Likewise.
9613 (handle_inferior_event): Remove stale comment.
9614 * linux-nat.c (linux_nat_target::resume): Update comments.
9615 (save_stop_reason): Likewise.
9616 (linux_nat_filter_event): Likewise.
9617 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9618
44e4c775
AB
96192020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * elfread.c (record_minimal_symbol): Set section index to 0 for
9622 non-allocatable sections.
9623
18a8505e
AT
9624
96252020-01-13 Ali Tamur <tamur@google.com>
9626
9627 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9628 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9629 to gdb::optional. Update comments.
9630 (dwo_file): Update comments.
9631 (read_attribute): Update API to take an additional out parameter,
9632 need_reprocess. This is used to mark attributes that need other
9633 attributes (e.g. str_offsets_base) for correct computation which may not
9634 have been read yet.
9635 (read_attribute_reprocess): New function declaration.
9636 (read_addr_index): Likewise.
9637 (read_dwo_str_index): Likewise.
9638 (read_stub_str_index): Likewise.
9639 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9640 (lookup_addr_base): New function definition.
9641 (lookup_ranges_base): Likewise.
9642 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9643 lookup_ranges_base.
9644 (init_cutu_and_read_dies): Update comments.
9645 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9646 unit. This is used to inherit parent's str_offsets_base and addr_base.
9647 Update comments.
9648 (init_cutu_and_read_dies_simple): Reflect API changes.
9649 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9650 (create_cus_hash_table): Change API to take parent compile unit.
9651 Reflect API changes.
9652 (open_and_init_dwo_file): Reflect API changes.
9653 (dwarf2_get_pc_bounds): Update comments.
9654 (dwarf2_record_block_ranges): Likewise.
9655 (read_full_die_1): Change implementation to reprocess attributes that
9656 need str_offsets_base and addr_base.
9657 (partial_die_info::read): Likewise.
9658 (read_attribute_reprocess): New function definition.
9659 (read_attribute_value): Change API to take an additional out parameter,
9660 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9661 when a non-dwo compile unit has index based attributes.
9662 (read_attribute): Reflect API changes.
9663 (read_addr_index_1): Reflect API changes. Update comments.
9664 (dwarf2_read_addr_index_data): Reflect API changes.
9665 (dwarf2_read_addr_index): Likewise.
9666 (read_str_index): Change API and implementation. This becomes a helper
9667 to be used by the new string index related methods. Update error
9668 message and comments.
9669 (read_dwo_str_index): New function definition.
9670 (read_stub_str_index): Likewise.
9671 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9672 * symfile.h (dwarf2_debug_sections): Likewise.
9673 * xcoffread.c (dwarf2_debug_sections): Likewise.
9674
0cac9354
SM
96752020-01-13 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9678 core_reg_sect type to gdb_byte *.
9679 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9680 * cris-tdep.c (fetch_core_registers): Likewise.
9681 * corelow.c (core_target::get_core_register_section): Change
9682 type of `contents` to gdb::byte_vector.
9683
9a6d629c
AB
96842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9685
9686 * tui/tui-wingeneral.c (box_win): Position the title in the center
9687 of the border.
9688
d8b2f9e3
SM
96892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9690
9691 * corelow.c (core_target::get_core_register_section): Use
9692 std::vector instead of alloca.
9693
bb564c58
SM
96942020-01-13 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * warning.m4: Add -Wmissing-declarations to build_warnings.
9697 * configure: Re-generate.
9698
6b366111
SM
96992020-01-13 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * python/python.c (init__gdb_module): Add declaration.
9702
6c265988
SM
97032020-01-13 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9706 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9707 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9708 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9709 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9710 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9711 * ada-exp.y (_initialize_ada_exp): Add declaration.
9712 * ada-lang.c (_initialize_ada_language): Add declaration.
9713 * ada-tasks.c (_initialize_tasks): Add declaration.
9714 * agent.c (_initialize_agent): Add declaration.
9715 * aix-thread.c (_initialize_aix_thread): Add declaration.
9716 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9717 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9718 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9719 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9720 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9721 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9722 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9723 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9724 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9725 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9726 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9727 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9728 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9729 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9730 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9731 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9732 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9733 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9734 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9735 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9736 * annotate.c (_initialize_annotate): Add declaration.
9737 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9738 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9739 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9740 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9741 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9742 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9743 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9744 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9745 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9746 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9747 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9748 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9749 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9750 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9751 * auto-load.c (_initialize_auto_load): Add declaration.
9752 * auxv.c (_initialize_auxv): Add declaration.
9753 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9754 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9755 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9756 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9757 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9758 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9759 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9760 * breakpoint.c (_initialize_breakpoint): Add declaration.
9761 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9762 * btrace.c (_initialize_btrace): Add declaration.
9763 * charset.c (_initialize_charset): Add declaration.
9764 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9765 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9766 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9767 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9768 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9769 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9770 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9771 * coffread.c (_initialize_coffread): Add declaration.
9772 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9773 * compile/compile.c (_initialize_compile): Add declaration.
9774 * complaints.c (_initialize_complaints): Add declaration.
9775 * completer.c (_initialize_completer): Add declaration.
9776 * copying.c (_initialize_copying): Add declaration.
9777 * corefile.c (_initialize_core): Add declaration.
9778 * corelow.c (_initialize_corelow): Add declaration.
9779 * cp-abi.c (_initialize_cp_abi): Add declaration.
9780 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9781 * cp-support.c (_initialize_cp_support): Add declaration.
9782 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9783 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9784 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9785 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9786 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9787 * ctfread.c (_initialize_ctfread): Add declaration.
9788 * d-lang.c (_initialize_d_language): Add declaration.
9789 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9790 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9791 * dbxread.c (_initialize_dbxread): Add declaration.
9792 * dcache.c (_initialize_dcache): Add declaration.
9793 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9794 * disasm.c (_initialize_disasm): Add declaration.
9795 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9796 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9797 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9798 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9799 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9800 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9801 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9802 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9803 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9804 * elfread.c (_initialize_elfread): Add declaration.
9805 * exec.c (_initialize_exec): Add declaration.
9806 * extension.c (_initialize_extension): Add declaration.
9807 * f-lang.c (_initialize_f_language): Add declaration.
9808 * f-valprint.c (_initialize_f_valprint): Add declaration.
9809 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9810 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9811 * filesystem.c (_initialize_filesystem): Add declaration.
9812 * findcmd.c (_initialize_mem_search): Add declaration.
9813 * findvar.c (_initialize_findvar): Add declaration.
9814 * fork-child.c (_initialize_fork_child): Add declaration.
9815 * frame-base.c (_initialize_frame_base): Add declaration.
9816 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9817 * frame.c (_initialize_frame): Add declaration.
9818 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9819 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9820 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9821 * gcore.c (_initialize_gcore): Add declaration.
9822 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9823 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9824 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9825 * gdbarch.c (_initialize_gdbarch): Add declaration.
9826 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9827 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9828 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9829 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9830 * go-lang.c (_initialize_go_language): Add declaration.
9831 * go32-nat.c (_initialize_go32_nat): Add declaration.
9832 * guile/guile.c (_initialize_guile): Add declaration.
9833 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9834 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9835 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9836 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9837 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9838 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9839 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9840 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9841 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9842 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9843 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9844 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9845 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9846 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9847 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9848 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9849 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9850 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9851 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9852 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9853 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9854 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9855 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9856 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9857 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9858 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9859 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9860 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9861 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9862 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9863 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9864 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9865 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9866 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9867 * infcall.c (_initialize_infcall): Add declaration.
9868 * infcmd.c (_initialize_infcmd): Add declaration.
9869 * inflow.c (_initialize_inflow): Add declaration.
9870 * infrun.c (_initialize_infrun): Add declaration.
9871 * interps.c (_initialize_interpreter): Add declaration.
9872 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9873 * jit.c (_initialize_jit): Add declaration.
9874 * language.c (_initialize_language): Add declaration.
9875 * linux-fork.c (_initialize_linux_fork): Add declaration.
9876 * linux-nat.c (_initialize_linux_nat): Add declaration.
9877 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9878 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9879 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9880 * m2-lang.c (_initialize_m2_language): Add declaration.
9881 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9882 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9883 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9884 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9885 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9886 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9887 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9888 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9889 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9890 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9891 * machoread.c (_initialize_machoread): Add declaration.
9892 * macrocmd.c (_initialize_macrocmd): Add declaration.
9893 * macroscope.c (_initialize_macroscope): Add declaration.
9894 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9895 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9896 * maint.c (_initialize_maint_cmds): Add declaration.
9897 * mdebugread.c (_initialize_mdebugread): Add declaration.
9898 * memattr.c (_initialize_mem): Add declaration.
9899 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9900 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9901 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9902 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9903 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9904 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9905 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9906 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9907 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9908 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9909 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9910 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9911 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9912 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9913 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9914 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9915 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9916 * mipsread.c (_initialize_mipsread): Add declaration.
9917 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9918 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9919 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9920 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9921 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9922 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9923 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9924 * nto-procfs.c (_initialize_procfs): Add declaration.
9925 * objc-lang.c (_initialize_objc_language): Add declaration.
9926 * observable.c (_initialize_observer): Add declaration.
9927 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9928 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9929 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9930 * osabi.c (_initialize_gdb_osabi): Add declaration.
9931 * osdata.c (_initialize_osdata): Add declaration.
9932 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9933 * parse.c (_initialize_parse): Add declaration.
9934 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9935 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9936 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9937 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9938 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9939 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9940 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9941 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9942 * printcmd.c (_initialize_printcmd): Add declaration.
9943 * probe.c (_initialize_probe): Add declaration.
9944 * proc-api.c (_initialize_proc_api): Add declaration.
9945 * proc-events.c (_initialize_proc_events): Add declaration.
9946 * proc-service.c (_initialize_proc_service): Add declaration.
9947 * procfs.c (_initialize_procfs): Add declaration.
9948 * producer.c (_initialize_producer): Add declaration.
9949 * psymtab.c (_initialize_psymtab): Add declaration.
9950 * python/python.c (_initialize_python): Add declaration.
9951 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9952 * record-btrace.c (_initialize_record_btrace): Add declaration.
9953 * record-full.c (_initialize_record_full): Add declaration.
9954 * record.c (_initialize_record): Add declaration.
9955 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9956 * regcache.c (_initialize_regcache): Add declaration.
9957 * reggroups.c (_initialize_reggroup): Add declaration.
9958 * remote-notif.c (_initialize_notif): Add declaration.
9959 * remote-sim.c (_initialize_remote_sim): Add declaration.
9960 * remote.c (_initialize_remote): Add declaration.
9961 * reverse.c (_initialize_reverse): Add declaration.
9962 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9963 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9964 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9965 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9966 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9967 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9968 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9969 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9970 Add declaration.
9971 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9972 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9973 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9974 * rust-exp.y (_initialize_rust_exp): Add declaration.
9975 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9976 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9977 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9978 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9979 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9980 * score-tdep.c (_initialize_score_tdep): Add declaration.
9981 * ser-go32.c (_initialize_ser_dos): Add declaration.
9982 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9983 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9984 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9985 * ser-uds.c (_initialize_ser_socket): Add declaration.
9986 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9987 * serial.c (_initialize_serial): Add declaration.
9988 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9989 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9990 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9991 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9992 * skip.c (_initialize_step_skip): Add declaration.
9993 * sol-thread.c (_initialize_sol_thread): Add declaration.
9994 * solib-aix.c (_initialize_solib_aix): Add declaration.
9995 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9996 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9997 * solib-frv.c (_initialize_frv_solib): Add declaration.
9998 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9999 * solib-target.c (_initialize_solib_target): Add declaration.
10000 * solib.c (_initialize_solib): Add declaration.
10001 * source-cache.c (_initialize_source_cache): Add declaration.
10002 * source.c (_initialize_source): Add declaration.
10003 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10004 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10005 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10006 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10007 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10008 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10009 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10010 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10011 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10012 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10013 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10014 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10015 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10016 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10017 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10018 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10019 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10020 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10021 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10022 * stabsread.c (_initialize_stabsread): Add declaration.
10023 * stack.c (_initialize_stack): Add declaration.
10024 * stap-probe.c (_initialize_stap_probe): Add declaration.
10025 * std-regs.c (_initialize_frame_reg): Add declaration.
10026 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10027 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10028 * symfile.c (_initialize_symfile): Add declaration.
10029 * symmisc.c (_initialize_symmisc): Add declaration.
10030 * symtab.c (_initialize_symtab): Add declaration.
10031 * target.c (_initialize_target): Add declaration.
10032 * target-connection.c (_initialize_target_connection): Add
10033 declaration.
10034 * target-dcache.c (_initialize_target_dcache): Add declaration.
10035 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10036 * thread.c (_initialize_thread): Add declaration.
10037 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10038 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10039 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10040 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10041 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10042 * tracectf.c (_initialize_ctf): Add declaration.
10043 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10044 * tracefile.c (_initialize_tracefile): Add declaration.
10045 * tracepoint.c (_initialize_tracepoint): Add declaration.
10046 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10047 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10048 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10049 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10050 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10051 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10052 * tui/tui.c (_initialize_tui): Add declaration.
10053 * typeprint.c (_initialize_typeprint): Add declaration.
10054 * ui-style.c (_initialize_ui_style): Add declaration.
10055 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10056 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10057 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10058 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10059 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10060 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10061 * unittests/filtered_iterator-selftests.c
10062 (_initialize_filtered_iterator_selftests): Add declaration.
10063 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10064 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10065 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10066 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10067 * unittests/main-thread-selftests.c
10068 (_initialize_main_thread_selftests): Add declaration.
10069 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10070 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10071 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10072 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10073 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10074 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10075 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10076 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10077 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10078 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10079 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10080 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10081 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10082 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10083 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10084 declaration.
10085 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10086 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10087 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10088 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10089 * user-regs.c (_initialize_user_regs): Add declaration.
10090 * utils.c (_initialize_utils): Add declaration.
10091 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10092 * valops.c (_initialize_valops): Add declaration.
10093 * valprint.c (_initialize_valprint): Add declaration.
10094 * value.c (_initialize_values): Add declaration.
10095 * varobj.c (_initialize_varobj): Add declaration.
10096 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10097 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10098 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10099 * windows-nat.c (_initialize_windows_nat): Add declaration.
10100 (_initialize_check_for_gdb_ini): Add declaration.
10101 (_initialize_loadable): Add declaration.
10102 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10103 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10104 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10105 * xcoffread.c (_initialize_xcoffread): Add declaration.
10106 * xml-support.c (_initialize_xml_support): Add declaration.
10107 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10108 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10109 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10110 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10111
e2de1eec
SM
101122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10113
10114 * regformats/regdat.sh: Generate declaration for init function.
10115
e0037b4c
SM
101162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10117
10118 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10119 up.
10120 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10121 close_one_inferior>: New methods.
10122 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10123 pass down target to find_inferior_pid.
10124 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10125 Pass down target to find_inferior_ptid.
10126 (gdbsim_target::create_inferior): Pass down target to
10127 add_thread_silent.
10128 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10129 target down to find_inferior_ptid and switch_to_thread.
10130 (gdbsim_target::close): Update to call close_one_inferior.
10131 (struct resume_data): Remove.
10132 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10133 directly, rather than through a void pointer.
10134 (gdbsim_target::resume): Update to call resume_one_inferior.
10135
58920b5b
SM
101362020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10137
10138 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10139
4ec89149
PA
101402020-01-12 Pedro Alves <palves@redhat.com>
10141
10142 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10143 directly for the current inferior instead of
10144 discard_all_inferiors.
10145 (discard_all_inferiors): Delete.
10146
7c392d1d
TT
101472020-01-11 Tom Tromey <tom@tromey.com>
10148
10149 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10150 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10151 deprecated_safe_get_selected_frame.
10152
d9ebdab7
TBA
101532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10154
10155 * inferior.c (print_inferior): Switch inferior before printing it.
10156
f3c469b9
PA
101572020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10158 Pedro Alves <palves@redhat.com>
10159
10160 * progspace-and-thread.c (switch_to_program_space_and_thread):
10161 Assert there's an inferior for PSPACE. Use
10162 switch_to_inferior_no_thread to switch the inferior too.
10163 * progspace.c (program_space::~program_space): Call
10164 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10165 (program_space::free_all_objfiles): Don't call clear_symtab_users
10166 here.
10167 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10168
65c574f6
PA
101692020-01-10 Pedro Alves <palves@redhat.com>
10170
10171 * NEWS: Mention multi-target debugging, "info connections", and
10172 "add-inferior -no-connection".
10173
2f4fcf00
PA
101742020-01-10 Pedro Alves <palves@redhat.com>
10175
10176 * infrun.c: Include "target-connection.h".
10177 (check_multi_target_resumption): New.
10178 (proceed): Call it.
10179 * target-connection.c (make_target_connection_string): Make
10180 extern.
10181 * target-connection.h (make_target_connection_string): Declare.
10182
121b3efd
PA
101832020-01-10 Pedro Alves <palves@redhat.com>
10184
10185 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10186 * inferior.c (uiout_field_connection): New function.
10187 (print_inferior): Add new "connection-id" column.
10188 (add_inferior_command): Show connection number/string of added
10189 inferior.
10190 * process-stratum-target.h
10191 (process_stratum_target::connection_string): New virtual method.
10192 (process_stratum_target::connection_number): New field.
10193 * remote.c (remote_target::connection_string): New override.
10194 * target-connection.c: New file.
10195 * target-connection.h: New file.
10196 * target.c (decref_target): Remove process_stratum targets from
10197 the connection list.
10198 (target_stack::push): Add process_stratum targets to the
10199 connection list.
10200
4f837581
PA
102012020-01-10 Pedro Alves <palves@redhat.com>
10202
10203 Revert:
10204 2016-04-12 Pedro Alves <palves@redhat.com>
10205 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10206 Remove references to name.
10207 * serial.h (struct serial) <name>: Delete.
10208
f4ec508e
PA
102092020-01-10 Pedro Alves <palves@redhat.com>
10210
10211 * gdbarch-selftests.c (register_to_value_test): Remove "target
10212 already pushed" check.
10213
5b6d1e4f
PA
102142020-01-10 Pedro Alves <palves@redhat.com>
10215 John Baldwin <jhb@FreeBSD.org>
10216
10217 * aarch64-linux-nat.c
10218 (aarch64_linux_nat_target::thread_architecture): Adjust.
10219 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10220 (task_command_1): Likewise.
10221 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10222 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10223 (aix_thread_target::store_registers)
10224 (aix_thread_target::thread_alive): Adjust.
10225 * amd64-fbsd-tdep.c: Include "inferior.h".
10226 (amd64fbsd_get_thread_local_address): Pass down target.
10227 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10228 thread's gdbarch instead of target_gdbarch.
10229 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10230 get_last_target_status.
10231 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10232 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10233 inferiors.
10234 (update_inserted_breakpoint_locations): Skip if inferiors with no
10235 execution.
10236 (update_global_location_list): When handling moribund locations,
10237 find representative inferior for location's pspace, and use thread
10238 count of its process_stratum target.
10239 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10240 * bsd-uthread.c (bsd_uthread_target::wait): Use
10241 as_process_stratum_target and adjust thread_change_ptid and
10242 add_thread calls.
10243 (bsd_uthread_target::update_thread_list): Use
10244 as_process_stratum_target and adjust find_thread_ptid,
10245 thread_change_ptid and add_thread calls.
10246 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10247 find_thread_ptid call.
10248 * corelow.c (add_to_thread_list): Adjust add_thread call.
10249 (core_target_open): Adjust add_thread_silent and thread_count
10250 calls.
10251 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10252 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10253 * event-top.c (async_disconnect): Pop targets from all inferiors.
10254 * exec.c (add_target_sections): Push exec target on all inferiors
10255 sharing the program space.
10256 (remove_target_sections): Remove the exec target from all
10257 inferiors sharing the program space.
10258 (exec_on_vfork): New.
10259 * exec.h (exec_on_vfork): Declare.
10260 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10261 Pass it down.
10262 (fbsd_nat_target::update_thread_list): Adjust.
10263 (fbsd_nat_target::resume): Adjust.
10264 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10265 down.
10266 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10267 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10268 get_thread_arch_regcache call.
10269 * fork-child.c (gdb_startup_inferior): Pass target down to
10270 startup_inferior and set_executing.
10271 * gdbthread.h (struct process_stratum_target): Forward declare.
10272 (add_thread, add_thread_silent, add_thread_with_info)
10273 (in_thread_list): Add process_stratum_target parameter.
10274 (find_thread_ptid(inferior*, ptid_t)): New overload.
10275 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10276 parameter.
10277 (all_threads()): Delete overload.
10278 (all_threads, all_non_exited_threads): Add process_stratum_target
10279 parameter.
10280 (all_threads_safe): Use brace initialization.
10281 (thread_count): Add process_stratum_target parameter.
10282 (set_resumed, set_running, set_stop_requested, set_executing)
10283 (threads_are_executing, finish_thread_state): Add
10284 process_stratum_target parameter.
10285 (switch_to_thread): Use is_current_thread.
10286 * i386-fbsd-tdep.c: Include "inferior.h".
10287 (i386fbsd_get_thread_local_address): Pass down target.
10288 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10289 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10290 have_inferiors check.
10291 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10292 (inf_ptrace_target::attach): Adjust.
10293 * infcall.c (run_inferior_call): Adjust.
10294 * infcmd.c (run_command_1): Pass target to
10295 scoped_finish_thread_state.
10296 (proceed_thread_callback): Skip inferiors with no execution.
10297 (continue_command): Rename 'all_threads' local to avoid hiding
10298 'all_threads' function. Adjust get_last_target_status call.
10299 (prepare_one_step): Adjust set_running call.
10300 (signal_command): Use user_visible_resume_target. Compare thread
10301 pointers instead of inferior_ptid.
10302 (info_program_command): Adjust to pass down target.
10303 (attach_command): Mark target's 'thread_executing' flag.
10304 (stop_current_target_threads_ns): New, factored out from ...
10305 (interrupt_target_1): ... this. Switch inferior before making
10306 target calls.
10307 * inferior-iter.h
10308 (struct all_inferiors_iterator, struct all_inferiors_range)
10309 (struct all_inferiors_safe_range)
10310 (struct all_non_exited_inferiors_range): Filter on
10311 process_stratum_target too. Remove explicit.
10312 * inferior.c (inferior::inferior): Push dummy target on target
10313 stack.
10314 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10315 Add process_stratum_target parameter, and pass it down.
10316 (have_live_inferiors): Adjust.
10317 (switch_to_inferior_and_push_target): New.
10318 (add_inferior_command, clone_inferior_command): Handle
10319 "-no-connection" parameter. Use
10320 switch_to_inferior_and_push_target.
10321 (_initialize_inferior): Mention "-no-connection" option in
10322 the help of "add-inferior" and "clone-inferior" commands.
10323 * inferior.h: Include "process-stratum-target.h".
10324 (interrupt_target_1): Use bool.
10325 (struct inferior) <push_target, unpush_target, target_is_pushed,
10326 find_target_beneath, top_target, process_target, target_at,
10327 m_stack>: New.
10328 (discard_all_inferiors): Delete.
10329 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10330 (all_inferiors, all_non_exited_inferiors): Add
10331 process_stratum_target parameter.
10332 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10333 (target_last_proc_target): New global.
10334 (follow_fork_inferior): Push target on new inferior. Pass target
10335 to add_thread_silent. Call exec_on_vfork. Handle target's
10336 reference count.
10337 (follow_fork): Adjust get_last_target_status call. Also consider
10338 target.
10339 (follow_exec): Push target on new inferior.
10340 (struct execution_control_state) <target>: New field.
10341 (user_visible_resume_target): New.
10342 (do_target_resume): Call target_async.
10343 (resume_1): Set target's threads_executing flag. Consider resume
10344 target.
10345 (commit_resume_all_targets): New.
10346 (proceed): Also consider resume target. Skip threads of inferiors
10347 with no execution. Commit resumtion in all targets.
10348 (start_remote): Pass current inferior to wait_for_inferior.
10349 (infrun_thread_stop_requested): Consider target as well. Pass
10350 thread_info pointer to clear_inline_frame_state instead of ptid.
10351 (infrun_thread_thread_exit): Consider target as well.
10352 (random_pending_event_thread): New inferior parameter. Use it.
10353 (do_target_wait): Rename to ...
10354 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10355 down.
10356 (threads_are_resumed_pending_p, do_target_wait): New.
10357 (prepare_for_detach): Adjust calls.
10358 (wait_for_inferior): New inferior parameter. Handle it. Use
10359 do_target_wait_1 instead of do_target_wait.
10360 (fetch_inferior_event): Adjust. Switch to representative
10361 inferior. Pass target down.
10362 (set_last_target_status): Add process_stratum_target parameter.
10363 Save target in global.
10364 (get_last_target_status): Add process_stratum_target parameter and
10365 handle it.
10366 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10367 (context_switch): Check inferior_ptid == null_ptid before calling
10368 inferior_thread().
10369 (get_inferior_stop_soon): Pass down target.
10370 (wait_one): Rename to ...
10371 (poll_one_curr_target): ... this.
10372 (struct wait_one_event): New.
10373 (wait_one): New.
10374 (stop_all_threads): Adjust.
10375 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10376 event's target.
10377 (switch_back_to_stepped_thread): Also consider target.
10378 (print_stop_event): Update.
10379 (normal_stop): Update. Also consider the resume target.
10380 * infrun.h (wait_for_inferior): Remove declaration.
10381 (user_visible_resume_target): New declaration.
10382 (get_last_target_status, set_last_target_status): New
10383 process_stratum_target parameter.
10384 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10385 process_stratum_target parameter, and use it.
10386 (clear_inline_frame_state (thread_info*)): New.
10387 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10388 process_stratum_target parameter.
10389 (clear_inline_frame_state (thread_info*)): Declare.
10390 * linux-fork.c (delete_checkpoint_command): Pass target down to
10391 find_thread_ptid.
10392 (checkpoint_command): Adjust.
10393 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10394 instead of just tweaking inferior_ptid.
10395 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10396 (exit_lwp): Pass target down to find_thread_ptid.
10397 (attach_proc_task_lwp_callback): Pass target down to
10398 add_thread/set_running/set_executing.
10399 (linux_nat_target::attach): Pass target down to
10400 thread_change_ptid.
10401 (get_detach_signal): Pass target down to find_thread_ptid.
10402 Consider last target status's target.
10403 (linux_resume_one_lwp_throw, resume_lwp)
10404 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10405 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10406 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10407 (linux_nat_target::async_wait_fd): New.
10408 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10409 target down.
10410 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10411 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10412 * linux-thread-db.c (struct thread_db_info::process_target): New
10413 field.
10414 (add_thread_db_info): Save target.
10415 (get_thread_db_info): New process_stratum_target parameter. Also
10416 match target.
10417 (delete_thread_db_info): New process_stratum_target parameter.
10418 Also match target.
10419 (thread_from_lwp): Adjust to pass down target.
10420 (thread_db_notice_clone): Pass down target.
10421 (check_thread_db_callback): Pass down target.
10422 (try_thread_db_load_1): Always push the thread_db target.
10423 (try_thread_db_load, record_thread): Pass target down.
10424 (thread_db_target::detach): Pass target down. Always unpush the
10425 thread_db target.
10426 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10427 target down. Always unpush the thread_db target.
10428 (find_new_threads_callback, thread_db_find_new_threads_2)
10429 (thread_db_target::update_thread_list): Pass target down.
10430 (thread_db_target::pid_to_str): Pass current inferior down.
10431 (thread_db_target::get_thread_local_address): Pass target down.
10432 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10433 target down.
10434 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10435 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10436 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10437 (procfs_init_inferior): Rename to ...
10438 (procfs_target::procfs_init_inferior): ... this and adjust.
10439 (procfs_target::create_inferior, procfs_notice_thread)
10440 (procfs_do_thread_registers): Adjust.
10441 * ppc-fbsd-tdep.c: Include "inferior.h".
10442 (ppcfbsd_get_thread_local_address): Pass down target.
10443 * proc-service.c (ps_xfer_memory): Switch current inferior and
10444 program space as well.
10445 (get_ps_regcache): Pass target down.
10446 * process-stratum-target.c
10447 (process_stratum_target::thread_address_space)
10448 (process_stratum_target::thread_architecture): Pass target down.
10449 * process-stratum-target.h
10450 (process_stratum_target::threads_executing): New field.
10451 (as_process_stratum_target): New.
10452 * ravenscar-thread.c
10453 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10454 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10455 down.
10456 * record-btrace.c (record_btrace_target::info_record): Adjust.
10457 (record_btrace_target::record_method)
10458 (record_btrace_target::record_is_replaying)
10459 (record_btrace_target::fetch_registers)
10460 (get_thread_current_frame_id, record_btrace_target::resume)
10461 (record_btrace_target::wait, record_btrace_target::stop): Pass
10462 target down.
10463 * record-full.c (record_full_wait_1): Switch to event thread.
10464 Pass target down.
10465 * regcache.c (regcache::regcache)
10466 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10467 process_stratum_target parameter and handle it.
10468 (current_thread_target): New global.
10469 (get_thread_regcache): Add process_stratum_target parameter and
10470 handle it. Switch inferior before calling target method.
10471 (get_thread_regcache): Pass target down.
10472 (get_thread_regcache_for_ptid): Pass target down.
10473 (registers_changed_ptid): Add process_stratum_target parameter and
10474 handle it.
10475 (registers_changed_thread, registers_changed): Pass target down.
10476 (test_get_thread_arch_aspace_regcache): New.
10477 (current_regcache_test): Define a couple local test_target_ops
10478 instances and use them for testing.
10479 (readwrite_regcache): Pass process_stratum_target parameter.
10480 (cooked_read_test, cooked_write_test): Pass mock_target down.
10481 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10482 (get_thread_arch_aspace_regcache): Add process_stratum_target
10483 parameter.
10484 (regcache::target): New method.
10485 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10486 (regcache::registers_changed_ptid): Add process_stratum_target
10487 parameter.
10488 (regcache::m_target): New field.
10489 (registers_changed_ptid): Add process_stratum_target parameter.
10490 * remote.c (remote_state::supports_vCont_probed): New field.
10491 (remote_target::async_wait_fd): New method.
10492 (remote_unpush_and_throw): Add remote_target parameter.
10493 (get_current_remote_target): Adjust.
10494 (remote_target::remote_add_inferior): Push target.
10495 (remote_target::remote_add_thread)
10496 (remote_target::remote_notice_new_inferior)
10497 (get_remote_thread_info): Pass target down.
10498 (remote_target::update_thread_list): Skip threads of inferiors
10499 bound to other targets. (remote_target::close): Don't discard
10500 inferiors. (remote_target::add_current_inferior_and_thread)
10501 (remote_target::process_initial_stop_replies)
10502 (remote_target::start_remote)
10503 (remote_target::remote_serial_quit_handler): Pass down target.
10504 (remote_target::remote_unpush_target): New remote_target
10505 parameter. Unpush the target from all inferiors.
10506 (remote_target::remote_unpush_and_throw): New remote_target
10507 parameter. Pass it down.
10508 (remote_target::open_1): Check whether the current inferior has
10509 execution instead of checking whether any inferior is live. Pass
10510 target down.
10511 (remote_target::remote_detach_1): Pass down target. Use
10512 remote_unpush_target.
10513 (extended_remote_target::attach): Pass down target.
10514 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10515 (remote_target::append_resumption): Pass down target.
10516 (remote_target::append_pending_thread_resumptions)
10517 (remote_target::remote_resume_with_hc, remote_target::resume)
10518 (remote_target::commit_resume): Pass down target.
10519 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10520 (remote_target::interrupt_query)
10521 (remote_target::remove_new_fork_children)
10522 (remote_target::check_pending_events_prevent_wildcard_vcont)
10523 (remote_target::remote_parse_stop_reply)
10524 (remote_target::process_stop_reply): Pass down target.
10525 (first_remote_resumed_thread): New remote_target parameter. Pass
10526 it down.
10527 (remote_target::wait_as): Pass down target.
10528 (unpush_and_perror): New remote_target parameter. Pass it down.
10529 (remote_target::readchar, remote_target::remote_serial_write)
10530 (remote_target::getpkt_or_notif_sane_1)
10531 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10532 down target.
10533 (remote_target::mourn_inferior): Pass down target. Use
10534 remote_unpush_target.
10535 (remote_target::core_of_thread)
10536 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10537 (remote_target::pid_to_exec_file)
10538 (remote_target::thread_handle_to_thread_info): Pass down target.
10539 (remote_target::async_wait_fd): New.
10540 * riscv-fbsd-tdep.c: Include "inferior.h".
10541 (riscv_fbsd_get_thread_local_address): Pass down target.
10542 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10543 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10544 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10545 Adjust.
10546 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10547 * solib-svr4.c (enable_break): Pass down target.
10548 * spu-multiarch.c (parse_spufs_run): Pass down target.
10549 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10550 * target-delegates.c: Regenerate.
10551 * target.c (g_target_stack): Delete.
10552 (current_top_target): Return the current inferior's top target.
10553 (target_has_execution_1): Refer to the passed-in inferior's top
10554 target.
10555 (target_supports_terminal_ours): Check whether the initial
10556 inferior was already created.
10557 (decref_target): New.
10558 (target_stack::push): Incref/decref the target.
10559 (push_target, push_target, unpush_target): Adjust.
10560 (target_stack::unpush): Defref target.
10561 (target_is_pushed): Return bool. Adjust to refer to the current
10562 inferior's target stack.
10563 (dispose_inferior): Delete, and inline parts ...
10564 (target_preopen): ... here. Only dispose of the current inferior.
10565 (target_detach): Hold strong target reference while detaching.
10566 Pass target down.
10567 (target_thread_name): Add assertion.
10568 (target_resume): Pass down target.
10569 (target_ops::beneath, find_target_at): Adjust to refer to the
10570 current inferior's target stack.
10571 (get_dummy_target): New.
10572 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10573 has a thread running.
10574 (initialize_targets): Rename to ...
10575 (_initialize_target): ... this.
10576 * target.h: Include "gdbsupport/refcounted-object.h".
10577 (struct target_ops): Inherit refcounted_object.
10578 (target_ops::shortname, target_ops::longname): Make const.
10579 (target_ops::async_wait_fd): New method.
10580 (decref_target): Declare.
10581 (struct target_ops_ref_policy): New.
10582 (target_ops_ref): New typedef.
10583 (get_dummy_target): Declare function.
10584 (target_is_pushed): Return bool.
10585 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10586 (all_matching_threads_iterator::all_matching_threads_iterator):
10587 Handle filter target.
10588 * thread-iter.h (struct all_matching_threads_iterator, struct
10589 all_matching_threads_range, class all_non_exited_threads_range):
10590 Filter by target too. Remove explicit.
10591 * thread.c (threads_executing): Delete.
10592 (inferior_thread): Pass down current inferior.
10593 (clear_thread_inferior_resources): Pass down thread pointer
10594 instead of ptid_t.
10595 (add_thread_silent, add_thread_with_info, add_thread): Add
10596 process_stratum_target parameter. Use it for thread and inferior
10597 searches.
10598 (is_current_thread): New.
10599 (thread_info::deletable): Use it.
10600 (find_thread_ptid, thread_count, in_thread_list)
10601 (thread_change_ptid, set_resumed, set_running): New
10602 process_stratum_target parameter. Pass it down.
10603 (set_executing): New process_stratum_target parameter. Pass it
10604 down. Adjust reference to 'threads_executing'.
10605 (threads_are_executing): New process_stratum_target parameter.
10606 Adjust reference to 'threads_executing'.
10607 (set_stop_requested, finish_thread_state): New
10608 process_stratum_target parameter. Pass it down.
10609 (switch_to_thread): Also match inferior.
10610 (switch_to_thread): New process_stratum_target parameter. Pass it
10611 down.
10612 (update_threads_executing): Reimplement.
10613 * top.c (quit_force): Pop targets from all inferior.
10614 (gdb_init): Don't call initialize_targets.
10615 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10616 Declare.
10617 (windows_add_thread, windows_delete_thread): Adjust.
10618 (get_windows_debug_event): Rename to ...
10619 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10620 * tracefile-tfile.c (tfile_target_open): Pass down target.
10621 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10622 Forward declare.
10623 (switch_to_thread): Add process_stratum_target parameter.
10624 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10625 parameter. Use it.
10626 (mi_on_resume): Pass target down.
10627 * nat/fork-inferior.c (startup_inferior): Add
10628 process_stratum_target parameter. Pass it down.
10629 * nat/fork-inferior.h (startup_inferior): Add
10630 process_stratum_target parameter.
10631 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10632
75c6c844
PA
106332020-01-10 Pedro Alves <palves@redhat.com>
10634
10635 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10636 directly. Instead find the first thread in the thread list and
10637 use switch_to_thread.
10638
78f2c40a
PA
106392020-01-10 Pedro Alves <palves@redhat.com>
10640
10641 * remote.c (remote_target::remote_add_inferior): Don't bind a
10642 process to the current inferior if the current inferior is already
10643 bound to a process.
10644
e7af6c70
TBA
106452020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10646 Pedro Alves <palves@redhat.com>
10647
10648 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10649 If no process is specified, return null_ptid instead of
10650 inferior_ptid.
10651 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10652 TARGET_WAITKIND_SIGNALLED with no pid.
10653
31ba933e
PA
106542020-01-10 Pedro Alves <palves@redhat.com>
10655
10656 * remote.c (first_remote_resumed_thread): New.
10657 (remote_target::wait_as): Use it as default event_ptid instead of
10658 inferior_ptid.
10659
735fc2ca
PA
106602020-01-10 Pedro Alves <palves@redhat.com>
10661
10662 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10663
c17e02e1
PA
106642020-01-10 Pedro Alves <palves@redhat.com>
10665
10666 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10667 not -1.
10668
ab1ddbcf
PA
106692020-01-10 Pedro Alves <palves@redhat.com>
10670
10671 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10672 ptid to get_last_target_status.
10673 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10674 ptid to get_last_target_status.
10675 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10676 get_last_target_status.
10677 (info_program_command): Don't pass a target_waitstatus to
10678 get_last_target_status.
10679 * infrun.c (init_wait_for_inferior): Use
10680 nullify_last_target_wait_ptid.
10681 (get_last_target_status): Handle nullptr arguments.
10682 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10683 (print_stop_event): Don't pass a ptid to get_last_target_status.
10684 (normal_stop): Don't pass a ptid to get_last_target_status.
10685 * infrun.h (get_last_target_status, set_last_target_status): Move
10686 comments here and update.
10687 (nullify_last_target_wait_ptid): Declare.
10688 * linux-fork.c (fork_load_infrun_state): Remove local extern
10689 declaration of nullify_last_target_wait_ptid.
10690 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10691 to get_last_target_status.
10692
f3f8ece4
PA
106932020-01-10 Pedro Alves <palves@redhat.com>
10694
10695 * gdbthread.h (scoped_restore_current_thread)
10696 <dont_restore, restore, m_dont_restore>: Declare.
10697 * thread.c (thread_alive): Add assertion. Return bool.
10698 (switch_to_thread_if_alive): New.
10699 (prune_threads): Switch inferior/thread.
10700 (print_thread_info_1): Switch thread before calling target methods.
10701 (scoped_restore_current_thread::restore): New, factored out from
10702 ...
10703 (scoped_restore_current_thread::~scoped_restore_current_thread):
10704 ... this.
10705 (scoped_restore_current_thread::scoped_restore_current_thread):
10706 Add assertion.
10707 (thread_apply_all_command, thread_select): Use
10708 switch_to_thread_if_alive.
10709 * infrun.c (proceed, restart_threads, handle_signal_stop)
10710 (switch_back_to_stepped_thread): Switch current thread before
10711 calling target methods.
10712
db2d40f7
PA
107132020-01-10 Pedro Alves <palves@redhat.com>
10714
10715 * inferior.c (switch_to_inferior_no_thread): New function,
10716 factored out from ...
10717 (inferior_command): ... here.
10718 * inferior.h (switch_to_inferior_no_thread): Declare.
10719 * mi/mi-main.c (run_one_inferior): Use
10720 switch_to_inferior_no_thread.
10721
bd420a2d
PA
107222020-01-10 Pedro Alves <palves@redhat.com>
10723
10724 * infcmd.c (kill_command): Remove dead code.
10725
ddf5db90
PA
107262020-01-10 Pedro Alves <palves@redhat.com>
10727
10728 * remote.c (remote_target::mourn_inferior): No longer check
10729 whether the target is running.
10730
5018ce90
PA
107312020-01-10 Pedro Alves <palves@redhat.com>
10732
10733 * corelow.c (core_target::has_execution): Change parameter type to
10734 inferior pointer.
10735 * inferior.c (number_of_live_inferiors): Use
10736 inferior::has_execution instead of target_has_execution_1.
10737 * inferior.h (inferior::has_execution): New.
10738 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10739 inferior::has_execution instead of target_has_execution_1.
10740 * process-stratum-target.c
10741 (process_stratum_target::has_execution): Change parameter type to
10742 inferior pointer. Check the inferior's PID instead of
10743 inferior_ptid.
10744 * process-stratum-target.h
10745 (process_stratum_target::has_execution): Change parameter type to
10746 inferior pointer.
10747 * record-full.c (record_full_core_target::has_execution): Change
10748 parameter type to inferior pointer.
10749 * target.c (target_has_execution_1): Change parameter type to
10750 inferior pointer.
10751 (target_has_execution_current): Adjust.
10752 * target.h (target_ops::has_execution): Change parameter type to
10753 inferior pointer.
10754 (target_has_execution_1): Change parameter type to inferior
10755 pointer. Change return type to bool.
10756 * tracefile.h (tracefile_target::has_execution): Change parameter
10757 type to inferior pointer.
10758
74375d18
PA
107592020-01-10 Pedro Alves <palves@redhat.com>
10760
10761 * exceptions.c (print_flush): Remove current_top_target() check.
10762
acdf84a6
PA
107632020-01-10 Pedro Alves <palves@redhat.com>
10764
10765 * remote.c (show_remote_exec_file): Show the current inferior's
10766 exec-file instead of the command variable's value.
10767
ec506636
PA
107682020-01-10 Pedro Alves <palves@redhat.com>
10769
10770 * record-full.c (record_full_resume_ptid): New global.
10771 (record_full_target::resume): Set it.
10772 (record_full_wait_1): Use record_full_resume_ptid instead of
10773 inferior_ptid.
10774
873657b9
PA
107752020-01-10 Pedro Alves <palves@redhat.com>
10776
10777 * gdbthread.h (scoped_restore_current_thread)
10778 <dont_restore, restore, m_dont_restore>: Declare.
10779 * thread.c (thread_alive): Add assertion. Return bool.
10780 (switch_to_thread_if_alive): New.
10781 (prune_threads): Switch inferior/thread.
10782 (print_thread_info_1): Switch thread before calling target methods.
10783 (scoped_restore_current_thread::restore): New, factored out from
10784 ...
10785 (scoped_restore_current_thread::~scoped_restore_current_thread):
10786 ... this.
10787 (scoped_restore_current_thread::scoped_restore_current_thread):
10788 Add assertion.
10789 (thread_apply_all_command, thread_select): Use
10790 switch_to_thread_if_alive.
10791
7f0ae84c
GB
107922020-01-10 George Barrett <bob@bob131.so>
10793
10794 * stap-probe.c (stap_modify_semaphore): Don't check for null
10795 semaphores.
10796 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10797 for null semaphores.
10798
f5a7c406
AB
107992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10802 all source windows, and maintain horizontal scroll status while
10803 doing so.
10804
9ae6bf64
TT
108052020-01-09 Tom Tromey <tom@tromey.com>
10806
10807 PR tui/18932:
10808 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10809 update_source_window, not print_source_lines.
10810
b2efe70c
AB
108112020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * tui/tui.c (tui_enable): Register tui hooks after calling
10814 tui_display_main.
10815
5f23a082
CB
108162020-01-09 Christian Biesinger <cbiesinger@google.com>
10817
10818 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10819
3061113b
SM
108202020-01-08 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * thread.c (print_thread_info_1): Fix indentation.
10823
57d75002
CB
108242020-01-09 Christian Biesinger <cbiesinger@google.com>
10825
10826 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10827 unique_xmalloc_ptr outside the if to always free the demangled name.
10828
6a053cb1
TT
108292020-01-08 Tom Tromey <tromey@adacore.com>
10830
10831 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10832 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10833 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10834 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10835 Remove.
10836 (section_offsets): New typedef.
10837 * symtab.c (fixup_section, get_msymbol_address): Update.
10838 * symmisc.c (dump_msymbols): Update.
10839 * symfile.h (relative_addr_info_to_section_offsets)
10840 (symfile_map_offsets_to_segments): Update.
10841 * symfile.c (build_section_addr_info_from_objfile)
10842 (init_objfile_sect_indices): Update.
10843 (struct place_section_arg): Change type of "offsets".
10844 (place_section): Update.
10845 (relative_addr_info_to_section_offsets): Change type of
10846 "section_offsets". Remove "num_sections" parameter.
10847 (default_symfile_offsets, syms_from_objfile_1)
10848 (set_objfile_default_section_offset): Update.
10849 (reread_symbols): No need to preserve section offsets by hand.
10850 (symfile_map_offsets_to_segments): Change type of "offsets".
10851 * stap-probe.c (relocate_address): Update.
10852 * stabsread.h (process_one_symbol): Update.
10853 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10854 (solib_target_relocate_section_addresses): Update.
10855 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10856 Update.
10857 * solib-frv.c (frv_relocate_main_executable): Update.
10858 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10859 * solib-aix.c (solib_aix_get_section_offsets): Change return
10860 type.
10861 (solib_aix_solib_create_inferior_hook): Update.
10862 * remote.c (remote_target::get_offsets): Update.
10863 * psymtab.c (find_pc_sect_psymtab): Update.
10864 * psympriv.h (struct partial_symbol) <address, text_low,
10865 text_high>: Update.
10866 * objfiles.h (obj_section_offset): Update.
10867 (struct objfile) <section_offsets>: Change type.
10868 <num_sections>: Remove.
10869 (objfile_relocate): Update.
10870 * objfiles.c (entry_point_address_query): Update
10871 (relocate_one_symbol): Change type of "section_offsets".
10872 (objfile_relocate1, objfile_relocate1): Change type of
10873 "new_offsets".
10874 (objfile_rebase1): Update.
10875 * mipsread.c (mipscoff_symfile_read): Update.
10876 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10877 parameter.
10878 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10879 (parse_external, psymtab_to_symtab_1): Update.
10880 * machoread.c (macho_symfile_offsets): Update.
10881 * ia64-tdep.c (ia64_find_unwind_table): Update.
10882 * hppa-tdep.c (read_unwind_info): Update.
10883 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10884 * dwarf2read.c (create_addrmap_from_index)
10885 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10886 (process_psymtab_comp_unit_reader, add_partial_symbol)
10887 (add_partial_subprogram, process_full_comp_unit)
10888 (read_file_scope, read_func_scope, read_lexical_block_scope)
10889 (read_call_site_scope, dwarf2_rnglists_process)
10890 (dwarf2_ranges_process, dwarf2_ranges_read)
10891 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10892 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10893 Update.
10894 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10895 Update.
10896 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10897 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10898 (process_one_symbol): Change type of "section_offsets".
10899 * ctfread.c (get_objfile_text_range): Update.
10900 * coffread.c (coff_symtab_read, enter_linenos)
10901 (process_coff_symbol): Update.
10902 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10903 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10904
456e800a
TT
109052020-01-08 Tom Tromey <tromey@adacore.com>
10906
10907 * dwarf2read.c (parse_macro_definition): Use std::string.
10908 (parse_macro_definition): Likewise.
10909
6dfa2fc2
TT
109102020-01-08 Tom Tromey <tromey@adacore.com>
10911
10912 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10913 (ATTR_ALLOC_CHUNK): Remove.
10914
421d1616
TT
109152020-01-08 Tom Tromey <tromey@adacore.com>
10916
10917 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10918
43816ebc
TT
109192020-01-08 Tom Tromey <tromey@adacore.com>
10920
10921 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10922 (dwarf2_compute_name, open_dwo_file): Likewise.
10923 (process_enumeration_scope): Use std::vector.
10924 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10925 (partial_die_info::fixup, dwarf2_start_subfile)
10926 (guess_full_die_structure_name, dwarf2_name): Likewise.
10927 (determine_prefix): Update.
10928 (guess_full_die_structure_name): Make return type const.
10929 (partial_die_full_name): Return unique_xmalloc_ptr.
10930 (DW_FIELD_ALLOC_CHUNK): Remove.
10931
4212d509
TT
109322020-01-07 Tom Tromey <tromey@adacore.com>
10933
10934 PR build/24937:
10935 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10936
06a6207a
JT
109372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10938
10939 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10940
153d79c4
AB
109412020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10942
10943 * stack.c (print_frame_info): Move disassemble_next_line code
10944 inside source_print block.
10945
66182876
EZ
109462020-01-06 Eli Zaretskii <eliz@gnu.org>
10947
10948 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10949 gdb/signals.h, as we are now using native signal symbols.
10950
cbfa8581
SV
109512020-01-06 Shahab Vahedi <shahab@synopsys.com>
10952
10953 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10954 overflow by an early check of content vs threshold.
aac66a4c 10955 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10956 Likewise.
10957
3f602821
EZ
109582020-01-06 Eli Zaretskii <eliz@gnu.org>
10959
10960 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10961
a08c904d
JT
109622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10963
10964 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10965 export table if no section contains it's RVA.
10966
89a65580
EZ
109672020-01-06 Eli Zaretskii <eliz@gnu.org>
10968
10969 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10970
8b7fcda2
HD
109712020-01-06 Hannes Domani <ssbssa@yahoo.de>
10972
10973 * source.c (print_source_lines_base): Set last_line_listed.
10974
a61b4f69
SV
109752020-01-06 Shahab Vahedi <shahab@synopsys.com>
10976
10977 * tui/tui-disasm.c: Remove trailing spaces.
10978
559e7e50
EZ
109792020-01-06 Eli Zaretskii <eliz@gnu.org>
10980 Pedro Alves <palves@redhat.com>
10981
10982 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10983 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10984 (windows_gdb_signal_to_target): New function, uses the above
10985 enumeration to convert GDB internal signal codes to equivalent
10986 Windows codes.
10987 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10988 * windows-nat.c: Include "gdb_wait.h".
10989 (get_windows_debug_event): Extract the fatal exception from the
10990 exit status and convert to the equivalent Posix signal number.
10991 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10992 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10993 * gdbsupport/gdb_wait.c: New file, implements
10994 windows_status_to_termsig.
10995 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10996 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10997
f2302a34
AB
109982020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10999
11000 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11001 show_layout.
11002
6a5206eb
LM
110032020-01-05 Luis Machado <luis.machado@linaro.org>
11004
11005 * aarch64-linux-nat.c
11006 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11007 and bfd_mach_aarch64.
11008
6ec1d75e
PW
110092020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11010
11011 * ui-file.c (stdio_file::can_emit_style_escape)
11012 (tee_file::can_emit_style_escape): Ensure style is used also on
11013 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11014 to gdb_stdout.
11015 * main.c (set_gdb_data_directory): Use file style to output the
11016 warning that the given pathname is not a directory.
11017 * top.c (show_history_filename, gdb_safe_append_history)
11018 (show_gdb_datadir): Use file style.
11019
44f81a76
HD
110202020-01-03 Hannes Domani <ssbssa@yahoo.de>
11021
11022 * solib-target.c (struct lm_info_target):
11023 Change offsets to be a unique_xmalloc_ptr.
11024 (solib_target_relocate_section_addresses): Update.
11025
25057eb0
HD
110262020-01-03 Hannes Domani <ssbssa@yahoo.de>
11027
11028 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11029
6e2118f5
BE
110302020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11031
11032 * MAINTAINERS (Write After Approval): Add myself.
11033
8133c7dc
LM
110342020-01-02 Luis Machado <luis.machado@linaro.org>
11035
11036 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11037 Cell BE architecture.
11038 * target.h (struct target_ops) <thread_architecture>: Likewise.
11039
48189bec
HD
110402020-01-01 Hannes Domani <ssbssa@yahoo.de>
11041
11042 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11043
ead1063b
HD
110442020-01-01 Hannes Domani <ssbssa@yahoo.de>
11045
11046 * MAINTAINERS (Write After Approval): Add myself.
11047
e5d78223
JB
110482020-01-01 Joel Brobecker <brobecker@adacore.com>
11049
11050 * gdbarch.sh: Update copyright year range of generated files.
11051
b811d2c2
JB
110522020-01-01 Joel Brobecker <brobecker@adacore.com>
11053
11054 Update copyright year range in all GDB files.
11055
5f4def5c
JB
110562020-01-01 Joel Brobecker <brobecker@adacore.com>
11057
11058 * copyright.py: Convert to Python 3.
11059
51fd4002
JB
110602020-01-01 Joel Brobecker <brobecker@adacore.com>
11061
11062 * copyright.py: Adapt after move of gnulib directory from gdb
11063 directory to toplevel directory.
11064
5fb651f2
JB
110652020-01-01 Joel Brobecker <brobecker@adacore.com>
11066
11067 * copyright.py (main): Exit if run from the wrong directory.
11068
5dd8bf88
JB
110692020-01-01 Joel Brobecker <brobecker@adacore.com>
11070
11071 * top.c (print_gdb_version): Change copyright year to 2020.
11072
9f71dacb 110732020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11074
9f71dacb 11075 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11076
9f71dacb 11077For older changes see ChangeLog-2019.
c906108c
SS
11078\f
11079Local Variables:
11080mode: change-log
11081left-margin: 8
11082fill-column: 74
11083version-control: never
57da7796 11084coding: utf-8
c906108c 11085End: