]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_ARRAY_{LOWER,UPPER}_BOUND_VALUE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bb789949
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5 callers to use the equivalent accessor methods instead.
6
39498edb
SM
72020-07-12 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
10 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
11 callers to use the equivalent accessor methods instead.
12
3b606f38
SM
132020-07-12 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
16 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
17 to use dynamic_prop::kind.
18
064d9cb9
SM
192020-07-12 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
22 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
23 to get the bound property's kind and check against
24 PROP_UNDEFINED.
25
5537ddd0
SM
262020-07-12 Simon Marchi <simon.marchi@efficios.com>
27
28 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
29 all callers to use type::range_bounds followed by
30 dynamic_prop::{low,high}.
31
8c2e4e06
SM
322020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
35 const_val, set_const_val, baton, set_locexpr, set_loclist,
36 set_addr_offset, variant_parts, set_variant_parts,
37 original_type, set_original_type>: New methods.
38 <kind>: Rename to...
39 <m_kind>: ... this. Update all users to use the new methods
40 instead.
41 <data>: Rename to...
42 <m_data>: ... this. Update all users to use the new methods
43 instead.
44
7c6f2712
SM
452020-07-12 Simon Marchi <simon.marchi@efficios.com>
46
47 * gdbtypes.c (get_discrete_bounds): Return failure if
48 the range type's bounds are not both defined and constant
49 values.
50 (get_array_bounds): Update comment. Remove undefined bound check.
51
599088e3
SM
522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
55 the type::bounds method directly.
56
c4dfcb36
SM
572020-07-12 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
60 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
61 are used to set the range type's bounds to use set_bounds.
62
0a278aa7
PW
632020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
64
65 * exec.c (_initialize_exec): Update exec-file-mismatch help.
66
cce20f10
PA
672020-07-10 Pedro Alves <pedro@palves.net>
68
69 * gdbthread.h (inferior_ref): Define.
70 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
71 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
72 * thread.c
73 (scoped_restore_current_thread::restore):
74 Adjust to gdb::ref_ptr.
75 (scoped_restore_current_thread::~scoped_restore_current_thread):
76 Remove manual decref handling.
77 (scoped_restore_current_thread::scoped_restore_current_thread):
78 Adjust to use
79 inferior_ref::new_reference/thread_info_ref::new_reference.
80 Incref the thread before calling get_frame_id instead of after.
81 Let TARGET_CLOSE_ERROR propagate.
82
6d7aa592
PA
832020-07-10 Pedro Alves <pedro@palves.net>
84
85 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
86 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
87 NOT_AVAILABLE_ERROR.
88 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
89 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
90
b3e3a4c1
SM
912020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
92 Pedro Alves <pedro@palves.net>
93
94 PR gdb/26199
95 * infrun.c (threads_are_resumed_pending_p): Delete.
96 (do_target_wait): Remove threads_are_executing and
97 threads_are_resumed_pending_p checks from the inferior_matches
98 lambda. Update comments.
99
d6cc5d98
PA
1002020-07-10 Pedro Alves <pedro@palves.net>
101
102 PR gdb/26199
103 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
104 executing threads.
105
7d3badc6
PA
1062020-07-10 Pedro Alves <pedro@palves.net>
107
108 PR gdb/26199
109 * infrun.c (handle_no_resumed): Handle multiple targets.
110
42bd97a6
PA
1112020-07-10 Pedro Alves <pedro@palves.net>
112
113 PR gdb/26199
114 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
115 target_is_async_p.
116
43667cc6
PA
1172020-07-10 Pedro Alves <pedro@palves.net>
118
119 PR gdb/26199
120 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
121 threads, not all threads.
122
96118d11
PA
1232020-07-10 Pedro Alves <pedro@palves.net>
124
125 PR gdb/26199
126 * remote.c (remote_target::open_1): Pass remote target pointer as
127 data to create_async_event_handler.
128 (remote_async_inferior_event_handler): Mark async event handler
129 before returning if the remote target still has either pending
130 events or unacknowledged notifications.
131
54904d81
JB
1322020-07-10 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
135 declaration.
136 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
137 function.
138
f37e5866
JB
1392020-07-09 John Baldwin <jhb@FreeBSD.org>
140
141 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
142 inferior_ptid.
143
fc238d4a
JB
1442020-07-09 John Baldwin <jhb@FreeBSD.org>
145
146 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
147 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
148 AT_FREEBSD_PS_STRINGS.
149
6e2469ff
HD
1502020-07-08 Hannes Domani <ssbssa@yahoo.de>
151
152 * auto-load.c (auto_load_objfile_script_1): Convert drive part
153 of debugfile path on Windows.
154
d1076c41
JB
1552020-07-08 John Baldwin <jhb@FreeBSD.org>
156
157 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
158 argument to 'data'.
159
15f3b077
TT
1602020-07-08 Tom Tromey <tromey@adacore.com>
161
162 * ada-lang.c (ada_exception_message_1): Use read_memory.
163
9fc501fd
AB
1642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 PR python/22748
167 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
168 special handling for inline frames.
169 * findvar.c (value_of_register_lazy): Skip inline frames when
170 creating lazy register values.
171 * frame.c (frame_id_computed_p): Delete definition.
172 * frame.h (frame_id_computed_p): Delete declaration.
173
64cb3757
AB
1742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * NEWS: Mention additions to Python API.
177 * python/py-arch.c (archpy_register_groups): New function.
178 (arch_object_methods): Add 'register_groups' method.
179 * python/py-registers.c (reggroup_iterator_object): New struct.
180 (reggroup_object): New struct.
181 (gdbpy_new_reggroup): New function.
182 (gdbpy_reggroup_to_string): New function.
183 (gdbpy_reggroup_name): New function.
184 (gdbpy_reggroup_iter): New function.
185 (gdbpy_reggroup_iter_next): New function.
186 (gdbpy_new_reggroup_iterator): New function
187 (gdbpy_initialize_registers): Register new types.
188 (reggroup_iterator_object_type): Define new Python type.
189 (gdbpy_reggroup_getset): New static global.
190 (reggroup_object_type): Define new Python type.
191 * python/python-internal.h
192
0f767f94
AB
1932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
196 * python/py-arch.c (archpy_registers): New function.
197 (arch_object_methods): Add 'registers' method.
198 * python/py-registers.c: New file.
199 * python/python-internal.h
200 (gdbpy_new_register_descriptor_iterator): Declare.
201 (gdbpy_initialize_registers): Declare.
202 * python/python.c (do_start_initialization): Call
203 gdbpy_initialize_registers.
204 * NEWS: Mention additions to the Python API.
205
87dbc774
AB
2062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * NEWS: Mention new Python API method.
209 * python/py-unwind.c (pending_framepy_architecture): New function.
210 (pending_frame_object_methods): Add architecture method.
211
3bc98c0c
AB
2122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * gdbarch.c: Regenerate.
215 * gdbarch.h: Regenerate.
216 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
217 (gdbarch_data): Use internal_error for the case where
218 deprecated_set_gdbarch_data was originally needed.
219 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
220 and use passed in obstack.
221 (libunwind_frame_set_descr): Should no longer get back NULL from
222 gdbarch_data.
223 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
224 type.
225 * user-regs.c (user_regs_init): Update parameters, and use passed
226 in obstack.
227 (user_reg_add): Should no longer get back NULL from gdbarch_data.
228 (_initialize_user_regs): Register as a pre-init gdbarch data type.
229
d8cc8af6
TV
2302020-07-06 Tom de Vries <tdevries@suse.de>
231
232 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
233 End-Of-Sequence in lte_is_less_than.
234 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
235 "gdb: Don't reorder line table entries too much when sorting".
236
947f7597
TV
2372020-07-06 Tom de Vries <tdevries@suse.de>
238
239 PR tui/26205
240 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
241
1e7c1b22
TV
2422020-07-05 Tom de Vries <tdevries@suse.de>
243
244 PR build/26187
245 * inferior.h (struct infcall_suspend_state_deleter): If available, use
246 std::uncaught_exceptions instead of deprecated
247 std::uncaught_exception.
248
a36158ec
SM
2492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * macroexp.h (macro_stringify): Return
252 gdb::unique_xmalloc_ptr<char>.
253 * macroexp.c (macro_stringify): Likewise.
254 * macrotab.c (fixup_definition): Update.
255
14d960c8
SM
2562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
259 (lex_one_token): Update.
260 * macroexp.c (struct macro_buffer) <release>: Return
261 gdb::unique_xmalloc_ptr<char>.
262 (macro_stringify): Update.
263 (macro_expand): Update.
264 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
265 * macroexp.h (macro_expand_next): Likewise.
266
211d5b1c
SM
2672020-07-02 Simon Marchi <simon.marchi@efficios.com>
268
269 * macroexp.h (macro_lookup_ftype): Remove.
270 (macro_expand, macro_expand_once, macro_expand_next): Remove
271 lookup function parameters, add scope parameter.
272 * macroexp.c (scan, substitute_args, expand, maybe_expand,
273 macro_expand, macro_expand_once, macro_expand_next): Likewise.
274 * macroscope.h (standard_macro_lookup): Change parameter type
275 to macro_scope.
276 * macroscope.c (standard_macro_lookup): Likewise.
277 * c-exp.y (lex_one_token): Update.
278 * macrocmd.c (macro_expand_command): Likewise.
279 (macro_expand_once_command): Likewise.
280
b1a35af2
SM
2812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * inf-loop.c (inferior_event_handler): Remove client_data param.
284 * inf-loop.h (inferior_event_handler): Likewise.
285 * infcmd.c (step_1): Adjust.
286 * infrun.c (proceed): Adjust.
287 (fetch_inferior_event): Remove client_data param.
288 (infrun_async_inferior_event_handler): Adjust.
289 * infrun.h (fetch_inferior_event): Remove `void *` param.
290 * linux-nat.c (handle_target_event): Adjust.
291 * record-btrace.c (record_btrace_handle_async_inferior_event):
292 Adjust.
293 * record-full.c (record_full_async_inferior_event_handler):
294 Adjust.
295 * remote.c (remote_async_inferior_event_handler): Adjust.
296
1cdf9e33
TT
2972020-07-01 Tom Tromey <tom@tromey.com>
298
299 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
300 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
301
32c1e210
TT
3022020-07-01 Tom Tromey <tom@tromey.com>
303
304 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
305 tui_gen_win_info.
306 (tui_win_info::make_window): Merge with
307 tui_gen_win_info::make_window.
308 (tui_win_info::make_visible): Move from tui_gen_win_info.
309 * tui/tui-win.c (tui_win_info::max_width): Move from
310 tui_gen_win_info.
311 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
312 type.
313 <window_factory>: Likewise.
314 * tui/tui-layout.c (tui_win_info::resize): Move from
315 tui_gen_win_info.
316 (make_standard_window): Change return type.
317 (get_locator_window, tui_get_window_by_name): Likewise.
318 (tui_layout_window::apply): Remove a cast.
319 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
320 (struct tui_win_info): Merge with tui_gen_win_info.
321 (struct tui_gen_win_info): Remove.
322
a30cb6da
TT
3232020-07-01 Tom Tromey <tom@tromey.com>
324
325 * tui/tui-stack.h (struct tui_locator_window): Derive from
326 tui_win_info.
327 <do_scroll_horizontal, do_scroll_vertical>: New methods.
328 <can_box>: New method.
329
1eb2161f
TT
3302020-07-01 Tom Tromey <tom@tromey.com>
331
332 * tui/tui-stack.h (struct tui_locator_window): Remove body.
333
7134f2eb
TT
3342020-07-01 Tom Tromey <tom@tromey.com>
335
336 * tui/tui-regs.c (tui_data_window::display_registers_from)
337 (tui_data_window::display_registers_from)
338 (tui_data_window::first_data_item_displayed)
339 (tui_data_window::delete_data_content_windows): Update.
340 (tui_data_window::refresh_window, tui_data_window::no_refresh):
341 Remove.
342 (tui_data_window::check_register_values): Update.
343 (tui_data_item_window::rerender): Add parameters. Update.
344 (tui_data_item_window::refresh_window): Remove.
345 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
346 virtual.
347 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
348 tui_gen_win_info.
349 <refresh_window, max_height, min_height>: Remove.
350 <rerender>: Add parameters.
351 <x, y, visible>: New members.
352 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
353 <m_item_width>: New member.
354
22b7b041
TT
3552020-07-01 Tom Tromey <tom@tromey.com>
356
357 * tui/tui-regs.c (tui_data_window::show_register_group)
358 (tui_data_window::check_register_values): Update.
359 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
360 from item_no.
361
c9753adb
TT
3622020-07-01 Tom Tromey <tom@tromey.com>
363
364 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
365 useless "if".
366
9ab26b4a
TT
3672020-07-01 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
370 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
371
e555083f
TT
3722020-07-01 Tom Tromey <tom@tromey.com>
373
374 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
375 * tui/tui-winsource.h (enum tui_line_or_address_kind)
376 (struct tui_line_or_address): Move from tui-data.h.
377 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
378 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
379 (tui_cmd_window, tui_source_window_base, tui_source_window)
380 (tui_disasm_window): Don't declare.
381 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
382 to tui-winsource.h.
383 (SINGLE_KEY): Move to tui-stack.c.
384
7a02bab7
TT
3852020-07-01 Tom Tromey <tom@tromey.com>
386
387 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
388 std::string.
389 * tui/tui-regs.c (class tab_expansion_file): New.
390 (tab_expansion_file::write): New method.
391 (tui_register_format): Change return type. Use
392 tab_expansion_file.
393 (tui_get_register, tui_data_window::display_registers_from)
394 (tui_data_item_window::rerender): Update.
395 * tui/tui-io.h (tui_expand_tabs): Don't declare.
396 * tui/tui-io.c (tui_expand_tabs): Remove.
397
ea68593b
TT
3982020-07-01 Tom Tromey <tom@tromey.com>
399
400 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
401
a8caed5d
FS
4022020-07-01 Fangrui Song <maskray@google.com>
403
404 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
405
9cdf9820
AKS
4062020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
407
408 * dwarf2/read.c (set_die_type): Removed conditions to restrict
409 forms for DW_AT_associated and DW_AT_allocated attributes,
410 which is already checked in function attr_to_dynamic_prop.
411
a1520ad8
TT
4122020-06-30 Tom Tromey <tromey@adacore.com>
413
414 * dwarf2/read.c (quirk_rust_enum): Correctly call
415 alloc_rust_variant for default-less enum.
416
5ac58899
TT
4172020-06-30 Tom Tromey <tromey@adacore.com>
418
419 PR build/26183:
420 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
421 gdb::to_string.
422
19b187a9
SM
4232020-06-29 Simon Marchi <simon.marchi@efficios.com>
424
425 * gdbarch.sh (displaced_step_copy_insn): Update doc.
426 * gdbarch.h: Re-generate.
427
cd4c4c07
TT
4282020-06-28 Tom Tromey <tom@tromey.com>
429
430 * command.h (cmd_types): Remove.
431 (cmd_type): Don't declare.
432 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
433 typedef.
434 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
435 * cli/cli-decode.c (cmd_type): Remove.
436
05779d57
PA
4372020-06-27 Pedro Alves <palves@redhat.com>
438
439 * fork-child.c (prefork_hook): Adjust.
440 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
441 Delete.
442 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
443 * inferior.c (inferior::set_tty, inferior::tty): New methods.
444 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
445 Remove declarations.
446 (struct inferior) <set_tty, tty>: New methods.
447 (struct inferior) <terminal>: Rename to ...
448 (struct inferior) <m_terminal>: ... this and make private.
449 * main.c (captured_main_1): Adjust.
450 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
451 (mi_cmd_inferior_tty_show): Adjust.
452 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
453 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
454
1776e3e5
NA
4552020-06-26 Nick Alcock <nick.alcock@oracle.com>
456
457 * configure.ac: Add --enable-libctf: handle --disable-static
458 properly.
459 * acinclude.m4: sinclude ../config/enable.m4.
460 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
461 (LIBCTF): Substitute in.
462 (CTF_DEPS): New, likewise.
463 (CLIBS): libctf needs symbols from libbfd: move earlier.
464 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
465 flags.
466 * ctfread.c: Surround in ENABLE_LIBCTF.
467 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
468 * configure: Regenerate.
469 * config.in: Likewise.
470
58373b80
SM
4712020-06-25 Simon Marchi <simon.marchi@efficios.com>
472
473 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
474
277474ee
SM
4752020-06-25 Simon Marchi <simon.marchi@efficios.com>
476
477 * inferior.h (struct inferior) <terminal>: Change type to
478 gdb::unique_xmalloc_ptr<char>.
479 * inferior.c (inferior::~inferior): Don't free inf->terminal.
480 * infcmd.c (set_inferior_io_terminal): Don't free terminal
481 field, adjust to unique pointer.
482 (get_inferior_io_terminal): Adjust to unique pointer.
483
6d74da72
AB
4842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * riscv-tdep.c (riscv_print_registers_info): Loop over all
487 registers, not just the known core set of registers.
488
2e52d038
AB
4892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
492 fflags, frm, and fcsr registers.
493 (riscv_register_reggroup_p): Remove unknown CSRs from save and
494 restore groups.
495 (riscv_tdesc_unknown_reg): New function.
496 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
497 tdesc_use_registers.
498 * riscv-tdep.h (struct gdbarch_tdep): Add
499 unknown_csrs_first_regnum, unknown_csrs_count,
500 duplicate_fflags_regnum, duplicate_frm_regnum, and
501 duplicate_fcsr_regnum fields.
502
be64fd07
AB
5032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * target-descriptions.c (tdesc_use_registers): Add new parameter a
506 callback, use the callback (when not null) to help number unknown
507 registers.
508 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
509 (tdesc_use_registers): Add extra parameter to declaration.
510
3b9fce96
AB
5112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
514 in the file.
515 (class riscv_pending_register_alias): Likewise.
516 (riscv_register_feature::register_info): Change 'required_p' field
517 to 'required', and change its type. Add 'check' member function.
518 (riscv_register_feature::register_info::check): Define new member
519 function.
520 (riscv_xreg_feature): Change initialisation of 'required' field.
521 (riscv_freg_feature): Likewise.
522 (riscv_virtual_feature): Likewise.
523 (riscv_csr_feature): Likewise.
524 (riscv_check_tdesc_feature): Take extra parameter, the csr
525 tdesc_feature, rewrite the function to use the new
526 riscv_register_feature::register_info::check function.
527 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
528
865bad26
AB
5292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * features/Makefile: Remove all references to the deleted files
532 below.
533 * features/riscv/32bit-csr.c: Deleted.
534 * features/riscv/32bit-csr.xml: Deleted.
535 * features/riscv/64bit-csr.c: Deleted.
536 * features/riscv/64bit-csr.xml: Deleted.
537 * features/riscv/rebuild-csr-xml.sh: Deleted.
538
ed69cbc8
AB
5392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
540
541 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
542 whitespace error for declaration of names member variable.
543 (struct riscv_register_feature): Add new prefer_first_name member
544 variable, and fix whitespace error in declaration of registers.
545 (riscv_xreg_feature): Initialize prefer_first_name field.
546 (riscv_freg_feature): Likewise.
547 (riscv_virtual_feature): Likewise.
548 (riscv_csr_feature): Likewise.
549 (riscv_register_name): Expand on comments. Remove register name
550 modifications for CSR and virtual registers.
551
4445e8f5
AB
5522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
555 errors.
556
767a879e
AB
5572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
560 riscv-opc.h.
561 (class riscv_pending_register_alias): New class.
562 (riscv_check_tdesc_feature): Take vector of pending aliases and
563 populate it as appropriate.
564 (riscv_setup_register_aliases): Delete.
565 (riscv_gdbarch_init): Create vector of pending aliases and pass it
566 to riscv_check_tdesc_feature in all cases. Use the vector to
567 create the register aliases.
568
bb6e55f3
RO
5692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
570
571 * sol2-tdep.c (sol2_static_transform_name): Remove.
572 (sol2_init_abi): Don't register it.
573 * gdbarch.sh (static_transform_name): Remove.
574 * gdbarch.c, gdbarch.h: Regenerate.
575
576 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
577 gdbarch_static_transform_name.
578 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
579 * stabsread.c (define_symbol) <'X'>: Remove.
580 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
581 handling.
582 <'V'>: Likewise.
583 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
584 <'S'>: Remove call to gdbarch_static_transform_name.
585
c6d36836
RO
5862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
587
588 * procfs.c (procfs_pre_trace): New function.
589 (procfs_target::create_inferior): Pass it to fork_inferior.
590
a7e6196b
RO
5912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
592
593 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
594 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
595 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
596 sol2-tdep.o, sparc-sol2-tdep.o.
597 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
598 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
599 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
600 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
601
d412e696
RO
6022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
603
604 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
605 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
606 Call sol2_init_abi.
607 Remove calls to set_gdbarch_skip_solib_resolver,
608 set_gdbarch_core_pid_to_str.
609 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
610 (i386_sol2_static_transform_name): Remove.
611 (i386_sol2_init_abi): Call sol2_init_abi.
612 Remove calls to set_gdbarch_sofun_address_maybe_missing,
613 set_gdbarch_static_transform_name,
614 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
615 Use sol2_sigtramp_p.
616 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
617 (sol2_sigtramp_p): New function.
618 (sol2_static_transform_name): New function.
619 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
620 (sol2_init_abi): New function.
621 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
622 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
623 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
624 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
625 (sparc_sol2_static_transform_name): Remove.
626 (sparc32_sol2_init_abi): Call sol2_init_abi.
627 Remove calls to set_gdbarch_sofun_address_maybe_missing,
628 set_gdbarch_static_transform_name,
629 set_gdbarch_skip_solib_resolver,
630 set_gdbarch_core_pid_to_str.
631 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
632 (sparc_sol2_static_transform_name): Remove
633 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
634 call sol2_sigtramp_p.
635 (sparc64_sol2_init_abi): Call sol2_init_abi.
636 Remove calls to set_gdbarch_sofun_address_maybe_missing,
637 set_gdbarch_static_transform_name,
638 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
639
a8654e7d
PW
6402020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
641
642 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
643 * exec.c (validate_exec_file): If from_tty, set both
644 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
645 * symfile.c (symbol_file_add_with_addrs): if always_confirm
646 and from_tty, unconditionally ask a confirmation.
647
caa7fd04
AB
6482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * target-descriptions.c (tdesc_architecture_name): Protect against
651 NULL pointer dereference.
652 (maint_print_xml_tdesc_cmd): New function.
653 (_initialize_target_descriptions): Register new 'maint print
654 xml-tdesc' command and give it the filename completer.
655 * NEWS: Mention new 'maint print xml-tdesc' command.
656
fbf42f4e
AB
6572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * target-descriptions.c (class tdesc_compatible_info): New class.
660 (struct target_desc): Change type of compatible vector.
661 (tdesc_compatible_p): Update for change in type of
662 target_desc::compatible.
663 (tdesc_compatible_info_list): New function.
664 (tdesc_compatible_info_arch_name): New function.
665 (tdesc_add_compatible): Update for change in type of
666 target_desc::compatible.
667 (print_c_tdesc::visit_pre): Likewise.
668
20821f4e
AB
6692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
672 whitespace to underscore.
673 (maint_print_c_tdesc_cmd): Use fake filename for target
674 descriptions that came from the target.
675 (_initialize_target_descriptions): Add filename command completion
676 for 'maint print c-tdesc'.
677
1fb5ee62
SM
6782020-06-23 Simon Marchi <simon.marchi@efficios.com>
679
680 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
681 lines.
682
fc3ecb3e
SM
6832020-06-23 Simon Marchi <simon.marchi@efficios.com>
684
685 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
686 lines.
687 (dwarf2_find_location_expression): Likewise.
688 (call_site_parameter_matches): Likewise.
689 (dwarf2_compile_expr_to_ax): Likewise.
690 (disassemble_dwarf_expression): Likewise.
691 (loclist_describe_location): Likewise.
692
236ef034
PA
6932020-06-23 Pedro Alves <palves@redhat.com>
694
695 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
696 progspace-and-thread.h. Include scoped-mock-context.h instead.
697 (register_to_value_test): Use scoped_mock_context.
698 * regcache.c: Include "scoped-mock-context.h".
699 (cooked_read_test): Don't error out if a target is already pushed.
700 Use scoped_mock_context. Adjust.
701 * scoped-mock-context.h: New file.
702
39e7ecca
AB
7032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
706 initializer.
707 (ada_language::is_string_type_p): New member function.
708 * c-lang.c (c_language_data): Delete la_is_string_type_p
709 initializer.
710 (cplus_language_data): Likewise.
711 (asm_language_data): Likewise.
712 (minimal_language_data): Likewise.
713 * d-lang.c (d_language_data): Likewise.
714 * f-lang.c (f_is_string_type_p): Delete function, implementation
715 moved to f_language::is_string_type_p.
716 (f_language_data): Delete la_is_string_type_p initializer.
717 (f_language::is_string_type_p): New member function,
718 implementation from f_is_string_type_p.
719 * go-lang.c (go_is_string_type_p): Delete function, implementation
720 moved to go_language::is_string_type_p.
721 (go_language_data): Delete la_is_string_type_p initializer.
722 (go_language::is_string_type_p): New member function,
723 implementation from go_is_string_type_p.
724 * language.c (language_defn::is_string_type_p): Define new member
725 function.
726 (default_is_string_type_p): Make static, add comment copied from
727 header file.
728 (unknown_language_data): Delete la_is_string_type_p initializer.
729 (unknown_language::is_string_type_p): New member function.
730 (auto_language_data): Delete la_is_string_type_p initializer.
731 (auto_language::is_string_type_p): New member function.
732 * language.h (language_data): Delete la_is_string_type_p field.
733 (language_defn::is_string_type_p): Declare new function.
734 (default_is_string_type_p): Delete desclaration, move comment to
735 definition.
736 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
737 moved to m2_language::is_string_type_p.
738 (m2_language_data): Delete la_is_string_type_p initializer.
739 (m2_language::is_string_type_p): New member function,
740 implementation from m2_is_string_type_p.
741 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
742 initializer.
743 * opencl-lang.c (opencl_language_data): Likewise.
744 * p-lang.c (pascal_is_string_type_p): Delete function,
745 implementation moved to pascal_language::is_string_type_p.
746 (pascal_language_data): Delete la_is_string_type_p initializer.
747 (pascal_language::is_string_type_p): New member function,
748 implementation from pascal_is_string_type_p.
749 * rust-lang.c (rust_is_string_type_p): Delete function,
750 implementation moved to rust_language::is_string_type_p.
751 (rust_language_data): Delete la_is_string_type_p initializer.
752 (rust_language::is_string_type_p): New member function,
753 implementation from rust_is_string_type_p.
754 * valprint.c (val_print_scalar_or_string_type_p): Update call to
755 is_string_type_p.
756
4ffc13fb
AB
7572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * ada-lang.c (ada_language_data): Delete la_print_typedef
760 initializer.
761 (ada_language::print_typedef): New member function.
762 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
763 (cplus_language_data): Likewise.
764 (asm_language_data): Likewise.
765 (minimal_language_data): Likewise.
766 * d-lang.c (d_language_data): Likewise.
767 * f-lang.c (f_language_data): Likewise.
768 (f_language::print_typedef): New member function.
769 * go-lang.c (go_language_data): Delete la_print_typedef
770 initializer.
771 * language.c (language_defn::print_typedef): Define member
772 function.
773 (unknown_language_data): Delete la_print_typedef initializer.
774 (unknown_language::print_typedef): New member function.
775 (auto_language_data): Delete la_print_typedef initializer.
776 (auto_language::print_typedef): New member function.
777 * language.h (language_data): Delete la_print_typedef field.
778 (language_defn::print_typedef): Declare new member function.
779 (LA_PRINT_TYPEDEF): Update call to print_typedef.
780 (default_print_typedef): Delete declaration.
781 * m2-lang.c (m2_language_data): Delete la_print_typedef
782 initializer.
783 (m2_language::print_typedef): New member function.
784 * objc-lang.c (objc_language_data): Delete la_print_typedef
785 initializer.
786 * opencl-lang.c (opencl_language_data): Likewise.
787 * p-lang.c (pascal_language_data): Likewise.
788 (pascal_language::print_typedef): New member function.
789 * rust-lang.c (rust_print_typedef): Delete function,
790 implementation moved to rust_language::print_typedef.
791 (rust_language): Delete la_print_typedef initializer.
792 (rust_language::print_typedef): New member function,
793 implementation from rust_print_typedef.
794 * typeprint.c (default_print_typedef): Delete.
795
d711ee67
AB
7962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
797
798 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
799 (ada_language::printstr): New member function.
800 * c-lang.c (c_language_data): Delete la_printstr initializer.
801 (cplus_language_data): Likewise.
802 (asm_language_data): Likewise.
803 (minimal_language_data): Likewise.
804 * d-lang.c (d_language_data): Likewise.
805 * f-lang.c (f_printstr): Rename to f_language::printstr.
806 (f_language_data): Delete la_printstr initializer.
807 (f_language::printstr): New member function, implementation from
808 f_printstr.
809 * go-lang.c (go_language_data): Delete la_printstr initializer.
810 * language.c (language_defn::printstr): Define new member
811 function.
812 (unk_lang_printstr): Delete.
813 (unknown_language_data): Delete la_printstr initializer.
814 (unknown_language::printstr): New member function.
815 (auto_language_data): Delete la_printstr initializer.
816 (auto_language::printstr): New member function.
817 * language.h (language_data): Delete la_printstr field.
818 (language_defn::printstr): Declare new member function.
819 (LA_PRINT_STRING): Update call to printstr.
820 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
821 (m2_language_data): Delete la_printstr initializer.
822 (m2_language::printstr): New member function, implementation from
823 m2_printstr.
824 * objc-lang.c (objc_language_data): Delete la_printstr
825 initializer.
826 * opencl-lang.c (opencl_language_data): Likewise.
827 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
828 (pascal_language_data): Delete la_printstr initializer.
829 (pascal_language::printstr): New member function, implementation
830 from pascal_printstr.
831 * p-lang.h (pascal_printstr): Delete declaration.
832 * rust-lang.c (rust_printstr): Update header comment.
833 (rust_language_data): Delete la_printstr initializer.
834 (rust_language::printstr): New member function.
835
52b50f2c
AB
8362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
839 (ada_language::printchar): New member function.
840 * c-lang.c (c_language_data): Delete la_printchar initializer.
841 (cplus_language_data): Likewise.
842 (asm_language_data): Likewise.
843 (minimal_language_data): Likewise.
844 * d-lang.c (d_language_data): Likewise.
845 * f-lang.c (f_printchar): Rename to f_language::printchar.
846 (f_language_data): Delete la_printchar initializer.
847 (f_language::printchar): New member function, implementation from
848 f_printchar.
849 * go-lang.c (go_language_data): Delete la_printchar initializer.
850 * language.c (unk_lang_printchar): Delete.
851 (language_defn::printchar): Define new member function.
852 (unknown_language_data): Delete la_printchar initializer.
853 (unknown_language::printchar): New member function.
854 (auto_language_data): Delete la_printchar initializer.
855 (auto_language::printchar): New member function.
856 * language.h (language_data): Delete la_printchar field.
857 (language_defn::printchar): Declare new member function.
858 (LA_PRINT_CHAR): Update call to printchar.
859 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
860 (m2_language::printchar): New member function.
861 * objc-lang.c (objc_language_data): Delete la_printchar
862 initializer.
863 * opencl-lang.c (opencl_language_data): Likewise.
864 * p-lang.c (pascal_language_data): Delete la_printchar
865 initializer.
866 (pascal_language::printchar): New member function.
867 * rust-lang.c (rust_printchar): Rename to
868 rust_language::printchar.
869 (rust_language_data): Delete la_printchar initializer.
870 (rust_language::printchar): New member function, implementation
871 from rust_printchar.
872
ec8cec5b
AB
8732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
876 (ada_language_data): Delete la_emitchar initializer.
877 (ada_language::emitchar): New member function, implementation from
878 emit_char.
879 * c-lang.c (c_language_data): Delete la_emitchar initializer.
880 (cplus_language_data): Likewise.
881 (asm_language_data): Likewise.
882 (minimal_language_data): Likewise.
883 * d-lang.c (d_language_data): Likewise.
884 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
885 (f_language_data): Delete la_emitchar initializer.
886 (f_language::emitchar): New member function, implementation from
887 f_emit_char.
888 * go-lang.c (go_language_data): Delete la_emitchar initializer.
889 * language.c (unk_lang_emit_char): Delete.
890 (language_defn::emitchar): New member function definition.
891 (unknown_language_data): Delete la_emitchar initializer.
892 (unknown_language::emitchar): New member function.
893 (auto_language_data): Delete la_emitchar initializer.
894 (auto_language::emitchar): New member function.
895 * language.h (language_data): Delete la_emitchar field.
896 (language_defn::emitchar): New member field declaration.
897 (LA_EMIT_CHAR): Update call to emitchar.
898 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
899 (m2_language_data): Delete la_emitchar initializer.
900 (m2_language::emitchar): New member function, implementation from
901 m2_emit_char.
902 * objc-lang.c (objc_language_data): Delete la_emitchar
903 initializer.
904 * opencl-lang.c (opencl_language_data): Likewise.
905 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
906 (pascal_language_data): Delete la_emitchar initializer.
907 (pascal_language::emitchar): New member function, implementation
908 from pascal_emit_char.
909 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
910 (rust_language_data): Delete la_emitchar initializer.
911 (rust_language::emitchar): New member function, implementation
912 from rust_emitchar.
913
1bf9c363
AB
9142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * ada-lang.c (resolve): Rename to ada_language::post_parser.
917 (ada_language_data): Delete la_post_parser initializer.
918 (ada_language::post_parser): New member function.
919 * c-lang.c (c_language_data): Delete la_post_parser initializer.
920 (cplus_language_data): Likewise.
921 (asm_language_data): Likewise.
922 (minimal_language_data): Likewise.
923 * d-lang.c (d_language_data): Likewise.
924 * f-lang.c (f_language_data): Likewise.
925 * go-lang.c (go_language_data): Likewise.
926 * language.c (unknown_language_data): Likewise.
927 (auto_language_data): Likewise.
928 * language.h (language_data): Delete la_post_parser field.
929 (language_defn::post_parser): New member function.
930 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
931 * objc-lang.c (objc_language_data): Likewise.
932 * opencl-lang.c (opencl_language_data): Likewise.
933 * p-lang.c (pascal_language_data): Likewise.
934 * parse.c (parse_exp_in_context): Update call to post_parser.
935 (null_post_parser): Delete definition.
936 * parser-defs.h (null_post_parser): Delete declaration.
937 * rust-lang.c (rust_language_data): Delete la_post_parser
938 initializer.
939
87afa652
AB
9402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * ada-lang.c (parse): Rename to ada_language::parser.
943 (ada_language_data): Delete la_parser initializer.
944 (ada_language::parser): New member function, implementation from
945 parse.
946 * c-lang.c (c_language_data): Delete la_parser initializer.
947 (cplus_language_data): Likewise.
948 (asm_language_data): Likewise.
949 (minimal_language_data): Likewise.
950 * d-lang.c (d_language_data): Likewise.
951 (d_language::parser): New member function.
952 * f-lang.c (f_language_data): Delete la_parser initializer.
953 (f_language::parser): New member function.
954 * go-lang.c (go_language_data): Delete la_parser initializer.
955 (go_language::parser): New member function.
956 * language.c (unk_lang_parser): Delete.
957 (language_defn::parser): Define new member function.
958 (unknown_language_data): Delete la_parser initializer.
959 (unknown_language::parser): New member function.
960 (auto_language_data): Delete la_parser initializer.
961 (auto_language::parser): New member function.
962 * language.h (language_data): Delete la_parser field.
963 (language_defn::parser): Declare new member function.
964 * m2-lang.c (m2_language_data): Delete la_parser initializer.
965 (m2_language::parser): New member function.
966 * objc-lang.c (objc_language_data): Delete la_parser initializer.
967 * opencl-lang.c (opencl_language_data): Likewise.
968 * p-lang.c (pascal_language_data): Likewise.
969 (pascal_language::parser): New member function.
970 * parse.c (parse_exp_in_context): Update call to parser.
971 * rust-lang.c (rust_language_data): Delete la_parser initializer.
972 (rust_language::parser): New member function.
973
37825800
AB
9742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * top.c (print_gdb_configuration): Print --with-python-libdir
977 configuration value.
978
5b860c93
PW
9792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
980
981 * NEWS: Mention change to the alias command.
982
cf00cd6f
PW
9832020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
984
985 * cli/cli-cmds.c (lookup_cmd_for_default_args)
986 (alias_command_completer)
987 (make_alias_options_def_group): New functions.
988 (alias_opts, alias_option_defs): New struct and array.
989 (alias_usage_error): Update usage.
990 (alias_command): Handles optional DEFAULT-ARGS... arguments.
991 Use option framework.
992 (_initialize_cli_cmds): Update alias command help.
993 Update aliases command help.
994 (show_user):
995 Add NULL for new default_args lookup_cmd argument.
996 (valid_command_p): Rename to validate_aliased_command.
997 Add NULL for new default_args lookup_cmd argument. Verify that the
998 aliased_command has no default args.
999 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1000 (lookup_cmd_1, lookup_cmd): New argument default_args.
1001 (add_alias_cmd):
1002 Add NULL for new default_args lookup_cmd argument.
1003 (print_help_for_command): Show default args under the layout
1004 alias some_alias = some_aliased_cmd some_alias_default_arg.
1005 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1006 xfree default_args in destructor.
1007 * cli/cli-script.c (process_next_line, do_define_command):
1008 Add NULL for new default_args lookup_cmd argument.
1009 * command.h: Declare new default_args argument in lookup_cmd
1010 and lookup_cmd_1.
1011 * completer.c (complete_line_internal_1):
1012 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1013 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1014 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1015 Likewise.
1016 * infcmd.c (_initialize_infcmd): Likewise.
1017 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1018 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1019 * python/py-param.c (add_setshow_generic): Likewise.
1020 * remote.c (_initialize_remote): Likewise.
1021 * top.c (execute_command): Prepend default_args if command has some.
1022 (set_verbose):
1023 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1024 * tracepoint.c (validate_actionline, encode_actions_1):
1025 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1026
bd920864
TBA
10272020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1028
1029 * jit.c (jit_read_descriptor): Use bool as the return type.
1030 (jit_breakpoint_re_set_internal): Use bool as the return type.
1031 Invert the return value logic; return true if the jit breakpoint
1032 has been successfully initialized.
1033 (jit_inferior_init): Update the call to
1034 jit_breakpoint_re_set_internal.
1035
f8098322
PA
10362020-06-22 Pedro Alves <palves@redhat.com>
1037
1038 PR gdb/25939
1039 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1040 Use the current inferior instead. Don't return
1041 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1042 wait again.
1043 * sol-thread.c (sol_thread_target::wait): Don't reference
1044 inferior_ptid.
1045 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1046 (sol_update_thread_list_callback): Use the current inferior's pid
1047 instead of inferior_ptid.
1048
196535a6
RO
10492020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050
1051 * procfs.c: Cleanup many comments.
1052
1053 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1054 (AFTER_WATCHFLAG): Replace by value.
1055
1056 (MAIN_PROC_NAME_FORMAT): Inline ...
1057 (create_procinfo): ... here.
1058
1059 (procfs_debug_inferior): Remove SYS_exec handling.
1060 (syscall_is_exec): Likewise.
1061 (procfs_set_exec_trap): Likewise.
1062
1063 (syscall_is_lwp_exit): Inline in callers.
1064 (syscall_is_exit): Likewise.
1065 (syscall_is_exec): Likewise.
1066 (syscall_is_lwp_create): Likewise.
1067
1068 (invalidate_cache): Remove #if 0 code.
1069
1070 (make_signal_thread_runnable): Remove.
1071 (procfs_target::resume): Remove #if 0 code.
1072
cf6f3e86
RO
10732020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1074
1075 PR gdb/25939
1076 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1077 call ...
1078 (procfs_target::create_inferior): ... here.
1079
48e9cc84
PW
10802020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1081
1082 * exec.c (validate_exec_file): Ensure the build-id is up to
1083 date by calling reopen_exec_file (that checks file timestamp
1084 to decide to re-read the file).
1085
3922b302
PA
10862020-06-18 Pedro Alves <palves@redhat.com>
1087
1088 PR gdb/25412
1089 * gdbthread.h (delete_thread, delete_thread_silent)
1090 (find_thread_ptid): Update comments.
1091 * thread.c (current_thread_): New global.
1092 (is_current_thread): Move higher, and reimplement.
1093 (inferior_thread): Reimplement.
1094 (set_thread_exited): Use bool. Add assertions.
1095 (add_thread_silent): Simplify thread-reuse handling by always
1096 calling delete_thread.
1097 (delete_thread): Remove intro comment.
1098 (find_thread_ptid): Skip exited threads.
1099 (switch_to_thread_no_regs): Write to current_thread_.
1100 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1101 INFERIOR_PTID. Clear current_thread_.
1102
6dbdab44
PA
11032020-06-18 Pedro Alves <palves@redhat.com>
1104
1105 * aix-thread.c (pd_update): Use switch_to_thread.
1106
2da4b788
PA
11072020-06-18 Pedro Alves <palves@redhat.com>
1108
1109 * ravenscar-thread.c (ravenscar_thread_target): Update.
1110 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1111 (ravenscar_thread_target::add_active_thread): ... this. Don't
1112 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1113 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1114
50838d1b
PA
11152020-06-18 Pedro Alves <palves@redhat.com>
1116
1117 * nat/windows-nat.c (current_windows_thread): Remove.
1118 * nat/windows-nat.h (current_windows_thread): Remove.
1119 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1120 Adjust.
1121 (display_selectors): Adjust to fetch the current
1122 windows_thread_info based on inferior_ptid.
1123 (fake_create_process): No longer write to current_windows_thread.
1124 (windows_nat_target::get_windows_debug_event):
1125 Don't set inferior_ptid or current_windows_thread.
1126 (windows_nat_target::wait): Adjust to not rely on
1127 current_windows_thread.
1128 (do_initial_windows_stuff): Now a method of windows_nat_target.
1129 Switch to the last_ptid thread.
1130 (windows_nat_target::attach): Adjust.
1131 (windows_nat_target::detach): Use switch_to_no_thread instead of
1132 writing to inferior_ptid directly.
1133 (windows_nat_target::create_inferior): Adjust.
1134
31ce04e9
PA
11352020-06-18 Pedro Alves <palves@redhat.com>
1136
1137 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1138
1ee1a363
PA
11392020-06-18 Pedro Alves <palves@redhat.com>
1140
1141 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1142 after creating it, instead of writing to inferior_ptid. Don't
1143 write to inferior_ptid.
1144
6d350754
PA
11452020-06-18 Pedro Alves <palves@redhat.com>
1146
1147 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1148
5d971d48
PA
11492020-06-18 Pedro Alves <palves@redhat.com>
1150
1151 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1152 it, instead of writing to inferior_ptid.
1153
86e57d1b
PA
11542020-06-18 Pedro Alves <palves@redhat.com>
1155
1156 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1157 to inferior_ptid.
1158
f2e1c129
PA
11592020-06-18 Pedro Alves <palves@redhat.com>
1160
1161 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1162 instead of writing to inferior_ptid directly.
1163
60db1b85
PA
11642020-06-18 Pedro Alves <palves@redhat.com>
1165
1166 * corelow.c (core_target::close): Use switch_to_no_thread instead
1167 of writing to inferior_ptid directly.
1168 (add_to_thread_list, core_target_open): Use switch_to_thread
1169 instead of writing to inferior_ptid directly.
1170
fe7d6a8d
PA
11712020-06-18 Pedro Alves <palves@redhat.com>
1172
1173 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1174 inferior_ptid.
1175 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1176 inferior_ptid.
1177 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1178 inferior_ptid directly.
1179 (darwin_nat_target::init_thread_list): Switch to thread, instead
1180 of writing to inferior_ptid.
1181 (darwin_nat_target::attach): Don't write to inferior_ptid.
1182 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1183
975f8708
PA
11842020-06-18 Pedro Alves <palves@redhat.com>
1185
1186 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1187 thread.
1188 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1189 Instead use switch_to_thread.
1190 (gnu_nat_target::detach): Use switch_to_no_thread
1191 instead of writing to inferior_ptid directly. Used passed-in
1192 inferior instead of looking up the inferior by pid.
1193
1a204730
PA
11942020-06-18 Pedro Alves <palves@redhat.com>
1195
1196 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1197 inferior_ptid.
1198
ebe84f23
PA
11992020-06-18 Pedro Alves <palves@redhat.com>
1200
1201 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1202 inferior_ptid.
1203 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1204 thread.
1205 (nto_procfs_target::detach): Avoid referencing
1206 inferior_ptid. Use switch_to_no_thread instead of writing to
1207 inferior_ptid directly.
1208 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1209 instead of writing to inferior_ptid directly.
1210 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1211 to thread.
1212
191f02e5
PA
12132020-06-18 Pedro Alves <palves@redhat.com>
1214
1215 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1216 after creating it, instead of writing to inferior_ptid.
1217 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1218 to inferior_ptid directly.
1219 (gdbsim_target::wait): Don't write to inferior_ptid.
1220
0ac55310
PA
12212020-06-18 Pedro Alves <palves@redhat.com>
1222
1223 * remote.c (remote_target::remote_notice_new_inferior): Use
1224 switch_to_thread instead of writing to inferior_ptid directly.
1225 (remote_target::add_current_inferior_and_thread): Use
1226 switch_to_no_thread instead of writing to inferior_ptid directly.
1227 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1228 and switch_to_thread instead of using set_current_inferior or
1229 writing to inferior_ptid directly.
1230
5233f39b
PA
12312020-06-18 Pedro Alves <palves@redhat.com>
1232
1233 * tracectf.c (ctf_target_open): Switch to added thread instead of
1234 writing to inferior_ptid directly.
1235 (ctf_target::close): Use switch_to_no_thread instead of writing to
1236 inferior_ptid directly.
1237
087e161b
PA
12382020-06-18 Pedro Alves <palves@redhat.com>
1239
1240 * tracefile-tfile.c (tfile_target_open): Don't write to
1241 inferior_ptid directly, instead switch to added thread.
1242 (tfile_target::close): Use switch_to_no_thread instead of writing
1243 to inferior_ptid directly.
1244
7fb43e53
PA
12452020-06-18 Pedro Alves <palves@redhat.com>
1246
1247 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1248 (procfs_target::detach): Use switch_to_no_thread
1249 instead of writing to inferior_ptid directly.
1250 (do_attach): Change return type to void. Switch to the added
1251 thread.
1252 (procfs_target::create_inferior): Switch to the added thread.
1253 (procfs_do_thread_registers): Don't write to inferior_ptid.
1254
18493a00
PA
12552020-06-18 Pedro Alves <palves@redhat.com>
1256
1257 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1258 of writing to inferior_ptid.
1259 (scoped_restore_exited_inferior): Delete.
1260 (handle_vfork_child_exec_or_exit): Simplify using
1261 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1262 instead of writing to inferior_ptid.
1263 (THREAD_STOPPED_BY): Delete.
1264 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1265 (thread_stopped_by_hw_breakpoint): Delete.
1266 (save_waitstatus): Use
1267 scoped_restore_current_thread+switch_to_thread, and call
1268 target_stopped_by_watchpoint instead of
1269 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1270 instead of thread_stopped_by_sw_breakpoint, and
1271 target_stopped_by_hw_breakpoint instead of
1272 thread_stopped_by_hw_breakpoint.
1273 (handle_inferior_event)
1274 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1275 inferior_ptid directly, nor
1276 set_current_inferior/set_current_program_space. Use
1277 switch_to_thread / switch_to_inferior_no_thread instead.
1278
a0776b13
PA
12792020-06-18 Pedro Alves <palves@redhat.com>
1280
1281 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1282 instead of writing to inferior_ptid.
1283
6155c136
PA
12842020-06-18 Pedro Alves <palves@redhat.com>
1285
1286 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1287 added thread.
1288 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1289 to the added thread.
1290 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1291 instead of writing to inferior_ptid.
1292
c5316fc6
PA
12932020-06-18 Pedro Alves <palves@redhat.com>
1294
1295 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1296 (register_to_value_test): Mock a program_space too. Heap-allocate
1297 the address space. Don't write to inferior_ptid. Use
1298 switch_to_thread instead.
1299
8df01799
PA
13002020-06-18 Pedro Alves <palves@redhat.com>
1301
1302 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1303 Delete.
1304 (find_signalled_thread()): New, factored out from
1305 linux_make_corefile_notes and adjusted to handle exited threads.
1306 (linux_make_corefile_notes): Adjust to use the new
1307 find_signalled_thread.
1308
41792d68
PA
13092020-06-18 Pedro Alves <palves@redhat.com>
1310
1311 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1312 of saving/restoring inferior_ptid.
1313
612f258a
TT
13142020-06-17 Tom Tromey <tom@tromey.com>
1315
1316 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1317 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1318 declare.
1319 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1320
efb763a5
SM
13212020-06-15 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1324 of partial symtabs.
1325
2951f6c0
SM
13262020-06-17 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * regformats/reg-arm.dat: Remove.
1329 * regformats/reg-bfin.dat: Remove.
1330 * regformats/reg-cris.dat: Remove.
1331 * regformats/reg-crisv32.dat: Remove.
1332 * regformats/reg-m32r.dat: Remove.
1333 * regformats/reg-tilegx.dat: Remove.
1334 * regformats/reg-tilegx32.dat: Remove.
1335
7d458ea5
SM
13362020-06-17 Simon Marchi <simon.marchi@efficios.com>
1337
1338 * features/Makefile (WHICH): Remove arm files.
1339 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1340 * regformats/arm/arm-with-neon.dat: Remove.
1341 * regformats/arm/arm-with-vfpv2.dat: Remove.
1342 * regformats/arm/arm-with-vfpv3.dat: Remove.
1343
3af96c0d
SM
13442020-06-17 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * features/Makefile (XMLTOC): Remove rx.xml.
1347
b25e22fd
PA
13482020-06-17 Pedro Alves <palves@redhat.com>
1349
1350 * gdbthread.h (thread_control_state) <trap_expected> Update
1351 comments.
1352
a78a19b1
AB
13532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1356 ada_language::lookup_symbol_nonlocal.
1357 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1358 (ada_language::lookup_symbol_nonlocal): New member function,
1359 implementation from ada_lookup_symbol_nonlocal.
1360 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1361 initializer.
1362 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1363 initializer.
1364 (cplus_language::lookup_symbol_nonlocal): New member function.
1365 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1366 (minimal_language_data) Likewise.
1367 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1368 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1369 initializer.
1370 (d_language::lookup_symbol_nonlocal): New member function.
1371 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1372 initializer.
1373 (f_language::lookup_symbol_nonlocal): New member function.
1374 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1375 initializer.
1376 * language.c (unknown_language_data): Likewise.
1377 (auto_language_data): Likewise.
1378 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1379 field.
1380 (language_defn::lookup_symbol_nonlocal): New member function.
1381 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1382 initializer.
1383 * objc-lang.c (objc_language_data): Likewise.
1384 * opencl-lang.c (opencl_language_data): Likewise.
1385 * p-lang.c (pascal_language_data): Likewise.
1386 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1387 rust_language::lookup_symbol_nonlocal.
1388 (rust_language_data): Delete la_lookup_symbol_nonlocal
1389 initializer.
1390 (rust_language::lookup_symbol_nonlocal): New member function,
1391 implementation from rust_lookup_symbol_nonlocal.
1392 * symtab.c (lookup_symbol_aux): Update call to
1393 lookup_symbol_nonlocal.
1394 (basic_lookup_symbol_nonlocal): Rename to...
1395 (language_defn::lookup_symbol_nonlocal): ...this, and update
1396 header comment. Remove language_defn parameter, and replace with
1397 uses of `this'.
1398 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1399
ebe2334e
AB
14002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1403 initializer.
1404 (ada_language::value_print_inner): New member function.
1405 * c-lang.c (c_language_data): Delete la_value_print_inner
1406 initializer.
1407 (cplus_language_data): Likewise.
1408 (asm_language_data): Likewise.
1409 (minimal_language_data): Likewise.
1410 * d-lang.c (d_language_data): Likewise.
1411 (d_language::value_print_inner): New member function.
1412 * f-lang.c (f_language_data): Delete la_value_print_inner
1413 initializer.
1414 (f_language::value_print_inner): New member function.
1415 * f-lang.h (f_value_print_innner): Rename to...
1416 (f_value_print_inner): ...this (note spelling of 'inner').
1417 * f-valprint.c (f_value_print_innner): Rename to...
1418 (f_value_print_inner): ...this (note spelling of 'inner').
1419 * go-lang.c (go_language_data): Delete la_value_print_inner
1420 initializer.
1421 (go_language::value_print_inner): New member function.
1422 * language.c (language_defn::value_print_inner): Define new member
1423 function.
1424 (unk_lang_value_print_inner): Delete.
1425 (unknown_language_data): Delete la_value_print_inner initializer.
1426 (unknown_language::value_print_inner): New member function.
1427 (auto_language_data): Delete la_value_print_inner initializer.
1428 (auto_language::value_print_inner): New member function.
1429 * language.h (language_data): Delete la_value_print_inner field.
1430 (language_defn::value_print_inner): Delcare new member function.
1431 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1432 initializer.
1433 (m2_language::value_print_inner): New member function.
1434 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1435 initializer.
1436 * opencl-lang.c (opencl_language_data): Likewise.
1437 * p-lang.c (pascal_language_data): Likewise.
1438 (pascal_language::value_print_inner): New member function.
1439 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1440 initializer.
1441 (rust_language::value_print_inner): New member function.
1442 * valprint.c (do_val_print): Update call to value_print_inner.
1443
a1d1fa3e
AB
14442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * ada-lang.c (ada_language_data): Delete la_value_print
1447 initializer.
1448 (ada_language::value_print): New member function.
1449 * c-lang.c (c_language_data): Delete la_value_print initializer.
1450 (cplus_language_data): Likewise.
1451 (asm_language_data): Likewise.
1452 (minimal_language_data): Likewise.
1453 * d-lang.c (d_language_data): Likewise.
1454 * f-lang.c (f_language_data): Likewise.
1455 * go-lang.c (go_language_data): Likewise.
1456 * language.c (unk_lang_value_print): Delete.
1457 (language_defn::value_print): Define new member function.
1458 (unknown_language_data): Delete la_value_print initializer.
1459 (unknown_language::value_print): New member function.
1460 (auto_language_data): Delete la_value_print initializer.
1461 (auto_language::value_print): New member function.
1462 * language.h (language_data): Delete la_value_print field.
1463 (language_defn::value_print): Declare new member function.
1464 (LA_VALUE_PRINT): Update call to value_print.
1465 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1466 * objc-lang.c (objc_language_data): Likewise.
1467 * opencl-lang.c (opencl_language_data): Likewise.
1468 * p-lang.c (pascal_language_data): Likewise.
1469 (pascal_language::value_print): New member function.
1470 * rust-lang.c (rust_language_data): Delete la_value_print
1471 initializer.
1472
f16a9f57
AB
14732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * ada-lang.c (ada_watch_location_expression): Rename to
1476 ada_language::watch_location_expression.
1477 (ada_language_data): Delete la_watch_location_expression
1478 initializer.
1479 (ada_language::watch_location_expression): New member function,
1480 implementation from ada_watch_location_expression.
1481 * breakpoint.c (watch_command_1): Update call to
1482 watch_location_expression.
1483 * c-lang.c (c_watch_location_expression): Rename to
1484 language_defn::watch_location_expression.
1485 (c_language_data): Delete la_watch_location_expression
1486 initializer.
1487 (cplus_language_data): Likewise.
1488 (asm_language_data): Likewise.
1489 (minimal_language_data): Likewise.
1490 * c-lang.h (c_watch_location_expression): Delete declaration.
1491 * d-lang.c (d_language_data): Delete la_watch_location_expression
1492 initializer.
1493 * f-lang.c (f_language_data): Likewise.
1494 * go-lang.c (go_language_data): Likewise.
1495 * language.c (language_defn::watch_location_expression): Member
1496 function implementation from c_watch_location_expression.
1497 (unknown_language_data): Delete la_watch_location_expression
1498 initializer.
1499 (auto_language_data): Likewise.
1500 * language.h (language_data): Delete la_watch_location_expression
1501 field.
1502 (language_defn::watch_location_expression): Declare new member
1503 function.
1504 * m2-lang.c (m2_language_data): Delete
1505 la_watch_location_expression initializer.
1506 * objc-lang.c (objc_language_data): Likewise.
1507 * opencl-lang.c (opencl_language_data): Likewise.
1508 * p-lang.c (pascal_language_data): Likewise.
1509 * rust-lang.c (rust_watch_location_expression): Rename to
1510 rust_language::watch_location_expression.
1511 (rust_language_data): Delete la_watch_location_expression
1512 initializer.
1513 (rust_language::watch_location_expression): New member function,
1514 implementation from rust_watch_location_expression.
1515
7e56227d
AB
15162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1517
1518 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1519 ada_language::collect_symbol_completion_matches.
1520 (ada_language_data): Delete la_collect_symbol_completion_matches
1521 initializer.
1522 (ada_language::collect_symbol_completion_matches): New member
1523 function, implementation from
1524 ada_collect_symbol_completion_matches.
1525 * c-lang.c (c_language_data): Delete
1526 la_collect_symbol_completion_matches initializer.
1527 (cplus_language_data): Likewise.
1528 (asm_language_data): Likewise.
1529 (minimal_language_data): Likewise.
1530 * d-lang.c (d_language_data): Likewise.
1531 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1532 f_language::collect_symbol_completion_matches.
1533 (f_language_data): Delete la_collect_symbol_completion_matches
1534 initializer.
1535 (f_language::collect_symbol_completion_matches) New member
1536 function, implementation from f_collect_symbol_completion_matches.
1537 * go-lang.c (go_language_data): Delete
1538 la_collect_symbol_completion_matches initializer.
1539 * language.c (unknown_language_data): Likewise.
1540 (auto_language_data): Likewise.
1541 * language.h (language_data): Delete
1542 la_collect_symbol_completion_matches field.
1543 (language_defn::collect_symbol_completion_matches): New member
1544 function.
1545 * m2-lang.c (m2_language_data): Delete
1546 la_collect_symbol_completion_matches initializer.
1547 * objc-lang.c (objc_language_data): Likewise.
1548 * opencl-lang.c (opencl_language_data): Likewise.
1549 * p-lang.c (pascal_language_data): Likewise.
1550 * rust-lang.c (rust_language_data): Likewise.
1551 * symtab.c (default_collect_symbol_completion_matches): Delete.
1552 (collect_symbol_completion_matches): Update call to
1553 collect_symbol_completion_matches.
1554 (collect_symbol_completion_matches_type): Likewise.
1555 * symtab.h (default_collect_symbol_completion_matches): Delete
1556 declaration.
1557
53fc67f8
AB
15582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1561 (ada_language_data): Delete la_word_break_characters initializer.
1562 (ada_language::word_break_characters): New member function.
1563 * c-lang.c (c_language_data): Delete la_word_break_characters
1564 initializer.
1565 (cplus_language_data): Likewise.
1566 (asm_language_data): Likewise.
1567 (minimal_language_data): Likewise.
1568 * completer.c: Update global comment.
1569 (advance_to_expression_complete_word_point): Update call to
1570 word_break_characters.
1571 (complete_files_symbols): Likewise.
1572 (complete_line_internal_1): Likewise.
1573 (default_completer_handle_brkchars): Likewise.
1574 (skip_quoted_chars): Likewise.
1575 * d-lang.c (d_language_data): Delete la_word_break_characters
1576 initializer.
1577 * f-lang.c (f_word_break_characters): Delete.
1578 (f_language_data): Delete la_word_break_characters initializer.
1579 (f_language::word_break_characters): New member function.
1580 * go-lang.c (go_language_data): Delete la_word_break_characters
1581 initializer.
1582 * language.c (unknown_language_data): Likewise.
1583 (auto_language_data): Likewise.
1584 * language.h (default_word_break_characters): Move declaration to
1585 earlier in the file.
1586 (language_data): Delete la_word_break_characters field.
1587 (language_defn::word_break_characters): New member function.
1588 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1589 initializer.
1590 * objc-lang.c (objc_language_data): Likewise.
1591 * opencl-lang.c (opencl_language_data): Likewise.
1592 * p-lang.c (pascal_language_data): Likewise.
1593 * rust-lang.c (rust_language_data): Likewise.
1594
c9debfb9
AB
15952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1598 (ada_language_data): Delete la_get_symbol_name_matcher
1599 initializer.
1600 (language_defn::get_symbol_name_matcher_inner): New member
1601 function.
1602 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1603 initializer.
1604 (cplus_language_data): Likewise.
1605 (cplus_language::get_symbol_name_matcher_inner): New member
1606 function.
1607 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1608 (minimal_language_data): Likewise.
1609 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1610 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1611 initializer.
1612 * dictionary.c (iter_match_first_hashed): Update call to
1613 get_symbol_name_matcher.
1614 (iter_match_next_hashed): Likewise.
1615 (iter_match_next_linear): Likewise.
1616 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1617 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1618 initializer.
1619 (f_language::get_symbol_name_matcher_inner): New member function.
1620 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1621 initializer.
1622 * language.c (default_symbol_name_matcher): Update header comment,
1623 make static.
1624 (language_defn::get_symbol_name_matcher): New definition.
1625 (language_defn::get_symbol_name_matcher_inner): Likewise.
1626 (get_symbol_name_matcher): Delete.
1627 (unknown_language_data): Delete la_get_symbol_name_matcher
1628 initializer.
1629 (auto_language_data): Likewise.
1630 * language.h (language_data): Delete la_get_symbol_name_matcher
1631 field.
1632 (language_defn::get_symbol_name_matcher): New member function.
1633 (language_defn::get_symbol_name_matcher_inner): Likewise.
1634 (default_symbol_name_matcher): Delete declaration.
1635 * linespec.c (find_methods): Update call to
1636 get_symbol_name_matcher.
1637 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1638 initializer.
1639 * minsyms.c (lookup_minimal_symbol): Update call to
1640 get_symbol_name_matcher.
1641 (iterate_over_minimal_symbols): Likewise.
1642 * objc-lang.c (objc_language_data): Delete
1643 la_get_symbol_name_matcher initializer.
1644 * opencl-lang.c (opencl_language_data): Likewise.
1645 * p-lang.c (pascal_language_data): Likewise.
1646 * psymtab.c (psymbol_name_matches): Update call to
1647 get_symbol_name_matcher.
1648 * rust-lang.c (rust_language_data): Delete
1649 la_get_symbol_name_matcher initializer.
1650 * symtab.c (symbol_matches_search_name): Update call to
1651 get_symbol_name_matcher.
1652 (compare_symbol_name): Likewise.
1653
9a49ad8c
AB
16542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * ada-lang.c (ada_language_data): Delete la_compute_program
1657 initializer.
1658 * c-lang.c (c_language_data): Likewise.
1659 (c_language::compute_program): New member function.
1660 (cplus_language_data): Delete la_compute_program initializer.
1661 (cplus_language::compute_program): New member function.
1662 (asm_language_data): Delete la_compute_program initializer.
1663 (minimal_language_data): Likewise.
1664 * c-lang.h (c_compute_program): Update comment.
1665 (cplus_compute_program): Likewise.
1666 * compile/compile-c-support.c (c_compute_program): Likewise.
1667 (cplus_compute_program): Likewise.
1668 * compile/compile.c (compile_to_object): Update call to
1669 la_compute_program.
1670 * d-lang.c (d_language_data): Delete la_compute_program
1671 initializer.
1672 * f-lang.c (f_language_data): Likewise.
1673 * go-lang.c (go_language_data): Likewise.
1674 * language.c (unknown_language_data): Likewise.
1675 (auto_language_data): Likewise.
1676 * language.h (language_data): Delete la_compute_program field.
1677 (language_defn::compute_program): New member function.
1678 * m2-lang.c (m2_language_data): Delete la_compute_program
1679 initializer.
1680 * objc-lang.c (objc_language_data): Likewise.
1681 * opencl-lang.c (opencl_language_data): Likewise.
1682 * p-lang.c (pascal_language_data): Likewise.
1683 * rust-lang.c (rust_language_data): Likewise.
1684
eff93b4d
AB
16852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * ada-lang.c (ada_language_data) Delete
1688 la_class_name_from_physname initializer.
1689 * c-lang.c (c_language_data): Likewise.
1690 (cplus_language_data): Likewise.
1691 (cplus_language::class_name_from_physname): New member function.
1692 (asm_language_data): Delete la_class_name_from_physname
1693 initializer.
1694 (minimal_language_data): Likewise.
1695 * d-lang.c (d_language_data): Likewise.
1696 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1697 method on language_defn class.
1698 (guess_full_die_structure_name): Likewise.
1699 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1700 initializer.
1701 * go-lang.c (go_language_data): Likewise.
1702 * language.c (language_class_name_from_physname): Delete.
1703 (unk_lang_class_name): Delete.
1704 (unknown_language_data): Delete la_class_name_from_physname
1705 initializer.
1706 (auto_language_data): Likewise.
1707 * language.h (language_data): Delete la_class_name_from_physname
1708 field.
1709 (language_defn::class_name_from_physname): New function.
1710 (language_class_name_from_physname): Delete declaration.
1711 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1712 initializer.
1713 * objc-lang.c (objc_language_data): Likewise.
1714 * opencl-lang.c (opencl_language_data): Likewise.
1715 * p-lang.c (pascal_language_data): Likewise.
1716 * rust-lang.c (rust_language_data): Likewise.
1717
de543742
TT
17182020-06-16 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-data.h (STATUS_NAME): New macro.
1721 * tui/tui-layout.c (tui_remove_some_windows)
1722 (initialize_known_windows, tui_register_window)
1723 (tui_layout_split::remove_windows, initialize_layouts)
1724 (tui_new_layout_command): Don't use hard-coded window names.
1725
a350efd4
TT
17262020-06-16 Tom Tromey <tom@tromey.com>
1727
1728 PR tui/25348:
1729 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1730 tui_initialize_readline. Only run once. Call rl_initialize.
1731 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1732 tui_initialize_readline.
1733 * tui/tui-io.c (tui_setup_io): Call
1734 tui_ensure_readline_initialized.
1735 * tui/tui-interp.c (tui_interp::init): Update.
1736
39ec0490
TT
17372020-06-16 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1740 Also preserve the status window.
1741
d2d1ea20
TT
17422020-06-16 Tom Tromey <tom@tromey.com>
1743
1744 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1745 where m_window==nullptr.
1746
66920317
TT
17472020-06-15 Tom Tromey <tromey@adacore.com>
1748
1749 * windows-nat.c (windows_nat::handle_output_debug_string):
1750 Update.
1751 (windows_nat::handle_ms_vc_exception): Update.
1752 * target.h (target_read_string): Change API.
1753 * target.c (target_read_string): Change API.
1754 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1755 Update.
1756 * solib-frv.c (frv_current_sos): Update.
1757 * solib-dsbt.c (dsbt_current_sos): Update.
1758 * solib-darwin.c (darwin_current_sos): Update.
1759 * linux-thread-db.c (inferior_has_bug): Update.
1760 * expprint.c (print_subexp_standard): Update.
1761 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1762 (ada_exception_message_1): Update.
1763
a5d871dd
TT
17642020-06-15 Tom Tromey <tromey@adacore.com>
1765
1766 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1767
670e35fa
TT
17682020-06-15 Tom Tromey <tromey@adacore.com>
1769
1770 * valprint.c (read_string): Update comment.
1771 * target.c (MIN): Remove.
1772 (target_read_string): Rewrite.
1773
f5272a3b
TT
17742020-06-15 Tom Tromey <tromey@adacore.com>
1775
1776 * corefile.c (read_memory_string): Remove.
1777 * ada-valprint.c (ada_value_print_ptr): Update.
1778 * ada-lang.h (ada_tag_name): Change return type.
1779 * ada-lang.c (type_from_tag): Update.
1780 (ada_tag_name_from_tsd): Change return type. Use
1781 target_read_string.
1782 (ada_tag_name): Likewise.
1783 * gdbcore.h (read_memory_string): Don't declare.
1784
2c074f49
HD
17852020-06-14 Hannes Domani <ssbssa@yahoo.de>
1786
1787 * symtab.c (rbreak_command): Ignore Windows drive colon.
1788
6a17d503
SM
17892020-06-12 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * NEWS: Mention removed GDBserver host support.
1792
453c733f
NC
17932020-06-12 Nelson Chu <nelson.chu@sifive.com>
1794
1795 * features/riscv/rebuild-csr-xml.sh: Updated.
1796
2b4e6a3f
TT
17972020-06-11 Tom Tromey <tom@tromey.com>
1798
1799 PR gdb/18318:
1800 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1801
4412332f
JG
18022020-06-09 Jonny Grant <jg@jguk.org>
18032020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * main.c (captured_main_1): Don't print new line after help.
1806 (print_gdb_help): add mailing list and IRC channel information
1807 to --help. Add new lines between items in the footer. Remove
1808 quotes around bug url.
1809
2f33032a
KS
18102020-06-11 Keith Seitz <keiths@redhat.com>
1811
1812 PR gdb/21356
1813 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1814 Resolve typedefs for type length calculations.
1815
7ab96794
TV
18162020-06-10 Tom de Vries <tdevries@suse.de>
1817
1818 PR ada/24713
1819 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1820 (write_psymbols): Enable .gdb_index for ada.
1821 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1822 ada.
1823
e5f3ece2
TV
18242020-06-10 Tom de Vries <tdevries@suse.de>
1825
1826 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1827 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1828 namei" instead of "const char *name" argument.
1829 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1830 dw2_symtab_iter_init.
1831
940da03e
SM
18322020-06-08 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1835 to use type::field and field::type instead.
1836
b6cdac4b
SM
18372020-06-08 Simon Marchi <simon.marchi@efficios.com>
1838
1839 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1840 to use field::type instead.
1841
5d14b6e5
SM
18422020-06-08 Simon Marchi <simon.marchi@efficios.com>
1843
1844 * gdbtypes.h (struct field) <type, set_type>: New methods.
1845 Rename `type` field to...
1846 <m_type>: ... this. Change references throughout to use type or
1847 set_type methods.
1848 (FIELD_TYPE): Use field::type. Change call sites that modify
1849 the field's type to use field::set_type instead.
1850
3d967001
SM
18512020-06-08 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1854 to use type::index_type instead.
1855
262abc0d
SM
18562020-06-08 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1859 methods.
1860 (TYPE_INDEX_TYPE): Use type::index_type.
1861 * gdbtypes.c (create_array_type_with_stride): Likewise.
1862
82836c92
TT
18632020-06-07 Tom Tromey <tom@tromey.com>
1864
1865 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1866 parameter.
1867 (generic_value_print): Update.
1868
940dace9
AB
18692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 Revert commit 982a38f60b0.
1872 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1873
982a38f6
AB
18742020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1877 avoid use after free.
1878
82f06518
TV
18792020-06-05 Tom de Vries <tdevries@suse.de>
1880
1881 * NEWS: Fix typos.
1882
f8c41851
SM
18832020-06-04 Simon Marchi <simon.marchi@efficios.com>
1884
1885 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1886 the per_bfd object.
1887 (dwarf2_read_debug_names): Likewise.
1888 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1889 object when re-using a per_bfd object with an index.
1890
f9b5d5ea
TV
18912020-06-03 Tom de Vries <tdevries@suse.de>
1892
1893 PR symtab/26046
1894 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1895 children for C++.
1896 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1897 DW_TAG_subprogram.
1898
f6eee2d0
AB
18992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * ada-lang.c (ada_language_data): Delete skip_trampoline
1902 initializer.
1903 * c-lang.c (c_language_data): Likewise.
1904 (cplus_language_data): Likewise.
1905 (cplus_language::skip_trampoline): New member function.
1906 (asm_language_data): Delete skip_trampoline initializer.
1907 (minimal_language_data): Likewise.
1908 * d-lang.c (d_language_data): Likewise.
1909 * f-lang.c (f_language_data): Likewise.
1910 * go-lang.c (go_language_data): Likewise.
1911 * language.c (unk_lang_trampoline): Delete function.
1912 (skip_language_trampoline): Update.
1913 (unknown_language_data): Delete skip_trampoline initializer.
1914 (auto_language_data): Likewise.
1915 * language.h (language_data): Delete skip_trampoline field.
1916 (language_defn::skip_trampoline): New function.
1917 * m2-lang.c (m2_language_data): Delete skip_trampoline
1918 initializer.
1919 * objc-lang.c (objc_skip_trampoline): Delete function, move
1920 implementation to objc_language::skip_trampoline.
1921 (objc_language_data): Delete skip_trampoline initializer.
1922 (objc_language::skip_trampoline): New member function with
1923 implementation from objc_skip_trampoline.
1924 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1925 initializer.
1926 * p-lang.c (pascal_language_data): Likewise.
1927 * rust-lang.c (rust_language_data): Likewise.
1928
0a50df5d
AB
19292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1932 (ada_language::demangle): New member function.
1933 * c-lang.c (c_language_data): Delete la_demangle initializer.
1934 (cplus_language_data): Delete la_demangle initializer.
1935 (cplus_language::demangle): New member function.
1936 (asm_language_data): Delete la_demangle initializer.
1937 (minimal_language_data): Delete la_demangle initializer.
1938 * d-lang.c (d_language_data): Delete la_demangle initializer.
1939 (d_language::demangle): New member function.
1940 * f-lang.c (f_language_data): Delete la_demangle initializer.
1941 (f_language::demangle): New member function.
1942 * go-lang.c (go_language_data): Delete la_demangle initializer.
1943 (go_language::demangle): New member function.
1944 * language.c (language_demangle): Update.
1945 (unk_lang_demangle): Delete.
1946 (unknown_language_data): Delete la_demangle initializer.
1947 (unknown_language::demangle): New member function.
1948 (auto_language_data): Delete la_demangle initializer.
1949 (auto_language::demangle): New member function.
1950 * language.h (language_data): Delete la_demangle field.
1951 (language_defn::demangle): New function.
1952 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1953 * objc-lang.c (objc_language_data): Delete la_demangle
1954 initializer.
1955 (objc_language::demangle): New member function.
1956 * opencl-lang.c (opencl_language_data): Delete la_demangle
1957 initializer.
1958 * p-lang.c (pascal_language_data): Likewise.
1959 * rust-lang.c (rust_language_data): Likewise.
1960 (rust_language::demangle): New member function.
1961
fbfb0a46
AB
19622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * ada-lang.c (ada_language_data): Delete la_print_type
1965 initializer.
1966 (ada_language::print_type): New member function.
1967 * c-lang.c (c_language_data): Delete la_print_type initializer.
1968 (c_language::print_type): New member function.
1969 (cplus_language_data): Delete la_print_type initializer.
1970 (cplus_language::print_type): New member function.
1971 (asm_language_data): Delete la_print_type initializer.
1972 (asm_language::print_type): New member function.
1973 (minimal_language_data): Delete la_print_type initializer.
1974 (minimal_language::print_type): New member function.
1975 * d-lang.c (d_language_data): Delete la_print_type initializer.
1976 (d_language::print_type): New member function.
1977 * f-lang.c (f_language_data): Delete la_print_type initializer.
1978 (f_language::print_type): New member function.
1979 * go-lang.c (go_language_data): Delete la_print_type initializer.
1980 (go_language::print_type): New member function.
1981 * language.c (unk_lang_print_type): Delete.
1982 (unknown_language_data): Delete la_print_type initializer.
1983 (unknown_language::print_type): New member function.
1984 (auto_language_data): Delete la_print_type initializer.
1985 (auto_language::print_type): New member function.
1986 * language.h (language_data): Delete la_print_type field.
1987 (language_defn::print_type): New function.
1988 (LA_PRINT_TYPE): Update.
1989 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1990 (m2_language::print_type): New member function.
1991 * objc-lang.c (objc_language_data): Delete la_print_type
1992 initializer.
1993 (objc_language::print_type): New member function.
1994 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1995 to opencl_language::print_type.
1996 (opencl_language_data): Delete la_print_type initializer.
1997 (opencl_language::print_type): New member function, implementation
1998 from opencl_print_type.
1999 * p-lang.c (pascal_language_data): Delete la_print_type
2000 initializer.
2001 (pascal_language::print_type): New member function.
2002 * rust-lang.c (rust_print_type): Delete, implementation moved to
2003 rust_language::print_type.
2004 (rust_language_data): Delete la_print_type initializer.
2005 (rust_language::print_type): New member function, implementation
2006 from rust_print_type.
2007
6f827019
AB
20082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2011 implementation moves to...
2012 (ada_language::sniff_from_mangled_name): ...here. Update return
2013 type.
2014 (ada_language_data): Delete la_sniff_from_mangled_name
2015 initializer.
2016 * c-lang.c (c_language_data): Likewise.
2017 (cplus_language_data): Likewise.
2018 (cplus_language::sniff_from_mangled_name): New member function,
2019 implementation taken from gdb_sniff_from_mangled_name.
2020 (asm_language_data): Delete la_sniff_from_mangled_name
2021 initializer.
2022 (minimal_language_data): Likewise.
2023 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2024 implementation moves to cplus_language::sniff_from_mangled_name.
2025 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2026 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2027 moves to...
2028 (d_language::sniff_from_mangled_name): ...here.
2029 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2030 * f-lang.c (f_language_data): Likewise.
2031 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2032 moves to...
2033 (go_language::sniff_from_mangled_name): ...here.
2034 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2035 * language.c (language_sniff_from_mangled_name): Delete.
2036 (unknown_language_data): Delete la_sniff_from_mangled_name
2037 initializer.
2038 (auto_language_data): Likewise.
2039 * language.h (language_data): Delete la_sniff_from_mangled_name
2040 field.
2041 (language_defn::sniff_from_mangled_name): New function.
2042 (language_sniff_from_mangled_name): Delete declaration.
2043 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2044 field.
2045 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2046 implementation moves to...
2047 (objc_language::sniff_from_mangled_name): ...here.
2048 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2049 * opencl-lang.c (opencl_language_data): Likewise.
2050 * p-lang.c (pascal_language_data): Likewise.
2051 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2052 implementation moves to...
2053 (rust_language::sniff_from_mangled_name): ...here.
2054 (rust_language_data): Delete la_sniff_from_mangled_name
2055 initializer.
2056 * symtab.c (symbol_find_demangled_name): Call
2057 sniff_from_mangled_name member function.
2058
fb8006fd
AB
20592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2062 initializer.
2063 * c-lang.c (c_language_data): Likewise.
2064 (cplus_language_data): Likewise.
2065 (cplus_language::search_name_hash): New member function.
2066 (asm_language_data): Delete la_search_name_hash initializer.
2067 (minimal_language_data): Likewise.
2068 * d-lang.c (d_language_data): Likewise.
2069 * dictionary.c (default_search_name_hash): Rename to...
2070 (language_defn::search_name_hash): ...this.
2071 * f-lang.c (f_language_data): Likewise.
2072 (f_language::search_name_hash): New member function.
2073 * go-lang.c (go_language_data): Delete la_search_name_hash
2074 initializer.
2075 * language.c (unknown_language_data): Likewise.
2076 (auto_language_data): Likewise.
2077 * language.h (struct language_data): Delete la_search_name_hash
2078 field.
2079 (language_defn::search_name_hash): Declare new member function.
2080 (default_search_name_hash): Delete declaration.
2081 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2082 initializer.
2083 * objc-lang.c (objc_language_data): Likewise.
2084 * opencl-lang.c (opencl_language_data): Likewise.
2085 * p-lang.c (pascal_language_data): Likewise.
2086 * rust-lang.c (rust_language_data): Likewise.
2087 * symtab.c (search_name_hash): Update call.
2088
8e25bafe
AB
20892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2092 initializer.
2093 * c-lang.c (class compile_instance): Declare.
2094 (c_language_data): Delete la_get_compile_instance initializer.
2095 (c_language::get_compile_instance): New member function.
2096 (cplus_language_data): Delete la_get_compile_instance initializer.
2097 (cplus_language::get_compile_instance): New member function.
2098 (asm_language_data): Delete la_get_compile_instance initializer.
2099 (minimal_language_data): Likewise.
2100 * c-lang.h (c_get_compile_context): Update comment.
2101 (cplus_get_compile_context): Update comment.
2102 * compile/compile.c (compile_to_object): Update calls, don't rely
2103 on function pointer being NULL.
2104 * d-lang.c (d_language_data): Delete la_get_compile_instance
2105 initializer.
2106 * f-lang.c (f_language_data): Likewise.
2107 * go-lang.c (go_language_data): Likewise.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete la_get_compile_instance field.
2111 (language_defn::get_compile_instance): New member function.
2112 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2113 initializer.
2114 * objc-lang.c (objc_language_data): Likewise.
2115 * opencl-lang.c (opencl_language_data): Likewise.
2116 * p-lang.c (pascal_language_data): Likewise.
2117 * rust-lang.c (rust_language_data): Likewise.
2118
4009ee92
AB
21192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * ada-lang.c (ada_add_all_symbols): Update comment.
2122 (ada_iterate_over_symbols): Delete, move implementation to...
2123 (ada_language::iterate_over_symbols): ...here, a new member
2124 function, rewrite to use range based for loop.
2125 (ada_language_data): Delete la_iterate_over_symbols initializer.
2126 * c-lang.c (c_language_data): Likewise.
2127 (cplus_language_data): Likewise.
2128 (asm_language_data): Likewise.
2129 (minimal_language_data): Likewise.
2130 * d-lang.c (d_language_data): Likewise.
2131 * f-lang.c (f_language_data): Likewise.
2132 * go-lang.c (go_language_data): Likewise.
2133 * language.c (unknown_language_data): Likewise.
2134 (auto_language_data): Likewise.
2135 * language.h (language_data): Delete la_iterate_over_symbols field.
2136 (language_defn::iterate_over_symbols): New member function.
2137 (LA_ITERATE_OVER_SYMBOLS): Update.
2138 * linespec.c (iterate_over_all_matching_symtabs): Update.
2139 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2140 initializer.
2141 * objc-lang.c (objc_language_data): Likewise.
2142 * opencl-lang.c (opencl_language_data): Likewise.
2143 * p-lang.c (pascal_language_data): Likewise.
2144 * rust-lang.c (rust_language_data): Likewise.
2145
54f4ca46
AB
21462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (ada_language_data): Delete
2149 la_lookup_transparent_type initializer.
2150 * c-lang.c (c_language_data): Likewise.
2151 (cplus_language_data): Likewise.
2152 (cplus_language::lookup_transparent_type): New member function.
2153 (asm_language_data): Delete la_lookup_transparent_type
2154 initializer.
2155 (minimal_language_data): Likewise.
2156 * d-lang.c (d_language_data): Likewise.
2157 * f-lang.c (f_language_data): Likewise.
2158 * go-lang.c (go_language_data): Likewise.
2159 * language.c (unknown_language_data): Likewise.
2160 (auto_language_data): Likewise.
2161 * language.h (struct language_data): Delete
2162 la_lookup_transparent_type field.
2163 (language_defn::lookup_transparent_type): New member function.
2164 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2165 initializer.
2166 * objc-lang.c (objc_language_data): Likewise.
2167 * opencl-lang.c (opencl_language_data): Likewise.
2168 * p-lang.c (pascal_language_data): Likewise.
2169 * rust-lang.c (rust_language_data): Likewise.
2170 * symtab.c (symbol_matches_domain): Update call.
2171
1fb314aa
AB
21722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * ada-lang.c (ada_language_arch_info): Delete function, move
2175 implementation to...
2176 (ada_language::language_arch_info): ...here, a new member
2177 function.
2178 (ada_language_data): Delete la_language_arch_info.
2179 * c-lang.c (c_language_data): Likewise.
2180 (c_language::language_arch_info): New member function.
2181 (cplus_language_arch_info): Delete function, move
2182 implementation to...
2183 (cplus_language::language_arch_info): ...here, a new member
2184 function.
2185 (cplus_language_data): Delete la_language_arch_info.
2186 (asm_language_data): Likewise.
2187 (asm_language::language_arch_info): New member function.
2188 (minimal_language_data): Delete la_language_arch_info.
2189 (minimal_language::language_arch_info): New member function.
2190 * d-lang.c (d_language_arch_info): Delete function, move
2191 implementation to...
2192 (d_language::language_arch_info): ...here, a new member
2193 function.
2194 (d_language_data): Delete la_language_arch_info.
2195 * f-lang.c (f_language_arch_info): Delete function, move
2196 implementation to...
2197 (f_language::language_arch_info): ...here, a new member
2198 function.
2199 (f_language_data): Delete la_language_arch_info.
2200 * go-lang.c (go_language_arch_info): Delete function, move
2201 implementation to...
2202 (go_language::language_arch_info): ...here, a new member
2203 function.
2204 (go_language_data): Delete la_language_arch_info.
2205 * language.c (unknown_language_data): Likewise.
2206 (unknown_language::language_arch_info): New member function.
2207 (auto_language_data): Delete la_language_arch_info.
2208 (auto_language::language_arch_info): New member function.
2209 (language_gdbarch_post_init): Update call to
2210 la_language_arch_info.
2211 * language.h (language_data): Delete la_language_arch_info
2212 function pointer.
2213 (language_defn::language_arch_info): New function.
2214 * m2-lang.c (m2_language_arch_info): Delete function, move
2215 implementation to...
2216 (m2_language::language_arch_info): ...here, a new member
2217 function.
2218 (m2_language_data): Delete la_language_arch_info.
2219 * objc-lang.c (objc_language_arch_info): Delete function, move
2220 implementation to...
2221 (objc_language::language_arch_info): ...here, a new member
2222 function.
2223 (objc_language_data): Delete la_language_arch_info.
2224 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2225 implementation to...
2226 (opencl_language::language_arch_info): ...here, a new member
2227 function.
2228 (opencl_language_data): Delete la_language_arch_info.
2229 * p-lang.c (pascal_language_arch_info): Delete function, move
2230 implementation to...
2231 (pascal_language::language_arch_info): ...here, a new member
2232 function.
2233 (pascal_language_data): Delete la_language_arch_info.
2234 * rust-lang.c (rust_language_arch_info): Delete function, move
2235 implementation to...
2236 (rust_language::language_arch_info): ...here, a new member
2237 function.
2238 (rust_language_data): Delete la_language_arch_info.
2239
48448202
AB
22402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2243 initializer.
2244 * c-lang.c (c_language_data): Likewise.
2245 (cplus_language_data): Likewise.
2246 (cplus_language::pass_by_reference_info): New method.
2247 (asm_language_data): Delete la_pass_by_reference initializer.
2248 (minimal_language_data): Likewise.
2249 * cp-abi.c (cp_pass_by_reference): Remove use of
2250 default_pass_by_reference.
2251 * d-lang.c (d_language_data): Likewise.
2252 * f-lang.c (f_language_data): Likewise.
2253 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2254 default_pass_by_reference.
2255 * go-lang.c (go_language_data): Likewise.
2256 * language.c (language_pass_by_reference): Update.
2257 (default_pass_by_reference): Delete.
2258 (unknown_language_data): Delete la_pass_by_reference
2259 initializer.
2260 (auto_language_data): Likewise.
2261 * language.h (struct language_data): Delete la_pass_by_reference
2262 field.
2263 (language_defn::pass_by_reference_info): New member function.
2264 (default_pass_by_reference): Delete declaration.
2265 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2266 initializer.
2267 * objc-lang.c (objc_language_data): Likewise.
2268 * opencl-lang.c (opencl_language_data): Likewise.
2269 * p-lang.c (pascal_language_data): Likewise.
2270 * rust-lang.c (rust_language_data): Likewise.
2271
15e5fd35
AB
22722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * ada-lang.c (ada_read_var_value): Delete function, move
2275 implementation to...
2276 (ada_language::read_var_value): ...here.
2277 (ada_language_data): Delete la_read_var_value initializer.
2278 * c-lang.c (c_language_data): Likewise.
2279 (cplus_language_data): Likewise.
2280 (minimal_language_data): Likewise.
2281 * d-lang.c (d_language_data): Likewise.
2282 * f-lang.c (f_language_data): Likewise.
2283 * findvar.c (default_read_var_value): Rename to...
2284 (language_defn::read_var_value): ...this.
2285 * findvar.c (read_var_value): Update header comment, and change to
2286 call member function instead of function pointer.
2287 * go-lang.c (go_language_data): Likewise.
2288 * language.c (unknown_language_data): Delete la_read_var_value
2289 initializer.
2290 (auto_language_data): Likewise.
2291 * language.h (struct language_data): Delete la_read_var_value
2292 field.
2293 (language_defn::read_var_value): New member function.
2294 (default_read_var_value): Delete declaration.
2295 * m2-lang.c (m2_language_data): Delete la_read_var_value
2296 initializer.
2297 * objc-lang.c (objc_language_data): Likewise.
2298 * opencl-lang.c (opencl_language_data): Likewise.
2299 * p-lang.c (pascal_language_data): Likewise.
2300 * rust-lang.c (rust_language_data): Likewise.
2301 * value.h (default_read_var_value): Delete declaration.
2302
5bd40f2a
AB
23032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * ada-lang.c (ada_print_array_index): Delete function, move
2306 implementation to...
2307 (ada_language::print_array_index): ...here.
2308 (ada_language_data): Delete la_print_array_index initializer.
2309 * c-lang.c (c_language_data): Likewise.
2310 (cplus_language_data): Likewise.
2311 (minimal_language_data): Likewise.
2312 * d-lang.c (d_language_data): Likewise.
2313 * f-lang.c (f_language_data): Likewise.
2314 * go-lang.c (go_language_data): Likewise.
2315 * language.c (default_print_array_index): Delete function, move
2316 implementation to...
2317 (language_defn::print_array_index): ...here.
2318 (unknown_language_data): Delete la_print_array_index initializer.
2319 (auto_language_data): Likewise.
2320 * language.h (struct language_data): Delete la_print_array_index
2321 field.
2322 (language_defn::print_array_index): New member function.
2323 (LA_PRINT_ARRAY_INDEX): Update.
2324 (default_print_array_index): Delete declaration.
2325 * m2-lang.c (m2_language_data): Delete la_print_array_index
2326 initializer.
2327 * objc-lang.c (objc_language_data): Likewise.
2328 * opencl-lang.c (opencl_language_data): Likewise.
2329 * p-lang.c (pascal_language_data): Likewise.
2330 * rust-lang.c (rust_language_data): Likewise.
2331
0874fd07
AB
23322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * gdb/ada-lang.c (ada_language_defn): Convert to...
2335 (ada_language_data): ...this.
2336 (class ada_language): New class.
2337 (ada_language_defn): New static global.
2338 * gdb/c-lang.c (c_language_defn): Convert to...
2339 (c_language_data): ...this.
2340 (class c_language): New class.
2341 (c_language_defn): New static global.
2342 (cplus_language_defn): Convert to...
2343 (cplus_language_data): ...this.
2344 (class cplus_language): New class.
2345 (cplus_language_defn): New static global.
2346 (asm_language_defn): Convert to...
2347 (asm_language_data): ...this.
2348 (class asm_language): New class.
2349 (asm_language_defn): New static global.
2350 (minimal_language_defn): Convert to...
2351 (minimal_language_data): ...this.
2352 (class minimal_language): New class.
2353 (minimal_language_defn): New static global.
2354 * gdb/d-lang.c (d_language_defn): Convert to...
2355 (d_language_data): ...this.
2356 (class d_language): New class.
2357 (d_language_defn): New static global.
2358 * gdb/f-lang.c (f_language_defn): Convert to...
2359 (f_language_data): ...this.
2360 (class f_language): New class.
2361 (f_language_defn): New static global.
2362 * gdb/go-lang.c (go_language_defn): Convert to...
2363 (go_language_data): ...this.
2364 (class go_language): New class.
2365 (go_language_defn): New static global.
2366 * gdb/language.c (unknown_language_defn): Remove declaration.
2367 (current_language): Initialize to nullptr, real initialization is
2368 moved to _initialize_language.
2369 (languages): Delete global.
2370 (language_defn::languages): Define.
2371 (set_language_command): Use language_defn::languages.
2372 (set_language): Likewise.
2373 (range_error): Likewise.
2374 (language_enum): Likewise.
2375 (language_def): Likewise.
2376 (add_set_language_command): Use language_def::languages for the
2377 language list, and language_def to lookup language pointers.
2378 (skip_language_trampoline): Use language_defn::languages.
2379 (unknown_language_defn): Convert to...
2380 (unknown_language_data): ...this.
2381 (class unknown_language): New class.
2382 (unknown_language_defn): New static global.
2383 (auto_language_defn): Convert to...
2384 (auto_language_data): ...this.
2385 (class auto_language): New class.
2386 (auto_language_defn): New static global.
2387 (language_gdbarch_post_init): Use language_defn::languages.
2388 (_initialize_language): Initialize current_language.
2389 * gdb/language.h (struct language_defn): Rename to...
2390 (struct language_data): ...this.
2391 (struct language_defn): New.
2392 (auto_language_defn): Delete.
2393 (unknown_language_defn): Delete.
2394 (minimal_language_defn): Delete.
2395 (ada_language_defn): Delete.
2396 (asm_language_defn): Delete.
2397 (c_language_defn): Delete.
2398 (cplus_language_defn): Delete.
2399 (d_language_defn): Delete.
2400 (f_language_defn): Delete.
2401 (go_language_defn): Delete.
2402 (m2_language_defn): Delete.
2403 (objc_language_defn): Delete.
2404 (opencl_language_defn): Delete.
2405 (pascal_language_defn): Delete.
2406 (rust_language_defn): Delete.
2407 * gdb/m2-lang.c (m2_language_defn): Convert to...
2408 (m2_language_data): ...this.
2409 (class m2_language): New class.
2410 (m2_language_defn): New static global.
2411 * gdb/objc-lang.c (objc_language_defn): Convert to...
2412 (objc_language_data): ...this.
2413 (class objc_language): New class.
2414 (objc_language_defn): New static global.
2415 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2416 (opencl_language_data): ...this.
2417 (class opencl_language): New class.
2418 (opencl_language_defn): New static global.
2419 * gdb/p-lang.c (pascal_language_defn): Convert to...
2420 (pascal_language_data): ...this.
2421 (class pascal_language): New class.
2422 (pascal_language_defn): New static global.
2423 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2424 language pointer, update comment format.
2425 * gdb/rust-lang.c (rust_language_defn): Convert to...
2426 (rust_language_data): ...this.
2427 (class rust_language): New class.
2428 (rust_language_defn): New static global.
2429
1313c56e
AB
24302020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2433 member variable.
2434 <m_stmt_at_address>: New member variable.
2435 (lnp_state_machine::record_line): Don't record some lines, update
2436 tracking of is_stmt at the same address.
2437 (lnp_state_machine::lnp_state_machine): Initialise new member
2438 variables.
2439
b7ed9f3d
ST
24402020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2441
2442 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2443 "-include gnu-nat-mig.h".
2444 * gnu-nat-mig.h: New file.
2445 * gnu-nat.c: Include "gnu-nat-mig.h".
2446 (exc_server, msg_reply_server, notify_server,
2447 process_reply_server): Remove declarations.
2448
14a8ad62
ST
24492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2450
2451 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2452 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2453 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2454 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2455 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2456 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2457 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2458 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2459 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2460 to gnu_nat_target class.
2461 * gnu-nat.c: Likewise.
2462 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2463 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2464 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2465 object.
2466 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2467 instead of `gnu_target'.
2468
0af5e106
ST
24692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * i386-gnu-tdep.c: Include "gdbcore.h"
2472 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2473 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2474 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2475 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2476 i386_gnu_sigcontext_addr): New functions
2477 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2478 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2479 tdep.
2480
078f2fc9
ST
24812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2482
2483 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2484 before fork_inferior call. Avoid calling it if target_is_pushed returns
2485 true.
2486
53dff92c
ST
24872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2488
2489 * gnu-nat.h (gnu_target): New variable declaration.
2490 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2491 gnu_target.
2492 * gnu-nat.c (gnu_target): New variable.
2493 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2494 add_thread_silent, and add_thread calls.
2495 (gnu_nat_target::create_inferior): Pass gnu_target to
2496 add_thread_silent, thread_change_ptid call.
2497 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2498 call.
2499
5a8b8627
ST
25002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2501
2502 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2503 (gnu_nat_target::find_memory_regions): Remove unused
2504 `old_address' variable.
2505
366f550a
ST
25062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2507
2508 * gnu-nat.c: Include "gdbarch.h".
2509
f14871bf
ST
25102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2511
2512 * reply_mig_hack.awk (Error return): Cast function through
2513 void *, to bypass compiler function call check.
2514
c6887cfb
ST
25152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2516
2517 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2518 $(srcdir)/reply_mig_hack.awk.
2519
6930bffe
ST
25202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2521
2522 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2523
112c22ed
JG
25242020-05-30 Jonny Grant <jg@jguk.org>
2525
2526 * configure.ac (ACX_BUGURL): change bug URL to https.
2527
f68f85b5
PA
25282020-05-30 Pedro Alves <palves@redhat.com>
2529
2530 * cp-support.c (replace_typedefs_template): New.
2531 (replace_typedefs_qualified_name): Handle
2532 DEMANGLE_COMPONENT_TEMPLATE.
2533
976ca316
SM
25342020-05-29 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2537 dwarf2/index-cache.h, dwarf2/index-write.c,
2538 dwarf2/index-write.h, dwarf2/line-header.c,
2539 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2540 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2541 variables and fields from `dwarf2_per_objfile` to just
2542 `per_objfile` throughout.
2543
989ade05
SM
25442020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2547 <push_dwarf_reg_entry_value>: Add comment.
2548
c47bae85
KB
25492020-05-28 Kevin Buettner <kevinb@redhat.com>
2550 Keith Seitz <keiths@redhat.com>
2551
2552 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2553 instead of PyEval_ReleaseLock.
2554 (class gdbpy_gil): Move to earlier in file.
2555 (finalize_python): Set gdb_python_initialized.
2556 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2557 when not initialized.
2558
44486dcf
SM
25592020-05-28 Simon Marchi <simon.marchi@efficios.com>
2560
2561 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2562 <push_dwarf_reg_entry_value>: Remove assert. Override
2563 per_objfile with caller_per_objfile.
2564
f030440d
TV
25652020-05-28 Tom de Vries <tdevries@suse.de>
2566
2567 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2568 PR gold/15646 workaround to symbol kind "type".
2569
f0fbb768
TT
25702020-05-27 Tom Tromey <tromey@adacore.com>
2571
2572 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2573
af0b2a3e
TT
25742020-05-27 Tom Tromey <tromey@adacore.com>
2575
2576 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2577 Use htab_find_with_hash.
2578 <add_abbrev>: Remove "abbrev_number" parameter.
2579 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2580 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2581 (hash_abbrev): Add comment.
2582 (abbrev_table::lookup_abbrev): Move to header file.
2583 (abbrev_table::read): Update.
2584
7d00ffec
TT
25852020-05-27 Tom Tromey <tromey@adacore.com>
2586
2587 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2588 method.
2589 <canonical_name>: New member.
2590 <raw_name>: Rename from "name".
2591 (partial_die_info): Initialize canonical_name.
2592 (scan_partial_symbols): Check raw_name.
2593 (partial_die_parent_scope, partial_die_full_name)
2594 (add_partial_symbol, add_partial_subprogram)
2595 (add_partial_enumeration, load_partial_dies): Use "name" method.
2596 (partial_die_info::name): New method.
2597 (partial_die_info::read, guess_partial_die_structure_name)
2598 (partial_die_info::fixup): Update.
2599
697bba18
TT
26002020-05-27 Tom Tromey <tromey@adacore.com>
2601
2602 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2603 <get_ref_die_offset>: Inline.
2604 <get_ref_die_offset_complaint>: New method.
2605 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2606 (attribute::get_ref_die_offset_complaint): Rename from
2607 get_ref_die_offset. Just issue complaint.
2608
c17ace43
HD
26092020-05-27 Hannes Domani <ssbssa@yahoo.de>
2610
2611 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2612
96445f0b
HD
26132020-05-27 Hannes Domani <ssbssa@yahoo.de>
2614
2615 * exec.c (exec_file_attach): Use errno value of first openp failure.
2616
ac637ec3
HD
26172020-05-27 Hannes Domani <ssbssa@yahoo.de>
2618
2619 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2620 Don't close thread handle.
2621
17ee85fc
TT
26222020-05-27 Tom Tromey <tom@tromey.com>
2623 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2626 shared_ptr.
2627 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2628 member.
2629 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2630 dwarf2_per_bfd_objfile_data_key>: New globals.
2631 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2632 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2633 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2634 shared.
2635 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2636 short-circuit when sharing.
2637 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2638 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2639
39b16f87
SM
26402020-05-27 Simon Marchi <simon.marchi@efficios.com>
2641
2642 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2643 to...
2644 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2645 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2646
fcf23d5b
SM
26472020-05-27 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2650 build_name_components, find_name_components_bounds>:
2651 Add per_objfile parameter.
2652 (struct mapped_index) <symbol_name_at>: Likewise.
2653 (struct mapped_debug_names): Remove constructor.
2654 <dwarf2_per_objfile>: Remove field.
2655 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2656 (mapped_index_base::find_name_components_bounds,
2657 mapped_index_base::build_name_components,
2658 dw2_expand_symtabs_matching_symbol): Likewise.
2659 (class mock_mapped_index) <symbol_name_at>: Likewise.
2660 (check_match): Likewise.
2661 (check_find_bounds_finds): Likewise.
2662 (test_mapped_index_find_name_component_bounds): Update.
2663 (CHECK_MATCH): Update.
2664 (dw2_expand_symtabs_matching): Update.
2665 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2666 per_objfile parameter.
2667 <find_vec_in_debug_names>: Likewise.
2668 <m_per_objfile>: New field.
2669 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2670 parameter.
2671 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2672 (dw2_debug_names_iterator::next): Update.
2673 (dw2_debug_names_lookup_symbol): Update.
2674 (dw2_debug_names_expand_symtabs_for_function): Update.
2675 (dw2_debug_names_map_matching_symbols): Update.
2676 (dw2_debug_names_expand_symtabs_matching): Update.
2677 (dwarf2_read_debug_names): Update.
2678
7188ed02
SM
26792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2682 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2683 move to dwarf2_per_objfile.
2684 <read_in_chain>: Remove.
2685 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2686 remove_all_cus, age_comp_units>: New methods.
2687 <m_dwarf2_cus>: New member.
2688 (struct dwarf2_per_cu_data) <cu>: Remove.
2689 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2690 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2691 moved to methods of dwarf2_per_objfile.
2692 (dwarf2_clear_marks): Remove.
2693 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2694 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2695 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2696 (dwarf2_per_objfile::remove_all_cus): New.
2697 (class free_cached_comp_units) <~free_cached_comp_units>:
2698 Update.
2699 (load_cu): Update.
2700 (dw2_do_instantiate_symtab): Adjust.
2701 (fill_in_sig_entry_from_dwo_entry): Adjust.
2702 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2703 (cutu_reader::cutu_reader): Likewise.
2704 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2705 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2706 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2707 and dwarf2_per_objfile::age_comp_units.
2708 (load_partial_comp_unit): Update.
2709 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2710 (process_queue): Likewise.
2711 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2712 backlink.
2713 (dwarf2_read_addr_index): Likewise.
2714 (follow_die_offset): Likewise.
2715 (dwarf2_fetch_die_loc_sect_off): Likewise.
2716 (dwarf2_fetch_constant_bytes): Likewise.
2717 (dwarf2_fetch_die_type_sect_off): Likewise.
2718 (follow_die_sig_1): Likewise.
2719 (load_full_type_unit): Likewise.
2720 (read_signatured_type): Likewise.
2721 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2722 (dwarf2_cu::~dwarf2_cu): Remove.
2723 (dwarf2_per_objfile::get_cu): New.
2724 (dwarf2_per_objfile::set_cu): New.
2725 (age_cached_comp_units): Rename to...
2726 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2727 to std::unordered_map.
2728 (free_one_cached_comp_unit): Rename to...
2729 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2730 to std::unordered_map.
2731 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2732 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2733 a dwarf2_per_objfile in data.
2734 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2735 (dwarf2_clear_marks): Remove.
2736
2e671100
SM
27372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2740 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2741 (init_tu_and_read_dwo_dies): Likewise.
2742 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2743 (cutu_reader::cutu_reader): Likewise.
2744 (load_partial_comp_unit): Likewise.
2745 (process_psymtab_comp_unit): Update.
2746 (build_type_psymtabs_1): Update.
2747 (process_skeletonless_type_unit): Update.
2748 (load_full_comp_unit): Update.
2749 (find_partial_die): Update.
2750 (dwarf2_read_addr_index): Update.
2751 (read_signatured_type): Update.
2752
2e6a9f79
SM
27532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2756 m_header_read_in>: New fields.
2757 <get_header>: New method.
2758 * dwarf2/read.c (per_cu_header_read_in): Remove.
2759 (dwarf2_per_cu_data::get_header): New.
2760 (dwarf2_per_cu_data::addr_size): Update.
2761 (dwarf2_per_cu_data::offset_size): Update.
2762 (dwarf2_per_cu_data::ref_addr_size): Update.
2763
1b555f17
SM
27642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2767 (dw2_do_instantiate_symtab): Update.
2768 (queue_and_load_all_dwo_tus): Change parameter from
2769 dwarf2_per_cu_data to dwarf2_cu.
2770 (dwarf2_fetch_die_loc_sect_off): Update.
2771 (dwarf2_fetch_constant_bytes): Update.
2772 (dwarf2_fetch_die_type_sect_off): Update.
2773
8fc0b21d
SM
27742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2775
2776 * dwarf2/read.c (process_full_comp_unit,
2777 process_full_type_unit): Remove per_cu, per_objfile paramters.
2778 Add dwarf2_cu parameter.
2779 (process_queue): Update.
2780
168c9250
SM
27812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 * dwarf2/read.c (create_cu_from_index_list): Replace
2784 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2785 (create_cus_from_index_list): Likewise.
2786 (create_cus_from_index): Likewise.
2787 (create_signatured_type_table_from_index): Likewise.
2788 (create_cus_from_debug_names_list): Likewise.
2789 (create_cus_from_debug_names): Likewise.
2790 (dwarf2_read_gdb_index): Update.
2791 (dwarf2_read_debug_names): Update.
2792
e286671b
TT
27932020-05-27 Tom Tromey <tom@tromey.com>
2794 Simon Marchi <simon.marchi@efficios.com>
2795
2796 * dwarf2/read.h (struct dwarf2_per_objfile)
2797 <get_type_for_signatured_type, set_type_for_signatured_type>:
2798 New methods.
2799 <m_type_map>: New member.
2800 (struct signatured_type) <type>: Remove.
2801 * dwarf2/read.c
2802 (dwarf2_per_objfile::get_type_for_signatured_type,
2803 dwarf2_per_objfile::set_type_for_signatured_type): New.
2804 (get_signatured_type): Use new methods.
2805
8adb8487
TT
28062020-05-27 Tom Tromey <tom@tromey.com>
2807 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2810 (struct dwarf2_per_objfile) <type_units>: New member.
2811 <get_type_unit_group_unshareable>: New method.
2812 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2813 num_symtabs, symtabs>: Remove; move to
2814 type_unit_group_unshareable.
2815 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2816 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2817 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2818
127bbf4b
SM
28192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * dwarf2/read.h (struct dwarf2_per_cu_data):
2822 <dwarf2_per_objfile>: Remove.
2823 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2824 dwarf2_per_objfile.
2825 (create_signatured_type_table_from_index): Likewise.
2826 (create_signatured_type_table_from_debug_names): Likewise.
2827 (create_debug_type_hash_table): Likewise.
2828 (fill_in_sig_entry_from_dwo_entry): Likewise.
2829 (create_type_unit_group): Likewise.
2830 (read_comp_units_from_section): Likewise.
2831 (create_cus_hash_table): Likewise.
2832
f6e649dd
SM
28332020-05-27 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2836 dwarf2_per_cu_data::dwarf2_per_objfile.
2837 (compute_compunit_symtab_includes): Likewise.
2838 (dwarf2_cu::start_symtab): Likewise.
2839
aa66c379
SM
28402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2843 parameter.
2844 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2845 (read_namespace_alias): Update.
2846 (lookup_die_type): Update.
2847 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2848 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2849 Update.
2850 (disassemble_dwarf_expression): Update.
2851
120ce1b5
SM
28522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * dwarf2/read.h (struct dwarf2_queue_item): Add
2855 dwarf2_per_objfile parameter, assign new parameter.
2856 <per_objfile>: New field.
2857 * dwarf2/read.c (free_one_cached_comp_unit): Add
2858 dwarf2_per_objfile parameter.
2859 (queue_comp_unit): Likewise.
2860 (dw2_do_instantiate_symtab): Update.
2861 (process_psymtab_comp_unit): Update.
2862 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2863 (process_imported_unit_die): Update.
2864 (queue_and_load_dwo_tu): Update.
2865 (follow_die_offset): Update.
2866 (follow_die_sig_1): Update.
2867
9f47c707
SM
28682020-05-27 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2871 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2872 (read_call_site_scope): Assign per_objfile.
2873 (dwarf2_per_cu_data::objfile): Remove.
2874 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2875 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2876 dwarf2_per_objfile parameter.
2877 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2878 dwarf2_per_objfile parameter.
2879 (dwarf_expr_reg_to_entry_parameter): Add output
2880 dwarf2_per_objfile parameter.
2881 (locexpr_get_frame_base): Update.
2882 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2883 <push_dwarf_reg_entry_value>: Update.
2884 <call_site_to_target_addr>: Update.
2885 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2886 parameter.
2887 (value_of_dwarf_reg_entry): Update.
2888 (rw_pieced_value): Update.
2889 (indirect_synthetic_pointer): Update.
2890 (dwarf2_evaluate_property): Update.
2891 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2892 parameter.
2893 (locexpr_read_variable): Update.
2894 (locexpr_get_symbol_read_needs): Update.
2895 (loclist_read_variable): Update.
2896
14095eb3
SM
28972020-05-27 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2900 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2901 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2902 parameter.
2903 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2904 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2905 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2906 parameter.
2907 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2908 sect_variable_value): Add dwarf2_per_objfile parameter.
2909 (class dwarf_evaluate_loc_desc) <dwarf_call,
2910 dwarf_variable_value>: Update.
2911 (fetch_const_value_from_synthetic_pointer): Add
2912 dwarf2_per_objfile parameter.
2913 (fetch_const_value_from_synthetic_pointer): Update.
2914 (coerced_pieced_ref): Update.
2915 (class symbol_needs_eval_context) <dwarf_call,
2916 dwarf_variable_value>: Update.
2917 (dwarf2_compile_expr_to_ax): Update.
2918
3c3cd3d4
SM
29192020-05-27 Simon Marchi <simon.marchi@efficios.com>
2920
2921 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2922 parameter.
2923 (dwarf2_evaluate_loc_desc_full): Update.
2924
82ca3f51
SM
29252020-05-27 Simon Marchi <simon.marchi@efficios.com>
2926
2927 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2928 parameter.
2929 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2930 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2931 dwarf2_per_objfile parameter.
2932 (decode_debug_loc_dwo_addresses): Likewise.
2933 (dwarf2_find_location_expression): Update.
2934 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2935 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2936 parameter.
2937 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2938 parameter.
2939 (locexpr_describe_location_1): Likewise.
2940 (locexpr_describe_location): Update.
2941
4b167ea1
SM
29422020-05-27 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2945 Remove.
2946 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2947 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2948 (dwarf2_compile_property_to_c): Update.
2949 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2950 use text offset from objfile.
2951 (locexpr_tracepoint_var_ref): Update.
2952 (locexpr_generate_c_location): Update.
2953 (loclist_describe_location): Update.
2954 (loclist_tracepoint_var_ref): Update.
2955 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2956 dwarf2_per_objfile parameter.
2957 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2958 use text offset from objfile.
2959 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2960
89b07335
SM
29612020-05-27 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * dwarf2/expr.h (struct dwarf_expr_context)
2964 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2965 <offset>: Remove.
2966 <per_objfile>: New member.
2967 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2968 dwarf2_per_objfile parameter. Don't set offset, set
2969 per_objfile.
2970 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2971 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2972 a dwarf2_per_objfile object instead of an offset.
2973 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2974 constructor.
2975 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2976 to dwarf2_expr_executor constructor. Don't set offset.
2977 (dwarf2_fetch_cfa_info): Update.
2978 (struct dwarf2_frame_cache) <text_offset>: Remove.
2979 <per_objfile>: New field.
2980 (dwarf2_frame_cache): Update.
2981 (dwarf2_frame_prev_register): Update.
2982 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2983 <dwarf_evaluate_loc_desc>: Add constructor.
2984 (dwarf2_evaluate_loc_desc_full): Update.
2985 (dwarf2_locexpr_baton_eval): Update.
2986 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2987 Add constructor.
2988 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2989
293e7e51
SM
29902020-05-27 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2993 addr_sized_int_type>: Move to dwarf2_cu.
2994 <int_type>: Move to dwarf2_per_objfile.
2995 (struct dwarf2_per_objfile) <int_type>: Move here.
2996 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2997 addr_sized_int_type>: Move here.
2998 (read_func_scope): Update.
2999 (read_array_type): Update.
3000 (read_tag_string_type): Update.
3001 (attr_to_dynamic_prop): Update.
3002 (dwarf2_per_cu_data::int_type): Rename to...
3003 (dwarf2_per_objfile::int_type): ... this.
3004 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3005 (dwarf2_cu::addr_sized_int_type): ... this.
3006 (read_subrange_type): Update.
3007 (dwarf2_per_cu_data::addr_type): Rename to...
3008 (dwarf2_cu::addr_type): ... this.
3009 (set_die_type): Update.
3010
64874a40
SM
30112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3014 data through per_cu->cu.
3015
4ab09049
SM
30162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3019 dwarf2_per_cu_data parameter fo dwarf2_cu.
3020 (lookup_dwo_type_unit): Likewise.
3021 (read_cutu_die_from_dwo): Likewise.
3022 (lookup_dwo_unit): Likewise.
3023 (open_and_init_dwo_file): Likewise.
3024 (lookup_dwo_cutu): Likewise.
3025 (lookup_dwo_comp_unit): Likewise.
3026 (lookup_dwo_type_unit): Likewise.
3027 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3028 (cutu_reader::cutu_reader): Update.
3029
47b14e86
SM
30302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3033 parameter.
3034 (process_full_type_unit): Likewise.
3035 (process_queue): Update.
3036
43182c09
SM
30372020-05-27 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * dwarf2/read.c (recursively_compute_inclusions): Add
3040 dwarf2_per_objfile parameter.
3041 (compute_compunit_symtab_includes): Likewise.
3042 (process_cu_includes): Update.
3043
7aa104c4
SM
30442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3047 parameter.
3048 (create_type_unit_group): Update.
3049 (process_psymtab_comp_unit_reader): Update.
3050 (build_type_psymtabs_reader): Update.
3051
e3beb21d
SM
30522020-05-27 Simon Marchi <simon.marchi@efficios.com>
3053
3054 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3055 object through m_this_cu->cu.
3056
d460f660
SM
30572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3058
3059 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3060 the info parameter.
3061 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3062
ab432490
SM
30632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3066 per_objfile parameter.
3067 (load_full_type_unit): Add per_objfile parameter.
3068 (read_signatured_type): Likewise.
3069 (load_full_comp_unit): Likewise.
3070 (load_cu): Likewise.
3071 (dw2_do_instantiate_symtab): Likewise.
3072 (dw2_get_file_names): Likewise.
3073 (dw2_map_symtabs_matching_filename): Update.
3074 (dw_expand_symtabs_matching_file_matcher): Update.
3075 (dw2_map_symbol_filenames): Update.
3076 (process_psymtab_comp_unit): Add per_objfile parameter.
3077 (build_type_psymtabs_1): Update.
3078 (process_skeletonless_type_unit): Update.
3079 (dwarf2_build_psymtabs_hard): Update.
3080 (load_partial_comp_unit): Add per_objfile parameter.
3081 (scan_partial_symbols): Update.
3082 (load_full_comp_unit): Add per_objfile parameter.
3083 (process_imported_unit_die): Update.
3084 (create_cus_hash_table): Update.
3085 (find_partial_die): Update.
3086 (dwarf2_read_addr_index): Update.
3087 (follow_die_offset): Update.
3088 (dwarf2_fetch_die_loc_sect_off): Update.
3089 (dwarf2_fetch_constant_bytes): Update.
3090 (dwarf2_fetch_die_type_sect_off): Update.
3091 (follow_die_sig_1): Update.
3092 (load_full_type_unit): Add per_objfile parameter.
3093 (read_signatured_type): Likewise.
3094
313bad1b
SM
30952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3098 of objfile_name.
3099
c3699833
SM
31002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3101
3102 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3103 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3104 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3105 field.
3106 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3107 (create_cus_from_index): Update.
3108 (dwarf2_read_gdb_index): Update.
3109 (create_cus_from_debug_names): Update.
3110 (dwarf2_read_debug_names): Update.
3111 (get_abbrev_section_for_cu): Update.
3112 (create_all_comp_units): Update.
3113 (read_attribute_value): Update.
3114 (get_debug_line_section): Update.
3115 * dwarf2/index-cache.c (index_cache::store): Update.
3116 * dwarf2/index-write.c (save_gdb_index_command): Update.
3117 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3118
1859c670
SM
31192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3120
3121 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3122 member.
3123 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3124 dwarf2_per_cu_data::per_bfd.
3125 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3126 (create_type_unit_group): Likewise.
3127 (queue_comp_unit): Remove reference to
3128 per_cu->dwarf2_per_objfile.
3129 (maybe_queue_comp_unit): Likewise.
3130 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3131 (create_cus_hash_table): Assign new field.
3132
5e22e966
SM
31332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2/read.c: Replace
3136 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3137 dwarf2_cu->per_objfile throughout.
3138
97a1449a
SM
31392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3142 parameter, don't use per_cu->dwarf2_per_objfile.
3143 (dw2_instantiate_symtab): Likewise.
3144 (dw2_find_last_source_symtab): Update.
3145 (dw2_map_expand_apply): Update.
3146 (dw2_lookup_symbol): Update.
3147 (dw2_expand_symtabs_for_function): Update.
3148 (dw2_expand_all_symtabs): Update.
3149 (dw2_expand_symtabs_with_fullname): Update.
3150 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3151 don't use per_cu->dwarf2_per_objfile.
3152 (dw2_expand_marked_cus): Update.
3153 (dw2_find_pc_sect_compunit_symtab): Update.
3154 (dw2_debug_names_lookup_symbol): Update.
3155 (dw2_debug_names_expand_symtabs_for_function): Update.
3156 (dw2_debug_names_map_matching_symbols): Update.
3157 (dwarf2_psymtab::expand_psymtab): Update.
3158
9e021579
SM
31592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3162 <per_objfile>: New member.
3163 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3164 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3165 call to dwarf2_cu.
3166 (cutu_reader::cutu_reader): Update.
3167 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3168
ae090bdb
SM
31692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3172 struct dwarf2_per_objfile.
3173 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3174 dwarf2_per_bfd.
3175 * dwarf2/read.c (set_die_type): Update.
3176 (get_die_type_at_offset): Update.
3177
af758d11
SM
31782020-05-27 Tom Tromey <tom@tromey.com>
3179 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3182 method.
3183 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3184 get_symtab, set_symtab>: New methods.
3185 <m_symtabs>: New field.
3186 (struct dwarf2_psymtab): Derive from partial_symtab.
3187 <readin_p, get_compunit_symtab>: Declare methods.
3188 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3189 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3190 New methods.
3191 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3192 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3193 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3194 (dw2_symtab_iter_next, dw2_print_stats)
3195 (dw2_expand_symtabs_with_fullname)
3196 (dw2_expand_symtabs_matching_one)
3197 (dw_expand_symtabs_matching_file_matcher)
3198 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3199 (dw2_debug_names_iterator::next)
3200 (dw2_debug_names_map_matching_symbols)
3201 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3202 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3203 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3204 New methods.
3205 (get_compunit_symtab, process_full_comp_unit)
3206 (process_full_type_unit): Update.
3207 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3208
5989a64e
SM
32092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3212 then introduce a new dwarf2_per_objfile type.
3213 <read_line_string>: Move to the new dwarf2_per_objfile type.
3214 <objfile>: Likewise.
3215 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3216 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3217 dwarf2_per_objfile->per_bfd.
3218 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3219 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3220 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3221 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3222 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3223 (dwarf2_per_objfile::locate_sections): Rename to...
3224 (dwarf2_per_bfd::locate_sections): ... this.
3225 (dwarf2_per_objfile::get_cutu): Rename to...
3226 (dwarf2_per_bfd::get_cutu): ... this.
3227 (dwarf2_per_objfile::get_cu): Rename to...
3228 (dwarf2_per_bfd::get_cu): ... this.
3229 (dwarf2_per_objfile::get_tu): Rename to...
3230 (dwarf2_per_bfd::get_tu): ... this.
3231 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3232 (dwarf2_per_bfd::allocate_per_cu): ... this.
3233 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3234 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3235 (get_gdb_index_contents_ftype): Change parameter from
3236 dwarf2_per_objfile to dwarf2_per_bfd.
3237 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3238 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3239
a50264ba
TT
32402020-05-27 Tom Tromey <tom@tromey.com>
3241 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3244 (allocate_piece_closure): Set "per_objfile" member.
3245 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3246 (locexpr_describe_location, loclist_describe_location): Use new
3247 member.
3248 * dwarf2/read.c (read_call_site_scope)
3249 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3250 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3251 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3252 handle_data_member_location): Set per_objfile member.
3253 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3254 member.
3255 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3256
d3473f0c
TT
32572020-05-27 Tom Tromey <tom@tromey.com>
3258
3259 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3260 allocate_signatured_type>: Declare new methods.
3261 <m_num_psymtabs>: New member.
3262 (struct dwarf2_per_cu_data) <index>: New member.
3263 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3264 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3265 (create_cu_from_index_list): Use allocate_per_cu.
3266 (create_signatured_type_table_from_index)
3267 (create_signatured_type_table_from_debug_names)
3268 (create_debug_type_hash_table, add_type_unit)
3269 (read_comp_units_from_section): Use allocate_signatured_type.
3270
5717c425
TT
32712020-05-27 Tom Tromey <tom@tromey.com>
3272
3273 * psymtab.c (partial_map_expand_apply)
3274 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3275 (psym_lookup_global_symbol_language)
3276 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3277 (psym_print_stats, psym_expand_symtabs_for_function)
3278 (psym_map_symbol_filenames, psym_map_matching_symbols)
3279 (psym_expand_symtabs_matching)
3280 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3281 (maintenance_check_psymtabs): Update.
3282 * psympriv.h (struct partial_symtab) <readin_p,
3283 get_compunit_symtab>: Add objfile parameter.
3284 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3285 Likewise.
3286 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3287 get_compunit_symtab>: Likewise.
3288 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3289
45940949
TT
32902020-05-27 Tom Tromey <tom@tromey.com>
3291
3292 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3293 member.
3294 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3295 (create_cu_from_index_list)
3296 (create_signatured_type_table_from_index)
3297 (create_signatured_type_table_from_debug_names)
3298 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3299 (dwarf2_create_include_psymtab)
3300 (create_debug_type_hash_table, add_type_unit)
3301 (create_type_unit_group, read_comp_units_from_section)
3302 (dwarf2_compute_name, create_cus_hash_table)
3303 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3304 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3305 obstack.
3306 (dw2_get_real_path): Likewise. Change argument to
3307 dwarf2_per_objfile.
3308
f8c6d152
LM
33092020-05-27 Luis Machado <luis.machado@linaro.org>
3310
3311 PR tdep/26000
3312 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3313 for ldrd (immediate).
3314
e98d2e6d
PW
33152020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3316
3317 * command.h: Add comment giving the name of class_tui.
3318 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3319 create the fake command for the help for class_tui.
3320
53a47a3e
TT
33212020-05-26 Tom Tromey <tromey@adacore.com>
3322
3323 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3324 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3325 (val_atr): New function.
3326 (value_val_atr): Use it.
3327 * ada-valprint.c (print_optional_low_bound): Change low bound
3328 handling for enums.
3329 (val_print_packed_array_elements): Don't call discrete_position.
3330 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3331 discrete_position for enum types.
3332 * language.c (default_print_array_index): Change type.
3333 * language.h (struct language_defn) <la_print_array_index>: Add
3334 index_type parameter, change type of index_value.
3335 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3336 (default_print_array_index): Update.
3337 * valprint.c (maybe_print_array_index): Don't call
3338 value_from_longest. Update.
3339 (value_print_array_elements): Don't call discrete_position.
3340
0bc2354b
TT
33412020-05-26 Tom Tromey <tromey@adacore.com>
3342
3343 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3344 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3345
1218a4bf
CDA
33462020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3347
3348 PR gdb/13519
3349 * avr-tdep.c (avr_integer_to_address): Return data or code
3350 address accordingly to the second 'type' argument of the
3351 function.
3352
92651b1d
MW
33532020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3354
3355 * infcmd.c, inferior.h: (construct_inferior_arguments):
3356 Moved function from here to gdbsupport/common-inferior.{h,cc}
3357
0a4f5f8c
TT
33582020-05-23 Tom Tromey <tom@tromey.com>
3359
3360 Revert commit eca1f90c:
3361 * NEWS: Remove entry for completion styling.
3362 * completer.c (_rl_completion_prefix_display_length): Move
3363 declaration later.
3364 (gdb_fnprint): Revert.
3365 (gdb_display_match_list_1): Likewise.
3366 * cli/cli-style.c (completion_prefix_style)
3367 (completion_difference_style, completion_suffix_style): Remove.
3368 (_initialize_cli_style): Revert.
3369 * cli/cli-style.h (completion_prefix_style)
3370 (completion_difference_style, completion_suffix_style): Don't
3371 declare.
3372
e08bd6c5
PA
33732020-05-24 Pedro Alves <palves@redhat.com>
3374
3375 * symtab.c (completion_list_add_name): Return boolean indication
3376 of whether the symbol matched.
3377 (completion_list_add_symbol): Don't try to remove C++ aliases if
3378 the symbol didn't match in the first place.
3379 * symtab.h (completion_list_add_name): Return bool.
3380
ceacbf6e
SM
33812020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3382
3383 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3384 type::field.
3385
26f16254
JB
33862020-05-23 Joel Brobecker <brobecker@adacore.com>
3387
3388 GDB 9.2 released.
3389
eca1f90c
TT
33902020-05-23 Tom Tromey <tom@tromey.com>
3391
3392 * NEWS: Add entry for completion styling.
3393 * completer.c (_rl_completion_prefix_display_length): Move
3394 declaration earlier.
3395 (gdb_fnprint): Use completion_style.
3396 (gdb_display_match_list_1): Likewise.
3397 * cli/cli-style.c (completion_prefix_style)
3398 (completion_difference_style, completion_suffix_style): New
3399 globals.
3400 (_initialize_cli_style): Register new globals.
3401 * cli/cli-style.h (completion_prefix_style)
3402 (completion_difference_style, completion_suffix_style): Declare.
3403
51e2cfa2
PA
34042020-05-23 Pedro Alves <palves@redhat.com>
3405
3406 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3407 (parse_escape): Use ISDIGIT instead of isdigit.
3408 (puts_debug): Use gdb_isprint instead of isprint.
3409 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3410 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3411 ISSPACE instead of isspace.
3412 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3413 instead of isspace.
3414 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3415 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3416 instead of isxdigit and ISDIGIT instead of isdigit.
3417
80fc5e77
SM
34182020-05-22 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * gdbtypes.h (struct type) <field>: New method.
3421 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3422 or type::field.
3423
3cabb6b0
SM
34242020-05-22 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3427 (TYPE_FIELDS): Use type::fields. Change all call sites that
3428 modify the propery to use type::set_fields instead.
3429
1f704f76
SM
34302020-05-22 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3433 type::num_fields instead.
3434
5e33d5f4
SM
34352020-05-22 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3438 methods.
3439 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3440 that modify the number of fields to use type::set_num_fields
3441 instead.
3442
9392ebb3
TT
34432020-05-22 Tom Tromey <tromey@adacore.com>
3444
3445 * compile/compile-object-load.h (munmap_list_free): Don't
3446 declare.
3447
7c13f4e8
AB
34482020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * annotate.c (annotate_source_line): Update return type, add call
3451 to update current symtab and line.
3452 * annotate.h (annotate_source_line): Update return type, and
3453 extend header comment.
3454 * source.c (info_line_command): Check annotation_level before
3455 calling annotate_source_line.
3456 * stack.c (print_frame_info): If calling annotate_source_line
3457 returns true, then don't print any other source line information.
3458
aa370940
SM
34592020-05-21 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3462
84d53fa9
SM
34632020-05-21 Simon Marchi <simon.marchi@efficios.com>
3464
3465 * coffread.c (patch_type): Remove NULL check before xfree.
3466 * corefile.c (set_gnutarget): Likewise.
3467 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3468 * exec.c (build_section_table): Likewise.
3469 * remote.c (remote_target::pass_signals): Likewise.
3470 * utils.c (n_spaces): Likewise.
3471 * cli/cli-script.c (document_command): Likewise.
3472 * i386-windows-tdep.c (core_process_module_section): Likewise.
3473 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3474
9d428aae
SM
34752020-05-20 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * symfile.c (reread_symbols): Clear objfile's section_offsets
3478 vector and section indices, re-compute them by calling
3479 sym_offsets.
3480
250106a7
TT
34812020-05-20 Tom Tromey <tromey@adacore.com>
3482
3483 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3484 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3485
9a0bacfb
TV
34862020-05-20 Tom de Vries <tdevries@suse.de>
3487
3488 PR symtab/25833
3489 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3490
7b958a48
AM
34912020-05-20 Alan Modra <amodra@gmail.com>
3492
3493 PR 25993
3494 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3495 bfd_set_filename.
3496 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3497 passed to bfd_set_filename.
3498 * symfile-mem.c (add_vsyscall_page): Likewise for string
3499 passed to symbol_file_add_from_memory.
3500 (symbol_file_add_from_memory): Make name param a const char* and
3501 don't strdup.
3502
c7e97679
AM
35032020-05-20 Alan Modra <amodra@gmail.com>
3504
3505 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3506 rather than accessing bfd->filename directly.
3507 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3508 and use bfd_section_name.
3509 * dwarf2/frame.c (decode_frame_entry): Likewise.
3510 * exec.c (exec_set_section_address): Likewise.
3511 * solib-aix.c (solib_aix_bfd_open): Likewise.
3512 * stap-probe.c (get_stap_base_address): Likewise.
3513 * symfile.c (reread_symbols): Likewise.
3514
563c591b
TT
35152020-05-19 Tom Tromey <tromey@adacore.com>
3516
3517 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3518
f408d82c
SM
35192020-05-19 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3522
98c59b52
PA
35232020-05-19 Pedro Alves <palves@redhat.com>
3524
3525 * NEWS (set exec-file-mismatch): Adjust entry.
3526 * exec.c: Include "build-id.h".
3527 (validate_exec_file): Try to match build IDs instead of filenames.
3528 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3529 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3530 and pass down 'warn_if_slow'.
3531 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3532 gdb_bfd_open_closure to pass it down.
3533 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3534
4111f652
PA
35352020-05-19 Pedro Alves <palves@redhat.com>
3536
3537 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3538 * target.c (target_fileio_open_1): Rename to target_fileio_open
3539 and make extern. Use bool.
3540 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3541 (target_fileio_read_alloc_1): Adjust.
3542 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3543 (target_fileio_open_warn_if_slow): Delete declaration.
3544
ad80db5b
PA
35452020-05-19 Pedro Alves <palves@redhat.com>
3546
3547 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3548 Adjust all callers.
3549
1d6ce4d3
YS
35502020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3551
3552 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3553 whether disp is negative.
3554
9005fbbb
SM
35552020-05-19 Simon Marchi <simon.marchi@efficios.com>
3556
3557 * symfile.h (struct symfile_segment_data)
3558 <~symfile_segment_data>: Remove.
3559 <segment_info>: Change to std::vector.
3560 * symfile.c (default_symfile_segments): Update.
3561 * elfread.c (elf_symfile_segments): Update.
3562
68b888ff
SM
35632020-05-19 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3566 <segments>: New.
3567 <segment_bases, segment_sizes>: Remove.
3568 * symfile.c (default_symfile_segments): Update.
3569 * elfread.c (elf_symfile_segments): Update.
3570 * remote.c (remote_target::get_offsets): Update.
3571 * solib-target.c (solib_target_relocate_section_addresses):
3572 Update.
3573
62982abd
SM
35742020-05-19 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * symfile.h (struct symfile_segment_data): Initialize fields.
3577 <~symfile_segment_data>: Add.
3578 (symfile_segment_data_up): New.
3579 (struct sym_fns) <sym_segments>: Return a
3580 symfile_segment_data_up.
3581 (default_symfile_segments): Return a symfile_segment_data_up.
3582 (free_symfile_segment_data): Remove.
3583 (get_symfile_segment_data): Return a symfile_segment_data_up.
3584 * symfile.c (default_symfile_segments): Likewise.
3585 (get_symfile_segment_data): Likewise.
3586 (free_symfile_segment_data): Remove.
3587 (symfile_find_segment_sections): Update.
3588 * elfread.c (elf_symfile_segments): Return a
3589 symfile_segment_data_up.
3590 * remote.c (remote_target::get_offsets): Update.
3591 * solib-target.c (solib_target_relocate_section_addresses):
3592 Update.
3593 * symfile-debug.c (debug_sym_segments): Return a
3594 symfile_segment_data_up.
3595
7f204339
RO
35962020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3597
e52a0f1b
RO
3598 PR build/25981
3599 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3600 Hardcode register numbers.
3601
7f204339
RO
3602 PR build/25981
3603 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3604 procfs_find_LDT_entry): Remove.
3605 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3606 procfs_find_LDT_entry): Remove.
3607 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3608 Remove.
3609
7f32a4d5
PA
36102020-05-17 Pedro Alves <palves@redhat.com>
3611 Andrew Burgess <andrew.burgess@embecosm.com>
3612 Keno Fischer <keno@juliacomputing.com>
3613
3614 PR gdb/25741
3615 * breakpoint.c (build_target_condition_list): Update comments.
3616 (build_target_command_list): Update comments and skip matching
3617 locations.
3618 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3619 a separate function. Simplify "set breakpoint auto-hw off"
3620 handling.
3621 (insert_breakpoints): Update comment.
3622 (tracepoint_locations_match): New parameter. For breakpoints,
3623 compare location types too, if the caller wants to.
3624 (handle_automatic_hardware_breakpoints): New functions.
3625 (bp_location_is_less_than): Also sort by location type and
3626 hardware breakpoint length.
3627 (update_global_location_list): Handle "set breakpoint auto-hw on"
3628 here.
3629 (update_breakpoint_locations): Ask breakpoint_locations_match to
3630 ignore location types.
3631
7d93a1e0
SM
36322020-05-16 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3635 type::name instead.
3636
d0e39ea2
SM
36372020-05-16 Simon Marchi <simon.marchi@efficios.com>
3638
3639 * gdbtypes.h (struct type) <name, set_name>: New methods.
3640 (TYPE_CODE): Use type::name. Change all call sites used to set
3641 the name to use type::set_name instead.
3642
2dab0c7b
TT
36432020-05-16 Tom Tromey <tom@tromey.com>
3644
3645 * top.c (quit_force): Update.
3646 * infrun.c (handle_no_resumed): Update.
3647 * top.h (all_uis): New function.
3648 (ALL_UIS): Remove.
3649
59f7bd8d
SM
36502020-05-16 Simon Marchi <simon.marchi@efficios.com>
3651
3652 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3653
9bf058f0
PA
36542020-05-16 Pedro Alves <palves@redhat.com>
3655
3656 * ia64-linux-nat.c
3657 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3658 Declare method.
3659 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3660
8f86ae1a
SM
36612020-05-15 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3664 (sparc64_adi_info): Likewise.
3665
d6bc0792
TT
36662020-05-15 Tom Tromey <tom@tromey.com>
3667
3668 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3669 block_objfile.
3670 (lookup_objfile_from_block): Remove.
3671 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3672 (lookup_global_symbol): Use block_objfile.
3673 * symtab.h (lookup_objfile_from_block): Don't declare.
3674 * printcmd.c (clear_dangling_display_expressions): Use
3675 block_objfile.
3676 * parse.c (operator_check_standard): Use block_objfile.
3677
8c14c3a3
TT
36782020-05-15 Tom Tromey <tom@tromey.com>
3679
3680 * language.c (language_alloc_type_symbol): Set
3681 SYMBOL_SECTION.
3682 * symtab.c (initialize_objfile_symbol): Remove.
3683 (allocate_symbol): Remove.
3684 (allocate_template_symbol): Remove.
3685 * dwarf2/read.c (fixup_go_packaging): Use "new".
3686 (new_symbol): Use "new".
3687 (read_variable): Don't call initialize_objfile_symbol. Use
3688 "new".
3689 (read_func_scope): Use "new".
3690 * xcoffread.c (process_xcoff_symbol): Don't call
3691 initialize_objfile_symbol.
3692 (SYMBOL_DUP): Remove.
3693 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3694 "new".
3695 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3696 (allocate_template_symbol): Don't declare.
3697 (struct symbol): Add copy constructor. Change defaults.
3698 * jit.c (finalize_symtab): Use "new".
3699 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3700 Use "new".
3701 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3702 (common_block_end): Use "new".
3703 * mdebugread.c (parse_symbol): Use "new".
3704 (new_symbol): Likewise.
3705
5b4a1a8d
PW
37062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3707
3708 * NEWS: Mention changes to help and apropos.
3709
57b4f16e
PW
37102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3711
3712 * command.h (enum command_class): Improve comments, document
3713 that class_alias is for user-defined aliases, give the class
3714 name for each class, remove unused class_xdb.
3715 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3716 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3717 by a precise class.
3718 * infcmd.c (_initialize_infcmd): Likewise.
3719 * reverse.c (_initialize_reverse): Likewise.
3720 * stack.c (_initialize_stack): Likewise.
3721 * symfile.c (_initialize_symfile): Likewise.
3722 * tracepoint.c (_initialize_tracepoint): Likewise.
3723
7c05caf7
PW
37242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3725
3726 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3727 when their aliased command is traversed.
3728 (help_cmd): Add fput_command_names_styled call to
3729 output command name and aliases when command has an alias.
3730
3b3aaacb
PW
37312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3732
3733 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3734 * cli/cli-decode.c (help_cmd_list): Declare as static,
3735 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3736 a command together with the command.
3737 (fput_command_name_styled, fput_command_names_styled): New functions.
3738 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3739 fput_command_name_styled.
3740 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3741 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3742
7aa1b46f
PW
37432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3744
3745 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3746 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3747 * command.h (cmd_show_list): Likewise.
3748 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3749 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3750
89bcba74
PW
37512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3752
3753 * unittests/command-def-selftests.c (traverse_command_structure):
3754 Verify all commands of a list have the same prefix command and
3755 that only the top cmdlist commands have a null prefix.
3756
3f4d92eb
PW
37572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3758
3759 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3760 as prefix, not one of its aliases.
3761 (set_cmd_prefix): Remove.
3762 (do_add_cmd): Centralize the setting of the prefix of a command, when
3763 command is defined after its full chain of prefix commands.
3764 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3765 (add_setshow_cmd_full): Likewise.
3766 (update_prefix_field_of_prefixed_commands): New function.
3767 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3768 update_prefix_field_of_prefixed_commands.
3769 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3770 addresses of remote_set_cmdlist and remote_show_cmdlist given
3771 as argument, not the address of an argument.
3772 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3773 * gdb/remote.c (_initialize_remote): Likewise.
3774
0605465f
PW
37752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3776
3777 * cli/cli-cmds.c (alias_command): Check for an existing alias
3778 using lookup_cmd_composition, as valid_command_p is too strict
3779 and forbids aliases that are the prefix of an existing alias
3780 or command.
3781 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3782 command is properly recognised as a valid command.
3783
58e6ac70
PW
37842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3785
3786 * unittests/help-doc-selftests.c: Rename to
3787 unittests/command-def-selftests.c
3788 * unittests/command-def-selftests.c (help_doc_tests): Update some
3789 comments.
3790 (command_structure_tests, traverse_command_structure): New namespace
3791 and function.
3792 (command_structure_invariants_tests): New function.
3793 (_initialize_command_def_selftests) Renamed from
3794 _initialize_help_doc_selftests, register command_structure_invariants
3795 selftest.
3796
a7b9ceb8
PW
37972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3798
3799 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3800 an alias of 'show'.
3801
b2188a06
JB
38022020-05-15 Joel Brobecker <brobecker@adacore.com>
3803
3804 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3805 ada_is_fixed_point_type. Update all callers.
3806 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3807 all callers.
3808 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3809 Update all callers.
3810 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3811 print_fixed_point_type. Update all callers.
3812 * ada-valprint.c (ada_value_print_num): Replace call to
3813 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3814
a51951c2
KB
38152020-05-14 Kevin Buettner <kevinb@redhat.com>
3816
3817 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3818 processors.
3819 (cpu_supports_bts): Add CV_AMD case.
3820
29d6859f
LM
38212020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3822 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * infrun.c (stop_all_threads): Collect multiple wait events at
3825 each pass.
3826
78134374
SM
38272020-05-14 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3830 type::code instead.
3831
67607e24
SM
38322020-05-14 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbtypes.h (struct type) <code, set_code>: New methods.
3835 (TYPE_CODE): Use type::code. Change all call sites used to set
3836 the code to use type::set_code instead.
3837
a05575d3
TBA
38382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839 Tom de Vries <tdevries@suse.de>
3840 Pedro Alves <palves@redhat.com>
3841
3842 PR threads/25478
3843 * infrun.c (stop_all_threads): Do NOT ignore
3844 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3845 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3846 received.
3847 (handle_no_resumed): Remove code handling a live inferior with no
3848 threads.
3849 * remote.c (has_single_non_exited_thread): New.
3850 (remote_target::update_thread_list): Do not delete a thread if is
3851 the last thread of the process.
3852 * thread.c (thread_select): Call delete_exited_threads instead of
3853 prune_threads.
3854
6ad82919
TBA
38552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3856
3857 * infrun.c (stop_all_threads): Enable/disable thread events of all
3858 targets. Move a debug message denoting the end of the function
3859 into the SCOPED_EXIT block.
3860
d890404b
TBA
38612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3862
3863 * process-stratum-target.h: Include <set>.
3864 (all_non_exited_process_targets, switch_to_target_no_thread): New
3865 function declarations.
3866 * process-stratum-target.c (all_non_exited_process_targets)
3867 (switch_to_target_no_thread): New function implementations.
3868
293b3ebc
TBA
38692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3870
3871 * infrun.c (handle_inferior_event): Extract out a piece of code
3872 into...
3873 (mark_non_executing_threads): ...this new function.
3874
7ca9b62a
TBA
38752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3876
3877 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3878 use.
3879
fc75c28b
TBA
38802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3881
3882 * regcache.c (regcache_read_pc_protected): New function
3883 implementation that returns 0 if the PC cannot read via
3884 'regcache_read_pc'.
3885 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3886 instead of 'regcache_read_pc'.
3887 (keep_going_pass_signal): Ditto.
3888
a89febbd
TT
38892020-05-13 Tom Tromey <tromey@adacore.com>
3890
3891 * ada-lang.c (align_value): Remove.
3892 (ada_template_to_fixed_record_type_1): Use align_up.
3893
f7e23710
TBA
38942020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3895
3896 * async-event.c: Update the copyright year.
3897 * async-event.h: Update the copyright year.
3898
02ff80c2
SM
38992020-05-12 Simon Marchi <simon.marchi@efficios.com>
3900
3901 * objfiles.h (is_addr_in_objfile,
3902 shared_objfile_contains_address_p): Return bool.
3903 * objfile.c (is_addr_in_objfile,
3904 shared_objfile_contains_address_p): Return bool.
3905
4fd6c7e8
TT
39062020-05-11 Tom Tromey <tromey@adacore.com>
3907
3908 * cli/cli-cmds.c (info_command): Restore.
3909 (_initialize_cli_cmds): Use add_prefix_command for "info".
3910 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3911
5eb68a39
TT
39122020-05-11 Tom Tromey <tromey@adacore.com>
3913
3914 * ada-lang.c (ada_value_primitive_field): Now public.
3915 * ada-lang.h (ada_value_primitive_field): Declare.
3916 * ada-valprint.c (print_field_values): Use
3917 ada_value_primitive_field for wrapper fields.
3918
7666722f
TV
39192020-05-11 Tom de Vries <tdevries@suse.de>
3920
3921 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3922 MODULE_DOMAIN.
3923
3ee6bb11
TV
39242020-05-11 Tom de Vries <tdevries@suse.de>
3925
3926 PR symtab/25941
3927 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3928 with length 0, if not gdb-produced.
3929 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3930
43434996
TV
39312020-05-09 Tom de Vries <tdevries@suse.de>
3932
3933 PR gdb/25955
3934 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3935 calculation.
3936
2f78cffc
TT
39372020-05-09 Tom Tromey <tom@tromey.com>
3938
3939 * top.c (server_command): Now bool.
3940 * top.h (server_command): Now bool.
3941
4f7bc5ed
TT
39422020-05-08 Tom Tromey <tromey@adacore.com>
3943
3944 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3945 already being processed.
3946
8be4b118
TT
39472020-05-08 Tom Tromey <tom@tromey.com>
3948
3949 * printcmd.c (struct display) <next>: Remove.
3950 <display>: New constructor.
3951 <exp_string>: Now a std::string.
3952 <enabled_p>: Now a bool.
3953 (display_number): Move definition earlier.
3954 (displays): Rename from display_chain. Now a std::vector.
3955 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3956 (display_command): Update.
3957 (do_one_display, disable_display)
3958 (enable_disable_display_command, do_enable_disable_display):
3959 Update.
3960 (free_display): Remove.
3961 (clear_displays): Rewrite.
3962 (delete_display): Update.
3963 (map_display_numbers): Use function_view. Remove "data"
3964 parameter. Update.
3965 (do_delete_display): Remove.
3966 (undisplay_command): Update.
3967 (do_one_display, do_displays, disable_display)
3968 (info_display_command): Update.
3969 (do_enable_disable_display): Remove.
3970 (enable_disable_display_command)
3971 (clear_dangling_display_expressions): Update.
3972
94c93c35
TT
39732020-05-08 Tom Tromey <tom@tromey.com>
3974
3975 * symtab.c (set_symbol_cache_size)
3976 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3977 (maintenance_print_symbol_cache_statistics): Update.
3978 * symmisc.c (print_symbol_bcache_statistics)
3979 (print_objfile_statistics, maintenance_print_objfiles)
3980 (maintenance_info_symtabs, maintenance_check_symtabs)
3981 (maintenance_expand_symtabs, maintenance_info_line_tables):
3982 Update.
3983 * symfile-debug.c (set_debug_symfile): Update.
3984 * source.c (forget_cached_source_info): Update.
3985 * python/python.c (gdbpy_progspaces): Update.
3986 * psymtab.c (maintenance_info_psymtabs): Update.
3987 * probe.c (parse_probes): Update.
3988 * linespec.c (iterate_over_all_matching_symtabs)
3989 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3990 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3991 * exec.c (exec_target::close): Update.
3992 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3993 * breakpoint.c (print_one_breakpoint_location)
3994 (create_longjmp_master_breakpoint)
3995 (create_std_terminate_master_breakpoint): Update.
3996 * progspace.c (program_spaces): Now a std::vector.
3997 (maybe_new_address_space): Update.
3998 (add_program_space): Remove.
3999 (program_space::program_space): Update.
4000 (remove_program_space): Update.
4001 (number_of_program_spaces): Remove.
4002 (print_program_space, update_address_spaces): Update.
4003 * progspace.h (program_spaces): Change type.
4004 (ALL_PSPACES): Remove.
4005 (number_of_program_spaces): Don't declare.
4006 (struct program_space) <next>: Remove.
4007
a1fd1ac9
TT
40082020-05-08 Tom Tromey <tom@tromey.com>
4009
4010 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4011 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4012 (enable_break): Update.
4013 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4014 (frv_fdpic_find_canonical_descriptor): Update.
4015 (frv_fetch_objfile_link_map): Update.
4016 * progspace.c (program_space::free_all_objfiles): Update.
4017 (program_space::solibs): New method.
4018 * progspace.h (struct program_space) <solibs>: New method.
4019 * solist.h (master_so_list): Don't declare.
4020 (ALL_SO_LIBS): Remove.
4021 * solib.h (so_list_head): Remove.
4022 (update_solib_list): Update comment.
4023 * solib.c (master_so_list): Remove.
4024 (solib_used, update_solib_list, solib_add)
4025 (info_sharedlibrary_command, clear_solib)
4026 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4027
38eae084
TT
40282020-05-08 Tom Tromey <tom@tromey.com>
4029
4030 * extension.c (extension_languages): Now a std::array.
4031 (ALL_EXTENSION_LANGUAGES): Remove.
4032 (get_ext_lang_defn, get_ext_lang_of_file)
4033 (eval_ext_lang_from_control_command): Update.
4034 (finish_ext_lang_initialization)
4035 (auto_load_ext_lang_scripts_for_objfile)
4036 (ext_lang_type_printers::ext_lang_type_printers)
4037 (apply_ext_lang_type_printers)
4038 (ext_lang_type_printers::~ext_lang_type_printers)
4039 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4040 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4041 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4042 (get_matching_xmethod_workers, ext_lang_colorize)
4043 (ext_lang_before_prompt): Update.
4044 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4045
596dc4ad
TT
40462020-05-08 Tom Tromey <tom@tromey.com>
4047
4048 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4049 overload.
4050 <swap_string, m_string>: Remove.
4051 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4052 Update.
4053 * stabsread.c (define_symbol, read_type): Update.
4054 * linespec.c (find_linespec_symbols): Update.
4055 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4056 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4057 * dbxread.c (read_dbx_symtab): Update.
4058 * cp-support.h (cp_canonicalize_string_full)
4059 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4060 Return unique_xmalloc_ptr.
4061 * cp-support.c (inspect_type): Update.
4062 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4063 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4064 Likewise.
4065 * c-typeprint.c (print_name_maybe_canonical): Update.
4066 * break-catch-throw.c (check_status_exception_catchpoint):
4067 Update.
4068
bf4cb9be
TV
40692020-05-08 Tom de Vries <tdevries@suse.de>
4070
4071 * infrun.c (follow_fork): Copy current_line and current_symtab to
4072 child thread.
4073
a1b68f28
SM
40742020-05-07 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * async-event.c (struct async_signal_handler, struct
4077 async_event_handler): Reformat, remove typedef.
4078
98d48915
SM
40792020-05-07 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4082 access thistype->main_type->dyn_prop_list directly.
4083
7aa91313
SM
40842020-05-07 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4087 (remove_dyn_prop): Remove. Update all users to use
4088 type::remove_dyn_prop.
4089 * gdbtypes.c (remove_dyn_prop): Rename to...
4090 (type::remove_dyn_prop): ... this.
4091
5c54719c
SM
40922020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4093
4094 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4095 (add_dyn_prop): Remove. Update all users to use
4096 type::add_dyn_prop.
4097 * gdbtypes.c (add_dyn_prop): Rename to...
4098 (type::add_dyn_prop): ... this.
4099
24e99c6c
SM
41002020-05-07 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4103 (get_dyn_prop): Remove. Update all users to use
4104 type::dyn_prop.
4105 * gdbtypes.c (get_dyn_prop): Rename to...
4106 (type::dyn_prop): ... this.
4107
0d4bf016
SM
41082020-05-06 Simon Marchi <simon.marchi@efficios.com>
4109
4110 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4111
ac4a4f1c
SM
41122020-05-06 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4115 instruction, skip it if it's there.
4116
a3bbacc1
SM
41172020-05-05 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4120
c3236f84
SM
41212020-05-04 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4124 * gdbtypes.c (recursive_dump_type): Remove use of
4125 TYPE_INCOMPLETE.
4126
3b6acaee
TT
41272020-05-03 Tom Tromey <tom@tromey.com>
4128
4129 * breakpoint.c (catch_command, tcatch_command): Remove.
4130 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4131 add_show_prefix_cmd.
4132 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4133 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4134 Remove.
4135 (add_internal_problem_command): Use add_basic_prefix_cmd,
4136 add_show_prefix_cmd.
4137 * mips-tdep.c (set_mipsfpu_command): Remove.
4138 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4139 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4140 (_initialize_index_cache): Use add_basic_prefix_cmd.
4141 * memattr.c (dummy_cmd): Remove.
4142 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4143 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4144 (_initialize_tui_win): Use add_basic_prefix_cmd,
4145 add_show_prefix_cmd.
4146 * cli/cli-logging.c (set_logging_command): Remove.
4147 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4148 add_show_prefix_cmd.
4149 (show_logging_command): Remove.
4150 * target.c (target_command): Remove.
4151 (add_target): Use add_basic_prefix_cmd.
4152
a51119cd
HD
41532020-05-02 Hannes Domani <ssbssa@yahoo.de>
4154
4155 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4156
652fc23a 41572020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4158
652fc23a
PW
4159 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4160 info_command.
4161
117539e6
KR
41622020-04-30 Kamil Rytarowski <n54@gmx.com>
4163
4164 * nbsd-nat.c (nbsd_enable_proc_events)
4165 (nbsd_nat_target::post_startup_inferior): Add.
4166 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4167 (nbsd_nat_target::update_thread_list): Rewrite.
4168 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4169 "PTRACE_LWP_CREATE".
4170 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4171
102e38eb 41722020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4173
102e38eb
PW
4174 * stack.c (_initialize_stack): Remove duplicated creation
4175 of "frame" command and "f" alias.
4176
ee9d1e5f
HD
41772020-04-30 Hannes Domani <ssbssa@yahoo.de>
4178
4179 PR gdb/18706
4180 * gdbtypes.c (check_typedef): Calculate size of array of
4181 stubbed type.
4182
627c7fb8
HD
41832020-04-30 Hannes Domani <ssbssa@yahoo.de>
4184
4185 PR gdb/15559
4186 * i386-tdep.c (i386_push_dummy_call): Call
4187 i386_thiscall_push_dummy_call.
4188 (i386_thiscall_push_dummy_call): New function.
4189 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4190 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4191 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4192
ffc2844e
SM
41932020-04-29 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * gdbarch.sh (do_read): Add shellcheck disable directive for
4196 warning SC2162.
4197
1207375d
SM
41982020-04-29 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4201 "referenced but not assigned" warning.
4202
9fdb2916
SM
42032020-04-29 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * gdbarch.sh: Remove code that sets fallbackdefault.
4206
759cea5e
SM
42072020-04-29 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * gdbarch.sh: Use shell operators && and || instead of
4210 -a and -o.
4211
cb02ab24
SM
42122020-04-29 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbarch.sh: Use $(...) instead of `...`.
4215
a6fc5ffc
SM
42162020-04-29 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * gdbarch.sh: Use double quotes around variables.
4219
8d113d13
SM
42202020-04-29 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * gdbarch.sh: Use %s with printf, instead of variables in the
4223 format string.
4224
ed6acedd
TT
42252020-04-29 Tom Tromey <tromey@adacore.com>
4226
4227 PR ada/25875:
4228 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4229 type fields here.
4230 (read_enumeration_type): Call
4231 update_enumeration_type_from_children later. Update comments.
4232 (process_enumeration_scope): Don't create type fields.
4233
b68b1b58
KR
42342020-04-29 Kamil Rytarowski <n54@gmx.com>
4235
4236 * nbsd-tdep.c: Include "xml-syscall.h".
4237 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4238
f94b2e03
KR
42392020-04-29 Kamil Rytarowski <n54@gmx.com>
4240
4241 * nbsd-nat.c: Include "sys/wait.h".
4242 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4243 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4244 (nbsd_nat_target::remove_exec_catchpoint)
4245 (nbsd_nat_target::set_syscall_catchpoint): Add.
4246 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4247 (nbsd_nat_target::insert_exec_catchpoint)
4248 (nbsd_nat_target::remove_exec_catchpoint)
4249 (nbsd_nat_target::set_syscall_catchpoint): Add.
4250 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4251 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4252 `nbsd_get_syscall_number'.
4253
fc49bc72
TT
42542020-04-29 Tom Tromey <tom@tromey.com>
4255
4256 * stack.c (print_block_frame_labels): Remove.
4257
d642b692
HD
42582020-04-29 Hannes Domani <ssbssa@yahoo.de>
4259
4260 PR gdb/17320
4261 * ada-valprint.c (val_print_packed_array_elements): Move array
4262 end bracket to new line.
4263 (ada_val_print_string): Remove extra spaces before first array
4264 element.
4265 * c-valprint.c (c_value_print_array): Likewise.
4266 * m2-valprint.c (m2_print_array_contents): Likewise.
4267 (m2_value_print_inner): Likewise.
4268 * p-valprint.c (pascal_value_print_inner): Likewise.
4269 * valprint.c (generic_val_print_array): Likewise.
4270 (value_print_array_elements): Move first array element and array
4271 end bracket to new line.
4272
ea90f227
TV
42732020-04-29 Tom de Vries <tdevries@suse.de>
4274
4275 PR symtab/25889
4276 * linespec.c (find_method): Fix ix calculation.
4277
4498ef4f
KR
42782020-04-28 Kamil Rytarowski <n54@gmx.com>
4279
4280 * syscalls/update-netbsd.sh: New file.
4281 * syscalls/netbsd.xml: Regenerate.
4282 * data-directory/Makefile.in: Register `netbsd.xml' in
4283 `SYSCALLS_FILES'.
4284
a55e30b5
SM
42852020-04-28 Simon Marchi <simon.marchi@efficios.com>
4286
4287 * syscalls/update-freebsd.sh: Add double quotes.
4288
2b2fbab8
TT
42892020-04-28 Tom Tromey <tom@tromey.com>
4290
4291 * NEWS: Update.
4292 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4293 (cmdpy_init): Allow class_tui.
4294
a65189c9
TV
42952020-04-28 Mark Williams <mark@myosotissp.com>
4296
4297 PR gdb/24480
4298 * dwarf2read.c: Add missing assingments to list_in_scope when
4299 start_symtab was already called.
4300
1b95cdb7
SM
43012020-04-28 Simon Marchi <simon.marchi@efficios.com>
4302
4303 PR gdb/25881
4304 * dwarf2/read.c (offset_map_type): Use
4305 gdb:hash_enum<sect_offset> as hash function.
4306
15cd93d0
TV
43072020-04-28 Tom de Vries <tdevries@suse.de>
4308
4309 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4310 with DW_AT_signature.
4311
1eb39914
SM
43122020-04-27 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * configure.ac: Remove check for fs_base/gs_base in
4315 user_regs_struct.
4316 * configure: Re-generate.
4317 * config.in: Re-generate.
4318 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4319 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4320 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4321
991a3e2e
LM
43222020-04-27 Luis Machado <luis.machado@linaro.org>
4323
4324 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4325 problematic inline frame unwinding situation.
4326 * frame.c (frame_id_computed_p): New function.
4327 * frame.h (frame_id_computed_p): New prototype.
4328
361ba0e8
TT
43292020-04-26 Tom Tromey <tom@tromey.com>
4330
4331 * command.h (enum command_class) <class_pseudo>: Remove.
4332
bc3609fd
PW
43332020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4334
4335 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4336 and whitespace.
4337
b9771db7
KR
43382020-04-25 Kamil Rytarowski <n54@gmx.com>
4339
ec16513e
SM
4340 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4341 `PT_GET_PROCESS_STATE' block.
b9771db7 4342
7151c1af
TT
43432020-04-24 Tom Tromey <tom@tromey.com>
4344
4345 * symtab.h (symbol_get_demangled_name): Don't declare.
4346 * symtab.c (symbol_get_demangled_name): Remove.
4347 (general_symbol_info::natural_name)
4348 (general_symbol_info::demangled_name): Update.
4349
906bb4c5
TT
43502020-04-24 Tom Tromey <tom@tromey.com>
4351
4352 PR rust/25025:
4353 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4354
bcfe6157
TT
43552020-04-24 Tom Tromey <tom@tromey.com>
4356
4357 PR symtab/12707:
4358 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4359 exists.
4360 (new_symbol): Likewise.
4361 * compile/compile-object-load.c (get_out_value_type): Use
4362 symbol_matches_search_name.
4363
f049a313
TT
43642020-04-24 Tom Tromey <tom@tromey.com>
4365
4366 * dwarf2/read.c (add_partial_symbol): Do not call
4367 compute_and_set_names.
4368
76e288d1
TT
43692020-04-24 Tom Tromey <tom@tromey.com>
4370
4371 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4372 overload.
4373
2467f4f6
TT
43742020-04-24 Tom Tromey <tom@tromey.com>
4375
4376 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4377 (add_psymbol_to_list): New overload. Make old overload call new
4378 one.
4379 * psympriv.h (add_psymbol_to_list): New overload.
4380
e61108c9
TT
43812020-04-24 Tom Tromey <tom@tromey.com>
4382
4383 * dwarf2/read.c (partial_die_info::read) <case
4384 DW_AT_linkage_name>: Use value_as_string.
4385 (dwarf2_string_attr): Use value_as_string.
4386 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4387 method.
4388 * dwarf2/attribute.c (attribute::value_as_string): New method.
4389
8c87a452
TT
43902020-04-24 Tom Tromey <tom@tromey.com>
4391
4392 * symtab.c (general_symbol_info::natural_name)
4393 (general_symbol_info::demangled_name): Check for language_rust.
4394
787de330
TT
43952020-04-24 Tom Tromey <tom@tromey.com>
4396
4397 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4398 (dwarf2_physname): ... from here.
4399 (partial_die_info::read): Add Rust "{" hack.
4400
ff985671
TT
44012020-04-24 Tom Tromey <tom@tromey.com>
4402
4403 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4404 method.
4405 (symbol_set_demangled_name): Don't declare.
4406 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4407 symbol_set_demangled_name.
4408 (general_symbol_info::set_language)
4409 (general_symbol_info::compute_and_set_names): Update.
4410 * minsyms.c (minimal_symbol_reader::install): Update.
4411 * dwarf2/read.c (new_symbol): Update.
4412
1acda803
TT
44132020-04-24 Tom Tromey <tromey@adacore.com>
4414
4415 PR python/23662:
4416 * python/py-type.c (convert_field): Handle
4417 FIELD_LOC_KIND_DWARF_BLOCK.
4418 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4419 (typy_get_dynamic): Nw function.
4420 (type_object_getset): Add "dynamic".
4421 * NEWS: Add entry.
4422
d656f129
TT
44232020-04-24 Tom Tromey <tromey@adacore.com>
4424
4425 * ada-typeprint.c (print_choices, print_variant_part)
4426 (print_record_field_types_dynamic): New functions.
4427 (print_record_field_types): Use print_record_field_types_dynamic.
4428
7d79de9a
TT
44292020-04-24 Tom Tromey <tromey@adacore.com>
4430
4431 * dwarf2/read.c (handle_data_member_location): New overload.
4432 (dwarf2_add_field): Use it.
4433 (decode_locdesc): Add "computed" parameter. Update comment.
4434 * gdbtypes.c (is_dynamic_type_internal): Also look for
4435 FIELD_LOC_KIND_DWARF_BLOCK.
4436 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4437 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4438 virtual base classes.
4439 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4440 FIELD_LOC_KIND_DWARF_BLOCK.
4441
f8e89861
TT
44422020-04-24 Tom Tromey <tromey@adacore.com>
4443
4444 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4445 * gdbtypes.c (is_dynamic_type_internal): Check
4446 TYPE_HAS_DYNAMIC_LENGTH.
4447 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4448 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4449 New macros.
4450 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4451 constant.
4452
9c6a1327
TT
44532020-04-24 Tom Tromey <tromey@adacore.com>
4454
4455 * dwarf2/read.c (struct variant_field): Rewrite.
4456 (struct variant_part_builder): New.
4457 (struct nextfield): Remove "variant" field. Add "offset".
4458 (struct field_info): Add "current_variant_part" and
4459 "variant_parts".
4460 (alloc_discriminant_info): Remove.
4461 (alloc_rust_variant): New function.
4462 (quirk_rust_enum): Update.
4463 (dwarf2_add_field): Set "offset" member. Don't handle
4464 DW_TAG_variant_part.
4465 (offset_map_type): New typedef.
4466 (convert_variant_range, create_one_variant)
4467 (create_one_variant_part, create_variant_parts)
4468 (add_variant_property): New functions.
4469 (dwarf2_attach_fields_to_type): Call add_variant_property.
4470 (read_structure_type): Don't handle DW_TAG_variant_part.
4471 (handle_variant_part, handle_variant): New functions.
4472 (handle_struct_member_die): Use them.
4473 (process_structure_scope): Don't handle variant parts.
4474 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4475 (struct discriminant_info): Remove.
4476 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4477 (struct main_type) <flag_discriminated_union>: Remove.
4478 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4479 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4480 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4481 Update.
4482 * valops.c (value_union_variant): Remove.
4483 * value.h (value_union_variant): Don't declare.
4484
b249d2c2
TT
44852020-04-24 Tom Tromey <tromey@adacore.com>
4486
4487 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4488 (ada_value_primitive_packed_val): Update.
4489 * ada-valprint.c (ada_value_print_1): Update.
4490 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4491 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4492 just an address. Use evaluate_for_locexpr_baton.
4493 (dwarf2_evaluate_property): Update.
4494 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4495 array_view.
4496 * findvar.c (default_read_var_value): Update.
4497 * gdbtypes.c (compute_variant_fields_inner)
4498 (resolve_dynamic_type_internal): Update.
4499 (resolve_dynamic_type): Change type of valaddr parameter.
4500 * gdbtypes.h (resolve_dynamic_type): Update.
4501 * valarith.c (value_subscripted_rvalue): Update.
4502 * value.c (value_from_contents_and_address): Update.
4503
61122aa9
TT
45042020-04-24 Tom Tromey <tromey@adacore.com>
4505
4506 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4507 "push_initial_value" parameter.
4508 (dwarf2_evaluate_property): Likewise.
4509 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4510
ef83a141
TT
45112020-04-24 Tom Tromey <tromey@adacore.com>
4512
4513 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4514 (variant::matches, compute_variant_fields_recurse)
4515 (compute_variant_fields_inner, compute_variant_fields): New
4516 functions.
4517 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4518 Use resolved_type after type is made.
4519 (operator==): Add new cases.
4520 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4521 (struct discriminant_range, struct variant, struct variant_part):
4522 New.
4523 (union dynamic_prop_data) <variant_parts, original_type>: New
4524 members.
4525 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4526 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4527 constants.
4528 * value.c (unpack_bits_as_long): Now public.
4529 * value.h (unpack_bits_as_long): Declare.
4530
675127ec
TT
45312020-04-24 Tom Tromey <tromey@adacore.com>
4532
4533 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4534 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4535
9852ceef
HD
45362020-04-24 Hannes Domani <ssbssa@yahoo.de>
4537
4538 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4539
7632c6ce
KR
45402020-04-24 Kamil Rytarowski <n54@gmx.com>
4541
4542 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4543 (remove_fork_catchpoint, post_startup_inferior)
4544 (post_attach): Move...
4545 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4546 (remove_fork_catchpoint, post_startup_inferior)
4547 (post_attach): ...here.
4548 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4549 (remove_fork_catchpoint, post_startup_inferior)
4550 (post_attach): Move...
4551 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4552 (remove_fork_catchpoint, post_startup_inferior)
4553 (post_attach): ...here.
4554
7be2bb4f
TT
45552020-04-24 Tom Tromey <tromey@adacore.com>
4556
4557 * nat/windows-nat.h (struct windows_thread_info)
4558 <pc_adjusted>: New member.
4559 * windows-nat.c (windows_fetch_one_register): Check
4560 pc_adjusted.
4561 (windows_nat_target::get_windows_debug_event)
4562 (windows_nat_target::wait): Set pc_adjusted.
4563
f80cb3b4
TV
45642020-04-24 Tom de Vries <tdevries@suse.de>
4565
4566 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4567 Run gdb-add-index inside temp dir.
4568
29514b87
TT
45692020-04-23 Tom Tromey <tromey@adacore.com>
4570
4571 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4572 in loop.
4573
5939967b
LM
45742020-04-23 Luis Machado <luis.machado@linaro.org>
4575
4576 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4577 get_frame_register instead of gdbarch_unwind_pc.
4578
70bc38f5
TV
45792020-04-23 Tom de Vries <tdevries@suse.de>
4580
4581 * symtab.c (lookup_global_symbol): Prefer def over decl.
4582
de82891c
TV
45832020-04-23 Tom de Vries <tdevries@suse.de>
4584
4585 PR symtab/25807
4586 * block.c (best_symbol, better_symbol): Promote to external.
4587 * block.h (best_symbol, better_symbol): Declare.
4588 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4589 decl.
4590
ecc6c606
TT
45912020-04-23 Tom Tromey <tromey@adacore.com>
4592
4593 PR ada/25837:
4594 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4595 "const char *", not a "const std::string &".
4596 <name_and_matcher::operator==>: Update.
4597 * unittests/lookup_name_info-selftests.c: Change type of
4598 "result".
4599
740480b8
TT
46002020-04-23 Tom Tromey <tom@tromey.com>
4601
4602 * inferior.h (iterate_over_inferiors): Don't declare.
4603 * inferior.c (iterate_over_inferiors): Remove.
4604 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4605 Remove.
4606 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4607 use iterate_over_inferiors.
4608 (darwin_resume_inferior_it)
4609 (struct resume_inferior_threads_param)
4610 (darwin_resume_inferior_threads_it): Remove.
4611 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4612
ae3ab1f0
TV
46132020-04-23 Tom de Vries <tdevries@suse.de>
4614
4615 * blockframe.c (find_pc_partial_function): Use
4616 find_pc_sect_compunit_symtab rather than
4617 objfile->sf->qf->find_pc_sect_compunit_symtab.
4618
317d2668
TV
46192020-04-22 Tom de Vries <tdevries@suse.de>
4620
4621 PR symtab/25764
4622 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4623 in psymtabs.
4624
eea9e357
TV
46252020-04-22 Tom de Vries <tdevries@suse.de>
4626
4627 PR symtab/25801
4628 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4629 symtabs.
4630
3d5afab3
TV
46312020-04-22 Tom de Vries <tdevries@suse.de>
4632
4633 PR symtab/25700
4634 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4635 CU if already created.
4636
d43b7a2d
TBA
46372020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4638
4639 * infrun.c (displaced_step_fixup): Switch to the event_thread
4640 before calling displaced_step_restore, not after.
4641
d89edf9b
MM
46422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4643
4644 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4645 its inferior is not recorded by us.
4646 (record_btrace_target_open): Replace call to
4647 all_non_exited_threads () with call to current_inferior
4648 ()->non_exited_threads ().
4649 (record_btrace_target::stop_recording): Likewise.
4650 (record_btrace_target::close): Likewise.
4651 (record_btrace_target::wait): Likewise.
4652 (record_btrace_target::record_stop_replaying): Likewise.
4653
5897fd49
MM
46542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4655
4656 * btrace.c (btrace_enable): Throw an error on double enables and
4657 when enabling recording fails.
4658 (btrace_disable): Throw an error if the thread is not recorded.
4659
1a476b6d
MM
46602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4661
4662 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4663 request if we do not have a thread_info.
4664
4778a5f8
TV
46652020-04-21 Tom de Vries <tdevries@suse.de>
4666
4667 PR gdb/25471
4668 * thread.c
4669 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4670 exception in get_frame_id.
4671
0fa7617d
TT
46722020-04-20 Tom Tromey <tromey@adacore.com>
4673
4674 * python/python.c (struct gdbpy_event): Mark move constructor as
4675 noexcept.
4676 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4677 constructor as noexcept.
4678 * completer.h (struct completion_result): Mark move constructor as
4679 noexcept.
4680 * completer.c (completion_result::completion_result): Use
4681 initialization style. Don't call reset_match_list.
4682
ad23bda0
MS
46832020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4684
4685 * MAINTAINERS (Write After Approval): Add myself.
4686
45e1f031
TT
46872020-04-18 Tom Tromey <tom@tromey.com>
4688
4689 * windows-tdep.c (init_w32_command_list)
4690 (w32_prefix_command_valid): Restore.
4691 (_initialize_windows_tdep): Call init_w32_command_list.
4692
08feed99
TT
46932020-04-18 Tom Tromey <tom@tromey.com>
4694
4695 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4696 * value.c (value_fn_field): Update.
4697 * valops.c (find_function_in_inferior)
4698 (value_allocate_space_in_inferior): Update.
4699 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4700 Update.
4701 * tui/tui-source.c (tui_source_window::set_contents): Update.
4702 * symtab.c (lookup_global_or_static_symbol)
4703 (find_function_start_sal_1, skip_prologue_sal)
4704 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4705 * symmisc.c (dump_msymbols, dump_symtab_1)
4706 (maintenance_print_one_line_table): Update.
4707 * symfile.c (init_entry_point_info, section_is_mapped)
4708 (list_overlays_command, simple_read_overlay_table)
4709 (simple_overlay_update_1): Update.
4710 * stap-probe.c (handle_stap_probe): Update.
4711 * stabsread.c (dbx_init_float_type, define_symbol)
4712 (read_one_struct_field, read_enum_type, read_range_type): Update.
4713 * source.c (info_line_command): Update.
4714 * python/python.c (gdbpy_source_objfile_script)
4715 (gdbpy_execute_objfile_script): Update.
4716 * python/py-type.c (save_objfile_types): Update.
4717 * python/py-objfile.c (py_free_objfile): Update.
4718 * python/py-inferior.c (python_new_objfile): Update.
4719 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4720 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4721 (maintenance_check_psymtabs): Update.
4722 * printcmd.c (info_address_command): Update.
4723 * objfiles.h (struct objfile) <arch>: New method, from
4724 get_objfile_arch.
4725 (get_objfile_arch): Don't declare.
4726 * objfiles.c (get_objfile_arch): Remove.
4727 (filter_overlapping_sections): Update.
4728 * minsyms.c (msymbol_is_function): Update.
4729 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4730 (output_nondebug_symbol): Update.
4731 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4732 (mdebug_expand_psymtab): Update.
4733 * machoread.c (macho_add_oso_symfile): Update.
4734 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4735 Update.
4736 * linux-fork.c (checkpoint_command): Update.
4737 * linespec.c (convert_linespec_to_sals): Update.
4738 * jit.c (finalize_symtab): Update.
4739 * infrun.c (insert_exception_resume_from_probe): Update.
4740 * ia64-tdep.c (ia64_find_unwind_table): Update.
4741 * hppa-tdep.c (internalize_unwinds): Update.
4742 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4743 Update.
4744 * gcore.c (call_target_sbrk): Update.
4745 * elfread.c (record_minimal_symbol, elf_symtab_read)
4746 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4747 (elf_gnu_ifunc_resolve_by_got): Update.
4748 * dwarf2/read.c (create_addrmap_from_index)
4749 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4750 (read_debug_names_from_section)
4751 (process_psymtab_comp_unit_reader, add_partial_symbol)
4752 (add_partial_subprogram, process_full_comp_unit)
4753 (read_file_scope, read_func_scope, read_lexical_block_scope)
4754 (read_call_site_scope, dwarf2_ranges_read)
4755 (dwarf2_record_block_ranges, dwarf2_add_field)
4756 (mark_common_block_symbol_computed, read_tag_pointer_type)
4757 (read_tag_string_type, dwarf2_init_float_type)
4758 (dwarf2_init_complex_target_type, read_base_type)
4759 (partial_die_info::read, partial_die_info::read)
4760 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4761 (dwarf2_fetch_die_loc_sect_off): Update.
4762 * dwarf2/loc.c (dwarf2_find_location_expression)
4763 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4764 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4765 (dwarf2_loc_desc_get_symbol_read_needs)
4766 (locexpr_describe_location_piece, locexpr_describe_location_1)
4767 (loclist_describe_location): Update.
4768 * dwarf2/index-write.c (write_debug_names): Update.
4769 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4770 * dtrace-probe.c (dtrace_process_dof): Update.
4771 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4772 (process_one_symbol): Update.
4773 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4774 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4775 (coff_read_enum_type): Update.
4776 * cli/cli-cmds.c (edit_command, list_command): Update.
4777 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4778 * breakpoint.c (create_overlay_event_breakpoint)
4779 (create_longjmp_master_breakpoint)
4780 (create_std_terminate_master_breakpoint)
4781 (create_exception_master_breakpoint, get_sal_arch): Update.
4782 * block.c (block_gdbarch): Update.
4783 * annotate.c (annotate_source_line): Update.
4784
0743fc83
TT
47852020-04-17 Tom Tromey <tromey@adacore.com>
4786
4787 * auto-load.c (show_auto_load_cmd): Remove.
4788 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4789 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4790 (maintenance_print_arc_command): Remove.
4791 * tui/tui-win.c (tui_command): Remove.
4792 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4793 * tui/tui-layout.c (tui_layout_command): Remove.
4794 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4795 * python/python.c (user_set_python, user_show_python): Remove.
4796 (_initialize_python): Use add_basic_prefix_cmd,
4797 add_show_prefix_cmd.
4798 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4799 (install_gdb_commands): Use add_basic_prefix_cmd,
4800 add_show_prefix_cmd.
4801 (info_guile_command): Remove.
4802 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4803 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4804 add_show_prefix_cmd.
4805 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4806 Remove do_set and do_show parameters.
4807 * cli/cli-style.c (set_style, show_style): Remove.
4808 (_initialize_cli_style): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 (cli_style_option::add_setshow_commands): Remove do_set and
4811 do_show parameters.
4812 (cli_style_option::add_setshow_commands): Use
4813 add_basic_prefix_cmd, add_show_prefix_cmd.
4814 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4815 (set_style_name): Remove.
4816 * cli/cli-dump.c (dump_command, append_command): Remove.
4817 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4818 (tekhex_dump_command, binary_dump_command)
4819 (binary_append_command): Remove.
4820 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4821 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4822 (init_w32_command_list): Remove; move into ...
4823 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4824 * valprint.c (set_print, show_print, set_print_raw)
4825 (show_print_raw): Remove.
4826 (_initialize_valprint): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * typeprint.c (set_print_type, show_print_type): Remove.
4829 (_initialize_typeprint): Use add_basic_prefix_cmd,
4830 add_show_prefix_cmd.
4831 * record.c (set_record_command, show_record_command): Remove.
4832 (_initialize_record): Use add_basic_prefix_cmd,
4833 add_show_prefix_cmd.
4834 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4835 add_show_prefix_cmd.
4836 (info_command, show_command, set_debug, show_debug): Remove.
4837 * top.h (set_history, show_history): Don't declare.
4838 * top.c (set_history, show_history): Remove.
4839 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4840 (unset_tdesc_cmd): Remove.
4841 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 * symtab.c (info_module_command): Remove.
4844 (_initialize_symtab): Use add_basic_prefix_cmd.
4845 * symfile.c (overlay_command): Remove.
4846 (_initialize_symfile): Use add_basic_prefix_cmd.
4847 * sparc64-tdep.c (info_adi_command): Remove.
4848 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4849 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4850 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4851 add_show_prefix_cmd.
4852 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4853 (_initialize_serial): Use add_basic_prefix_cmd,
4854 add_show_prefix_cmd.
4855 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4856 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4857 add_show_prefix_cmd.
4858 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4859 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4860 add_show_prefix_cmd.
4861 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4862 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4863 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4864 add_show_prefix_cmd.
4865 * remote.c (remote_command, set_remote_cmd): Remove.
4866 (_initialize_remote): Use add_basic_prefix_cmd.
4867 * record-full.c (set_record_full_command)
4868 (show_record_full_command): Remove.
4869 (_initialize_record_full): Use add_basic_prefix_cmd,
4870 add_show_prefix_cmd.
4871 * record-btrace.c (cmd_set_record_btrace)
4872 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4873 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4874 (cmd_show_record_btrace_pt): Remove.
4875 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4876 add_show_prefix_cmd.
4877 * ravenscar-thread.c (set_ravenscar_command)
4878 (show_ravenscar_command): Remove.
4879 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4880 add_show_prefix_cmd.
4881 * mips-tdep.c (show_mips_command, set_mips_command)
4882 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4883 add_show_prefix_cmd.
4884 * maint.c (maintenance_command, maintenance_info_command)
4885 (maintenance_check_command, maintenance_print_command)
4886 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4887 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4888 add_show_prefix_cmd.
4889 (show_per_command_cmd): Remove.
4890 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4891 Remove.
4892 (maintenance_show_test_settings_cmd): Remove.
4893 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4894 add_show_prefix_cmd.
4895 * maint-test-options.c (maintenance_test_options_command):
4896 Remove.
4897 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4898 * macrocmd.c (macro_command): Remove
4899 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4900 * language.c (set_check, show_check): Remove.
4901 (_initialize_language): Use add_basic_prefix_cmd,
4902 add_show_prefix_cmd.
4903 * infcmd.c (unset_command): Remove.
4904 (_initialize_infcmd): Use add_basic_prefix_cmd.
4905 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4906 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4907 add_show_prefix_cmd.
4908 * go32-nat.c (go32_info_dos_command): Remove.
4909 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4910 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4911 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4912 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4913 (_initialize_frame): Use add_basic_prefix_cmd,
4914 add_show_prefix_cmd.
4915 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4916 (_initialize_dcache): Use add_basic_prefix_cmd,
4917 add_show_prefix_cmd.
4918 * cp-support.c (maint_cplus_command): Remove.
4919 (_initialize_cp_support): Use add_basic_prefix_cmd.
4920 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4921 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4922 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4923 add_basic_prefix_cmd, add_show_prefix_cmd.
4924 * breakpoint.c (save_command): Remove.
4925 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4926 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4927 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4928 add_show_prefix_cmd.
4929 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4930 (set_ada_command, show_ada_command): Remove.
4931 (_initialize_ada_language): Use add_basic_prefix_cmd,
4932 add_show_prefix_cmd.
4933 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4934
3557f442
KR
49352020-04-16 Kamil Rytarowski <n54@gmx.com>
4936
4937 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4938 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4939
16197208
SM
49402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4941
4942 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4943 warning messages.
4944
00ac85d3
SM
49452020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4946
4947 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4948 import table is not at beginning of .idata section.
4949
381ce63f
PA
49502020-04-16 Pedro Alves <palves@redhat.com>
4951
4952 * inferior.c (delete_inferior): Use delete operator directly
4953 instead of delete_program_space.
4954 * progspace.c (add_program_space): New, factored out from
4955 program_space::program_space.
4956 (remove_program_space): New, factored out from
4957 delete_program_space.
4958 (program_space::program_space): Remove intro comment. Rewrite.
4959 (program_space::~program_space): Remove intro comment. Call
4960 remove_program_space.
4961 (delete_program_space): Delete.
4962 * progspace.h (program_space::program_space): Make explicit. Move
4963 intro comment here, adjusted.
4964 (program_space::~program_space): Move intro comment here,
4965 adjusted.
4966 (delete_program_space): Remove.
4967
a010605f
TT
49682020-04-16 Tom Tromey <tromey@adacore.com>
4969
4970 * windows-nat.c (windows_nat::handle_access_violation): New
4971 function.
4972 * nat/windows-nat.h (handle_access_violation): Declare.
4973 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4974 windows-nat.c. Call handle_access_violation.
4975
efba5c23
TV
49762020-04-16 Tom de Vries <tdevries@suse.de>
4977
4978 PR symtab/25791
4979 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4980 CUs without psymtab.
4981
97ed802d
KB
49822020-04-16 Kevin Buettner <kevinb@redhat.com>
4983
4984 * python/python.c (do_start_initialization): Don't call
4985 PyEval_InitThreads for Python 3.9 and beyond.
4986
c7d64809
KR
49872020-04-15 Kamil Rytarowski <n54@gmx.com>
4988
4989 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4990 thread functions.
4991 (obsd_nat_target::wait): Likewise.
4992
ce127a96
TT
49932020-04-15 Tom Tromey <tromey@adacore.com>
4994
4995 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4996 (DEBUG_EXCEPT): Use debug_printf.
4997
99f1bc6a
AB
49982020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * completer.c (class completion_tracker::completion_hash_entry)
5001 <hash_name>: New member function.
5002 (completion_tracker::discard_completions): New callback to hash a
5003 completion_hash_entry, pass this to htab_create_alloc.
5004
a0e9b532
JT
50052016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5006
5007 * windows-nat.c (windows_make_so): Warn rather than stopping with
5008 an error if realpath() fails.
5009
06ca5dd4
KR
50102020-04-14 Kamil Rytarowski <n54@gmx.com>
5011
5012 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5013 (nbsd_nat_target::info_proc): Add do_status.
5014
194d088f
TV
50152020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5016 Tom de Vries <tdevries@suse.de>
5017
5018 PR symtab/25718
5019 * psympriv.h (struct partial_symtab::read_symtab)
5020 (struct partial_symtab::expand_psymtab)
5021 (struct partial_symtab::read_dependencies): Update comments.
5022 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5023 read_symtab for includer.
5024 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5025 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5026 (struct dwarf2_include_psymtab::m_readin): Remove.
5027 (struct dwarf2_include_psymtab::includer): New member function.
5028 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5029
c1a66c06
TV
50302020-04-14 Tom de Vries <tdevries@suse.de>
5031
5032 PR symtab/25720
5033 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5034 with NULL symbol_matcher and lookup_name.
5035 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5036 and lookup_name.
5037 * dwarf2/read.c (dw2_expand_symtabs_matching)
5038 (dw2_debug_names_expand_symtabs_matching): Same.
5039 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5040 Make lookup_name a pointer. Update comment.
5041 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5042 lookup_name being a pointer.
5043 * symfile.c (expand_symtabs_matching): Same.
5044 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5045 * linespec.c (iterate_over_all_matching_symtabs): Same.
5046
400b5eca
TT
50472020-04-13 Tom Tromey <tom@tromey.com>
5048
5049 * run-on-main-thread.c: Update include.
5050 * unittests/main-thread-selftests.c: Update include.
5051 * tui/tui-win.c: Update include.
5052 * tui/tui-io.c: Update include.
5053 * tui/tui-interp.c: Update include.
5054 * tui/tui-hooks.c: Update include.
5055 * top.h: Update include.
5056 * top.c: Update include.
5057 * ser-base.c: Update include.
5058 * remote.c: Update include.
5059 * remote-notif.c: Update include.
5060 * remote-fileio.c: Update include.
5061 * record-full.c: Update include.
5062 * record-btrace.c: Update include.
5063 * python/python.c: Update include.
5064 * posix-hdep.c: Update include.
5065 * mingw-hdep.c: Update include.
5066 * mi/mi-main.c: Update include.
5067 * mi/mi-interp.c: Update include.
5068 * main.c: Update include.
5069 * linux-nat.c: Update include.
5070 * interps.c: Update include.
5071 * infrun.c: Update include.
5072 * inf-loop.c: Update include.
5073 * event-top.c: Update include.
5074 * event-loop.c: Move to ../gdbsupport/.
5075 * event-loop.h: Move to ../gdbsupport/.
5076 * async-event.h: Update include.
5077 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5078
93b54c8e
TT
50792020-04-13 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-win.c: Include async-event.h.
5082 * remote.c: Include async-event.h.
5083 * remote-notif.c: Include async-event.h.
5084 * record-full.c: Include async-event.h.
5085 * record-btrace.c: Include async-event.h.
5086 * infrun.c: Include async-event.h.
5087 * event-top.c: Include async-event.h.
5088 * event-loop.h: Move some declarations to async-event.h.
5089 * event-loop.c: Don't include ser-event.h or top.h. Move some
5090 code to async-event.c.
5091 * async-event.h: New file.
5092 * async-event.c: New file.
5093 * Makefile.in (COMMON_SFILES): Add async-event.c.
5094 (HFILES_NO_SRCDIR): Add async-event.h.
5095
c1cd3163
TT
50962020-04-13 Tom Tromey <tom@tromey.com>
5097
5098 * utils.c (flush_streams): New function.
5099 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5100
29f2bf4f
TT
51012020-04-13 Tom Tromey <tom@tromey.com>
5102
5103 * event-loop.c (handle_file_event): Use warning, not
5104 printf_unfiltered.
5105
98029d02
TT
51062020-04-13 Tom Tromey <tom@tromey.com>
5107
5108 * event-loop.c: Include <chrono>.
5109
06cc9596
TT
51102020-04-13 Tom Tromey <tom@tromey.com>
5111
5112 * gdb_select.h: Move to ../gdbsupport/.
5113 * event-loop.c: Update include path.
5114 * top.c: Update include path.
5115 * ser-base.c: Update include path.
5116 * ui-file.c: Update include path.
5117 * ser-tcp.c: Update include path.
5118 * guile/scm-ports.c: Update include path.
5119 * posix-hdep.c: Update include path.
5120 * ser-unix.c: Update include path.
5121 * gdb_usleep.c: Update include path.
5122 * mingw-hdep.c: Update include path.
5123 * inflow.c: Update include path.
5124 * infrun.c: Update include path.
5125 * event-top.c: Update include path.
5126
8ae8e197
TT
51272020-04-13 Tom Tromey <tom@tromey.com>
5128
5129 * configure: Rebuild.
5130 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5131
58cf28e8
TT
51322020-04-13 Tom Tromey <tom@tromey.com>
5133
5134 * event-loop.h (start_event_loop): Don't declare.
5135 * event-loop.c (start_event_loop): Move...
5136 * main.c (start_event_loop): ...here. Now static.
5137
b7f999ae
SDJ
51382020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5139
5140 * MAINTAINERS: Update my email address.
5141
1085dfd4
KR
51422020-04-12 Kamil Rytarowski <n54@gmx.com>
5143
5144 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5145 IP_ALL.
5146
49d1d1f5
KR
51472020-04-12 Kamil Rytarowski <n54@gmx.com>
5148
5149 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5150 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5151
b4848d2a
KR
51522020-04-12 Kamil Rytarowski <n54@gmx.com>
5153
5154 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5155 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5156
51c133d5
KR
51572020-04-12 Kamil Rytarowski <n54@gmx.com>
5158
5159 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5160
54b8cbd0
KR
51612020-04-11 Kamil Rytarowski <n54@gmx.com>
5162
5163 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5164 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5165 (nbsd_nat_target::info_proc): New functions.
5166 * nbsd-nat.c (kinfo_get_vmmap): New function.
5167 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5168 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5169 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5170 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5171 functions.
5172 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5173 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5174 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5175 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5176 (KINFO_VME_FLAG_GROWS_DOWN): New.
5177
cf83625d
AS
51782020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5179
5180 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5181 bit shift.
5182
0c4311ab
TT
51832020-04-10 Tom Tromey <tromey@adacore.com>
5184
5185 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5186
3e65b3e9
TT
51872020-04-10 Tom Tromey <tromey@adacore.com>
5188
5189 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5190 separate debug files.
5191
13302e95
HD
51922020-04-10 Hannes Domani <ssbssa@yahoo.de>
5193
5194 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5195 Move to...
5196 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5197 ... here.
5198 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5199 Check for STATUS_WX86_BREAKPOINT.
5200 (windows_nat_target::wait): Same.
5201
bdfc1e8a
TV
52022020-04-10 Tom de Vries <tdevries@suse.de>
5203
5204 PR cli/25808
5205 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5206
f4460aec
SM
52072020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5210 (Write After Approval): Remove Tom de Vries.
5211
a25198bb
BE
52122020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5213
5214 revert partially:
5215 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5216
aac66a4c
SM
5217 * buildsym.c (record_line): Fix undefined behavior and preserve
5218 lines at eof.
a25198bb 5219
206c98a6
KR
52202020-04-09 Kamil Rytarowski <n54@gmx.com>
5221
5222 * auxv.h (svr4_auxv_parse): New.
5223 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5224 and generic_auxv_parse.
5225 (svr4_auxv_parse): Add.
5226 * obsd-tdep.c: Include "auxv.h".
5227 (obsd_auxv_parse): Remove.
5228 (obsd_init_abi): Remove comment.
5229 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5230 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5231 * nbsd-tdep.c: Include "auxv.h".
5232 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5233
71fbdbaf
TT
52342020-04-08 Tom Tromey <tromey@adacore.com>
5235
5236 * nat/windows-nat.h (last_wait_event): Don't declare.
5237 (wait_for_debug_event): Update comment.
5238 * nat/windows-nat.c (last_wait_event): Now static.
5239
2c1d95e8
TT
52402020-04-08 Tom Tromey <tromey@adacore.com>
5241
5242 * windows-nat.c (wait_for_debug_event): Move to
5243 nat/windows-nat.c.
5244 * nat/windows-nat.h (wait_for_debug_event): Declare.
5245 * nat/windows-nat.c (wait_for_debug_event): Move from
5246 windows-nat.c. No longer static.
5247
d2977bc4
TT
52482020-04-08 Tom Tromey <tromey@adacore.com>
5249
5250 * windows-nat.c (get_windows_debug_event): Use
5251 fetch_pending_stop.
5252 * nat/windows-nat.h (fetch_pending_stop): Declare.
5253 * nat/windows-nat.c (fetch_pending_stop): New function.
5254
e758e19c
TT
52552020-04-08 Tom Tromey <tromey@adacore.com>
5256
5257 * windows-nat.c (windows_continue): Use matching_pending_stop and
5258 continue_last_debug_event.
5259 * nat/windows-nat.h (matching_pending_stop)
5260 (continue_last_debug_event): Declare.
5261 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5262 (matching_pending_stop, continue_last_debug_event): New
5263 functions.
5264
8d30e395
TT
52652020-04-08 Tom Tromey <tromey@adacore.com>
5266
5267 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5268 (handle_exception_result): Move to nat/windows-nat.h.
5269 (DEBUG_EXCEPTION_SIMPLE): Remove.
5270 (windows_nat::handle_ms_vc_exception): New function.
5271 (handle_exception): Move to nat/windows-nat.c.
5272 (get_windows_debug_event): Update.
5273 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5274 nat/windows-nat.c.
5275 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5276 (handle_exception_result): Move from windows-nat.c.
5277 (handle_exception): Declare.
5278 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5279 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5280 windows-nat.c.
5281
29de418d
TT
52822020-04-08 Tom Tromey <tromey@adacore.com>
5283
5284 * windows-nat.c (exception_count, event_count): Remove.
5285 (handle_exception, get_windows_debug_event)
5286 (do_initial_windows_stuff): Update.
5287
a816ba18
TT
52882020-04-08 Tom Tromey <tromey@adacore.com>
5289
5290 * windows-nat.c (windows_nat::handle_load_dll)
5291 (windows_nat::handle_unload_dll): Rename. No longer static.
5292 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5293 Declare.
5294
a00caa12
TT
52952020-04-08 Tom Tromey <tromey@adacore.com>
5296
5297 * complaints.h (stop_whining): Declare at top-level.
5298 (complaint): Don't declare stop_whining.
5299
d41b524f
TT
53002020-04-08 Tom Tromey <tromey@adacore.com>
5301
5302 * windows-nat.c (windows_nat::handle_output_debug_string):
5303 Rename. No longer static.
5304 * nat/windows-nat.h (handle_output_debug_string): Declare.
5305
3c76026d
TT
53062020-04-08 Tom Tromey <tromey@adacore.com>
5307
5308 * windows-nat.c (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 to nat/windows-nat.c.
5312 (display_selectors, fake_create_process)
5313 (get_windows_debug_event): Update.
5314 * nat/windows-nat.h (current_process_handle, current_process_id)
5315 (main_thread_id, last_sig, current_event, last_wait_event)
5316 (current_windows_thread, desired_stop_thread_id, pending_stops)
5317 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5318 * nat/windows-nat.c (current_process_handle, current_process_id)
5319 (main_thread_id, last_sig, current_event, last_wait_event)
5320 (current_windows_thread, desired_stop_thread_id, pending_stops)
5321 (siginfo_er): New globals. Move from windows-nat.c.
5322
9d8679cc
TT
53232020-04-08 Tom Tromey <tromey@adacore.com>
5324
5325 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5326 (handle_load_dll): Update.
5327 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5328
28688adf
TT
53292020-04-08 Tom Tromey <tromey@adacore.com>
5330
5331 * windows-nat.c (enum thread_disposition_type): Move to
5332 nat/windows-nat.h.
5333 (windows_nat::thread_rec): Rename from thread_rec. No longer
5334 static.
5335 (windows_add_thread, windows_nat_target::fetch_registers)
5336 (windows_nat_target::store_registers, handle_exception)
5337 (windows_nat_target::resume, get_windows_debug_event)
5338 (windows_nat_target::get_tib_address)
5339 (windows_nat_target::thread_name)
5340 (windows_nat_target::thread_alive): Update.
5341 * nat/windows-nat.h (enum thread_disposition_type): Move from
5342 windows-nat.c.
5343 (thread_rec): Declare.
5344
4834dad0
TT
53452020-04-08 Tom Tromey <tromey@adacore.com>
5346
5347 * windows-nat.c: Add "using namespace".
5348 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5349 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5350
65bafd5b
TT
53512020-04-08 Tom Tromey <tromey@adacore.com>
5352
5353 * nat/windows-nat.h (struct windows_thread_info): Declare
5354 destructor.
5355 * nat/windows-nat.c (~windows_thread_info): New.
5356
0a4afda3
TT
53572020-04-08 Tom Tromey <tromey@adacore.com>
5358
5359 PR gdb/22992
5360 * windows-nat.c (current_event): Update comment.
5361 (last_wait_event, desired_stop_thread_id): New globals.
5362 (struct pending_stop): New.
5363 (pending_stops): New global.
5364 (windows_nat_target) <stopped_by_sw_breakpoint>
5365 <supports_stopped_by_sw_breakpoint>: New methods.
5366 (windows_fetch_one_register): Add assertions. Adjust PC.
5367 (windows_continue): Handle pending stops. Suspend other threads
5368 when stepping. Use last_wait_event
5369 (wait_for_debug_event): New function.
5370 (get_windows_debug_event): Use wait_for_debug_event. Handle
5371 pending stops. Queue spurious stops.
5372 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5373 (windows_nat_target::kill): Use wait_for_debug_event.
5374 * nat/windows-nat.h (struct windows_thread_info)
5375 <stopped_at_software_breakpoint>: New field.
5376 * nat/windows-nat.c (windows_thread_info::resume): Clear
5377 stopped_at_software_breakpoint.
5378
8e61ebec
TT
53792020-04-08 Tom Tromey <tromey@adacore.com>
5380
5381 * windows-nat.c (enum thread_disposition_type): New.
5382 (thread_rec): Replace "get_context" parameter with "disposition";
5383 change type.
5384 (windows_add_thread, windows_nat_target::fetch_registers)
5385 (windows_nat_target::store_registers, handle_exception)
5386 (windows_nat_target::resume, get_windows_debug_event)
5387 (windows_nat_target::get_tib_address)
5388 (windows_nat_target::thread_name)
5389 (windows_nat_target::thread_alive): Update.
5390
98a03287
TT
53912020-04-08 Tom Tromey <tromey@adacore.com>
5392
5393 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5394 (windows_continue): Use windows_continue::resume.
5395 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5396 resume>: Declare new methods.
5397 * nat/windows-nat.c: New file.
5398 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5399
7c7411bc
TT
54002020-04-08 Tom Tromey <tromey@adacore.com>
5401
5402 * windows-nat.c (windows_add_thread, windows_delete_thread)
5403 (windows_nat_target::fetch_registers)
5404 (windows_nat_target::store_registers, fake_create_process)
5405 (windows_nat_target::resume, windows_nat_target::resume)
5406 (get_windows_debug_event, windows_nat_target::wait)
5407 (windows_nat_target::pid_to_str)
5408 (windows_nat_target::get_tib_address)
5409 (windows_nat_target::get_ada_task_ptid)
5410 (windows_nat_target::thread_name)
5411 (windows_nat_target::thread_alive): Use lwp, not tid.
5412
2950fdf7
TT
54132020-04-08 Tom Tromey <tromey@adacore.com>
5414
5415 * windows-nat.c (handle_exception)
5416 (windows_nat_target::thread_name): Update.
5417 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5418 <name>: Now unique_xmalloc_ptr.
5419
62fe396b
TT
54202020-04-08 Tom Tromey <tromey@adacore.com>
5421
5422 * windows-nat.c (thread_rec)
5423 (windows_nat_target::fetch_registers): Update.
5424 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5425 Update comment.
5426 <debug_registers_changed, reload_context>: Now bool.
5427
e9534bd2
TT
54282020-04-08 Tom Tromey <tromey@adacore.com>
5429
5430 * windows-nat.c (windows_add_thread): Use new.
5431 (windows_init_thread_list, windows_delete_thread): Use delete.
5432 (get_windows_debug_event): Update.
5433 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5434 destructor, and initializers.
5435
ae1f8880
TT
54362020-04-08 Tom Tromey <tromey@adacore.com>
5437
5438 * windows-nat.c (struct windows_thread_info): Remove.
5439 * nat/windows-nat.h: New file.
5440
55a1e039
TT
54412020-04-08 Tom Tromey <tromey@adacore.com>
5442
5443 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5444 (thread_rec, windows_add_thread, windows_delete_thread)
5445 (windows_continue): Update.
5446
93366324
TT
54472020-04-08 Tom Tromey <tromey@adacore.com>
5448
5449 * windows-nat.c (struct windows_thread_info): Remove typedef.
5450 (thread_head): Remove.
5451 (thread_list): New global.
5452 (thread_rec, windows_add_thread, windows_init_thread_list)
5453 (windows_delete_thread, windows_continue): Update.
5454
0f2265e2
SM
54552020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5456
5457 * windows-tdep.h (windows_init_abi): Add comment.
5458 (cygwin_init_abi): New declaration.
5459 * windows-tdep.c: Split signal enumeration in two, one for
5460 Windows and one for Cygwin.
5461 (windows_gdb_signal_to_target): Only deal with signal of the
5462 Windows OS ABI.
5463 (cygwin_gdb_signal_to_target): New function.
5464 (windows_init_abi): Rename to windows_init_abi_common, don't set
5465 gdb_signal_to_target gdbarch method. Add new new function with
5466 this name.
5467 (cygwin_init_abi): New function.
5468 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5469 comment. Don't call windows_init_abi.
5470 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5471 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5472 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5473 i386_windows_init_abi_common, don't call windows_init_abi. Add
5474 a new function of this name.
5475 (i386_cygwin_init_abi): New function.
5476 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5477 OS ABI Cygwin.
5478
3810f182
SM
54792020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5480
5481 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5482 parameter.c.
5483 (dwarf2_read_gdb_index): Update.
5484
063f8e80
KR
54852020-04-07 Kamil Rytarowski <n54@gmx.com>
5486
5487 * nbsd-tdep.c: Include "objfiles.h".
5488 (nbsd_skip_solib_resolver): New.
5489 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5490
85a9510c 54912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5492
5493 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5494 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5495 with DW_LLE_base_addressx are being emitted in DWARFv5.
5496 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5497 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5498 unsigned integer.
5499
9fc3eaae 55002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5501
5502 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5503 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5504 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5505 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5506 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5507 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5508 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5509
5510
41144253 55112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5512
5513 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5514 (read_loclist_index): New function definition.
5515 (lookup_loclist_base): New function definition.
5516 (read_loclist_header): New function definition.
5517 (dwarf2_cu): Add loclist_base and loclist_header field.
5518 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5519 (read_full_die_1): Read the value of DW_AT_loclists_base.
5520 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5521 (read_attribute_value): Handle DW_FORM_loclistx.
5522 (skip_one_die): Handle DW_FORM_loclistx.
5523 (loclist_header): New structure declaration.
5524 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5525
9f4e76a4
SM
55262020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5529 constructor. Remove `addr` parameter from other constructor and
5530 add `per_cu` parameter.
5531 * dwarf2/read.c (create_partial_symtab): Update.
5532
25c11aca
TV
55332020-04-07 Tom de Vries <tdevries@suse.de>
5534
5535 PR symtab/25796
5536 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5537 (partial_die_info::fixup): Inherit has_const_value.
5538
5707e24b
TV
55392020-04-07 Tom de Vries <tdevries@suse.de>
5540
5541 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5542 symbols without address.
5543
05f00e22
KR
55442020-04-06 Kamil Rytarowski <n54@gmx.com>
5545
5546 * nbsd-nat.h (struct thread_info): Add forward declaration.
5547 (nbsd_nat_target::thread_alive): Add.
5548 (nbsd_nat_target::thread_name): Likewise.
5549 (nbsd_nat_target::update_thread_list): Likewise.
5550 (update_thread_list::post_attach): Likewise.
5551 (post_attach::pid_to_str): Likewise.
5552 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5553 (nbsd_thread_lister): Add.
5554 (nbsd_nat_target::thread_alive): Likewise.
5555 (nbsd_nat_target::thread_name): Likewise.
5556 (nbsd_add_threads): Likewise.
5557 (update_thread_list::post_attach): Likewise.
5558 (nbsd_nat_target::update_thread_list): Likewise.
5559 (post_attach::pid_to_str): Likewise.
5560
6ee448cc
TT
55612020-04-06 Tom Tromey <tromey@adacore.com>
5562
5563 * ada-valprint.c (print_variant_part): Extract the variant field.
5564 (print_field_values): Use the field as the outer value when
5565 recursing.
5566
dea34e8c
TT
55672020-04-06 Tom Tromey <tromey@adacore.com>
5568
5569 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5570 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5571 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5572 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5573 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5574
93689ce9
TT
55752020-04-06 Tom Tromey <tromey@adacore.com>
5576
5577 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5578 TYPE_CODE_ERROR.
5579
79743962
KR
55802020-04-06 Kamil Rytarowski <n54@gmx.com>
5581
5582 * nbsd-tdep.c: Include "gdbarch.h".
5583 Define enum with NetBSD signal numbers.
5584 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5585 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5586 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5587 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5588 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5589 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5590 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5591 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5592 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5593 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5594 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5595 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5596
9e7c9a03
HD
55972020-04-03 Hannes Domani <ssbssa@yahoo.de>
5598
5599 PR gdb/25325
5600 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5601
d9e49b61
TT
56022020-04-03 Tom Tromey <tromey@adacore.com>
5603
5604 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5605 Read constant block.
5606
e0fc5c3f
SM
56072020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5608
5609 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5610 (gdb_bfd_get_full_section_contents): New declaration.
5611 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5612 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5613 gdb_bfd_get_full_section_contents.
5614
e2ff18a0
SM
56152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5616
5617 * exec.c (build_section_table): Replace internal_error with
5618 gdb_assert.
5619 (section_table_xfer_memory_partial): Likewise.
5620 * mdebugread.c (parse_partial_symbols): Likewise.
5621 * psymtab.c (lookup_partial_symbol): Likewise.
5622 * utils.c (wrap_here): Likewise.
5623
0830d301
TT
56242020-04-02 Tom Tromey <tromey@adacore.com>
5625
5626 * f-lang.c (build_fortran_types): Use arch_type to initialize
5627 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5628
e7da7f8f
TT
56292020-04-02 Tom Tromey <tromey@adacore.com>
5630
5631 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5632 of attributes.
5633
c90d28ac
AB
56342020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5635 Bernd Edlinger <bernd.edlinger@hotmail.de>
5636 Tom Tromey <tromey@adacore.com>
5637
5638 * buildsym.c (buildsym_compunit::record_line): Remove
5639 deduplication code.
5640
1aa98955
TV
56412020-04-02 Tom de Vries <tdevries@suse.de>
5642
5643 PR ada/24671
5644 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5645
d3214198
TV
56462020-04-02 Tom de Vries <tdevries@suse.de>
5647
5648 * dwarf2/read.c (dwarf2_gdb_index_functions,
5649 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5650 NULL.
5651 * psymtab.c (psym_lookup_global_symbol_language): New function.
5652 (psym_functions): Init psym_lookup_global_symbol_language with
5653 psym_lookup_global_symbol_language.
5654 * symfile-debug.c (debug_sym_quick_functions): Init
5655 lookup_global_symbol_language with NULL.
5656 * symfile.c (set_initial_language): Remove fixme comment.
5657 * symfile.h (struct quick_symbol_functions): Add
5658 lookup_global_symbol_language.
5659 * symtab.c (find_quick_global_symbol_language): New function.
5660 (find_main_name): Use find_quick_global_symbol_language.
5661
2836752f
SM
56622020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5663
5664 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5665
64dc2d4b
BE
56662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5667
5668 * buildsym.c (record_line): Fix undefined behavior and preserve
5669 lines at eof.
5670
bbe3dc41
BE
56712020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5672
5673 * buildsym.c (record_line): Fix the resizing condition.
5674
6b4a335b
TT
56752020-04-01 Tom Tromey <tom@tromey.com>
5676
5677 * value.h (value_literal_complex): Add comment.
5678 * valops.c (value_literal_complex): Refer to value.h.
5679
3638a098
TT
56802020-04-01 Tom Tromey <tom@tromey.com>
5681
5682 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5683 (scalar_type): New rule, from typebase.
5684 (typebase): Use scalar_type. Recognize complex types.
5685 (field_name): Handle FLOAT_KEYWORD.
5686 (ident_tokens): Add _Complex and __complex__.
5687
c34e8714
TT
56882020-04-01 Tom Tromey <tom@tromey.com>
5689
5690 PR exp/25299:
5691 * valarith.c (promotion_type, complex_binop): New functions.
5692 (scalar_binop): Handle complex numbers. Use promotion_type.
5693 (value_pos, value_neg, value_complement): Handle complex numbers.
5694
fa649bb7
TT
56952020-04-01 Tom Tromey <tom@tromey.com>
5696
5697 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5698 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5699 (parse_number): Handle complex numbers.
5700
981c08ce
TT
57012020-04-01 Tom Tromey <tom@tromey.com>
5702
5703 * c-valprint.c (c_decorations): Change complex suffix to "i".
5704
4c99290d
TT
57052020-04-01 Tom Tromey <tom@tromey.com>
5706
5707 * valprint.c (generic_value_print_complex): Use accessors.
5708 * value.h (value_real_part, value_imaginary_part): Declare.
5709 * valops.c (value_real_part, value_imaginary_part): New
5710 functions.
5711 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5712
5b930b45
TT
57132020-04-01 Tom Tromey <tom@tromey.com>
5714
5715 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5716 (read_range_type): Update.
5717 * mdebugread.c (basic_type): Update.
5718 * go-lang.c (build_go_types): Use init_complex_type.
5719 * gdbtypes.h (struct main_type) <complex_type>: New member.
5720 (init_complex_type): Update.
5721 (arch_complex_type): Don't declare.
5722 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5723 Make name if none given. Use alloc_type_copy. Look for cached
5724 complex type.
5725 (arch_complex_type): Remove.
5726 (gdbtypes_post_init): Use init_complex_type.
5727 * f-lang.c (build_fortran_types): Use init_complex_type.
5728 * dwarf2/read.c (read_base_type): Update.
5729 * d-lang.c (build_d_types): Use init_complex_type.
5730 * ctfread.c (read_base_type): Update.
5731
53cccef1
TBA
57322020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5733
5734 * infrun.c (stop_all_threads): Update assertion, plus when
5735 stopping threads, take into account that we might be trying
5736 to stop an all-stop target.
5737 (stop_waiting): Call 'stop_all_threads' if there exists a
5738 non-stop target.
5739
a0714d30
TBA
57402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5741
5742 * target.h (exists_non_stop_target): New function declaration.
5743 * target.c (exists_non_stop_target): New function.
5744
60e22c1e
HD
57452020-04-01 Hannes Domani <ssbssa@yahoo.de>
5746
5747 PR gdb/24789
5748 * eval.c (is_integral_or_integral_reference): New function.
5749 (evaluate_subexp_standard): Allow integer references in
5750 pointer arithmetic.
5751
e139a727
TBA
57522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5753
5754 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5755 check for no ptid in the stop reply when the target is non-stop.
5756
e0802d59
TT
57572020-04-01 Tom Tromey <tromey@adacore.com>
5758
5759 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5760 "name" parameter to rvalue reference. Initialize m_name_holder.
5761 <lookup_name_info>: New overloads.
5762 <name>: Return gdb::string_view.
5763 <c_str>: New method.
5764 <make_ignore_params>: Update.
5765 <search_name_hash>: Update.
5766 <language_lookup_name>: Return const char *.
5767 <m_name>: Change type.
5768 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5769 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5770 (lookup_name_info::match_any): Update.
5771 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5772 Update.
5773 * minsyms.c (linkage_name_str): Update.
5774 * language.c (default_symbol_name_matcher): Update.
5775 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5776 Update.
5777 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5778 (ada_lookup_name_info::ada_lookup_name_info): Update.
5779 (literal_symbol_name_matcher): Update.
5780
8c072cb6
TT
57812020-04-01 Tom Tromey <tromey@adacore.com>
5782
5783 * psymtab.c (psymtab_search_name): Remove function.
5784 (psym_lookup_symbol): Create search name and lookup name here.
5785 (lookup_partial_symbol): Remove "name" parameter; add
5786 lookup_name.
5787 (psym_expand_symtabs_for_function): Update.
5788
6f29a534
TT
57892020-03-31 Joel Jones <joelkevinjones@gmail.com>
5790
5791 PR tui/25597:
5792 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5793
af62665e
TT
57942020-03-31 Tom Tromey <tromey@adacore.com>
5795
5796 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5797 memcpy.
5798
d1a89da5
NC
57992020-03-30 Nelson Chu <nelson.chu@sifive.com>
5800
5801 * features/riscv/32bit-csr.xml: Regenerated.
5802 * features/riscv/64bit-csr.xml: Regenerated.
5803
d8af9068
TT
58042020-03-30 Tom Tromey <tromey@adacore.com>
5805
5806 * ada-valprint.c (print_variant_part): Update.
5807 * ada-lang.h (ada_which_variant_applies): Update.
5808 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5809 outer_valaddr parameters; replace with "outer" value parameter.
5810 (to_fixed_variant_branch_type): Update.
5811
227c0bf4
PFC
58122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5813
5814 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5815 <list>. Remove inclusion of observable.h.
5816 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5817 (struct arch_lwp_info): New struct.
5818 (class ppc_linux_dreg_interface): New class.
5819 (struct ppc_linux_process_info): New struct.
5820 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5821 <low_new_clone, low_forget_process, low_prepare_to_resume>
5822 <copy_thread_dreg_state, mark_thread_stale>
5823 <mark_debug_registers_changed, register_hw_breakpoint>
5824 <clear_hw_breakpoint, register_wp, clear_wp>
5825 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5826 <num_memory_accesses, get_trigger_type>
5827 <create_watchpoint_request, hwdebug_point_cmp>
5828 <init_arch_lwp_info, get_arch_lwp_info>
5829 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5830 methods.
5831 <struct ptid_hash>: New inner struct.
5832 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5833 members.
5834 (saved_dabr_value, hwdebug_info, max_slots_number)
5835 (struct hw_break_tuple, struct thread_points, ppc_threads)
5836 (have_ptrace_hwdebug_interface)
5837 (hwdebug_find_thread_points_by_tid)
5838 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5839 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5840 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5841 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5842 use m_dreg_interface.
5843 (hwdebug_point_cmp): Change to...
5844 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5845 reference arguments instead of pointers.
5846 (ppc_linux_nat_target::ranged_break_num_registers): Use
5847 m_dreg_interface.
5848 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5849 m_dreg_interface. Call register_hw_breakpoint.
5850 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5851 m_dreg_interface. Call clear_hw_breakpoint.
5852 (get_trigger_type): Change to...
5853 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5854 comment.
5855 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5856 use m_dreg_interface. Call register_hw_breakpoint.
5857 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5858 use m_dreg_interface. Call clear_hw_breakpoint.
5859 (can_use_watchpoint_cond_accel): Change to...
5860 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5861 method. Update comment, use m_dreg_interface and
5862 m_process_info.
5863 (calculate_dvc): Change to...
5864 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5865 m_dreg_interface.
5866 (num_memory_accesses): Change to...
5867 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5868 (check_condition): Change to...
5869 (ppc_linux_nat_target::check_condition): ...this method.
5870 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5871 comment, use m_dreg_interface.
5872 (create_watchpoint_request): Change to...
5873 (ppc_linux_nat_target::create_watchpoint_request): ...this
5874 method. Use m_dreg_interface.
5875 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5876 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5877 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5878 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5879 (ppc_linux_nat_target::low_forget_process)
5880 (ppc_linux_nat_target::low_new_fork)
5881 (ppc_linux_nat_target::low_new_clone)
5882 (ppc_linux_nat_target::low_delete_thread)
5883 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5884 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5885 only call mark_thread_stale.
5886 (ppc_linux_thread_exit): Remove.
5887 (ppc_linux_nat_target::stopped_data_address): Change to...
5888 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5889 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5890 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5891 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5892 comment. Call low_stopped_data_address.
5893 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5894 m_dreg_interface.
5895 (ppc_linux_nat_target::masked_watch_num_registers): Use
5896 m_dreg_interface.
5897 (ppc_linux_nat_target::copy_thread_dreg_state)
5898 (ppc_linux_nat_target::mark_thread_stale)
5899 (ppc_linux_nat_target::mark_debug_registers_changed)
5900 (ppc_linux_nat_target::register_hw_breakpoint)
5901 (ppc_linux_nat_target::clear_hw_breakpoint)
5902 (ppc_linux_nat_target::register_wp)
5903 (ppc_linux_nat_target::clear_wp)
5904 (ppc_linux_nat_target::init_arch_lwp_info)
5905 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5906 (_initialize_ppc_linux_nat): Remove observer callback.
5907
4db10d8f
PFC
59082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5909
5910 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5911 (ppc_linux_nat_target::auxv_parse)
5912 (ppc_linux_nat_target::read_description)
5913 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5914 Move up.
5915
1310c1b0
PFC
59162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5917
5918 * linux-nat.h (low_new_clone): New method.
5919 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5920
69b037c3
SM
59212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5924 (dbx_expand_psymtab): ... this.
5925 (start_psymtab): Update.
5926 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5927 (mdebug_expand_psymtab): ... this.
5928 (parse_partial_symbols): Update.
5929 (new_psymtab): Update.
5930 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5931 (xcoff_expand_psymtab): ... this.
5932 (xcoff_start_psymtab): Update.
5933
48993951
SM
59342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5937 <expand_dependencies>: ... this.
5938 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5939 (partial_symtab::expand_dependencies): ... this.
5940 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5941 Update.
5942 (dwarf2_psymtab::expand_psymtab): Update.
5943 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5944 * mdebugread.c (psymtab_to_symtab_1): Update.
5945 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5946
3ad83046
SM
59472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * psympriv.h (discard_psymtab): Remove.
5950 * dbxread.c (dbx_end_psymtab): Update.
5951 * xcoffread.c (xcoff_end_psymtab): Update.
5952
4d1b9ab6
TT
59532020-03-28 Tom Tromey <tom@tromey.com>
5954
5955 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5956 comment.
5957
f1749218
TT
59582020-03-28 Tom Tromey <tom@tromey.com>
5959
5960 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5961
ebea7626
HD
59622020-03-27 Hannes Domani <ssbssa@yahoo.de>
5963
5964 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5965
a879b4d5
JB
59662020-03-26 John Baldwin <jhb@FreeBSD.org>
5967
5968 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5969
0826b30a
TT
59702020-03-26 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5973 (mark_common_block_symbol_computed, read_tag_string_type)
5974 (attr_to_dynamic_prop, read_subrange_type): Update.
5975 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5976 to be methods on struct attribute.
5977 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5978 (read_call_site_scope, partial_die_info::read)
5979 (partial_die_info::read, lookup_die_type, follow_die_ref):
5980 Update.
5981 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5982 from dwarf2_get_ref_die_offset.
5983 (attribute::constant_value): New method, from
5984 dwarf2_get_attr_constant_value.
5985 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5986 Declare method.
5987 <constant_value>: New method.
5988
2b2558bf
TT
59892020-03-26 Tom Tromey <tom@tromey.com>
5990
5991 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5992 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5993 (dwarf_type_encoding_name): Move to stringify.c.
5994 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5995 * dwarf2/stringify.c: New file.
5996 * dwarf2/stringify.h: New file.
5997
eeb64781
TT
59982020-03-26 Tom Tromey <tom@tromey.com>
5999
6000 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6001 Rewrite.
6002
a39fdb41
TT
60032020-03-26 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6006 methods.
6007 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6008 (lookup_ranges_base): Likewise.
6009 (read_cutu_die_from_dwo, read_full_die_1): Update.
6010
436c571c
TT
60112020-03-26 Tom Tromey <tom@tromey.com>
6012
6013 * dwarf2/read.c (read_import_statement, read_file_scope)
6014 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6015 (read_lexical_block_scope, read_call_site_scope)
6016 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6017 (handle_struct_member_die, process_structure_scope)
6018 (update_enumeration_type_from_children)
6019 (process_enumeration_scope, read_array_type, read_common_block)
6020 (read_namespace, read_module, read_subroutine_type): Update.
6021 (sibling_die): Remove.
6022
052c8bb8
TT
60232020-03-26 Tom Tromey <tom@tromey.com>
6024
6025 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6026 (build_type_psymtabs_reader, read_structure_type)
6027 (read_enumeration_type, read_full_die_1): Update.
6028 (dwarf2_attr_no_follow): Move to die.h.
6029 * dwarf2/die.h (struct die_info) <attr>: New method.
6030
2b24b6e4
TT
60312020-03-26 Tom Tromey <tom@tromey.com>
6032
6033 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6034 <base_address>: Now an optional.
6035 (dwarf2_find_base_address, dwarf2_rnglists_process)
6036 (dwarf2_ranges_process, fill_in_loclist_baton)
6037 (dwarf2_symbol_mark_computed): Update.
6038
c2d50fd0
TT
60392020-03-26 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2/read.c (struct die_info): Move to die.h.
6042 * dwarf2/die.h: New file.
6043
0df7ad3a
TT
60442020-03-26 Tom Tromey <tom@tromey.com>
6045
6046 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6047 * dwarf2/read.c
6048 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6049 Move to line-header.c.
6050 (read_checked_initial_length_and_offset, read_formatted_entries):
6051 Likewise.
6052 (dwarf_decode_line_header): Split into two.
6053 * dwarf2/line-header.c
6054 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6055 Move from read.c.
6056 (read_checked_initial_length_and_offset, read_formatted_entries):
6057 Likewise.
6058 (dwarf_decode_line_header): New function, split from read.c.
6059
86c0bb4c
TT
60602020-03-26 Tom Tromey <tom@tromey.com>
6061
6062 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6063 Declare method.
6064 * dwarf2/read.c (read_attribute_value): Update.
6065 (dwarf2_per_objfile::read_line_string): Rename from
6066 read_indirect_line_string.
6067 (read_formatted_entries): Update.
6068
2ef46c2f
TT
60692020-03-26 Tom Tromey <tom@tromey.com>
6070
6071 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6072 variable.
6073
4f9c1eda
TT
60742020-03-26 Tom Tromey <tom@tromey.com>
6075
6076 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6077 const.
6078 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6079 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6080 parameter const.
6081
5a0e026f
TT
60822020-03-26 Tom Tromey <tom@tromey.com>
6083
6084 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6085 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6086 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6087 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6088
8844c11b
TT
60892020-03-26 Tom Tromey <tom@tromey.com>
6090
6091 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6092 file_names_size, file_full_name, file_file_name>: Use const.
6093 <file_name_at, file_names>: Add const overload.
6094 * dwarf2/line-header.c (line_header::file_file_name)
6095 (line_header::file_full_name): Update.
6096
c90ec28a
TT
60972020-03-26 Tom Tromey <tom@tromey.com>
6098
6099 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6100 (macro_start_file, consume_improper_spaces)
6101 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6102 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6103 (dwarf_decode_macros): Move to macro.c.
6104 * dwarf2/macro.c: New file.
6105 * dwarf2/macro.h: New file.
6106 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6107
4f44ae6c
TT
61082020-03-26 Tom Tromey <tom@tromey.com>
6109
6110 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6111 method.
6112 * dwarf2/section.c: New method. From
6113 read_indirect_string_at_offset_from.
6114 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6115 (read_indirect_string_at_offset_from): Move to section.c.
6116 (read_indirect_string_at_offset): Rewrite.
6117 (read_indirect_line_string_at_offset): Remove.
6118 (read_indirect_string, read_indirect_line_string)
6119 (dwarf_decode_macro_bytes): Update.
6120
a0194fa8
TT
61212020-03-26 Tom Tromey <tom@tromey.com>
6122
6123 * dwarf2/section.h (struct dwarf2_section_info)
6124 <overload_complaint>: Declare.
6125 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6126 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6127 Rename from dwarf2_section_buffer_overflow_complaint.
6128 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6129 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6130
3d27bbdb
TT
61312020-03-26 Tom Tromey <tom@tromey.com>
6132
6133 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6134 Declare.
6135 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6136 Move from read.c.
6137 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6138 to section.c.
6139
9eac9650
TT
61402020-03-26 Tom Tromey <tom@tromey.com>
6141
6142 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6143
bf80d710
TT
61442020-03-26 Tom Tromey <tom@tromey.com>
6145
6146 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6147 "builder".
6148 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6149 parameter.
6150 (dwarf_decode_macros): Update.
6151
0314b390
TT
61522020-03-26 Tom Tromey <tom@tromey.com>
6153
6154 * dwarf2/read.c (read_attribute_value): Update.
6155 (read_indirect_string_from_dwz): Move to dwz.c; change into
6156 method.
6157 (dwarf_decode_macro_bytes): Update.
6158 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6159 * dwarf2/dwz.c: New file.
6160 * Makefile.in (COMMON_SFILES): Add dwz.c.
6161
9fda78b6
TT
61622020-03-26 Tom Tromey <tom@tromey.com>
6163
6164 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6165 * dwarf2/read.c: Add include.
6166 * dwarf2/index-write.c: Add include.
6167 * dwarf2/index-cache.c: Add include.
6168 * dwarf2/dwz.h: New file.
6169
33aa3c10
TT
61702020-03-25 Tom Tromey <tom@tromey.com>
6171
6172 * compile/compile-object-load.c (get_out_value_type): Mention
6173 correct symbol name in error message.
6174
d503b685
HD
61752020-03-25 Hannes Domani <ssbssa@yahoo.de>
6176
6177 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6178
7b1eff95
TV
61792020-03-25 Tom de Vries <tdevries@suse.de>
6180
6181 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6182 * symmisc.c (dump_symtab_1): Print user and includes fields.
6183 (maintenance_info_symtabs): Same.
6184
dd895392
AB
61852020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 PR gdb/25534
6188 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6189 (riscv_regcache_cooked_write): New function.
6190 (riscv_push_dummy_call): Use new function.
6191 (riscv_return_value): Likewise.
6192
5ab2fbf1
SM
61932020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6194
6195 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6196 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6197 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6198 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6199 * infrun.c (follow_fork): Likewise.
6200 (follow_fork_inferior): Likewise.
6201 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6202 * linux-nat.h (class linux_nat_target): Likewise.
6203 * remote.c (class remote_target) <follow_fork>: Likewise.
6204 (remote_target::follow_fork): Likewise.
6205 * target-delegates.c: Re-generate.
6206 * target.c (default_follow_fork): Likewise.
6207 (target_follow_fork): Likewise.
6208 * target.h (struct target_ops) <follow_fork>: Likewise.
6209 (target_follow_fork): Likewise.
6210
a64fafb5
TV
62112020-03-24 Tom de Vries <tdevries@suse.de>
6212
6213 * psymtab.c (maintenance_info_psymtabs): Print user field.
6214
fe26d3a3
TT
62152020-03-20 Tom Tromey <tromey@adacore.com>
6216
6217 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6218 const.
6219 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6220 const.
6221
c884cc46
SM
62222020-03-20 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * ptrace.m4: Don't check for ptrace declaration.
6225 * config.in: Re-generate.
6226 * configure: Re-generate.
6227 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6228 not defined.
6229
1ff700c2
KR
62302020-03-20 Kamil Rytarowski <n54@gmx.com>
6231
6232 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6233 `PTRACE_TYPE_RET'.
6234 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6235 * sparc-nat.c (gdb_ptrace): Likewise.
6236 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6237
f7d4f0b1
TT
62382020-03-20 Tom Tromey <tromey@adacore.com>
6239
6240 * c-exp.y (lex_one_token): Fix assert.
6241
f67210ff
TT
62422020-03-20 Tom Tromey <tromey@adacore.com>
6243
6244 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6245 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6246 strncpy call.
6247
1773be9e
TT
62482020-03-20 Tom Tromey <tromey@adacore.com>
6249
6250 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6251
70304be9
TT
62522020-03-20 Tom Tromey <tromey@adacore.com>
6253
6254 * ada-valprint.c (print_variant_part): Remove parameters; switch
6255 to value-based API.
6256 (print_field_values): Likewise.
6257 (ada_val_print_struct_union): Likewise.
6258 (ada_value_print_1): Update.
6259
9faa006d
KR
62602020-03-20 Kamil Rytarowski <n54@gmx.com>
6261
6262 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6263 nbsd_nat_target instead of inf_ptrace_target.
6264 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6265 nbsd_nat_target.
6266
4a90f062
KR
62672020-03-20 Kamil Rytarowski <n54@gmx.com>
6268
6269 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6270 it to the ptrace call.
6271 * (store_registers): Likewise.
6272
62732020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6274
6275 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6276 it to the ptrace call.
6277 * (store_registers): Likewise.
6278
2d07da27
LM
62792020-03-19 Luis Machado <luis.machado@linaro.org>
6280
6281 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6282 valid, fetch vg value from ptrace.
6283
f09db380
KR
62842020-03-19 Kamil Rytarowski <n54@gmx.com>
6285 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6286 * inf-ptrace.c: Likewise.
6287 * (gdb_ptrace): Add.
6288 * (inf_ptrace_target::resume): Update.
6289 * (inf_ptrace_target::xfer_partial): Likewise.
6290 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6291 * (inf_ptrace_peek_poke): Update.
6292
fcc7376e
KR
62932020-03-19 Kamil Rytarowski <n54@gmx.com>
6294
6295 * x86-bsd-nat.c (gdb_ptrace): New.
6296 * (x86bsd_dr_set): Add new argument `ptid'.
6297 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6298 x86bsd_dr_set_addr): Update.
6299
cada5fc9
AB
63002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6301
6302 * remote.c (remote_target::process_stop_reply): Handle events for
6303 all threads differently.
6304
19a2740f
AB
63052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * completer.c (completion_tracker::remove_completion): Define new
6308 function.
6309 * completer.h (completion_tracker::remove_completion): Declare new
6310 function.
6311 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6312 when adding a C++ function symbol.
6313
724fd9ba
AB
63142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * completer.c (completion_tracker::completion_hash_entry): Define
6317 new class.
6318 (advance_to_filename_complete_word_point): Call
6319 recompute_lowest_common_denominator.
6320 (completion_tracker::completion_tracker): Call discard_completions
6321 to setup the hash table.
6322 (completion_tracker::discard_completions): Allow for being called
6323 from the constructor, pass new equal function, and element deleter
6324 when constructing the hash table. Initialise new class member
6325 variables.
6326 (completion_tracker::maybe_add_completion): Remove use of
6327 m_entries_vec, and store more information into m_entries_hash.
6328 (completion_tracker::recompute_lcd_visitor): New function, most
6329 content taken from...
6330 (completion_tracker::recompute_lowest_common_denominator):
6331 ...here, this now just visits each item in the hash calling the
6332 above visitor.
6333 (completion_tracker::build_completion_result): Remove use of
6334 m_entries_vec, call recompute_lowest_common_denominator.
6335 * completer.h (completion_tracker::have_completions): Remove use
6336 of m_entries_vec.
6337 (completion_tracker::completion_hash_entry): Declare new class.
6338 (completion_tracker::recompute_lowest_common_denominator): Change
6339 function signature.
6340 (completion_tracker::recompute_lcd_visitor): Declare new function.
6341 (completion_tracker::m_entries_vec): Delete.
6342 (completion_tracker::m_entries_hash): Initialize to NULL.
6343 (completion_tracker::m_lowest_common_denominator_valid): New
6344 member variable.
6345 (completion_tracker::m_lowest_common_denominator_max_length): New
6346 member variable.
6347
5a82b8a1
KR
63482020-03-17 Kamil Rytarowski <n54@gmx.com>
6349
6350 * regformats/regdef.h: Put reg in gdb namespace.
6351
fb516a69
KR
63522020-03-17 Kamil Rytarowski <n54@gmx.com>
6353
6354 * i386-bsd-nat.c (gdb_ptrace): New.
6355 * (i386bsd_fetch_inferior_registers,
6356 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6357 * (i386bsd_fetch_inferior_registers,
6358 i386bsd_store_inferior_registers) Use gdb_ptrace.
6359
1c0aa1fb
KR
63602020-03-17 Kamil Rytarowski <n54@gmx.com>
6361
6362 * amd64-bsd-nat.c (gdb_ptrace): New.
6363 * (amd64bsd_fetch_inferior_registers,
6364 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6365 * (amd64bsd_fetch_inferior_registers,
6366 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6367
5ccd2fb7
KR
63682020-03-17 Kamil Rytarowski <n54@gmx.com>
6369
6370 * user-regs.c (user_reg::read): Rename to...
6371 (user_reg::xread): ...this.
6372 * (append_user_reg): Rename argument `read' to `xread'.
6373 * (user_reg_add_builtin): Likewise.
6374 * (user_reg_add): Likewise.
6375 * (value_of_user_reg): Likewise.
6376
2108a63a
KR
63772020-03-17 Kamil Rytarowski <n54@gmx.com>
6378
6379 * sparc-nat.c (gdb_ptrace): New.
6380 * sparc-nat.c (sparc_fetch_inferior_registers)
6381 (sparc_store_inferior_registers) Remove obsolete comment.
6382 * sparc-nat.c (sparc_fetch_inferior_registers)
6383 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6384 * sparc-nat.c (sparc_fetch_inferior_registers)
6385 (sparc_store_inferior_registers) Use gdb_ptrace.
6386
a225c9a8
KR
63872020-03-17 Kamil Rytarowski <n54@gmx.com>
6388
6389 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6390 it to the ptrace call.
6391 * sh-nbsd-nat.c (store_registers): Likewise.
6392
98097623
KR
63932020-03-17 Kamil Rytarowski <n54@gmx.com>
6394
6395 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6396 nbsd_nat_target instead of inf_ptrace_target.
6397 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6398 nbsd_nat_target.
6399
9e38d619
KR
64002020-03-17 Kamil Rytarowski <n54@gmx.com>
6401
6402 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6403
a2ecbe9f
KR
64042020-03-17 Kamil Rytarowski <n54@gmx.com>
6405
6406 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6407 <sys/sysctl.h>.
6408 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6409
58990295
TV
64102020-03-17 Tom de Vries <tdevries@suse.de>
6411
6412 PR gdb/23710
6413 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6414 fields.
6415 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6416 fields.
6417 (process_imported_unit_die): Skip import of c++ CUs.
6418
771dd3a8
TT
64192020-03-16 Tom Tromey <tom@tromey.com>
6420
6421 * p-valprint.c (pascal_object_print_value): Initialize
6422 base_value.
6423
817a7585
AK
64242020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6425 Shahab Vahedi <shahab@synopsys.com>
6426
6427 * Makefile.in: Add arch/arc.o
6428 * configure.tgt: Likewise.
6429 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6430 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6431 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6432 * arc-tdep.h (arc_read_description): Add proto type.
6433 * arch/arc.c: New file.
6434 * arch/arc.h: Likewise.
6435 * features/Makefile: Replace old target descriptions with new.
6436 * features/arc-arcompact.c: Remove.
6437 * features/arc-arcompact.xml: Likewise.
6438 * features/arc-v2.c: Likewise
6439 * features/arc-v2.xml: Likewise
6440 * features/arc/aux-arcompact.xml: New file.
6441 * features/arc/aux-v2.xml: Likewise.
6442 * features/arc/core-arcompact.xml: Likewise.
6443 * features/arc/core-v2.xml: Likewise.
6444 * features/arc/aux-arcompact.c: Generate.
6445 * features/arc/aux-v2.c: Likewise.
6446 * features/arc/core-arcompact.c: Likewise.
6447 * features/arc/core-v2.c: Likewise.
6448 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6449
67430cd0
TT
64502020-03-16 Tom Tromey <tromey@adacore.com>
6451
6452 PR gdb/25663:
6453 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6454 putting value into bcache.
6455
30efb6c7
SM
64562020-03-16 Simon Marchi <simon.marchi@efficios.com>
6457
6458 PR gdb/21500
6459 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6460 to...
6461 (amd64_windows_init_abi_common): ... this. Don't set size of
6462 long type.
6463 (amd64_windows_init_abi): New function.
6464 (amd64_cygwin_init_abi): New function.
6465 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6466 the Cygwin OS ABI.
6467 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6468 comment.
6469
8db52437
SM
64702020-03-16 Simon Marchi <simon.marchi@efficios.com>
6471
6472 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6473 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6474 (pe_import_directory_entry): New struct type.
6475 (is_linked_with_cygwin_dll): New function.
6476 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6477 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6478 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6479
5982a56a
SM
64802020-03-16 Simon Marchi <simon.marchi@efficios.com>
6481
6482 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6483 i386_cygwin_core_osabi_sniffer.
6484
7a1998df
SM
64852020-03-16 Simon Marchi <simon.marchi@efficios.com>
6486
6487 * i386-cygwin-tdep.c: Rename to...
6488 * i386-windows-tdep.c: ... this.
6489 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6490 i386-windows-tdep.c.
6491 * configure.tgt: Likewise.
6492
053205cc
SM
64932020-03-16 Simon Marchi <simon.marchi@efficios.com>
6494
6495 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6496 * osabi.c (gdb_osabi_names): Add "Windows".
6497 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6498 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6499 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6500 i386_cygwin_osabi_sniffer.
6501 (_initialize_i386_cygwin_tdep): Register OS ABI
6502 GDB_OSABI_WINDOWS for i386.
6503 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6504 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6505 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6506 for x86-64.
6507 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6508 when the target matches '*-*-mingw*'.
6509
fe4b2ee6
SM
65102020-03-16 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * defs.h (enum gdb_osabi): Move to...
6513 * osabi.h (enum gdb_osabi): ... here.
6514 * gdbarch.sh: Include osabi.h in gdbarch.h.
6515 * gdbarch.h: Re-generate.
6516
cb9b645d
SM
65172020-03-16 Simon Marchi <simon.marchi@efficios.com>
6518
6519 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6520 function.
6521 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6522
3293bbaf
TT
65232020-03-14 Tom Tromey <tom@tromey.com>
6524
6525 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6526 for C++.
6527 (c_type_print_modifier): Likewise. Add "language" parameter.
6528 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6529 (c_type_print_base_1): Update.
6530 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6531 constants.
6532 * type-stack.c (type_stack::insert): Handle tp_atomic and
6533 tp_restrict.
6534 (type_stack::follow_type_instance_flags): Likewise.
6535 (type_stack::follow_types): Likewise. Merge type-following code.
6536 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6537 (space_identifier, cv_with_space_id)
6538 (const_or_volatile_or_space_identifier_noopt)
6539 (const_or_volatile_or_space_identifier): Remove.
6540 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6541 rules.
6542 (ptr_operator, typebase): Update.
6543 (enum token_flag) <FLAG_C>: New constant.
6544 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6545 "_Atomic".
6546 (lex_one_token): Handle FLAG_C.
6547
154151a6
KR
65482020-03-14 Kamil Rytarowski <n54@gmx.com>
6549
6550 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6551 it to the ptrace call.
6552 * m68k-bsd-nat.c (store_registers): Likewise.
6553
bc107784
KR
65542020-03-14 Kamil Rytarowski <n54@gmx.com>
6555
6556 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6557 gdb_byte *.
6558 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6559 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6560 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6561
01a80117
KR
65622020-03-14 Kamil Rytarowski <n54@gmx.com>
6563
6564 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6565 nbsd_nat_target instead of inf_ptrace_target.
6566 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6567 nbsd_nat_target.
6568
f90280ca
KR
65692020-03-14 Kamil Rytarowski <n54@gmx.com>
6570
6571 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6572 register_t.
6573
6def66f1
KR
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6577 it to the ptrace call.
6578 * alpha-bsd-nat.c (store_registers): Likewise.
6579
66eaca97
KR
65802020-03-14 Kamil Rytarowski <n54@gmx.com>
6581
6582 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6583 includes.
6584 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6585 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6586 fill_fpregset): Likewise.
6587
4fed520b
KR
65882020-03-14 Kamil Rytarowski <n54@gmx.com>
6589
6590 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6591 nbsd_nat_target instead of inf_ptrace_target.
6592 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6593 nbsd_nat_target.
6594
2190cf06
KR
65952020-03-14 Kamil Rytarowski <n54@gmx.com>
6596
6597 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6598 register_t.
6599
75c56d3d
KR
66002020-03-14 Kamil Rytarowski <n54@gmx.com>
6601
6602 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6603 it to the ptrace call.
6604 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6605 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6606 * arm-nbsd-nat.c (store_register): Likewise.
6607 * arm-nbsd-nat.c (store_regs): Likewise.
6608 * arm-nbsd-nat.c (store_fp_register): Likewise.
6609 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6610
6018d381
KR
66112020-03-14 Kamil Rytarowski <n54@gmx.com>
6612
6613 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6614 nbsd_nat_target instead of inf_ptrace_target.
6615 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6616 nbsd_nat_target.
6617
013f99f0
KR
66182020-03-14 Kamil Rytarowski <n54@gmx.com>
6619
6620 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6621 it to the ptrace call.
6622 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6623
12753073
KR
66242020-03-14 Kamil Rytarowski <n54@gmx.com>
6625
6227b330
KR
6626 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6627 it to the ptrace call.
6628 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6629
66302020-03-14 Kamil Rytarowski <n54@gmx.com>
6631
6632 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6633 gdb_byte *.
12753073
KR
6634 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6635
d5be5fa4
KR
66362020-03-14 Kamil Rytarowski <n54@gmx.com>
6637
6638 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6639 instead of inf_ptrace_target.
6640 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6641 nbsd_nat_target.
6642
8110f842
KR
66432020-03-14 Kamil Rytarowski <n54@gmx.com>
6644
6645 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6646 register_t.
6647
52feded7
KR
66482020-03-14 Kamil Rytarowski <n54@gmx.com>
6649
6650 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6651 register_t.
6652
25567eee
KR
66532020-03-14 Kamil Rytarowski <n54@gmx.com>
6654
6655 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6656 register_t.
6657
426a9c18
TT
66582020-03-13 Tom Tromey <tom@tromey.com>
6659
6660 * value.h (val_print): Don't declare.
6661 * valprint.h (val_print_array_elements)
6662 (val_print_scalar_formatted, generic_val_print): Don't declare.
6663 * valprint.c (generic_val_print_array): Take a struct value.
6664 (generic_val_print_ptr, generic_val_print_memberptr)
6665 (generic_val_print_bool, generic_val_print_int)
6666 (generic_val_print_char, generic_val_print_complex)
6667 (generic_val_print): Remove.
6668 (generic_value_print): Update.
6669 (do_val_print): Remove unused parameters. Don't call
6670 la_val_print.
6671 (val_print): Remove.
6672 (common_val_print): Update. Don't call value_check_printable.
6673 (val_print_scalar_formatted, val_print_array_elements): Remove.
6674 * rust-lang.c (rust_val_print): Remove.
6675 (rust_language_defn): Update.
6676 * p-valprint.c (pascal_val_print): Remove.
6677 (pascal_value_print_inner): Update.
6678 (pascal_object_print_val_fields, pascal_object_print_val):
6679 Remove.
6680 (pascal_object_print_static_field): Update.
6681 * p-lang.h (pascal_val_print): Don't declare.
6682 * p-lang.c (pascal_language_defn): Update.
6683 * opencl-lang.c (opencl_language_defn): Update.
6684 * objc-lang.c (objc_language_defn): Update.
6685 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6686 * m2-lang.h (m2_val_print): Don't declare.
6687 * m2-lang.c (m2_language_defn): Update.
6688 * language.h (struct language_defn) <la_val_print>: Remove.
6689 * language.c (unk_lang_value_print_inner): Rename. Change
6690 argument types.
6691 (unknown_language_defn, auto_language_defn): Update.
6692 * go-valprint.c (go_val_print): Remove.
6693 * go-lang.h (go_val_print): Don't declare.
6694 * go-lang.c (go_language_defn): Update.
6695 * f-valprint.c (f_val_print): Remove.
6696 * f-lang.h (f_value_print): Don't declare.
6697 * f-lang.c (f_language_defn): Update.
6698 * d-valprint.c (d_val_print): Remove.
6699 * d-lang.h (d_value_print): Don't declare.
6700 * d-lang.c (d_language_defn): Update.
6701 * cp-valprint.c (cp_print_value_fields)
6702 (cp_print_value_fields_rtti, cp_print_value): Remove.
6703 (cp_print_static_field): Update.
6704 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6705 (c_val_print_struct, c_val_print_union, c_val_print_int)
6706 (c_val_print_memberptr, c_val_print): Remove.
6707 * c-lang.h (c_val_print_array, cp_print_value_fields)
6708 (cp_print_value_fields_rtti): Don't declare.
6709 * c-lang.c (c_language_defn, cplus_language_defn)
6710 (asm_language_defn, minimal_language_defn): Update.
6711 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6712 (ada_val_print_enum): Take a struct value.
6713 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6714 (ada_val_print): Remove.
6715 (ada_value_print_1): Update.
6716 (printable_val_type): Remove.
6717 * ada-lang.h (ada_val_print): Don't declare.
6718 * ada-lang.c (ada_language_defn): Update.
6719
42331a1e
TT
67202020-03-13 Tom Tromey <tom@tromey.com>
6721
6722 * valprint.c (do_val_print): Update.
6723 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6724 a struct value.
6725 (value_to_value_object_no_release): Declare.
6726 * python/py-value.c (value_to_value_object_no_release): New
6727 function.
6728 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6729 struct value.
6730 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6731 function.
6732 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6733 a struct value.
6734 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6735 Declare.
6736 (gdbscm_apply_val_pretty_printer): Take a struct value.
6737 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6738 value.
6739 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6740 value.
6741 * extension-priv.h (struct extension_language_ops)
6742 <apply_val_pretty_printer>: Take a struct value.
6743 * cp-valprint.c (cp_print_value): Create a struct value.
6744 (cp_print_value): Update.
6745
3a916a97
TT
67462020-03-13 Tom Tromey <tom@tromey.com>
6747
6748 * ada-valprint.c (print_field_values): Call common_val_print.
6749
b59eac37
TT
67502020-03-13 Tom Tromey <tom@tromey.com>
6751
6752 * ada-valprint.c (val_print_packed_array_elements): Remove
6753 bitoffset and val parameters. Call common_val_print.
6754 (ada_val_print_string): Remove offset, address, and original_value
6755 parameters.
6756 (ada_val_print_array): Update.
6757 (ada_value_print_array): New function.
6758 (ada_value_print_1): Call it.
6759
03371129
TT
67602020-03-13 Tom Tromey <tom@tromey.com>
6761
6762 * ada-valprint.c (ada_value_print): Use common_val_print.
6763
2e088f8b
TT
67642020-03-13 Tom Tromey <tom@tromey.com>
6765
6766 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6767
39ef85a8
TT
67682020-03-13 Tom Tromey <tom@tromey.com>
6769
6770 * ada-valprint.c (ada_value_print_num): New function.
6771 (ada_value_print_1): Use it.
6772
b9fa6e07
TT
67732020-03-13 Tom Tromey <tom@tromey.com>
6774
6775 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6776
416595d6
TT
67772020-03-13 Tom Tromey <tom@tromey.com>
6778
6779 * ada-valprint.c (ada_value_print_ptr): New function.
6780 (ada_value_print_1): Use it.
6781
5b5e15ec
TT
67822020-03-13 Tom Tromey <tom@tromey.com>
6783
6784 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6785 call common_val_print.
6786 (ada_val_print_1): Update.
6787 (ada_value_print_1): New function.
6788 (ada_value_print_inner): Rewrite.
6789
fbf54e75
TT
67902020-03-13 Tom Tromey <tom@tromey.com>
6791
6792 * cp-valprint.c (cp_print_value_fields): Update.
6793 (cp_print_value): New function.
6794
64b653ca
TT
67952020-03-13 Tom Tromey <tom@tromey.com>
6796
6797 * m2-valprint.c (m2_value_print_inner): Use
6798 cp_print_value_fields.
6799 * cp-valprint.c (cp_print_value_fields): New function.
6800 * c-valprint.c (c_value_print_struct): New function.
6801 (c_value_print_inner): Use c_value_print_struct.
6802 * c-lang.h (cp_print_value_fields): Declare.
6803
6999f067
TT
68042020-03-13 Tom Tromey <tom@tromey.com>
6805
6806 * c-valprint.c (c_value_print_array): New function.
6807 (c_value_print_inner): Use it.
6808
ce80b8bd
TT
68092020-03-13 Tom Tromey <tom@tromey.com>
6810
6811 * c-valprint.c (c_value_print_memberptr): New function.
6812 (c_value_print_inner): Use it.
6813
2faac269
TT
68142020-03-13 Tom Tromey <tom@tromey.com>
6815
6816 * c-valprint.c (c_value_print_int): New function.
6817 (c_value_print_inner): Use it.
6818
da3e2c29
TT
68192020-03-13 Tom Tromey <tom@tromey.com>
6820
6821 * c-valprint.c (c_value_print_ptr): New function.
6822 (c_value_print_inner): Use it.
6823
50836231
TT
68242020-03-13 Tom Tromey <tom@tromey.com>
6825
6826 * c-valprint.c (c_value_print_inner): Rewrite.
6827
4f412b6e
TT
68282020-03-13 Tom Tromey <tom@tromey.com>
6829
6830 * valprint.c (generic_value_print_complex): New function.
6831 (generic_value_print): Use it.
6832
f5354008
TT
68332020-03-13 Tom Tromey <tom@tromey.com>
6834
6835 * valprint.c (generic_val_print_float): Don't call
6836 val_print_scalar_formatted.
6837 (generic_val_print, generic_value_print): Update.
6838
3eec3b05
TT
68392020-03-13 Tom Tromey <tom@tromey.com>
6840
6841 * valprint.c (generic_value_print_char): New function
6842 (generic_value_print): Use it.
6843
fdddfccb
TT
68442020-03-13 Tom Tromey <tom@tromey.com>
6845
6846 * valprint.c (generic_value_print_int): New function.
6847 (generic_value_print): Use it.
6848
6dde7521
TT
68492020-03-13 Tom Tromey <tom@tromey.com>
6850
6851 * valprint.c (generic_value_print_bool): New function.
6852 (generic_value_print): Use it.
6853
4112d2e6
TT
68542020-03-13 Tom Tromey <tom@tromey.com>
6855
6856 * valprint.c (generic_val_print_func): Simplify.
6857 (generic_val_print, generic_value_print): Update.
6858
65786af6
TT
68592020-03-13 Tom Tromey <tom@tromey.com>
6860
6861 * valprint.c (generic_val_print_flags): Remove.
6862 (generic_val_print, generic_value_print): Update.
6863 (val_print_type_code_flags): Add original_value parameter.
6864
40f3ce18
TT
68652020-03-13 Tom Tromey <tom@tromey.com>
6866
6867 * valprint.c (generic_val_print): Update.
6868 (generic_value_print): Update.
6869 * valprint.c (generic_val_print_enum): Don't call
6870 val_print_scalar_formatted.
6871
2a5b130b
TT
68722020-03-13 Tom Tromey <tom@tromey.com>
6873
6874 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6875 * valprint.c (generic_value_print_ptr): New function.
6876
abc66ce9
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * valprint.c (generic_value_print): Rewrite.
6880
07a32858
TT
68812020-03-13 Tom Tromey <tom@tromey.com>
6882
6883 * p-valprint.c (pascal_object_print_value_fields)
6884 (pascal_object_print_value): New functions.
6885
64d64d3a
TT
68862020-03-13 Tom Tromey <tom@tromey.com>
6887
6888 * p-valprint.c (pascal_value_print_inner): Rewrite.
6889
6a95a1f5
TT
68902020-03-13 Tom Tromey <tom@tromey.com>
6891
6892 * f-valprint.c (f_value_print_innner): Rewrite.
6893
59fcdac6
TT
68942020-03-13 Tom Tromey <tom@tromey.com>
6895
6896 * m2-valprint.c (m2_print_unbounded_array): New overload.
6897 (m2_print_unbounded_array): Update.
6898 (m2_print_array_contents): Take a struct value.
6899 (m2_value_print_inner): Rewrite.
6900
d133c3e1
TT
69012020-03-13 Tom Tromey <tom@tromey.com>
6902
6903 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6904 (d_value_print_inner): New function.
6905 * d-lang.h (d_value_print_inner): Declare.
6906 * d-lang.c (d_language_defn): Use d_value_print_inner.
6907
23b0f06b
TT
69082020-03-13 Tom Tromey <tom@tromey.com>
6909
6910 * go-valprint.c (go_value_print_inner): New function.
6911 * go-lang.h (go_value_print_inner): Declare.
6912 * go-lang.c (go_language_defn): Use go_value_print_inner.
6913
5f56f7cb
TT
69142020-03-13 Tom Tromey <tom@tromey.com>
6915
6916 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6917 API.
6918 (rust_val_print): Rewrite.
6919 (rust_value_print_inner): New function, from rust_val_print.
6920 (rust_language_defn): Use rust_value_print_inner.
6921
26792ee0
TT
69222020-03-13 Tom Tromey <tom@tromey.com>
6923
6924 * ada-valprint.c (ada_value_print_inner): New function.
6925 * ada-lang.h (ada_value_print_inner): Declare.
6926 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6927
24051bbe
TT
69282020-03-13 Tom Tromey <tom@tromey.com>
6929
6930 * f-valprint.c (f_value_print_innner): New function.
6931 * f-lang.h (f_value_print_innner): Declare.
6932 * f-lang.c (f_language_defn): Use f_value_print_innner.
6933
c0941be6
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * p-valprint.c (pascal_value_print_inner): New function.
6937 * p-lang.h (pascal_value_print_inner): Declare.
6938 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6939
62c4663d
TT
69402020-03-13 Tom Tromey <tom@tromey.com>
6941
6942 * m2-valprint.c (m2_value_print_inner): New function.
6943 * m2-lang.h (m2_value_print_inner): Declare.
6944 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6945
62182190
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6949 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6950 * c-valprint.c (c_value_print_inner): New function.
6951 * c-lang.h (c_value_print_inner): Declare.
6952 * c-lang.c (c_language_defn, cplus_language_defn)
6953 (asm_language_defn, minimal_language_defn): Use
6954 c_value_print_inner.
6955
1e592a8a
TT
69562020-03-13 Tom Tromey <tom@tromey.com>
6957
6958 * p-valprint.c (pascal_object_print_value_fields): Now static.
6959 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6960
7fe471e9
TT
69612020-03-13 Tom Tromey <tom@tromey.com>
6962
6963 * c-valprint.c (c_val_print_array): Simplify.
6964
d121c6ce
TT
69652020-03-13 Tom Tromey <tom@tromey.com>
6966
6967 * valprint.c (value_print_array_elements): New function.
6968 * valprint.h (value_print_array_elements): Declare.
6969
4dba70ee
TT
69702020-03-13 Tom Tromey <tom@tromey.com>
6971
6972 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6973 * mips-tdep.c (mips_print_register): Use
6974 value_print_scalar_formatted.
6975
4f9ae810
TT
69762020-03-13 Tom Tromey <tom@tromey.com>
6977
6978 * valprint.h (value_print_scalar_formatted): Declare.
6979 * valprint.c (value_print_scalar_formatted): New function.
6980
156bfec9
TT
69812020-03-13 Tom Tromey <tom@tromey.com>
6982
6983 * valprint.h (generic_value_print): Declare.
6984 * valprint.c (generic_value_print): New function.
6985
2b4e573d
TT
69862020-03-13 Tom Tromey <tom@tromey.com>
6987
6988 * valprint.c (do_val_print): Call la_value_print_inner, if
6989 available.
6990 * rust-lang.c (rust_language_defn): Update.
6991 * p-lang.c (pascal_language_defn): Update.
6992 * opencl-lang.c (opencl_language_defn): Update.
6993 * objc-lang.c (objc_language_defn): Update.
6994 * m2-lang.c (m2_language_defn): Update.
6995 * language.h (struct language_defn) <la_value_print_inner>: New
6996 member.
6997 * language.c (unknown_language_defn, auto_language_defn): Update.
6998 * go-lang.c (go_language_defn): Update.
6999 * f-lang.c (f_language_defn): Update.
7000 * d-lang.c (d_language_defn): Update.
7001 * c-lang.c (c_language_defn, cplus_language_defn)
7002 (asm_language_defn, minimal_language_defn): Update.
7003 * ada-lang.c (ada_language_defn): Update.
7004
a1f6a07c
TT
70052020-03-13 Tom Tromey <tom@tromey.com>
7006
7007 * c-valprint.c (c_value_print): Use common_val_print.
7008
410cf315
TT
70092020-03-13 Tom Tromey <tom@tromey.com>
7010
7011 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7012
72a45c93
TT
70132020-03-13 Tom Tromey <tom@tromey.com>
7014
7015 * f-valprint.c (f77_print_array_1, f_val_print): Use
7016 common_val_print.
7017
040f66bd
TT
70182020-03-13 Tom Tromey <tom@tromey.com>
7019
7020 * riscv-tdep.c (riscv_print_one_register_info): Use
7021 common_val_print.
7022
a6e05a6c
TT
70232020-03-13 Tom Tromey <tom@tromey.com>
7024
7025 * mi/mi-main.c (output_register): Use common_val_print.
7026
3444c526
TT
70272020-03-13 Tom Tromey <tom@tromey.com>
7028
7029 * infcmd.c (default_print_one_register_info): Use
7030 common_val_print.
7031
c2a44efe
TT
70322020-03-13 Tom Tromey <tom@tromey.com>
7033
7034 * valprint.h (common_val_print_checked): Declare.
7035 * valprint.c (common_val_print_checked): New function.
7036 * stack.c (print_frame_arg): Use common_val_print_checked.
7037
b0c26e99
TT
70382020-03-13 Tom Tromey <tom@tromey.com>
7039
7040 * valprint.c (do_val_print): New function, from val_print.
7041 (val_print): Use do_val_print.
7042 (common_val_print): Use do_val_print.
7043
ce3acbe9
TT
70442020-03-13 Tom Tromey <tom@tromey.com>
7045
7046 * valprint.c (value_print): Use scoped_value_mark.
7047
96c7f873
TV
70482020-03-13 Tom de Vries <tdevries@suse.de>
7049
7050 PR symtab/25646
7051 * psymtab.c (partial_symtab::partial_symtab): Don't set
7052 globals_offset and statics_offset. Push element onto
7053 current_global_psymbols and current_static_psymbols stacks.
7054 (concat): New function.
7055 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7056 element from current_global_psymbols and current_static_psymbols
7057 stacks. Concat popped elements to global_psymbols and
7058 static_symbols.
7059 (add_psymbol_to_list): Use current_global_psymbols and
7060 current_static_psymbols stacks.
7061 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7062 current_static_psymbols fields.
7063
6ba0a321
CB
70642020-03-12 Christian Biesinger <cbiesinger@google.com>
7065
7066 * corelow.c (sniff_core_bfd): Remove.
7067 (class core_target) <m_core_vec>: Remove.
7068 (core_target::core_target): Update.
7069 (core_file_fns): Remove.
7070 (deprecated_add_core_fns): Remove.
7071 (default_core_sniffer): Remove.
7072 (sniff_core_bfd): Remove.
7073 (default_check_format): Remove.
7074 (gdb_check_format): Remove.
7075 (core_target_open): Update.
7076 (core_target::get_core_register_section): Update.
7077 (get_core_registers_cb): Update.
7078 (core_target::fetch_registers): Update.
7079 * gdbcore.h (struct core_fns): Remove.
7080 (deprecated_add_core_fns): Remove.
7081 (default_core_sniffer): Remove.
7082 (default_check_format): Remove.
7083
227031b2
TT
70842020-03-12 Tom Tromey <tom@tromey.com>
7085
7086 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7087 CORE_ADDR.
7088 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7089
53807e9f
TT
70902020-03-12 Tom Tromey <tom@tromey.com>
7091
7092 * remote.c (remote_target::download_tracepoint)
7093 (remote_target::enable_tracepoint)
7094 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7095 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7096 sprintf_vma.
7097
64f25102
TT
70982020-03-12 Tom Tromey <tom@tromey.com>
7099
7100 * symfile-mem.c: Update CORE_ADDR size assert.
7101
272cd5a3
SM
71022020-03-12 Simon Marchi <simon.marchi@efficios.com>
7103
7104 * selftest.m4: Move to gdbsupport/.
7105 * acinclude.m4: Update path to selftest.m4.
7106
74cd3f9d
SM
71072020-03-12 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7110 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7111 gdbarch-selfselftests.c and selftest-arch.c.
7112 (SUBDIR_UNITTESTS_OBS): Rename to...
7113 (SELFTESTS_OBS): ... this.
7114 (COMMON_SFILES): Remove disasm-selftests.c and
7115 gdbarch-selftests.c.
7116 * configure.ac: Don't add selftest-arch.{c,o} to
7117 CONFIG_{SRCS,OBS}.
7118 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7119 preprocessor conditions.
7120
db6878ac
SM
71212020-03-12 Simon Marchi <simon.marchi@efficios.com>
7122
7123 * configure.ac: Don't source bfd/development.sh.
7124 * selftest.m4: Modify comment.
7125 * configure: Re-generate.
7126
4d696a5c
SM
71272020-03-12 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7130 not "true" or "false".
7131 * configure: Re-generate.
7132
8dd8e1c7
CB
71332020-03-12 Christian Biesinger <cbiesinger@google.com>
7134
7135 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7136 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7137 renamed to arm_nbsd_supply_gregset.
7138 (fetch_register): Update to call arm_nbsd_supply_gregset.
7139 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7140 (arm_netbsd_nat_target::fetch_registers): Update.
7141 (fetch_elfcore_registers): Removed.
7142 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7143 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7144 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7145 not require NetBSD system headers.
7146 (arm_nbsd_regset): New struct.
7147 (arm_nbsd_iterate_over_regset_sections): New function.
7148 (arm_netbsd_init_abi_common): Updated to call
7149 set_gdbarch_iterate_over_regset_sections.
7150 * arm-nbsd-tdep.h: New file.
7151
dd69bf7a
KB
71522020-03-11 Kevin Buettner <kevinb@redhat.com>
7153
7154 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7155 recursion.
7156
a0761e34
SM
71572020-03-11 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * configure: Re-generate.
7160
e7a82140
TT
71612020-03-11 Tom Tromey <tromey@adacore.com>
7162
7163 * ada-typeprint.c (print_choices): Fix comment.
7164
dcc050c8
AB
71652020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7168 previous item in the list, when the list has no items.
7169
1c33af77
TV
71702020-03-11 Tom de Vries <tdevries@suse.de>
7171
7172 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7173 PROP_LOCLIST handling code.
7174
8c95582d
AB
71752020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * buildsym-legacy.c (record_line): Pass extra parameter to
7178 record_line.
7179 * buildsym.c (buildsym_compunit::record_line): Take an extra
7180 parameter, reduce duplication in the line table, and record the
7181 is_stmt flag in the line table.
7182 * buildsym.h (buildsym_compunit::record_line): Add extra
7183 parameter.
7184 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7185 non-statement lines.
7186 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7187 this to the symtab builder.
7188 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7189 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7190 through to dwarf_record_line_1.
7191 * infrun.c (process_event_stop_test): When stepping, don't stop at
7192 a non-statement instruction, and only refresh the step info when
7193 we land in the middle of a line's range. Also add an extra
7194 comment.
7195 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7196 field.
7197 * record-btrace.c (btrace_find_line_range): Only record lines
7198 marked as is-statement.
7199 * stack.c (frame_show_address): Show the frame address if we are
7200 in a non-statement sal.
7201 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7202 (maintenance_print_one_line_table): Print a header for the is_stmt
7203 column, and include is_stmt information in the output.
7204 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7205 preference to non-statements.
7206 (find_pcs_for_symtab_line): Prefer is-statement entries.
7207 (find_line_common): Likewise.
7208 * symtab.h (struct linetable_entry): Add is_stmt field.
7209 (struct symtab_and_line): Likewise.
7210 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7211 arranging the line table.
7212
e4003a34
TV
72132020-03-07 Tom de Vries <tdevries@suse.de>
7214
7215 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7216 DIE.
7217
e8932576
TT
72182020-03-07 Tom Tromey <tom@tromey.com>
7219
7220 * valops.c (value_literal_complex): Remove obsolete comment.
7221 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7222 comment.
7223
29734269
SM
72242020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * infrun.h: Forward-declare thread_info.
7227 (set_step_info): Add thread_info parameter, add doc.
7228 * infrun.c (set_step_info): Add thread_info parameter, move doc
7229 to header.
7230 * infrun.c (process_event_stop_test): Pass thread to
7231 set_step_info call.
7232 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7233 set_step_info.
7234 (prepare_one_step): Add thread_info parameter, pass it to
7235 set_step_frame and prepare_one_step (recursive) call.
7236 (step_1): Pass thread to prepare_one_step call.
7237 (step_command_fsm::should_stop): Pass thread to
7238 prepare_one_step.
7239 (until_next_fsm): Pass thread to set_step_frame call.
7240 (finish_command): Pass thread to set_step_info call.
7241
b7d64b29
HD
72422020-03-06 Hannes Domani <ssbssa@yahoo.de>
7243
7244 * windows-tdep.c (windows_solib_create_inferior_hook):
7245 Check if inferior is running.
7246
09f2921c
TV
72472020-03-06 Tom de Vries <tdevries@suse.de>
7248
7249 * NEWS: Fix "the the".
7250 * ctfread.c: Same.
7251
fd760e79
TV
72522020-03-06 Tom de Vries <tdevries@suse.de>
7253
7254 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7255
20ea4a60
AB
72562020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * .dir-locals.el: Add a comment referencing the other copies of
7259 this file.
7260
0afbabf0
JB
72612020-03-05 John Baldwin <jhb@FreeBSD.org>
7262
7263 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7264 psargs.
7265
842806cb
TBA
72662020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7267
7268 * .gitattributes: New file.
7269
be1e3d3e
TT
72702020-03-04 Tom Tromey <tom@tromey.com>
7271
7272 * symmisc.c (print_symbol_bcache_statistics)
7273 (print_objfile_statistics): Update.
7274 * symfile.c (allocate_symtab): Use intern.
7275 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7276 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7277 macro_cache>: Remove.
7278 <string_cache>: New member.
7279 (struct objfile) <intern>: New methods.
7280 * elfread.c (elf_symtab_read): Use intern.
7281 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7282 (dwarf2_compute_name, dwarf2_physname)
7283 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7284 names.
7285 (guess_partial_die_structure_name): Update.
7286 (partial_die_info::fixup): Intern name.
7287 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7288 name.
7289 (dwarf2_name): Intern name. Update.
7290 * buildsym.c (buildsym_compunit::get_macro_table): Use
7291 string_cache.
7292
4e7625fd
TT
72932020-03-04 Tom Tromey <tom@tromey.com>
7294
7295 * jit.c (bfd_open_from_target_memory): Make "target" const.
7296 * corefile.c (gnutarget): Now const.
7297 * gdbcore.h (gnutarget): Now const.
7298
46f9f931
HD
72992020-03-04 Hannes Domani <ssbssa@yahoo.de>
7300
7301 * NEWS: Mention support for WOW64 processes.
7302 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7303 (amd64_windows_segment_register_p): Remove static.
7304 (_initialize_amd64_windows_nat): Update.
7305 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7306 * i386-windows-nat.c (context_offset): Update.
7307 (i386_mappings): Rename and remove static.
7308 (i386_windows_segment_register_p): Remove static.
7309 (_initialize_i386_windows_nat): Update.
7310 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7311 (STATUS_WX86_SINGLE_STEP): New macro.
7312 (EnumProcessModulesEx): New macro.
7313 (Wow64SuspendThread): New macro.
7314 (Wow64GetThreadContext): New macro.
7315 (Wow64SetThreadContext): New macro.
7316 (Wow64GetThreadSelectorEntry): New macro.
7317 (windows_set_context_register_offsets): Add static.
7318 (windows_set_segment_register_p): Likewise.
7319 (windows_add_thread): Adapt for WOW64 processes.
7320 (windows_fetch_one_register): Likewise.
7321 (windows_nat_target::fetch_registers): Likewise.
7322 (windows_store_one_register): Likewise.
7323 (display_selector): Likewise.
7324 (display_selectors): Likewise.
7325 (handle_exception): Likewise.
7326 (windows_continue): Likewise.
7327 (windows_nat_target::resume): Likewise.
7328 (windows_add_all_dlls): Likewise.
7329 (do_initial_windows_stuff): Likewise.
7330 (windows_nat_target::attach): Likewise.
7331 (windows_get_exec_module_filename): Likewise.
7332 (windows_nat_target::create_inferior): Likewise.
7333 (windows_xfer_siginfo): Likewise.
7334 (_initialize_loadable): Initialize Wow64SuspendThread,
7335 Wow64GetThreadContext, Wow64SetThreadContext,
7336 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7337 * windows-nat.h (windows_set_context_register_offsets):
7338 Remove declaration.
7339 (windows_set_segment_register_p): Likewise.
7340 (i386_windows_segment_register_p): Add declaration.
7341 (amd64_windows_segment_register_p): Likewise.
7342
440cf44e
LM
73432020-03-04 Luis Machado <luis.machado@linaro.org>
7344
7345 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7346 in "info registers" for AArch64/ARM.
7347
7348 The change caused "info registers" to not print GPR's.
7349
7350 gdb/ChangeLog:
7351
7352 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7353
7354 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7355 when reg->group is empty and reggroup is not.
7356
1009d92f
TT
73572020-03-03 Tom Tromey <tromey@adacore.com>
7358
7359 * dwarf2/frame.c (struct dwarf2_frame_cache)
7360 <checked_tailcall_bottom, entry_cfa_sp_offset,
7361 entry_cfa_sp_offset_p>: Remove members.
7362 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7363 (dwarf2_frame_prev_register): Don't call
7364 dwarf2_tailcall_sniffer_first.
7365 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7366 * frame-unwind.c (add_unwinder): New fuction.
7367 (frame_unwind_init): Use it. Add tailcall unwinder.
7368
5e5d66b6
AB
73692020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7370 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7371
7372 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7373 value should be printed as true.
7374
584cf46d
HD
73752020-03-03 Hannes Domani <ssbssa@yahoo.de>
7376
7377 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7378 (windows_init_abi): Set and use windows_so_ops.
7379
7b973adc
SDJ
73802020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7381
7382 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7383 when verifying if dealing with a convenience variable.
7384
bb7b70ab
LM
73852020-03-03 Luis Machado <luis.machado@linaro.org>
7386
7387 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7388
9822cb57
SM
73892020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * infrun.c (gdbarch_supports_displaced_stepping): New.
7392 (use_displaced_stepping): Break up conditions in smaller pieces.
7393 Use gdbarch_supports_displaced_stepping.
7394 (displaced_step_prepare_throw): Use
7395 gdbarch_supports_displaced_stepping.
7396
63e163f2
AB
73972020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7398
7399 * NEWS: Mention new behaviour of the history filename.
7400 * top.c (write_history_p): Add comment.
7401 (show_write_history_p): Add header comment, give a different
7402 message when history writing is on, but the history filename is
7403 empty.
7404 (history_filename): Add comment.
7405 (history_filename_empty): New function.
7406 (show_history_filename): Add header comment, give a different
7407 message when the filename is empty.
7408 (init_history): Compare history_filename against nullptr, and only
7409 read history if the filename is not empty.
7410 (set_history_filename): Add header comment, and only make
7411 non-empty filenames absolute.
7412 (init_main): Make the filename argument to 'set history filename'
7413 optional.
7414
81b86b97
CB
74152020-03-02 Christian Biesinger <cbiesinger@google.com>
7416
7417 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7418 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7419 (fetch_fp_register): Update.
7420 (fetch_fp_regs): Update.
7421 (store_fp_register): Update.
7422 (store_fp_regs): Update.
7423 (arm_netbsd_nat_target::read_description): New function.
7424 (fetch_elfcore_registers): Update.
7425
24ed6739
AB
74262020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7429 general_thread if the stop reply is missing a thread-id.
7430 (remote_target::process_stop_reply): Use the first non-exited
7431 thread if the target didn't pass a thread-id.
7432 * infrun.c (do_target_wait): Move call to
7433 switch_to_inferior_no_thread to ....
7434 (do_target_wait_1): ... here.
7435
a84bb2a0
JT
74362020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7437
7438 * debuginfod-support.c: Include defs.h first.
7439
658dadf0
TV
74402020-02-28 Tom de Vries <tdevries@suse.de>
7441
7442 * symfile.c (set_initial_language): Use default language for lookup.
7443
4ebe4877
SM
74442020-02-28 Simon Marchi <simon.marchi@efficios.com>
7445
7446 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7447 reader variable, pass `this` to read_cutu_die_from_dwo.
7448
e5da1139
AM
74492020-02-27 Aaron Merey <amerey@redhat.com>
7450
7451 * source.c (open_source_file): Check for nullptr when computing
7452 srcpath.
7453
317f7127
TT
74542020-02-27 Tom Tromey <tromey@adacore.com>
7455
7456 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7457 member.
7458 (dwarf2_add_field): Don't update nfields.
7459 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7460
3104d9ee
AB
74612020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7462
7463 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7464 abs.
7465
b83470bf
TT
74662020-02-26 Tom Tromey <tom@tromey.com>
7467
7468 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7469 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7470 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7471 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7472 per_cu_data.
7473
edfe0a0c
TT
74742020-02-26 Tom Tromey <tom@tromey.com>
7475
7476 * dwarf2/index-write.c (psym_index_map): Change type.
7477 (add_address_entry_worker, write_one_signatured_type)
7478 (recursively_count_psymbols, recursively_write_psymbols)
7479 (class debug_names, psyms_seen_size, write_gdbindex)
7480 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7481
0d79cdc4
AM
74822020-02-26 Aaron Merey <amerey@redhat.com>
7483
7484 * Makefile.in: Handle optional debuginfod support.
7485 * NEWS: Update.
7486 * README: Add --with-debuginfod summary.
7487 * config.in: Regenerate.
7488 * configure: Regenerate.
7489 * configure.ac: Handle optional debuginfod support.
7490 * debuginfod-support.c: debuginfod helper functions.
7491 * debuginfod-support.h: Ditto.
7492 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7493 summary.
7494 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7495 when a dwz file cannot be found.
7496 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7497 debuginfo file cannot be found.
7498 * source.c (open_source_file): Query debuginfod servers when a
7499 source file cannot be found.
7500 * top.c (print_gdb_configuration): Include
7501 --{with,without}-debuginfod in the output.
7502
b65ce565
JG
75032020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7504
7505 * thread.c (thr_try_catch_cmd): Print thread name.
7506
d4c9a4f8
SM
75072020-02-26 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * dwarf2/loc.h (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 to...
7512 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7513 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7514 dwarf2_fetch_die_type_sect_off): ... here.
7515 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7516 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7517 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7518
0dce4280
TV
75192020-02-26 Tom de Vries <tdevries@suse.de>
7520
7521 PR gdb/25603
7522 * symfile.c (set_initial_language): Exit-early if
7523 language_mode == language_mode_manual.
7524
450a1bfc
SM
75252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7526
7527 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7528 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7529 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7530
9e80cfa1
AB
75312020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7532
7533 * gdbtypes.c (create_array_type_with_stride): Handle negative
7534 array strides.
7535 * valarith.c (value_subscripted_rvalue): Likewise.
7536
09624f1f
LM
75372020-02-25 Luis Machado <luis.machado@linaro.org>
7538
7539 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7540
8cb5117c
SM
75412020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7542
7543 * loc.h (dwarf2_get_die_type): Move to...
7544 * read.h (dwarf2_get_die_type): ... here.
7545 * read.c (dwarf2_get_die_type): Move doc to header.
7546
c325c44e
JB
75472020-02-25 Joel Brobecker <brobecker@adacore.com>
7548
7549 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7550 'gnulib/Makefile.in' to the list.
7551
4ac93832
TT
75522020-02-24 Tom Tromey <tom@tromey.com>
7553
7554 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7555 Remove.
7556 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7557 XOBNEWVEC.
7558
197400e8
TT
75592020-02-24 Tom Tromey <tom@tromey.com>
7560
7561 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7562 New method.
7563 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7564 (dw2_do_instantiate_symtab, dw2_get_file_names)
7565 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7566
76935768
TT
75672020-02-24 Tom Tromey <tom@tromey.com>
7568
7569 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7570 make_scoped_restore.
7571 (dwarf2_psymtab::read_symtab): Don't clear
7572 reading_partial_symbols.
7573
a88ef40d
TV
75742020-02-24 Tom de Vries <tdevries@suse.de>
7575
7576 PR gdb/25592
7577 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7578
c9af6521
TV
75792020-02-24 Tom de Vries <tdevries@suse.de>
7580
7581 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7582 commands layout next/prev/regs.
7583
5707a07a
TT
75842020-02-22 Tom Tromey <tom@tromey.com>
7585
7586 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7587 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7588
3b0fb49e
TT
75892020-02-22 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7592
283be8bf
TT
75932020-02-22 Tom Tromey <tom@tromey.com>
7594
7595 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7596 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7597 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7598 * tui/tui.c (_initialize_tui): Add usage text.
7599
ca793b96
TT
76002020-02-22 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-win.c (tui_set_focus_command)
7603 (tui_set_win_height_command): Use error_no_arg.
7604 (_initialize_tui_win): Update help text.
7605 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7606
432b5c40
TT
76072020-02-22 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7610 * tui/tui-disasm.h (struct tui_disasm_window)
7611 <display_start_addr>: Declare.
7612 * tui/tui-source.h (struct tui_source_window)
7613 <display_start_addr>: Declare.
7614 * tui/tui-winsource.h (struct tui_source_window_base)
7615 <show_source_line, display_start_addr>: New methods.
7616 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7617 Rename and move to protected section.
7618 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7619 (tui_source_window_base::do_erase_source_content): Update.
7620 (tui_source_window_base::show_source_line): Now a method.
7621 (tui_source_window_base::show_source_content)
7622 (tui_source_window_base::tui_source_window_base)
7623 (tui_source_window_base::rerender)
7624 (tui_source_window_base::refill)
7625 (tui_source_window_base::do_scroll_horizontal)
7626 (tui_source_window_base::set_is_exec_point_at)
7627 (tui_source_window_base::update_breakpoint_info)
7628 (tui_source_window_base::update_exec_info): Update.
7629 * tui/tui-source.c (tui_source_window::set_contents)
7630 (tui_source_window::showing_source_p)
7631 (tui_source_window::do_scroll_vertical)
7632 (tui_source_window::location_matches_p)
7633 (tui_source_window::line_is_displayed): Update.
7634 (tui_source_window::display_start_addr): New method.
7635 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7636 (tui_disasm_window::do_scroll_vertical)
7637 (tui_disasm_window::location_matches_p): Update.
7638 (tui_disasm_window::display_start_addr): New method.
7639
01b1af32
TT
76402020-02-22 Tom Tromey <tom@tromey.com>
7641
7642 * NEWS: Add entry for gdb.register_window_type.
7643 * tui/tui-layout.h (window_factory): New typedef.
7644 (tui_register_window): Declare.
7645 * tui/tui-layout.c (saved_tui_windows): New global.
7646 (tui_apply_current_layout): Use it.
7647 (tui_register_window): New function.
7648 * python/python.c (do_start_initialization): Call
7649 gdbpy_initialize_tui.
7650 (python_GdbMethods): Add "register_window_type" function.
7651 * python/python-internal.h (gdbpy_register_tui_window)
7652 (gdbpy_initialize_tui): Declare.
7653 * python/py-tui.c: New file.
7654 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7655
fc96d20b
TT
76562020-02-22 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7659
935c78c0
TT
76602020-02-22 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7663 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7664 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7665 (tui_set_win_focus_to): Move from tui-win.c.
7666
0240c8f1
TT
76672020-02-22 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7670 functions.
7671 (known_window_types): New global.
7672 (tui_get_window_by_name): Reimplement.
7673 (initialize_known_windows): New function.
7674 (validate_window_name): Rewrite.
7675 (_initialize_tui_layout): Call initialize_known_windows.
7676
fdb01f0c
TT
76772020-02-22 Tom Tromey <tom@tromey.com>
7678
7679 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7680 Remove constants.
7681 * tui/tui-winsource.h (struct tui_source_window_base)
7682 <tui_source_window_base>: Remove parameter.
7683 * tui/tui-winsource.c
7684 (tui_source_window_base::tui_source_window_base): Remove
7685 parameter.
7686 (tui_source_window_base::refill): Update.
7687 * tui/tui-stack.h (struct tui_locator_window)
7688 <tui_locator_window>: Update.
7689 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7690 Default the constructor.
7691 * tui/tui-regs.h (struct tui_data_item_window)
7692 <tui_data_item_window>: Default the constructor.
7693 (struct tui_data_window) <tui_data_window>: Likewise.
7694 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7695 Default the constructor.
7696 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7697 Default the constructor.
7698 <type>: Remove.
7699 (struct tui_win_info) <tui_win_info>: Default the constructor.
7700 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7701 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7702 Default the constructor.
7703
865a5aec
TT
77042020-02-22 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7707 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7708 * tui/tui-win.c (tui_resize_all): Don't call
7709 tui_delete_invisible_windows.
7710 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7711 done.
7712 (tui_set_layout): Update.
7713 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7714 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7715 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7716
e098d18c
TT
77172020-02-22 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7720 correctly.
7721
eb9c8874
TT
77222020-02-22 Tom Tromey <tom@tromey.com>
7723
7724 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7725
7eed1a8e
TT
77262020-02-22 Tom Tromey <tom@tromey.com>
7727
7728 * tui/tui-winsource.h (struct tui_source_window_iterator)
7729 <inner_iterator>: New etytypedef.
7730 <tui_source_window_iterator>: Take "end" parameter.
7731 <tui_source_window_iterator>: Take iterator.
7732 <operator*, advance>: Update.
7733 <m_iter>: Change type.
7734 <m_end>: New field.
7735 (struct tui_source_windows) <begin, end>: Update.
7736 * tui/tui-layout.c (tui_windows): New global.
7737 (tui_apply_current_layout): Clear tui_windows.
7738 (tui_layout_window::apply): Update tui_windows.
7739 * tui/tui-data.h (tui_windows): Declare.
7740 (all_tui_windows): Now inline function.
7741 (class tui_window_iterator, struct all_tui_windows): Remove.
7742
7c043ba6
TT
77432020-02-22 Tom Tromey <tom@tromey.com>
7744
7745 PR tui/17850:
7746 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7747 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7748 "height" argument.
7749 (class tui_layout_window) <get_sizes>: Likewise.
7750 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7751 argument.
7752 <get_sizes>: Add "height" argument.
7753 <m_vertical>: New field.
7754 * tui/tui-layout.c (tui_layout_split::clone): Update.
7755 (tui_layout_split::get_sizes): Add "height" argument.
7756 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7757 (tui_new_layout_command): Parse "-horizontal".
7758 (_initialize_tui_layout): Update help string.
7759 (tui_layout_split::specification): Add "-horizontal" when needed.
7760 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7761 argument.
7762 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7763 New methods.
7764
6bc56648
TT
77652020-02-22 Tom Tromey <tom@tromey.com>
7766
7767 * tui/tui-layout.h (enum tui_adjust_result): New.
7768 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7769 (class tui_layout_window) <adjust_size>: Return
7770 tui_adjust_result. Rewrite.
7771 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7772 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7773
c22fef7e
TT
77742020-02-22 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7777 parameter and return types.
7778 (class tui_layout_base) <specification>: Add "depth".
7779 (class tui_layout_window) <specification>: Add "depth".
7780 (class tui_layout_split) <specification>: Add "depth".
7781 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7782 and return types.
7783 (tui_new_layout_command): Parse sub-layouts.
7784 (_initialize_tui_layout): Update help string.
7785 (tui_layout_window::specification): Add "depth".
7786 (add_layout_command): Update.
7787
ee325b61
TT
77882020-02-22 Tom Tromey <tom@tromey.com>
7789
7790 * NEWS: Add "tui new-layout" item.
7791 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7792 Add new-layout command to help text.
7793 (validate_window_name): New function.
7794 (tui_new_layout_command): New function.
7795 (_initialize_tui_layout): Register "new-layout".
7796 (tui_layout_window::specification): New method.
7797 (tui_layout_window::specification): New method.
7798 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7799 method.
7800 (class tui_layout_window) <specification>: New method.
7801 (class tui_layout_split) <specification>: New method.
7802
416eb92d
TT
78032020-02-22 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7806 * tui/tui-win.c (window_name_completer): Update comment.
7807 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7808 Declare method.
7809 (class tui_layout_window) <replace_window>: Likewise.
7810 (class tui_layout_split) <replace_window>: Likewise.
7811 (tui_set_layout): Don't declare.
7812 (tui_set_initial_layout): Declare function.
7813 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7814 (asm_regs_layout): New globals.
7815 (tui_current_layout, show_layout): Remove.
7816 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7817 (find_layout, tui_apply_layout): New function.
7818 (layout_completer): Remove.
7819 (tui_next_layout): Reimplement.
7820 (tui_next_layout_command): New function.
7821 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7822 (tui_regs_layout): Reimplement.
7823 (tui_regs_layout_command): New function.
7824 (extract_display_start_addr): Rewrite.
7825 (next_layout, prev_layout): Remove.
7826 (tui_layout_window::replace_window): New method.
7827 (tui_layout_split::replace_window): New method.
7828 (destroy_layout): New function.
7829 (layout_list): New global.
7830 (add_layout_command): New function.
7831 (initialize_layouts): Update.
7832 (tui_layout_command): New function.
7833 (_initialize_tui_layout): Install "layout" commands.
7834 * tui/tui-data.h (enum tui_layout_type): Remove.
7835 (tui_current_layout): Don't declare.
7836
0dbc2fc7
TT
78372020-02-22 Tom Tromey <tom@tromey.com>
7838
7839 * tui/tui-regs.c (tui_reg_layout): Remove.
7840 (tui_reg_command): Use tui_regs_layout.
7841 * tui/tui-layout.h (tui_reg_command): Declare.
7842 * tui/tui-layout.c (tui_reg_command): New function.
7843
5afe342e
TT
78442020-02-22 Tom Tromey <tom@tromey.com>
7845
7846 * tui/tui.c (tui_rl_delete_other_windows): Call
7847 tui_remove_some_windows.
7848 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7849 Declare method.
7850 (class tui_layout_window) <remove_windows>: New method.
7851 (class tui_layout_split) <remove_windows>: Declare.
7852 (tui_remove_some_windows): Declare.
7853 * tui/tui-layout.c (tui_remove_some_windows): New function.
7854 (tui_layout_split::remove_windows): New method.
7855
427326a8
TT
78562020-02-22 Tom Tromey <tom@tromey.com>
7857
7858 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7859 * tui/tui-layout.h (tui_next_layout): Declare.
7860 * tui/tui-layout.c (tui_next_layout): New function.
7861
3fe12b6d
TT
78622020-02-22 Tom Tromey <tom@tromey.com>
7863
7864 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7865 correct coordinates.
7866
59b8b5d2
TT
78672020-02-22 Tom Tromey <tom@tromey.com>
7868
7869 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7870 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7871 DATA_WIN case.
7872
2a3d458b
TT
78732020-02-22 Tom Tromey <tom@tromey.com>
7874
7875 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7876 TUI_DISASM_WIN, not tui_win_list.
7877
3f0cbb04
TT
78782020-02-22 Tom Tromey <tom@tromey.com>
7879
7880 * valprint.c (generic_val_print_enum_1)
7881 (val_print_type_code_flags): Style member names.
7882 * rust-lang.c (val_print_struct, rust_print_enum)
7883 (rust_print_struct_def, rust_internal_print_type): Style member
7884 names.
7885 * p-valprint.c (pascal_object_print_value_fields): Style member
7886 names. Only call fprintf_symbol_filtered for static members.
7887 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7888 * f-valprint.c (f_val_print): Style member names.
7889 * f-typeprint.c (f_type_print_base): Style member names.
7890 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7891 call fprintf_symbol_filtered for static members.
7892 (cp_print_class_member): Style member names.
7893 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7894 member names.
7895 * ada-valprint.c (ada_print_scalar): Style enum names.
7896 (ada_val_print_enum): Likewise.
7897 * ada-typeprint.c (print_enum_type): Style enum names.
7898
d4d947ae
TT
78992020-02-21 Tom Tromey <tom@tromey.com>
7900
7901 * psympriv.h (struct partial_symtab): Update comment.
7902
e94e944b
TT
79032020-02-21 Tom Tromey <tromey@adacore.com>
7904
7905 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7906 type is CORE_ADDR.
7907
1eb73179
TV
79082020-02-21 Tom de Vries <tdevries@suse.de>
7909
7910 PR gdb/25534
7911 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7912 if dependencies[i]->user != NULL.
7913
4f180d53
AT
79142020-02-21 Ali Tamur <tamur@google.com>
7915
7916 * dwarf2/read.c (dwarf2_name): Add null check.
7917
22b6cd70
TT
79182020-02-20 Tom Tromey <tom@tromey.com>
7919
7920 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7921 ">=", in binary search.
7922 (dwarf2_find_containing_comp_unit): New overload.
7923 (run_test): New self-test.
7924 (_initialize_dwarf2_read): Register new test.
7925
bd0cf5a6
NC
79262020-02-20 Nelson Chu <nelson.chu@sifive.com>
7927
7928 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7929 * riscv-tdep.h: Likewise.
7930 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7931 rv32-only CSR.
7932 * features/riscv/64bit-csr.xml: Regenerated.
7933
3f702acd
SDJ
79342020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7935 Tom Tromey <tom@tromey.com>
7936
7937 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7938 of 'fputc_unfiltered'.
7939 (putchar_unfiltered): Call 'fputc_unfiltered'.
7940 (fputc_unfiltered): Call 'fputs_unfiltered'.
7941
d13c7322
AB
79422020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * config.in: Regenerate.
7945 * configure: Regenerate.
7946 * configure.ac: Add --with-python-libdir option.
7947 * main.c: Use WITH_PYTHON_LIBDIR.
7948
869d8950
TT
79492020-02-19 Tom Tromey <tom@tromey.com>
7950
7951 * symtab.c (general_symbol_info::compute_and_set_names): Use
7952 obstack_strndup. Simplify call to symbol_set_demangled_name.
7953
298e9637
SM
79542020-02-19 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * dwarf2/read.c (allocate_signatured_type_table,
7957 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7958 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7959 Remove objfile parameter, update all callers.
7960
08410482
DE
79612020-02-19 Doug Evans <dje@google.com>
7962
7963 PR rust/25535
7964 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7965 rust_enum_variant calculation.
7966
dfdeeca1
TT
79672020-02-19 Tom Tromey <tromey@adacore.com>
7968
7969 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7970
2ef5453b
TT
79712020-02-19 Tom Tromey <tromey@adacore.com>
7972
7973 * ada-lang.c (cache_symbol): Use obstack_strdup.
7974
9f1528a1
AB
79752020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * configure: Regenerate.
7978
d3c22fa8
TT
79792020-02-19 Tom Tromey <tromey@adacore.com>
7980
7981 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7982 NULL check.
7983
bf84f706
MR
79842020-02-19 Maciej W. Rozycki <macro@wdc.com>
7985
7986 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7987
d1c9b20f
AB
79882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7991 if GDBSERVER is not defined.
7992 (riscv_tdesc_cache): Likewise, also store const target_desc.
7993 (STATIC_IN_GDB): Define.
7994 (riscv_create_target_description): Update declaration with
7995 STATIC_IN_GDB.
7996 (riscv_lookup_target_description): New function, only define if
7997 GDBSERVER is not defined.
7998 * arch/riscv.h (riscv_create_target_description): Declare only
7999 when GDBSERVER is defined.
8000 (riscv_lookup_target_description): New declaration when GDBSERVER
8001 is not defined.
8002 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8003 (riscv_linux_read_features): ...this, and return
8004 riscv_gdbarch_features instead of target_desc.
8005 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8006 (riscv_linux_read_description): Rename to...
8007 (riscv_linux_read_features): ...this.
8008 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8009 Update to use riscv_gdbarch_features and
8010 riscv_lookup_target_description.
8011 * riscv-tdep.c (riscv_find_default_target_description): Use
8012 riscv_lookup_target_description instead of
8013 riscv_create_target_description.
8014
373d7ac0
SM
80152020-02-18 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * valprint.c (generic_val_print_enum_1): When printing a flag
8018 enum with value 0 and there is no enumerator with value 0, print
8019 just "0" instead of "(unknown: 0x0)".
8020
b29a2df0
SM
80212020-02-18 Simon Marchi <simon.marchi@efficios.com>
8022
8023 * valprint.c (generic_val_print_enum_1): Print unknown part of
8024 flag enum in hex.
8025
6740f0cc
SM
80262020-02-18 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8029 flag enums to contain duplicate enumerators.
8030 * valprint.c (generic_val_print_enum_1): Update comment.
8031
edd45eb0
SM
80322020-02-18 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * dwarf2/read.c: Include "count-one-bits.h".
8035 (update_enumeration_type_from_children): If an enumerator has
8036 multiple bits set, don't treat the enumeration as a "flag enum".
8037 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8038 of flag enums have 0 or 1 bit set.
8039
6d0cf446
BE
80402020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8041
8042 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8043 conversion.
8044 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8045 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8046 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8047 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8048 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8049
7001c1b7
SM
80502020-02-18 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8053
fdb61c6c
SM
80542020-02-14 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8057 displaced_step_closure_up.
8058 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8059 (struct displaced_step_closure_up):
8060 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8061 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8062 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8063 Likewise.
8064 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8065 * gdbarch.c, gdbarch.h: Re-generate.
8066 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8067 displaced_step_closure_up.
8068 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8069 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8070 * infrun.h (displaced_step_closure_up): New type alias.
8071 (struct displaced_step_inferior_state) <step_closure>: Change
8072 type to displaced_step_closure_up.
8073 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8074 displaced_step_closure_up.
8075 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8076
a4a38eb4
TT
80772020-02-14 Tom Tromey <tom@tromey.com>
8078
8079 * minidebug.c (gnu_debug_key): New global.
8080 (find_separate_debug_file_in_section): Use it.
8081
e8217e61
SM
80822020-02-14 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8085 std::unique_ptr.
8086 * gdbarch.c: Re-generate.
8087 * gdbarch.h: Re-generate.
8088 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8089 change.
8090 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8091 type to std::unique_ptr.
8092 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8093 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8094 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8095 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8096 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8097 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8098 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8099 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8100 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8101
d8d83535
SM
81022020-02-14 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8105 std::unique_ptr.
8106 (displaced_step_clear): Rename to...
8107 (displaced_step_reset): ... this. Just call displaced->reset ().
8108 (displaced_step_clear_cleanup): Rename to...
8109 (displaced_step_reset_cleanup): ... this.
8110 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8111 (displaced_step_fixup): Likewise.
8112 (resume_1): Likewise.
8113 (handle_inferior_event): Restore child's memory before calling
8114 displaced_step_fixup on the parent.
8115 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8116 to std::unique_ptr.
8117 <step_closure>: Change type to std::unique_ptr.
8118
5f661e03
SM
81192020-02-14 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * arm-tdep.c: Include count-one-bits.h.
8122 (cleanup_block_store_pc): Use count_one_bits.
8123 (cleanup_block_load_pc): Use count_one_bits.
8124 (arm_copy_block_xfer): Use count_one_bits.
8125 (thumb2_copy_block_xfer): Use count_one_bits.
8126 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8127 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8128 (thumb_get_next_pcs_raw): Use count_one_bits.
8129 (arm_get_next_pcs_raw): Use count_one_bits_l.
8130 * arch/arm.c (bitcount): Remove.
8131 * arch/arm.h (bitcount): Remove.
8132
8084e579
TT
81332020-02-14 Tom Tromey <tromey@adacore.com>
8134
8135 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8136 Update.
8137 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8138 * dwarf2/loc.c (call_site_find_chain_1): Return
8139 unique_xmalloc_ptr.
8140 (call_site_find_chain): Likewise.
8141
258bf0ee
RB
81422020-02-14 Richard Biener <rguenther@suse.de>
8143
8144 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8145 on expression with division operators.
8146
f98a8458
AKS
81472020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8148
8149 * MAINTAINERS (Write After Approval): Adding myself.
8150
d1437c0e
TT
81512020-02-12 Tom Tromey <tom@tromey.com>
8152
8153 * event-loop.c (event_data, gdb_event, event_handler_func):
8154 Remove.
8155
3d4560f7
TT
81562020-02-12 Tom Tromey <tom@tromey.com>
8157
8158 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8159 (dwarf2_frame_objfile_data): Add comment.
8160 (find_comp_unit, set_comp_unit): New functions.
8161 (dwarf2_frame_find_fde): Use find_comp_unit.
8162 (dwarf2_build_frame_info): Use set_comp_unit.
8163
21982304
TT
81642020-02-12 Tom Tromey <tom@tromey.com>
8165
8166 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8167 (comp_unit): Don't initialize objfile.
8168 (execute_cfa_program): Add text_offset parameter.
8169 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8170 (dwarf2_frame_cache): Update.
8171 (dwarf2_build_frame_info): Don't set "objfile" member.
8172
4debb237
TT
81732020-02-12 Tom Tromey <tom@tromey.com>
8174
8175 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8176 (decode_frame_entry): Likewise.
8177 (dwarf2_build_frame_info): Update.
8178
0d404d44
TT
81792020-02-12 Tom Tromey <tom@tromey.com>
8180
8181 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8182 (decode_frame_entry_1): Use the comp_unit obstack.
8183
a7a3ae5c
TT
81842020-02-12 Tom Tromey <tom@tromey.com>
8185
8186 * dwarf2/frame.c (struct comp_unit): Add initializers and
8187 constructor.
8188 (dwarf2_frame_objfile_data): Store a comp_unit.
8189 (dwarf2_frame_find_fde): Update.
8190 (dwarf2_build_frame_info): Use "new".
8191
a9d65418
TT
81922020-02-12 Tom Tromey <tom@tromey.com>
8193
8194 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8195 (dwarf2_fde_table): Typedef for std::vector.
8196 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8197 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8198 (decode_frame_entry): Update.
8199 (dwarf2_build_frame_info): Use "new".
8200
7559c217
CB
82012020-02-12 Christian Biesinger <cbiesinger@google.com>
8202
8203 * arm-tdep.c (arm_gdbarch_init): Update.
8204 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8205 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8206 have_neon, is_m>: Change to bool.
8207
aeefc73c
CB
82082020-02-12 Christian Biesinger <cbiesinger@google.com>
8209
8210 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8211
d27b8e5f
TT
82122020-02-12 Tom Tromey <tom@tromey.com>
8213
8214 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8215
cd5900f3
HD
82162020-02-12 Hannes Domani <ssbssa@yahoo.de>
8217
8218 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8219 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8220
f056b22b
TT
82212020-02-11 Tom Tromey <tom@tromey.com>
8222
8223 * psymtab.h: Update comment.
8224
f92ff6b5
TT
82252020-02-11 Tom Tromey <tom@tromey.com>
8226
8227 * gdb_obstack.h (struct auto_obstack): Use
8228 DISABLE_COPY_AND_ASSIGN.
8229
3fd6912b
TT
82302020-02-11 Tom Tromey <tom@tromey.com>
8231
8232 * dwarf2/frame.h (struct objfile): Don't forward declare.
8233
69ed9b74
CB
82342020-02-11 Christian Biesinger <cbiesinger@google.com>
8235
8236 * cris-tdep.c (cris_supply_gregset): Change signature to match
8237 what struct regset expects.
8238 (cris_regset): New struct.
8239 (fetch_core_registers): Remove.
8240 (cris_iterate_over_regset_sections): New function.
8241 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8242 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8243
bda874f6
CB
82442020-02-11 Christian Biesinger <cbiesinger@google.com>
8245
8246 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8247 registers.
8248
754e1564
CB
82492020-02-11 Christian Biesinger <cbiesinger@google.com>
8250
8251 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8252
8ddd8e0e
SM
82532020-02-11 Simon Marchi <simon.marchi@efficios.com>
8254
8255 * configure: Re-generate.
8256
898e7f60
SM
82572020-02-11 Simon Marchi <simon.marchi@efficios.com>
8258
8259 * configure: Re-generate.
8260
58df732b
SM
82612020-02-11 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * acinclude: Update warning.m4 path.
8264 * warning.m4: Move to gdbsupport.
8265
da5bd37e
TT
82662020-02-11 Tom Tromey <tromey@adacore.com>
8267
8268 * remote.c (remote_console_output): Update.
8269 * printcmd.c (printf_command): Update.
8270 * event-loop.c (gdb_wait_for_event): Update.
8271 * linux-nat.c (sigchld_handler): Update.
8272 * remote-sim.c (gdb_os_write_stdout): Update.
8273 (gdb_os_flush_stdout): Update.
8274 (gdb_os_flush_stderr): Update.
8275 (gdb_os_write_stderr): Update.
8276 * exceptions.c (print_exception): Update.
8277 * remote-fileio.c (remote_fileio_func_read): Update.
8278 (remote_fileio_func_write): Update.
8279 * tui/tui.c (tui_enable): Update.
8280 * tui/tui-interp.c (tui_interp::init): Update.
8281 * utils.c (init_page_info): Update.
8282 (putchar_unfiltered, fputc_unfiltered): Update.
8283 (gdb_flush): Update.
8284 (emit_style_escape): Update.
8285 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8286 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8287 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8288 (stderr_file::write): Update.
8289 (stderr_file::puts): Update.
8290 * ui-file.h (ui_file_isatty, ui_file_write)
8291 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8292 (ui_file_puts): Don't declare.
8293
85f0dd3c
TV
82942020-02-10 Tom de Vries <tdevries@suse.de>
8295
8296 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8297 sentinel to char *.
8298
2e927613
TV
82992020-02-09 Tom de Vries <tdevries@suse.de>
8300
8301 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8302 filename if it matches "<artificial>".
8303
6bafc845
HD
83042020-02-09 Hannes Domani <ssbssa@yahoo.de>
8305
8306 * windows-tdep.c (struct enum_value_name): New struct.
8307 (create_enum): New function.
8308 (windows_get_siginfo_type): Create and use enum types.
8309
7928d571
HD
83102020-02-09 Hannes Domani <ssbssa@yahoo.de>
8311
8312 * NEWS: Mention $_siginfo support for Windows.
8313 * windows-nat.c (handle_exception): Set siginfo_er.
8314 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8315 (windows_xfer_siginfo): New function.
8316 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8317 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8318 (init_windows_gdbarch_data): New function.
8319 (get_windows_gdbarch_data): New function.
8320 (windows_get_siginfo_type): New function.
8321 (windows_init_abi): Register windows_get_siginfo_type.
8322 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8323
6751ebae
TT
83242020-02-08 Tom Tromey <tom@tromey.com>
8325
8326 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8327 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8328 <keep>: Declare method.
8329 <m_keep>: Remove member.
8330 <~cutu_reader>: Remove.
8331 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8332 (cutu_reader::cutu_reader): Update.
8333 (cutu_reader::keep): Rename from ~cutu_reader.
8334 (process_psymtab_comp_unit, build_type_psymtabs_1)
8335 (process_skeletonless_type_unit, load_partial_comp_unit)
8336 (load_full_comp_unit, dwarf2_read_addr_index)
8337 (read_signatured_type): Update.
8338
135f5437
TT
83392020-02-08 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8342 "want_partial_unit" parameter.
8343 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8344 Inline check for DW_TAG_partial_unit.
8345 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8346
9f66ff1c
TT
83472020-02-08 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8350 read.c.
8351 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8352 read.c.
8353
c8a7a66f
TT
83542020-02-08 Tom Tromey <tom@tromey.com>
8355
8356 * dwarf2/read.c (read_address): Move to comp-unit.c.
8357 (dwarf2_rnglists_process, dwarf2_ranges_process)
8358 (read_attribute_value, dwarf_decode_lines_1)
8359 (var_decode_location, decode_locdesc): Update.
8360 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8361 read.c. Remove "cu" parameter.
8362 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8363 method.
8364
8266302d
TT
83652020-02-08 Tom Tromey <tom@tromey.com>
8366
8367 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8368 (read_indirect_line_string): Update.
8369 * dwarf2/comp-unit.c (read_offset): Remove.
8370 (read_comp_unit_head): Update.
8371 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8372 method.
8373 (read_offset): Don't declare.
8374
4057dfde
TT
83752020-02-08 Tom Tromey <tom@tromey.com>
8376
8377 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8378 * dwarf2/read.c (struct comp_unit_head): Move to
8379 dwarf2/comp-unit.h.
8380 (enum class rcuh_kind): Move to comp-unit.h.
8381 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8382 (read_comp_unit_head, error_check_comp_unit_head)
8383 (read_and_check_comp_unit_head): Move to comp-unit.c.
8384 (read_offset, dwarf_unit_type_name): Likewise.
8385 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8386 (cutu_reader::cutu_reader, read_call_site_scope)
8387 (find_partial_die, follow_die_offset): Update.
8388 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8389
24aa364d
TT
83902020-02-08 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/read.c (read_offset_1): Move to leb.c.
8393 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8394 (dwarf_decode_macro_bytes): Update.
8395 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8396 * dwarf2/leb.h (read_offset): Declare.
8397
2c7d5afc
TT
83982020-02-08 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2/read.c (dwarf2_section_size): Remove.
8401 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8402 Update.
8403 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8404
4075cb26
TT
84052020-02-08 Tom Tromey <tom@tromey.com>
8406
8407 * dwarf2/read.c (read_initial_length): Move to leb.c.
8408 * dwarf2/leb.h (read_initial_length): Declare.
8409 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8410 handle_nonstd parameter.
8411 * dwarf2/frame.c (read_initial_length): Remove.
8412 (decode_frame_entry_1): Update.
8413
09ba997f
TT
84142020-02-08 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/loc.c (dwarf2_find_location_expression)
8417 (dwarf_evaluate_loc_desc::get_tls_address)
8418 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8419 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8420 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8421 (dwarf2_compile_property_to_c)
8422 (dwarf2_loc_desc_get_symbol_read_needs)
8423 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8424 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8425 (loclist_describe_location, loclist_tracepoint_var_ref)
8426 (loclist_generate_c_location): Update.
8427 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8428 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8429 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8430 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8431 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8432 (dwarf2_per_cu_data::addr_size)
8433 (dwarf2_per_cu_data::ref_addr_size)
8434 (dwarf2_per_cu_data::text_offset)
8435 (dwarf2_per_cu_data::addr_type): Now methods.
8436 (per_cu_header_read_in): Make per_cu "const".
8437 (dwarf2_version): Remove.
8438 (dwarf2_per_cu_data::int_type): Now a method.
8439 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8440 (set_die_type, read_array_type, read_subrange_index_type)
8441 (read_tag_string_type, read_subrange_type): Update.
8442 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8443 offset_size, ref_addr_size, text_offset, addr_type, version,
8444 objfile, int_type, addr_sized_int_type>: Declare methods.
8445
96c738c0
TT
84462020-02-08 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8449 Move earlier.
8450
8fdd972c
TT
84512020-02-08 Tom Tromey <tom@tromey.com>
8452
8453 * dwarf2/read.h (dwarf_line_debug): Declare.
8454 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8455 * dwarf2/read.c: Move line_header code to new files.
8456 (dwarf_line_debug): No longer static.
8457 * dwarf2/line-header.c: New file.
8458 * dwarf2/line-header.h: New file.
8459
03075812
TT
84602020-02-08 Tom Tromey <tom@tromey.com>
8461
8462 * dwarf2/read.c (struct line_header) <file_full_name,
8463 file_file_name>: Return unique_xmalloc_ptr.
8464 (line_header::file_file_name): Update.
8465 (line_header::file_full_name): Update.
8466 (dw2_get_file_names_reader): Update.
8467 (macro_start_file): Update.
8468
bb822404
TT
84692020-02-08 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/read.c (struct line_header) <file_full_name,
8472 file_file_name>: Declare methods.
8473 (dw2_get_file_names_reader): Update.
8474 (file_file_name): Now a method.
8475 (file_full_name): Likewise.
8476 (macro_start_file): Update.
8477
009b64fc
TT
84782020-02-08 Tom Tromey <tom@tromey.com>
8479
8480 * dwarf2/read.c (dwarf_always_disassemble)
8481 (show_dwarf_always_disassemble): Move to loc.c.
8482 (_initialize_dwarf2_read): Move "always-disassemble" registration
8483 to loc.c.
8484 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8485 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8486 static.
8487 (show_dwarf_always_disassemble): Move from read.c.
8488 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8489
5895093f
TT
84902020-02-08 Tom Tromey <tom@tromey.com>
8491
8492 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8493 (create_quick_file_names_table): Return htab_up.
8494 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8495 Update.
8496 * dwarf2/read.h (struct dwarf2_per_objfile)
8497 <quick_file_names_table>: Now htab_up.
8498
b3b32279
TT
84992020-02-08 Tom Tromey <tom@tromey.com>
8500
8501 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8502
1d33d811
TT
85032020-02-08 Tom Tromey <tom@tromey.com>
8504
8505 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8506 Rewrite.
8507 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8508 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8509 (abbrev_table::abbrev_table): No longer inline.
8510 (ABBREV_HASH_SIZE): Remove.
8511 (abbrev_table::m_abbrevs): Now an htab_up.
8512
86de1d91
TT
85132020-02-08 Tom Tromey <tom@tromey.com>
8514
8515 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8516 (cutu_reader): Update.
8517 (build_type_psymtabs_1): Update.
8518 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8519 (abbrev_table::alloc_abbrev): Update.
8520 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8521 (abbrev_table::read): New static method, renamed from
8522 abbrev_table_read_table.
8523 (abbrev_table::alloc_abbrev)
8524 (abbrev_table::add_abbrev): Now private.
8525 (abbrev_table::abbrev_table): Now private.
8526 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8527
0335378b
TT
85282020-02-08 Tom Tromey <tom@tromey.com>
8529
8530 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8531 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8532 htab_up.
8533
48b490f2
TT
85342020-02-08 Tom Tromey <tom@tromey.com>
8535
8536 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8537 htab_up.
8538 (lookup_dwo_unit_in_dwp): Update.
8539 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8540 on obstack.
8541
bc68fb19
TT
85422020-02-08 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8545 obstack.
8546
d15acc42
TT
85472020-02-08 Tom Tromey <tom@tromey.com>
8548
8549 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8550 line_header_hash.
8551 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8552 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8553 Change type to htab_up.
8554
eaa5fa8b
TT
85552020-02-08 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8558 htab_up. Don't allocate on obstack.
8559 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8560 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8561 Change type to htab_up.
8562
b0b6a987
TT
85632020-02-08 Tom Tromey <tom@tromey.com>
8564
8565 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8566 Change type to htab_up.
8567 * dwarf2/read.c (create_signatured_type_table_from_index)
8568 (create_signatured_type_table_from_debug_names)
8569 (create_all_type_units, add_type_unit)
8570 (lookup_dwo_signatured_type, lookup_signatured_type)
8571 (process_skeletonless_type_unit): Update.
8572 (create_debug_type_hash_table, create_debug_types_hash_table):
8573 Change type of types_htab.
8574 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8575 htab_up. Don't allocate on obstack.
8576 (create_cus_hash_table): Change type of cus_htab parameter.
8577 (struct dwo_file) <cus, tus>: Now htab_up.
8578 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8579 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8580 (queue_and_load_all_dwo_tus): Update.
8581 * dwarf2/index-write.c (write_gdbindex): Update.
8582 (write_debug_names): Update.
8583
39856def
TT
85842020-02-08 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8587 dwarf2/read.c. Remove "next" member. Add constructor ntad
8588 destructor.
8589 (struct dwarf2_per_objfile) <queue>: New member.
8590 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8591 dwarf2/read.h.
8592 (dwarf2_queue, dwarf2_queue_tail): Remove.
8593 (class dwarf2_queue_guard): Add parameter to constructor. Use
8594 DISABLE_COPY_AND_ASSIGN.
8595 <m_per_objfile>: New member.
8596 <~dwarf2_queue_guard>: Rewrite.
8597 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8598 Update.
8599 (~dwarf2_queue_item): New.
8600
3e225074
TT
86012020-02-08 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/read.c (struct die_info) <has_children>: New member.
8604 (dw2_get_file_names_reader): Remove has_children.
8605 (dw2_get_file_names): Update.
8606 (read_cutu_die_from_dwo): Remove has_children.
8607 (cutu_reader::init_tu_and_read_dwo_dies)
8608 (cutu_reader::cutu_reader): Update.
8609 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8610 Remove has_children.
8611 (build_type_psymtabs_1, process_skeletonless_type_unit)
8612 (load_partial_comp_unit, load_full_comp_unit): Update.
8613 (create_dwo_cu_reader): Remove has_children.
8614 (create_cus_hash_table, read_die_and_children): Update.
8615 (read_full_die_1,read_full_die): Remove has_children.
8616 (read_signatured_type): Update.
8617 (class cutu_reader) <has_children>: Remove.
8618
82ca8957
TT
86192020-02-08 Tom Tromey <tom@tromey.com>
8620
8621 * dwarf2/expr.c: Rename from dwarf2expr.c.
8622 * dwarf2/expr.h: Rename from dwarf2expr.h.
8623 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8624 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8625 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8626 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8627 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8628 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8629 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8630 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8631 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8632 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8633 * dwarf2/loc.c: Rename from dwarf2loc.c.
8634 * dwarf2/loc.h: Rename from dwarf2loc.h.
8635 * dwarf2/read.c: Rename from dwarf2read.c.
8636 * dwarf2/read.h: Rename from dwarf2read.h.
8637 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8638 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8639 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8640 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8641 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8642 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8643 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8644 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8645 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8646 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8647 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8648 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8649 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8650 Update.
8651 * Makefile.in (COMMON_SFILES): Update.
8652 (HFILES_NO_SRCDIR): Update.
8653
9e35d499
TT
86542020-02-08 Tom Tromey <tom@tromey.com>
8655
8656 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8657 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8658
1eba2311
TT
86592020-02-08 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2read.h (struct die_info): Don't declare.
8662
e41c2da2
TT
86632020-02-08 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2read.h (die_info_ptr): Remove typedef.
8666
4fc6c0d5
TT
86672020-02-08 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2read.c (read_call_site_scope)
8670 (handle_data_member_location, dwarf2_add_member_fn)
8671 (mark_common_block_symbol_computed, read_common_block)
8672 (attr_to_dynamic_prop, partial_die_info::read)
8673 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8674 (dwarf2_symbol_mark_computed, set_die_type): Update.
8675 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8676 method.
8677 (attr_form_is_block): Don't declare.
8678 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8679
cd6c91b4
TT
86802020-02-08 Tom Tromey <tom@tromey.com>
8681
8682 * dwarf2read.c (dwarf2_find_base_address, )
8683 (read_call_site_scope, rust_containing_type)
8684 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8685 (handle_data_member_location, dwarf2_add_member_fn)
8686 (get_alignment, read_structure_type, process_structure_scope)
8687 (mark_common_block_symbol_computed, read_common_block)
8688 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8689 (partial_die_info::read, read_attribute_value, new_symbol)
8690 (lookup_die_type, dwarf2_get_ref_die_offset)
8691 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8692 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8693 (dwarf2_symbol_mark_computed): Update.
8694 * dwarf2/attribute.h (struct attribute) <value_as_address,
8695 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8696 methods.
8697 (value_as_address, attr_form_is_section_offset)
8698 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8699 * dwarf2/attribute.c (attribute::value_as_address)
8700 (attribute::form_is_section_offset, attribute::form_is_constant)
8701 (attribute::form_is_ref): Now methods.
8702
162dce55
TT
87032020-02-08 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2read.c (struct attribute, DW_STRING)
8706 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8707 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8708 (attr_form_is_block, attr_form_is_section_offset)
8709 (attr_form_is_constant, attr_form_is_ref): Move.
8710 * dwarf2/attribute.h: New file.
8711 * dwarf2/attribute.c: New file, from dwarf2read.c.
8712 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8713
3054dd54
TT
87142020-02-08 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8717 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8718 Move.
8719 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8720 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8721 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8722 abbrev.c.
8723 * dwarf2/abbrev.h: New file.
8724 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8725 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8726
96b79293
TT
87272020-02-08 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8730 (dwarf2_section_size, dwarf2_get_section_info)
8731 (create_signatured_type_table_from_debug_names)
8732 (create_addrmap_from_aranges, read_debug_names_from_section)
8733 (get_gdb_index_contents_from_section, read_comp_unit_head)
8734 (error_check_comp_unit_head, read_abbrev_offset)
8735 (create_debug_type_hash_table, init_cu_die_reader)
8736 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8737 (read_comp_units_from_section, create_cus_hash_table)
8738 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8739 (create_dwp_v2_section, dwarf2_rnglists_process)
8740 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8741 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8742 (read_indirect_string_from_dwz, read_addr_index_1)
8743 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8744 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8745 (fill_in_loclist_baton): Update.
8746 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8747 get_containing_section, get_bfd_owner, get_bfd_section,
8748 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8749 (dwarf2_read_section, get_section_name, get_section_file_name)
8750 (get_containing_section, get_section_bfd_owner)
8751 (get_section_bfd_section, get_section_name, get_section_file_name)
8752 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8753 declare.
8754 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8755 (dwarf2_section_info::get_bfd_owner)
8756 (dwarf2_section_info::get_bfd_section)
8757 (dwarf2_section_info::get_name)
8758 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8759 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8760 (dwarf2_section_info::read): Now methods.
8761 * dwarf-index-write.c (class debug_names): Update.
8762
2c86cff9
TT
87632020-02-08 Tom Tromey <tom@tromey.com>
8764
8765 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8766 Move to dwarf2/section.h.
8767 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8768 (get_section_bfd_section, get_section_name)
8769 (get_section_file_name, get_section_id, get_section_flags)
8770 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8771 dwarf2/section.c.
8772 * dwarf2/section.h: New file.
8773 * dwarf2/section.c: New file, from dwarf2read.c.
8774 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8775
f4382c45
TT
87762020-02-08 Tom Tromey <tom@tromey.com>
8777
8778 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8779 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8780 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8781 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8782 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8783 * dwarf2/leb.h: New file, from dwarf2read.c.
8784 * dwarf2/leb.c: New file, from dwarf2read.c.
8785 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8786 Remove.
8787 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8788 (COMMON_SFILES): Add dwarf2/leb.c.
8789
01840b7a
JB
87902020-02-08 Joel Brobecker <brobecker@adacore.com>
8791
8792 GDB 9.1 released.
8793
dfcb27e4
IB
87942020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8795
8796 PR gdb/25190:
aac66a4c
SM
8797 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8798 * gdb/remote.c (remote_console_output): Update.
8799 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8800 (ui_file_puts): ...this.
8801 * gdb/ui-file.h (ui_file_puts): Add declaration.
8802 * gdb/utils.c (emit_style_escape): Update.
8803 (flush_wrap_buffer): Update.
8804 (fputs_maybe_filtered): Update.
8805 (fputs_unfiltered): Add function.
dfcb27e4 8806
faa17681
IB
88072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8808
aac66a4c
SM
8809 * gdb/event-loop.c (gdb_wait_for_event): Update.
8810 * gdb/printcmd.c (printf_command): Update.
8811 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8812 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8813 (gdb_os_flush_stderr): Update.
8814 * gdb/remote.c (remote_console_output): Update.
8815 * gdb/ui-file.c (gdb_flush): Rename to...
8816 (ui_file_flush): ...this.
8817 (stderr_file::write): Update.
8818 (stderr_file::puts): Update.
8819 * gdb/ui-file.h (gdb_flush): Rename to...
8820 (ui_file_flush): ...this.
8821 * gdb/utils.c (gdb_flush): Add function.
8822 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8823
5abbbe1d
TT
88242020-02-07 Tom Tromey <tromey@adacore.com>
8825
8826 PR breakpoints/24915:
8827 * source.c (find_and_open_source): Do not check basenames_may_differ.
8828
919adfe8
TT
88292020-02-07 Tom Tromey <tom@tromey.com>
8830
8831 * README: Update gdbserver documentation.
8832 * gdbserver: Move to top level.
8833 * configure.tgt (build_gdbserver): Remove.
8834 * configure.ac: Remove --enable-gdbserver.
8835 * configure: Rebuild.
8836 * Makefile.in (distclean): Don't mention gdbserver.
8837
1d5d29e7
SV
88382020-02-06 Shahab Vahedi <shahab@synopsys.com>
8839
8840 * source-cache.c (source_cache::ensure): Surround
8841 get_plain_source_lines with a try/catch.
8842 (source_cache::get_line_charpos): Get rid of try/catch
8843 and only check for the return value of "ensure".
8844 * tui/tui-source.c (tui_source_window::set_contents):
8845 Simplify "nlines" calculation.
8846
6eb1129c
SV
88472020-02-06 Shahab Vahedi <shahab@synopsys.com>
8848
8849 * MAINTAINERS (Write After Approval): Add myself.
8850
c6a42d11
CB
88512020-02-05 Christian Biesinger <cbiesinger@google.com>
8852
8853 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8854 function call.
8855
c8ecdda6
CB
88562020-02-05 Christian Biesinger <cbiesinger@google.com>
8857
8858 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8859
f6480e70
MR
88602020-02-05 Maciej W. Rozycki <macro@wdc.com>
8861
8862 * nat/riscv-linux-tdesc.h: New file.
8863 * nat/riscv-linux-tdesc.c: New file, taking code from...
8864 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8865 ... here.
8866 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8867 NATDEPFILES.
8868
dcc9fbc6
AB
88692020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8872 we don't set the fake simulator ptid to the null_ptid.
8873
719546c4
SM
88742020-02-03 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8877 * gdbthread.h (class thread_info) <resumed>: Likewise.
8878 * infrun.c (resume_1): Likewise.
8879 (proceed): Likewise.
8880 (infrun_thread_stop_requested): Likewise.
8881 (stop_all_threads): Likewise.
8882 (handle_inferior_event): Likewise.
8883 (restart_threads): Likewise.
8884 (finish_step_over): Likewise.
8885 (keep_going_stepped_thread): Likewise.
8886 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8887 (linux_handle_extended_wait): Likewise.
8888 * record-btrace.c (get_thread_current_frame_id): Likewise.
8889 * record-full.c (record_full_wait_1): Likewise.
8890 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8891 * target.c (target_resume): Likewise.
8892 * thread.c (set_running_thread): Likewise.
8893
e409c542
AKS
88942020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8895
8896 * f-valprint.c (f77_print_array_1): Changed datatype of index
8897 variable to LONGEST from int to enable it to contain bound
8898 values correctly.
8899
ee98c0da
MR
89002020-02-03 Maciej W. Rozycki <macro@wdc.com>
8901
8902 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8903 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8904 offsets according to FLEN determined.
8905 (riscv_linux_nat_target::read_description): Determine FLEN
8906 dynamically.
8907 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8908 according to FLEN determined.
8909 (riscv_linux_nat_target::store_registers): Likewise.
8910
aa66aac4
SV
89112020-02-01 Shahab Vahedi <shahab@synopsys.com>
8912
8913 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8914 when reg->group is empty and reggroup is not.
8915
fd9faca8
TT
89162020-01-31 Tom Tromey <tromey@adacore.com>
8917
8918 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8919 Call beneath target's mourn_inferior after unpushing.
8920
42330a68
AB
89212020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8922
8923 PR tui/9765
8924 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8925 have enough lines to fill the screen, still return the lowest
8926 address we found.
8927
7a27a45b
AB
89282020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8929
8930 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8931 '-', '<', and '>' commands.
8932
c47f70e2
PA
89332020-01-29 Pedro Alves <palves@redhat.com>
8934 Sergio Durigan Junior <sergiodj@redhat.com>
8935
8936 * infcmd.c (construct_inferior_arguments): Assert that
8937 'argc' is greater than 0.
8938
5133a315
LM
89392020-01-29 Luis Machado <luis.machado@linaro.org>
8940
8941 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8942 (BRK_INSN_MASK): Define to 0xd4200000.
8943 (aarch64_program_breakpoint_here_p): New function.
8944 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8945 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8946 breakpoint.c.
8947 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8948 breakpoint.h
8949 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8950 call gdbarch_program_breakpoint_here_p.
8951 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8952 default_program_breakpoint_here_p, changed return type to bool and
8953 simplified.
8954 * breakpoint.h (program_breakpoint_here): Moved prototype to
8955 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8956 return type to bool.
8957 * gdbarch.c: Regenerate.
8958 * gdbarch.h: Regenerate.
8959 * gdbarch.sh (program_breakpoint_here_p): New method.
8960 * infrun.c (handle_signal_stop): Call
8961 gdbarch_program_breakpoint_here_p.
8962
168f8c6b
TT
89632020-01-26 Tom Tromey <tom@tromey.com>
8964
8965 * ctfread.c (struct ctf_fp_info): Reindent.
8966 (_initialize_ctfread): Remove.
8967
128a391f
TT
89682020-01-26 Tom Tromey <tom@tromey.com>
8969
8970 * psymtab.c (partial_map_expand_apply)
8971 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8972 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8973 (psym_print_stats, psym_expand_symtabs_for_function)
8974 (psym_map_symbol_filenames, psym_map_matching_symbols)
8975 (psym_expand_symtabs_matching)
8976 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8977 (maintenance_check_psymtabs): Use new methods.
8978 * psympriv.h (struct partial_symtab) <readin_p,
8979 get_compunit_symtab>: New methods.
8980 <readin, compunit_symtab>: Remove members.
8981 (struct standard_psymtab): New.
8982 (struct legacy_psymtab): Derive from standard_psymtab.
8983 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8984 standard_psymtab.
8985 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8986
0494dbec
TT
89872020-01-26 Tom Tromey <tom@tromey.com>
8988
8989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8990 read_dependencies. Add assert.
8991 * psymtab.c (partial_symtab::read_dependencies): New method.
8992 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8993 method.
8994 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8995 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8996 read_dependencies.
8997 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8998 Add assert.
8999
8566b89b
TT
90002020-01-26 Tom Tromey <tom@tromey.com>
9001
9002 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9003 Call expand_psymtab.
9004 (xcoff_read_symtab): Call expand_psymtab.
9005 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9006 legacy_expand_psymtab.
9007 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9008 method.
9009 (struct legacy_psymtab) <expand_psymtab>: Implement.
9010 <legacy_expand_psymtab>: New member.
9011 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9012 (parse_partial_symbols): Set legacy_expand_psymtab.
9013 (psymtab_to_symtab_1): Change argument order. Call
9014 expand_psymtab.
9015 (new_psymtab): Set legacy_expand_psymtab.
9016 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9017 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9018 expand_psymtab.
9019 (dwarf2_psymtab::expand_psymtab): Rename from
9020 psymtab_to_symtab_1. Call expand_psymtab.
9021 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9022 (dbx_end_psymtab): Likewise.
9023 (dbx_psymtab_to_symtab_1): Change argument order. Call
9024 expand_psymtab.
9025 (dbx_read_symtab): Call expand_psymtab.
9026 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9027 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9028 (ctf_psymtab::read_symtab): Call expand_psymtab.
9029
077cbab2
TT
90302020-01-26 Tom Tromey <tom@tromey.com>
9031
9032 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9033 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9034 messages.
9035 * mdebugread.c (mdebug_read_symtab): Remove prints.
9036 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9037 assert.
9038 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9039
891813be
TT
90402020-01-26 Tom Tromey <tom@tromey.com>
9041
9042 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9043 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9044 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9045 legacy_symtab.
9046 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9047 * psymtab.c (psymtab_to_symtab): Call method.
9048 (dump_psymtab): Update.
9049 * psympriv.h (struct partial_symtab): Add virtual destructor.
9050 <read_symtab>: New method.
9051 (struct legacy_symtab): New.
9052 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9053 (struct pst_map) <pst>: Now a legacy_psymtab.
9054 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9055 (new_psymtab): Use legacy_psymtab.
9056 * dwarf2read.h (struct dwarf2_psymtab): New.
9057 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9058 * dwarf2read.c (dwarf2_create_include_psymtab)
9059 (dwarf2_build_include_psymtabs, create_type_unit_group)
9060 (create_partial_symtab, process_psymtab_comp_unit_reader)
9061 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9062 (set_partial_user): Use dwarf2_psymtab.
9063 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9064 (psymtab_to_symtab_1, process_full_comp_unit)
9065 (process_full_type_unit, dwarf2_ranges_read)
9066 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9067 (dwarf_decode_lines): Use dwarf2_psymtab.
9068 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9069 (add_address_entry_worker, write_one_signatured_type)
9070 (recursively_count_psymbols, recursively_write_psymbols)
9071 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9072 (write_debug_names): Likewise.
9073 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9074 <pst>: Now a legacy_psymtab.
9075 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9076 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9077 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9078 * ctfread.c (struct ctf_psymtab): New.
9079 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9080 ctf_psymtab.
9081 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9082 (create_partial_symtab): Return a ctf_psymtab.
9083 (scan_partial_symbols): Update.
9084
c3693a1d
TT
90852020-01-26 Tom Tromey <tom@tromey.com>
9086
9087 * xcoffread.c (xcoff_start_psymtab): Use new.
9088 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9089 renamed from start_psymtab_common.
9090 * psympriv.h (struct partial_symtab): Add new constructor.
9091 (start_psymtab_common): Don't declare.
9092 * mdebugread.c (parse_partial_symbols): Use new.
9093 * dwarf2read.c (create_partial_symtab): Use new.
9094 * dbxread.c (start_psymtab): Use new.
9095 * ctfread.c (create_partial_symtab): Use new.
9096
32caafd0
TT
90972020-01-26 Tom Tromey <tom@tromey.com>
9098
9099 * xcoffread.c (xcoff_end_psymtab): Use new.
9100 * psymtab.c (start_psymtab_common): Use new.
9101 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9102 Update.
9103 * psympriv.h (struct partial_symtab): Add parameters to
9104 constructor. Don't inline.
9105 (allocate_psymtab): Don't declare.
9106 * mdebugread.c (new_psymtab): Use new.
9107 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9108 * dbxread.c (dbx_end_psymtab): Use new.
9109
abaa2f23
TT
91102020-01-26 Tom Tromey <tom@tromey.com>
9111
9112 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9113 allocate_psymtab. Update documentation.
9114 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9115 allocate_psymtab. Do not use new.
9116 (allocate_psymtab): Use new. Update.
9117
6d94535f
TT
91182020-01-26 Tom Tromey <tom@tromey.com>
9119
9120 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9121 * psymtab.c (psym_print_stats): Update.
9122 * psympriv.h (struct partial_symtab) <readin,
9123 psymtabs_addrmap_supported, anonymous>: Now bool.
9124 * mdebugread.c (psymtab_to_symtab_1): Update.
9125 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9126 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9127 (process_full_comp_unit, process_full_type_unit): Update.
9128 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9129 * ctfread.c (psymtab_to_symtab): Update.
9130
6f17252b
TT
91312020-01-26 Tom Tromey <tom@tromey.com>
9132
9133 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9134 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9135 * psymtab.c (psymtab_storage): Delete psymtabs.
9136 (psymtab_storage::allocate_psymtab): Use new.
9137 (psymtab_storage::discard_psymtab): Use delete.
9138 * psympriv.h (struct partial_symtab): Add constructor and
9139 initializers.
9140
f6f1cebc
TT
91412020-01-26 Tom Tromey <tom@tromey.com>
9142
9143 * machoread.c: Do not include psympriv.h.
9144
e47e48f6
PW
91452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9146
9147 * NEWS: Mention the new option and the set/show commands.
9148
a2fedca9
PW
91492020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9150
9151 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9152 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9153 (validate_exec_file): New variables, enums, functions.
9154 (exec_file_locate_attach, print_section_info): Style the filenames.
9155 (_initialize_exec): Install show_exec_file_mismatch_command and
9156 set_exec_file_mismatch_command.
9157 * gdbcore.h (validate_exec_file): Declare.
9158 * infcmd.c (attach_command): Call validate_exec_file.
9159 * remote.c ( remote_target::remote_add_inferior): Likewise.
9160
7ffa82e1
AB
91612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9162
9163 * frame.c (find_frame_sal): Move call to get_next_frame into more
9164 inner scope.
9165 * inline-frame.c (inilne_state) <inline_state>: Update argument
9166 types.
9167 (inilne_state) <skipped_symbol>: Rename to...
9168 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9169 (skip_inline_frames): Build vector of skipped symbols and use this
9170 to reate the inline_state.
9171 (inline_skipped_symbol): Add a comment and some assertions, fetch
9172 skipped symbol from the list.
9173
3d92a3e3
AB
91742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9175
9176 * buildsym.c (lte_is_less_than): Delete.
9177 (buildsym_compunit::end_symtab_with_blockvector): Create local
9178 lambda function to sort line table entries, and use
9179 std::stable_sort instead of std::sort.
9180 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9181 markers when looking for a previous line.
9182
94a72be7
AB
91832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9184
9185 * dwarf2read.c (lnp_state_machine::record_line): Include
9186 end_sequence parameter in debug print out. Record the line if we
9187 are at an end_sequence marker even if it's not the start of a
9188 statement.
9189 * symmisc.c (maintenance_print_one_line_table): Print end of
9190 sequence markers with 'END' not '0'.
9191
53af73bf
PA
91922020-01-24 Pedro Alves <palves@redhat.com>
9193
9194 PR gdb/25410
9195 * thread.c (scoped_restore_current_thread::restore): Use
9196 switch_to_inferior_no_thread.
9197 * exec.c: Include "progspace-and-thread.h".
9198 (add_target_sections, remove_target_sections):
9199 scoped_restore_current_pspace_and_thread instead of
9200 scoped_restore_current_thread.
9201 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9202 and aspace to the inferior before calling clone_program_space.
9203 Remove stale comment.
9204
3050c6f4
CB
92052020-01-24 Christian Biesinger <cbiesinger@google.com>
9206
9207 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9208 (arm_netbsd_nat_target::fetch_registers): ...this.
9209 (arm_nbsd_nat_target::store_registers): Rename to...
9210 (arm_netbsd_nat_target::store_registers): ...this.
9211
73685c7e
CB
92122020-01-24 Christian Biesinger <cbiesinger@google.com>
9213
9214 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9215 register_t.
9216
89203d40
CB
92172020-01-24 Christian Biesinger <cbiesinger@google.com>
9218
9219 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9220 Update comment.
9221 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9222 Likewise.
9223 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9224 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9225 the correct replacement (iterate_over_regset_sections).
9226 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9227 Update comment.
9228
1ba1ac88
AB
92292020-01-24 Graham Markall <graham.markall@embecosm.com>
9230
9231 PR gdb/23718
9232 * gdb/python/python.c (execute_gdb_command): Call
9233 async_enable_stdin in catch block.
9234
f3364a6d
AB
92352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9236
9237 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9238 SWITCH_THRU_ALL_UIS.
9239
733d0a67
AB
92402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 PR tui/9765
9243 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9244 comment, add extra parameter, and update to store previous symbol
9245 when appropriate.
9246 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9247 add extra parameter.
9248 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9249 remove unneeded parameter, add try/catch around gdb_print_insn,
9250 rewrite to add items to asm_lines vector.
9251 (tui_find_backward_disassembly_start_address): New function.
9252 (tui_find_disassembly_address): Updated throughout.
9253 (tui_disasm_window::set_contents): Update for changes to
9254 tui_disassemble.
9255 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9256 number of lines to scroll.
9257
b3b3bada
SM
92582020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9259
9260 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9261 (SECT_OFF_DATA): Likewise.
9262 (SECT_OFF_RODATA): Likewise.
9263 (SECT_OFF_TEXT): Likewise.
9264 (SECT_OFF_BSS): Likewise.
9265 (struct objfile) <text_section_offset, data_section_offset>: New
9266 methods.
9267 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9268 objfile::text_section_offset.
9269 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9270 * coffread.c (coff_symtab_read): Likewise.
9271 (enter_linenos): Likewise.
9272 (process_coff_symbol): Likewise.
9273 * ctfread.c (get_objfile_text_range): Likewise.
9274 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9275 Use objfile::data_section_offset.
9276 * dwarf2-frame.c (execute_cfa_program): Use
9277 objfile::text_section_offset.
9278 (dwarf2_frame_find_fde): Likewise.
9279 * dwarf2read.c (create_addrmap_from_index): Likewise.
9280 (create_addrmap_from_aranges): Likewise.
9281 (dw2_find_pc_sect_compunit_symtab): Likewise.
9282 (process_psymtab_comp_unit_reader): Likewise.
9283 (add_partial_symbol): Likewise.
9284 (add_partial_subprogram): Likewise.
9285 (process_full_comp_unit): Likewise.
9286 (read_file_scope): Likewise.
9287 (read_func_scope): Likewise.
9288 (read_lexical_block_scope): Likewise.
9289 (read_call_site_scope): Likewise.
9290 (dwarf2_rnglists_process): Likewise.
9291 (dwarf2_ranges_process): Likewise.
9292 (dwarf2_ranges_read): Likewise.
9293 (dwarf_decode_lines_1): Likewise.
9294 (new_symbol): Likewise.
9295 (dwarf2_fetch_die_loc_sect_off): Likewise.
9296 (dwarf2_per_cu_text_offset): Likewise.
9297 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9298 * hppa-tdep.c (read_unwind_info): Likewise.
9299 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9300 * psympriv.h (struct partial_symtab): Likewise.
9301 * psymtab.c (find_pc_sect_psymtab): Likewise.
9302 * solib-svr4.c (enable_break): Likewise.
9303 * stap-probe.c (relocate_address): Use
9304 objfile::data_section_offset.
9305 * xcoffread.c (enter_line_range): Use
9306 objfile::text_section_offset.
9307 (read_xcoff_symtab): Likewise.
9308
ab53f382
SM
93092020-01-23 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9312 declaration to narrower scopes.
9313
e7eee665
SM
93142020-01-23 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * darwin-nat.h (struct darwin_exception_msg, enum
9317 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9318 Move up.
9319 (class darwin_nat_target) <wait_1, check_new_threads,
9320 decode_exception_message, decode_message, stop_inferior,
9321 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9322 * darwin-nat.c (darwin_check_new_threads): Rename to...
9323 (darwin_nat_target::check_new_threads): ... this.
9324 (darwin_suspend_inferior_it): Remove.
9325 (darwin_decode_exception_message): Rename to...
9326 (darwin_nat_target::decode_exception_message): ... this.
9327 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9328 (darwin_decode_message): Rename to...
9329 (darwin_nat_target::decode_message): ... this.
9330 (cancel_breakpoint): Rename to...
9331 (darwin_nat_target::cancel_breakpoint): ... this.
9332 (darwin_wait): Rename to...
9333 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9334 instead of iterate_over_inferiors.
9335 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9336 (darwin_stop_inferior): Rename to...
9337 (darwin_nat_target::stop_inferior): ... this.
9338 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9339 (darwin_init_thread_list): Rename to...
9340 (darwin_nat_target::init_thread_list): ... this.
9341 (darwin_ptrace_him): Rename to...
9342 (darwin_nat_target::ptrace_him): ... this.
9343 (darwin_nat_target::create_inferior): Pass lambda function to
9344 fork_inferior.
9345 (darwin_nat_target::detach): Call stop_inferior instead of
9346 darwin_stop_inferior.
9347 * fork-inferior.h (fork_inferior): Change init_trace_fun
9348 parameter to gdb::function_view.
9349 * fork-inferior.c (fork_inferior): Likewise.
9350
c162ed3e
HD
93512020-01-23 Hannes Domani <ssbssa@yahoo.de>
9352
9353 * i386-cygwin-tdep.c (core_process_module_section): Update.
9354 * windows-nat.c (struct lm_info_windows): Add text_offset.
9355 (windows_xfer_shared_libraries): Update.
9356 * windows-tdep.c (windows_xfer_shared_library):
9357 Add text_offset_cached argument.
9358 * windows-tdep.h (windows_xfer_shared_library): Update.
9359
a1237872
SM
93602020-01-21 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9363
b3ee6dd9
SM
93642020-01-21 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9367 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9368 replace with range-based for.
9369 (gdbsim_interrupt_inferior): Remove.
9370 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9371 with a range-based for. Inline code from
9372 gdbsim_interrupt_inferior.
9373
f9fac3c8
SM
93742020-01-21 Simon Marchi <simon.marchi@efficios.com>
9375
9376 * infrun.c (proceed): Fix indentation.
9377
f6474de9
TT
93782020-01-21 Tom Tromey <tromey@adacore.com>
9379
9380 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9381 * python/python.c (python_extension_ops): Update.
9382 (gdbpy_colorize): New function.
9383 * python/lib/gdb/__init__.py (colorize): New function.
9384 * extension.h (ext_lang_colorize): Declare.
9385 * extension.c (ext_lang_colorize): New function.
9386 * extension-priv.h (struct extension_language_ops) <colorize>: New
9387 member.
9388 * cli/cli-style.c (_initialize_cli_style): Update help text.
9389
f0c702d4
LM
93902020-01-21 Luis Machado <luis.machado@linaro.org>
9391
9392 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9393 <cond>: Change type to bool.
9394 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9395 (aarch64_displaced_step_cb): Likewise.
9396 (aarch64_displaced_step_tb): Likewise.
9397
1ab139e5
LM
93982020-01-21 Luis Machado <luis.machado@linaro.org>
9399
9400 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9401 output.
9402
0c271889
LM
94032020-01-21 Luis Machado <luis.machado@linaro.org>
9404
9405 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9406 <pc_adjust>: Adjust the documentation.
9407 (aarch64_displaced_step_fixup): Check if PC really moved before
9408 adjusting it.
9409
4d89c1c7
TT
94102020-01-19 Tom Tromey <tom@tromey.com>
9411
9412 * disasm.c (~gdb_disassembler): New destructor.
9413 (gdb_buffered_insn_length): Call disassemble_free_target.
9414 * disasm.h (class gdb_disassembler): Declare destructor. Use
9415 DISABLE_COPY_AND_ASSIGN.
9416
c0ab21c2
TT
94172020-01-19 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9420 (die_reader_func_ftype): Remove.
9421 (cutu_reader): New class.
9422 (dw2_get_file_names_reader): Remove "data" parameter.
9423 (dw2_get_file_names): Use cutu_reader.
9424 (create_debug_type_hash_table): Update.
9425 (read_cutu_die_from_dwo): Update comment.
9426 (lookup_dwo_unit): Add dwo_name parameter.
9427 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9428 die_reader_func_ftype and data parameters.
9429 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9430 Remove die_reader_func_ftype and data parameters.
9431 (~cutu_reader): New; from init_cutu_and_read_dies.
9432 (cutu_reader::cutu_reader): Rename from
9433 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9434 and data parameters.
9435 (init_cutu_and_read_dies_simple): Remove.
9436 (struct process_psymtab_comp_unit_data): Remove.
9437 (process_psymtab_comp_unit_reader): Remove data parameter; add
9438 want_partial_unit and pretend_language parameters.
9439 (process_psymtab_comp_unit): Use cutu_reader.
9440 (build_type_psymtabs_reader): Remove data parameter.
9441 (build_type_psymtabs_1): Use cutu_reader.
9442 (process_skeletonless_type_unit): Likewise.
9443 (load_partial_comp_unit_reader): Remove.
9444 (load_partial_comp_unit): Use cutu_reader.
9445 (load_full_comp_unit_reader): Remove.
9446 (load_full_comp_unit): Use cutu_reader.
9447 (struct create_dwo_cu_data): Remove.
9448 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9449 dwo_unit parameters.
9450 (create_cus_hash_table): Use cutu_reader.
9451 (struct dwarf2_read_addr_index_data): Remove.
9452 (dwarf2_read_addr_index_reader): Remove.
9453 (dwarf2_read_addr_index): Use cutu_reader.
9454 (read_signatured_type_reader): Remove.
9455 (read_signatured_type): Use cutu_reader.
9456
45bbae5c
TT
94572020-01-19 Tom Tromey <tom@tromey.com>
9458
9459 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9460 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9461 (tui_wrefresh): Declare.
9462 * tui/tui-wingeneral.c (suppress_output): New global.
9463 (tui_suppress_output, ~tui_suppress_output): New constructor and
9464 destructor.
9465 (tui_wrefresh): New function.
9466 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9467 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9468 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9469 method.
9470 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9471 tui_wrefresh.
9472 (tui_data_window::no_refresh): New method.
9473 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9474 (tui_reg_command): Use tui_suppress_output
9475 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9476 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9477 method.
9478 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9479
4f13c1c0
TT
94802020-01-19 Tom Tromey <tom@tromey.com>
9481
9482 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9483 Handle case where symtab is null.
9484
fa47e446
SM
94852020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9486
9487 * linux-fork.c (one_fork_p): Simplify.
9488
26f42329
SM
94892020-01-17 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * top.c (struct qt_args): Remove.
9492 (kill_or_detach): Change return type to void, replace `void *`
9493 parameter with a proper one.
9494 (print_inferior_quit_action): Likewise.
9495 (quit_confirm): Use range-based for loop to iterate over inferiors.
9496 (quit_force): Likewise.
9497
a9ac81b1
SM
94982020-01-17 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9501 `void *` parameter with proper parameters.
9502 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9503 (print_one_inferior): Change return type to void, replace `void *`
9504 parameter with proper parameters.
9505 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9506 inferiors.
9507 (get_other_inferior): Remove.
9508 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9509 inferiors.
9510
788eca49
SM
95112020-01-17 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * mi/mi-interp.c (report_initial_inferior): Remove.
9514 (mi_interp::init): Use range-based for to iterate over inferiors.
9515
d9bc85b6
SM
95162020-01-17 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * python/py-inferior.c (build_inferior_list): Remove.
9519 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9520
40c94099
CB
95212020-01-16 Christian Biesinger <cbiesinger@google.com>
9522
9523 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9524 (btrace_stitch_trace): Likewise.
9525 * charset.c (intermediate_encoding): Likewise (vaild).
9526 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9527 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9528 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9529
e0cdfe3c
HD
95302020-01-16 Hannes Domani <ssbssa@yahoo.de>
9531
9532 * windows-tdep.c (windows_get_tlb_type):
9533 Add rtl_user_process_parameters type.
9534
790f1718 95352020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9536 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9537
9538 PR build/24805
9539 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9540 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9541 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9542 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9543 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9544 (ps_plog): Redeclare exported functions with default visibility.
9545
3112ed97
NA
95462020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9547
9548 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9549 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9550
8dc3273e
SM
95512020-01-15 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * infcmd.c (post_create_inferior): Use get_thread_regcache
9554 instead of get_current_regcache.
9555
ff47f4f0
TT
95562020-01-14 Tom Tromey <tom@tromey.com>
9557
9558 PR symtab/12535:
9559 * python/python.c (gdbpy_decode_line): Treat empty string the same
9560 as no argument.
9561
975f45b7
TT
95622020-01-14 Tom Tromey <tom@tromey.com>
9563
9564 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9565
25e57356
TT
95662020-01-14 Tom Tromey <tom@tromey.com>
9567
9568 * nat/linux-btrace.c: Don't include <config.h>.
9569 * nat/linux-ptrace.c: Don't include <config.h>.
9570 * nat/x86-linux-dregs.c: Don't include <config.h>.
9571
05ea2a05
TT
95722020-01-14 Tom Tromey <tom@tromey.com>
9573
9574 * configure: Rebuild.
9575 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9576
01027315
TT
95772020-01-14 Tom Tromey <tom@tromey.com>
9578
9579 * nat/x86-linux-dregs.c: Include configh.h.
9580 * nat/linux-ptrace.c: Include configh.h.
9581 * nat/linux-btrace.c: Include configh.h.
9582 * defs.h: Include config.h, bfd.h.
9583 * configure.ac: Don't source common.host.
9584 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9585 * configure: Rebuild.
9586 * acinclude.m4: Update path.
9587 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9588 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9589 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9590 (CLIBS): Add LIBSUPPORT.
9591 (CDEPS): Likewise.
9592 (COMMON_SFILES): Remove gdbsupport files.
9593 (HFILES_NO_SRCDIR): Likewise.
9594 (stamp-version): Update path to create-version.sh.
9595 (ALLDEPFILES): Remove gdbsupport files.
9596
b2ceabe8
TT
95972020-01-14 Tom Tromey <tom@tromey.com>
9598
9599 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9600 USE_WIN32API when needed.
9601 * configure.ac (USE_WIN32API): Don't define.
9602 (WIN32LIBS): Use WIN32APILIBS.
9603 * configure: Rebuild.
9604
25c51f71
TT
96052020-01-14 Tom Tromey <tom@tromey.com>
9606
9607 * configure: Rebuild.
9608 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9609
717c684d
BE
96102020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9611
9612 * skip.c (skip_function_command): Make skip w/o arguments use the
9613 name of the inlined function if pc is inside any inlined function.
9614
7da6a5b9
LM
96152020-01-14 Luis Machado <luis.machado@linaro.org>
9616
9617 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9618 * infrun.c (resume_1): Likewise.
9619 (handle_inferior_event): Remove stale comment.
9620 * linux-nat.c (linux_nat_target::resume): Update comments.
9621 (save_stop_reason): Likewise.
9622 (linux_nat_filter_event): Likewise.
9623 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9624
44e4c775
AB
96252020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9626
9627 * elfread.c (record_minimal_symbol): Set section index to 0 for
9628 non-allocatable sections.
9629
18a8505e
AT
9630
96312020-01-13 Ali Tamur <tamur@google.com>
9632
9633 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9634 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9635 to gdb::optional. Update comments.
9636 (dwo_file): Update comments.
9637 (read_attribute): Update API to take an additional out parameter,
9638 need_reprocess. This is used to mark attributes that need other
9639 attributes (e.g. str_offsets_base) for correct computation which may not
9640 have been read yet.
9641 (read_attribute_reprocess): New function declaration.
9642 (read_addr_index): Likewise.
9643 (read_dwo_str_index): Likewise.
9644 (read_stub_str_index): Likewise.
9645 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9646 (lookup_addr_base): New function definition.
9647 (lookup_ranges_base): Likewise.
9648 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9649 lookup_ranges_base.
9650 (init_cutu_and_read_dies): Update comments.
9651 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9652 unit. This is used to inherit parent's str_offsets_base and addr_base.
9653 Update comments.
9654 (init_cutu_and_read_dies_simple): Reflect API changes.
9655 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9656 (create_cus_hash_table): Change API to take parent compile unit.
9657 Reflect API changes.
9658 (open_and_init_dwo_file): Reflect API changes.
9659 (dwarf2_get_pc_bounds): Update comments.
9660 (dwarf2_record_block_ranges): Likewise.
9661 (read_full_die_1): Change implementation to reprocess attributes that
9662 need str_offsets_base and addr_base.
9663 (partial_die_info::read): Likewise.
9664 (read_attribute_reprocess): New function definition.
9665 (read_attribute_value): Change API to take an additional out parameter,
9666 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9667 when a non-dwo compile unit has index based attributes.
9668 (read_attribute): Reflect API changes.
9669 (read_addr_index_1): Reflect API changes. Update comments.
9670 (dwarf2_read_addr_index_data): Reflect API changes.
9671 (dwarf2_read_addr_index): Likewise.
9672 (read_str_index): Change API and implementation. This becomes a helper
9673 to be used by the new string index related methods. Update error
9674 message and comments.
9675 (read_dwo_str_index): New function definition.
9676 (read_stub_str_index): Likewise.
9677 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9678 * symfile.h (dwarf2_debug_sections): Likewise.
9679 * xcoffread.c (dwarf2_debug_sections): Likewise.
9680
0cac9354
SM
96812020-01-13 Simon Marchi <simon.marchi@efficios.com>
9682
9683 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9684 core_reg_sect type to gdb_byte *.
9685 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9686 * cris-tdep.c (fetch_core_registers): Likewise.
9687 * corelow.c (core_target::get_core_register_section): Change
9688 type of `contents` to gdb::byte_vector.
9689
9a6d629c
AB
96902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * tui/tui-wingeneral.c (box_win): Position the title in the center
9693 of the border.
9694
d8b2f9e3
SM
96952020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * corelow.c (core_target::get_core_register_section): Use
9698 std::vector instead of alloca.
9699
bb564c58
SM
97002020-01-13 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * warning.m4: Add -Wmissing-declarations to build_warnings.
9703 * configure: Re-generate.
9704
6b366111
SM
97052020-01-13 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * python/python.c (init__gdb_module): Add declaration.
9708
6c265988
SM
97092020-01-13 Simon Marchi <simon.marchi@efficios.com>
9710
9711 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9712 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9713 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9714 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9715 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9716 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9717 * ada-exp.y (_initialize_ada_exp): Add declaration.
9718 * ada-lang.c (_initialize_ada_language): Add declaration.
9719 * ada-tasks.c (_initialize_tasks): Add declaration.
9720 * agent.c (_initialize_agent): Add declaration.
9721 * aix-thread.c (_initialize_aix_thread): Add declaration.
9722 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9723 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9724 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9725 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9726 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9727 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9728 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9729 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9730 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9731 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9732 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9733 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9734 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9735 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9736 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9737 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9738 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9739 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9740 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9741 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9742 * annotate.c (_initialize_annotate): Add declaration.
9743 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9744 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9745 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9746 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9747 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9748 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9749 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9750 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9751 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9752 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9753 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9754 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9755 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9756 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9757 * auto-load.c (_initialize_auto_load): Add declaration.
9758 * auxv.c (_initialize_auxv): Add declaration.
9759 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9760 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9761 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9762 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9763 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9764 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9765 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9766 * breakpoint.c (_initialize_breakpoint): Add declaration.
9767 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9768 * btrace.c (_initialize_btrace): Add declaration.
9769 * charset.c (_initialize_charset): Add declaration.
9770 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9771 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9772 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9773 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9774 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9775 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9776 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9777 * coffread.c (_initialize_coffread): Add declaration.
9778 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9779 * compile/compile.c (_initialize_compile): Add declaration.
9780 * complaints.c (_initialize_complaints): Add declaration.
9781 * completer.c (_initialize_completer): Add declaration.
9782 * copying.c (_initialize_copying): Add declaration.
9783 * corefile.c (_initialize_core): Add declaration.
9784 * corelow.c (_initialize_corelow): Add declaration.
9785 * cp-abi.c (_initialize_cp_abi): Add declaration.
9786 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9787 * cp-support.c (_initialize_cp_support): Add declaration.
9788 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9789 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9790 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9791 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9792 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9793 * ctfread.c (_initialize_ctfread): Add declaration.
9794 * d-lang.c (_initialize_d_language): Add declaration.
9795 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9796 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9797 * dbxread.c (_initialize_dbxread): Add declaration.
9798 * dcache.c (_initialize_dcache): Add declaration.
9799 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9800 * disasm.c (_initialize_disasm): Add declaration.
9801 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9802 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9803 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9804 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9805 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9806 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9807 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9808 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9809 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9810 * elfread.c (_initialize_elfread): Add declaration.
9811 * exec.c (_initialize_exec): Add declaration.
9812 * extension.c (_initialize_extension): Add declaration.
9813 * f-lang.c (_initialize_f_language): Add declaration.
9814 * f-valprint.c (_initialize_f_valprint): Add declaration.
9815 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9816 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9817 * filesystem.c (_initialize_filesystem): Add declaration.
9818 * findcmd.c (_initialize_mem_search): Add declaration.
9819 * findvar.c (_initialize_findvar): Add declaration.
9820 * fork-child.c (_initialize_fork_child): Add declaration.
9821 * frame-base.c (_initialize_frame_base): Add declaration.
9822 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9823 * frame.c (_initialize_frame): Add declaration.
9824 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9825 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9826 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9827 * gcore.c (_initialize_gcore): Add declaration.
9828 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9829 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9830 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9831 * gdbarch.c (_initialize_gdbarch): Add declaration.
9832 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9833 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9834 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9835 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9836 * go-lang.c (_initialize_go_language): Add declaration.
9837 * go32-nat.c (_initialize_go32_nat): Add declaration.
9838 * guile/guile.c (_initialize_guile): Add declaration.
9839 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9840 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9841 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9842 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9843 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9844 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9845 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9846 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9847 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9848 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9849 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9850 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9851 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9852 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9853 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9854 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9855 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9856 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9857 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9858 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9859 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9860 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9861 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9862 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9863 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9864 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9865 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9866 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9867 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9868 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9869 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9870 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9871 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9872 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9873 * infcall.c (_initialize_infcall): Add declaration.
9874 * infcmd.c (_initialize_infcmd): Add declaration.
9875 * inflow.c (_initialize_inflow): Add declaration.
9876 * infrun.c (_initialize_infrun): Add declaration.
9877 * interps.c (_initialize_interpreter): Add declaration.
9878 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9879 * jit.c (_initialize_jit): Add declaration.
9880 * language.c (_initialize_language): Add declaration.
9881 * linux-fork.c (_initialize_linux_fork): Add declaration.
9882 * linux-nat.c (_initialize_linux_nat): Add declaration.
9883 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9884 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9885 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9886 * m2-lang.c (_initialize_m2_language): Add declaration.
9887 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9888 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9889 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9890 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9891 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9892 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9893 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9894 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9895 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9896 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9897 * machoread.c (_initialize_machoread): Add declaration.
9898 * macrocmd.c (_initialize_macrocmd): Add declaration.
9899 * macroscope.c (_initialize_macroscope): Add declaration.
9900 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9901 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9902 * maint.c (_initialize_maint_cmds): Add declaration.
9903 * mdebugread.c (_initialize_mdebugread): Add declaration.
9904 * memattr.c (_initialize_mem): Add declaration.
9905 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9906 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9907 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9908 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9909 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9910 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9911 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9912 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9913 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9914 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9915 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9916 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9917 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9918 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9919 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9920 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9921 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9922 * mipsread.c (_initialize_mipsread): Add declaration.
9923 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9924 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9925 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9926 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9927 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9928 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9929 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9930 * nto-procfs.c (_initialize_procfs): Add declaration.
9931 * objc-lang.c (_initialize_objc_language): Add declaration.
9932 * observable.c (_initialize_observer): Add declaration.
9933 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9934 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9935 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9936 * osabi.c (_initialize_gdb_osabi): Add declaration.
9937 * osdata.c (_initialize_osdata): Add declaration.
9938 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9939 * parse.c (_initialize_parse): Add declaration.
9940 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9941 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9942 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9943 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9944 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9945 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9946 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9947 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9948 * printcmd.c (_initialize_printcmd): Add declaration.
9949 * probe.c (_initialize_probe): Add declaration.
9950 * proc-api.c (_initialize_proc_api): Add declaration.
9951 * proc-events.c (_initialize_proc_events): Add declaration.
9952 * proc-service.c (_initialize_proc_service): Add declaration.
9953 * procfs.c (_initialize_procfs): Add declaration.
9954 * producer.c (_initialize_producer): Add declaration.
9955 * psymtab.c (_initialize_psymtab): Add declaration.
9956 * python/python.c (_initialize_python): Add declaration.
9957 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9958 * record-btrace.c (_initialize_record_btrace): Add declaration.
9959 * record-full.c (_initialize_record_full): Add declaration.
9960 * record.c (_initialize_record): Add declaration.
9961 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9962 * regcache.c (_initialize_regcache): Add declaration.
9963 * reggroups.c (_initialize_reggroup): Add declaration.
9964 * remote-notif.c (_initialize_notif): Add declaration.
9965 * remote-sim.c (_initialize_remote_sim): Add declaration.
9966 * remote.c (_initialize_remote): Add declaration.
9967 * reverse.c (_initialize_reverse): Add declaration.
9968 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9969 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9970 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9971 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9972 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9973 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9974 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9975 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9976 Add declaration.
9977 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9978 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9979 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9980 * rust-exp.y (_initialize_rust_exp): Add declaration.
9981 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9982 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9983 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9984 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9985 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9986 * score-tdep.c (_initialize_score_tdep): Add declaration.
9987 * ser-go32.c (_initialize_ser_dos): Add declaration.
9988 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9989 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9990 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9991 * ser-uds.c (_initialize_ser_socket): Add declaration.
9992 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9993 * serial.c (_initialize_serial): Add declaration.
9994 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9995 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9996 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9997 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9998 * skip.c (_initialize_step_skip): Add declaration.
9999 * sol-thread.c (_initialize_sol_thread): Add declaration.
10000 * solib-aix.c (_initialize_solib_aix): Add declaration.
10001 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10002 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10003 * solib-frv.c (_initialize_frv_solib): Add declaration.
10004 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10005 * solib-target.c (_initialize_solib_target): Add declaration.
10006 * solib.c (_initialize_solib): Add declaration.
10007 * source-cache.c (_initialize_source_cache): Add declaration.
10008 * source.c (_initialize_source): Add declaration.
10009 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10010 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10011 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10012 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10013 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10014 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10015 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10016 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10017 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10018 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10019 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10020 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10021 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10022 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10023 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10024 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10025 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10026 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10027 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10028 * stabsread.c (_initialize_stabsread): Add declaration.
10029 * stack.c (_initialize_stack): Add declaration.
10030 * stap-probe.c (_initialize_stap_probe): Add declaration.
10031 * std-regs.c (_initialize_frame_reg): Add declaration.
10032 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10033 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10034 * symfile.c (_initialize_symfile): Add declaration.
10035 * symmisc.c (_initialize_symmisc): Add declaration.
10036 * symtab.c (_initialize_symtab): Add declaration.
10037 * target.c (_initialize_target): Add declaration.
10038 * target-connection.c (_initialize_target_connection): Add
10039 declaration.
10040 * target-dcache.c (_initialize_target_dcache): Add declaration.
10041 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10042 * thread.c (_initialize_thread): Add declaration.
10043 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10044 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10045 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10046 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10047 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10048 * tracectf.c (_initialize_ctf): Add declaration.
10049 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10050 * tracefile.c (_initialize_tracefile): Add declaration.
10051 * tracepoint.c (_initialize_tracepoint): Add declaration.
10052 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10053 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10054 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10055 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10056 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10057 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10058 * tui/tui.c (_initialize_tui): Add declaration.
10059 * typeprint.c (_initialize_typeprint): Add declaration.
10060 * ui-style.c (_initialize_ui_style): Add declaration.
10061 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10062 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10063 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10064 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10065 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10066 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10067 * unittests/filtered_iterator-selftests.c
10068 (_initialize_filtered_iterator_selftests): Add declaration.
10069 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10070 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10071 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10072 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10073 * unittests/main-thread-selftests.c
10074 (_initialize_main_thread_selftests): Add declaration.
10075 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10076 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10077 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10078 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10079 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10080 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10081 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10082 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10083 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10084 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10085 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10086 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10087 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10088 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10089 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10090 declaration.
10091 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10092 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10093 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10094 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10095 * user-regs.c (_initialize_user_regs): Add declaration.
10096 * utils.c (_initialize_utils): Add declaration.
10097 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10098 * valops.c (_initialize_valops): Add declaration.
10099 * valprint.c (_initialize_valprint): Add declaration.
10100 * value.c (_initialize_values): Add declaration.
10101 * varobj.c (_initialize_varobj): Add declaration.
10102 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10103 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10104 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10105 * windows-nat.c (_initialize_windows_nat): Add declaration.
10106 (_initialize_check_for_gdb_ini): Add declaration.
10107 (_initialize_loadable): Add declaration.
10108 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10109 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10110 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10111 * xcoffread.c (_initialize_xcoffread): Add declaration.
10112 * xml-support.c (_initialize_xml_support): Add declaration.
10113 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10114 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10115 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10116 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10117
e2de1eec
SM
101182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10119
10120 * regformats/regdat.sh: Generate declaration for init function.
10121
e0037b4c
SM
101222020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10125 up.
10126 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10127 close_one_inferior>: New methods.
10128 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10129 pass down target to find_inferior_pid.
10130 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10131 Pass down target to find_inferior_ptid.
10132 (gdbsim_target::create_inferior): Pass down target to
10133 add_thread_silent.
10134 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10135 target down to find_inferior_ptid and switch_to_thread.
10136 (gdbsim_target::close): Update to call close_one_inferior.
10137 (struct resume_data): Remove.
10138 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10139 directly, rather than through a void pointer.
10140 (gdbsim_target::resume): Update to call resume_one_inferior.
10141
58920b5b
SM
101422020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10143
10144 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10145
4ec89149
PA
101462020-01-12 Pedro Alves <palves@redhat.com>
10147
10148 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10149 directly for the current inferior instead of
10150 discard_all_inferiors.
10151 (discard_all_inferiors): Delete.
10152
7c392d1d
TT
101532020-01-11 Tom Tromey <tom@tromey.com>
10154
10155 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10156 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10157 deprecated_safe_get_selected_frame.
10158
d9ebdab7
TBA
101592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10160
10161 * inferior.c (print_inferior): Switch inferior before printing it.
10162
f3c469b9
PA
101632020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10164 Pedro Alves <palves@redhat.com>
10165
10166 * progspace-and-thread.c (switch_to_program_space_and_thread):
10167 Assert there's an inferior for PSPACE. Use
10168 switch_to_inferior_no_thread to switch the inferior too.
10169 * progspace.c (program_space::~program_space): Call
10170 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10171 (program_space::free_all_objfiles): Don't call clear_symtab_users
10172 here.
10173 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10174
65c574f6
PA
101752020-01-10 Pedro Alves <palves@redhat.com>
10176
10177 * NEWS: Mention multi-target debugging, "info connections", and
10178 "add-inferior -no-connection".
10179
2f4fcf00
PA
101802020-01-10 Pedro Alves <palves@redhat.com>
10181
10182 * infrun.c: Include "target-connection.h".
10183 (check_multi_target_resumption): New.
10184 (proceed): Call it.
10185 * target-connection.c (make_target_connection_string): Make
10186 extern.
10187 * target-connection.h (make_target_connection_string): Declare.
10188
121b3efd
PA
101892020-01-10 Pedro Alves <palves@redhat.com>
10190
10191 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10192 * inferior.c (uiout_field_connection): New function.
10193 (print_inferior): Add new "connection-id" column.
10194 (add_inferior_command): Show connection number/string of added
10195 inferior.
10196 * process-stratum-target.h
10197 (process_stratum_target::connection_string): New virtual method.
10198 (process_stratum_target::connection_number): New field.
10199 * remote.c (remote_target::connection_string): New override.
10200 * target-connection.c: New file.
10201 * target-connection.h: New file.
10202 * target.c (decref_target): Remove process_stratum targets from
10203 the connection list.
10204 (target_stack::push): Add process_stratum targets to the
10205 connection list.
10206
4f837581
PA
102072020-01-10 Pedro Alves <palves@redhat.com>
10208
10209 Revert:
10210 2016-04-12 Pedro Alves <palves@redhat.com>
10211 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10212 Remove references to name.
10213 * serial.h (struct serial) <name>: Delete.
10214
f4ec508e
PA
102152020-01-10 Pedro Alves <palves@redhat.com>
10216
10217 * gdbarch-selftests.c (register_to_value_test): Remove "target
10218 already pushed" check.
10219
5b6d1e4f
PA
102202020-01-10 Pedro Alves <palves@redhat.com>
10221 John Baldwin <jhb@FreeBSD.org>
10222
10223 * aarch64-linux-nat.c
10224 (aarch64_linux_nat_target::thread_architecture): Adjust.
10225 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10226 (task_command_1): Likewise.
10227 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10228 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10229 (aix_thread_target::store_registers)
10230 (aix_thread_target::thread_alive): Adjust.
10231 * amd64-fbsd-tdep.c: Include "inferior.h".
10232 (amd64fbsd_get_thread_local_address): Pass down target.
10233 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10234 thread's gdbarch instead of target_gdbarch.
10235 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10236 get_last_target_status.
10237 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10238 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10239 inferiors.
10240 (update_inserted_breakpoint_locations): Skip if inferiors with no
10241 execution.
10242 (update_global_location_list): When handling moribund locations,
10243 find representative inferior for location's pspace, and use thread
10244 count of its process_stratum target.
10245 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10246 * bsd-uthread.c (bsd_uthread_target::wait): Use
10247 as_process_stratum_target and adjust thread_change_ptid and
10248 add_thread calls.
10249 (bsd_uthread_target::update_thread_list): Use
10250 as_process_stratum_target and adjust find_thread_ptid,
10251 thread_change_ptid and add_thread calls.
10252 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10253 find_thread_ptid call.
10254 * corelow.c (add_to_thread_list): Adjust add_thread call.
10255 (core_target_open): Adjust add_thread_silent and thread_count
10256 calls.
10257 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10258 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10259 * event-top.c (async_disconnect): Pop targets from all inferiors.
10260 * exec.c (add_target_sections): Push exec target on all inferiors
10261 sharing the program space.
10262 (remove_target_sections): Remove the exec target from all
10263 inferiors sharing the program space.
10264 (exec_on_vfork): New.
10265 * exec.h (exec_on_vfork): Declare.
10266 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10267 Pass it down.
10268 (fbsd_nat_target::update_thread_list): Adjust.
10269 (fbsd_nat_target::resume): Adjust.
10270 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10271 down.
10272 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10273 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10274 get_thread_arch_regcache call.
10275 * fork-child.c (gdb_startup_inferior): Pass target down to
10276 startup_inferior and set_executing.
10277 * gdbthread.h (struct process_stratum_target): Forward declare.
10278 (add_thread, add_thread_silent, add_thread_with_info)
10279 (in_thread_list): Add process_stratum_target parameter.
10280 (find_thread_ptid(inferior*, ptid_t)): New overload.
10281 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10282 parameter.
10283 (all_threads()): Delete overload.
10284 (all_threads, all_non_exited_threads): Add process_stratum_target
10285 parameter.
10286 (all_threads_safe): Use brace initialization.
10287 (thread_count): Add process_stratum_target parameter.
10288 (set_resumed, set_running, set_stop_requested, set_executing)
10289 (threads_are_executing, finish_thread_state): Add
10290 process_stratum_target parameter.
10291 (switch_to_thread): Use is_current_thread.
10292 * i386-fbsd-tdep.c: Include "inferior.h".
10293 (i386fbsd_get_thread_local_address): Pass down target.
10294 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10295 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10296 have_inferiors check.
10297 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10298 (inf_ptrace_target::attach): Adjust.
10299 * infcall.c (run_inferior_call): Adjust.
10300 * infcmd.c (run_command_1): Pass target to
10301 scoped_finish_thread_state.
10302 (proceed_thread_callback): Skip inferiors with no execution.
10303 (continue_command): Rename 'all_threads' local to avoid hiding
10304 'all_threads' function. Adjust get_last_target_status call.
10305 (prepare_one_step): Adjust set_running call.
10306 (signal_command): Use user_visible_resume_target. Compare thread
10307 pointers instead of inferior_ptid.
10308 (info_program_command): Adjust to pass down target.
10309 (attach_command): Mark target's 'thread_executing' flag.
10310 (stop_current_target_threads_ns): New, factored out from ...
10311 (interrupt_target_1): ... this. Switch inferior before making
10312 target calls.
10313 * inferior-iter.h
10314 (struct all_inferiors_iterator, struct all_inferiors_range)
10315 (struct all_inferiors_safe_range)
10316 (struct all_non_exited_inferiors_range): Filter on
10317 process_stratum_target too. Remove explicit.
10318 * inferior.c (inferior::inferior): Push dummy target on target
10319 stack.
10320 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10321 Add process_stratum_target parameter, and pass it down.
10322 (have_live_inferiors): Adjust.
10323 (switch_to_inferior_and_push_target): New.
10324 (add_inferior_command, clone_inferior_command): Handle
10325 "-no-connection" parameter. Use
10326 switch_to_inferior_and_push_target.
10327 (_initialize_inferior): Mention "-no-connection" option in
10328 the help of "add-inferior" and "clone-inferior" commands.
10329 * inferior.h: Include "process-stratum-target.h".
10330 (interrupt_target_1): Use bool.
10331 (struct inferior) <push_target, unpush_target, target_is_pushed,
10332 find_target_beneath, top_target, process_target, target_at,
10333 m_stack>: New.
10334 (discard_all_inferiors): Delete.
10335 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10336 (all_inferiors, all_non_exited_inferiors): Add
10337 process_stratum_target parameter.
10338 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10339 (target_last_proc_target): New global.
10340 (follow_fork_inferior): Push target on new inferior. Pass target
10341 to add_thread_silent. Call exec_on_vfork. Handle target's
10342 reference count.
10343 (follow_fork): Adjust get_last_target_status call. Also consider
10344 target.
10345 (follow_exec): Push target on new inferior.
10346 (struct execution_control_state) <target>: New field.
10347 (user_visible_resume_target): New.
10348 (do_target_resume): Call target_async.
10349 (resume_1): Set target's threads_executing flag. Consider resume
10350 target.
10351 (commit_resume_all_targets): New.
10352 (proceed): Also consider resume target. Skip threads of inferiors
10353 with no execution. Commit resumtion in all targets.
10354 (start_remote): Pass current inferior to wait_for_inferior.
10355 (infrun_thread_stop_requested): Consider target as well. Pass
10356 thread_info pointer to clear_inline_frame_state instead of ptid.
10357 (infrun_thread_thread_exit): Consider target as well.
10358 (random_pending_event_thread): New inferior parameter. Use it.
10359 (do_target_wait): Rename to ...
10360 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10361 down.
10362 (threads_are_resumed_pending_p, do_target_wait): New.
10363 (prepare_for_detach): Adjust calls.
10364 (wait_for_inferior): New inferior parameter. Handle it. Use
10365 do_target_wait_1 instead of do_target_wait.
10366 (fetch_inferior_event): Adjust. Switch to representative
10367 inferior. Pass target down.
10368 (set_last_target_status): Add process_stratum_target parameter.
10369 Save target in global.
10370 (get_last_target_status): Add process_stratum_target parameter and
10371 handle it.
10372 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10373 (context_switch): Check inferior_ptid == null_ptid before calling
10374 inferior_thread().
10375 (get_inferior_stop_soon): Pass down target.
10376 (wait_one): Rename to ...
10377 (poll_one_curr_target): ... this.
10378 (struct wait_one_event): New.
10379 (wait_one): New.
10380 (stop_all_threads): Adjust.
10381 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10382 event's target.
10383 (switch_back_to_stepped_thread): Also consider target.
10384 (print_stop_event): Update.
10385 (normal_stop): Update. Also consider the resume target.
10386 * infrun.h (wait_for_inferior): Remove declaration.
10387 (user_visible_resume_target): New declaration.
10388 (get_last_target_status, set_last_target_status): New
10389 process_stratum_target parameter.
10390 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10391 process_stratum_target parameter, and use it.
10392 (clear_inline_frame_state (thread_info*)): New.
10393 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10394 process_stratum_target parameter.
10395 (clear_inline_frame_state (thread_info*)): Declare.
10396 * linux-fork.c (delete_checkpoint_command): Pass target down to
10397 find_thread_ptid.
10398 (checkpoint_command): Adjust.
10399 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10400 instead of just tweaking inferior_ptid.
10401 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10402 (exit_lwp): Pass target down to find_thread_ptid.
10403 (attach_proc_task_lwp_callback): Pass target down to
10404 add_thread/set_running/set_executing.
10405 (linux_nat_target::attach): Pass target down to
10406 thread_change_ptid.
10407 (get_detach_signal): Pass target down to find_thread_ptid.
10408 Consider last target status's target.
10409 (linux_resume_one_lwp_throw, resume_lwp)
10410 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10411 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10412 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10413 (linux_nat_target::async_wait_fd): New.
10414 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10415 target down.
10416 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10417 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10418 * linux-thread-db.c (struct thread_db_info::process_target): New
10419 field.
10420 (add_thread_db_info): Save target.
10421 (get_thread_db_info): New process_stratum_target parameter. Also
10422 match target.
10423 (delete_thread_db_info): New process_stratum_target parameter.
10424 Also match target.
10425 (thread_from_lwp): Adjust to pass down target.
10426 (thread_db_notice_clone): Pass down target.
10427 (check_thread_db_callback): Pass down target.
10428 (try_thread_db_load_1): Always push the thread_db target.
10429 (try_thread_db_load, record_thread): Pass target down.
10430 (thread_db_target::detach): Pass target down. Always unpush the
10431 thread_db target.
10432 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10433 target down. Always unpush the thread_db target.
10434 (find_new_threads_callback, thread_db_find_new_threads_2)
10435 (thread_db_target::update_thread_list): Pass target down.
10436 (thread_db_target::pid_to_str): Pass current inferior down.
10437 (thread_db_target::get_thread_local_address): Pass target down.
10438 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10439 target down.
10440 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10441 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10442 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10443 (procfs_init_inferior): Rename to ...
10444 (procfs_target::procfs_init_inferior): ... this and adjust.
10445 (procfs_target::create_inferior, procfs_notice_thread)
10446 (procfs_do_thread_registers): Adjust.
10447 * ppc-fbsd-tdep.c: Include "inferior.h".
10448 (ppcfbsd_get_thread_local_address): Pass down target.
10449 * proc-service.c (ps_xfer_memory): Switch current inferior and
10450 program space as well.
10451 (get_ps_regcache): Pass target down.
10452 * process-stratum-target.c
10453 (process_stratum_target::thread_address_space)
10454 (process_stratum_target::thread_architecture): Pass target down.
10455 * process-stratum-target.h
10456 (process_stratum_target::threads_executing): New field.
10457 (as_process_stratum_target): New.
10458 * ravenscar-thread.c
10459 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10460 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10461 down.
10462 * record-btrace.c (record_btrace_target::info_record): Adjust.
10463 (record_btrace_target::record_method)
10464 (record_btrace_target::record_is_replaying)
10465 (record_btrace_target::fetch_registers)
10466 (get_thread_current_frame_id, record_btrace_target::resume)
10467 (record_btrace_target::wait, record_btrace_target::stop): Pass
10468 target down.
10469 * record-full.c (record_full_wait_1): Switch to event thread.
10470 Pass target down.
10471 * regcache.c (regcache::regcache)
10472 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10473 process_stratum_target parameter and handle it.
10474 (current_thread_target): New global.
10475 (get_thread_regcache): Add process_stratum_target parameter and
10476 handle it. Switch inferior before calling target method.
10477 (get_thread_regcache): Pass target down.
10478 (get_thread_regcache_for_ptid): Pass target down.
10479 (registers_changed_ptid): Add process_stratum_target parameter and
10480 handle it.
10481 (registers_changed_thread, registers_changed): Pass target down.
10482 (test_get_thread_arch_aspace_regcache): New.
10483 (current_regcache_test): Define a couple local test_target_ops
10484 instances and use them for testing.
10485 (readwrite_regcache): Pass process_stratum_target parameter.
10486 (cooked_read_test, cooked_write_test): Pass mock_target down.
10487 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10488 (get_thread_arch_aspace_regcache): Add process_stratum_target
10489 parameter.
10490 (regcache::target): New method.
10491 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10492 (regcache::registers_changed_ptid): Add process_stratum_target
10493 parameter.
10494 (regcache::m_target): New field.
10495 (registers_changed_ptid): Add process_stratum_target parameter.
10496 * remote.c (remote_state::supports_vCont_probed): New field.
10497 (remote_target::async_wait_fd): New method.
10498 (remote_unpush_and_throw): Add remote_target parameter.
10499 (get_current_remote_target): Adjust.
10500 (remote_target::remote_add_inferior): Push target.
10501 (remote_target::remote_add_thread)
10502 (remote_target::remote_notice_new_inferior)
10503 (get_remote_thread_info): Pass target down.
10504 (remote_target::update_thread_list): Skip threads of inferiors
10505 bound to other targets. (remote_target::close): Don't discard
10506 inferiors. (remote_target::add_current_inferior_and_thread)
10507 (remote_target::process_initial_stop_replies)
10508 (remote_target::start_remote)
10509 (remote_target::remote_serial_quit_handler): Pass down target.
10510 (remote_target::remote_unpush_target): New remote_target
10511 parameter. Unpush the target from all inferiors.
10512 (remote_target::remote_unpush_and_throw): New remote_target
10513 parameter. Pass it down.
10514 (remote_target::open_1): Check whether the current inferior has
10515 execution instead of checking whether any inferior is live. Pass
10516 target down.
10517 (remote_target::remote_detach_1): Pass down target. Use
10518 remote_unpush_target.
10519 (extended_remote_target::attach): Pass down target.
10520 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10521 (remote_target::append_resumption): Pass down target.
10522 (remote_target::append_pending_thread_resumptions)
10523 (remote_target::remote_resume_with_hc, remote_target::resume)
10524 (remote_target::commit_resume): Pass down target.
10525 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10526 (remote_target::interrupt_query)
10527 (remote_target::remove_new_fork_children)
10528 (remote_target::check_pending_events_prevent_wildcard_vcont)
10529 (remote_target::remote_parse_stop_reply)
10530 (remote_target::process_stop_reply): Pass down target.
10531 (first_remote_resumed_thread): New remote_target parameter. Pass
10532 it down.
10533 (remote_target::wait_as): Pass down target.
10534 (unpush_and_perror): New remote_target parameter. Pass it down.
10535 (remote_target::readchar, remote_target::remote_serial_write)
10536 (remote_target::getpkt_or_notif_sane_1)
10537 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10538 down target.
10539 (remote_target::mourn_inferior): Pass down target. Use
10540 remote_unpush_target.
10541 (remote_target::core_of_thread)
10542 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10543 (remote_target::pid_to_exec_file)
10544 (remote_target::thread_handle_to_thread_info): Pass down target.
10545 (remote_target::async_wait_fd): New.
10546 * riscv-fbsd-tdep.c: Include "inferior.h".
10547 (riscv_fbsd_get_thread_local_address): Pass down target.
10548 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10549 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10550 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10551 Adjust.
10552 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10553 * solib-svr4.c (enable_break): Pass down target.
10554 * spu-multiarch.c (parse_spufs_run): Pass down target.
10555 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10556 * target-delegates.c: Regenerate.
10557 * target.c (g_target_stack): Delete.
10558 (current_top_target): Return the current inferior's top target.
10559 (target_has_execution_1): Refer to the passed-in inferior's top
10560 target.
10561 (target_supports_terminal_ours): Check whether the initial
10562 inferior was already created.
10563 (decref_target): New.
10564 (target_stack::push): Incref/decref the target.
10565 (push_target, push_target, unpush_target): Adjust.
10566 (target_stack::unpush): Defref target.
10567 (target_is_pushed): Return bool. Adjust to refer to the current
10568 inferior's target stack.
10569 (dispose_inferior): Delete, and inline parts ...
10570 (target_preopen): ... here. Only dispose of the current inferior.
10571 (target_detach): Hold strong target reference while detaching.
10572 Pass target down.
10573 (target_thread_name): Add assertion.
10574 (target_resume): Pass down target.
10575 (target_ops::beneath, find_target_at): Adjust to refer to the
10576 current inferior's target stack.
10577 (get_dummy_target): New.
10578 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10579 has a thread running.
10580 (initialize_targets): Rename to ...
10581 (_initialize_target): ... this.
10582 * target.h: Include "gdbsupport/refcounted-object.h".
10583 (struct target_ops): Inherit refcounted_object.
10584 (target_ops::shortname, target_ops::longname): Make const.
10585 (target_ops::async_wait_fd): New method.
10586 (decref_target): Declare.
10587 (struct target_ops_ref_policy): New.
10588 (target_ops_ref): New typedef.
10589 (get_dummy_target): Declare function.
10590 (target_is_pushed): Return bool.
10591 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10592 (all_matching_threads_iterator::all_matching_threads_iterator):
10593 Handle filter target.
10594 * thread-iter.h (struct all_matching_threads_iterator, struct
10595 all_matching_threads_range, class all_non_exited_threads_range):
10596 Filter by target too. Remove explicit.
10597 * thread.c (threads_executing): Delete.
10598 (inferior_thread): Pass down current inferior.
10599 (clear_thread_inferior_resources): Pass down thread pointer
10600 instead of ptid_t.
10601 (add_thread_silent, add_thread_with_info, add_thread): Add
10602 process_stratum_target parameter. Use it for thread and inferior
10603 searches.
10604 (is_current_thread): New.
10605 (thread_info::deletable): Use it.
10606 (find_thread_ptid, thread_count, in_thread_list)
10607 (thread_change_ptid, set_resumed, set_running): New
10608 process_stratum_target parameter. Pass it down.
10609 (set_executing): New process_stratum_target parameter. Pass it
10610 down. Adjust reference to 'threads_executing'.
10611 (threads_are_executing): New process_stratum_target parameter.
10612 Adjust reference to 'threads_executing'.
10613 (set_stop_requested, finish_thread_state): New
10614 process_stratum_target parameter. Pass it down.
10615 (switch_to_thread): Also match inferior.
10616 (switch_to_thread): New process_stratum_target parameter. Pass it
10617 down.
10618 (update_threads_executing): Reimplement.
10619 * top.c (quit_force): Pop targets from all inferior.
10620 (gdb_init): Don't call initialize_targets.
10621 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10622 Declare.
10623 (windows_add_thread, windows_delete_thread): Adjust.
10624 (get_windows_debug_event): Rename to ...
10625 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10626 * tracefile-tfile.c (tfile_target_open): Pass down target.
10627 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10628 Forward declare.
10629 (switch_to_thread): Add process_stratum_target parameter.
10630 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10631 parameter. Use it.
10632 (mi_on_resume): Pass target down.
10633 * nat/fork-inferior.c (startup_inferior): Add
10634 process_stratum_target parameter. Pass it down.
10635 * nat/fork-inferior.h (startup_inferior): Add
10636 process_stratum_target parameter.
10637 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10638
75c6c844
PA
106392020-01-10 Pedro Alves <palves@redhat.com>
10640
10641 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10642 directly. Instead find the first thread in the thread list and
10643 use switch_to_thread.
10644
78f2c40a
PA
106452020-01-10 Pedro Alves <palves@redhat.com>
10646
10647 * remote.c (remote_target::remote_add_inferior): Don't bind a
10648 process to the current inferior if the current inferior is already
10649 bound to a process.
10650
e7af6c70
TBA
106512020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10652 Pedro Alves <palves@redhat.com>
10653
10654 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10655 If no process is specified, return null_ptid instead of
10656 inferior_ptid.
10657 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10658 TARGET_WAITKIND_SIGNALLED with no pid.
10659
31ba933e
PA
106602020-01-10 Pedro Alves <palves@redhat.com>
10661
10662 * remote.c (first_remote_resumed_thread): New.
10663 (remote_target::wait_as): Use it as default event_ptid instead of
10664 inferior_ptid.
10665
735fc2ca
PA
106662020-01-10 Pedro Alves <palves@redhat.com>
10667
10668 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10669
c17e02e1
PA
106702020-01-10 Pedro Alves <palves@redhat.com>
10671
10672 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10673 not -1.
10674
ab1ddbcf
PA
106752020-01-10 Pedro Alves <palves@redhat.com>
10676
10677 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10678 ptid to get_last_target_status.
10679 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10680 ptid to get_last_target_status.
10681 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10682 get_last_target_status.
10683 (info_program_command): Don't pass a target_waitstatus to
10684 get_last_target_status.
10685 * infrun.c (init_wait_for_inferior): Use
10686 nullify_last_target_wait_ptid.
10687 (get_last_target_status): Handle nullptr arguments.
10688 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10689 (print_stop_event): Don't pass a ptid to get_last_target_status.
10690 (normal_stop): Don't pass a ptid to get_last_target_status.
10691 * infrun.h (get_last_target_status, set_last_target_status): Move
10692 comments here and update.
10693 (nullify_last_target_wait_ptid): Declare.
10694 * linux-fork.c (fork_load_infrun_state): Remove local extern
10695 declaration of nullify_last_target_wait_ptid.
10696 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10697 to get_last_target_status.
10698
f3f8ece4
PA
106992020-01-10 Pedro Alves <palves@redhat.com>
10700
10701 * gdbthread.h (scoped_restore_current_thread)
10702 <dont_restore, restore, m_dont_restore>: Declare.
10703 * thread.c (thread_alive): Add assertion. Return bool.
10704 (switch_to_thread_if_alive): New.
10705 (prune_threads): Switch inferior/thread.
10706 (print_thread_info_1): Switch thread before calling target methods.
10707 (scoped_restore_current_thread::restore): New, factored out from
10708 ...
10709 (scoped_restore_current_thread::~scoped_restore_current_thread):
10710 ... this.
10711 (scoped_restore_current_thread::scoped_restore_current_thread):
10712 Add assertion.
10713 (thread_apply_all_command, thread_select): Use
10714 switch_to_thread_if_alive.
10715 * infrun.c (proceed, restart_threads, handle_signal_stop)
10716 (switch_back_to_stepped_thread): Switch current thread before
10717 calling target methods.
10718
db2d40f7
PA
107192020-01-10 Pedro Alves <palves@redhat.com>
10720
10721 * inferior.c (switch_to_inferior_no_thread): New function,
10722 factored out from ...
10723 (inferior_command): ... here.
10724 * inferior.h (switch_to_inferior_no_thread): Declare.
10725 * mi/mi-main.c (run_one_inferior): Use
10726 switch_to_inferior_no_thread.
10727
bd420a2d
PA
107282020-01-10 Pedro Alves <palves@redhat.com>
10729
10730 * infcmd.c (kill_command): Remove dead code.
10731
ddf5db90
PA
107322020-01-10 Pedro Alves <palves@redhat.com>
10733
10734 * remote.c (remote_target::mourn_inferior): No longer check
10735 whether the target is running.
10736
5018ce90
PA
107372020-01-10 Pedro Alves <palves@redhat.com>
10738
10739 * corelow.c (core_target::has_execution): Change parameter type to
10740 inferior pointer.
10741 * inferior.c (number_of_live_inferiors): Use
10742 inferior::has_execution instead of target_has_execution_1.
10743 * inferior.h (inferior::has_execution): New.
10744 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10745 inferior::has_execution instead of target_has_execution_1.
10746 * process-stratum-target.c
10747 (process_stratum_target::has_execution): Change parameter type to
10748 inferior pointer. Check the inferior's PID instead of
10749 inferior_ptid.
10750 * process-stratum-target.h
10751 (process_stratum_target::has_execution): Change parameter type to
10752 inferior pointer.
10753 * record-full.c (record_full_core_target::has_execution): Change
10754 parameter type to inferior pointer.
10755 * target.c (target_has_execution_1): Change parameter type to
10756 inferior pointer.
10757 (target_has_execution_current): Adjust.
10758 * target.h (target_ops::has_execution): Change parameter type to
10759 inferior pointer.
10760 (target_has_execution_1): Change parameter type to inferior
10761 pointer. Change return type to bool.
10762 * tracefile.h (tracefile_target::has_execution): Change parameter
10763 type to inferior pointer.
10764
74375d18
PA
107652020-01-10 Pedro Alves <palves@redhat.com>
10766
10767 * exceptions.c (print_flush): Remove current_top_target() check.
10768
acdf84a6
PA
107692020-01-10 Pedro Alves <palves@redhat.com>
10770
10771 * remote.c (show_remote_exec_file): Show the current inferior's
10772 exec-file instead of the command variable's value.
10773
ec506636
PA
107742020-01-10 Pedro Alves <palves@redhat.com>
10775
10776 * record-full.c (record_full_resume_ptid): New global.
10777 (record_full_target::resume): Set it.
10778 (record_full_wait_1): Use record_full_resume_ptid instead of
10779 inferior_ptid.
10780
873657b9
PA
107812020-01-10 Pedro Alves <palves@redhat.com>
10782
10783 * gdbthread.h (scoped_restore_current_thread)
10784 <dont_restore, restore, m_dont_restore>: Declare.
10785 * thread.c (thread_alive): Add assertion. Return bool.
10786 (switch_to_thread_if_alive): New.
10787 (prune_threads): Switch inferior/thread.
10788 (print_thread_info_1): Switch thread before calling target methods.
10789 (scoped_restore_current_thread::restore): New, factored out from
10790 ...
10791 (scoped_restore_current_thread::~scoped_restore_current_thread):
10792 ... this.
10793 (scoped_restore_current_thread::scoped_restore_current_thread):
10794 Add assertion.
10795 (thread_apply_all_command, thread_select): Use
10796 switch_to_thread_if_alive.
10797
7f0ae84c
GB
107982020-01-10 George Barrett <bob@bob131.so>
10799
10800 * stap-probe.c (stap_modify_semaphore): Don't check for null
10801 semaphores.
10802 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10803 for null semaphores.
10804
f5a7c406
AB
108052020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10806
10807 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10808 all source windows, and maintain horizontal scroll status while
10809 doing so.
10810
9ae6bf64
TT
108112020-01-09 Tom Tromey <tom@tromey.com>
10812
10813 PR tui/18932:
10814 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10815 update_source_window, not print_source_lines.
10816
b2efe70c
AB
108172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * tui/tui.c (tui_enable): Register tui hooks after calling
10820 tui_display_main.
10821
5f23a082
CB
108222020-01-09 Christian Biesinger <cbiesinger@google.com>
10823
10824 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10825
3061113b
SM
108262020-01-08 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * thread.c (print_thread_info_1): Fix indentation.
10829
57d75002
CB
108302020-01-09 Christian Biesinger <cbiesinger@google.com>
10831
10832 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10833 unique_xmalloc_ptr outside the if to always free the demangled name.
10834
6a053cb1
TT
108352020-01-08 Tom Tromey <tromey@adacore.com>
10836
10837 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10838 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10839 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10840 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10841 Remove.
10842 (section_offsets): New typedef.
10843 * symtab.c (fixup_section, get_msymbol_address): Update.
10844 * symmisc.c (dump_msymbols): Update.
10845 * symfile.h (relative_addr_info_to_section_offsets)
10846 (symfile_map_offsets_to_segments): Update.
10847 * symfile.c (build_section_addr_info_from_objfile)
10848 (init_objfile_sect_indices): Update.
10849 (struct place_section_arg): Change type of "offsets".
10850 (place_section): Update.
10851 (relative_addr_info_to_section_offsets): Change type of
10852 "section_offsets". Remove "num_sections" parameter.
10853 (default_symfile_offsets, syms_from_objfile_1)
10854 (set_objfile_default_section_offset): Update.
10855 (reread_symbols): No need to preserve section offsets by hand.
10856 (symfile_map_offsets_to_segments): Change type of "offsets".
10857 * stap-probe.c (relocate_address): Update.
10858 * stabsread.h (process_one_symbol): Update.
10859 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10860 (solib_target_relocate_section_addresses): Update.
10861 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10862 Update.
10863 * solib-frv.c (frv_relocate_main_executable): Update.
10864 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10865 * solib-aix.c (solib_aix_get_section_offsets): Change return
10866 type.
10867 (solib_aix_solib_create_inferior_hook): Update.
10868 * remote.c (remote_target::get_offsets): Update.
10869 * psymtab.c (find_pc_sect_psymtab): Update.
10870 * psympriv.h (struct partial_symbol) <address, text_low,
10871 text_high>: Update.
10872 * objfiles.h (obj_section_offset): Update.
10873 (struct objfile) <section_offsets>: Change type.
10874 <num_sections>: Remove.
10875 (objfile_relocate): Update.
10876 * objfiles.c (entry_point_address_query): Update
10877 (relocate_one_symbol): Change type of "section_offsets".
10878 (objfile_relocate1, objfile_relocate1): Change type of
10879 "new_offsets".
10880 (objfile_rebase1): Update.
10881 * mipsread.c (mipscoff_symfile_read): Update.
10882 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10883 parameter.
10884 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10885 (parse_external, psymtab_to_symtab_1): Update.
10886 * machoread.c (macho_symfile_offsets): Update.
10887 * ia64-tdep.c (ia64_find_unwind_table): Update.
10888 * hppa-tdep.c (read_unwind_info): Update.
10889 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10890 * dwarf2read.c (create_addrmap_from_index)
10891 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10892 (process_psymtab_comp_unit_reader, add_partial_symbol)
10893 (add_partial_subprogram, process_full_comp_unit)
10894 (read_file_scope, read_func_scope, read_lexical_block_scope)
10895 (read_call_site_scope, dwarf2_rnglists_process)
10896 (dwarf2_ranges_process, dwarf2_ranges_read)
10897 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10898 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10899 Update.
10900 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10901 Update.
10902 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10903 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10904 (process_one_symbol): Change type of "section_offsets".
10905 * ctfread.c (get_objfile_text_range): Update.
10906 * coffread.c (coff_symtab_read, enter_linenos)
10907 (process_coff_symbol): Update.
10908 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10909 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10910
456e800a
TT
109112020-01-08 Tom Tromey <tromey@adacore.com>
10912
10913 * dwarf2read.c (parse_macro_definition): Use std::string.
10914 (parse_macro_definition): Likewise.
10915
6dfa2fc2
TT
109162020-01-08 Tom Tromey <tromey@adacore.com>
10917
10918 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10919 (ATTR_ALLOC_CHUNK): Remove.
10920
421d1616
TT
109212020-01-08 Tom Tromey <tromey@adacore.com>
10922
10923 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10924
43816ebc
TT
109252020-01-08 Tom Tromey <tromey@adacore.com>
10926
10927 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10928 (dwarf2_compute_name, open_dwo_file): Likewise.
10929 (process_enumeration_scope): Use std::vector.
10930 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10931 (partial_die_info::fixup, dwarf2_start_subfile)
10932 (guess_full_die_structure_name, dwarf2_name): Likewise.
10933 (determine_prefix): Update.
10934 (guess_full_die_structure_name): Make return type const.
10935 (partial_die_full_name): Return unique_xmalloc_ptr.
10936 (DW_FIELD_ALLOC_CHUNK): Remove.
10937
4212d509
TT
109382020-01-07 Tom Tromey <tromey@adacore.com>
10939
10940 PR build/24937:
10941 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10942
06a6207a
JT
109432020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10944
10945 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10946
153d79c4
AB
109472020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10948
10949 * stack.c (print_frame_info): Move disassemble_next_line code
10950 inside source_print block.
10951
66182876
EZ
109522020-01-06 Eli Zaretskii <eliz@gnu.org>
10953
10954 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10955 gdb/signals.h, as we are now using native signal symbols.
10956
cbfa8581
SV
109572020-01-06 Shahab Vahedi <shahab@synopsys.com>
10958
10959 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10960 overflow by an early check of content vs threshold.
aac66a4c 10961 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10962 Likewise.
10963
3f602821
EZ
109642020-01-06 Eli Zaretskii <eliz@gnu.org>
10965
10966 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10967
a08c904d
JT
109682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10969
10970 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10971 export table if no section contains it's RVA.
10972
89a65580
EZ
109732020-01-06 Eli Zaretskii <eliz@gnu.org>
10974
10975 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10976
8b7fcda2
HD
109772020-01-06 Hannes Domani <ssbssa@yahoo.de>
10978
10979 * source.c (print_source_lines_base): Set last_line_listed.
10980
a61b4f69
SV
109812020-01-06 Shahab Vahedi <shahab@synopsys.com>
10982
10983 * tui/tui-disasm.c: Remove trailing spaces.
10984
559e7e50
EZ
109852020-01-06 Eli Zaretskii <eliz@gnu.org>
10986 Pedro Alves <palves@redhat.com>
10987
10988 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10989 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10990 (windows_gdb_signal_to_target): New function, uses the above
10991 enumeration to convert GDB internal signal codes to equivalent
10992 Windows codes.
10993 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10994 * windows-nat.c: Include "gdb_wait.h".
10995 (get_windows_debug_event): Extract the fatal exception from the
10996 exit status and convert to the equivalent Posix signal number.
10997 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10998 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10999 * gdbsupport/gdb_wait.c: New file, implements
11000 windows_status_to_termsig.
11001 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11002 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11003
f2302a34
AB
110042020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11005
11006 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11007 show_layout.
11008
6a5206eb
LM
110092020-01-05 Luis Machado <luis.machado@linaro.org>
11010
11011 * aarch64-linux-nat.c
11012 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11013 and bfd_mach_aarch64.
11014
6ec1d75e
PW
110152020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11016
11017 * ui-file.c (stdio_file::can_emit_style_escape)
11018 (tee_file::can_emit_style_escape): Ensure style is used also on
11019 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11020 to gdb_stdout.
11021 * main.c (set_gdb_data_directory): Use file style to output the
11022 warning that the given pathname is not a directory.
11023 * top.c (show_history_filename, gdb_safe_append_history)
11024 (show_gdb_datadir): Use file style.
11025
44f81a76
HD
110262020-01-03 Hannes Domani <ssbssa@yahoo.de>
11027
11028 * solib-target.c (struct lm_info_target):
11029 Change offsets to be a unique_xmalloc_ptr.
11030 (solib_target_relocate_section_addresses): Update.
11031
25057eb0
HD
110322020-01-03 Hannes Domani <ssbssa@yahoo.de>
11033
11034 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11035
6e2118f5
BE
110362020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11037
11038 * MAINTAINERS (Write After Approval): Add myself.
11039
8133c7dc
LM
110402020-01-02 Luis Machado <luis.machado@linaro.org>
11041
11042 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11043 Cell BE architecture.
11044 * target.h (struct target_ops) <thread_architecture>: Likewise.
11045
48189bec
HD
110462020-01-01 Hannes Domani <ssbssa@yahoo.de>
11047
11048 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11049
ead1063b
HD
110502020-01-01 Hannes Domani <ssbssa@yahoo.de>
11051
11052 * MAINTAINERS (Write After Approval): Add myself.
11053
e5d78223
JB
110542020-01-01 Joel Brobecker <brobecker@adacore.com>
11055
11056 * gdbarch.sh: Update copyright year range of generated files.
11057
b811d2c2
JB
110582020-01-01 Joel Brobecker <brobecker@adacore.com>
11059
11060 Update copyright year range in all GDB files.
11061
5f4def5c
JB
110622020-01-01 Joel Brobecker <brobecker@adacore.com>
11063
11064 * copyright.py: Convert to Python 3.
11065
51fd4002
JB
110662020-01-01 Joel Brobecker <brobecker@adacore.com>
11067
11068 * copyright.py: Adapt after move of gnulib directory from gdb
11069 directory to toplevel directory.
11070
5fb651f2
JB
110712020-01-01 Joel Brobecker <brobecker@adacore.com>
11072
11073 * copyright.py (main): Exit if run from the wrong directory.
11074
5dd8bf88
JB
110752020-01-01 Joel Brobecker <brobecker@adacore.com>
11076
11077 * top.c (print_gdb_version): Change copyright year to 2020.
11078
9f71dacb 110792020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11080
9f71dacb 11081 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11082
9f71dacb 11083For older changes see ChangeLog-2019.
c906108c
SS
11084\f
11085Local Variables:
11086mode: change-log
11087left-margin: 8
11088fill-column: 74
11089version-control: never
57da7796 11090coding: utf-8
c906108c 11091End: