]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove TYPE_ARRAY_BIT_STRIDE
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
509971ae
SM
12020-07-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4 callers to use the equivalent accessor methods.
5
107406b7
SM
62020-07-12 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
9 (struct type) <bit_stride>: New method.
10 (TYPE_BIT_STRIDE): Remove.
11 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
12
bb789949
SM
132020-07-12 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
16 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
17 callers to use the equivalent accessor methods instead.
18
39498edb
SM
192020-07-12 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
22 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
23 callers to use the equivalent accessor methods instead.
24
3b606f38
SM
252020-07-12 Simon Marchi <simon.marchi@efficios.com>
26
27 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
28 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
29 to use dynamic_prop::kind.
30
064d9cb9
SM
312020-07-12 Simon Marchi <simon.marchi@efficios.com>
32
33 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
34 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
35 to get the bound property's kind and check against
36 PROP_UNDEFINED.
37
5537ddd0
SM
382020-07-12 Simon Marchi <simon.marchi@efficios.com>
39
40 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
41 all callers to use type::range_bounds followed by
42 dynamic_prop::{low,high}.
43
8c2e4e06
SM
442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
47 const_val, set_const_val, baton, set_locexpr, set_loclist,
48 set_addr_offset, variant_parts, set_variant_parts,
49 original_type, set_original_type>: New methods.
50 <kind>: Rename to...
51 <m_kind>: ... this. Update all users to use the new methods
52 instead.
53 <data>: Rename to...
54 <m_data>: ... this. Update all users to use the new methods
55 instead.
56
7c6f2712
SM
572020-07-12 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.c (get_discrete_bounds): Return failure if
60 the range type's bounds are not both defined and constant
61 values.
62 (get_array_bounds): Update comment. Remove undefined bound check.
63
599088e3
SM
642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
67 the type::bounds method directly.
68
c4dfcb36
SM
692020-07-12 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
72 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
73 are used to set the range type's bounds to use set_bounds.
74
0a278aa7
PW
752020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
76
77 * exec.c (_initialize_exec): Update exec-file-mismatch help.
78
cce20f10
PA
792020-07-10 Pedro Alves <pedro@palves.net>
80
81 * gdbthread.h (inferior_ref): Define.
82 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
83 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
84 * thread.c
85 (scoped_restore_current_thread::restore):
86 Adjust to gdb::ref_ptr.
87 (scoped_restore_current_thread::~scoped_restore_current_thread):
88 Remove manual decref handling.
89 (scoped_restore_current_thread::scoped_restore_current_thread):
90 Adjust to use
91 inferior_ref::new_reference/thread_info_ref::new_reference.
92 Incref the thread before calling get_frame_id instead of after.
93 Let TARGET_CLOSE_ERROR propagate.
94
6d7aa592
PA
952020-07-10 Pedro Alves <pedro@palves.net>
96
97 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
98 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
99 NOT_AVAILABLE_ERROR.
100 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
101 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
102
b3e3a4c1
SM
1032020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
104 Pedro Alves <pedro@palves.net>
105
106 PR gdb/26199
107 * infrun.c (threads_are_resumed_pending_p): Delete.
108 (do_target_wait): Remove threads_are_executing and
109 threads_are_resumed_pending_p checks from the inferior_matches
110 lambda. Update comments.
111
d6cc5d98
PA
1122020-07-10 Pedro Alves <pedro@palves.net>
113
114 PR gdb/26199
115 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
116 executing threads.
117
7d3badc6
PA
1182020-07-10 Pedro Alves <pedro@palves.net>
119
120 PR gdb/26199
121 * infrun.c (handle_no_resumed): Handle multiple targets.
122
42bd97a6
PA
1232020-07-10 Pedro Alves <pedro@palves.net>
124
125 PR gdb/26199
126 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
127 target_is_async_p.
128
43667cc6
PA
1292020-07-10 Pedro Alves <pedro@palves.net>
130
131 PR gdb/26199
132 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
133 threads, not all threads.
134
96118d11
PA
1352020-07-10 Pedro Alves <pedro@palves.net>
136
137 PR gdb/26199
138 * remote.c (remote_target::open_1): Pass remote target pointer as
139 data to create_async_event_handler.
140 (remote_async_inferior_event_handler): Mark async event handler
141 before returning if the remote target still has either pending
142 events or unacknowledged notifications.
143
54904d81
JB
1442020-07-10 John Baldwin <jhb@FreeBSD.org>
145
146 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
147 declaration.
148 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
149 function.
150
f37e5866
JB
1512020-07-09 John Baldwin <jhb@FreeBSD.org>
152
153 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
154 inferior_ptid.
155
fc238d4a
JB
1562020-07-09 John Baldwin <jhb@FreeBSD.org>
157
158 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
159 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
160 AT_FREEBSD_PS_STRINGS.
161
6e2469ff
HD
1622020-07-08 Hannes Domani <ssbssa@yahoo.de>
163
164 * auto-load.c (auto_load_objfile_script_1): Convert drive part
165 of debugfile path on Windows.
166
d1076c41
JB
1672020-07-08 John Baldwin <jhb@FreeBSD.org>
168
169 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
170 argument to 'data'.
171
15f3b077
TT
1722020-07-08 Tom Tromey <tromey@adacore.com>
173
174 * ada-lang.c (ada_exception_message_1): Use read_memory.
175
9fc501fd
AB
1762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 PR python/22748
179 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
180 special handling for inline frames.
181 * findvar.c (value_of_register_lazy): Skip inline frames when
182 creating lazy register values.
183 * frame.c (frame_id_computed_p): Delete definition.
184 * frame.h (frame_id_computed_p): Delete declaration.
185
64cb3757
AB
1862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * NEWS: Mention additions to Python API.
189 * python/py-arch.c (archpy_register_groups): New function.
190 (arch_object_methods): Add 'register_groups' method.
191 * python/py-registers.c (reggroup_iterator_object): New struct.
192 (reggroup_object): New struct.
193 (gdbpy_new_reggroup): New function.
194 (gdbpy_reggroup_to_string): New function.
195 (gdbpy_reggroup_name): New function.
196 (gdbpy_reggroup_iter): New function.
197 (gdbpy_reggroup_iter_next): New function.
198 (gdbpy_new_reggroup_iterator): New function
199 (gdbpy_initialize_registers): Register new types.
200 (reggroup_iterator_object_type): Define new Python type.
201 (gdbpy_reggroup_getset): New static global.
202 (reggroup_object_type): Define new Python type.
203 * python/python-internal.h
204
0f767f94
AB
2052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
208 * python/py-arch.c (archpy_registers): New function.
209 (arch_object_methods): Add 'registers' method.
210 * python/py-registers.c: New file.
211 * python/python-internal.h
212 (gdbpy_new_register_descriptor_iterator): Declare.
213 (gdbpy_initialize_registers): Declare.
214 * python/python.c (do_start_initialization): Call
215 gdbpy_initialize_registers.
216 * NEWS: Mention additions to the Python API.
217
87dbc774
AB
2182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * NEWS: Mention new Python API method.
221 * python/py-unwind.c (pending_framepy_architecture): New function.
222 (pending_frame_object_methods): Add architecture method.
223
3bc98c0c
AB
2242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
225
226 * gdbarch.c: Regenerate.
227 * gdbarch.h: Regenerate.
228 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
229 (gdbarch_data): Use internal_error for the case where
230 deprecated_set_gdbarch_data was originally needed.
231 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
232 and use passed in obstack.
233 (libunwind_frame_set_descr): Should no longer get back NULL from
234 gdbarch_data.
235 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
236 type.
237 * user-regs.c (user_regs_init): Update parameters, and use passed
238 in obstack.
239 (user_reg_add): Should no longer get back NULL from gdbarch_data.
240 (_initialize_user_regs): Register as a pre-init gdbarch data type.
241
d8cc8af6
TV
2422020-07-06 Tom de Vries <tdevries@suse.de>
243
244 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
245 End-Of-Sequence in lte_is_less_than.
246 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
247 "gdb: Don't reorder line table entries too much when sorting".
248
947f7597
TV
2492020-07-06 Tom de Vries <tdevries@suse.de>
250
251 PR tui/26205
252 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
253
1e7c1b22
TV
2542020-07-05 Tom de Vries <tdevries@suse.de>
255
256 PR build/26187
257 * inferior.h (struct infcall_suspend_state_deleter): If available, use
258 std::uncaught_exceptions instead of deprecated
259 std::uncaught_exception.
260
a36158ec
SM
2612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * macroexp.h (macro_stringify): Return
264 gdb::unique_xmalloc_ptr<char>.
265 * macroexp.c (macro_stringify): Likewise.
266 * macrotab.c (fixup_definition): Update.
267
14d960c8
SM
2682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
271 (lex_one_token): Update.
272 * macroexp.c (struct macro_buffer) <release>: Return
273 gdb::unique_xmalloc_ptr<char>.
274 (macro_stringify): Update.
275 (macro_expand): Update.
276 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
277 * macroexp.h (macro_expand_next): Likewise.
278
211d5b1c
SM
2792020-07-02 Simon Marchi <simon.marchi@efficios.com>
280
281 * macroexp.h (macro_lookup_ftype): Remove.
282 (macro_expand, macro_expand_once, macro_expand_next): Remove
283 lookup function parameters, add scope parameter.
284 * macroexp.c (scan, substitute_args, expand, maybe_expand,
285 macro_expand, macro_expand_once, macro_expand_next): Likewise.
286 * macroscope.h (standard_macro_lookup): Change parameter type
287 to macro_scope.
288 * macroscope.c (standard_macro_lookup): Likewise.
289 * c-exp.y (lex_one_token): Update.
290 * macrocmd.c (macro_expand_command): Likewise.
291 (macro_expand_once_command): Likewise.
292
b1a35af2
SM
2932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * inf-loop.c (inferior_event_handler): Remove client_data param.
296 * inf-loop.h (inferior_event_handler): Likewise.
297 * infcmd.c (step_1): Adjust.
298 * infrun.c (proceed): Adjust.
299 (fetch_inferior_event): Remove client_data param.
300 (infrun_async_inferior_event_handler): Adjust.
301 * infrun.h (fetch_inferior_event): Remove `void *` param.
302 * linux-nat.c (handle_target_event): Adjust.
303 * record-btrace.c (record_btrace_handle_async_inferior_event):
304 Adjust.
305 * record-full.c (record_full_async_inferior_event_handler):
306 Adjust.
307 * remote.c (remote_async_inferior_event_handler): Adjust.
308
1cdf9e33
TT
3092020-07-01 Tom Tromey <tom@tromey.com>
310
311 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
312 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
313
32c1e210
TT
3142020-07-01 Tom Tromey <tom@tromey.com>
315
316 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
317 tui_gen_win_info.
318 (tui_win_info::make_window): Merge with
319 tui_gen_win_info::make_window.
320 (tui_win_info::make_visible): Move from tui_gen_win_info.
321 * tui/tui-win.c (tui_win_info::max_width): Move from
322 tui_gen_win_info.
323 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
324 type.
325 <window_factory>: Likewise.
326 * tui/tui-layout.c (tui_win_info::resize): Move from
327 tui_gen_win_info.
328 (make_standard_window): Change return type.
329 (get_locator_window, tui_get_window_by_name): Likewise.
330 (tui_layout_window::apply): Remove a cast.
331 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
332 (struct tui_win_info): Merge with tui_gen_win_info.
333 (struct tui_gen_win_info): Remove.
334
a30cb6da
TT
3352020-07-01 Tom Tromey <tom@tromey.com>
336
337 * tui/tui-stack.h (struct tui_locator_window): Derive from
338 tui_win_info.
339 <do_scroll_horizontal, do_scroll_vertical>: New methods.
340 <can_box>: New method.
341
1eb2161f
TT
3422020-07-01 Tom Tromey <tom@tromey.com>
343
344 * tui/tui-stack.h (struct tui_locator_window): Remove body.
345
7134f2eb
TT
3462020-07-01 Tom Tromey <tom@tromey.com>
347
348 * tui/tui-regs.c (tui_data_window::display_registers_from)
349 (tui_data_window::display_registers_from)
350 (tui_data_window::first_data_item_displayed)
351 (tui_data_window::delete_data_content_windows): Update.
352 (tui_data_window::refresh_window, tui_data_window::no_refresh):
353 Remove.
354 (tui_data_window::check_register_values): Update.
355 (tui_data_item_window::rerender): Add parameters. Update.
356 (tui_data_item_window::refresh_window): Remove.
357 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
358 virtual.
359 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
360 tui_gen_win_info.
361 <refresh_window, max_height, min_height>: Remove.
362 <rerender>: Add parameters.
363 <x, y, visible>: New members.
364 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
365 <m_item_width>: New member.
366
22b7b041
TT
3672020-07-01 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-regs.c (tui_data_window::show_register_group)
370 (tui_data_window::check_register_values): Update.
371 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
372 from item_no.
373
c9753adb
TT
3742020-07-01 Tom Tromey <tom@tromey.com>
375
376 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
377 useless "if".
378
9ab26b4a
TT
3792020-07-01 Tom Tromey <tom@tromey.com>
380
381 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
382 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
383
e555083f
TT
3842020-07-01 Tom Tromey <tom@tromey.com>
385
386 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
387 * tui/tui-winsource.h (enum tui_line_or_address_kind)
388 (struct tui_line_or_address): Move from tui-data.h.
389 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
390 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
391 (tui_cmd_window, tui_source_window_base, tui_source_window)
392 (tui_disasm_window): Don't declare.
393 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
394 to tui-winsource.h.
395 (SINGLE_KEY): Move to tui-stack.c.
396
7a02bab7
TT
3972020-07-01 Tom Tromey <tom@tromey.com>
398
399 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
400 std::string.
401 * tui/tui-regs.c (class tab_expansion_file): New.
402 (tab_expansion_file::write): New method.
403 (tui_register_format): Change return type. Use
404 tab_expansion_file.
405 (tui_get_register, tui_data_window::display_registers_from)
406 (tui_data_item_window::rerender): Update.
407 * tui/tui-io.h (tui_expand_tabs): Don't declare.
408 * tui/tui-io.c (tui_expand_tabs): Remove.
409
ea68593b
TT
4102020-07-01 Tom Tromey <tom@tromey.com>
411
412 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
413
a8caed5d
FS
4142020-07-01 Fangrui Song <maskray@google.com>
415
416 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
417
9cdf9820
AKS
4182020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
419
420 * dwarf2/read.c (set_die_type): Removed conditions to restrict
421 forms for DW_AT_associated and DW_AT_allocated attributes,
422 which is already checked in function attr_to_dynamic_prop.
423
a1520ad8
TT
4242020-06-30 Tom Tromey <tromey@adacore.com>
425
426 * dwarf2/read.c (quirk_rust_enum): Correctly call
427 alloc_rust_variant for default-less enum.
428
5ac58899
TT
4292020-06-30 Tom Tromey <tromey@adacore.com>
430
431 PR build/26183:
432 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
433 gdb::to_string.
434
19b187a9
SM
4352020-06-29 Simon Marchi <simon.marchi@efficios.com>
436
437 * gdbarch.sh (displaced_step_copy_insn): Update doc.
438 * gdbarch.h: Re-generate.
439
cd4c4c07
TT
4402020-06-28 Tom Tromey <tom@tromey.com>
441
442 * command.h (cmd_types): Remove.
443 (cmd_type): Don't declare.
444 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
445 typedef.
446 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
447 * cli/cli-decode.c (cmd_type): Remove.
448
05779d57
PA
4492020-06-27 Pedro Alves <palves@redhat.com>
450
451 * fork-child.c (prefork_hook): Adjust.
452 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
453 Delete.
454 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
455 * inferior.c (inferior::set_tty, inferior::tty): New methods.
456 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
457 Remove declarations.
458 (struct inferior) <set_tty, tty>: New methods.
459 (struct inferior) <terminal>: Rename to ...
460 (struct inferior) <m_terminal>: ... this and make private.
461 * main.c (captured_main_1): Adjust.
462 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
463 (mi_cmd_inferior_tty_show): Adjust.
464 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
465 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
466
1776e3e5
NA
4672020-06-26 Nick Alcock <nick.alcock@oracle.com>
468
469 * configure.ac: Add --enable-libctf: handle --disable-static
470 properly.
471 * acinclude.m4: sinclude ../config/enable.m4.
472 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
473 (LIBCTF): Substitute in.
474 (CTF_DEPS): New, likewise.
475 (CLIBS): libctf needs symbols from libbfd: move earlier.
476 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
477 flags.
478 * ctfread.c: Surround in ENABLE_LIBCTF.
479 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
480 * configure: Regenerate.
481 * config.in: Likewise.
482
58373b80
SM
4832020-06-25 Simon Marchi <simon.marchi@efficios.com>
484
485 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
486
277474ee
SM
4872020-06-25 Simon Marchi <simon.marchi@efficios.com>
488
489 * inferior.h (struct inferior) <terminal>: Change type to
490 gdb::unique_xmalloc_ptr<char>.
491 * inferior.c (inferior::~inferior): Don't free inf->terminal.
492 * infcmd.c (set_inferior_io_terminal): Don't free terminal
493 field, adjust to unique pointer.
494 (get_inferior_io_terminal): Adjust to unique pointer.
495
6d74da72
AB
4962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * riscv-tdep.c (riscv_print_registers_info): Loop over all
499 registers, not just the known core set of registers.
500
2e52d038
AB
5012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
504 fflags, frm, and fcsr registers.
505 (riscv_register_reggroup_p): Remove unknown CSRs from save and
506 restore groups.
507 (riscv_tdesc_unknown_reg): New function.
508 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
509 tdesc_use_registers.
510 * riscv-tdep.h (struct gdbarch_tdep): Add
511 unknown_csrs_first_regnum, unknown_csrs_count,
512 duplicate_fflags_regnum, duplicate_frm_regnum, and
513 duplicate_fcsr_regnum fields.
514
be64fd07
AB
5152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * target-descriptions.c (tdesc_use_registers): Add new parameter a
518 callback, use the callback (when not null) to help number unknown
519 registers.
520 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
521 (tdesc_use_registers): Add extra parameter to declaration.
522
3b9fce96
AB
5232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
526 in the file.
527 (class riscv_pending_register_alias): Likewise.
528 (riscv_register_feature::register_info): Change 'required_p' field
529 to 'required', and change its type. Add 'check' member function.
530 (riscv_register_feature::register_info::check): Define new member
531 function.
532 (riscv_xreg_feature): Change initialisation of 'required' field.
533 (riscv_freg_feature): Likewise.
534 (riscv_virtual_feature): Likewise.
535 (riscv_csr_feature): Likewise.
536 (riscv_check_tdesc_feature): Take extra parameter, the csr
537 tdesc_feature, rewrite the function to use the new
538 riscv_register_feature::register_info::check function.
539 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
540
865bad26
AB
5412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * features/Makefile: Remove all references to the deleted files
544 below.
545 * features/riscv/32bit-csr.c: Deleted.
546 * features/riscv/32bit-csr.xml: Deleted.
547 * features/riscv/64bit-csr.c: Deleted.
548 * features/riscv/64bit-csr.xml: Deleted.
549 * features/riscv/rebuild-csr-xml.sh: Deleted.
550
ed69cbc8
AB
5512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
554 whitespace error for declaration of names member variable.
555 (struct riscv_register_feature): Add new prefer_first_name member
556 variable, and fix whitespace error in declaration of registers.
557 (riscv_xreg_feature): Initialize prefer_first_name field.
558 (riscv_freg_feature): Likewise.
559 (riscv_virtual_feature): Likewise.
560 (riscv_csr_feature): Likewise.
561 (riscv_register_name): Expand on comments. Remove register name
562 modifications for CSR and virtual registers.
563
4445e8f5
AB
5642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
567 errors.
568
767a879e
AB
5692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
572 riscv-opc.h.
573 (class riscv_pending_register_alias): New class.
574 (riscv_check_tdesc_feature): Take vector of pending aliases and
575 populate it as appropriate.
576 (riscv_setup_register_aliases): Delete.
577 (riscv_gdbarch_init): Create vector of pending aliases and pass it
578 to riscv_check_tdesc_feature in all cases. Use the vector to
579 create the register aliases.
580
bb6e55f3
RO
5812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
582
583 * sol2-tdep.c (sol2_static_transform_name): Remove.
584 (sol2_init_abi): Don't register it.
585 * gdbarch.sh (static_transform_name): Remove.
586 * gdbarch.c, gdbarch.h: Regenerate.
587
588 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
589 gdbarch_static_transform_name.
590 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
591 * stabsread.c (define_symbol) <'X'>: Remove.
592 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
593 handling.
594 <'V'>: Likewise.
595 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
596 <'S'>: Remove call to gdbarch_static_transform_name.
597
c6d36836
RO
5982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
599
600 * procfs.c (procfs_pre_trace): New function.
601 (procfs_target::create_inferior): Pass it to fork_inferior.
602
a7e6196b
RO
6032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
604
605 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
606 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
607 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
608 sol2-tdep.o, sparc-sol2-tdep.o.
609 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
610 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
611 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
612 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
613
d412e696
RO
6142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
615
616 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
617 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
618 Call sol2_init_abi.
619 Remove calls to set_gdbarch_skip_solib_resolver,
620 set_gdbarch_core_pid_to_str.
621 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
622 (i386_sol2_static_transform_name): Remove.
623 (i386_sol2_init_abi): Call sol2_init_abi.
624 Remove calls to set_gdbarch_sofun_address_maybe_missing,
625 set_gdbarch_static_transform_name,
626 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
627 Use sol2_sigtramp_p.
628 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
629 (sol2_sigtramp_p): New function.
630 (sol2_static_transform_name): New function.
631 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
632 (sol2_init_abi): New function.
633 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
634 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
635 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
636 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
637 (sparc_sol2_static_transform_name): Remove.
638 (sparc32_sol2_init_abi): Call sol2_init_abi.
639 Remove calls to set_gdbarch_sofun_address_maybe_missing,
640 set_gdbarch_static_transform_name,
641 set_gdbarch_skip_solib_resolver,
642 set_gdbarch_core_pid_to_str.
643 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
644 (sparc_sol2_static_transform_name): Remove
645 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
646 call sol2_sigtramp_p.
647 (sparc64_sol2_init_abi): Call sol2_init_abi.
648 Remove calls to set_gdbarch_sofun_address_maybe_missing,
649 set_gdbarch_static_transform_name,
650 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
651
a8654e7d
PW
6522020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
653
654 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
655 * exec.c (validate_exec_file): If from_tty, set both
656 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
657 * symfile.c (symbol_file_add_with_addrs): if always_confirm
658 and from_tty, unconditionally ask a confirmation.
659
caa7fd04
AB
6602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * target-descriptions.c (tdesc_architecture_name): Protect against
663 NULL pointer dereference.
664 (maint_print_xml_tdesc_cmd): New function.
665 (_initialize_target_descriptions): Register new 'maint print
666 xml-tdesc' command and give it the filename completer.
667 * NEWS: Mention new 'maint print xml-tdesc' command.
668
fbf42f4e
AB
6692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * target-descriptions.c (class tdesc_compatible_info): New class.
672 (struct target_desc): Change type of compatible vector.
673 (tdesc_compatible_p): Update for change in type of
674 target_desc::compatible.
675 (tdesc_compatible_info_list): New function.
676 (tdesc_compatible_info_arch_name): New function.
677 (tdesc_add_compatible): Update for change in type of
678 target_desc::compatible.
679 (print_c_tdesc::visit_pre): Likewise.
680
20821f4e
AB
6812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
684 whitespace to underscore.
685 (maint_print_c_tdesc_cmd): Use fake filename for target
686 descriptions that came from the target.
687 (_initialize_target_descriptions): Add filename command completion
688 for 'maint print c-tdesc'.
689
1fb5ee62
SM
6902020-06-23 Simon Marchi <simon.marchi@efficios.com>
691
692 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
693 lines.
694
fc3ecb3e
SM
6952020-06-23 Simon Marchi <simon.marchi@efficios.com>
696
697 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
698 lines.
699 (dwarf2_find_location_expression): Likewise.
700 (call_site_parameter_matches): Likewise.
701 (dwarf2_compile_expr_to_ax): Likewise.
702 (disassemble_dwarf_expression): Likewise.
703 (loclist_describe_location): Likewise.
704
236ef034
PA
7052020-06-23 Pedro Alves <palves@redhat.com>
706
707 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
708 progspace-and-thread.h. Include scoped-mock-context.h instead.
709 (register_to_value_test): Use scoped_mock_context.
710 * regcache.c: Include "scoped-mock-context.h".
711 (cooked_read_test): Don't error out if a target is already pushed.
712 Use scoped_mock_context. Adjust.
713 * scoped-mock-context.h: New file.
714
39e7ecca
AB
7152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
718 initializer.
719 (ada_language::is_string_type_p): New member function.
720 * c-lang.c (c_language_data): Delete la_is_string_type_p
721 initializer.
722 (cplus_language_data): Likewise.
723 (asm_language_data): Likewise.
724 (minimal_language_data): Likewise.
725 * d-lang.c (d_language_data): Likewise.
726 * f-lang.c (f_is_string_type_p): Delete function, implementation
727 moved to f_language::is_string_type_p.
728 (f_language_data): Delete la_is_string_type_p initializer.
729 (f_language::is_string_type_p): New member function,
730 implementation from f_is_string_type_p.
731 * go-lang.c (go_is_string_type_p): Delete function, implementation
732 moved to go_language::is_string_type_p.
733 (go_language_data): Delete la_is_string_type_p initializer.
734 (go_language::is_string_type_p): New member function,
735 implementation from go_is_string_type_p.
736 * language.c (language_defn::is_string_type_p): Define new member
737 function.
738 (default_is_string_type_p): Make static, add comment copied from
739 header file.
740 (unknown_language_data): Delete la_is_string_type_p initializer.
741 (unknown_language::is_string_type_p): New member function.
742 (auto_language_data): Delete la_is_string_type_p initializer.
743 (auto_language::is_string_type_p): New member function.
744 * language.h (language_data): Delete la_is_string_type_p field.
745 (language_defn::is_string_type_p): Declare new function.
746 (default_is_string_type_p): Delete desclaration, move comment to
747 definition.
748 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
749 moved to m2_language::is_string_type_p.
750 (m2_language_data): Delete la_is_string_type_p initializer.
751 (m2_language::is_string_type_p): New member function,
752 implementation from m2_is_string_type_p.
753 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
754 initializer.
755 * opencl-lang.c (opencl_language_data): Likewise.
756 * p-lang.c (pascal_is_string_type_p): Delete function,
757 implementation moved to pascal_language::is_string_type_p.
758 (pascal_language_data): Delete la_is_string_type_p initializer.
759 (pascal_language::is_string_type_p): New member function,
760 implementation from pascal_is_string_type_p.
761 * rust-lang.c (rust_is_string_type_p): Delete function,
762 implementation moved to rust_language::is_string_type_p.
763 (rust_language_data): Delete la_is_string_type_p initializer.
764 (rust_language::is_string_type_p): New member function,
765 implementation from rust_is_string_type_p.
766 * valprint.c (val_print_scalar_or_string_type_p): Update call to
767 is_string_type_p.
768
4ffc13fb
AB
7692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * ada-lang.c (ada_language_data): Delete la_print_typedef
772 initializer.
773 (ada_language::print_typedef): New member function.
774 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * f-lang.c (f_language_data): Likewise.
780 (f_language::print_typedef): New member function.
781 * go-lang.c (go_language_data): Delete la_print_typedef
782 initializer.
783 * language.c (language_defn::print_typedef): Define member
784 function.
785 (unknown_language_data): Delete la_print_typedef initializer.
786 (unknown_language::print_typedef): New member function.
787 (auto_language_data): Delete la_print_typedef initializer.
788 (auto_language::print_typedef): New member function.
789 * language.h (language_data): Delete la_print_typedef field.
790 (language_defn::print_typedef): Declare new member function.
791 (LA_PRINT_TYPEDEF): Update call to print_typedef.
792 (default_print_typedef): Delete declaration.
793 * m2-lang.c (m2_language_data): Delete la_print_typedef
794 initializer.
795 (m2_language::print_typedef): New member function.
796 * objc-lang.c (objc_language_data): Delete la_print_typedef
797 initializer.
798 * opencl-lang.c (opencl_language_data): Likewise.
799 * p-lang.c (pascal_language_data): Likewise.
800 (pascal_language::print_typedef): New member function.
801 * rust-lang.c (rust_print_typedef): Delete function,
802 implementation moved to rust_language::print_typedef.
803 (rust_language): Delete la_print_typedef initializer.
804 (rust_language::print_typedef): New member function,
805 implementation from rust_print_typedef.
806 * typeprint.c (default_print_typedef): Delete.
807
d711ee67
AB
8082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
811 (ada_language::printstr): New member function.
812 * c-lang.c (c_language_data): Delete la_printstr initializer.
813 (cplus_language_data): Likewise.
814 (asm_language_data): Likewise.
815 (minimal_language_data): Likewise.
816 * d-lang.c (d_language_data): Likewise.
817 * f-lang.c (f_printstr): Rename to f_language::printstr.
818 (f_language_data): Delete la_printstr initializer.
819 (f_language::printstr): New member function, implementation from
820 f_printstr.
821 * go-lang.c (go_language_data): Delete la_printstr initializer.
822 * language.c (language_defn::printstr): Define new member
823 function.
824 (unk_lang_printstr): Delete.
825 (unknown_language_data): Delete la_printstr initializer.
826 (unknown_language::printstr): New member function.
827 (auto_language_data): Delete la_printstr initializer.
828 (auto_language::printstr): New member function.
829 * language.h (language_data): Delete la_printstr field.
830 (language_defn::printstr): Declare new member function.
831 (LA_PRINT_STRING): Update call to printstr.
832 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
833 (m2_language_data): Delete la_printstr initializer.
834 (m2_language::printstr): New member function, implementation from
835 m2_printstr.
836 * objc-lang.c (objc_language_data): Delete la_printstr
837 initializer.
838 * opencl-lang.c (opencl_language_data): Likewise.
839 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
840 (pascal_language_data): Delete la_printstr initializer.
841 (pascal_language::printstr): New member function, implementation
842 from pascal_printstr.
843 * p-lang.h (pascal_printstr): Delete declaration.
844 * rust-lang.c (rust_printstr): Update header comment.
845 (rust_language_data): Delete la_printstr initializer.
846 (rust_language::printstr): New member function.
847
52b50f2c
AB
8482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
851 (ada_language::printchar): New member function.
852 * c-lang.c (c_language_data): Delete la_printchar initializer.
853 (cplus_language_data): Likewise.
854 (asm_language_data): Likewise.
855 (minimal_language_data): Likewise.
856 * d-lang.c (d_language_data): Likewise.
857 * f-lang.c (f_printchar): Rename to f_language::printchar.
858 (f_language_data): Delete la_printchar initializer.
859 (f_language::printchar): New member function, implementation from
860 f_printchar.
861 * go-lang.c (go_language_data): Delete la_printchar initializer.
862 * language.c (unk_lang_printchar): Delete.
863 (language_defn::printchar): Define new member function.
864 (unknown_language_data): Delete la_printchar initializer.
865 (unknown_language::printchar): New member function.
866 (auto_language_data): Delete la_printchar initializer.
867 (auto_language::printchar): New member function.
868 * language.h (language_data): Delete la_printchar field.
869 (language_defn::printchar): Declare new member function.
870 (LA_PRINT_CHAR): Update call to printchar.
871 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
872 (m2_language::printchar): New member function.
873 * objc-lang.c (objc_language_data): Delete la_printchar
874 initializer.
875 * opencl-lang.c (opencl_language_data): Likewise.
876 * p-lang.c (pascal_language_data): Delete la_printchar
877 initializer.
878 (pascal_language::printchar): New member function.
879 * rust-lang.c (rust_printchar): Rename to
880 rust_language::printchar.
881 (rust_language_data): Delete la_printchar initializer.
882 (rust_language::printchar): New member function, implementation
883 from rust_printchar.
884
ec8cec5b
AB
8852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
888 (ada_language_data): Delete la_emitchar initializer.
889 (ada_language::emitchar): New member function, implementation from
890 emit_char.
891 * c-lang.c (c_language_data): Delete la_emitchar initializer.
892 (cplus_language_data): Likewise.
893 (asm_language_data): Likewise.
894 (minimal_language_data): Likewise.
895 * d-lang.c (d_language_data): Likewise.
896 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
897 (f_language_data): Delete la_emitchar initializer.
898 (f_language::emitchar): New member function, implementation from
899 f_emit_char.
900 * go-lang.c (go_language_data): Delete la_emitchar initializer.
901 * language.c (unk_lang_emit_char): Delete.
902 (language_defn::emitchar): New member function definition.
903 (unknown_language_data): Delete la_emitchar initializer.
904 (unknown_language::emitchar): New member function.
905 (auto_language_data): Delete la_emitchar initializer.
906 (auto_language::emitchar): New member function.
907 * language.h (language_data): Delete la_emitchar field.
908 (language_defn::emitchar): New member field declaration.
909 (LA_EMIT_CHAR): Update call to emitchar.
910 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
911 (m2_language_data): Delete la_emitchar initializer.
912 (m2_language::emitchar): New member function, implementation from
913 m2_emit_char.
914 * objc-lang.c (objc_language_data): Delete la_emitchar
915 initializer.
916 * opencl-lang.c (opencl_language_data): Likewise.
917 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
918 (pascal_language_data): Delete la_emitchar initializer.
919 (pascal_language::emitchar): New member function, implementation
920 from pascal_emit_char.
921 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
922 (rust_language_data): Delete la_emitchar initializer.
923 (rust_language::emitchar): New member function, implementation
924 from rust_emitchar.
925
1bf9c363
AB
9262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * ada-lang.c (resolve): Rename to ada_language::post_parser.
929 (ada_language_data): Delete la_post_parser initializer.
930 (ada_language::post_parser): New member function.
931 * c-lang.c (c_language_data): Delete la_post_parser initializer.
932 (cplus_language_data): Likewise.
933 (asm_language_data): Likewise.
934 (minimal_language_data): Likewise.
935 * d-lang.c (d_language_data): Likewise.
936 * f-lang.c (f_language_data): Likewise.
937 * go-lang.c (go_language_data): Likewise.
938 * language.c (unknown_language_data): Likewise.
939 (auto_language_data): Likewise.
940 * language.h (language_data): Delete la_post_parser field.
941 (language_defn::post_parser): New member function.
942 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
943 * objc-lang.c (objc_language_data): Likewise.
944 * opencl-lang.c (opencl_language_data): Likewise.
945 * p-lang.c (pascal_language_data): Likewise.
946 * parse.c (parse_exp_in_context): Update call to post_parser.
947 (null_post_parser): Delete definition.
948 * parser-defs.h (null_post_parser): Delete declaration.
949 * rust-lang.c (rust_language_data): Delete la_post_parser
950 initializer.
951
87afa652
AB
9522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * ada-lang.c (parse): Rename to ada_language::parser.
955 (ada_language_data): Delete la_parser initializer.
956 (ada_language::parser): New member function, implementation from
957 parse.
958 * c-lang.c (c_language_data): Delete la_parser initializer.
959 (cplus_language_data): Likewise.
960 (asm_language_data): Likewise.
961 (minimal_language_data): Likewise.
962 * d-lang.c (d_language_data): Likewise.
963 (d_language::parser): New member function.
964 * f-lang.c (f_language_data): Delete la_parser initializer.
965 (f_language::parser): New member function.
966 * go-lang.c (go_language_data): Delete la_parser initializer.
967 (go_language::parser): New member function.
968 * language.c (unk_lang_parser): Delete.
969 (language_defn::parser): Define new member function.
970 (unknown_language_data): Delete la_parser initializer.
971 (unknown_language::parser): New member function.
972 (auto_language_data): Delete la_parser initializer.
973 (auto_language::parser): New member function.
974 * language.h (language_data): Delete la_parser field.
975 (language_defn::parser): Declare new member function.
976 * m2-lang.c (m2_language_data): Delete la_parser initializer.
977 (m2_language::parser): New member function.
978 * objc-lang.c (objc_language_data): Delete la_parser initializer.
979 * opencl-lang.c (opencl_language_data): Likewise.
980 * p-lang.c (pascal_language_data): Likewise.
981 (pascal_language::parser): New member function.
982 * parse.c (parse_exp_in_context): Update call to parser.
983 * rust-lang.c (rust_language_data): Delete la_parser initializer.
984 (rust_language::parser): New member function.
985
37825800
AB
9862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * top.c (print_gdb_configuration): Print --with-python-libdir
989 configuration value.
990
5b860c93
PW
9912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
992
993 * NEWS: Mention change to the alias command.
994
cf00cd6f
PW
9952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
996
997 * cli/cli-cmds.c (lookup_cmd_for_default_args)
998 (alias_command_completer)
999 (make_alias_options_def_group): New functions.
1000 (alias_opts, alias_option_defs): New struct and array.
1001 (alias_usage_error): Update usage.
1002 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1003 Use option framework.
1004 (_initialize_cli_cmds): Update alias command help.
1005 Update aliases command help.
1006 (show_user):
1007 Add NULL for new default_args lookup_cmd argument.
1008 (valid_command_p): Rename to validate_aliased_command.
1009 Add NULL for new default_args lookup_cmd argument. Verify that the
1010 aliased_command has no default args.
1011 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1012 (lookup_cmd_1, lookup_cmd): New argument default_args.
1013 (add_alias_cmd):
1014 Add NULL for new default_args lookup_cmd argument.
1015 (print_help_for_command): Show default args under the layout
1016 alias some_alias = some_aliased_cmd some_alias_default_arg.
1017 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1018 xfree default_args in destructor.
1019 * cli/cli-script.c (process_next_line, do_define_command):
1020 Add NULL for new default_args lookup_cmd argument.
1021 * command.h: Declare new default_args argument in lookup_cmd
1022 and lookup_cmd_1.
1023 * completer.c (complete_line_internal_1):
1024 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1025 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1026 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1027 Likewise.
1028 * infcmd.c (_initialize_infcmd): Likewise.
1029 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1030 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1031 * python/py-param.c (add_setshow_generic): Likewise.
1032 * remote.c (_initialize_remote): Likewise.
1033 * top.c (execute_command): Prepend default_args if command has some.
1034 (set_verbose):
1035 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1036 * tracepoint.c (validate_actionline, encode_actions_1):
1037 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1038
bd920864
TBA
10392020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * jit.c (jit_read_descriptor): Use bool as the return type.
1042 (jit_breakpoint_re_set_internal): Use bool as the return type.
1043 Invert the return value logic; return true if the jit breakpoint
1044 has been successfully initialized.
1045 (jit_inferior_init): Update the call to
1046 jit_breakpoint_re_set_internal.
1047
f8098322
PA
10482020-06-22 Pedro Alves <palves@redhat.com>
1049
1050 PR gdb/25939
1051 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1052 Use the current inferior instead. Don't return
1053 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1054 wait again.
1055 * sol-thread.c (sol_thread_target::wait): Don't reference
1056 inferior_ptid.
1057 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1058 (sol_update_thread_list_callback): Use the current inferior's pid
1059 instead of inferior_ptid.
1060
196535a6
RO
10612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1062
1063 * procfs.c: Cleanup many comments.
1064
1065 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1066 (AFTER_WATCHFLAG): Replace by value.
1067
1068 (MAIN_PROC_NAME_FORMAT): Inline ...
1069 (create_procinfo): ... here.
1070
1071 (procfs_debug_inferior): Remove SYS_exec handling.
1072 (syscall_is_exec): Likewise.
1073 (procfs_set_exec_trap): Likewise.
1074
1075 (syscall_is_lwp_exit): Inline in callers.
1076 (syscall_is_exit): Likewise.
1077 (syscall_is_exec): Likewise.
1078 (syscall_is_lwp_create): Likewise.
1079
1080 (invalidate_cache): Remove #if 0 code.
1081
1082 (make_signal_thread_runnable): Remove.
1083 (procfs_target::resume): Remove #if 0 code.
1084
cf6f3e86
RO
10852020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1086
1087 PR gdb/25939
1088 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1089 call ...
1090 (procfs_target::create_inferior): ... here.
1091
48e9cc84
PW
10922020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1093
1094 * exec.c (validate_exec_file): Ensure the build-id is up to
1095 date by calling reopen_exec_file (that checks file timestamp
1096 to decide to re-read the file).
1097
3922b302
PA
10982020-06-18 Pedro Alves <palves@redhat.com>
1099
1100 PR gdb/25412
1101 * gdbthread.h (delete_thread, delete_thread_silent)
1102 (find_thread_ptid): Update comments.
1103 * thread.c (current_thread_): New global.
1104 (is_current_thread): Move higher, and reimplement.
1105 (inferior_thread): Reimplement.
1106 (set_thread_exited): Use bool. Add assertions.
1107 (add_thread_silent): Simplify thread-reuse handling by always
1108 calling delete_thread.
1109 (delete_thread): Remove intro comment.
1110 (find_thread_ptid): Skip exited threads.
1111 (switch_to_thread_no_regs): Write to current_thread_.
1112 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1113 INFERIOR_PTID. Clear current_thread_.
1114
6dbdab44
PA
11152020-06-18 Pedro Alves <palves@redhat.com>
1116
1117 * aix-thread.c (pd_update): Use switch_to_thread.
1118
2da4b788
PA
11192020-06-18 Pedro Alves <palves@redhat.com>
1120
1121 * ravenscar-thread.c (ravenscar_thread_target): Update.
1122 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1123 (ravenscar_thread_target::add_active_thread): ... this. Don't
1124 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1125 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1126
50838d1b
PA
11272020-06-18 Pedro Alves <palves@redhat.com>
1128
1129 * nat/windows-nat.c (current_windows_thread): Remove.
1130 * nat/windows-nat.h (current_windows_thread): Remove.
1131 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1132 Adjust.
1133 (display_selectors): Adjust to fetch the current
1134 windows_thread_info based on inferior_ptid.
1135 (fake_create_process): No longer write to current_windows_thread.
1136 (windows_nat_target::get_windows_debug_event):
1137 Don't set inferior_ptid or current_windows_thread.
1138 (windows_nat_target::wait): Adjust to not rely on
1139 current_windows_thread.
1140 (do_initial_windows_stuff): Now a method of windows_nat_target.
1141 Switch to the last_ptid thread.
1142 (windows_nat_target::attach): Adjust.
1143 (windows_nat_target::detach): Use switch_to_no_thread instead of
1144 writing to inferior_ptid directly.
1145 (windows_nat_target::create_inferior): Adjust.
1146
31ce04e9
PA
11472020-06-18 Pedro Alves <palves@redhat.com>
1148
1149 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1150
1ee1a363
PA
11512020-06-18 Pedro Alves <palves@redhat.com>
1152
1153 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1154 after creating it, instead of writing to inferior_ptid. Don't
1155 write to inferior_ptid.
1156
6d350754
PA
11572020-06-18 Pedro Alves <palves@redhat.com>
1158
1159 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1160
5d971d48
PA
11612020-06-18 Pedro Alves <palves@redhat.com>
1162
1163 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1164 it, instead of writing to inferior_ptid.
1165
86e57d1b
PA
11662020-06-18 Pedro Alves <palves@redhat.com>
1167
1168 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1169 to inferior_ptid.
1170
f2e1c129
PA
11712020-06-18 Pedro Alves <palves@redhat.com>
1172
1173 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1174 instead of writing to inferior_ptid directly.
1175
60db1b85
PA
11762020-06-18 Pedro Alves <palves@redhat.com>
1177
1178 * corelow.c (core_target::close): Use switch_to_no_thread instead
1179 of writing to inferior_ptid directly.
1180 (add_to_thread_list, core_target_open): Use switch_to_thread
1181 instead of writing to inferior_ptid directly.
1182
fe7d6a8d
PA
11832020-06-18 Pedro Alves <palves@redhat.com>
1184
1185 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1186 inferior_ptid.
1187 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1188 inferior_ptid.
1189 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1190 inferior_ptid directly.
1191 (darwin_nat_target::init_thread_list): Switch to thread, instead
1192 of writing to inferior_ptid.
1193 (darwin_nat_target::attach): Don't write to inferior_ptid.
1194 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1195
975f8708
PA
11962020-06-18 Pedro Alves <palves@redhat.com>
1197
1198 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1199 thread.
1200 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1201 Instead use switch_to_thread.
1202 (gnu_nat_target::detach): Use switch_to_no_thread
1203 instead of writing to inferior_ptid directly. Used passed-in
1204 inferior instead of looking up the inferior by pid.
1205
1a204730
PA
12062020-06-18 Pedro Alves <palves@redhat.com>
1207
1208 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1209 inferior_ptid.
1210
ebe84f23
PA
12112020-06-18 Pedro Alves <palves@redhat.com>
1212
1213 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1214 inferior_ptid.
1215 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1216 thread.
1217 (nto_procfs_target::detach): Avoid referencing
1218 inferior_ptid. Use switch_to_no_thread instead of writing to
1219 inferior_ptid directly.
1220 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1221 instead of writing to inferior_ptid directly.
1222 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1223 to thread.
1224
191f02e5
PA
12252020-06-18 Pedro Alves <palves@redhat.com>
1226
1227 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1228 after creating it, instead of writing to inferior_ptid.
1229 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1230 to inferior_ptid directly.
1231 (gdbsim_target::wait): Don't write to inferior_ptid.
1232
0ac55310
PA
12332020-06-18 Pedro Alves <palves@redhat.com>
1234
1235 * remote.c (remote_target::remote_notice_new_inferior): Use
1236 switch_to_thread instead of writing to inferior_ptid directly.
1237 (remote_target::add_current_inferior_and_thread): Use
1238 switch_to_no_thread instead of writing to inferior_ptid directly.
1239 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1240 and switch_to_thread instead of using set_current_inferior or
1241 writing to inferior_ptid directly.
1242
5233f39b
PA
12432020-06-18 Pedro Alves <palves@redhat.com>
1244
1245 * tracectf.c (ctf_target_open): Switch to added thread instead of
1246 writing to inferior_ptid directly.
1247 (ctf_target::close): Use switch_to_no_thread instead of writing to
1248 inferior_ptid directly.
1249
087e161b
PA
12502020-06-18 Pedro Alves <palves@redhat.com>
1251
1252 * tracefile-tfile.c (tfile_target_open): Don't write to
1253 inferior_ptid directly, instead switch to added thread.
1254 (tfile_target::close): Use switch_to_no_thread instead of writing
1255 to inferior_ptid directly.
1256
7fb43e53
PA
12572020-06-18 Pedro Alves <palves@redhat.com>
1258
1259 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1260 (procfs_target::detach): Use switch_to_no_thread
1261 instead of writing to inferior_ptid directly.
1262 (do_attach): Change return type to void. Switch to the added
1263 thread.
1264 (procfs_target::create_inferior): Switch to the added thread.
1265 (procfs_do_thread_registers): Don't write to inferior_ptid.
1266
18493a00
PA
12672020-06-18 Pedro Alves <palves@redhat.com>
1268
1269 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1270 of writing to inferior_ptid.
1271 (scoped_restore_exited_inferior): Delete.
1272 (handle_vfork_child_exec_or_exit): Simplify using
1273 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1274 instead of writing to inferior_ptid.
1275 (THREAD_STOPPED_BY): Delete.
1276 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1277 (thread_stopped_by_hw_breakpoint): Delete.
1278 (save_waitstatus): Use
1279 scoped_restore_current_thread+switch_to_thread, and call
1280 target_stopped_by_watchpoint instead of
1281 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1282 instead of thread_stopped_by_sw_breakpoint, and
1283 target_stopped_by_hw_breakpoint instead of
1284 thread_stopped_by_hw_breakpoint.
1285 (handle_inferior_event)
1286 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1287 inferior_ptid directly, nor
1288 set_current_inferior/set_current_program_space. Use
1289 switch_to_thread / switch_to_inferior_no_thread instead.
1290
a0776b13
PA
12912020-06-18 Pedro Alves <palves@redhat.com>
1292
1293 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1294 instead of writing to inferior_ptid.
1295
6155c136
PA
12962020-06-18 Pedro Alves <palves@redhat.com>
1297
1298 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1299 added thread.
1300 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1301 to the added thread.
1302 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1303 instead of writing to inferior_ptid.
1304
c5316fc6
PA
13052020-06-18 Pedro Alves <palves@redhat.com>
1306
1307 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1308 (register_to_value_test): Mock a program_space too. Heap-allocate
1309 the address space. Don't write to inferior_ptid. Use
1310 switch_to_thread instead.
1311
8df01799
PA
13122020-06-18 Pedro Alves <palves@redhat.com>
1313
1314 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1315 Delete.
1316 (find_signalled_thread()): New, factored out from
1317 linux_make_corefile_notes and adjusted to handle exited threads.
1318 (linux_make_corefile_notes): Adjust to use the new
1319 find_signalled_thread.
1320
41792d68
PA
13212020-06-18 Pedro Alves <palves@redhat.com>
1322
1323 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1324 of saving/restoring inferior_ptid.
1325
612f258a
TT
13262020-06-17 Tom Tromey <tom@tromey.com>
1327
1328 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1329 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1330 declare.
1331 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1332
efb763a5
SM
13332020-06-15 Simon Marchi <simon.marchi@efficios.com>
1334
1335 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1336 of partial symtabs.
1337
2951f6c0
SM
13382020-06-17 Simon Marchi <simon.marchi@efficios.com>
1339
1340 * regformats/reg-arm.dat: Remove.
1341 * regformats/reg-bfin.dat: Remove.
1342 * regformats/reg-cris.dat: Remove.
1343 * regformats/reg-crisv32.dat: Remove.
1344 * regformats/reg-m32r.dat: Remove.
1345 * regformats/reg-tilegx.dat: Remove.
1346 * regformats/reg-tilegx32.dat: Remove.
1347
7d458ea5
SM
13482020-06-17 Simon Marchi <simon.marchi@efficios.com>
1349
1350 * features/Makefile (WHICH): Remove arm files.
1351 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1352 * regformats/arm/arm-with-neon.dat: Remove.
1353 * regformats/arm/arm-with-vfpv2.dat: Remove.
1354 * regformats/arm/arm-with-vfpv3.dat: Remove.
1355
3af96c0d
SM
13562020-06-17 Simon Marchi <simon.marchi@efficios.com>
1357
1358 * features/Makefile (XMLTOC): Remove rx.xml.
1359
b25e22fd
PA
13602020-06-17 Pedro Alves <palves@redhat.com>
1361
1362 * gdbthread.h (thread_control_state) <trap_expected> Update
1363 comments.
1364
a78a19b1
AB
13652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1368 ada_language::lookup_symbol_nonlocal.
1369 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1370 (ada_language::lookup_symbol_nonlocal): New member function,
1371 implementation from ada_lookup_symbol_nonlocal.
1372 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1373 initializer.
1374 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1375 initializer.
1376 (cplus_language::lookup_symbol_nonlocal): New member function.
1377 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1378 (minimal_language_data) Likewise.
1379 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1380 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1381 initializer.
1382 (d_language::lookup_symbol_nonlocal): New member function.
1383 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1384 initializer.
1385 (f_language::lookup_symbol_nonlocal): New member function.
1386 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1387 initializer.
1388 * language.c (unknown_language_data): Likewise.
1389 (auto_language_data): Likewise.
1390 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1391 field.
1392 (language_defn::lookup_symbol_nonlocal): New member function.
1393 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1394 initializer.
1395 * objc-lang.c (objc_language_data): Likewise.
1396 * opencl-lang.c (opencl_language_data): Likewise.
1397 * p-lang.c (pascal_language_data): Likewise.
1398 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1399 rust_language::lookup_symbol_nonlocal.
1400 (rust_language_data): Delete la_lookup_symbol_nonlocal
1401 initializer.
1402 (rust_language::lookup_symbol_nonlocal): New member function,
1403 implementation from rust_lookup_symbol_nonlocal.
1404 * symtab.c (lookup_symbol_aux): Update call to
1405 lookup_symbol_nonlocal.
1406 (basic_lookup_symbol_nonlocal): Rename to...
1407 (language_defn::lookup_symbol_nonlocal): ...this, and update
1408 header comment. Remove language_defn parameter, and replace with
1409 uses of `this'.
1410 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1411
ebe2334e
AB
14122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1415 initializer.
1416 (ada_language::value_print_inner): New member function.
1417 * c-lang.c (c_language_data): Delete la_value_print_inner
1418 initializer.
1419 (cplus_language_data): Likewise.
1420 (asm_language_data): Likewise.
1421 (minimal_language_data): Likewise.
1422 * d-lang.c (d_language_data): Likewise.
1423 (d_language::value_print_inner): New member function.
1424 * f-lang.c (f_language_data): Delete la_value_print_inner
1425 initializer.
1426 (f_language::value_print_inner): New member function.
1427 * f-lang.h (f_value_print_innner): Rename to...
1428 (f_value_print_inner): ...this (note spelling of 'inner').
1429 * f-valprint.c (f_value_print_innner): Rename to...
1430 (f_value_print_inner): ...this (note spelling of 'inner').
1431 * go-lang.c (go_language_data): Delete la_value_print_inner
1432 initializer.
1433 (go_language::value_print_inner): New member function.
1434 * language.c (language_defn::value_print_inner): Define new member
1435 function.
1436 (unk_lang_value_print_inner): Delete.
1437 (unknown_language_data): Delete la_value_print_inner initializer.
1438 (unknown_language::value_print_inner): New member function.
1439 (auto_language_data): Delete la_value_print_inner initializer.
1440 (auto_language::value_print_inner): New member function.
1441 * language.h (language_data): Delete la_value_print_inner field.
1442 (language_defn::value_print_inner): Delcare new member function.
1443 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1444 initializer.
1445 (m2_language::value_print_inner): New member function.
1446 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1447 initializer.
1448 * opencl-lang.c (opencl_language_data): Likewise.
1449 * p-lang.c (pascal_language_data): Likewise.
1450 (pascal_language::value_print_inner): New member function.
1451 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1452 initializer.
1453 (rust_language::value_print_inner): New member function.
1454 * valprint.c (do_val_print): Update call to value_print_inner.
1455
a1d1fa3e
AB
14562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1457
1458 * ada-lang.c (ada_language_data): Delete la_value_print
1459 initializer.
1460 (ada_language::value_print): New member function.
1461 * c-lang.c (c_language_data): Delete la_value_print initializer.
1462 (cplus_language_data): Likewise.
1463 (asm_language_data): Likewise.
1464 (minimal_language_data): Likewise.
1465 * d-lang.c (d_language_data): Likewise.
1466 * f-lang.c (f_language_data): Likewise.
1467 * go-lang.c (go_language_data): Likewise.
1468 * language.c (unk_lang_value_print): Delete.
1469 (language_defn::value_print): Define new member function.
1470 (unknown_language_data): Delete la_value_print initializer.
1471 (unknown_language::value_print): New member function.
1472 (auto_language_data): Delete la_value_print initializer.
1473 (auto_language::value_print): New member function.
1474 * language.h (language_data): Delete la_value_print field.
1475 (language_defn::value_print): Declare new member function.
1476 (LA_VALUE_PRINT): Update call to value_print.
1477 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1478 * objc-lang.c (objc_language_data): Likewise.
1479 * opencl-lang.c (opencl_language_data): Likewise.
1480 * p-lang.c (pascal_language_data): Likewise.
1481 (pascal_language::value_print): New member function.
1482 * rust-lang.c (rust_language_data): Delete la_value_print
1483 initializer.
1484
f16a9f57
AB
14852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * ada-lang.c (ada_watch_location_expression): Rename to
1488 ada_language::watch_location_expression.
1489 (ada_language_data): Delete la_watch_location_expression
1490 initializer.
1491 (ada_language::watch_location_expression): New member function,
1492 implementation from ada_watch_location_expression.
1493 * breakpoint.c (watch_command_1): Update call to
1494 watch_location_expression.
1495 * c-lang.c (c_watch_location_expression): Rename to
1496 language_defn::watch_location_expression.
1497 (c_language_data): Delete la_watch_location_expression
1498 initializer.
1499 (cplus_language_data): Likewise.
1500 (asm_language_data): Likewise.
1501 (minimal_language_data): Likewise.
1502 * c-lang.h (c_watch_location_expression): Delete declaration.
1503 * d-lang.c (d_language_data): Delete la_watch_location_expression
1504 initializer.
1505 * f-lang.c (f_language_data): Likewise.
1506 * go-lang.c (go_language_data): Likewise.
1507 * language.c (language_defn::watch_location_expression): Member
1508 function implementation from c_watch_location_expression.
1509 (unknown_language_data): Delete la_watch_location_expression
1510 initializer.
1511 (auto_language_data): Likewise.
1512 * language.h (language_data): Delete la_watch_location_expression
1513 field.
1514 (language_defn::watch_location_expression): Declare new member
1515 function.
1516 * m2-lang.c (m2_language_data): Delete
1517 la_watch_location_expression initializer.
1518 * objc-lang.c (objc_language_data): Likewise.
1519 * opencl-lang.c (opencl_language_data): Likewise.
1520 * p-lang.c (pascal_language_data): Likewise.
1521 * rust-lang.c (rust_watch_location_expression): Rename to
1522 rust_language::watch_location_expression.
1523 (rust_language_data): Delete la_watch_location_expression
1524 initializer.
1525 (rust_language::watch_location_expression): New member function,
1526 implementation from rust_watch_location_expression.
1527
7e56227d
AB
15282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1531 ada_language::collect_symbol_completion_matches.
1532 (ada_language_data): Delete la_collect_symbol_completion_matches
1533 initializer.
1534 (ada_language::collect_symbol_completion_matches): New member
1535 function, implementation from
1536 ada_collect_symbol_completion_matches.
1537 * c-lang.c (c_language_data): Delete
1538 la_collect_symbol_completion_matches initializer.
1539 (cplus_language_data): Likewise.
1540 (asm_language_data): Likewise.
1541 (minimal_language_data): Likewise.
1542 * d-lang.c (d_language_data): Likewise.
1543 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1544 f_language::collect_symbol_completion_matches.
1545 (f_language_data): Delete la_collect_symbol_completion_matches
1546 initializer.
1547 (f_language::collect_symbol_completion_matches) New member
1548 function, implementation from f_collect_symbol_completion_matches.
1549 * go-lang.c (go_language_data): Delete
1550 la_collect_symbol_completion_matches initializer.
1551 * language.c (unknown_language_data): Likewise.
1552 (auto_language_data): Likewise.
1553 * language.h (language_data): Delete
1554 la_collect_symbol_completion_matches field.
1555 (language_defn::collect_symbol_completion_matches): New member
1556 function.
1557 * m2-lang.c (m2_language_data): Delete
1558 la_collect_symbol_completion_matches initializer.
1559 * objc-lang.c (objc_language_data): Likewise.
1560 * opencl-lang.c (opencl_language_data): Likewise.
1561 * p-lang.c (pascal_language_data): Likewise.
1562 * rust-lang.c (rust_language_data): Likewise.
1563 * symtab.c (default_collect_symbol_completion_matches): Delete.
1564 (collect_symbol_completion_matches): Update call to
1565 collect_symbol_completion_matches.
1566 (collect_symbol_completion_matches_type): Likewise.
1567 * symtab.h (default_collect_symbol_completion_matches): Delete
1568 declaration.
1569
53fc67f8
AB
15702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1573 (ada_language_data): Delete la_word_break_characters initializer.
1574 (ada_language::word_break_characters): New member function.
1575 * c-lang.c (c_language_data): Delete la_word_break_characters
1576 initializer.
1577 (cplus_language_data): Likewise.
1578 (asm_language_data): Likewise.
1579 (minimal_language_data): Likewise.
1580 * completer.c: Update global comment.
1581 (advance_to_expression_complete_word_point): Update call to
1582 word_break_characters.
1583 (complete_files_symbols): Likewise.
1584 (complete_line_internal_1): Likewise.
1585 (default_completer_handle_brkchars): Likewise.
1586 (skip_quoted_chars): Likewise.
1587 * d-lang.c (d_language_data): Delete la_word_break_characters
1588 initializer.
1589 * f-lang.c (f_word_break_characters): Delete.
1590 (f_language_data): Delete la_word_break_characters initializer.
1591 (f_language::word_break_characters): New member function.
1592 * go-lang.c (go_language_data): Delete la_word_break_characters
1593 initializer.
1594 * language.c (unknown_language_data): Likewise.
1595 (auto_language_data): Likewise.
1596 * language.h (default_word_break_characters): Move declaration to
1597 earlier in the file.
1598 (language_data): Delete la_word_break_characters field.
1599 (language_defn::word_break_characters): New member function.
1600 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1601 initializer.
1602 * objc-lang.c (objc_language_data): Likewise.
1603 * opencl-lang.c (opencl_language_data): Likewise.
1604 * p-lang.c (pascal_language_data): Likewise.
1605 * rust-lang.c (rust_language_data): Likewise.
1606
c9debfb9
AB
16072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1610 (ada_language_data): Delete la_get_symbol_name_matcher
1611 initializer.
1612 (language_defn::get_symbol_name_matcher_inner): New member
1613 function.
1614 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1615 initializer.
1616 (cplus_language_data): Likewise.
1617 (cplus_language::get_symbol_name_matcher_inner): New member
1618 function.
1619 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1620 (minimal_language_data): Likewise.
1621 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1622 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1623 initializer.
1624 * dictionary.c (iter_match_first_hashed): Update call to
1625 get_symbol_name_matcher.
1626 (iter_match_next_hashed): Likewise.
1627 (iter_match_next_linear): Likewise.
1628 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1629 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1630 initializer.
1631 (f_language::get_symbol_name_matcher_inner): New member function.
1632 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1633 initializer.
1634 * language.c (default_symbol_name_matcher): Update header comment,
1635 make static.
1636 (language_defn::get_symbol_name_matcher): New definition.
1637 (language_defn::get_symbol_name_matcher_inner): Likewise.
1638 (get_symbol_name_matcher): Delete.
1639 (unknown_language_data): Delete la_get_symbol_name_matcher
1640 initializer.
1641 (auto_language_data): Likewise.
1642 * language.h (language_data): Delete la_get_symbol_name_matcher
1643 field.
1644 (language_defn::get_symbol_name_matcher): New member function.
1645 (language_defn::get_symbol_name_matcher_inner): Likewise.
1646 (default_symbol_name_matcher): Delete declaration.
1647 * linespec.c (find_methods): Update call to
1648 get_symbol_name_matcher.
1649 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1650 initializer.
1651 * minsyms.c (lookup_minimal_symbol): Update call to
1652 get_symbol_name_matcher.
1653 (iterate_over_minimal_symbols): Likewise.
1654 * objc-lang.c (objc_language_data): Delete
1655 la_get_symbol_name_matcher initializer.
1656 * opencl-lang.c (opencl_language_data): Likewise.
1657 * p-lang.c (pascal_language_data): Likewise.
1658 * psymtab.c (psymbol_name_matches): Update call to
1659 get_symbol_name_matcher.
1660 * rust-lang.c (rust_language_data): Delete
1661 la_get_symbol_name_matcher initializer.
1662 * symtab.c (symbol_matches_search_name): Update call to
1663 get_symbol_name_matcher.
1664 (compare_symbol_name): Likewise.
1665
9a49ad8c
AB
16662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * ada-lang.c (ada_language_data): Delete la_compute_program
1669 initializer.
1670 * c-lang.c (c_language_data): Likewise.
1671 (c_language::compute_program): New member function.
1672 (cplus_language_data): Delete la_compute_program initializer.
1673 (cplus_language::compute_program): New member function.
1674 (asm_language_data): Delete la_compute_program initializer.
1675 (minimal_language_data): Likewise.
1676 * c-lang.h (c_compute_program): Update comment.
1677 (cplus_compute_program): Likewise.
1678 * compile/compile-c-support.c (c_compute_program): Likewise.
1679 (cplus_compute_program): Likewise.
1680 * compile/compile.c (compile_to_object): Update call to
1681 la_compute_program.
1682 * d-lang.c (d_language_data): Delete la_compute_program
1683 initializer.
1684 * f-lang.c (f_language_data): Likewise.
1685 * go-lang.c (go_language_data): Likewise.
1686 * language.c (unknown_language_data): Likewise.
1687 (auto_language_data): Likewise.
1688 * language.h (language_data): Delete la_compute_program field.
1689 (language_defn::compute_program): New member function.
1690 * m2-lang.c (m2_language_data): Delete la_compute_program
1691 initializer.
1692 * objc-lang.c (objc_language_data): Likewise.
1693 * opencl-lang.c (opencl_language_data): Likewise.
1694 * p-lang.c (pascal_language_data): Likewise.
1695 * rust-lang.c (rust_language_data): Likewise.
1696
eff93b4d
AB
16972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * ada-lang.c (ada_language_data) Delete
1700 la_class_name_from_physname initializer.
1701 * c-lang.c (c_language_data): Likewise.
1702 (cplus_language_data): Likewise.
1703 (cplus_language::class_name_from_physname): New member function.
1704 (asm_language_data): Delete la_class_name_from_physname
1705 initializer.
1706 (minimal_language_data): Likewise.
1707 * d-lang.c (d_language_data): Likewise.
1708 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
1709 method on language_defn class.
1710 (guess_full_die_structure_name): Likewise.
1711 * f-lang.c (f_language_data): Delete la_class_name_from_physname
1712 initializer.
1713 * go-lang.c (go_language_data): Likewise.
1714 * language.c (language_class_name_from_physname): Delete.
1715 (unk_lang_class_name): Delete.
1716 (unknown_language_data): Delete la_class_name_from_physname
1717 initializer.
1718 (auto_language_data): Likewise.
1719 * language.h (language_data): Delete la_class_name_from_physname
1720 field.
1721 (language_defn::class_name_from_physname): New function.
1722 (language_class_name_from_physname): Delete declaration.
1723 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
1724 initializer.
1725 * objc-lang.c (objc_language_data): Likewise.
1726 * opencl-lang.c (opencl_language_data): Likewise.
1727 * p-lang.c (pascal_language_data): Likewise.
1728 * rust-lang.c (rust_language_data): Likewise.
1729
de543742
TT
17302020-06-16 Tom Tromey <tom@tromey.com>
1731
1732 * tui/tui-data.h (STATUS_NAME): New macro.
1733 * tui/tui-layout.c (tui_remove_some_windows)
1734 (initialize_known_windows, tui_register_window)
1735 (tui_layout_split::remove_windows, initialize_layouts)
1736 (tui_new_layout_command): Don't use hard-coded window names.
1737
a350efd4
TT
17382020-06-16 Tom Tromey <tom@tromey.com>
1739
1740 PR tui/25348:
1741 * tui/tui.c (tui_ensure_readline_initialized): Rename from
1742 tui_initialize_readline. Only run once. Call rl_initialize.
1743 * tui/tui.h (tui_ensure_readline_initialized): Rename from
1744 tui_initialize_readline.
1745 * tui/tui-io.c (tui_setup_io): Call
1746 tui_ensure_readline_initialized.
1747 * tui/tui-interp.c (tui_interp::init): Update.
1748
39ec0490
TT
17492020-06-16 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
1752 Also preserve the status window.
1753
d2d1ea20
TT
17542020-06-16 Tom Tromey <tom@tromey.com>
1755
1756 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
1757 where m_window==nullptr.
1758
66920317
TT
17592020-06-15 Tom Tromey <tromey@adacore.com>
1760
1761 * windows-nat.c (windows_nat::handle_output_debug_string):
1762 Update.
1763 (windows_nat::handle_ms_vc_exception): Update.
1764 * target.h (target_read_string): Change API.
1765 * target.c (target_read_string): Change API.
1766 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1767 Update.
1768 * solib-frv.c (frv_current_sos): Update.
1769 * solib-dsbt.c (dsbt_current_sos): Update.
1770 * solib-darwin.c (darwin_current_sos): Update.
1771 * linux-thread-db.c (inferior_has_bug): Update.
1772 * expprint.c (print_subexp_standard): Update.
1773 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
1774 (ada_exception_message_1): Update.
1775
a5d871dd
TT
17762020-06-15 Tom Tromey <tromey@adacore.com>
1777
1778 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
1779
670e35fa
TT
17802020-06-15 Tom Tromey <tromey@adacore.com>
1781
1782 * valprint.c (read_string): Update comment.
1783 * target.c (MIN): Remove.
1784 (target_read_string): Rewrite.
1785
f5272a3b
TT
17862020-06-15 Tom Tromey <tromey@adacore.com>
1787
1788 * corefile.c (read_memory_string): Remove.
1789 * ada-valprint.c (ada_value_print_ptr): Update.
1790 * ada-lang.h (ada_tag_name): Change return type.
1791 * ada-lang.c (type_from_tag): Update.
1792 (ada_tag_name_from_tsd): Change return type. Use
1793 target_read_string.
1794 (ada_tag_name): Likewise.
1795 * gdbcore.h (read_memory_string): Don't declare.
1796
2c074f49
HD
17972020-06-14 Hannes Domani <ssbssa@yahoo.de>
1798
1799 * symtab.c (rbreak_command): Ignore Windows drive colon.
1800
6a17d503
SM
18012020-06-12 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * NEWS: Mention removed GDBserver host support.
1804
453c733f
NC
18052020-06-12 Nelson Chu <nelson.chu@sifive.com>
1806
1807 * features/riscv/rebuild-csr-xml.sh: Updated.
1808
2b4e6a3f
TT
18092020-06-11 Tom Tromey <tom@tromey.com>
1810
1811 PR gdb/18318:
1812 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
1813
4412332f
JG
18142020-06-09 Jonny Grant <jg@jguk.org>
18152020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 * main.c (captured_main_1): Don't print new line after help.
1818 (print_gdb_help): add mailing list and IRC channel information
1819 to --help. Add new lines between items in the footer. Remove
1820 quotes around bug url.
1821
2f33032a
KS
18222020-06-11 Keith Seitz <keiths@redhat.com>
1823
1824 PR gdb/21356
1825 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
1826 Resolve typedefs for type length calculations.
1827
7ab96794
TV
18282020-06-10 Tom de Vries <tdevries@suse.de>
1829
1830 PR ada/24713
1831 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
1832 (write_psymbols): Enable .gdb_index for ada.
1833 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
1834 ada.
1835
e5f3ece2
TV
18362020-06-10 Tom de Vries <tdevries@suse.de>
1837
1838 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
1839 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
1840 namei" instead of "const char *name" argument.
1841 (dw2_map_matching_symbols): Use "offset_type namei" variant of
1842 dw2_symtab_iter_init.
1843
940da03e
SM
18442020-06-08 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
1847 to use type::field and field::type instead.
1848
b6cdac4b
SM
18492020-06-08 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
1852 to use field::type instead.
1853
5d14b6e5
SM
18542020-06-08 Simon Marchi <simon.marchi@efficios.com>
1855
1856 * gdbtypes.h (struct field) <type, set_type>: New methods.
1857 Rename `type` field to...
1858 <m_type>: ... this. Change references throughout to use type or
1859 set_type methods.
1860 (FIELD_TYPE): Use field::type. Change call sites that modify
1861 the field's type to use field::set_type instead.
1862
3d967001
SM
18632020-06-08 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
1866 to use type::index_type instead.
1867
262abc0d
SM
18682020-06-08 Simon Marchi <simon.marchi@efficios.com>
1869
1870 * gdbtypes.h (struct type) <index_type, set_index_type>: New
1871 methods.
1872 (TYPE_INDEX_TYPE): Use type::index_type.
1873 * gdbtypes.c (create_array_type_with_stride): Likewise.
1874
82836c92
TT
18752020-06-07 Tom Tromey <tom@tromey.com>
1876
1877 * valprint.c (generic_val_print_float): Remove "embedded_offset"
1878 parameter.
1879 (generic_value_print): Update.
1880
940dace9
AB
18812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1882
1883 Revert commit 982a38f60b0.
1884 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
1885
982a38f6
AB
18862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
1889 avoid use after free.
1890
82f06518
TV
18912020-06-05 Tom de Vries <tdevries@suse.de>
1892
1893 * NEWS: Fix typos.
1894
f8c41851
SM
18952020-06-04 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
1898 the per_bfd object.
1899 (dwarf2_read_debug_names): Likewise.
1900 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
1901 object when re-using a per_bfd object with an index.
1902
f9b5d5ea
TV
19032020-06-03 Tom de Vries <tdevries@suse.de>
1904
1905 PR symtab/26046
1906 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
1907 children for C++.
1908 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
1909 DW_TAG_subprogram.
1910
f6eee2d0
AB
19112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1912
1913 * ada-lang.c (ada_language_data): Delete skip_trampoline
1914 initializer.
1915 * c-lang.c (c_language_data): Likewise.
1916 (cplus_language_data): Likewise.
1917 (cplus_language::skip_trampoline): New member function.
1918 (asm_language_data): Delete skip_trampoline initializer.
1919 (minimal_language_data): Likewise.
1920 * d-lang.c (d_language_data): Likewise.
1921 * f-lang.c (f_language_data): Likewise.
1922 * go-lang.c (go_language_data): Likewise.
1923 * language.c (unk_lang_trampoline): Delete function.
1924 (skip_language_trampoline): Update.
1925 (unknown_language_data): Delete skip_trampoline initializer.
1926 (auto_language_data): Likewise.
1927 * language.h (language_data): Delete skip_trampoline field.
1928 (language_defn::skip_trampoline): New function.
1929 * m2-lang.c (m2_language_data): Delete skip_trampoline
1930 initializer.
1931 * objc-lang.c (objc_skip_trampoline): Delete function, move
1932 implementation to objc_language::skip_trampoline.
1933 (objc_language_data): Delete skip_trampoline initializer.
1934 (objc_language::skip_trampoline): New member function with
1935 implementation from objc_skip_trampoline.
1936 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
1937 initializer.
1938 * p-lang.c (pascal_language_data): Likewise.
1939 * rust-lang.c (rust_language_data): Likewise.
1940
0a50df5d
AB
19412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
1944 (ada_language::demangle): New member function.
1945 * c-lang.c (c_language_data): Delete la_demangle initializer.
1946 (cplus_language_data): Delete la_demangle initializer.
1947 (cplus_language::demangle): New member function.
1948 (asm_language_data): Delete la_demangle initializer.
1949 (minimal_language_data): Delete la_demangle initializer.
1950 * d-lang.c (d_language_data): Delete la_demangle initializer.
1951 (d_language::demangle): New member function.
1952 * f-lang.c (f_language_data): Delete la_demangle initializer.
1953 (f_language::demangle): New member function.
1954 * go-lang.c (go_language_data): Delete la_demangle initializer.
1955 (go_language::demangle): New member function.
1956 * language.c (language_demangle): Update.
1957 (unk_lang_demangle): Delete.
1958 (unknown_language_data): Delete la_demangle initializer.
1959 (unknown_language::demangle): New member function.
1960 (auto_language_data): Delete la_demangle initializer.
1961 (auto_language::demangle): New member function.
1962 * language.h (language_data): Delete la_demangle field.
1963 (language_defn::demangle): New function.
1964 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
1965 * objc-lang.c (objc_language_data): Delete la_demangle
1966 initializer.
1967 (objc_language::demangle): New member function.
1968 * opencl-lang.c (opencl_language_data): Delete la_demangle
1969 initializer.
1970 * p-lang.c (pascal_language_data): Likewise.
1971 * rust-lang.c (rust_language_data): Likewise.
1972 (rust_language::demangle): New member function.
1973
fbfb0a46
AB
19742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data): Delete la_print_type
1977 initializer.
1978 (ada_language::print_type): New member function.
1979 * c-lang.c (c_language_data): Delete la_print_type initializer.
1980 (c_language::print_type): New member function.
1981 (cplus_language_data): Delete la_print_type initializer.
1982 (cplus_language::print_type): New member function.
1983 (asm_language_data): Delete la_print_type initializer.
1984 (asm_language::print_type): New member function.
1985 (minimal_language_data): Delete la_print_type initializer.
1986 (minimal_language::print_type): New member function.
1987 * d-lang.c (d_language_data): Delete la_print_type initializer.
1988 (d_language::print_type): New member function.
1989 * f-lang.c (f_language_data): Delete la_print_type initializer.
1990 (f_language::print_type): New member function.
1991 * go-lang.c (go_language_data): Delete la_print_type initializer.
1992 (go_language::print_type): New member function.
1993 * language.c (unk_lang_print_type): Delete.
1994 (unknown_language_data): Delete la_print_type initializer.
1995 (unknown_language::print_type): New member function.
1996 (auto_language_data): Delete la_print_type initializer.
1997 (auto_language::print_type): New member function.
1998 * language.h (language_data): Delete la_print_type field.
1999 (language_defn::print_type): New function.
2000 (LA_PRINT_TYPE): Update.
2001 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2002 (m2_language::print_type): New member function.
2003 * objc-lang.c (objc_language_data): Delete la_print_type
2004 initializer.
2005 (objc_language::print_type): New member function.
2006 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2007 to opencl_language::print_type.
2008 (opencl_language_data): Delete la_print_type initializer.
2009 (opencl_language::print_type): New member function, implementation
2010 from opencl_print_type.
2011 * p-lang.c (pascal_language_data): Delete la_print_type
2012 initializer.
2013 (pascal_language::print_type): New member function.
2014 * rust-lang.c (rust_print_type): Delete, implementation moved to
2015 rust_language::print_type.
2016 (rust_language_data): Delete la_print_type initializer.
2017 (rust_language::print_type): New member function, implementation
2018 from rust_print_type.
2019
6f827019
AB
20202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2021
2022 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2023 implementation moves to...
2024 (ada_language::sniff_from_mangled_name): ...here. Update return
2025 type.
2026 (ada_language_data): Delete la_sniff_from_mangled_name
2027 initializer.
2028 * c-lang.c (c_language_data): Likewise.
2029 (cplus_language_data): Likewise.
2030 (cplus_language::sniff_from_mangled_name): New member function,
2031 implementation taken from gdb_sniff_from_mangled_name.
2032 (asm_language_data): Delete la_sniff_from_mangled_name
2033 initializer.
2034 (minimal_language_data): Likewise.
2035 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2036 implementation moves to cplus_language::sniff_from_mangled_name.
2037 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2038 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2039 moves to...
2040 (d_language::sniff_from_mangled_name): ...here.
2041 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2042 * f-lang.c (f_language_data): Likewise.
2043 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2044 moves to...
2045 (go_language::sniff_from_mangled_name): ...here.
2046 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2047 * language.c (language_sniff_from_mangled_name): Delete.
2048 (unknown_language_data): Delete la_sniff_from_mangled_name
2049 initializer.
2050 (auto_language_data): Likewise.
2051 * language.h (language_data): Delete la_sniff_from_mangled_name
2052 field.
2053 (language_defn::sniff_from_mangled_name): New function.
2054 (language_sniff_from_mangled_name): Delete declaration.
2055 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2056 field.
2057 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2058 implementation moves to...
2059 (objc_language::sniff_from_mangled_name): ...here.
2060 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2061 * opencl-lang.c (opencl_language_data): Likewise.
2062 * p-lang.c (pascal_language_data): Likewise.
2063 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2064 implementation moves to...
2065 (rust_language::sniff_from_mangled_name): ...here.
2066 (rust_language_data): Delete la_sniff_from_mangled_name
2067 initializer.
2068 * symtab.c (symbol_find_demangled_name): Call
2069 sniff_from_mangled_name member function.
2070
fb8006fd
AB
20712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2072
2073 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2074 initializer.
2075 * c-lang.c (c_language_data): Likewise.
2076 (cplus_language_data): Likewise.
2077 (cplus_language::search_name_hash): New member function.
2078 (asm_language_data): Delete la_search_name_hash initializer.
2079 (minimal_language_data): Likewise.
2080 * d-lang.c (d_language_data): Likewise.
2081 * dictionary.c (default_search_name_hash): Rename to...
2082 (language_defn::search_name_hash): ...this.
2083 * f-lang.c (f_language_data): Likewise.
2084 (f_language::search_name_hash): New member function.
2085 * go-lang.c (go_language_data): Delete la_search_name_hash
2086 initializer.
2087 * language.c (unknown_language_data): Likewise.
2088 (auto_language_data): Likewise.
2089 * language.h (struct language_data): Delete la_search_name_hash
2090 field.
2091 (language_defn::search_name_hash): Declare new member function.
2092 (default_search_name_hash): Delete declaration.
2093 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2094 initializer.
2095 * objc-lang.c (objc_language_data): Likewise.
2096 * opencl-lang.c (opencl_language_data): Likewise.
2097 * p-lang.c (pascal_language_data): Likewise.
2098 * rust-lang.c (rust_language_data): Likewise.
2099 * symtab.c (search_name_hash): Update call.
2100
8e25bafe
AB
21012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2104 initializer.
2105 * c-lang.c (class compile_instance): Declare.
2106 (c_language_data): Delete la_get_compile_instance initializer.
2107 (c_language::get_compile_instance): New member function.
2108 (cplus_language_data): Delete la_get_compile_instance initializer.
2109 (cplus_language::get_compile_instance): New member function.
2110 (asm_language_data): Delete la_get_compile_instance initializer.
2111 (minimal_language_data): Likewise.
2112 * c-lang.h (c_get_compile_context): Update comment.
2113 (cplus_get_compile_context): Update comment.
2114 * compile/compile.c (compile_to_object): Update calls, don't rely
2115 on function pointer being NULL.
2116 * d-lang.c (d_language_data): Delete la_get_compile_instance
2117 initializer.
2118 * f-lang.c (f_language_data): Likewise.
2119 * go-lang.c (go_language_data): Likewise.
2120 * language.c (unknown_language_data): Likewise.
2121 (auto_language_data): Likewise.
2122 * language.h (language_data): Delete la_get_compile_instance field.
2123 (language_defn::get_compile_instance): New member function.
2124 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2125 initializer.
2126 * objc-lang.c (objc_language_data): Likewise.
2127 * opencl-lang.c (opencl_language_data): Likewise.
2128 * p-lang.c (pascal_language_data): Likewise.
2129 * rust-lang.c (rust_language_data): Likewise.
2130
4009ee92
AB
21312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * ada-lang.c (ada_add_all_symbols): Update comment.
2134 (ada_iterate_over_symbols): Delete, move implementation to...
2135 (ada_language::iterate_over_symbols): ...here, a new member
2136 function, rewrite to use range based for loop.
2137 (ada_language_data): Delete la_iterate_over_symbols initializer.
2138 * c-lang.c (c_language_data): Likewise.
2139 (cplus_language_data): Likewise.
2140 (asm_language_data): Likewise.
2141 (minimal_language_data): Likewise.
2142 * d-lang.c (d_language_data): Likewise.
2143 * f-lang.c (f_language_data): Likewise.
2144 * go-lang.c (go_language_data): Likewise.
2145 * language.c (unknown_language_data): Likewise.
2146 (auto_language_data): Likewise.
2147 * language.h (language_data): Delete la_iterate_over_symbols field.
2148 (language_defn::iterate_over_symbols): New member function.
2149 (LA_ITERATE_OVER_SYMBOLS): Update.
2150 * linespec.c (iterate_over_all_matching_symtabs): Update.
2151 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2152 initializer.
2153 * objc-lang.c (objc_language_data): Likewise.
2154 * opencl-lang.c (opencl_language_data): Likewise.
2155 * p-lang.c (pascal_language_data): Likewise.
2156 * rust-lang.c (rust_language_data): Likewise.
2157
54f4ca46
AB
21582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * ada-lang.c (ada_language_data): Delete
2161 la_lookup_transparent_type initializer.
2162 * c-lang.c (c_language_data): Likewise.
2163 (cplus_language_data): Likewise.
2164 (cplus_language::lookup_transparent_type): New member function.
2165 (asm_language_data): Delete la_lookup_transparent_type
2166 initializer.
2167 (minimal_language_data): Likewise.
2168 * d-lang.c (d_language_data): Likewise.
2169 * f-lang.c (f_language_data): Likewise.
2170 * go-lang.c (go_language_data): Likewise.
2171 * language.c (unknown_language_data): Likewise.
2172 (auto_language_data): Likewise.
2173 * language.h (struct language_data): Delete
2174 la_lookup_transparent_type field.
2175 (language_defn::lookup_transparent_type): New member function.
2176 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2177 initializer.
2178 * objc-lang.c (objc_language_data): Likewise.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182 * symtab.c (symbol_matches_domain): Update call.
2183
1fb314aa
AB
21842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * ada-lang.c (ada_language_arch_info): Delete function, move
2187 implementation to...
2188 (ada_language::language_arch_info): ...here, a new member
2189 function.
2190 (ada_language_data): Delete la_language_arch_info.
2191 * c-lang.c (c_language_data): Likewise.
2192 (c_language::language_arch_info): New member function.
2193 (cplus_language_arch_info): Delete function, move
2194 implementation to...
2195 (cplus_language::language_arch_info): ...here, a new member
2196 function.
2197 (cplus_language_data): Delete la_language_arch_info.
2198 (asm_language_data): Likewise.
2199 (asm_language::language_arch_info): New member function.
2200 (minimal_language_data): Delete la_language_arch_info.
2201 (minimal_language::language_arch_info): New member function.
2202 * d-lang.c (d_language_arch_info): Delete function, move
2203 implementation to...
2204 (d_language::language_arch_info): ...here, a new member
2205 function.
2206 (d_language_data): Delete la_language_arch_info.
2207 * f-lang.c (f_language_arch_info): Delete function, move
2208 implementation to...
2209 (f_language::language_arch_info): ...here, a new member
2210 function.
2211 (f_language_data): Delete la_language_arch_info.
2212 * go-lang.c (go_language_arch_info): Delete function, move
2213 implementation to...
2214 (go_language::language_arch_info): ...here, a new member
2215 function.
2216 (go_language_data): Delete la_language_arch_info.
2217 * language.c (unknown_language_data): Likewise.
2218 (unknown_language::language_arch_info): New member function.
2219 (auto_language_data): Delete la_language_arch_info.
2220 (auto_language::language_arch_info): New member function.
2221 (language_gdbarch_post_init): Update call to
2222 la_language_arch_info.
2223 * language.h (language_data): Delete la_language_arch_info
2224 function pointer.
2225 (language_defn::language_arch_info): New function.
2226 * m2-lang.c (m2_language_arch_info): Delete function, move
2227 implementation to...
2228 (m2_language::language_arch_info): ...here, a new member
2229 function.
2230 (m2_language_data): Delete la_language_arch_info.
2231 * objc-lang.c (objc_language_arch_info): Delete function, move
2232 implementation to...
2233 (objc_language::language_arch_info): ...here, a new member
2234 function.
2235 (objc_language_data): Delete la_language_arch_info.
2236 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2237 implementation to...
2238 (opencl_language::language_arch_info): ...here, a new member
2239 function.
2240 (opencl_language_data): Delete la_language_arch_info.
2241 * p-lang.c (pascal_language_arch_info): Delete function, move
2242 implementation to...
2243 (pascal_language::language_arch_info): ...here, a new member
2244 function.
2245 (pascal_language_data): Delete la_language_arch_info.
2246 * rust-lang.c (rust_language_arch_info): Delete function, move
2247 implementation to...
2248 (rust_language::language_arch_info): ...here, a new member
2249 function.
2250 (rust_language_data): Delete la_language_arch_info.
2251
48448202
AB
22522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2255 initializer.
2256 * c-lang.c (c_language_data): Likewise.
2257 (cplus_language_data): Likewise.
2258 (cplus_language::pass_by_reference_info): New method.
2259 (asm_language_data): Delete la_pass_by_reference initializer.
2260 (minimal_language_data): Likewise.
2261 * cp-abi.c (cp_pass_by_reference): Remove use of
2262 default_pass_by_reference.
2263 * d-lang.c (d_language_data): Likewise.
2264 * f-lang.c (f_language_data): Likewise.
2265 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2266 default_pass_by_reference.
2267 * go-lang.c (go_language_data): Likewise.
2268 * language.c (language_pass_by_reference): Update.
2269 (default_pass_by_reference): Delete.
2270 (unknown_language_data): Delete la_pass_by_reference
2271 initializer.
2272 (auto_language_data): Likewise.
2273 * language.h (struct language_data): Delete la_pass_by_reference
2274 field.
2275 (language_defn::pass_by_reference_info): New member function.
2276 (default_pass_by_reference): Delete declaration.
2277 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2278 initializer.
2279 * objc-lang.c (objc_language_data): Likewise.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_language_data): Likewise.
2282 * rust-lang.c (rust_language_data): Likewise.
2283
15e5fd35
AB
22842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_read_var_value): Delete function, move
2287 implementation to...
2288 (ada_language::read_var_value): ...here.
2289 (ada_language_data): Delete la_read_var_value initializer.
2290 * c-lang.c (c_language_data): Likewise.
2291 (cplus_language_data): Likewise.
2292 (minimal_language_data): Likewise.
2293 * d-lang.c (d_language_data): Likewise.
2294 * f-lang.c (f_language_data): Likewise.
2295 * findvar.c (default_read_var_value): Rename to...
2296 (language_defn::read_var_value): ...this.
2297 * findvar.c (read_var_value): Update header comment, and change to
2298 call member function instead of function pointer.
2299 * go-lang.c (go_language_data): Likewise.
2300 * language.c (unknown_language_data): Delete la_read_var_value
2301 initializer.
2302 (auto_language_data): Likewise.
2303 * language.h (struct language_data): Delete la_read_var_value
2304 field.
2305 (language_defn::read_var_value): New member function.
2306 (default_read_var_value): Delete declaration.
2307 * m2-lang.c (m2_language_data): Delete la_read_var_value
2308 initializer.
2309 * objc-lang.c (objc_language_data): Likewise.
2310 * opencl-lang.c (opencl_language_data): Likewise.
2311 * p-lang.c (pascal_language_data): Likewise.
2312 * rust-lang.c (rust_language_data): Likewise.
2313 * value.h (default_read_var_value): Delete declaration.
2314
5bd40f2a
AB
23152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * ada-lang.c (ada_print_array_index): Delete function, move
2318 implementation to...
2319 (ada_language::print_array_index): ...here.
2320 (ada_language_data): Delete la_print_array_index initializer.
2321 * c-lang.c (c_language_data): Likewise.
2322 (cplus_language_data): Likewise.
2323 (minimal_language_data): Likewise.
2324 * d-lang.c (d_language_data): Likewise.
2325 * f-lang.c (f_language_data): Likewise.
2326 * go-lang.c (go_language_data): Likewise.
2327 * language.c (default_print_array_index): Delete function, move
2328 implementation to...
2329 (language_defn::print_array_index): ...here.
2330 (unknown_language_data): Delete la_print_array_index initializer.
2331 (auto_language_data): Likewise.
2332 * language.h (struct language_data): Delete la_print_array_index
2333 field.
2334 (language_defn::print_array_index): New member function.
2335 (LA_PRINT_ARRAY_INDEX): Update.
2336 (default_print_array_index): Delete declaration.
2337 * m2-lang.c (m2_language_data): Delete la_print_array_index
2338 initializer.
2339 * objc-lang.c (objc_language_data): Likewise.
2340 * opencl-lang.c (opencl_language_data): Likewise.
2341 * p-lang.c (pascal_language_data): Likewise.
2342 * rust-lang.c (rust_language_data): Likewise.
2343
0874fd07
AB
23442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * gdb/ada-lang.c (ada_language_defn): Convert to...
2347 (ada_language_data): ...this.
2348 (class ada_language): New class.
2349 (ada_language_defn): New static global.
2350 * gdb/c-lang.c (c_language_defn): Convert to...
2351 (c_language_data): ...this.
2352 (class c_language): New class.
2353 (c_language_defn): New static global.
2354 (cplus_language_defn): Convert to...
2355 (cplus_language_data): ...this.
2356 (class cplus_language): New class.
2357 (cplus_language_defn): New static global.
2358 (asm_language_defn): Convert to...
2359 (asm_language_data): ...this.
2360 (class asm_language): New class.
2361 (asm_language_defn): New static global.
2362 (minimal_language_defn): Convert to...
2363 (minimal_language_data): ...this.
2364 (class minimal_language): New class.
2365 (minimal_language_defn): New static global.
2366 * gdb/d-lang.c (d_language_defn): Convert to...
2367 (d_language_data): ...this.
2368 (class d_language): New class.
2369 (d_language_defn): New static global.
2370 * gdb/f-lang.c (f_language_defn): Convert to...
2371 (f_language_data): ...this.
2372 (class f_language): New class.
2373 (f_language_defn): New static global.
2374 * gdb/go-lang.c (go_language_defn): Convert to...
2375 (go_language_data): ...this.
2376 (class go_language): New class.
2377 (go_language_defn): New static global.
2378 * gdb/language.c (unknown_language_defn): Remove declaration.
2379 (current_language): Initialize to nullptr, real initialization is
2380 moved to _initialize_language.
2381 (languages): Delete global.
2382 (language_defn::languages): Define.
2383 (set_language_command): Use language_defn::languages.
2384 (set_language): Likewise.
2385 (range_error): Likewise.
2386 (language_enum): Likewise.
2387 (language_def): Likewise.
2388 (add_set_language_command): Use language_def::languages for the
2389 language list, and language_def to lookup language pointers.
2390 (skip_language_trampoline): Use language_defn::languages.
2391 (unknown_language_defn): Convert to...
2392 (unknown_language_data): ...this.
2393 (class unknown_language): New class.
2394 (unknown_language_defn): New static global.
2395 (auto_language_defn): Convert to...
2396 (auto_language_data): ...this.
2397 (class auto_language): New class.
2398 (auto_language_defn): New static global.
2399 (language_gdbarch_post_init): Use language_defn::languages.
2400 (_initialize_language): Initialize current_language.
2401 * gdb/language.h (struct language_defn): Rename to...
2402 (struct language_data): ...this.
2403 (struct language_defn): New.
2404 (auto_language_defn): Delete.
2405 (unknown_language_defn): Delete.
2406 (minimal_language_defn): Delete.
2407 (ada_language_defn): Delete.
2408 (asm_language_defn): Delete.
2409 (c_language_defn): Delete.
2410 (cplus_language_defn): Delete.
2411 (d_language_defn): Delete.
2412 (f_language_defn): Delete.
2413 (go_language_defn): Delete.
2414 (m2_language_defn): Delete.
2415 (objc_language_defn): Delete.
2416 (opencl_language_defn): Delete.
2417 (pascal_language_defn): Delete.
2418 (rust_language_defn): Delete.
2419 * gdb/m2-lang.c (m2_language_defn): Convert to...
2420 (m2_language_data): ...this.
2421 (class m2_language): New class.
2422 (m2_language_defn): New static global.
2423 * gdb/objc-lang.c (objc_language_defn): Convert to...
2424 (objc_language_data): ...this.
2425 (class objc_language): New class.
2426 (objc_language_defn): New static global.
2427 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2428 (opencl_language_data): ...this.
2429 (class opencl_language): New class.
2430 (opencl_language_defn): New static global.
2431 * gdb/p-lang.c (pascal_language_defn): Convert to...
2432 (pascal_language_data): ...this.
2433 (class pascal_language): New class.
2434 (pascal_language_defn): New static global.
2435 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2436 language pointer, update comment format.
2437 * gdb/rust-lang.c (rust_language_defn): Convert to...
2438 (rust_language_data): ...this.
2439 (class rust_language): New class.
2440 (rust_language_defn): New static global.
2441
1313c56e
AB
24422020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2445 member variable.
2446 <m_stmt_at_address>: New member variable.
2447 (lnp_state_machine::record_line): Don't record some lines, update
2448 tracking of is_stmt at the same address.
2449 (lnp_state_machine::lnp_state_machine): Initialise new member
2450 variables.
2451
b7ed9f3d
ST
24522020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2453
2454 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2455 "-include gnu-nat-mig.h".
2456 * gnu-nat-mig.h: New file.
2457 * gnu-nat.c: Include "gnu-nat-mig.h".
2458 (exc_server, msg_reply_server, notify_server,
2459 process_reply_server): Remove declarations.
2460
14a8ad62
ST
24612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2462
2463 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2464 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2465 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2466 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2467 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2468 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2469 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2470 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2471 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2472 to gnu_nat_target class.
2473 * gnu-nat.c: Likewise.
2474 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2475 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2476 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2477 object.
2478 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2479 instead of `gnu_target'.
2480
0af5e106
ST
24812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2482
2483 * i386-gnu-tdep.c: Include "gdbcore.h"
2484 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2485 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2486 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2487 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2488 i386_gnu_sigcontext_addr): New functions
2489 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2490 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2491 tdep.
2492
078f2fc9
ST
24932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2494
2495 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2496 before fork_inferior call. Avoid calling it if target_is_pushed returns
2497 true.
2498
53dff92c
ST
24992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2500
2501 * gnu-nat.h (gnu_target): New variable declaration.
2502 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2503 gnu_target.
2504 * gnu-nat.c (gnu_target): New variable.
2505 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2506 add_thread_silent, and add_thread calls.
2507 (gnu_nat_target::create_inferior): Pass gnu_target to
2508 add_thread_silent, thread_change_ptid call.
2509 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2510 call.
2511
5a8b8627
ST
25122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2513
2514 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2515 (gnu_nat_target::find_memory_regions): Remove unused
2516 `old_address' variable.
2517
366f550a
ST
25182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2519
2520 * gnu-nat.c: Include "gdbarch.h".
2521
f14871bf
ST
25222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2523
2524 * reply_mig_hack.awk (Error return): Cast function through
2525 void *, to bypass compiler function call check.
2526
c6887cfb
ST
25272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2528
2529 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2530 $(srcdir)/reply_mig_hack.awk.
2531
6930bffe
ST
25322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2533
2534 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2535
112c22ed
JG
25362020-05-30 Jonny Grant <jg@jguk.org>
2537
2538 * configure.ac (ACX_BUGURL): change bug URL to https.
2539
f68f85b5
PA
25402020-05-30 Pedro Alves <palves@redhat.com>
2541
2542 * cp-support.c (replace_typedefs_template): New.
2543 (replace_typedefs_qualified_name): Handle
2544 DEMANGLE_COMPONENT_TEMPLATE.
2545
976ca316
SM
25462020-05-29 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2549 dwarf2/index-cache.h, dwarf2/index-write.c,
2550 dwarf2/index-write.h, dwarf2/line-header.c,
2551 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2552 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2553 variables and fields from `dwarf2_per_objfile` to just
2554 `per_objfile` throughout.
2555
989ade05
SM
25562020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2559 <push_dwarf_reg_entry_value>: Add comment.
2560
c47bae85
KB
25612020-05-28 Kevin Buettner <kevinb@redhat.com>
2562 Keith Seitz <keiths@redhat.com>
2563
2564 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2565 instead of PyEval_ReleaseLock.
2566 (class gdbpy_gil): Move to earlier in file.
2567 (finalize_python): Set gdb_python_initialized.
2568 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2569 when not initialized.
2570
44486dcf
SM
25712020-05-28 Simon Marchi <simon.marchi@efficios.com>
2572
2573 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2574 <push_dwarf_reg_entry_value>: Remove assert. Override
2575 per_objfile with caller_per_objfile.
2576
f030440d
TV
25772020-05-28 Tom de Vries <tdevries@suse.de>
2578
2579 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2580 PR gold/15646 workaround to symbol kind "type".
2581
f0fbb768
TT
25822020-05-27 Tom Tromey <tromey@adacore.com>
2583
2584 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2585
af0b2a3e
TT
25862020-05-27 Tom Tromey <tromey@adacore.com>
2587
2588 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2589 Use htab_find_with_hash.
2590 <add_abbrev>: Remove "abbrev_number" parameter.
2591 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2592 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2593 (hash_abbrev): Add comment.
2594 (abbrev_table::lookup_abbrev): Move to header file.
2595 (abbrev_table::read): Update.
2596
7d00ffec
TT
25972020-05-27 Tom Tromey <tromey@adacore.com>
2598
2599 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2600 method.
2601 <canonical_name>: New member.
2602 <raw_name>: Rename from "name".
2603 (partial_die_info): Initialize canonical_name.
2604 (scan_partial_symbols): Check raw_name.
2605 (partial_die_parent_scope, partial_die_full_name)
2606 (add_partial_symbol, add_partial_subprogram)
2607 (add_partial_enumeration, load_partial_dies): Use "name" method.
2608 (partial_die_info::name): New method.
2609 (partial_die_info::read, guess_partial_die_structure_name)
2610 (partial_die_info::fixup): Update.
2611
697bba18
TT
26122020-05-27 Tom Tromey <tromey@adacore.com>
2613
2614 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2615 <get_ref_die_offset>: Inline.
2616 <get_ref_die_offset_complaint>: New method.
2617 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2618 (attribute::get_ref_die_offset_complaint): Rename from
2619 get_ref_die_offset. Just issue complaint.
2620
c17ace43
HD
26212020-05-27 Hannes Domani <ssbssa@yahoo.de>
2622
2623 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2624
96445f0b
HD
26252020-05-27 Hannes Domani <ssbssa@yahoo.de>
2626
2627 * exec.c (exec_file_attach): Use errno value of first openp failure.
2628
ac637ec3
HD
26292020-05-27 Hannes Domani <ssbssa@yahoo.de>
2630
2631 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2632 Don't close thread handle.
2633
17ee85fc
TT
26342020-05-27 Tom Tromey <tom@tromey.com>
2635 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2638 shared_ptr.
2639 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2640 member.
2641 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2642 dwarf2_per_bfd_objfile_data_key>: New globals.
2643 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2644 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2645 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2646 shared.
2647 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2648 short-circuit when sharing.
2649 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2650 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2651
39b16f87
SM
26522020-05-27 Simon Marchi <simon.marchi@efficios.com>
2653
2654 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2655 to...
2656 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2657 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2658
fcf23d5b
SM
26592020-05-27 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2662 build_name_components, find_name_components_bounds>:
2663 Add per_objfile parameter.
2664 (struct mapped_index) <symbol_name_at>: Likewise.
2665 (struct mapped_debug_names): Remove constructor.
2666 <dwarf2_per_objfile>: Remove field.
2667 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2668 (mapped_index_base::find_name_components_bounds,
2669 mapped_index_base::build_name_components,
2670 dw2_expand_symtabs_matching_symbol): Likewise.
2671 (class mock_mapped_index) <symbol_name_at>: Likewise.
2672 (check_match): Likewise.
2673 (check_find_bounds_finds): Likewise.
2674 (test_mapped_index_find_name_component_bounds): Update.
2675 (CHECK_MATCH): Update.
2676 (dw2_expand_symtabs_matching): Update.
2677 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2678 per_objfile parameter.
2679 <find_vec_in_debug_names>: Likewise.
2680 <m_per_objfile>: New field.
2681 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2682 parameter.
2683 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2684 (dw2_debug_names_iterator::next): Update.
2685 (dw2_debug_names_lookup_symbol): Update.
2686 (dw2_debug_names_expand_symtabs_for_function): Update.
2687 (dw2_debug_names_map_matching_symbols): Update.
2688 (dw2_debug_names_expand_symtabs_matching): Update.
2689 (dwarf2_read_debug_names): Update.
2690
7188ed02
SM
26912020-05-27 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2694 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2695 move to dwarf2_per_objfile.
2696 <read_in_chain>: Remove.
2697 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2698 remove_all_cus, age_comp_units>: New methods.
2699 <m_dwarf2_cus>: New member.
2700 (struct dwarf2_per_cu_data) <cu>: Remove.
2701 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
2702 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
2703 moved to methods of dwarf2_per_objfile.
2704 (dwarf2_clear_marks): Remove.
2705 (dwarf2_queue_item::~dwarf2_queue_item): Update.
2706 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
2707 (dwarf2_per_bfd::free_cached_comp_units): Remove.
2708 (dwarf2_per_objfile::remove_all_cus): New.
2709 (class free_cached_comp_units) <~free_cached_comp_units>:
2710 Update.
2711 (load_cu): Update.
2712 (dw2_do_instantiate_symtab): Adjust.
2713 (fill_in_sig_entry_from_dwo_entry): Adjust.
2714 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2715 (cutu_reader::cutu_reader): Likewise.
2716 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
2717 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
2718 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
2719 and dwarf2_per_objfile::age_comp_units.
2720 (load_partial_comp_unit): Update.
2721 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
2722 (process_queue): Likewise.
2723 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
2724 backlink.
2725 (dwarf2_read_addr_index): Likewise.
2726 (follow_die_offset): Likewise.
2727 (dwarf2_fetch_die_loc_sect_off): Likewise.
2728 (dwarf2_fetch_constant_bytes): Likewise.
2729 (dwarf2_fetch_die_type_sect_off): Likewise.
2730 (follow_die_sig_1): Likewise.
2731 (load_full_type_unit): Likewise.
2732 (read_signatured_type): Likewise.
2733 (dwarf2_cu::dwarf2_cu): Don't set cu field.
2734 (dwarf2_cu::~dwarf2_cu): Remove.
2735 (dwarf2_per_objfile::get_cu): New.
2736 (dwarf2_per_objfile::set_cu): New.
2737 (age_cached_comp_units): Rename to...
2738 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
2739 to std::unordered_map.
2740 (free_one_cached_comp_unit): Rename to...
2741 (dwarf2_per_objfile::remove_cu): ... this. Adjust
2742 to std::unordered_map.
2743 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
2744 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
2745 a dwarf2_per_objfile in data.
2746 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
2747 (dwarf2_clear_marks): Remove.
2748
2e671100
SM
27492020-05-27 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
2752 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
2753 (init_tu_and_read_dwo_dies): Likewise.
2754 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
2755 (cutu_reader::cutu_reader): Likewise.
2756 (load_partial_comp_unit): Likewise.
2757 (process_psymtab_comp_unit): Update.
2758 (build_type_psymtabs_1): Update.
2759 (process_skeletonless_type_unit): Update.
2760 (load_full_comp_unit): Update.
2761 (find_partial_die): Update.
2762 (dwarf2_read_addr_index): Update.
2763 (read_signatured_type): Update.
2764
2e6a9f79
SM
27652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
2768 m_header_read_in>: New fields.
2769 <get_header>: New method.
2770 * dwarf2/read.c (per_cu_header_read_in): Remove.
2771 (dwarf2_per_cu_data::get_header): New.
2772 (dwarf2_per_cu_data::addr_size): Update.
2773 (dwarf2_per_cu_data::offset_size): Update.
2774 (dwarf2_per_cu_data::ref_addr_size): Update.
2775
1b555f17
SM
27762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * dwarf2/read.c (load_cu): Return dwarf2_cu.
2779 (dw2_do_instantiate_symtab): Update.
2780 (queue_and_load_all_dwo_tus): Change parameter from
2781 dwarf2_per_cu_data to dwarf2_cu.
2782 (dwarf2_fetch_die_loc_sect_off): Update.
2783 (dwarf2_fetch_constant_bytes): Update.
2784 (dwarf2_fetch_die_type_sect_off): Update.
2785
8fc0b21d
SM
27862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * dwarf2/read.c (process_full_comp_unit,
2789 process_full_type_unit): Remove per_cu, per_objfile paramters.
2790 Add dwarf2_cu parameter.
2791 (process_queue): Update.
2792
168c9250
SM
27932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2794
2795 * dwarf2/read.c (create_cu_from_index_list): Replace
2796 dwarf2_per_objfile parameter with dwarf2_per_bfd.
2797 (create_cus_from_index_list): Likewise.
2798 (create_cus_from_index): Likewise.
2799 (create_signatured_type_table_from_index): Likewise.
2800 (create_cus_from_debug_names_list): Likewise.
2801 (create_cus_from_debug_names): Likewise.
2802 (dwarf2_read_gdb_index): Update.
2803 (dwarf2_read_debug_names): Update.
2804
e286671b
TT
28052020-05-27 Tom Tromey <tom@tromey.com>
2806 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * dwarf2/read.h (struct dwarf2_per_objfile)
2809 <get_type_for_signatured_type, set_type_for_signatured_type>:
2810 New methods.
2811 <m_type_map>: New member.
2812 (struct signatured_type) <type>: Remove.
2813 * dwarf2/read.c
2814 (dwarf2_per_objfile::get_type_for_signatured_type,
2815 dwarf2_per_objfile::set_type_for_signatured_type): New.
2816 (get_signatured_type): Use new methods.
2817
8adb8487
TT
28182020-05-27 Tom Tromey <tom@tromey.com>
2819 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * dwarf2/read.h (struct type_unit_group_unshareable): New.
2822 (struct dwarf2_per_objfile) <type_units>: New member.
2823 <get_type_unit_group_unshareable>: New method.
2824 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
2825 num_symtabs, symtabs>: Remove; move to
2826 type_unit_group_unshareable.
2827 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
2828 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
2829 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
2830
127bbf4b
SM
28312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * dwarf2/read.h (struct dwarf2_per_cu_data):
2834 <dwarf2_per_objfile>: Remove.
2835 * dwarf2/read.c (create_cu_from_index_list): Don't assign
2836 dwarf2_per_objfile.
2837 (create_signatured_type_table_from_index): Likewise.
2838 (create_signatured_type_table_from_debug_names): Likewise.
2839 (create_debug_type_hash_table): Likewise.
2840 (fill_in_sig_entry_from_dwo_entry): Likewise.
2841 (create_type_unit_group): Likewise.
2842 (read_comp_units_from_section): Likewise.
2843 (create_cus_hash_table): Likewise.
2844
f6e649dd
SM
28452020-05-27 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
2848 dwarf2_per_cu_data::dwarf2_per_objfile.
2849 (compute_compunit_symtab_includes): Likewise.
2850 (dwarf2_cu::start_symtab): Likewise.
2851
aa66c379
SM
28522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
2855 parameter.
2856 * dwarf2/read.c (get_die_type_at_offset): Likewise.
2857 (read_namespace_alias): Update.
2858 (lookup_die_type): Update.
2859 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
2860 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
2861 Update.
2862 (disassemble_dwarf_expression): Update.
2863
120ce1b5
SM
28642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * dwarf2/read.h (struct dwarf2_queue_item): Add
2867 dwarf2_per_objfile parameter, assign new parameter.
2868 <per_objfile>: New field.
2869 * dwarf2/read.c (free_one_cached_comp_unit): Add
2870 dwarf2_per_objfile parameter.
2871 (queue_comp_unit): Likewise.
2872 (dw2_do_instantiate_symtab): Update.
2873 (process_psymtab_comp_unit): Update.
2874 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
2875 (process_imported_unit_die): Update.
2876 (queue_and_load_dwo_tu): Update.
2877 (follow_die_offset): Update.
2878 (follow_die_sig_1): Update.
2879
9f47c707
SM
28802020-05-27 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
2883 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
2884 (read_call_site_scope): Assign per_objfile.
2885 (dwarf2_per_cu_data::objfile): Remove.
2886 * gdbtypes.h (struct call_site) <per_objfile>: New member.
2887 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
2888 dwarf2_per_objfile parameter.
2889 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
2890 dwarf2_per_objfile parameter.
2891 (dwarf_expr_reg_to_entry_parameter): Add output
2892 dwarf2_per_objfile parameter.
2893 (locexpr_get_frame_base): Update.
2894 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
2895 <push_dwarf_reg_entry_value>: Update.
2896 <call_site_to_target_addr>: Update.
2897 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
2898 parameter.
2899 (value_of_dwarf_reg_entry): Update.
2900 (rw_pieced_value): Update.
2901 (indirect_synthetic_pointer): Update.
2902 (dwarf2_evaluate_property): Update.
2903 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
2904 parameter.
2905 (locexpr_read_variable): Update.
2906 (locexpr_get_symbol_read_needs): Update.
2907 (loclist_read_variable): Update.
2908
14095eb3
SM
29092020-05-27 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2913 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2914 parameter.
2915 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2916 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2917 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
2918 parameter.
2919 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
2920 sect_variable_value): Add dwarf2_per_objfile parameter.
2921 (class dwarf_evaluate_loc_desc) <dwarf_call,
2922 dwarf_variable_value>: Update.
2923 (fetch_const_value_from_synthetic_pointer): Add
2924 dwarf2_per_objfile parameter.
2925 (fetch_const_value_from_synthetic_pointer): Update.
2926 (coerced_pieced_ref): Update.
2927 (class symbol_needs_eval_context) <dwarf_call,
2928 dwarf_variable_value>: Update.
2929 (dwarf2_compile_expr_to_ax): Update.
2930
3c3cd3d4
SM
29312020-05-27 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
2934 parameter.
2935 (dwarf2_evaluate_loc_desc_full): Update.
2936
82ca3f51
SM
29372020-05-27 Simon Marchi <simon.marchi@efficios.com>
2938
2939 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
2940 parameter.
2941 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
2942 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
2943 dwarf2_per_objfile parameter.
2944 (decode_debug_loc_dwo_addresses): Likewise.
2945 (dwarf2_find_location_expression): Update.
2946 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
2947 (locexpr_describe_location_piece): Add dwarf2_per_objfile
2948 parameter.
2949 (disassemble_dwarf_expression): Add dwarf2_per_objfile
2950 parameter.
2951 (locexpr_describe_location_1): Likewise.
2952 (locexpr_describe_location): Update.
2953
4b167ea1
SM
29542020-05-27 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
2957 Remove.
2958 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
2959 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
2960 (dwarf2_compile_property_to_c): Update.
2961 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
2962 use text offset from objfile.
2963 (locexpr_tracepoint_var_ref): Update.
2964 (locexpr_generate_c_location): Update.
2965 (loclist_describe_location): Update.
2966 (loclist_tracepoint_var_ref): Update.
2967 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
2968 dwarf2_per_objfile parameter.
2969 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
2970 use text offset from objfile.
2971 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
2972
89b07335
SM
29732020-05-27 Simon Marchi <simon.marchi@efficios.com>
2974
2975 * dwarf2/expr.h (struct dwarf_expr_context)
2976 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
2977 <offset>: Remove.
2978 <per_objfile>: New member.
2979 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
2980 dwarf2_per_objfile parameter. Don't set offset, set
2981 per_objfile.
2982 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
2983 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
2984 a dwarf2_per_objfile object instead of an offset.
2985 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2986 constructor.
2987 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2988 to dwarf2_expr_executor constructor. Don't set offset.
2989 (dwarf2_fetch_cfa_info): Update.
2990 (struct dwarf2_frame_cache) <text_offset>: Remove.
2991 <per_objfile>: New field.
2992 (dwarf2_frame_cache): Update.
2993 (dwarf2_frame_prev_register): Update.
2994 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2995 <dwarf_evaluate_loc_desc>: Add constructor.
2996 (dwarf2_evaluate_loc_desc_full): Update.
2997 (dwarf2_locexpr_baton_eval): Update.
2998 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2999 Add constructor.
3000 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3001
293e7e51
SM
30022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3005 addr_sized_int_type>: Move to dwarf2_cu.
3006 <int_type>: Move to dwarf2_per_objfile.
3007 (struct dwarf2_per_objfile) <int_type>: Move here.
3008 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3009 addr_sized_int_type>: Move here.
3010 (read_func_scope): Update.
3011 (read_array_type): Update.
3012 (read_tag_string_type): Update.
3013 (attr_to_dynamic_prop): Update.
3014 (dwarf2_per_cu_data::int_type): Rename to...
3015 (dwarf2_per_objfile::int_type): ... this.
3016 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3017 (dwarf2_cu::addr_sized_int_type): ... this.
3018 (read_subrange_type): Update.
3019 (dwarf2_per_cu_data::addr_type): Rename to...
3020 (dwarf2_cu::addr_type): ... this.
3021 (set_die_type): Update.
3022
64874a40
SM
30232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3026 data through per_cu->cu.
3027
4ab09049
SM
30282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3031 dwarf2_per_cu_data parameter fo dwarf2_cu.
3032 (lookup_dwo_type_unit): Likewise.
3033 (read_cutu_die_from_dwo): Likewise.
3034 (lookup_dwo_unit): Likewise.
3035 (open_and_init_dwo_file): Likewise.
3036 (lookup_dwo_cutu): Likewise.
3037 (lookup_dwo_comp_unit): Likewise.
3038 (lookup_dwo_type_unit): Likewise.
3039 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3040 (cutu_reader::cutu_reader): Update.
3041
47b14e86
SM
30422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3043
3044 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3045 parameter.
3046 (process_full_type_unit): Likewise.
3047 (process_queue): Update.
3048
43182c09
SM
30492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * dwarf2/read.c (recursively_compute_inclusions): Add
3052 dwarf2_per_objfile parameter.
3053 (compute_compunit_symtab_includes): Likewise.
3054 (process_cu_includes): Update.
3055
7aa104c4
SM
30562020-05-27 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3059 parameter.
3060 (create_type_unit_group): Update.
3061 (process_psymtab_comp_unit_reader): Update.
3062 (build_type_psymtabs_reader): Update.
3063
e3beb21d
SM
30642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3067 object through m_this_cu->cu.
3068
d460f660
SM
30692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3070
3071 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3072 the info parameter.
3073 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3074
ab432490
SM
30752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3078 per_objfile parameter.
3079 (load_full_type_unit): Add per_objfile parameter.
3080 (read_signatured_type): Likewise.
3081 (load_full_comp_unit): Likewise.
3082 (load_cu): Likewise.
3083 (dw2_do_instantiate_symtab): Likewise.
3084 (dw2_get_file_names): Likewise.
3085 (dw2_map_symtabs_matching_filename): Update.
3086 (dw_expand_symtabs_matching_file_matcher): Update.
3087 (dw2_map_symbol_filenames): Update.
3088 (process_psymtab_comp_unit): Add per_objfile parameter.
3089 (build_type_psymtabs_1): Update.
3090 (process_skeletonless_type_unit): Update.
3091 (dwarf2_build_psymtabs_hard): Update.
3092 (load_partial_comp_unit): Add per_objfile parameter.
3093 (scan_partial_symbols): Update.
3094 (load_full_comp_unit): Add per_objfile parameter.
3095 (process_imported_unit_die): Update.
3096 (create_cus_hash_table): Update.
3097 (find_partial_die): Update.
3098 (dwarf2_read_addr_index): Update.
3099 (follow_die_offset): Update.
3100 (dwarf2_fetch_die_loc_sect_off): Update.
3101 (dwarf2_fetch_constant_bytes): Update.
3102 (dwarf2_fetch_die_type_sect_off): Update.
3103 (follow_die_sig_1): Update.
3104 (load_full_type_unit): Add per_objfile parameter.
3105 (read_signatured_type): Likewise.
3106
313bad1b
SM
31072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3110 of objfile_name.
3111
c3699833
SM
31122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3115 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3116 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3117 field.
3118 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3119 (create_cus_from_index): Update.
3120 (dwarf2_read_gdb_index): Update.
3121 (create_cus_from_debug_names): Update.
3122 (dwarf2_read_debug_names): Update.
3123 (get_abbrev_section_for_cu): Update.
3124 (create_all_comp_units): Update.
3125 (read_attribute_value): Update.
3126 (get_debug_line_section): Update.
3127 * dwarf2/index-cache.c (index_cache::store): Update.
3128 * dwarf2/index-write.c (save_gdb_index_command): Update.
3129 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3130
1859c670
SM
31312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3132
3133 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3134 member.
3135 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3136 dwarf2_per_cu_data::per_bfd.
3137 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3138 (create_type_unit_group): Likewise.
3139 (queue_comp_unit): Remove reference to
3140 per_cu->dwarf2_per_objfile.
3141 (maybe_queue_comp_unit): Likewise.
3142 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3143 (create_cus_hash_table): Assign new field.
3144
5e22e966
SM
31452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * dwarf2/read.c: Replace
3148 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3149 dwarf2_cu->per_objfile throughout.
3150
97a1449a
SM
31512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3152
3153 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3154 parameter, don't use per_cu->dwarf2_per_objfile.
3155 (dw2_instantiate_symtab): Likewise.
3156 (dw2_find_last_source_symtab): Update.
3157 (dw2_map_expand_apply): Update.
3158 (dw2_lookup_symbol): Update.
3159 (dw2_expand_symtabs_for_function): Update.
3160 (dw2_expand_all_symtabs): Update.
3161 (dw2_expand_symtabs_with_fullname): Update.
3162 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3163 don't use per_cu->dwarf2_per_objfile.
3164 (dw2_expand_marked_cus): Update.
3165 (dw2_find_pc_sect_compunit_symtab): Update.
3166 (dw2_debug_names_lookup_symbol): Update.
3167 (dw2_debug_names_expand_symtabs_for_function): Update.
3168 (dw2_debug_names_map_matching_symbols): Update.
3169 (dwarf2_psymtab::expand_psymtab): Update.
3170
9e021579
SM
31712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3174 <per_objfile>: New member.
3175 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3176 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3177 call to dwarf2_cu.
3178 (cutu_reader::cutu_reader): Update.
3179 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3180
ae090bdb
SM
31812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3182
3183 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3184 struct dwarf2_per_objfile.
3185 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3186 dwarf2_per_bfd.
3187 * dwarf2/read.c (set_die_type): Update.
3188 (get_die_type_at_offset): Update.
3189
af758d11
SM
31902020-05-27 Tom Tromey <tom@tromey.com>
3191 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3194 method.
3195 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3196 get_symtab, set_symtab>: New methods.
3197 <m_symtabs>: New field.
3198 (struct dwarf2_psymtab): Derive from partial_symtab.
3199 <readin_p, get_compunit_symtab>: Declare methods.
3200 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3201 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3202 New methods.
3203 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3204 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3205 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3206 (dw2_symtab_iter_next, dw2_print_stats)
3207 (dw2_expand_symtabs_with_fullname)
3208 (dw2_expand_symtabs_matching_one)
3209 (dw_expand_symtabs_matching_file_matcher)
3210 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3211 (dw2_debug_names_iterator::next)
3212 (dw2_debug_names_map_matching_symbols)
3213 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3214 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3215 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3216 New methods.
3217 (get_compunit_symtab, process_full_comp_unit)
3218 (process_full_type_unit): Update.
3219 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3220
5989a64e
SM
32212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3224 then introduce a new dwarf2_per_objfile type.
3225 <read_line_string>: Move to the new dwarf2_per_objfile type.
3226 <objfile>: Likewise.
3227 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3228 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3229 dwarf2_per_objfile->per_bfd.
3230 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3231 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3232 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3233 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3234 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3235 (dwarf2_per_objfile::locate_sections): Rename to...
3236 (dwarf2_per_bfd::locate_sections): ... this.
3237 (dwarf2_per_objfile::get_cutu): Rename to...
3238 (dwarf2_per_bfd::get_cutu): ... this.
3239 (dwarf2_per_objfile::get_cu): Rename to...
3240 (dwarf2_per_bfd::get_cu): ... this.
3241 (dwarf2_per_objfile::get_tu): Rename to...
3242 (dwarf2_per_bfd::get_tu): ... this.
3243 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3244 (dwarf2_per_bfd::allocate_per_cu): ... this.
3245 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3246 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3247 (get_gdb_index_contents_ftype): Change parameter from
3248 dwarf2_per_objfile to dwarf2_per_bfd.
3249 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3250 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3251
a50264ba
TT
32522020-05-27 Tom Tromey <tom@tromey.com>
3253 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3256 (allocate_piece_closure): Set "per_objfile" member.
3257 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3258 (locexpr_describe_location, loclist_describe_location): Use new
3259 member.
3260 * dwarf2/read.c (read_call_site_scope)
3261 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3262 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3263 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3264 handle_data_member_location): Set per_objfile member.
3265 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3266 member.
3267 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3268
d3473f0c
TT
32692020-05-27 Tom Tromey <tom@tromey.com>
3270
3271 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3272 allocate_signatured_type>: Declare new methods.
3273 <m_num_psymtabs>: New member.
3274 (struct dwarf2_per_cu_data) <index>: New member.
3275 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3276 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3277 (create_cu_from_index_list): Use allocate_per_cu.
3278 (create_signatured_type_table_from_index)
3279 (create_signatured_type_table_from_debug_names)
3280 (create_debug_type_hash_table, add_type_unit)
3281 (read_comp_units_from_section): Use allocate_signatured_type.
3282
5717c425
TT
32832020-05-27 Tom Tromey <tom@tromey.com>
3284
3285 * psymtab.c (partial_map_expand_apply)
3286 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3287 (psym_lookup_global_symbol_language)
3288 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3289 (psym_print_stats, psym_expand_symtabs_for_function)
3290 (psym_map_symbol_filenames, psym_map_matching_symbols)
3291 (psym_expand_symtabs_matching)
3292 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3293 (maintenance_check_psymtabs): Update.
3294 * psympriv.h (struct partial_symtab) <readin_p,
3295 get_compunit_symtab>: Add objfile parameter.
3296 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3297 Likewise.
3298 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3299 get_compunit_symtab>: Likewise.
3300 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3301
45940949
TT
33022020-05-27 Tom Tromey <tom@tromey.com>
3303
3304 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3305 member.
3306 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3307 (create_cu_from_index_list)
3308 (create_signatured_type_table_from_index)
3309 (create_signatured_type_table_from_debug_names)
3310 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3311 (dwarf2_create_include_psymtab)
3312 (create_debug_type_hash_table, add_type_unit)
3313 (create_type_unit_group, read_comp_units_from_section)
3314 (dwarf2_compute_name, create_cus_hash_table)
3315 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3316 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3317 obstack.
3318 (dw2_get_real_path): Likewise. Change argument to
3319 dwarf2_per_objfile.
3320
f8c6d152
LM
33212020-05-27 Luis Machado <luis.machado@linaro.org>
3322
3323 PR tdep/26000
3324 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3325 for ldrd (immediate).
3326
e98d2e6d
PW
33272020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3328
3329 * command.h: Add comment giving the name of class_tui.
3330 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3331 create the fake command for the help for class_tui.
3332
53a47a3e
TT
33332020-05-26 Tom Tromey <tromey@adacore.com>
3334
3335 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3336 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3337 (val_atr): New function.
3338 (value_val_atr): Use it.
3339 * ada-valprint.c (print_optional_low_bound): Change low bound
3340 handling for enums.
3341 (val_print_packed_array_elements): Don't call discrete_position.
3342 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3343 discrete_position for enum types.
3344 * language.c (default_print_array_index): Change type.
3345 * language.h (struct language_defn) <la_print_array_index>: Add
3346 index_type parameter, change type of index_value.
3347 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3348 (default_print_array_index): Update.
3349 * valprint.c (maybe_print_array_index): Don't call
3350 value_from_longest. Update.
3351 (value_print_array_elements): Don't call discrete_position.
3352
0bc2354b
TT
33532020-05-26 Tom Tromey <tromey@adacore.com>
3354
3355 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3356 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3357
1218a4bf
CDA
33582020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3359
3360 PR gdb/13519
3361 * avr-tdep.c (avr_integer_to_address): Return data or code
3362 address accordingly to the second 'type' argument of the
3363 function.
3364
92651b1d
MW
33652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3366
3367 * infcmd.c, inferior.h: (construct_inferior_arguments):
3368 Moved function from here to gdbsupport/common-inferior.{h,cc}
3369
0a4f5f8c
TT
33702020-05-23 Tom Tromey <tom@tromey.com>
3371
3372 Revert commit eca1f90c:
3373 * NEWS: Remove entry for completion styling.
3374 * completer.c (_rl_completion_prefix_display_length): Move
3375 declaration later.
3376 (gdb_fnprint): Revert.
3377 (gdb_display_match_list_1): Likewise.
3378 * cli/cli-style.c (completion_prefix_style)
3379 (completion_difference_style, completion_suffix_style): Remove.
3380 (_initialize_cli_style): Revert.
3381 * cli/cli-style.h (completion_prefix_style)
3382 (completion_difference_style, completion_suffix_style): Don't
3383 declare.
3384
e08bd6c5
PA
33852020-05-24 Pedro Alves <palves@redhat.com>
3386
3387 * symtab.c (completion_list_add_name): Return boolean indication
3388 of whether the symbol matched.
3389 (completion_list_add_symbol): Don't try to remove C++ aliases if
3390 the symbol didn't match in the first place.
3391 * symtab.h (completion_list_add_name): Return bool.
3392
ceacbf6e
SM
33932020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3396 type::field.
3397
26f16254
JB
33982020-05-23 Joel Brobecker <brobecker@adacore.com>
3399
3400 GDB 9.2 released.
3401
eca1f90c
TT
34022020-05-23 Tom Tromey <tom@tromey.com>
3403
3404 * NEWS: Add entry for completion styling.
3405 * completer.c (_rl_completion_prefix_display_length): Move
3406 declaration earlier.
3407 (gdb_fnprint): Use completion_style.
3408 (gdb_display_match_list_1): Likewise.
3409 * cli/cli-style.c (completion_prefix_style)
3410 (completion_difference_style, completion_suffix_style): New
3411 globals.
3412 (_initialize_cli_style): Register new globals.
3413 * cli/cli-style.h (completion_prefix_style)
3414 (completion_difference_style, completion_suffix_style): Declare.
3415
51e2cfa2
PA
34162020-05-23 Pedro Alves <palves@redhat.com>
3417
3418 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3419 (parse_escape): Use ISDIGIT instead of isdigit.
3420 (puts_debug): Use gdb_isprint instead of isprint.
3421 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3422 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3423 ISSPACE instead of isspace.
3424 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3425 instead of isspace.
3426 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3427 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3428 instead of isxdigit and ISDIGIT instead of isdigit.
3429
80fc5e77
SM
34302020-05-22 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (struct type) <field>: New method.
3433 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3434 or type::field.
3435
3cabb6b0
SM
34362020-05-22 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3439 (TYPE_FIELDS): Use type::fields. Change all call sites that
3440 modify the propery to use type::set_fields instead.
3441
1f704f76
SM
34422020-05-22 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3445 type::num_fields instead.
3446
5e33d5f4
SM
34472020-05-22 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3450 methods.
3451 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3452 that modify the number of fields to use type::set_num_fields
3453 instead.
3454
9392ebb3
TT
34552020-05-22 Tom Tromey <tromey@adacore.com>
3456
3457 * compile/compile-object-load.h (munmap_list_free): Don't
3458 declare.
3459
7c13f4e8
AB
34602020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * annotate.c (annotate_source_line): Update return type, add call
3463 to update current symtab and line.
3464 * annotate.h (annotate_source_line): Update return type, and
3465 extend header comment.
3466 * source.c (info_line_command): Check annotation_level before
3467 calling annotate_source_line.
3468 * stack.c (print_frame_info): If calling annotate_source_line
3469 returns true, then don't print any other source line information.
3470
aa370940
SM
34712020-05-21 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3474
84d53fa9
SM
34752020-05-21 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * coffread.c (patch_type): Remove NULL check before xfree.
3478 * corefile.c (set_gnutarget): Likewise.
3479 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3480 * exec.c (build_section_table): Likewise.
3481 * remote.c (remote_target::pass_signals): Likewise.
3482 * utils.c (n_spaces): Likewise.
3483 * cli/cli-script.c (document_command): Likewise.
3484 * i386-windows-tdep.c (core_process_module_section): Likewise.
3485 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3486
9d428aae
SM
34872020-05-20 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * symfile.c (reread_symbols): Clear objfile's section_offsets
3490 vector and section indices, re-compute them by calling
3491 sym_offsets.
3492
250106a7
TT
34932020-05-20 Tom Tromey <tromey@adacore.com>
3494
3495 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3496 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3497
9a0bacfb
TV
34982020-05-20 Tom de Vries <tdevries@suse.de>
3499
3500 PR symtab/25833
3501 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3502
7b958a48
AM
35032020-05-20 Alan Modra <amodra@gmail.com>
3504
3505 PR 25993
3506 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3507 bfd_set_filename.
3508 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3509 passed to bfd_set_filename.
3510 * symfile-mem.c (add_vsyscall_page): Likewise for string
3511 passed to symbol_file_add_from_memory.
3512 (symbol_file_add_from_memory): Make name param a const char* and
3513 don't strdup.
3514
c7e97679
AM
35152020-05-20 Alan Modra <amodra@gmail.com>
3516
3517 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3518 rather than accessing bfd->filename directly.
3519 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3520 and use bfd_section_name.
3521 * dwarf2/frame.c (decode_frame_entry): Likewise.
3522 * exec.c (exec_set_section_address): Likewise.
3523 * solib-aix.c (solib_aix_bfd_open): Likewise.
3524 * stap-probe.c (get_stap_base_address): Likewise.
3525 * symfile.c (reread_symbols): Likewise.
3526
563c591b
TT
35272020-05-19 Tom Tromey <tromey@adacore.com>
3528
3529 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3530
f408d82c
SM
35312020-05-19 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3534
98c59b52
PA
35352020-05-19 Pedro Alves <palves@redhat.com>
3536
3537 * NEWS (set exec-file-mismatch): Adjust entry.
3538 * exec.c: Include "build-id.h".
3539 (validate_exec_file): Try to match build IDs instead of filenames.
3540 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3541 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3542 and pass down 'warn_if_slow'.
3543 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3544 gdb_bfd_open_closure to pass it down.
3545 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3546
4111f652
PA
35472020-05-19 Pedro Alves <palves@redhat.com>
3548
3549 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3550 * target.c (target_fileio_open_1): Rename to target_fileio_open
3551 and make extern. Use bool.
3552 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3553 (target_fileio_read_alloc_1): Adjust.
3554 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3555 (target_fileio_open_warn_if_slow): Delete declaration.
3556
ad80db5b
PA
35572020-05-19 Pedro Alves <palves@redhat.com>
3558
3559 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3560 Adjust all callers.
3561
1d6ce4d3
YS
35622020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3563
3564 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3565 whether disp is negative.
3566
9005fbbb
SM
35672020-05-19 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * symfile.h (struct symfile_segment_data)
3570 <~symfile_segment_data>: Remove.
3571 <segment_info>: Change to std::vector.
3572 * symfile.c (default_symfile_segments): Update.
3573 * elfread.c (elf_symfile_segments): Update.
3574
68b888ff
SM
35752020-05-19 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3578 <segments>: New.
3579 <segment_bases, segment_sizes>: Remove.
3580 * symfile.c (default_symfile_segments): Update.
3581 * elfread.c (elf_symfile_segments): Update.
3582 * remote.c (remote_target::get_offsets): Update.
3583 * solib-target.c (solib_target_relocate_section_addresses):
3584 Update.
3585
62982abd
SM
35862020-05-19 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * symfile.h (struct symfile_segment_data): Initialize fields.
3589 <~symfile_segment_data>: Add.
3590 (symfile_segment_data_up): New.
3591 (struct sym_fns) <sym_segments>: Return a
3592 symfile_segment_data_up.
3593 (default_symfile_segments): Return a symfile_segment_data_up.
3594 (free_symfile_segment_data): Remove.
3595 (get_symfile_segment_data): Return a symfile_segment_data_up.
3596 * symfile.c (default_symfile_segments): Likewise.
3597 (get_symfile_segment_data): Likewise.
3598 (free_symfile_segment_data): Remove.
3599 (symfile_find_segment_sections): Update.
3600 * elfread.c (elf_symfile_segments): Return a
3601 symfile_segment_data_up.
3602 * remote.c (remote_target::get_offsets): Update.
3603 * solib-target.c (solib_target_relocate_section_addresses):
3604 Update.
3605 * symfile-debug.c (debug_sym_segments): Return a
3606 symfile_segment_data_up.
3607
7f204339
RO
36082020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3609
e52a0f1b
RO
3610 PR build/25981
3611 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3612 Hardcode register numbers.
3613
7f204339
RO
3614 PR build/25981
3615 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3616 procfs_find_LDT_entry): Remove.
3617 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3618 procfs_find_LDT_entry): Remove.
3619 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3620 Remove.
3621
7f32a4d5
PA
36222020-05-17 Pedro Alves <palves@redhat.com>
3623 Andrew Burgess <andrew.burgess@embecosm.com>
3624 Keno Fischer <keno@juliacomputing.com>
3625
3626 PR gdb/25741
3627 * breakpoint.c (build_target_condition_list): Update comments.
3628 (build_target_command_list): Update comments and skip matching
3629 locations.
3630 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3631 a separate function. Simplify "set breakpoint auto-hw off"
3632 handling.
3633 (insert_breakpoints): Update comment.
3634 (tracepoint_locations_match): New parameter. For breakpoints,
3635 compare location types too, if the caller wants to.
3636 (handle_automatic_hardware_breakpoints): New functions.
3637 (bp_location_is_less_than): Also sort by location type and
3638 hardware breakpoint length.
3639 (update_global_location_list): Handle "set breakpoint auto-hw on"
3640 here.
3641 (update_breakpoint_locations): Ask breakpoint_locations_match to
3642 ignore location types.
3643
7d93a1e0
SM
36442020-05-16 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3647 type::name instead.
3648
d0e39ea2
SM
36492020-05-16 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * gdbtypes.h (struct type) <name, set_name>: New methods.
3652 (TYPE_CODE): Use type::name. Change all call sites used to set
3653 the name to use type::set_name instead.
3654
2dab0c7b
TT
36552020-05-16 Tom Tromey <tom@tromey.com>
3656
3657 * top.c (quit_force): Update.
3658 * infrun.c (handle_no_resumed): Update.
3659 * top.h (all_uis): New function.
3660 (ALL_UIS): Remove.
3661
59f7bd8d
SM
36622020-05-16 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3665
9bf058f0
PA
36662020-05-16 Pedro Alves <palves@redhat.com>
3667
3668 * ia64-linux-nat.c
3669 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3670 Declare method.
3671 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3672
8f86ae1a
SM
36732020-05-15 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3676 (sparc64_adi_info): Likewise.
3677
d6bc0792
TT
36782020-05-15 Tom Tromey <tom@tromey.com>
3679
3680 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3681 block_objfile.
3682 (lookup_objfile_from_block): Remove.
3683 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3684 (lookup_global_symbol): Use block_objfile.
3685 * symtab.h (lookup_objfile_from_block): Don't declare.
3686 * printcmd.c (clear_dangling_display_expressions): Use
3687 block_objfile.
3688 * parse.c (operator_check_standard): Use block_objfile.
3689
8c14c3a3
TT
36902020-05-15 Tom Tromey <tom@tromey.com>
3691
3692 * language.c (language_alloc_type_symbol): Set
3693 SYMBOL_SECTION.
3694 * symtab.c (initialize_objfile_symbol): Remove.
3695 (allocate_symbol): Remove.
3696 (allocate_template_symbol): Remove.
3697 * dwarf2/read.c (fixup_go_packaging): Use "new".
3698 (new_symbol): Use "new".
3699 (read_variable): Don't call initialize_objfile_symbol. Use
3700 "new".
3701 (read_func_scope): Use "new".
3702 * xcoffread.c (process_xcoff_symbol): Don't call
3703 initialize_objfile_symbol.
3704 (SYMBOL_DUP): Remove.
3705 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
3706 "new".
3707 * symtab.h (allocate_symbol, initialize_objfile_symbol)
3708 (allocate_template_symbol): Don't declare.
3709 (struct symbol): Add copy constructor. Change defaults.
3710 * jit.c (finalize_symtab): Use "new".
3711 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
3712 Use "new".
3713 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3714 (common_block_end): Use "new".
3715 * mdebugread.c (parse_symbol): Use "new".
3716 (new_symbol): Likewise.
3717
5b4a1a8d
PW
37182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719
3720 * NEWS: Mention changes to help and apropos.
3721
57b4f16e
PW
37222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3723
3724 * command.h (enum command_class): Improve comments, document
3725 that class_alias is for user-defined aliases, give the class
3726 name for each class, remove unused class_xdb.
3727 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
3728 * breakpoint.c (_initialize_breakpoint): Replace class_alias
3729 by a precise class.
3730 * infcmd.c (_initialize_infcmd): Likewise.
3731 * reverse.c (_initialize_reverse): Likewise.
3732 * stack.c (_initialize_stack): Likewise.
3733 * symfile.c (_initialize_symfile): Likewise.
3734 * tracepoint.c (_initialize_tracepoint): Likewise.
3735
7c05caf7
PW
37362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3737
3738 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
3739 when their aliased command is traversed.
3740 (help_cmd): Add fput_command_names_styled call to
3741 output command name and aliases when command has an alias.
3742
3b3aaacb
PW
37432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3744
3745 * cli/cli-decode.h (help_cmd_list): Remove declaration.
3746 * cli/cli-decode.c (help_cmd_list): Declare as static,
3747 remove prefix argument, use bool for recurse arg, rework to show the aliases of
3748 a command together with the command.
3749 (fput_command_name_styled, fput_command_names_styled): New functions.
3750 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
3751 fput_command_name_styled.
3752 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
3753 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
3754
7aa1b46f
PW
37552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3756
3757 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
3758 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
3759 * command.h (cmd_show_list): Likewise.
3760 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
3761 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
3762
89bcba74
PW
37632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3764
3765 * unittests/command-def-selftests.c (traverse_command_structure):
3766 Verify all commands of a list have the same prefix command and
3767 that only the top cmdlist commands have a null prefix.
3768
3f4d92eb
PW
37692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3770
3771 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
3772 as prefix, not one of its aliases.
3773 (set_cmd_prefix): Remove.
3774 (do_add_cmd): Centralize the setting of the prefix of a command, when
3775 command is defined after its full chain of prefix commands.
3776 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
3777 (add_setshow_cmd_full): Likewise.
3778 (update_prefix_field_of_prefixed_commands): New function.
3779 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
3780 update_prefix_field_of_prefixed_commands.
3781 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
3782 addresses of remote_set_cmdlist and remote_show_cmdlist given
3783 as argument, not the address of an argument.
3784 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
3785 * gdb/remote.c (_initialize_remote): Likewise.
3786
0605465f
PW
37872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3788
3789 * cli/cli-cmds.c (alias_command): Check for an existing alias
3790 using lookup_cmd_composition, as valid_command_p is too strict
3791 and forbids aliases that are the prefix of an existing alias
3792 or command.
3793 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
3794 command is properly recognised as a valid command.
3795
58e6ac70
PW
37962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3797
3798 * unittests/help-doc-selftests.c: Rename to
3799 unittests/command-def-selftests.c
3800 * unittests/command-def-selftests.c (help_doc_tests): Update some
3801 comments.
3802 (command_structure_tests, traverse_command_structure): New namespace
3803 and function.
3804 (command_structure_invariants_tests): New function.
3805 (_initialize_command_def_selftests) Renamed from
3806 _initialize_help_doc_selftests, register command_structure_invariants
3807 selftest.
3808
a7b9ceb8
PW
38092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3810
3811 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
3812 an alias of 'show'.
3813
b2188a06
JB
38142020-05-15 Joel Brobecker <brobecker@adacore.com>
3815
3816 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
3817 ada_is_fixed_point_type. Update all callers.
3818 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
3819 all callers.
3820 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
3821 Update all callers.
3822 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
3823 print_fixed_point_type. Update all callers.
3824 * ada-valprint.c (ada_value_print_num): Replace call to
3825 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
3826
a51951c2
KB
38272020-05-14 Kevin Buettner <kevinb@redhat.com>
3828
3829 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
3830 processors.
3831 (cpu_supports_bts): Add CV_AMD case.
3832
29d6859f
LM
38332020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
3834 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * infrun.c (stop_all_threads): Collect multiple wait events at
3837 each pass.
3838
78134374
SM
38392020-05-14 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
3842 type::code instead.
3843
67607e24
SM
38442020-05-14 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * gdbtypes.h (struct type) <code, set_code>: New methods.
3847 (TYPE_CODE): Use type::code. Change all call sites used to set
3848 the code to use type::set_code instead.
3849
a05575d3
TBA
38502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851 Tom de Vries <tdevries@suse.de>
3852 Pedro Alves <palves@redhat.com>
3853
3854 PR threads/25478
3855 * infrun.c (stop_all_threads): Do NOT ignore
3856 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
3857 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
3858 received.
3859 (handle_no_resumed): Remove code handling a live inferior with no
3860 threads.
3861 * remote.c (has_single_non_exited_thread): New.
3862 (remote_target::update_thread_list): Do not delete a thread if is
3863 the last thread of the process.
3864 * thread.c (thread_select): Call delete_exited_threads instead of
3865 prune_threads.
3866
6ad82919
TBA
38672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868
3869 * infrun.c (stop_all_threads): Enable/disable thread events of all
3870 targets. Move a debug message denoting the end of the function
3871 into the SCOPED_EXIT block.
3872
d890404b
TBA
38732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3874
3875 * process-stratum-target.h: Include <set>.
3876 (all_non_exited_process_targets, switch_to_target_no_thread): New
3877 function declarations.
3878 * process-stratum-target.c (all_non_exited_process_targets)
3879 (switch_to_target_no_thread): New function implementations.
3880
293b3ebc
TBA
38812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3882
3883 * infrun.c (handle_inferior_event): Extract out a piece of code
3884 into...
3885 (mark_non_executing_threads): ...this new function.
3886
7ca9b62a
TBA
38872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3888
3889 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
3890 use.
3891
fc75c28b
TBA
38922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893
3894 * regcache.c (regcache_read_pc_protected): New function
3895 implementation that returns 0 if the PC cannot read via
3896 'regcache_read_pc'.
3897 * infrun.c (proceed): Call 'regcache_read_pc_protected'
3898 instead of 'regcache_read_pc'.
3899 (keep_going_pass_signal): Ditto.
3900
a89febbd
TT
39012020-05-13 Tom Tromey <tromey@adacore.com>
3902
3903 * ada-lang.c (align_value): Remove.
3904 (ada_template_to_fixed_record_type_1): Use align_up.
3905
f7e23710
TBA
39062020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3907
3908 * async-event.c: Update the copyright year.
3909 * async-event.h: Update the copyright year.
3910
02ff80c2
SM
39112020-05-12 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * objfiles.h (is_addr_in_objfile,
3914 shared_objfile_contains_address_p): Return bool.
3915 * objfile.c (is_addr_in_objfile,
3916 shared_objfile_contains_address_p): Return bool.
3917
4fd6c7e8
TT
39182020-05-11 Tom Tromey <tromey@adacore.com>
3919
3920 * cli/cli-cmds.c (info_command): Restore.
3921 (_initialize_cli_cmds): Use add_prefix_command for "info".
3922 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
3923
5eb68a39
TT
39242020-05-11 Tom Tromey <tromey@adacore.com>
3925
3926 * ada-lang.c (ada_value_primitive_field): Now public.
3927 * ada-lang.h (ada_value_primitive_field): Declare.
3928 * ada-valprint.c (print_field_values): Use
3929 ada_value_primitive_field for wrapper fields.
3930
7666722f
TV
39312020-05-11 Tom de Vries <tdevries@suse.de>
3932
3933 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
3934 MODULE_DOMAIN.
3935
3ee6bb11
TV
39362020-05-11 Tom de Vries <tdevries@suse.de>
3937
3938 PR symtab/25941
3939 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
3940 with length 0, if not gdb-produced.
3941 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
3942
43434996
TV
39432020-05-09 Tom de Vries <tdevries@suse.de>
3944
3945 PR gdb/25955
3946 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
3947 calculation.
3948
2f78cffc
TT
39492020-05-09 Tom Tromey <tom@tromey.com>
3950
3951 * top.c (server_command): Now bool.
3952 * top.h (server_command): Now bool.
3953
4f7bc5ed
TT
39542020-05-08 Tom Tromey <tromey@adacore.com>
3955
3956 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
3957 already being processed.
3958
8be4b118
TT
39592020-05-08 Tom Tromey <tom@tromey.com>
3960
3961 * printcmd.c (struct display) <next>: Remove.
3962 <display>: New constructor.
3963 <exp_string>: Now a std::string.
3964 <enabled_p>: Now a bool.
3965 (display_number): Move definition earlier.
3966 (displays): Rename from display_chain. Now a std::vector.
3967 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
3968 (display_command): Update.
3969 (do_one_display, disable_display)
3970 (enable_disable_display_command, do_enable_disable_display):
3971 Update.
3972 (free_display): Remove.
3973 (clear_displays): Rewrite.
3974 (delete_display): Update.
3975 (map_display_numbers): Use function_view. Remove "data"
3976 parameter. Update.
3977 (do_delete_display): Remove.
3978 (undisplay_command): Update.
3979 (do_one_display, do_displays, disable_display)
3980 (info_display_command): Update.
3981 (do_enable_disable_display): Remove.
3982 (enable_disable_display_command)
3983 (clear_dangling_display_expressions): Update.
3984
94c93c35
TT
39852020-05-08 Tom Tromey <tom@tromey.com>
3986
3987 * symtab.c (set_symbol_cache_size)
3988 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3989 (maintenance_print_symbol_cache_statistics): Update.
3990 * symmisc.c (print_symbol_bcache_statistics)
3991 (print_objfile_statistics, maintenance_print_objfiles)
3992 (maintenance_info_symtabs, maintenance_check_symtabs)
3993 (maintenance_expand_symtabs, maintenance_info_line_tables):
3994 Update.
3995 * symfile-debug.c (set_debug_symfile): Update.
3996 * source.c (forget_cached_source_info): Update.
3997 * python/python.c (gdbpy_progspaces): Update.
3998 * psymtab.c (maintenance_info_psymtabs): Update.
3999 * probe.c (parse_probes): Update.
4000 * linespec.c (iterate_over_all_matching_symtabs)
4001 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4002 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4003 * exec.c (exec_target::close): Update.
4004 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4005 * breakpoint.c (print_one_breakpoint_location)
4006 (create_longjmp_master_breakpoint)
4007 (create_std_terminate_master_breakpoint): Update.
4008 * progspace.c (program_spaces): Now a std::vector.
4009 (maybe_new_address_space): Update.
4010 (add_program_space): Remove.
4011 (program_space::program_space): Update.
4012 (remove_program_space): Update.
4013 (number_of_program_spaces): Remove.
4014 (print_program_space, update_address_spaces): Update.
4015 * progspace.h (program_spaces): Change type.
4016 (ALL_PSPACES): Remove.
4017 (number_of_program_spaces): Don't declare.
4018 (struct program_space) <next>: Remove.
4019
a1fd1ac9
TT
40202020-05-08 Tom Tromey <tom@tromey.com>
4021
4022 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4023 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4024 (enable_break): Update.
4025 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4026 (frv_fdpic_find_canonical_descriptor): Update.
4027 (frv_fetch_objfile_link_map): Update.
4028 * progspace.c (program_space::free_all_objfiles): Update.
4029 (program_space::solibs): New method.
4030 * progspace.h (struct program_space) <solibs>: New method.
4031 * solist.h (master_so_list): Don't declare.
4032 (ALL_SO_LIBS): Remove.
4033 * solib.h (so_list_head): Remove.
4034 (update_solib_list): Update comment.
4035 * solib.c (master_so_list): Remove.
4036 (solib_used, update_solib_list, solib_add)
4037 (info_sharedlibrary_command, clear_solib)
4038 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4039
38eae084
TT
40402020-05-08 Tom Tromey <tom@tromey.com>
4041
4042 * extension.c (extension_languages): Now a std::array.
4043 (ALL_EXTENSION_LANGUAGES): Remove.
4044 (get_ext_lang_defn, get_ext_lang_of_file)
4045 (eval_ext_lang_from_control_command): Update.
4046 (finish_ext_lang_initialization)
4047 (auto_load_ext_lang_scripts_for_objfile)
4048 (ext_lang_type_printers::ext_lang_type_printers)
4049 (apply_ext_lang_type_printers)
4050 (ext_lang_type_printers::~ext_lang_type_printers)
4051 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4052 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4053 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4054 (get_matching_xmethod_workers, ext_lang_colorize)
4055 (ext_lang_before_prompt): Update.
4056 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4057
596dc4ad
TT
40582020-05-08 Tom Tromey <tom@tromey.com>
4059
4060 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4061 overload.
4062 <swap_string, m_string>: Remove.
4063 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4064 Update.
4065 * stabsread.c (define_symbol, read_type): Update.
4066 * linespec.c (find_linespec_symbols): Update.
4067 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4068 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4069 * dbxread.c (read_dbx_symtab): Update.
4070 * cp-support.h (cp_canonicalize_string_full)
4071 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4072 Return unique_xmalloc_ptr.
4073 * cp-support.c (inspect_type): Update.
4074 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4075 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4076 Likewise.
4077 * c-typeprint.c (print_name_maybe_canonical): Update.
4078 * break-catch-throw.c (check_status_exception_catchpoint):
4079 Update.
4080
bf4cb9be
TV
40812020-05-08 Tom de Vries <tdevries@suse.de>
4082
4083 * infrun.c (follow_fork): Copy current_line and current_symtab to
4084 child thread.
4085
a1b68f28
SM
40862020-05-07 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * async-event.c (struct async_signal_handler, struct
4089 async_event_handler): Reformat, remove typedef.
4090
98d48915
SM
40912020-05-07 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4094 access thistype->main_type->dyn_prop_list directly.
4095
7aa91313
SM
40962020-05-07 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4099 (remove_dyn_prop): Remove. Update all users to use
4100 type::remove_dyn_prop.
4101 * gdbtypes.c (remove_dyn_prop): Rename to...
4102 (type::remove_dyn_prop): ... this.
4103
5c54719c
SM
41042020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4105
4106 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4107 (add_dyn_prop): Remove. Update all users to use
4108 type::add_dyn_prop.
4109 * gdbtypes.c (add_dyn_prop): Rename to...
4110 (type::add_dyn_prop): ... this.
4111
24e99c6c
SM
41122020-05-07 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4115 (get_dyn_prop): Remove. Update all users to use
4116 type::dyn_prop.
4117 * gdbtypes.c (get_dyn_prop): Rename to...
4118 (type::dyn_prop): ... this.
4119
0d4bf016
SM
41202020-05-06 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4123
ac4a4f1c
SM
41242020-05-06 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4127 instruction, skip it if it's there.
4128
a3bbacc1
SM
41292020-05-05 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4132
c3236f84
SM
41332020-05-04 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4136 * gdbtypes.c (recursive_dump_type): Remove use of
4137 TYPE_INCOMPLETE.
4138
3b6acaee
TT
41392020-05-03 Tom Tromey <tom@tromey.com>
4140
4141 * breakpoint.c (catch_command, tcatch_command): Remove.
4142 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4143 add_show_prefix_cmd.
4144 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4145 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4146 Remove.
4147 (add_internal_problem_command): Use add_basic_prefix_cmd,
4148 add_show_prefix_cmd.
4149 * mips-tdep.c (set_mipsfpu_command): Remove.
4150 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4151 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4152 (_initialize_index_cache): Use add_basic_prefix_cmd.
4153 * memattr.c (dummy_cmd): Remove.
4154 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4155 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4156 (_initialize_tui_win): Use add_basic_prefix_cmd,
4157 add_show_prefix_cmd.
4158 * cli/cli-logging.c (set_logging_command): Remove.
4159 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4160 add_show_prefix_cmd.
4161 (show_logging_command): Remove.
4162 * target.c (target_command): Remove.
4163 (add_target): Use add_basic_prefix_cmd.
4164
a51119cd
HD
41652020-05-02 Hannes Domani <ssbssa@yahoo.de>
4166
4167 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4168
652fc23a 41692020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4170
652fc23a
PW
4171 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4172 info_command.
4173
117539e6
KR
41742020-04-30 Kamil Rytarowski <n54@gmx.com>
4175
4176 * nbsd-nat.c (nbsd_enable_proc_events)
4177 (nbsd_nat_target::post_startup_inferior): Add.
4178 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4179 (nbsd_nat_target::update_thread_list): Rewrite.
4180 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4181 "PTRACE_LWP_CREATE".
4182 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4183
102e38eb 41842020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4185
102e38eb
PW
4186 * stack.c (_initialize_stack): Remove duplicated creation
4187 of "frame" command and "f" alias.
4188
ee9d1e5f
HD
41892020-04-30 Hannes Domani <ssbssa@yahoo.de>
4190
4191 PR gdb/18706
4192 * gdbtypes.c (check_typedef): Calculate size of array of
4193 stubbed type.
4194
627c7fb8
HD
41952020-04-30 Hannes Domani <ssbssa@yahoo.de>
4196
4197 PR gdb/15559
4198 * i386-tdep.c (i386_push_dummy_call): Call
4199 i386_thiscall_push_dummy_call.
4200 (i386_thiscall_push_dummy_call): New function.
4201 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4202 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4203 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4204
ffc2844e
SM
42052020-04-29 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * gdbarch.sh (do_read): Add shellcheck disable directive for
4208 warning SC2162.
4209
1207375d
SM
42102020-04-29 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4213 "referenced but not assigned" warning.
4214
9fdb2916
SM
42152020-04-29 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * gdbarch.sh: Remove code that sets fallbackdefault.
4218
759cea5e
SM
42192020-04-29 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * gdbarch.sh: Use shell operators && and || instead of
4222 -a and -o.
4223
cb02ab24
SM
42242020-04-29 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * gdbarch.sh: Use $(...) instead of `...`.
4227
a6fc5ffc
SM
42282020-04-29 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * gdbarch.sh: Use double quotes around variables.
4231
8d113d13
SM
42322020-04-29 Simon Marchi <simon.marchi@efficios.com>
4233
4234 * gdbarch.sh: Use %s with printf, instead of variables in the
4235 format string.
4236
ed6acedd
TT
42372020-04-29 Tom Tromey <tromey@adacore.com>
4238
4239 PR ada/25875:
4240 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4241 type fields here.
4242 (read_enumeration_type): Call
4243 update_enumeration_type_from_children later. Update comments.
4244 (process_enumeration_scope): Don't create type fields.
4245
b68b1b58
KR
42462020-04-29 Kamil Rytarowski <n54@gmx.com>
4247
4248 * nbsd-tdep.c: Include "xml-syscall.h".
4249 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4250
f94b2e03
KR
42512020-04-29 Kamil Rytarowski <n54@gmx.com>
4252
4253 * nbsd-nat.c: Include "sys/wait.h".
4254 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4255 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4256 (nbsd_nat_target::remove_exec_catchpoint)
4257 (nbsd_nat_target::set_syscall_catchpoint): Add.
4258 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4259 (nbsd_nat_target::insert_exec_catchpoint)
4260 (nbsd_nat_target::remove_exec_catchpoint)
4261 (nbsd_nat_target::set_syscall_catchpoint): Add.
4262 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4263 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4264 `nbsd_get_syscall_number'.
4265
fc49bc72
TT
42662020-04-29 Tom Tromey <tom@tromey.com>
4267
4268 * stack.c (print_block_frame_labels): Remove.
4269
d642b692
HD
42702020-04-29 Hannes Domani <ssbssa@yahoo.de>
4271
4272 PR gdb/17320
4273 * ada-valprint.c (val_print_packed_array_elements): Move array
4274 end bracket to new line.
4275 (ada_val_print_string): Remove extra spaces before first array
4276 element.
4277 * c-valprint.c (c_value_print_array): Likewise.
4278 * m2-valprint.c (m2_print_array_contents): Likewise.
4279 (m2_value_print_inner): Likewise.
4280 * p-valprint.c (pascal_value_print_inner): Likewise.
4281 * valprint.c (generic_val_print_array): Likewise.
4282 (value_print_array_elements): Move first array element and array
4283 end bracket to new line.
4284
ea90f227
TV
42852020-04-29 Tom de Vries <tdevries@suse.de>
4286
4287 PR symtab/25889
4288 * linespec.c (find_method): Fix ix calculation.
4289
4498ef4f
KR
42902020-04-28 Kamil Rytarowski <n54@gmx.com>
4291
4292 * syscalls/update-netbsd.sh: New file.
4293 * syscalls/netbsd.xml: Regenerate.
4294 * data-directory/Makefile.in: Register `netbsd.xml' in
4295 `SYSCALLS_FILES'.
4296
a55e30b5
SM
42972020-04-28 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * syscalls/update-freebsd.sh: Add double quotes.
4300
2b2fbab8
TT
43012020-04-28 Tom Tromey <tom@tromey.com>
4302
4303 * NEWS: Update.
4304 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4305 (cmdpy_init): Allow class_tui.
4306
a65189c9
TV
43072020-04-28 Mark Williams <mark@myosotissp.com>
4308
4309 PR gdb/24480
4310 * dwarf2read.c: Add missing assingments to list_in_scope when
4311 start_symtab was already called.
4312
1b95cdb7
SM
43132020-04-28 Simon Marchi <simon.marchi@efficios.com>
4314
4315 PR gdb/25881
4316 * dwarf2/read.c (offset_map_type): Use
4317 gdb:hash_enum<sect_offset> as hash function.
4318
15cd93d0
TV
43192020-04-28 Tom de Vries <tdevries@suse.de>
4320
4321 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4322 with DW_AT_signature.
4323
1eb39914
SM
43242020-04-27 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * configure.ac: Remove check for fs_base/gs_base in
4327 user_regs_struct.
4328 * configure: Re-generate.
4329 * config.in: Re-generate.
4330 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4331 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4332 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4333
991a3e2e
LM
43342020-04-27 Luis Machado <luis.machado@linaro.org>
4335
4336 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4337 problematic inline frame unwinding situation.
4338 * frame.c (frame_id_computed_p): New function.
4339 * frame.h (frame_id_computed_p): New prototype.
4340
361ba0e8
TT
43412020-04-26 Tom Tromey <tom@tromey.com>
4342
4343 * command.h (enum command_class) <class_pseudo>: Remove.
4344
bc3609fd
PW
43452020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4346
4347 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4348 and whitespace.
4349
b9771db7
KR
43502020-04-25 Kamil Rytarowski <n54@gmx.com>
4351
ec16513e
SM
4352 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4353 `PT_GET_PROCESS_STATE' block.
b9771db7 4354
7151c1af
TT
43552020-04-24 Tom Tromey <tom@tromey.com>
4356
4357 * symtab.h (symbol_get_demangled_name): Don't declare.
4358 * symtab.c (symbol_get_demangled_name): Remove.
4359 (general_symbol_info::natural_name)
4360 (general_symbol_info::demangled_name): Update.
4361
906bb4c5
TT
43622020-04-24 Tom Tromey <tom@tromey.com>
4363
4364 PR rust/25025:
4365 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4366
bcfe6157
TT
43672020-04-24 Tom Tromey <tom@tromey.com>
4368
4369 PR symtab/12707:
4370 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4371 exists.
4372 (new_symbol): Likewise.
4373 * compile/compile-object-load.c (get_out_value_type): Use
4374 symbol_matches_search_name.
4375
f049a313
TT
43762020-04-24 Tom Tromey <tom@tromey.com>
4377
4378 * dwarf2/read.c (add_partial_symbol): Do not call
4379 compute_and_set_names.
4380
76e288d1
TT
43812020-04-24 Tom Tromey <tom@tromey.com>
4382
4383 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4384 overload.
4385
2467f4f6
TT
43862020-04-24 Tom Tromey <tom@tromey.com>
4387
4388 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4389 (add_psymbol_to_list): New overload. Make old overload call new
4390 one.
4391 * psympriv.h (add_psymbol_to_list): New overload.
4392
e61108c9
TT
43932020-04-24 Tom Tromey <tom@tromey.com>
4394
4395 * dwarf2/read.c (partial_die_info::read) <case
4396 DW_AT_linkage_name>: Use value_as_string.
4397 (dwarf2_string_attr): Use value_as_string.
4398 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4399 method.
4400 * dwarf2/attribute.c (attribute::value_as_string): New method.
4401
8c87a452
TT
44022020-04-24 Tom Tromey <tom@tromey.com>
4403
4404 * symtab.c (general_symbol_info::natural_name)
4405 (general_symbol_info::demangled_name): Check for language_rust.
4406
787de330
TT
44072020-04-24 Tom Tromey <tom@tromey.com>
4408
4409 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4410 (dwarf2_physname): ... from here.
4411 (partial_die_info::read): Add Rust "{" hack.
4412
ff985671
TT
44132020-04-24 Tom Tromey <tom@tromey.com>
4414
4415 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4416 method.
4417 (symbol_set_demangled_name): Don't declare.
4418 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4419 symbol_set_demangled_name.
4420 (general_symbol_info::set_language)
4421 (general_symbol_info::compute_and_set_names): Update.
4422 * minsyms.c (minimal_symbol_reader::install): Update.
4423 * dwarf2/read.c (new_symbol): Update.
4424
1acda803
TT
44252020-04-24 Tom Tromey <tromey@adacore.com>
4426
4427 PR python/23662:
4428 * python/py-type.c (convert_field): Handle
4429 FIELD_LOC_KIND_DWARF_BLOCK.
4430 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4431 (typy_get_dynamic): Nw function.
4432 (type_object_getset): Add "dynamic".
4433 * NEWS: Add entry.
4434
d656f129
TT
44352020-04-24 Tom Tromey <tromey@adacore.com>
4436
4437 * ada-typeprint.c (print_choices, print_variant_part)
4438 (print_record_field_types_dynamic): New functions.
4439 (print_record_field_types): Use print_record_field_types_dynamic.
4440
7d79de9a
TT
44412020-04-24 Tom Tromey <tromey@adacore.com>
4442
4443 * dwarf2/read.c (handle_data_member_location): New overload.
4444 (dwarf2_add_field): Use it.
4445 (decode_locdesc): Add "computed" parameter. Update comment.
4446 * gdbtypes.c (is_dynamic_type_internal): Also look for
4447 FIELD_LOC_KIND_DWARF_BLOCK.
4448 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4449 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4450 virtual base classes.
4451 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4452 FIELD_LOC_KIND_DWARF_BLOCK.
4453
f8e89861
TT
44542020-04-24 Tom Tromey <tromey@adacore.com>
4455
4456 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4457 * gdbtypes.c (is_dynamic_type_internal): Check
4458 TYPE_HAS_DYNAMIC_LENGTH.
4459 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4460 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4461 New macros.
4462 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4463 constant.
4464
9c6a1327
TT
44652020-04-24 Tom Tromey <tromey@adacore.com>
4466
4467 * dwarf2/read.c (struct variant_field): Rewrite.
4468 (struct variant_part_builder): New.
4469 (struct nextfield): Remove "variant" field. Add "offset".
4470 (struct field_info): Add "current_variant_part" and
4471 "variant_parts".
4472 (alloc_discriminant_info): Remove.
4473 (alloc_rust_variant): New function.
4474 (quirk_rust_enum): Update.
4475 (dwarf2_add_field): Set "offset" member. Don't handle
4476 DW_TAG_variant_part.
4477 (offset_map_type): New typedef.
4478 (convert_variant_range, create_one_variant)
4479 (create_one_variant_part, create_variant_parts)
4480 (add_variant_property): New functions.
4481 (dwarf2_attach_fields_to_type): Call add_variant_property.
4482 (read_structure_type): Don't handle DW_TAG_variant_part.
4483 (handle_variant_part, handle_variant): New functions.
4484 (handle_struct_member_die): Use them.
4485 (process_structure_scope): Don't handle variant parts.
4486 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4487 (struct discriminant_info): Remove.
4488 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4489 (struct main_type) <flag_discriminated_union>: Remove.
4490 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4491 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4492 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4493 Update.
4494 * valops.c (value_union_variant): Remove.
4495 * value.h (value_union_variant): Don't declare.
4496
b249d2c2
TT
44972020-04-24 Tom Tromey <tromey@adacore.com>
4498
4499 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4500 (ada_value_primitive_packed_val): Update.
4501 * ada-valprint.c (ada_value_print_1): Update.
4502 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4503 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4504 just an address. Use evaluate_for_locexpr_baton.
4505 (dwarf2_evaluate_property): Update.
4506 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4507 array_view.
4508 * findvar.c (default_read_var_value): Update.
4509 * gdbtypes.c (compute_variant_fields_inner)
4510 (resolve_dynamic_type_internal): Update.
4511 (resolve_dynamic_type): Change type of valaddr parameter.
4512 * gdbtypes.h (resolve_dynamic_type): Update.
4513 * valarith.c (value_subscripted_rvalue): Update.
4514 * value.c (value_from_contents_and_address): Update.
4515
61122aa9
TT
45162020-04-24 Tom Tromey <tromey@adacore.com>
4517
4518 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4519 "push_initial_value" parameter.
4520 (dwarf2_evaluate_property): Likewise.
4521 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4522
ef83a141
TT
45232020-04-24 Tom Tromey <tromey@adacore.com>
4524
4525 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4526 (variant::matches, compute_variant_fields_recurse)
4527 (compute_variant_fields_inner, compute_variant_fields): New
4528 functions.
4529 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4530 Use resolved_type after type is made.
4531 (operator==): Add new cases.
4532 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4533 (struct discriminant_range, struct variant, struct variant_part):
4534 New.
4535 (union dynamic_prop_data) <variant_parts, original_type>: New
4536 members.
4537 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4538 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4539 constants.
4540 * value.c (unpack_bits_as_long): Now public.
4541 * value.h (unpack_bits_as_long): Declare.
4542
675127ec
TT
45432020-04-24 Tom Tromey <tromey@adacore.com>
4544
4545 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4546 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4547
9852ceef
HD
45482020-04-24 Hannes Domani <ssbssa@yahoo.de>
4549
4550 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4551
7632c6ce
KR
45522020-04-24 Kamil Rytarowski <n54@gmx.com>
4553
4554 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4555 (remove_fork_catchpoint, post_startup_inferior)
4556 (post_attach): Move...
4557 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4558 (remove_fork_catchpoint, post_startup_inferior)
4559 (post_attach): ...here.
4560 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4561 (remove_fork_catchpoint, post_startup_inferior)
4562 (post_attach): Move...
4563 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4564 (remove_fork_catchpoint, post_startup_inferior)
4565 (post_attach): ...here.
4566
7be2bb4f
TT
45672020-04-24 Tom Tromey <tromey@adacore.com>
4568
4569 * nat/windows-nat.h (struct windows_thread_info)
4570 <pc_adjusted>: New member.
4571 * windows-nat.c (windows_fetch_one_register): Check
4572 pc_adjusted.
4573 (windows_nat_target::get_windows_debug_event)
4574 (windows_nat_target::wait): Set pc_adjusted.
4575
f80cb3b4
TV
45762020-04-24 Tom de Vries <tdevries@suse.de>
4577
4578 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4579 Run gdb-add-index inside temp dir.
4580
29514b87
TT
45812020-04-23 Tom Tromey <tromey@adacore.com>
4582
4583 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4584 in loop.
4585
5939967b
LM
45862020-04-23 Luis Machado <luis.machado@linaro.org>
4587
4588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4589 get_frame_register instead of gdbarch_unwind_pc.
4590
70bc38f5
TV
45912020-04-23 Tom de Vries <tdevries@suse.de>
4592
4593 * symtab.c (lookup_global_symbol): Prefer def over decl.
4594
de82891c
TV
45952020-04-23 Tom de Vries <tdevries@suse.de>
4596
4597 PR symtab/25807
4598 * block.c (best_symbol, better_symbol): Promote to external.
4599 * block.h (best_symbol, better_symbol): Declare.
4600 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4601 decl.
4602
ecc6c606
TT
46032020-04-23 Tom Tromey <tromey@adacore.com>
4604
4605 PR ada/25837:
4606 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4607 "const char *", not a "const std::string &".
4608 <name_and_matcher::operator==>: Update.
4609 * unittests/lookup_name_info-selftests.c: Change type of
4610 "result".
4611
740480b8
TT
46122020-04-23 Tom Tromey <tom@tromey.com>
4613
4614 * inferior.h (iterate_over_inferiors): Don't declare.
4615 * inferior.c (iterate_over_inferiors): Remove.
4616 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4617 Remove.
4618 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4619 use iterate_over_inferiors.
4620 (darwin_resume_inferior_it)
4621 (struct resume_inferior_threads_param)
4622 (darwin_resume_inferior_threads_it): Remove.
4623 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4624
ae3ab1f0
TV
46252020-04-23 Tom de Vries <tdevries@suse.de>
4626
4627 * blockframe.c (find_pc_partial_function): Use
4628 find_pc_sect_compunit_symtab rather than
4629 objfile->sf->qf->find_pc_sect_compunit_symtab.
4630
317d2668
TV
46312020-04-22 Tom de Vries <tdevries@suse.de>
4632
4633 PR symtab/25764
4634 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4635 in psymtabs.
4636
eea9e357
TV
46372020-04-22 Tom de Vries <tdevries@suse.de>
4638
4639 PR symtab/25801
4640 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4641 symtabs.
4642
3d5afab3
TV
46432020-04-22 Tom de Vries <tdevries@suse.de>
4644
4645 PR symtab/25700
4646 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4647 CU if already created.
4648
d43b7a2d
TBA
46492020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4650
4651 * infrun.c (displaced_step_fixup): Switch to the event_thread
4652 before calling displaced_step_restore, not after.
4653
d89edf9b
MM
46542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4655
4656 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4657 its inferior is not recorded by us.
4658 (record_btrace_target_open): Replace call to
4659 all_non_exited_threads () with call to current_inferior
4660 ()->non_exited_threads ().
4661 (record_btrace_target::stop_recording): Likewise.
4662 (record_btrace_target::close): Likewise.
4663 (record_btrace_target::wait): Likewise.
4664 (record_btrace_target::record_stop_replaying): Likewise.
4665
5897fd49
MM
46662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4667
4668 * btrace.c (btrace_enable): Throw an error on double enables and
4669 when enabling recording fails.
4670 (btrace_disable): Throw an error if the thread is not recorded.
4671
1a476b6d
MM
46722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4673
4674 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4675 request if we do not have a thread_info.
4676
4778a5f8
TV
46772020-04-21 Tom de Vries <tdevries@suse.de>
4678
4679 PR gdb/25471
4680 * thread.c
4681 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4682 exception in get_frame_id.
4683
0fa7617d
TT
46842020-04-20 Tom Tromey <tromey@adacore.com>
4685
4686 * python/python.c (struct gdbpy_event): Mark move constructor as
4687 noexcept.
4688 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4689 constructor as noexcept.
4690 * completer.h (struct completion_result): Mark move constructor as
4691 noexcept.
4692 * completer.c (completion_result::completion_result): Use
4693 initialization style. Don't call reset_match_list.
4694
ad23bda0
MS
46952020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4696
4697 * MAINTAINERS (Write After Approval): Add myself.
4698
45e1f031
TT
46992020-04-18 Tom Tromey <tom@tromey.com>
4700
4701 * windows-tdep.c (init_w32_command_list)
4702 (w32_prefix_command_valid): Restore.
4703 (_initialize_windows_tdep): Call init_w32_command_list.
4704
08feed99
TT
47052020-04-18 Tom Tromey <tom@tromey.com>
4706
4707 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4708 * value.c (value_fn_field): Update.
4709 * valops.c (find_function_in_inferior)
4710 (value_allocate_space_in_inferior): Update.
4711 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4712 Update.
4713 * tui/tui-source.c (tui_source_window::set_contents): Update.
4714 * symtab.c (lookup_global_or_static_symbol)
4715 (find_function_start_sal_1, skip_prologue_sal)
4716 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
4717 * symmisc.c (dump_msymbols, dump_symtab_1)
4718 (maintenance_print_one_line_table): Update.
4719 * symfile.c (init_entry_point_info, section_is_mapped)
4720 (list_overlays_command, simple_read_overlay_table)
4721 (simple_overlay_update_1): Update.
4722 * stap-probe.c (handle_stap_probe): Update.
4723 * stabsread.c (dbx_init_float_type, define_symbol)
4724 (read_one_struct_field, read_enum_type, read_range_type): Update.
4725 * source.c (info_line_command): Update.
4726 * python/python.c (gdbpy_source_objfile_script)
4727 (gdbpy_execute_objfile_script): Update.
4728 * python/py-type.c (save_objfile_types): Update.
4729 * python/py-objfile.c (py_free_objfile): Update.
4730 * python/py-inferior.c (python_new_objfile): Update.
4731 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
4732 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
4733 (maintenance_check_psymtabs): Update.
4734 * printcmd.c (info_address_command): Update.
4735 * objfiles.h (struct objfile) <arch>: New method, from
4736 get_objfile_arch.
4737 (get_objfile_arch): Don't declare.
4738 * objfiles.c (get_objfile_arch): Remove.
4739 (filter_overlapping_sections): Update.
4740 * minsyms.c (msymbol_is_function): Update.
4741 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
4742 (output_nondebug_symbol): Update.
4743 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
4744 (mdebug_expand_psymtab): Update.
4745 * machoread.c (macho_add_oso_symfile): Update.
4746 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
4747 Update.
4748 * linux-fork.c (checkpoint_command): Update.
4749 * linespec.c (convert_linespec_to_sals): Update.
4750 * jit.c (finalize_symtab): Update.
4751 * infrun.c (insert_exception_resume_from_probe): Update.
4752 * ia64-tdep.c (ia64_find_unwind_table): Update.
4753 * hppa-tdep.c (internalize_unwinds): Update.
4754 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
4755 Update.
4756 * gcore.c (call_target_sbrk): Update.
4757 * elfread.c (record_minimal_symbol, elf_symtab_read)
4758 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4759 (elf_gnu_ifunc_resolve_by_got): Update.
4760 * dwarf2/read.c (create_addrmap_from_index)
4761 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4762 (read_debug_names_from_section)
4763 (process_psymtab_comp_unit_reader, add_partial_symbol)
4764 (add_partial_subprogram, process_full_comp_unit)
4765 (read_file_scope, read_func_scope, read_lexical_block_scope)
4766 (read_call_site_scope, dwarf2_ranges_read)
4767 (dwarf2_record_block_ranges, dwarf2_add_field)
4768 (mark_common_block_symbol_computed, read_tag_pointer_type)
4769 (read_tag_string_type, dwarf2_init_float_type)
4770 (dwarf2_init_complex_target_type, read_base_type)
4771 (partial_die_info::read, partial_die_info::read)
4772 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
4773 (dwarf2_fetch_die_loc_sect_off): Update.
4774 * dwarf2/loc.c (dwarf2_find_location_expression)
4775 (class dwarf_evaluate_loc_desc, rw_pieced_value)
4776 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
4777 (dwarf2_loc_desc_get_symbol_read_needs)
4778 (locexpr_describe_location_piece, locexpr_describe_location_1)
4779 (loclist_describe_location): Update.
4780 * dwarf2/index-write.c (write_debug_names): Update.
4781 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
4782 * dtrace-probe.c (dtrace_process_dof): Update.
4783 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
4784 (process_one_symbol): Update.
4785 * ctfread.c (ctf_init_float_type, read_base_type): Update.
4786 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
4787 (coff_read_enum_type): Update.
4788 * cli/cli-cmds.c (edit_command, list_command): Update.
4789 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
4790 * breakpoint.c (create_overlay_event_breakpoint)
4791 (create_longjmp_master_breakpoint)
4792 (create_std_terminate_master_breakpoint)
4793 (create_exception_master_breakpoint, get_sal_arch): Update.
4794 * block.c (block_gdbarch): Update.
4795 * annotate.c (annotate_source_line): Update.
4796
0743fc83
TT
47972020-04-17 Tom Tromey <tromey@adacore.com>
4798
4799 * auto-load.c (show_auto_load_cmd): Remove.
4800 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
4801 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
4802 (maintenance_print_arc_command): Remove.
4803 * tui/tui-win.c (tui_command): Remove.
4804 (tui_get_cmd_list): Use add_basic_prefix_cmd.
4805 * tui/tui-layout.c (tui_layout_command): Remove.
4806 (_initialize_tui_layout): Use add_basic_prefix_cmd.
4807 * python/python.c (user_set_python, user_show_python): Remove.
4808 (_initialize_python): Use add_basic_prefix_cmd,
4809 add_show_prefix_cmd.
4810 * guile/guile.c (set_guile_command, show_guile_command): Remove.
4811 (install_gdb_commands): Use add_basic_prefix_cmd,
4812 add_show_prefix_cmd.
4813 (info_guile_command): Remove.
4814 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
4815 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
4816 add_show_prefix_cmd.
4817 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
4818 Remove do_set and do_show parameters.
4819 * cli/cli-style.c (set_style, show_style): Remove.
4820 (_initialize_cli_style): Use add_basic_prefix_cmd,
4821 add_show_prefix_cmd.
4822 (cli_style_option::add_setshow_commands): Remove do_set and
4823 do_show parameters.
4824 (cli_style_option::add_setshow_commands): Use
4825 add_basic_prefix_cmd, add_show_prefix_cmd.
4826 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
4827 (set_style_name): Remove.
4828 * cli/cli-dump.c (dump_command, append_command): Remove.
4829 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4830 (tekhex_dump_command, binary_dump_command)
4831 (binary_append_command): Remove.
4832 (_initialize_cli_dump): Use add_basic_prefix_cmd.
4833 * windows-tdep.c (w32_prefix_command_valid): Remove global.
4834 (init_w32_command_list): Remove; move into ...
4835 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
4836 * valprint.c (set_print, show_print, set_print_raw)
4837 (show_print_raw): Remove.
4838 (_initialize_valprint): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 * typeprint.c (set_print_type, show_print_type): Remove.
4841 (_initialize_typeprint): Use add_basic_prefix_cmd,
4842 add_show_prefix_cmd.
4843 * record.c (set_record_command, show_record_command): Remove.
4844 (_initialize_record): Use add_basic_prefix_cmd,
4845 add_show_prefix_cmd.
4846 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
4847 add_show_prefix_cmd.
4848 (info_command, show_command, set_debug, show_debug): Remove.
4849 * top.h (set_history, show_history): Don't declare.
4850 * top.c (set_history, show_history): Remove.
4851 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4852 (unset_tdesc_cmd): Remove.
4853 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
4854 add_show_prefix_cmd.
4855 * symtab.c (info_module_command): Remove.
4856 (_initialize_symtab): Use add_basic_prefix_cmd.
4857 * symfile.c (overlay_command): Remove.
4858 (_initialize_symfile): Use add_basic_prefix_cmd.
4859 * sparc64-tdep.c (info_adi_command): Remove.
4860 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
4861 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
4862 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
4865 (_initialize_serial): Use add_basic_prefix_cmd,
4866 add_show_prefix_cmd.
4867 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
4868 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
4869 add_show_prefix_cmd.
4870 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
4871 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
4872 add_show_prefix_cmd.
4873 * riscv-tdep.c (show_riscv_command, set_riscv_command)
4874 (show_debug_riscv_command, set_debug_riscv_command): Remove.
4875 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
4876 add_show_prefix_cmd.
4877 * remote.c (remote_command, set_remote_cmd): Remove.
4878 (_initialize_remote): Use add_basic_prefix_cmd.
4879 * record-full.c (set_record_full_command)
4880 (show_record_full_command): Remove.
4881 (_initialize_record_full): Use add_basic_prefix_cmd,
4882 add_show_prefix_cmd.
4883 * record-btrace.c (cmd_set_record_btrace)
4884 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
4885 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
4886 (cmd_show_record_btrace_pt): Remove.
4887 (_initialize_record_btrace): Use add_basic_prefix_cmd,
4888 add_show_prefix_cmd.
4889 * ravenscar-thread.c (set_ravenscar_command)
4890 (show_ravenscar_command): Remove.
4891 (_initialize_ravenscar): Use add_basic_prefix_cmd,
4892 add_show_prefix_cmd.
4893 * mips-tdep.c (show_mips_command, set_mips_command)
4894 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
4895 add_show_prefix_cmd.
4896 * maint.c (maintenance_command, maintenance_info_command)
4897 (maintenance_check_command, maintenance_print_command)
4898 (maintenance_set_cmd, maintenance_show_cmd): Remove.
4899 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
4900 add_show_prefix_cmd.
4901 (show_per_command_cmd): Remove.
4902 * maint-test-settings.c (maintenance_set_test_settings_cmd):
4903 Remove.
4904 (maintenance_show_test_settings_cmd): Remove.
4905 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
4906 add_show_prefix_cmd.
4907 * maint-test-options.c (maintenance_test_options_command):
4908 Remove.
4909 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
4910 * macrocmd.c (macro_command): Remove
4911 (_initialize_macrocmd): Use add_basic_prefix_cmd.
4912 * language.c (set_check, show_check): Remove.
4913 (_initialize_language): Use add_basic_prefix_cmd,
4914 add_show_prefix_cmd.
4915 * infcmd.c (unset_command): Remove.
4916 (_initialize_infcmd): Use add_basic_prefix_cmd.
4917 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
4918 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
4919 add_show_prefix_cmd.
4920 * go32-nat.c (go32_info_dos_command): Remove.
4921 (_initialize_go32_nat): Use add_basic_prefix_cmd.
4922 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
4923 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
4924 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
4925 (_initialize_frame): Use add_basic_prefix_cmd,
4926 add_show_prefix_cmd.
4927 * dcache.c (set_dcache_command, show_dcache_command): Remove.
4928 (_initialize_dcache): Use add_basic_prefix_cmd,
4929 add_show_prefix_cmd.
4930 * cp-support.c (maint_cplus_command): Remove.
4931 (_initialize_cp_support): Use add_basic_prefix_cmd.
4932 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4933 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4934 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
4935 add_basic_prefix_cmd, add_show_prefix_cmd.
4936 * breakpoint.c (save_command): Remove.
4937 (_initialize_breakpoint): Use add_basic_prefix_cmd.
4938 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
4939 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
4940 add_show_prefix_cmd.
4941 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
4942 (set_ada_command, show_ada_command): Remove.
4943 (_initialize_ada_language): Use add_basic_prefix_cmd,
4944 add_show_prefix_cmd.
4945 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
4946
3557f442
KR
49472020-04-16 Kamil Rytarowski <n54@gmx.com>
4948
4949 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
4950 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
4951
16197208
SM
49522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
4955 warning messages.
4956
00ac85d3
SM
49572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
4960 import table is not at beginning of .idata section.
4961
381ce63f
PA
49622020-04-16 Pedro Alves <palves@redhat.com>
4963
4964 * inferior.c (delete_inferior): Use delete operator directly
4965 instead of delete_program_space.
4966 * progspace.c (add_program_space): New, factored out from
4967 program_space::program_space.
4968 (remove_program_space): New, factored out from
4969 delete_program_space.
4970 (program_space::program_space): Remove intro comment. Rewrite.
4971 (program_space::~program_space): Remove intro comment. Call
4972 remove_program_space.
4973 (delete_program_space): Delete.
4974 * progspace.h (program_space::program_space): Make explicit. Move
4975 intro comment here, adjusted.
4976 (program_space::~program_space): Move intro comment here,
4977 adjusted.
4978 (delete_program_space): Remove.
4979
a010605f
TT
49802020-04-16 Tom Tromey <tromey@adacore.com>
4981
4982 * windows-nat.c (windows_nat::handle_access_violation): New
4983 function.
4984 * nat/windows-nat.h (handle_access_violation): Declare.
4985 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4986 windows-nat.c. Call handle_access_violation.
4987
efba5c23
TV
49882020-04-16 Tom de Vries <tdevries@suse.de>
4989
4990 PR symtab/25791
4991 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4992 CUs without psymtab.
4993
97ed802d
KB
49942020-04-16 Kevin Buettner <kevinb@redhat.com>
4995
4996 * python/python.c (do_start_initialization): Don't call
4997 PyEval_InitThreads for Python 3.9 and beyond.
4998
c7d64809
KR
49992020-04-15 Kamil Rytarowski <n54@gmx.com>
5000
5001 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5002 thread functions.
5003 (obsd_nat_target::wait): Likewise.
5004
ce127a96
TT
50052020-04-15 Tom Tromey <tromey@adacore.com>
5006
5007 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5008 (DEBUG_EXCEPT): Use debug_printf.
5009
99f1bc6a
AB
50102020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5011
5012 * completer.c (class completion_tracker::completion_hash_entry)
5013 <hash_name>: New member function.
5014 (completion_tracker::discard_completions): New callback to hash a
5015 completion_hash_entry, pass this to htab_create_alloc.
5016
a0e9b532
JT
50172016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5018
5019 * windows-nat.c (windows_make_so): Warn rather than stopping with
5020 an error if realpath() fails.
5021
06ca5dd4
KR
50222020-04-14 Kamil Rytarowski <n54@gmx.com>
5023
5024 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5025 (nbsd_nat_target::info_proc): Add do_status.
5026
194d088f
TV
50272020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5028 Tom de Vries <tdevries@suse.de>
5029
5030 PR symtab/25718
5031 * psympriv.h (struct partial_symtab::read_symtab)
5032 (struct partial_symtab::expand_psymtab)
5033 (struct partial_symtab::read_dependencies): Update comments.
5034 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5035 read_symtab for includer.
5036 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5037 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5038 (struct dwarf2_include_psymtab::m_readin): Remove.
5039 (struct dwarf2_include_psymtab::includer): New member function.
5040 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5041
c1a66c06
TV
50422020-04-14 Tom de Vries <tdevries@suse.de>
5043
5044 PR symtab/25720
5045 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5046 with NULL symbol_matcher and lookup_name.
5047 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5048 and lookup_name.
5049 * dwarf2/read.c (dw2_expand_symtabs_matching)
5050 (dw2_debug_names_expand_symtabs_matching): Same.
5051 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5052 Make lookup_name a pointer. Update comment.
5053 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5054 lookup_name being a pointer.
5055 * symfile.c (expand_symtabs_matching): Same.
5056 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5057 * linespec.c (iterate_over_all_matching_symtabs): Same.
5058
400b5eca
TT
50592020-04-13 Tom Tromey <tom@tromey.com>
5060
5061 * run-on-main-thread.c: Update include.
5062 * unittests/main-thread-selftests.c: Update include.
5063 * tui/tui-win.c: Update include.
5064 * tui/tui-io.c: Update include.
5065 * tui/tui-interp.c: Update include.
5066 * tui/tui-hooks.c: Update include.
5067 * top.h: Update include.
5068 * top.c: Update include.
5069 * ser-base.c: Update include.
5070 * remote.c: Update include.
5071 * remote-notif.c: Update include.
5072 * remote-fileio.c: Update include.
5073 * record-full.c: Update include.
5074 * record-btrace.c: Update include.
5075 * python/python.c: Update include.
5076 * posix-hdep.c: Update include.
5077 * mingw-hdep.c: Update include.
5078 * mi/mi-main.c: Update include.
5079 * mi/mi-interp.c: Update include.
5080 * main.c: Update include.
5081 * linux-nat.c: Update include.
5082 * interps.c: Update include.
5083 * infrun.c: Update include.
5084 * inf-loop.c: Update include.
5085 * event-top.c: Update include.
5086 * event-loop.c: Move to ../gdbsupport/.
5087 * event-loop.h: Move to ../gdbsupport/.
5088 * async-event.h: Update include.
5089 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5090
93b54c8e
TT
50912020-04-13 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-win.c: Include async-event.h.
5094 * remote.c: Include async-event.h.
5095 * remote-notif.c: Include async-event.h.
5096 * record-full.c: Include async-event.h.
5097 * record-btrace.c: Include async-event.h.
5098 * infrun.c: Include async-event.h.
5099 * event-top.c: Include async-event.h.
5100 * event-loop.h: Move some declarations to async-event.h.
5101 * event-loop.c: Don't include ser-event.h or top.h. Move some
5102 code to async-event.c.
5103 * async-event.h: New file.
5104 * async-event.c: New file.
5105 * Makefile.in (COMMON_SFILES): Add async-event.c.
5106 (HFILES_NO_SRCDIR): Add async-event.h.
5107
c1cd3163
TT
51082020-04-13 Tom Tromey <tom@tromey.com>
5109
5110 * utils.c (flush_streams): New function.
5111 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5112
29f2bf4f
TT
51132020-04-13 Tom Tromey <tom@tromey.com>
5114
5115 * event-loop.c (handle_file_event): Use warning, not
5116 printf_unfiltered.
5117
98029d02
TT
51182020-04-13 Tom Tromey <tom@tromey.com>
5119
5120 * event-loop.c: Include <chrono>.
5121
06cc9596
TT
51222020-04-13 Tom Tromey <tom@tromey.com>
5123
5124 * gdb_select.h: Move to ../gdbsupport/.
5125 * event-loop.c: Update include path.
5126 * top.c: Update include path.
5127 * ser-base.c: Update include path.
5128 * ui-file.c: Update include path.
5129 * ser-tcp.c: Update include path.
5130 * guile/scm-ports.c: Update include path.
5131 * posix-hdep.c: Update include path.
5132 * ser-unix.c: Update include path.
5133 * gdb_usleep.c: Update include path.
5134 * mingw-hdep.c: Update include path.
5135 * inflow.c: Update include path.
5136 * infrun.c: Update include path.
5137 * event-top.c: Update include path.
5138
8ae8e197
TT
51392020-04-13 Tom Tromey <tom@tromey.com>
5140
5141 * configure: Rebuild.
5142 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5143
58cf28e8
TT
51442020-04-13 Tom Tromey <tom@tromey.com>
5145
5146 * event-loop.h (start_event_loop): Don't declare.
5147 * event-loop.c (start_event_loop): Move...
5148 * main.c (start_event_loop): ...here. Now static.
5149
b7f999ae
SDJ
51502020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5151
5152 * MAINTAINERS: Update my email address.
5153
1085dfd4
KR
51542020-04-12 Kamil Rytarowski <n54@gmx.com>
5155
5156 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5157 IP_ALL.
5158
49d1d1f5
KR
51592020-04-12 Kamil Rytarowski <n54@gmx.com>
5160
5161 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5162 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5163
b4848d2a
KR
51642020-04-12 Kamil Rytarowski <n54@gmx.com>
5165
5166 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5167 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5168
51c133d5
KR
51692020-04-12 Kamil Rytarowski <n54@gmx.com>
5170
5171 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5172
54b8cbd0
KR
51732020-04-11 Kamil Rytarowski <n54@gmx.com>
5174
5175 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5176 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5177 (nbsd_nat_target::info_proc): New functions.
5178 * nbsd-nat.c (kinfo_get_vmmap): New function.
5179 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5180 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5181 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5182 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5183 functions.
5184 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5185 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5186 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5187 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5188 (KINFO_VME_FLAG_GROWS_DOWN): New.
5189
cf83625d
AS
51902020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5191
5192 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5193 bit shift.
5194
0c4311ab
TT
51952020-04-10 Tom Tromey <tromey@adacore.com>
5196
5197 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5198
3e65b3e9
TT
51992020-04-10 Tom Tromey <tromey@adacore.com>
5200
5201 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5202 separate debug files.
5203
13302e95
HD
52042020-04-10 Hannes Domani <ssbssa@yahoo.de>
5205
5206 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5207 Move to...
5208 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5209 ... here.
5210 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5211 Check for STATUS_WX86_BREAKPOINT.
5212 (windows_nat_target::wait): Same.
5213
bdfc1e8a
TV
52142020-04-10 Tom de Vries <tdevries@suse.de>
5215
5216 PR cli/25808
5217 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5218
f4460aec
SM
52192020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5222 (Write After Approval): Remove Tom de Vries.
5223
a25198bb
BE
52242020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5225
5226 revert partially:
5227 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5228
aac66a4c
SM
5229 * buildsym.c (record_line): Fix undefined behavior and preserve
5230 lines at eof.
a25198bb 5231
206c98a6
KR
52322020-04-09 Kamil Rytarowski <n54@gmx.com>
5233
5234 * auxv.h (svr4_auxv_parse): New.
5235 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5236 and generic_auxv_parse.
5237 (svr4_auxv_parse): Add.
5238 * obsd-tdep.c: Include "auxv.h".
5239 (obsd_auxv_parse): Remove.
5240 (obsd_init_abi): Remove comment.
5241 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5242 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5243 * nbsd-tdep.c: Include "auxv.h".
5244 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5245
71fbdbaf
TT
52462020-04-08 Tom Tromey <tromey@adacore.com>
5247
5248 * nat/windows-nat.h (last_wait_event): Don't declare.
5249 (wait_for_debug_event): Update comment.
5250 * nat/windows-nat.c (last_wait_event): Now static.
5251
2c1d95e8
TT
52522020-04-08 Tom Tromey <tromey@adacore.com>
5253
5254 * windows-nat.c (wait_for_debug_event): Move to
5255 nat/windows-nat.c.
5256 * nat/windows-nat.h (wait_for_debug_event): Declare.
5257 * nat/windows-nat.c (wait_for_debug_event): Move from
5258 windows-nat.c. No longer static.
5259
d2977bc4
TT
52602020-04-08 Tom Tromey <tromey@adacore.com>
5261
5262 * windows-nat.c (get_windows_debug_event): Use
5263 fetch_pending_stop.
5264 * nat/windows-nat.h (fetch_pending_stop): Declare.
5265 * nat/windows-nat.c (fetch_pending_stop): New function.
5266
e758e19c
TT
52672020-04-08 Tom Tromey <tromey@adacore.com>
5268
5269 * windows-nat.c (windows_continue): Use matching_pending_stop and
5270 continue_last_debug_event.
5271 * nat/windows-nat.h (matching_pending_stop)
5272 (continue_last_debug_event): Declare.
5273 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5274 (matching_pending_stop, continue_last_debug_event): New
5275 functions.
5276
8d30e395
TT
52772020-04-08 Tom Tromey <tromey@adacore.com>
5278
5279 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5280 (handle_exception_result): Move to nat/windows-nat.h.
5281 (DEBUG_EXCEPTION_SIMPLE): Remove.
5282 (windows_nat::handle_ms_vc_exception): New function.
5283 (handle_exception): Move to nat/windows-nat.c.
5284 (get_windows_debug_event): Update.
5285 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5286 nat/windows-nat.c.
5287 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5288 (handle_exception_result): Move from windows-nat.c.
5289 (handle_exception): Declare.
5290 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5291 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5292 windows-nat.c.
5293
29de418d
TT
52942020-04-08 Tom Tromey <tromey@adacore.com>
5295
5296 * windows-nat.c (exception_count, event_count): Remove.
5297 (handle_exception, get_windows_debug_event)
5298 (do_initial_windows_stuff): Update.
5299
a816ba18
TT
53002020-04-08 Tom Tromey <tromey@adacore.com>
5301
5302 * windows-nat.c (windows_nat::handle_load_dll)
5303 (windows_nat::handle_unload_dll): Rename. No longer static.
5304 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5305 Declare.
5306
a00caa12
TT
53072020-04-08 Tom Tromey <tromey@adacore.com>
5308
5309 * complaints.h (stop_whining): Declare at top-level.
5310 (complaint): Don't declare stop_whining.
5311
d41b524f
TT
53122020-04-08 Tom Tromey <tromey@adacore.com>
5313
5314 * windows-nat.c (windows_nat::handle_output_debug_string):
5315 Rename. No longer static.
5316 * nat/windows-nat.h (handle_output_debug_string): Declare.
5317
3c76026d
TT
53182020-04-08 Tom Tromey <tromey@adacore.com>
5319
5320 * windows-nat.c (current_process_handle, current_process_id)
5321 (main_thread_id, last_sig, current_event, last_wait_event)
5322 (current_windows_thread, desired_stop_thread_id, pending_stops)
5323 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5324 (display_selectors, fake_create_process)
5325 (get_windows_debug_event): Update.
5326 * nat/windows-nat.h (current_process_handle, current_process_id)
5327 (main_thread_id, last_sig, current_event, last_wait_event)
5328 (current_windows_thread, desired_stop_thread_id, pending_stops)
5329 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5330 * nat/windows-nat.c (current_process_handle, current_process_id)
5331 (main_thread_id, last_sig, current_event, last_wait_event)
5332 (current_windows_thread, desired_stop_thread_id, pending_stops)
5333 (siginfo_er): New globals. Move from windows-nat.c.
5334
9d8679cc
TT
53352020-04-08 Tom Tromey <tromey@adacore.com>
5336
5337 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5338 (handle_load_dll): Update.
5339 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5340
28688adf
TT
53412020-04-08 Tom Tromey <tromey@adacore.com>
5342
5343 * windows-nat.c (enum thread_disposition_type): Move to
5344 nat/windows-nat.h.
5345 (windows_nat::thread_rec): Rename from thread_rec. No longer
5346 static.
5347 (windows_add_thread, windows_nat_target::fetch_registers)
5348 (windows_nat_target::store_registers, handle_exception)
5349 (windows_nat_target::resume, get_windows_debug_event)
5350 (windows_nat_target::get_tib_address)
5351 (windows_nat_target::thread_name)
5352 (windows_nat_target::thread_alive): Update.
5353 * nat/windows-nat.h (enum thread_disposition_type): Move from
5354 windows-nat.c.
5355 (thread_rec): Declare.
5356
4834dad0
TT
53572020-04-08 Tom Tromey <tromey@adacore.com>
5358
5359 * windows-nat.c: Add "using namespace".
5360 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5361 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5362
65bafd5b
TT
53632020-04-08 Tom Tromey <tromey@adacore.com>
5364
5365 * nat/windows-nat.h (struct windows_thread_info): Declare
5366 destructor.
5367 * nat/windows-nat.c (~windows_thread_info): New.
5368
0a4afda3
TT
53692020-04-08 Tom Tromey <tromey@adacore.com>
5370
5371 PR gdb/22992
5372 * windows-nat.c (current_event): Update comment.
5373 (last_wait_event, desired_stop_thread_id): New globals.
5374 (struct pending_stop): New.
5375 (pending_stops): New global.
5376 (windows_nat_target) <stopped_by_sw_breakpoint>
5377 <supports_stopped_by_sw_breakpoint>: New methods.
5378 (windows_fetch_one_register): Add assertions. Adjust PC.
5379 (windows_continue): Handle pending stops. Suspend other threads
5380 when stepping. Use last_wait_event
5381 (wait_for_debug_event): New function.
5382 (get_windows_debug_event): Use wait_for_debug_event. Handle
5383 pending stops. Queue spurious stops.
5384 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5385 (windows_nat_target::kill): Use wait_for_debug_event.
5386 * nat/windows-nat.h (struct windows_thread_info)
5387 <stopped_at_software_breakpoint>: New field.
5388 * nat/windows-nat.c (windows_thread_info::resume): Clear
5389 stopped_at_software_breakpoint.
5390
8e61ebec
TT
53912020-04-08 Tom Tromey <tromey@adacore.com>
5392
5393 * windows-nat.c (enum thread_disposition_type): New.
5394 (thread_rec): Replace "get_context" parameter with "disposition";
5395 change type.
5396 (windows_add_thread, windows_nat_target::fetch_registers)
5397 (windows_nat_target::store_registers, handle_exception)
5398 (windows_nat_target::resume, get_windows_debug_event)
5399 (windows_nat_target::get_tib_address)
5400 (windows_nat_target::thread_name)
5401 (windows_nat_target::thread_alive): Update.
5402
98a03287
TT
54032020-04-08 Tom Tromey <tromey@adacore.com>
5404
5405 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5406 (windows_continue): Use windows_continue::resume.
5407 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5408 resume>: Declare new methods.
5409 * nat/windows-nat.c: New file.
5410 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5411
7c7411bc
TT
54122020-04-08 Tom Tromey <tromey@adacore.com>
5413
5414 * windows-nat.c (windows_add_thread, windows_delete_thread)
5415 (windows_nat_target::fetch_registers)
5416 (windows_nat_target::store_registers, fake_create_process)
5417 (windows_nat_target::resume, windows_nat_target::resume)
5418 (get_windows_debug_event, windows_nat_target::wait)
5419 (windows_nat_target::pid_to_str)
5420 (windows_nat_target::get_tib_address)
5421 (windows_nat_target::get_ada_task_ptid)
5422 (windows_nat_target::thread_name)
5423 (windows_nat_target::thread_alive): Use lwp, not tid.
5424
2950fdf7
TT
54252020-04-08 Tom Tromey <tromey@adacore.com>
5426
5427 * windows-nat.c (handle_exception)
5428 (windows_nat_target::thread_name): Update.
5429 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5430 <name>: Now unique_xmalloc_ptr.
5431
62fe396b
TT
54322020-04-08 Tom Tromey <tromey@adacore.com>
5433
5434 * windows-nat.c (thread_rec)
5435 (windows_nat_target::fetch_registers): Update.
5436 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5437 Update comment.
5438 <debug_registers_changed, reload_context>: Now bool.
5439
e9534bd2
TT
54402020-04-08 Tom Tromey <tromey@adacore.com>
5441
5442 * windows-nat.c (windows_add_thread): Use new.
5443 (windows_init_thread_list, windows_delete_thread): Use delete.
5444 (get_windows_debug_event): Update.
5445 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5446 destructor, and initializers.
5447
ae1f8880
TT
54482020-04-08 Tom Tromey <tromey@adacore.com>
5449
5450 * windows-nat.c (struct windows_thread_info): Remove.
5451 * nat/windows-nat.h: New file.
5452
55a1e039
TT
54532020-04-08 Tom Tromey <tromey@adacore.com>
5454
5455 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5456 (thread_rec, windows_add_thread, windows_delete_thread)
5457 (windows_continue): Update.
5458
93366324
TT
54592020-04-08 Tom Tromey <tromey@adacore.com>
5460
5461 * windows-nat.c (struct windows_thread_info): Remove typedef.
5462 (thread_head): Remove.
5463 (thread_list): New global.
5464 (thread_rec, windows_add_thread, windows_init_thread_list)
5465 (windows_delete_thread, windows_continue): Update.
5466
0f2265e2
SM
54672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5468
5469 * windows-tdep.h (windows_init_abi): Add comment.
5470 (cygwin_init_abi): New declaration.
5471 * windows-tdep.c: Split signal enumeration in two, one for
5472 Windows and one for Cygwin.
5473 (windows_gdb_signal_to_target): Only deal with signal of the
5474 Windows OS ABI.
5475 (cygwin_gdb_signal_to_target): New function.
5476 (windows_init_abi): Rename to windows_init_abi_common, don't set
5477 gdb_signal_to_target gdbarch method. Add new new function with
5478 this name.
5479 (cygwin_init_abi): New function.
5480 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5481 comment. Don't call windows_init_abi.
5482 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5483 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5484 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5485 i386_windows_init_abi_common, don't call windows_init_abi. Add
5486 a new function of this name.
5487 (i386_cygwin_init_abi): New function.
5488 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5489 OS ABI Cygwin.
5490
3810f182
SM
54912020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5494 parameter.c.
5495 (dwarf2_read_gdb_index): Update.
5496
063f8e80
KR
54972020-04-07 Kamil Rytarowski <n54@gmx.com>
5498
5499 * nbsd-tdep.c: Include "objfiles.h".
5500 (nbsd_skip_solib_resolver): New.
5501 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5502
85a9510c 55032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5504
5505 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5506 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5507 with DW_LLE_base_addressx are being emitted in DWARFv5.
5508 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5509 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5510 unsigned integer.
5511
9fc3eaae 55122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5513
5514 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5515 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5516 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5517 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5518 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5519 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5520 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5521
5522
41144253 55232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5524
5525 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5526 (read_loclist_index): New function definition.
5527 (lookup_loclist_base): New function definition.
5528 (read_loclist_header): New function definition.
5529 (dwarf2_cu): Add loclist_base and loclist_header field.
5530 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5531 (read_full_die_1): Read the value of DW_AT_loclists_base.
5532 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5533 (read_attribute_value): Handle DW_FORM_loclistx.
5534 (skip_one_die): Handle DW_FORM_loclistx.
5535 (loclist_header): New structure declaration.
5536 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5537
9f4e76a4
SM
55382020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5539
5540 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5541 constructor. Remove `addr` parameter from other constructor and
5542 add `per_cu` parameter.
5543 * dwarf2/read.c (create_partial_symtab): Update.
5544
25c11aca
TV
55452020-04-07 Tom de Vries <tdevries@suse.de>
5546
5547 PR symtab/25796
5548 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5549 (partial_die_info::fixup): Inherit has_const_value.
5550
5707e24b
TV
55512020-04-07 Tom de Vries <tdevries@suse.de>
5552
5553 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5554 symbols without address.
5555
05f00e22
KR
55562020-04-06 Kamil Rytarowski <n54@gmx.com>
5557
5558 * nbsd-nat.h (struct thread_info): Add forward declaration.
5559 (nbsd_nat_target::thread_alive): Add.
5560 (nbsd_nat_target::thread_name): Likewise.
5561 (nbsd_nat_target::update_thread_list): Likewise.
5562 (update_thread_list::post_attach): Likewise.
5563 (post_attach::pid_to_str): Likewise.
5564 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5565 (nbsd_thread_lister): Add.
5566 (nbsd_nat_target::thread_alive): Likewise.
5567 (nbsd_nat_target::thread_name): Likewise.
5568 (nbsd_add_threads): Likewise.
5569 (update_thread_list::post_attach): Likewise.
5570 (nbsd_nat_target::update_thread_list): Likewise.
5571 (post_attach::pid_to_str): Likewise.
5572
6ee448cc
TT
55732020-04-06 Tom Tromey <tromey@adacore.com>
5574
5575 * ada-valprint.c (print_variant_part): Extract the variant field.
5576 (print_field_values): Use the field as the outer value when
5577 recursing.
5578
dea34e8c
TT
55792020-04-06 Tom Tromey <tromey@adacore.com>
5580
5581 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5582 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5583 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5584 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5585 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5586
93689ce9
TT
55872020-04-06 Tom Tromey <tromey@adacore.com>
5588
5589 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5590 TYPE_CODE_ERROR.
5591
79743962
KR
55922020-04-06 Kamil Rytarowski <n54@gmx.com>
5593
5594 * nbsd-tdep.c: Include "gdbarch.h".
5595 Define enum with NetBSD signal numbers.
5596 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5597 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5598 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5599 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5600 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5601 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5602 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5603 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5604 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5605 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5606 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5607 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5608
9e7c9a03
HD
56092020-04-03 Hannes Domani <ssbssa@yahoo.de>
5610
5611 PR gdb/25325
5612 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5613
d9e49b61
TT
56142020-04-03 Tom Tromey <tromey@adacore.com>
5615
5616 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5617 Read constant block.
5618
e0fc5c3f
SM
56192020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5622 (gdb_bfd_get_full_section_contents): New declaration.
5623 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5624 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5625 gdb_bfd_get_full_section_contents.
5626
e2ff18a0
SM
56272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5628
5629 * exec.c (build_section_table): Replace internal_error with
5630 gdb_assert.
5631 (section_table_xfer_memory_partial): Likewise.
5632 * mdebugread.c (parse_partial_symbols): Likewise.
5633 * psymtab.c (lookup_partial_symbol): Likewise.
5634 * utils.c (wrap_here): Likewise.
5635
0830d301
TT
56362020-04-02 Tom Tromey <tromey@adacore.com>
5637
5638 * f-lang.c (build_fortran_types): Use arch_type to initialize
5639 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5640
e7da7f8f
TT
56412020-04-02 Tom Tromey <tromey@adacore.com>
5642
5643 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5644 of attributes.
5645
c90d28ac
AB
56462020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5647 Bernd Edlinger <bernd.edlinger@hotmail.de>
5648 Tom Tromey <tromey@adacore.com>
5649
5650 * buildsym.c (buildsym_compunit::record_line): Remove
5651 deduplication code.
5652
1aa98955
TV
56532020-04-02 Tom de Vries <tdevries@suse.de>
5654
5655 PR ada/24671
5656 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5657
d3214198
TV
56582020-04-02 Tom de Vries <tdevries@suse.de>
5659
5660 * dwarf2/read.c (dwarf2_gdb_index_functions,
5661 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5662 NULL.
5663 * psymtab.c (psym_lookup_global_symbol_language): New function.
5664 (psym_functions): Init psym_lookup_global_symbol_language with
5665 psym_lookup_global_symbol_language.
5666 * symfile-debug.c (debug_sym_quick_functions): Init
5667 lookup_global_symbol_language with NULL.
5668 * symfile.c (set_initial_language): Remove fixme comment.
5669 * symfile.h (struct quick_symbol_functions): Add
5670 lookup_global_symbol_language.
5671 * symtab.c (find_quick_global_symbol_language): New function.
5672 (find_main_name): Use find_quick_global_symbol_language.
5673
2836752f
SM
56742020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5677
64dc2d4b
BE
56782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5679
5680 * buildsym.c (record_line): Fix undefined behavior and preserve
5681 lines at eof.
5682
bbe3dc41
BE
56832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5684
5685 * buildsym.c (record_line): Fix the resizing condition.
5686
6b4a335b
TT
56872020-04-01 Tom Tromey <tom@tromey.com>
5688
5689 * value.h (value_literal_complex): Add comment.
5690 * valops.c (value_literal_complex): Refer to value.h.
5691
3638a098
TT
56922020-04-01 Tom Tromey <tom@tromey.com>
5693
5694 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5695 (scalar_type): New rule, from typebase.
5696 (typebase): Use scalar_type. Recognize complex types.
5697 (field_name): Handle FLOAT_KEYWORD.
5698 (ident_tokens): Add _Complex and __complex__.
5699
c34e8714
TT
57002020-04-01 Tom Tromey <tom@tromey.com>
5701
5702 PR exp/25299:
5703 * valarith.c (promotion_type, complex_binop): New functions.
5704 (scalar_binop): Handle complex numbers. Use promotion_type.
5705 (value_pos, value_neg, value_complement): Handle complex numbers.
5706
fa649bb7
TT
57072020-04-01 Tom Tromey <tom@tromey.com>
5708
5709 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
5710 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
5711 (parse_number): Handle complex numbers.
5712
981c08ce
TT
57132020-04-01 Tom Tromey <tom@tromey.com>
5714
5715 * c-valprint.c (c_decorations): Change complex suffix to "i".
5716
4c99290d
TT
57172020-04-01 Tom Tromey <tom@tromey.com>
5718
5719 * valprint.c (generic_value_print_complex): Use accessors.
5720 * value.h (value_real_part, value_imaginary_part): Declare.
5721 * valops.c (value_real_part, value_imaginary_part): New
5722 functions.
5723 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
5724
5b930b45
TT
57252020-04-01 Tom Tromey <tom@tromey.com>
5726
5727 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
5728 (read_range_type): Update.
5729 * mdebugread.c (basic_type): Update.
5730 * go-lang.c (build_go_types): Use init_complex_type.
5731 * gdbtypes.h (struct main_type) <complex_type>: New member.
5732 (init_complex_type): Update.
5733 (arch_complex_type): Don't declare.
5734 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
5735 Make name if none given. Use alloc_type_copy. Look for cached
5736 complex type.
5737 (arch_complex_type): Remove.
5738 (gdbtypes_post_init): Use init_complex_type.
5739 * f-lang.c (build_fortran_types): Use init_complex_type.
5740 * dwarf2/read.c (read_base_type): Update.
5741 * d-lang.c (build_d_types): Use init_complex_type.
5742 * ctfread.c (read_base_type): Update.
5743
53cccef1
TBA
57442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5745
5746 * infrun.c (stop_all_threads): Update assertion, plus when
5747 stopping threads, take into account that we might be trying
5748 to stop an all-stop target.
5749 (stop_waiting): Call 'stop_all_threads' if there exists a
5750 non-stop target.
5751
a0714d30
TBA
57522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5753
5754 * target.h (exists_non_stop_target): New function declaration.
5755 * target.c (exists_non_stop_target): New function.
5756
60e22c1e
HD
57572020-04-01 Hannes Domani <ssbssa@yahoo.de>
5758
5759 PR gdb/24789
5760 * eval.c (is_integral_or_integral_reference): New function.
5761 (evaluate_subexp_standard): Allow integer references in
5762 pointer arithmetic.
5763
e139a727
TBA
57642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5765
5766 * remote.c (remote_target::remote_parse_stop_reply): Remove the
5767 check for no ptid in the stop reply when the target is non-stop.
5768
e0802d59
TT
57692020-04-01 Tom Tromey <tromey@adacore.com>
5770
5771 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
5772 "name" parameter to rvalue reference. Initialize m_name_holder.
5773 <lookup_name_info>: New overloads.
5774 <name>: Return gdb::string_view.
5775 <c_str>: New method.
5776 <make_ignore_params>: Update.
5777 <search_name_hash>: Update.
5778 <language_lookup_name>: Return const char *.
5779 <m_name>: Change type.
5780 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
5781 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
5782 (lookup_name_info::match_any): Update.
5783 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
5784 Update.
5785 * minsyms.c (linkage_name_str): Update.
5786 * language.c (default_symbol_name_matcher): Update.
5787 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
5788 Update.
5789 * ada-lang.c (ada_fold_name): Change parameter to string_view.
5790 (ada_lookup_name_info::ada_lookup_name_info): Update.
5791 (literal_symbol_name_matcher): Update.
5792
8c072cb6
TT
57932020-04-01 Tom Tromey <tromey@adacore.com>
5794
5795 * psymtab.c (psymtab_search_name): Remove function.
5796 (psym_lookup_symbol): Create search name and lookup name here.
5797 (lookup_partial_symbol): Remove "name" parameter; add
5798 lookup_name.
5799 (psym_expand_symtabs_for_function): Update.
5800
6f29a534
TT
58012020-03-31 Joel Jones <joelkevinjones@gmail.com>
5802
5803 PR tui/25597:
5804 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
5805
af62665e
TT
58062020-03-31 Tom Tromey <tromey@adacore.com>
5807
5808 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
5809 memcpy.
5810
d1a89da5
NC
58112020-03-30 Nelson Chu <nelson.chu@sifive.com>
5812
5813 * features/riscv/32bit-csr.xml: Regenerated.
5814 * features/riscv/64bit-csr.xml: Regenerated.
5815
d8af9068
TT
58162020-03-30 Tom Tromey <tromey@adacore.com>
5817
5818 * ada-valprint.c (print_variant_part): Update.
5819 * ada-lang.h (ada_which_variant_applies): Update.
5820 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
5821 outer_valaddr parameters; replace with "outer" value parameter.
5822 (to_fixed_variant_branch_type): Update.
5823
227c0bf4
PFC
58242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5825
5826 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
5827 <list>. Remove inclusion of observable.h.
5828 (PPC_DEBUG_CURRENT_VERSION): Move up define.
5829 (struct arch_lwp_info): New struct.
5830 (class ppc_linux_dreg_interface): New class.
5831 (struct ppc_linux_process_info): New struct.
5832 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
5833 <low_new_clone, low_forget_process, low_prepare_to_resume>
5834 <copy_thread_dreg_state, mark_thread_stale>
5835 <mark_debug_registers_changed, register_hw_breakpoint>
5836 <clear_hw_breakpoint, register_wp, clear_wp>
5837 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
5838 <num_memory_accesses, get_trigger_type>
5839 <create_watchpoint_request, hwdebug_point_cmp>
5840 <init_arch_lwp_info, get_arch_lwp_info>
5841 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
5842 methods.
5843 <struct ptid_hash>: New inner struct.
5844 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
5845 members.
5846 (saved_dabr_value, hwdebug_info, max_slots_number)
5847 (struct hw_break_tuple, struct thread_points, ppc_threads)
5848 (have_ptrace_hwdebug_interface)
5849 (hwdebug_find_thread_points_by_tid)
5850 (hwdebug_insert_point, hwdebug_remove_point): Remove.
5851 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
5852 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
5853 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
5854 use m_dreg_interface.
5855 (hwdebug_point_cmp): Change to...
5856 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
5857 reference arguments instead of pointers.
5858 (ppc_linux_nat_target::ranged_break_num_registers): Use
5859 m_dreg_interface.
5860 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
5861 m_dreg_interface. Call register_hw_breakpoint.
5862 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
5863 m_dreg_interface. Call clear_hw_breakpoint.
5864 (get_trigger_type): Change to...
5865 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
5866 comment.
5867 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
5868 use m_dreg_interface. Call register_hw_breakpoint.
5869 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
5870 use m_dreg_interface. Call clear_hw_breakpoint.
5871 (can_use_watchpoint_cond_accel): Change to...
5872 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
5873 method. Update comment, use m_dreg_interface and
5874 m_process_info.
5875 (calculate_dvc): Change to...
5876 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
5877 m_dreg_interface.
5878 (num_memory_accesses): Change to...
5879 (ppc_linux_nat_target::num_memory_accesses): ...this method.
5880 (check_condition): Change to...
5881 (ppc_linux_nat_target::check_condition): ...this method.
5882 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
5883 comment, use m_dreg_interface.
5884 (create_watchpoint_request): Change to...
5885 (ppc_linux_nat_target::create_watchpoint_request): ...this
5886 method. Use m_dreg_interface.
5887 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
5888 m_dreg_interface. Call register_hw_breakpoint or register_wp.
5889 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
5890 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
5891 (ppc_linux_nat_target::low_forget_process)
5892 (ppc_linux_nat_target::low_new_fork)
5893 (ppc_linux_nat_target::low_new_clone)
5894 (ppc_linux_nat_target::low_delete_thread)
5895 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
5896 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
5897 only call mark_thread_stale.
5898 (ppc_linux_thread_exit): Remove.
5899 (ppc_linux_nat_target::stopped_data_address): Change to...
5900 (ppc_linux_nat_target::low_stopped_data_address): This. Add
5901 comment, use m_dreg_interface and m_thread_hw_breakpoints.
5902 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
5903 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
5904 comment. Call low_stopped_data_address.
5905 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
5906 m_dreg_interface.
5907 (ppc_linux_nat_target::masked_watch_num_registers): Use
5908 m_dreg_interface.
5909 (ppc_linux_nat_target::copy_thread_dreg_state)
5910 (ppc_linux_nat_target::mark_thread_stale)
5911 (ppc_linux_nat_target::mark_debug_registers_changed)
5912 (ppc_linux_nat_target::register_hw_breakpoint)
5913 (ppc_linux_nat_target::clear_hw_breakpoint)
5914 (ppc_linux_nat_target::register_wp)
5915 (ppc_linux_nat_target::clear_wp)
5916 (ppc_linux_nat_target::init_arch_lwp_info)
5917 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
5918 (_initialize_ppc_linux_nat): Remove observer callback.
5919
4db10d8f
PFC
59202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5921
5922 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
5923 (ppc_linux_nat_target::auxv_parse)
5924 (ppc_linux_nat_target::read_description)
5925 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5926 Move up.
5927
1310c1b0
PFC
59282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5929
5930 * linux-nat.h (low_new_clone): New method.
5931 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
5932
69b037c3
SM
59332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
5936 (dbx_expand_psymtab): ... this.
5937 (start_psymtab): Update.
5938 * mdebugread.c (psymtab_to_symtab_1): Rename to...
5939 (mdebug_expand_psymtab): ... this.
5940 (parse_partial_symbols): Update.
5941 (new_psymtab): Update.
5942 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
5943 (xcoff_expand_psymtab): ... this.
5944 (xcoff_start_psymtab): Update.
5945
48993951
SM
59462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
5949 <expand_dependencies>: ... this.
5950 * psymtab.c (partial_symtab::read_dependencies): Rename to...
5951 (partial_symtab::expand_dependencies): ... this.
5952 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
5953 Update.
5954 (dwarf2_psymtab::expand_psymtab): Update.
5955 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5956 * mdebugread.c (psymtab_to_symtab_1): Update.
5957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5958
3ad83046
SM
59592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * psympriv.h (discard_psymtab): Remove.
5962 * dbxread.c (dbx_end_psymtab): Update.
5963 * xcoffread.c (xcoff_end_psymtab): Update.
5964
4d1b9ab6
TT
59652020-03-28 Tom Tromey <tom@tromey.com>
5966
5967 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
5968 comment.
5969
f1749218
TT
59702020-03-28 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
5973
ebea7626
HD
59742020-03-27 Hannes Domani <ssbssa@yahoo.de>
5975
5976 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5977
a879b4d5
JB
59782020-03-26 John Baldwin <jhb@FreeBSD.org>
5979
5980 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
5981
0826b30a
TT
59822020-03-26 Tom Tromey <tom@tromey.com>
5983
5984 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5985 (mark_common_block_symbol_computed, read_tag_string_type)
5986 (attr_to_dynamic_prop, read_subrange_type): Update.
5987 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5988 to be methods on struct attribute.
5989 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5990 (read_call_site_scope, partial_die_info::read)
5991 (partial_die_info::read, lookup_die_type, follow_die_ref):
5992 Update.
5993 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5994 from dwarf2_get_ref_die_offset.
5995 (attribute::constant_value): New method, from
5996 dwarf2_get_attr_constant_value.
5997 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5998 Declare method.
5999 <constant_value>: New method.
6000
2b2558bf
TT
60012020-03-26 Tom Tromey <tom@tromey.com>
6002
6003 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6004 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6005 (dwarf_type_encoding_name): Move to stringify.c.
6006 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6007 * dwarf2/stringify.c: New file.
6008 * dwarf2/stringify.h: New file.
6009
eeb64781
TT
60102020-03-26 Tom Tromey <tom@tromey.com>
6011
6012 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6013 Rewrite.
6014
a39fdb41
TT
60152020-03-26 Tom Tromey <tom@tromey.com>
6016
6017 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6018 methods.
6019 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6020 (lookup_ranges_base): Likewise.
6021 (read_cutu_die_from_dwo, read_full_die_1): Update.
6022
436c571c
TT
60232020-03-26 Tom Tromey <tom@tromey.com>
6024
6025 * dwarf2/read.c (read_import_statement, read_file_scope)
6026 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6027 (read_lexical_block_scope, read_call_site_scope)
6028 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6029 (handle_struct_member_die, process_structure_scope)
6030 (update_enumeration_type_from_children)
6031 (process_enumeration_scope, read_array_type, read_common_block)
6032 (read_namespace, read_module, read_subroutine_type): Update.
6033 (sibling_die): Remove.
6034
052c8bb8
TT
60352020-03-26 Tom Tromey <tom@tromey.com>
6036
6037 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6038 (build_type_psymtabs_reader, read_structure_type)
6039 (read_enumeration_type, read_full_die_1): Update.
6040 (dwarf2_attr_no_follow): Move to die.h.
6041 * dwarf2/die.h (struct die_info) <attr>: New method.
6042
2b24b6e4
TT
60432020-03-26 Tom Tromey <tom@tromey.com>
6044
6045 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6046 <base_address>: Now an optional.
6047 (dwarf2_find_base_address, dwarf2_rnglists_process)
6048 (dwarf2_ranges_process, fill_in_loclist_baton)
6049 (dwarf2_symbol_mark_computed): Update.
6050
c2d50fd0
TT
60512020-03-26 Tom Tromey <tom@tromey.com>
6052
6053 * dwarf2/read.c (struct die_info): Move to die.h.
6054 * dwarf2/die.h: New file.
6055
0df7ad3a
TT
60562020-03-26 Tom Tromey <tom@tromey.com>
6057
6058 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6059 * dwarf2/read.c
6060 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6061 Move to line-header.c.
6062 (read_checked_initial_length_and_offset, read_formatted_entries):
6063 Likewise.
6064 (dwarf_decode_line_header): Split into two.
6065 * dwarf2/line-header.c
6066 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6067 Move from read.c.
6068 (read_checked_initial_length_and_offset, read_formatted_entries):
6069 Likewise.
6070 (dwarf_decode_line_header): New function, split from read.c.
6071
86c0bb4c
TT
60722020-03-26 Tom Tromey <tom@tromey.com>
6073
6074 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6075 Declare method.
6076 * dwarf2/read.c (read_attribute_value): Update.
6077 (dwarf2_per_objfile::read_line_string): Rename from
6078 read_indirect_line_string.
6079 (read_formatted_entries): Update.
6080
2ef46c2f
TT
60812020-03-26 Tom Tromey <tom@tromey.com>
6082
6083 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6084 variable.
6085
4f9c1eda
TT
60862020-03-26 Tom Tromey <tom@tromey.com>
6087
6088 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6089 const.
6090 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6091 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6092 parameter const.
6093
5a0e026f
TT
60942020-03-26 Tom Tromey <tom@tromey.com>
6095
6096 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6097 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6098 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6099 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6100
8844c11b
TT
61012020-03-26 Tom Tromey <tom@tromey.com>
6102
6103 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6104 file_names_size, file_full_name, file_file_name>: Use const.
6105 <file_name_at, file_names>: Add const overload.
6106 * dwarf2/line-header.c (line_header::file_file_name)
6107 (line_header::file_full_name): Update.
6108
c90ec28a
TT
61092020-03-26 Tom Tromey <tom@tromey.com>
6110
6111 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6112 (macro_start_file, consume_improper_spaces)
6113 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6114 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6115 (dwarf_decode_macros): Move to macro.c.
6116 * dwarf2/macro.c: New file.
6117 * dwarf2/macro.h: New file.
6118 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6119
4f44ae6c
TT
61202020-03-26 Tom Tromey <tom@tromey.com>
6121
6122 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6123 method.
6124 * dwarf2/section.c: New method. From
6125 read_indirect_string_at_offset_from.
6126 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6127 (read_indirect_string_at_offset_from): Move to section.c.
6128 (read_indirect_string_at_offset): Rewrite.
6129 (read_indirect_line_string_at_offset): Remove.
6130 (read_indirect_string, read_indirect_line_string)
6131 (dwarf_decode_macro_bytes): Update.
6132
a0194fa8
TT
61332020-03-26 Tom Tromey <tom@tromey.com>
6134
6135 * dwarf2/section.h (struct dwarf2_section_info)
6136 <overload_complaint>: Declare.
6137 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6138 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6139 Rename from dwarf2_section_buffer_overflow_complaint.
6140 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6141 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6142
3d27bbdb
TT
61432020-03-26 Tom Tromey <tom@tromey.com>
6144
6145 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6146 Declare.
6147 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6148 Move from read.c.
6149 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6150 to section.c.
6151
9eac9650
TT
61522020-03-26 Tom Tromey <tom@tromey.com>
6153
6154 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6155
bf80d710
TT
61562020-03-26 Tom Tromey <tom@tromey.com>
6157
6158 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6159 "builder".
6160 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6161 parameter.
6162 (dwarf_decode_macros): Update.
6163
0314b390
TT
61642020-03-26 Tom Tromey <tom@tromey.com>
6165
6166 * dwarf2/read.c (read_attribute_value): Update.
6167 (read_indirect_string_from_dwz): Move to dwz.c; change into
6168 method.
6169 (dwarf_decode_macro_bytes): Update.
6170 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6171 * dwarf2/dwz.c: New file.
6172 * Makefile.in (COMMON_SFILES): Add dwz.c.
6173
9fda78b6
TT
61742020-03-26 Tom Tromey <tom@tromey.com>
6175
6176 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6177 * dwarf2/read.c: Add include.
6178 * dwarf2/index-write.c: Add include.
6179 * dwarf2/index-cache.c: Add include.
6180 * dwarf2/dwz.h: New file.
6181
33aa3c10
TT
61822020-03-25 Tom Tromey <tom@tromey.com>
6183
6184 * compile/compile-object-load.c (get_out_value_type): Mention
6185 correct symbol name in error message.
6186
d503b685
HD
61872020-03-25 Hannes Domani <ssbssa@yahoo.de>
6188
6189 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6190
7b1eff95
TV
61912020-03-25 Tom de Vries <tdevries@suse.de>
6192
6193 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6194 * symmisc.c (dump_symtab_1): Print user and includes fields.
6195 (maintenance_info_symtabs): Same.
6196
dd895392
AB
61972020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 PR gdb/25534
6200 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6201 (riscv_regcache_cooked_write): New function.
6202 (riscv_push_dummy_call): Use new function.
6203 (riscv_return_value): Likewise.
6204
5ab2fbf1
SM
62052020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6208 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6209 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6210 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6211 * infrun.c (follow_fork): Likewise.
6212 (follow_fork_inferior): Likewise.
6213 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6214 * linux-nat.h (class linux_nat_target): Likewise.
6215 * remote.c (class remote_target) <follow_fork>: Likewise.
6216 (remote_target::follow_fork): Likewise.
6217 * target-delegates.c: Re-generate.
6218 * target.c (default_follow_fork): Likewise.
6219 (target_follow_fork): Likewise.
6220 * target.h (struct target_ops) <follow_fork>: Likewise.
6221 (target_follow_fork): Likewise.
6222
a64fafb5
TV
62232020-03-24 Tom de Vries <tdevries@suse.de>
6224
6225 * psymtab.c (maintenance_info_psymtabs): Print user field.
6226
fe26d3a3
TT
62272020-03-20 Tom Tromey <tromey@adacore.com>
6228
6229 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6230 const.
6231 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6232 const.
6233
c884cc46
SM
62342020-03-20 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * ptrace.m4: Don't check for ptrace declaration.
6237 * config.in: Re-generate.
6238 * configure: Re-generate.
6239 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6240 not defined.
6241
1ff700c2
KR
62422020-03-20 Kamil Rytarowski <n54@gmx.com>
6243
6244 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6245 `PTRACE_TYPE_RET'.
6246 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6247 * sparc-nat.c (gdb_ptrace): Likewise.
6248 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6249
f7d4f0b1
TT
62502020-03-20 Tom Tromey <tromey@adacore.com>
6251
6252 * c-exp.y (lex_one_token): Fix assert.
6253
f67210ff
TT
62542020-03-20 Tom Tromey <tromey@adacore.com>
6255
6256 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6257 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6258 strncpy call.
6259
1773be9e
TT
62602020-03-20 Tom Tromey <tromey@adacore.com>
6261
6262 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6263
70304be9
TT
62642020-03-20 Tom Tromey <tromey@adacore.com>
6265
6266 * ada-valprint.c (print_variant_part): Remove parameters; switch
6267 to value-based API.
6268 (print_field_values): Likewise.
6269 (ada_val_print_struct_union): Likewise.
6270 (ada_value_print_1): Update.
6271
9faa006d
KR
62722020-03-20 Kamil Rytarowski <n54@gmx.com>
6273
6274 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6275 nbsd_nat_target instead of inf_ptrace_target.
6276 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6277 nbsd_nat_target.
6278
4a90f062
KR
62792020-03-20 Kamil Rytarowski <n54@gmx.com>
6280
6281 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6282 it to the ptrace call.
6283 * (store_registers): Likewise.
6284
62852020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6286
6287 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6288 it to the ptrace call.
6289 * (store_registers): Likewise.
6290
2d07da27
LM
62912020-03-19 Luis Machado <luis.machado@linaro.org>
6292
6293 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6294 valid, fetch vg value from ptrace.
6295
f09db380
KR
62962020-03-19 Kamil Rytarowski <n54@gmx.com>
6297 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6298 * inf-ptrace.c: Likewise.
6299 * (gdb_ptrace): Add.
6300 * (inf_ptrace_target::resume): Update.
6301 * (inf_ptrace_target::xfer_partial): Likewise.
6302 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6303 * (inf_ptrace_peek_poke): Update.
6304
fcc7376e
KR
63052020-03-19 Kamil Rytarowski <n54@gmx.com>
6306
6307 * x86-bsd-nat.c (gdb_ptrace): New.
6308 * (x86bsd_dr_set): Add new argument `ptid'.
6309 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6310 x86bsd_dr_set_addr): Update.
6311
cada5fc9
AB
63122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6313
6314 * remote.c (remote_target::process_stop_reply): Handle events for
6315 all threads differently.
6316
19a2740f
AB
63172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 * completer.c (completion_tracker::remove_completion): Define new
6320 function.
6321 * completer.h (completion_tracker::remove_completion): Declare new
6322 function.
6323 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6324 when adding a C++ function symbol.
6325
724fd9ba
AB
63262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * completer.c (completion_tracker::completion_hash_entry): Define
6329 new class.
6330 (advance_to_filename_complete_word_point): Call
6331 recompute_lowest_common_denominator.
6332 (completion_tracker::completion_tracker): Call discard_completions
6333 to setup the hash table.
6334 (completion_tracker::discard_completions): Allow for being called
6335 from the constructor, pass new equal function, and element deleter
6336 when constructing the hash table. Initialise new class member
6337 variables.
6338 (completion_tracker::maybe_add_completion): Remove use of
6339 m_entries_vec, and store more information into m_entries_hash.
6340 (completion_tracker::recompute_lcd_visitor): New function, most
6341 content taken from...
6342 (completion_tracker::recompute_lowest_common_denominator):
6343 ...here, this now just visits each item in the hash calling the
6344 above visitor.
6345 (completion_tracker::build_completion_result): Remove use of
6346 m_entries_vec, call recompute_lowest_common_denominator.
6347 * completer.h (completion_tracker::have_completions): Remove use
6348 of m_entries_vec.
6349 (completion_tracker::completion_hash_entry): Declare new class.
6350 (completion_tracker::recompute_lowest_common_denominator): Change
6351 function signature.
6352 (completion_tracker::recompute_lcd_visitor): Declare new function.
6353 (completion_tracker::m_entries_vec): Delete.
6354 (completion_tracker::m_entries_hash): Initialize to NULL.
6355 (completion_tracker::m_lowest_common_denominator_valid): New
6356 member variable.
6357 (completion_tracker::m_lowest_common_denominator_max_length): New
6358 member variable.
6359
5a82b8a1
KR
63602020-03-17 Kamil Rytarowski <n54@gmx.com>
6361
6362 * regformats/regdef.h: Put reg in gdb namespace.
6363
fb516a69
KR
63642020-03-17 Kamil Rytarowski <n54@gmx.com>
6365
6366 * i386-bsd-nat.c (gdb_ptrace): New.
6367 * (i386bsd_fetch_inferior_registers,
6368 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6369 * (i386bsd_fetch_inferior_registers,
6370 i386bsd_store_inferior_registers) Use gdb_ptrace.
6371
1c0aa1fb
KR
63722020-03-17 Kamil Rytarowski <n54@gmx.com>
6373
6374 * amd64-bsd-nat.c (gdb_ptrace): New.
6375 * (amd64bsd_fetch_inferior_registers,
6376 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6377 * (amd64bsd_fetch_inferior_registers,
6378 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6379
5ccd2fb7
KR
63802020-03-17 Kamil Rytarowski <n54@gmx.com>
6381
6382 * user-regs.c (user_reg::read): Rename to...
6383 (user_reg::xread): ...this.
6384 * (append_user_reg): Rename argument `read' to `xread'.
6385 * (user_reg_add_builtin): Likewise.
6386 * (user_reg_add): Likewise.
6387 * (value_of_user_reg): Likewise.
6388
2108a63a
KR
63892020-03-17 Kamil Rytarowski <n54@gmx.com>
6390
6391 * sparc-nat.c (gdb_ptrace): New.
6392 * sparc-nat.c (sparc_fetch_inferior_registers)
6393 (sparc_store_inferior_registers) Remove obsolete comment.
6394 * sparc-nat.c (sparc_fetch_inferior_registers)
6395 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6396 * sparc-nat.c (sparc_fetch_inferior_registers)
6397 (sparc_store_inferior_registers) Use gdb_ptrace.
6398
a225c9a8
KR
63992020-03-17 Kamil Rytarowski <n54@gmx.com>
6400
6401 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6402 it to the ptrace call.
6403 * sh-nbsd-nat.c (store_registers): Likewise.
6404
98097623
KR
64052020-03-17 Kamil Rytarowski <n54@gmx.com>
6406
6407 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6408 nbsd_nat_target instead of inf_ptrace_target.
6409 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6410 nbsd_nat_target.
6411
9e38d619
KR
64122020-03-17 Kamil Rytarowski <n54@gmx.com>
6413
6414 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6415
a2ecbe9f
KR
64162020-03-17 Kamil Rytarowski <n54@gmx.com>
6417
6418 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6419 <sys/sysctl.h>.
6420 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6421
58990295
TV
64222020-03-17 Tom de Vries <tdevries@suse.de>
6423
6424 PR gdb/23710
6425 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6426 fields.
6427 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6428 fields.
6429 (process_imported_unit_die): Skip import of c++ CUs.
6430
771dd3a8
TT
64312020-03-16 Tom Tromey <tom@tromey.com>
6432
6433 * p-valprint.c (pascal_object_print_value): Initialize
6434 base_value.
6435
817a7585
AK
64362020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6437 Shahab Vahedi <shahab@synopsys.com>
6438
6439 * Makefile.in: Add arch/arc.o
6440 * configure.tgt: Likewise.
6441 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6442 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6443 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6444 * arc-tdep.h (arc_read_description): Add proto type.
6445 * arch/arc.c: New file.
6446 * arch/arc.h: Likewise.
6447 * features/Makefile: Replace old target descriptions with new.
6448 * features/arc-arcompact.c: Remove.
6449 * features/arc-arcompact.xml: Likewise.
6450 * features/arc-v2.c: Likewise
6451 * features/arc-v2.xml: Likewise
6452 * features/arc/aux-arcompact.xml: New file.
6453 * features/arc/aux-v2.xml: Likewise.
6454 * features/arc/core-arcompact.xml: Likewise.
6455 * features/arc/core-v2.xml: Likewise.
6456 * features/arc/aux-arcompact.c: Generate.
6457 * features/arc/aux-v2.c: Likewise.
6458 * features/arc/core-arcompact.c: Likewise.
6459 * features/arc/core-v2.c: Likewise.
6460 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6461
67430cd0
TT
64622020-03-16 Tom Tromey <tromey@adacore.com>
6463
6464 PR gdb/25663:
6465 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6466 putting value into bcache.
6467
30efb6c7
SM
64682020-03-16 Simon Marchi <simon.marchi@efficios.com>
6469
6470 PR gdb/21500
6471 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6472 to...
6473 (amd64_windows_init_abi_common): ... this. Don't set size of
6474 long type.
6475 (amd64_windows_init_abi): New function.
6476 (amd64_cygwin_init_abi): New function.
6477 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6478 the Cygwin OS ABI.
6479 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6480 comment.
6481
8db52437
SM
64822020-03-16 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6485 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6486 (pe_import_directory_entry): New struct type.
6487 (is_linked_with_cygwin_dll): New function.
6488 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6489 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6490 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6491
5982a56a
SM
64922020-03-16 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6495 i386_cygwin_core_osabi_sniffer.
6496
7a1998df
SM
64972020-03-16 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * i386-cygwin-tdep.c: Rename to...
6500 * i386-windows-tdep.c: ... this.
6501 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6502 i386-windows-tdep.c.
6503 * configure.tgt: Likewise.
6504
053205cc
SM
65052020-03-16 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6508 * osabi.c (gdb_osabi_names): Add "Windows".
6509 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6510 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6511 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6512 i386_cygwin_osabi_sniffer.
6513 (_initialize_i386_cygwin_tdep): Register OS ABI
6514 GDB_OSABI_WINDOWS for i386.
6515 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6516 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6517 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6518 for x86-64.
6519 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6520 when the target matches '*-*-mingw*'.
6521
fe4b2ee6
SM
65222020-03-16 Simon Marchi <simon.marchi@efficios.com>
6523
6524 * defs.h (enum gdb_osabi): Move to...
6525 * osabi.h (enum gdb_osabi): ... here.
6526 * gdbarch.sh: Include osabi.h in gdbarch.h.
6527 * gdbarch.h: Re-generate.
6528
cb9b645d
SM
65292020-03-16 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6532 function.
6533 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6534
3293bbaf
TT
65352020-03-14 Tom Tromey <tom@tromey.com>
6536
6537 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6538 for C++.
6539 (c_type_print_modifier): Likewise. Add "language" parameter.
6540 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6541 (c_type_print_base_1): Update.
6542 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6543 constants.
6544 * type-stack.c (type_stack::insert): Handle tp_atomic and
6545 tp_restrict.
6546 (type_stack::follow_type_instance_flags): Likewise.
6547 (type_stack::follow_types): Likewise. Merge type-following code.
6548 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6549 (space_identifier, cv_with_space_id)
6550 (const_or_volatile_or_space_identifier_noopt)
6551 (const_or_volatile_or_space_identifier): Remove.
6552 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6553 rules.
6554 (ptr_operator, typebase): Update.
6555 (enum token_flag) <FLAG_C>: New constant.
6556 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6557 "_Atomic".
6558 (lex_one_token): Handle FLAG_C.
6559
154151a6
KR
65602020-03-14 Kamil Rytarowski <n54@gmx.com>
6561
6562 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6563 it to the ptrace call.
6564 * m68k-bsd-nat.c (store_registers): Likewise.
6565
bc107784
KR
65662020-03-14 Kamil Rytarowski <n54@gmx.com>
6567
6568 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6569 gdb_byte *.
6570 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6571 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6572 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6573
01a80117
KR
65742020-03-14 Kamil Rytarowski <n54@gmx.com>
6575
6576 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6577 nbsd_nat_target instead of inf_ptrace_target.
6578 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6579 nbsd_nat_target.
6580
f90280ca
KR
65812020-03-14 Kamil Rytarowski <n54@gmx.com>
6582
6583 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6584 register_t.
6585
6def66f1
KR
65862020-03-14 Kamil Rytarowski <n54@gmx.com>
6587
6588 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6589 it to the ptrace call.
6590 * alpha-bsd-nat.c (store_registers): Likewise.
6591
66eaca97
KR
65922020-03-14 Kamil Rytarowski <n54@gmx.com>
6593
6594 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6595 includes.
6596 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6597 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6598 fill_fpregset): Likewise.
6599
4fed520b
KR
66002020-03-14 Kamil Rytarowski <n54@gmx.com>
6601
6602 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6603 nbsd_nat_target instead of inf_ptrace_target.
6604 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6605 nbsd_nat_target.
6606
2190cf06
KR
66072020-03-14 Kamil Rytarowski <n54@gmx.com>
6608
6609 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6610 register_t.
6611
75c56d3d
KR
66122020-03-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6615 it to the ptrace call.
6616 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6617 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6618 * arm-nbsd-nat.c (store_register): Likewise.
6619 * arm-nbsd-nat.c (store_regs): Likewise.
6620 * arm-nbsd-nat.c (store_fp_register): Likewise.
6621 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6622
6018d381
KR
66232020-03-14 Kamil Rytarowski <n54@gmx.com>
6624
6625 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6626 nbsd_nat_target instead of inf_ptrace_target.
6627 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6628 nbsd_nat_target.
6629
013f99f0
KR
66302020-03-14 Kamil Rytarowski <n54@gmx.com>
6631
6632 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6633 it to the ptrace call.
6634 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6635
12753073
KR
66362020-03-14 Kamil Rytarowski <n54@gmx.com>
6637
6227b330
KR
6638 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6639 it to the ptrace call.
6640 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6641
66422020-03-14 Kamil Rytarowski <n54@gmx.com>
6643
6644 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6645 gdb_byte *.
12753073
KR
6646 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6647
d5be5fa4
KR
66482020-03-14 Kamil Rytarowski <n54@gmx.com>
6649
6650 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6651 instead of inf_ptrace_target.
6652 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6653 nbsd_nat_target.
6654
8110f842
KR
66552020-03-14 Kamil Rytarowski <n54@gmx.com>
6656
6657 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6658 register_t.
6659
52feded7
KR
66602020-03-14 Kamil Rytarowski <n54@gmx.com>
6661
6662 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6663 register_t.
6664
25567eee
KR
66652020-03-14 Kamil Rytarowski <n54@gmx.com>
6666
6667 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6668 register_t.
6669
426a9c18
TT
66702020-03-13 Tom Tromey <tom@tromey.com>
6671
6672 * value.h (val_print): Don't declare.
6673 * valprint.h (val_print_array_elements)
6674 (val_print_scalar_formatted, generic_val_print): Don't declare.
6675 * valprint.c (generic_val_print_array): Take a struct value.
6676 (generic_val_print_ptr, generic_val_print_memberptr)
6677 (generic_val_print_bool, generic_val_print_int)
6678 (generic_val_print_char, generic_val_print_complex)
6679 (generic_val_print): Remove.
6680 (generic_value_print): Update.
6681 (do_val_print): Remove unused parameters. Don't call
6682 la_val_print.
6683 (val_print): Remove.
6684 (common_val_print): Update. Don't call value_check_printable.
6685 (val_print_scalar_formatted, val_print_array_elements): Remove.
6686 * rust-lang.c (rust_val_print): Remove.
6687 (rust_language_defn): Update.
6688 * p-valprint.c (pascal_val_print): Remove.
6689 (pascal_value_print_inner): Update.
6690 (pascal_object_print_val_fields, pascal_object_print_val):
6691 Remove.
6692 (pascal_object_print_static_field): Update.
6693 * p-lang.h (pascal_val_print): Don't declare.
6694 * p-lang.c (pascal_language_defn): Update.
6695 * opencl-lang.c (opencl_language_defn): Update.
6696 * objc-lang.c (objc_language_defn): Update.
6697 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6698 * m2-lang.h (m2_val_print): Don't declare.
6699 * m2-lang.c (m2_language_defn): Update.
6700 * language.h (struct language_defn) <la_val_print>: Remove.
6701 * language.c (unk_lang_value_print_inner): Rename. Change
6702 argument types.
6703 (unknown_language_defn, auto_language_defn): Update.
6704 * go-valprint.c (go_val_print): Remove.
6705 * go-lang.h (go_val_print): Don't declare.
6706 * go-lang.c (go_language_defn): Update.
6707 * f-valprint.c (f_val_print): Remove.
6708 * f-lang.h (f_value_print): Don't declare.
6709 * f-lang.c (f_language_defn): Update.
6710 * d-valprint.c (d_val_print): Remove.
6711 * d-lang.h (d_value_print): Don't declare.
6712 * d-lang.c (d_language_defn): Update.
6713 * cp-valprint.c (cp_print_value_fields)
6714 (cp_print_value_fields_rtti, cp_print_value): Remove.
6715 (cp_print_static_field): Update.
6716 * c-valprint.c (c_val_print_array, c_val_print_ptr)
6717 (c_val_print_struct, c_val_print_union, c_val_print_int)
6718 (c_val_print_memberptr, c_val_print): Remove.
6719 * c-lang.h (c_val_print_array, cp_print_value_fields)
6720 (cp_print_value_fields_rtti): Don't declare.
6721 * c-lang.c (c_language_defn, cplus_language_defn)
6722 (asm_language_defn, minimal_language_defn): Update.
6723 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
6724 (ada_val_print_enum): Take a struct value.
6725 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
6726 (ada_val_print): Remove.
6727 (ada_value_print_1): Update.
6728 (printable_val_type): Remove.
6729 * ada-lang.h (ada_val_print): Don't declare.
6730 * ada-lang.c (ada_language_defn): Update.
6731
42331a1e
TT
67322020-03-13 Tom Tromey <tom@tromey.com>
6733
6734 * valprint.c (do_val_print): Update.
6735 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
6736 a struct value.
6737 (value_to_value_object_no_release): Declare.
6738 * python/py-value.c (value_to_value_object_no_release): New
6739 function.
6740 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
6741 struct value.
6742 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
6743 function.
6744 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
6745 a struct value.
6746 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
6747 Declare.
6748 (gdbscm_apply_val_pretty_printer): Take a struct value.
6749 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
6750 value.
6751 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
6752 value.
6753 * extension-priv.h (struct extension_language_ops)
6754 <apply_val_pretty_printer>: Take a struct value.
6755 * cp-valprint.c (cp_print_value): Create a struct value.
6756 (cp_print_value): Update.
6757
3a916a97
TT
67582020-03-13 Tom Tromey <tom@tromey.com>
6759
6760 * ada-valprint.c (print_field_values): Call common_val_print.
6761
b59eac37
TT
67622020-03-13 Tom Tromey <tom@tromey.com>
6763
6764 * ada-valprint.c (val_print_packed_array_elements): Remove
6765 bitoffset and val parameters. Call common_val_print.
6766 (ada_val_print_string): Remove offset, address, and original_value
6767 parameters.
6768 (ada_val_print_array): Update.
6769 (ada_value_print_array): New function.
6770 (ada_value_print_1): Call it.
6771
03371129
TT
67722020-03-13 Tom Tromey <tom@tromey.com>
6773
6774 * ada-valprint.c (ada_value_print): Use common_val_print.
6775
2e088f8b
TT
67762020-03-13 Tom Tromey <tom@tromey.com>
6777
6778 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
6779
39ef85a8
TT
67802020-03-13 Tom Tromey <tom@tromey.com>
6781
6782 * ada-valprint.c (ada_value_print_num): New function.
6783 (ada_value_print_1): Use it.
6784
b9fa6e07
TT
67852020-03-13 Tom Tromey <tom@tromey.com>
6786
6787 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
6788
416595d6
TT
67892020-03-13 Tom Tromey <tom@tromey.com>
6790
6791 * ada-valprint.c (ada_value_print_ptr): New function.
6792 (ada_value_print_1): Use it.
6793
5b5e15ec
TT
67942020-03-13 Tom Tromey <tom@tromey.com>
6795
6796 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
6797 call common_val_print.
6798 (ada_val_print_1): Update.
6799 (ada_value_print_1): New function.
6800 (ada_value_print_inner): Rewrite.
6801
fbf54e75
TT
68022020-03-13 Tom Tromey <tom@tromey.com>
6803
6804 * cp-valprint.c (cp_print_value_fields): Update.
6805 (cp_print_value): New function.
6806
64b653ca
TT
68072020-03-13 Tom Tromey <tom@tromey.com>
6808
6809 * m2-valprint.c (m2_value_print_inner): Use
6810 cp_print_value_fields.
6811 * cp-valprint.c (cp_print_value_fields): New function.
6812 * c-valprint.c (c_value_print_struct): New function.
6813 (c_value_print_inner): Use c_value_print_struct.
6814 * c-lang.h (cp_print_value_fields): Declare.
6815
6999f067
TT
68162020-03-13 Tom Tromey <tom@tromey.com>
6817
6818 * c-valprint.c (c_value_print_array): New function.
6819 (c_value_print_inner): Use it.
6820
ce80b8bd
TT
68212020-03-13 Tom Tromey <tom@tromey.com>
6822
6823 * c-valprint.c (c_value_print_memberptr): New function.
6824 (c_value_print_inner): Use it.
6825
2faac269
TT
68262020-03-13 Tom Tromey <tom@tromey.com>
6827
6828 * c-valprint.c (c_value_print_int): New function.
6829 (c_value_print_inner): Use it.
6830
da3e2c29
TT
68312020-03-13 Tom Tromey <tom@tromey.com>
6832
6833 * c-valprint.c (c_value_print_ptr): New function.
6834 (c_value_print_inner): Use it.
6835
50836231
TT
68362020-03-13 Tom Tromey <tom@tromey.com>
6837
6838 * c-valprint.c (c_value_print_inner): Rewrite.
6839
4f412b6e
TT
68402020-03-13 Tom Tromey <tom@tromey.com>
6841
6842 * valprint.c (generic_value_print_complex): New function.
6843 (generic_value_print): Use it.
6844
f5354008
TT
68452020-03-13 Tom Tromey <tom@tromey.com>
6846
6847 * valprint.c (generic_val_print_float): Don't call
6848 val_print_scalar_formatted.
6849 (generic_val_print, generic_value_print): Update.
6850
3eec3b05
TT
68512020-03-13 Tom Tromey <tom@tromey.com>
6852
6853 * valprint.c (generic_value_print_char): New function
6854 (generic_value_print): Use it.
6855
fdddfccb
TT
68562020-03-13 Tom Tromey <tom@tromey.com>
6857
6858 * valprint.c (generic_value_print_int): New function.
6859 (generic_value_print): Use it.
6860
6dde7521
TT
68612020-03-13 Tom Tromey <tom@tromey.com>
6862
6863 * valprint.c (generic_value_print_bool): New function.
6864 (generic_value_print): Use it.
6865
4112d2e6
TT
68662020-03-13 Tom Tromey <tom@tromey.com>
6867
6868 * valprint.c (generic_val_print_func): Simplify.
6869 (generic_val_print, generic_value_print): Update.
6870
65786af6
TT
68712020-03-13 Tom Tromey <tom@tromey.com>
6872
6873 * valprint.c (generic_val_print_flags): Remove.
6874 (generic_val_print, generic_value_print): Update.
6875 (val_print_type_code_flags): Add original_value parameter.
6876
40f3ce18
TT
68772020-03-13 Tom Tromey <tom@tromey.com>
6878
6879 * valprint.c (generic_val_print): Update.
6880 (generic_value_print): Update.
6881 * valprint.c (generic_val_print_enum): Don't call
6882 val_print_scalar_formatted.
6883
2a5b130b
TT
68842020-03-13 Tom Tromey <tom@tromey.com>
6885
6886 * valprint.c (generic_value_print): Call generic_value_print_ptr.
6887 * valprint.c (generic_value_print_ptr): New function.
6888
abc66ce9
TT
68892020-03-13 Tom Tromey <tom@tromey.com>
6890
6891 * valprint.c (generic_value_print): Rewrite.
6892
07a32858
TT
68932020-03-13 Tom Tromey <tom@tromey.com>
6894
6895 * p-valprint.c (pascal_object_print_value_fields)
6896 (pascal_object_print_value): New functions.
6897
64d64d3a
TT
68982020-03-13 Tom Tromey <tom@tromey.com>
6899
6900 * p-valprint.c (pascal_value_print_inner): Rewrite.
6901
6a95a1f5
TT
69022020-03-13 Tom Tromey <tom@tromey.com>
6903
6904 * f-valprint.c (f_value_print_innner): Rewrite.
6905
59fcdac6
TT
69062020-03-13 Tom Tromey <tom@tromey.com>
6907
6908 * m2-valprint.c (m2_print_unbounded_array): New overload.
6909 (m2_print_unbounded_array): Update.
6910 (m2_print_array_contents): Take a struct value.
6911 (m2_value_print_inner): Rewrite.
6912
d133c3e1
TT
69132020-03-13 Tom Tromey <tom@tromey.com>
6914
6915 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
6916 (d_value_print_inner): New function.
6917 * d-lang.h (d_value_print_inner): Declare.
6918 * d-lang.c (d_language_defn): Use d_value_print_inner.
6919
23b0f06b
TT
69202020-03-13 Tom Tromey <tom@tromey.com>
6921
6922 * go-valprint.c (go_value_print_inner): New function.
6923 * go-lang.h (go_value_print_inner): Declare.
6924 * go-lang.c (go_language_defn): Use go_value_print_inner.
6925
5f56f7cb
TT
69262020-03-13 Tom Tromey <tom@tromey.com>
6927
6928 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
6929 API.
6930 (rust_val_print): Rewrite.
6931 (rust_value_print_inner): New function, from rust_val_print.
6932 (rust_language_defn): Use rust_value_print_inner.
6933
26792ee0
TT
69342020-03-13 Tom Tromey <tom@tromey.com>
6935
6936 * ada-valprint.c (ada_value_print_inner): New function.
6937 * ada-lang.h (ada_value_print_inner): Declare.
6938 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6939
24051bbe
TT
69402020-03-13 Tom Tromey <tom@tromey.com>
6941
6942 * f-valprint.c (f_value_print_innner): New function.
6943 * f-lang.h (f_value_print_innner): Declare.
6944 * f-lang.c (f_language_defn): Use f_value_print_innner.
6945
c0941be6
TT
69462020-03-13 Tom Tromey <tom@tromey.com>
6947
6948 * p-valprint.c (pascal_value_print_inner): New function.
6949 * p-lang.h (pascal_value_print_inner): Declare.
6950 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
6951
62c4663d
TT
69522020-03-13 Tom Tromey <tom@tromey.com>
6953
6954 * m2-valprint.c (m2_value_print_inner): New function.
6955 * m2-lang.h (m2_value_print_inner): Declare.
6956 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
6957
62182190
TT
69582020-03-13 Tom Tromey <tom@tromey.com>
6959
6960 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
6961 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
6962 * c-valprint.c (c_value_print_inner): New function.
6963 * c-lang.h (c_value_print_inner): Declare.
6964 * c-lang.c (c_language_defn, cplus_language_defn)
6965 (asm_language_defn, minimal_language_defn): Use
6966 c_value_print_inner.
6967
1e592a8a
TT
69682020-03-13 Tom Tromey <tom@tromey.com>
6969
6970 * p-valprint.c (pascal_object_print_value_fields): Now static.
6971 * p-lang.h (pascal_object_print_value_fields): Don't declare.
6972
7fe471e9
TT
69732020-03-13 Tom Tromey <tom@tromey.com>
6974
6975 * c-valprint.c (c_val_print_array): Simplify.
6976
d121c6ce
TT
69772020-03-13 Tom Tromey <tom@tromey.com>
6978
6979 * valprint.c (value_print_array_elements): New function.
6980 * valprint.h (value_print_array_elements): Declare.
6981
4dba70ee
TT
69822020-03-13 Tom Tromey <tom@tromey.com>
6983
6984 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6985 * mips-tdep.c (mips_print_register): Use
6986 value_print_scalar_formatted.
6987
4f9ae810
TT
69882020-03-13 Tom Tromey <tom@tromey.com>
6989
6990 * valprint.h (value_print_scalar_formatted): Declare.
6991 * valprint.c (value_print_scalar_formatted): New function.
6992
156bfec9
TT
69932020-03-13 Tom Tromey <tom@tromey.com>
6994
6995 * valprint.h (generic_value_print): Declare.
6996 * valprint.c (generic_value_print): New function.
6997
2b4e573d
TT
69982020-03-13 Tom Tromey <tom@tromey.com>
6999
7000 * valprint.c (do_val_print): Call la_value_print_inner, if
7001 available.
7002 * rust-lang.c (rust_language_defn): Update.
7003 * p-lang.c (pascal_language_defn): Update.
7004 * opencl-lang.c (opencl_language_defn): Update.
7005 * objc-lang.c (objc_language_defn): Update.
7006 * m2-lang.c (m2_language_defn): Update.
7007 * language.h (struct language_defn) <la_value_print_inner>: New
7008 member.
7009 * language.c (unknown_language_defn, auto_language_defn): Update.
7010 * go-lang.c (go_language_defn): Update.
7011 * f-lang.c (f_language_defn): Update.
7012 * d-lang.c (d_language_defn): Update.
7013 * c-lang.c (c_language_defn, cplus_language_defn)
7014 (asm_language_defn, minimal_language_defn): Update.
7015 * ada-lang.c (ada_language_defn): Update.
7016
a1f6a07c
TT
70172020-03-13 Tom Tromey <tom@tromey.com>
7018
7019 * c-valprint.c (c_value_print): Use common_val_print.
7020
410cf315
TT
70212020-03-13 Tom Tromey <tom@tromey.com>
7022
7023 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7024
72a45c93
TT
70252020-03-13 Tom Tromey <tom@tromey.com>
7026
7027 * f-valprint.c (f77_print_array_1, f_val_print): Use
7028 common_val_print.
7029
040f66bd
TT
70302020-03-13 Tom Tromey <tom@tromey.com>
7031
7032 * riscv-tdep.c (riscv_print_one_register_info): Use
7033 common_val_print.
7034
a6e05a6c
TT
70352020-03-13 Tom Tromey <tom@tromey.com>
7036
7037 * mi/mi-main.c (output_register): Use common_val_print.
7038
3444c526
TT
70392020-03-13 Tom Tromey <tom@tromey.com>
7040
7041 * infcmd.c (default_print_one_register_info): Use
7042 common_val_print.
7043
c2a44efe
TT
70442020-03-13 Tom Tromey <tom@tromey.com>
7045
7046 * valprint.h (common_val_print_checked): Declare.
7047 * valprint.c (common_val_print_checked): New function.
7048 * stack.c (print_frame_arg): Use common_val_print_checked.
7049
b0c26e99
TT
70502020-03-13 Tom Tromey <tom@tromey.com>
7051
7052 * valprint.c (do_val_print): New function, from val_print.
7053 (val_print): Use do_val_print.
7054 (common_val_print): Use do_val_print.
7055
ce3acbe9
TT
70562020-03-13 Tom Tromey <tom@tromey.com>
7057
7058 * valprint.c (value_print): Use scoped_value_mark.
7059
96c7f873
TV
70602020-03-13 Tom de Vries <tdevries@suse.de>
7061
7062 PR symtab/25646
7063 * psymtab.c (partial_symtab::partial_symtab): Don't set
7064 globals_offset and statics_offset. Push element onto
7065 current_global_psymbols and current_static_psymbols stacks.
7066 (concat): New function.
7067 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7068 element from current_global_psymbols and current_static_psymbols
7069 stacks. Concat popped elements to global_psymbols and
7070 static_symbols.
7071 (add_psymbol_to_list): Use current_global_psymbols and
7072 current_static_psymbols stacks.
7073 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7074 current_static_psymbols fields.
7075
6ba0a321
CB
70762020-03-12 Christian Biesinger <cbiesinger@google.com>
7077
7078 * corelow.c (sniff_core_bfd): Remove.
7079 (class core_target) <m_core_vec>: Remove.
7080 (core_target::core_target): Update.
7081 (core_file_fns): Remove.
7082 (deprecated_add_core_fns): Remove.
7083 (default_core_sniffer): Remove.
7084 (sniff_core_bfd): Remove.
7085 (default_check_format): Remove.
7086 (gdb_check_format): Remove.
7087 (core_target_open): Update.
7088 (core_target::get_core_register_section): Update.
7089 (get_core_registers_cb): Update.
7090 (core_target::fetch_registers): Update.
7091 * gdbcore.h (struct core_fns): Remove.
7092 (deprecated_add_core_fns): Remove.
7093 (default_core_sniffer): Remove.
7094 (default_check_format): Remove.
7095
227031b2
TT
70962020-03-12 Tom Tromey <tom@tromey.com>
7097
7098 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7099 CORE_ADDR.
7100 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7101
53807e9f
TT
71022020-03-12 Tom Tromey <tom@tromey.com>
7103
7104 * remote.c (remote_target::download_tracepoint)
7105 (remote_target::enable_tracepoint)
7106 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7107 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7108 sprintf_vma.
7109
64f25102
TT
71102020-03-12 Tom Tromey <tom@tromey.com>
7111
7112 * symfile-mem.c: Update CORE_ADDR size assert.
7113
272cd5a3
SM
71142020-03-12 Simon Marchi <simon.marchi@efficios.com>
7115
7116 * selftest.m4: Move to gdbsupport/.
7117 * acinclude.m4: Update path to selftest.m4.
7118
74cd3f9d
SM
71192020-03-12 Simon Marchi <simon.marchi@efficios.com>
7120
7121 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7122 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7123 gdbarch-selfselftests.c and selftest-arch.c.
7124 (SUBDIR_UNITTESTS_OBS): Rename to...
7125 (SELFTESTS_OBS): ... this.
7126 (COMMON_SFILES): Remove disasm-selftests.c and
7127 gdbarch-selftests.c.
7128 * configure.ac: Don't add selftest-arch.{c,o} to
7129 CONFIG_{SRCS,OBS}.
7130 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7131 preprocessor conditions.
7132
db6878ac
SM
71332020-03-12 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * configure.ac: Don't source bfd/development.sh.
7136 * selftest.m4: Modify comment.
7137 * configure: Re-generate.
7138
4d696a5c
SM
71392020-03-12 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7142 not "true" or "false".
7143 * configure: Re-generate.
7144
8dd8e1c7
CB
71452020-03-12 Christian Biesinger <cbiesinger@google.com>
7146
7147 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7148 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7149 renamed to arm_nbsd_supply_gregset.
7150 (fetch_register): Update to call arm_nbsd_supply_gregset.
7151 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7152 (arm_netbsd_nat_target::fetch_registers): Update.
7153 (fetch_elfcore_registers): Removed.
7154 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7155 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7156 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7157 not require NetBSD system headers.
7158 (arm_nbsd_regset): New struct.
7159 (arm_nbsd_iterate_over_regset_sections): New function.
7160 (arm_netbsd_init_abi_common): Updated to call
7161 set_gdbarch_iterate_over_regset_sections.
7162 * arm-nbsd-tdep.h: New file.
7163
dd69bf7a
KB
71642020-03-11 Kevin Buettner <kevinb@redhat.com>
7165
7166 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7167 recursion.
7168
a0761e34
SM
71692020-03-11 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * configure: Re-generate.
7172
e7a82140
TT
71732020-03-11 Tom Tromey <tromey@adacore.com>
7174
7175 * ada-typeprint.c (print_choices): Fix comment.
7176
dcc050c8
AB
71772020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7178
7179 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7180 previous item in the list, when the list has no items.
7181
1c33af77
TV
71822020-03-11 Tom de Vries <tdevries@suse.de>
7183
7184 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7185 PROP_LOCLIST handling code.
7186
8c95582d
AB
71872020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7188
7189 * buildsym-legacy.c (record_line): Pass extra parameter to
7190 record_line.
7191 * buildsym.c (buildsym_compunit::record_line): Take an extra
7192 parameter, reduce duplication in the line table, and record the
7193 is_stmt flag in the line table.
7194 * buildsym.h (buildsym_compunit::record_line): Add extra
7195 parameter.
7196 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7197 non-statement lines.
7198 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7199 this to the symtab builder.
7200 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7201 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7202 through to dwarf_record_line_1.
7203 * infrun.c (process_event_stop_test): When stepping, don't stop at
7204 a non-statement instruction, and only refresh the step info when
7205 we land in the middle of a line's range. Also add an extra
7206 comment.
7207 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7208 field.
7209 * record-btrace.c (btrace_find_line_range): Only record lines
7210 marked as is-statement.
7211 * stack.c (frame_show_address): Show the frame address if we are
7212 in a non-statement sal.
7213 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7214 (maintenance_print_one_line_table): Print a header for the is_stmt
7215 column, and include is_stmt information in the output.
7216 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7217 preference to non-statements.
7218 (find_pcs_for_symtab_line): Prefer is-statement entries.
7219 (find_line_common): Likewise.
7220 * symtab.h (struct linetable_entry): Add is_stmt field.
7221 (struct symtab_and_line): Likewise.
7222 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7223 arranging the line table.
7224
e4003a34
TV
72252020-03-07 Tom de Vries <tdevries@suse.de>
7226
7227 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7228 DIE.
7229
e8932576
TT
72302020-03-07 Tom Tromey <tom@tromey.com>
7231
7232 * valops.c (value_literal_complex): Remove obsolete comment.
7233 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7234 comment.
7235
29734269
SM
72362020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7237
7238 * infrun.h: Forward-declare thread_info.
7239 (set_step_info): Add thread_info parameter, add doc.
7240 * infrun.c (set_step_info): Add thread_info parameter, move doc
7241 to header.
7242 * infrun.c (process_event_stop_test): Pass thread to
7243 set_step_info call.
7244 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7245 set_step_info.
7246 (prepare_one_step): Add thread_info parameter, pass it to
7247 set_step_frame and prepare_one_step (recursive) call.
7248 (step_1): Pass thread to prepare_one_step call.
7249 (step_command_fsm::should_stop): Pass thread to
7250 prepare_one_step.
7251 (until_next_fsm): Pass thread to set_step_frame call.
7252 (finish_command): Pass thread to set_step_info call.
7253
b7d64b29
HD
72542020-03-06 Hannes Domani <ssbssa@yahoo.de>
7255
7256 * windows-tdep.c (windows_solib_create_inferior_hook):
7257 Check if inferior is running.
7258
09f2921c
TV
72592020-03-06 Tom de Vries <tdevries@suse.de>
7260
7261 * NEWS: Fix "the the".
7262 * ctfread.c: Same.
7263
fd760e79
TV
72642020-03-06 Tom de Vries <tdevries@suse.de>
7265
7266 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7267
20ea4a60
AB
72682020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7269
7270 * .dir-locals.el: Add a comment referencing the other copies of
7271 this file.
7272
0afbabf0
JB
72732020-03-05 John Baldwin <jhb@FreeBSD.org>
7274
7275 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7276 psargs.
7277
842806cb
TBA
72782020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7279
7280 * .gitattributes: New file.
7281
be1e3d3e
TT
72822020-03-04 Tom Tromey <tom@tromey.com>
7283
7284 * symmisc.c (print_symbol_bcache_statistics)
7285 (print_objfile_statistics): Update.
7286 * symfile.c (allocate_symtab): Use intern.
7287 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7288 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7289 macro_cache>: Remove.
7290 <string_cache>: New member.
7291 (struct objfile) <intern>: New methods.
7292 * elfread.c (elf_symtab_read): Use intern.
7293 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7294 (dwarf2_compute_name, dwarf2_physname)
7295 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7296 names.
7297 (guess_partial_die_structure_name): Update.
7298 (partial_die_info::fixup): Intern name.
7299 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7300 name.
7301 (dwarf2_name): Intern name. Update.
7302 * buildsym.c (buildsym_compunit::get_macro_table): Use
7303 string_cache.
7304
4e7625fd
TT
73052020-03-04 Tom Tromey <tom@tromey.com>
7306
7307 * jit.c (bfd_open_from_target_memory): Make "target" const.
7308 * corefile.c (gnutarget): Now const.
7309 * gdbcore.h (gnutarget): Now const.
7310
46f9f931
HD
73112020-03-04 Hannes Domani <ssbssa@yahoo.de>
7312
7313 * NEWS: Mention support for WOW64 processes.
7314 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7315 (amd64_windows_segment_register_p): Remove static.
7316 (_initialize_amd64_windows_nat): Update.
7317 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7318 * i386-windows-nat.c (context_offset): Update.
7319 (i386_mappings): Rename and remove static.
7320 (i386_windows_segment_register_p): Remove static.
7321 (_initialize_i386_windows_nat): Update.
7322 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7323 (STATUS_WX86_SINGLE_STEP): New macro.
7324 (EnumProcessModulesEx): New macro.
7325 (Wow64SuspendThread): New macro.
7326 (Wow64GetThreadContext): New macro.
7327 (Wow64SetThreadContext): New macro.
7328 (Wow64GetThreadSelectorEntry): New macro.
7329 (windows_set_context_register_offsets): Add static.
7330 (windows_set_segment_register_p): Likewise.
7331 (windows_add_thread): Adapt for WOW64 processes.
7332 (windows_fetch_one_register): Likewise.
7333 (windows_nat_target::fetch_registers): Likewise.
7334 (windows_store_one_register): Likewise.
7335 (display_selector): Likewise.
7336 (display_selectors): Likewise.
7337 (handle_exception): Likewise.
7338 (windows_continue): Likewise.
7339 (windows_nat_target::resume): Likewise.
7340 (windows_add_all_dlls): Likewise.
7341 (do_initial_windows_stuff): Likewise.
7342 (windows_nat_target::attach): Likewise.
7343 (windows_get_exec_module_filename): Likewise.
7344 (windows_nat_target::create_inferior): Likewise.
7345 (windows_xfer_siginfo): Likewise.
7346 (_initialize_loadable): Initialize Wow64SuspendThread,
7347 Wow64GetThreadContext, Wow64SetThreadContext,
7348 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7349 * windows-nat.h (windows_set_context_register_offsets):
7350 Remove declaration.
7351 (windows_set_segment_register_p): Likewise.
7352 (i386_windows_segment_register_p): Add declaration.
7353 (amd64_windows_segment_register_p): Likewise.
7354
440cf44e
LM
73552020-03-04 Luis Machado <luis.machado@linaro.org>
7356
7357 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7358 in "info registers" for AArch64/ARM.
7359
7360 The change caused "info registers" to not print GPR's.
7361
7362 gdb/ChangeLog:
7363
7364 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7365
7366 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7367 when reg->group is empty and reggroup is not.
7368
1009d92f
TT
73692020-03-03 Tom Tromey <tromey@adacore.com>
7370
7371 * dwarf2/frame.c (struct dwarf2_frame_cache)
7372 <checked_tailcall_bottom, entry_cfa_sp_offset,
7373 entry_cfa_sp_offset_p>: Remove members.
7374 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7375 (dwarf2_frame_prev_register): Don't call
7376 dwarf2_tailcall_sniffer_first.
7377 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7378 * frame-unwind.c (add_unwinder): New fuction.
7379 (frame_unwind_init): Use it. Add tailcall unwinder.
7380
5e5d66b6
AB
73812020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7382 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7383
7384 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7385 value should be printed as true.
7386
584cf46d
HD
73872020-03-03 Hannes Domani <ssbssa@yahoo.de>
7388
7389 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7390 (windows_init_abi): Set and use windows_so_ops.
7391
7b973adc
SDJ
73922020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7393
7394 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7395 when verifying if dealing with a convenience variable.
7396
bb7b70ab
LM
73972020-03-03 Luis Machado <luis.machado@linaro.org>
7398
7399 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7400
9822cb57
SM
74012020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7402
7403 * infrun.c (gdbarch_supports_displaced_stepping): New.
7404 (use_displaced_stepping): Break up conditions in smaller pieces.
7405 Use gdbarch_supports_displaced_stepping.
7406 (displaced_step_prepare_throw): Use
7407 gdbarch_supports_displaced_stepping.
7408
63e163f2
AB
74092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * NEWS: Mention new behaviour of the history filename.
7412 * top.c (write_history_p): Add comment.
7413 (show_write_history_p): Add header comment, give a different
7414 message when history writing is on, but the history filename is
7415 empty.
7416 (history_filename): Add comment.
7417 (history_filename_empty): New function.
7418 (show_history_filename): Add header comment, give a different
7419 message when the filename is empty.
7420 (init_history): Compare history_filename against nullptr, and only
7421 read history if the filename is not empty.
7422 (set_history_filename): Add header comment, and only make
7423 non-empty filenames absolute.
7424 (init_main): Make the filename argument to 'set history filename'
7425 optional.
7426
81b86b97
CB
74272020-03-02 Christian Biesinger <cbiesinger@google.com>
7428
7429 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7430 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7431 (fetch_fp_register): Update.
7432 (fetch_fp_regs): Update.
7433 (store_fp_register): Update.
7434 (store_fp_regs): Update.
7435 (arm_netbsd_nat_target::read_description): New function.
7436 (fetch_elfcore_registers): Update.
7437
24ed6739
AB
74382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7441 general_thread if the stop reply is missing a thread-id.
7442 (remote_target::process_stop_reply): Use the first non-exited
7443 thread if the target didn't pass a thread-id.
7444 * infrun.c (do_target_wait): Move call to
7445 switch_to_inferior_no_thread to ....
7446 (do_target_wait_1): ... here.
7447
a84bb2a0
JT
74482020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7449
7450 * debuginfod-support.c: Include defs.h first.
7451
658dadf0
TV
74522020-02-28 Tom de Vries <tdevries@suse.de>
7453
7454 * symfile.c (set_initial_language): Use default language for lookup.
7455
4ebe4877
SM
74562020-02-28 Simon Marchi <simon.marchi@efficios.com>
7457
7458 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7459 reader variable, pass `this` to read_cutu_die_from_dwo.
7460
e5da1139
AM
74612020-02-27 Aaron Merey <amerey@redhat.com>
7462
7463 * source.c (open_source_file): Check for nullptr when computing
7464 srcpath.
7465
317f7127
TT
74662020-02-27 Tom Tromey <tromey@adacore.com>
7467
7468 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7469 member.
7470 (dwarf2_add_field): Don't update nfields.
7471 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7472
3104d9ee
AB
74732020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7476 abs.
7477
b83470bf
TT
74782020-02-26 Tom Tromey <tom@tromey.com>
7479
7480 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7481 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7482 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7483 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7484 per_cu_data.
7485
edfe0a0c
TT
74862020-02-26 Tom Tromey <tom@tromey.com>
7487
7488 * dwarf2/index-write.c (psym_index_map): Change type.
7489 (add_address_entry_worker, write_one_signatured_type)
7490 (recursively_count_psymbols, recursively_write_psymbols)
7491 (class debug_names, psyms_seen_size, write_gdbindex)
7492 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7493
0d79cdc4
AM
74942020-02-26 Aaron Merey <amerey@redhat.com>
7495
7496 * Makefile.in: Handle optional debuginfod support.
7497 * NEWS: Update.
7498 * README: Add --with-debuginfod summary.
7499 * config.in: Regenerate.
7500 * configure: Regenerate.
7501 * configure.ac: Handle optional debuginfod support.
7502 * debuginfod-support.c: debuginfod helper functions.
7503 * debuginfod-support.h: Ditto.
7504 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7505 summary.
7506 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7507 when a dwz file cannot be found.
7508 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7509 debuginfo file cannot be found.
7510 * source.c (open_source_file): Query debuginfod servers when a
7511 source file cannot be found.
7512 * top.c (print_gdb_configuration): Include
7513 --{with,without}-debuginfod in the output.
7514
b65ce565
JG
75152020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7516
7517 * thread.c (thr_try_catch_cmd): Print thread name.
7518
d4c9a4f8
SM
75192020-02-26 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7522 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7523 dwarf2_fetch_die_type_sect_off): Move to...
7524 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7525 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7526 dwarf2_fetch_die_type_sect_off): ... here.
7527 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7528 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7529 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7530
0dce4280
TV
75312020-02-26 Tom de Vries <tdevries@suse.de>
7532
7533 PR gdb/25603
7534 * symfile.c (set_initial_language): Exit-early if
7535 language_mode == language_mode_manual.
7536
450a1bfc
SM
75372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7538
7539 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7540 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7541 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7542
9e80cfa1
AB
75432020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7544
7545 * gdbtypes.c (create_array_type_with_stride): Handle negative
7546 array strides.
7547 * valarith.c (value_subscripted_rvalue): Likewise.
7548
09624f1f
LM
75492020-02-25 Luis Machado <luis.machado@linaro.org>
7550
7551 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7552
8cb5117c
SM
75532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7554
7555 * loc.h (dwarf2_get_die_type): Move to...
7556 * read.h (dwarf2_get_die_type): ... here.
7557 * read.c (dwarf2_get_die_type): Move doc to header.
7558
c325c44e
JB
75592020-02-25 Joel Brobecker <brobecker@adacore.com>
7560
7561 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7562 'gnulib/Makefile.in' to the list.
7563
4ac93832
TT
75642020-02-24 Tom Tromey <tom@tromey.com>
7565
7566 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7567 Remove.
7568 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7569 XOBNEWVEC.
7570
197400e8
TT
75712020-02-24 Tom Tromey <tom@tromey.com>
7572
7573 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7574 New method.
7575 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7576 (dw2_do_instantiate_symtab, dw2_get_file_names)
7577 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7578
76935768
TT
75792020-02-24 Tom Tromey <tom@tromey.com>
7580
7581 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7582 make_scoped_restore.
7583 (dwarf2_psymtab::read_symtab): Don't clear
7584 reading_partial_symbols.
7585
a88ef40d
TV
75862020-02-24 Tom de Vries <tdevries@suse.de>
7587
7588 PR gdb/25592
7589 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7590
c9af6521
TV
75912020-02-24 Tom de Vries <tdevries@suse.de>
7592
7593 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7594 commands layout next/prev/regs.
7595
5707a07a
TT
75962020-02-22 Tom Tromey <tom@tromey.com>
7597
7598 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7599 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7600
3b0fb49e
TT
76012020-02-22 Tom Tromey <tom@tromey.com>
7602
7603 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7604
283be8bf
TT
76052020-02-22 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7608 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7609 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7610 * tui/tui.c (_initialize_tui): Add usage text.
7611
ca793b96
TT
76122020-02-22 Tom Tromey <tom@tromey.com>
7613
7614 * tui/tui-win.c (tui_set_focus_command)
7615 (tui_set_win_height_command): Use error_no_arg.
7616 (_initialize_tui_win): Update help text.
7617 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7618
432b5c40
TT
76192020-02-22 Tom Tromey <tom@tromey.com>
7620
7621 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7622 * tui/tui-disasm.h (struct tui_disasm_window)
7623 <display_start_addr>: Declare.
7624 * tui/tui-source.h (struct tui_source_window)
7625 <display_start_addr>: Declare.
7626 * tui/tui-winsource.h (struct tui_source_window_base)
7627 <show_source_line, display_start_addr>: New methods.
7628 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7629 Rename and move to protected section.
7630 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7631 (tui_source_window_base::do_erase_source_content): Update.
7632 (tui_source_window_base::show_source_line): Now a method.
7633 (tui_source_window_base::show_source_content)
7634 (tui_source_window_base::tui_source_window_base)
7635 (tui_source_window_base::rerender)
7636 (tui_source_window_base::refill)
7637 (tui_source_window_base::do_scroll_horizontal)
7638 (tui_source_window_base::set_is_exec_point_at)
7639 (tui_source_window_base::update_breakpoint_info)
7640 (tui_source_window_base::update_exec_info): Update.
7641 * tui/tui-source.c (tui_source_window::set_contents)
7642 (tui_source_window::showing_source_p)
7643 (tui_source_window::do_scroll_vertical)
7644 (tui_source_window::location_matches_p)
7645 (tui_source_window::line_is_displayed): Update.
7646 (tui_source_window::display_start_addr): New method.
7647 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7648 (tui_disasm_window::do_scroll_vertical)
7649 (tui_disasm_window::location_matches_p): Update.
7650 (tui_disasm_window::display_start_addr): New method.
7651
01b1af32
TT
76522020-02-22 Tom Tromey <tom@tromey.com>
7653
7654 * NEWS: Add entry for gdb.register_window_type.
7655 * tui/tui-layout.h (window_factory): New typedef.
7656 (tui_register_window): Declare.
7657 * tui/tui-layout.c (saved_tui_windows): New global.
7658 (tui_apply_current_layout): Use it.
7659 (tui_register_window): New function.
7660 * python/python.c (do_start_initialization): Call
7661 gdbpy_initialize_tui.
7662 (python_GdbMethods): Add "register_window_type" function.
7663 * python/python-internal.h (gdbpy_register_tui_window)
7664 (gdbpy_initialize_tui): Declare.
7665 * python/py-tui.c: New file.
7666 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7667
fc96d20b
TT
76682020-02-22 Tom Tromey <tom@tromey.com>
7669
7670 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7671
935c78c0
TT
76722020-02-22 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7675 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7676 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7677 (tui_set_win_focus_to): Move from tui-win.c.
7678
0240c8f1
TT
76792020-02-22 Tom Tromey <tom@tromey.com>
7680
7681 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7682 functions.
7683 (known_window_types): New global.
7684 (tui_get_window_by_name): Reimplement.
7685 (initialize_known_windows): New function.
7686 (validate_window_name): Rewrite.
7687 (_initialize_tui_layout): Call initialize_known_windows.
7688
fdb01f0c
TT
76892020-02-22 Tom Tromey <tom@tromey.com>
7690
7691 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7692 Remove constants.
7693 * tui/tui-winsource.h (struct tui_source_window_base)
7694 <tui_source_window_base>: Remove parameter.
7695 * tui/tui-winsource.c
7696 (tui_source_window_base::tui_source_window_base): Remove
7697 parameter.
7698 (tui_source_window_base::refill): Update.
7699 * tui/tui-stack.h (struct tui_locator_window)
7700 <tui_locator_window>: Update.
7701 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
7702 Default the constructor.
7703 * tui/tui-regs.h (struct tui_data_item_window)
7704 <tui_data_item_window>: Default the constructor.
7705 (struct tui_data_window) <tui_data_window>: Likewise.
7706 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
7707 Default the constructor.
7708 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
7709 Default the constructor.
7710 <type>: Remove.
7711 (struct tui_win_info) <tui_win_info>: Default the constructor.
7712 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
7713 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
7714 Default the constructor.
7715
865a5aec
TT
77162020-02-22 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
7719 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
7720 * tui/tui-win.c (tui_resize_all): Don't call
7721 tui_delete_invisible_windows.
7722 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
7723 done.
7724 (tui_set_layout): Update.
7725 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
7726 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
7727 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
7728
e098d18c
TT
77292020-02-22 Tom Tromey <tom@tromey.com>
7730
7731 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
7732 correctly.
7733
eb9c8874
TT
77342020-02-22 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
7737
7eed1a8e
TT
77382020-02-22 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-winsource.h (struct tui_source_window_iterator)
7741 <inner_iterator>: New etytypedef.
7742 <tui_source_window_iterator>: Take "end" parameter.
7743 <tui_source_window_iterator>: Take iterator.
7744 <operator*, advance>: Update.
7745 <m_iter>: Change type.
7746 <m_end>: New field.
7747 (struct tui_source_windows) <begin, end>: Update.
7748 * tui/tui-layout.c (tui_windows): New global.
7749 (tui_apply_current_layout): Clear tui_windows.
7750 (tui_layout_window::apply): Update tui_windows.
7751 * tui/tui-data.h (tui_windows): Declare.
7752 (all_tui_windows): Now inline function.
7753 (class tui_window_iterator, struct all_tui_windows): Remove.
7754
7c043ba6
TT
77552020-02-22 Tom Tromey <tom@tromey.com>
7756
7757 PR tui/17850:
7758 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
7759 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
7760 "height" argument.
7761 (class tui_layout_window) <get_sizes>: Likewise.
7762 (class tui_layout_split) <tui_layout_split>: Add "vertical"
7763 argument.
7764 <get_sizes>: Add "height" argument.
7765 <m_vertical>: New field.
7766 * tui/tui-layout.c (tui_layout_split::clone): Update.
7767 (tui_layout_split::get_sizes): Add "height" argument.
7768 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
7769 (tui_new_layout_command): Parse "-horizontal".
7770 (_initialize_tui_layout): Update help string.
7771 (tui_layout_split::specification): Add "-horizontal" when needed.
7772 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
7773 argument.
7774 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
7775 New methods.
7776
6bc56648
TT
77772020-02-22 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-layout.h (enum tui_adjust_result): New.
7780 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
7781 (class tui_layout_window) <adjust_size>: Return
7782 tui_adjust_result. Rewrite.
7783 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
7784 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
7785
c22fef7e
TT
77862020-02-22 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
7789 parameter and return types.
7790 (class tui_layout_base) <specification>: Add "depth".
7791 (class tui_layout_window) <specification>: Add "depth".
7792 (class tui_layout_split) <specification>: Add "depth".
7793 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
7794 and return types.
7795 (tui_new_layout_command): Parse sub-layouts.
7796 (_initialize_tui_layout): Update help string.
7797 (tui_layout_window::specification): Add "depth".
7798 (add_layout_command): Update.
7799
ee325b61
TT
78002020-02-22 Tom Tromey <tom@tromey.com>
7801
7802 * NEWS: Add "tui new-layout" item.
7803 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
7804 Add new-layout command to help text.
7805 (validate_window_name): New function.
7806 (tui_new_layout_command): New function.
7807 (_initialize_tui_layout): Register "new-layout".
7808 (tui_layout_window::specification): New method.
7809 (tui_layout_window::specification): New method.
7810 * tui/tui-layout.h (class tui_layout_base) <specification>: New
7811 method.
7812 (class tui_layout_window) <specification>: New method.
7813 (class tui_layout_split) <specification>: New method.
7814
416eb92d
TT
78152020-02-22 Tom Tromey <tom@tromey.com>
7816
7817 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
7818 * tui/tui-win.c (window_name_completer): Update comment.
7819 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
7820 Declare method.
7821 (class tui_layout_window) <replace_window>: Likewise.
7822 (class tui_layout_split) <replace_window>: Likewise.
7823 (tui_set_layout): Don't declare.
7824 (tui_set_initial_layout): Declare function.
7825 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
7826 (asm_regs_layout): New globals.
7827 (tui_current_layout, show_layout): Remove.
7828 (tui_set_layout, tui_add_win_to_layout): Rewrite.
7829 (find_layout, tui_apply_layout): New function.
7830 (layout_completer): Remove.
7831 (tui_next_layout): Reimplement.
7832 (tui_next_layout_command): New function.
7833 (tui_set_initial_layout, tui_prev_layout_command): New functions.
7834 (tui_regs_layout): Reimplement.
7835 (tui_regs_layout_command): New function.
7836 (extract_display_start_addr): Rewrite.
7837 (next_layout, prev_layout): Remove.
7838 (tui_layout_window::replace_window): New method.
7839 (tui_layout_split::replace_window): New method.
7840 (destroy_layout): New function.
7841 (layout_list): New global.
7842 (add_layout_command): New function.
7843 (initialize_layouts): Update.
7844 (tui_layout_command): New function.
7845 (_initialize_tui_layout): Install "layout" commands.
7846 * tui/tui-data.h (enum tui_layout_type): Remove.
7847 (tui_current_layout): Don't declare.
7848
0dbc2fc7
TT
78492020-02-22 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-regs.c (tui_reg_layout): Remove.
7852 (tui_reg_command): Use tui_regs_layout.
7853 * tui/tui-layout.h (tui_reg_command): Declare.
7854 * tui/tui-layout.c (tui_reg_command): New function.
7855
5afe342e
TT
78562020-02-22 Tom Tromey <tom@tromey.com>
7857
7858 * tui/tui.c (tui_rl_delete_other_windows): Call
7859 tui_remove_some_windows.
7860 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
7861 Declare method.
7862 (class tui_layout_window) <remove_windows>: New method.
7863 (class tui_layout_split) <remove_windows>: Declare.
7864 (tui_remove_some_windows): Declare.
7865 * tui/tui-layout.c (tui_remove_some_windows): New function.
7866 (tui_layout_split::remove_windows): New method.
7867
427326a8
TT
78682020-02-22 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
7871 * tui/tui-layout.h (tui_next_layout): Declare.
7872 * tui/tui-layout.c (tui_next_layout): New function.
7873
3fe12b6d
TT
78742020-02-22 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
7877 correct coordinates.
7878
59b8b5d2
TT
78792020-02-22 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
7882 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
7883 DATA_WIN case.
7884
2a3d458b
TT
78852020-02-22 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
7888 TUI_DISASM_WIN, not tui_win_list.
7889
3f0cbb04
TT
78902020-02-22 Tom Tromey <tom@tromey.com>
7891
7892 * valprint.c (generic_val_print_enum_1)
7893 (val_print_type_code_flags): Style member names.
7894 * rust-lang.c (val_print_struct, rust_print_enum)
7895 (rust_print_struct_def, rust_internal_print_type): Style member
7896 names.
7897 * p-valprint.c (pascal_object_print_value_fields): Style member
7898 names. Only call fprintf_symbol_filtered for static members.
7899 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
7900 * f-valprint.c (f_val_print): Style member names.
7901 * f-typeprint.c (f_type_print_base): Style member names.
7902 * cp-valprint.c (cp_print_value_fields): Style member names. Only
7903 call fprintf_symbol_filtered for static members.
7904 (cp_print_class_member): Style member names.
7905 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
7906 member names.
7907 * ada-valprint.c (ada_print_scalar): Style enum names.
7908 (ada_val_print_enum): Likewise.
7909 * ada-typeprint.c (print_enum_type): Style enum names.
7910
d4d947ae
TT
79112020-02-21 Tom Tromey <tom@tromey.com>
7912
7913 * psympriv.h (struct partial_symtab): Update comment.
7914
e94e944b
TT
79152020-02-21 Tom Tromey <tromey@adacore.com>
7916
7917 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
7918 type is CORE_ADDR.
7919
1eb73179
TV
79202020-02-21 Tom de Vries <tdevries@suse.de>
7921
7922 PR gdb/25534
7923 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
7924 if dependencies[i]->user != NULL.
7925
4f180d53
AT
79262020-02-21 Ali Tamur <tamur@google.com>
7927
7928 * dwarf2/read.c (dwarf2_name): Add null check.
7929
22b6cd70
TT
79302020-02-20 Tom Tromey <tom@tromey.com>
7931
7932 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
7933 ">=", in binary search.
7934 (dwarf2_find_containing_comp_unit): New overload.
7935 (run_test): New self-test.
7936 (_initialize_dwarf2_read): Register new test.
7937
bd0cf5a6
NC
79382020-02-20 Nelson Chu <nelson.chu@sifive.com>
7939
7940 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
7941 * riscv-tdep.h: Likewise.
7942 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
7943 rv32-only CSR.
7944 * features/riscv/64bit-csr.xml: Regenerated.
7945
3f702acd
SDJ
79462020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7947 Tom Tromey <tom@tromey.com>
7948
7949 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
7950 of 'fputc_unfiltered'.
7951 (putchar_unfiltered): Call 'fputc_unfiltered'.
7952 (fputc_unfiltered): Call 'fputs_unfiltered'.
7953
d13c7322
AB
79542020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * config.in: Regenerate.
7957 * configure: Regenerate.
7958 * configure.ac: Add --with-python-libdir option.
7959 * main.c: Use WITH_PYTHON_LIBDIR.
7960
869d8950
TT
79612020-02-19 Tom Tromey <tom@tromey.com>
7962
7963 * symtab.c (general_symbol_info::compute_and_set_names): Use
7964 obstack_strndup. Simplify call to symbol_set_demangled_name.
7965
298e9637
SM
79662020-02-19 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * dwarf2/read.c (allocate_signatured_type_table,
7969 allocate_dwo_unit_table, allocate_type_unit_groups_table,
7970 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
7971 Remove objfile parameter, update all callers.
7972
08410482
DE
79732020-02-19 Doug Evans <dje@google.com>
7974
7975 PR rust/25535
7976 * rust-lang.c (rust_print_enum): Apply embedded_offset to
7977 rust_enum_variant calculation.
7978
dfdeeca1
TT
79792020-02-19 Tom Tromey <tromey@adacore.com>
7980
7981 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
7982
2ef5453b
TT
79832020-02-19 Tom Tromey <tromey@adacore.com>
7984
7985 * ada-lang.c (cache_symbol): Use obstack_strdup.
7986
9f1528a1
AB
79872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7988
7989 * configure: Regenerate.
7990
d3c22fa8
TT
79912020-02-19 Tom Tromey <tromey@adacore.com>
7992
7993 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7994 NULL check.
7995
bf84f706
MR
79962020-02-19 Maciej W. Rozycki <macro@wdc.com>
7997
7998 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7999
d1c9b20f
AB
80002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8003 if GDBSERVER is not defined.
8004 (riscv_tdesc_cache): Likewise, also store const target_desc.
8005 (STATIC_IN_GDB): Define.
8006 (riscv_create_target_description): Update declaration with
8007 STATIC_IN_GDB.
8008 (riscv_lookup_target_description): New function, only define if
8009 GDBSERVER is not defined.
8010 * arch/riscv.h (riscv_create_target_description): Declare only
8011 when GDBSERVER is defined.
8012 (riscv_lookup_target_description): New declaration when GDBSERVER
8013 is not defined.
8014 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8015 (riscv_linux_read_features): ...this, and return
8016 riscv_gdbarch_features instead of target_desc.
8017 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8018 (riscv_linux_read_description): Rename to...
8019 (riscv_linux_read_features): ...this.
8020 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8021 Update to use riscv_gdbarch_features and
8022 riscv_lookup_target_description.
8023 * riscv-tdep.c (riscv_find_default_target_description): Use
8024 riscv_lookup_target_description instead of
8025 riscv_create_target_description.
8026
373d7ac0
SM
80272020-02-18 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * valprint.c (generic_val_print_enum_1): When printing a flag
8030 enum with value 0 and there is no enumerator with value 0, print
8031 just "0" instead of "(unknown: 0x0)".
8032
b29a2df0
SM
80332020-02-18 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * valprint.c (generic_val_print_enum_1): Print unknown part of
8036 flag enum in hex.
8037
6740f0cc
SM
80382020-02-18 Simon Marchi <simon.marchi@efficios.com>
8039
8040 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8041 flag enums to contain duplicate enumerators.
8042 * valprint.c (generic_val_print_enum_1): Update comment.
8043
edd45eb0
SM
80442020-02-18 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * dwarf2/read.c: Include "count-one-bits.h".
8047 (update_enumeration_type_from_children): If an enumerator has
8048 multiple bits set, don't treat the enumeration as a "flag enum".
8049 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8050 of flag enums have 0 or 1 bit set.
8051
6d0cf446
BE
80522020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8053
8054 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8055 conversion.
8056 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8057 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8058 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8059 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8060 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8061
7001c1b7
SM
80622020-02-18 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8065
fdb61c6c
SM
80662020-02-14 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8069 displaced_step_closure_up.
8070 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8071 (struct displaced_step_closure_up):
8072 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8073 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8074 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8075 Likewise.
8076 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8077 * gdbarch.c, gdbarch.h: Re-generate.
8078 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8079 displaced_step_closure_up.
8080 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8081 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8082 * infrun.h (displaced_step_closure_up): New type alias.
8083 (struct displaced_step_inferior_state) <step_closure>: Change
8084 type to displaced_step_closure_up.
8085 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8086 displaced_step_closure_up.
8087 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8088
a4a38eb4
TT
80892020-02-14 Tom Tromey <tom@tromey.com>
8090
8091 * minidebug.c (gnu_debug_key): New global.
8092 (find_separate_debug_file_in_section): Use it.
8093
e8217e61
SM
80942020-02-14 Simon Marchi <simon.marchi@efficios.com>
8095
8096 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8097 std::unique_ptr.
8098 * gdbarch.c: Re-generate.
8099 * gdbarch.h: Re-generate.
8100 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8101 change.
8102 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8103 type to std::unique_ptr.
8104 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8105 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8106 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8107 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8108 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8109 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8110 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8111 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8112 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8113
d8d83535
SM
81142020-02-14 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8117 std::unique_ptr.
8118 (displaced_step_clear): Rename to...
8119 (displaced_step_reset): ... this. Just call displaced->reset ().
8120 (displaced_step_clear_cleanup): Rename to...
8121 (displaced_step_reset_cleanup): ... this.
8122 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8123 (displaced_step_fixup): Likewise.
8124 (resume_1): Likewise.
8125 (handle_inferior_event): Restore child's memory before calling
8126 displaced_step_fixup on the parent.
8127 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8128 to std::unique_ptr.
8129 <step_closure>: Change type to std::unique_ptr.
8130
5f661e03
SM
81312020-02-14 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * arm-tdep.c: Include count-one-bits.h.
8134 (cleanup_block_store_pc): Use count_one_bits.
8135 (cleanup_block_load_pc): Use count_one_bits.
8136 (arm_copy_block_xfer): Use count_one_bits.
8137 (thumb2_copy_block_xfer): Use count_one_bits.
8138 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8139 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8140 (thumb_get_next_pcs_raw): Use count_one_bits.
8141 (arm_get_next_pcs_raw): Use count_one_bits_l.
8142 * arch/arm.c (bitcount): Remove.
8143 * arch/arm.h (bitcount): Remove.
8144
8084e579
TT
81452020-02-14 Tom Tromey <tromey@adacore.com>
8146
8147 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8148 Update.
8149 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8150 * dwarf2/loc.c (call_site_find_chain_1): Return
8151 unique_xmalloc_ptr.
8152 (call_site_find_chain): Likewise.
8153
258bf0ee
RB
81542020-02-14 Richard Biener <rguenther@suse.de>
8155
8156 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8157 on expression with division operators.
8158
f98a8458
AKS
81592020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8160
8161 * MAINTAINERS (Write After Approval): Adding myself.
8162
d1437c0e
TT
81632020-02-12 Tom Tromey <tom@tromey.com>
8164
8165 * event-loop.c (event_data, gdb_event, event_handler_func):
8166 Remove.
8167
3d4560f7
TT
81682020-02-12 Tom Tromey <tom@tromey.com>
8169
8170 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8171 (dwarf2_frame_objfile_data): Add comment.
8172 (find_comp_unit, set_comp_unit): New functions.
8173 (dwarf2_frame_find_fde): Use find_comp_unit.
8174 (dwarf2_build_frame_info): Use set_comp_unit.
8175
21982304
TT
81762020-02-12 Tom Tromey <tom@tromey.com>
8177
8178 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8179 (comp_unit): Don't initialize objfile.
8180 (execute_cfa_program): Add text_offset parameter.
8181 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8182 (dwarf2_frame_cache): Update.
8183 (dwarf2_build_frame_info): Don't set "objfile" member.
8184
4debb237
TT
81852020-02-12 Tom Tromey <tom@tromey.com>
8186
8187 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8188 (decode_frame_entry): Likewise.
8189 (dwarf2_build_frame_info): Update.
8190
0d404d44
TT
81912020-02-12 Tom Tromey <tom@tromey.com>
8192
8193 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8194 (decode_frame_entry_1): Use the comp_unit obstack.
8195
a7a3ae5c
TT
81962020-02-12 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/frame.c (struct comp_unit): Add initializers and
8199 constructor.
8200 (dwarf2_frame_objfile_data): Store a comp_unit.
8201 (dwarf2_frame_find_fde): Update.
8202 (dwarf2_build_frame_info): Use "new".
8203
a9d65418
TT
82042020-02-12 Tom Tromey <tom@tromey.com>
8205
8206 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8207 (dwarf2_fde_table): Typedef for std::vector.
8208 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8209 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8210 (decode_frame_entry): Update.
8211 (dwarf2_build_frame_info): Use "new".
8212
7559c217
CB
82132020-02-12 Christian Biesinger <cbiesinger@google.com>
8214
8215 * arm-tdep.c (arm_gdbarch_init): Update.
8216 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8217 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8218 have_neon, is_m>: Change to bool.
8219
aeefc73c
CB
82202020-02-12 Christian Biesinger <cbiesinger@google.com>
8221
8222 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8223
d27b8e5f
TT
82242020-02-12 Tom Tromey <tom@tromey.com>
8225
8226 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8227
cd5900f3
HD
82282020-02-12 Hannes Domani <ssbssa@yahoo.de>
8229
8230 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8231 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8232
f056b22b
TT
82332020-02-11 Tom Tromey <tom@tromey.com>
8234
8235 * psymtab.h: Update comment.
8236
f92ff6b5
TT
82372020-02-11 Tom Tromey <tom@tromey.com>
8238
8239 * gdb_obstack.h (struct auto_obstack): Use
8240 DISABLE_COPY_AND_ASSIGN.
8241
3fd6912b
TT
82422020-02-11 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/frame.h (struct objfile): Don't forward declare.
8245
69ed9b74
CB
82462020-02-11 Christian Biesinger <cbiesinger@google.com>
8247
8248 * cris-tdep.c (cris_supply_gregset): Change signature to match
8249 what struct regset expects.
8250 (cris_regset): New struct.
8251 (fetch_core_registers): Remove.
8252 (cris_iterate_over_regset_sections): New function.
8253 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8254 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8255
bda874f6
CB
82562020-02-11 Christian Biesinger <cbiesinger@google.com>
8257
8258 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8259 registers.
8260
754e1564
CB
82612020-02-11 Christian Biesinger <cbiesinger@google.com>
8262
8263 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8264
8ddd8e0e
SM
82652020-02-11 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * configure: Re-generate.
8268
898e7f60
SM
82692020-02-11 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * configure: Re-generate.
8272
58df732b
SM
82732020-02-11 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * acinclude: Update warning.m4 path.
8276 * warning.m4: Move to gdbsupport.
8277
da5bd37e
TT
82782020-02-11 Tom Tromey <tromey@adacore.com>
8279
8280 * remote.c (remote_console_output): Update.
8281 * printcmd.c (printf_command): Update.
8282 * event-loop.c (gdb_wait_for_event): Update.
8283 * linux-nat.c (sigchld_handler): Update.
8284 * remote-sim.c (gdb_os_write_stdout): Update.
8285 (gdb_os_flush_stdout): Update.
8286 (gdb_os_flush_stderr): Update.
8287 (gdb_os_write_stderr): Update.
8288 * exceptions.c (print_exception): Update.
8289 * remote-fileio.c (remote_fileio_func_read): Update.
8290 (remote_fileio_func_write): Update.
8291 * tui/tui.c (tui_enable): Update.
8292 * tui/tui-interp.c (tui_interp::init): Update.
8293 * utils.c (init_page_info): Update.
8294 (putchar_unfiltered, fputc_unfiltered): Update.
8295 (gdb_flush): Update.
8296 (emit_style_escape): Update.
8297 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8298 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8299 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8300 (stderr_file::write): Update.
8301 (stderr_file::puts): Update.
8302 * ui-file.h (ui_file_isatty, ui_file_write)
8303 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8304 (ui_file_puts): Don't declare.
8305
85f0dd3c
TV
83062020-02-10 Tom de Vries <tdevries@suse.de>
8307
8308 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8309 sentinel to char *.
8310
2e927613
TV
83112020-02-09 Tom de Vries <tdevries@suse.de>
8312
8313 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8314 filename if it matches "<artificial>".
8315
6bafc845
HD
83162020-02-09 Hannes Domani <ssbssa@yahoo.de>
8317
8318 * windows-tdep.c (struct enum_value_name): New struct.
8319 (create_enum): New function.
8320 (windows_get_siginfo_type): Create and use enum types.
8321
7928d571
HD
83222020-02-09 Hannes Domani <ssbssa@yahoo.de>
8323
8324 * NEWS: Mention $_siginfo support for Windows.
8325 * windows-nat.c (handle_exception): Set siginfo_er.
8326 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8327 (windows_xfer_siginfo): New function.
8328 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8329 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8330 (init_windows_gdbarch_data): New function.
8331 (get_windows_gdbarch_data): New function.
8332 (windows_get_siginfo_type): New function.
8333 (windows_init_abi): Register windows_get_siginfo_type.
8334 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8335
6751ebae
TT
83362020-02-08 Tom Tromey <tom@tromey.com>
8337
8338 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8339 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8340 <keep>: Declare method.
8341 <m_keep>: Remove member.
8342 <~cutu_reader>: Remove.
8343 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8344 (cutu_reader::cutu_reader): Update.
8345 (cutu_reader::keep): Rename from ~cutu_reader.
8346 (process_psymtab_comp_unit, build_type_psymtabs_1)
8347 (process_skeletonless_type_unit, load_partial_comp_unit)
8348 (load_full_comp_unit, dwarf2_read_addr_index)
8349 (read_signatured_type): Update.
8350
135f5437
TT
83512020-02-08 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8354 "want_partial_unit" parameter.
8355 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8356 Inline check for DW_TAG_partial_unit.
8357 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8358
9f66ff1c
TT
83592020-02-08 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8362 read.c.
8363 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8364 read.c.
8365
c8a7a66f
TT
83662020-02-08 Tom Tromey <tom@tromey.com>
8367
8368 * dwarf2/read.c (read_address): Move to comp-unit.c.
8369 (dwarf2_rnglists_process, dwarf2_ranges_process)
8370 (read_attribute_value, dwarf_decode_lines_1)
8371 (var_decode_location, decode_locdesc): Update.
8372 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8373 read.c. Remove "cu" parameter.
8374 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8375 method.
8376
8266302d
TT
83772020-02-08 Tom Tromey <tom@tromey.com>
8378
8379 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8380 (read_indirect_line_string): Update.
8381 * dwarf2/comp-unit.c (read_offset): Remove.
8382 (read_comp_unit_head): Update.
8383 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8384 method.
8385 (read_offset): Don't declare.
8386
4057dfde
TT
83872020-02-08 Tom Tromey <tom@tromey.com>
8388
8389 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8390 * dwarf2/read.c (struct comp_unit_head): Move to
8391 dwarf2/comp-unit.h.
8392 (enum class rcuh_kind): Move to comp-unit.h.
8393 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8394 (read_comp_unit_head, error_check_comp_unit_head)
8395 (read_and_check_comp_unit_head): Move to comp-unit.c.
8396 (read_offset, dwarf_unit_type_name): Likewise.
8397 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8398 (cutu_reader::cutu_reader, read_call_site_scope)
8399 (find_partial_die, follow_die_offset): Update.
8400 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8401
24aa364d
TT
84022020-02-08 Tom Tromey <tom@tromey.com>
8403
8404 * dwarf2/read.c (read_offset_1): Move to leb.c.
8405 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8406 (dwarf_decode_macro_bytes): Update.
8407 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8408 * dwarf2/leb.h (read_offset): Declare.
8409
2c7d5afc
TT
84102020-02-08 Tom Tromey <tom@tromey.com>
8411
8412 * dwarf2/read.c (dwarf2_section_size): Remove.
8413 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8414 Update.
8415 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8416
4075cb26
TT
84172020-02-08 Tom Tromey <tom@tromey.com>
8418
8419 * dwarf2/read.c (read_initial_length): Move to leb.c.
8420 * dwarf2/leb.h (read_initial_length): Declare.
8421 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8422 handle_nonstd parameter.
8423 * dwarf2/frame.c (read_initial_length): Remove.
8424 (decode_frame_entry_1): Update.
8425
09ba997f
TT
84262020-02-08 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2/loc.c (dwarf2_find_location_expression)
8429 (dwarf_evaluate_loc_desc::get_tls_address)
8430 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8431 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8432 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8433 (dwarf2_compile_property_to_c)
8434 (dwarf2_loc_desc_get_symbol_read_needs)
8435 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8436 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8437 (loclist_describe_location, loclist_tracepoint_var_ref)
8438 (loclist_generate_c_location): Update.
8439 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8440 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8441 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8442 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8443 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8444 (dwarf2_per_cu_data::addr_size)
8445 (dwarf2_per_cu_data::ref_addr_size)
8446 (dwarf2_per_cu_data::text_offset)
8447 (dwarf2_per_cu_data::addr_type): Now methods.
8448 (per_cu_header_read_in): Make per_cu "const".
8449 (dwarf2_version): Remove.
8450 (dwarf2_per_cu_data::int_type): Now a method.
8451 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8452 (set_die_type, read_array_type, read_subrange_index_type)
8453 (read_tag_string_type, read_subrange_type): Update.
8454 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8455 offset_size, ref_addr_size, text_offset, addr_type, version,
8456 objfile, int_type, addr_sized_int_type>: Declare methods.
8457
96c738c0
TT
84582020-02-08 Tom Tromey <tom@tromey.com>
8459
8460 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8461 Move earlier.
8462
8fdd972c
TT
84632020-02-08 Tom Tromey <tom@tromey.com>
8464
8465 * dwarf2/read.h (dwarf_line_debug): Declare.
8466 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8467 * dwarf2/read.c: Move line_header code to new files.
8468 (dwarf_line_debug): No longer static.
8469 * dwarf2/line-header.c: New file.
8470 * dwarf2/line-header.h: New file.
8471
03075812
TT
84722020-02-08 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.c (struct line_header) <file_full_name,
8475 file_file_name>: Return unique_xmalloc_ptr.
8476 (line_header::file_file_name): Update.
8477 (line_header::file_full_name): Update.
8478 (dw2_get_file_names_reader): Update.
8479 (macro_start_file): Update.
8480
bb822404
TT
84812020-02-08 Tom Tromey <tom@tromey.com>
8482
8483 * dwarf2/read.c (struct line_header) <file_full_name,
8484 file_file_name>: Declare methods.
8485 (dw2_get_file_names_reader): Update.
8486 (file_file_name): Now a method.
8487 (file_full_name): Likewise.
8488 (macro_start_file): Update.
8489
009b64fc
TT
84902020-02-08 Tom Tromey <tom@tromey.com>
8491
8492 * dwarf2/read.c (dwarf_always_disassemble)
8493 (show_dwarf_always_disassemble): Move to loc.c.
8494 (_initialize_dwarf2_read): Move "always-disassemble" registration
8495 to loc.c.
8496 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8497 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8498 static.
8499 (show_dwarf_always_disassemble): Move from read.c.
8500 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8501
5895093f
TT
85022020-02-08 Tom Tromey <tom@tromey.com>
8503
8504 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8505 (create_quick_file_names_table): Return htab_up.
8506 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8507 Update.
8508 * dwarf2/read.h (struct dwarf2_per_objfile)
8509 <quick_file_names_table>: Now htab_up.
8510
b3b32279
TT
85112020-02-08 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8514
1d33d811
TT
85152020-02-08 Tom Tromey <tom@tromey.com>
8516
8517 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8518 Rewrite.
8519 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8520 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8521 (abbrev_table::abbrev_table): No longer inline.
8522 (ABBREV_HASH_SIZE): Remove.
8523 (abbrev_table::m_abbrevs): Now an htab_up.
8524
86de1d91
TT
85252020-02-08 Tom Tromey <tom@tromey.com>
8526
8527 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8528 (cutu_reader): Update.
8529 (build_type_psymtabs_1): Update.
8530 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8531 (abbrev_table::alloc_abbrev): Update.
8532 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8533 (abbrev_table::read): New static method, renamed from
8534 abbrev_table_read_table.
8535 (abbrev_table::alloc_abbrev)
8536 (abbrev_table::add_abbrev): Now private.
8537 (abbrev_table::abbrev_table): Now private.
8538 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8539
0335378b
TT
85402020-02-08 Tom Tromey <tom@tromey.com>
8541
8542 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8543 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8544 htab_up.
8545
48b490f2
TT
85462020-02-08 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8549 htab_up.
8550 (lookup_dwo_unit_in_dwp): Update.
8551 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8552 on obstack.
8553
bc68fb19
TT
85542020-02-08 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8557 obstack.
8558
d15acc42
TT
85592020-02-08 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8562 line_header_hash.
8563 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8564 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8565 Change type to htab_up.
8566
eaa5fa8b
TT
85672020-02-08 Tom Tromey <tom@tromey.com>
8568
8569 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8570 htab_up. Don't allocate on obstack.
8571 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8572 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8573 Change type to htab_up.
8574
b0b6a987
TT
85752020-02-08 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8578 Change type to htab_up.
8579 * dwarf2/read.c (create_signatured_type_table_from_index)
8580 (create_signatured_type_table_from_debug_names)
8581 (create_all_type_units, add_type_unit)
8582 (lookup_dwo_signatured_type, lookup_signatured_type)
8583 (process_skeletonless_type_unit): Update.
8584 (create_debug_type_hash_table, create_debug_types_hash_table):
8585 Change type of types_htab.
8586 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8587 htab_up. Don't allocate on obstack.
8588 (create_cus_hash_table): Change type of cus_htab parameter.
8589 (struct dwo_file) <cus, tus>: Now htab_up.
8590 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8591 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8592 (queue_and_load_all_dwo_tus): Update.
8593 * dwarf2/index-write.c (write_gdbindex): Update.
8594 (write_debug_names): Update.
8595
39856def
TT
85962020-02-08 Tom Tromey <tom@tromey.com>
8597
8598 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8599 dwarf2/read.c. Remove "next" member. Add constructor ntad
8600 destructor.
8601 (struct dwarf2_per_objfile) <queue>: New member.
8602 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8603 dwarf2/read.h.
8604 (dwarf2_queue, dwarf2_queue_tail): Remove.
8605 (class dwarf2_queue_guard): Add parameter to constructor. Use
8606 DISABLE_COPY_AND_ASSIGN.
8607 <m_per_objfile>: New member.
8608 <~dwarf2_queue_guard>: Rewrite.
8609 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8610 Update.
8611 (~dwarf2_queue_item): New.
8612
3e225074
TT
86132020-02-08 Tom Tromey <tom@tromey.com>
8614
8615 * dwarf2/read.c (struct die_info) <has_children>: New member.
8616 (dw2_get_file_names_reader): Remove has_children.
8617 (dw2_get_file_names): Update.
8618 (read_cutu_die_from_dwo): Remove has_children.
8619 (cutu_reader::init_tu_and_read_dwo_dies)
8620 (cutu_reader::cutu_reader): Update.
8621 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8622 Remove has_children.
8623 (build_type_psymtabs_1, process_skeletonless_type_unit)
8624 (load_partial_comp_unit, load_full_comp_unit): Update.
8625 (create_dwo_cu_reader): Remove has_children.
8626 (create_cus_hash_table, read_die_and_children): Update.
8627 (read_full_die_1,read_full_die): Remove has_children.
8628 (read_signatured_type): Update.
8629 (class cutu_reader) <has_children>: Remove.
8630
82ca8957
TT
86312020-02-08 Tom Tromey <tom@tromey.com>
8632
8633 * dwarf2/expr.c: Rename from dwarf2expr.c.
8634 * dwarf2/expr.h: Rename from dwarf2expr.h.
8635 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8636 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8637 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8638 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8639 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8640 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8641 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8642 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8643 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8644 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8645 * dwarf2/loc.c: Rename from dwarf2loc.c.
8646 * dwarf2/loc.h: Rename from dwarf2loc.h.
8647 * dwarf2/read.c: Rename from dwarf2read.c.
8648 * dwarf2/read.h: Rename from dwarf2read.h.
8649 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8650 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8651 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8652 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8653 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8654 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8655 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8656 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8657 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8658 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8659 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8660 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8661 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8662 Update.
8663 * Makefile.in (COMMON_SFILES): Update.
8664 (HFILES_NO_SRCDIR): Update.
8665
9e35d499
TT
86662020-02-08 Tom Tromey <tom@tromey.com>
8667
8668 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8669 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8670
1eba2311
TT
86712020-02-08 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2read.h (struct die_info): Don't declare.
8674
e41c2da2
TT
86752020-02-08 Tom Tromey <tom@tromey.com>
8676
8677 * dwarf2read.h (die_info_ptr): Remove typedef.
8678
4fc6c0d5
TT
86792020-02-08 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2read.c (read_call_site_scope)
8682 (handle_data_member_location, dwarf2_add_member_fn)
8683 (mark_common_block_symbol_computed, read_common_block)
8684 (attr_to_dynamic_prop, partial_die_info::read)
8685 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8686 (dwarf2_symbol_mark_computed, set_die_type): Update.
8687 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8688 method.
8689 (attr_form_is_block): Don't declare.
8690 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8691
cd6c91b4
TT
86922020-02-08 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2read.c (dwarf2_find_base_address, )
8695 (read_call_site_scope, rust_containing_type)
8696 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8697 (handle_data_member_location, dwarf2_add_member_fn)
8698 (get_alignment, read_structure_type, process_structure_scope)
8699 (mark_common_block_symbol_computed, read_common_block)
8700 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
8701 (partial_die_info::read, read_attribute_value, new_symbol)
8702 (lookup_die_type, dwarf2_get_ref_die_offset)
8703 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
8704 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
8705 (dwarf2_symbol_mark_computed): Update.
8706 * dwarf2/attribute.h (struct attribute) <value_as_address,
8707 form_is_section_offset, form_is_constant, form_is_ref>: Declare
8708 methods.
8709 (value_as_address, attr_form_is_section_offset)
8710 (attr_form_is_constant, attr_form_is_ref): Don't declare.
8711 * dwarf2/attribute.c (attribute::value_as_address)
8712 (attribute::form_is_section_offset, attribute::form_is_constant)
8713 (attribute::form_is_ref): Now methods.
8714
162dce55
TT
87152020-02-08 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2read.c (struct attribute, DW_STRING)
8718 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
8719 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
8720 (attr_form_is_block, attr_form_is_section_offset)
8721 (attr_form_is_constant, attr_form_is_ref): Move.
8722 * dwarf2/attribute.h: New file.
8723 * dwarf2/attribute.c: New file, from dwarf2read.c.
8724 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
8725
3054dd54
TT
87262020-02-08 Tom Tromey <tom@tromey.com>
8727
8728 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
8729 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
8730 Move.
8731 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
8732 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
8733 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
8734 abbrev.c.
8735 * dwarf2/abbrev.h: New file.
8736 * dwarf2/abbrev.c: New file, from dwarf2read.c.
8737 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
8738
96b79293
TT
87392020-02-08 Tom Tromey <tom@tromey.com>
8740
8741 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
8742 (dwarf2_section_size, dwarf2_get_section_info)
8743 (create_signatured_type_table_from_debug_names)
8744 (create_addrmap_from_aranges, read_debug_names_from_section)
8745 (get_gdb_index_contents_from_section, read_comp_unit_head)
8746 (error_check_comp_unit_head, read_abbrev_offset)
8747 (create_debug_type_hash_table, init_cu_die_reader)
8748 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
8749 (read_comp_units_from_section, create_cus_hash_table)
8750 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8751 (create_dwp_v2_section, dwarf2_rnglists_process)
8752 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
8753 (abbrev_table_read_table, read_indirect_string_at_offset_from)
8754 (read_indirect_string_from_dwz, read_addr_index_1)
8755 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
8756 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8757 (fill_in_loclist_baton): Update.
8758 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
8759 get_containing_section, get_bfd_owner, get_bfd_section,
8760 get_file_name, get_id, get_flags, empty, read>: Declare methods.
8761 (dwarf2_read_section, get_section_name, get_section_file_name)
8762 (get_containing_section, get_section_bfd_owner)
8763 (get_section_bfd_section, get_section_name, get_section_file_name)
8764 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
8765 declare.
8766 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
8767 (dwarf2_section_info::get_bfd_owner)
8768 (dwarf2_section_info::get_bfd_section)
8769 (dwarf2_section_info::get_name)
8770 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
8771 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
8772 (dwarf2_section_info::read): Now methods.
8773 * dwarf-index-write.c (class debug_names): Update.
8774
2c86cff9
TT
87752020-02-08 Tom Tromey <tom@tromey.com>
8776
8777 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
8778 Move to dwarf2/section.h.
8779 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
8780 (get_section_bfd_section, get_section_name)
8781 (get_section_file_name, get_section_id, get_section_flags)
8782 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
8783 dwarf2/section.c.
8784 * dwarf2/section.h: New file.
8785 * dwarf2/section.c: New file, from dwarf2read.c.
8786 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
8787
f4382c45
TT
87882020-02-08 Tom Tromey <tom@tromey.com>
8789
8790 * dwarf2read.h (read_unsigned_leb128): Don't declare.
8791 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
8792 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
8793 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
8794 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8795 * dwarf2/leb.h: New file, from dwarf2read.c.
8796 * dwarf2/leb.c: New file, from dwarf2read.c.
8797 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
8798 Remove.
8799 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
8800 (COMMON_SFILES): Add dwarf2/leb.c.
8801
01840b7a
JB
88022020-02-08 Joel Brobecker <brobecker@adacore.com>
8803
8804 GDB 9.1 released.
8805
dfcb27e4
IB
88062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8807
8808 PR gdb/25190:
aac66a4c
SM
8809 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
8810 * gdb/remote.c (remote_console_output): Update.
8811 * gdb/ui-file.c (fputs_unfiltered): Rename to...
8812 (ui_file_puts): ...this.
8813 * gdb/ui-file.h (ui_file_puts): Add declaration.
8814 * gdb/utils.c (emit_style_escape): Update.
8815 (flush_wrap_buffer): Update.
8816 (fputs_maybe_filtered): Update.
8817 (fputs_unfiltered): Add function.
dfcb27e4 8818
faa17681
IB
88192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
8820
aac66a4c
SM
8821 * gdb/event-loop.c (gdb_wait_for_event): Update.
8822 * gdb/printcmd.c (printf_command): Update.
8823 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
8824 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
8825 (gdb_os_flush_stderr): Update.
8826 * gdb/remote.c (remote_console_output): Update.
8827 * gdb/ui-file.c (gdb_flush): Rename to...
8828 (ui_file_flush): ...this.
8829 (stderr_file::write): Update.
8830 (stderr_file::puts): Update.
8831 * gdb/ui-file.h (gdb_flush): Rename to...
8832 (ui_file_flush): ...this.
8833 * gdb/utils.c (gdb_flush): Add function.
8834 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 8835
5abbbe1d
TT
88362020-02-07 Tom Tromey <tromey@adacore.com>
8837
8838 PR breakpoints/24915:
8839 * source.c (find_and_open_source): Do not check basenames_may_differ.
8840
919adfe8
TT
88412020-02-07 Tom Tromey <tom@tromey.com>
8842
8843 * README: Update gdbserver documentation.
8844 * gdbserver: Move to top level.
8845 * configure.tgt (build_gdbserver): Remove.
8846 * configure.ac: Remove --enable-gdbserver.
8847 * configure: Rebuild.
8848 * Makefile.in (distclean): Don't mention gdbserver.
8849
1d5d29e7
SV
88502020-02-06 Shahab Vahedi <shahab@synopsys.com>
8851
8852 * source-cache.c (source_cache::ensure): Surround
8853 get_plain_source_lines with a try/catch.
8854 (source_cache::get_line_charpos): Get rid of try/catch
8855 and only check for the return value of "ensure".
8856 * tui/tui-source.c (tui_source_window::set_contents):
8857 Simplify "nlines" calculation.
8858
6eb1129c
SV
88592020-02-06 Shahab Vahedi <shahab@synopsys.com>
8860
8861 * MAINTAINERS (Write After Approval): Add myself.
8862
c6a42d11
CB
88632020-02-05 Christian Biesinger <cbiesinger@google.com>
8864
8865 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
8866 function call.
8867
c8ecdda6
CB
88682020-02-05 Christian Biesinger <cbiesinger@google.com>
8869
8870 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
8871
f6480e70
MR
88722020-02-05 Maciej W. Rozycki <macro@wdc.com>
8873
8874 * nat/riscv-linux-tdesc.h: New file.
8875 * nat/riscv-linux-tdesc.c: New file, taking code from...
8876 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8877 ... here.
8878 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
8879 NATDEPFILES.
8880
dcc9fbc6
AB
88812020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
8884 we don't set the fake simulator ptid to the null_ptid.
8885
719546c4
SM
88862020-02-03 Simon Marchi <simon.marchi@efficios.com>
8887
8888 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
8889 * gdbthread.h (class thread_info) <resumed>: Likewise.
8890 * infrun.c (resume_1): Likewise.
8891 (proceed): Likewise.
8892 (infrun_thread_stop_requested): Likewise.
8893 (stop_all_threads): Likewise.
8894 (handle_inferior_event): Likewise.
8895 (restart_threads): Likewise.
8896 (finish_step_over): Likewise.
8897 (keep_going_stepped_thread): Likewise.
8898 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
8899 (linux_handle_extended_wait): Likewise.
8900 * record-btrace.c (get_thread_current_frame_id): Likewise.
8901 * record-full.c (record_full_wait_1): Likewise.
8902 * remote.c (remote_target::process_initial_stop_replies): Likewise.
8903 * target.c (target_resume): Likewise.
8904 * thread.c (set_running_thread): Likewise.
8905
e409c542
AKS
89062020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8907
8908 * f-valprint.c (f77_print_array_1): Changed datatype of index
8909 variable to LONGEST from int to enable it to contain bound
8910 values correctly.
8911
ee98c0da
MR
89122020-02-03 Maciej W. Rozycki <macro@wdc.com>
8913
8914 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
8915 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
8916 offsets according to FLEN determined.
8917 (riscv_linux_nat_target::read_description): Determine FLEN
8918 dynamically.
8919 (riscv_linux_nat_target::fetch_registers): Size regset buffer
8920 according to FLEN determined.
8921 (riscv_linux_nat_target::store_registers): Likewise.
8922
aa66aac4
SV
89232020-02-01 Shahab Vahedi <shahab@synopsys.com>
8924
8925 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8926 when reg->group is empty and reggroup is not.
8927
fd9faca8
TT
89282020-01-31 Tom Tromey <tromey@adacore.com>
8929
8930 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
8931 Call beneath target's mourn_inferior after unpushing.
8932
42330a68
AB
89332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8934
8935 PR tui/9765
8936 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
8937 have enough lines to fill the screen, still return the lowest
8938 address we found.
8939
7a27a45b
AB
89402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
8943 '-', '<', and '>' commands.
8944
c47f70e2
PA
89452020-01-29 Pedro Alves <palves@redhat.com>
8946 Sergio Durigan Junior <sergiodj@redhat.com>
8947
8948 * infcmd.c (construct_inferior_arguments): Assert that
8949 'argc' is greater than 0.
8950
5133a315
LM
89512020-01-29 Luis Machado <luis.machado@linaro.org>
8952
8953 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
8954 (BRK_INSN_MASK): Define to 0xd4200000.
8955 (aarch64_program_breakpoint_here_p): New function.
8956 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
8957 * arch-utils.c (default_program_breakpoint_here_p): Moved from
8958 breakpoint.c.
8959 * arch-utils.h (default_program_breakpoint_here_p): Moved from
8960 breakpoint.h
8961 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
8962 call gdbarch_program_breakpoint_here_p.
8963 (program_breakpoint_here): Moved to arch-utils.c, renamed to
8964 default_program_breakpoint_here_p, changed return type to bool and
8965 simplified.
8966 * breakpoint.h (program_breakpoint_here): Moved prototype to
8967 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
8968 return type to bool.
8969 * gdbarch.c: Regenerate.
8970 * gdbarch.h: Regenerate.
8971 * gdbarch.sh (program_breakpoint_here_p): New method.
8972 * infrun.c (handle_signal_stop): Call
8973 gdbarch_program_breakpoint_here_p.
8974
168f8c6b
TT
89752020-01-26 Tom Tromey <tom@tromey.com>
8976
8977 * ctfread.c (struct ctf_fp_info): Reindent.
8978 (_initialize_ctfread): Remove.
8979
128a391f
TT
89802020-01-26 Tom Tromey <tom@tromey.com>
8981
8982 * psymtab.c (partial_map_expand_apply)
8983 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8984 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8985 (psym_print_stats, psym_expand_symtabs_for_function)
8986 (psym_map_symbol_filenames, psym_map_matching_symbols)
8987 (psym_expand_symtabs_matching)
8988 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8989 (maintenance_check_psymtabs): Use new methods.
8990 * psympriv.h (struct partial_symtab) <readin_p,
8991 get_compunit_symtab>: New methods.
8992 <readin, compunit_symtab>: Remove members.
8993 (struct standard_psymtab): New.
8994 (struct legacy_psymtab): Derive from standard_psymtab.
8995 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8996 standard_psymtab.
8997 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8998
0494dbec
TT
89992020-01-26 Tom Tromey <tom@tromey.com>
9000
9001 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9002 read_dependencies. Add assert.
9003 * psymtab.c (partial_symtab::read_dependencies): New method.
9004 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9005 method.
9006 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9007 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9008 read_dependencies.
9009 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9010 Add assert.
9011
8566b89b
TT
90122020-01-26 Tom Tromey <tom@tromey.com>
9013
9014 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9015 Call expand_psymtab.
9016 (xcoff_read_symtab): Call expand_psymtab.
9017 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9018 legacy_expand_psymtab.
9019 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9020 method.
9021 (struct legacy_psymtab) <expand_psymtab>: Implement.
9022 <legacy_expand_psymtab>: New member.
9023 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9024 (parse_partial_symbols): Set legacy_expand_psymtab.
9025 (psymtab_to_symtab_1): Change argument order. Call
9026 expand_psymtab.
9027 (new_psymtab): Set legacy_expand_psymtab.
9028 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9029 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9030 expand_psymtab.
9031 (dwarf2_psymtab::expand_psymtab): Rename from
9032 psymtab_to_symtab_1. Call expand_psymtab.
9033 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9034 (dbx_end_psymtab): Likewise.
9035 (dbx_psymtab_to_symtab_1): Change argument order. Call
9036 expand_psymtab.
9037 (dbx_read_symtab): Call expand_psymtab.
9038 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9039 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9040 (ctf_psymtab::read_symtab): Call expand_psymtab.
9041
077cbab2
TT
90422020-01-26 Tom Tromey <tom@tromey.com>
9043
9044 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9045 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9046 messages.
9047 * mdebugread.c (mdebug_read_symtab): Remove prints.
9048 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9049 assert.
9050 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9051
891813be
TT
90522020-01-26 Tom Tromey <tom@tromey.com>
9053
9054 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9055 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9056 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9057 legacy_symtab.
9058 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9059 * psymtab.c (psymtab_to_symtab): Call method.
9060 (dump_psymtab): Update.
9061 * psympriv.h (struct partial_symtab): Add virtual destructor.
9062 <read_symtab>: New method.
9063 (struct legacy_symtab): New.
9064 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9065 (struct pst_map) <pst>: Now a legacy_psymtab.
9066 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9067 (new_psymtab): Use legacy_psymtab.
9068 * dwarf2read.h (struct dwarf2_psymtab): New.
9069 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9070 * dwarf2read.c (dwarf2_create_include_psymtab)
9071 (dwarf2_build_include_psymtabs, create_type_unit_group)
9072 (create_partial_symtab, process_psymtab_comp_unit_reader)
9073 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9074 (set_partial_user): Use dwarf2_psymtab.
9075 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9076 (psymtab_to_symtab_1, process_full_comp_unit)
9077 (process_full_type_unit, dwarf2_ranges_read)
9078 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9079 (dwarf_decode_lines): Use dwarf2_psymtab.
9080 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9081 (add_address_entry_worker, write_one_signatured_type)
9082 (recursively_count_psymbols, recursively_write_psymbols)
9083 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9084 (write_debug_names): Likewise.
9085 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9086 <pst>: Now a legacy_psymtab.
9087 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9088 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9089 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9090 * ctfread.c (struct ctf_psymtab): New.
9091 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9092 ctf_psymtab.
9093 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9094 (create_partial_symtab): Return a ctf_psymtab.
9095 (scan_partial_symbols): Update.
9096
c3693a1d
TT
90972020-01-26 Tom Tromey <tom@tromey.com>
9098
9099 * xcoffread.c (xcoff_start_psymtab): Use new.
9100 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9101 renamed from start_psymtab_common.
9102 * psympriv.h (struct partial_symtab): Add new constructor.
9103 (start_psymtab_common): Don't declare.
9104 * mdebugread.c (parse_partial_symbols): Use new.
9105 * dwarf2read.c (create_partial_symtab): Use new.
9106 * dbxread.c (start_psymtab): Use new.
9107 * ctfread.c (create_partial_symtab): Use new.
9108
32caafd0
TT
91092020-01-26 Tom Tromey <tom@tromey.com>
9110
9111 * xcoffread.c (xcoff_end_psymtab): Use new.
9112 * psymtab.c (start_psymtab_common): Use new.
9113 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9114 Update.
9115 * psympriv.h (struct partial_symtab): Add parameters to
9116 constructor. Don't inline.
9117 (allocate_psymtab): Don't declare.
9118 * mdebugread.c (new_psymtab): Use new.
9119 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9120 * dbxread.c (dbx_end_psymtab): Use new.
9121
abaa2f23
TT
91222020-01-26 Tom Tromey <tom@tromey.com>
9123
9124 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9125 allocate_psymtab. Update documentation.
9126 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9127 allocate_psymtab. Do not use new.
9128 (allocate_psymtab): Use new. Update.
9129
6d94535f
TT
91302020-01-26 Tom Tromey <tom@tromey.com>
9131
9132 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9133 * psymtab.c (psym_print_stats): Update.
9134 * psympriv.h (struct partial_symtab) <readin,
9135 psymtabs_addrmap_supported, anonymous>: Now bool.
9136 * mdebugread.c (psymtab_to_symtab_1): Update.
9137 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9138 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9139 (process_full_comp_unit, process_full_type_unit): Update.
9140 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9141 * ctfread.c (psymtab_to_symtab): Update.
9142
6f17252b
TT
91432020-01-26 Tom Tromey <tom@tromey.com>
9144
9145 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9146 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9147 * psymtab.c (psymtab_storage): Delete psymtabs.
9148 (psymtab_storage::allocate_psymtab): Use new.
9149 (psymtab_storage::discard_psymtab): Use delete.
9150 * psympriv.h (struct partial_symtab): Add constructor and
9151 initializers.
9152
f6f1cebc
TT
91532020-01-26 Tom Tromey <tom@tromey.com>
9154
9155 * machoread.c: Do not include psympriv.h.
9156
e47e48f6
PW
91572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9158
9159 * NEWS: Mention the new option and the set/show commands.
9160
a2fedca9
PW
91612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9162
9163 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9164 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9165 (validate_exec_file): New variables, enums, functions.
9166 (exec_file_locate_attach, print_section_info): Style the filenames.
9167 (_initialize_exec): Install show_exec_file_mismatch_command and
9168 set_exec_file_mismatch_command.
9169 * gdbcore.h (validate_exec_file): Declare.
9170 * infcmd.c (attach_command): Call validate_exec_file.
9171 * remote.c ( remote_target::remote_add_inferior): Likewise.
9172
7ffa82e1
AB
91732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9174
9175 * frame.c (find_frame_sal): Move call to get_next_frame into more
9176 inner scope.
9177 * inline-frame.c (inilne_state) <inline_state>: Update argument
9178 types.
9179 (inilne_state) <skipped_symbol>: Rename to...
9180 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9181 (skip_inline_frames): Build vector of skipped symbols and use this
9182 to reate the inline_state.
9183 (inline_skipped_symbol): Add a comment and some assertions, fetch
9184 skipped symbol from the list.
9185
3d92a3e3
AB
91862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9187
9188 * buildsym.c (lte_is_less_than): Delete.
9189 (buildsym_compunit::end_symtab_with_blockvector): Create local
9190 lambda function to sort line table entries, and use
9191 std::stable_sort instead of std::sort.
9192 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9193 markers when looking for a previous line.
9194
94a72be7
AB
91952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * dwarf2read.c (lnp_state_machine::record_line): Include
9198 end_sequence parameter in debug print out. Record the line if we
9199 are at an end_sequence marker even if it's not the start of a
9200 statement.
9201 * symmisc.c (maintenance_print_one_line_table): Print end of
9202 sequence markers with 'END' not '0'.
9203
53af73bf
PA
92042020-01-24 Pedro Alves <palves@redhat.com>
9205
9206 PR gdb/25410
9207 * thread.c (scoped_restore_current_thread::restore): Use
9208 switch_to_inferior_no_thread.
9209 * exec.c: Include "progspace-and-thread.h".
9210 (add_target_sections, remove_target_sections):
9211 scoped_restore_current_pspace_and_thread instead of
9212 scoped_restore_current_thread.
9213 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9214 and aspace to the inferior before calling clone_program_space.
9215 Remove stale comment.
9216
3050c6f4
CB
92172020-01-24 Christian Biesinger <cbiesinger@google.com>
9218
9219 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9220 (arm_netbsd_nat_target::fetch_registers): ...this.
9221 (arm_nbsd_nat_target::store_registers): Rename to...
9222 (arm_netbsd_nat_target::store_registers): ...this.
9223
73685c7e
CB
92242020-01-24 Christian Biesinger <cbiesinger@google.com>
9225
9226 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9227 register_t.
9228
89203d40
CB
92292020-01-24 Christian Biesinger <cbiesinger@google.com>
9230
9231 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9232 Update comment.
9233 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9234 Likewise.
9235 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9236 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9237 the correct replacement (iterate_over_regset_sections).
9238 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9239 Update comment.
9240
1ba1ac88
AB
92412020-01-24 Graham Markall <graham.markall@embecosm.com>
9242
9243 PR gdb/23718
9244 * gdb/python/python.c (execute_gdb_command): Call
9245 async_enable_stdin in catch block.
9246
f3364a6d
AB
92472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9250 SWITCH_THRU_ALL_UIS.
9251
733d0a67
AB
92522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9253
9254 PR tui/9765
9255 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9256 comment, add extra parameter, and update to store previous symbol
9257 when appropriate.
9258 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9259 add extra parameter.
9260 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9261 remove unneeded parameter, add try/catch around gdb_print_insn,
9262 rewrite to add items to asm_lines vector.
9263 (tui_find_backward_disassembly_start_address): New function.
9264 (tui_find_disassembly_address): Updated throughout.
9265 (tui_disasm_window::set_contents): Update for changes to
9266 tui_disassemble.
9267 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9268 number of lines to scroll.
9269
b3b3bada
SM
92702020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9271
9272 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9273 (SECT_OFF_DATA): Likewise.
9274 (SECT_OFF_RODATA): Likewise.
9275 (SECT_OFF_TEXT): Likewise.
9276 (SECT_OFF_BSS): Likewise.
9277 (struct objfile) <text_section_offset, data_section_offset>: New
9278 methods.
9279 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9280 objfile::text_section_offset.
9281 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9282 * coffread.c (coff_symtab_read): Likewise.
9283 (enter_linenos): Likewise.
9284 (process_coff_symbol): Likewise.
9285 * ctfread.c (get_objfile_text_range): Likewise.
9286 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9287 Use objfile::data_section_offset.
9288 * dwarf2-frame.c (execute_cfa_program): Use
9289 objfile::text_section_offset.
9290 (dwarf2_frame_find_fde): Likewise.
9291 * dwarf2read.c (create_addrmap_from_index): Likewise.
9292 (create_addrmap_from_aranges): Likewise.
9293 (dw2_find_pc_sect_compunit_symtab): Likewise.
9294 (process_psymtab_comp_unit_reader): Likewise.
9295 (add_partial_symbol): Likewise.
9296 (add_partial_subprogram): Likewise.
9297 (process_full_comp_unit): Likewise.
9298 (read_file_scope): Likewise.
9299 (read_func_scope): Likewise.
9300 (read_lexical_block_scope): Likewise.
9301 (read_call_site_scope): Likewise.
9302 (dwarf2_rnglists_process): Likewise.
9303 (dwarf2_ranges_process): Likewise.
9304 (dwarf2_ranges_read): Likewise.
9305 (dwarf_decode_lines_1): Likewise.
9306 (new_symbol): Likewise.
9307 (dwarf2_fetch_die_loc_sect_off): Likewise.
9308 (dwarf2_per_cu_text_offset): Likewise.
9309 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9310 * hppa-tdep.c (read_unwind_info): Likewise.
9311 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9312 * psympriv.h (struct partial_symtab): Likewise.
9313 * psymtab.c (find_pc_sect_psymtab): Likewise.
9314 * solib-svr4.c (enable_break): Likewise.
9315 * stap-probe.c (relocate_address): Use
9316 objfile::data_section_offset.
9317 * xcoffread.c (enter_line_range): Use
9318 objfile::text_section_offset.
9319 (read_xcoff_symtab): Likewise.
9320
ab53f382
SM
93212020-01-23 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9324 declaration to narrower scopes.
9325
e7eee665
SM
93262020-01-23 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * darwin-nat.h (struct darwin_exception_msg, enum
9329 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9330 Move up.
9331 (class darwin_nat_target) <wait_1, check_new_threads,
9332 decode_exception_message, decode_message, stop_inferior,
9333 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9334 * darwin-nat.c (darwin_check_new_threads): Rename to...
9335 (darwin_nat_target::check_new_threads): ... this.
9336 (darwin_suspend_inferior_it): Remove.
9337 (darwin_decode_exception_message): Rename to...
9338 (darwin_nat_target::decode_exception_message): ... this.
9339 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9340 (darwin_decode_message): Rename to...
9341 (darwin_nat_target::decode_message): ... this.
9342 (cancel_breakpoint): Rename to...
9343 (darwin_nat_target::cancel_breakpoint): ... this.
9344 (darwin_wait): Rename to...
9345 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9346 instead of iterate_over_inferiors.
9347 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9348 (darwin_stop_inferior): Rename to...
9349 (darwin_nat_target::stop_inferior): ... this.
9350 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9351 (darwin_init_thread_list): Rename to...
9352 (darwin_nat_target::init_thread_list): ... this.
9353 (darwin_ptrace_him): Rename to...
9354 (darwin_nat_target::ptrace_him): ... this.
9355 (darwin_nat_target::create_inferior): Pass lambda function to
9356 fork_inferior.
9357 (darwin_nat_target::detach): Call stop_inferior instead of
9358 darwin_stop_inferior.
9359 * fork-inferior.h (fork_inferior): Change init_trace_fun
9360 parameter to gdb::function_view.
9361 * fork-inferior.c (fork_inferior): Likewise.
9362
c162ed3e
HD
93632020-01-23 Hannes Domani <ssbssa@yahoo.de>
9364
9365 * i386-cygwin-tdep.c (core_process_module_section): Update.
9366 * windows-nat.c (struct lm_info_windows): Add text_offset.
9367 (windows_xfer_shared_libraries): Update.
9368 * windows-tdep.c (windows_xfer_shared_library):
9369 Add text_offset_cached argument.
9370 * windows-tdep.h (windows_xfer_shared_library): Update.
9371
a1237872
SM
93722020-01-21 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9375
b3ee6dd9
SM
93762020-01-21 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9379 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9380 replace with range-based for.
9381 (gdbsim_interrupt_inferior): Remove.
9382 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9383 with a range-based for. Inline code from
9384 gdbsim_interrupt_inferior.
9385
f9fac3c8
SM
93862020-01-21 Simon Marchi <simon.marchi@efficios.com>
9387
9388 * infrun.c (proceed): Fix indentation.
9389
f6474de9
TT
93902020-01-21 Tom Tromey <tromey@adacore.com>
9391
9392 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9393 * python/python.c (python_extension_ops): Update.
9394 (gdbpy_colorize): New function.
9395 * python/lib/gdb/__init__.py (colorize): New function.
9396 * extension.h (ext_lang_colorize): Declare.
9397 * extension.c (ext_lang_colorize): New function.
9398 * extension-priv.h (struct extension_language_ops) <colorize>: New
9399 member.
9400 * cli/cli-style.c (_initialize_cli_style): Update help text.
9401
f0c702d4
LM
94022020-01-21 Luis Machado <luis.machado@linaro.org>
9403
9404 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9405 <cond>: Change type to bool.
9406 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9407 (aarch64_displaced_step_cb): Likewise.
9408 (aarch64_displaced_step_tb): Likewise.
9409
1ab139e5
LM
94102020-01-21 Luis Machado <luis.machado@linaro.org>
9411
9412 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9413 output.
9414
0c271889
LM
94152020-01-21 Luis Machado <luis.machado@linaro.org>
9416
9417 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9418 <pc_adjust>: Adjust the documentation.
9419 (aarch64_displaced_step_fixup): Check if PC really moved before
9420 adjusting it.
9421
4d89c1c7
TT
94222020-01-19 Tom Tromey <tom@tromey.com>
9423
9424 * disasm.c (~gdb_disassembler): New destructor.
9425 (gdb_buffered_insn_length): Call disassemble_free_target.
9426 * disasm.h (class gdb_disassembler): Declare destructor. Use
9427 DISABLE_COPY_AND_ASSIGN.
9428
c0ab21c2
TT
94292020-01-19 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9432 (die_reader_func_ftype): Remove.
9433 (cutu_reader): New class.
9434 (dw2_get_file_names_reader): Remove "data" parameter.
9435 (dw2_get_file_names): Use cutu_reader.
9436 (create_debug_type_hash_table): Update.
9437 (read_cutu_die_from_dwo): Update comment.
9438 (lookup_dwo_unit): Add dwo_name parameter.
9439 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9440 die_reader_func_ftype and data parameters.
9441 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9442 Remove die_reader_func_ftype and data parameters.
9443 (~cutu_reader): New; from init_cutu_and_read_dies.
9444 (cutu_reader::cutu_reader): Rename from
9445 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9446 and data parameters.
9447 (init_cutu_and_read_dies_simple): Remove.
9448 (struct process_psymtab_comp_unit_data): Remove.
9449 (process_psymtab_comp_unit_reader): Remove data parameter; add
9450 want_partial_unit and pretend_language parameters.
9451 (process_psymtab_comp_unit): Use cutu_reader.
9452 (build_type_psymtabs_reader): Remove data parameter.
9453 (build_type_psymtabs_1): Use cutu_reader.
9454 (process_skeletonless_type_unit): Likewise.
9455 (load_partial_comp_unit_reader): Remove.
9456 (load_partial_comp_unit): Use cutu_reader.
9457 (load_full_comp_unit_reader): Remove.
9458 (load_full_comp_unit): Use cutu_reader.
9459 (struct create_dwo_cu_data): Remove.
9460 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9461 dwo_unit parameters.
9462 (create_cus_hash_table): Use cutu_reader.
9463 (struct dwarf2_read_addr_index_data): Remove.
9464 (dwarf2_read_addr_index_reader): Remove.
9465 (dwarf2_read_addr_index): Use cutu_reader.
9466 (read_signatured_type_reader): Remove.
9467 (read_signatured_type): Use cutu_reader.
9468
45bbae5c
TT
94692020-01-19 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9472 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9473 (tui_wrefresh): Declare.
9474 * tui/tui-wingeneral.c (suppress_output): New global.
9475 (tui_suppress_output, ~tui_suppress_output): New constructor and
9476 destructor.
9477 (tui_wrefresh): New function.
9478 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9479 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9480 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9481 method.
9482 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9483 tui_wrefresh.
9484 (tui_data_window::no_refresh): New method.
9485 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9486 (tui_reg_command): Use tui_suppress_output
9487 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9488 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9489 method.
9490 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9491
4f13c1c0
TT
94922020-01-19 Tom Tromey <tom@tromey.com>
9493
9494 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9495 Handle case where symtab is null.
9496
fa47e446
SM
94972020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9498
9499 * linux-fork.c (one_fork_p): Simplify.
9500
26f42329
SM
95012020-01-17 Simon Marchi <simon.marchi@efficios.com>
9502
9503 * top.c (struct qt_args): Remove.
9504 (kill_or_detach): Change return type to void, replace `void *`
9505 parameter with a proper one.
9506 (print_inferior_quit_action): Likewise.
9507 (quit_confirm): Use range-based for loop to iterate over inferiors.
9508 (quit_force): Likewise.
9509
a9ac81b1
SM
95102020-01-17 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9513 `void *` parameter with proper parameters.
9514 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9515 (print_one_inferior): Change return type to void, replace `void *`
9516 parameter with proper parameters.
9517 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9518 inferiors.
9519 (get_other_inferior): Remove.
9520 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9521 inferiors.
9522
788eca49
SM
95232020-01-17 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * mi/mi-interp.c (report_initial_inferior): Remove.
9526 (mi_interp::init): Use range-based for to iterate over inferiors.
9527
d9bc85b6
SM
95282020-01-17 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * python/py-inferior.c (build_inferior_list): Remove.
9531 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9532
40c94099
CB
95332020-01-16 Christian Biesinger <cbiesinger@google.com>
9534
9535 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9536 (btrace_stitch_trace): Likewise.
9537 * charset.c (intermediate_encoding): Likewise (vaild).
9538 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9539 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9540 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9541
e0cdfe3c
HD
95422020-01-16 Hannes Domani <ssbssa@yahoo.de>
9543
9544 * windows-tdep.c (windows_get_tlb_type):
9545 Add rtl_user_process_parameters type.
9546
790f1718 95472020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9548 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9549
9550 PR build/24805
9551 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9552 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9553 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9554 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9555 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9556 (ps_plog): Redeclare exported functions with default visibility.
9557
3112ed97
NA
95582020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9559
9560 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9561 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9562
8dc3273e
SM
95632020-01-15 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * infcmd.c (post_create_inferior): Use get_thread_regcache
9566 instead of get_current_regcache.
9567
ff47f4f0
TT
95682020-01-14 Tom Tromey <tom@tromey.com>
9569
9570 PR symtab/12535:
9571 * python/python.c (gdbpy_decode_line): Treat empty string the same
9572 as no argument.
9573
975f45b7
TT
95742020-01-14 Tom Tromey <tom@tromey.com>
9575
9576 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9577
25e57356
TT
95782020-01-14 Tom Tromey <tom@tromey.com>
9579
9580 * nat/linux-btrace.c: Don't include <config.h>.
9581 * nat/linux-ptrace.c: Don't include <config.h>.
9582 * nat/x86-linux-dregs.c: Don't include <config.h>.
9583
05ea2a05
TT
95842020-01-14 Tom Tromey <tom@tromey.com>
9585
9586 * configure: Rebuild.
9587 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9588
01027315
TT
95892020-01-14 Tom Tromey <tom@tromey.com>
9590
9591 * nat/x86-linux-dregs.c: Include configh.h.
9592 * nat/linux-ptrace.c: Include configh.h.
9593 * nat/linux-btrace.c: Include configh.h.
9594 * defs.h: Include config.h, bfd.h.
9595 * configure.ac: Don't source common.host.
9596 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9597 * configure: Rebuild.
9598 * acinclude.m4: Update path.
9599 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9600 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9601 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9602 (CLIBS): Add LIBSUPPORT.
9603 (CDEPS): Likewise.
9604 (COMMON_SFILES): Remove gdbsupport files.
9605 (HFILES_NO_SRCDIR): Likewise.
9606 (stamp-version): Update path to create-version.sh.
9607 (ALLDEPFILES): Remove gdbsupport files.
9608
b2ceabe8
TT
96092020-01-14 Tom Tromey <tom@tromey.com>
9610
9611 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9612 USE_WIN32API when needed.
9613 * configure.ac (USE_WIN32API): Don't define.
9614 (WIN32LIBS): Use WIN32APILIBS.
9615 * configure: Rebuild.
9616
25c51f71
TT
96172020-01-14 Tom Tromey <tom@tromey.com>
9618
9619 * configure: Rebuild.
9620 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9621
717c684d
BE
96222020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9623
9624 * skip.c (skip_function_command): Make skip w/o arguments use the
9625 name of the inlined function if pc is inside any inlined function.
9626
7da6a5b9
LM
96272020-01-14 Luis Machado <luis.machado@linaro.org>
9628
9629 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9630 * infrun.c (resume_1): Likewise.
9631 (handle_inferior_event): Remove stale comment.
9632 * linux-nat.c (linux_nat_target::resume): Update comments.
9633 (save_stop_reason): Likewise.
9634 (linux_nat_filter_event): Likewise.
9635 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9636
44e4c775
AB
96372020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9638
9639 * elfread.c (record_minimal_symbol): Set section index to 0 for
9640 non-allocatable sections.
9641
18a8505e
AT
9642
96432020-01-13 Ali Tamur <tamur@google.com>
9644
9645 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9646 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9647 to gdb::optional. Update comments.
9648 (dwo_file): Update comments.
9649 (read_attribute): Update API to take an additional out parameter,
9650 need_reprocess. This is used to mark attributes that need other
9651 attributes (e.g. str_offsets_base) for correct computation which may not
9652 have been read yet.
9653 (read_attribute_reprocess): New function declaration.
9654 (read_addr_index): Likewise.
9655 (read_dwo_str_index): Likewise.
9656 (read_stub_str_index): Likewise.
9657 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9658 (lookup_addr_base): New function definition.
9659 (lookup_ranges_base): Likewise.
9660 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9661 lookup_ranges_base.
9662 (init_cutu_and_read_dies): Update comments.
9663 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9664 unit. This is used to inherit parent's str_offsets_base and addr_base.
9665 Update comments.
9666 (init_cutu_and_read_dies_simple): Reflect API changes.
9667 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9668 (create_cus_hash_table): Change API to take parent compile unit.
9669 Reflect API changes.
9670 (open_and_init_dwo_file): Reflect API changes.
9671 (dwarf2_get_pc_bounds): Update comments.
9672 (dwarf2_record_block_ranges): Likewise.
9673 (read_full_die_1): Change implementation to reprocess attributes that
9674 need str_offsets_base and addr_base.
9675 (partial_die_info::read): Likewise.
9676 (read_attribute_reprocess): New function definition.
9677 (read_attribute_value): Change API to take an additional out parameter,
9678 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9679 when a non-dwo compile unit has index based attributes.
9680 (read_attribute): Reflect API changes.
9681 (read_addr_index_1): Reflect API changes. Update comments.
9682 (dwarf2_read_addr_index_data): Reflect API changes.
9683 (dwarf2_read_addr_index): Likewise.
9684 (read_str_index): Change API and implementation. This becomes a helper
9685 to be used by the new string index related methods. Update error
9686 message and comments.
9687 (read_dwo_str_index): New function definition.
9688 (read_stub_str_index): Likewise.
9689 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9690 * symfile.h (dwarf2_debug_sections): Likewise.
9691 * xcoffread.c (dwarf2_debug_sections): Likewise.
9692
0cac9354
SM
96932020-01-13 Simon Marchi <simon.marchi@efficios.com>
9694
9695 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9696 core_reg_sect type to gdb_byte *.
9697 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9698 * cris-tdep.c (fetch_core_registers): Likewise.
9699 * corelow.c (core_target::get_core_register_section): Change
9700 type of `contents` to gdb::byte_vector.
9701
9a6d629c
AB
97022020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9703
9704 * tui/tui-wingeneral.c (box_win): Position the title in the center
9705 of the border.
9706
d8b2f9e3
SM
97072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9708
9709 * corelow.c (core_target::get_core_register_section): Use
9710 std::vector instead of alloca.
9711
bb564c58
SM
97122020-01-13 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * warning.m4: Add -Wmissing-declarations to build_warnings.
9715 * configure: Re-generate.
9716
6b366111
SM
97172020-01-13 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * python/python.c (init__gdb_module): Add declaration.
9720
6c265988
SM
97212020-01-13 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
9724 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
9725 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
9726 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
9727 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
9728 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
9729 * ada-exp.y (_initialize_ada_exp): Add declaration.
9730 * ada-lang.c (_initialize_ada_language): Add declaration.
9731 * ada-tasks.c (_initialize_tasks): Add declaration.
9732 * agent.c (_initialize_agent): Add declaration.
9733 * aix-thread.c (_initialize_aix_thread): Add declaration.
9734 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
9735 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
9736 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
9737 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
9738 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
9739 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
9740 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
9741 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
9742 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
9743 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
9744 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
9745 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
9746 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
9747 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
9748 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
9749 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
9750 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
9751 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
9752 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
9753 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
9754 * annotate.c (_initialize_annotate): Add declaration.
9755 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
9756 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
9757 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
9758 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
9759 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
9760 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
9761 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
9762 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
9763 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
9764 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
9765 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
9766 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
9767 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
9768 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
9769 * auto-load.c (_initialize_auto_load): Add declaration.
9770 * auxv.c (_initialize_auxv): Add declaration.
9771 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
9772 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
9773 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
9774 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
9775 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
9776 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
9777 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
9778 * breakpoint.c (_initialize_breakpoint): Add declaration.
9779 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
9780 * btrace.c (_initialize_btrace): Add declaration.
9781 * charset.c (_initialize_charset): Add declaration.
9782 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
9783 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
9784 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
9785 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
9786 * cli/cli-script.c (_initialize_cli_script): Add declaration.
9787 * cli/cli-style.c (_initialize_cli_style): Add declaration.
9788 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
9789 * coffread.c (_initialize_coffread): Add declaration.
9790 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
9791 * compile/compile.c (_initialize_compile): Add declaration.
9792 * complaints.c (_initialize_complaints): Add declaration.
9793 * completer.c (_initialize_completer): Add declaration.
9794 * copying.c (_initialize_copying): Add declaration.
9795 * corefile.c (_initialize_core): Add declaration.
9796 * corelow.c (_initialize_corelow): Add declaration.
9797 * cp-abi.c (_initialize_cp_abi): Add declaration.
9798 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
9799 * cp-support.c (_initialize_cp_support): Add declaration.
9800 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
9801 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
9802 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
9803 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
9804 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
9805 * ctfread.c (_initialize_ctfread): Add declaration.
9806 * d-lang.c (_initialize_d_language): Add declaration.
9807 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
9808 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
9809 * dbxread.c (_initialize_dbxread): Add declaration.
9810 * dcache.c (_initialize_dcache): Add declaration.
9811 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
9812 * disasm.c (_initialize_disasm): Add declaration.
9813 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
9814 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
9815 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
9816 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
9817 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
9818 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
9819 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
9820 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
9821 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
9822 * elfread.c (_initialize_elfread): Add declaration.
9823 * exec.c (_initialize_exec): Add declaration.
9824 * extension.c (_initialize_extension): Add declaration.
9825 * f-lang.c (_initialize_f_language): Add declaration.
9826 * f-valprint.c (_initialize_f_valprint): Add declaration.
9827 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
9828 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
9829 * filesystem.c (_initialize_filesystem): Add declaration.
9830 * findcmd.c (_initialize_mem_search): Add declaration.
9831 * findvar.c (_initialize_findvar): Add declaration.
9832 * fork-child.c (_initialize_fork_child): Add declaration.
9833 * frame-base.c (_initialize_frame_base): Add declaration.
9834 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
9835 * frame.c (_initialize_frame): Add declaration.
9836 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
9837 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
9838 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
9839 * gcore.c (_initialize_gcore): Add declaration.
9840 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
9841 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
9842 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
9843 * gdbarch.c (_initialize_gdbarch): Add declaration.
9844 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
9845 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
9846 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
9847 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
9848 * go-lang.c (_initialize_go_language): Add declaration.
9849 * go32-nat.c (_initialize_go32_nat): Add declaration.
9850 * guile/guile.c (_initialize_guile): Add declaration.
9851 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
9852 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
9853 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
9854 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
9855 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
9856 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
9857 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
9858 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
9859 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
9860 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
9861 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
9862 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
9863 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
9864 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
9865 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
9866 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
9867 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
9868 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
9869 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
9870 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
9871 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
9872 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
9873 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
9874 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
9875 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
9876 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
9877 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
9878 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
9879 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
9880 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
9881 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
9882 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
9883 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
9884 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
9885 * infcall.c (_initialize_infcall): Add declaration.
9886 * infcmd.c (_initialize_infcmd): Add declaration.
9887 * inflow.c (_initialize_inflow): Add declaration.
9888 * infrun.c (_initialize_infrun): Add declaration.
9889 * interps.c (_initialize_interpreter): Add declaration.
9890 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
9891 * jit.c (_initialize_jit): Add declaration.
9892 * language.c (_initialize_language): Add declaration.
9893 * linux-fork.c (_initialize_linux_fork): Add declaration.
9894 * linux-nat.c (_initialize_linux_nat): Add declaration.
9895 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
9896 * linux-thread-db.c (_initialize_thread_db): Add declaration.
9897 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
9898 * m2-lang.c (_initialize_m2_language): Add declaration.
9899 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
9900 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
9901 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
9902 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
9903 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
9904 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
9905 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
9906 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
9907 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
9908 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
9909 * machoread.c (_initialize_machoread): Add declaration.
9910 * macrocmd.c (_initialize_macrocmd): Add declaration.
9911 * macroscope.c (_initialize_macroscope): Add declaration.
9912 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
9913 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
9914 * maint.c (_initialize_maint_cmds): Add declaration.
9915 * mdebugread.c (_initialize_mdebugread): Add declaration.
9916 * memattr.c (_initialize_mem): Add declaration.
9917 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
9918 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
9919 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
9920 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
9921 * mi/mi-main.c (_initialize_mi_main): Add declaration.
9922 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
9923 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
9924 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
9925 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
9926 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
9927 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
9928 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
9929 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
9930 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
9931 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
9932 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
9933 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
9934 * mipsread.c (_initialize_mipsread): Add declaration.
9935 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
9936 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
9937 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
9938 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
9939 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
9940 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
9941 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
9942 * nto-procfs.c (_initialize_procfs): Add declaration.
9943 * objc-lang.c (_initialize_objc_language): Add declaration.
9944 * observable.c (_initialize_observer): Add declaration.
9945 * opencl-lang.c (_initialize_opencl_language): Add declaration.
9946 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
9947 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
9948 * osabi.c (_initialize_gdb_osabi): Add declaration.
9949 * osdata.c (_initialize_osdata): Add declaration.
9950 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
9951 * parse.c (_initialize_parse): Add declaration.
9952 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
9953 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
9954 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
9955 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
9956 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
9957 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
9958 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
9959 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
9960 * printcmd.c (_initialize_printcmd): Add declaration.
9961 * probe.c (_initialize_probe): Add declaration.
9962 * proc-api.c (_initialize_proc_api): Add declaration.
9963 * proc-events.c (_initialize_proc_events): Add declaration.
9964 * proc-service.c (_initialize_proc_service): Add declaration.
9965 * procfs.c (_initialize_procfs): Add declaration.
9966 * producer.c (_initialize_producer): Add declaration.
9967 * psymtab.c (_initialize_psymtab): Add declaration.
9968 * python/python.c (_initialize_python): Add declaration.
9969 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
9970 * record-btrace.c (_initialize_record_btrace): Add declaration.
9971 * record-full.c (_initialize_record_full): Add declaration.
9972 * record.c (_initialize_record): Add declaration.
9973 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
9974 * regcache.c (_initialize_regcache): Add declaration.
9975 * reggroups.c (_initialize_reggroup): Add declaration.
9976 * remote-notif.c (_initialize_notif): Add declaration.
9977 * remote-sim.c (_initialize_remote_sim): Add declaration.
9978 * remote.c (_initialize_remote): Add declaration.
9979 * reverse.c (_initialize_reverse): Add declaration.
9980 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
9981 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
9982 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
9983 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
9984 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9985 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9986 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9987 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9988 Add declaration.
9989 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9990 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9991 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9992 * rust-exp.y (_initialize_rust_exp): Add declaration.
9993 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9994 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9995 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9996 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9997 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9998 * score-tdep.c (_initialize_score_tdep): Add declaration.
9999 * ser-go32.c (_initialize_ser_dos): Add declaration.
10000 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10001 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10002 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10003 * ser-uds.c (_initialize_ser_socket): Add declaration.
10004 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10005 * serial.c (_initialize_serial): Add declaration.
10006 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10007 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10008 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10009 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10010 * skip.c (_initialize_step_skip): Add declaration.
10011 * sol-thread.c (_initialize_sol_thread): Add declaration.
10012 * solib-aix.c (_initialize_solib_aix): Add declaration.
10013 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10014 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10015 * solib-frv.c (_initialize_frv_solib): Add declaration.
10016 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10017 * solib-target.c (_initialize_solib_target): Add declaration.
10018 * solib.c (_initialize_solib): Add declaration.
10019 * source-cache.c (_initialize_source_cache): Add declaration.
10020 * source.c (_initialize_source): Add declaration.
10021 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10022 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10023 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10024 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10025 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10026 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10027 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10028 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10029 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10030 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10031 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10032 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10033 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10034 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10035 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10036 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10037 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10038 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10039 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10040 * stabsread.c (_initialize_stabsread): Add declaration.
10041 * stack.c (_initialize_stack): Add declaration.
10042 * stap-probe.c (_initialize_stap_probe): Add declaration.
10043 * std-regs.c (_initialize_frame_reg): Add declaration.
10044 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10045 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10046 * symfile.c (_initialize_symfile): Add declaration.
10047 * symmisc.c (_initialize_symmisc): Add declaration.
10048 * symtab.c (_initialize_symtab): Add declaration.
10049 * target.c (_initialize_target): Add declaration.
10050 * target-connection.c (_initialize_target_connection): Add
10051 declaration.
10052 * target-dcache.c (_initialize_target_dcache): Add declaration.
10053 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10054 * thread.c (_initialize_thread): Add declaration.
10055 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10056 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10057 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10058 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10059 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10060 * tracectf.c (_initialize_ctf): Add declaration.
10061 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10062 * tracefile.c (_initialize_tracefile): Add declaration.
10063 * tracepoint.c (_initialize_tracepoint): Add declaration.
10064 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10065 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10066 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10067 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10068 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10069 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10070 * tui/tui.c (_initialize_tui): Add declaration.
10071 * typeprint.c (_initialize_typeprint): Add declaration.
10072 * ui-style.c (_initialize_ui_style): Add declaration.
10073 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10074 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10075 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10076 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10077 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10078 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10079 * unittests/filtered_iterator-selftests.c
10080 (_initialize_filtered_iterator_selftests): Add declaration.
10081 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10082 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10083 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10084 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10085 * unittests/main-thread-selftests.c
10086 (_initialize_main_thread_selftests): Add declaration.
10087 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10088 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10089 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10090 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10091 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10092 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10093 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10094 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10095 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10096 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10097 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10098 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10099 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10100 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10101 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10102 declaration.
10103 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10104 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10105 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10106 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10107 * user-regs.c (_initialize_user_regs): Add declaration.
10108 * utils.c (_initialize_utils): Add declaration.
10109 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10110 * valops.c (_initialize_valops): Add declaration.
10111 * valprint.c (_initialize_valprint): Add declaration.
10112 * value.c (_initialize_values): Add declaration.
10113 * varobj.c (_initialize_varobj): Add declaration.
10114 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10115 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10116 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10117 * windows-nat.c (_initialize_windows_nat): Add declaration.
10118 (_initialize_check_for_gdb_ini): Add declaration.
10119 (_initialize_loadable): Add declaration.
10120 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10121 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10122 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10123 * xcoffread.c (_initialize_xcoffread): Add declaration.
10124 * xml-support.c (_initialize_xml_support): Add declaration.
10125 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10126 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10127 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10128 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10129
e2de1eec
SM
101302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * regformats/regdat.sh: Generate declaration for init function.
10133
e0037b4c
SM
101342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10135
10136 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10137 up.
10138 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10139 close_one_inferior>: New methods.
10140 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10141 pass down target to find_inferior_pid.
10142 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10143 Pass down target to find_inferior_ptid.
10144 (gdbsim_target::create_inferior): Pass down target to
10145 add_thread_silent.
10146 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10147 target down to find_inferior_ptid and switch_to_thread.
10148 (gdbsim_target::close): Update to call close_one_inferior.
10149 (struct resume_data): Remove.
10150 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10151 directly, rather than through a void pointer.
10152 (gdbsim_target::resume): Update to call resume_one_inferior.
10153
58920b5b
SM
101542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10155
10156 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10157
4ec89149
PA
101582020-01-12 Pedro Alves <palves@redhat.com>
10159
10160 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10161 directly for the current inferior instead of
10162 discard_all_inferiors.
10163 (discard_all_inferiors): Delete.
10164
7c392d1d
TT
101652020-01-11 Tom Tromey <tom@tromey.com>
10166
10167 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10168 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10169 deprecated_safe_get_selected_frame.
10170
d9ebdab7
TBA
101712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10172
10173 * inferior.c (print_inferior): Switch inferior before printing it.
10174
f3c469b9
PA
101752020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10176 Pedro Alves <palves@redhat.com>
10177
10178 * progspace-and-thread.c (switch_to_program_space_and_thread):
10179 Assert there's an inferior for PSPACE. Use
10180 switch_to_inferior_no_thread to switch the inferior too.
10181 * progspace.c (program_space::~program_space): Call
10182 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10183 (program_space::free_all_objfiles): Don't call clear_symtab_users
10184 here.
10185 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10186
65c574f6
PA
101872020-01-10 Pedro Alves <palves@redhat.com>
10188
10189 * NEWS: Mention multi-target debugging, "info connections", and
10190 "add-inferior -no-connection".
10191
2f4fcf00
PA
101922020-01-10 Pedro Alves <palves@redhat.com>
10193
10194 * infrun.c: Include "target-connection.h".
10195 (check_multi_target_resumption): New.
10196 (proceed): Call it.
10197 * target-connection.c (make_target_connection_string): Make
10198 extern.
10199 * target-connection.h (make_target_connection_string): Declare.
10200
121b3efd
PA
102012020-01-10 Pedro Alves <palves@redhat.com>
10202
10203 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10204 * inferior.c (uiout_field_connection): New function.
10205 (print_inferior): Add new "connection-id" column.
10206 (add_inferior_command): Show connection number/string of added
10207 inferior.
10208 * process-stratum-target.h
10209 (process_stratum_target::connection_string): New virtual method.
10210 (process_stratum_target::connection_number): New field.
10211 * remote.c (remote_target::connection_string): New override.
10212 * target-connection.c: New file.
10213 * target-connection.h: New file.
10214 * target.c (decref_target): Remove process_stratum targets from
10215 the connection list.
10216 (target_stack::push): Add process_stratum targets to the
10217 connection list.
10218
4f837581
PA
102192020-01-10 Pedro Alves <palves@redhat.com>
10220
10221 Revert:
10222 2016-04-12 Pedro Alves <palves@redhat.com>
10223 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10224 Remove references to name.
10225 * serial.h (struct serial) <name>: Delete.
10226
f4ec508e
PA
102272020-01-10 Pedro Alves <palves@redhat.com>
10228
10229 * gdbarch-selftests.c (register_to_value_test): Remove "target
10230 already pushed" check.
10231
5b6d1e4f
PA
102322020-01-10 Pedro Alves <palves@redhat.com>
10233 John Baldwin <jhb@FreeBSD.org>
10234
10235 * aarch64-linux-nat.c
10236 (aarch64_linux_nat_target::thread_architecture): Adjust.
10237 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10238 (task_command_1): Likewise.
10239 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10240 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10241 (aix_thread_target::store_registers)
10242 (aix_thread_target::thread_alive): Adjust.
10243 * amd64-fbsd-tdep.c: Include "inferior.h".
10244 (amd64fbsd_get_thread_local_address): Pass down target.
10245 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10246 thread's gdbarch instead of target_gdbarch.
10247 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10248 get_last_target_status.
10249 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10250 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10251 inferiors.
10252 (update_inserted_breakpoint_locations): Skip if inferiors with no
10253 execution.
10254 (update_global_location_list): When handling moribund locations,
10255 find representative inferior for location's pspace, and use thread
10256 count of its process_stratum target.
10257 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10258 * bsd-uthread.c (bsd_uthread_target::wait): Use
10259 as_process_stratum_target and adjust thread_change_ptid and
10260 add_thread calls.
10261 (bsd_uthread_target::update_thread_list): Use
10262 as_process_stratum_target and adjust find_thread_ptid,
10263 thread_change_ptid and add_thread calls.
10264 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10265 find_thread_ptid call.
10266 * corelow.c (add_to_thread_list): Adjust add_thread call.
10267 (core_target_open): Adjust add_thread_silent and thread_count
10268 calls.
10269 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10270 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10271 * event-top.c (async_disconnect): Pop targets from all inferiors.
10272 * exec.c (add_target_sections): Push exec target on all inferiors
10273 sharing the program space.
10274 (remove_target_sections): Remove the exec target from all
10275 inferiors sharing the program space.
10276 (exec_on_vfork): New.
10277 * exec.h (exec_on_vfork): Declare.
10278 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10279 Pass it down.
10280 (fbsd_nat_target::update_thread_list): Adjust.
10281 (fbsd_nat_target::resume): Adjust.
10282 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10283 down.
10284 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10285 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10286 get_thread_arch_regcache call.
10287 * fork-child.c (gdb_startup_inferior): Pass target down to
10288 startup_inferior and set_executing.
10289 * gdbthread.h (struct process_stratum_target): Forward declare.
10290 (add_thread, add_thread_silent, add_thread_with_info)
10291 (in_thread_list): Add process_stratum_target parameter.
10292 (find_thread_ptid(inferior*, ptid_t)): New overload.
10293 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10294 parameter.
10295 (all_threads()): Delete overload.
10296 (all_threads, all_non_exited_threads): Add process_stratum_target
10297 parameter.
10298 (all_threads_safe): Use brace initialization.
10299 (thread_count): Add process_stratum_target parameter.
10300 (set_resumed, set_running, set_stop_requested, set_executing)
10301 (threads_are_executing, finish_thread_state): Add
10302 process_stratum_target parameter.
10303 (switch_to_thread): Use is_current_thread.
10304 * i386-fbsd-tdep.c: Include "inferior.h".
10305 (i386fbsd_get_thread_local_address): Pass down target.
10306 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10307 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10308 have_inferiors check.
10309 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10310 (inf_ptrace_target::attach): Adjust.
10311 * infcall.c (run_inferior_call): Adjust.
10312 * infcmd.c (run_command_1): Pass target to
10313 scoped_finish_thread_state.
10314 (proceed_thread_callback): Skip inferiors with no execution.
10315 (continue_command): Rename 'all_threads' local to avoid hiding
10316 'all_threads' function. Adjust get_last_target_status call.
10317 (prepare_one_step): Adjust set_running call.
10318 (signal_command): Use user_visible_resume_target. Compare thread
10319 pointers instead of inferior_ptid.
10320 (info_program_command): Adjust to pass down target.
10321 (attach_command): Mark target's 'thread_executing' flag.
10322 (stop_current_target_threads_ns): New, factored out from ...
10323 (interrupt_target_1): ... this. Switch inferior before making
10324 target calls.
10325 * inferior-iter.h
10326 (struct all_inferiors_iterator, struct all_inferiors_range)
10327 (struct all_inferiors_safe_range)
10328 (struct all_non_exited_inferiors_range): Filter on
10329 process_stratum_target too. Remove explicit.
10330 * inferior.c (inferior::inferior): Push dummy target on target
10331 stack.
10332 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10333 Add process_stratum_target parameter, and pass it down.
10334 (have_live_inferiors): Adjust.
10335 (switch_to_inferior_and_push_target): New.
10336 (add_inferior_command, clone_inferior_command): Handle
10337 "-no-connection" parameter. Use
10338 switch_to_inferior_and_push_target.
10339 (_initialize_inferior): Mention "-no-connection" option in
10340 the help of "add-inferior" and "clone-inferior" commands.
10341 * inferior.h: Include "process-stratum-target.h".
10342 (interrupt_target_1): Use bool.
10343 (struct inferior) <push_target, unpush_target, target_is_pushed,
10344 find_target_beneath, top_target, process_target, target_at,
10345 m_stack>: New.
10346 (discard_all_inferiors): Delete.
10347 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10348 (all_inferiors, all_non_exited_inferiors): Add
10349 process_stratum_target parameter.
10350 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10351 (target_last_proc_target): New global.
10352 (follow_fork_inferior): Push target on new inferior. Pass target
10353 to add_thread_silent. Call exec_on_vfork. Handle target's
10354 reference count.
10355 (follow_fork): Adjust get_last_target_status call. Also consider
10356 target.
10357 (follow_exec): Push target on new inferior.
10358 (struct execution_control_state) <target>: New field.
10359 (user_visible_resume_target): New.
10360 (do_target_resume): Call target_async.
10361 (resume_1): Set target's threads_executing flag. Consider resume
10362 target.
10363 (commit_resume_all_targets): New.
10364 (proceed): Also consider resume target. Skip threads of inferiors
10365 with no execution. Commit resumtion in all targets.
10366 (start_remote): Pass current inferior to wait_for_inferior.
10367 (infrun_thread_stop_requested): Consider target as well. Pass
10368 thread_info pointer to clear_inline_frame_state instead of ptid.
10369 (infrun_thread_thread_exit): Consider target as well.
10370 (random_pending_event_thread): New inferior parameter. Use it.
10371 (do_target_wait): Rename to ...
10372 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10373 down.
10374 (threads_are_resumed_pending_p, do_target_wait): New.
10375 (prepare_for_detach): Adjust calls.
10376 (wait_for_inferior): New inferior parameter. Handle it. Use
10377 do_target_wait_1 instead of do_target_wait.
10378 (fetch_inferior_event): Adjust. Switch to representative
10379 inferior. Pass target down.
10380 (set_last_target_status): Add process_stratum_target parameter.
10381 Save target in global.
10382 (get_last_target_status): Add process_stratum_target parameter and
10383 handle it.
10384 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10385 (context_switch): Check inferior_ptid == null_ptid before calling
10386 inferior_thread().
10387 (get_inferior_stop_soon): Pass down target.
10388 (wait_one): Rename to ...
10389 (poll_one_curr_target): ... this.
10390 (struct wait_one_event): New.
10391 (wait_one): New.
10392 (stop_all_threads): Adjust.
10393 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10394 event's target.
10395 (switch_back_to_stepped_thread): Also consider target.
10396 (print_stop_event): Update.
10397 (normal_stop): Update. Also consider the resume target.
10398 * infrun.h (wait_for_inferior): Remove declaration.
10399 (user_visible_resume_target): New declaration.
10400 (get_last_target_status, set_last_target_status): New
10401 process_stratum_target parameter.
10402 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10403 process_stratum_target parameter, and use it.
10404 (clear_inline_frame_state (thread_info*)): New.
10405 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10406 process_stratum_target parameter.
10407 (clear_inline_frame_state (thread_info*)): Declare.
10408 * linux-fork.c (delete_checkpoint_command): Pass target down to
10409 find_thread_ptid.
10410 (checkpoint_command): Adjust.
10411 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10412 instead of just tweaking inferior_ptid.
10413 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10414 (exit_lwp): Pass target down to find_thread_ptid.
10415 (attach_proc_task_lwp_callback): Pass target down to
10416 add_thread/set_running/set_executing.
10417 (linux_nat_target::attach): Pass target down to
10418 thread_change_ptid.
10419 (get_detach_signal): Pass target down to find_thread_ptid.
10420 Consider last target status's target.
10421 (linux_resume_one_lwp_throw, resume_lwp)
10422 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10423 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10424 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10425 (linux_nat_target::async_wait_fd): New.
10426 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10427 target down.
10428 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10429 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10430 * linux-thread-db.c (struct thread_db_info::process_target): New
10431 field.
10432 (add_thread_db_info): Save target.
10433 (get_thread_db_info): New process_stratum_target parameter. Also
10434 match target.
10435 (delete_thread_db_info): New process_stratum_target parameter.
10436 Also match target.
10437 (thread_from_lwp): Adjust to pass down target.
10438 (thread_db_notice_clone): Pass down target.
10439 (check_thread_db_callback): Pass down target.
10440 (try_thread_db_load_1): Always push the thread_db target.
10441 (try_thread_db_load, record_thread): Pass target down.
10442 (thread_db_target::detach): Pass target down. Always unpush the
10443 thread_db target.
10444 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10445 target down. Always unpush the thread_db target.
10446 (find_new_threads_callback, thread_db_find_new_threads_2)
10447 (thread_db_target::update_thread_list): Pass target down.
10448 (thread_db_target::pid_to_str): Pass current inferior down.
10449 (thread_db_target::get_thread_local_address): Pass target down.
10450 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10451 target down.
10452 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10453 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10454 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10455 (procfs_init_inferior): Rename to ...
10456 (procfs_target::procfs_init_inferior): ... this and adjust.
10457 (procfs_target::create_inferior, procfs_notice_thread)
10458 (procfs_do_thread_registers): Adjust.
10459 * ppc-fbsd-tdep.c: Include "inferior.h".
10460 (ppcfbsd_get_thread_local_address): Pass down target.
10461 * proc-service.c (ps_xfer_memory): Switch current inferior and
10462 program space as well.
10463 (get_ps_regcache): Pass target down.
10464 * process-stratum-target.c
10465 (process_stratum_target::thread_address_space)
10466 (process_stratum_target::thread_architecture): Pass target down.
10467 * process-stratum-target.h
10468 (process_stratum_target::threads_executing): New field.
10469 (as_process_stratum_target): New.
10470 * ravenscar-thread.c
10471 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10472 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10473 down.
10474 * record-btrace.c (record_btrace_target::info_record): Adjust.
10475 (record_btrace_target::record_method)
10476 (record_btrace_target::record_is_replaying)
10477 (record_btrace_target::fetch_registers)
10478 (get_thread_current_frame_id, record_btrace_target::resume)
10479 (record_btrace_target::wait, record_btrace_target::stop): Pass
10480 target down.
10481 * record-full.c (record_full_wait_1): Switch to event thread.
10482 Pass target down.
10483 * regcache.c (regcache::regcache)
10484 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10485 process_stratum_target parameter and handle it.
10486 (current_thread_target): New global.
10487 (get_thread_regcache): Add process_stratum_target parameter and
10488 handle it. Switch inferior before calling target method.
10489 (get_thread_regcache): Pass target down.
10490 (get_thread_regcache_for_ptid): Pass target down.
10491 (registers_changed_ptid): Add process_stratum_target parameter and
10492 handle it.
10493 (registers_changed_thread, registers_changed): Pass target down.
10494 (test_get_thread_arch_aspace_regcache): New.
10495 (current_regcache_test): Define a couple local test_target_ops
10496 instances and use them for testing.
10497 (readwrite_regcache): Pass process_stratum_target parameter.
10498 (cooked_read_test, cooked_write_test): Pass mock_target down.
10499 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10500 (get_thread_arch_aspace_regcache): Add process_stratum_target
10501 parameter.
10502 (regcache::target): New method.
10503 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10504 (regcache::registers_changed_ptid): Add process_stratum_target
10505 parameter.
10506 (regcache::m_target): New field.
10507 (registers_changed_ptid): Add process_stratum_target parameter.
10508 * remote.c (remote_state::supports_vCont_probed): New field.
10509 (remote_target::async_wait_fd): New method.
10510 (remote_unpush_and_throw): Add remote_target parameter.
10511 (get_current_remote_target): Adjust.
10512 (remote_target::remote_add_inferior): Push target.
10513 (remote_target::remote_add_thread)
10514 (remote_target::remote_notice_new_inferior)
10515 (get_remote_thread_info): Pass target down.
10516 (remote_target::update_thread_list): Skip threads of inferiors
10517 bound to other targets. (remote_target::close): Don't discard
10518 inferiors. (remote_target::add_current_inferior_and_thread)
10519 (remote_target::process_initial_stop_replies)
10520 (remote_target::start_remote)
10521 (remote_target::remote_serial_quit_handler): Pass down target.
10522 (remote_target::remote_unpush_target): New remote_target
10523 parameter. Unpush the target from all inferiors.
10524 (remote_target::remote_unpush_and_throw): New remote_target
10525 parameter. Pass it down.
10526 (remote_target::open_1): Check whether the current inferior has
10527 execution instead of checking whether any inferior is live. Pass
10528 target down.
10529 (remote_target::remote_detach_1): Pass down target. Use
10530 remote_unpush_target.
10531 (extended_remote_target::attach): Pass down target.
10532 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10533 (remote_target::append_resumption): Pass down target.
10534 (remote_target::append_pending_thread_resumptions)
10535 (remote_target::remote_resume_with_hc, remote_target::resume)
10536 (remote_target::commit_resume): Pass down target.
10537 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10538 (remote_target::interrupt_query)
10539 (remote_target::remove_new_fork_children)
10540 (remote_target::check_pending_events_prevent_wildcard_vcont)
10541 (remote_target::remote_parse_stop_reply)
10542 (remote_target::process_stop_reply): Pass down target.
10543 (first_remote_resumed_thread): New remote_target parameter. Pass
10544 it down.
10545 (remote_target::wait_as): Pass down target.
10546 (unpush_and_perror): New remote_target parameter. Pass it down.
10547 (remote_target::readchar, remote_target::remote_serial_write)
10548 (remote_target::getpkt_or_notif_sane_1)
10549 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10550 down target.
10551 (remote_target::mourn_inferior): Pass down target. Use
10552 remote_unpush_target.
10553 (remote_target::core_of_thread)
10554 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10555 (remote_target::pid_to_exec_file)
10556 (remote_target::thread_handle_to_thread_info): Pass down target.
10557 (remote_target::async_wait_fd): New.
10558 * riscv-fbsd-tdep.c: Include "inferior.h".
10559 (riscv_fbsd_get_thread_local_address): Pass down target.
10560 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10561 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10562 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10563 Adjust.
10564 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10565 * solib-svr4.c (enable_break): Pass down target.
10566 * spu-multiarch.c (parse_spufs_run): Pass down target.
10567 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10568 * target-delegates.c: Regenerate.
10569 * target.c (g_target_stack): Delete.
10570 (current_top_target): Return the current inferior's top target.
10571 (target_has_execution_1): Refer to the passed-in inferior's top
10572 target.
10573 (target_supports_terminal_ours): Check whether the initial
10574 inferior was already created.
10575 (decref_target): New.
10576 (target_stack::push): Incref/decref the target.
10577 (push_target, push_target, unpush_target): Adjust.
10578 (target_stack::unpush): Defref target.
10579 (target_is_pushed): Return bool. Adjust to refer to the current
10580 inferior's target stack.
10581 (dispose_inferior): Delete, and inline parts ...
10582 (target_preopen): ... here. Only dispose of the current inferior.
10583 (target_detach): Hold strong target reference while detaching.
10584 Pass target down.
10585 (target_thread_name): Add assertion.
10586 (target_resume): Pass down target.
10587 (target_ops::beneath, find_target_at): Adjust to refer to the
10588 current inferior's target stack.
10589 (get_dummy_target): New.
10590 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10591 has a thread running.
10592 (initialize_targets): Rename to ...
10593 (_initialize_target): ... this.
10594 * target.h: Include "gdbsupport/refcounted-object.h".
10595 (struct target_ops): Inherit refcounted_object.
10596 (target_ops::shortname, target_ops::longname): Make const.
10597 (target_ops::async_wait_fd): New method.
10598 (decref_target): Declare.
10599 (struct target_ops_ref_policy): New.
10600 (target_ops_ref): New typedef.
10601 (get_dummy_target): Declare function.
10602 (target_is_pushed): Return bool.
10603 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10604 (all_matching_threads_iterator::all_matching_threads_iterator):
10605 Handle filter target.
10606 * thread-iter.h (struct all_matching_threads_iterator, struct
10607 all_matching_threads_range, class all_non_exited_threads_range):
10608 Filter by target too. Remove explicit.
10609 * thread.c (threads_executing): Delete.
10610 (inferior_thread): Pass down current inferior.
10611 (clear_thread_inferior_resources): Pass down thread pointer
10612 instead of ptid_t.
10613 (add_thread_silent, add_thread_with_info, add_thread): Add
10614 process_stratum_target parameter. Use it for thread and inferior
10615 searches.
10616 (is_current_thread): New.
10617 (thread_info::deletable): Use it.
10618 (find_thread_ptid, thread_count, in_thread_list)
10619 (thread_change_ptid, set_resumed, set_running): New
10620 process_stratum_target parameter. Pass it down.
10621 (set_executing): New process_stratum_target parameter. Pass it
10622 down. Adjust reference to 'threads_executing'.
10623 (threads_are_executing): New process_stratum_target parameter.
10624 Adjust reference to 'threads_executing'.
10625 (set_stop_requested, finish_thread_state): New
10626 process_stratum_target parameter. Pass it down.
10627 (switch_to_thread): Also match inferior.
10628 (switch_to_thread): New process_stratum_target parameter. Pass it
10629 down.
10630 (update_threads_executing): Reimplement.
10631 * top.c (quit_force): Pop targets from all inferior.
10632 (gdb_init): Don't call initialize_targets.
10633 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10634 Declare.
10635 (windows_add_thread, windows_delete_thread): Adjust.
10636 (get_windows_debug_event): Rename to ...
10637 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10638 * tracefile-tfile.c (tfile_target_open): Pass down target.
10639 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10640 Forward declare.
10641 (switch_to_thread): Add process_stratum_target parameter.
10642 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10643 parameter. Use it.
10644 (mi_on_resume): Pass target down.
10645 * nat/fork-inferior.c (startup_inferior): Add
10646 process_stratum_target parameter. Pass it down.
10647 * nat/fork-inferior.h (startup_inferior): Add
10648 process_stratum_target parameter.
10649 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10650
75c6c844
PA
106512020-01-10 Pedro Alves <palves@redhat.com>
10652
10653 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10654 directly. Instead find the first thread in the thread list and
10655 use switch_to_thread.
10656
78f2c40a
PA
106572020-01-10 Pedro Alves <palves@redhat.com>
10658
10659 * remote.c (remote_target::remote_add_inferior): Don't bind a
10660 process to the current inferior if the current inferior is already
10661 bound to a process.
10662
e7af6c70
TBA
106632020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10664 Pedro Alves <palves@redhat.com>
10665
10666 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10667 If no process is specified, return null_ptid instead of
10668 inferior_ptid.
10669 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10670 TARGET_WAITKIND_SIGNALLED with no pid.
10671
31ba933e
PA
106722020-01-10 Pedro Alves <palves@redhat.com>
10673
10674 * remote.c (first_remote_resumed_thread): New.
10675 (remote_target::wait_as): Use it as default event_ptid instead of
10676 inferior_ptid.
10677
735fc2ca
PA
106782020-01-10 Pedro Alves <palves@redhat.com>
10679
10680 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10681
c17e02e1
PA
106822020-01-10 Pedro Alves <palves@redhat.com>
10683
10684 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10685 not -1.
10686
ab1ddbcf
PA
106872020-01-10 Pedro Alves <palves@redhat.com>
10688
10689 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10690 ptid to get_last_target_status.
10691 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10692 ptid to get_last_target_status.
10693 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10694 get_last_target_status.
10695 (info_program_command): Don't pass a target_waitstatus to
10696 get_last_target_status.
10697 * infrun.c (init_wait_for_inferior): Use
10698 nullify_last_target_wait_ptid.
10699 (get_last_target_status): Handle nullptr arguments.
10700 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
10701 (print_stop_event): Don't pass a ptid to get_last_target_status.
10702 (normal_stop): Don't pass a ptid to get_last_target_status.
10703 * infrun.h (get_last_target_status, set_last_target_status): Move
10704 comments here and update.
10705 (nullify_last_target_wait_ptid): Declare.
10706 * linux-fork.c (fork_load_infrun_state): Remove local extern
10707 declaration of nullify_last_target_wait_ptid.
10708 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
10709 to get_last_target_status.
10710
f3f8ece4
PA
107112020-01-10 Pedro Alves <palves@redhat.com>
10712
10713 * gdbthread.h (scoped_restore_current_thread)
10714 <dont_restore, restore, m_dont_restore>: Declare.
10715 * thread.c (thread_alive): Add assertion. Return bool.
10716 (switch_to_thread_if_alive): New.
10717 (prune_threads): Switch inferior/thread.
10718 (print_thread_info_1): Switch thread before calling target methods.
10719 (scoped_restore_current_thread::restore): New, factored out from
10720 ...
10721 (scoped_restore_current_thread::~scoped_restore_current_thread):
10722 ... this.
10723 (scoped_restore_current_thread::scoped_restore_current_thread):
10724 Add assertion.
10725 (thread_apply_all_command, thread_select): Use
10726 switch_to_thread_if_alive.
10727 * infrun.c (proceed, restart_threads, handle_signal_stop)
10728 (switch_back_to_stepped_thread): Switch current thread before
10729 calling target methods.
10730
db2d40f7
PA
107312020-01-10 Pedro Alves <palves@redhat.com>
10732
10733 * inferior.c (switch_to_inferior_no_thread): New function,
10734 factored out from ...
10735 (inferior_command): ... here.
10736 * inferior.h (switch_to_inferior_no_thread): Declare.
10737 * mi/mi-main.c (run_one_inferior): Use
10738 switch_to_inferior_no_thread.
10739
bd420a2d
PA
107402020-01-10 Pedro Alves <palves@redhat.com>
10741
10742 * infcmd.c (kill_command): Remove dead code.
10743
ddf5db90
PA
107442020-01-10 Pedro Alves <palves@redhat.com>
10745
10746 * remote.c (remote_target::mourn_inferior): No longer check
10747 whether the target is running.
10748
5018ce90
PA
107492020-01-10 Pedro Alves <palves@redhat.com>
10750
10751 * corelow.c (core_target::has_execution): Change parameter type to
10752 inferior pointer.
10753 * inferior.c (number_of_live_inferiors): Use
10754 inferior::has_execution instead of target_has_execution_1.
10755 * inferior.h (inferior::has_execution): New.
10756 * linux-thread-db.c (thread_db_target::update_thread_list): Use
10757 inferior::has_execution instead of target_has_execution_1.
10758 * process-stratum-target.c
10759 (process_stratum_target::has_execution): Change parameter type to
10760 inferior pointer. Check the inferior's PID instead of
10761 inferior_ptid.
10762 * process-stratum-target.h
10763 (process_stratum_target::has_execution): Change parameter type to
10764 inferior pointer.
10765 * record-full.c (record_full_core_target::has_execution): Change
10766 parameter type to inferior pointer.
10767 * target.c (target_has_execution_1): Change parameter type to
10768 inferior pointer.
10769 (target_has_execution_current): Adjust.
10770 * target.h (target_ops::has_execution): Change parameter type to
10771 inferior pointer.
10772 (target_has_execution_1): Change parameter type to inferior
10773 pointer. Change return type to bool.
10774 * tracefile.h (tracefile_target::has_execution): Change parameter
10775 type to inferior pointer.
10776
74375d18
PA
107772020-01-10 Pedro Alves <palves@redhat.com>
10778
10779 * exceptions.c (print_flush): Remove current_top_target() check.
10780
acdf84a6
PA
107812020-01-10 Pedro Alves <palves@redhat.com>
10782
10783 * remote.c (show_remote_exec_file): Show the current inferior's
10784 exec-file instead of the command variable's value.
10785
ec506636
PA
107862020-01-10 Pedro Alves <palves@redhat.com>
10787
10788 * record-full.c (record_full_resume_ptid): New global.
10789 (record_full_target::resume): Set it.
10790 (record_full_wait_1): Use record_full_resume_ptid instead of
10791 inferior_ptid.
10792
873657b9
PA
107932020-01-10 Pedro Alves <palves@redhat.com>
10794
10795 * gdbthread.h (scoped_restore_current_thread)
10796 <dont_restore, restore, m_dont_restore>: Declare.
10797 * thread.c (thread_alive): Add assertion. Return bool.
10798 (switch_to_thread_if_alive): New.
10799 (prune_threads): Switch inferior/thread.
10800 (print_thread_info_1): Switch thread before calling target methods.
10801 (scoped_restore_current_thread::restore): New, factored out from
10802 ...
10803 (scoped_restore_current_thread::~scoped_restore_current_thread):
10804 ... this.
10805 (scoped_restore_current_thread::scoped_restore_current_thread):
10806 Add assertion.
10807 (thread_apply_all_command, thread_select): Use
10808 switch_to_thread_if_alive.
10809
7f0ae84c
GB
108102020-01-10 George Barrett <bob@bob131.so>
10811
10812 * stap-probe.c (stap_modify_semaphore): Don't check for null
10813 semaphores.
10814 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
10815 for null semaphores.
10816
f5a7c406
AB
108172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
10820 all source windows, and maintain horizontal scroll status while
10821 doing so.
10822
9ae6bf64
TT
108232020-01-09 Tom Tromey <tom@tromey.com>
10824
10825 PR tui/18932:
10826 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
10827 update_source_window, not print_source_lines.
10828
b2efe70c
AB
108292020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10830
10831 * tui/tui.c (tui_enable): Register tui hooks after calling
10832 tui_display_main.
10833
5f23a082
CB
108342020-01-09 Christian Biesinger <cbiesinger@google.com>
10835
10836 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
10837
3061113b
SM
108382020-01-08 Simon Marchi <simon.marchi@efficios.com>
10839
10840 * thread.c (print_thread_info_1): Fix indentation.
10841
57d75002
CB
108422020-01-09 Christian Biesinger <cbiesinger@google.com>
10843
10844 * symtab.c (general_symbol_info::compute_and_set_names): Move the
10845 unique_xmalloc_ptr outside the if to always free the demangled name.
10846
6a053cb1
TT
108472020-01-08 Tom Tromey <tromey@adacore.com>
10848
10849 * xcoffread.c (enter_line_range, read_xcoff_symtab)
10850 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
10851 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
10852 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
10853 Remove.
10854 (section_offsets): New typedef.
10855 * symtab.c (fixup_section, get_msymbol_address): Update.
10856 * symmisc.c (dump_msymbols): Update.
10857 * symfile.h (relative_addr_info_to_section_offsets)
10858 (symfile_map_offsets_to_segments): Update.
10859 * symfile.c (build_section_addr_info_from_objfile)
10860 (init_objfile_sect_indices): Update.
10861 (struct place_section_arg): Change type of "offsets".
10862 (place_section): Update.
10863 (relative_addr_info_to_section_offsets): Change type of
10864 "section_offsets". Remove "num_sections" parameter.
10865 (default_symfile_offsets, syms_from_objfile_1)
10866 (set_objfile_default_section_offset): Update.
10867 (reread_symbols): No need to preserve section offsets by hand.
10868 (symfile_map_offsets_to_segments): Change type of "offsets".
10869 * stap-probe.c (relocate_address): Update.
10870 * stabsread.h (process_one_symbol): Update.
10871 * solib-target.c (struct lm_info_target) <offsets>: Change type.
10872 (solib_target_relocate_section_addresses): Update.
10873 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
10874 Update.
10875 * solib-frv.c (frv_relocate_main_executable): Update.
10876 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
10877 * solib-aix.c (solib_aix_get_section_offsets): Change return
10878 type.
10879 (solib_aix_solib_create_inferior_hook): Update.
10880 * remote.c (remote_target::get_offsets): Update.
10881 * psymtab.c (find_pc_sect_psymtab): Update.
10882 * psympriv.h (struct partial_symbol) <address, text_low,
10883 text_high>: Update.
10884 * objfiles.h (obj_section_offset): Update.
10885 (struct objfile) <section_offsets>: Change type.
10886 <num_sections>: Remove.
10887 (objfile_relocate): Update.
10888 * objfiles.c (entry_point_address_query): Update
10889 (relocate_one_symbol): Change type of "section_offsets".
10890 (objfile_relocate1, objfile_relocate1): Change type of
10891 "new_offsets".
10892 (objfile_rebase1): Update.
10893 * mipsread.c (mipscoff_symfile_read): Update.
10894 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
10895 parameter.
10896 * mdebugread.c (parse_symbol): Change type of "section_offsets".
10897 (parse_external, psymtab_to_symtab_1): Update.
10898 * machoread.c (macho_symfile_offsets): Update.
10899 * ia64-tdep.c (ia64_find_unwind_table): Update.
10900 * hppa-tdep.c (read_unwind_info): Update.
10901 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
10902 * dwarf2read.c (create_addrmap_from_index)
10903 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10904 (process_psymtab_comp_unit_reader, add_partial_symbol)
10905 (add_partial_subprogram, process_full_comp_unit)
10906 (read_file_scope, read_func_scope, read_lexical_block_scope)
10907 (read_call_site_scope, dwarf2_rnglists_process)
10908 (dwarf2_ranges_process, dwarf2_ranges_read)
10909 (dwarf_decode_lines_1, var_decode_location, new_symbol)
10910 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
10911 Update.
10912 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
10913 Update.
10914 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
10915 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
10916 (process_one_symbol): Change type of "section_offsets".
10917 * ctfread.c (get_objfile_text_range): Update.
10918 * coffread.c (coff_symtab_read, enter_linenos)
10919 (process_coff_symbol): Update.
10920 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10921 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
10922
456e800a
TT
109232020-01-08 Tom Tromey <tromey@adacore.com>
10924
10925 * dwarf2read.c (parse_macro_definition): Use std::string.
10926 (parse_macro_definition): Likewise.
10927
6dfa2fc2
TT
109282020-01-08 Tom Tromey <tromey@adacore.com>
10929
10930 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
10931 (ATTR_ALLOC_CHUNK): Remove.
10932
421d1616
TT
109332020-01-08 Tom Tromey <tromey@adacore.com>
10934
10935 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
10936
43816ebc
TT
109372020-01-08 Tom Tromey <tromey@adacore.com>
10938
10939 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
10940 (dwarf2_compute_name, open_dwo_file): Likewise.
10941 (process_enumeration_scope): Use std::vector.
10942 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
10943 (partial_die_info::fixup, dwarf2_start_subfile)
10944 (guess_full_die_structure_name, dwarf2_name): Likewise.
10945 (determine_prefix): Update.
10946 (guess_full_die_structure_name): Make return type const.
10947 (partial_die_full_name): Return unique_xmalloc_ptr.
10948 (DW_FIELD_ALLOC_CHUNK): Remove.
10949
4212d509
TT
109502020-01-07 Tom Tromey <tromey@adacore.com>
10951
10952 PR build/24937:
10953 * stap-probe.c (class stap_static_probe_ops): Add constructor.
10954
06a6207a
JT
109552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10956
10957 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
10958
153d79c4
AB
109592020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * stack.c (print_frame_info): Move disassemble_next_line code
10962 inside source_print block.
10963
66182876
EZ
109642020-01-06 Eli Zaretskii <eliz@gnu.org>
10965
10966 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
10967 gdb/signals.h, as we are now using native signal symbols.
10968
cbfa8581
SV
109692020-01-06 Shahab Vahedi <shahab@synopsys.com>
10970
10971 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
10972 overflow by an early check of content vs threshold.
aac66a4c 10973 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
10974 Likewise.
10975
3f602821
EZ
109762020-01-06 Eli Zaretskii <eliz@gnu.org>
10977
10978 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
10979
a08c904d
JT
109802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
10981
10982 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
10983 export table if no section contains it's RVA.
10984
89a65580
EZ
109852020-01-06 Eli Zaretskii <eliz@gnu.org>
10986
10987 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10988
8b7fcda2
HD
109892020-01-06 Hannes Domani <ssbssa@yahoo.de>
10990
10991 * source.c (print_source_lines_base): Set last_line_listed.
10992
a61b4f69
SV
109932020-01-06 Shahab Vahedi <shahab@synopsys.com>
10994
10995 * tui/tui-disasm.c: Remove trailing spaces.
10996
559e7e50
EZ
109972020-01-06 Eli Zaretskii <eliz@gnu.org>
10998 Pedro Alves <palves@redhat.com>
10999
11000 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11001 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11002 (windows_gdb_signal_to_target): New function, uses the above
11003 enumeration to convert GDB internal signal codes to equivalent
11004 Windows codes.
11005 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11006 * windows-nat.c: Include "gdb_wait.h".
11007 (get_windows_debug_event): Extract the fatal exception from the
11008 exit status and convert to the equivalent Posix signal number.
11009 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11010 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11011 * gdbsupport/gdb_wait.c: New file, implements
11012 windows_status_to_termsig.
11013 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11014 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11015
f2302a34
AB
110162020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11019 show_layout.
11020
6a5206eb
LM
110212020-01-05 Luis Machado <luis.machado@linaro.org>
11022
11023 * aarch64-linux-nat.c
11024 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11025 and bfd_mach_aarch64.
11026
6ec1d75e
PW
110272020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11028
11029 * ui-file.c (stdio_file::can_emit_style_escape)
11030 (tee_file::can_emit_style_escape): Ensure style is used also on
11031 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11032 to gdb_stdout.
11033 * main.c (set_gdb_data_directory): Use file style to output the
11034 warning that the given pathname is not a directory.
11035 * top.c (show_history_filename, gdb_safe_append_history)
11036 (show_gdb_datadir): Use file style.
11037
44f81a76
HD
110382020-01-03 Hannes Domani <ssbssa@yahoo.de>
11039
11040 * solib-target.c (struct lm_info_target):
11041 Change offsets to be a unique_xmalloc_ptr.
11042 (solib_target_relocate_section_addresses): Update.
11043
25057eb0
HD
110442020-01-03 Hannes Domani <ssbssa@yahoo.de>
11045
11046 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11047
6e2118f5
BE
110482020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11049
11050 * MAINTAINERS (Write After Approval): Add myself.
11051
8133c7dc
LM
110522020-01-02 Luis Machado <luis.machado@linaro.org>
11053
11054 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11055 Cell BE architecture.
11056 * target.h (struct target_ops) <thread_architecture>: Likewise.
11057
48189bec
HD
110582020-01-01 Hannes Domani <ssbssa@yahoo.de>
11059
11060 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11061
ead1063b
HD
110622020-01-01 Hannes Domani <ssbssa@yahoo.de>
11063
11064 * MAINTAINERS (Write After Approval): Add myself.
11065
e5d78223
JB
110662020-01-01 Joel Brobecker <brobecker@adacore.com>
11067
11068 * gdbarch.sh: Update copyright year range of generated files.
11069
b811d2c2
JB
110702020-01-01 Joel Brobecker <brobecker@adacore.com>
11071
11072 Update copyright year range in all GDB files.
11073
5f4def5c
JB
110742020-01-01 Joel Brobecker <brobecker@adacore.com>
11075
11076 * copyright.py: Convert to Python 3.
11077
51fd4002
JB
110782020-01-01 Joel Brobecker <brobecker@adacore.com>
11079
11080 * copyright.py: Adapt after move of gnulib directory from gdb
11081 directory to toplevel directory.
11082
5fb651f2
JB
110832020-01-01 Joel Brobecker <brobecker@adacore.com>
11084
11085 * copyright.py (main): Exit if run from the wrong directory.
11086
5dd8bf88
JB
110872020-01-01 Joel Brobecker <brobecker@adacore.com>
11088
11089 * top.c (print_gdb_version): Change copyright year to 2020.
11090
9f71dacb 110912020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11092
9f71dacb 11093 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11094
9f71dacb 11095For older changes see ChangeLog-2019.
c906108c
SS
11096\f
11097Local Variables:
11098mode: change-log
11099left-margin: 8
11100fill-column: 74
11101version-control: never
57da7796 11102coding: utf-8
c906108c 11103End: